@map2usdnbhd/md_components 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{allPaths-d7qd1hj-.js → allPaths-FCHjLvW0.js} +1 -1
- package/dist/{allPathsLoader-EP5oWZVg.js → allPathsLoader-vptmSEoJ.js} +2 -2
- package/dist/{index-yDWA_ydB.js → index-W_z0gVK3.js} +4 -7
- package/dist/md-component.js +1 -1
- package/dist/md-component.umd.cjs +2 -5
- package/dist/{splitPathsBySizeLoader-bo6cW1gT.js → splitPathsBySizeLoader-cWNPT9Om.js} +1 -1
- package/package.json +2 -2
|
@@ -150,9 +150,6 @@ Check the top-level render call using <`+ie+">.")}return ne}}function gt(H,ne){{
|
|
|
150
150
|
*
|
|
151
151
|
* This source code is licensed under the MIT license found in the
|
|
152
152
|
* LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/var Ph;function kL(){if(Ph)return o5;Ph=1;var e=N;function r(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var t=typeof Object.is=="function"?Object.is:r,n=e.useState,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function l(g,w){var y=w(),x=n({inst:{value:y,getSnapshot:w}}),b=x[0].inst,m=x[1];return o(function(){b.value=y,b.getSnapshot=w,s(b)&&m({inst:b})},[g,y,w]),a(function(){return s(b)&&m({inst:b}),g(function(){s(b)&&m({inst:b})})},[g]),i(y),y}function s(g){var w=g.getSnapshot;g=g.value;try{var y=w();return!t(g,y)}catch{return!0}}function c(g,w){return w()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:l;return o5.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,o5}process.env.NODE_ENV==="production"?n5.exports=kL():n5.exports=AL();var HL=n5.exports,Oo=[],ci=[],NL=function(e){e(Oo),ci.forEach(function(r){return r()})},i5={getSnapshot:function(){return Oo},subscribe:function(e){return ci.push(e),function(){var r=ci.indexOf(e);ci.splice(r,1)}}};function RL(){var e=HL.useSyncExternalStore(i5.subscribe,i5.getSnapshot,i5.getSnapshot),r=N.useCallback(function(){return e.at(-1)},[e]),t=N.useCallback(function(i){var l=e.findIndex(function(s){return s.id===i});return e.slice(l)},[e]),n=N.useCallback(function(){NL(function(i){return i.splice(0,i.length)})},[]),a=N.useCallback(function(i){Oo.push(i),i.props.usePortal&&i.props.hasBackdrop&&document.body.classList.add(bo)},[]),o=N.useCallback(function(i){var l=e.filter(function(c){return c.props.usePortal&&c.props.hasBackdrop&&c.id!==i}),s=Oo.findIndex(function(c){return c.id===i});s>-1&&Oo.splice(s,1),l.length===0&&document.body.classList.remove(bo)},[e]);return{closeOverlay:o,getLastOpened:r,getThisOverlayAndDescendants:t,openOverlay:a,resetStack:n}}function jL(){var e=N.useContext(VL),r=e.stack,t=e.hasProvider,n=RL(),a=N.useCallback(function(){return r.current.at(-1)},[r]),o=N.useCallback(function(c){var f=r.current.findIndex(function(g){return g.id===c});return f===-1?[]:r.current.slice(f)},[r]),i=N.useCallback(function(){r.current=[]},[r]),l=N.useCallback(function(c){r.current.push(c),c.props.usePortal&&c.props.hasBackdrop&&document.body.classList.add(bo)},[r]),s=N.useCallback(function(c){var f=r.current.filter(function(w){return w.props.usePortal&&w.props.hasBackdrop&&w.id!==c}),g=r.current.findIndex(function(w){return w.id===c});g>-1&&r.current.splice(g,1),f.length===0&&document.body.classList.remove(bo)},[r]);return t?{closeOverlay:s,getLastOpened:a,getThisOverlayAndDescendants:o,openOverlay:l,resetStack:i}:(hn("development")&&console.error(_P),n)}function DL(e){var r=A.useRef();return A.useEffect(function(){r.current=e},[e]),r.current}function l5(e){var r=mr(e),t=r!=null?Array.from(r.querySelectorAll(['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','details:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(","))):[];return t.filter(function(n){return!n.classList.contains(eh)&&!n.classList.contains(th)})}var IL=A.createContext({}),$L={blueprintPortalClassName:function(e,r){if(e[r]!=null&&typeof e[r]!="string")return new Error(OP)}};function s5(e,r){var t,n=e.className,a=e.stopPropagationEvents,o=e.container,i=e.onChildrenMount,l=e.children;r===void 0&&(r={});var s=A.useContext(IL),c=(t=o??s.portalContainer)!==null&&t!==void 0?t:typeof document<"u"?document.body:void 0,f=A.useState(),g=f[0],w=f[1],y=A.useCallback(function(){var x=document.createElement("div");x.classList.add(BS),ui(x.classList,n),ui(x.classList,s.portalClassName),_h(x,a);var b=r.blueprintPortalClassName;return b!=null&&b!==""&&(console.error(SP),ui(x.classList,b)),x},[n,s.portalClassName,r.blueprintPortalClassName,a]);return A.useEffect(function(){if(c!=null){var x=y();return c.appendChild(x),w(x),function(){Eh(x,a),x.remove(),w(void 0)}}},[c,y,a]),A.useEffect(function(){g!=null&&(i==null||i())},[g,i]),A.useEffect(function(){if(g!=null)return ui(g.classList,n),function(){return FL(g.classList,n)}},[n,g]),A.useEffect(function(){if(g!=null)return _h(g,a),function(){return Eh(g,a)}},[g,a]),typeof document>"u"||g==null?null:Li.createPortal(l,g)}s5.displayName="".concat(rt,".Portal"),NP()||(s5.contextTypes=$L);function FL(e,r){r!=null&&r!==""&&e.remove.apply(e,r.split(" "))}function ui(e,r){r!=null&&r!==""&&e.add.apply(e,r.split(" "))}function _h(e,r){r==null||r.forEach(function(t){return e.addEventListener(t,Lh)})}function Eh(e,r){r==null||r.forEach(function(t){return e.removeEventListener(t,Lh)})}function Lh(e){e.stopPropagation()}var di=A.forwardRef(function(e,r){var t,n,a,o=e.autoFocus,i=e.backdropClassName,l=e.backdropProps,s=e.canEscapeKeyClose,c=e.canOutsideClickClose,f=e.childRef,g=e.childRefs,w=e.children,y=e.className,x=e.enforceFocus,b=e.hasBackdrop,m=e.isOpen,h=e.lazy,d=e.onClose,v=e.onClosed,u=e.onClosing,p=e.onOpened,C=e.onOpening,M=e.portalClassName,S=e.portalContainer,T=e.shouldReturnFocusOnClose,O=e.transitionDuration,P=e.transitionName,L=e.usePortal;WL(e);var V=jL(),k=V.closeOverlay,j=V.getLastOpened,U=V.getThisOverlayAndDescendants,$=V.openOverlay,B=A.useState(!1),I=B[0],R=B[1],G=A.useState(!1),q=G[0],Y=G[1],F=A.useRef(null),D=A.useRef(null),W=A.useRef(null),ee=A.useRef(null),J=A.useRef(null),X=A.useRef(null),te=A.useCallback(function(){return requestAnimationFrame(function(){var be,ze=mr(D),We=kc(ze);if(!(ze==null||We==null)){var pt=!ze.contains(We);pt&&((be=mr(ee))===null||be===void 0||be.focus({preventScroll:!0}),R(!1))}})},[]),oe=UL(),ae=A.useRef(null),Q=A.useCallback(function(be){var ze=be.composed?be.composedPath()[0]:be.target,We=mr(D);We!=null&&ze instanceof Node&&!We.contains(ze)&&(be.preventDefault(),be.stopImmediatePropagation(),te())},[te]),Z=A.useCallback(function(be){var ze=be.composed?be.composedPath()[0]:be.target,We=U(oe),pt=We.some(function(xt){var zr=xt.containerElement,vt=mr(zr);return(vt==null?void 0:vt.contains(ze))&&!vt.isSameNode(ze)});pt||d==null||d(be)},[U,oe,d]);A.useEffect(function(){document.removeEventListener("mousedown",Z)},[Z]),A.useEffect(function(){document.removeEventListener("focus",Q,!0)},[Q]);var re=A.useMemo(function(){return wo(r,ae)},[r]);A.useImperativeHandle(re,function(){return{bringFocusInsideOverlay:te,containerElement:D,handleDocumentFocus:Q,handleDocumentMousedown:Z,id:oe,props:{autoFocus:o,enforceFocus:x,hasBackdrop:b,usePortal:L}}},[o,te,x,Q,Z,b,oe,L]);var le=A.useCallback(function(be){be.key==="Escape"&&s&&(d==null||d(be),be.stopPropagation(),be.preventDefault())},[s,d]),ce=A.useCallback(function(){if(ae.current!=null){var be=j();(be==null?void 0:be.handleDocumentFocus)!==void 0&&document.removeEventListener("focus",be.handleDocumentFocus,!0),$(ae.current),o&&(R(!0),te()),x&&document.addEventListener("focus",Q,!0),c&&!b&&document.addEventListener("mousedown",Z),a1(F,kc(mr(D)))}},[o,te,c,x,j,Z,Q,b,$]),de=A.useCallback(function(){var be;document.removeEventListener("focus",Q,!0),document.removeEventListener("mousedown",Z),k(oe);var ze=j();ze!==void 0&&ze.props.autoFocus&&ze.props.enforceFocus&&((be=ze.bringFocusInsideOverlay)===null||be===void 0||be.call(ze),ze.handleDocumentFocus!==void 0&&document.addEventListener("focus",ze.handleDocumentFocus,!0))},[k,j,Q,Z,oe]),pe=(n=DL(m))!==null&&n!==void 0?n:!1;A.useEffect(function(){m&&Y(!0),!pe&&m&&ce(),pe&&!m&&de()},[m,ce,de,pe]),A.useEffect(function(){return function(){m&&de()}},[]);var fe=A.useCallback(function(be){var ze=mr(F);T&&ze instanceof HTMLElement&&ze.focus(),v==null||v(be)},[v,T]),xe=A.useCallback(function(){},[]),Ee=A.useCallback(function(be){if(f!=null)return f;if(g!=null){var ze=be.key;if(ze==null){hn("production")||console.error(VP);return}return g[ze]}},[f,g]),$e=A.useCallback(function(be){if(be==null||lh(be))return null;var ze=Ee(be),We=ch(be)?be.props:{},pt=sh(be,"span",{className:Be(We.className,kS),ref:ze===void 0?X:void 0,tabIndex:x||o?0:void 0}),xt=ze??X;return A.createElement(e5,{addEndListener:xe,classNames:P,nodeRef:xt,onEntered:fi(p,xt),onEntering:fi(C,xt),onExited:fi(fe,xt),onExiting:fi(u,xt),timeout:O},pt)},[o,x,Ee,xe,fe,u,p,C,O,P]),ke=A.useCallback(function(be){var ze;c&&(d==null||d(be)),x&&te(),(ze=l==null?void 0:l.onMouseDown)===null||ze===void 0||ze.call(l,be)},[l,te,c,x,d]),Ve=A.useCallback(function(be,ze){return A.createElement(e5,{addEndListener:xe,classNames:P,key:be,nodeRef:ze.ref,timeout:O,unmountOnExit:!0},A.createElement("div",K({tabIndex:0},ze)))},[xe,O,P]),Ke=A.useCallback(function(be){if(!(!x||I)){var ze=mr(D),We=mr(J);be.relatedTarget!=null&&(ze!=null&&ze.contains(be.relatedTarget))&&be.relatedTarget!==We&&(We==null||We.focus({preventScroll:!0}))}},[x,I]),Fe=A.useCallback(function(be){var ze;if(x&&be.shiftKey&&be.key==="Tab"){var We=l5(D).pop();We!=null?We.focus():(ze=mr(J))===null||ze===void 0||ze.focus({preventScroll:!0})}},[x]),Ze=A.useCallback(function(be){var ze,We=mr(ee);if(be.relatedTarget!=null&&(!((ze=mr(D))===null||ze===void 0)&&ze.contains(be.relatedTarget))&&be.relatedTarget!==We){var pt=l5(D).shift();!I&&pt!=null&&pt!==be.relatedTarget?pt.focus():We==null||We.focus({preventScroll:!0})}else{var xt=l5(D).pop();xt!=null?xt.focus():We==null||We.focus({preventScroll:!0})}},[I]),dt=A.useMemo(function(){return b&&m?A.createElement(e5,{classNames:P,key:"__backdrop",nodeRef:W,timeout:O,addEndListener:xe},A.createElement("div",K({},l,{className:Be(AS,i,l==null?void 0:l.className),onMouseDown:ke,ref:W}))):null},[i,l,ke,xe,b,m,O,P]);if(h&&!q)return null;var nt=m?(a=A.Children.map(w,$e))!==null&&a!==void 0?a:[]:[];dt!==null&&nt.unshift(dt),m&&(o||x)&&nt.length>0&&(nt.unshift(Ve("__start",{className:eh,onFocus:Ke,onKeyDown:Fe,ref:ee})),x&&nt.push(Ve("__end",{className:th,onFocus:Ze,ref:J})));var Je=A.createElement("div",{"aria-live":"polite",className:Be(k1,(t={},t[bo]=m,t[HS]=!L,t),y),onKeyDown:le,ref:D},A.createElement(ML,{appear:!0,component:null},nt));return L?A.createElement(s5,{className:M,container:S},Je):Je});di.defaultProps={autoFocus:!0,backdropProps:{},canEscapeKeyClose:!0,canOutsideClickClose:!0,enforceFocus:!0,hasBackdrop:!0,isOpen:!1,lazy:ah(),shouldReturnFocusOnClose:!0,transitionDuration:300,transitionName:k1,usePortal:!0},di.displayName="".concat(rt,".Overlay2");function WL(e){var r=e.childRef,t=e.childRefs,n=e.children,a=A.Children.count(n);A.useEffect(function(){hn("production")||(r!=null&&t!=null&&console.error(EP),a>1&&t==null&&console.error(LP))},[r,t,a])}function UL(){var e=LL();return"".concat(di.displayName,"-").concat(e)}function fi(e,r){return function(){(r==null?void 0:r.current)!=null&&(e==null||e(r.current))}}var c5=function(e){St(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.render=function(){var t,n=this.props,a=n.className,o=n.children,i=n.large,l=n.small,s=n.ulRef,c=Ge(n,["className","children","large","small","ulRef"]),f=Be(a,Qv,(t={},t[or]=i,t[pn]=l,t));return A.createElement("ul",K({role:"menu"},c,{className:f,ref:s}),o)},r.displayName="".concat(rt,".Menu"),r}(gr),Vh=A.createContext(),Ah=A.createContext();function GL(e){var r=e.children,t=A.useState(null),n=t[0],a=t[1],o=A.useRef(!1);A.useEffect(function(){return function(){o.current=!0}},[]);var i=A.useCallback(function(l){o.current||a(l)},[]);return A.createElement(Vh.Provider,{value:n},A.createElement(Ah.Provider,{value:i},r))}var kh=function(r){return Array.isArray(r)?r[0]:r},Hh=function(r){if(typeof r=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return r.apply(void 0,n)}},u5=function(r,t){if(typeof r=="function")return Hh(r,t);r!=null&&(r.current=t)},Nh=function(r){return r.reduce(function(t,n){var a=n[0],o=n[1];return t[a]=o,t},{})},Rh=typeof window<"u"&&window.document&&window.document.createElement?A.useLayoutEffect:A.useEffect,Zt="top",br="bottom",yr="right",Jt="left",d5="auto",So=[Zt,br,yr,Jt],sa="start",Po="end",BL="clippingParents",jh="viewport",_o="popper",qL="reference",Dh=So.reduce(function(e,r){return e.concat([r+"-"+sa,r+"-"+Po])},[]),Ih=[].concat(So,[d5]).reduce(function(e,r){return e.concat([r,r+"-"+sa,r+"-"+Po])},[]),YL="beforeRead",KL="read",XL="afterRead",ZL="beforeMain",JL="main",QL="afterMain",eV="beforeWrite",tV="write",rV="afterWrite",nV=[YL,KL,XL,ZL,JL,QL,eV,tV,rV];function Wr(e){return e?(e.nodeName||"").toLowerCase():null}function ir(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function Cn(e){var r=ir(e).Element;return e instanceof r||e instanceof Element}function wr(e){var r=ir(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function f5(e){if(typeof ShadowRoot>"u")return!1;var r=ir(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function aV(e){var r=e.state;Object.keys(r.elements).forEach(function(t){var n=r.styles[t]||{},a=r.attributes[t]||{},o=r.elements[t];!wr(o)||!Wr(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function oV(e){var r=e.state,t={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,t.popper),r.styles=t,r.elements.arrow&&Object.assign(r.elements.arrow.style,t.arrow),function(){Object.keys(r.elements).forEach(function(n){var a=r.elements[n],o=r.attributes[n]||{},i=Object.keys(r.styles.hasOwnProperty(n)?r.styles[n]:t[n]),l=i.reduce(function(s,c){return s[c]="",s},{});!wr(a)||!Wr(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}const iV={name:"applyStyles",enabled:!0,phase:"write",fn:aV,effect:oV,requires:["computeStyles"]};function Ur(e){return e.split("-")[0]}var Mn=Math.max,pi=Math.min,ca=Math.round;function p5(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function $h(){return!/^((?!chrome|android).)*safari/i.test(p5())}function ua(e,r,t){r===void 0&&(r=!1),t===void 0&&(t=!1);var n=e.getBoundingClientRect(),a=1,o=1;r&&wr(e)&&(a=e.offsetWidth>0&&ca(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ca(n.height)/e.offsetHeight||1);var i=Cn(e)?ir(e):window,l=i.visualViewport,s=!$h()&&t,c=(n.left+(s&&l?l.offsetLeft:0))/a,f=(n.top+(s&&l?l.offsetTop:0))/o,g=n.width/a,w=n.height/o;return{width:g,height:w,top:f,right:c+g,bottom:f+w,left:c,x:c,y:f}}function v5(e){var r=ua(e),t=e.offsetWidth,n=e.offsetHeight;return Math.abs(r.width-t)<=1&&(t=r.width),Math.abs(r.height-n)<=1&&(n=r.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:n}}function Fh(e,r){var t=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(t&&f5(t)){var n=r;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function i1(e){return ir(e).getComputedStyle(e)}function lV(e){return["table","td","th"].indexOf(Wr(e))>=0}function R1(e){return((Cn(e)?e.ownerDocument:e.document)||window.document).documentElement}function vi(e){return Wr(e)==="html"?e:e.assignedSlot||e.parentNode||(f5(e)?e.host:null)||R1(e)}function Wh(e){return!wr(e)||i1(e).position==="fixed"?null:e.offsetParent}function sV(e){var r=/firefox/i.test(p5()),t=/Trident/i.test(p5());if(t&&wr(e)){var n=i1(e);if(n.position==="fixed")return null}var a=vi(e);for(f5(a)&&(a=a.host);wr(a)&&["html","body"].indexOf(Wr(a))<0;){var o=i1(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||r&&o.willChange==="filter"||r&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Eo(e){for(var r=ir(e),t=Wh(e);t&&lV(t)&&i1(t).position==="static";)t=Wh(t);return t&&(Wr(t)==="html"||Wr(t)==="body"&&i1(t).position==="static")?r:t||sV(e)||r}function h5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lo(e,r,t){return Mn(e,pi(r,t))}function cV(e,r,t){var n=Lo(e,r,t);return n>t?t:n}function Uh(){return{top:0,right:0,bottom:0,left:0}}function Gh(e){return Object.assign({},Uh(),e)}function Bh(e,r){return r.reduce(function(t,n){return t[n]=e,t},{})}var uV=function(r,t){return r=typeof r=="function"?r(Object.assign({},t.rects,{placement:t.placement})):r,Gh(typeof r!="number"?r:Bh(r,So))};function dV(e){var r,t=e.state,n=e.name,a=e.options,o=t.elements.arrow,i=t.modifiersData.popperOffsets,l=Ur(t.placement),s=h5(l),c=[Jt,yr].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!i)){var g=uV(a.padding,t),w=v5(o),y=s==="y"?Zt:Jt,x=s==="y"?br:yr,b=t.rects.reference[f]+t.rects.reference[s]-i[s]-t.rects.popper[f],m=i[s]-t.rects.reference[s],h=Eo(o),d=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,v=b/2-m/2,u=g[y],p=d-w[f]-g[x],C=d/2-w[f]/2+v,M=Lo(u,C,p),S=s;t.modifiersData[n]=(r={},r[S]=M,r.centerOffset=M-C,r)}}function fV(e){var r=e.state,t=e.options,n=t.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Fh(r.elements.popper,a)&&(r.elements.arrow=a))}const pV={name:"arrow",enabled:!0,phase:"main",fn:dV,effect:fV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function da(e){return e.split("-")[1]}var vV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hV(e,r){var t=e.x,n=e.y,a=r.devicePixelRatio||1;return{x:ca(t*a)/a||0,y:ca(n*a)/a||0}}function qh(e){var r,t=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,g=e.isFixed,w=i.x,y=w===void 0?0:w,x=i.y,b=x===void 0?0:x,m=typeof f=="function"?f({x:y,y:b}):{x:y,y:b};y=m.x,b=m.y;var h=i.hasOwnProperty("x"),d=i.hasOwnProperty("y"),v=Jt,u=Zt,p=window;if(c){var C=Eo(t),M="clientHeight",S="clientWidth";if(C===ir(t)&&(C=R1(t),i1(C).position!=="static"&&l==="absolute"&&(M="scrollHeight",S="scrollWidth")),C=C,a===Zt||(a===Jt||a===yr)&&o===Po){u=br;var T=g&&C===p&&p.visualViewport?p.visualViewport.height:C[M];b-=T-n.height,b*=s?1:-1}if(a===Jt||(a===Zt||a===br)&&o===Po){v=yr;var O=g&&C===p&&p.visualViewport?p.visualViewport.width:C[S];y-=O-n.width,y*=s?1:-1}}var P=Object.assign({position:l},c&&vV),L=f===!0?hV({x:y,y:b},ir(t)):{x:y,y:b};if(y=L.x,b=L.y,s){var V;return Object.assign({},P,(V={},V[u]=d?"0":"",V[v]=h?"0":"",V.transform=(p.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",V))}return Object.assign({},P,(r={},r[u]=d?b+"px":"",r[v]=h?y+"px":"",r.transform="",r))}function mV(e){var r=e.state,t=e.options,n=t.gpuAcceleration,a=n===void 0?!0:n,o=t.adaptive,i=o===void 0?!0:o,l=t.roundOffsets,s=l===void 0?!0:l,c={placement:Ur(r.placement),variation:da(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,qh(Object.assign({},c,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:i,roundOffsets:s})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,qh(Object.assign({},c,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const gV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mV,data:{}};var hi={passive:!0};function bV(e){var r=e.state,t=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,l=i===void 0?!0:i,s=ir(r.elements.popper),c=[].concat(r.scrollParents.reference,r.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",t.update,hi)}),l&&s.addEventListener("resize",t.update,hi),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",t.update,hi)}),l&&s.removeEventListener("resize",t.update,hi)}}const yV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bV,data:{}};var wV={left:"right",right:"left",bottom:"top",top:"bottom"};function mi(e){return e.replace(/left|right|bottom|top/g,function(r){return wV[r]})}var xV={start:"end",end:"start"};function Yh(e){return e.replace(/start|end/g,function(r){return xV[r]})}function m5(e){var r=ir(e),t=r.pageXOffset,n=r.pageYOffset;return{scrollLeft:t,scrollTop:n}}function g5(e){return ua(R1(e)).left+m5(e).scrollLeft}function CV(e,r){var t=ir(e),n=R1(e),a=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;var c=$h();(c||!c&&r==="fixed")&&(l=a.offsetLeft,s=a.offsetTop)}return{width:o,height:i,x:l+g5(e),y:s}}function MV(e){var r,t=R1(e),n=m5(e),a=(r=e.ownerDocument)==null?void 0:r.body,o=Mn(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Mn(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+g5(e),s=-n.scrollTop;return i1(a||t).direction==="rtl"&&(l+=Mn(t.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:s}}function b5(e){var r=i1(e),t=r.overflow,n=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+n)}function Kh(e){return["html","body","#document"].indexOf(Wr(e))>=0?e.ownerDocument.body:wr(e)&&b5(e)?e:Kh(vi(e))}function Vo(e,r){var t;r===void 0&&(r=[]);var n=Kh(e),a=n===((t=e.ownerDocument)==null?void 0:t.body),o=ir(n),i=a?[o].concat(o.visualViewport||[],b5(n)?n:[]):n,l=r.concat(i);return a?l:l.concat(Vo(vi(i)))}function y5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zV(e,r){var t=ua(e,!1,r==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Xh(e,r,t){return r===jh?y5(CV(e,t)):Cn(r)?zV(r,t):y5(MV(R1(e)))}function TV(e){var r=Vo(vi(e)),t=["absolute","fixed"].indexOf(i1(e).position)>=0,n=t&&wr(e)?Eo(e):e;return Cn(n)?r.filter(function(a){return Cn(a)&&Fh(a,n)&&Wr(a)!=="body"}):[]}function OV(e,r,t,n){var a=r==="clippingParents"?TV(e):[].concat(r),o=[].concat(a,[t]),i=o[0],l=o.reduce(function(s,c){var f=Xh(e,c,n);return s.top=Mn(f.top,s.top),s.right=pi(f.right,s.right),s.bottom=pi(f.bottom,s.bottom),s.left=Mn(f.left,s.left),s},Xh(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Zh(e){var r=e.reference,t=e.element,n=e.placement,a=n?Ur(n):null,o=n?da(n):null,i=r.x+r.width/2-t.width/2,l=r.y+r.height/2-t.height/2,s;switch(a){case Zt:s={x:i,y:r.y-t.height};break;case br:s={x:i,y:r.y+r.height};break;case yr:s={x:r.x+r.width,y:l};break;case Jt:s={x:r.x-t.width,y:l};break;default:s={x:r.x,y:r.y}}var c=a?h5(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case sa:s[c]=s[c]-(r[f]/2-t[f]/2);break;case Po:s[c]=s[c]+(r[f]/2-t[f]/2);break}}return s}function Ao(e,r){r===void 0&&(r={});var t=r,n=t.placement,a=n===void 0?e.placement:n,o=t.strategy,i=o===void 0?e.strategy:o,l=t.boundary,s=l===void 0?BL:l,c=t.rootBoundary,f=c===void 0?jh:c,g=t.elementContext,w=g===void 0?_o:g,y=t.altBoundary,x=y===void 0?!1:y,b=t.padding,m=b===void 0?0:b,h=Gh(typeof m!="number"?m:Bh(m,So)),d=w===_o?qL:_o,v=e.rects.popper,u=e.elements[x?d:w],p=OV(Cn(u)?u:u.contextElement||R1(e.elements.popper),s,f,i),C=ua(e.elements.reference),M=Zh({reference:C,element:v,strategy:"absolute",placement:a}),S=y5(Object.assign({},v,M)),T=w===_o?S:C,O={top:p.top-T.top+h.top,bottom:T.bottom-p.bottom+h.bottom,left:p.left-T.left+h.left,right:T.right-p.right+h.right},P=e.modifiersData.offset;if(w===_o&&P){var L=P[a];Object.keys(O).forEach(function(V){var k=[yr,br].indexOf(V)>=0?1:-1,j=[Zt,br].indexOf(V)>=0?"y":"x";O[V]+=L[j]*k})}return O}function SV(e,r){r===void 0&&(r={});var t=r,n=t.placement,a=t.boundary,o=t.rootBoundary,i=t.padding,l=t.flipVariations,s=t.allowedAutoPlacements,c=s===void 0?Ih:s,f=da(n),g=f?l?Dh:Dh.filter(function(x){return da(x)===f}):So,w=g.filter(function(x){return c.indexOf(x)>=0});w.length===0&&(w=g);var y=w.reduce(function(x,b){return x[b]=Ao(e,{placement:b,boundary:a,rootBoundary:o,padding:i})[Ur(b)],x},{});return Object.keys(y).sort(function(x,b){return y[x]-y[b]})}function PV(e){if(Ur(e)===d5)return[];var r=mi(e);return[Yh(e),r,Yh(r)]}function _V(e){var r=e.state,t=e.options,n=e.name;if(!r.modifiersData[n]._skip){for(var a=t.mainAxis,o=a===void 0?!0:a,i=t.altAxis,l=i===void 0?!0:i,s=t.fallbackPlacements,c=t.padding,f=t.boundary,g=t.rootBoundary,w=t.altBoundary,y=t.flipVariations,x=y===void 0?!0:y,b=t.allowedAutoPlacements,m=r.options.placement,h=Ur(m),d=h===m,v=s||(d||!x?[mi(m)]:PV(m)),u=[m].concat(v).reduce(function(F,D){return F.concat(Ur(D)===d5?SV(r,{placement:D,boundary:f,rootBoundary:g,padding:c,flipVariations:x,allowedAutoPlacements:b}):D)},[]),p=r.rects.reference,C=r.rects.popper,M=new Map,S=!0,T=u[0],O=0;O<u.length;O++){var P=u[O],L=Ur(P),V=da(P)===sa,k=[Zt,br].indexOf(L)>=0,j=k?"width":"height",U=Ao(r,{placement:P,boundary:f,rootBoundary:g,altBoundary:w,padding:c}),$=k?V?yr:Jt:V?br:Zt;p[j]>C[j]&&($=mi($));var B=mi($),I=[];if(o&&I.push(U[L]<=0),l&&I.push(U[$]<=0,U[B]<=0),I.every(function(F){return F})){T=P,S=!1;break}M.set(P,I)}if(S)for(var R=x?3:1,G=function(D){var W=u.find(function(ee){var J=M.get(ee);if(J)return J.slice(0,D).every(function(X){return X})});if(W)return T=W,"break"},q=R;q>0;q--){var Y=G(q);if(Y==="break")break}r.placement!==T&&(r.modifiersData[n]._skip=!0,r.placement=T,r.reset=!0)}}const EV={name:"flip",enabled:!0,phase:"main",fn:_V,requiresIfExists:["offset"],data:{_skip:!1}};function Jh(e,r,t){return t===void 0&&(t={x:0,y:0}),{top:e.top-r.height-t.y,right:e.right-r.width+t.x,bottom:e.bottom-r.height+t.y,left:e.left-r.width-t.x}}function Qh(e){return[Zt,yr,br,Jt].some(function(r){return e[r]>=0})}function LV(e){var r=e.state,t=e.name,n=r.rects.reference,a=r.rects.popper,o=r.modifiersData.preventOverflow,i=Ao(r,{elementContext:"reference"}),l=Ao(r,{altBoundary:!0}),s=Jh(i,n),c=Jh(l,a,o),f=Qh(s),g=Qh(c);r.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:g},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":g})}const VV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LV};function AV(e,r,t){var n=Ur(e),a=[Jt,Zt].indexOf(n)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},r,{placement:e})):t,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Jt,yr].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function kV(e){var r=e.state,t=e.options,n=e.name,a=t.offset,o=a===void 0?[0,0]:a,i=Ih.reduce(function(f,g){return f[g]=AV(g,r.rects,o),f},{}),l=i[r.placement],s=l.x,c=l.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=s,r.modifiersData.popperOffsets.y+=c),r.modifiersData[n]=i}const HV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kV};function NV(e){var r=e.state,t=e.name;r.modifiersData[t]=Zh({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const RV={name:"popperOffsets",enabled:!0,phase:"read",fn:NV,data:{}};function jV(e){return e==="x"?"y":"x"}function DV(e){var r=e.state,t=e.options,n=e.name,a=t.mainAxis,o=a===void 0?!0:a,i=t.altAxis,l=i===void 0?!1:i,s=t.boundary,c=t.rootBoundary,f=t.altBoundary,g=t.padding,w=t.tether,y=w===void 0?!0:w,x=t.tetherOffset,b=x===void 0?0:x,m=Ao(r,{boundary:s,rootBoundary:c,padding:g,altBoundary:f}),h=Ur(r.placement),d=da(r.placement),v=!d,u=h5(h),p=jV(u),C=r.modifiersData.popperOffsets,M=r.rects.reference,S=r.rects.popper,T=typeof b=="function"?b(Object.assign({},r.rects,{placement:r.placement})):b,O=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,L={x:0,y:0};if(C){if(o){var V,k=u==="y"?Zt:Jt,j=u==="y"?br:yr,U=u==="y"?"height":"width",$=C[u],B=$+m[k],I=$-m[j],R=y?-S[U]/2:0,G=d===sa?M[U]:S[U],q=d===sa?-S[U]:-M[U],Y=r.elements.arrow,F=y&&Y?v5(Y):{width:0,height:0},D=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Uh(),W=D[k],ee=D[j],J=Lo(0,M[U],F[U]),X=v?M[U]/2-R-J-W-O.mainAxis:G-J-W-O.mainAxis,te=v?-M[U]/2+R+J+ee+O.mainAxis:q+J+ee+O.mainAxis,oe=r.elements.arrow&&Eo(r.elements.arrow),ae=oe?u==="y"?oe.clientTop||0:oe.clientLeft||0:0,Q=(V=P==null?void 0:P[u])!=null?V:0,Z=$+X-Q-ae,re=$+te-Q,le=Lo(y?pi(B,Z):B,$,y?Mn(I,re):I);C[u]=le,L[u]=le-$}if(l){var ce,de=u==="x"?Zt:Jt,pe=u==="x"?br:yr,fe=C[p],xe=p==="y"?"height":"width",Ee=fe+m[de],$e=fe-m[pe],ke=[Zt,Jt].indexOf(h)!==-1,Ve=(ce=P==null?void 0:P[p])!=null?ce:0,Ke=ke?Ee:fe-M[xe]-S[xe]-Ve+O.altAxis,Fe=ke?fe+M[xe]+S[xe]-Ve-O.altAxis:$e,Ze=y&&ke?cV(Ke,fe,Fe):Lo(y?Ke:Ee,fe,y?Fe:$e);C[p]=Ze,L[p]=Ze-fe}r.modifiersData[n]=L}}const IV={name:"preventOverflow",enabled:!0,phase:"main",fn:DV,requiresIfExists:["offset"]};function $V(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FV(e){return e===ir(e)||!wr(e)?m5(e):$V(e)}function WV(e){var r=e.getBoundingClientRect(),t=ca(r.width)/e.offsetWidth||1,n=ca(r.height)/e.offsetHeight||1;return t!==1||n!==1}function UV(e,r,t){t===void 0&&(t=!1);var n=wr(r),a=wr(r)&&WV(r),o=R1(r),i=ua(e,a,t),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!t)&&((Wr(r)!=="body"||b5(o))&&(l=FV(r)),wr(r)?(s=ua(r,!0),s.x+=r.clientLeft,s.y+=r.clientTop):o&&(s.x=g5(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function GV(e){var r=new Map,t=new Set,n=[];e.forEach(function(o){r.set(o.name,o)});function a(o){t.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!t.has(l)){var s=r.get(l);s&&a(s)}}),n.push(o)}return e.forEach(function(o){t.has(o.name)||a(o)}),n}function BV(e){var r=GV(e);return nV.reduce(function(t,n){return t.concat(r.filter(function(a){return a.phase===n}))},[])}function qV(e){var r;return function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(e())})})),r}}function YV(e){var r=e.reduce(function(t,n){var a=t[n.name];return t[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,t},{});return Object.keys(r).map(function(t){return r[t]})}var e6={placement:"bottom",modifiers:[],strategy:"absolute"};function t6(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return!r.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function KV(e){e===void 0&&(e={});var r=e,t=r.defaultModifiers,n=t===void 0?[]:t,a=r.defaultOptions,o=a===void 0?e6:a;return function(l,s,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},e6,o),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},g=[],w=!1,y={state:f,setOptions:function(h){var d=typeof h=="function"?h(f.options):h;b(),f.options=Object.assign({},o,f.options,d),f.scrollParents={reference:Cn(l)?Vo(l):l.contextElement?Vo(l.contextElement):[],popper:Vo(s)};var v=BV(YV([].concat(n,f.options.modifiers)));return f.orderedModifiers=v.filter(function(u){return u.enabled}),x(),y.update()},forceUpdate:function(){if(!w){var h=f.elements,d=h.reference,v=h.popper;if(t6(d,v)){f.rects={reference:UV(d,Eo(v),f.options.strategy==="fixed"),popper:v5(v)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(O){return f.modifiersData[O.name]=Object.assign({},O.data)});for(var u=0;u<f.orderedModifiers.length;u++){if(f.reset===!0){f.reset=!1,u=-1;continue}var p=f.orderedModifiers[u],C=p.fn,M=p.options,S=M===void 0?{}:M,T=p.name;typeof C=="function"&&(f=C({state:f,options:S,name:T,instance:y})||f)}}}},update:qV(function(){return new Promise(function(m){y.forceUpdate(),m(f)})}),destroy:function(){b(),w=!0}};if(!t6(l,s))return y;y.setOptions(c).then(function(m){!w&&c.onFirstUpdate&&c.onFirstUpdate(m)});function x(){f.orderedModifiers.forEach(function(m){var h=m.name,d=m.options,v=d===void 0?{}:d,u=m.effect;if(typeof u=="function"){var p=u({state:f,name:h,instance:y,options:v}),C=function(){};g.push(p||C)}})}function b(){g.forEach(function(m){return m()}),g=[]}return y}}var XV=[yV,RV,gV,iV,HV,EV,IV,pV,VV],ZV=KV({defaultModifiers:XV}),JV=typeof Element<"u",QV=typeof Map=="function",eA=typeof Set=="function",tA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gi(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var t,n,a;if(Array.isArray(e)){if(t=e.length,t!=r.length)return!1;for(n=t;n--!==0;)if(!gi(e[n],r[n]))return!1;return!0}var o;if(QV&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!r.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!gi(n.value[1],r.get(n.value[0])))return!1;return!0}if(eA&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!r.has(n.value[0]))return!1;return!0}if(tA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(t=e.length,t!=r.length)return!1;for(n=t;n--!==0;)if(e[n]!==r[n])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(a=Object.keys(e),t=a.length,t!==Object.keys(r).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;if(JV&&e instanceof Element)return!1;for(n=t;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!gi(e[a[n]],r[a[n]]))return!1;return!0}return e!==e&&r!==r}var rA=function(r,t){try{return gi(r,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const nA=ma(rA);var aA=[],oA=function(r,t,n){n===void 0&&(n={});var a=A.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||aA},i=A.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=i[0],s=i[1],c=A.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var x=y.state,b=Object.keys(x.elements);Li.flushSync(function(){s({styles:Nh(b.map(function(m){return[m,x.styles[m]||{}]})),attributes:Nh(b.map(function(m){return[m,x.attributes[m]]}))})})},requires:["computeStyles"]}},[]),f=A.useMemo(function(){var w={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return nA(a.current,w)?a.current||w:(a.current=w,w)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),g=A.useRef();return Rh(function(){g.current&&g.current.setOptions(f)},[f]),Rh(function(){if(!(r==null||t==null)){var w=n.createPopper||ZV,y=w(r,t,f);return g.current=y,function(){y.destroy(),g.current=null}}},[r,t,n.createPopper]),{state:g.current?g.current.state:null,styles:l.styles,attributes:l.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}},iA=function(){},lA=function(){return Promise.resolve(null)},sA=[];function cA(e){var r=e.placement,t=r===void 0?"bottom":r,n=e.strategy,a=n===void 0?"absolute":n,o=e.modifiers,i=o===void 0?sA:o,l=e.referenceElement,s=e.onFirstUpdate,c=e.innerRef,f=e.children,g=A.useContext(Vh),w=A.useState(null),y=w[0],x=w[1],b=A.useState(null),m=b[0],h=b[1];A.useEffect(function(){u5(c,y)},[c,y]);var d=A.useMemo(function(){return{placement:t,strategy:a,onFirstUpdate:s,modifiers:[].concat(i,[{name:"arrow",enabled:m!=null,options:{element:m}}])}},[t,a,s,i,m]),v=oA(l||g,y,d),u=v.state,p=v.styles,C=v.forceUpdate,M=v.update,S=A.useMemo(function(){return{ref:x,style:p.popper,placement:u?u.placement:t,hasPopperEscaped:u&&u.modifiersData.hide?u.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:u&&u.modifiersData.hide?u.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:p.arrow,ref:h},forceUpdate:C||iA,update:M||lA}},[x,h,t,u,p,M,C]);return kh(f)(S)}var uA=process.env.NODE_ENV!=="production",r6=function(){};if(uA){var dA=function(r,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var a=1;a<n;a++)t[a-1]=arguments[a];var o=0,i="Warning: "+r.replace(/%s/g,function(){return t[o++]});typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}};r6=function(e,r,t){var n=arguments.length;t=new Array(n>2?n-2:0);for(var a=2;a<n;a++)t[a-2]=arguments[a];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||dA.apply(null,[r].concat(t))}}var fA=r6;const pA=ma(fA);function vA(e){var r=e.children,t=e.innerRef,n=A.useContext(Ah),a=A.useCallback(function(o){u5(t,o),Hh(n,o)},[t,n]);return A.useEffect(function(){return function(){return u5(t,null)}},[]),A.useEffect(function(){pA(!!n,"`Reference` should not be used outside of a `Manager` component.")},[n]),kh(r)({ref:a})}var n6=function(e){St(r,e);function r(){var t,n=e.apply(this,arguments)||this;return n.targetRef=(t=n.props.targetRef)!==null&&t!==void 0?t:A.createRef(),n.prevElement=void 0,n}return r.prototype.render=function(){var t=A.Children.only(this.props.children);return this.props.targetRef!==void 0?t:A.cloneElement(t,{ref:this.targetRef})},r.prototype.componentDidMount=function(){var t=this;this.observer=globalThis.ResizeObserver!=null?new ResizeObserver(function(n){var a,o;return(o=(a=t.props).onResize)===null||o===void 0?void 0:o.call(a,n)}):void 0,this.observeElement()},r.prototype.componentDidUpdate=function(t){this.observeElement(this.props.observeParents!==t.observeParents)},r.prototype.componentWillUnmount=function(){var t;(t=this.observer)===null||t===void 0||t.disconnect(),this.prevElement=void 0},r.prototype.observeElement=function(t){if(t===void 0&&(t=!1),this.observer!==void 0){if(!(this.targetRef.current instanceof Element)){this.observer.disconnect();return}if(!(this.targetRef.current===this.prevElement&&!t)&&(this.observer.disconnect(),this.prevElement=this.targetRef.current,this.observer.observe(this.targetRef.current),this.props.observeParents))for(var n=this.targetRef.current.parentElement;n!=null;)this.observer.observe(n),n=n.parentElement}},r.displayName="".concat(rt,".ResizeSensor"),r}(gr);function bi(e){return e.split("-")[0]}function a6(e){return["left","right"].indexOf(e)!==-1}function yi(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function o6(e){var r=e.split("-")[1];switch(r){case"start":return"left";case"end":return"right";default:return"center"}}function hA(e,r){var t=bi(e);if(r===void 0)return a6(t)?"".concat(yi(t)," ").concat(o6(t)):"".concat(o6(t)," ").concat(yi(t));var n=15;return a6(t)?"".concat(yi(t)," ").concat(parseInt(r.top,10)+n,"px"):"".concat(parseInt(r.left,10)+n,"px ").concat(yi(t))}var mA="M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z",gA="M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z",bA=4,wi=30,yA=22;function wA(e){if(e==null)return 0;switch(bi(e)){case"top":return-90;case"left":return 180;case"bottom":return 90;default:return 0}}function xA(e){var r=wi/2-bA;switch(bi(e)){case"top":return{bottom:-r};case"left":return{right:-r};case"bottom":return{top:-r};default:return{left:-r}}}var i6=function(e){var r=e.arrowProps,t=r.ref,n=r.style,a=e.placement;return A.createElement("div",{"aria-hidden":!0,className:Ec,"data-popper-arrow":!0,ref:t,style:K(K({},n),xA(a))},A.createElement("svg",{viewBox:"0 0 ".concat(wi," ").concat(wi),style:{transform:"rotate(".concat(wA(a),"deg)")}},A.createElement("path",{className:Ec+"-border",d:mA}),A.createElement("path",{className:Ec+"-fill",d:gA})))};i6.displayName="".concat(rt,".PopoverArrow");var CA=function(){return null},l6=A.createContext([{},CA]),MA=function(e,r){switch(r.type){case"FORCE_DISABLED_STATE":return{forceDisabled:!0};case"RESET_DISABLED_STATE":return{};default:return e}},zA=function(e){var r=e.children,t=e.forceDisable,n=A.useReducer(MA,{}),a=n[0],o=n[1],i=A.useMemo(function(){return[a,o]},[a,o]);return A.useEffect(function(){o(t?{type:"FORCE_DISABLED_STATE"}:{type:"RESET_DISABLED_STATE"})},[t]),A.createElement(l6.Provider,{value:i},typeof r=="function"?r(a):r)},TA=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.popoverRef=A.createRef(),t.renderPopover=function(n){var a,o,i=t.props,l=i.children,s=i.compact,c=i.disabled,f=i.intent,g=i.popoverClassName,w=Ge(i,["children","compact","disabled","intent","popoverClassName"]),y=Be(eP,Ft(f),g,(a={},a[Bv]=s,a));return A.createElement(w5,K({modifiers:{arrow:{enabled:!t.props.minimal},offset:{options:{offset:[0,yA/2]}}}},w,{autoFocus:!1,canEscapeKeyClose:!1,disabled:(o=n.forceDisabled)!==null&&o!==void 0?o:c,enforceFocus:!1,lazy:!0,popoverClassName:y,portalContainer:t.props.portalContainer,ref:t.popoverRef}),l)},t}return r.prototype.render=function(){var t=this;return A.createElement(l6.Consumer,null,function(n){var a=n[0];return A.createElement(zA,K({},a),t.renderPopover)})},r.prototype.reposition=function(){var t;(t=this.popoverRef.current)===null||t===void 0||t.reposition()},r.displayName="".concat(rt,".Tooltip"),r.defaultProps={compact:!1,hoverCloseDelay:0,hoverOpenDelay:100,interactionKind:"hover-target",minimal:!1,transitionDuration:100},r}(gr),OA={enabled:!0,name:"matchReferenceWidth",phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var r=e.state;r.styles.popper.width="".concat(r.rects.reference.width,"px")},effect:function(e){var r=e.state,t=r.elements.reference.getBoundingClientRect().width;r.elements.popper.style.width="".concat(t,"px")}},xr=K(K({},A1),{AUTO:"auto",AUTO_END:"auto-end",AUTO_START:"auto-start"});function SA(e){switch(e){case xr.TOP_LEFT:return"top-start";case xr.TOP:return"top";case xr.TOP_RIGHT:return"top-end";case xr.RIGHT_TOP:return"right-start";case xr.RIGHT:return"right";case xr.RIGHT_BOTTOM:return"right-end";case xr.BOTTOM_RIGHT:return"bottom-end";case xr.BOTTOM:return"bottom";case xr.BOTTOM_LEFT:return"bottom-start";case xr.LEFT_BOTTOM:return"left-end";case xr.LEFT:return"left";case xr.LEFT_TOP:return"left-start";case"auto":case"auto-start":case"auto-end":return e;default:return PA(e)}}function PA(e){throw new Error("Unexpected position: "+e)}var l1={CLICK:"click",CLICK_TARGET_ONLY:"click-target",HOVER:"hover",HOVER_TARGET_ONLY:"hover-target"},w5=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={hasDarkParent:!1,isClosingViaEscapeKeypress:!1,isOpen:t.getIsOpen(t.props)},t.popoverElement=null,t.popoverRef=mn(t,"popoverElement",t.props.popoverRef),t.targetRef=A.createRef(),t.transitionContainerElement=A.createRef(),t.isMouseInTargetOrPopover=!1,t.lostFocusOnSamePage=!0,t.isControlled=function(){return t.props.isOpen!==void 0},t.isArrowEnabled=function(){var n,a;return!t.props.minimal&&((a=(n=t.props.modifiers)===null||n===void 0?void 0:n.arrow)===null||a===void 0?void 0:a.enabled)!==!1},t.isHoverInteractionKind=function(){return t.props.interactionKind===l1.HOVER||t.props.interactionKind===l1.HOVER_TARGET_ONLY},t.reposition=function(){var n;return(n=t.popperScheduleUpdate)===null||n===void 0?void 0:n.call(t)},t.renderTarget=function(n){var a,o,i,l,s=n.ref,c=t.props,f=c.children,g=c.className,w=c.fill,y=c.openOnTargetFocus,x=c.renderTarget,b=t.state.isOpen,m=t.isControlled(),h=t.isHoverInteractionKind(),d=t.props.targetTagName;w&&(d="div");var v=wo(s,t.targetRef),u=h?{onBlur:t.handleTargetBlur,onContextMenu:t.handleTargetContextMenu,onFocus:t.handleTargetFocus,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave}:{onClick:t.handleTargetClick,onKeyDown:t.handleKeyDown},p=y&&h?0:void 0,C=K({className:Be(g,US,(a={},a[$S]=b,a[ta]=b&&!m&&!h,a)),ref:v},u),M={"aria-expanded":b,"aria-haspopup":t.props.interactionKind===l1.HOVER_TARGET_ONLY?void 0:(i=t.props.popupKind)!==null&&i!==void 0?i:"menu"},S=(o={},o[ta]=b&&!m&&!h,o[Ar]=w,o),T;if(x!==void 0)T=x(K(K(K({},C),M),{className:Be(C.className,S),isOpen:b,tabIndex:p}));else{var O=sh(A.Children.toArray(f)[0]);if(O===void 0)return null;var P=A.cloneElement(O,K(K({},M),{className:Be(O.props.className,S),disabled:b&&HP(O,TA)?!0:O.props.disabled,tabIndex:(l=O.props.tabIndex)!==null&&l!==void 0?l:p})),L=A.createElement(d,K(K({},C),t.props.targetProps),P);T=L}return A.createElement(n6,{targetRef:t.targetRef,onResize:t.reposition},T)},t.renderPopover=function(n){var a,o=t.props,i=o.autoFocus,l=o.enforceFocus,s=o.backdropProps,c=o.canEscapeKeyClose,f=o.hasBackdrop,g=o.interactionKind,w=o.usePortal,y=t.state,x=y.isClosingViaEscapeKeypress,b=y.isOpen,m=hA(n.placement,t.isArrowEnabled()?n.arrowProps.style:void 0);t.popperScheduleUpdate=n.update;var h={onClick:t.handlePopoverClick,onKeyDown:function(C){return yo(C)&&t.handlePopoverClick(C)}};(g===l1.HOVER||!w&&g===l1.HOVER_TARGET_ONLY)&&(h.onMouseEnter=t.handleMouseEnter,h.onMouseLeave=t.handleMouseLeave);var d=bi(n.placement),v=Be(kt,(a={},a[qv]=t.props.inheritDarkTheme&&t.state.hasDarkParent,a[ra]=t.props.minimal,a[Lc]=t.props.captureDismiss,a[IS]=t.props.matchTargetWidth,a[WS]=n.isReferenceHidden===!0,a[FS]=n.hasPopperEscaped===!0,a),"".concat(jS,"-").concat(d),t.props.popoverClassName),u=t.isHoverInteractionKind()?!1:void 0,p=t.isHoverInteractionKind()?!1:x?!0:t.props.shouldReturnFocusOnClose;return A.createElement(di,{autoFocus:i??u,backdropClassName:NS,backdropProps:s,canEscapeKeyClose:c,canOutsideClickClose:g===l1.CLICK,childRef:t.transitionContainerElement,enforceFocus:l,hasBackdrop:f,isOpen:b,lazy:t.props.lazy,onClose:t.handleOverlayClose,onClosed:t.props.onClosed,onClosing:t.props.onClosing,onOpened:t.props.onOpened,onOpening:t.props.onOpening,transitionDuration:t.props.transitionDuration,transitionName:kt,usePortal:w,portalClassName:t.props.portalClassName,portalContainer:t.props.portalContainer,portalStopPropagationEvents:t.props.portalStopPropagationEvents,shouldReturnFocusOnClose:p},A.createElement("div",{className:GS,ref:wo(n.ref,t.transitionContainerElement),style:n.style},A.createElement(n6,{onResize:t.reposition},A.createElement("div",K({className:v,style:{transformOrigin:m},ref:t.popoverRef},h),t.isArrowEnabled()&&A.createElement(i6,{arrowProps:n.arrowProps,placement:n.placement}),A.createElement("div",{className:RS},t.props.content)))))},t.handleTargetFocus=function(n){if(t.props.openOnTargetFocus&&t.isHoverInteractionKind()){if(n.relatedTarget==null&&!t.lostFocusOnSamePage)return;t.handleMouseEnter(n)}},t.handleTargetBlur=function(n){t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(n.relatedTarget!=null?n.relatedTarget!==t.popoverElement&&!t.isElementInPopover(n.relatedTarget)&&t.handleMouseLeave(n):t.handleMouseLeave(n)),t.lostFocusOnSamePage=n.relatedTarget!=null},t.handleTargetContextMenu=function(n){n.defaultPrevented&&t.setOpenState(!1,n)},t.handleMouseEnter=function(n){t.isMouseInTargetOrPopover=!0,!t.props.usePortal&&t.isElementInPopover(n.target)&&t.props.interactionKind===l1.HOVER_TARGET_ONLY&&!t.props.openOnTargetFocus?t.handleMouseLeave(n):t.props.disabled||t.setOpenState(!0,n,t.props.hoverOpenDelay)},t.handleMouseLeave=function(n){t.isMouseInTargetOrPopover=!1,n.persist(),t.setTimeout(function(){t.isMouseInTargetOrPopover||t.setOpenState(!1,n,t.props.hoverCloseDelay)})},t.handlePopoverClick=function(n){var a,o,i,l=n.target,s=l.closest(".".concat(kt)),c=l.closest(".".concat(kt)),f=(s??c)===t.getPopoverElement(),g=(o=(a=s==null?void 0:s.classList.contains(Lc))!==null&&a!==void 0?a:c==null?void 0:c.classList.contains(Lc))!==null&&o!==void 0?o:!1,w=l.closest(".".concat(ri,", .").concat(DS)),y=(i=w==null?void 0:w.classList.contains(ri))!==null&&i!==void 0?i:!1,x=l.closest(":disabled, .".concat(fn))!=null;y&&!x&&(!g||f)&&t.setOpenState(!1,n)},t.handleOverlayClose=function(n){var a;if(!(t.targetRef.current==null||n===void 0)){var o=(a=n.nativeEvent)!==null&&a!==void 0?a:n,i=o.composed?o.composedPath()[0]:o.target;(!iP(t.targetRef.current,i)||n.nativeEvent instanceof KeyboardEvent)&&t.setOpenState(!1,n)}},t.handleKeyDown=function(n){var a=yo(n);a&&t.handleTargetClick(n)},t.handleTargetClick=function(n){var a=t.state.isOpen&&t.isSimulatedButtonClick(n);a||!t.props.disabled&&!t.isElementInPopover(n.target)&&(t.props.isOpen==null?t.setState(function(o){return{isOpen:!o.isOpen}}):t.setOpenState(!t.props.isOpen,n))},t.isSimulatedButtonClick=function(n){return!n.isTrusted&&n.target.matches(".".concat(na))},t}return r.prototype.getPopoverElement=function(){var t;return(t=this.popoverElement)===null||t===void 0?void 0:t.querySelector(".".concat(kt))},r.prototype.getIsOpen=function(t){var n;return t.disabled?!1:(n=t.isOpen)!==null&&n!==void 0?n:t.defaultIsOpen},r.prototype.render=function(){var t=this.props,n=t.disabled,a=t.content,o=t.placement,i=t.position,l=i===void 0?"auto":i,s=t.positioningStrategy,c=this.state.isOpen,f=a==null||typeof a=="string"&&a.trim()==="";return f?(!n&&c!==!1&&!hn("production")&&console.warn(xP),this.renderTarget({ref:EA})):A.createElement(GL,null,A.createElement(vA,null,this.renderTarget),A.createElement(cA,{innerRef:this.popoverRef,placement:o??SA(l),strategy:s,modifiers:this.getPopperModifiers()},this.renderPopover))},r.prototype.componentDidMount=function(){this.updateDarkParent()},r.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDarkParent();var a=this.getIsOpen(this.props);this.props.isOpen!=null&&a!==this.state.isOpen?(this.setOpenState(a),this.setState({isOpen:a})):this.props.disabled&&this.state.isOpen&&this.props.isOpen==null&&this.setOpenState(!1)},r.prototype.validateProps=function(t){t.isOpen==null&&t.onInteraction!=null&&console.warn(zP),t.hasBackdrop&&!t.usePortal&&console.warn(CP),t.hasBackdrop&&t.interactionKind!==l1.CLICK&&console.warn(bP),t.placement!==void 0&&t.position!==void 0&&console.warn(MP);var n=A.Children.count(t.children),a=t.renderTarget!==void 0,o=t.targetProps!==void 0;n===0&&!a&&console.warn(gP),n>1&&console.warn(yP),n>0&&a&&console.warn(wP),a&&o&&console.warn(TP)},r.prototype.getPopperModifiers=function(){var t,n,a,o,i=this.props,l=i.matchTargetWidth,s=i.modifiers,c=i.modifiersCustom,f=[K({enabled:this.isArrowEnabled(),name:"arrow"},s==null?void 0:s.arrow),K(K({name:"computeStyles"},s==null?void 0:s.computeStyles),{options:K({adaptive:!0,gpuAcceleration:!1},(t=s==null?void 0:s.computeStyles)===null||t===void 0?void 0:t.options)}),K(K({enabled:this.isArrowEnabled(),name:"offset"},s==null?void 0:s.offset),{options:K({offset:[0,wi/2]},(n=s==null?void 0:s.offset)===null||n===void 0?void 0:n.options)}),K(K({name:"flip"},s==null?void 0:s.flip),{options:K({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},(a=s==null?void 0:s.flip)===null||a===void 0?void 0:a.options)}),K(K({name:"preventOverflow"},s==null?void 0:s.preventOverflow),{options:K({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},(o=s==null?void 0:s.preventOverflow)===null||o===void 0?void 0:o.options)})];return l&&f.push(OA),c!==void 0&&f.push.apply(f,c),f},r.prototype.setOpenState=function(t,n,a){var o=this,i,l,s,c,f;(i=this.cancelOpenTimeout)===null||i===void 0||i.call(this),a!==void 0&&a>0?(n==null||n.persist(),this.cancelOpenTimeout=this.setTimeout(function(){o.setOpenState(t,n)},a)):(this.props.isOpen==null?this.setState({isOpen:t}):(s=(l=this.props).onInteraction)===null||s===void 0||s.call(l,t,n),t||((f=(c=this.props).onClose)===null||f===void 0||f.call(c,n),this.setState({isClosingViaEscapeKeypress:_A(n==null?void 0:n.nativeEvent)})))},r.prototype.updateDarkParent=function(){var t;if(this.props.usePortal&&this.state.isOpen){var n=((t=this.targetRef.current)===null||t===void 0?void 0:t.closest(".".concat(qv)))!=null;this.setState({hasDarkParent:n})}},r.prototype.isElementInPopover=function(t){var n,a;return(a=(n=this.getPopoverElement())===null||n===void 0?void 0:n.contains(t))!==null&&a!==void 0?a:!1},r.displayName="".concat(rt,".Popover"),r.defaultProps={boundary:"clippingParents",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:l1.CLICK,matchTargetWidth:!1,minimal:!1,openOnTargetFocus:!0,positioningStrategy:"absolute",renderTarget:void 0,shouldReturnFocusOnClose:!1,targetTagName:"span",transitionDuration:300,usePortal:!0},r}(gr);function _A(e){return e instanceof KeyboardEvent&&e.key==="Escape"}function EA(){}var xi=A.forwardRef(function(e,r){var t,n,a=e.active,o=e.className,i=e.children,l=e.disabled,s=e.icon,c=e.intent,f=e.labelClassName,g=e.labelElement,w=e.multiline,y=e.popoverProps,x=e.roleStructure,b=x===void 0?"menuitem":x,m=e.selected,h=e.shouldDismissPopover,d=e.submenuProps,v=e.text,u=e.textClassName,p=e.tagName,C=p===void 0?"a":p,M=e.htmlTitle,S=Ge(e,["active","className","children","disabled","icon","intent","labelClassName","labelElement","multiline","popoverProps","roleStructure","selected","shouldDismissPopover","submenuProps","text","textClassName","tagName","htmlTitle"]),T=b==="listoption"?["option",void 0,!!m]:b==="menuitem"?["none","menuitem",void 0]:b==="none"?["none",void 0,void 0]:[void 0,void 0,void 0],O=T[0],P=T[1],L=T[2],V=b==="listoption",k=V&&m,j=s!=null,U=i!=null,$=Ft(c),B=Be(go,$,(t={},t[ta]=a,t[fn]=l,t[ri]=h&&!l&&!U,t[SS]=V,t[Xv]=k,t),o),I=e.label==null&&g==null?null:A.createElement("span",{className:Be(ES,f)},e.label,g),R=A.createElement(C,K(K(K({onKeyDown:lP(["Enter"," "]),role:U?"none":P,tabIndex:U?-1:0},gn(S)),l?VA:{}),{className:B}),k?A.createElement(Yc,{className:PS}):void 0,j?A.createElement("span",{className:_S},A.createElement(jt,{icon:s,"aria-hidden":!0,tabIndex:-1})):void 0,A.createElement(Mo,{className:Be(Ar,u),ellipsize:!w,title:M},v),I,U?A.createElement($c,{className:LS,title:"Open sub menu"}):void 0),G=Be((n={},n[_c]=U,n));return A.createElement("li",{className:G,ref:r,role:O,"aria-selected":L},i==null?R:A.createElement(w5,K({autoFocus:!1,captureDismiss:!1,disabled:l,enforceFocus:!1,hoverCloseDelay:0,interactionKind:"hover",modifiers:LA,targetProps:{role:P,tabIndex:0},placement:"right-start",usePortal:!1},y,{content:A.createElement(c5,K({},d),i),minimal:!0,popoverClassName:Be(_c,y==null?void 0:y.popoverClassName)}),R))});xi.defaultProps={active:!1,disabled:!1,multiline:!1,popoverProps:{},selected:void 0,shouldDismissPopover:!0,text:""},xi.displayName="".concat(rt,".MenuItem");var LA={flip:{options:{rootBoundary:"viewport",padding:20},enabled:!0},offset:{options:{offset:[-5,0]},enabled:!0},preventOverflow:{options:{rootBoundary:"viewport",padding:20},enabled:!0}},VA={"aria-disabled":!0,href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1},s6=A.forwardRef(function(e,r){var t,n=e.alignText,a=e.className,o=e.fill,i=e.minimal,l=e.large,s=e.vertical,c=Ge(e,["alignText","className","fill","minimal","large","vertical"]),f=Be(vS,(t={},t[Ar]=o,t[or]=l,t[ra]=i,t[Zv]=s,t),nh(n),a);return A.createElement("div",K({},c,{ref:r,className:f}),e.children)});s6.displayName="".concat(rt,".ButtonGroup");var Ci=A.forwardRef(function(e,r){var t,n=e.className,a=e.elevation,o=e.interactive,i=e.selected,l=e.compact,s=Ge(e,["className","elevation","interactive","selected","compact"]),c=Be(n,gS,aP(a),(t={},t[Yv]=o,t[Bv]=l,t[Xv]=i,t));return A.createElement("div",K({className:c,ref:r},s))});Ci.defaultProps={elevation:Pc.ZERO,interactive:!1},Ci.displayName="".concat(rt,".Card");var c6=function(e){St(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.render=function(){var t=this.props,n=t.className,a=t.tagName,o=a===void 0?"div":a,i=Ge(t,["className","tagName"]),l=Be(yS,n);return A.createElement(o,K(K({},i),{className:l}))},r.displayName="".concat(rt,".Divider"),r}(gr),u6=A.forwardRef(function(e,r){var t,n=e.children,a=e.className,o=e.fill,i=e.vertical,l=Ge(e,["children","className","fill","vertical"]),s=Be(bS,(t={},t[Ar]=o,t[Zv]=i,t),a);return A.createElement("div",K({role:"group"},l,{ref:r,className:s}),n)});u6.displayName="".concat(rt,".ControlGroup");var AA=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={hasPendingUpdate:!1,isComposing:!1,nextValue:t.props.value,value:t.props.value},t.cancelPendingCompositionEnd=null,t.handleCompositionStart=function(n){var a,o,i;(a=t.cancelPendingCompositionEnd)===null||a===void 0||a.call(t),t.setState({isComposing:!0}),(i=(o=t.props).onCompositionStart)===null||i===void 0||i.call(o,n)},t.handleCompositionEnd=function(n){var a,o;t.cancelPendingCompositionEnd=t.setTimeout(function(){return t.setState({isComposing:!1})},r.COMPOSITION_END_DELAY),(o=(a=t.props).onCompositionEnd)===null||o===void 0||o.call(a,n)},t.handleChange=function(n){var a,o,i=n.target.value;t.setState({nextValue:i}),(o=(a=t.props).onChange)===null||o===void 0||o.call(a,n)},t}return r.getDerivedStateFromProps=function(t,n){if(n.isComposing||t.value===void 0)return null;var a=n.nextValue!==n.value;return a?t.value===n.nextValue?n.hasPendingUpdate?{value:t.value,hasPendingUpdate:!1}:{value:n.nextValue}:t.value===n.value?{hasPendingUpdate:!0}:{value:t.value,nextValue:t.value,hasPendingUpdate:!1}:{value:t.value,nextValue:t.value,hasPendingUpdate:!1}},r.prototype.render=function(){var t=this.state,n=t.isComposing,a=t.hasPendingUpdate,o=t.value,i=t.nextValue,l=this.props,s=l.inputRef,c=Ge(l,["inputRef"]);return A.createElement("input",K({},c,{ref:s,value:n||a?i:o,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onChange:this.handleChange}))},r.displayName="".concat(rt,".AsyncControllableInput"),r.COMPOSITION_END_DELAY=10,r}(gr),kA=["onValueChange"],d6=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={},t.leftElement=null,t.rightElement=null,t.refHandlers={leftElement:function(n){return t.leftElement=n},rightElement:function(n){return t.rightElement=n}},t.handleInputChange=function(n){var a,o,i,l,s=n.target.value;(o=(a=t.props).onChange)===null||o===void 0||o.call(a,n),(l=(i=t.props).onValueChange)===null||l===void 0||l.call(i,s,n.target)},t}return r.prototype.render=function(){var t,n=this.props,a=n.asyncControl,o=a===void 0?!1:a,i=n.className,l=n.disabled,s=n.fill,c=n.inputClassName,f=n.inputRef,g=n.intent,w=n.large,y=n.readOnly,x=n.round,b=n.small,m=n.tagName,h=m===void 0?"div":m,d=Be(CS,Ft(g),(t={},t[fn]=l,t[fS]=y,t[Ar]=s,t[or]=w,t[pn]=b,t[Kv]=x,t),i),v=K(K({},this.props.style),{paddingLeft:this.state.leftElementWidth,paddingRight:this.state.rightElementWidth}),u=K(K({type:"text"},gn(this.props,kA,!0)),{"aria-disabled":l,className:Be(vn,c),onChange:this.handleInputChange,style:v}),p=o?A.createElement(AA,K({},u,{inputRef:f})):A.createElement("input",K({},u,{ref:f}));return A.createElement(h,{className:d},this.maybeRenderLeftElement(),p,this.maybeRenderRightElement())},r.prototype.componentDidMount=function(){this.updateInputWidth()},r.prototype.componentDidUpdate=function(t){var n=this.props,a=n.leftElement,o=n.rightElement;(t.leftElement!==a||t.rightElement!==o)&&this.updateInputWidth()},r.prototype.validateProps=function(t){t.leftElement!=null&&t.leftIcon!=null&&console.warn(cP)},r.prototype.maybeRenderLeftElement=function(){var t=this.props,n=t.leftElement,a=t.leftIcon;if(n!=null)return A.createElement("span",{className:MS,ref:this.refHandlers.leftElement},n);if(a!=null)return A.createElement(jt,{icon:a,"aria-hidden":!0,tabIndex:-1})},r.prototype.maybeRenderRightElement=function(){var t=this.props.rightElement;if(t!=null)return A.createElement("span",{className:zS,ref:this.refHandlers.rightElement},t)},r.prototype.updateInputWidth=function(){var t=this.state,n=t.leftElementWidth,a=t.rightElementWidth;if(this.leftElement!=null){var o=this.leftElement.clientWidth;(n===void 0||Math.abs(o-n)>2)&&this.setState({leftElementWidth:o})}else this.setState({leftElementWidth:void 0});if(this.rightElement!=null){var o=this.rightElement.clientWidth;(a===void 0||Math.abs(o-a)>2)&&this.setState({rightElementWidth:o})}else this.setState({rightElementWidth:void 0})},r.displayName="".concat(rt,".InputGroup"),r}(gr);function f6(e){var r=1.9,t=r.toLocaleString(e),n=1 .toLocaleString(e),a=9 .toLocaleString(e),o="".concat(n,"(.+)").concat(a),i=new RegExp(o).exec(t);return i&&i[1]||"."}function x5(e,r){return r===void 0&&(r="en-US"),ko(e.toLocaleString(r,{roundingPriority:"morePrecision"}),r)}function HA(e,r,t){var n=r??-1/0,a=t??1/0;return Nc(e,n,a)}function NA(e){return e===void 0&&(e=""),e.toString()}function RA(e,r){var t=[0,1,2,3,4,5,6,7,8,9].map(function(a){return a.toLocaleString(r)}),n=t.indexOf(e);return n!==-1?n:e}function s1(e,r){var t=""+e;if(parseFloat(t).toString()===e.toString())return e.toString();if(r!==void 0){var n=f6(r),a=ko(t,r);return a.split("").map(function(o){return RA(o,r)}).join("").replace(n,".")}return e.toString()}function jA(e,r){var t=s1(e,r);return e!=null&&t-parseFloat(t)+1>=0}function DA(e,r){if(e.key==null||e.ctrlKey||e.altKey||e.metaKey)return!0;var t=e.key.length===1;return t?p6(e.key,r):!0}function p6(e,r){if(r!==void 0){var t=f6(r).replace(".","\\."),n=[0,1,2,3,4,5,6,7,8,9].map(function(i){return i.toLocaleString(r)}).join(""),a=new RegExp("^[Ee"+n+"\\+\\-"+t+"]$");return a.test(e)}else{var o=/^[Ee0-9\+\-\.]$/;return o.test(e)}}function IA(e,r){var t=Math.pow(10,r);return Math.round(e*t)/t}function $A(e){return e.replace(/[\uFF10-\uFF19]/g,function(r){return String.fromCharCode(r.charCodeAt(0)-65248)})}function ko(e,r){var t=$A(e).split(""),n=t.filter(function(a){return p6(a,r)});return n.join("")}var fa;(function(e){e[e.DOWN=-1]="DOWN",e[e.UP=1]="UP"})(fa||(fa={}));var FA=["allowNumericCharactersOnly","buttonPosition","clampValueOnBlur","className","defaultValue","majorStepSize","minorStepSize","onButtonClick","onValueChange","selectAllOnFocus","selectAllOnIncrement","stepSize"],WA=function(e){St(r,e);function r(){var t,n=e.apply(this,arguments)||this;return n.numericInputId=aa("numericInput"),n.state={currentImeInputInvalid:!1,shouldSelectAfterUpdate:!1,stepMaxPrecision:r.getStepMaxPrecision(n.props),value:NA((t=n.props.value)!==null&&t!==void 0?t:n.props.defaultValue)},n.didPasteEventJustOccur=!1,n.delta=0,n.inputElement=null,n.inputRef=mn(n,"inputElement",n.props.inputRef),n.incrementButtonHandlers=n.getButtonEventHandlers(fa.UP),n.decrementButtonHandlers=n.getButtonEventHandlers(fa.DOWN),n.getCurrentValueAsNumber=function(){return Number(s1(n.state.value,n.props.locale))},n.handleButtonClick=function(a,o){var i,l,s=n.updateDelta(o,a),c=n.incrementValue(s);(l=(i=n.props).onButtonClick)===null||l===void 0||l.call(i,Number(s1(c,n.props.locale)),c)},n.stopContinuousChange=function(){n.delta=0,n.clearTimeouts(),clearInterval(n.intervalId),document.removeEventListener("mouseup",n.stopContinuousChange)},n.handleContinuousChange=function(){var a,o,i,l;if(n.props.min!==void 0||n.props.max!==void 0){var s=(a=n.props.min)!==null&&a!==void 0?a:-1/0,c=(o=n.props.max)!==null&&o!==void 0?o:1/0,f=n.getCurrentValueAsNumber();if(f<=s||f>=c){n.stopContinuousChange();return}}var g=n.incrementValue(n.delta);(l=(i=n.props).onButtonClick)===null||l===void 0||l.call(i,Number(s1(g,n.props.locale)),g)},n.handleInputFocus=function(a){var o,i;n.setState({shouldSelectAfterUpdate:n.props.selectAllOnFocus}),(i=(o=n.props).onFocus)===null||i===void 0||i.call(o,a)},n.handleInputBlur=function(a){var o,i;if(n.setState({shouldSelectAfterUpdate:!1}),n.props.clampValueOnBlur){var l=a.target.value;n.handleNextValue(n.roundAndClampValue(l))}(i=(o=n.props).onBlur)===null||i===void 0||i.call(o,a)},n.handleInputKeyDown=function(a){var o,i;if(!(n.props.disabled||n.props.readOnly)){var l;if(a.key==="ArrowUp"?l=fa.UP:a.key==="ArrowDown"&&(l=fa.DOWN),l!==void 0){a.preventDefault();var s=n.updateDelta(l,a);n.incrementValue(s)}(i=(o=n.props).onKeyDown)===null||i===void 0||i.call(o,a)}},n.handleCompositionEnd=function(a){n.props.allowNumericCharactersOnly&&(n.handleNextValue(ko(a.data,n.props.locale)),n.setState({currentImeInputInvalid:!1}))},n.handleCompositionUpdate=function(a){if(n.props.allowNumericCharactersOnly){var o=a.data,i=ko(o,n.props.locale);i.length===0&&o.length>0?n.setState({currentImeInputInvalid:!0}):n.setState({currentImeInputInvalid:!1})}},n.handleInputKeyPress=function(a){var o,i;n.props.allowNumericCharactersOnly&&!DA(a,n.props.locale)&&a.preventDefault(),(i=(o=n.props).onKeyPress)===null||i===void 0||i.call(o,a)},n.handleInputPaste=function(a){var o,i;n.didPasteEventJustOccur=!0,(i=(o=n.props).onPaste)===null||i===void 0||i.call(o,a)},n.handleInputChange=function(a){var o=a;n.props.allowNumericCharactersOnly&&n.didPasteEventJustOccur&&(n.didPasteEventJustOccur=!1,o=ko(a,n.props.locale)),n.handleNextValue(o),n.setState({shouldSelectAfterUpdate:!1})},n}return r.getDerivedStateFromProps=function(t,n){var a,o,i={prevMaxProp:t.max,prevMinProp:t.min},l=t.min!==n.prevMinProp,s=t.max!==n.prevMaxProp,c=l||s,f=(o=(a=t.value)===null||a===void 0?void 0:a.toString())!==null&&o!==void 0?o:n.value,g=r.getStepMaxPrecision(t),w=f!==r.VALUE_EMPTY?r.roundAndClampValue(f,g,t.min,t.max,0,t.locale):r.VALUE_EMPTY;return c&&w!==n.value?K(K({},i),{stepMaxPrecision:g,value:w}):K(K({},i),{stepMaxPrecision:g,value:f})},r.getStepMaxPrecision=function(t){return t.minorStepSize!=null?oh(t.minorStepSize):oh(t.stepSize)},r.roundAndClampValue=function(t,n,a,o,i,l){if(i===void 0&&(i=0),!jA(t,l))return r.VALUE_EMPTY;var s=s1(t,l),c=IA(Number(s)+i,n),f=HA(c,a,o);return x5(f,l)},r.prototype.render=function(){var t,n=this.props,a=n.buttonPosition,o=n.className,i=n.fill,l=n.large,s=n.small,c=Be(VS,(t={},t[or]=l,t[pn]=s,t),o),f=this.renderButtons();return A.createElement(u6,{className:c,fill:i},a===A1.LEFT&&f,this.renderInput(),a===A1.RIGHT&&f)},r.prototype.componentDidUpdate=function(t,n){var a,o,i;e.prototype.componentDidUpdate.call(this,t,n),t.inputRef!==this.props.inputRef&&(a1(t.inputRef,null),this.inputRef=mn(this,"inputElement",this.props.inputRef),a1(this.props.inputRef,this.inputElement)),this.state.shouldSelectAfterUpdate&&((a=this.inputElement)===null||a===void 0||a.setSelectionRange(0,this.state.value.length));var l=this.props.min!==t.min,s=this.props.max!==t.max,c=l||s,f=this.props.locale!==t.locale,g=this.state.value!==n.value;if(c&&g||f&&n.value!==r.VALUE_EMPTY){var w=f?n.value:this.state.value,y=s1(w,t.locale),x=x5(+y,this.props.locale);(i=(o=this.props).onValueChange)===null||i===void 0||i.call(o,+y,x,this.inputElement)}},r.prototype.validateProps=function(t){var n=t.majorStepSize,a=t.max,o=t.min,i=t.minorStepSize,l=t.stepSize,s=t.value;if(o!=null&&a!=null&&o>a&&console.error(uP),l<=0&&console.error(hP),i&&i<=0&&console.error(pP),n&&n<=0&&console.error(vP),i&&i>l&&console.error(dP),n&&n<l&&console.error(fP),s!=null){var c=r.getStepMaxPrecision(t),f=r.roundAndClampValue(s.toString(),c,o,a,0,this.props.locale),g=f!==s.toString(),w=x5(Number(s1(s,this.props.locale)),this.props.locale),y=f!==w;g&&y&&console.warn(mP)}},r.prototype.renderButtons=function(){var t=this.props,n=t.intent,a=t.max,o=t.min,i=t.locale,l=s1(this.state.value,i),s=this.props.disabled||this.props.readOnly,c=a!==void 0&&l!==""&&+l>=a,f=o!==void 0&&l!==""&&+l<=o;return A.createElement(s6,{className:cS,key:"button-group",vertical:!0},A.createElement(N1,K({"aria-label":"increment","aria-controls":this.numericInputId,disabled:s||c,icon:A.createElement(Gc,null),intent:n},this.incrementButtonHandlers)),A.createElement(N1,K({"aria-label":"decrement","aria-controls":this.numericInputId,disabled:s||f,icon:A.createElement(Fc,null),intent:n},this.decrementButtonHandlers)))},r.prototype.renderInput=function(){var t=gn(this.props,FA,!0),n=this.getCurrentValueAsNumber();return A.createElement(d6,K({asyncControl:this.props.asyncControl,autoComplete:"off",id:this.numericInputId,role:this.props.allowNumericCharactersOnly?"spinbutton":void 0},t,{"aria-valuemax":this.props.max,"aria-valuemin":this.props.min,"aria-valuenow":n,intent:this.state.currentImeInputInvalid?dn.DANGER:this.props.intent,inputClassName:this.props.inputClassName,inputRef:this.inputRef,large:this.props.large,leftElement:this.props.leftElement,leftIcon:this.props.leftIcon,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCompositionEnd:this.handleCompositionEnd,onCompositionUpdate:this.handleCompositionUpdate,onKeyDown:this.handleInputKeyDown,onKeyPress:this.handleInputKeyPress,onPaste:this.handleInputPaste,onValueChange:this.handleInputChange,rightElement:this.props.rightElement,small:this.props.small,value:this.state.value}))},r.prototype.getButtonEventHandlers=function(t){var n=this;return{onKeyDown:function(a){!n.props.disabled&&yo(a)&&n.handleButtonClick(a,t)},onMouseDown:function(a){n.props.disabled||(n.handleButtonClick(a,t),n.startContinuousChange())}}},r.prototype.startContinuousChange=function(){var t=this;document.addEventListener("mouseup",this.stopContinuousChange),this.setTimeout(function(){t.intervalId=window.setInterval(t.handleContinuousChange,r.CONTINUOUS_CHANGE_INTERVAL)},r.CONTINUOUS_CHANGE_DELAY)},r.prototype.handleNextValue=function(t){var n,a;this.props.value==null&&this.setState({value:t}),(a=(n=this.props).onValueChange)===null||a===void 0||a.call(n,Number(s1(t,this.props.locale)),t,this.inputElement)},r.prototype.incrementValue=function(t){var n=this.state.value===r.VALUE_EMPTY?r.VALUE_ZERO:this.state.value,a=this.roundAndClampValue(n,t);return a!==this.state.value&&(this.handleNextValue(a),this.setState({shouldSelectAfterUpdate:this.props.selectAllOnIncrement})),a},r.prototype.getIncrementDelta=function(t,n,a){var o=this.props,i=o.majorStepSize,l=o.minorStepSize,s=o.stepSize;return n&&i!=null?t*i:a&&l!=null?t*l:t*s},r.prototype.roundAndClampValue=function(t,n){return n===void 0&&(n=0),r.roundAndClampValue(t,this.state.stepMaxPrecision,this.props.min,this.props.max,n,this.props.locale)},r.prototype.updateDelta=function(t,n){return this.delta=this.getIncrementDelta(t,n.shiftKey,n.altKey),this.delta},r.displayName="".concat(rt,".NumericInput"),r.VALUE_EMPTY="",r.VALUE_ZERO="0",r.defaultProps={allowNumericCharactersOnly:!0,buttonPosition:A1.RIGHT,clampValueOnBlur:!1,defaultValue:r.VALUE_EMPTY,large:!1,majorStepSize:10,minorStepSize:.1,selectAllOnFocus:!1,selectAllOnIncrement:!1,small:!1,stepSize:1},r.CONTINUOUS_CHANGE_DELAY=300,r.CONTINUOUS_CHANGE_INTERVAL=100,r}(gr),UA=10;function GA(e){var r=e.onCompositionStart,t=e.onCompositionEnd,n=e.value,a=e.onChange,o=A.useState(n),i=o[0],l=o[1],s=A.useState(n),c=s[0],f=s[1],g=A.useState(!1),w=g[0],y=g[1],x=A.useState(!1),b=x[0],m=x[1],h=A.useRef(),d=A.useCallback(function(S){var T;(T=h.current)===null||T===void 0||T.call(h),y(!0),r==null||r(S)},[r]),v=A.useCallback(function(){var S=window.setTimeout(function(){return y(!1)},UA);return function(){return window.clearTimeout(S)}},[]),u=A.useCallback(function(S){h.current=v(),t==null||t(S)},[v,t]),p=A.useCallback(function(S){var T=S.target.value;f(T),a==null||a(S)},[a]),C=!(w||n===void 0);if(C){var M=c!==i;M&&n===c?(l(n),m(!1)):M&&n===i?b||m(!0):M&&n!==i?(l(n),f(n),m(!1)):M||(i!==n||b)&&(l(n),f(n),m(!1))}return{onChange:p,onCompositionEnd:u,onCompositionStart:d,value:w||b?c:i}}var v6=A.forwardRef(function(r,t){var n=r.value,a=r.onChange,o=r.onCompositionStart,i=r.onCompositionEnd,l=Ge(r,["value","onChange","onCompositionStart","onCompositionEnd"]),s=GA({onChange:a,onCompositionEnd:i,onCompositionStart:o,value:n}),c=s.value,f=s.onChange,g=s.onCompositionStart,w=s.onCompositionEnd;return A.createElement("textarea",K({},l,{value:c,onChange:f,onCompositionStart:g,onCompositionEnd:w,ref:t}))});v6.displayName="".concat(rt,".AsyncControllableTextArea");var BA=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={},t.textareaElement=null,t.handleRef=mn(t,"textareaElement",t.props.inputRef),t.maybeSyncHeightToScrollHeight=function(){var n=t.props,a=n.autoResize,o=n.growVertically;if(t.textareaElement!=null){var i=t.textareaElement.scrollHeight;a?(t.textareaElement.style.height="0px",t.textareaElement.style.height=i.toString()+"px",t.setState({height:i})):o&&i>0&&t.setState({height:i})}if(t.props.autoResize&&t.textareaElement!=null){t.textareaElement.style.height="0px";var i=t.textareaElement.scrollHeight;t.textareaElement.style.height=i.toString()+"px",t.setState({height:i})}},t.handleChange=function(n){var a,o;t.maybeSyncHeightToScrollHeight(),(o=(a=t.props).onChange)===null||o===void 0||o.call(a,n)},t}return r.prototype.componentDidMount=function(){this.maybeSyncHeightToScrollHeight()},r.prototype.componentDidUpdate=function(t){t.inputRef!==this.props.inputRef&&(a1(t.inputRef,null),this.handleRef=mn(this,"textareaElement",this.props.inputRef),a1(this.props.inputRef,this.textareaElement)),(t.value!==this.props.value||t.style!==this.props.style)&&this.maybeSyncHeightToScrollHeight()},r.prototype.render=function(){var t,n=this.props,a=n.asyncControl,o=n.autoResize,i=n.className,l=n.fill,s=n.growVertically;n.inputRef;var c=n.intent,f=n.large,g=n.small,w=Ge(n,["asyncControl","autoResize","className","fill","growVertically","inputRef","intent","large","small"]),y=Be(vn,Jv,Ft(c),(t={},t[Ar]=l,t[or]=f,t[pn]=g,t[OS]=o,t),i),x=w.style,b=x===void 0?{}:x;(o||s)&&this.state.height!=null&&(b=K(K({},b),{height:"".concat(this.state.height,"px")}));var m=a?v6:"textarea";return A.createElement(m,K({},w,{className:y,onChange:this.handleChange,style:b,ref:this.handleRef}))},r.defaultProps={autoResize:!1,fill:!1,large:!1,small:!1},r.displayName="".concat(rt,".TextArea"),r}(gr),C5=A.forwardRef(function(e,r){var t,n=e.className,a=e.children,o=e.disabled,i=e.fill,l=e.iconName,s=l===void 0?"double-caret-vertical":l,c=e.iconProps,f=e.large,g=e.minimal,w=e.options,y=w===void 0?[]:w,x=e.value,b=Ge(e,["className","children","disabled","fill","iconName","iconProps","large","minimal","options","value"]),m=Be(wS,(t={},t[fn]=o,t[Ar]=i,t[or]=f,t[ra]=g,t),n),h="Open dropdown",d=s==="double-caret-vertical"?A.createElement(Bc,K({title:h},c)):A.createElement(Ic,K({title:h},c)),v=y.map(function(u){var p=typeof u=="object"?u:{value:u};return A.createElement("option",K({},p,{key:p.value,children:p.label||p.value}))});return A.createElement("div",{className:m},A.createElement("select",K({disabled:o,ref:r,value:x},b,{multiple:!1}),v,a),d)});C5.displayName="".concat(rt,".HTMLSelect");var h6=function(e){var r=e.className,t=e.large,n=e.onRemove,a=e.tabIndex,o=t||(r==null?void 0:r.includes(or)),i=A.useCallback(function(l){n==null||n(l,e)},[n,e]);return A.createElement("button",{"aria-label":"Remove tag",type:"button",className:ZS,onClick:i,tabIndex:a},A.createElement(qc,{size:o?Se.LARGE:Se.STANDARD}))};h6.displayName="".concat(rt,".TagRemoveButton");var M5=A.forwardRef(function(e,r){var t,n=e.active,a=e.children,o=e.className,i=e.fill,l=e.icon,s=e.intent,c=e.interactive,f=e.large,g=e.minimal,w=e.multiline,y=e.onRemove,x=e.rightIcon,b=e.round,m=e.tabIndex,h=m===void 0?0:m,d=e.htmlTitle,v=Ge(e,["active","children","className","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","tabIndex","htmlTitle"]),u=Hc(y),p=Be(rh,Ft(s),(t={},t[ta]=n,t[Ar]=i,t[Yv]=c,t[or]=f,t[ra]=g,t[Kv]=b,t),o);return A.createElement("span",K({},v,{className:p,tabIndex:c?h:void 0,ref:r}),A.createElement(jt,{icon:l}),!oi(a)&&A.createElement(Mo,{className:Ar,ellipsize:!w,tagName:"span",title:d},a),A.createElement(jt,{icon:x}),u&&A.createElement(h6,K({},e)))});M5.defaultProps={active:!1,fill:!1,interactive:!1,large:!1,minimal:!1,round:!1},M5.displayName="".concat(rt,".Tag");var m6=A.forwardRef(function(r,t){var n=A.useState(""),a=n[0],o=n[1],i=A.useState(0),l=i[0],s=i[1],c=A.useRef(null);A.useEffect(function(){c.current!=null&&s(c.current.offsetWidth)},[a]);var f=r.onChange,g=r.style,w=Ge(r,["onChange","style"]),y=function(x){var b,m;f==null||f(x),o((m=(b=x==null?void 0:x.target)===null||b===void 0?void 0:b.value)!==null&&m!==void 0?m:"")};return A.createElement(A.Fragment,null,A.createElement("span",{ref:c,className:TS,"aria-hidden":!0},a.replace(/ /g," ")),A.createElement("input",K({},w,{type:"text",style:K(K({},g),{width:l}),onChange:y,ref:t})))});m6.displayName="".concat(rt,".ResizableInput");var j1=-1,qA=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={activeIndex:j1,inputValue:t.props.inputValue||"",isInputFocused:!1},t.inputElement=null,t.handleRef=mn(t,"inputElement",t.props.inputRef),t.addTags=function(n,a){a===void 0&&(a="default");var o=t.props,i=o.inputValue,l=o.onAdd,s=o.onChange,c=o.values,f=t.getValues(n),g=(l==null?void 0:l(f,a))!==!1&&i===void 0;Hc(s)&&(g=s(yt(yt([],c,!0),f,!0))!==!1&&g),g&&t.setState({inputValue:""})},t.maybeRenderTag=function(n,a){if(!n)return null;var o=t.props,i=o.large,l=o.tagProps,s=Hc(l)?l(n,a):l;return A.createElement(M5,K({active:a===t.state.activeIndex,"data-tag-index":a,key:n+"__"+a,large:i,onRemove:t.props.disabled?void 0:t.handleRemoveTag},s),n)},t.handleContainerClick=function(){var n;(n=t.inputElement)===null||n===void 0||n.focus()},t.handleContainerBlur=function(n){var a=n.currentTarget;t.requestAnimationFrame(function(){var o=a.contains(kc(t.inputElement));o||(t.props.addOnBlur&&t.state.inputValue!==void 0&&t.state.inputValue.length>0&&t.addTags(t.state.inputValue,"blur"),t.setState({activeIndex:j1,isInputFocused:!1}))})},t.handleInputFocus=function(n){var a,o;t.setState({isInputFocused:!0}),(o=(a=t.props.inputProps)===null||a===void 0?void 0:a.onFocus)===null||o===void 0||o.call(a,n)},t.handleInputChange=function(n){var a,o,i,l;t.setState({activeIndex:j1,inputValue:n.currentTarget.value}),(o=(a=t.props).onInputChange)===null||o===void 0||o.call(a,n),(l=(i=t.props.inputProps)===null||i===void 0?void 0:i.onChange)===null||l===void 0||l.call(i,n)},t.handleInputKeyDown=function(n){var a=n.currentTarget,o=a.selectionEnd,i=a.value,l=t.state.activeIndex,s=l;if(n.key==="Enter"&&i.length>0)t.addTags(i,"default");else if(o===0&&t.props.values.length>0)if(n.key==="ArrowLeft"||n.key==="ArrowRight"){var c=t.getNextActiveIndex(n.key==="ArrowRight"?1:-1);c!==l&&(n.stopPropagation(),s=c,t.setState({activeIndex:c}))}else n.key==="Backspace"?t.handleBackspaceToRemove(n):n.key==="Delete"&&t.handleDeleteToRemove(n);t.invokeKeyPressCallback("onKeyDown",n,s)},t.handleInputKeyUp=function(n){t.invokeKeyPressCallback("onKeyUp",n,t.state.activeIndex)},t.handleInputPaste=function(n){var a=t.props.separator,o=n.clipboardData.getData("text");!t.props.addOnPaste||o.length===0||a===!1||o.split(a).length===1||(n.preventDefault(),t.addTags(o,"paste"))},t.handleRemoveTag=function(n){var a=+n.currentTarget.parentElement.getAttribute("data-tag-index");t.removeIndexFromValues(a)},t}return r.getDerivedStateFromProps=function(t,n){return t.inputValue!==n.prevInputValueProp?{inputValue:t.inputValue,prevInputValueProp:t.inputValue}:null},r.prototype.render=function(){var t,n=this.props,a=n.autoResize,o=n.className,i=n.disabled,l=n.fill,s=n.inputProps,c=n.intent,f=n.large,g=n.leftIcon,w=n.placeholder,y=n.values,x=Be(vn,Vc,(t={},t[ta]=this.state.isInputFocused,t[fn]=i,t[Ar]=l,t[or]=f,t),Ft(c),o),b=x.indexOf(or)>j1,m=y.some(function(v){return!!v}),h=w==null||m?s==null?void 0:s.placeholder:w,d=K(K({value:this.state.inputValue},s),{className:Be(xS,s==null?void 0:s.className),disabled:i,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onKeyDown:this.handleInputKeyDown,onKeyUp:this.handleInputKeyUp,onPaste:this.handleInputPaste,placeholder:h,ref:this.handleRef});return A.createElement("div",{className:x,onBlur:this.handleContainerBlur,onClick:this.handleContainerClick},A.createElement(jt,{className:JS,icon:g,size:b?Se.LARGE:Se.STANDARD}),A.createElement("div",{className:QS},y.map(this.maybeRenderTag),this.props.children,a?A.createElement(m6,K({},d)):A.createElement("input",K({},d))),this.props.rightElement)},r.prototype.componentDidUpdate=function(t){t.inputRef!==this.props.inputRef&&(a1(t.inputRef,null),this.handleRef=mn(this,"inputElement",this.props.inputRef),a1(this.props.inputRef,this.inputElement))},r.prototype.getNextActiveIndex=function(t){var n=this.state.activeIndex;return n===j1?t<0?this.findNextIndex(this.props.values.length,-1):j1:this.findNextIndex(n,t)},r.prototype.findNextIndex=function(t,n){for(var a=this.props.values,o=t+n;o>0&&o<a.length&&!a[o];)o+=n;return Nc(o,0,a.length)},r.prototype.getValues=function(t){var n=this.props.separator;return(n===!1?[t]:t.split(n)).map(function(a){return a.trim()}).filter(function(a){return a.length>0})},r.prototype.handleBackspaceToRemove=function(t){var n=this.state.activeIndex;this.setState({activeIndex:this.getNextActiveIndex(-1)}),this.isValidIndex(n)&&(t.stopPropagation(),this.removeIndexFromValues(n))},r.prototype.handleDeleteToRemove=function(t){var n=this.state.activeIndex;this.isValidIndex(n)&&(t.stopPropagation(),this.removeIndexFromValues(n))},r.prototype.removeIndexFromValues=function(t){var n=this.props,a=n.onChange,o=n.onRemove,i=n.values;o==null||o(i[t],t),a==null||a(i.filter(function(l,s){return s!==t}))},r.prototype.invokeKeyPressCallback=function(t,n,a){var o,i,l,s;(i=(o=this.props)[t])===null||i===void 0||i.call(o,n,a===j1?void 0:a),(s=(l=this.props.inputProps)[t])===null||s===void 0||s.call(l,n)},r.prototype.isValidIndex=function(t){return t!==j1&&t<this.props.values.length},r.displayName="".concat(rt,".TagInput"),r.defaultProps={addOnBlur:!1,addOnPaste:!0,autoResize:!1,inputProps:{},separator:/[,\n\r]/,tagProps:{}},r}(gr),c1=nP(),YA="".concat(c1,"-date-input"),KA="".concat(c1,"-date-input-popover"),XA="".concat(c1,"-date-input-timezone-select"),Qt="".concat(c1,"-datepicker"),Ho="".concat(Qt,"-caption"),ZA="".concat(Ho,"-caret"),g6="".concat(Ho,"-measure"),JA="".concat(Ho,"-select"),QA="".concat(Qt,"-content"),zn="DayPicker-Day",ek="".concat(zn,"--disabled"),tk="".concat(zn,"--outside"),rk="".concat(zn,"--selected"),nk="".concat(zn,"--isToday"),ak="".concat(Qt,"-day-wrapper"),ok="".concat(Qt,"-footer"),b6="".concat(Qt,"-month-select"),y6="".concat(Qt,"-year-select"),ik="".concat(Qt,"-navbar"),lk="DayPicker-NavButton",sk="".concat(Qt,"-timepicker-wrapper"),Tn="".concat(c1,"-daterangepicker"),ck="".concat(Tn,"-calendars"),uk="".concat(Tn,"-contiguous"),dk="".concat(Tn,"-single-month"),fk="".concat(zn,"--selected-range"),pk="".concat(zn,"--hovered-range"),w6="".concat(Tn,"-shortcuts"),x6="".concat(Tn,"-timepickers"),vk="".concat(c1,"-date-range-input"),hk="".concat(c1,"-date-range-input-popover"),Cr="".concat(c1,"-timepicker"),C6="".concat(Cr,"-arrow-button"),z5="".concat(Cr,"-arrow-row"),M6="".concat(Cr,"-divider-text"),Mi="".concat(Cr,"-hour"),z6="".concat(Cr,"-input"),T6="".concat(Cr,"-input-row"),T5="".concat(Cr,"-millisecond"),O5="".concat(Cr,"-minute"),S5="".concat(Cr,"-second"),O6="".concat(Cr,"-ampm-select"),S6="".concat(c1,"-timezone-select"),mk="".concat(S6,"-popover");const gk=Object.freeze(Object.defineProperty({__proto__:null,DATEPICKER:Qt,DATEPICKER_CAPTION:Ho,DATEPICKER_CAPTION_CARET:ZA,DATEPICKER_CAPTION_MEASURE:g6,DATEPICKER_CAPTION_SELECT:JA,DATEPICKER_CONTENT:QA,DATEPICKER_DAY:zn,DATEPICKER_DAY_DISABLED:ek,DATEPICKER_DAY_IS_TODAY:nk,DATEPICKER_DAY_OUTSIDE:tk,DATEPICKER_DAY_SELECTED:rk,DATEPICKER_DAY_WRAPPER:ak,DATEPICKER_FOOTER:ok,DATEPICKER_MONTH_SELECT:b6,DATEPICKER_NAVBAR:ik,DATEPICKER_NAVBUTTON:lk,DATEPICKER_TIMEPICKER_WRAPPER:sk,DATEPICKER_YEAR_SELECT:y6,DATERANGEPICKER:Tn,DATERANGEPICKER_CALENDARS:ck,DATERANGEPICKER_CONTIGUOUS:uk,DATERANGEPICKER_DAY_HOVERED_RANGE:pk,DATERANGEPICKER_DAY_SELECTED_RANGE:fk,DATERANGEPICKER_SHORTCUTS:w6,DATERANGEPICKER_SINGLE_MONTH:dk,DATERANGEPICKER_TIMEPICKERS:x6,DATE_INPUT:YA,DATE_INPUT_POPOVER:KA,DATE_INPUT_TIMEZONE_SELECT:XA,DATE_RANGE_INPUT:vk,DATE_RANGE_INPUT_POPOVER:hk,TIMEPICKER:Cr,TIMEPICKER_AMPM_SELECT:O6,TIMEPICKER_ARROW_BUTTON:C6,TIMEPICKER_ARROW_ROW:z5,TIMEPICKER_DIVIDER_TEXT:M6,TIMEPICKER_HOUR:Mi,TIMEPICKER_INPUT:z6,TIMEPICKER_INPUT_ROW:T6,TIMEPICKER_MILLISECOND:T5,TIMEPICKER_MINUTE:O5,TIMEPICKER_SECOND:S5,TIMEZONE_SELECT:S6,TIMEZONE_SELECT_POPOVER:mk},Symbol.toStringTag,{value:"Module"}));function bk(e){return e[0]!=null&&e[1]!=null}var P5;(function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"})(P5||(P5={}));function u1(e){return new Date(e.getTime())}function yk(e){return e instanceof Date&&!isNaN(e.valueOf())}function _5(e,r){return e!=null&&r!=null&&e.getHours()===r.getHours()&&e.getMinutes()===r.getMinutes()&&e.getSeconds()===r.getSeconds()&&e.getMilliseconds()===r.getMilliseconds()}function On(e,r,t){if(t===void 0&&(t=!1),e==null||!bk(r))return!1;var n=u1(e),a=u1(r[0]),o=u1(r[1]);return n.setHours(0,0,0,0),a.setHours(0,0,0,0),o.setHours(0,0,0,0),a<=n&&n<=o&&(!t||!Tt(a,n)&&!Tt(n,o))}function wk(e,r){return(e[0]==null||On(e[0],r))&&(e[1]==null||On(e[1],r))}function xk(e,r){if(e==null)return!1;var t=u1(e),n=u1(r[0]),a=u1(r[1]);return t.setDate(1),n.setDate(1),a.setDate(1),t.setHours(0,0,0,0),n.setHours(0,0,0,0),a.setHours(0,0,0,0),n<=t&&t<=a}var P6=function(e,r){return e.getTime()>=r.getTime()},_6=function(e,r){return e.getTime()<=r.getTime()};function E6(e,r,t){var n=No(e),a=No(r),o=No(t),i=P6(n,a),l=_6(n,o);return _6(o,a)?i||l:i&&l}function L6(e,r,t){return _5(r,t)?t:E6(e,r,t)?e:Ck(e,t)?t:r}function Ck(e,r){var t=No(e),n=No(r);return P6(t,n)}function Mk(e){var r=e[0].getTime(),t=e[1].getTime(),n=r+(t-r)*.5;return new Date(n)}function zi(e,r){return e==null?null:r==null?new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0):new Date(e.getFullYear(),e.getMonth(),e.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())}function No(e){return new Date(0,0,0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function zk(e,r){if(e<0||e>23)throw new Error("hour must be between [0,23] inclusive: got ".concat(e));return r?e%12+12:e%12}function Tk(e){if(e<0||e>23)throw new Error("hour must be between [0,23] inclusive: got ".concat(e));return e>=12}function V6(e){if(e<0||e>23)throw new Error("hour must be between [0,23] inclusive: got ".concat(e));var r=e%12;return r===0?12:r}function Ok(e,r){if(e<1||e>12)throw new Error("hour must be between [1,12] inclusive: got ".concat(e));var t=e===12?0:e;return r?t+12:t}var Ti="[Blueprint]",A6=Ti+" <DatePicker> defaultValue must be within minDate and maxDate bounds.",k6=Ti+" <DatePicker> initialMonth must be within minDate and maxDate bounds.",H6=Ti+" <DatePicker> maxDate must be later than minDate.",N6=Ti+" <DatePicker> value prop must be within minDate and maxDate bounds.";A6.replace("DatePicker","DateRangePicker"),k6.replace("DatePicker","DateRangePicker"),H6.replace("DatePicker","DateRangePicker"),N6.replace("DatePicker","DateRangePicker");var E5={MILLISECOND:"millisecond",MINUTE:"minute",SECOND:"second"},Sn,Te;(function(e){e.HOUR_24="hour24",e.HOUR_12="hour12",e.MINUTE="minute",e.SECOND="second",e.MS="ms"})(Te||(Te={}));function R6(e){var r,t=(r={},r[Te.HOUR_24]="hours (24hr clock)",r[Te.HOUR_12]="hours (12hr clock)",r[Te.MINUTE]="minutes",r[Te.SECOND]="seconds",r[Te.MS]="milliseconds",r);return t[e]}function Sk(e,r){switch(e){case Te.HOUR_24:return r.getHours();case Te.HOUR_12:return V6(r.getHours());case Te.MINUTE:return r.getMinutes();case Te.SECOND:return r.getSeconds();case Te.MS:return r.getMilliseconds();default:throw Error("Invalid TimeUnit")}}function Pk(e,r,t,n){switch(e){case Te.HOUR_24:t.setHours(r);break;case Te.HOUR_12:t.setHours(Ok(r,n));break;case Te.MINUTE:t.setMinutes(r);break;case Te.SECOND:t.setSeconds(r);break;case Te.MS:t.setMilliseconds(r);break;default:throw Error("Invalid TimeUnit")}return t}function j6(e,r){return r!=null&&!isNaN(r)&&D6(e)<=r&&r<=L5(e)}function _k(e,r){var t=L5(e),n=D6(e);return r>t?n:r<n?t:r}function Ek(e){return V5[e].className}function L5(e){return V5[e].max}function D6(e){return V5[e].min}function Lk(){return new Date(0,0,0,I6,$6,F6,W6)}function Vk(){return new Date(0,0,0,U6,G6,B6,q6)}var I6=0,Ak=1,$6=0,F6=0,W6=0,U6=23,kk=12,G6=59,B6=59,q6=999,V5=(Sn={},Sn[Te.HOUR_24]={className:Mi,max:U6,min:I6},Sn[Te.HOUR_12]={className:Mi,max:kk,min:Ak},Sn[Te.MINUTE]={className:O5,max:G6,min:$6},Sn[Te.SECOND]={className:S5,max:B6,min:F6},Sn[Te.MS]={className:T5,max:q6,min:W6},Sn);function Hk(e,r,t){return t===void 0&&(t=!1),e==null?"":yk(e)?t||On(e,[r.minDate,r.maxDate])?r.formatDate(e,r.locale):r.outOfRangeMessage:r.invalidDateMessage}function Nk(e,r,t){if(r===void 0&&(r=""),t===void 0&&(t=document.body),t==null)return 0;var n=document.createElement("span");n.classList.add(r),n.textContent=e,t.appendChild(n);var a=n.offsetWidth;return n.remove(),a}function Y6(e,r){return e.length<r?"".concat(Rk("0",r-e.length)).concat(e):e}function Rk(e,r){return new Array(r+1).join(e)}function jk(){var e=new Date;return e.setMonth(e.getMonth()+6),e}function Dk(){var e=new Date;return e.setFullYear(e.getFullYear()-20),e.setMonth(P5.JANUARY,1),e}var A5={getDefaultMaxDate:jk,getDefaultMinDate:Dk,getFormattedDateString:Hk,measureTextWidth:Nk},Ik=function(e){St(r,e);function r(t){var n,a=e.call(this,t)||this;return a.timeInputIds=(n={},n[Te.HOUR_24]=aa(Te.HOUR_24+"-input"),n[Te.HOUR_12]=aa(Te.HOUR_12+"-input"),n[Te.MINUTE]=aa(Te.MINUTE+"-input"),n[Te.SECOND]=aa(Te.SECOND+"-input"),n[Te.MS]=aa(Te.MS+"-input"),n),a.getInputChangeHandler=function(o){return function(i){var l=K6(i);switch(o){case Te.HOUR_12:case Te.HOUR_24:a.setState({hourText:l});break;case Te.MINUTE:a.setState({minuteText:l});break;case Te.SECOND:a.setState({secondText:l});break;case Te.MS:a.setState({millisecondText:l});break}}},a.getInputBlurHandler=function(o){return function(i){var l,s,c=K6(i);a.updateTime(parseInt(c,10),o),(s=(l=a.props).onBlur)===null||s===void 0||s.call(l,i,o)}},a.getInputFocusHandler=function(o){return function(i){var l,s;a.props.selectAllOnFocus&&i.currentTarget.select(),(s=(l=a.props).onFocus)===null||s===void 0||s.call(l,i,o)}},a.getInputKeyDownHandler=function(o){return function(i){var l,s;$k(i,{ArrowDown:function(){return a.decrementTime(o)},ArrowUp:function(){return a.incrementTime(o)},Enter:function(){i.currentTarget.blur()}}),(s=(l=a.props).onKeyDown)===null||s===void 0||s.call(l,i,o)}},a.getInputKeyUpHandler=function(o){return function(i){var l,s;(s=(l=a.props).onKeyUp)===null||s===void 0||s.call(l,i,o)}},a.handleAmPmChange=function(o){var i=o.currentTarget.value==="pm";if(i!==a.state.isPm){var l=zk(a.state.value.getHours(),i);a.setState({isPm:i},function(){return a.updateTime(l,Te.HOUR_24)})}},a.incrementTime=function(o){return a.shiftTime(o,1)},a.decrementTime=function(o){return a.shiftTime(o,-1)},a.state=a.getFullStateFromValue(a.getInitialValue(),t.useAmPm),a}return r.prototype.render=function(){var t,n=this.props.precision===E5.MILLISECOND,a=n||this.props.precision===E5.SECOND,o=this.props.useAmPm?Te.HOUR_12:Te.HOUR_24,i=Be(Cr,this.props.className,(t={},t[fn]=this.props.disabled,t));return A.createElement("div",{className:i},A.createElement("div",{className:z5},this.maybeRenderArrowButton(!0,o),this.maybeRenderArrowButton(!0,Te.MINUTE),a&&this.maybeRenderArrowButton(!0,Te.SECOND),n&&this.maybeRenderArrowButton(!0,Te.MS)),A.createElement("div",{className:T6},this.renderInput(Mi,o,this.state.hourText),this.renderDivider(),this.renderInput(O5,Te.MINUTE,this.state.minuteText),a&&this.renderDivider(),a&&this.renderInput(S5,Te.SECOND,this.state.secondText),n&&this.renderDivider("."),n&&this.renderInput(T5,Te.MS,this.state.millisecondText)),this.maybeRenderAmPm(),A.createElement("div",{className:z5},this.maybeRenderArrowButton(!1,o),this.maybeRenderArrowButton(!1,Te.MINUTE),a&&this.maybeRenderArrowButton(!1,Te.SECOND),n&&this.maybeRenderArrowButton(!1,Te.MS)))},r.prototype.componentDidUpdate=function(t){var n=t.minTime!==this.props.minTime,a=t.maxTime!==this.props.maxTime,o=n||a,i=t.value!==this.props.value,l=o||i,s=this.state.value;this.props.value==null&&(s=this.getInitialValue()),o&&(s=L6(this.state.value,this.props.minTime,this.props.maxTime)),this.props.value!=null&&!_5(this.props.value,t.value)&&(s=this.props.value),l&&this.setState(this.getFullStateFromValue(s,this.props.useAmPm))},r.prototype.maybeRenderArrowButton=function(t,n){var a=this;if(!this.props.showArrowButtons)return null;var o=Be(C6,Ek(n)),i=function(){return(t?a.incrementTime:a.decrementTime)(n)},l="".concat(t?"Increase":"Decrease"," ").concat(R6(n));return A.createElement("span",{"aria-controls":this.timeInputIds[n],"aria-label":l,tabIndex:-1,className:o,onClick:i},A.createElement(jt,{icon:t?"chevron-up":"chevron-down",title:l}))},r.prototype.renderDivider=function(t){return t===void 0&&(t=":"),A.createElement("span",{className:M6},t)},r.prototype.renderInput=function(t,n,a){var o,i=parseInt(a,10),l=j6(n,i),s=n===Te.HOUR_12||n===Te.HOUR_24;return A.createElement("input",{"aria-label":R6(n),className:Be(z6,(o={},o[Ft(dn.DANGER)]=!l,o),t),id:this.timeInputIds[n],min:0,max:L5(n),onBlur:this.getInputBlurHandler(n),onChange:this.getInputChangeHandler(n),onFocus:this.getInputFocusHandler(n),onKeyDown:this.getInputKeyDownHandler(n),onKeyUp:this.getInputKeyUpHandler(n),role:this.props.showArrowButtons?"spinbutton":void 0,type:"number",value:a,disabled:this.props.disabled,autoFocus:s&&this.props.autoFocus})},r.prototype.maybeRenderAmPm=function(){return this.props.useAmPm?A.createElement(C5,{className:O6,disabled:this.props.disabled,onChange:this.handleAmPmChange,value:this.state.isPm?"pm":"am"},A.createElement("option",{value:"am"},"AM"),A.createElement("option",{value:"pm"},"PM")):null},r.prototype.getFullStateFromValue=function(t,n){var a=L6(t,this.props.minTime,this.props.maxTime),o=n?Te.HOUR_12:Te.HOUR_24;return{hourText:Oi(a.getHours(),o),minuteText:Oi(a.getMinutes(),Te.MINUTE),secondText:Oi(a.getSeconds(),Te.SECOND),millisecondText:Oi(a.getMilliseconds(),Te.MS),value:a,isPm:Tk(a.getHours())}},r.prototype.shiftTime=function(t,n){if(!this.props.disabled){var a=Sk(t,this.state.value)+n;this.updateTime(_k(t,a),t)}},r.prototype.updateTime=function(t,n){var a=u1(this.state.value);j6(n,t)?(Pk(n,t,a,this.state.isPm),E6(a,this.props.minTime,this.props.maxTime)?this.updateState({value:a}):this.updateState(this.getFullStateFromValue(this.state.value,this.props.useAmPm))):this.updateState(this.getFullStateFromValue(this.state.value,this.props.useAmPm))},r.prototype.updateState=function(t){var n,a,o=t,i=o.value!=null&&!_5(o.value,this.state.value);this.props.value==null?(i&&(o=this.getFullStateFromValue(o.value,this.props.useAmPm)),this.setState(o)):i?this.setState(this.getFullStateFromValue(this.state.value,this.props.useAmPm)):this.setState(K(K({},o),{value:u1(this.state.value)})),i&&((a=(n=this.props).onChange)===null||a===void 0||a.call(n,o.value))},r.prototype.getInitialValue=function(){var t=this.props.minTime;return this.props.value!=null?t=this.props.value:this.props.defaultValue!=null&&(t=this.props.defaultValue),t},r.defaultProps={autoFocus:!1,disabled:!1,maxTime:Vk(),minTime:Lk(),precision:E5.MINUTE,selectAllOnFocus:!1,showArrowButtons:!1,useAmPm:!1},r.displayName="".concat(rt,".TimePicker"),r}(A.Component);function Oi(e,r){switch(r){case Te.HOUR_24:return e.toString();case Te.HOUR_12:return V6(e).toString();case Te.MINUTE:case Te.SECOND:return Y6(e.toString(),2);case Te.MS:return Y6(e.toString(),3);default:throw Error("Invalid TimeUnit")}}function K6(e){return e.target.value}function $k(e,r,t){t===void 0&&(t=!0);for(var n=0,a=Object.keys(r);n<a.length;n++){var o=a[n];e.key===o&&(t&&e.preventDefault(),r[o]())}}var Fk=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getShorcutClickHandler=function(n,a){return function(){var o=t.props.onShortcutClick;o(n,a)}},t.isShortcutInRange=function(n){var a=t.props,o=a.minDate,i=a.maxDate;return wk(n,[o,i])},t}return r.prototype.render=function(){var t=this,n=this.props.shortcuts===!0?Wk(this.props.allowSingleDayRange,this.props.timePrecision!==void 0,this.props.useSingleDateShortcuts===!0):this.props.shortcuts,a=n.map(function(o,i){return A.createElement(xi,{active:t.props.selectedShortcutIndex===i,disabled:!t.isShortcutInRange(o.dateRange),key:i,onClick:t.getShorcutClickHandler(o,i),shouldDismissPopover:!1,text:o.label})});return A.createElement(c5,{"aria-label":"Date picker shortcuts",className:w6,tabIndex:0},a)},r.defaultProps={selectedShortcutIndex:-1},r}(A.PureComponent);function D1(e,r){return{dateRange:r,label:e}}function Wk(e,r,t){var n=new Date,a=function(x){var b=u1(n);return x(b),b.setDate(b.getDate()+1),b},o=a(function(){return null}),i=a(function(x){return x.setDate(x.getDate()-2)}),l=a(function(x){return x.setDate(x.getDate()-7)}),s=a(function(x){return x.setMonth(x.getMonth()-1)}),c=a(function(x){return x.setMonth(x.getMonth()-3)}),f=a(function(x){return x.setMonth(x.getMonth()-6)}),g=a(function(x){return x.setFullYear(x.getFullYear()-1)}),w=a(function(x){return x.setFullYear(x.getFullYear()-2)}),y=e||t?[D1("Today",[n,r?o:n]),D1("Yesterday",[i,r?n:i])]:[];return yt(yt(yt(yt(yt([],y,!0),[D1(t?"1 week ago":"Past week",[l,n]),D1(t?"1 month ago":"Past month",[s,n]),D1(t?"3 months ago":"Past 3 months",[c,n])],!1),t?[]:[D1("Past 6 months",[f,n])],!0),[D1(t?"1 year ago":"Past year",[g,n])],!1),t?[]:[D1("Past 2 years",[w,n])],!0)}var d1="rdp",Mr="".concat(d1,"-day"),Gr={RDP:d1,RDP_CAPTION:"".concat(d1,"-caption"),RDP_CAPTION_DROPDOWNS:"".concat(d1,"-caption_dropdowns"),RDP_CAPTION_LABEL:"".concat(d1,"-caption_label"),RDP_DAY:Mr,RDP_DAY_DISABLED:"".concat(Mr,"_disabled"),RDP_DAY_HOVERED_RANGE:"".concat(Mr,"_hovered"),RDP_DAY_HOVERED_RANGE_END:"".concat(Mr,"_hovered_end"),RDP_DAY_HOVERED_RANGE_START:"".concat(Mr,"_hovered_start"),RDP_DAY_OUTSIDE:"".concat(Mr,"_outside"),RDP_DAY_RANGE_END:"".concat(Mr,"_range_end"),RDP_DAY_RANGE_MIDDLE:"".concat(Mr,"_range_middle"),RDP_DAY_RANGE_START:"".concat(Mr,"_range_start"),RDP_DAY_SELECTED:"".concat(Mr,"_selected"),RDP_DAY_TODAY:"".concat(Mr,"_today"),RDP_MONTH:"".concat(d1,"-month"),RDP_NAV:"".concat(d1,"-nav"),RDP_TABLE:"".concat(d1,"-table"),RDP_VHIDDEN:"".concat(d1,"-vhidden")},pa={DATEPICKER3_CAPTION:Ho,DATEPICKER3_DROPDOWN_MONTH:b6,DATEPICKER3_DROPDOWN_YEAR:y6,DATEPICKER3_NAV_BUTTON:"".concat(Qt,"-nav-button"),DATEPICKER3_NAV_BUTTON_NEXT:"".concat(Qt,"-nav-button-next"),DATEPICKER3_NAV_BUTTON_PREVIOUS:"".concat(Qt,"-nav-button-previous")},Uk={DATEPICKER3_DAY:Mr,DATEPICKER3_DAY_DISABLED:Gr.RDP_DAY_DISABLED,DATEPICKER3_DAY_IS_TODAY:Gr.RDP_DAY_TODAY,DATEPICKER3_DAY_OUTSIDE:Gr.RDP_DAY_OUTSIDE,DATEPICKER3_DAY_SELECTED:Gr.RDP_DAY_SELECTED,DATEPICKER3_HIGHLIGHT_CURRENT_DAY:"".concat(Qt,"-highlight-current-day"),DATEPICKER3_REVERSE_MONTH_AND_YEAR:"".concat(Qt,"-reverse-month-and-year")},Gk={DATERANGEPICKER3_HOVERED_RANGE:Gr.RDP_DAY_HOVERED_RANGE,DATERANGEPICKER3_HOVERED_RANGE_END:Gr.RDP_DAY_HOVERED_RANGE_END,DATERANGEPICKER3_HOVERED_RANGE_START:Gr.RDP_DAY_HOVERED_RANGE_START,DATERANGEPICKER3_REVERSE_MONTH_AND_YEAR:"".concat(Tn,"-reverse-month-and-year"),DATERANGEPICKER3_SELECTED_RANGE_END:Gr.RDP_DAY_RANGE_END,DATERANGEPICKER3_SELECTED_RANGE_MIDDLE:Gr.RDP_DAY_RANGE_MIDDLE,DATERANGEPICKER3_SELECTED_RANGE_START:Gr.RDP_DAY_RANGE_START,DATERANGEPICKER3_TIMEPICKERS_STACKED:"".concat(x6,"-stacked")},va=K(K(K(K({},gk),pa),Uk),Gk),Bk={button:Be(na,ra),button_reset:void 0,dropdown_month:pa.DATEPICKER3_DROPDOWN_MONTH,dropdown_year:pa.DATEPICKER3_DROPDOWN_YEAR,nav_button:pa.DATEPICKER3_NAV_BUTTON,nav_button_next:pa.DATEPICKER3_NAV_BUTTON_NEXT,nav_button_previous:pa.DATEPICKER3_NAV_BUTTON_PREVIOUS};function qk(e){return Bt(this,void 0,void 0,function(){var r;return qt(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,import("date-fns/locale/".concat(e,"/index.js"))];case 1:return r=t.sent(),[2,r.default];case 2:return t.sent(),hn("production")||console.error('[Blueprint] Could not load "'.concat(e,'" date-fns locale, please check that this locale code is supported: https://github.com/date-fns/date-fns/tree/main/src/locale')),[2,void 0];case 3:return[2]}})})}var Yk=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isComponentMounted=!1,t}return r.prototype.setState=function(t,n){typeof t=="function"?e.prototype.setState.call(this,t,n):e.prototype.setState.call(this,t)},r.prototype.componentDidMount=function(){return Bt(this,void 0,void 0,function(){return qt(this,function(t){switch(t.label){case 0:return this.isComponentMounted=!0,[4,this.loadLocale(this.props.locale)];case 1:return t.sent(),[2]}})})},r.prototype.componentDidUpdate=function(t){return Bt(this,void 0,void 0,function(){return qt(this,function(n){switch(n.label){case 0:return this.props.locale===t.locale?[3,2]:[4,this.loadLocale(this.props.locale)];case 1:n.sent(),n.label=2;case 2:return[2]}})})},r.prototype.componentWillUnmount=function(){this.isComponentMounted=!1},r.prototype.loadLocale=function(t){var n,a;return Bt(this,void 0,void 0,function(){var o,i;return qt(this,function(l){switch(l.label){case 0:return t===void 0?[2]:((n=this.state.locale)===null||n===void 0?void 0:n.code)===t?[2]:typeof t!="string"?[3,2]:(o=(a=this.props.dateFnsLocaleLoader)!==null&&a!==void 0?a:qk,[4,o(t)]);case 1:return i=l.sent(),this.isComponentMounted&&this.setState({locale:i}),[3,3];case 2:this.setState({locale:t}),l.label=3;case 3:return[2]}})})},r}(gr);function Kk(e,r,t){var n=A.useState(0),a=n[0],o=n[1];return A.useLayoutEffect(function(){var i,l;if(r.current!=null){var s=A5.measureTextWidth(t,g6,r.current),c=(l=(i=e.current)===null||i===void 0?void 0:i.clientWidth)!==null&&l!==void 0?l:0,f=Math.max(2,c-s-Se.STANDARD-2);o(f)}},[r,t,e]),a}function Xk(e){var r=e.caption,t=e.children,n=Ge(e,["caption","children"]),a=A.useRef(null),o=A.useRef(null),i=typeof r=="string"?r:"",l=Kk(o,a,i),s=A.useMemo(function(){return n.name==="months"?{style:{right:l}}:{}},[n.name,l]);return A.createElement("div",{ref:a},A.createElement(C5,K({iconProps:s,minimal:!0,ref:o},n),t))}function Zk(e){e.children;var r=Ge(e,["children"]);return A.createElement(Wc,K({},r))}function Jk(e){e.children;var r=Ge(e,["children"]);return A.createElement(Uc,K({},r))}var Qk=A.createContext({locale:void 0}),eH=function(e){return A.createElement(Qk.Provider,{value:e},e.children)},tH=function(e){St(r,e);function r(t){var n=e.call(this,t)||this;n.ignoreNextMonthChange=!1,n.renderWeekdayName=function(i){return r1(i,"EEEEEE",{locale:n.state.locale})},n.handleDaySelect=function(i,l,s,c){var f,g;if(!s.disabled){if(i===void 0){n.handleClearClick();return}n.updateDay(i),(g=(f=n.props.dayPickerProps)===null||f===void 0?void 0:f.onSelect)===null||g===void 0||g.call(f,i,l,s,c);var w=n.props.canClearSelection&&s.selected?null:zi(i,n.state.value);n.updateValue(w,!0)}},n.handleShortcutClick=function(i,l){var s=n.props,c=s.onShortcutChange,f=s.selectedShortcutIndex,g=i.dateRange,w=i.includeTime,y=g[0],x=w?y:zi(y,n.state.value);if(y!=null){n.updateDay(y),n.updateValue(x,!0),f===void 0&&n.setState({selectedShortcutIndex:l});var b=K(K({},i),{date:y});c==null||c(b,l)}},n.updateDay=function(i){n.props.value===void 0&&n.setState({displayMonth:i.getMonth(),displayYear:i.getFullYear(),selectedDay:i.getDate()}),n.state.value!=null&&n.state.value.getMonth()!==i.getMonth()&&(n.ignoreNextMonthChange=!0)},n.handleClearClick=function(){return n.updateValue(null,!0)},n.handleMonthChange=function(i){var l,s,c=n.computeValidDateInSpecifiedMonthYear(i.getFullYear(),i.getMonth());n.setState({displayMonth:c.getMonth(),displayYear:c.getFullYear()}),n.state.value!==null&&(n.updateValue(c,!1,n.ignoreNextMonthChange),n.ignoreNextMonthChange=!1),(s=(l=n.props.dayPickerProps)===null||l===void 0?void 0:l.onMonthChange)===null||s===void 0||s.call(l,c)},n.handleTodayClick=function(){var i=new Date,l=i.getMonth(),s=i.getFullYear(),c=i.getDate();n.setState({displayMonth:l,displayYear:s,selectedDay:c}),n.updateValue(i,!0)},n.handleTimeChange=function(i){var l,s;(s=(l=n.props.timePickerProps)===null||l===void 0?void 0:l.onChange)===null||s===void 0||s.call(l,i);var c=n.state.value,f=zi(c??new Date,i);n.updateValue(f,!0)};var a=rH(t),o=nH(t,a);return n.state={displayMonth:o.getMonth(),displayYear:o.getFullYear(),locale:void 0,selectedDay:a==null?null:a.getDate(),selectedShortcutIndex:n.props.selectedShortcutIndex!==void 0?n.props.selectedShortcutIndex:-1,value:a},n}return r.prototype.render=function(){var t,n,a=this.props,o=a.className,i=a.dayPickerProps,l=a.footerElement,s=a.maxDate,c=a.minDate,f=a.showActionsBar,g=this.state,w=g.displayMonth,y=g.displayYear,x=g.locale;return A.createElement("div",{className:Be(va.DATEPICKER,o,(t={},t[va.DATEPICKER3_HIGHLIGHT_CURRENT_DAY]=this.props.highlightCurrentDay,t[va.DATEPICKER3_REVERSE_MONTH_AND_YEAR]=this.props.reverseMonthAndYearMenus,t))},this.maybeRenderShortcuts(),A.createElement("div",{className:va.DATEPICKER_CONTENT},A.createElement(eH,K({},this.props,this.state),A.createElement(Uv,K({locale:x,showOutsideDays:!0},i,{captionLayout:"dropdown-buttons",classNames:K(K({},Bk),i==null?void 0:i.classNames),components:K({Dropdown:Xk,IconLeft:Zk,IconRight:Jk},i==null?void 0:i.components),formatters:K({formatWeekdayName:this.renderWeekdayName},i==null?void 0:i.formatters),fromDate:c,mode:"single",month:new Date(y,w),onMonthChange:this.handleMonthChange,onSelect:this.handleDaySelect,required:!this.props.canClearSelection,selected:(n=this.state.value)!==null&&n!==void 0?n:void 0,toDate:s})),this.maybeRenderTimePicker(),f&&this.renderOptionsBar(),l)))},r.prototype.componentDidMount=function(){return Bt(this,void 0,void 0,function(){return qt(this,function(t){switch(t.label){case 0:return[4,e.prototype.componentDidMount.call(this)];case 1:return t.sent(),[2]}})})},r.prototype.componentDidUpdate=function(t){return Bt(this,void 0,void 0,function(){return qt(this,function(n){return e.prototype.componentDidUpdate.call(this,t),this.props.value!==t.value&&(this.props.value==null?this.setState({value:null}):this.setState({displayMonth:this.props.value.getMonth(),displayYear:this.props.value.getFullYear(),selectedDay:this.props.value.getDate(),value:this.props.value})),this.props.selectedShortcutIndex!==t.selectedShortcutIndex&&this.setState({selectedShortcutIndex:this.props.selectedShortcutIndex}),[2]})})},r.prototype.validateProps=function(t){var n=t.defaultValue,a=t.initialMonth,o=t.maxDate,i=t.minDate,l=t.value;n!=null&&!On(n,[i,o])&&console.error(A6),a!=null&&!xk(a,[i,o])&&console.error(k6),o!=null&&i!=null&&o<i&&!Tt(o,i)&&console.error(H6),l!=null&&!On(l,[i,o])&&console.error(N6)},r.prototype.renderOptionsBar=function(){var t=this.props,n=t.clearButtonText,a=t.todayButtonText,o=t.minDate,i=t.maxDate,l=t.canClearSelection,s=aH(o,i);return[A.createElement(c6,{key:"div"}),A.createElement("div",{className:va.DATEPICKER_FOOTER,key:"footer"},A.createElement(N1,{minimal:!0,disabled:!s,onClick:this.handleTodayClick,text:a}),A.createElement(N1,{disabled:!l,minimal:!0,onClick:this.handleClearClick,text:n}))]},r.prototype.maybeRenderTimePicker=function(){var t=this.props,n=t.timePrecision,a=t.timePickerProps,o=t.minDate,i=t.maxDate;if(n==null&&a===void 0)return null;var l=this.state.value!=null&&Tt(this.state.value,o),s=this.state.value!=null&&Tt(this.state.value,i);return A.createElement("div",{className:va.DATEPICKER_TIMEPICKER_WRAPPER},A.createElement(Ik,K({precision:n,minTime:l?o:void 0,maxTime:s?i:void 0},a,{onChange:this.handleTimeChange,value:this.state.value})))},r.prototype.maybeRenderShortcuts=function(){var t=this.props.shortcuts;if(t==null||t===!1)return null;var n=this.state.selectedShortcutIndex,a=this.props,o=a.maxDate,i=a.minDate,l=a.timePrecision,s=t===!0?!0:t.map(function(c){return K(K({},c),{dateRange:[c.date,null]})});return[A.createElement(Fk,{key:"shortcuts",allowSingleDayRange:!0,maxDate:o,minDate:i,selectedShortcutIndex:n,shortcuts:s,timePrecision:l,onShortcutClick:this.handleShortcutClick,useSingleDateShortcuts:!0}),A.createElement(c6,{key:"div"})]},r.prototype.computeValidDateInSpecifiedMonthYear=function(t,n){var a=this.props,o=a.minDate,i=a.maxDate,l=this.state.selectedDay,s=new Date(t,n+1,0).getDate(),c=l==null?1:Math.min(l,s),f=zi(new Date(t,n,c,12),this.state.value);return f<o?o:f>i?i:f},r.prototype.updateValue=function(t,n,a){var o,i;a===void 0&&(a=!1),a||(i=(o=this.props).onChange)===null||i===void 0||i.call(o,t,n),this.props.value===void 0&&this.setState({value:t})},r.defaultProps={canClearSelection:!0,clearButtonText:"Clear",dayPickerProps:{},highlightCurrentDay:!1,locale:"en-US",maxDate:A5.getDefaultMaxDate(),minDate:A5.getDefaultMinDate(),reverseMonthAndYearMenus:!1,shortcuts:!1,showActionsBar:!1,todayButtonText:"Today"},r.displayName="".concat(rt,".DatePicker3"),r}(Yk);function rH(e){return e.value!==void 0?e.value:e.defaultValue!==void 0?e.defaultValue:null}function nH(e,r){var t,n,a=[(t=e.minDate)!==null&&t!==void 0?t:null,(n=e.maxDate)!==null&&n!==void 0?n:null],o=new Date;return e.initialMonth!=null?e.initialMonth:r??(On(o,a)?o:Mk(a))}function aH(e,r){var t=new Date;return On(t,[e,r])}const oH=({shorcut:e,actionbar:r,week:t,displayDays:n})=>{const a=n,o=t;return z.jsx("div",{style:{borderWidth:"2px",borderRadius:"2%"},children:z.jsx(tH,{showActionsBar:r,shortcuts:e,highlightCurrentDay:!0,reverseMonthAndYearMenus:!0,dayPickerProps:{showOutsideDays:a,showWeekNumber:o}})})},iH=({title:e="Title",content1:r="Content 1",subContent1:t="Sub Content 1",content2:n="Content 2",subContent2:a="Sub Content 2",content3:o="Content 3",subContent3:i="Sub Content 3",icon1:l="Icon 1",icon2:s="Icon 2",icon3:c="Icon 3",backgroundColor:f="#ffffff",TitleFontSize:g="20px",TitleJustifyContent:w="start",TitleColor:y="#000000",SubFontSize:x="15px",SubJustifyContent:b="start",SubColor:m="#000000",flex:h,imgSrc:d="https://picsum.photos/200/300"})=>z.jsx(z.Fragment,{children:z.jsx(Ci,{style:{backgroundColor:f,borderRadius:"10px",padding:"0px",minWidth:"600px",height:"370px"},interactive:!0,elevation:Pc.TWO,children:z.jsxs("div",{className:`flex ${h}`,children:[z.jsxs("div",{className:"w-2/5",children:[z.jsx("h3",{style:{color:y,fontSize:g,fontWeight:"bold",display:"flex",justifyContent:w,padding:"30px 20px 10px 30px"},children:e}),z.jsxs("div",{className:"flex flex-row",children:[z.jsx("div",{className:"text-xl",style:{padding:"10px 0px 0px 30px"},children:l}),z.jsx("div",{children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:r})})]}),z.jsx("div",{style:{padding:"0px 25px 0px 25px"},children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:t})}),z.jsxs("div",{className:"flex flex-row",children:[z.jsx("div",{className:"text-xl",style:{padding:"10px 0px 0px 30px"},children:s}),z.jsx("div",{children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:n})})]}),z.jsx("div",{style:{padding:"0px 25px 0px 25px"},children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:a})}),z.jsxs("div",{className:"flex flex-row",children:[z.jsx("div",{className:"text-xl",style:{padding:"10px 0px 0px 30px"},children:c}),z.jsx("div",{children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:o})})]}),z.jsx("div",{style:{padding:"0px 25px 0px 25px"},children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:i})})]}),z.jsx("div",{className:"w-3/5",children:z.jsx("img",{src:d,alt:"Image",style:{width:"100%",height:"370px",borderRadius:"8px"}})})]})})}),lH=({title:e="Title Test",content:r="Content",label:t="Label",Align:n="flex-start",CardWidth:a="500",AlignSubTitle:o="flex-start",CardPadding:i="16",TitleFontSize:l="medium",ContentFontSize:s="50",ButtonTextSize:c="medium",ButtonTextColor:f="#fff",CardBorderRadius:g="8",TitleColor:w="#333",ButtonColor:y="#007BFF",ContentColor:x="#555",backgroundColor:b="#fff",contentPadding:m="20px",imageSrc:h="https://img.freepik.com/premium-photo/image-colorful-galaxy-sky-generative-ai_791316-9864.jpg",...d})=>{const v=d.showButton?d.showButton:!1,u=d.showImg?d.showImg:!1,p=d.showTitle?d.showTitle:!1;return z.jsxs(Ci,{style:{backgroundColor:b,borderRadius:`${g}px`,padding:`${i}px`,width:`${a}px`},...d,interactive:!0,elevation:Pc.TWO,children:[u&&z.jsx("img",{src:h,alt:e,style:{width:"100%",height:"auto",borderRadius:"8px 8px 0 0"}}),z.jsxs("div",{children:[p&&z.jsx("h3",{children:z.jsx("a",{style:{color:w,fontSize:l,fontWeight:"bold",display:"flex",justifyContent:n,padding:"10px 10px 0px 20px",marginBottom:"-5px"},href:"#",children:e})}),z.jsx("p",{style:{color:x,fontSize:`${s}px`,display:"flex",justifyContent:o,padding:m},children:r})]}),v&&z.jsx(N1,{style:{backgroundColor:y,color:f,fontSize:c,justifyContent:n,margin:"0px 20px 20px 20px",borderRadius:"10px",border:"none"},...d,children:t})]})},sH=({backgroundColor:e,colorFont:r,titleProps:t,percentage:n=50,setPercentage:a})=>{const[o,i]=N.useState(0),[l,s]=N.useState(null);N.useEffect(()=>{s(n-o),i(n)},[n,o]);const c=y=>{const x=y.currentTarget.getBoundingClientRect(),b=y.clientX-x.left,m=Math.floor(b/x.width*100),h=Math.min(n+m,100);a&&a(h)},g={black:{black:"text-black"},white:{white:"text-white"}}[r]||{},w=Object.values(g).join(" ");return z.jsx("div",{className:"max-w-md mx-auto",style:{backgroundColor:e},children:z.jsx("div",{className:`shadow-lg p-4 pb-8 rounded-lg overflow-hidden ${w}`,children:z.jsxs("div",{className:"px-4 py-2",children:[z.jsx("h2",{className:"font-semibold text-lg mb-2",children:t}),z.jsxs("div",{className:"flex justify-between items-center mb-2",children:[z.jsxs("span",{className:"text-sm",children:[n,"/100"]}),l!==null&&z.jsxs("span",{className:l>0?"text-blue-500":"",children:["+",n,"%"]})]}),z.jsxs("div",{className:"relative h-4 w-full bg-gray-200 rounded-lg overflow-hidden cursor-pointer",onClick:c,children:[z.jsx("div",{className:"absolute top-0 left-0 h-full bg-blue-500",style:{width:`${n}%`}}),z.jsxs("div",{className:"absolute text-black text-xs font-bold",style:{left:"50%",transform:"translateX(-50%)",top:"50%",marginTop:"-0.5rem"},children:[n,"%"]})]})]})})})},cH=({tabs:e,variant:r,colorFont:t,background:n})=>{const[a,o]=N.useState(null),i=y=>{o(a===y?null:y)},l={success:{success:"rounded-lg border border-blue-gray-100 px-4 bg-green-500"},primary:{primary:"rounded-lg border border-blue-gray-100 px-4 bg-blue-500"},danger:{danger:"rounded-lg border border-blue-gray-100 px-4 bg-red-500"},warning:{warning:"rounded-lg border border-blue-gray-100 px-4 bg-yellow-500"},dark:{dark:"rounded-lg border border-blue-gray-100 px-4 bg-gray-200"},light:{light:"rounded-lg border border-blue-gray-100 px-4 bg-gray-800"}},s={black:{black:"text-black"},white:{white:"text-white"}},c=l[r]||{},f=s[t]||{},g=bt(...Object.values(c)),w=bt(...Object.values(f));return z.jsx("div",{className:"bg-gray-100 font-sans flex flex-col items-center p-2 ",children:z.jsxs("div",{className:"w-full justify-start ",children:[z.jsx("div",{className:"mb-2 flex flex-row flex-wrap justify-start space-y-2 md:space-y-1 md:space-x-2 space-x-1 md:gap-2 gap-1 p-2 rounded-lg shadow-md",style:{background:n},children:e.map(y=>z.jsx("button",{onClick:()=>i(y.id),className:`inline-block py-2 px-4 space-x-4 rounded-md ${w} ${a===y.id?g+" "+w:""}`,children:y.title},y.id))}),e.map(y=>z.jsxs("div",{className:`transition-all duration-300 bg-white p-4 rounded-lg whitespace-normal ${a===y.id?"block":"hidden"} hover:shadow-xl my-2 md:my-0`,style:{background:n},children:[z.jsx("h2",{className:`text-2xl font-semibold mb-2 ${w}`,children:y.title}),z.jsx("p",{className:`text-sm mb-2 ${w}`,children:y.content})]},y.id))]})})},uH=({img:e="https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg"})=>z.jsxs(ve.Carousel,{className:"rounded-xl h-full",navigation:({setActiveIndex:r,activeIndex:t,length:n})=>z.jsx("div",{className:"absolute bottom-4 left-2/4 z-50 flex -translate-x-2/4 gap-2",children:new Array(n).fill("").map((a,o)=>z.jsx("span",{className:`block h-1 cursor-pointer rounded-2xl transition-all content-[''] ${t===o?"w-8 bg-white":"w-4 bg-white/50"}`,onClick:()=>r(o)},o))}),placeholder:void 0,children:[z.jsx("img",{src:e,alt:"image 1",className:"h-full w-full object-cover"}),z.jsx("img",{src:e,alt:"image 1",className:"h-full w-full object-cover"})]}),dH=({backgroundColor:e,borderRadius:r=0,text3:t,text4:n,text5:a,text6:o})=>{const[i,l]=N.useState(null),s=c=>{l(c===i?null:c)};return z.jsx("div",{children:z.jsx("div",{className:"grid md:grid-cols-12 gap-4 mt-8 ",children:z.jsxs("div",{className:"md:col-start-1 md:col-span-6 col-span-10 border rounded border-gray-300 p-4",style:{backgroundColor:e},children:[z.jsx("div",{className:"pb-2 ",children:z.jsx(ve.Checkbox,{color:"green",id:"static-checkbox-1",ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0 "},label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:n}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`},checked:i===1,onChange:()=>s(1)})}),z.jsx("div",{className:"pb-2",children:z.jsx(ve.Checkbox,{color:"green",id:"static-checkbox-2",ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0"},label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:a}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`},checked:i===2,onChange:()=>s(2)})}),z.jsx("div",{className:"pb-2",children:z.jsx(ve.Checkbox,{color:"green",id:"static-checkbox-3",ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0"},label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:o}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`},checked:i===3,onChange:()=>s(3)})}),z.jsx("div",{className:"pb-2",children:z.jsx(ve.Checkbox,{color:"green",id:"static-checkbox-4",ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0"},label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:t}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`},disabled:i!==null})})]})})})},fH=({backgroundColor:e,borderRadius:r=0,filteredData:t,text3:n,hideText:a})=>{const[o,i]=N.useState(new Array((t==null?void 0:t.length)||0).fill(!1));N.useEffect(()=>{const s=document.getElementById("checkbox-container");if(s){const c=(t==null?void 0:t.length)||0,f=`${Math.ceil(c/4)*100}px`;s.style.height=f}},[t]);const l=s=>{const c=[...o];c[s]=!c[s],i(c)};return z.jsxs("div",{id:"checkbox-container",className:"grid md:flex md:flex-wrap md:justify-start md:gap-4 grid-cols-1 lg:grid-cols-12 items-center border-round border-gray-300",style:{backgroundColor:e},children:[z.jsx("span",{className:"p-2 pb-0 text-lg items-center justify-center lg:pb-6 lg:ml-4 lg:text-2xl md:text-lg ",style:{display:a?"none":""},children:n}),z.jsx("div",{className:"md:flex flex-wrap justify-start gap-6 p-4",style:{backgroundColor:e},children:t==null?void 0:t.map((s,c)=>z.jsx("div",{className:"pb-2",children:z.jsx(ve.Checkbox,{color:"green",id:`static-checkbox-${c+1}`,ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0"},checked:o[c],onChange:()=>l(c),label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:s}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`}})},c))})]})},pH=({backgroundColor:e,menuItems:r,buttonText:t})=>{const[n,a]=N.useState(null),[o,i]=N.useState(""),l={backgroundColor:e,margin:"10px"},s=w=>{a(w)},c=w=>{i(w.target.value)},f=(w=[],y)=>Array.isArray(w)?w.filter(x=>typeof x=="string").filter(x=>x.toLowerCase().includes(y.toLowerCase())):[],g=()=>{const w=f(r.map(y=>y.text),o);return z.jsx(c5,{children:w.map((y,x)=>z.jsx(xi,{text:y,onClick:()=>s(y)},x))})};return z.jsx(w5,{content:z.jsxs(z.Fragment,{children:[z.jsx(d6,{placeholder:"Search...",value:o,onChange:c}),g()]}),minimal:!0,position:"bottom",children:z.jsx(N1,{style:l,children:n||t||"Open Dropdown"})})};function vH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M344 280l88-88m-200 24l64 64M80 320l104-104"}},{tag:"circle",attr:{cx:"456",cy:"168",r:"24",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"320",cy:"304",r:"24",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"208",cy:"192",r:"24",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"56",cy:"344",r:"24",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}}]})(e)}function X6(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z"}}]})(e)}function hH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7 10l5 5 5-5H7z"}}]})(e)}function mH(e){return Le({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function gH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"}}]})(e)}function bH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"}}]})(e)}function yH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"}}]})(e)}function wH(e){return Le({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"}}]})(e)}function xH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"}}]})(e)}const CH=({data:e,backgroundColor:r})=>{const[t,n]=N.useState([]),[a,o]=N.useState(""),[i,l]=N.useState(!1),s=20,c=()=>{l(w=>!w)},f=w=>{const y=t.includes(w.abbrev);n(y?x=>x.filter(b=>b!==w.abbrev):x=>[...x,w.abbrev]),o("")},g=w=>{n(w?y=>y.filter(x=>x!==w):[])};return z.jsxs("div",{className:"relative inline-block justify-center text-center ",children:[z.jsxs("div",{className:" justify-center",children:[z.jsxs("div",{className:" space-y-2 ml-2 overflow-auto max-h-44 origin-top-right right-0 w-42 bg-white ",children:[t.map((w,y)=>{var x;return z.jsxs("div",{className:`flex items-center justify-center bg-gray-200 rounded px-6 py-2 mr-1 ${y>=s?"hidden":" "}`,children:[z.jsx("span",{children:(x=e.find(b=>b.abbrev===w))==null?void 0:x.name}),i&&z.jsx(X6,{className:"h-4 w-4 ml-auto cursor-pointer",onClick:()=>g(w)})]},w)}),t.length>s&&z.jsxs("span",{className:"text-gray-400",children:["+",t.length-s]})]}),z.jsxs("div",{className:"relative flex mt-2 items-center space-x-2 ",children:[z.jsx("input",{type:"text",placeholder:"Search Items",value:a,onChange:w=>o(w.target.value),className:"border rounded px-1 py-1 pl-4 focus:outline-none focus:border-blue-300",style:{backgroundColor:r}}),t.length>0&&z.jsx("span",{className:"absolute right-10 button-2 inline-flex justify-center rounded-md border hover:bg-gray-50 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 active:bg-gray-200 transition ease-in-out duration-150 ",children:i&&z.jsx(X6,{className:"h-4 w-4 ml-auto right-2 inline-flex justify-center rounded-md border",onClick:()=>g()})},t[0]),z.jsx("button",{type:"button",className:"absolute right-4 button-2 inline-flex justify-center rounded-md border hover:bg-gray-50 focus:outline-none focus:ring active:bg-gray-200 transition ease-in-out duration-150",onClick:c,children:z.jsx(hH,{})})]})]}),i&&z.jsx("div",{className:"origin-top-right absolute right-0 mt-2 w-42 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5",children:z.jsx("div",{className:"py-1 overflow-auto max-h-36",children:e.filter(w=>w.name.toLowerCase().includes(a.toLowerCase())).map(w=>z.jsxs("div",{className:`flex items-center justify-between px-5 py-1 mb-2 text-sm cursor-pointer ${t.includes(w.abbrev)?"bg-gray-300":"hover:bg-gray-100"}`,onClick:()=>f(w),children:[t.includes(w.abbrev)&&z.jsx(wH,{}),z.jsx("span",{children:w.name})]},w.abbrev))})})]})},MH=({backgroundColor:e="#ffffff",PopBackgroundColor:r="#ffffff",buttonText:t="Select",filteredOptions:n,id:a,inputName:o})=>{const[i,l]=N.useState(""),[s,c]=N.useState(!1),[f,g]=N.useState(""),w=()=>{c(!s)},y=b=>{g(b),c(!1)},x=N.useMemo(()=>n.filter(b=>b.label.toLowerCase().includes(i.toLowerCase())),[i,n]);return z.jsx("div",{className:"flex justify-center",children:z.jsxs("div",{className:"relative inline-block justify-center w-full text-center",children:[z.jsxs("button",{onClick:w,className:"p-3 flex items-center w-full gap-4 justify-between rounded cursor-pointer",style:{backgroundColor:e},children:[z.jsxs("span",{className:"text-sm",children:[f||t," "]}),z.jsx(l2,{})]}),z.jsxs("div",{className:`absolute right-0 left-0 ${s?"top-full":"bottom-full"} w-auto max-h-44 overflow-y-auto bg-white border rounded p-1 md:p-3 mt-2`,style:{backgroundColor:r,display:s?"block":"none"},children:[z.jsx("div",{className:"relative mb-2",children:z.jsx("input",{type:"text",id:a,name:o,placeholder:"Search items...",className:"border rounded p-2 text-start focus:outline-none w-full focus:border-blue-500",value:i,onChange:b=>l(b.target.value)})}),x.map(b=>z.jsx("div",{onClick:()=>y(b.label),className:"cursor-pointer text-start overflow-y-auto hover:bg-gray-200 p-1 w-auto rounded block",children:b.label},b.label))]})]})})};function zH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z"}}]})(e)}function TH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15 3C15.5523 3 16 3.44772 16 4V8C16 8.55228 15.5523 9 15 9H13V11H17C17.5523 11 18 11.4477 18 12V15H20C20.5523 15 21 15.4477 21 16V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V16C13 15.4477 13.4477 15 14 15H16V13H8V15H10C10.5523 15 11 15.4477 11 16V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V16C3 15.4477 3.44772 15 4 15H6V12C6 11.4477 6.44772 11 7 11H11V9H9C8.44772 9 8 8.55228 8 8V4C8 3.44772 8.44772 3 9 3H15ZM9 17H5V19H9V17ZM19 17H15V19H19V17ZM14 5H10V7H14V5Z"}}]})(e)}function OH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17 4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7V2H17V4ZM9 9V17H11V9H9ZM13 9V17H15V9H13Z"}}]})(e)}function SH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"}}]})(e)}function PH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m17 3-5 5-5-5h10"}},{tag:"path",attr:{d:"m17 21-5-5-5 5h10"}},{tag:"path",attr:{d:"M4 12H2"}},{tag:"path",attr:{d:"M10 12H8"}},{tag:"path",attr:{d:"M16 12h-2"}},{tag:"path",attr:{d:"M22 12h-2"}}]})(e)}function _H(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"18",cy:"5",r:"3"}},{tag:"circle",attr:{cx:"6",cy:"12",r:"3"}},{tag:"circle",attr:{cx:"18",cy:"19",r:"3"}},{tag:"line",attr:{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49"}},{tag:"line",attr:{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49"}}]})(e)}function EH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M12.003 21c-.732 .001 -1.465 -.438 -1.678 -1.317a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c.886 .215 1.325 .957 1.318 1.694"}},{tag:"path",attr:{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}},{tag:"path",attr:{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}},{tag:"path",attr:{d:"M19.001 15.5v1.5"}},{tag:"path",attr:{d:"M19.001 21v1.5"}},{tag:"path",attr:{d:"M22.032 17.25l-1.299 .75"}},{tag:"path",attr:{d:"M17.27 20l-1.3 .75"}},{tag:"path",attr:{d:"M15.97 17.25l1.3 .75"}},{tag:"path",attr:{d:"M20.733 20l1.3 .75"}}]})(e)}const Si=new Date,LH=Si.toLocaleDateString("en-MY"),VH=(Si.getMonth()+1).toString().padStart(2,"0"),AH=Si.getFullYear(),kH=({small_Show:e,main_Show:r,small_Text:t,small_BgColor:n,small_FontColor:a,small_DateType:o,small_TextPos:i,small_TextBold:l,main_BgColor:s,main_FontColor:c,main_IconColor:f,main_Title:g,count1:w,desc1:y,count2:x,desc2:b,count3:m,desc3:h,count4:d,desc4:v,count5:u,desc5:p})=>{const C=e?"block":"none",M=r?"block":"none",S=l?"700":"";let T="";switch(o){case"None":T="";break;case"Date":T=LH;break;case"Year":T=Si.getFullYear().toString();break;case"Month/Year":T=`${VH}/${AH}`;break}return z.jsxs("footer",{className:"relative w-full",children:[z.jsx("div",{id:"main",className:"flex flex-row p-3 items-center justify-center text-center md:justify-center grid grid-cols-1",style:{display:M,backgroundColor:s},children:z.jsxs("div",{id:"small",className:"grid grid-cols-1",children:[z.jsx("div",{children:z.jsx("h5",{className:"block w-full mt-5 mb-5 font-sans text-3xl antialiased font-extrabold leading-snug tracking-normal text-inherit",style:{color:c},children:g})}),z.jsx("div",{children:z.jsxs("ul",{className:"flex flex-wrap items-center w-full justify-center mx-auto gap-y-8 gap-x-7",children:[z.jsxs("li",{className:"flex items-center",children:[z.jsx(zH,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:w}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:y})]})]}),z.jsxs("li",{className:"flex items-center ",children:[z.jsx(TH,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:x}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:b})]})]}),z.jsxs("li",{className:"flex items-center ",children:[z.jsx(_H,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:m}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:h})]})]}),z.jsxs("li",{className:"flex items-center ",children:[z.jsx(EH,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:d}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:v})]})]}),z.jsxs("li",{className:"flex items-center ",children:[z.jsx(vH,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:u}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:p})]})]})]})})]})}),z.jsx("div",{id:"small",className:"flex w-full flex-col items-center border-blue-gray-50 py-4 gap-x-1 md:flex-row md:justify px-3",style:{display:C,justifyContent:i,backgroundColor:n},children:z.jsxs(ve.Typography,{variant:"small",className:"mb-4 text-center font-normal text-black md:mb-0",style:{color:a},placeholder:void 0,children:["© Hak Cipta Terpelihara ",z.jsxs("span",{style:{fontWeight:S},children:[" ",t," ",T," "]})]})})]})};var k5={exports:{}};const HH="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.7277%2017.3005L3.496%2033.576C2.72018%2032.8402%202.3009%2031.8309%202.3009%2030.7372V5.20985C2.3009%204.09546%202.74127%203.08592%203.53819%202.32928L19.7277%2017.3005Z'%20fill='%232299F8'/%3e%3cpath%20d='M33.7573%2017.9733C33.7573%2019.4455%2032.96%2020.749%2031.6387%2021.4854L27.0259%2024.0505L21.3005%2018.7513L19.7278%2017.3005L25.7882%2011.2234L31.6387%2014.4617C32.96%2015.1982%2033.7573%2016.5016%2033.7573%2017.9733Z'%20fill='%23FFC107'/%3e%3cpath%20d='M19.7277%2017.3005L3.53821%202.32923C3.74781%202.11857%204.02069%201.9295%204.29329%201.76131C5.61426%200.962352%207.20817%200.940977%208.57104%201.69838L25.7882%2011.2234L19.7277%2017.3005Z'%20fill='%235ACF5F'/%3e%3cpath%20d='M27.0258%2024.0506L8.57099%2034.2489C7.92109%2034.6276%207.18667%2034.7955%206.47385%2034.7955C5.71911%2034.7955%204.96431%2034.6063%204.29325%2034.186C3.9992%2034.0177%203.72667%2033.8074%203.49597%2033.576L19.7277%2017.3004L21.3004%2018.7513L27.0258%2024.0506Z'%20fill='%23F84437'/%3e%3c/svg%3e",H5=({theme:e="light",height:r=50,width:t=180,border:n,logo:a,storeName:o,title:i,url:l,className:s})=>N.createElement("div",{onClick:()=>l&&window.open(l,"_blank"),style:{height:r,width:t,borderRadius:n},className:`button-container button-container-${e} ${s}`},N.createElement("img",{src:a,alt:o}),N.createElement("div",{className:"button-text-container"},N.createElement("span",{className:"button-title"},i),N.createElement("span",{className:"button-store-name"},o))),NH=({theme:e="light",height:r,title:t="GET IT ON",width:n,className:a,url:o})=>N.createElement(H5,{theme:e,height:r,width:n,url:o,storeName:"Google Play",logo:HH,className:a,title:t}),RH="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.4416%201C3.52853%201%201%203.52809%201%2010.4398V25.2102C1%2032.1219%203.52853%2034.65%2010.4416%2034.65H25.2039C32.1168%2034.65%2034.65%2032.1219%2034.65%2025.2102V10.4398C34.65%203.52809%2032.1215%201%2025.2084%201H10.4416Z'%20fill='url(%23paint0_linear_303_2)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.678%2020.5163H17.0289L16.3512%2018.9401L15.678%2020.5163ZM15.3453%2021.3106L14.9445%2022.2278H14.032L15.9725%2017.8253H16.7612L18.6938%2022.2278H17.757L17.3613%2021.3106H15.3453ZM30.0292%2022.2245H30.9111V17.825H30.0292V22.2245ZM26.5189%2020.3346H28.1446V19.5324H26.5189V18.6307H28.8789V17.8283H25.6372V22.2275H28.9638V21.425H26.5189V20.3346ZM23.0146%2020.8544L22.0148%2017.825H21.2851L20.2852%2020.8544L19.3121%2017.8274H18.3606L19.8963%2022.2302H20.636L21.6375%2019.3382L22.639%2022.2302H23.3852L24.9167%2017.8274H23.9899L23.0146%2020.8544ZM12.6857%2020.3467C12.6857%2021.0629%2012.33%2021.4456%2011.6842%2021.4456C11.0348%2021.4456%2010.6773%2021.0518%2010.6773%2020.3162V17.828H9.78342V20.3467C9.78342%2021.5857%2010.472%2022.2962%2011.672%2022.2962C12.8839%2022.2962%2013.5787%2021.5722%2013.5787%2020.31V17.8253H12.6857V20.3467ZM7.65088%2017.8253H8.5442V22.2305H7.65088V20.4414H5.63275V22.2305H4.73889V17.8253H5.63275V19.6022H7.65088V17.8253Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.825%2012.2167C14.7323%2012.2167%2012.2167%209.70082%2012.2167%206.60834H13.0089C13.0089%209.26375%2015.1696%2011.4242%2017.825%2011.4242C20.4804%2011.4242%2022.6412%209.26375%2022.6412%206.60834H23.4333C23.4333%209.70082%2020.9175%2012.2167%2017.825%2012.2167Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_303_2'%20x1='17.825'%20y1='1'%20x2='17.825'%20y2='34.65'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FB6361'/%3e%3cstop%20offset='1'%20stop-color='%23ED3E45'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",jH=({theme:e="light",height:r,title:t="EXPLORE IT ON",width:n,className:a,url:o})=>N.createElement(H5,{theme:e,height:r,width:n,url:o,storeName:"AppGallery",logo:RH,className:a,title:t}),DH="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.6667%206.6387C23.7612%205.22345%2024.5899%203.22144%2024.29%201.17773C22.501%201.30191%2020.4104%202.4499%2019.1919%203.94488C18.0805%205.30121%2017.1663%207.31552%2017.5225%209.27302C19.477%209.3342%2021.4967%208.15878%2022.6667%206.6387Z'%20fill='black'/%3e%3cpath%20d='M31.3594%2012.4655C29.6415%2010.3057%2027.228%209.05225%2024.9482%209.05225C21.939%209.05225%2020.6661%2010.4973%2018.5753%2010.4973C16.4196%2010.4973%2014.7815%209.05661%2012.1792%209.05661C9.62293%209.05661%206.90085%2010.6234%205.17475%2013.3021C2.74862%2017.0746%203.16402%2024.1672%207.09597%2030.2084C8.50292%2032.3702%2010.382%2034.8009%2012.84%2034.822C15.0269%2034.8427%2015.6434%2033.415%2018.6069%2033.4004C21.5699%2033.3836%2022.1322%2034.8411%2024.3151%2034.8178C26.7751%2034.7987%2028.7569%2032.1048%2030.164%2029.9434C31.1726%2028.3937%2031.5483%2027.6138%2032.3301%2025.864C26.6407%2023.692%2025.7286%2015.5795%2031.3594%2012.4655Z'%20fill='black'/%3e%3c/svg%3e",IH="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.6667%206.6387C23.7612%205.22345%2024.5899%203.22144%2024.29%201.17773C22.501%201.30191%2020.4104%202.4499%2019.1919%203.94488C18.0805%205.30121%2017.1663%207.31552%2017.5225%209.27302C19.477%209.3342%2021.4967%208.15878%2022.6667%206.6387Z'%20fill='white'/%3e%3cpath%20d='M31.3594%2012.4655C29.6415%2010.3057%2027.228%209.05225%2024.9482%209.05225C21.939%209.05225%2020.6661%2010.4973%2018.5753%2010.4973C16.4196%2010.4973%2014.7815%209.05661%2012.1792%209.05661C9.62293%209.05661%206.90085%2010.6234%205.17475%2013.3021C2.74862%2017.0746%203.16402%2024.1672%207.09597%2030.2084C8.50292%2032.3702%2010.382%2034.8009%2012.84%2034.822C15.0269%2034.8427%2015.6434%2033.415%2018.6069%2033.4004C21.5699%2033.3836%2022.1322%2034.8411%2024.3151%2034.8178C26.7751%2034.7987%2028.7569%2032.1048%2030.164%2029.9434C31.1726%2028.3937%2031.5483%2027.6138%2032.3301%2025.864C26.6407%2023.692%2025.7286%2015.5795%2031.3594%2012.4655Z'%20fill='white'/%3e%3c/svg%3e",Z6=Vi(Object.freeze(Object.defineProperty({__proto__:null,AppGalleryButton:jH,AppStoreButton:({theme:e="light",height:r,title:t="Download on the",width:n,className:a,url:o})=>N.createElement(H5,{theme:e,height:r,width:n,url:o,storeName:"App Store",logo:e==="dark"?IH:DH,className:a,title:t}),ButtonsContainer:({children:e,gap:r,direction:t="row"})=>N.createElement("div",{className:"buttons-container",style:{gap:r,flexDirection:t}},e),GooglePlayButton:NH},Symbol.toStringTag,{value:"Module"})));(function(e,r){e.exports=Z6,r.default=Z6})(k5,k5.exports);var N5=k5.exports;const $H=({comName:e,subComName:r,imgSrc:t,add1:n,add2:a,postCode:o,state:i,country:l,phone:s,email:c,link_Show:f,link:g,hit_Show:w,hitOnline:y,hitToday:x,hitYesterday:b,hitTotal:m,hitMax:h,showMedia:d,showPlayStore:v,linkPlayStore:u,showAppStore:p,linkAppStore:C,showTwit:M,linkTwit:S,showFb:T,linkFb:O,showIg:P,linkIg:L,showLI:V,linkLI:k,showYT:j,linkYT:U,showTik:$,linkTik:B})=>{const I=f?"block":"none",R=w?"block":"none",G=d?"block":"none",q=v?"block":"none",Y=p?"block":"none",F=M?"block":"none",D=T?"block":"none",W=P?"block":"none",ee=V?"block":"none",J=j?"block":"none",X=$?"block":"none";return z.jsx("footer",{className:"relative w-full",children:z.jsx("div",{className:"mx-auto w-full max-w-7xl px-8",children:z.jsxs("div",{className:"grid grid-cols-1 justify-between gap-4 md:grid-cols-2",children:[z.jsxs(ve.Typography,{variant:"h5",className:"mb-6",placeholder:void 0,children:[e,z.jsx("br",{}),r]}),z.jsx("br",{}),z.jsxs("div",{style:{display:"flex"},children:[z.jsx("div",{style:{width:"25%"},children:z.jsx("figure",{children:z.jsx("img",{className:"h-86 rounded-lg object-center",src:t,alt:"nature image",width:"120"})})}),z.jsxs("div",{style:{width:"75%"},children:[n,",",z.jsx("br",{}),a,",",z.jsx("br",{}),o,", ",i,",",z.jsx("br",{}),l,".",z.jsx("br",{}),"Tel : (+6) ",s,z.jsx("br",{}),"Emel : ",c,z.jsx("br",{})]})]}),z.jsxs("div",{className:"grid grid-cols-3 justify-between gap-4",children:[z.jsxs("ul",{style:{display:I},children:[z.jsx(ve.Typography,{variant:"h6",color:"blue-gray",className:"mb-3 font-large",placeholder:void 0,children:"Pautan"}),g.map(te=>z.jsx("li",{children:z.jsx(ve.Typography,{as:"a",href:te.url,color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:te.name})}))]}),z.jsxs("ul",{style:{display:R},children:[z.jsx(ve.Typography,{variant:"h6",color:"blue-gray",className:"mb-3 font-large",placeholder:void 0,children:"Penggunaan Portal"}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Dalam Talian : ",y]})}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Hari Ini : ",x]})}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Semalam : ",b]})}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Jumlah : ",m]})}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Maksimum : ",h]})})]}),z.jsxs("ul",{style:{display:G},children:[z.jsx("div",{className:"flex gap-4 mb-5 text-blue-gray-900 sm:justify-center",children:z.jsxs(N5.ButtonsContainer,{direction:"column",children:[z.jsx("span",{style:{display:q},children:z.jsx("a",{className:"link",target:"_blank",style:{textDecoration:"none"},children:z.jsx(N5.GooglePlayButton,{url:u,theme:"dark",title:"Muat turun di",width:178})})}),z.jsx("span",{style:{display:Y},children:z.jsx("a",{className:"link",target:"_blank",style:{textDecoration:"none"},children:z.jsx(N5.AppStoreButton,{url:C,theme:"dark",title:"Muat turun di",width:178})})})]})}),z.jsxs("div",{className:"flex gap-4 text-blue-gray-900 sm:justify-center mb-4",children:[z.jsx("span",{style:{display:F},children:z.jsx(ve.Typography,{as:"a",href:S,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(gH,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:D},children:z.jsx(ve.Typography,{as:"a",href:O,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(N8,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:W},children:z.jsx(ve.Typography,{as:"a",href:L,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(R8,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:ee},children:z.jsx(ve.Typography,{as:"a",href:k,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(j8,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:J},children:z.jsx(ve.Typography,{as:"a",href:U,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(D8,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:X},children:z.jsx(ve.Typography,{as:"a",href:B,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(mH,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})})]}),z.jsx("div",{className:"flex text-left gap-4 text-blue-gray-900 sm:justify-left opacity-40",children:"Paparan terbaik menggunakan Mozilla Firefox versi 50 dan ke atas pada resolusi skrin minimum 1366×768"})]})]})]})})})},J6=({backgroundColor:e,onFileSelect:r,buttonText:t,disabled:n,iconPosition:a,widthButton:o,allowedFileTypes:i})=>{const l=N.useRef(null),[s,c]=N.useState([]),f=b=>{b.preventDefault()},g=b=>{b.preventDefault();const m=b.dataTransfer.files;if(m.length>0){const h=Array.from(m);c([...s,...h]),r(h)}},w=b=>{const m=s.filter(h=>h!==b);c(m)},y=b=>{const m=b.target.files;if(m&&m.length>0){const h=Array.from(m);c([...s,...h]),r(h)}},x=b=>{const m={marginRight:"5px",marginLeft:"5px"};switch(a){case"left":return z.jsxs(z.Fragment,{children:[z.jsx(jt,{icon:b,style:m}),z.jsx("span",{children:t})]});case"right":return z.jsxs(z.Fragment,{children:[z.jsx("span",{children:t}),z.jsx(jt,{icon:b,style:m})]});case"top":return z.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[z.jsx(jt,{icon:b,style:m}),z.jsx("span",{children:t})]});case"bottom":return z.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[z.jsx("span",{children:t}),z.jsx(jt,{icon:b,style:m})]});default:return z.jsxs(z.Fragment,{children:[z.jsx(jt,{icon:b,style:m}),z.jsx("span",{children:t})]})}};return z.jsxs("div",{onDrop:g,onDragOver:f,style:{display:"flex",flexDirection:"column",alignItems:"center",border:"2px dashed #cccc",borderRadius:"5px",padding:"20px",backgroundColor:e||"transparent"},children:[z.jsx("input",{type:"file",style:{display:"none"},ref:l,onChange:y,multiple:!0,accept:i}),z.jsx(N1,{style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"10px",margin:"0 auto",width:o,backgroundColor:e||"transparent",border:"black"},onClick:()=>{var b;return(b=l.current)==null?void 0:b.click()},disabled:n,minimal:!0,children:x("cloud-upload")}),z.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:s.map((b,m)=>z.jsx("div",{style:{border:"1px solid #ccc",borderRadius:"5px",padding:"10px",marginBottom:"10px",width:"100%"},children:z.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[z.jsx("span",{style:{marginRight:"5px",color:"black",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:b.name}),z.jsx("span",{style:{marginRight:"5px",color:"grey"},children:` ${(b.size/1024/1024).toFixed(2)} MB`}),z.jsx("a",{href:URL.createObjectURL(b),download:b.name,style:{textDecoration:"underline",cursor:"pointer",color:"blue",marginLeft:"auto",marginRight:"5px"},children:"Download"}),z.jsx("button",{onClick:()=>w(b),style:{background:"none",border:"none",cursor:"pointer",outline:"none",display:"flex",alignItems:"center",color:"#c62828"},children:z.jsx(jt,{icon:"trash",style:{marginRight:"5px"}})})]})},m))})]})};J6.defaultProps={buttonText:"Upload Here"};const FH=({variant:e="0",text:r})=>{let t=!1,n=!1;return e==="1"?(n=!0,t=!1):e==="2"?(n=!1,t=!0):(n=!1,t=!1),z.jsx(z.Fragment,{children:z.jsxs("div",{className:"w-[32rem] ",children:[z.jsx(Ks.Input,{type:"password",label:"Password",error:n,success:t,crossOrigin:void 0}),z.jsxs(WM,{variant:"small",color:"gray",className:"mt-2 flex items-center gap-1 font-normal ",placeholder:void 0,children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"-mt-px h-4 w-4",children:z.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),r]})]})})},Q6=({placeholderProps:e,colorPros:r,validationProps:t,disabledProps:n,requiredProps:a,labelProps:o})=>{const[i,l]=N.useState(""),[s,c]=N.useState(!0),f=y=>{l(y.target.value),c(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(y.target.value))};let g=!1,w=!1;return r==="Error"?(w=!0,g=!1):r==="Success"?(w=!1,g=!0):(w=!1,g=!1),z.jsxs("div",{className:"w-[32rem]",children:[z.jsx(ve.Input,{type:"email",label:o,crossOrigin:void 0,required:a,onChange:f,value:i,error:w,success:g,disabled:n,placeholder:e}),!s&&z.jsxs("span",{className:"text-red-500 text-xs mt-1 flex",children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"-mt-px h-4 w-4 mr-1",children:z.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),t]})]})};Q6.defaultProps={labelProps:"Email Address",placeholderProps:"Email Address",colorPros:"Default",validationProps:"Please enter a valid email address.",disabledProps:!1,requiredProps:!0};const e7=({placeholderProps:e,colorPros:r,maxlengthProps:t,disabledProps:n})=>{const a=l=>{const c=l.target.value.replace(/[^0-9]/g,"");l.target.value=c};let o=!1,i=!1;return r==="Error"?(i=!0,o=!1):r==="Success"?(i=!1,o=!0):(i=!1,o=!1),z.jsx(z.Fragment,{children:z.jsx("div",{className:"w-[32rem]",children:z.jsx(ve.Input,{type:"text",label:`${e}`,crossOrigin:void 0,required:!0,onInput:a,maxLength:t,error:i,success:o,disabled:n})})})};e7.defaultProps={placeholderProps:"Number",colorPros:"Default",maxlengthProps:10,disabledProps:!1};function WH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z"}}]})(e)}function UH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"}}]})(e)}function GH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.023 16.977a35.13 35.13 0 0 1-1.367-1.384c-.372-.378-.596-.653-.596-.653l-2.8-1.337A6.962 6.962 0 0 0 16 9c0-3.859-3.14-7-7-7S2 5.141 2 9s3.14 7 7 7c1.763 0 3.37-.66 4.603-1.739l1.337 2.8s.275.224.653.596c.387.363.896.854 1.384 1.367l1.358 1.392.604.646 2.121-2.121-.646-.604c-.379-.372-.885-.866-1.391-1.36zM9 14c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"}}]})(e)}const t7=({colorPros:e,disabledProps:r,dateFormatProps:t})=>{const[n,a]=N.useState();let o=!1,i=!1;e==="Error"?(i=!0,o=!1):e==="Success"?(i=!1,o=!0):(i=!1,o=!1);const s={"Month/day/year":"MM/dd/yyyy","Year-month-day":"yyyy-MM-dd","Day/month/year":"dd/MM/yyyy",Default:"PPP"}[t]||"PPP";return z.jsx(z.Fragment,{children:z.jsx("div",{className:"p-24",children:z.jsxs(ve.Popover,{placement:"bottom",children:[z.jsx(ve.PopoverHandler,{children:z.jsx(ve.Input,{label:"Select a Date",onChange:()=>null,value:n?r1(n,s):"",crossOrigin:void 0,error:i,success:o,disabled:r,required:!0})}),z.jsx(ve.PopoverContent,{placeholder:void 0,children:z.jsx(Uv,{mode:"single",selected:n,onSelect:a,showOutsideDays:!0,className:"border-0",classNames:{caption:"flex justify-center py-2 mb-4 relative items-center",caption_label:"text-sm font-medium text-gray-900",nav:"flex items-center",nav_button:"h-6 w-6 bg-transparent hover:bg-blue-gray-50 p-1 rounded-md transition-colors duration-300",nav_button_previous:"absolute left-1.5",nav_button_next:"absolute right-1.5",table:"w-full border-collapse",head_row:"flex font-medium text-gray-900",head_cell:"m-0.5 w-9 font-normal text-sm",row:"flex w-full mt-2",cell:"text-gray-600 rounded-md h-9 w-9 text-center text-sm p-0 m-0.5 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-gray-900/20 [&:has([aria-selected].day-outside)]:text-white [&:has([aria-selected])]:bg-gray-900/50 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"h-9 w-9 p-0 font-normal",day_range_end:"day-range-end",day_selected:"rounded-md bg-gray-900 text-white hover:bg-gray-900 hover:text-white focus:bg-gray-900 focus:text-white",day_today:"rounded-md bg-gray-200 text-gray-900",day_outside:"day-outside text-gray-500 opacity-50 aria-selected:bg-gray-500 aria-selected:text-gray-900 aria-selected:bg-opacity-10",day_disabled:"text-gray-500 opacity-50",day_hidden:"invisible"},components:{IconLeft:({...c})=>z.jsx(WH,{...c,className:"h-4 w-4 stroke-2"}),IconRight:({...c})=>z.jsx(UH,{...c,className:"h-4 w-4 stroke-2"})}})})]})})})};t7.defaultProps={colorPros:"Default",disabledProps:!1,dateFormatProps:"Default"};const r7=({colorPros:e,labelProps:r,disabledProps:t,placeholderProps:n,buttonProps:a,buttonHide:o,requiredProp:i,hideButton:l})=>{const[s,c]=N.useState(""),f=e==="Error",g=e==="Success",w=()=>{};return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"relative flex items-center",children:[z.jsx(ve.Input,{icon:z.jsx(GH,{className:"h-5 w-5 text-gray-500"}),type:"text",label:r,value:s,onChange:y=>c(y.target.value),required:i,error:f,success:g,disabled:t,placeholder:n,crossOrigin:void 0,className:"mr-2"}),!o&&z.jsx("button",{onClick:w,className:"px-3 py-2 ml-4 bg-blue-500 text-white rounded-md hover:bg-blue-600",style:{display:l?"none":""},disabled:t,children:z.jsx("span",{children:a})})]}),f&&z.jsx("p",{className:"mt-1 text-red-500 text-sm",children:"Invalid input"}),g&&z.jsx("p",{className:"mt-1 text-green-500 text-sm",children:"Success!"})]})};r7.defaultProps={placeholderProps:"Search",colorPros:"Default",disabledProps:!1,labelProps:"Search",buttonProps:"Submit",buttonHide:!1,requiredProp:!1};const n7=({placeholderProps:e,colorPros:r,validationProps:t,disabledProps:n,labelProp:a})=>{const[o,i]=N.useState(""),[l,s]=N.useState(!0),c=w=>{i(w.target.value),s(/^(ftp|http|https):\/\/[^ "]+$/.test(w.target.value))};let f=!1,g=!1;return r==="Error"?(g=!0,f=!1):r==="Success"?(g=!1,f=!0):(g=!1,f=!1),z.jsxs("div",{className:"w-[32rem]",children:[z.jsx(ve.Input,{type:"url",label:a,crossOrigin:void 0,required:!0,onChange:c,value:o,error:g,success:f,disabled:n,placeholder:e}),!l&&z.jsxs(ve.Typography,{variant:"small",color:"red",className:"mt-1 flex items-center gap-1 font-normal",placeholder:void 0,children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"-mt-px h-4 w-4",children:z.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),t]})]})};n7.defaultProps={labelProp:"URL Document",placeholderProps:"exp: https://placeholder.com",validationProps:"Please enter a valid URL.",disabledProps:!1,colorPros:"Default"};const a7=({colorPros:e,disabledProps:r,labelProps:t})=>{let n=!1,a=!1;return e==="Error"?(a=!0,n=!1):e==="Success"?(a=!1,n=!0):(a=!1,n=!1),z.jsx("div",{className:"w-96",children:z.jsx(ve.Textarea,{label:t,disabled:r,error:a,success:n})})};a7.defaultProps={labelProps:"Additional Information",colorPros:"Default",disabledProps:!1};const o7=({data:e,title:r,subTitle:t,buttonProps:n})=>{const a={medium:"md",large:"lg"};return z.jsx(z.Fragment,{children:z.jsxs(ve.Card,{color:"transparent",shadow:!1,placeholder:void 0,children:[z.jsx(ve.Typography,{variant:"h4",color:"blue-gray",placeholder:void 0,children:r}),z.jsx(ve.Typography,{color:"gray",className:"mt-1 font-normal",placeholder:void 0,children:t}),z.jsxs("form",{className:"mt-8 mb-2 w-80 max-w-screen-lg sm:w-96",children:[z.jsx("div",{className:"mb-1 flex flex-col gap-6",children:e.map((o,i)=>z.jsx(ve.Input,{size:`${a[o.size]}`,label:o.label,placeholder:o.placeholder,crossOrigin:void 0,type:o.type},i))}),z.jsx(ve.Button,{className:"mt-6",fullWidth:!0,placeholder:void 0,children:n})]})]})})};o7.defaultProps={data:[{label:"Your Name",placeholder:"Your Name",size:"large",type:"text"}],title:"Contact Us",subTitle:"Please fill in the form below to contact us.",buttonProps:"Submit"};const i7=({placeholderProps:e,colorPros:r,disabledProps:t,requiredProps:n,labelProps:a})=>{let o=!1,i=!1;return r==="Error"?(i=!0,o=!1):r==="Success"?(i=!1,o=!0):(i=!1,o=!1),z.jsx("div",{className:"w-[32rem]",children:z.jsx(ve.Input,{type:"number",label:a,crossOrigin:void 0,required:n,error:i,success:o,disabled:t,placeholder:e})})};i7.defaultProps={labelProps:"Quantity",placeholderProps:"exp: 23",colorPros:"Default",disabledProps:!1,requiredProps:!0};const BH=({variant:e,Text:r,borderRadius:t})=>{const[n,a]=N.useState(1),[o,i]=N.useState(!1),l=()=>{i(!o),!o&&n===1&&a(0)},c=bt({success:"bg-green-500 hover:bg-green-700 shadow-md font-bold",primary:"bg-blue-500 hover:bg-blue-700 shadow-md text-white font-bold",danger:"bg-red-500 hover:bg-red-700 shadow-md text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 shadow-md text-black font-bold",dark:"bg-gray-200 hover:bg-gray-700 shadow-md text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 shadow-md text-white font-bold",White:"bg-white hover:bg-gray-400 shadow-md text-black font-bold"}[e]);return z.jsx("div",{className:"flex justify-center",children:z.jsxs("button",{type:"button",className:`relative inline-flex items-center justify-center space-x-2 p-3 text-sm font-medium text-center rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none ${c} focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800`,style:{borderRadius:`${t}px`},onClick:l,children:[z.jsx("span",{className:"",children:z.jsx("h1",{className:"md:text-xl text-xm",children:r})}),n>0&&z.jsx("div",{className:"inline-flex items-center justify-center w-6 h-6 md:text-lg text-xs font-bold bg-red-500 border-2 border-white rounded-full dark:border-gray-900",children:n})]})})},qH=({variant:e,borderRadius:r})=>{const[t,n]=N.useState(1),[a,o]=N.useState(!1),i=()=>{o(!a),!a&&t===1&&n(0)},s=bt({success:"bg-green-500 hover:bg-green-700 shadow-md font-bold",primary:"bg-blue-500 hover:bg-blue-700 shadow-md text-white font-bold",danger:"bg-red-500 hover:bg-red-700 shadow-md text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 shadow-md text-black font-bold",dark:"bg-gray-200 hover:bg-gray-700 shadow-md text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 shadow-md text-white font-bold",White:"bg-white hover:bg-gray-400 shadow-md text-black font-bold"}[e]);return z.jsx("div",{className:"flex justify-center",children:z.jsxs("button",{type:"button",className:`relative inline-flex items-center justify-center space-x-2 p-3 text-sm font-medium text-center rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none ${s} focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800`,style:{borderRadius:`${r}px`},onClick:i,children:[z.jsx(oc,{className:"w-5 h-5"}),t>0&&z.jsx("div",{className:"absolute inline-flex items-center justify-center w-6 h-6 md:text-lg text-xs font-bold text-white bg-red-500 border-2 border-white rounded-full -top-2 -end-2 dark:border-gray-900",children:t})]})})};function YH(e){return Le({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{strokeWidth:"2",d:"M1 22V9.76a2 2 0 01.851-1.636l9.575-6.72a1 1 0 011.149 0l9.574 6.72A2 2 0 0123 9.76V22a1 1 0 01-1 1h-5.333a1 1 0 01-1-1v-5.674a1 1 0 00-1-1H9.333a1 1 0 00-1 1V22a1 1 0 01-1 1H2a1 1 0 01-1-1z"}}]})(e)}const KH=({variant:e,target:r=1054,time:t=2e4,start:n=0,Text:a,borderRadius:o})=>{const l={success:"bg-green-500 hover:bg-green-700 shadow-md font-bold",primary:"bg-blue-500 hover:bg-blue-700 shadow-md text-white font-bold",danger:"bg-red-500 hover:bg-red-700 shadow-md text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 shadow-md text-black font-bold",dark:"bg-gray-200 hover:bg-gray-700 shadow-md text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 shadow-md text-white font-bold",White:"bg-white hover:bg-gray-400 shadow-md text-black font-bold"}[e],[s,c]=N.useState(n);return N.useEffect(()=>{const f=(r-n)/t,g=setInterval(()=>{s<r?c(w=>w+f):(clearInterval(g),c(r))},1);return()=>clearInterval(g)},[s,r,t,n]),z.jsx("div",{className:"flex justify-center items-center ",children:z.jsx("div",{className:"w-auto max-w-full px-3 text-center flex-0 lg:w-auto",children:z.jsxs("div",{className:`py-4 ${l} p-4 `,style:{borderRadius:`${o}px`},children:[z.jsx("span",{className:"inline-flex items-center justify-center w-10 h-10 md:text-lg text-xs font-bold border-2 border-white rounded-full dark:border-gray-900",children:z.jsx(YH,{className:"h-6 w-6"})}),z.jsx("h6",{className:"",children:a}),z.jsx("h4",{className:"font-bold dark:text-white",children:isNaN(Math.round(s))?n:Math.round(s)})]})})})},XH=({backgroundColor:e})=>{const[r,t]=N.useState(0),n=a=>{t(a)};return z.jsx(WA,{style:{backgroundColor:e},value:r,onValueChange:n,placeholder:"Enter a number"})},ZH=({variant:e,Text:r,borderRadius:t})=>{const[n,a]=N.useState(null),o=c=>{var g;const f=(g=c.target.files)==null?void 0:g[0];f&&a(f)},i=()=>{if(n){const c=URL.createObjectURL(n);window.open(c)}},s=bt({success:"bg-green-500 hover:bg-green-700 font-bold",primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold",danger:"bg-red-500 hover:bg-red-700 text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold",dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 text-white font-bold",White:"bg-white hover:bg-gray-400 text-black font-bold"}[e]);return z.jsxs("div",{className:"w-full h-full flex flex-col justify-center items-center",children:[z.jsx("input",{type:"file",accept:".pdf",onChange:o}),z.jsx("button",{className:` py-2 px-4 ${s} mt-6 `,style:{borderRadius:`${t}px`},onClick:i,children:r})]})},JH=({tagText:e,maxTags:r,disabled:t,...n})=>{const[a,o]=N.useState([]),i=s=>{const c=s[s.length-1];if(a.length<(r||1/0))o([...a,c]);else return console.log("Maximum tags reached."),!1},l=(s,c)=>{const f=[...a];f.splice(c,1),o(f)};return z.jsx(qA,{placeholder:e,values:a,onAdd:i,onRemove:l,disabled:t,...n})},QH=({placeholderProps:e="insert value",valueProps:r,readOnlyProp:t,intentProps:n})=>z.jsx(BA,{value:r,intent:n,placeholder:e,readOnly:t}),eN=({variant:e,variant1:r})=>{const[t,n]=N.useState(!1),a=()=>{n(!t)},o={success:"bg-green-500 hover:bg-green-700 font-bold",primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold",danger:"bg-red-500 hover:bg-red-700 text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold",dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 text-white font-bold",White:"bg-white hover:bg-gray-400 text-white font-bold"},i={success:"bg-green-500 hover:bg-green-700 font-bold",primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold",danger:"bg-red-500 hover:bg-red-700 text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold",dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 text-white font-bold",White:"bg-white hover:bg-gray-400 text-white font-bold"},l=bt(o[e]),s=bt(i[r]);return console.log("Checked state:",t),z.jsxs("div",{className:"flex justify-center items-center ",children:[" ",z.jsx("div",{className:`flex justify-center items-center ${s} h-16 w-24`,children:z.jsxs("label",{className:"inline-flex items-center cursor-pointer",children:[z.jsx("input",{type:"checkbox",className:"sr-only peer",checked:t,onChange:a,id:"toggleButton","aria-labelledby":"toggleLabel"}),z.jsx("div",{className:`relative md:w-14 w-11 h-6 md:h-8 ${t?l:"bg-gray-800"} peer-focus:outline-none peer-focus:ring-6 rounded-full peer dark:bg-gray-700`,children:z.jsx("div",{className:`after:content-[''] after:absolute after:top-[2px] after:start-[4px] after:bg-white after:border-gray-600 after:border after:rounded-full md:after:h-7 after:h-5 md:after:w-7 after:w-5 after:transition-all dark:border-gray-700 ${t?"md:translate-x-6 translate-x-6 bg-blue-500":""}`})})]})})]})},tN=({color:e})=>{const[r,t]=N.useState(e);N.useEffect(()=>{t(e)},[e]);const n=a=>{const o=a.target.value;t(o),console.log(o)};return z.jsx(z.Fragment,{children:z.jsx("div",{className:"flex items-center justify-center ",children:z.jsxs("div",{className:"border divide-x-2 divide-gray-700 shadow-md flex items-center justify-center ",children:[z.jsx("input",{type:"text",className:"w-40 bg-white p-2 h-10",placeholder:"#RRGGBB",value:r,onChange:n}),z.jsx("input",{type:"color",className:"w-10 pl-1 bg-gray-100 h-10",value:r,onChange:n})]})})})},rN=({variant:e,variant1:r,variant2:t,text:n})=>{const a={sans:"font-sans ...",serif:"font-serif ...",mono:"font-mono ..."},o={italic:"italic ...",notitalic:"not-italic ..."},i={thin:"font-thin ...",extralight:"font-extralight ...",light:"font-light ...",normal:"font-normal ...",medium:"font-medium...",semibold:"font-semibold ...",bold:"font-bold ...",extrabold:"font-extrabold ...",black:"font-black ..."},l=bt(a[e]),s=bt(r==="italic"?o.italic:o.notitalic),c=bt(i[t]);return z.jsx("div",{children:z.jsx("span",{className:`${l} ${s} ${c} border p-2`,children:n})})},l7=({placeholderProps:e,colorPros:r,validationProps:t,disabledProps:n,requiredProps:a,labelProps:o})=>{const[i,l]=N.useState(""),s=i.trim().length>0,c=w=>{l(w.target.value)},f=r==="Error",g=r==="Success";return z.jsxs("div",{className:"w-[32rem]",children:[z.jsx(ve.Input,{type:"text",label:o,crossOrigin:void 0,required:a,onChange:c,value:i,error:f&&!s,success:g,disabled:n,placeholder:e}),!s&&z.jsxs("span",{className:"text-red-500 text-xs mt-1 flex",children:[z.jsx(F8,{className:"-mt-px h-4 w-4 mr-1"}),t]})]})};l7.defaultProps={labelProps:"Text Field",placeholderProps:"Enter Text",colorPros:"Default",validationProps:"Please enter valid text.",disabledProps:!1,requiredProps:!0};const s7=({type:e,placeholderProps:r,validationProps:t,disabledProps:n,isRequired:a,numberLength:o,decimalPoints:i,id:l,name:s})=>{const[c,f]=N.useState(""),[g,w]=N.useState(!0),[y,x]=N.useState(!1),b=v=>{f(v.target.value),h(v.target.value)},m=()=>{x(!0)},h=v=>{if(!a&&v===""){w(!0);return}switch(e){case"email":w(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(v));break;case"number":w(/^\d+$/.test(v));break;case"float":const u=new RegExp(`^\\d+(\\.\\d{0,${i}})?$`);w(u.test(v));break;case"password":w(v.length>=8);break;default:w(!0);break}},d=!g&&y;return z.jsxs("div",{className:"w-[32rem]",children:[z.jsx("input",{id:l,name:s,type:e,placeholder:r,required:a,disabled:n,value:c,onChange:b,onBlur:m,maxLength:e==="number"?o:void 0,className:`peer h-full w-full rounded-md border ${d?"border-red-500 focus:ring-red-500/50":"border-blue-gray-200 "} border-t-transparent !border-t-blue-gray-200 bg-transparent px-3 py-3 font-sans text-sm font-normal outline outline-0 transition-all placeholder-shown:border placeholder-shown:border-blue-gray-200 placeholder-shown:border-t-blue-gray-200 focus:border-2 focus:border-t-transparent focus:outline-0 disabled:border-0 disabled:bg-blue-gray-5 border !border-gray-300 bg-white text-gray-900/80 shadow-lg shadow-gray-500/5 ring-4 ring-transparent placeholder:text-gray-500
|
|
154
|
-
${a==!1&&y?"ring-green-500/50":""}
|
|
155
|
-
${d?"!ring-red-500/50":""}
|
|
156
|
-
${a==!0&&y?"!ring-red-500/50":""}
|
|
157
|
-
focus:!border-blue-gray-200 focus:!border-t-blue-gray-200 focus:ring-[#bfd7fc]`}),d&&z.jsxs("span",{className:"text-red-500 text-xs mt-1 flex",children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"-mt-px h-4 w-4 mr-1",children:z.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),t]})]})};s7.defaultProps={placeholderProps:"Email Address",validationProps:"Please enter a valid email address.",disabledProps:!1,isRequired:!0,type:"none",numberLength:10,decimalPoints:2,id:"email",name:"email"};function nN(e){return Le({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}const c7=({imgProps:e,text:r,text1:t,text2:n,text3:a,text4:o,onClick:i,backgroundColor:l,textColor:s,textColor1:c})=>{var p,C;const[f,g]=N.useState(!1),[w,y]=N.useState("en"),x=[{code:"en",name:"English",flag:"🇺🇸"},{code:"ms",name:"Malay",flag:"🇲🇾"},{code:"es",name:"Español",flag:"🇪🇸"},{code:"fr",name:"Français",flag:"🇫🇷"},{code:"zh",name:"中文",flag:"🇨🇳"},{code:"bn",name:"বাংলা",flag:"🇧🇩"}],[b,m]=N.useState(!1),h=M=>{y(M)},d=()=>{m(!b)},v={color:s},u={color:c,backgroundColor:l};return z.jsx("nav",{className:"bg-white bg-opacity-50 dark:bg-transparent dark:bg-opacity-50 border border-gray-200 dark:border-gray-700",children:z.jsxs("div",{className:"flex justify-between justify-end items-center p-2",children:[z.jsxs("div",{className:"flex md:space-x-10",children:[z.jsxs("div",{className:"flex justify-center lg:space-x-1 md:space-x-1 space-x-1 items-center",children:[z.jsx("div",{children:z.jsx("img",{className:"md:w-14 md:h-14 h-12 w-12 mx-4 hover:scale-100 transition-all ease-linear delay-50",src:e,alt:""})}),z.jsx("div",{className:"flex justify-center space-x-4 items-center md:ml-2 lg:ml-2 ml-1 text-3xl font-sans ",style:v,children:z.jsx("span",{className:"text-center",children:r})})]}),z.jsxs("div",{className:"text-left justify-start hidden lg:block xl:block",children:[z.jsx("p",{className:"font-bold",children:t}),z.jsxs("p",{className:"text-xs text-gray-400",children:[n,z.jsx("br",{}),a]})]})]}),z.jsx("div",{className:" mr-2 ",children:z.jsx("div",{onClick:()=>g(!f),className:"h-6 w-6 md:hidden mt-2 flex align-bottom text-gray-900",children:f?z.jsx(s2,{className:"icon h-6 w-6 text-gray-900"}):z.jsx(I8,{className:"icon h-6 w-6 text-gray-900"})})}),z.jsxs("div",{className:`md:flex md:space-x-8 align-center flex-row mr-2 absolute md:static lg:static ${f?" p-1 pt-1 absolute top-0 left-0 right-0 md:hidden lg:hidden flex flex-col justify-start items-center mt-24 space-y-2":"hidden"} `,children:[z.jsx("div",{className:"sm:justify-center mt-1 sm:place-content-center ",children:z.jsxs("div",{className:"relative md:w-full w-60 lg:w-full self-center",children:[z.jsx("input",{type:"search",id:"search-dropdown",className:"block p-2.5 w-full z-20 text-sm text-gray-900 rounded-lg border-gray-300 border-1 bg-gray-200 dark:bg-gray-1000 dark:border-s-gray-700 dark:border-gray-600 placeholder-gray-500 dark:text-gray-200 focus:shadow-md hover:shadow-md shadow-gray-100 transition-all ease-linear delay-50",placeholder:"Carian",required:!0}),z.jsxs("button",{type:"submit",className:"absolute top-0 end-0 p-2.5 text-sm font-medium h-full text-gray-500 focus:outline-none hover:scale-125 transition-all ease-linear delay-50",children:[z.jsx("svg",{className:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:z.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})}),z.jsx("span",{className:"sr-only",children:"Search"})]})]})}),z.jsxs("div",{className:"flex space-x-3 md:space-x-8 ",children:[z.jsxs("div",{className:"flex flex-col items-center space-y-1 mt-1 relative",children:[z.jsxs("button",{onClick:()=>d(),className:"flex items-center space-x-2 px-6 py-1 hover:shadow-md shadow-gray-100 transition-all ease-linear delay-50 rounded-md bg-gray-100 text-gray-700",children:[z.jsx("span",{className:"md:text-2xl md:pb-1 lg:text-2xl lg:pb-1 text-3xl",children:(p=x.find(M=>M.code===w))==null?void 0:p.flag}),z.jsx("span",{className:"text-lg hidden md:block lg:block",children:(C=x.find(M=>M.code===w))==null?void 0:C.name}),z.jsx("span",{className:"text-black ",children:z.jsx(nN,{})})]}),b&&z.jsx("div",{className:"absolute top-10 bg-white",children:x.map(M=>z.jsxs("button",{className:`group flex w-full items-center space-x-2 px-9 py-1 border-b-2 border-gray-200 shadow-gray-100 transition-all ease-linear delay-50 last:rounded-b-lg ${w===M.code?"bg-blue-500":"hover:bg-gray-100"}`,onClick:()=>{h(M.code),d()},children:[z.jsx("span",{className:`group-hover:text-gray-800 text-xl mr-2 mb-1 ${w===M.code?"text-gray-200":""}`,children:M.code}),z.jsx("span",{className:`group-hover:text-gray-700 ${w===M.code?"text-gray-200":""}`,children:M.name})]},M.code))})]}),z.jsx("div",{className:"flex items-left ",children:z.jsx("button",{className:"border border-s-1 border-s-gray-50 rounded-lg mt-1 text-black font-bold py-2 md:py-2 md:px-3 px-6 hover:shadow-md shadow-gray-200 transition-all ease-linear delay-50",style:u,onClick:i,children:z.jsx("span",{className:"",children:o})})})]})]})]})})};c7.propTypes={imgProps:ye.string.isRequired,text:ye.string.isRequired,text1:ye.string.isRequired,text2:ye.string.isRequired,text3:ye.string.isRequired,text4:ye.string.isRequired,backgroundColor:ye.string.isRequired,textColor:ye.string.isRequired,textColor1:ye.string.isRequired};function aN(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Dark"},child:[{tag:"path",attr:{d:"M12.741,20.917a9.389,9.389,0,0,1-1.395-.105,9.141,9.141,0,0,1-1.465-17.7,1.177,1.177,0,0,1,1.21.281,1.273,1.273,0,0,1,.325,1.293,8.112,8.112,0,0,0-.353,2.68,8.266,8.266,0,0,0,4.366,6.857,7.628,7.628,0,0,0,3.711.993,1.242,1.242,0,0,1,.994,1.963h0A9.148,9.148,0,0,1,12.741,20.917ZM10.261,4.05a.211.211,0,0,0-.065.011,8.137,8.137,0,1,0,9.131,12.526h0a.224.224,0,0,0,.013-.235.232.232,0,0,0-.206-.136A8.619,8.619,0,0,1,14.946,15.1a9.274,9.274,0,0,1-4.883-7.7,9.123,9.123,0,0,1,.4-3.008.286.286,0,0,0-.069-.285A.184.184,0,0,0,10.261,4.05Z"}}]}]})(e)}function Pi(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Flag_1"},child:[{tag:"path",attr:{d:"M20.565,3.18a.809.809,0,0,0-.81-.02l-1.13.56c-1.63.87-3.82.83-6.5-.13a9.141,9.141,0,0,0-7.3.52l-.76.41V3.56a.5.5,0,0,0-1,0V20.44a.5.5,0,0,0,1,0V15.9a.836.836,0,0,0,.2-.08l1.03-.55a8.163,8.163,0,0,1,6.5-.46c2.95,1.06,5.41,1.08,7.3.07l1.44-.72a.759.759,0,0,0,.4-.66V3.82A.751.751,0,0,0,20.565,3.18Zm-.63,10.16-1.31.66c-1.63.87-3.82.83-6.5-.13a9.141,9.141,0,0,0-7.3.52l-.76.4V5.65L5.3,4.99a8.122,8.122,0,0,1,6.5-.46c2.95,1.06,5.41,1.08,7.29.08l.85-.43Z"}}]}]})(e)}function u7(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Mail"},child:[{tag:"path",attr:{d:"M19.435,4.065H4.565a2.5,2.5,0,0,0-2.5,2.5v10.87a2.5,2.5,0,0,0,2.5,2.5h14.87a2.5,2.5,0,0,0,2.5-2.5V6.565A2.5,2.5,0,0,0,19.435,4.065Zm-14.87,1h14.87a1.489,1.489,0,0,1,1.49,1.39c-2.47,1.32-4.95,2.63-7.43,3.95a6.172,6.172,0,0,1-1.06.53,2.083,2.083,0,0,1-1.67-.39c-1.42-.75-2.84-1.51-4.25-2.26-1.14-.6-2.3-1.21-3.44-1.82A1.491,1.491,0,0,1,4.565,5.065Zm16.37,12.37a1.5,1.5,0,0,1-1.5,1.5H4.565a1.5,1.5,0,0,1-1.5-1.5V7.6c2.36,1.24,4.71,2.5,7.07,3.75a5.622,5.622,0,0,0,1.35.6,2.872,2.872,0,0,0,2-.41c1.45-.76,2.89-1.53,4.34-2.29,1.04-.56,2.07-1.1,3.11-1.65Z"}}]}]})(e)}const oN=({closeModal:e,backgroundColor:r,btbackgroundColor:t,bgOpacity:n,hideIcon:a})=>{const[o,i]=N.useState(""),[l,s]=N.useState(""),[c,f]=N.useState(!1),[g,w]=N.useState(!1),[y,x]=N.useState(!1),[b,m]=N.useState(""),[h,d]=N.useState(""),[v,u]=N.useState("");N.useEffect(()=>{const k=localStorage.getItem("rememberedEmail"),j=localStorage.getItem("rememberedPassword");k&&j&&(i(k),s(j),f(!0))},[]);const p=k=>{i(k.target.value)},C=k=>{s(k.target.value)},M=k=>{f(k.target.checked)},S=k=>{k.preventDefault(),c?(localStorage.setItem("rememberedEmail",o),localStorage.setItem("rememberedPassword",l)):(localStorage.removeItem("rememberedEmail"),localStorage.removeItem("rememberedPassword"))},T=()=>{console.log("Lost Password clicked")},O=()=>{x(!0)},P=k=>{k.preventDefault(),x(!1),m(""),d(""),u("")},L=()=>{w(!0)},V=()=>{w(!1),i(""),s(""),f(!1),x(!1),m(""),d(""),u(""),e()};return z.jsxs(z.Fragment,{children:[z.jsx("button",{type:"button",className:"fixed top-1/4 left-1/2 transform -translate-x-1/2 -translate-y-1/2 inline-block rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-black shadow transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow focus:bg-primary-600 focus:shadow",onClick:L,children:"button"}),g&&z.jsxs("div",{className:"fixed inset-0 z-50 overflow-auto flex items-center justify-center",children:[z.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-30",onClick:V}),z.jsxs("div",{className:"relative p-4 w-full max-w-md rounded-lg shadow dark:bg-gray-700",style:{backgroundColor:r,opacity:n},children:[z.jsx("div",{className:"flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600",style:{display:a?"none":""},children:z.jsx("button",{type:"button",className:"end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white",onClick:V,children:z.jsx(hv,{className:"w-6 h-6 text-gray-500"})})}),y?z.jsx("div",{className:"p-4 md:p-5",children:z.jsxs("form",{className:"space-y-3",onSubmit:P,children:[z.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Create Account"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Email"})}),z.jsx("input",{type:"email",placeholder:"Email",value:b,onChange:k=>m(k.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"User ID"})}),z.jsx("input",{type:"text",placeholder:"User ID",value:v,onChange:k=>u(k.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Password"})}),z.jsx("input",{type:"password",placeholder:"Password",value:h,onChange:k=>d(k.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("button",{type:"submit",className:"w-full text-white hover:bg-green-600 focus:ring-4 focus:outline-none focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800",style:{backgroundColor:t},children:"Create Account"}),z.jsx("div",{className:"mt-4",children:z.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["If you register please?"," ",z.jsx("button",{type:"button",onClick:()=>x(!1),className:"text-blue-500 hover:underline focus:outline-none",children:"Login"})]})})]})}):z.jsx("div",{className:"p-4 md:p-5",children:z.jsxs("form",{className:"space-y-3",onSubmit:S,children:[z.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Sign in to our platform"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Email"})}),z.jsx("input",{type:"email",placeholder:"Email",value:o,onChange:p,className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Password"})}),z.jsx("input",{type:"password",placeholder:"Password",value:l,onChange:C,className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsxs("div",{className:"flex justify-between",children:[z.jsxs("label",{className:"flex items-center",children:[z.jsx("input",{type:"checkbox",checked:c,onChange:M,className:"mr-2 text-blue-500"}),"Remember me"]}),z.jsx("button",{type:"button",onClick:T,className:"text-blue-500 hover:underline focus:outline-none",children:"Lost Password?"})]}),z.jsx("button",{type:"submit",className:"w-full text-white hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",style:{backgroundColor:t},children:"Login"}),z.jsx("div",{className:"mt-4",children:z.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["Not registered?"," ",z.jsx("button",{type:"button",onClick:O,className:"text-blue-500 hover:underline focus:outline-none",children:"Create account"})]})})]})})]})]})]})},iN=({closeModal:e,backgroundColor:r,btbackgroundColor:t,bgOpacity:n,hideButton:a,hideButtonDown:o,hideIcon:i})=>{const[l,s]=N.useState(""),[c,f]=N.useState(""),[g,w]=N.useState(!1),[y,x]=N.useState(!1),[b,m]=N.useState(!1),[h,d]=N.useState(""),[v,u]=N.useState(""),[p,C]=N.useState("");N.useEffect(()=>{const $=localStorage.getItem("rememberedEmail"),B=localStorage.getItem("rememberedPassword");$&&B&&(s($),f(B),w(!0))},[]);const M=$=>{s($.target.value)},S=$=>{f($.target.value)},T=$=>{w($.target.checked)},O=$=>{$.preventDefault(),m(!1),d(""),u(""),C("")},P=$=>{$.preventDefault(),g?(localStorage.setItem("rememberedEmail",l),localStorage.setItem("rememberedPassword",c)):(localStorage.removeItem("rememberedEmail"),localStorage.removeItem("rememberedPassword"))},L=()=>{console.log("Lost Password clicked")},V=()=>{x(!0)},k=()=>{x(!1),s(""),f(""),w(!1),m(!1),d(""),u(""),C(""),e()},j=()=>{m(!1)},U=()=>{m(!0)};return z.jsxs(z.Fragment,{children:[z.jsx("button",{type:"button",className:"fixed top-1/4 left-1/2 transform -translate-x-1/2 -translate-y-1/2 inline-block rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-black shadow transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow focus:bg-primary-600 focus:shadow",onClick:V,children:"button"}),y&&z.jsxs("div",{className:"fixed inset-0 z-50 overflow-auto flex items-center justify-center",children:[z.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-30",onClick:k}),z.jsxs("div",{className:"relative p-4 w-full max-w-md rounded-lg shadow dark:bg-gray-700",style:{backgroundColor:r,opacity:n},children:[z.jsx("div",{className:"flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600",style:{display:i?"none":""},children:z.jsx("button",{type:"button",className:"end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white",onClick:k,children:z.jsx(hv,{className:"w-6 h-6 text-gray-500"})})}),z.jsxs("div",{className:"flex justify-between w-full bg-gray-200 rounded-r-lg rounded-l-lg",style:{display:a?"none":""},children:[z.jsx("button",{className:"block text-black py-1 text-lg px-6 md:py-3 rounded-l-lg md:px-14 w-full",style:b?{}:{backgroundColor:t},onClick:j,children:"Login"}),z.jsx("button",{className:"block text-black py-1 text-lg whitespace-nowrap px-4 md:py-3 rounded-r-lg md:px-12 w-full ",style:b?{backgroundColor:t}:{},onClick:U,children:"Create account"})]}),b?z.jsx("div",{className:"p-4 md:p-5",children:z.jsxs("form",{className:"space-y-3",onSubmit:O,children:[z.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Create Account"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Email"})}),z.jsx("input",{type:"email",placeholder:"Email",value:h,onChange:$=>d($.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"User ID"})}),z.jsx("input",{type:"text",placeholder:"User ID",value:p,onChange:$=>C($.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Password"})}),z.jsx("input",{type:"password",placeholder:"Password",value:v,onChange:$=>u($.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("button",{type:"submit",className:"w-full text-white hover:bg-green-600 focus:ring-4 focus:outline-none focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800",style:{backgroundColor:t},children:"Create Account"})]})}):z.jsx("div",{className:"p-4 md:p-5",children:z.jsxs("form",{className:"space-y-3",onSubmit:P,children:[z.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Sign in to our platform"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Email"})}),z.jsx("input",{type:"email",placeholder:"Email",value:l,onChange:M,className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Password"})}),z.jsx("input",{type:"password",placeholder:"Password",value:c,onChange:S,className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsxs("div",{className:"flex justify-between",children:[z.jsxs("label",{className:"flex items-center",children:[z.jsx("input",{type:"checkbox",checked:g,onChange:T,className:"mr-2 text-blue-500"}),"Remember me"]}),z.jsx("button",{type:"button",onClick:L,className:"text-blue-500 hover:underline focus:outline-none",children:"Lost Password?"})]}),z.jsx("button",{type:"submit",className:"w-full text-white hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",style:{backgroundColor:t},children:"Login"})]})}),z.jsxs("div",{className:"flex justify-between w-full bg-gray-200 rounded-r-lg rounded-l-lg",style:{display:o?"none":""},children:[z.jsx("button",{className:"block text-black py-1 text-lg px-6 md:py-3 rounded-l-lg md:px-14 w-full",style:b?{}:{backgroundColor:t},onClick:j,children:"Login"}),z.jsx("button",{className:"block text-black py-1 text-lg whitespace-nowrap px-4 md:py-3 rounded-r-lg md:px-12 w-full ",style:b?{backgroundColor:t}:{},onClick:U,children:"Create account"})]})]})]})]})};function lN(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}}]})(e)}function d7(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V4.5A.5.5 0 0 1 8 4z"}}]})(e)}function f7(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M4 11H2v3h2v-3zm5-4H7v7h2V7zm5-5v12h-2V2h2zm-2-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1h-2zM6 7a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm-5 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3z"}}]})(e)}function sN(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16 8a8.001 8.001 0 0 1-7.022 7.94l1.902-7.098a2.995 2.995 0 0 0 .05-1.492A2.977 2.977 0 0 0 10.237 6h5.511A8 8 0 0 1 16 8ZM0 8a8 8 0 0 0 7.927 8l1.426-5.321a2.978 2.978 0 0 1-.723.255 2.979 2.979 0 0 1-1.743-.147 2.986 2.986 0 0 1-1.043-.7L.633 4.876A7.975 7.975 0 0 0 0 8Zm5.004-.167L1.108 3.936A8.003 8.003 0 0 1 15.418 5H8.066a2.979 2.979 0 0 0-1.252.243 2.987 2.987 0 0 0-1.81 2.59ZM8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}}]})(e)}function cN(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"}}]})(e)}function uN(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const dN=({titleSub:e,items:r,textColor:t})=>{const[n,a]=N.useState(!1),[o,i]=N.useState(!1),l=r.filter(({name:s})=>s===e.title).flatMap(({data:s})=>Array.isArray(s)?s.map(({icon:c,title:f,description:g,link:w},y)=>z.jsx("a",{href:w,children:z.jsxs(ve.MenuItem,{className:"flex items-center gap-3 rounded-lg",placeholder:void 0,children:[z.jsx("div",{className:"flex items-center justify-center rounded-lg !bg-blue-gray-50 p-2 ",children:c&&N.createElement(c,{strokeWidth:2,className:"h-6 text-gray-900 w-6"})}),z.jsxs("div",{children:[z.jsx(ve.Typography,{variant:"h6",color:"blue-gray",className:"flex items-center text-sm font-bold",placeholder:void 0,children:f}),z.jsx(ve.Typography,{variant:"paragraph",className:"text-xs !font-medium text-blue-gray-500",placeholder:void 0,children:g})]})]})},y)):[]);return z.jsx(z.Fragment,{children:l.length?z.jsxs(z.Fragment,{children:[z.jsxs(ve.Menu,{open:n,handler:a,offset:{mainAxis:20},placement:"bottom",allowHover:!0,children:[z.jsx(ve.MenuHandler,{children:z.jsx(ve.Typography,{as:"div",variant:"small",className:"font-medium",placeholder:void 0,children:z.jsxs(ve.ListItem,{className:"flex items-center gap-2 py-2 pr-4 font-medium text-gray-900",selected:n||o,onClick:()=>i(s=>!s),placeholder:void 0,children:[z.jsx("div",{style:{color:`${t}`},children:e.title}),z.jsx(d7,{strokeWidth:2.5,className:`hidden h-3 w-3 transition-transform lg:block ${n?"rotate-180":""}`}),z.jsx(d7,{strokeWidth:2.5,className:`block h-3 w-3 transition-transform lg:hidden ${o?"rotate-180":""}`})]})})}),z.jsx(ve.MenuList,{className:"hidden max-w-screen-xl rounded-xl lg:block",placeholder:void 0,children:z.jsx("ul",{className:"grid grid-cols-3 outline-none gap-y-2 outline-0",children:l})})]}),z.jsx("div",{className:"block lg:hidden",children:z.jsx(ve.Collapse,{open:o,children:l})})]}):z.jsx("a",{href:e.link,style:{textDecoration:"none"},children:z.jsx(ve.Typography,{variant:"small",color:"blue-gray",className:"font-medium ",placeholder:void 0,style:{color:`${t}`},children:z.jsx(ve.ListItem,{className:"flex items-center gap-2 py-2 pr-4",placeholder:void 0,children:e.title})})},e.title)})},p7=({navlists:e,navSubItems:r,tcolor:t})=>z.jsx(ve.List,{className:"p-0 mt-4 mb-6 lg:mt-0 lg:mb-0 lg:flex-row lg:p-1 lg:pl-250",placeholder:void 0,children:e.map((n,a)=>z.jsx(dN,{titleSub:n,items:r,textColor:t},a))}),v7=({NavigationList:e,NavSubItems:r,ColorProps:t,titleProps:n="Navbar Title",borderRadius:a=0,disableTitle:o=!0,textColor:i="#030303",iconProps:l,btn1:s,btn2:c,btn:f,button1:g,button2:w})=>{const[y,x]=N.useState(!1);return N.useEffect(()=>{window.addEventListener("resize",()=>window.innerWidth>=960&&x(!1))},[]),z.jsxs(ve.Navbar,{className:"max-w-screen-xl px-4 py-2 mx-auto ",style:{borderRadius:`${a}px`,backgroundColor:`${t}`},placeholder:void 0,children:[z.jsxs("div",{className:"flex items-center justify-between text-blue-gray-900",children:[o&&z.jsxs(ve.Typography,{variant:"h6",className:"mr-4 cursor-pointer lg:ml-2",placeholder:void 0,style:{color:`${i}`},children:[z.jsx(ve.Avatar,{className:"mx-2",src:l,alt:"avatar",placeholder:void 0}),n]}),z.jsx("div",{className:"hidden lg:block",children:z.jsx(p7,{navlists:e,navSubItems:r,tcolor:i})}),f&&z.jsxs("div",{className:"hidden gap-2 lg:flex",children:[s.active&&z.jsxs(ve.Button,{variant:"text",size:"sm",className:"flex items-center gap-2",placeholder:void 0,color:s.color,onClick:g,children:[s.text,s.icon.active&&N.createElement(s.icon.icon,{strokeWidth:2,style:{color:`${s.icon.color}`,fontSize:"1.1rem"}})]}),c.active&&z.jsxs(ve.Button,{variant:"gradient",size:"sm",className:"flex items-center gap-2",placeholder:void 0,onClick:w,children:[c.text,c.icon.active&&N.createElement(c.icon.icon,{strokeWidth:2,style:{color:`${c.icon.color}`,fontSize:"1.1rem"}})]})]}),z.jsx(ve.IconButton,{variant:"text",color:"blue-gray",className:"lg:hidden",onClick:()=>x(!y),placeholder:void 0,children:y?z.jsx(cN,{className:"w-6 h-6",strokeWidth:2}):z.jsx(uN,{className:"w-6 h-6",strokeWidth:2})})]}),z.jsxs(ve.Collapse,{open:y,children:[z.jsx(p7,{navlists:e,navSubItems:r,tcolor:i}),z.jsxs("div",{className:"flex items-center w-full gap-2 flex-nowrap lg:hidden",children:[s.active&&z.jsx(ve.Button,{variant:"outlined",size:"sm",color:"blue-gray",fullWidth:!0,placeholder:void 0,onClick:g,children:s.text}),c.active&&z.jsx(ve.Button,{variant:"gradient",size:"sm",fullWidth:!0,placeholder:void 0,onClick:w,children:c.text})]})]})]})};v7.defaultProps={NavigationList:[{title:"Home",link:"/home"},{title:"SubMenu",link:"/sub"},{title:"Hubungi Kami",link:"/callme"},{title:"Contact Us",link:"/cs"}],NavSubItems:[{data:[{title:"Productsss",description:"Find the perfect solution for your needs.",icon:"",link:"#"}],name:"Contact Us"}],iconProps:"https://en.wikipedia.org/static/images/icons/wikipedia.png",titleProps:"Navbar Wikipedia",btn:!1,btn1:{text:"Mode",color:"white",fontWeight:"bold",active:!1,icon:{active:!1,color:"white",icon:aN}},btn2:{text:"Log Masuk",color:"green",fontWeight:"bold",active:!1,icon:{active:!1,color:"white",icon:qM}}};const h7=({data:e,headers:r,backgroundColor:t="#fbfbfc",TitleColor:n="#000000",TitleFontSize:a="15px",EditColor:o="#b91ff0",ViewColor:i="#00d609",DeleteColor:l="#ff0000",EditIcon:s=z.jsx($8,{}),hideIcon:c,hideIcon1:f,hideIcon2:g,filter:w})=>{const[x,b]=N.useState([]),[m,h]=N.useState(1),[d,v]=N.useState(!0),[u,p]=N.useState(""),[C]=N.useState(""),[M]=N.useState(""),[S]=N.useState(""),[T,O]=N.useState(r[0]||""),[P,L]=N.useState(!1),V=()=>{L(!0)},k=e.length,j=Math.ceil(k/7),U=Array.from({length:j},(q,Y)=>Y+1),$=q=>{h(q)};N.useEffect(()=>{const q=[...e].sort((D,W)=>{const ee=D.name.toLowerCase(),J=W.name.toLowerCase();return d?ee.localeCompare(J,void 0,{sensitivity:"base"}):J.localeCompare(ee,void 0,{sensitivity:"base"})}),Y=(m-1)*7,F=Y+7;b(q.slice(Y,F))},[e,d,m]),N.useEffect(()=>{h(1);const q=e.filter(D=>D.name.toLowerCase().includes(u.toLowerCase())&&D.indicator.toLowerCase().includes(C.toLowerCase())&&D.component.toLowerCase().includes(M.toLowerCase())&&D.Action.toLowerCase().includes(S.toLowerCase())),Y=0,F=Y+7;b(q.slice(Y,F))},[e,u,C,M,S,7]);const B=()=>{v(q=>!q)},I=()=>{h(q=>q+1)},R=()=>{h(q=>Math.max(1,q-1))},G=q=>{O(q),L(!1)};return z.jsx("div",{className:"container p-4 mx-auto",children:z.jsxs("div",{className:"overflow-x-auto ",children:[z.jsxs("div",{className:"flex justify-end items-center mb-2 ",style:{display:w?"none":""},children:[z.jsx("input",{type:"text",placeholder:"Search...",className:"px-2 py-1 border border-gray-300 rounded mr-0",value:u,onChange:q=>p(q.target.value)}),z.jsx("button",{className:" px-2 py-1 bg-gray-100 rounded border",onClick:V,children:z.jsx(xH,{className:"h-6 w-5"})}),z.jsx("div",{className:`relative ${P?"block":"hidden"}`,children:z.jsx("div",{className:"absolute mt-4 right-0 z-10 bg-white border border-gray-300 rounded shadow-md",children:z.jsx("ul",{children:r.map(q=>z.jsx("li",{className:"px-4 py-2 cursor-pointer hover:bg-gray-100",onClick:()=>G(q),children:q},q))})})})]}),z.jsxs("table",{className:"min-w-full bg-white border border-gray-300 shadow-md ",style:{backgroundColor:t,fontSize:a},children:[z.jsx("thead",{className:"text-black ",style:{color:n},children:z.jsx("tr",{className:"",children:r.map(q=>z.jsxs("th",{className:"md:px-4 px-3 py-2 text-center border-b ",children:[z.jsx("span",{children:q}),q===T&&z.jsx("button",{className:"px-2 py-1 ml-2 w-auto ",style:{color:n},onClick:B,children:z.jsx(PH,{})})]},q))})}),z.jsx("tbody",{children:x.map((q,Y)=>z.jsxs("tr",{className:`border-b divide-x-2 ${Y%2===0?"bg-gray-100":"bg-white"}`,style:{color:n},children:[r.map((F,D)=>z.jsx("td",{className:"py-1 text-center px-auto",children:q[F]},D)),z.jsxs("td",{className:"flex px-2 py-2 mb-4",children:[z.jsx("button",{className:"mx-1 text-blue-600",style:{display:c?"none":"",color:o},title:"Edit",children:s}),z.jsx("button",{className:"mx-1 text-green-600",style:{display:f?"none":"",color:i},title:"View",children:z.jsx(SH,{})}),z.jsx("button",{className:"mx-1 text-red-600",style:{display:g?"none":"",color:l},title:"Delete",children:z.jsx(OH,{})})]})]},q.id))})]}),z.jsxs("div",{className:"flex justify-start mt-2 md:justify-end",children:[z.jsx("button",{className:"px-4 py-2 text-blue-500",onClick:R,disabled:m===1,children:z.jsx(bH,{})}),z.jsx("div",{className:"flex space-x-2",children:U.map(q=>z.jsx("button",{className:`text-lg font-bold ${q===m?"text-blue-500":"text-black"}`,onClick:()=>$(q),children:q},q))}),z.jsx("button",{className:"px-4 py-2 text-blue-500",onClick:I,disabled:x.length<7||m===j,children:z.jsx(yH,{})})]}),z.jsx("br",{})]})})};h7.propTypes={backgroundColor:ye.string,backgroundColor1:ye.string,TitleColor:ye.string,TitleFontSize:ye.string,EditColor:ye.string,ViewColor:ye.string,DeleteColor:ye.string,EditIcon:ye.node};const fN=({data:e,label:r})=>{const[t,n]=N.useState(null),a=o=>{n(o)};return console.log(t),z.jsx("div",{className:"relative overflow-x-auto shadow-md sm:rounded-lg h-64",children:z.jsxs("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400",children:[z.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-gray-200 sticky top-0",children:z.jsxs("tr",{children:[z.jsx("th",{scope:"col",className:"p-4",children:"#"}),r.map((o,i)=>z.jsx("th",{scope:"col",className:"p-4",children:o.name},i))]})}),z.jsx("tbody",{className:e.length>3?"overflow-y-scroll h-24":"",children:e.map((o,i)=>z.jsxs("tr",{className:"bg-white border-b hover:bg-gray-50 dark:hover:bg-gray-100 text-black",children:[z.jsx("td",{className:"w-4 p-4",children:i+1}),z.jsx("th",{scope:"row",className:"flex items-center px-6 py-4 whitespace-nowrap",children:o.name}),z.jsx("td",{className:"px-6 py-4",children:o.email}),z.jsx("td",{className:"px-6 py-4",children:o.position}),z.jsx("td",{className:"px-6 py-4",children:o.status}),z.jsx("td",{className:"px-6 py-4",children:z.jsx("button",{type:"button",onClick:()=>a(o.id),className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",children:"Edit"})})]},i))})]})})},pN=({headerLabel:e,children:r})=>z.jsx("div",{className:"relative overflow-x-auto p-4",children:z.jsxs("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400",children:[z.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400",children:z.jsx("tr",{children:e.map(t=>z.jsx("th",{scope:"col",className:"px-6 py-3",children:t},t))})}),z.jsx("tbody",{children:r})]})});function m7(e){return Le({tag:"svg",attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:"g",attr:{},child:[]},{tag:"path",attr:{d:"M12.497 0h-6.497v2.010h1v-1.010h5v4h4v8h-4.017v1h5.017v-9.818l-4.503-4.182zM13 1.832l2.335 2.168h-2.335v-2.168zM0 3v14h11v-9.818l-4.503-4.182h-6.497zM7 4.832l2.335 2.168h-2.335v-2.168zM1 16v-12h5v4h4v8h-9z"}}]})(e)}function g7(e){return Le({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 77.488l137.472 285.088L962.08 409.04 735.664 634.88l7.616 45.311 45.28 270.16-276.607-148.784L235.36 950.415l45.295-270.224 7.584-45.311L61.904 409.008l312.592-46.464L395.04 320zm-.017-61.936c-28.656 0-54.784 16.176-66.977 41.456l-115.904 240.64-266.704 39.664c-27.391 4.096-50.143 22.8-58.975 48.384-8.817 25.664-2.145 53.904 17.199 73.152l195.408 195.2-45.328 270.656c-4.56 27.28 7.232 54.624 30.368 70.576 12.72 8.737 27.664 13.153 42.624 13.153 12.32 0 24.64-2.992 35.793-8.977l232.496-125.184 232.512 125.184a75.853 75.853 0 0 0 35.776 8.977c14.96 0 29.905-4.416 42.657-13.153 23.103-15.952 34.91-43.295 30.319-70.576l-45.344-270.656 195.504-195.2c19.344-19.248 25.968-47.504 17.152-73.152-8.848-25.616-31.6-44.32-58.976-48.385l-266.656-39.664-115.968-240.64c-12.112-25.311-38.256-41.455-66.976-41.455z"}}]})(e)}const vN=({size:e=30,variant:r="primary",icon:t="CiFlag1",text1:n="Messages",text2:a="23253"})=>{const o=()=>{switch(t){case"Flag":return z.jsx(Pi,{size:e});case"Mail":return z.jsx(u7,{size:e});case"File":return z.jsx(m7,{size:e});case"Star":return z.jsx(g7,{size:e});default:return z.jsx(Pi,{size:e})}},l={success:{success:"bg-green-500 hover:bg-green-700 text-white font-bold"},primary:{primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold"},danger:{danger:"bg-red-500 hover:bg-red-700 text-white font-bold"},warning:{warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold"},dark:{dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold"},light:{light:"bg-gray-800 hover:bg-gray-400 text-white font-bold"}}[r]||{},s=bt(...Object.values(l));return z.jsx("div",{className:"rounded",style:{backgroundColor:"#f4f6f9"},children:z.jsx("div",{className:`py-2 px-4 ${e}`,children:z.jsxs("div",{className:"flex flex-row space-x-3",children:[z.jsx("div",{className:`py-3 px-3 justify-start rounded ${s}`,children:o()}),z.jsxs("div",{className:" flex flex-col ",children:[z.jsx("p",{children:n}),z.jsx("p",{className:"mt-3 text-left text font-bold",children:a})]})]})})})},hN=({size:e=30,variant:r="primary",icon:t="CiFlag1",text1:n="Messages",text2:a="23253",backgroundColor:o="linear-gradient(to right, #ffcc00, #ff6600)"})=>{const i=()=>{switch(t){case"Flag":return z.jsx(Pi,{size:e});case"Mail":return z.jsx(u7,{size:e});case"File":return z.jsx(m7,{size:e});case"Star":return z.jsx(g7,{size:e});default:return z.jsx(Pi,{size:e})}},s={success:{success:"bg-green-500 hover:bg-green-700 text-white font-bold"},primary:{primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold"},danger:{danger:"bg-red-500 hover:bg-red-700 text-white font-bold"},warning:{warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold"},dark:{dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold"},light:{light:"bg-gray-800 hover:bg-gray-400 text-white font-bold"}}[r]||{},c=bt(...Object.values(s));return z.jsx("div",{className:"rounded",style:{background:o},children:z.jsx("div",{className:`py-2 px-4 ${e}`,children:z.jsxs("div",{className:"flex flex-row space-x-3",children:[z.jsx("div",{className:`py-3 px-3 justify-start rounded ${c}`,children:i()}),z.jsxs("div",{className:" flex flex-col ",children:[z.jsx("p",{children:n}),z.jsx("p",{className:"mt-3 text-left text font-bold",children:a})]})]})})})},R5=({titleProps:e,logoProps:r,fontWeight:t,fontSize:n,flexPosition:a,...o})=>{const[i,l]=N.useState(0),s=f=>{l(i===f?0:f)},c=o.showTitleLogo?o.showTitleLogo:!1;return z.jsxs(ve.Card,{placeholder:"test",className:"h-[calc(100vh-2rem)] w-full max-w-[20rem] p-4 shadow-xl shadow-blue-gray-900/5 bg-white-grey",children:[c&&z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"grid items-center justify-center gap-4 p-4 mb-2",children:z.jsxs("div",{className:`${a} items-center`,children:[z.jsx("img",{src:r.toString(),alt:"brand",className:"h-20"}),z.jsx(ve.Typography,{className:"pt-2 tracking-widest text-center text-l",placeholder:void 0,style:{fontWeight:t,fontSize:`${n}px`},children:e})]})}),z.jsx("hr",{className:"my-2 border-blue-gray-50"})]}),z.jsx("div",{className:"p-2",children:z.jsx(ve.Typography,{placeholder:"placeholder",className:"text-xs font-bold tracking-wider text-gray-500",children:"EKSEKUTIF"})}),z.jsxs(ve.List,{placeholder:void 0,children:[z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(f7,{})}),"Dashboard"]}),z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(sN,{})}),"Modul Utama"]}),z.jsx("div",{className:"p-2",children:z.jsx(ve.Typography,{placeholder:"placeholder",className:"text-xs font-semibold tracking-wide text-gray-500",children:"PENTADBIRAN"})}),z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(f7,{})}),"Dashboard Pengguna"]}),z.jsxs(ve.Accordion,{placeholder:void 0,open:i===1,icon:z.jsx(BM,{strokeWidth:2.5,className:`mx-auto h-4 w-4 transition-transform ${i===1?"rotate-180":""}`}),children:[z.jsx(ve.ListItem,{className:"p-0",selected:i===1,placeholder:void 0,children:z.jsxs(ve.AccordionHeader,{onClick:()=>s(1),className:"p-3 border-b-0",placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(lN,{})}),z.jsx(ve.Typography,{color:"blue-gray",className:"mr-auto font-normal",placeholder:void 0,children:"Pengguna"})]})}),z.jsx(ve.AccordionBody,{className:"py-1",children:z.jsxs(ve.List,{className:"p-0",placeholder:void 0,children:[z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(vv,{strokeWidth:3,className:"w-5 h-3"})}),"Senarai Pengguna"]}),z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(vv,{strokeWidth:3,className:"w-5 h-3"})}),"Tetapan Peranan"]})]})})]})]})]})};R5.propTypes={titleProps:ye.string},R5.defaultProps={titleProps:"MAJLIS PERBANDARAN KUANTAN"};const mN=({text:e,subtext:r})=>z.jsx("div",{className:"h-screen w-full flex items-center",children:z.jsx("div",{className:"",children:z.jsxs("div",{className:"flex flex-row ",children:[z.jsx("div",{className:"mr-14 flex items-center",children:z.jsx("h1",{className:" text-yellow-600 font-bold sm:text-5xl lg:text-7xl",children:"404"})}),z.jsxs("div",{className:"",children:[z.jsxs("div",{className:"flex flex-row ",children:[z.jsx(dv,{className:"mr-5 text-4xl text-yellow-600"}),z.jsx("h1",{className:"lg:text-2xl sm:text-xl",style:{fontFamily:"Poppins, sans-serif"},children:e})]}),z.jsx("div",{className:"mt-4",children:z.jsx("h1",{className:"lg:text-2xl sm:text-xl",style:{fontFamily:"Roboto, sans-serif"},children:r})})]})]})})}),gN=({text:e,subtext:r})=>z.jsx("div",{className:"h-screen w-full flex items-center",children:z.jsx("div",{className:"",children:z.jsxs("div",{className:"flex flex-row ",children:[z.jsx("div",{className:"mr-14 flex items-center",children:z.jsx("h1",{className:" text-red-600 font-bold sm:text-5xl lg:text-7xl",children:"500"})}),z.jsxs("div",{className:"",children:[z.jsxs("div",{className:"flex flex-row ",children:[z.jsx(dv,{className:"mr-5 text-4xl text-red-600 "}),z.jsx("h1",{className:"lg:text-2xl sm:text-xl",style:{fontFamily:"Poppins, sans-serif"},children:e})]}),z.jsx("div",{className:"mt-4",children:z.jsx("h1",{className:"lg:text-2xl sm:text-xl",style:{fontFamily:"Roboto, sans-serif"},children:r})})]})]})})});function j5(e,r){return e.map(function(t,n){return t+r[n]})}function D5(e,r){return e.map(function(t,n){return t-r[n]})}function I5(e){return Math.hypot.apply(Math,e)}function bN(e,r,t){var n=I5(r),a=n===0?0:1/n,o=t===0?0:1/t,i=o*n,l=r.map(function(f){return o*f}),s=r.map(function(f){return a*f}),c=I5(e);return{velocities:l,velocity:i,distance:c,direction:s}}function $5(e){return Math.sign?Math.sign(e):+(e>0)-+(e<0)||+e}function yN(e,r,t){return Math.max(r,Math.min(e,t))}function wN(e,r){return Math.pow(e,r*5)}function b7(e,r,t){return r===0||Math.abs(r)===1/0?wN(e,t):e*r*t/(r+t*e)}function y7(e,r,t,n){return n===void 0&&(n=.15),n===0?yN(e,r,t):e<r?-b7(r-e,t-r,n)+r:e>t?+b7(e-t,t-r,n)+t:e}function w7(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xN(e,r,t){return r&&w7(e.prototype,r),t&&w7(e,t),e}function Wt(){return Wt=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Wt.apply(this,arguments)}function x7(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function CN(e,r){if(e==null)return{};var t={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(r.indexOf(a)>=0)&&(t[a]=e[a]);return t}function f1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MN(e,r){if(e){if(typeof e=="string")return C7(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C7(e,r)}}function C7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _i(e,r){var t;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(t=MN(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
153
|
+
*/var Ph;function kL(){if(Ph)return o5;Ph=1;var e=N;function r(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var t=typeof Object.is=="function"?Object.is:r,n=e.useState,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function l(g,w){var y=w(),x=n({inst:{value:y,getSnapshot:w}}),b=x[0].inst,m=x[1];return o(function(){b.value=y,b.getSnapshot=w,s(b)&&m({inst:b})},[g,y,w]),a(function(){return s(b)&&m({inst:b}),g(function(){s(b)&&m({inst:b})})},[g]),i(y),y}function s(g){var w=g.getSnapshot;g=g.value;try{var y=w();return!t(g,y)}catch{return!0}}function c(g,w){return w()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:l;return o5.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,o5}process.env.NODE_ENV==="production"?n5.exports=kL():n5.exports=AL();var HL=n5.exports,Oo=[],ci=[],NL=function(e){e(Oo),ci.forEach(function(r){return r()})},i5={getSnapshot:function(){return Oo},subscribe:function(e){return ci.push(e),function(){var r=ci.indexOf(e);ci.splice(r,1)}}};function RL(){var e=HL.useSyncExternalStore(i5.subscribe,i5.getSnapshot,i5.getSnapshot),r=N.useCallback(function(){return e.at(-1)},[e]),t=N.useCallback(function(i){var l=e.findIndex(function(s){return s.id===i});return e.slice(l)},[e]),n=N.useCallback(function(){NL(function(i){return i.splice(0,i.length)})},[]),a=N.useCallback(function(i){Oo.push(i),i.props.usePortal&&i.props.hasBackdrop&&document.body.classList.add(bo)},[]),o=N.useCallback(function(i){var l=e.filter(function(c){return c.props.usePortal&&c.props.hasBackdrop&&c.id!==i}),s=Oo.findIndex(function(c){return c.id===i});s>-1&&Oo.splice(s,1),l.length===0&&document.body.classList.remove(bo)},[e]);return{closeOverlay:o,getLastOpened:r,getThisOverlayAndDescendants:t,openOverlay:a,resetStack:n}}function jL(){var e=N.useContext(VL),r=e.stack,t=e.hasProvider,n=RL(),a=N.useCallback(function(){return r.current.at(-1)},[r]),o=N.useCallback(function(c){var f=r.current.findIndex(function(g){return g.id===c});return f===-1?[]:r.current.slice(f)},[r]),i=N.useCallback(function(){r.current=[]},[r]),l=N.useCallback(function(c){r.current.push(c),c.props.usePortal&&c.props.hasBackdrop&&document.body.classList.add(bo)},[r]),s=N.useCallback(function(c){var f=r.current.filter(function(w){return w.props.usePortal&&w.props.hasBackdrop&&w.id!==c}),g=r.current.findIndex(function(w){return w.id===c});g>-1&&r.current.splice(g,1),f.length===0&&document.body.classList.remove(bo)},[r]);return t?{closeOverlay:s,getLastOpened:a,getThisOverlayAndDescendants:o,openOverlay:l,resetStack:i}:(hn("development")&&console.error(_P),n)}function DL(e){var r=A.useRef();return A.useEffect(function(){r.current=e},[e]),r.current}function l5(e){var r=mr(e),t=r!=null?Array.from(r.querySelectorAll(['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','details:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(","))):[];return t.filter(function(n){return!n.classList.contains(eh)&&!n.classList.contains(th)})}var IL=A.createContext({}),$L={blueprintPortalClassName:function(e,r){if(e[r]!=null&&typeof e[r]!="string")return new Error(OP)}};function s5(e,r){var t,n=e.className,a=e.stopPropagationEvents,o=e.container,i=e.onChildrenMount,l=e.children;r===void 0&&(r={});var s=A.useContext(IL),c=(t=o??s.portalContainer)!==null&&t!==void 0?t:typeof document<"u"?document.body:void 0,f=A.useState(),g=f[0],w=f[1],y=A.useCallback(function(){var x=document.createElement("div");x.classList.add(BS),ui(x.classList,n),ui(x.classList,s.portalClassName),_h(x,a);var b=r.blueprintPortalClassName;return b!=null&&b!==""&&(console.error(SP),ui(x.classList,b)),x},[n,s.portalClassName,r.blueprintPortalClassName,a]);return A.useEffect(function(){if(c!=null){var x=y();return c.appendChild(x),w(x),function(){Eh(x,a),x.remove(),w(void 0)}}},[c,y,a]),A.useEffect(function(){g!=null&&(i==null||i())},[g,i]),A.useEffect(function(){if(g!=null)return ui(g.classList,n),function(){return FL(g.classList,n)}},[n,g]),A.useEffect(function(){if(g!=null)return _h(g,a),function(){return Eh(g,a)}},[g,a]),typeof document>"u"||g==null?null:Li.createPortal(l,g)}s5.displayName="".concat(rt,".Portal"),NP()||(s5.contextTypes=$L);function FL(e,r){r!=null&&r!==""&&e.remove.apply(e,r.split(" "))}function ui(e,r){r!=null&&r!==""&&e.add.apply(e,r.split(" "))}function _h(e,r){r==null||r.forEach(function(t){return e.addEventListener(t,Lh)})}function Eh(e,r){r==null||r.forEach(function(t){return e.removeEventListener(t,Lh)})}function Lh(e){e.stopPropagation()}var di=A.forwardRef(function(e,r){var t,n,a,o=e.autoFocus,i=e.backdropClassName,l=e.backdropProps,s=e.canEscapeKeyClose,c=e.canOutsideClickClose,f=e.childRef,g=e.childRefs,w=e.children,y=e.className,x=e.enforceFocus,b=e.hasBackdrop,m=e.isOpen,h=e.lazy,d=e.onClose,v=e.onClosed,u=e.onClosing,p=e.onOpened,C=e.onOpening,M=e.portalClassName,S=e.portalContainer,T=e.shouldReturnFocusOnClose,O=e.transitionDuration,P=e.transitionName,L=e.usePortal;WL(e);var V=jL(),k=V.closeOverlay,j=V.getLastOpened,U=V.getThisOverlayAndDescendants,$=V.openOverlay,B=A.useState(!1),I=B[0],R=B[1],G=A.useState(!1),q=G[0],Y=G[1],F=A.useRef(null),D=A.useRef(null),W=A.useRef(null),ee=A.useRef(null),J=A.useRef(null),X=A.useRef(null),te=A.useCallback(function(){return requestAnimationFrame(function(){var be,ze=mr(D),We=kc(ze);if(!(ze==null||We==null)){var pt=!ze.contains(We);pt&&((be=mr(ee))===null||be===void 0||be.focus({preventScroll:!0}),R(!1))}})},[]),oe=UL(),ae=A.useRef(null),Q=A.useCallback(function(be){var ze=be.composed?be.composedPath()[0]:be.target,We=mr(D);We!=null&&ze instanceof Node&&!We.contains(ze)&&(be.preventDefault(),be.stopImmediatePropagation(),te())},[te]),Z=A.useCallback(function(be){var ze=be.composed?be.composedPath()[0]:be.target,We=U(oe),pt=We.some(function(xt){var zr=xt.containerElement,vt=mr(zr);return(vt==null?void 0:vt.contains(ze))&&!vt.isSameNode(ze)});pt||d==null||d(be)},[U,oe,d]);A.useEffect(function(){document.removeEventListener("mousedown",Z)},[Z]),A.useEffect(function(){document.removeEventListener("focus",Q,!0)},[Q]);var re=A.useMemo(function(){return wo(r,ae)},[r]);A.useImperativeHandle(re,function(){return{bringFocusInsideOverlay:te,containerElement:D,handleDocumentFocus:Q,handleDocumentMousedown:Z,id:oe,props:{autoFocus:o,enforceFocus:x,hasBackdrop:b,usePortal:L}}},[o,te,x,Q,Z,b,oe,L]);var le=A.useCallback(function(be){be.key==="Escape"&&s&&(d==null||d(be),be.stopPropagation(),be.preventDefault())},[s,d]),ce=A.useCallback(function(){if(ae.current!=null){var be=j();(be==null?void 0:be.handleDocumentFocus)!==void 0&&document.removeEventListener("focus",be.handleDocumentFocus,!0),$(ae.current),o&&(R(!0),te()),x&&document.addEventListener("focus",Q,!0),c&&!b&&document.addEventListener("mousedown",Z),a1(F,kc(mr(D)))}},[o,te,c,x,j,Z,Q,b,$]),de=A.useCallback(function(){var be;document.removeEventListener("focus",Q,!0),document.removeEventListener("mousedown",Z),k(oe);var ze=j();ze!==void 0&&ze.props.autoFocus&&ze.props.enforceFocus&&((be=ze.bringFocusInsideOverlay)===null||be===void 0||be.call(ze),ze.handleDocumentFocus!==void 0&&document.addEventListener("focus",ze.handleDocumentFocus,!0))},[k,j,Q,Z,oe]),pe=(n=DL(m))!==null&&n!==void 0?n:!1;A.useEffect(function(){m&&Y(!0),!pe&&m&&ce(),pe&&!m&&de()},[m,ce,de,pe]),A.useEffect(function(){return function(){m&&de()}},[]);var fe=A.useCallback(function(be){var ze=mr(F);T&&ze instanceof HTMLElement&&ze.focus(),v==null||v(be)},[v,T]),xe=A.useCallback(function(){},[]),Ee=A.useCallback(function(be){if(f!=null)return f;if(g!=null){var ze=be.key;if(ze==null){hn("production")||console.error(VP);return}return g[ze]}},[f,g]),$e=A.useCallback(function(be){if(be==null||lh(be))return null;var ze=Ee(be),We=ch(be)?be.props:{},pt=sh(be,"span",{className:Be(We.className,kS),ref:ze===void 0?X:void 0,tabIndex:x||o?0:void 0}),xt=ze??X;return A.createElement(e5,{addEndListener:xe,classNames:P,nodeRef:xt,onEntered:fi(p,xt),onEntering:fi(C,xt),onExited:fi(fe,xt),onExiting:fi(u,xt),timeout:O},pt)},[o,x,Ee,xe,fe,u,p,C,O,P]),ke=A.useCallback(function(be){var ze;c&&(d==null||d(be)),x&&te(),(ze=l==null?void 0:l.onMouseDown)===null||ze===void 0||ze.call(l,be)},[l,te,c,x,d]),Ve=A.useCallback(function(be,ze){return A.createElement(e5,{addEndListener:xe,classNames:P,key:be,nodeRef:ze.ref,timeout:O,unmountOnExit:!0},A.createElement("div",K({tabIndex:0},ze)))},[xe,O,P]),Ke=A.useCallback(function(be){if(!(!x||I)){var ze=mr(D),We=mr(J);be.relatedTarget!=null&&(ze!=null&&ze.contains(be.relatedTarget))&&be.relatedTarget!==We&&(We==null||We.focus({preventScroll:!0}))}},[x,I]),Fe=A.useCallback(function(be){var ze;if(x&&be.shiftKey&&be.key==="Tab"){var We=l5(D).pop();We!=null?We.focus():(ze=mr(J))===null||ze===void 0||ze.focus({preventScroll:!0})}},[x]),Ze=A.useCallback(function(be){var ze,We=mr(ee);if(be.relatedTarget!=null&&(!((ze=mr(D))===null||ze===void 0)&&ze.contains(be.relatedTarget))&&be.relatedTarget!==We){var pt=l5(D).shift();!I&&pt!=null&&pt!==be.relatedTarget?pt.focus():We==null||We.focus({preventScroll:!0})}else{var xt=l5(D).pop();xt!=null?xt.focus():We==null||We.focus({preventScroll:!0})}},[I]),dt=A.useMemo(function(){return b&&m?A.createElement(e5,{classNames:P,key:"__backdrop",nodeRef:W,timeout:O,addEndListener:xe},A.createElement("div",K({},l,{className:Be(AS,i,l==null?void 0:l.className),onMouseDown:ke,ref:W}))):null},[i,l,ke,xe,b,m,O,P]);if(h&&!q)return null;var nt=m?(a=A.Children.map(w,$e))!==null&&a!==void 0?a:[]:[];dt!==null&&nt.unshift(dt),m&&(o||x)&&nt.length>0&&(nt.unshift(Ve("__start",{className:eh,onFocus:Ke,onKeyDown:Fe,ref:ee})),x&&nt.push(Ve("__end",{className:th,onFocus:Ze,ref:J})));var Je=A.createElement("div",{"aria-live":"polite",className:Be(k1,(t={},t[bo]=m,t[HS]=!L,t),y),onKeyDown:le,ref:D},A.createElement(ML,{appear:!0,component:null},nt));return L?A.createElement(s5,{className:M,container:S},Je):Je});di.defaultProps={autoFocus:!0,backdropProps:{},canEscapeKeyClose:!0,canOutsideClickClose:!0,enforceFocus:!0,hasBackdrop:!0,isOpen:!1,lazy:ah(),shouldReturnFocusOnClose:!0,transitionDuration:300,transitionName:k1,usePortal:!0},di.displayName="".concat(rt,".Overlay2");function WL(e){var r=e.childRef,t=e.childRefs,n=e.children,a=A.Children.count(n);A.useEffect(function(){hn("production")||(r!=null&&t!=null&&console.error(EP),a>1&&t==null&&console.error(LP))},[r,t,a])}function UL(){var e=LL();return"".concat(di.displayName,"-").concat(e)}function fi(e,r){return function(){(r==null?void 0:r.current)!=null&&(e==null||e(r.current))}}var c5=function(e){St(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.render=function(){var t,n=this.props,a=n.className,o=n.children,i=n.large,l=n.small,s=n.ulRef,c=Ge(n,["className","children","large","small","ulRef"]),f=Be(a,Qv,(t={},t[or]=i,t[pn]=l,t));return A.createElement("ul",K({role:"menu"},c,{className:f,ref:s}),o)},r.displayName="".concat(rt,".Menu"),r}(gr),Vh=A.createContext(),Ah=A.createContext();function GL(e){var r=e.children,t=A.useState(null),n=t[0],a=t[1],o=A.useRef(!1);A.useEffect(function(){return function(){o.current=!0}},[]);var i=A.useCallback(function(l){o.current||a(l)},[]);return A.createElement(Vh.Provider,{value:n},A.createElement(Ah.Provider,{value:i},r))}var kh=function(r){return Array.isArray(r)?r[0]:r},Hh=function(r){if(typeof r=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return r.apply(void 0,n)}},u5=function(r,t){if(typeof r=="function")return Hh(r,t);r!=null&&(r.current=t)},Nh=function(r){return r.reduce(function(t,n){var a=n[0],o=n[1];return t[a]=o,t},{})},Rh=typeof window<"u"&&window.document&&window.document.createElement?A.useLayoutEffect:A.useEffect,Zt="top",br="bottom",yr="right",Jt="left",d5="auto",So=[Zt,br,yr,Jt],sa="start",Po="end",BL="clippingParents",jh="viewport",_o="popper",qL="reference",Dh=So.reduce(function(e,r){return e.concat([r+"-"+sa,r+"-"+Po])},[]),Ih=[].concat(So,[d5]).reduce(function(e,r){return e.concat([r,r+"-"+sa,r+"-"+Po])},[]),YL="beforeRead",KL="read",XL="afterRead",ZL="beforeMain",JL="main",QL="afterMain",eV="beforeWrite",tV="write",rV="afterWrite",nV=[YL,KL,XL,ZL,JL,QL,eV,tV,rV];function Wr(e){return e?(e.nodeName||"").toLowerCase():null}function ir(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function Cn(e){var r=ir(e).Element;return e instanceof r||e instanceof Element}function wr(e){var r=ir(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function f5(e){if(typeof ShadowRoot>"u")return!1;var r=ir(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function aV(e){var r=e.state;Object.keys(r.elements).forEach(function(t){var n=r.styles[t]||{},a=r.attributes[t]||{},o=r.elements[t];!wr(o)||!Wr(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function oV(e){var r=e.state,t={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,t.popper),r.styles=t,r.elements.arrow&&Object.assign(r.elements.arrow.style,t.arrow),function(){Object.keys(r.elements).forEach(function(n){var a=r.elements[n],o=r.attributes[n]||{},i=Object.keys(r.styles.hasOwnProperty(n)?r.styles[n]:t[n]),l=i.reduce(function(s,c){return s[c]="",s},{});!wr(a)||!Wr(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}const iV={name:"applyStyles",enabled:!0,phase:"write",fn:aV,effect:oV,requires:["computeStyles"]};function Ur(e){return e.split("-")[0]}var Mn=Math.max,pi=Math.min,ca=Math.round;function p5(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function $h(){return!/^((?!chrome|android).)*safari/i.test(p5())}function ua(e,r,t){r===void 0&&(r=!1),t===void 0&&(t=!1);var n=e.getBoundingClientRect(),a=1,o=1;r&&wr(e)&&(a=e.offsetWidth>0&&ca(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ca(n.height)/e.offsetHeight||1);var i=Cn(e)?ir(e):window,l=i.visualViewport,s=!$h()&&t,c=(n.left+(s&&l?l.offsetLeft:0))/a,f=(n.top+(s&&l?l.offsetTop:0))/o,g=n.width/a,w=n.height/o;return{width:g,height:w,top:f,right:c+g,bottom:f+w,left:c,x:c,y:f}}function v5(e){var r=ua(e),t=e.offsetWidth,n=e.offsetHeight;return Math.abs(r.width-t)<=1&&(t=r.width),Math.abs(r.height-n)<=1&&(n=r.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:n}}function Fh(e,r){var t=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(t&&f5(t)){var n=r;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function i1(e){return ir(e).getComputedStyle(e)}function lV(e){return["table","td","th"].indexOf(Wr(e))>=0}function R1(e){return((Cn(e)?e.ownerDocument:e.document)||window.document).documentElement}function vi(e){return Wr(e)==="html"?e:e.assignedSlot||e.parentNode||(f5(e)?e.host:null)||R1(e)}function Wh(e){return!wr(e)||i1(e).position==="fixed"?null:e.offsetParent}function sV(e){var r=/firefox/i.test(p5()),t=/Trident/i.test(p5());if(t&&wr(e)){var n=i1(e);if(n.position==="fixed")return null}var a=vi(e);for(f5(a)&&(a=a.host);wr(a)&&["html","body"].indexOf(Wr(a))<0;){var o=i1(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||r&&o.willChange==="filter"||r&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Eo(e){for(var r=ir(e),t=Wh(e);t&&lV(t)&&i1(t).position==="static";)t=Wh(t);return t&&(Wr(t)==="html"||Wr(t)==="body"&&i1(t).position==="static")?r:t||sV(e)||r}function h5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lo(e,r,t){return Mn(e,pi(r,t))}function cV(e,r,t){var n=Lo(e,r,t);return n>t?t:n}function Uh(){return{top:0,right:0,bottom:0,left:0}}function Gh(e){return Object.assign({},Uh(),e)}function Bh(e,r){return r.reduce(function(t,n){return t[n]=e,t},{})}var uV=function(r,t){return r=typeof r=="function"?r(Object.assign({},t.rects,{placement:t.placement})):r,Gh(typeof r!="number"?r:Bh(r,So))};function dV(e){var r,t=e.state,n=e.name,a=e.options,o=t.elements.arrow,i=t.modifiersData.popperOffsets,l=Ur(t.placement),s=h5(l),c=[Jt,yr].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!i)){var g=uV(a.padding,t),w=v5(o),y=s==="y"?Zt:Jt,x=s==="y"?br:yr,b=t.rects.reference[f]+t.rects.reference[s]-i[s]-t.rects.popper[f],m=i[s]-t.rects.reference[s],h=Eo(o),d=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,v=b/2-m/2,u=g[y],p=d-w[f]-g[x],C=d/2-w[f]/2+v,M=Lo(u,C,p),S=s;t.modifiersData[n]=(r={},r[S]=M,r.centerOffset=M-C,r)}}function fV(e){var r=e.state,t=e.options,n=t.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Fh(r.elements.popper,a)&&(r.elements.arrow=a))}const pV={name:"arrow",enabled:!0,phase:"main",fn:dV,effect:fV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function da(e){return e.split("-")[1]}var vV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hV(e,r){var t=e.x,n=e.y,a=r.devicePixelRatio||1;return{x:ca(t*a)/a||0,y:ca(n*a)/a||0}}function qh(e){var r,t=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,g=e.isFixed,w=i.x,y=w===void 0?0:w,x=i.y,b=x===void 0?0:x,m=typeof f=="function"?f({x:y,y:b}):{x:y,y:b};y=m.x,b=m.y;var h=i.hasOwnProperty("x"),d=i.hasOwnProperty("y"),v=Jt,u=Zt,p=window;if(c){var C=Eo(t),M="clientHeight",S="clientWidth";if(C===ir(t)&&(C=R1(t),i1(C).position!=="static"&&l==="absolute"&&(M="scrollHeight",S="scrollWidth")),C=C,a===Zt||(a===Jt||a===yr)&&o===Po){u=br;var T=g&&C===p&&p.visualViewport?p.visualViewport.height:C[M];b-=T-n.height,b*=s?1:-1}if(a===Jt||(a===Zt||a===br)&&o===Po){v=yr;var O=g&&C===p&&p.visualViewport?p.visualViewport.width:C[S];y-=O-n.width,y*=s?1:-1}}var P=Object.assign({position:l},c&&vV),L=f===!0?hV({x:y,y:b},ir(t)):{x:y,y:b};if(y=L.x,b=L.y,s){var V;return Object.assign({},P,(V={},V[u]=d?"0":"",V[v]=h?"0":"",V.transform=(p.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",V))}return Object.assign({},P,(r={},r[u]=d?b+"px":"",r[v]=h?y+"px":"",r.transform="",r))}function mV(e){var r=e.state,t=e.options,n=t.gpuAcceleration,a=n===void 0?!0:n,o=t.adaptive,i=o===void 0?!0:o,l=t.roundOffsets,s=l===void 0?!0:l,c={placement:Ur(r.placement),variation:da(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,qh(Object.assign({},c,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:i,roundOffsets:s})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,qh(Object.assign({},c,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const gV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mV,data:{}};var hi={passive:!0};function bV(e){var r=e.state,t=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,l=i===void 0?!0:i,s=ir(r.elements.popper),c=[].concat(r.scrollParents.reference,r.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",t.update,hi)}),l&&s.addEventListener("resize",t.update,hi),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",t.update,hi)}),l&&s.removeEventListener("resize",t.update,hi)}}const yV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bV,data:{}};var wV={left:"right",right:"left",bottom:"top",top:"bottom"};function mi(e){return e.replace(/left|right|bottom|top/g,function(r){return wV[r]})}var xV={start:"end",end:"start"};function Yh(e){return e.replace(/start|end/g,function(r){return xV[r]})}function m5(e){var r=ir(e),t=r.pageXOffset,n=r.pageYOffset;return{scrollLeft:t,scrollTop:n}}function g5(e){return ua(R1(e)).left+m5(e).scrollLeft}function CV(e,r){var t=ir(e),n=R1(e),a=t.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;var c=$h();(c||!c&&r==="fixed")&&(l=a.offsetLeft,s=a.offsetTop)}return{width:o,height:i,x:l+g5(e),y:s}}function MV(e){var r,t=R1(e),n=m5(e),a=(r=e.ownerDocument)==null?void 0:r.body,o=Mn(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Mn(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+g5(e),s=-n.scrollTop;return i1(a||t).direction==="rtl"&&(l+=Mn(t.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:s}}function b5(e){var r=i1(e),t=r.overflow,n=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+n)}function Kh(e){return["html","body","#document"].indexOf(Wr(e))>=0?e.ownerDocument.body:wr(e)&&b5(e)?e:Kh(vi(e))}function Vo(e,r){var t;r===void 0&&(r=[]);var n=Kh(e),a=n===((t=e.ownerDocument)==null?void 0:t.body),o=ir(n),i=a?[o].concat(o.visualViewport||[],b5(n)?n:[]):n,l=r.concat(i);return a?l:l.concat(Vo(vi(i)))}function y5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zV(e,r){var t=ua(e,!1,r==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Xh(e,r,t){return r===jh?y5(CV(e,t)):Cn(r)?zV(r,t):y5(MV(R1(e)))}function TV(e){var r=Vo(vi(e)),t=["absolute","fixed"].indexOf(i1(e).position)>=0,n=t&&wr(e)?Eo(e):e;return Cn(n)?r.filter(function(a){return Cn(a)&&Fh(a,n)&&Wr(a)!=="body"}):[]}function OV(e,r,t,n){var a=r==="clippingParents"?TV(e):[].concat(r),o=[].concat(a,[t]),i=o[0],l=o.reduce(function(s,c){var f=Xh(e,c,n);return s.top=Mn(f.top,s.top),s.right=pi(f.right,s.right),s.bottom=pi(f.bottom,s.bottom),s.left=Mn(f.left,s.left),s},Xh(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Zh(e){var r=e.reference,t=e.element,n=e.placement,a=n?Ur(n):null,o=n?da(n):null,i=r.x+r.width/2-t.width/2,l=r.y+r.height/2-t.height/2,s;switch(a){case Zt:s={x:i,y:r.y-t.height};break;case br:s={x:i,y:r.y+r.height};break;case yr:s={x:r.x+r.width,y:l};break;case Jt:s={x:r.x-t.width,y:l};break;default:s={x:r.x,y:r.y}}var c=a?h5(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case sa:s[c]=s[c]-(r[f]/2-t[f]/2);break;case Po:s[c]=s[c]+(r[f]/2-t[f]/2);break}}return s}function Ao(e,r){r===void 0&&(r={});var t=r,n=t.placement,a=n===void 0?e.placement:n,o=t.strategy,i=o===void 0?e.strategy:o,l=t.boundary,s=l===void 0?BL:l,c=t.rootBoundary,f=c===void 0?jh:c,g=t.elementContext,w=g===void 0?_o:g,y=t.altBoundary,x=y===void 0?!1:y,b=t.padding,m=b===void 0?0:b,h=Gh(typeof m!="number"?m:Bh(m,So)),d=w===_o?qL:_o,v=e.rects.popper,u=e.elements[x?d:w],p=OV(Cn(u)?u:u.contextElement||R1(e.elements.popper),s,f,i),C=ua(e.elements.reference),M=Zh({reference:C,element:v,strategy:"absolute",placement:a}),S=y5(Object.assign({},v,M)),T=w===_o?S:C,O={top:p.top-T.top+h.top,bottom:T.bottom-p.bottom+h.bottom,left:p.left-T.left+h.left,right:T.right-p.right+h.right},P=e.modifiersData.offset;if(w===_o&&P){var L=P[a];Object.keys(O).forEach(function(V){var k=[yr,br].indexOf(V)>=0?1:-1,j=[Zt,br].indexOf(V)>=0?"y":"x";O[V]+=L[j]*k})}return O}function SV(e,r){r===void 0&&(r={});var t=r,n=t.placement,a=t.boundary,o=t.rootBoundary,i=t.padding,l=t.flipVariations,s=t.allowedAutoPlacements,c=s===void 0?Ih:s,f=da(n),g=f?l?Dh:Dh.filter(function(x){return da(x)===f}):So,w=g.filter(function(x){return c.indexOf(x)>=0});w.length===0&&(w=g);var y=w.reduce(function(x,b){return x[b]=Ao(e,{placement:b,boundary:a,rootBoundary:o,padding:i})[Ur(b)],x},{});return Object.keys(y).sort(function(x,b){return y[x]-y[b]})}function PV(e){if(Ur(e)===d5)return[];var r=mi(e);return[Yh(e),r,Yh(r)]}function _V(e){var r=e.state,t=e.options,n=e.name;if(!r.modifiersData[n]._skip){for(var a=t.mainAxis,o=a===void 0?!0:a,i=t.altAxis,l=i===void 0?!0:i,s=t.fallbackPlacements,c=t.padding,f=t.boundary,g=t.rootBoundary,w=t.altBoundary,y=t.flipVariations,x=y===void 0?!0:y,b=t.allowedAutoPlacements,m=r.options.placement,h=Ur(m),d=h===m,v=s||(d||!x?[mi(m)]:PV(m)),u=[m].concat(v).reduce(function(F,D){return F.concat(Ur(D)===d5?SV(r,{placement:D,boundary:f,rootBoundary:g,padding:c,flipVariations:x,allowedAutoPlacements:b}):D)},[]),p=r.rects.reference,C=r.rects.popper,M=new Map,S=!0,T=u[0],O=0;O<u.length;O++){var P=u[O],L=Ur(P),V=da(P)===sa,k=[Zt,br].indexOf(L)>=0,j=k?"width":"height",U=Ao(r,{placement:P,boundary:f,rootBoundary:g,altBoundary:w,padding:c}),$=k?V?yr:Jt:V?br:Zt;p[j]>C[j]&&($=mi($));var B=mi($),I=[];if(o&&I.push(U[L]<=0),l&&I.push(U[$]<=0,U[B]<=0),I.every(function(F){return F})){T=P,S=!1;break}M.set(P,I)}if(S)for(var R=x?3:1,G=function(D){var W=u.find(function(ee){var J=M.get(ee);if(J)return J.slice(0,D).every(function(X){return X})});if(W)return T=W,"break"},q=R;q>0;q--){var Y=G(q);if(Y==="break")break}r.placement!==T&&(r.modifiersData[n]._skip=!0,r.placement=T,r.reset=!0)}}const EV={name:"flip",enabled:!0,phase:"main",fn:_V,requiresIfExists:["offset"],data:{_skip:!1}};function Jh(e,r,t){return t===void 0&&(t={x:0,y:0}),{top:e.top-r.height-t.y,right:e.right-r.width+t.x,bottom:e.bottom-r.height+t.y,left:e.left-r.width-t.x}}function Qh(e){return[Zt,yr,br,Jt].some(function(r){return e[r]>=0})}function LV(e){var r=e.state,t=e.name,n=r.rects.reference,a=r.rects.popper,o=r.modifiersData.preventOverflow,i=Ao(r,{elementContext:"reference"}),l=Ao(r,{altBoundary:!0}),s=Jh(i,n),c=Jh(l,a,o),f=Qh(s),g=Qh(c);r.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:g},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":g})}const VV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LV};function AV(e,r,t){var n=Ur(e),a=[Jt,Zt].indexOf(n)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},r,{placement:e})):t,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Jt,yr].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function kV(e){var r=e.state,t=e.options,n=e.name,a=t.offset,o=a===void 0?[0,0]:a,i=Ih.reduce(function(f,g){return f[g]=AV(g,r.rects,o),f},{}),l=i[r.placement],s=l.x,c=l.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=s,r.modifiersData.popperOffsets.y+=c),r.modifiersData[n]=i}const HV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kV};function NV(e){var r=e.state,t=e.name;r.modifiersData[t]=Zh({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const RV={name:"popperOffsets",enabled:!0,phase:"read",fn:NV,data:{}};function jV(e){return e==="x"?"y":"x"}function DV(e){var r=e.state,t=e.options,n=e.name,a=t.mainAxis,o=a===void 0?!0:a,i=t.altAxis,l=i===void 0?!1:i,s=t.boundary,c=t.rootBoundary,f=t.altBoundary,g=t.padding,w=t.tether,y=w===void 0?!0:w,x=t.tetherOffset,b=x===void 0?0:x,m=Ao(r,{boundary:s,rootBoundary:c,padding:g,altBoundary:f}),h=Ur(r.placement),d=da(r.placement),v=!d,u=h5(h),p=jV(u),C=r.modifiersData.popperOffsets,M=r.rects.reference,S=r.rects.popper,T=typeof b=="function"?b(Object.assign({},r.rects,{placement:r.placement})):b,O=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,L={x:0,y:0};if(C){if(o){var V,k=u==="y"?Zt:Jt,j=u==="y"?br:yr,U=u==="y"?"height":"width",$=C[u],B=$+m[k],I=$-m[j],R=y?-S[U]/2:0,G=d===sa?M[U]:S[U],q=d===sa?-S[U]:-M[U],Y=r.elements.arrow,F=y&&Y?v5(Y):{width:0,height:0},D=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Uh(),W=D[k],ee=D[j],J=Lo(0,M[U],F[U]),X=v?M[U]/2-R-J-W-O.mainAxis:G-J-W-O.mainAxis,te=v?-M[U]/2+R+J+ee+O.mainAxis:q+J+ee+O.mainAxis,oe=r.elements.arrow&&Eo(r.elements.arrow),ae=oe?u==="y"?oe.clientTop||0:oe.clientLeft||0:0,Q=(V=P==null?void 0:P[u])!=null?V:0,Z=$+X-Q-ae,re=$+te-Q,le=Lo(y?pi(B,Z):B,$,y?Mn(I,re):I);C[u]=le,L[u]=le-$}if(l){var ce,de=u==="x"?Zt:Jt,pe=u==="x"?br:yr,fe=C[p],xe=p==="y"?"height":"width",Ee=fe+m[de],$e=fe-m[pe],ke=[Zt,Jt].indexOf(h)!==-1,Ve=(ce=P==null?void 0:P[p])!=null?ce:0,Ke=ke?Ee:fe-M[xe]-S[xe]-Ve+O.altAxis,Fe=ke?fe+M[xe]+S[xe]-Ve-O.altAxis:$e,Ze=y&&ke?cV(Ke,fe,Fe):Lo(y?Ke:Ee,fe,y?Fe:$e);C[p]=Ze,L[p]=Ze-fe}r.modifiersData[n]=L}}const IV={name:"preventOverflow",enabled:!0,phase:"main",fn:DV,requiresIfExists:["offset"]};function $V(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FV(e){return e===ir(e)||!wr(e)?m5(e):$V(e)}function WV(e){var r=e.getBoundingClientRect(),t=ca(r.width)/e.offsetWidth||1,n=ca(r.height)/e.offsetHeight||1;return t!==1||n!==1}function UV(e,r,t){t===void 0&&(t=!1);var n=wr(r),a=wr(r)&&WV(r),o=R1(r),i=ua(e,a,t),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!t)&&((Wr(r)!=="body"||b5(o))&&(l=FV(r)),wr(r)?(s=ua(r,!0),s.x+=r.clientLeft,s.y+=r.clientTop):o&&(s.x=g5(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function GV(e){var r=new Map,t=new Set,n=[];e.forEach(function(o){r.set(o.name,o)});function a(o){t.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!t.has(l)){var s=r.get(l);s&&a(s)}}),n.push(o)}return e.forEach(function(o){t.has(o.name)||a(o)}),n}function BV(e){var r=GV(e);return nV.reduce(function(t,n){return t.concat(r.filter(function(a){return a.phase===n}))},[])}function qV(e){var r;return function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(e())})})),r}}function YV(e){var r=e.reduce(function(t,n){var a=t[n.name];return t[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,t},{});return Object.keys(r).map(function(t){return r[t]})}var e6={placement:"bottom",modifiers:[],strategy:"absolute"};function t6(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return!r.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function KV(e){e===void 0&&(e={});var r=e,t=r.defaultModifiers,n=t===void 0?[]:t,a=r.defaultOptions,o=a===void 0?e6:a;return function(l,s,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},e6,o),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},g=[],w=!1,y={state:f,setOptions:function(h){var d=typeof h=="function"?h(f.options):h;b(),f.options=Object.assign({},o,f.options,d),f.scrollParents={reference:Cn(l)?Vo(l):l.contextElement?Vo(l.contextElement):[],popper:Vo(s)};var v=BV(YV([].concat(n,f.options.modifiers)));return f.orderedModifiers=v.filter(function(u){return u.enabled}),x(),y.update()},forceUpdate:function(){if(!w){var h=f.elements,d=h.reference,v=h.popper;if(t6(d,v)){f.rects={reference:UV(d,Eo(v),f.options.strategy==="fixed"),popper:v5(v)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(O){return f.modifiersData[O.name]=Object.assign({},O.data)});for(var u=0;u<f.orderedModifiers.length;u++){if(f.reset===!0){f.reset=!1,u=-1;continue}var p=f.orderedModifiers[u],C=p.fn,M=p.options,S=M===void 0?{}:M,T=p.name;typeof C=="function"&&(f=C({state:f,options:S,name:T,instance:y})||f)}}}},update:qV(function(){return new Promise(function(m){y.forceUpdate(),m(f)})}),destroy:function(){b(),w=!0}};if(!t6(l,s))return y;y.setOptions(c).then(function(m){!w&&c.onFirstUpdate&&c.onFirstUpdate(m)});function x(){f.orderedModifiers.forEach(function(m){var h=m.name,d=m.options,v=d===void 0?{}:d,u=m.effect;if(typeof u=="function"){var p=u({state:f,name:h,instance:y,options:v}),C=function(){};g.push(p||C)}})}function b(){g.forEach(function(m){return m()}),g=[]}return y}}var XV=[yV,RV,gV,iV,HV,EV,IV,pV,VV],ZV=KV({defaultModifiers:XV}),JV=typeof Element<"u",QV=typeof Map=="function",eA=typeof Set=="function",tA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gi(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var t,n,a;if(Array.isArray(e)){if(t=e.length,t!=r.length)return!1;for(n=t;n--!==0;)if(!gi(e[n],r[n]))return!1;return!0}var o;if(QV&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!r.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!gi(n.value[1],r.get(n.value[0])))return!1;return!0}if(eA&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!r.has(n.value[0]))return!1;return!0}if(tA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(t=e.length,t!=r.length)return!1;for(n=t;n--!==0;)if(e[n]!==r[n])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(a=Object.keys(e),t=a.length,t!==Object.keys(r).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;if(JV&&e instanceof Element)return!1;for(n=t;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&e.$$typeof)&&!gi(e[a[n]],r[a[n]]))return!1;return!0}return e!==e&&r!==r}var rA=function(r,t){try{return gi(r,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const nA=ma(rA);var aA=[],oA=function(r,t,n){n===void 0&&(n={});var a=A.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||aA},i=A.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=i[0],s=i[1],c=A.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var x=y.state,b=Object.keys(x.elements);Li.flushSync(function(){s({styles:Nh(b.map(function(m){return[m,x.styles[m]||{}]})),attributes:Nh(b.map(function(m){return[m,x.attributes[m]]}))})})},requires:["computeStyles"]}},[]),f=A.useMemo(function(){var w={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return nA(a.current,w)?a.current||w:(a.current=w,w)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),g=A.useRef();return Rh(function(){g.current&&g.current.setOptions(f)},[f]),Rh(function(){if(!(r==null||t==null)){var w=n.createPopper||ZV,y=w(r,t,f);return g.current=y,function(){y.destroy(),g.current=null}}},[r,t,n.createPopper]),{state:g.current?g.current.state:null,styles:l.styles,attributes:l.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}},iA=function(){},lA=function(){return Promise.resolve(null)},sA=[];function cA(e){var r=e.placement,t=r===void 0?"bottom":r,n=e.strategy,a=n===void 0?"absolute":n,o=e.modifiers,i=o===void 0?sA:o,l=e.referenceElement,s=e.onFirstUpdate,c=e.innerRef,f=e.children,g=A.useContext(Vh),w=A.useState(null),y=w[0],x=w[1],b=A.useState(null),m=b[0],h=b[1];A.useEffect(function(){u5(c,y)},[c,y]);var d=A.useMemo(function(){return{placement:t,strategy:a,onFirstUpdate:s,modifiers:[].concat(i,[{name:"arrow",enabled:m!=null,options:{element:m}}])}},[t,a,s,i,m]),v=oA(l||g,y,d),u=v.state,p=v.styles,C=v.forceUpdate,M=v.update,S=A.useMemo(function(){return{ref:x,style:p.popper,placement:u?u.placement:t,hasPopperEscaped:u&&u.modifiersData.hide?u.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:u&&u.modifiersData.hide?u.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:p.arrow,ref:h},forceUpdate:C||iA,update:M||lA}},[x,h,t,u,p,M,C]);return kh(f)(S)}var uA=process.env.NODE_ENV!=="production",r6=function(){};if(uA){var dA=function(r,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var a=1;a<n;a++)t[a-1]=arguments[a];var o=0,i="Warning: "+r.replace(/%s/g,function(){return t[o++]});typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}};r6=function(e,r,t){var n=arguments.length;t=new Array(n>2?n-2:0);for(var a=2;a<n;a++)t[a-2]=arguments[a];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||dA.apply(null,[r].concat(t))}}var fA=r6;const pA=ma(fA);function vA(e){var r=e.children,t=e.innerRef,n=A.useContext(Ah),a=A.useCallback(function(o){u5(t,o),Hh(n,o)},[t,n]);return A.useEffect(function(){return function(){return u5(t,null)}},[]),A.useEffect(function(){pA(!!n,"`Reference` should not be used outside of a `Manager` component.")},[n]),kh(r)({ref:a})}var n6=function(e){St(r,e);function r(){var t,n=e.apply(this,arguments)||this;return n.targetRef=(t=n.props.targetRef)!==null&&t!==void 0?t:A.createRef(),n.prevElement=void 0,n}return r.prototype.render=function(){var t=A.Children.only(this.props.children);return this.props.targetRef!==void 0?t:A.cloneElement(t,{ref:this.targetRef})},r.prototype.componentDidMount=function(){var t=this;this.observer=globalThis.ResizeObserver!=null?new ResizeObserver(function(n){var a,o;return(o=(a=t.props).onResize)===null||o===void 0?void 0:o.call(a,n)}):void 0,this.observeElement()},r.prototype.componentDidUpdate=function(t){this.observeElement(this.props.observeParents!==t.observeParents)},r.prototype.componentWillUnmount=function(){var t;(t=this.observer)===null||t===void 0||t.disconnect(),this.prevElement=void 0},r.prototype.observeElement=function(t){if(t===void 0&&(t=!1),this.observer!==void 0){if(!(this.targetRef.current instanceof Element)){this.observer.disconnect();return}if(!(this.targetRef.current===this.prevElement&&!t)&&(this.observer.disconnect(),this.prevElement=this.targetRef.current,this.observer.observe(this.targetRef.current),this.props.observeParents))for(var n=this.targetRef.current.parentElement;n!=null;)this.observer.observe(n),n=n.parentElement}},r.displayName="".concat(rt,".ResizeSensor"),r}(gr);function bi(e){return e.split("-")[0]}function a6(e){return["left","right"].indexOf(e)!==-1}function yi(e){switch(e){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function o6(e){var r=e.split("-")[1];switch(r){case"start":return"left";case"end":return"right";default:return"center"}}function hA(e,r){var t=bi(e);if(r===void 0)return a6(t)?"".concat(yi(t)," ").concat(o6(t)):"".concat(o6(t)," ").concat(yi(t));var n=15;return a6(t)?"".concat(yi(t)," ").concat(parseInt(r.top,10)+n,"px"):"".concat(parseInt(r.left,10)+n,"px ").concat(yi(t))}var mA="M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z",gA="M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z",bA=4,wi=30,yA=22;function wA(e){if(e==null)return 0;switch(bi(e)){case"top":return-90;case"left":return 180;case"bottom":return 90;default:return 0}}function xA(e){var r=wi/2-bA;switch(bi(e)){case"top":return{bottom:-r};case"left":return{right:-r};case"bottom":return{top:-r};default:return{left:-r}}}var i6=function(e){var r=e.arrowProps,t=r.ref,n=r.style,a=e.placement;return A.createElement("div",{"aria-hidden":!0,className:Ec,"data-popper-arrow":!0,ref:t,style:K(K({},n),xA(a))},A.createElement("svg",{viewBox:"0 0 ".concat(wi," ").concat(wi),style:{transform:"rotate(".concat(wA(a),"deg)")}},A.createElement("path",{className:Ec+"-border",d:mA}),A.createElement("path",{className:Ec+"-fill",d:gA})))};i6.displayName="".concat(rt,".PopoverArrow");var CA=function(){return null},l6=A.createContext([{},CA]),MA=function(e,r){switch(r.type){case"FORCE_DISABLED_STATE":return{forceDisabled:!0};case"RESET_DISABLED_STATE":return{};default:return e}},zA=function(e){var r=e.children,t=e.forceDisable,n=A.useReducer(MA,{}),a=n[0],o=n[1],i=A.useMemo(function(){return[a,o]},[a,o]);return A.useEffect(function(){o(t?{type:"FORCE_DISABLED_STATE"}:{type:"RESET_DISABLED_STATE"})},[t]),A.createElement(l6.Provider,{value:i},typeof r=="function"?r(a):r)},TA=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.popoverRef=A.createRef(),t.renderPopover=function(n){var a,o,i=t.props,l=i.children,s=i.compact,c=i.disabled,f=i.intent,g=i.popoverClassName,w=Ge(i,["children","compact","disabled","intent","popoverClassName"]),y=Be(eP,Ft(f),g,(a={},a[Bv]=s,a));return A.createElement(w5,K({modifiers:{arrow:{enabled:!t.props.minimal},offset:{options:{offset:[0,yA/2]}}}},w,{autoFocus:!1,canEscapeKeyClose:!1,disabled:(o=n.forceDisabled)!==null&&o!==void 0?o:c,enforceFocus:!1,lazy:!0,popoverClassName:y,portalContainer:t.props.portalContainer,ref:t.popoverRef}),l)},t}return r.prototype.render=function(){var t=this;return A.createElement(l6.Consumer,null,function(n){var a=n[0];return A.createElement(zA,K({},a),t.renderPopover)})},r.prototype.reposition=function(){var t;(t=this.popoverRef.current)===null||t===void 0||t.reposition()},r.displayName="".concat(rt,".Tooltip"),r.defaultProps={compact:!1,hoverCloseDelay:0,hoverOpenDelay:100,interactionKind:"hover-target",minimal:!1,transitionDuration:100},r}(gr),OA={enabled:!0,name:"matchReferenceWidth",phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var r=e.state;r.styles.popper.width="".concat(r.rects.reference.width,"px")},effect:function(e){var r=e.state,t=r.elements.reference.getBoundingClientRect().width;r.elements.popper.style.width="".concat(t,"px")}},xr=K(K({},A1),{AUTO:"auto",AUTO_END:"auto-end",AUTO_START:"auto-start"});function SA(e){switch(e){case xr.TOP_LEFT:return"top-start";case xr.TOP:return"top";case xr.TOP_RIGHT:return"top-end";case xr.RIGHT_TOP:return"right-start";case xr.RIGHT:return"right";case xr.RIGHT_BOTTOM:return"right-end";case xr.BOTTOM_RIGHT:return"bottom-end";case xr.BOTTOM:return"bottom";case xr.BOTTOM_LEFT:return"bottom-start";case xr.LEFT_BOTTOM:return"left-end";case xr.LEFT:return"left";case xr.LEFT_TOP:return"left-start";case"auto":case"auto-start":case"auto-end":return e;default:return PA(e)}}function PA(e){throw new Error("Unexpected position: "+e)}var l1={CLICK:"click",CLICK_TARGET_ONLY:"click-target",HOVER:"hover",HOVER_TARGET_ONLY:"hover-target"},w5=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={hasDarkParent:!1,isClosingViaEscapeKeypress:!1,isOpen:t.getIsOpen(t.props)},t.popoverElement=null,t.popoverRef=mn(t,"popoverElement",t.props.popoverRef),t.targetRef=A.createRef(),t.transitionContainerElement=A.createRef(),t.isMouseInTargetOrPopover=!1,t.lostFocusOnSamePage=!0,t.isControlled=function(){return t.props.isOpen!==void 0},t.isArrowEnabled=function(){var n,a;return!t.props.minimal&&((a=(n=t.props.modifiers)===null||n===void 0?void 0:n.arrow)===null||a===void 0?void 0:a.enabled)!==!1},t.isHoverInteractionKind=function(){return t.props.interactionKind===l1.HOVER||t.props.interactionKind===l1.HOVER_TARGET_ONLY},t.reposition=function(){var n;return(n=t.popperScheduleUpdate)===null||n===void 0?void 0:n.call(t)},t.renderTarget=function(n){var a,o,i,l,s=n.ref,c=t.props,f=c.children,g=c.className,w=c.fill,y=c.openOnTargetFocus,x=c.renderTarget,b=t.state.isOpen,m=t.isControlled(),h=t.isHoverInteractionKind(),d=t.props.targetTagName;w&&(d="div");var v=wo(s,t.targetRef),u=h?{onBlur:t.handleTargetBlur,onContextMenu:t.handleTargetContextMenu,onFocus:t.handleTargetFocus,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave}:{onClick:t.handleTargetClick,onKeyDown:t.handleKeyDown},p=y&&h?0:void 0,C=K({className:Be(g,US,(a={},a[$S]=b,a[ta]=b&&!m&&!h,a)),ref:v},u),M={"aria-expanded":b,"aria-haspopup":t.props.interactionKind===l1.HOVER_TARGET_ONLY?void 0:(i=t.props.popupKind)!==null&&i!==void 0?i:"menu"},S=(o={},o[ta]=b&&!m&&!h,o[Ar]=w,o),T;if(x!==void 0)T=x(K(K(K({},C),M),{className:Be(C.className,S),isOpen:b,tabIndex:p}));else{var O=sh(A.Children.toArray(f)[0]);if(O===void 0)return null;var P=A.cloneElement(O,K(K({},M),{className:Be(O.props.className,S),disabled:b&&HP(O,TA)?!0:O.props.disabled,tabIndex:(l=O.props.tabIndex)!==null&&l!==void 0?l:p})),L=A.createElement(d,K(K({},C),t.props.targetProps),P);T=L}return A.createElement(n6,{targetRef:t.targetRef,onResize:t.reposition},T)},t.renderPopover=function(n){var a,o=t.props,i=o.autoFocus,l=o.enforceFocus,s=o.backdropProps,c=o.canEscapeKeyClose,f=o.hasBackdrop,g=o.interactionKind,w=o.usePortal,y=t.state,x=y.isClosingViaEscapeKeypress,b=y.isOpen,m=hA(n.placement,t.isArrowEnabled()?n.arrowProps.style:void 0);t.popperScheduleUpdate=n.update;var h={onClick:t.handlePopoverClick,onKeyDown:function(C){return yo(C)&&t.handlePopoverClick(C)}};(g===l1.HOVER||!w&&g===l1.HOVER_TARGET_ONLY)&&(h.onMouseEnter=t.handleMouseEnter,h.onMouseLeave=t.handleMouseLeave);var d=bi(n.placement),v=Be(kt,(a={},a[qv]=t.props.inheritDarkTheme&&t.state.hasDarkParent,a[ra]=t.props.minimal,a[Lc]=t.props.captureDismiss,a[IS]=t.props.matchTargetWidth,a[WS]=n.isReferenceHidden===!0,a[FS]=n.hasPopperEscaped===!0,a),"".concat(jS,"-").concat(d),t.props.popoverClassName),u=t.isHoverInteractionKind()?!1:void 0,p=t.isHoverInteractionKind()?!1:x?!0:t.props.shouldReturnFocusOnClose;return A.createElement(di,{autoFocus:i??u,backdropClassName:NS,backdropProps:s,canEscapeKeyClose:c,canOutsideClickClose:g===l1.CLICK,childRef:t.transitionContainerElement,enforceFocus:l,hasBackdrop:f,isOpen:b,lazy:t.props.lazy,onClose:t.handleOverlayClose,onClosed:t.props.onClosed,onClosing:t.props.onClosing,onOpened:t.props.onOpened,onOpening:t.props.onOpening,transitionDuration:t.props.transitionDuration,transitionName:kt,usePortal:w,portalClassName:t.props.portalClassName,portalContainer:t.props.portalContainer,portalStopPropagationEvents:t.props.portalStopPropagationEvents,shouldReturnFocusOnClose:p},A.createElement("div",{className:GS,ref:wo(n.ref,t.transitionContainerElement),style:n.style},A.createElement(n6,{onResize:t.reposition},A.createElement("div",K({className:v,style:{transformOrigin:m},ref:t.popoverRef},h),t.isArrowEnabled()&&A.createElement(i6,{arrowProps:n.arrowProps,placement:n.placement}),A.createElement("div",{className:RS},t.props.content)))))},t.handleTargetFocus=function(n){if(t.props.openOnTargetFocus&&t.isHoverInteractionKind()){if(n.relatedTarget==null&&!t.lostFocusOnSamePage)return;t.handleMouseEnter(n)}},t.handleTargetBlur=function(n){t.props.openOnTargetFocus&&t.isHoverInteractionKind()&&(n.relatedTarget!=null?n.relatedTarget!==t.popoverElement&&!t.isElementInPopover(n.relatedTarget)&&t.handleMouseLeave(n):t.handleMouseLeave(n)),t.lostFocusOnSamePage=n.relatedTarget!=null},t.handleTargetContextMenu=function(n){n.defaultPrevented&&t.setOpenState(!1,n)},t.handleMouseEnter=function(n){t.isMouseInTargetOrPopover=!0,!t.props.usePortal&&t.isElementInPopover(n.target)&&t.props.interactionKind===l1.HOVER_TARGET_ONLY&&!t.props.openOnTargetFocus?t.handleMouseLeave(n):t.props.disabled||t.setOpenState(!0,n,t.props.hoverOpenDelay)},t.handleMouseLeave=function(n){t.isMouseInTargetOrPopover=!1,n.persist(),t.setTimeout(function(){t.isMouseInTargetOrPopover||t.setOpenState(!1,n,t.props.hoverCloseDelay)})},t.handlePopoverClick=function(n){var a,o,i,l=n.target,s=l.closest(".".concat(kt)),c=l.closest(".".concat(kt)),f=(s??c)===t.getPopoverElement(),g=(o=(a=s==null?void 0:s.classList.contains(Lc))!==null&&a!==void 0?a:c==null?void 0:c.classList.contains(Lc))!==null&&o!==void 0?o:!1,w=l.closest(".".concat(ri,", .").concat(DS)),y=(i=w==null?void 0:w.classList.contains(ri))!==null&&i!==void 0?i:!1,x=l.closest(":disabled, .".concat(fn))!=null;y&&!x&&(!g||f)&&t.setOpenState(!1,n)},t.handleOverlayClose=function(n){var a;if(!(t.targetRef.current==null||n===void 0)){var o=(a=n.nativeEvent)!==null&&a!==void 0?a:n,i=o.composed?o.composedPath()[0]:o.target;(!iP(t.targetRef.current,i)||n.nativeEvent instanceof KeyboardEvent)&&t.setOpenState(!1,n)}},t.handleKeyDown=function(n){var a=yo(n);a&&t.handleTargetClick(n)},t.handleTargetClick=function(n){var a=t.state.isOpen&&t.isSimulatedButtonClick(n);a||!t.props.disabled&&!t.isElementInPopover(n.target)&&(t.props.isOpen==null?t.setState(function(o){return{isOpen:!o.isOpen}}):t.setOpenState(!t.props.isOpen,n))},t.isSimulatedButtonClick=function(n){return!n.isTrusted&&n.target.matches(".".concat(na))},t}return r.prototype.getPopoverElement=function(){var t;return(t=this.popoverElement)===null||t===void 0?void 0:t.querySelector(".".concat(kt))},r.prototype.getIsOpen=function(t){var n;return t.disabled?!1:(n=t.isOpen)!==null&&n!==void 0?n:t.defaultIsOpen},r.prototype.render=function(){var t=this.props,n=t.disabled,a=t.content,o=t.placement,i=t.position,l=i===void 0?"auto":i,s=t.positioningStrategy,c=this.state.isOpen,f=a==null||typeof a=="string"&&a.trim()==="";return f?(!n&&c!==!1&&!hn("production")&&console.warn(xP),this.renderTarget({ref:EA})):A.createElement(GL,null,A.createElement(vA,null,this.renderTarget),A.createElement(cA,{innerRef:this.popoverRef,placement:o??SA(l),strategy:s,modifiers:this.getPopperModifiers()},this.renderPopover))},r.prototype.componentDidMount=function(){this.updateDarkParent()},r.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDarkParent();var a=this.getIsOpen(this.props);this.props.isOpen!=null&&a!==this.state.isOpen?(this.setOpenState(a),this.setState({isOpen:a})):this.props.disabled&&this.state.isOpen&&this.props.isOpen==null&&this.setOpenState(!1)},r.prototype.validateProps=function(t){t.isOpen==null&&t.onInteraction!=null&&console.warn(zP),t.hasBackdrop&&!t.usePortal&&console.warn(CP),t.hasBackdrop&&t.interactionKind!==l1.CLICK&&console.warn(bP),t.placement!==void 0&&t.position!==void 0&&console.warn(MP);var n=A.Children.count(t.children),a=t.renderTarget!==void 0,o=t.targetProps!==void 0;n===0&&!a&&console.warn(gP),n>1&&console.warn(yP),n>0&&a&&console.warn(wP),a&&o&&console.warn(TP)},r.prototype.getPopperModifiers=function(){var t,n,a,o,i=this.props,l=i.matchTargetWidth,s=i.modifiers,c=i.modifiersCustom,f=[K({enabled:this.isArrowEnabled(),name:"arrow"},s==null?void 0:s.arrow),K(K({name:"computeStyles"},s==null?void 0:s.computeStyles),{options:K({adaptive:!0,gpuAcceleration:!1},(t=s==null?void 0:s.computeStyles)===null||t===void 0?void 0:t.options)}),K(K({enabled:this.isArrowEnabled(),name:"offset"},s==null?void 0:s.offset),{options:K({offset:[0,wi/2]},(n=s==null?void 0:s.offset)===null||n===void 0?void 0:n.options)}),K(K({name:"flip"},s==null?void 0:s.flip),{options:K({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},(a=s==null?void 0:s.flip)===null||a===void 0?void 0:a.options)}),K(K({name:"preventOverflow"},s==null?void 0:s.preventOverflow),{options:K({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},(o=s==null?void 0:s.preventOverflow)===null||o===void 0?void 0:o.options)})];return l&&f.push(OA),c!==void 0&&f.push.apply(f,c),f},r.prototype.setOpenState=function(t,n,a){var o=this,i,l,s,c,f;(i=this.cancelOpenTimeout)===null||i===void 0||i.call(this),a!==void 0&&a>0?(n==null||n.persist(),this.cancelOpenTimeout=this.setTimeout(function(){o.setOpenState(t,n)},a)):(this.props.isOpen==null?this.setState({isOpen:t}):(s=(l=this.props).onInteraction)===null||s===void 0||s.call(l,t,n),t||((f=(c=this.props).onClose)===null||f===void 0||f.call(c,n),this.setState({isClosingViaEscapeKeypress:_A(n==null?void 0:n.nativeEvent)})))},r.prototype.updateDarkParent=function(){var t;if(this.props.usePortal&&this.state.isOpen){var n=((t=this.targetRef.current)===null||t===void 0?void 0:t.closest(".".concat(qv)))!=null;this.setState({hasDarkParent:n})}},r.prototype.isElementInPopover=function(t){var n,a;return(a=(n=this.getPopoverElement())===null||n===void 0?void 0:n.contains(t))!==null&&a!==void 0?a:!1},r.displayName="".concat(rt,".Popover"),r.defaultProps={boundary:"clippingParents",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:l1.CLICK,matchTargetWidth:!1,minimal:!1,openOnTargetFocus:!0,positioningStrategy:"absolute",renderTarget:void 0,shouldReturnFocusOnClose:!1,targetTagName:"span",transitionDuration:300,usePortal:!0},r}(gr);function _A(e){return e instanceof KeyboardEvent&&e.key==="Escape"}function EA(){}var xi=A.forwardRef(function(e,r){var t,n,a=e.active,o=e.className,i=e.children,l=e.disabled,s=e.icon,c=e.intent,f=e.labelClassName,g=e.labelElement,w=e.multiline,y=e.popoverProps,x=e.roleStructure,b=x===void 0?"menuitem":x,m=e.selected,h=e.shouldDismissPopover,d=e.submenuProps,v=e.text,u=e.textClassName,p=e.tagName,C=p===void 0?"a":p,M=e.htmlTitle,S=Ge(e,["active","className","children","disabled","icon","intent","labelClassName","labelElement","multiline","popoverProps","roleStructure","selected","shouldDismissPopover","submenuProps","text","textClassName","tagName","htmlTitle"]),T=b==="listoption"?["option",void 0,!!m]:b==="menuitem"?["none","menuitem",void 0]:b==="none"?["none",void 0,void 0]:[void 0,void 0,void 0],O=T[0],P=T[1],L=T[2],V=b==="listoption",k=V&&m,j=s!=null,U=i!=null,$=Ft(c),B=Be(go,$,(t={},t[ta]=a,t[fn]=l,t[ri]=h&&!l&&!U,t[SS]=V,t[Xv]=k,t),o),I=e.label==null&&g==null?null:A.createElement("span",{className:Be(ES,f)},e.label,g),R=A.createElement(C,K(K(K({onKeyDown:lP(["Enter"," "]),role:U?"none":P,tabIndex:U?-1:0},gn(S)),l?VA:{}),{className:B}),k?A.createElement(Yc,{className:PS}):void 0,j?A.createElement("span",{className:_S},A.createElement(jt,{icon:s,"aria-hidden":!0,tabIndex:-1})):void 0,A.createElement(Mo,{className:Be(Ar,u),ellipsize:!w,title:M},v),I,U?A.createElement($c,{className:LS,title:"Open sub menu"}):void 0),G=Be((n={},n[_c]=U,n));return A.createElement("li",{className:G,ref:r,role:O,"aria-selected":L},i==null?R:A.createElement(w5,K({autoFocus:!1,captureDismiss:!1,disabled:l,enforceFocus:!1,hoverCloseDelay:0,interactionKind:"hover",modifiers:LA,targetProps:{role:P,tabIndex:0},placement:"right-start",usePortal:!1},y,{content:A.createElement(c5,K({},d),i),minimal:!0,popoverClassName:Be(_c,y==null?void 0:y.popoverClassName)}),R))});xi.defaultProps={active:!1,disabled:!1,multiline:!1,popoverProps:{},selected:void 0,shouldDismissPopover:!0,text:""},xi.displayName="".concat(rt,".MenuItem");var LA={flip:{options:{rootBoundary:"viewport",padding:20},enabled:!0},offset:{options:{offset:[-5,0]},enabled:!0},preventOverflow:{options:{rootBoundary:"viewport",padding:20},enabled:!0}},VA={"aria-disabled":!0,href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1},s6=A.forwardRef(function(e,r){var t,n=e.alignText,a=e.className,o=e.fill,i=e.minimal,l=e.large,s=e.vertical,c=Ge(e,["alignText","className","fill","minimal","large","vertical"]),f=Be(vS,(t={},t[Ar]=o,t[or]=l,t[ra]=i,t[Zv]=s,t),nh(n),a);return A.createElement("div",K({},c,{ref:r,className:f}),e.children)});s6.displayName="".concat(rt,".ButtonGroup");var Ci=A.forwardRef(function(e,r){var t,n=e.className,a=e.elevation,o=e.interactive,i=e.selected,l=e.compact,s=Ge(e,["className","elevation","interactive","selected","compact"]),c=Be(n,gS,aP(a),(t={},t[Yv]=o,t[Bv]=l,t[Xv]=i,t));return A.createElement("div",K({className:c,ref:r},s))});Ci.defaultProps={elevation:Pc.ZERO,interactive:!1},Ci.displayName="".concat(rt,".Card");var c6=function(e){St(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.render=function(){var t=this.props,n=t.className,a=t.tagName,o=a===void 0?"div":a,i=Ge(t,["className","tagName"]),l=Be(yS,n);return A.createElement(o,K(K({},i),{className:l}))},r.displayName="".concat(rt,".Divider"),r}(gr),u6=A.forwardRef(function(e,r){var t,n=e.children,a=e.className,o=e.fill,i=e.vertical,l=Ge(e,["children","className","fill","vertical"]),s=Be(bS,(t={},t[Ar]=o,t[Zv]=i,t),a);return A.createElement("div",K({role:"group"},l,{ref:r,className:s}),n)});u6.displayName="".concat(rt,".ControlGroup");var AA=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={hasPendingUpdate:!1,isComposing:!1,nextValue:t.props.value,value:t.props.value},t.cancelPendingCompositionEnd=null,t.handleCompositionStart=function(n){var a,o,i;(a=t.cancelPendingCompositionEnd)===null||a===void 0||a.call(t),t.setState({isComposing:!0}),(i=(o=t.props).onCompositionStart)===null||i===void 0||i.call(o,n)},t.handleCompositionEnd=function(n){var a,o;t.cancelPendingCompositionEnd=t.setTimeout(function(){return t.setState({isComposing:!1})},r.COMPOSITION_END_DELAY),(o=(a=t.props).onCompositionEnd)===null||o===void 0||o.call(a,n)},t.handleChange=function(n){var a,o,i=n.target.value;t.setState({nextValue:i}),(o=(a=t.props).onChange)===null||o===void 0||o.call(a,n)},t}return r.getDerivedStateFromProps=function(t,n){if(n.isComposing||t.value===void 0)return null;var a=n.nextValue!==n.value;return a?t.value===n.nextValue?n.hasPendingUpdate?{value:t.value,hasPendingUpdate:!1}:{value:n.nextValue}:t.value===n.value?{hasPendingUpdate:!0}:{value:t.value,nextValue:t.value,hasPendingUpdate:!1}:{value:t.value,nextValue:t.value,hasPendingUpdate:!1}},r.prototype.render=function(){var t=this.state,n=t.isComposing,a=t.hasPendingUpdate,o=t.value,i=t.nextValue,l=this.props,s=l.inputRef,c=Ge(l,["inputRef"]);return A.createElement("input",K({},c,{ref:s,value:n||a?i:o,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onChange:this.handleChange}))},r.displayName="".concat(rt,".AsyncControllableInput"),r.COMPOSITION_END_DELAY=10,r}(gr),kA=["onValueChange"],d6=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={},t.leftElement=null,t.rightElement=null,t.refHandlers={leftElement:function(n){return t.leftElement=n},rightElement:function(n){return t.rightElement=n}},t.handleInputChange=function(n){var a,o,i,l,s=n.target.value;(o=(a=t.props).onChange)===null||o===void 0||o.call(a,n),(l=(i=t.props).onValueChange)===null||l===void 0||l.call(i,s,n.target)},t}return r.prototype.render=function(){var t,n=this.props,a=n.asyncControl,o=a===void 0?!1:a,i=n.className,l=n.disabled,s=n.fill,c=n.inputClassName,f=n.inputRef,g=n.intent,w=n.large,y=n.readOnly,x=n.round,b=n.small,m=n.tagName,h=m===void 0?"div":m,d=Be(CS,Ft(g),(t={},t[fn]=l,t[fS]=y,t[Ar]=s,t[or]=w,t[pn]=b,t[Kv]=x,t),i),v=K(K({},this.props.style),{paddingLeft:this.state.leftElementWidth,paddingRight:this.state.rightElementWidth}),u=K(K({type:"text"},gn(this.props,kA,!0)),{"aria-disabled":l,className:Be(vn,c),onChange:this.handleInputChange,style:v}),p=o?A.createElement(AA,K({},u,{inputRef:f})):A.createElement("input",K({},u,{ref:f}));return A.createElement(h,{className:d},this.maybeRenderLeftElement(),p,this.maybeRenderRightElement())},r.prototype.componentDidMount=function(){this.updateInputWidth()},r.prototype.componentDidUpdate=function(t){var n=this.props,a=n.leftElement,o=n.rightElement;(t.leftElement!==a||t.rightElement!==o)&&this.updateInputWidth()},r.prototype.validateProps=function(t){t.leftElement!=null&&t.leftIcon!=null&&console.warn(cP)},r.prototype.maybeRenderLeftElement=function(){var t=this.props,n=t.leftElement,a=t.leftIcon;if(n!=null)return A.createElement("span",{className:MS,ref:this.refHandlers.leftElement},n);if(a!=null)return A.createElement(jt,{icon:a,"aria-hidden":!0,tabIndex:-1})},r.prototype.maybeRenderRightElement=function(){var t=this.props.rightElement;if(t!=null)return A.createElement("span",{className:zS,ref:this.refHandlers.rightElement},t)},r.prototype.updateInputWidth=function(){var t=this.state,n=t.leftElementWidth,a=t.rightElementWidth;if(this.leftElement!=null){var o=this.leftElement.clientWidth;(n===void 0||Math.abs(o-n)>2)&&this.setState({leftElementWidth:o})}else this.setState({leftElementWidth:void 0});if(this.rightElement!=null){var o=this.rightElement.clientWidth;(a===void 0||Math.abs(o-a)>2)&&this.setState({rightElementWidth:o})}else this.setState({rightElementWidth:void 0})},r.displayName="".concat(rt,".InputGroup"),r}(gr);function f6(e){var r=1.9,t=r.toLocaleString(e),n=1 .toLocaleString(e),a=9 .toLocaleString(e),o="".concat(n,"(.+)").concat(a),i=new RegExp(o).exec(t);return i&&i[1]||"."}function x5(e,r){return r===void 0&&(r="en-US"),ko(e.toLocaleString(r,{roundingPriority:"morePrecision"}),r)}function HA(e,r,t){var n=r??-1/0,a=t??1/0;return Nc(e,n,a)}function NA(e){return e===void 0&&(e=""),e.toString()}function RA(e,r){var t=[0,1,2,3,4,5,6,7,8,9].map(function(a){return a.toLocaleString(r)}),n=t.indexOf(e);return n!==-1?n:e}function s1(e,r){var t=""+e;if(parseFloat(t).toString()===e.toString())return e.toString();if(r!==void 0){var n=f6(r),a=ko(t,r);return a.split("").map(function(o){return RA(o,r)}).join("").replace(n,".")}return e.toString()}function jA(e,r){var t=s1(e,r);return e!=null&&t-parseFloat(t)+1>=0}function DA(e,r){if(e.key==null||e.ctrlKey||e.altKey||e.metaKey)return!0;var t=e.key.length===1;return t?p6(e.key,r):!0}function p6(e,r){if(r!==void 0){var t=f6(r).replace(".","\\."),n=[0,1,2,3,4,5,6,7,8,9].map(function(i){return i.toLocaleString(r)}).join(""),a=new RegExp("^[Ee"+n+"\\+\\-"+t+"]$");return a.test(e)}else{var o=/^[Ee0-9\+\-\.]$/;return o.test(e)}}function IA(e,r){var t=Math.pow(10,r);return Math.round(e*t)/t}function $A(e){return e.replace(/[\uFF10-\uFF19]/g,function(r){return String.fromCharCode(r.charCodeAt(0)-65248)})}function ko(e,r){var t=$A(e).split(""),n=t.filter(function(a){return p6(a,r)});return n.join("")}var fa;(function(e){e[e.DOWN=-1]="DOWN",e[e.UP=1]="UP"})(fa||(fa={}));var FA=["allowNumericCharactersOnly","buttonPosition","clampValueOnBlur","className","defaultValue","majorStepSize","minorStepSize","onButtonClick","onValueChange","selectAllOnFocus","selectAllOnIncrement","stepSize"],WA=function(e){St(r,e);function r(){var t,n=e.apply(this,arguments)||this;return n.numericInputId=aa("numericInput"),n.state={currentImeInputInvalid:!1,shouldSelectAfterUpdate:!1,stepMaxPrecision:r.getStepMaxPrecision(n.props),value:NA((t=n.props.value)!==null&&t!==void 0?t:n.props.defaultValue)},n.didPasteEventJustOccur=!1,n.delta=0,n.inputElement=null,n.inputRef=mn(n,"inputElement",n.props.inputRef),n.incrementButtonHandlers=n.getButtonEventHandlers(fa.UP),n.decrementButtonHandlers=n.getButtonEventHandlers(fa.DOWN),n.getCurrentValueAsNumber=function(){return Number(s1(n.state.value,n.props.locale))},n.handleButtonClick=function(a,o){var i,l,s=n.updateDelta(o,a),c=n.incrementValue(s);(l=(i=n.props).onButtonClick)===null||l===void 0||l.call(i,Number(s1(c,n.props.locale)),c)},n.stopContinuousChange=function(){n.delta=0,n.clearTimeouts(),clearInterval(n.intervalId),document.removeEventListener("mouseup",n.stopContinuousChange)},n.handleContinuousChange=function(){var a,o,i,l;if(n.props.min!==void 0||n.props.max!==void 0){var s=(a=n.props.min)!==null&&a!==void 0?a:-1/0,c=(o=n.props.max)!==null&&o!==void 0?o:1/0,f=n.getCurrentValueAsNumber();if(f<=s||f>=c){n.stopContinuousChange();return}}var g=n.incrementValue(n.delta);(l=(i=n.props).onButtonClick)===null||l===void 0||l.call(i,Number(s1(g,n.props.locale)),g)},n.handleInputFocus=function(a){var o,i;n.setState({shouldSelectAfterUpdate:n.props.selectAllOnFocus}),(i=(o=n.props).onFocus)===null||i===void 0||i.call(o,a)},n.handleInputBlur=function(a){var o,i;if(n.setState({shouldSelectAfterUpdate:!1}),n.props.clampValueOnBlur){var l=a.target.value;n.handleNextValue(n.roundAndClampValue(l))}(i=(o=n.props).onBlur)===null||i===void 0||i.call(o,a)},n.handleInputKeyDown=function(a){var o,i;if(!(n.props.disabled||n.props.readOnly)){var l;if(a.key==="ArrowUp"?l=fa.UP:a.key==="ArrowDown"&&(l=fa.DOWN),l!==void 0){a.preventDefault();var s=n.updateDelta(l,a);n.incrementValue(s)}(i=(o=n.props).onKeyDown)===null||i===void 0||i.call(o,a)}},n.handleCompositionEnd=function(a){n.props.allowNumericCharactersOnly&&(n.handleNextValue(ko(a.data,n.props.locale)),n.setState({currentImeInputInvalid:!1}))},n.handleCompositionUpdate=function(a){if(n.props.allowNumericCharactersOnly){var o=a.data,i=ko(o,n.props.locale);i.length===0&&o.length>0?n.setState({currentImeInputInvalid:!0}):n.setState({currentImeInputInvalid:!1})}},n.handleInputKeyPress=function(a){var o,i;n.props.allowNumericCharactersOnly&&!DA(a,n.props.locale)&&a.preventDefault(),(i=(o=n.props).onKeyPress)===null||i===void 0||i.call(o,a)},n.handleInputPaste=function(a){var o,i;n.didPasteEventJustOccur=!0,(i=(o=n.props).onPaste)===null||i===void 0||i.call(o,a)},n.handleInputChange=function(a){var o=a;n.props.allowNumericCharactersOnly&&n.didPasteEventJustOccur&&(n.didPasteEventJustOccur=!1,o=ko(a,n.props.locale)),n.handleNextValue(o),n.setState({shouldSelectAfterUpdate:!1})},n}return r.getDerivedStateFromProps=function(t,n){var a,o,i={prevMaxProp:t.max,prevMinProp:t.min},l=t.min!==n.prevMinProp,s=t.max!==n.prevMaxProp,c=l||s,f=(o=(a=t.value)===null||a===void 0?void 0:a.toString())!==null&&o!==void 0?o:n.value,g=r.getStepMaxPrecision(t),w=f!==r.VALUE_EMPTY?r.roundAndClampValue(f,g,t.min,t.max,0,t.locale):r.VALUE_EMPTY;return c&&w!==n.value?K(K({},i),{stepMaxPrecision:g,value:w}):K(K({},i),{stepMaxPrecision:g,value:f})},r.getStepMaxPrecision=function(t){return t.minorStepSize!=null?oh(t.minorStepSize):oh(t.stepSize)},r.roundAndClampValue=function(t,n,a,o,i,l){if(i===void 0&&(i=0),!jA(t,l))return r.VALUE_EMPTY;var s=s1(t,l),c=IA(Number(s)+i,n),f=HA(c,a,o);return x5(f,l)},r.prototype.render=function(){var t,n=this.props,a=n.buttonPosition,o=n.className,i=n.fill,l=n.large,s=n.small,c=Be(VS,(t={},t[or]=l,t[pn]=s,t),o),f=this.renderButtons();return A.createElement(u6,{className:c,fill:i},a===A1.LEFT&&f,this.renderInput(),a===A1.RIGHT&&f)},r.prototype.componentDidUpdate=function(t,n){var a,o,i;e.prototype.componentDidUpdate.call(this,t,n),t.inputRef!==this.props.inputRef&&(a1(t.inputRef,null),this.inputRef=mn(this,"inputElement",this.props.inputRef),a1(this.props.inputRef,this.inputElement)),this.state.shouldSelectAfterUpdate&&((a=this.inputElement)===null||a===void 0||a.setSelectionRange(0,this.state.value.length));var l=this.props.min!==t.min,s=this.props.max!==t.max,c=l||s,f=this.props.locale!==t.locale,g=this.state.value!==n.value;if(c&&g||f&&n.value!==r.VALUE_EMPTY){var w=f?n.value:this.state.value,y=s1(w,t.locale),x=x5(+y,this.props.locale);(i=(o=this.props).onValueChange)===null||i===void 0||i.call(o,+y,x,this.inputElement)}},r.prototype.validateProps=function(t){var n=t.majorStepSize,a=t.max,o=t.min,i=t.minorStepSize,l=t.stepSize,s=t.value;if(o!=null&&a!=null&&o>a&&console.error(uP),l<=0&&console.error(hP),i&&i<=0&&console.error(pP),n&&n<=0&&console.error(vP),i&&i>l&&console.error(dP),n&&n<l&&console.error(fP),s!=null){var c=r.getStepMaxPrecision(t),f=r.roundAndClampValue(s.toString(),c,o,a,0,this.props.locale),g=f!==s.toString(),w=x5(Number(s1(s,this.props.locale)),this.props.locale),y=f!==w;g&&y&&console.warn(mP)}},r.prototype.renderButtons=function(){var t=this.props,n=t.intent,a=t.max,o=t.min,i=t.locale,l=s1(this.state.value,i),s=this.props.disabled||this.props.readOnly,c=a!==void 0&&l!==""&&+l>=a,f=o!==void 0&&l!==""&&+l<=o;return A.createElement(s6,{className:cS,key:"button-group",vertical:!0},A.createElement(N1,K({"aria-label":"increment","aria-controls":this.numericInputId,disabled:s||c,icon:A.createElement(Gc,null),intent:n},this.incrementButtonHandlers)),A.createElement(N1,K({"aria-label":"decrement","aria-controls":this.numericInputId,disabled:s||f,icon:A.createElement(Fc,null),intent:n},this.decrementButtonHandlers)))},r.prototype.renderInput=function(){var t=gn(this.props,FA,!0),n=this.getCurrentValueAsNumber();return A.createElement(d6,K({asyncControl:this.props.asyncControl,autoComplete:"off",id:this.numericInputId,role:this.props.allowNumericCharactersOnly?"spinbutton":void 0},t,{"aria-valuemax":this.props.max,"aria-valuemin":this.props.min,"aria-valuenow":n,intent:this.state.currentImeInputInvalid?dn.DANGER:this.props.intent,inputClassName:this.props.inputClassName,inputRef:this.inputRef,large:this.props.large,leftElement:this.props.leftElement,leftIcon:this.props.leftIcon,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCompositionEnd:this.handleCompositionEnd,onCompositionUpdate:this.handleCompositionUpdate,onKeyDown:this.handleInputKeyDown,onKeyPress:this.handleInputKeyPress,onPaste:this.handleInputPaste,onValueChange:this.handleInputChange,rightElement:this.props.rightElement,small:this.props.small,value:this.state.value}))},r.prototype.getButtonEventHandlers=function(t){var n=this;return{onKeyDown:function(a){!n.props.disabled&&yo(a)&&n.handleButtonClick(a,t)},onMouseDown:function(a){n.props.disabled||(n.handleButtonClick(a,t),n.startContinuousChange())}}},r.prototype.startContinuousChange=function(){var t=this;document.addEventListener("mouseup",this.stopContinuousChange),this.setTimeout(function(){t.intervalId=window.setInterval(t.handleContinuousChange,r.CONTINUOUS_CHANGE_INTERVAL)},r.CONTINUOUS_CHANGE_DELAY)},r.prototype.handleNextValue=function(t){var n,a;this.props.value==null&&this.setState({value:t}),(a=(n=this.props).onValueChange)===null||a===void 0||a.call(n,Number(s1(t,this.props.locale)),t,this.inputElement)},r.prototype.incrementValue=function(t){var n=this.state.value===r.VALUE_EMPTY?r.VALUE_ZERO:this.state.value,a=this.roundAndClampValue(n,t);return a!==this.state.value&&(this.handleNextValue(a),this.setState({shouldSelectAfterUpdate:this.props.selectAllOnIncrement})),a},r.prototype.getIncrementDelta=function(t,n,a){var o=this.props,i=o.majorStepSize,l=o.minorStepSize,s=o.stepSize;return n&&i!=null?t*i:a&&l!=null?t*l:t*s},r.prototype.roundAndClampValue=function(t,n){return n===void 0&&(n=0),r.roundAndClampValue(t,this.state.stepMaxPrecision,this.props.min,this.props.max,n,this.props.locale)},r.prototype.updateDelta=function(t,n){return this.delta=this.getIncrementDelta(t,n.shiftKey,n.altKey),this.delta},r.displayName="".concat(rt,".NumericInput"),r.VALUE_EMPTY="",r.VALUE_ZERO="0",r.defaultProps={allowNumericCharactersOnly:!0,buttonPosition:A1.RIGHT,clampValueOnBlur:!1,defaultValue:r.VALUE_EMPTY,large:!1,majorStepSize:10,minorStepSize:.1,selectAllOnFocus:!1,selectAllOnIncrement:!1,small:!1,stepSize:1},r.CONTINUOUS_CHANGE_DELAY=300,r.CONTINUOUS_CHANGE_INTERVAL=100,r}(gr),UA=10;function GA(e){var r=e.onCompositionStart,t=e.onCompositionEnd,n=e.value,a=e.onChange,o=A.useState(n),i=o[0],l=o[1],s=A.useState(n),c=s[0],f=s[1],g=A.useState(!1),w=g[0],y=g[1],x=A.useState(!1),b=x[0],m=x[1],h=A.useRef(),d=A.useCallback(function(S){var T;(T=h.current)===null||T===void 0||T.call(h),y(!0),r==null||r(S)},[r]),v=A.useCallback(function(){var S=window.setTimeout(function(){return y(!1)},UA);return function(){return window.clearTimeout(S)}},[]),u=A.useCallback(function(S){h.current=v(),t==null||t(S)},[v,t]),p=A.useCallback(function(S){var T=S.target.value;f(T),a==null||a(S)},[a]),C=!(w||n===void 0);if(C){var M=c!==i;M&&n===c?(l(n),m(!1)):M&&n===i?b||m(!0):M&&n!==i?(l(n),f(n),m(!1)):M||(i!==n||b)&&(l(n),f(n),m(!1))}return{onChange:p,onCompositionEnd:u,onCompositionStart:d,value:w||b?c:i}}var v6=A.forwardRef(function(r,t){var n=r.value,a=r.onChange,o=r.onCompositionStart,i=r.onCompositionEnd,l=Ge(r,["value","onChange","onCompositionStart","onCompositionEnd"]),s=GA({onChange:a,onCompositionEnd:i,onCompositionStart:o,value:n}),c=s.value,f=s.onChange,g=s.onCompositionStart,w=s.onCompositionEnd;return A.createElement("textarea",K({},l,{value:c,onChange:f,onCompositionStart:g,onCompositionEnd:w,ref:t}))});v6.displayName="".concat(rt,".AsyncControllableTextArea");var BA=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={},t.textareaElement=null,t.handleRef=mn(t,"textareaElement",t.props.inputRef),t.maybeSyncHeightToScrollHeight=function(){var n=t.props,a=n.autoResize,o=n.growVertically;if(t.textareaElement!=null){var i=t.textareaElement.scrollHeight;a?(t.textareaElement.style.height="0px",t.textareaElement.style.height=i.toString()+"px",t.setState({height:i})):o&&i>0&&t.setState({height:i})}if(t.props.autoResize&&t.textareaElement!=null){t.textareaElement.style.height="0px";var i=t.textareaElement.scrollHeight;t.textareaElement.style.height=i.toString()+"px",t.setState({height:i})}},t.handleChange=function(n){var a,o;t.maybeSyncHeightToScrollHeight(),(o=(a=t.props).onChange)===null||o===void 0||o.call(a,n)},t}return r.prototype.componentDidMount=function(){this.maybeSyncHeightToScrollHeight()},r.prototype.componentDidUpdate=function(t){t.inputRef!==this.props.inputRef&&(a1(t.inputRef,null),this.handleRef=mn(this,"textareaElement",this.props.inputRef),a1(this.props.inputRef,this.textareaElement)),(t.value!==this.props.value||t.style!==this.props.style)&&this.maybeSyncHeightToScrollHeight()},r.prototype.render=function(){var t,n=this.props,a=n.asyncControl,o=n.autoResize,i=n.className,l=n.fill,s=n.growVertically;n.inputRef;var c=n.intent,f=n.large,g=n.small,w=Ge(n,["asyncControl","autoResize","className","fill","growVertically","inputRef","intent","large","small"]),y=Be(vn,Jv,Ft(c),(t={},t[Ar]=l,t[or]=f,t[pn]=g,t[OS]=o,t),i),x=w.style,b=x===void 0?{}:x;(o||s)&&this.state.height!=null&&(b=K(K({},b),{height:"".concat(this.state.height,"px")}));var m=a?v6:"textarea";return A.createElement(m,K({},w,{className:y,onChange:this.handleChange,style:b,ref:this.handleRef}))},r.defaultProps={autoResize:!1,fill:!1,large:!1,small:!1},r.displayName="".concat(rt,".TextArea"),r}(gr),C5=A.forwardRef(function(e,r){var t,n=e.className,a=e.children,o=e.disabled,i=e.fill,l=e.iconName,s=l===void 0?"double-caret-vertical":l,c=e.iconProps,f=e.large,g=e.minimal,w=e.options,y=w===void 0?[]:w,x=e.value,b=Ge(e,["className","children","disabled","fill","iconName","iconProps","large","minimal","options","value"]),m=Be(wS,(t={},t[fn]=o,t[Ar]=i,t[or]=f,t[ra]=g,t),n),h="Open dropdown",d=s==="double-caret-vertical"?A.createElement(Bc,K({title:h},c)):A.createElement(Ic,K({title:h},c)),v=y.map(function(u){var p=typeof u=="object"?u:{value:u};return A.createElement("option",K({},p,{key:p.value,children:p.label||p.value}))});return A.createElement("div",{className:m},A.createElement("select",K({disabled:o,ref:r,value:x},b,{multiple:!1}),v,a),d)});C5.displayName="".concat(rt,".HTMLSelect");var h6=function(e){var r=e.className,t=e.large,n=e.onRemove,a=e.tabIndex,o=t||(r==null?void 0:r.includes(or)),i=A.useCallback(function(l){n==null||n(l,e)},[n,e]);return A.createElement("button",{"aria-label":"Remove tag",type:"button",className:ZS,onClick:i,tabIndex:a},A.createElement(qc,{size:o?Se.LARGE:Se.STANDARD}))};h6.displayName="".concat(rt,".TagRemoveButton");var M5=A.forwardRef(function(e,r){var t,n=e.active,a=e.children,o=e.className,i=e.fill,l=e.icon,s=e.intent,c=e.interactive,f=e.large,g=e.minimal,w=e.multiline,y=e.onRemove,x=e.rightIcon,b=e.round,m=e.tabIndex,h=m===void 0?0:m,d=e.htmlTitle,v=Ge(e,["active","children","className","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","tabIndex","htmlTitle"]),u=Hc(y),p=Be(rh,Ft(s),(t={},t[ta]=n,t[Ar]=i,t[Yv]=c,t[or]=f,t[ra]=g,t[Kv]=b,t),o);return A.createElement("span",K({},v,{className:p,tabIndex:c?h:void 0,ref:r}),A.createElement(jt,{icon:l}),!oi(a)&&A.createElement(Mo,{className:Ar,ellipsize:!w,tagName:"span",title:d},a),A.createElement(jt,{icon:x}),u&&A.createElement(h6,K({},e)))});M5.defaultProps={active:!1,fill:!1,interactive:!1,large:!1,minimal:!1,round:!1},M5.displayName="".concat(rt,".Tag");var m6=A.forwardRef(function(r,t){var n=A.useState(""),a=n[0],o=n[1],i=A.useState(0),l=i[0],s=i[1],c=A.useRef(null);A.useEffect(function(){c.current!=null&&s(c.current.offsetWidth)},[a]);var f=r.onChange,g=r.style,w=Ge(r,["onChange","style"]),y=function(x){var b,m;f==null||f(x),o((m=(b=x==null?void 0:x.target)===null||b===void 0?void 0:b.value)!==null&&m!==void 0?m:"")};return A.createElement(A.Fragment,null,A.createElement("span",{ref:c,className:TS,"aria-hidden":!0},a.replace(/ /g," ")),A.createElement("input",K({},w,{type:"text",style:K(K({},g),{width:l}),onChange:y,ref:t})))});m6.displayName="".concat(rt,".ResizableInput");var j1=-1,qA=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={activeIndex:j1,inputValue:t.props.inputValue||"",isInputFocused:!1},t.inputElement=null,t.handleRef=mn(t,"inputElement",t.props.inputRef),t.addTags=function(n,a){a===void 0&&(a="default");var o=t.props,i=o.inputValue,l=o.onAdd,s=o.onChange,c=o.values,f=t.getValues(n),g=(l==null?void 0:l(f,a))!==!1&&i===void 0;Hc(s)&&(g=s(yt(yt([],c,!0),f,!0))!==!1&&g),g&&t.setState({inputValue:""})},t.maybeRenderTag=function(n,a){if(!n)return null;var o=t.props,i=o.large,l=o.tagProps,s=Hc(l)?l(n,a):l;return A.createElement(M5,K({active:a===t.state.activeIndex,"data-tag-index":a,key:n+"__"+a,large:i,onRemove:t.props.disabled?void 0:t.handleRemoveTag},s),n)},t.handleContainerClick=function(){var n;(n=t.inputElement)===null||n===void 0||n.focus()},t.handleContainerBlur=function(n){var a=n.currentTarget;t.requestAnimationFrame(function(){var o=a.contains(kc(t.inputElement));o||(t.props.addOnBlur&&t.state.inputValue!==void 0&&t.state.inputValue.length>0&&t.addTags(t.state.inputValue,"blur"),t.setState({activeIndex:j1,isInputFocused:!1}))})},t.handleInputFocus=function(n){var a,o;t.setState({isInputFocused:!0}),(o=(a=t.props.inputProps)===null||a===void 0?void 0:a.onFocus)===null||o===void 0||o.call(a,n)},t.handleInputChange=function(n){var a,o,i,l;t.setState({activeIndex:j1,inputValue:n.currentTarget.value}),(o=(a=t.props).onInputChange)===null||o===void 0||o.call(a,n),(l=(i=t.props.inputProps)===null||i===void 0?void 0:i.onChange)===null||l===void 0||l.call(i,n)},t.handleInputKeyDown=function(n){var a=n.currentTarget,o=a.selectionEnd,i=a.value,l=t.state.activeIndex,s=l;if(n.key==="Enter"&&i.length>0)t.addTags(i,"default");else if(o===0&&t.props.values.length>0)if(n.key==="ArrowLeft"||n.key==="ArrowRight"){var c=t.getNextActiveIndex(n.key==="ArrowRight"?1:-1);c!==l&&(n.stopPropagation(),s=c,t.setState({activeIndex:c}))}else n.key==="Backspace"?t.handleBackspaceToRemove(n):n.key==="Delete"&&t.handleDeleteToRemove(n);t.invokeKeyPressCallback("onKeyDown",n,s)},t.handleInputKeyUp=function(n){t.invokeKeyPressCallback("onKeyUp",n,t.state.activeIndex)},t.handleInputPaste=function(n){var a=t.props.separator,o=n.clipboardData.getData("text");!t.props.addOnPaste||o.length===0||a===!1||o.split(a).length===1||(n.preventDefault(),t.addTags(o,"paste"))},t.handleRemoveTag=function(n){var a=+n.currentTarget.parentElement.getAttribute("data-tag-index");t.removeIndexFromValues(a)},t}return r.getDerivedStateFromProps=function(t,n){return t.inputValue!==n.prevInputValueProp?{inputValue:t.inputValue,prevInputValueProp:t.inputValue}:null},r.prototype.render=function(){var t,n=this.props,a=n.autoResize,o=n.className,i=n.disabled,l=n.fill,s=n.inputProps,c=n.intent,f=n.large,g=n.leftIcon,w=n.placeholder,y=n.values,x=Be(vn,Vc,(t={},t[ta]=this.state.isInputFocused,t[fn]=i,t[Ar]=l,t[or]=f,t),Ft(c),o),b=x.indexOf(or)>j1,m=y.some(function(v){return!!v}),h=w==null||m?s==null?void 0:s.placeholder:w,d=K(K({value:this.state.inputValue},s),{className:Be(xS,s==null?void 0:s.className),disabled:i,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onKeyDown:this.handleInputKeyDown,onKeyUp:this.handleInputKeyUp,onPaste:this.handleInputPaste,placeholder:h,ref:this.handleRef});return A.createElement("div",{className:x,onBlur:this.handleContainerBlur,onClick:this.handleContainerClick},A.createElement(jt,{className:JS,icon:g,size:b?Se.LARGE:Se.STANDARD}),A.createElement("div",{className:QS},y.map(this.maybeRenderTag),this.props.children,a?A.createElement(m6,K({},d)):A.createElement("input",K({},d))),this.props.rightElement)},r.prototype.componentDidUpdate=function(t){t.inputRef!==this.props.inputRef&&(a1(t.inputRef,null),this.handleRef=mn(this,"inputElement",this.props.inputRef),a1(this.props.inputRef,this.inputElement))},r.prototype.getNextActiveIndex=function(t){var n=this.state.activeIndex;return n===j1?t<0?this.findNextIndex(this.props.values.length,-1):j1:this.findNextIndex(n,t)},r.prototype.findNextIndex=function(t,n){for(var a=this.props.values,o=t+n;o>0&&o<a.length&&!a[o];)o+=n;return Nc(o,0,a.length)},r.prototype.getValues=function(t){var n=this.props.separator;return(n===!1?[t]:t.split(n)).map(function(a){return a.trim()}).filter(function(a){return a.length>0})},r.prototype.handleBackspaceToRemove=function(t){var n=this.state.activeIndex;this.setState({activeIndex:this.getNextActiveIndex(-1)}),this.isValidIndex(n)&&(t.stopPropagation(),this.removeIndexFromValues(n))},r.prototype.handleDeleteToRemove=function(t){var n=this.state.activeIndex;this.isValidIndex(n)&&(t.stopPropagation(),this.removeIndexFromValues(n))},r.prototype.removeIndexFromValues=function(t){var n=this.props,a=n.onChange,o=n.onRemove,i=n.values;o==null||o(i[t],t),a==null||a(i.filter(function(l,s){return s!==t}))},r.prototype.invokeKeyPressCallback=function(t,n,a){var o,i,l,s;(i=(o=this.props)[t])===null||i===void 0||i.call(o,n,a===j1?void 0:a),(s=(l=this.props.inputProps)[t])===null||s===void 0||s.call(l,n)},r.prototype.isValidIndex=function(t){return t!==j1&&t<this.props.values.length},r.displayName="".concat(rt,".TagInput"),r.defaultProps={addOnBlur:!1,addOnPaste:!0,autoResize:!1,inputProps:{},separator:/[,\n\r]/,tagProps:{}},r}(gr),c1=nP(),YA="".concat(c1,"-date-input"),KA="".concat(c1,"-date-input-popover"),XA="".concat(c1,"-date-input-timezone-select"),Qt="".concat(c1,"-datepicker"),Ho="".concat(Qt,"-caption"),ZA="".concat(Ho,"-caret"),g6="".concat(Ho,"-measure"),JA="".concat(Ho,"-select"),QA="".concat(Qt,"-content"),zn="DayPicker-Day",ek="".concat(zn,"--disabled"),tk="".concat(zn,"--outside"),rk="".concat(zn,"--selected"),nk="".concat(zn,"--isToday"),ak="".concat(Qt,"-day-wrapper"),ok="".concat(Qt,"-footer"),b6="".concat(Qt,"-month-select"),y6="".concat(Qt,"-year-select"),ik="".concat(Qt,"-navbar"),lk="DayPicker-NavButton",sk="".concat(Qt,"-timepicker-wrapper"),Tn="".concat(c1,"-daterangepicker"),ck="".concat(Tn,"-calendars"),uk="".concat(Tn,"-contiguous"),dk="".concat(Tn,"-single-month"),fk="".concat(zn,"--selected-range"),pk="".concat(zn,"--hovered-range"),w6="".concat(Tn,"-shortcuts"),x6="".concat(Tn,"-timepickers"),vk="".concat(c1,"-date-range-input"),hk="".concat(c1,"-date-range-input-popover"),Cr="".concat(c1,"-timepicker"),C6="".concat(Cr,"-arrow-button"),z5="".concat(Cr,"-arrow-row"),M6="".concat(Cr,"-divider-text"),Mi="".concat(Cr,"-hour"),z6="".concat(Cr,"-input"),T6="".concat(Cr,"-input-row"),T5="".concat(Cr,"-millisecond"),O5="".concat(Cr,"-minute"),S5="".concat(Cr,"-second"),O6="".concat(Cr,"-ampm-select"),S6="".concat(c1,"-timezone-select"),mk="".concat(S6,"-popover");const gk=Object.freeze(Object.defineProperty({__proto__:null,DATEPICKER:Qt,DATEPICKER_CAPTION:Ho,DATEPICKER_CAPTION_CARET:ZA,DATEPICKER_CAPTION_MEASURE:g6,DATEPICKER_CAPTION_SELECT:JA,DATEPICKER_CONTENT:QA,DATEPICKER_DAY:zn,DATEPICKER_DAY_DISABLED:ek,DATEPICKER_DAY_IS_TODAY:nk,DATEPICKER_DAY_OUTSIDE:tk,DATEPICKER_DAY_SELECTED:rk,DATEPICKER_DAY_WRAPPER:ak,DATEPICKER_FOOTER:ok,DATEPICKER_MONTH_SELECT:b6,DATEPICKER_NAVBAR:ik,DATEPICKER_NAVBUTTON:lk,DATEPICKER_TIMEPICKER_WRAPPER:sk,DATEPICKER_YEAR_SELECT:y6,DATERANGEPICKER:Tn,DATERANGEPICKER_CALENDARS:ck,DATERANGEPICKER_CONTIGUOUS:uk,DATERANGEPICKER_DAY_HOVERED_RANGE:pk,DATERANGEPICKER_DAY_SELECTED_RANGE:fk,DATERANGEPICKER_SHORTCUTS:w6,DATERANGEPICKER_SINGLE_MONTH:dk,DATERANGEPICKER_TIMEPICKERS:x6,DATE_INPUT:YA,DATE_INPUT_POPOVER:KA,DATE_INPUT_TIMEZONE_SELECT:XA,DATE_RANGE_INPUT:vk,DATE_RANGE_INPUT_POPOVER:hk,TIMEPICKER:Cr,TIMEPICKER_AMPM_SELECT:O6,TIMEPICKER_ARROW_BUTTON:C6,TIMEPICKER_ARROW_ROW:z5,TIMEPICKER_DIVIDER_TEXT:M6,TIMEPICKER_HOUR:Mi,TIMEPICKER_INPUT:z6,TIMEPICKER_INPUT_ROW:T6,TIMEPICKER_MILLISECOND:T5,TIMEPICKER_MINUTE:O5,TIMEPICKER_SECOND:S5,TIMEZONE_SELECT:S6,TIMEZONE_SELECT_POPOVER:mk},Symbol.toStringTag,{value:"Module"}));function bk(e){return e[0]!=null&&e[1]!=null}var P5;(function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"})(P5||(P5={}));function u1(e){return new Date(e.getTime())}function yk(e){return e instanceof Date&&!isNaN(e.valueOf())}function _5(e,r){return e!=null&&r!=null&&e.getHours()===r.getHours()&&e.getMinutes()===r.getMinutes()&&e.getSeconds()===r.getSeconds()&&e.getMilliseconds()===r.getMilliseconds()}function On(e,r,t){if(t===void 0&&(t=!1),e==null||!bk(r))return!1;var n=u1(e),a=u1(r[0]),o=u1(r[1]);return n.setHours(0,0,0,0),a.setHours(0,0,0,0),o.setHours(0,0,0,0),a<=n&&n<=o&&(!t||!Tt(a,n)&&!Tt(n,o))}function wk(e,r){return(e[0]==null||On(e[0],r))&&(e[1]==null||On(e[1],r))}function xk(e,r){if(e==null)return!1;var t=u1(e),n=u1(r[0]),a=u1(r[1]);return t.setDate(1),n.setDate(1),a.setDate(1),t.setHours(0,0,0,0),n.setHours(0,0,0,0),a.setHours(0,0,0,0),n<=t&&t<=a}var P6=function(e,r){return e.getTime()>=r.getTime()},_6=function(e,r){return e.getTime()<=r.getTime()};function E6(e,r,t){var n=No(e),a=No(r),o=No(t),i=P6(n,a),l=_6(n,o);return _6(o,a)?i||l:i&&l}function L6(e,r,t){return _5(r,t)?t:E6(e,r,t)?e:Ck(e,t)?t:r}function Ck(e,r){var t=No(e),n=No(r);return P6(t,n)}function Mk(e){var r=e[0].getTime(),t=e[1].getTime(),n=r+(t-r)*.5;return new Date(n)}function zi(e,r){return e==null?null:r==null?new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0):new Date(e.getFullYear(),e.getMonth(),e.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())}function No(e){return new Date(0,0,0,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function zk(e,r){if(e<0||e>23)throw new Error("hour must be between [0,23] inclusive: got ".concat(e));return r?e%12+12:e%12}function Tk(e){if(e<0||e>23)throw new Error("hour must be between [0,23] inclusive: got ".concat(e));return e>=12}function V6(e){if(e<0||e>23)throw new Error("hour must be between [0,23] inclusive: got ".concat(e));var r=e%12;return r===0?12:r}function Ok(e,r){if(e<1||e>12)throw new Error("hour must be between [1,12] inclusive: got ".concat(e));var t=e===12?0:e;return r?t+12:t}var Ti="[Blueprint]",A6=Ti+" <DatePicker> defaultValue must be within minDate and maxDate bounds.",k6=Ti+" <DatePicker> initialMonth must be within minDate and maxDate bounds.",H6=Ti+" <DatePicker> maxDate must be later than minDate.",N6=Ti+" <DatePicker> value prop must be within minDate and maxDate bounds.";A6.replace("DatePicker","DateRangePicker"),k6.replace("DatePicker","DateRangePicker"),H6.replace("DatePicker","DateRangePicker"),N6.replace("DatePicker","DateRangePicker");var E5={MILLISECOND:"millisecond",MINUTE:"minute",SECOND:"second"},Sn,Te;(function(e){e.HOUR_24="hour24",e.HOUR_12="hour12",e.MINUTE="minute",e.SECOND="second",e.MS="ms"})(Te||(Te={}));function R6(e){var r,t=(r={},r[Te.HOUR_24]="hours (24hr clock)",r[Te.HOUR_12]="hours (12hr clock)",r[Te.MINUTE]="minutes",r[Te.SECOND]="seconds",r[Te.MS]="milliseconds",r);return t[e]}function Sk(e,r){switch(e){case Te.HOUR_24:return r.getHours();case Te.HOUR_12:return V6(r.getHours());case Te.MINUTE:return r.getMinutes();case Te.SECOND:return r.getSeconds();case Te.MS:return r.getMilliseconds();default:throw Error("Invalid TimeUnit")}}function Pk(e,r,t,n){switch(e){case Te.HOUR_24:t.setHours(r);break;case Te.HOUR_12:t.setHours(Ok(r,n));break;case Te.MINUTE:t.setMinutes(r);break;case Te.SECOND:t.setSeconds(r);break;case Te.MS:t.setMilliseconds(r);break;default:throw Error("Invalid TimeUnit")}return t}function j6(e,r){return r!=null&&!isNaN(r)&&D6(e)<=r&&r<=L5(e)}function _k(e,r){var t=L5(e),n=D6(e);return r>t?n:r<n?t:r}function Ek(e){return V5[e].className}function L5(e){return V5[e].max}function D6(e){return V5[e].min}function Lk(){return new Date(0,0,0,I6,$6,F6,W6)}function Vk(){return new Date(0,0,0,U6,G6,B6,q6)}var I6=0,Ak=1,$6=0,F6=0,W6=0,U6=23,kk=12,G6=59,B6=59,q6=999,V5=(Sn={},Sn[Te.HOUR_24]={className:Mi,max:U6,min:I6},Sn[Te.HOUR_12]={className:Mi,max:kk,min:Ak},Sn[Te.MINUTE]={className:O5,max:G6,min:$6},Sn[Te.SECOND]={className:S5,max:B6,min:F6},Sn[Te.MS]={className:T5,max:q6,min:W6},Sn);function Hk(e,r,t){return t===void 0&&(t=!1),e==null?"":yk(e)?t||On(e,[r.minDate,r.maxDate])?r.formatDate(e,r.locale):r.outOfRangeMessage:r.invalidDateMessage}function Nk(e,r,t){if(r===void 0&&(r=""),t===void 0&&(t=document.body),t==null)return 0;var n=document.createElement("span");n.classList.add(r),n.textContent=e,t.appendChild(n);var a=n.offsetWidth;return n.remove(),a}function Y6(e,r){return e.length<r?"".concat(Rk("0",r-e.length)).concat(e):e}function Rk(e,r){return new Array(r+1).join(e)}function jk(){var e=new Date;return e.setMonth(e.getMonth()+6),e}function Dk(){var e=new Date;return e.setFullYear(e.getFullYear()-20),e.setMonth(P5.JANUARY,1),e}var A5={getDefaultMaxDate:jk,getDefaultMinDate:Dk,getFormattedDateString:Hk,measureTextWidth:Nk},Ik=function(e){St(r,e);function r(t){var n,a=e.call(this,t)||this;return a.timeInputIds=(n={},n[Te.HOUR_24]=aa(Te.HOUR_24+"-input"),n[Te.HOUR_12]=aa(Te.HOUR_12+"-input"),n[Te.MINUTE]=aa(Te.MINUTE+"-input"),n[Te.SECOND]=aa(Te.SECOND+"-input"),n[Te.MS]=aa(Te.MS+"-input"),n),a.getInputChangeHandler=function(o){return function(i){var l=K6(i);switch(o){case Te.HOUR_12:case Te.HOUR_24:a.setState({hourText:l});break;case Te.MINUTE:a.setState({minuteText:l});break;case Te.SECOND:a.setState({secondText:l});break;case Te.MS:a.setState({millisecondText:l});break}}},a.getInputBlurHandler=function(o){return function(i){var l,s,c=K6(i);a.updateTime(parseInt(c,10),o),(s=(l=a.props).onBlur)===null||s===void 0||s.call(l,i,o)}},a.getInputFocusHandler=function(o){return function(i){var l,s;a.props.selectAllOnFocus&&i.currentTarget.select(),(s=(l=a.props).onFocus)===null||s===void 0||s.call(l,i,o)}},a.getInputKeyDownHandler=function(o){return function(i){var l,s;$k(i,{ArrowDown:function(){return a.decrementTime(o)},ArrowUp:function(){return a.incrementTime(o)},Enter:function(){i.currentTarget.blur()}}),(s=(l=a.props).onKeyDown)===null||s===void 0||s.call(l,i,o)}},a.getInputKeyUpHandler=function(o){return function(i){var l,s;(s=(l=a.props).onKeyUp)===null||s===void 0||s.call(l,i,o)}},a.handleAmPmChange=function(o){var i=o.currentTarget.value==="pm";if(i!==a.state.isPm){var l=zk(a.state.value.getHours(),i);a.setState({isPm:i},function(){return a.updateTime(l,Te.HOUR_24)})}},a.incrementTime=function(o){return a.shiftTime(o,1)},a.decrementTime=function(o){return a.shiftTime(o,-1)},a.state=a.getFullStateFromValue(a.getInitialValue(),t.useAmPm),a}return r.prototype.render=function(){var t,n=this.props.precision===E5.MILLISECOND,a=n||this.props.precision===E5.SECOND,o=this.props.useAmPm?Te.HOUR_12:Te.HOUR_24,i=Be(Cr,this.props.className,(t={},t[fn]=this.props.disabled,t));return A.createElement("div",{className:i},A.createElement("div",{className:z5},this.maybeRenderArrowButton(!0,o),this.maybeRenderArrowButton(!0,Te.MINUTE),a&&this.maybeRenderArrowButton(!0,Te.SECOND),n&&this.maybeRenderArrowButton(!0,Te.MS)),A.createElement("div",{className:T6},this.renderInput(Mi,o,this.state.hourText),this.renderDivider(),this.renderInput(O5,Te.MINUTE,this.state.minuteText),a&&this.renderDivider(),a&&this.renderInput(S5,Te.SECOND,this.state.secondText),n&&this.renderDivider("."),n&&this.renderInput(T5,Te.MS,this.state.millisecondText)),this.maybeRenderAmPm(),A.createElement("div",{className:z5},this.maybeRenderArrowButton(!1,o),this.maybeRenderArrowButton(!1,Te.MINUTE),a&&this.maybeRenderArrowButton(!1,Te.SECOND),n&&this.maybeRenderArrowButton(!1,Te.MS)))},r.prototype.componentDidUpdate=function(t){var n=t.minTime!==this.props.minTime,a=t.maxTime!==this.props.maxTime,o=n||a,i=t.value!==this.props.value,l=o||i,s=this.state.value;this.props.value==null&&(s=this.getInitialValue()),o&&(s=L6(this.state.value,this.props.minTime,this.props.maxTime)),this.props.value!=null&&!_5(this.props.value,t.value)&&(s=this.props.value),l&&this.setState(this.getFullStateFromValue(s,this.props.useAmPm))},r.prototype.maybeRenderArrowButton=function(t,n){var a=this;if(!this.props.showArrowButtons)return null;var o=Be(C6,Ek(n)),i=function(){return(t?a.incrementTime:a.decrementTime)(n)},l="".concat(t?"Increase":"Decrease"," ").concat(R6(n));return A.createElement("span",{"aria-controls":this.timeInputIds[n],"aria-label":l,tabIndex:-1,className:o,onClick:i},A.createElement(jt,{icon:t?"chevron-up":"chevron-down",title:l}))},r.prototype.renderDivider=function(t){return t===void 0&&(t=":"),A.createElement("span",{className:M6},t)},r.prototype.renderInput=function(t,n,a){var o,i=parseInt(a,10),l=j6(n,i),s=n===Te.HOUR_12||n===Te.HOUR_24;return A.createElement("input",{"aria-label":R6(n),className:Be(z6,(o={},o[Ft(dn.DANGER)]=!l,o),t),id:this.timeInputIds[n],min:0,max:L5(n),onBlur:this.getInputBlurHandler(n),onChange:this.getInputChangeHandler(n),onFocus:this.getInputFocusHandler(n),onKeyDown:this.getInputKeyDownHandler(n),onKeyUp:this.getInputKeyUpHandler(n),role:this.props.showArrowButtons?"spinbutton":void 0,type:"number",value:a,disabled:this.props.disabled,autoFocus:s&&this.props.autoFocus})},r.prototype.maybeRenderAmPm=function(){return this.props.useAmPm?A.createElement(C5,{className:O6,disabled:this.props.disabled,onChange:this.handleAmPmChange,value:this.state.isPm?"pm":"am"},A.createElement("option",{value:"am"},"AM"),A.createElement("option",{value:"pm"},"PM")):null},r.prototype.getFullStateFromValue=function(t,n){var a=L6(t,this.props.minTime,this.props.maxTime),o=n?Te.HOUR_12:Te.HOUR_24;return{hourText:Oi(a.getHours(),o),minuteText:Oi(a.getMinutes(),Te.MINUTE),secondText:Oi(a.getSeconds(),Te.SECOND),millisecondText:Oi(a.getMilliseconds(),Te.MS),value:a,isPm:Tk(a.getHours())}},r.prototype.shiftTime=function(t,n){if(!this.props.disabled){var a=Sk(t,this.state.value)+n;this.updateTime(_k(t,a),t)}},r.prototype.updateTime=function(t,n){var a=u1(this.state.value);j6(n,t)?(Pk(n,t,a,this.state.isPm),E6(a,this.props.minTime,this.props.maxTime)?this.updateState({value:a}):this.updateState(this.getFullStateFromValue(this.state.value,this.props.useAmPm))):this.updateState(this.getFullStateFromValue(this.state.value,this.props.useAmPm))},r.prototype.updateState=function(t){var n,a,o=t,i=o.value!=null&&!_5(o.value,this.state.value);this.props.value==null?(i&&(o=this.getFullStateFromValue(o.value,this.props.useAmPm)),this.setState(o)):i?this.setState(this.getFullStateFromValue(this.state.value,this.props.useAmPm)):this.setState(K(K({},o),{value:u1(this.state.value)})),i&&((a=(n=this.props).onChange)===null||a===void 0||a.call(n,o.value))},r.prototype.getInitialValue=function(){var t=this.props.minTime;return this.props.value!=null?t=this.props.value:this.props.defaultValue!=null&&(t=this.props.defaultValue),t},r.defaultProps={autoFocus:!1,disabled:!1,maxTime:Vk(),minTime:Lk(),precision:E5.MINUTE,selectAllOnFocus:!1,showArrowButtons:!1,useAmPm:!1},r.displayName="".concat(rt,".TimePicker"),r}(A.Component);function Oi(e,r){switch(r){case Te.HOUR_24:return e.toString();case Te.HOUR_12:return V6(e).toString();case Te.MINUTE:case Te.SECOND:return Y6(e.toString(),2);case Te.MS:return Y6(e.toString(),3);default:throw Error("Invalid TimeUnit")}}function K6(e){return e.target.value}function $k(e,r,t){t===void 0&&(t=!0);for(var n=0,a=Object.keys(r);n<a.length;n++){var o=a[n];e.key===o&&(t&&e.preventDefault(),r[o]())}}var Fk=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getShorcutClickHandler=function(n,a){return function(){var o=t.props.onShortcutClick;o(n,a)}},t.isShortcutInRange=function(n){var a=t.props,o=a.minDate,i=a.maxDate;return wk(n,[o,i])},t}return r.prototype.render=function(){var t=this,n=this.props.shortcuts===!0?Wk(this.props.allowSingleDayRange,this.props.timePrecision!==void 0,this.props.useSingleDateShortcuts===!0):this.props.shortcuts,a=n.map(function(o,i){return A.createElement(xi,{active:t.props.selectedShortcutIndex===i,disabled:!t.isShortcutInRange(o.dateRange),key:i,onClick:t.getShorcutClickHandler(o,i),shouldDismissPopover:!1,text:o.label})});return A.createElement(c5,{"aria-label":"Date picker shortcuts",className:w6,tabIndex:0},a)},r.defaultProps={selectedShortcutIndex:-1},r}(A.PureComponent);function D1(e,r){return{dateRange:r,label:e}}function Wk(e,r,t){var n=new Date,a=function(x){var b=u1(n);return x(b),b.setDate(b.getDate()+1),b},o=a(function(){return null}),i=a(function(x){return x.setDate(x.getDate()-2)}),l=a(function(x){return x.setDate(x.getDate()-7)}),s=a(function(x){return x.setMonth(x.getMonth()-1)}),c=a(function(x){return x.setMonth(x.getMonth()-3)}),f=a(function(x){return x.setMonth(x.getMonth()-6)}),g=a(function(x){return x.setFullYear(x.getFullYear()-1)}),w=a(function(x){return x.setFullYear(x.getFullYear()-2)}),y=e||t?[D1("Today",[n,r?o:n]),D1("Yesterday",[i,r?n:i])]:[];return yt(yt(yt(yt(yt([],y,!0),[D1(t?"1 week ago":"Past week",[l,n]),D1(t?"1 month ago":"Past month",[s,n]),D1(t?"3 months ago":"Past 3 months",[c,n])],!1),t?[]:[D1("Past 6 months",[f,n])],!0),[D1(t?"1 year ago":"Past year",[g,n])],!1),t?[]:[D1("Past 2 years",[w,n])],!0)}var d1="rdp",Mr="".concat(d1,"-day"),Gr={RDP:d1,RDP_CAPTION:"".concat(d1,"-caption"),RDP_CAPTION_DROPDOWNS:"".concat(d1,"-caption_dropdowns"),RDP_CAPTION_LABEL:"".concat(d1,"-caption_label"),RDP_DAY:Mr,RDP_DAY_DISABLED:"".concat(Mr,"_disabled"),RDP_DAY_HOVERED_RANGE:"".concat(Mr,"_hovered"),RDP_DAY_HOVERED_RANGE_END:"".concat(Mr,"_hovered_end"),RDP_DAY_HOVERED_RANGE_START:"".concat(Mr,"_hovered_start"),RDP_DAY_OUTSIDE:"".concat(Mr,"_outside"),RDP_DAY_RANGE_END:"".concat(Mr,"_range_end"),RDP_DAY_RANGE_MIDDLE:"".concat(Mr,"_range_middle"),RDP_DAY_RANGE_START:"".concat(Mr,"_range_start"),RDP_DAY_SELECTED:"".concat(Mr,"_selected"),RDP_DAY_TODAY:"".concat(Mr,"_today"),RDP_MONTH:"".concat(d1,"-month"),RDP_NAV:"".concat(d1,"-nav"),RDP_TABLE:"".concat(d1,"-table"),RDP_VHIDDEN:"".concat(d1,"-vhidden")},pa={DATEPICKER3_CAPTION:Ho,DATEPICKER3_DROPDOWN_MONTH:b6,DATEPICKER3_DROPDOWN_YEAR:y6,DATEPICKER3_NAV_BUTTON:"".concat(Qt,"-nav-button"),DATEPICKER3_NAV_BUTTON_NEXT:"".concat(Qt,"-nav-button-next"),DATEPICKER3_NAV_BUTTON_PREVIOUS:"".concat(Qt,"-nav-button-previous")},Uk={DATEPICKER3_DAY:Mr,DATEPICKER3_DAY_DISABLED:Gr.RDP_DAY_DISABLED,DATEPICKER3_DAY_IS_TODAY:Gr.RDP_DAY_TODAY,DATEPICKER3_DAY_OUTSIDE:Gr.RDP_DAY_OUTSIDE,DATEPICKER3_DAY_SELECTED:Gr.RDP_DAY_SELECTED,DATEPICKER3_HIGHLIGHT_CURRENT_DAY:"".concat(Qt,"-highlight-current-day"),DATEPICKER3_REVERSE_MONTH_AND_YEAR:"".concat(Qt,"-reverse-month-and-year")},Gk={DATERANGEPICKER3_HOVERED_RANGE:Gr.RDP_DAY_HOVERED_RANGE,DATERANGEPICKER3_HOVERED_RANGE_END:Gr.RDP_DAY_HOVERED_RANGE_END,DATERANGEPICKER3_HOVERED_RANGE_START:Gr.RDP_DAY_HOVERED_RANGE_START,DATERANGEPICKER3_REVERSE_MONTH_AND_YEAR:"".concat(Tn,"-reverse-month-and-year"),DATERANGEPICKER3_SELECTED_RANGE_END:Gr.RDP_DAY_RANGE_END,DATERANGEPICKER3_SELECTED_RANGE_MIDDLE:Gr.RDP_DAY_RANGE_MIDDLE,DATERANGEPICKER3_SELECTED_RANGE_START:Gr.RDP_DAY_RANGE_START,DATERANGEPICKER3_TIMEPICKERS_STACKED:"".concat(x6,"-stacked")},va=K(K(K(K({},gk),pa),Uk),Gk),Bk={button:Be(na,ra),button_reset:void 0,dropdown_month:pa.DATEPICKER3_DROPDOWN_MONTH,dropdown_year:pa.DATEPICKER3_DROPDOWN_YEAR,nav_button:pa.DATEPICKER3_NAV_BUTTON,nav_button_next:pa.DATEPICKER3_NAV_BUTTON_NEXT,nav_button_previous:pa.DATEPICKER3_NAV_BUTTON_PREVIOUS};function qk(e){return Bt(this,void 0,void 0,function(){var r;return qt(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,import("date-fns/locale/".concat(e,"/index.js"))];case 1:return r=t.sent(),[2,r.default];case 2:return t.sent(),hn("production")||console.error('[Blueprint] Could not load "'.concat(e,'" date-fns locale, please check that this locale code is supported: https://github.com/date-fns/date-fns/tree/main/src/locale')),[2,void 0];case 3:return[2]}})})}var Yk=function(e){St(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isComponentMounted=!1,t}return r.prototype.setState=function(t,n){typeof t=="function"?e.prototype.setState.call(this,t,n):e.prototype.setState.call(this,t)},r.prototype.componentDidMount=function(){return Bt(this,void 0,void 0,function(){return qt(this,function(t){switch(t.label){case 0:return this.isComponentMounted=!0,[4,this.loadLocale(this.props.locale)];case 1:return t.sent(),[2]}})})},r.prototype.componentDidUpdate=function(t){return Bt(this,void 0,void 0,function(){return qt(this,function(n){switch(n.label){case 0:return this.props.locale===t.locale?[3,2]:[4,this.loadLocale(this.props.locale)];case 1:n.sent(),n.label=2;case 2:return[2]}})})},r.prototype.componentWillUnmount=function(){this.isComponentMounted=!1},r.prototype.loadLocale=function(t){var n,a;return Bt(this,void 0,void 0,function(){var o,i;return qt(this,function(l){switch(l.label){case 0:return t===void 0?[2]:((n=this.state.locale)===null||n===void 0?void 0:n.code)===t?[2]:typeof t!="string"?[3,2]:(o=(a=this.props.dateFnsLocaleLoader)!==null&&a!==void 0?a:qk,[4,o(t)]);case 1:return i=l.sent(),this.isComponentMounted&&this.setState({locale:i}),[3,3];case 2:this.setState({locale:t}),l.label=3;case 3:return[2]}})})},r}(gr);function Kk(e,r,t){var n=A.useState(0),a=n[0],o=n[1];return A.useLayoutEffect(function(){var i,l;if(r.current!=null){var s=A5.measureTextWidth(t,g6,r.current),c=(l=(i=e.current)===null||i===void 0?void 0:i.clientWidth)!==null&&l!==void 0?l:0,f=Math.max(2,c-s-Se.STANDARD-2);o(f)}},[r,t,e]),a}function Xk(e){var r=e.caption,t=e.children,n=Ge(e,["caption","children"]),a=A.useRef(null),o=A.useRef(null),i=typeof r=="string"?r:"",l=Kk(o,a,i),s=A.useMemo(function(){return n.name==="months"?{style:{right:l}}:{}},[n.name,l]);return A.createElement("div",{ref:a},A.createElement(C5,K({iconProps:s,minimal:!0,ref:o},n),t))}function Zk(e){e.children;var r=Ge(e,["children"]);return A.createElement(Wc,K({},r))}function Jk(e){e.children;var r=Ge(e,["children"]);return A.createElement(Uc,K({},r))}var Qk=A.createContext({locale:void 0}),eH=function(e){return A.createElement(Qk.Provider,{value:e},e.children)},tH=function(e){St(r,e);function r(t){var n=e.call(this,t)||this;n.ignoreNextMonthChange=!1,n.renderWeekdayName=function(i){return r1(i,"EEEEEE",{locale:n.state.locale})},n.handleDaySelect=function(i,l,s,c){var f,g;if(!s.disabled){if(i===void 0){n.handleClearClick();return}n.updateDay(i),(g=(f=n.props.dayPickerProps)===null||f===void 0?void 0:f.onSelect)===null||g===void 0||g.call(f,i,l,s,c);var w=n.props.canClearSelection&&s.selected?null:zi(i,n.state.value);n.updateValue(w,!0)}},n.handleShortcutClick=function(i,l){var s=n.props,c=s.onShortcutChange,f=s.selectedShortcutIndex,g=i.dateRange,w=i.includeTime,y=g[0],x=w?y:zi(y,n.state.value);if(y!=null){n.updateDay(y),n.updateValue(x,!0),f===void 0&&n.setState({selectedShortcutIndex:l});var b=K(K({},i),{date:y});c==null||c(b,l)}},n.updateDay=function(i){n.props.value===void 0&&n.setState({displayMonth:i.getMonth(),displayYear:i.getFullYear(),selectedDay:i.getDate()}),n.state.value!=null&&n.state.value.getMonth()!==i.getMonth()&&(n.ignoreNextMonthChange=!0)},n.handleClearClick=function(){return n.updateValue(null,!0)},n.handleMonthChange=function(i){var l,s,c=n.computeValidDateInSpecifiedMonthYear(i.getFullYear(),i.getMonth());n.setState({displayMonth:c.getMonth(),displayYear:c.getFullYear()}),n.state.value!==null&&(n.updateValue(c,!1,n.ignoreNextMonthChange),n.ignoreNextMonthChange=!1),(s=(l=n.props.dayPickerProps)===null||l===void 0?void 0:l.onMonthChange)===null||s===void 0||s.call(l,c)},n.handleTodayClick=function(){var i=new Date,l=i.getMonth(),s=i.getFullYear(),c=i.getDate();n.setState({displayMonth:l,displayYear:s,selectedDay:c}),n.updateValue(i,!0)},n.handleTimeChange=function(i){var l,s;(s=(l=n.props.timePickerProps)===null||l===void 0?void 0:l.onChange)===null||s===void 0||s.call(l,i);var c=n.state.value,f=zi(c??new Date,i);n.updateValue(f,!0)};var a=rH(t),o=nH(t,a);return n.state={displayMonth:o.getMonth(),displayYear:o.getFullYear(),locale:void 0,selectedDay:a==null?null:a.getDate(),selectedShortcutIndex:n.props.selectedShortcutIndex!==void 0?n.props.selectedShortcutIndex:-1,value:a},n}return r.prototype.render=function(){var t,n,a=this.props,o=a.className,i=a.dayPickerProps,l=a.footerElement,s=a.maxDate,c=a.minDate,f=a.showActionsBar,g=this.state,w=g.displayMonth,y=g.displayYear,x=g.locale;return A.createElement("div",{className:Be(va.DATEPICKER,o,(t={},t[va.DATEPICKER3_HIGHLIGHT_CURRENT_DAY]=this.props.highlightCurrentDay,t[va.DATEPICKER3_REVERSE_MONTH_AND_YEAR]=this.props.reverseMonthAndYearMenus,t))},this.maybeRenderShortcuts(),A.createElement("div",{className:va.DATEPICKER_CONTENT},A.createElement(eH,K({},this.props,this.state),A.createElement(Uv,K({locale:x,showOutsideDays:!0},i,{captionLayout:"dropdown-buttons",classNames:K(K({},Bk),i==null?void 0:i.classNames),components:K({Dropdown:Xk,IconLeft:Zk,IconRight:Jk},i==null?void 0:i.components),formatters:K({formatWeekdayName:this.renderWeekdayName},i==null?void 0:i.formatters),fromDate:c,mode:"single",month:new Date(y,w),onMonthChange:this.handleMonthChange,onSelect:this.handleDaySelect,required:!this.props.canClearSelection,selected:(n=this.state.value)!==null&&n!==void 0?n:void 0,toDate:s})),this.maybeRenderTimePicker(),f&&this.renderOptionsBar(),l)))},r.prototype.componentDidMount=function(){return Bt(this,void 0,void 0,function(){return qt(this,function(t){switch(t.label){case 0:return[4,e.prototype.componentDidMount.call(this)];case 1:return t.sent(),[2]}})})},r.prototype.componentDidUpdate=function(t){return Bt(this,void 0,void 0,function(){return qt(this,function(n){return e.prototype.componentDidUpdate.call(this,t),this.props.value!==t.value&&(this.props.value==null?this.setState({value:null}):this.setState({displayMonth:this.props.value.getMonth(),displayYear:this.props.value.getFullYear(),selectedDay:this.props.value.getDate(),value:this.props.value})),this.props.selectedShortcutIndex!==t.selectedShortcutIndex&&this.setState({selectedShortcutIndex:this.props.selectedShortcutIndex}),[2]})})},r.prototype.validateProps=function(t){var n=t.defaultValue,a=t.initialMonth,o=t.maxDate,i=t.minDate,l=t.value;n!=null&&!On(n,[i,o])&&console.error(A6),a!=null&&!xk(a,[i,o])&&console.error(k6),o!=null&&i!=null&&o<i&&!Tt(o,i)&&console.error(H6),l!=null&&!On(l,[i,o])&&console.error(N6)},r.prototype.renderOptionsBar=function(){var t=this.props,n=t.clearButtonText,a=t.todayButtonText,o=t.minDate,i=t.maxDate,l=t.canClearSelection,s=aH(o,i);return[A.createElement(c6,{key:"div"}),A.createElement("div",{className:va.DATEPICKER_FOOTER,key:"footer"},A.createElement(N1,{minimal:!0,disabled:!s,onClick:this.handleTodayClick,text:a}),A.createElement(N1,{disabled:!l,minimal:!0,onClick:this.handleClearClick,text:n}))]},r.prototype.maybeRenderTimePicker=function(){var t=this.props,n=t.timePrecision,a=t.timePickerProps,o=t.minDate,i=t.maxDate;if(n==null&&a===void 0)return null;var l=this.state.value!=null&&Tt(this.state.value,o),s=this.state.value!=null&&Tt(this.state.value,i);return A.createElement("div",{className:va.DATEPICKER_TIMEPICKER_WRAPPER},A.createElement(Ik,K({precision:n,minTime:l?o:void 0,maxTime:s?i:void 0},a,{onChange:this.handleTimeChange,value:this.state.value})))},r.prototype.maybeRenderShortcuts=function(){var t=this.props.shortcuts;if(t==null||t===!1)return null;var n=this.state.selectedShortcutIndex,a=this.props,o=a.maxDate,i=a.minDate,l=a.timePrecision,s=t===!0?!0:t.map(function(c){return K(K({},c),{dateRange:[c.date,null]})});return[A.createElement(Fk,{key:"shortcuts",allowSingleDayRange:!0,maxDate:o,minDate:i,selectedShortcutIndex:n,shortcuts:s,timePrecision:l,onShortcutClick:this.handleShortcutClick,useSingleDateShortcuts:!0}),A.createElement(c6,{key:"div"})]},r.prototype.computeValidDateInSpecifiedMonthYear=function(t,n){var a=this.props,o=a.minDate,i=a.maxDate,l=this.state.selectedDay,s=new Date(t,n+1,0).getDate(),c=l==null?1:Math.min(l,s),f=zi(new Date(t,n,c,12),this.state.value);return f<o?o:f>i?i:f},r.prototype.updateValue=function(t,n,a){var o,i;a===void 0&&(a=!1),a||(i=(o=this.props).onChange)===null||i===void 0||i.call(o,t,n),this.props.value===void 0&&this.setState({value:t})},r.defaultProps={canClearSelection:!0,clearButtonText:"Clear",dayPickerProps:{},highlightCurrentDay:!1,locale:"en-US",maxDate:A5.getDefaultMaxDate(),minDate:A5.getDefaultMinDate(),reverseMonthAndYearMenus:!1,shortcuts:!1,showActionsBar:!1,todayButtonText:"Today"},r.displayName="".concat(rt,".DatePicker3"),r}(Yk);function rH(e){return e.value!==void 0?e.value:e.defaultValue!==void 0?e.defaultValue:null}function nH(e,r){var t,n,a=[(t=e.minDate)!==null&&t!==void 0?t:null,(n=e.maxDate)!==null&&n!==void 0?n:null],o=new Date;return e.initialMonth!=null?e.initialMonth:r??(On(o,a)?o:Mk(a))}function aH(e,r){var t=new Date;return On(t,[e,r])}const oH=({shorcut:e,actionbar:r,week:t,displayDays:n})=>{const a=n,o=t;return z.jsx("div",{style:{borderWidth:"2px",borderRadius:"2%"},children:z.jsx(tH,{showActionsBar:r,shortcuts:e,highlightCurrentDay:!0,reverseMonthAndYearMenus:!0,dayPickerProps:{showOutsideDays:a,showWeekNumber:o}})})},iH=({title:e="Title",content1:r="Content 1",subContent1:t="Sub Content 1",content2:n="Content 2",subContent2:a="Sub Content 2",content3:o="Content 3",subContent3:i="Sub Content 3",icon1:l="Icon 1",icon2:s="Icon 2",icon3:c="Icon 3",backgroundColor:f="#ffffff",TitleFontSize:g="20px",TitleJustifyContent:w="start",TitleColor:y="#000000",SubFontSize:x="15px",SubJustifyContent:b="start",SubColor:m="#000000",flex:h,imgSrc:d="https://picsum.photos/200/300"})=>z.jsx(z.Fragment,{children:z.jsx(Ci,{style:{backgroundColor:f,borderRadius:"10px",padding:"0px",minWidth:"600px",height:"370px"},interactive:!0,elevation:Pc.TWO,children:z.jsxs("div",{className:`flex ${h}`,children:[z.jsxs("div",{className:"w-2/5",children:[z.jsx("h3",{style:{color:y,fontSize:g,fontWeight:"bold",display:"flex",justifyContent:w,padding:"30px 20px 10px 30px"},children:e}),z.jsxs("div",{className:"flex flex-row",children:[z.jsx("div",{className:"text-xl",style:{padding:"10px 0px 0px 30px"},children:l}),z.jsx("div",{children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:r})})]}),z.jsx("div",{style:{padding:"0px 25px 0px 25px"},children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:t})}),z.jsxs("div",{className:"flex flex-row",children:[z.jsx("div",{className:"text-xl",style:{padding:"10px 0px 0px 30px"},children:s}),z.jsx("div",{children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:n})})]}),z.jsx("div",{style:{padding:"0px 25px 0px 25px"},children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:a})}),z.jsxs("div",{className:"flex flex-row",children:[z.jsx("div",{className:"text-xl",style:{padding:"10px 0px 0px 30px"},children:c}),z.jsx("div",{children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:o})})]}),z.jsx("div",{style:{padding:"0px 25px 0px 25px"},children:z.jsx("p",{style:{color:m,fontSize:x,display:"flex",justifyContent:b,padding:"10px 0px 10px 10px"},children:i})})]}),z.jsx("div",{className:"w-3/5",children:z.jsx("img",{src:d,alt:"Image",style:{width:"100%",height:"370px",borderRadius:"8px"}})})]})})}),lH=({title:e="Title Test",content:r="Content",label:t="Label",Align:n="flex-start",CardWidth:a="500",AlignSubTitle:o="flex-start",CardPadding:i="16",TitleFontSize:l="medium",ContentFontSize:s="50",ButtonTextSize:c="medium",ButtonTextColor:f="#fff",CardBorderRadius:g="8",TitleColor:w="#333",ButtonColor:y="#007BFF",ContentColor:x="#555",backgroundColor:b="#fff",contentPadding:m="20px",imageSrc:h="https://img.freepik.com/premium-photo/image-colorful-galaxy-sky-generative-ai_791316-9864.jpg",...d})=>{const v=d.showButton?d.showButton:!1,u=d.showImg?d.showImg:!1,p=d.showTitle?d.showTitle:!1;return z.jsxs(Ci,{style:{backgroundColor:b,borderRadius:`${g}px`,padding:`${i}px`,width:`${a}px`},...d,interactive:!0,elevation:Pc.TWO,children:[u&&z.jsx("img",{src:h,alt:e,style:{width:"100%",height:"auto",borderRadius:"8px 8px 0 0"}}),z.jsxs("div",{children:[p&&z.jsx("h3",{children:z.jsx("a",{style:{color:w,fontSize:l,fontWeight:"bold",display:"flex",justifyContent:n,padding:"10px 10px 0px 20px",marginBottom:"-5px"},href:"#",children:e})}),z.jsx("p",{style:{color:x,fontSize:`${s}px`,display:"flex",justifyContent:o,padding:m},children:r})]}),v&&z.jsx(N1,{style:{backgroundColor:y,color:f,fontSize:c,justifyContent:n,margin:"0px 20px 20px 20px",borderRadius:"10px",border:"none"},...d,children:t})]})},sH=({backgroundColor:e,colorFont:r,titleProps:t,percentage:n=50,setPercentage:a})=>{const[o,i]=N.useState(0),[l,s]=N.useState(null);N.useEffect(()=>{s(n-o),i(n)},[n,o]);const c=y=>{const x=y.currentTarget.getBoundingClientRect(),b=y.clientX-x.left,m=Math.floor(b/x.width*100),h=Math.min(n+m,100);a&&a(h)},g={black:{black:"text-black"},white:{white:"text-white"}}[r]||{},w=Object.values(g).join(" ");return z.jsx("div",{className:"max-w-md mx-auto",style:{backgroundColor:e},children:z.jsx("div",{className:`shadow-lg p-4 pb-8 rounded-lg overflow-hidden ${w}`,children:z.jsxs("div",{className:"px-4 py-2",children:[z.jsx("h2",{className:"font-semibold text-lg mb-2",children:t}),z.jsxs("div",{className:"flex justify-between items-center mb-2",children:[z.jsxs("span",{className:"text-sm",children:[n,"/100"]}),l!==null&&z.jsxs("span",{className:l>0?"text-blue-500":"",children:["+",n,"%"]})]}),z.jsxs("div",{className:"relative h-4 w-full bg-gray-200 rounded-lg overflow-hidden cursor-pointer",onClick:c,children:[z.jsx("div",{className:"absolute top-0 left-0 h-full bg-blue-500",style:{width:`${n}%`}}),z.jsxs("div",{className:"absolute text-black text-xs font-bold",style:{left:"50%",transform:"translateX(-50%)",top:"50%",marginTop:"-0.5rem"},children:[n,"%"]})]})]})})})},cH=({tabs:e,variant:r,colorFont:t,background:n})=>{const[a,o]=N.useState(null),i=y=>{o(a===y?null:y)},l={success:{success:"rounded-lg border border-blue-gray-100 px-4 bg-green-500"},primary:{primary:"rounded-lg border border-blue-gray-100 px-4 bg-blue-500"},danger:{danger:"rounded-lg border border-blue-gray-100 px-4 bg-red-500"},warning:{warning:"rounded-lg border border-blue-gray-100 px-4 bg-yellow-500"},dark:{dark:"rounded-lg border border-blue-gray-100 px-4 bg-gray-200"},light:{light:"rounded-lg border border-blue-gray-100 px-4 bg-gray-800"}},s={black:{black:"text-black"},white:{white:"text-white"}},c=l[r]||{},f=s[t]||{},g=bt(...Object.values(c)),w=bt(...Object.values(f));return z.jsx("div",{className:"bg-gray-100 font-sans flex flex-col items-center p-2 ",children:z.jsxs("div",{className:"w-full justify-start ",children:[z.jsx("div",{className:"mb-2 flex flex-row flex-wrap justify-start space-y-2 md:space-y-1 md:space-x-2 space-x-1 md:gap-2 gap-1 p-2 rounded-lg shadow-md",style:{background:n},children:e.map(y=>z.jsx("button",{onClick:()=>i(y.id),className:`inline-block py-2 px-4 space-x-4 rounded-md ${w} ${a===y.id?g+" "+w:""}`,children:y.title},y.id))}),e.map(y=>z.jsxs("div",{className:`transition-all duration-300 bg-white p-4 rounded-lg whitespace-normal ${a===y.id?"block":"hidden"} hover:shadow-xl my-2 md:my-0`,style:{background:n},children:[z.jsx("h2",{className:`text-2xl font-semibold mb-2 ${w}`,children:y.title}),z.jsx("p",{className:`text-sm mb-2 ${w}`,children:y.content})]},y.id))]})})},uH=({img:e="https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg"})=>z.jsxs(ve.Carousel,{className:"rounded-xl h-full",navigation:({setActiveIndex:r,activeIndex:t,length:n})=>z.jsx("div",{className:"absolute bottom-4 left-2/4 z-50 flex -translate-x-2/4 gap-2",children:new Array(n).fill("").map((a,o)=>z.jsx("span",{className:`block h-1 cursor-pointer rounded-2xl transition-all content-[''] ${t===o?"w-8 bg-white":"w-4 bg-white/50"}`,onClick:()=>r(o)},o))}),placeholder:void 0,children:[z.jsx("img",{src:e,alt:"image 1",className:"h-full w-full object-cover"}),z.jsx("img",{src:e,alt:"image 1",className:"h-full w-full object-cover"})]}),dH=({backgroundColor:e,borderRadius:r=0,text3:t,text4:n,text5:a,text6:o})=>{const[i,l]=N.useState(null),s=c=>{l(c===i?null:c)};return z.jsx("div",{children:z.jsx("div",{className:"grid md:grid-cols-12 gap-4 mt-8 ",children:z.jsxs("div",{className:"md:col-start-1 md:col-span-6 col-span-10 border rounded border-gray-300 p-4",style:{backgroundColor:e},children:[z.jsx("div",{className:"pb-2 ",children:z.jsx(ve.Checkbox,{color:"green",id:"static-checkbox-1",ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0 "},label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:n}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`},checked:i===1,onChange:()=>s(1)})}),z.jsx("div",{className:"pb-2",children:z.jsx(ve.Checkbox,{color:"green",id:"static-checkbox-2",ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0"},label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:a}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`},checked:i===2,onChange:()=>s(2)})}),z.jsx("div",{className:"pb-2",children:z.jsx(ve.Checkbox,{color:"green",id:"static-checkbox-3",ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0"},label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:o}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`},checked:i===3,onChange:()=>s(3)})}),z.jsx("div",{className:"pb-2",children:z.jsx(ve.Checkbox,{color:"green",id:"static-checkbox-4",ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0"},label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:t}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`},disabled:i!==null})})]})})})},fH=({backgroundColor:e,borderRadius:r=0,filteredData:t,text3:n,hideText:a})=>{const[o,i]=N.useState(new Array((t==null?void 0:t.length)||0).fill(!1));N.useEffect(()=>{const s=document.getElementById("checkbox-container");if(s){const c=(t==null?void 0:t.length)||0,f=`${Math.ceil(c/4)*100}px`;s.style.height=f}},[t]);const l=s=>{const c=[...o];c[s]=!c[s],i(c)};return z.jsxs("div",{id:"checkbox-container",className:"grid md:flex md:flex-wrap md:justify-start md:gap-4 grid-cols-1 lg:grid-cols-12 items-center border-round border-gray-300",style:{backgroundColor:e},children:[z.jsx("span",{className:"p-2 pb-0 text-lg items-center justify-center lg:pb-6 lg:ml-4 lg:text-2xl md:text-lg ",style:{display:a?"none":""},children:n}),z.jsx("div",{className:"md:flex flex-wrap justify-start gap-6 p-4",style:{backgroundColor:e},children:t==null?void 0:t.map((s,c)=>z.jsx("div",{className:"pb-2",children:z.jsx(ve.Checkbox,{color:"green",id:`static-checkbox-${c+1}`,ripple:!1,className:"hover:before:opacity-0",containerProps:{className:"p-0"},checked:o[c],onChange:()=>l(c),label:z.jsx(ve.Typography,{color:"blue-gray",className:"flex font-medium md:text-sm text-xs pl-2",placeholder:void 0,children:s}),crossOrigin:void 0,style:{fontSize:"0.75rem",borderRadius:`${r}px`}})},c))})]})},pH=({backgroundColor:e,menuItems:r,buttonText:t})=>{const[n,a]=N.useState(null),[o,i]=N.useState(""),l={backgroundColor:e,margin:"10px"},s=w=>{a(w)},c=w=>{i(w.target.value)},f=(w=[],y)=>Array.isArray(w)?w.filter(x=>typeof x=="string").filter(x=>x.toLowerCase().includes(y.toLowerCase())):[],g=()=>{const w=f(r.map(y=>y.text),o);return z.jsx(c5,{children:w.map((y,x)=>z.jsx(xi,{text:y,onClick:()=>s(y)},x))})};return z.jsx(w5,{content:z.jsxs(z.Fragment,{children:[z.jsx(d6,{placeholder:"Search...",value:o,onChange:c}),g()]}),minimal:!0,position:"bottom",children:z.jsx(N1,{style:l,children:n||t||"Open Dropdown"})})};function vH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M344 280l88-88m-200 24l64 64M80 320l104-104"}},{tag:"circle",attr:{cx:"456",cy:"168",r:"24",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"320",cy:"304",r:"24",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"208",cy:"192",r:"24",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"56",cy:"344",r:"24",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}}]})(e)}function X6(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z"}}]})(e)}function hH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7 10l5 5 5-5H7z"}}]})(e)}function mH(e){return Le({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function gH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"}}]})(e)}function bH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"}}]})(e)}function yH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"}}]})(e)}function wH(e){return Le({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"}}]})(e)}function xH(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"}}]})(e)}const CH=({data:e,backgroundColor:r})=>{const[t,n]=N.useState([]),[a,o]=N.useState(""),[i,l]=N.useState(!1),s=20,c=()=>{l(w=>!w)},f=w=>{const y=t.includes(w.abbrev);n(y?x=>x.filter(b=>b!==w.abbrev):x=>[...x,w.abbrev]),o("")},g=w=>{n(w?y=>y.filter(x=>x!==w):[])};return z.jsxs("div",{className:"relative inline-block justify-center text-center ",children:[z.jsxs("div",{className:" justify-center",children:[z.jsxs("div",{className:" space-y-2 ml-2 overflow-auto max-h-44 origin-top-right right-0 w-42 bg-white ",children:[t.map((w,y)=>{var x;return z.jsxs("div",{className:`flex items-center justify-center bg-gray-200 rounded px-6 py-2 mr-1 ${y>=s?"hidden":" "}`,children:[z.jsx("span",{children:(x=e.find(b=>b.abbrev===w))==null?void 0:x.name}),i&&z.jsx(X6,{className:"h-4 w-4 ml-auto cursor-pointer",onClick:()=>g(w)})]},w)}),t.length>s&&z.jsxs("span",{className:"text-gray-400",children:["+",t.length-s]})]}),z.jsxs("div",{className:"relative flex mt-2 items-center space-x-2 ",children:[z.jsx("input",{type:"text",placeholder:"Search Items",value:a,onChange:w=>o(w.target.value),className:"border rounded px-1 py-1 pl-4 focus:outline-none focus:border-blue-300",style:{backgroundColor:r}}),t.length>0&&z.jsx("span",{className:"absolute right-10 button-2 inline-flex justify-center rounded-md border hover:bg-gray-50 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 active:bg-gray-200 transition ease-in-out duration-150 ",children:i&&z.jsx(X6,{className:"h-4 w-4 ml-auto right-2 inline-flex justify-center rounded-md border",onClick:()=>g()})},t[0]),z.jsx("button",{type:"button",className:"absolute right-4 button-2 inline-flex justify-center rounded-md border hover:bg-gray-50 focus:outline-none focus:ring active:bg-gray-200 transition ease-in-out duration-150",onClick:c,children:z.jsx(hH,{})})]})]}),i&&z.jsx("div",{className:"origin-top-right absolute right-0 mt-2 w-42 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5",children:z.jsx("div",{className:"py-1 overflow-auto max-h-36",children:e.filter(w=>w.name.toLowerCase().includes(a.toLowerCase())).map(w=>z.jsxs("div",{className:`flex items-center justify-between px-5 py-1 mb-2 text-sm cursor-pointer ${t.includes(w.abbrev)?"bg-gray-300":"hover:bg-gray-100"}`,onClick:()=>f(w),children:[t.includes(w.abbrev)&&z.jsx(wH,{}),z.jsx("span",{children:w.name})]},w.abbrev))})})]})},MH=({backgroundColor:e="#ffffff",PopBackgroundColor:r="#ffffff",buttonText:t="Select",filteredOptions:n,id:a,inputName:o})=>{const[i,l]=N.useState(""),[s,c]=N.useState(!1),[f,g]=N.useState(""),w=()=>{c(!s)},y=b=>{g(b),c(!1)},x=N.useMemo(()=>n.filter(b=>b.label.toLowerCase().includes(i.toLowerCase())),[i,n]);return z.jsx("div",{className:"flex justify-center",children:z.jsxs("div",{className:"relative inline-block justify-center w-full text-center",children:[z.jsxs("button",{onClick:w,className:"p-3 flex items-center w-full gap-4 justify-between rounded cursor-pointer",style:{backgroundColor:e},children:[z.jsxs("span",{className:"text-sm",children:[f||t," "]}),z.jsx(l2,{})]}),z.jsxs("div",{className:`absolute right-0 left-0 ${s?"top-full":"bottom-full"} w-auto max-h-44 overflow-y-auto bg-white border rounded p-1 md:p-3 mt-2`,style:{backgroundColor:r,display:s?"block":"none"},children:[z.jsx("div",{className:"relative mb-2",children:z.jsx("input",{type:"text",id:a,name:o,placeholder:"Search items...",className:"border rounded p-2 text-start focus:outline-none w-full focus:border-blue-500",value:i,onChange:b=>l(b.target.value)})}),x.map(b=>z.jsx("div",{onClick:()=>y(b.label),className:"cursor-pointer text-start overflow-y-auto hover:bg-gray-200 p-1 w-auto rounded block",children:b.label},b.label))]})]})})};function zH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z"}}]})(e)}function TH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15 3C15.5523 3 16 3.44772 16 4V8C16 8.55228 15.5523 9 15 9H13V11H17C17.5523 11 18 11.4477 18 12V15H20C20.5523 15 21 15.4477 21 16V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V16C13 15.4477 13.4477 15 14 15H16V13H8V15H10C10.5523 15 11 15.4477 11 16V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V16C3 15.4477 3.44772 15 4 15H6V12C6 11.4477 6.44772 11 7 11H11V9H9C8.44772 9 8 8.55228 8 8V4C8 3.44772 8.44772 3 9 3H15ZM9 17H5V19H9V17ZM19 17H15V19H19V17ZM14 5H10V7H14V5Z"}}]})(e)}function OH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17 4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7V2H17V4ZM9 9V17H11V9H9ZM13 9V17H15V9H13Z"}}]})(e)}function SH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"}}]})(e)}function PH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m17 3-5 5-5-5h10"}},{tag:"path",attr:{d:"m17 21-5-5-5 5h10"}},{tag:"path",attr:{d:"M4 12H2"}},{tag:"path",attr:{d:"M10 12H8"}},{tag:"path",attr:{d:"M16 12h-2"}},{tag:"path",attr:{d:"M22 12h-2"}}]})(e)}function _H(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"18",cy:"5",r:"3"}},{tag:"circle",attr:{cx:"6",cy:"12",r:"3"}},{tag:"circle",attr:{cx:"18",cy:"19",r:"3"}},{tag:"line",attr:{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49"}},{tag:"line",attr:{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49"}}]})(e)}function EH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M12.003 21c-.732 .001 -1.465 -.438 -1.678 -1.317a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c.886 .215 1.325 .957 1.318 1.694"}},{tag:"path",attr:{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"}},{tag:"path",attr:{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}},{tag:"path",attr:{d:"M19.001 15.5v1.5"}},{tag:"path",attr:{d:"M19.001 21v1.5"}},{tag:"path",attr:{d:"M22.032 17.25l-1.299 .75"}},{tag:"path",attr:{d:"M17.27 20l-1.3 .75"}},{tag:"path",attr:{d:"M15.97 17.25l1.3 .75"}},{tag:"path",attr:{d:"M20.733 20l1.3 .75"}}]})(e)}const Si=new Date,LH=Si.toLocaleDateString("en-MY"),VH=(Si.getMonth()+1).toString().padStart(2,"0"),AH=Si.getFullYear(),kH=({small_Show:e,main_Show:r,small_Text:t,small_BgColor:n,small_FontColor:a,small_DateType:o,small_TextPos:i,small_TextBold:l,main_BgColor:s,main_FontColor:c,main_IconColor:f,main_Title:g,count1:w,desc1:y,count2:x,desc2:b,count3:m,desc3:h,count4:d,desc4:v,count5:u,desc5:p})=>{const C=e?"block":"none",M=r?"block":"none",S=l?"700":"";let T="";switch(o){case"None":T="";break;case"Date":T=LH;break;case"Year":T=Si.getFullYear().toString();break;case"Month/Year":T=`${VH}/${AH}`;break}return z.jsxs("footer",{className:"relative w-full",children:[z.jsx("div",{id:"main",className:"flex flex-row p-3 items-center justify-center text-center md:justify-center grid grid-cols-1",style:{display:M,backgroundColor:s},children:z.jsxs("div",{id:"small",className:"grid grid-cols-1",children:[z.jsx("div",{children:z.jsx("h5",{className:"block w-full mt-5 mb-5 font-sans text-3xl antialiased font-extrabold leading-snug tracking-normal text-inherit",style:{color:c},children:g})}),z.jsx("div",{children:z.jsxs("ul",{className:"flex flex-wrap items-center w-full justify-center mx-auto gap-y-8 gap-x-7",children:[z.jsxs("li",{className:"flex items-center",children:[z.jsx(zH,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:w}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:y})]})]}),z.jsxs("li",{className:"flex items-center ",children:[z.jsx(TH,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:x}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:b})]})]}),z.jsxs("li",{className:"flex items-center ",children:[z.jsx(_H,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:m}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:h})]})]}),z.jsxs("li",{className:"flex items-center ",children:[z.jsx(EH,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:d}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:v})]})]}),z.jsxs("li",{className:"flex items-center ",children:[z.jsx(vH,{size:50,className:"mr-0",style:{color:f}}),z.jsxs("div",{className:"flex flex-col",children:[z.jsx("span",{className:" font-sans text-xl antialiased font-extrabold mb-0 text-left",style:{color:c},children:u}),z.jsx("span",{className:"font-sans font-semibold text-xs antialiased text-left",style:{color:c},children:p})]})]})]})})]})}),z.jsx("div",{id:"small",className:"flex w-full flex-col items-center border-blue-gray-50 py-4 gap-x-1 md:flex-row md:justify px-3",style:{display:C,justifyContent:i,backgroundColor:n},children:z.jsxs(ve.Typography,{variant:"small",className:"mb-4 text-center font-normal text-black md:mb-0",style:{color:a},placeholder:void 0,children:["© Hak Cipta Terpelihara ",z.jsxs("span",{style:{fontWeight:S},children:[" ",t," ",T," "]})]})})]})};var k5={exports:{}};const HH="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.7277%2017.3005L3.496%2033.576C2.72018%2032.8402%202.3009%2031.8309%202.3009%2030.7372V5.20985C2.3009%204.09546%202.74127%203.08592%203.53819%202.32928L19.7277%2017.3005Z'%20fill='%232299F8'/%3e%3cpath%20d='M33.7573%2017.9733C33.7573%2019.4455%2032.96%2020.749%2031.6387%2021.4854L27.0259%2024.0505L21.3005%2018.7513L19.7278%2017.3005L25.7882%2011.2234L31.6387%2014.4617C32.96%2015.1982%2033.7573%2016.5016%2033.7573%2017.9733Z'%20fill='%23FFC107'/%3e%3cpath%20d='M19.7277%2017.3005L3.53821%202.32923C3.74781%202.11857%204.02069%201.9295%204.29329%201.76131C5.61426%200.962352%207.20817%200.940977%208.57104%201.69838L25.7882%2011.2234L19.7277%2017.3005Z'%20fill='%235ACF5F'/%3e%3cpath%20d='M27.0258%2024.0506L8.57099%2034.2489C7.92109%2034.6276%207.18667%2034.7955%206.47385%2034.7955C5.71911%2034.7955%204.96431%2034.6063%204.29325%2034.186C3.9992%2034.0177%203.72667%2033.8074%203.49597%2033.576L19.7277%2017.3004L21.3004%2018.7513L27.0258%2024.0506Z'%20fill='%23F84437'/%3e%3c/svg%3e",H5=({theme:e="light",height:r=50,width:t=180,border:n,logo:a,storeName:o,title:i,url:l,className:s})=>N.createElement("div",{onClick:()=>l&&window.open(l,"_blank"),style:{height:r,width:t,borderRadius:n},className:`button-container button-container-${e} ${s}`},N.createElement("img",{src:a,alt:o}),N.createElement("div",{className:"button-text-container"},N.createElement("span",{className:"button-title"},i),N.createElement("span",{className:"button-store-name"},o))),NH=({theme:e="light",height:r,title:t="GET IT ON",width:n,className:a,url:o})=>N.createElement(H5,{theme:e,height:r,width:n,url:o,storeName:"Google Play",logo:HH,className:a,title:t}),RH="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.4416%201C3.52853%201%201%203.52809%201%2010.4398V25.2102C1%2032.1219%203.52853%2034.65%2010.4416%2034.65H25.2039C32.1168%2034.65%2034.65%2032.1219%2034.65%2025.2102V10.4398C34.65%203.52809%2032.1215%201%2025.2084%201H10.4416Z'%20fill='url(%23paint0_linear_303_2)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.678%2020.5163H17.0289L16.3512%2018.9401L15.678%2020.5163ZM15.3453%2021.3106L14.9445%2022.2278H14.032L15.9725%2017.8253H16.7612L18.6938%2022.2278H17.757L17.3613%2021.3106H15.3453ZM30.0292%2022.2245H30.9111V17.825H30.0292V22.2245ZM26.5189%2020.3346H28.1446V19.5324H26.5189V18.6307H28.8789V17.8283H25.6372V22.2275H28.9638V21.425H26.5189V20.3346ZM23.0146%2020.8544L22.0148%2017.825H21.2851L20.2852%2020.8544L19.3121%2017.8274H18.3606L19.8963%2022.2302H20.636L21.6375%2019.3382L22.639%2022.2302H23.3852L24.9167%2017.8274H23.9899L23.0146%2020.8544ZM12.6857%2020.3467C12.6857%2021.0629%2012.33%2021.4456%2011.6842%2021.4456C11.0348%2021.4456%2010.6773%2021.0518%2010.6773%2020.3162V17.828H9.78342V20.3467C9.78342%2021.5857%2010.472%2022.2962%2011.672%2022.2962C12.8839%2022.2962%2013.5787%2021.5722%2013.5787%2020.31V17.8253H12.6857V20.3467ZM7.65088%2017.8253H8.5442V22.2305H7.65088V20.4414H5.63275V22.2305H4.73889V17.8253H5.63275V19.6022H7.65088V17.8253Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.825%2012.2167C14.7323%2012.2167%2012.2167%209.70082%2012.2167%206.60834H13.0089C13.0089%209.26375%2015.1696%2011.4242%2017.825%2011.4242C20.4804%2011.4242%2022.6412%209.26375%2022.6412%206.60834H23.4333C23.4333%209.70082%2020.9175%2012.2167%2017.825%2012.2167Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_303_2'%20x1='17.825'%20y1='1'%20x2='17.825'%20y2='34.65'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FB6361'/%3e%3cstop%20offset='1'%20stop-color='%23ED3E45'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",jH=({theme:e="light",height:r,title:t="EXPLORE IT ON",width:n,className:a,url:o})=>N.createElement(H5,{theme:e,height:r,width:n,url:o,storeName:"AppGallery",logo:RH,className:a,title:t}),DH="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.6667%206.6387C23.7612%205.22345%2024.5899%203.22144%2024.29%201.17773C22.501%201.30191%2020.4104%202.4499%2019.1919%203.94488C18.0805%205.30121%2017.1663%207.31552%2017.5225%209.27302C19.477%209.3342%2021.4967%208.15878%2022.6667%206.6387Z'%20fill='black'/%3e%3cpath%20d='M31.3594%2012.4655C29.6415%2010.3057%2027.228%209.05225%2024.9482%209.05225C21.939%209.05225%2020.6661%2010.4973%2018.5753%2010.4973C16.4196%2010.4973%2014.7815%209.05661%2012.1792%209.05661C9.62293%209.05661%206.90085%2010.6234%205.17475%2013.3021C2.74862%2017.0746%203.16402%2024.1672%207.09597%2030.2084C8.50292%2032.3702%2010.382%2034.8009%2012.84%2034.822C15.0269%2034.8427%2015.6434%2033.415%2018.6069%2033.4004C21.5699%2033.3836%2022.1322%2034.8411%2024.3151%2034.8178C26.7751%2034.7987%2028.7569%2032.1048%2030.164%2029.9434C31.1726%2028.3937%2031.5483%2027.6138%2032.3301%2025.864C26.6407%2023.692%2025.7286%2015.5795%2031.3594%2012.4655Z'%20fill='black'/%3e%3c/svg%3e",IH="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.6667%206.6387C23.7612%205.22345%2024.5899%203.22144%2024.29%201.17773C22.501%201.30191%2020.4104%202.4499%2019.1919%203.94488C18.0805%205.30121%2017.1663%207.31552%2017.5225%209.27302C19.477%209.3342%2021.4967%208.15878%2022.6667%206.6387Z'%20fill='white'/%3e%3cpath%20d='M31.3594%2012.4655C29.6415%2010.3057%2027.228%209.05225%2024.9482%209.05225C21.939%209.05225%2020.6661%2010.4973%2018.5753%2010.4973C16.4196%2010.4973%2014.7815%209.05661%2012.1792%209.05661C9.62293%209.05661%206.90085%2010.6234%205.17475%2013.3021C2.74862%2017.0746%203.16402%2024.1672%207.09597%2030.2084C8.50292%2032.3702%2010.382%2034.8009%2012.84%2034.822C15.0269%2034.8427%2015.6434%2033.415%2018.6069%2033.4004C21.5699%2033.3836%2022.1322%2034.8411%2024.3151%2034.8178C26.7751%2034.7987%2028.7569%2032.1048%2030.164%2029.9434C31.1726%2028.3937%2031.5483%2027.6138%2032.3301%2025.864C26.6407%2023.692%2025.7286%2015.5795%2031.3594%2012.4655Z'%20fill='white'/%3e%3c/svg%3e",Z6=Vi(Object.freeze(Object.defineProperty({__proto__:null,AppGalleryButton:jH,AppStoreButton:({theme:e="light",height:r,title:t="Download on the",width:n,className:a,url:o})=>N.createElement(H5,{theme:e,height:r,width:n,url:o,storeName:"App Store",logo:e==="dark"?IH:DH,className:a,title:t}),ButtonsContainer:({children:e,gap:r,direction:t="row"})=>N.createElement("div",{className:"buttons-container",style:{gap:r,flexDirection:t}},e),GooglePlayButton:NH},Symbol.toStringTag,{value:"Module"})));(function(e,r){e.exports=Z6,r.default=Z6})(k5,k5.exports);var N5=k5.exports;const $H=({comName:e,subComName:r,imgSrc:t,add1:n,add2:a,postCode:o,state:i,country:l,phone:s,email:c,link_Show:f,link:g,hit_Show:w,hitOnline:y,hitToday:x,hitYesterday:b,hitTotal:m,hitMax:h,showMedia:d,showPlayStore:v,linkPlayStore:u,showAppStore:p,linkAppStore:C,showTwit:M,linkTwit:S,showFb:T,linkFb:O,showIg:P,linkIg:L,showLI:V,linkLI:k,showYT:j,linkYT:U,showTik:$,linkTik:B})=>{const I=f?"block":"none",R=w?"block":"none",G=d?"block":"none",q=v?"block":"none",Y=p?"block":"none",F=M?"block":"none",D=T?"block":"none",W=P?"block":"none",ee=V?"block":"none",J=j?"block":"none",X=$?"block":"none";return z.jsx("footer",{className:"relative w-full",children:z.jsx("div",{className:"mx-auto w-full max-w-7xl px-8",children:z.jsxs("div",{className:"grid grid-cols-1 justify-between gap-4 md:grid-cols-2",children:[z.jsxs(ve.Typography,{variant:"h5",className:"mb-6",placeholder:void 0,children:[e,z.jsx("br",{}),r]}),z.jsx("br",{}),z.jsxs("div",{style:{display:"flex"},children:[z.jsx("div",{style:{width:"25%"},children:z.jsx("figure",{children:z.jsx("img",{className:"h-86 rounded-lg object-center",src:t,alt:"nature image",width:"120"})})}),z.jsxs("div",{style:{width:"75%"},children:[n,",",z.jsx("br",{}),a,",",z.jsx("br",{}),o,", ",i,",",z.jsx("br",{}),l,".",z.jsx("br",{}),"Tel : (+6) ",s,z.jsx("br",{}),"Emel : ",c,z.jsx("br",{})]})]}),z.jsxs("div",{className:"grid grid-cols-3 justify-between gap-4",children:[z.jsxs("ul",{style:{display:I},children:[z.jsx(ve.Typography,{variant:"h6",color:"blue-gray",className:"mb-3 font-large",placeholder:void 0,children:"Pautan"}),g.map(te=>z.jsx("li",{children:z.jsx(ve.Typography,{as:"a",href:te.url,color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:te.name})}))]}),z.jsxs("ul",{style:{display:R},children:[z.jsx(ve.Typography,{variant:"h6",color:"blue-gray",className:"mb-3 font-large",placeholder:void 0,children:"Penggunaan Portal"}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Dalam Talian : ",y]})}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Hari Ini : ",x]})}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Semalam : ",b]})}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Jumlah : ",m]})}),z.jsx("li",{children:z.jsxs(ve.Typography,{color:"gray",className:"py-1.5 font-small transition-colors hover:text-blue-gray-900",placeholder:void 0,children:["Maksimum : ",h]})})]}),z.jsxs("ul",{style:{display:G},children:[z.jsx("div",{className:"flex gap-4 mb-5 text-blue-gray-900 sm:justify-center",children:z.jsxs(N5.ButtonsContainer,{direction:"column",children:[z.jsx("span",{style:{display:q},children:z.jsx("a",{className:"link",target:"_blank",style:{textDecoration:"none"},children:z.jsx(N5.GooglePlayButton,{url:u,theme:"dark",title:"Muat turun di",width:178})})}),z.jsx("span",{style:{display:Y},children:z.jsx("a",{className:"link",target:"_blank",style:{textDecoration:"none"},children:z.jsx(N5.AppStoreButton,{url:C,theme:"dark",title:"Muat turun di",width:178})})})]})}),z.jsxs("div",{className:"flex gap-4 text-blue-gray-900 sm:justify-center mb-4",children:[z.jsx("span",{style:{display:F},children:z.jsx(ve.Typography,{as:"a",href:S,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(gH,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:D},children:z.jsx(ve.Typography,{as:"a",href:O,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(N8,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:W},children:z.jsx(ve.Typography,{as:"a",href:L,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(R8,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:ee},children:z.jsx(ve.Typography,{as:"a",href:k,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(j8,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:J},children:z.jsx(ve.Typography,{as:"a",href:U,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(D8,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})}),z.jsx("span",{style:{display:X},children:z.jsx(ve.Typography,{as:"a",href:B,target:"_blank",className:"opacity-80 transition-opacity hover:opacity-100",placeholder:void 0,children:z.jsx(mH,{className:"h-4 w-4",fill:"currentColor","aria-hidden":"true"})})})]}),z.jsx("div",{className:"flex text-left gap-4 text-blue-gray-900 sm:justify-left opacity-40",children:"Paparan terbaik menggunakan Mozilla Firefox versi 50 dan ke atas pada resolusi skrin minimum 1366×768"})]})]})]})})})},J6=({backgroundColor:e,onFileSelect:r,buttonText:t,disabled:n,iconPosition:a,widthButton:o,allowedFileTypes:i})=>{const l=N.useRef(null),[s,c]=N.useState([]),f=b=>{b.preventDefault()},g=b=>{b.preventDefault();const m=b.dataTransfer.files;if(m.length>0){const h=Array.from(m);c([...s,...h]),r(h)}},w=b=>{const m=s.filter(h=>h!==b);c(m)},y=b=>{const m=b.target.files;if(m&&m.length>0){const h=Array.from(m);c([...s,...h]),r(h)}},x=b=>{const m={marginRight:"5px",marginLeft:"5px"};switch(a){case"left":return z.jsxs(z.Fragment,{children:[z.jsx(jt,{icon:b,style:m}),z.jsx("span",{children:t})]});case"right":return z.jsxs(z.Fragment,{children:[z.jsx("span",{children:t}),z.jsx(jt,{icon:b,style:m})]});case"top":return z.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[z.jsx(jt,{icon:b,style:m}),z.jsx("span",{children:t})]});case"bottom":return z.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[z.jsx("span",{children:t}),z.jsx(jt,{icon:b,style:m})]});default:return z.jsxs(z.Fragment,{children:[z.jsx(jt,{icon:b,style:m}),z.jsx("span",{children:t})]})}};return z.jsxs("div",{onDrop:g,onDragOver:f,style:{display:"flex",flexDirection:"column",alignItems:"center",border:"2px dashed #cccc",borderRadius:"5px",padding:"20px",backgroundColor:e||"transparent"},children:[z.jsx("input",{type:"file",style:{display:"none"},ref:l,onChange:y,multiple:!0,accept:i}),z.jsx(N1,{style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"10px",margin:"0 auto",width:o,backgroundColor:e||"transparent",border:"black"},onClick:()=>{var b;return(b=l.current)==null?void 0:b.click()},disabled:n,minimal:!0,children:x("cloud-upload")}),z.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:s.map((b,m)=>z.jsx("div",{style:{border:"1px solid #ccc",borderRadius:"5px",padding:"10px",marginBottom:"10px",width:"100%"},children:z.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[z.jsx("span",{style:{marginRight:"5px",color:"black",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:b.name}),z.jsx("span",{style:{marginRight:"5px",color:"grey"},children:` ${(b.size/1024/1024).toFixed(2)} MB`}),z.jsx("a",{href:URL.createObjectURL(b),download:b.name,style:{textDecoration:"underline",cursor:"pointer",color:"blue",marginLeft:"auto",marginRight:"5px"},children:"Download"}),z.jsx("button",{onClick:()=>w(b),style:{background:"none",border:"none",cursor:"pointer",outline:"none",display:"flex",alignItems:"center",color:"#c62828"},children:z.jsx(jt,{icon:"trash",style:{marginRight:"5px"}})})]})},m))})]})};J6.defaultProps={buttonText:"Upload Here"};const FH=({variant:e="0",text:r})=>{let t=!1,n=!1;return e==="1"?(n=!0,t=!1):e==="2"?(n=!1,t=!0):(n=!1,t=!1),z.jsx(z.Fragment,{children:z.jsxs("div",{className:"w-[32rem] ",children:[z.jsx(Ks.Input,{type:"password",label:"Password",error:n,success:t,crossOrigin:void 0}),z.jsxs(WM,{variant:"small",color:"gray",className:"mt-2 flex items-center gap-1 font-normal ",placeholder:void 0,children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"-mt-px h-4 w-4",children:z.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),r]})]})})},Q6=({placeholderProps:e,colorPros:r,validationProps:t,disabledProps:n,requiredProps:a,labelProps:o})=>{const[i,l]=N.useState(""),[s,c]=N.useState(!0),f=y=>{l(y.target.value),c(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(y.target.value))};let g=!1,w=!1;return r==="Error"?(w=!0,g=!1):r==="Success"?(w=!1,g=!0):(w=!1,g=!1),z.jsxs("div",{className:"w-[32rem]",children:[z.jsx(ve.Input,{type:"email",label:o,crossOrigin:void 0,required:a,onChange:f,value:i,error:w,success:g,disabled:n,placeholder:e}),!s&&z.jsxs("span",{className:"text-red-500 text-xs mt-1 flex",children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"-mt-px h-4 w-4 mr-1",children:z.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),t]})]})};Q6.defaultProps={labelProps:"Email Address",placeholderProps:"Email Address",colorPros:"Default",validationProps:"Please enter a valid email address.",disabledProps:!1,requiredProps:!0};const e7=({placeholderProps:e,colorPros:r,maxlengthProps:t,disabledProps:n})=>{const a=l=>{const c=l.target.value.replace(/[^0-9]/g,"");l.target.value=c};let o=!1,i=!1;return r==="Error"?(i=!0,o=!1):r==="Success"?(i=!1,o=!0):(i=!1,o=!1),z.jsx(z.Fragment,{children:z.jsx("div",{className:"w-[32rem]",children:z.jsx(ve.Input,{type:"text",label:`${e}`,crossOrigin:void 0,required:!0,onInput:a,maxLength:t,error:i,success:o,disabled:n})})})};e7.defaultProps={placeholderProps:"Number",colorPros:"Default",maxlengthProps:10,disabledProps:!1};function WH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z"}}]})(e)}function UH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"}}]})(e)}function GH(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.023 16.977a35.13 35.13 0 0 1-1.367-1.384c-.372-.378-.596-.653-.596-.653l-2.8-1.337A6.962 6.962 0 0 0 16 9c0-3.859-3.14-7-7-7S2 5.141 2 9s3.14 7 7 7c1.763 0 3.37-.66 4.603-1.739l1.337 2.8s.275.224.653.596c.387.363.896.854 1.384 1.367l1.358 1.392.604.646 2.121-2.121-.646-.604c-.379-.372-.885-.866-1.391-1.36zM9 14c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"}}]})(e)}const t7=({colorPros:e,disabledProps:r,dateFormatProps:t})=>{const[n,a]=N.useState();let o=!1,i=!1;e==="Error"?(i=!0,o=!1):e==="Success"?(i=!1,o=!0):(i=!1,o=!1);const s={"Month/day/year":"MM/dd/yyyy","Year-month-day":"yyyy-MM-dd","Day/month/year":"dd/MM/yyyy",Default:"PPP"}[t]||"PPP";return z.jsx(z.Fragment,{children:z.jsx("div",{className:"p-24",children:z.jsxs(ve.Popover,{placement:"bottom",children:[z.jsx(ve.PopoverHandler,{children:z.jsx(ve.Input,{label:"Select a Date",onChange:()=>null,value:n?r1(n,s):"",crossOrigin:void 0,error:i,success:o,disabled:r,required:!0})}),z.jsx(ve.PopoverContent,{placeholder:void 0,children:z.jsx(Uv,{mode:"single",selected:n,onSelect:a,showOutsideDays:!0,className:"border-0",classNames:{caption:"flex justify-center py-2 mb-4 relative items-center",caption_label:"text-sm font-medium text-gray-900",nav:"flex items-center",nav_button:"h-6 w-6 bg-transparent hover:bg-blue-gray-50 p-1 rounded-md transition-colors duration-300",nav_button_previous:"absolute left-1.5",nav_button_next:"absolute right-1.5",table:"w-full border-collapse",head_row:"flex font-medium text-gray-900",head_cell:"m-0.5 w-9 font-normal text-sm",row:"flex w-full mt-2",cell:"text-gray-600 rounded-md h-9 w-9 text-center text-sm p-0 m-0.5 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-gray-900/20 [&:has([aria-selected].day-outside)]:text-white [&:has([aria-selected])]:bg-gray-900/50 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:"h-9 w-9 p-0 font-normal",day_range_end:"day-range-end",day_selected:"rounded-md bg-gray-900 text-white hover:bg-gray-900 hover:text-white focus:bg-gray-900 focus:text-white",day_today:"rounded-md bg-gray-200 text-gray-900",day_outside:"day-outside text-gray-500 opacity-50 aria-selected:bg-gray-500 aria-selected:text-gray-900 aria-selected:bg-opacity-10",day_disabled:"text-gray-500 opacity-50",day_hidden:"invisible"},components:{IconLeft:({...c})=>z.jsx(WH,{...c,className:"h-4 w-4 stroke-2"}),IconRight:({...c})=>z.jsx(UH,{...c,className:"h-4 w-4 stroke-2"})}})})]})})})};t7.defaultProps={colorPros:"Default",disabledProps:!1,dateFormatProps:"Default"};const r7=({colorPros:e,labelProps:r,disabledProps:t,placeholderProps:n,buttonProps:a,buttonHide:o,requiredProp:i,hideButton:l})=>{const[s,c]=N.useState(""),f=e==="Error",g=e==="Success",w=()=>{};return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"relative flex items-center",children:[z.jsx(ve.Input,{icon:z.jsx(GH,{className:"h-5 w-5 text-gray-500"}),type:"text",label:r,value:s,onChange:y=>c(y.target.value),required:i,error:f,success:g,disabled:t,placeholder:n,crossOrigin:void 0,className:"mr-2"}),!o&&z.jsx("button",{onClick:w,className:"px-3 py-2 ml-4 bg-blue-500 text-white rounded-md hover:bg-blue-600",style:{display:l?"none":""},disabled:t,children:z.jsx("span",{children:a})})]}),f&&z.jsx("p",{className:"mt-1 text-red-500 text-sm",children:"Invalid input"}),g&&z.jsx("p",{className:"mt-1 text-green-500 text-sm",children:"Success!"})]})};r7.defaultProps={placeholderProps:"Search",colorPros:"Default",disabledProps:!1,labelProps:"Search",buttonProps:"Submit",buttonHide:!1,requiredProp:!1};const n7=({placeholderProps:e,colorPros:r,validationProps:t,disabledProps:n,labelProp:a})=>{const[o,i]=N.useState(""),[l,s]=N.useState(!0),c=w=>{i(w.target.value),s(/^(ftp|http|https):\/\/[^ "]+$/.test(w.target.value))};let f=!1,g=!1;return r==="Error"?(g=!0,f=!1):r==="Success"?(g=!1,f=!0):(g=!1,f=!1),z.jsxs("div",{className:"w-[32rem]",children:[z.jsx(ve.Input,{type:"url",label:a,crossOrigin:void 0,required:!0,onChange:c,value:o,error:g,success:f,disabled:n,placeholder:e}),!l&&z.jsxs(ve.Typography,{variant:"small",color:"red",className:"mt-1 flex items-center gap-1 font-normal",placeholder:void 0,children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"-mt-px h-4 w-4",children:z.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),t]})]})};n7.defaultProps={labelProp:"URL Document",placeholderProps:"exp: https://placeholder.com",validationProps:"Please enter a valid URL.",disabledProps:!1,colorPros:"Default"};const a7=({colorPros:e,disabledProps:r,labelProps:t})=>{let n=!1,a=!1;return e==="Error"?(a=!0,n=!1):e==="Success"?(a=!1,n=!0):(a=!1,n=!1),z.jsx("div",{className:"w-96",children:z.jsx(ve.Textarea,{label:t,disabled:r,error:a,success:n})})};a7.defaultProps={labelProps:"Additional Information",colorPros:"Default",disabledProps:!1};const o7=({data:e,title:r,subTitle:t,buttonProps:n})=>{const a={medium:"md",large:"lg"};return z.jsx(z.Fragment,{children:z.jsxs(ve.Card,{color:"transparent",shadow:!1,placeholder:void 0,children:[z.jsx(ve.Typography,{variant:"h4",color:"blue-gray",placeholder:void 0,children:r}),z.jsx(ve.Typography,{color:"gray",className:"mt-1 font-normal",placeholder:void 0,children:t}),z.jsxs("form",{className:"mt-8 mb-2 w-80 max-w-screen-lg sm:w-96",children:[z.jsx("div",{className:"mb-1 flex flex-col gap-6",children:e.map((o,i)=>z.jsx(ve.Input,{size:`${a[o.size]}`,label:o.label,placeholder:o.placeholder,crossOrigin:void 0,type:o.type},i))}),z.jsx(ve.Button,{className:"mt-6",fullWidth:!0,placeholder:void 0,children:n})]})]})})};o7.defaultProps={data:[{label:"Your Name",placeholder:"Your Name",size:"large",type:"text"}],title:"Contact Us",subTitle:"Please fill in the form below to contact us.",buttonProps:"Submit"};const i7=({placeholderProps:e,colorPros:r,disabledProps:t,requiredProps:n,labelProps:a})=>{let o=!1,i=!1;return r==="Error"?(i=!0,o=!1):r==="Success"?(i=!1,o=!0):(i=!1,o=!1),z.jsx("div",{className:"w-[32rem]",children:z.jsx(ve.Input,{type:"number",label:a,crossOrigin:void 0,required:n,error:i,success:o,disabled:t,placeholder:e})})};i7.defaultProps={labelProps:"Quantity",placeholderProps:"exp: 23",colorPros:"Default",disabledProps:!1,requiredProps:!0};const BH=({variant:e,Text:r,borderRadius:t})=>{const[n,a]=N.useState(1),[o,i]=N.useState(!1),l=()=>{i(!o),!o&&n===1&&a(0)},c=bt({success:"bg-green-500 hover:bg-green-700 shadow-md font-bold",primary:"bg-blue-500 hover:bg-blue-700 shadow-md text-white font-bold",danger:"bg-red-500 hover:bg-red-700 shadow-md text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 shadow-md text-black font-bold",dark:"bg-gray-200 hover:bg-gray-700 shadow-md text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 shadow-md text-white font-bold",White:"bg-white hover:bg-gray-400 shadow-md text-black font-bold"}[e]);return z.jsx("div",{className:"flex justify-center",children:z.jsxs("button",{type:"button",className:`relative inline-flex items-center justify-center space-x-2 p-3 text-sm font-medium text-center rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none ${c} focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800`,style:{borderRadius:`${t}px`},onClick:l,children:[z.jsx("span",{className:"",children:z.jsx("h1",{className:"md:text-xl text-xm",children:r})}),n>0&&z.jsx("div",{className:"inline-flex items-center justify-center w-6 h-6 md:text-lg text-xs font-bold bg-red-500 border-2 border-white rounded-full dark:border-gray-900",children:n})]})})},qH=({variant:e,borderRadius:r})=>{const[t,n]=N.useState(1),[a,o]=N.useState(!1),i=()=>{o(!a),!a&&t===1&&n(0)},s=bt({success:"bg-green-500 hover:bg-green-700 shadow-md font-bold",primary:"bg-blue-500 hover:bg-blue-700 shadow-md text-white font-bold",danger:"bg-red-500 hover:bg-red-700 shadow-md text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 shadow-md text-black font-bold",dark:"bg-gray-200 hover:bg-gray-700 shadow-md text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 shadow-md text-white font-bold",White:"bg-white hover:bg-gray-400 shadow-md text-black font-bold"}[e]);return z.jsx("div",{className:"flex justify-center",children:z.jsxs("button",{type:"button",className:`relative inline-flex items-center justify-center space-x-2 p-3 text-sm font-medium text-center rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none ${s} focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800`,style:{borderRadius:`${r}px`},onClick:i,children:[z.jsx(oc,{className:"w-5 h-5"}),t>0&&z.jsx("div",{className:"absolute inline-flex items-center justify-center w-6 h-6 md:text-lg text-xs font-bold text-white bg-red-500 border-2 border-white rounded-full -top-2 -end-2 dark:border-gray-900",children:t})]})})};function YH(e){return Le({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{strokeWidth:"2",d:"M1 22V9.76a2 2 0 01.851-1.636l9.575-6.72a1 1 0 011.149 0l9.574 6.72A2 2 0 0123 9.76V22a1 1 0 01-1 1h-5.333a1 1 0 01-1-1v-5.674a1 1 0 00-1-1H9.333a1 1 0 00-1 1V22a1 1 0 01-1 1H2a1 1 0 01-1-1z"}}]})(e)}const KH=({variant:e,target:r=1054,time:t=2e4,start:n=0,Text:a,borderRadius:o})=>{const l={success:"bg-green-500 hover:bg-green-700 shadow-md font-bold",primary:"bg-blue-500 hover:bg-blue-700 shadow-md text-white font-bold",danger:"bg-red-500 hover:bg-red-700 shadow-md text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 shadow-md text-black font-bold",dark:"bg-gray-200 hover:bg-gray-700 shadow-md text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 shadow-md text-white font-bold",White:"bg-white hover:bg-gray-400 shadow-md text-black font-bold"}[e],[s,c]=N.useState(n);return N.useEffect(()=>{const f=(r-n)/t,g=setInterval(()=>{s<r?c(w=>w+f):(clearInterval(g),c(r))},1);return()=>clearInterval(g)},[s,r,t,n]),z.jsx("div",{className:"flex justify-center items-center ",children:z.jsx("div",{className:"w-auto max-w-full px-3 text-center flex-0 lg:w-auto",children:z.jsxs("div",{className:`py-4 ${l} p-4 `,style:{borderRadius:`${o}px`},children:[z.jsx("span",{className:"inline-flex items-center justify-center w-10 h-10 md:text-lg text-xs font-bold border-2 border-white rounded-full dark:border-gray-900",children:z.jsx(YH,{className:"h-6 w-6"})}),z.jsx("h6",{className:"",children:a}),z.jsx("h4",{className:"font-bold dark:text-white",children:isNaN(Math.round(s))?n:Math.round(s)})]})})})},XH=({backgroundColor:e})=>{const[r,t]=N.useState(0),n=a=>{t(a)};return z.jsx(WA,{style:{backgroundColor:e},value:r,onValueChange:n,placeholder:"Enter a number"})},ZH=({variant:e,Text:r,borderRadius:t})=>{const[n,a]=N.useState(null),o=c=>{var g;const f=(g=c.target.files)==null?void 0:g[0];f&&a(f)},i=()=>{if(n){const c=URL.createObjectURL(n);window.open(c)}},s=bt({success:"bg-green-500 hover:bg-green-700 font-bold",primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold",danger:"bg-red-500 hover:bg-red-700 text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold",dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 text-white font-bold",White:"bg-white hover:bg-gray-400 text-black font-bold"}[e]);return z.jsxs("div",{className:"w-full h-full flex flex-col justify-center items-center",children:[z.jsx("input",{type:"file",accept:".pdf",onChange:o}),z.jsx("button",{className:` py-2 px-4 ${s} mt-6 `,style:{borderRadius:`${t}px`},onClick:i,children:r})]})},JH=({tagText:e,maxTags:r,disabled:t,...n})=>{const[a,o]=N.useState([]),i=s=>{const c=s[s.length-1];if(a.length<(r||1/0))o([...a,c]);else return console.log("Maximum tags reached."),!1},l=(s,c)=>{const f=[...a];f.splice(c,1),o(f)};return z.jsx(qA,{placeholder:e,values:a,onAdd:i,onRemove:l,disabled:t,...n})},QH=({placeholderProps:e="insert value",valueProps:r,readOnlyProp:t,intentProps:n})=>z.jsx(BA,{value:r,intent:n,placeholder:e,readOnly:t}),eN=({variant:e,variant1:r})=>{const[t,n]=N.useState(!1),a=()=>{n(!t)},o={success:"bg-green-500 hover:bg-green-700 font-bold",primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold",danger:"bg-red-500 hover:bg-red-700 text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold",dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 text-white font-bold",White:"bg-white hover:bg-gray-400 text-white font-bold"},i={success:"bg-green-500 hover:bg-green-700 font-bold",primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold",danger:"bg-red-500 hover:bg-red-700 text-white font-bold",warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold",dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold",light:"bg-gray-800 hover:bg-gray-400 text-white font-bold",White:"bg-white hover:bg-gray-400 text-white font-bold"},l=bt(o[e]),s=bt(i[r]);return console.log("Checked state:",t),z.jsxs("div",{className:"flex justify-center items-center ",children:[" ",z.jsx("div",{className:`flex justify-center items-center ${s} h-16 w-24`,children:z.jsxs("label",{className:"inline-flex items-center cursor-pointer",children:[z.jsx("input",{type:"checkbox",className:"sr-only peer",checked:t,onChange:a,id:"toggleButton","aria-labelledby":"toggleLabel"}),z.jsx("div",{className:`relative md:w-14 w-11 h-6 md:h-8 ${t?l:"bg-gray-800"} peer-focus:outline-none peer-focus:ring-6 rounded-full peer dark:bg-gray-700`,children:z.jsx("div",{className:`after:content-[''] after:absolute after:top-[2px] after:start-[4px] after:bg-white after:border-gray-600 after:border after:rounded-full md:after:h-7 after:h-5 md:after:w-7 after:w-5 after:transition-all dark:border-gray-700 ${t?"md:translate-x-6 translate-x-6 bg-blue-500":""}`})})]})})]})},tN=({color:e})=>{const[r,t]=N.useState(e);N.useEffect(()=>{t(e)},[e]);const n=a=>{const o=a.target.value;t(o),console.log(o)};return z.jsx(z.Fragment,{children:z.jsx("div",{className:"flex items-center justify-center ",children:z.jsxs("div",{className:"border divide-x-2 divide-gray-700 shadow-md flex items-center justify-center ",children:[z.jsx("input",{type:"text",className:"w-40 bg-white p-2 h-10",placeholder:"#RRGGBB",value:r,onChange:n}),z.jsx("input",{type:"color",className:"w-10 pl-1 bg-gray-100 h-10",value:r,onChange:n})]})})})},rN=({variant:e,variant1:r,variant2:t,text:n})=>{const a={sans:"font-sans ...",serif:"font-serif ...",mono:"font-mono ..."},o={italic:"italic ...",notitalic:"not-italic ..."},i={thin:"font-thin ...",extralight:"font-extralight ...",light:"font-light ...",normal:"font-normal ...",medium:"font-medium...",semibold:"font-semibold ...",bold:"font-bold ...",extrabold:"font-extrabold ...",black:"font-black ..."},l=bt(a[e]),s=bt(r==="italic"?o.italic:o.notitalic),c=bt(i[t]);return z.jsx("div",{children:z.jsx("span",{className:`${l} ${s} ${c} border p-2`,children:n})})},l7=({placeholderProps:e,colorPros:r,validationProps:t,disabledProps:n,requiredProps:a,labelProps:o})=>{const[i,l]=N.useState(""),s=i.trim().length>0,c=w=>{l(w.target.value)},f=r==="Error",g=r==="Success";return z.jsxs("div",{className:"w-[32rem]",children:[z.jsx(ve.Input,{type:"text",label:o,crossOrigin:void 0,required:a,onChange:c,value:i,error:f&&!s,success:g,disabled:n,placeholder:e}),!s&&z.jsxs("span",{className:"text-red-500 text-xs mt-1 flex",children:[z.jsx(F8,{className:"-mt-px h-4 w-4 mr-1"}),t]})]})};l7.defaultProps={labelProps:"Text Field",placeholderProps:"Enter Text",colorPros:"Default",validationProps:"Please enter valid text.",disabledProps:!1,requiredProps:!0};const s7=({type:e,placeholderProps:r,validationProps:t,disabledProps:n,isRequired:a,numberLength:o,decimalPoints:i,id:l,name:s})=>{const[c,f]=N.useState(""),[g,w]=N.useState(!0),[y,x]=N.useState(!1),b=v=>{f(v.target.value),h(v.target.value)},m=()=>{x(!0)},h=v=>{if(!a&&v===""){w(!0);return}switch(e){case"email":w(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(v));break;case"number":w(/^\d+$/.test(v));break;case"float":const u=new RegExp(`^\\d+(\\.\\d{0,${i}})?$`);w(u.test(v));break;case"password":w(v.length>=8);break;default:w(!0);break}},d=!g&&y;return z.jsxs("div",{className:"w-[32rem]",children:[z.jsx("input",{id:l,name:s,type:e,placeholder:r,required:a,disabled:n,value:c,onChange:b,onBlur:m,maxLength:e==="number"?o:void 0,className:`peer h-full w-full rounded-md border ${(d||a&&y)&&c===""?"border-red-500 !ring-red-500/50":"border-blue-gray-200"} border-t-transparent !border-t-blue-gray-200 bg-transparent px-3 py-3 font-sans text-sm font-normal outline outline-0 transition-all placeholder-shown:border placeholder-shown:border-blue-gray-200 placeholder-shown:border-t-blue-gray-200 focus:border-2 focus:border-t-transparent focus:outline-0 disabled:border-0 disabled:bg-blue-gray-5 border !border-gray-300 bg-white text-gray-900/80 shadow-lg shadow-gray-500/5 ring-4 ring-transparent placeholder:text-gray-500
|
|
154
|
+
focus:!border-white focus:!border-t-white focus:ring-[#bfd7fc]`}),d&&z.jsxs("span",{className:"text-red-500 text-xs mt-1 flex",children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"-mt-px h-4 w-4 mr-1",children:z.jsx("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})}),t]})]})};s7.defaultProps={placeholderProps:"Email Address",validationProps:"Please enter a valid email address.",disabledProps:!1,isRequired:!0,type:"none",numberLength:10,decimalPoints:2,id:"email",name:"email"};function nN(e){return Le({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(e)}const c7=({imgProps:e,text:r,text1:t,text2:n,text3:a,text4:o,onClick:i,backgroundColor:l,textColor:s,textColor1:c})=>{var p,C;const[f,g]=N.useState(!1),[w,y]=N.useState("en"),x=[{code:"en",name:"English",flag:"🇺🇸"},{code:"ms",name:"Malay",flag:"🇲🇾"},{code:"es",name:"Español",flag:"🇪🇸"},{code:"fr",name:"Français",flag:"🇫🇷"},{code:"zh",name:"中文",flag:"🇨🇳"},{code:"bn",name:"বাংলা",flag:"🇧🇩"}],[b,m]=N.useState(!1),h=M=>{y(M)},d=()=>{m(!b)},v={color:s},u={color:c,backgroundColor:l};return z.jsx("nav",{className:"bg-white bg-opacity-50 dark:bg-transparent dark:bg-opacity-50 border border-gray-200 dark:border-gray-700",children:z.jsxs("div",{className:"flex justify-between justify-end items-center p-2",children:[z.jsxs("div",{className:"flex md:space-x-10",children:[z.jsxs("div",{className:"flex justify-center lg:space-x-1 md:space-x-1 space-x-1 items-center",children:[z.jsx("div",{children:z.jsx("img",{className:"md:w-14 md:h-14 h-12 w-12 mx-4 hover:scale-100 transition-all ease-linear delay-50",src:e,alt:""})}),z.jsx("div",{className:"flex justify-center space-x-4 items-center md:ml-2 lg:ml-2 ml-1 text-3xl font-sans ",style:v,children:z.jsx("span",{className:"text-center",children:r})})]}),z.jsxs("div",{className:"text-left justify-start hidden lg:block xl:block",children:[z.jsx("p",{className:"font-bold",children:t}),z.jsxs("p",{className:"text-xs text-gray-400",children:[n,z.jsx("br",{}),a]})]})]}),z.jsx("div",{className:" mr-2 ",children:z.jsx("div",{onClick:()=>g(!f),className:"h-6 w-6 md:hidden mt-2 flex align-bottom text-gray-900",children:f?z.jsx(s2,{className:"icon h-6 w-6 text-gray-900"}):z.jsx(I8,{className:"icon h-6 w-6 text-gray-900"})})}),z.jsxs("div",{className:`md:flex md:space-x-8 align-center flex-row mr-2 absolute md:static lg:static ${f?" p-1 pt-1 absolute top-0 left-0 right-0 md:hidden lg:hidden flex flex-col justify-start items-center mt-24 space-y-2":"hidden"} `,children:[z.jsx("div",{className:"sm:justify-center mt-1 sm:place-content-center ",children:z.jsxs("div",{className:"relative md:w-full w-60 lg:w-full self-center",children:[z.jsx("input",{type:"search",id:"search-dropdown",className:"block p-2.5 w-full z-20 text-sm text-gray-900 rounded-lg border-gray-300 border-1 bg-gray-200 dark:bg-gray-1000 dark:border-s-gray-700 dark:border-gray-600 placeholder-gray-500 dark:text-gray-200 focus:shadow-md hover:shadow-md shadow-gray-100 transition-all ease-linear delay-50",placeholder:"Carian",required:!0}),z.jsxs("button",{type:"submit",className:"absolute top-0 end-0 p-2.5 text-sm font-medium h-full text-gray-500 focus:outline-none hover:scale-125 transition-all ease-linear delay-50",children:[z.jsx("svg",{className:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:z.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})}),z.jsx("span",{className:"sr-only",children:"Search"})]})]})}),z.jsxs("div",{className:"flex space-x-3 md:space-x-8 ",children:[z.jsxs("div",{className:"flex flex-col items-center space-y-1 mt-1 relative",children:[z.jsxs("button",{onClick:()=>d(),className:"flex items-center space-x-2 px-6 py-1 hover:shadow-md shadow-gray-100 transition-all ease-linear delay-50 rounded-md bg-gray-100 text-gray-700",children:[z.jsx("span",{className:"md:text-2xl md:pb-1 lg:text-2xl lg:pb-1 text-3xl",children:(p=x.find(M=>M.code===w))==null?void 0:p.flag}),z.jsx("span",{className:"text-lg hidden md:block lg:block",children:(C=x.find(M=>M.code===w))==null?void 0:C.name}),z.jsx("span",{className:"text-black ",children:z.jsx(nN,{})})]}),b&&z.jsx("div",{className:"absolute top-10 bg-white",children:x.map(M=>z.jsxs("button",{className:`group flex w-full items-center space-x-2 px-9 py-1 border-b-2 border-gray-200 shadow-gray-100 transition-all ease-linear delay-50 last:rounded-b-lg ${w===M.code?"bg-blue-500":"hover:bg-gray-100"}`,onClick:()=>{h(M.code),d()},children:[z.jsx("span",{className:`group-hover:text-gray-800 text-xl mr-2 mb-1 ${w===M.code?"text-gray-200":""}`,children:M.code}),z.jsx("span",{className:`group-hover:text-gray-700 ${w===M.code?"text-gray-200":""}`,children:M.name})]},M.code))})]}),z.jsx("div",{className:"flex items-left ",children:z.jsx("button",{className:"border border-s-1 border-s-gray-50 rounded-lg mt-1 text-black font-bold py-2 md:py-2 md:px-3 px-6 hover:shadow-md shadow-gray-200 transition-all ease-linear delay-50",style:u,onClick:i,children:z.jsx("span",{className:"",children:o})})})]})]})]})})};c7.propTypes={imgProps:ye.string.isRequired,text:ye.string.isRequired,text1:ye.string.isRequired,text2:ye.string.isRequired,text3:ye.string.isRequired,text4:ye.string.isRequired,backgroundColor:ye.string.isRequired,textColor:ye.string.isRequired,textColor1:ye.string.isRequired};function aN(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Dark"},child:[{tag:"path",attr:{d:"M12.741,20.917a9.389,9.389,0,0,1-1.395-.105,9.141,9.141,0,0,1-1.465-17.7,1.177,1.177,0,0,1,1.21.281,1.273,1.273,0,0,1,.325,1.293,8.112,8.112,0,0,0-.353,2.68,8.266,8.266,0,0,0,4.366,6.857,7.628,7.628,0,0,0,3.711.993,1.242,1.242,0,0,1,.994,1.963h0A9.148,9.148,0,0,1,12.741,20.917ZM10.261,4.05a.211.211,0,0,0-.065.011,8.137,8.137,0,1,0,9.131,12.526h0a.224.224,0,0,0,.013-.235.232.232,0,0,0-.206-.136A8.619,8.619,0,0,1,14.946,15.1a9.274,9.274,0,0,1-4.883-7.7,9.123,9.123,0,0,1,.4-3.008.286.286,0,0,0-.069-.285A.184.184,0,0,0,10.261,4.05Z"}}]}]})(e)}function Pi(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Flag_1"},child:[{tag:"path",attr:{d:"M20.565,3.18a.809.809,0,0,0-.81-.02l-1.13.56c-1.63.87-3.82.83-6.5-.13a9.141,9.141,0,0,0-7.3.52l-.76.41V3.56a.5.5,0,0,0-1,0V20.44a.5.5,0,0,0,1,0V15.9a.836.836,0,0,0,.2-.08l1.03-.55a8.163,8.163,0,0,1,6.5-.46c2.95,1.06,5.41,1.08,7.3.07l1.44-.72a.759.759,0,0,0,.4-.66V3.82A.751.751,0,0,0,20.565,3.18Zm-.63,10.16-1.31.66c-1.63.87-3.82.83-6.5-.13a9.141,9.141,0,0,0-7.3.52l-.76.4V5.65L5.3,4.99a8.122,8.122,0,0,1,6.5-.46c2.95,1.06,5.41,1.08,7.29.08l.85-.43Z"}}]}]})(e)}function u7(e){return Le({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Mail"},child:[{tag:"path",attr:{d:"M19.435,4.065H4.565a2.5,2.5,0,0,0-2.5,2.5v10.87a2.5,2.5,0,0,0,2.5,2.5h14.87a2.5,2.5,0,0,0,2.5-2.5V6.565A2.5,2.5,0,0,0,19.435,4.065Zm-14.87,1h14.87a1.489,1.489,0,0,1,1.49,1.39c-2.47,1.32-4.95,2.63-7.43,3.95a6.172,6.172,0,0,1-1.06.53,2.083,2.083,0,0,1-1.67-.39c-1.42-.75-2.84-1.51-4.25-2.26-1.14-.6-2.3-1.21-3.44-1.82A1.491,1.491,0,0,1,4.565,5.065Zm16.37,12.37a1.5,1.5,0,0,1-1.5,1.5H4.565a1.5,1.5,0,0,1-1.5-1.5V7.6c2.36,1.24,4.71,2.5,7.07,3.75a5.622,5.622,0,0,0,1.35.6,2.872,2.872,0,0,0,2-.41c1.45-.76,2.89-1.53,4.34-2.29,1.04-.56,2.07-1.1,3.11-1.65Z"}}]}]})(e)}const oN=({closeModal:e,backgroundColor:r,btbackgroundColor:t,bgOpacity:n,hideIcon:a})=>{const[o,i]=N.useState(""),[l,s]=N.useState(""),[c,f]=N.useState(!1),[g,w]=N.useState(!1),[y,x]=N.useState(!1),[b,m]=N.useState(""),[h,d]=N.useState(""),[v,u]=N.useState("");N.useEffect(()=>{const k=localStorage.getItem("rememberedEmail"),j=localStorage.getItem("rememberedPassword");k&&j&&(i(k),s(j),f(!0))},[]);const p=k=>{i(k.target.value)},C=k=>{s(k.target.value)},M=k=>{f(k.target.checked)},S=k=>{k.preventDefault(),c?(localStorage.setItem("rememberedEmail",o),localStorage.setItem("rememberedPassword",l)):(localStorage.removeItem("rememberedEmail"),localStorage.removeItem("rememberedPassword"))},T=()=>{console.log("Lost Password clicked")},O=()=>{x(!0)},P=k=>{k.preventDefault(),x(!1),m(""),d(""),u("")},L=()=>{w(!0)},V=()=>{w(!1),i(""),s(""),f(!1),x(!1),m(""),d(""),u(""),e()};return z.jsxs(z.Fragment,{children:[z.jsx("button",{type:"button",className:"fixed top-1/4 left-1/2 transform -translate-x-1/2 -translate-y-1/2 inline-block rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-black shadow transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow focus:bg-primary-600 focus:shadow",onClick:L,children:"button"}),g&&z.jsxs("div",{className:"fixed inset-0 z-50 overflow-auto flex items-center justify-center",children:[z.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-30",onClick:V}),z.jsxs("div",{className:"relative p-4 w-full max-w-md rounded-lg shadow dark:bg-gray-700",style:{backgroundColor:r,opacity:n},children:[z.jsx("div",{className:"flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600",style:{display:a?"none":""},children:z.jsx("button",{type:"button",className:"end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white",onClick:V,children:z.jsx(hv,{className:"w-6 h-6 text-gray-500"})})}),y?z.jsx("div",{className:"p-4 md:p-5",children:z.jsxs("form",{className:"space-y-3",onSubmit:P,children:[z.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Create Account"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Email"})}),z.jsx("input",{type:"email",placeholder:"Email",value:b,onChange:k=>m(k.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"User ID"})}),z.jsx("input",{type:"text",placeholder:"User ID",value:v,onChange:k=>u(k.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Password"})}),z.jsx("input",{type:"password",placeholder:"Password",value:h,onChange:k=>d(k.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("button",{type:"submit",className:"w-full text-white hover:bg-green-600 focus:ring-4 focus:outline-none focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800",style:{backgroundColor:t},children:"Create Account"}),z.jsx("div",{className:"mt-4",children:z.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["If you register please?"," ",z.jsx("button",{type:"button",onClick:()=>x(!1),className:"text-blue-500 hover:underline focus:outline-none",children:"Login"})]})})]})}):z.jsx("div",{className:"p-4 md:p-5",children:z.jsxs("form",{className:"space-y-3",onSubmit:S,children:[z.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Sign in to our platform"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Email"})}),z.jsx("input",{type:"email",placeholder:"Email",value:o,onChange:p,className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Password"})}),z.jsx("input",{type:"password",placeholder:"Password",value:l,onChange:C,className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsxs("div",{className:"flex justify-between",children:[z.jsxs("label",{className:"flex items-center",children:[z.jsx("input",{type:"checkbox",checked:c,onChange:M,className:"mr-2 text-blue-500"}),"Remember me"]}),z.jsx("button",{type:"button",onClick:T,className:"text-blue-500 hover:underline focus:outline-none",children:"Lost Password?"})]}),z.jsx("button",{type:"submit",className:"w-full text-white hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",style:{backgroundColor:t},children:"Login"}),z.jsx("div",{className:"mt-4",children:z.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["Not registered?"," ",z.jsx("button",{type:"button",onClick:O,className:"text-blue-500 hover:underline focus:outline-none",children:"Create account"})]})})]})})]})]})]})},iN=({closeModal:e,backgroundColor:r,btbackgroundColor:t,bgOpacity:n,hideButton:a,hideButtonDown:o,hideIcon:i})=>{const[l,s]=N.useState(""),[c,f]=N.useState(""),[g,w]=N.useState(!1),[y,x]=N.useState(!1),[b,m]=N.useState(!1),[h,d]=N.useState(""),[v,u]=N.useState(""),[p,C]=N.useState("");N.useEffect(()=>{const $=localStorage.getItem("rememberedEmail"),B=localStorage.getItem("rememberedPassword");$&&B&&(s($),f(B),w(!0))},[]);const M=$=>{s($.target.value)},S=$=>{f($.target.value)},T=$=>{w($.target.checked)},O=$=>{$.preventDefault(),m(!1),d(""),u(""),C("")},P=$=>{$.preventDefault(),g?(localStorage.setItem("rememberedEmail",l),localStorage.setItem("rememberedPassword",c)):(localStorage.removeItem("rememberedEmail"),localStorage.removeItem("rememberedPassword"))},L=()=>{console.log("Lost Password clicked")},V=()=>{x(!0)},k=()=>{x(!1),s(""),f(""),w(!1),m(!1),d(""),u(""),C(""),e()},j=()=>{m(!1)},U=()=>{m(!0)};return z.jsxs(z.Fragment,{children:[z.jsx("button",{type:"button",className:"fixed top-1/4 left-1/2 transform -translate-x-1/2 -translate-y-1/2 inline-block rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-black shadow transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow focus:bg-primary-600 focus:shadow",onClick:V,children:"button"}),y&&z.jsxs("div",{className:"fixed inset-0 z-50 overflow-auto flex items-center justify-center",children:[z.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-30",onClick:k}),z.jsxs("div",{className:"relative p-4 w-full max-w-md rounded-lg shadow dark:bg-gray-700",style:{backgroundColor:r,opacity:n},children:[z.jsx("div",{className:"flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600",style:{display:i?"none":""},children:z.jsx("button",{type:"button",className:"end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white",onClick:k,children:z.jsx(hv,{className:"w-6 h-6 text-gray-500"})})}),z.jsxs("div",{className:"flex justify-between w-full bg-gray-200 rounded-r-lg rounded-l-lg",style:{display:a?"none":""},children:[z.jsx("button",{className:"block text-black py-1 text-lg px-6 md:py-3 rounded-l-lg md:px-14 w-full",style:b?{}:{backgroundColor:t},onClick:j,children:"Login"}),z.jsx("button",{className:"block text-black py-1 text-lg whitespace-nowrap px-4 md:py-3 rounded-r-lg md:px-12 w-full ",style:b?{backgroundColor:t}:{},onClick:U,children:"Create account"})]}),b?z.jsx("div",{className:"p-4 md:p-5",children:z.jsxs("form",{className:"space-y-3",onSubmit:O,children:[z.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Create Account"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Email"})}),z.jsx("input",{type:"email",placeholder:"Email",value:h,onChange:$=>d($.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"User ID"})}),z.jsx("input",{type:"text",placeholder:"User ID",value:p,onChange:$=>C($.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Password"})}),z.jsx("input",{type:"password",placeholder:"Password",value:v,onChange:$=>u($.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("button",{type:"submit",className:"w-full text-white hover:bg-green-600 focus:ring-4 focus:outline-none focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800",style:{backgroundColor:t},children:"Create Account"})]})}):z.jsx("div",{className:"p-4 md:p-5",children:z.jsxs("form",{className:"space-y-3",onSubmit:P,children:[z.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Sign in to our platform"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Email"})}),z.jsx("input",{type:"email",placeholder:"Email",value:l,onChange:M,className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsx("label",{className:"block text-lg text-black font-medium dark:text-white",children:z.jsx("p",{children:"Password"})}),z.jsx("input",{type:"password",placeholder:"Password",value:c,onChange:S,className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-300 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:focus:ring-blue-600"}),z.jsxs("div",{className:"flex justify-between",children:[z.jsxs("label",{className:"flex items-center",children:[z.jsx("input",{type:"checkbox",checked:g,onChange:T,className:"mr-2 text-blue-500"}),"Remember me"]}),z.jsx("button",{type:"button",onClick:L,className:"text-blue-500 hover:underline focus:outline-none",children:"Lost Password?"})]}),z.jsx("button",{type:"submit",className:"w-full text-white hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",style:{backgroundColor:t},children:"Login"})]})}),z.jsxs("div",{className:"flex justify-between w-full bg-gray-200 rounded-r-lg rounded-l-lg",style:{display:o?"none":""},children:[z.jsx("button",{className:"block text-black py-1 text-lg px-6 md:py-3 rounded-l-lg md:px-14 w-full",style:b?{}:{backgroundColor:t},onClick:j,children:"Login"}),z.jsx("button",{className:"block text-black py-1 text-lg whitespace-nowrap px-4 md:py-3 rounded-r-lg md:px-12 w-full ",style:b?{backgroundColor:t}:{},onClick:U,children:"Create account"})]})]})]})]})};function lN(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}}]})(e)}function d7(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V4.5A.5.5 0 0 1 8 4z"}}]})(e)}function f7(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M4 11H2v3h2v-3zm5-4H7v7h2V7zm5-5v12h-2V2h2zm-2-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1h-2zM6 7a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm-5 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3z"}}]})(e)}function sN(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16 8a8.001 8.001 0 0 1-7.022 7.94l1.902-7.098a2.995 2.995 0 0 0 .05-1.492A2.977 2.977 0 0 0 10.237 6h5.511A8 8 0 0 1 16 8ZM0 8a8 8 0 0 0 7.927 8l1.426-5.321a2.978 2.978 0 0 1-.723.255 2.979 2.979 0 0 1-1.743-.147 2.986 2.986 0 0 1-1.043-.7L.633 4.876A7.975 7.975 0 0 0 0 8Zm5.004-.167L1.108 3.936A8.003 8.003 0 0 1 15.418 5H8.066a2.979 2.979 0 0 0-1.252.243 2.987 2.987 0 0 0-1.81 2.59ZM8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}}]})(e)}function cN(e){return Le({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"}}]})(e)}function uN(e){return Le({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const dN=({titleSub:e,items:r,textColor:t})=>{const[n,a]=N.useState(!1),[o,i]=N.useState(!1),l=r.filter(({name:s})=>s===e.title).flatMap(({data:s})=>Array.isArray(s)?s.map(({icon:c,title:f,description:g,link:w},y)=>z.jsx("a",{href:w,children:z.jsxs(ve.MenuItem,{className:"flex items-center gap-3 rounded-lg",placeholder:void 0,children:[z.jsx("div",{className:"flex items-center justify-center rounded-lg !bg-blue-gray-50 p-2 ",children:c&&N.createElement(c,{strokeWidth:2,className:"h-6 text-gray-900 w-6"})}),z.jsxs("div",{children:[z.jsx(ve.Typography,{variant:"h6",color:"blue-gray",className:"flex items-center text-sm font-bold",placeholder:void 0,children:f}),z.jsx(ve.Typography,{variant:"paragraph",className:"text-xs !font-medium text-blue-gray-500",placeholder:void 0,children:g})]})]})},y)):[]);return z.jsx(z.Fragment,{children:l.length?z.jsxs(z.Fragment,{children:[z.jsxs(ve.Menu,{open:n,handler:a,offset:{mainAxis:20},placement:"bottom",allowHover:!0,children:[z.jsx(ve.MenuHandler,{children:z.jsx(ve.Typography,{as:"div",variant:"small",className:"font-medium",placeholder:void 0,children:z.jsxs(ve.ListItem,{className:"flex items-center gap-2 py-2 pr-4 font-medium text-gray-900",selected:n||o,onClick:()=>i(s=>!s),placeholder:void 0,children:[z.jsx("div",{style:{color:`${t}`},children:e.title}),z.jsx(d7,{strokeWidth:2.5,className:`hidden h-3 w-3 transition-transform lg:block ${n?"rotate-180":""}`}),z.jsx(d7,{strokeWidth:2.5,className:`block h-3 w-3 transition-transform lg:hidden ${o?"rotate-180":""}`})]})})}),z.jsx(ve.MenuList,{className:"hidden max-w-screen-xl rounded-xl lg:block",placeholder:void 0,children:z.jsx("ul",{className:"grid grid-cols-3 outline-none gap-y-2 outline-0",children:l})})]}),z.jsx("div",{className:"block lg:hidden",children:z.jsx(ve.Collapse,{open:o,children:l})})]}):z.jsx("a",{href:e.link,style:{textDecoration:"none"},children:z.jsx(ve.Typography,{variant:"small",color:"blue-gray",className:"font-medium ",placeholder:void 0,style:{color:`${t}`},children:z.jsx(ve.ListItem,{className:"flex items-center gap-2 py-2 pr-4",placeholder:void 0,children:e.title})})},e.title)})},p7=({navlists:e,navSubItems:r,tcolor:t})=>z.jsx(ve.List,{className:"p-0 mt-4 mb-6 lg:mt-0 lg:mb-0 lg:flex-row lg:p-1 lg:pl-250",placeholder:void 0,children:e.map((n,a)=>z.jsx(dN,{titleSub:n,items:r,textColor:t},a))}),v7=({NavigationList:e,NavSubItems:r,ColorProps:t,titleProps:n="Navbar Title",borderRadius:a=0,disableTitle:o=!0,textColor:i="#030303",iconProps:l,btn1:s,btn2:c,btn:f,button1:g,button2:w})=>{const[y,x]=N.useState(!1);return N.useEffect(()=>{window.addEventListener("resize",()=>window.innerWidth>=960&&x(!1))},[]),z.jsxs(ve.Navbar,{className:"max-w-screen-xl px-4 py-2 mx-auto ",style:{borderRadius:`${a}px`,backgroundColor:`${t}`},placeholder:void 0,children:[z.jsxs("div",{className:"flex items-center justify-between text-blue-gray-900",children:[o&&z.jsxs(ve.Typography,{variant:"h6",className:"mr-4 cursor-pointer lg:ml-2",placeholder:void 0,style:{color:`${i}`},children:[z.jsx(ve.Avatar,{className:"mx-2",src:l,alt:"avatar",placeholder:void 0}),n]}),z.jsx("div",{className:"hidden lg:block",children:z.jsx(p7,{navlists:e,navSubItems:r,tcolor:i})}),f&&z.jsxs("div",{className:"hidden gap-2 lg:flex",children:[s.active&&z.jsxs(ve.Button,{variant:"text",size:"sm",className:"flex items-center gap-2",placeholder:void 0,color:s.color,onClick:g,children:[s.text,s.icon.active&&N.createElement(s.icon.icon,{strokeWidth:2,style:{color:`${s.icon.color}`,fontSize:"1.1rem"}})]}),c.active&&z.jsxs(ve.Button,{variant:"gradient",size:"sm",className:"flex items-center gap-2",placeholder:void 0,onClick:w,children:[c.text,c.icon.active&&N.createElement(c.icon.icon,{strokeWidth:2,style:{color:`${c.icon.color}`,fontSize:"1.1rem"}})]})]}),z.jsx(ve.IconButton,{variant:"text",color:"blue-gray",className:"lg:hidden",onClick:()=>x(!y),placeholder:void 0,children:y?z.jsx(cN,{className:"w-6 h-6",strokeWidth:2}):z.jsx(uN,{className:"w-6 h-6",strokeWidth:2})})]}),z.jsxs(ve.Collapse,{open:y,children:[z.jsx(p7,{navlists:e,navSubItems:r,tcolor:i}),z.jsxs("div",{className:"flex items-center w-full gap-2 flex-nowrap lg:hidden",children:[s.active&&z.jsx(ve.Button,{variant:"outlined",size:"sm",color:"blue-gray",fullWidth:!0,placeholder:void 0,onClick:g,children:s.text}),c.active&&z.jsx(ve.Button,{variant:"gradient",size:"sm",fullWidth:!0,placeholder:void 0,onClick:w,children:c.text})]})]})]})};v7.defaultProps={NavigationList:[{title:"Home",link:"/home"},{title:"SubMenu",link:"/sub"},{title:"Hubungi Kami",link:"/callme"},{title:"Contact Us",link:"/cs"}],NavSubItems:[{data:[{title:"Productsss",description:"Find the perfect solution for your needs.",icon:"",link:"#"}],name:"Contact Us"}],iconProps:"https://en.wikipedia.org/static/images/icons/wikipedia.png",titleProps:"Navbar Wikipedia",btn:!1,btn1:{text:"Mode",color:"white",fontWeight:"bold",active:!1,icon:{active:!1,color:"white",icon:aN}},btn2:{text:"Log Masuk",color:"green",fontWeight:"bold",active:!1,icon:{active:!1,color:"white",icon:qM}}};const h7=({data:e,headers:r,backgroundColor:t="#fbfbfc",TitleColor:n="#000000",TitleFontSize:a="15px",EditColor:o="#b91ff0",ViewColor:i="#00d609",DeleteColor:l="#ff0000",EditIcon:s=z.jsx($8,{}),hideIcon:c,hideIcon1:f,hideIcon2:g,filter:w})=>{const[x,b]=N.useState([]),[m,h]=N.useState(1),[d,v]=N.useState(!0),[u,p]=N.useState(""),[C]=N.useState(""),[M]=N.useState(""),[S]=N.useState(""),[T,O]=N.useState(r[0]||""),[P,L]=N.useState(!1),V=()=>{L(!0)},k=e.length,j=Math.ceil(k/7),U=Array.from({length:j},(q,Y)=>Y+1),$=q=>{h(q)};N.useEffect(()=>{const q=[...e].sort((D,W)=>{const ee=D.name.toLowerCase(),J=W.name.toLowerCase();return d?ee.localeCompare(J,void 0,{sensitivity:"base"}):J.localeCompare(ee,void 0,{sensitivity:"base"})}),Y=(m-1)*7,F=Y+7;b(q.slice(Y,F))},[e,d,m]),N.useEffect(()=>{h(1);const q=e.filter(D=>D.name.toLowerCase().includes(u.toLowerCase())&&D.indicator.toLowerCase().includes(C.toLowerCase())&&D.component.toLowerCase().includes(M.toLowerCase())&&D.Action.toLowerCase().includes(S.toLowerCase())),Y=0,F=Y+7;b(q.slice(Y,F))},[e,u,C,M,S,7]);const B=()=>{v(q=>!q)},I=()=>{h(q=>q+1)},R=()=>{h(q=>Math.max(1,q-1))},G=q=>{O(q),L(!1)};return z.jsx("div",{className:"container p-4 mx-auto",children:z.jsxs("div",{className:"overflow-x-auto ",children:[z.jsxs("div",{className:"flex justify-end items-center mb-2 ",style:{display:w?"none":""},children:[z.jsx("input",{type:"text",placeholder:"Search...",className:"px-2 py-1 border border-gray-300 rounded mr-0",value:u,onChange:q=>p(q.target.value)}),z.jsx("button",{className:" px-2 py-1 bg-gray-100 rounded border",onClick:V,children:z.jsx(xH,{className:"h-6 w-5"})}),z.jsx("div",{className:`relative ${P?"block":"hidden"}`,children:z.jsx("div",{className:"absolute mt-4 right-0 z-10 bg-white border border-gray-300 rounded shadow-md",children:z.jsx("ul",{children:r.map(q=>z.jsx("li",{className:"px-4 py-2 cursor-pointer hover:bg-gray-100",onClick:()=>G(q),children:q},q))})})})]}),z.jsxs("table",{className:"min-w-full bg-white border border-gray-300 shadow-md ",style:{backgroundColor:t,fontSize:a},children:[z.jsx("thead",{className:"text-black ",style:{color:n},children:z.jsx("tr",{className:"",children:r.map(q=>z.jsxs("th",{className:"md:px-4 px-3 py-2 text-center border-b ",children:[z.jsx("span",{children:q}),q===T&&z.jsx("button",{className:"px-2 py-1 ml-2 w-auto ",style:{color:n},onClick:B,children:z.jsx(PH,{})})]},q))})}),z.jsx("tbody",{children:x.map((q,Y)=>z.jsxs("tr",{className:`border-b divide-x-2 ${Y%2===0?"bg-gray-100":"bg-white"}`,style:{color:n},children:[r.map((F,D)=>z.jsx("td",{className:"py-1 text-center px-auto",children:q[F]},D)),z.jsxs("td",{className:"flex px-2 py-2 mb-4",children:[z.jsx("button",{className:"mx-1 text-blue-600",style:{display:c?"none":"",color:o},title:"Edit",children:s}),z.jsx("button",{className:"mx-1 text-green-600",style:{display:f?"none":"",color:i},title:"View",children:z.jsx(SH,{})}),z.jsx("button",{className:"mx-1 text-red-600",style:{display:g?"none":"",color:l},title:"Delete",children:z.jsx(OH,{})})]})]},q.id))})]}),z.jsxs("div",{className:"flex justify-start mt-2 md:justify-end",children:[z.jsx("button",{className:"px-4 py-2 text-blue-500",onClick:R,disabled:m===1,children:z.jsx(bH,{})}),z.jsx("div",{className:"flex space-x-2",children:U.map(q=>z.jsx("button",{className:`text-lg font-bold ${q===m?"text-blue-500":"text-black"}`,onClick:()=>$(q),children:q},q))}),z.jsx("button",{className:"px-4 py-2 text-blue-500",onClick:I,disabled:x.length<7||m===j,children:z.jsx(yH,{})})]}),z.jsx("br",{})]})})};h7.propTypes={backgroundColor:ye.string,backgroundColor1:ye.string,TitleColor:ye.string,TitleFontSize:ye.string,EditColor:ye.string,ViewColor:ye.string,DeleteColor:ye.string,EditIcon:ye.node};const fN=({data:e,label:r})=>{const[t,n]=N.useState(null),a=o=>{n(o)};return console.log(t),z.jsx("div",{className:"relative overflow-x-auto shadow-md sm:rounded-lg h-64",children:z.jsxs("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400",children:[z.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-gray-200 sticky top-0",children:z.jsxs("tr",{children:[z.jsx("th",{scope:"col",className:"p-4",children:"#"}),r.map((o,i)=>z.jsx("th",{scope:"col",className:"p-4",children:o.name},i))]})}),z.jsx("tbody",{className:e.length>3?"overflow-y-scroll h-24":"",children:e.map((o,i)=>z.jsxs("tr",{className:"bg-white border-b hover:bg-gray-50 dark:hover:bg-gray-100 text-black",children:[z.jsx("td",{className:"w-4 p-4",children:i+1}),z.jsx("th",{scope:"row",className:"flex items-center px-6 py-4 whitespace-nowrap",children:o.name}),z.jsx("td",{className:"px-6 py-4",children:o.email}),z.jsx("td",{className:"px-6 py-4",children:o.position}),z.jsx("td",{className:"px-6 py-4",children:o.status}),z.jsx("td",{className:"px-6 py-4",children:z.jsx("button",{type:"button",onClick:()=>a(o.id),className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",children:"Edit"})})]},i))})]})})},pN=({headerLabel:e,children:r})=>z.jsx("div",{className:"relative overflow-x-auto p-4",children:z.jsxs("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400",children:[z.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400",children:z.jsx("tr",{children:e.map(t=>z.jsx("th",{scope:"col",className:"px-6 py-3",children:t},t))})}),z.jsx("tbody",{children:r})]})});function m7(e){return Le({tag:"svg",attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:"g",attr:{},child:[]},{tag:"path",attr:{d:"M12.497 0h-6.497v2.010h1v-1.010h5v4h4v8h-4.017v1h5.017v-9.818l-4.503-4.182zM13 1.832l2.335 2.168h-2.335v-2.168zM0 3v14h11v-9.818l-4.503-4.182h-6.497zM7 4.832l2.335 2.168h-2.335v-2.168zM1 16v-12h5v4h4v8h-9z"}}]})(e)}function g7(e){return Le({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 77.488l137.472 285.088L962.08 409.04 735.664 634.88l7.616 45.311 45.28 270.16-276.607-148.784L235.36 950.415l45.295-270.224 7.584-45.311L61.904 409.008l312.592-46.464L395.04 320zm-.017-61.936c-28.656 0-54.784 16.176-66.977 41.456l-115.904 240.64-266.704 39.664c-27.391 4.096-50.143 22.8-58.975 48.384-8.817 25.664-2.145 53.904 17.199 73.152l195.408 195.2-45.328 270.656c-4.56 27.28 7.232 54.624 30.368 70.576 12.72 8.737 27.664 13.153 42.624 13.153 12.32 0 24.64-2.992 35.793-8.977l232.496-125.184 232.512 125.184a75.853 75.853 0 0 0 35.776 8.977c14.96 0 29.905-4.416 42.657-13.153 23.103-15.952 34.91-43.295 30.319-70.576l-45.344-270.656 195.504-195.2c19.344-19.248 25.968-47.504 17.152-73.152-8.848-25.616-31.6-44.32-58.976-48.385l-266.656-39.664-115.968-240.64c-12.112-25.311-38.256-41.455-66.976-41.455z"}}]})(e)}const vN=({size:e=30,variant:r="primary",icon:t="CiFlag1",text1:n="Messages",text2:a="23253"})=>{const o=()=>{switch(t){case"Flag":return z.jsx(Pi,{size:e});case"Mail":return z.jsx(u7,{size:e});case"File":return z.jsx(m7,{size:e});case"Star":return z.jsx(g7,{size:e});default:return z.jsx(Pi,{size:e})}},l={success:{success:"bg-green-500 hover:bg-green-700 text-white font-bold"},primary:{primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold"},danger:{danger:"bg-red-500 hover:bg-red-700 text-white font-bold"},warning:{warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold"},dark:{dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold"},light:{light:"bg-gray-800 hover:bg-gray-400 text-white font-bold"}}[r]||{},s=bt(...Object.values(l));return z.jsx("div",{className:"rounded",style:{backgroundColor:"#f4f6f9"},children:z.jsx("div",{className:`py-2 px-4 ${e}`,children:z.jsxs("div",{className:"flex flex-row space-x-3",children:[z.jsx("div",{className:`py-3 px-3 justify-start rounded ${s}`,children:o()}),z.jsxs("div",{className:" flex flex-col ",children:[z.jsx("p",{children:n}),z.jsx("p",{className:"mt-3 text-left text font-bold",children:a})]})]})})})},hN=({size:e=30,variant:r="primary",icon:t="CiFlag1",text1:n="Messages",text2:a="23253",backgroundColor:o="linear-gradient(to right, #ffcc00, #ff6600)"})=>{const i=()=>{switch(t){case"Flag":return z.jsx(Pi,{size:e});case"Mail":return z.jsx(u7,{size:e});case"File":return z.jsx(m7,{size:e});case"Star":return z.jsx(g7,{size:e});default:return z.jsx(Pi,{size:e})}},s={success:{success:"bg-green-500 hover:bg-green-700 text-white font-bold"},primary:{primary:"bg-blue-500 hover:bg-blue-700 text-white font-bold"},danger:{danger:"bg-red-500 hover:bg-red-700 text-white font-bold"},warning:{warning:"bg-yellow-500 hover:bg-yellow-700 text-white font-bold"},dark:{dark:"bg-gray-200 hover:bg-gray-700 text-black font-bold"},light:{light:"bg-gray-800 hover:bg-gray-400 text-white font-bold"}}[r]||{},c=bt(...Object.values(s));return z.jsx("div",{className:"rounded",style:{background:o},children:z.jsx("div",{className:`py-2 px-4 ${e}`,children:z.jsxs("div",{className:"flex flex-row space-x-3",children:[z.jsx("div",{className:`py-3 px-3 justify-start rounded ${c}`,children:i()}),z.jsxs("div",{className:" flex flex-col ",children:[z.jsx("p",{children:n}),z.jsx("p",{className:"mt-3 text-left text font-bold",children:a})]})]})})})},R5=({titleProps:e,logoProps:r,fontWeight:t,fontSize:n,flexPosition:a,...o})=>{const[i,l]=N.useState(0),s=f=>{l(i===f?0:f)},c=o.showTitleLogo?o.showTitleLogo:!1;return z.jsxs(ve.Card,{placeholder:"test",className:"h-[calc(100vh-2rem)] w-full max-w-[20rem] p-4 shadow-xl shadow-blue-gray-900/5 bg-white-grey",children:[c&&z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"grid items-center justify-center gap-4 p-4 mb-2",children:z.jsxs("div",{className:`${a} items-center`,children:[z.jsx("img",{src:r.toString(),alt:"brand",className:"h-20"}),z.jsx(ve.Typography,{className:"pt-2 tracking-widest text-center text-l",placeholder:void 0,style:{fontWeight:t,fontSize:`${n}px`},children:e})]})}),z.jsx("hr",{className:"my-2 border-blue-gray-50"})]}),z.jsx("div",{className:"p-2",children:z.jsx(ve.Typography,{placeholder:"placeholder",className:"text-xs font-bold tracking-wider text-gray-500",children:"EKSEKUTIF"})}),z.jsxs(ve.List,{placeholder:void 0,children:[z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(f7,{})}),"Dashboard"]}),z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(sN,{})}),"Modul Utama"]}),z.jsx("div",{className:"p-2",children:z.jsx(ve.Typography,{placeholder:"placeholder",className:"text-xs font-semibold tracking-wide text-gray-500",children:"PENTADBIRAN"})}),z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(f7,{})}),"Dashboard Pengguna"]}),z.jsxs(ve.Accordion,{placeholder:void 0,open:i===1,icon:z.jsx(BM,{strokeWidth:2.5,className:`mx-auto h-4 w-4 transition-transform ${i===1?"rotate-180":""}`}),children:[z.jsx(ve.ListItem,{className:"p-0",selected:i===1,placeholder:void 0,children:z.jsxs(ve.AccordionHeader,{onClick:()=>s(1),className:"p-3 border-b-0",placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(lN,{})}),z.jsx(ve.Typography,{color:"blue-gray",className:"mr-auto font-normal",placeholder:void 0,children:"Pengguna"})]})}),z.jsx(ve.AccordionBody,{className:"py-1",children:z.jsxs(ve.List,{className:"p-0",placeholder:void 0,children:[z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(vv,{strokeWidth:3,className:"w-5 h-3"})}),"Senarai Pengguna"]}),z.jsxs(ve.ListItem,{placeholder:void 0,children:[z.jsx(ve.ListItemPrefix,{placeholder:void 0,children:z.jsx(vv,{strokeWidth:3,className:"w-5 h-3"})}),"Tetapan Peranan"]})]})})]})]})]})};R5.propTypes={titleProps:ye.string},R5.defaultProps={titleProps:"MAJLIS PERBANDARAN KUANTAN"};const mN=({text:e,subtext:r})=>z.jsx("div",{className:"h-screen w-full flex items-center",children:z.jsx("div",{className:"",children:z.jsxs("div",{className:"flex flex-row ",children:[z.jsx("div",{className:"mr-14 flex items-center",children:z.jsx("h1",{className:" text-yellow-600 font-bold sm:text-5xl lg:text-7xl",children:"404"})}),z.jsxs("div",{className:"",children:[z.jsxs("div",{className:"flex flex-row ",children:[z.jsx(dv,{className:"mr-5 text-4xl text-yellow-600"}),z.jsx("h1",{className:"lg:text-2xl sm:text-xl",style:{fontFamily:"Poppins, sans-serif"},children:e})]}),z.jsx("div",{className:"mt-4",children:z.jsx("h1",{className:"lg:text-2xl sm:text-xl",style:{fontFamily:"Roboto, sans-serif"},children:r})})]})]})})}),gN=({text:e,subtext:r})=>z.jsx("div",{className:"h-screen w-full flex items-center",children:z.jsx("div",{className:"",children:z.jsxs("div",{className:"flex flex-row ",children:[z.jsx("div",{className:"mr-14 flex items-center",children:z.jsx("h1",{className:" text-red-600 font-bold sm:text-5xl lg:text-7xl",children:"500"})}),z.jsxs("div",{className:"",children:[z.jsxs("div",{className:"flex flex-row ",children:[z.jsx(dv,{className:"mr-5 text-4xl text-red-600 "}),z.jsx("h1",{className:"lg:text-2xl sm:text-xl",style:{fontFamily:"Poppins, sans-serif"},children:e})]}),z.jsx("div",{className:"mt-4",children:z.jsx("h1",{className:"lg:text-2xl sm:text-xl",style:{fontFamily:"Roboto, sans-serif"},children:r})})]})]})})});function j5(e,r){return e.map(function(t,n){return t+r[n]})}function D5(e,r){return e.map(function(t,n){return t-r[n]})}function I5(e){return Math.hypot.apply(Math,e)}function bN(e,r,t){var n=I5(r),a=n===0?0:1/n,o=t===0?0:1/t,i=o*n,l=r.map(function(f){return o*f}),s=r.map(function(f){return a*f}),c=I5(e);return{velocities:l,velocity:i,distance:c,direction:s}}function $5(e){return Math.sign?Math.sign(e):+(e>0)-+(e<0)||+e}function yN(e,r,t){return Math.max(r,Math.min(e,t))}function wN(e,r){return Math.pow(e,r*5)}function b7(e,r,t){return r===0||Math.abs(r)===1/0?wN(e,t):e*r*t/(r+t*e)}function y7(e,r,t,n){return n===void 0&&(n=.15),n===0?yN(e,r,t):e<r?-b7(r-e,t-r,n)+r:e>t?+b7(e-t,t-r,n)+t:e}function w7(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xN(e,r,t){return r&&w7(e.prototype,r),t&&w7(e,t),e}function Wt(){return Wt=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Wt.apply(this,arguments)}function x7(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function CN(e,r){if(e==null)return{};var t={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(r.indexOf(a)>=0)&&(t[a]=e[a]);return t}function f1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MN(e,r){if(e){if(typeof e=="string")return C7(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C7(e,r)}}function C7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _i(e,r){var t;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(t=MN(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
158
155
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return t=e[Symbol.iterator](),t.next.bind(t)}function M7(){}function z7(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.length===0?M7:r.length===1?r[0]:function(){for(var n,a=_i(r),o;!(o=a()).done;){var i=o.value;n=i.apply(this,arguments)||n}return n}}function I1(e,r){if(e===void 0){if(r===void 0)throw new Error("Must define fallback value if undefined is expected");e=r}return Array.isArray(e)?e:[e,e]}function T7(e){if(typeof e=="function"){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return e.apply(void 0,t)}else return e}function F5(e,r){e===void 0&&(e={});for(var t={},n=0,a=Object.entries(r);n<a.length;n++){var o=a[n],i=o[0],l=o[1];switch(typeof l){case"function":t[i]=l.call(t,e[i],i,e);break;case"object":t[i]=F5(e[i],l);break;case"boolean":l&&(t[i]=e[i]);break}}return t}function zN(){try{return"constructor"in GestureEvent}catch{return!1}}function O7(){return typeof window<"u"&&"ontouchstart"in window}function TN(){return typeof window<"u"&&"onpointerdown"in window}function S7(e){return"pointerId"in e?null:e.type==="touchend"?e.changedTouches:e.targetTouches}function P7(e){return Array.from(S7(e)).map(function(r){return r.identifier})}function _7(e){var r="buttons"in e?e.buttons:0,t=e.shiftKey,n=e.altKey,a=e.metaKey,o=e.ctrlKey;return{buttons:r,shiftKey:t,altKey:n,metaKey:a,ctrlKey:o}}var ON=function(r){return r};function E7(e,r){r===void 0&&(r=ON);var t=S7(e),n=t?t[0]:e,a=n.clientX,o=n.clientY;return r([a,o])}var SN=180,PN=.15,_N=.5,EN=50,LN=250,VN={threshold:function(r){return r===void 0&&(r=0),I1(r)},rubberband:function(r){switch(r===void 0&&(r=0),r){case!0:return I1(PN);case!1:return I1(0);default:return I1(r)}},enabled:function(r){return r===void 0&&(r=!0),r},triggerAllEvents:function(r){return r===void 0&&(r=!1),r},initial:function(r){return r===void 0&&(r=0),typeof r=="function"?r:I1(r)},transform:!0},L7=Wt({},VN,{axis:!0,lockDirection:function(r){return r===void 0&&(r=!1),r},bounds:function(r){if(r===void 0&&(r={}),typeof r=="function")return function(g){return L7.bounds(r(g))};var t=r,n=t.left,a=n===void 0?-1/0:n,o=t.right,i=o===void 0?1/0:o,l=t.top,s=l===void 0?-1/0:l,c=t.bottom,f=c===void 0?1/0:c;return[[a,i],[s,f]]}}),AN=typeof window<"u"&&window.document&&window.document.createElement,kN={enabled:function(r){return r===void 0&&(r=!0),r},domTarget:!0,window:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){return e===void 0&&(e=AN?window:void 0),e}),eventOptions:function(r){var t=r===void 0?{}:r,n=t.passive,a=n===void 0?!0:n,o=t.capture,i=o===void 0?!1:o;return{passive:a,capture:i}},transform:!0},HN=Wt({},L7,{useTouch:function(r){r===void 0&&(r=!1);var t=O7(),n=TN();return!!(r&&t||t&&!n)},experimental_preventWindowScrollY:function(r){return r===void 0&&(r=!1),r},threshold:function(r,t,n){var a=n.filterTaps,o=a===void 0?!1:a,i=n.lockDirection,l=i===void 0?!1:i,s=n.axis,c=s===void 0?void 0:s,f=I1(r,o?3:l||c?1:0);return this.filterTaps=o,f},swipeVelocity:function(r){return r===void 0&&(r=_N),I1(r)},swipeDistance:function(r){return r===void 0&&(r=EN),I1(r)},swipeDuration:function(r){return r===void 0&&(r=LN),r},delay:function(r){switch(r===void 0&&(r=0),r){case!0:return SN;case!1:return 0;default:return r}}});function NN(e){return e===void 0&&(e={}),F5(e,kN)}function RN(e){return e===void 0&&(e={}),F5(e,HN)}function jN(e){var r=e.domTarget,t=e.eventOptions,n=e.window,a=e.enabled,o=CN(e,["domTarget","eventOptions","window","enabled"]),i=NN({domTarget:r,eventOptions:t,window:n,enabled:a});return i.drag=RN(o),i}function Ro(e){return Wt({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_threshold:[0,0],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:M7,canceled:!1,memo:void 0,args:void 0},e)}function V7(){var e={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},r=Ro({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),t=Ro({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),n=Ro({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),a=Ro({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=Ro({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:e,drag:r,pinch:t,wheel:n,move:a,scroll:o}}var Pn=new Map,DN=function(r){return r},IN=function(){function e(t,n){var a=this;n===void 0&&(n=[]),this.controller=t,this.args=n,this.debounced=!0,this.setTimeout=function(o,i){var l;i===void 0&&(i=140),clearTimeout(a.controller.timeouts[a.stateKey]);for(var s=arguments.length,c=new Array(s>2?s-2:0),f=2;f<s;f++)c[f-2]=arguments[f];a.controller.timeouts[a.stateKey]=(l=window).setTimeout.apply(l,[o,i].concat(c))},this.clearTimeout=function(){clearTimeout(a.controller.timeouts[a.stateKey])},this.fireGestureHandler=function(o){if(o===void 0&&(o=!1),a.state._blocked)return a.debounced||(a.state._active=!1,a.clean()),null;if(!o&&!a.state.intentional&&!a.config.triggerAllEvents)return null;if(a.state.intentional){var i=a.state.active,l=a.state._active;a.state.active=l,a.state.first=l&&!i,a.state.last=i&&!l,a.controller.state.shared[a.ingKey]=l}var s=a.controller.pointerIds.size||a.controller.touchIds.size,c=a.controller.state.shared.buttons>0||s>0,f=Wt({},a.controller.state.shared,a.state,a.mapStateValues(a.state),{locked:!!document.pointerLockElement,touches:s,down:c}),g=a.handler(f);return a.state.memo=g!==void 0?g:a.state.memo,f},this.controller=t,this.args=n}var r=e.prototype;return r.updateSharedState=function(n){Object.assign(this.controller.state.shared,n)},r.updateGestureState=function(n){Object.assign(this.state,n)},r.checkIntentionality=function(n,a){return{_intentional:n,_blocked:!1}},r.getMovement=function(n){var a=this.config.rubberband,o=this.state,i=o._bounds,l=o._initial,s=o._active,c=o._intentional,f=o.lastOffset,g=o.movement,w=o._threshold,y=this.getInternalMovement(n,this.state),x=c[0]===!1?A7(y[0],w[0]):c[0],b=c[1]===!1?A7(y[1],w[1]):c[1],m=this.checkIntentionality([x,b],y);if(m._blocked)return Wt({},m,{_movement:y,delta:[0,0]});var h=m._intentional,d=y,v=[h[0]!==!1?y[0]-h[0]:0,h[1]!==!1?y[1]-h[1]:0],u=j5(v,f),p=s?a:[0,0];return v=k7(i,j5(v,l),p),Wt({},m,{intentional:h[0]!==!1||h[1]!==!1,_initial:l,_movement:d,movement:v,values:n,offset:k7(i,u,p),delta:D5(v,g)})},r.clean=function(){this.clearTimeout()},xN(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}},{key:"transform",get:function(){return this.config.transform||this.controller.config.transform||DN}}]),e}();function A7(e,r){return Math.abs(e)>=r?$5(e)*r:!1}function k7(e,r,t){var n=r[0],a=r[1],o=t[0],i=t[1],l=e[0],s=l[0],c=l[1],f=e[1],g=f[0],w=f[1];return[y7(n,s,c,o),y7(a,g,w,i)]}function W5(e,r,t){var n=e.state,a=r.timeStamp,o=r.type,i=n.values,l=t?0:a-n.startTime;return{_lastEventType:o,event:r,timeStamp:a,elapsedTime:l,previous:i}}function $N(e,r,t,n){var a=e.state,o=e.config,i=e.stateKey,l=e.args,s=e.transform,c=a.offset,f=t.timeStamp,g=o.initial,w=o.bounds,y=o.threshold,x=D5(s(y),s([0,0])).map(Math.abs),b=Wt({},V7()[i],{_active:!0,args:l,values:r,initial:n??r,_threshold:x,offset:c,lastOffset:c,startTime:f});return Wt({},b,{_initial:T7(g,b),_bounds:T7(w,b)})}var FN=function(r){var t=this;this.classes=r,this.pointerIds=new Set,this.touchIds=new Set,this.supportsTouchEvents=O7(),this.supportsGestureEvents=zN(),this.bind=function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];for(var i={},l=_i(t.classes),s;!(s=l()).done;){var c=s.value;new c(t,a).addBindings(i)}var f=function(y){Br(i,y,function(x){return t.nativeRefs[y](Wt({},t.state.shared,{event:x,args:a}))})};for(var g in t.nativeRefs)f(g);return t.config.domTarget?YN(t,i):KN(t,i)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var n=N7(t.config),a=t.config.eventOptions;n&&jo(n,H7(t.domListeners),a),Object.values(t.timeouts).forEach(clearTimeout),GN(t)},this.classes=r,this.state=V7(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function WN(e,r){"pointerId"in r?e.pointerIds.add(r.pointerId):e.touchIds=new Set(P7(r))}function UN(e,r){"pointerId"in r?e.pointerIds.delete(r.pointerId):P7(r).forEach(function(t){return e.touchIds.delete(t)})}function GN(e){var r=e.config,t=r.window,n=r.eventOptions,a=e.windowListeners;if(t){for(var o in a){var i=a[o];jo(t,i,n)}e.windowListeners={}}}function BN(e,r,t){var n=e.config,a=e.windowListeners;t===void 0&&(t=n.eventOptions),n.window&&(jo(n.window,a[r],t),delete a[r])}function qN(e,r,t,n){var a=e.config,o=e.windowListeners;t===void 0&&(t=[]),n===void 0&&(n=a.eventOptions),a.window&&(jo(a.window,o[r],n),R7(a.window,o[r]=t,n))}function YN(e,r){var t=e.config,n=e.domListeners,a=N7(t);if(!a)throw new Error("domTarget must be defined");var o=t.eventOptions;jo(a,H7(n),o);for(var i=0,l=Object.entries(r);i<l.length;i++){var s=l[i],c=s[0],f=s[1],g=c.slice(2).toLowerCase();n.push([g,z7.apply(void 0,f)])}R7(a,n,o)}function KN(e,r){for(var t=e.config,n={},a=t.eventOptions.capture?"Capture":"",o=0,i=Object.entries(r);o<i.length;o++){var l=i[o],s=l[0],c=l[1],f=Array.isArray(c)?c:[c],g=s+a;n[g]=z7.apply(void 0,f)}return n}function H7(e){return e===void 0&&(e=[]),e.splice(0,e.length)}function N7(e){var r=e.domTarget;return r&&"current"in r?r.current:r}function Br(e,r,t){e[r]||(e[r]=[]),e[r].push(t)}function R7(e,r,t){r===void 0&&(r=[]),t===void 0&&(t={});for(var n=_i(r),a;!(a=n()).done;){var o=a.value,i=o[0],l=o[1];e.addEventListener(i,l,t)}}function jo(e,r,t){r===void 0&&(r=[]),t===void 0&&(t={});for(var n=_i(r),a;!(a=n()).done;){var o=a.value,i=o[0],l=o[1];e.removeEventListener(i,l,t)}}function XN(e,r,t){t===void 0&&(t={});var n=JN(e),a=N.useMemo(function(){return new FN(n)},[]);return a.config=r,a.handlers=e,a.nativeRefs=t,N.useEffect(a.effect,[]),a.config.domTarget?ZN:a.bind}function ZN(){process.env.NODE_ENV==="development"&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function JN(e){var r=new Set;return e.drag&&r.add(Pn.get("drag")),e.wheel&&r.add(Pn.get("wheel")),e.scroll&&r.add(Pn.get("scroll")),e.move&&r.add(Pn.get("move")),e.pinch&&r.add(Pn.get("pinch")),e.hover&&r.add(Pn.get("hover")),r}var QN=function(e){x7(r,e);function r(){return e.apply(this,arguments)||this}var t=r.prototype;return t.getInternalMovement=function(a,o){return D5(a,o.initial)},t.checkIntentionality=function(a,o){if(a[0]===!1&&a[1]===!1)return{_intentional:a,axis:this.state.axis};var i=o.map(Math.abs),l=i[0],s=i[1],c=this.state.axis||(l>s?"x":l<s?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:a,_blocked:!1,axis:c}:c?this.config.axis&&c!==this.config.axis?{_intentional:a,_blocked:!0,axis:c}:(a[c==="x"?1:0]=!1,{_intentional:a,_blocked:!1,axis:c}):{_intentional:[!1,!1],_blocked:!1,axis:c}},t.getKinematics=function(a,o){var i=this.getMovement(a);if(!i._blocked){var l=o.timeStamp-this.state.timeStamp;Object.assign(i,bN(i.movement,i.delta,l))}return i},t.mapStateValues=function(a){return{xy:a.values,vxvy:a.velocities}},r}(IN),eR=3;function j7(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}var tR=function(e){x7(r,e);function r(){var n;return n=e.apply(this,arguments)||this,n.ingKey="dragging",n.stateKey="drag",n.setPointerCapture=function(a){if(!(n.config.useTouch||document.pointerLockElement)){var o=a.target,i=a.pointerId;o&&"setPointerCapture"in o&&o.setPointerCapture(i),n.updateGestureState({_dragTarget:o,_dragPointerId:i})}},n.releasePointerCapture=function(){if(!(n.config.useTouch||document.pointerLockElement)){var a=n.state,o=a._dragTarget,i=a._dragPointerId;if(i&&o&&"releasePointerCapture"in o&&(!("hasPointerCapture"in o)||o.hasPointerCapture(i)))try{o.releasePointerCapture(i)}catch{}}},n.preventScroll=function(a){n.state._dragPreventScroll&&a.cancelable&&a.preventDefault()},n.getEventId=function(a){return n.config.useTouch?a.changedTouches[0].identifier:a.pointerId},n.isValidEvent=function(a){return n.state._pointerId===n.getEventId(a)},n.shouldPreventWindowScrollY=n.config.experimental_preventWindowScrollY&&n.controller.supportsTouchEvents,n.setUpWindowScrollDetection=function(a){j7(a),qN(n.controller,n.stateKey,[["touchmove",n.preventScroll],["touchend",n.clean.bind(f1(n))],["touchcancel",n.clean.bind(f1(n))]],{passive:!1}),n.setTimeout(n.startDrag.bind(f1(n)),250,a)},n.setUpDelayedDragTrigger=function(a){n.state._dragDelayed=!0,j7(a),n.setTimeout(n.startDrag.bind(f1(n)),n.config.delay,a)},n.setStartState=function(a){var o=E7(a,n.transform);n.updateSharedState(_7(a)),n.updateGestureState(Wt({},$N(f1(n),o,a),W5(f1(n),a,!0),{_pointerId:n.getEventId(a)})),n.updateGestureState(n.getMovement(o))},n.onDragStart=function(a){WN(n.controller,a),!(!n.enabled||n.state._active)&&(n.setStartState(a),n.setPointerCapture(a),n.shouldPreventWindowScrollY?n.setUpWindowScrollDetection(a):n.config.delay>0?n.setUpDelayedDragTrigger(a):n.startDrag(a,!0))},n.onDragChange=function(a){if(!(n.state.canceled||!n.state._active||!n.isValidEvent(a)||n.state._lastEventType===a.type&&a.timeStamp===n.state.timeStamp)){var o;if(document.pointerLockElement){var i=a.movementX,l=a.movementY;o=j5(n.transform([i,l]),n.state.values)}else o=E7(a,n.transform);var s=n.getKinematics(o,a);if(!n.state._dragStarted){if(n.state._dragDelayed){n.startDrag(a);return}if(n.shouldPreventWindowScrollY)if(!n.state._dragPreventScroll&&s.axis)if(s.axis==="x")n.startDrag(a);else{n.state._active=!1;return}else return;else return}var c=_7(a);n.updateSharedState(c);var f=W5(f1(n),a),g=I5(s._movement),w=n.state._dragIsTap;w&&g>=eR&&(w=!1),n.updateGestureState(Wt({},f,s,{_dragIsTap:w})),n.fireGestureHandler()}},n.onDragEnd=function(a){if(UN(n.controller,a),!!n.isValidEvent(a)&&(n.clean(),!!n.state._active)){n.state._active=!1;var o=n.state._dragIsTap,i=n.state.velocities,l=i[0],s=i[1],c=n.state.movement,f=c[0],g=c[1],w=n.state._intentional,y=w[0],x=w[1],b=n.config.swipeVelocity,m=b[0],h=b[1],d=n.config.swipeDistance,v=d[0],u=d[1],p=n.config.swipeDuration,C=Wt({},W5(f1(n),a),n.getMovement(n.state.values)),M=[0,0];C.elapsedTime<p&&(y!==!1&&Math.abs(l)>m&&Math.abs(f)>v&&(M[0]=$5(l)),x!==!1&&Math.abs(s)>h&&Math.abs(g)>u&&(M[1]=$5(s))),n.updateSharedState({buttons:0}),n.updateGestureState(Wt({},C,{tap:o,swipe:M})),n.fireGestureHandler(n.config.filterTaps&&o===!0)}},n.clean=function(){e.prototype.clean.call(f1(n)),n.state._dragStarted=!1,n.releasePointerCapture(),BN(n.controller,n.stateKey)},n.onCancel=function(){n.state.canceled||(n.updateGestureState({canceled:!0,_active:!1}),n.updateSharedState({buttons:0}),setTimeout(function(){return n.fireGestureHandler()},0))},n.onClick=function(a){n.state._dragIsTap||a.stopPropagation()},n}var t=r.prototype;return t.startDrag=function(a,o){o===void 0&&(o=!1),!(!this.state._active||this.state._dragStarted)&&(o||this.setStartState(a),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())},t.addBindings=function(a){if(this.config.useTouch?(Br(a,"onTouchStart",this.onDragStart),Br(a,"onTouchMove",this.onDragChange),Br(a,"onTouchEnd",this.onDragEnd),Br(a,"onTouchCancel",this.onDragEnd)):(Br(a,"onPointerDown",this.onDragStart),Br(a,"onPointerMove",this.onDragChange),Br(a,"onPointerUp",this.onDragEnd),Br(a,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){var o=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";Br(a,o,this.onClick)}},r}(QN);function rR(e,r){var t,n=[],a,o=!1;function i(){for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return o&&t===this&&r(s,n)||(a=e.apply(this,s),o=!0,t=this,n=s),a}return i}function Ei(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var t,n,a;if(Array.isArray(e)){if(t=e.length,t!==r.length)return!1;for(n=t;n--!==0;)if(!Ei(e[n],r[n]))return!1;return!0}var o;if(typeof Map=="function"&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!r.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!Ei(n.value[1],r.get(n.value[0])))return!1;return!0}if(typeof Set=="function"&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!r.has(n.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),t=a.length,t!==Object.keys(r).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;if(typeof Element<"u"&&e instanceof Element)return!1;for(n=t;n--!==0;)if(!(a[n]==="_owner"&&e.$$typeof)&&!Ei(e[a[n]],r[a[n]]))return!1;return!0}return e!==e&&r!==r}function nR(e,r){try{return Ei(e,r)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}function D7(e,r){r===void 0&&(r={}),Pn.set("drag",tR);var t=N.useRef();return t.current||(t.current=rR(jN,nR)),XN({drag:e},t.current(r))}const aR=e=>Array(e.length).fill(null).map(()=>N.useRef(null)),oR=({items:e,onDragStart:r,onDragEnd:t})=>{const n=N.useRef(null),a=N.useRef(null),o=N.useRef(aR(e)),[i,l]=N.useState([]),[s,c]=N.useState([]),[,f]=N.useState(null);N.useEffect(()=>{if(n.current){const x=n.current.getBoundingClientRect();f(x)}},[]);const g=D7(({movement:x,args:[b]})=>{var p;const[m,h]=x;r&&r();const d=m,v=h,u=(p=o.current[b])==null?void 0:p.current;u&&(u.style.transform=`translate(${d}px, ${v}px)`)},{initialIndex:()=>i,bounds:a,onDragStart:({active:x})=>{l(x)},onDragEnd:()=>{l([]),t&&t()}}),w=()=>{if(i.length>0){const x=i.map(b=>e[b]);c(b=>[...b,...x])}},y=x=>{c(b=>b.filter(m=>m.id!==x))};return z.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[z.jsx("div",{className:"col-span-1 h-screen border p-4 py-4 space-y-2",ref:n,children:e.map((x,b)=>z.jsx(Dn.div,{className:"w-32 h-8 text-white bg-red-500 rounded-md flex items-center justify-center cursor-move mr-2",ref:o.current[b],...g(b),children:z.jsx("span",{children:x.text})},b))}),z.jsx("div",{className:"col-span-3 h-screen border flex justify-center items-center relative",ref:a,onDrop:w,onDragOver:x=>x.preventDefault(),children:s.map((x,b)=>z.jsxs("div",{style:{position:"absolute",left:"0",top:"0"},children:[z.jsx(Dn.div,{className:"w-32 h-32 text-white bg-blue-500 rounded-md flex items-center justify-center cursor-move",...g(),children:x.text}),z.jsx("button",{className:"text-green-400",onClick:()=>y(x.id),style:{position:"absolute",top:"4px",right:"4px",zIndex:10},children:z.jsx(s2,{})})]},b))})]})},iR=({onDragStart:e,onDragEnd:r})=>{const t=N.useRef(null),n=N.useRef(null),[a,o]=N.useState(!1),[i,l]=N.useState(0),[s,c]=N.useState(0),[f,g]=N.useState(0),w=({movement:b})=>{const[m,h]=b;if(e&&!a&&e(),o(!0),t.current&&n.current){const d=n.current.getBoundingClientRect(),v=d.width-f,u=d.height-f;let p=Math.max(0,Math.min(m,v)),C=Math.max(0,Math.min(h,u));p=Math.min(p,i),C=Math.min(C,s),t.current.style.left=`${p}px`,t.current.style.top=`${C}px`}},y=()=>{o(!1),r&&r()},x=D7(w,{onDragEnd:y});return N.useEffect(()=>(x&&x(),()=>{y()}),[x]),N.useEffect(()=>{if(n.current&&t.current){const b=n.current.getBoundingClientRect();l(b.width-f),c(b.height-f)}},[f]),N.useEffect(()=>{if(t.current){const b=t.current.getBoundingClientRect();g(b.width),t.current.style.left="0px",t.current.style.top="0px"}},[]),z.jsx("div",{ref:n,className:"h-screen w-auto border flex justify-center items-center relative",onDrop:y,onDragOver:b=>b.preventDefault(),children:z.jsx(Dn.div,{ref:t,className:"w-18 h-20 text-white bg-red-500 rounded-md flex items-center justify-center cursor-move md:w-32 md:h-32 md:text-xl md:cursor-pointer",drag:!0,dragConstraints:n,children:z.jsx("span",{className:"p-2",children:" Drag Me!"})})})},I7=({title:e,colorProp:r})=>{const t=()=>{const o=document.getElementById("toast-default");o&&(o.style.display="none")},a={success:{bg:"bg-green-500",text:"text-white"},primary:{bg:"bg-blue-500",text:"text-white"},danger:{bg:"bg-red-600",text:"text-white"},warning:{bg:"bg-yellow-400",text:"text-black"},info:{bg:"bg-cyan-400",text:"text-white"},secondary:{bg:"bg-teal-400",text:"text-white"},pink:{bg:"bg-pink-600",text:"text-white"},purple:{bg:"bg-purple-500",text:"text-white"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-default",className:`fixed top-10 left-10 flex items-center w-full max-w-xs p-4 ${a.text} ${a.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${a.text} hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-default","aria-label":"Close",onClick:t,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};I7.defaultProps={title:"Pendaftaran Berjaya !!",colorProp:"success"};const $7=({title:e,colorProp:r})=>{const t=()=>{const o=document.getElementById("toast-default");o&&(o.style.display="none")},a={success:{bg:"bg-green-500",text:"text-white"},primary:{bg:"bg-blue-500",text:"text-white"},danger:{bg:"bg-red-600",text:"text-white"},warning:{bg:"bg-yellow-400",text:"text-black"},info:{bg:"bg-cyan-400",text:"text-white"},secondary:{bg:"bg-teal-400",text:"text-white"},pink:{bg:"bg-pink-600",text:"text-white"},purple:{bg:"bg-purple-500",text:"text-white"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-default",className:`fixed top-10 right-10 flex items-center w-full max-w-xs p-4 ${a.text} ${a.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${a.text} hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-default","aria-label":"Close",onClick:t,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};$7.defaultProps={title:"Pendaftaran Berjaya !!",colorProp:"success"};const F7=({title:e,colorProp:r})=>{const t=()=>{const o=document.getElementById("toast-default");o&&(o.style.display="none")},a={success:{bg:"bg-green-500",text:"text-white"},primary:{bg:"bg-blue-500",text:"text-white"},danger:{bg:"bg-red-600",text:"text-white"},warning:{bg:"bg-yellow-400",text:"text-black"},info:{bg:"bg-cyan-400",text:"text-white"},secondary:{bg:"bg-teal-400",text:"text-white"},pink:{bg:"bg-pink-600",text:"text-white"},purple:{bg:"bg-purple-500",text:"text-white"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-default",className:`fixed bottom-10 left-10 flex items-center w-full max-w-xs p-4 ${a.text} ${a.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${a.text} hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-default","aria-label":"Close",onClick:t,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};F7.defaultProps={title:"Pendaftaran Berjaya !!",colorProp:"success"};const W7=({title:e,colorProp:r})=>{const t=()=>{const o=document.getElementById("toast-default");o&&(o.style.display="none")},a={success:{bg:"bg-green-500",text:"text-white"},primary:{bg:"bg-blue-500",text:"text-white"},danger:{bg:"bg-red-600",text:"text-white"},warning:{bg:"bg-yellow-400",text:"text-black"},info:{bg:"bg-cyan-400",text:"text-white"},secondary:{bg:"bg-teal-400",text:"text-white"},pink:{bg:"bg-pink-600",text:"text-white"},purple:{bg:"bg-purple-500",text:"text-white"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-default",className:`fixed bottom-10 right-10 flex items-center w-full max-w-xs p-4 ${a.text} ${a.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${a.text} hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-default","aria-label":"Close",onClick:t,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};W7.defaultProps={title:"Pendaftaran Berjaya !!",colorProp:"success"};const U7=({title:e,colorProp:r,iconProp:t})=>{const n=()=>{const i=document.getElementById("toast-default");i&&(i.style.display="none")},o={success:{bg:"bg-green-500",text:"text-white",bgIcon:"bg-green-200"},primary:{bg:"bg-blue-500",text:"text-white",bgIcon:"bg-blue-200"},danger:{bg:"bg-red-600",text:"text-white",bgIcon:"bg-red-200"},warning:{bg:"bg-yellow-400",text:"text-black",bgIcon:"bg-yellow-200"},info:{bg:"bg-cyan-400",text:"text-white",bgIcon:"bg-cyan-200"},secondary:{bg:"bg-teal-400",text:"text-white",bgIcon:"bg-teal-200"},pink:{bg:"bg-pink-600",text:"text-white",bgIcon:"bg-pink-200"},purple:{bg:"bg-purple-500",text:"text-white",bgIcon:"bg-purple-200"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-default",className:`flex items-center w-full max-w-xs p-4 ${o.text} ${o.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsx("div",{className:`inline-flex items-center justify-center flex-shrink-0 w-8 h-8 ${o.bgIcon} bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200`,children:t}),z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${o.text} hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-default","aria-label":"Close",onClick:n,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};U7.defaultProps={title:"Pendaftaran Berjaya !!",colorProp:"success",iconProp:z.jsx("svg",{className:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 20",children:z.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15.147 15.085a7.159 7.159 0 0 1-6.189 3.307A6.713 6.713 0 0 1 3.1 15.444c-2.679-4.513.287-8.737.888-9.548A4.373 4.373 0 0 0 5 1.608c1.287.953 6.445 3.218 5.537 10.5 1.5-1.122 2.706-3.01 2.853-6.14 1.433 1.049 3.993 5.395 1.757 9.117Z"})})};const G7=({title:e,colorProp:r,iconProp:t})=>{const[n,a]=N.useState(!0);N.useEffect(()=>{const l=setTimeout(()=>{a(!1)},3e3);return()=>clearTimeout(l)},[3e3]);const i={success:{bg:"bg-green-500",text:"text-white",bgIcon:"bg-green-200"},primary:{bg:"bg-blue-500",text:"text-white",bgIcon:"bg-blue-200"},danger:{bg:"bg-red-600",text:"text-white",bgIcon:"bg-red-200"},warning:{bg:"bg-yellow-400",text:"text-black",bgIcon:"bg-yellow-200"},info:{bg:"bg-cyan-400",text:"text-white",bgIcon:"bg-cyan-200"},secondary:{bg:"bg-teal-400",text:"text-white",bgIcon:"bg-teal-200"},pink:{bg:"bg-pink-600",text:"text-white",bgIcon:"bg-pink-200"},purple:{bg:"bg-purple-500",text:"text-white",bgIcon:"bg-purple-200"}}[r];return z.jsx("div",{className:`toast-container transition-opacity duration-1000 ease-in-out ${n?"opacity-100":"opacity-0"}`,children:n&&z.jsxs("div",{id:"toast-default",className:`toast-content flex items-center w-full max-w-xs p-4 ${i.text} ${i.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800 transition-transform duration-500 ease-in-out transform ${n?"translate-y-0 opacity-100":"translate-y-20 opacity-0"}`,role:"alert",children:[z.jsx("div",{className:`inline-flex items-center justify-center flex-shrink-0 w-8 h-8 ${i.bgIcon} bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200`,children:t}),z.jsx("div",{className:"ms-3 text-sm font-normal",children:e})]})})};G7.defaultProps={title:"Pendaftaran Berjaya !!",colorProp:"success",iconProp:z.jsx("svg",{className:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 20",children:z.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15.147 15.085a7.159 7.159 0 0 1-6.189 3.307A6.713 6.713 0 0 1 3.1 15.444c-2.679-4.513.287-8.737.888-9.548A4.373 4.373 0 0 0 5 1.608c1.287.953 6.445 3.218 5.537 10.5 1.5-1.122 2.706-3.01 2.853-6.14 1.433 1.049 3.993 5.395 1.757 9.117Z"})})};const B7=({title:e,subTitle:r,colorProp:t,imageProp:n})=>{const a=()=>{const l=document.getElementById("toast-message-cta");l&&(l.style.display="none")},i={success:{bg:"bg-green-500",text:"text-white",bgIcon:"bg-green-200"},primary:{bg:"bg-blue-500",text:"text-white",bgIcon:"bg-blue-200"},danger:{bg:"bg-red-600",text:"text-white",bgIcon:"bg-red-200"},warning:{bg:"bg-yellow-400",text:"text-black",bgIcon:"bg-yellow-200"},info:{bg:"bg-cyan-400",text:"text-white",bgIcon:"bg-cyan-200"},secondary:{bg:"bg-teal-400",text:"text-white",bgIcon:"bg-teal-200"},pink:{bg:"bg-pink-600",text:"text-white",bgIcon:"bg-pink-200"},purple:{bg:"bg-purple-500",text:"text-white",bgIcon:"bg-purple-200"}}[t];return z.jsx(z.Fragment,{children:z.jsx("div",{id:"toast-message-cta",className:`w-full max-w-xs p-4 ${i.text} ${i.bg} rounded-lg shadow dark:bg-gray-800 dark:text-gray-400`,role:"alert",children:z.jsxs("div",{className:"flex",children:[z.jsx("img",{className:"w-10 h-10 rounded-full bg-white",src:n,alt:"Jese Leos image"}),z.jsxs("div",{className:"ms-3 text-sm font-normal ",children:[z.jsx("span",{className:"mb-1 text-sm font-semibold",children:e}),z.jsx("div",{className:"mb-2 text-sm font-normal",children:r})]}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 justify-center items-center flex-shrink-0 ${i.text} hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-message-cta","aria-label":"Close",onClick:a,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})})};B7.defaultProps={title:"Pendaftaran Berjaya !!",subTitle:"Pendaftaran anda telah berjaya. Sila semak emel anda untuk pengesahan pendaftaran.",colorProp:"primary",imageProp:"https://cdn-icons-png.flaticon.com/512/5556/5556499.png"};const q7=({title:e,colorProp:r,iconProp:t})=>{const n=()=>{const i=document.getElementById("toast-success");i&&(i.style.display="none")},o={success:{bg:"bg-green-500",text:"text-white"},primary:{bg:"bg-blue-500",text:"text-white"},danger:{bg:"bg-red-600",text:"text-white"},warning:{bg:"bg-yellow-400",text:"text-black"},info:{bg:"bg-cyan-400",text:"text-white"},secondary:{bg:"bg-teal-400",text:"text-white"},pink:{bg:"bg-pink-600",text:"text-white"},purple:{bg:"bg-purple-500",text:"text-white"},Default:{bg:"bg-white",text:"text-gray-600"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-success",className:`flex items-center w-full max-w-xs p-4 mb-4 ${o.text} ${o.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsxs("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200",children:[t,z.jsx("span",{className:"sr-only",children:"Check icon"})]}),z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${o.text} rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-success","aria-label":"Close",onClick:n,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};q7.defaultProps={title:"Item moved successfully.",colorProp:"Default",iconProp:z.jsx("svg",{className:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:z.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})})};const Y7=({title:e,colorProp:r,iconProp:t})=>{const n=()=>{const i=document.getElementById("toast-danger");i&&(i.style.display="none")},o={success:{bg:"bg-green-500",text:"text-white"},primary:{bg:"bg-blue-500",text:"text-white"},danger:{bg:"bg-red-600",text:"text-white"},warning:{bg:"bg-yellow-400",text:"text-black"},info:{bg:"bg-cyan-400",text:"text-white"},secondary:{bg:"bg-teal-400",text:"text-white"},pink:{bg:"bg-pink-600",text:"text-white"},purple:{bg:"bg-purple-500",text:"text-white"},Default:{bg:"bg-white",text:"text-gray-600"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-danger",className:`flex items-center w-full max-w-xs p-4 mb-4 ${o.text} ${o.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsxs("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200",children:[t,z.jsx("span",{className:"sr-only",children:"Error icon"})]}),z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${o.text} rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-danger","aria-label":"Close",onClick:n,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};Y7.defaultProps={title:"Item has been deleted.",colorProp:"Default",iconProp:z.jsx("svg",{className:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:z.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 11.793a1 1 0 1 1-1.414 1.414L10 11.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L8.586 10 6.293 7.707a1 1 0 0 1 1.414-1.414L10 8.586l2.293-2.293a1 1 0 0 1 1.414 1.414L11.414 10l2.293 2.293Z"})})};const K7=({title:e,colorProp:r,iconProp:t})=>{const n=()=>{const i=document.getElementById("toast-success");i&&(i.style.display="none")},o={success:{bg:"bg-green-500",text:"text-white",bgIcon:"bg-green-200"},primary:{bg:"bg-blue-500",text:"text-white",bgIcon:"bg-blue-200"},danger:{bg:"bg-red-600",text:"text-white",bgIcon:"bg-red-200"},warning:{bg:"bg-yellow-400",text:"text-black",bgIcon:"bg-yellow-200"},info:{bg:"bg-cyan-400",text:"text-white",bgIcon:"bg-cyan-200"},secondary:{bg:"bg-teal-400",text:"text-white",bgIcon:"bg-teal-200"},pink:{bg:"bg-pink-600",text:"text-white",bgIcon:"bg-pink-200"},purple:{bg:"bg-purple-500",text:"text-white",bgIcon:"bg-purple-200"},Default:{bg:"bg-white",text:"text-grey-500",bgIcon:"bg-grey-500"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-success",className:`flex items-center w-full max-w-xs p-4 mb-4 ${o.text} ${o.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsx("div",{className:`inline-flex items-center justify-center flex-shrink-0 w-8 h-8 ${o.bgIcon} bg-blue-100 rounded-lg dark:bg-green-800 dark:text-green-200`,children:t}),z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${o.text} rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-success","aria-label":"Close",onClick:n,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};K7.defaultProps={title:"Information about the Sweet Toast",colorProp:"info",iconProp:z.jsx("svg",{className:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",children:z.jsx("path",{fillRule:"evenodd",d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm9.4-5.5a1 1 0 1 0 0 2 1 1 0 1 0 0-2ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0-2h4a1 1 0 1 0 0-2h-1v-4c0-.6-.4-1-1-1h-2Z",clipRule:"evenodd"})})};const X7=({title:e,colorProp:r,iconProp:t})=>{const n=()=>{const i=document.getElementById("toast-success");i&&(i.style.display="none")},o={success:{bg:"bg-green-500",text:"text-white"},primary:{bg:"bg-blue-500",text:"text-white"},danger:{bg:"bg-red-600",text:"text-white"},warning:{bg:"bg-yellow-400",text:"text-black"},info:{bg:"bg-cyan-400",text:"text-white"},secondary:{bg:"bg-teal-400",text:"text-white"},pink:{bg:"bg-pink-600",text:"text-white"},purple:{bg:"bg-purple-500",text:"text-white"},Default:{bg:"bg-white",text:"text-gray-600"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-warning",className:`flex items-center w-full max-w-xs p-4 ${o.text} ${o.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsxs("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-700 dark:text-orange-200",children:[t,z.jsx("span",{className:"sr-only",children:"Warning icon"})]}),z.jsx("div",{className:"ms-3 text-sm font-normal",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${o.text} rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-warning","ria-label":"Close",onClick:n,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};X7.defaultProps={title:"Improve password difficulty.",colorProp:"Default",iconProp:z.jsx("svg",{className:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:z.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z"})})};const Z7=({title:e,colorProp:r})=>{const t=()=>{const o=document.getElementById("toast-success");o&&(o.style.display="none")},a={success:{bg:"bg-green-500",text:"text-white",bgIcon:"bg-green-200"},primary:{bg:"bg-blue-500",text:"text-white",bgIcon:"bg-blue-200"},danger:{bg:"bg-red-600",text:"text-white",bgIcon:"bg-red-200"},warning:{bg:"bg-yellow-400",text:"text-black",bgIcon:"bg-orange-200"},info:{bg:"bg-cyan-400",text:"text-white",bgIcon:"bg-cyan-200"},secondary:{bg:"bg-teal-400",text:"text-white",bgIcon:"bg-teal-200"},pink:{bg:"bg-pink-600",text:"text-white",bgIcon:"bg-pink-200"},purple:{bg:"bg-purple-500",text:"text-white",bgIcon:"bg-purple-200"},Default:{bg:"bg-white",text:"text-gray-500",bgIcon:"bg-gray-200"}}[r];return z.jsx(z.Fragment,{children:z.jsxs("div",{id:"toast-warning",className:`flex items-center w-full max-w-xs p-4 ${a.text} ${a.bg} rounded-lg shadow dark:text-gray-400 dark:bg-gray-800`,role:"alert",children:[z.jsxs("div",{className:`inline-flex items-center justify-center ${a.bgIcon} flex-shrink-0 w-8 h-8 rounded-lg`,children:[z.jsx("svg",{className:"w-6 h-6","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.5 10a2.5 2.5 0 1 1 5 .2 2.4 2.4 0 0 1-2.5 2.4V14m0 3h0m9-5a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),z.jsx("span",{className:"sr-only",children:"Warning icon"})]}),z.jsx("div",{className:"ms-3 text-sm font-normal bg-gr",children:e}),z.jsxs("button",{type:"button",className:`ms-auto -mx-1.5 -my-1.5 ${a.text} rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700`,"data-dismiss-target":"#toast-warning","ria-label":"Close",onClick:t,children:[z.jsx("span",{className:"sr-only",children:"Close"}),z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})})]})]})})};Z7.defaultProps={title:"Improve password difficulty.",colorProp:"Default"};var lR=function(e,r){return Bt(void 0,void 0,void 0,function(){var t;return qt(this,function(n){switch(n.label){case 0:return[4,Promise.resolve().then(()=>QE)];case 1:return t=n.sent().getIconPaths,[2,t(e,r)]}})})};const sR=Object.freeze(Object.defineProperty({__proto__:null,allPathsLoader:lR},Symbol.toStringTag,{value:"Module"}));var cR=function(e,r){return Bt(void 0,void 0,void 0,function(){var t,n;return qt(this,function(a){switch(a.label){case 0:return t=ii(e),r!==Se.STANDARD?[3,2]:[4,Promise.resolve().then(()=>Rc)];case 1:return n=a.sent(),[3,4];case 2:return[4,Promise.resolve().then(()=>jc)];case 3:n=a.sent(),a.label=4;case 4:return[2,n[t]]}})})};const uR=Object.freeze(Object.defineProperty({__proto__:null,splitPathsBySizeLoader:cR},Symbol.toStringTag,{value:"Module"}));ge.MdErrorPage404=mN,ge.MdErrorPage500=gN,ge.MdStaticBadgeIconNotification=qH,ge.MdStaticBadgeNotification=BH,ge.MdStaticBtnIcon=YM,ge.MdStaticBtnIconOutline=KM,ge.MdStaticButton=V8,ge.MdStaticCalendar=oH,ge.MdStaticCard=lH,ge.MdStaticCardImgSide=iH,ge.MdStaticCardProgressBar=sH,ge.MdStaticCardTab=cH,ge.MdStaticCarousel=uH,ge.MdStaticColorPicker=tN,ge.MdStaticConstraintsDragDrop=oR,ge.MdStaticCountdown=KH,ge.MdStaticDatePickerField=t7,ge.MdStaticDragDropSimple=iR,ge.MdStaticDropdown=pH,ge.MdStaticEmailField=Q6,ge.MdStaticFileInput=J6,ge.MdStaticFontType=rN,ge.MdStaticFooter=kH,ge.MdStaticFooter2=$H,ge.MdStaticHeader=c7,ge.MdStaticInfoBox=vN,ge.MdStaticInfoBoxShadow=hN,ge.MdStaticModalForm=oN,ge.MdStaticModalTab=iN,ge.MdStaticMoreLessButton=A8,ge.MdStaticMultiselect=CH,ge.MdStaticNavbar=v7,ge.MdStaticNumberField=e7,ge.MdStaticPDFViewer=ZH,ge.MdStaticPasswordField=FH,ge.MdStaticSearchDropdown=MH,ge.MdStaticSearchField=r7,ge.MdStaticSidebar=R5,ge.MdStaticSpinnerField=i7,ge.MdStaticSplitButton=U8,ge.MdStaticTagInput=JH,ge.MdStaticTextAreaField=a7,ge.MdStaticTextField=l7,ge.MdStaticTextFieldSet=o7,ge.MdStaticTextInput=s7,ge.MdStaticTextarea1=QH,ge.MdStaticToastAutoHide=G7,ge.MdStaticToastDefaultBottomLeft=F7,ge.MdStaticToastDefaultBottomRight=W7,ge.MdStaticToastDefaultTopLeft=I7,ge.MdStaticToastDefaultTopRight=$7,ge.MdStaticToastIcon=U7,ge.MdStaticToastImage=B7,ge.MdStaticToggleSwitch=eN,ge.MdStaticURLField=n7,ge.MdStaticWSortIcon=h7,ge.MdSweetToastError=Y7,ge.MdSweetToastInfo=K7,ge.MdSweetToastQuestion=Z7,ge.MdSweetToastSuccess=q7,ge.MdSweetToastWarning=X7,ge.MdTableDynamic=pN,ge.MdstaticCheckbox=dH,ge.MdstaticCheckboxGroup=fH,ge.MdstaticNumericInput1=XH,ge.Table02=fN,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});
|