Files
stackpulse/backend/public/assets/index-1a97f764.js
T
2025-10-15 19:31:09 +00:00

782 lines
1.4 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function N2(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const f of l.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=r(s);fetch(s.href,l)}})();function Xx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Il(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var Yx={exports:{}},ld={},Gx={exports:{}},mt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ll=Symbol.for("react.element"),I2=Symbol.for("react.portal"),L2=Symbol.for("react.fragment"),j2=Symbol.for("react.strict_mode"),D2=Symbol.for("react.profiler"),z2=Symbol.for("react.provider"),F2=Symbol.for("react.context"),V2=Symbol.for("react.forward_ref"),W2=Symbol.for("react.suspense"),B2=Symbol.for("react.memo"),H2=Symbol.for("react.lazy"),rm=Symbol.iterator;function X2(e){return e===null||typeof e!="object"?null:(e=rm&&e[rm]||e["@@iterator"],typeof e=="function"?e:null)}var Ux={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$x=Object.assign,qx={};function es(e,t,r){this.props=e,this.context=t,this.refs=qx,this.updater=r||Ux}es.prototype.isReactComponent={};es.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};es.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kx(){}Kx.prototype=es.prototype;function ug(e,t,r){this.props=e,this.context=t,this.refs=qx,this.updater=r||Ux}var cg=ug.prototype=new Kx;cg.constructor=ug;$x(cg,es.prototype);cg.isPureReactComponent=!0;var nm=Array.isArray,Zx=Object.prototype.hasOwnProperty,dg={current:null},Qx={key:!0,ref:!0,__self:!0,__source:!0};function Jx(e,t,r){var a,s={},l=null,f=null;if(t!=null)for(a in t.ref!==void 0&&(f=t.ref),t.key!==void 0&&(l=""+t.key),t)Zx.call(t,a)&&!Qx.hasOwnProperty(a)&&(s[a]=t[a]);var b=arguments.length-2;if(b===1)s.children=r;else if(1<b){for(var S=Array(b),T=0;T<b;T++)S[T]=arguments[T+2];s.children=S}if(e&&e.defaultProps)for(a in b=e.defaultProps,b)s[a]===void 0&&(s[a]=b[a]);return{$$typeof:Ll,type:e,key:l,ref:f,props:s,_owner:dg.current}}function Y2(e,t){return{$$typeof:Ll,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ll}function G2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var om=/\/+/g;function Ff(e,t){return typeof e=="object"&&e!==null&&e.key!=null?G2(""+e.key):t.toString(36)}function zu(e,t,r,a,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(l){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case Ll:case I2:f=!0}}if(f)return f=e,s=s(f),e=a===""?"."+Ff(f,0):a,nm(s)?(r="",e!=null&&(r=e.replace(om,"$&/")+"/"),zu(s,t,r,"",function(T){return T})):s!=null&&(fg(s)&&(s=Y2(s,r+(!s.key||f&&f.key===s.key?"":(""+s.key).replace(om,"$&/")+"/")+e)),t.push(s)),1;if(f=0,a=a===""?".":a+":",nm(e))for(var b=0;b<e.length;b++){l=e[b];var S=a+Ff(l,b);f+=zu(l,t,r,S,s)}else if(S=X2(e),typeof S=="function")for(e=S.call(e),b=0;!(l=e.next()).done;)l=l.value,S=a+Ff(l,b++),f+=zu(l,t,r,S,s);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return f}function pu(e,t,r){if(e==null)return e;var a=[],s=0;return zu(e,a,"","",function(l){return t.call(r,l,s++)}),a}function U2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Lr={current:null},Fu={transition:null},$2={ReactCurrentDispatcher:Lr,ReactCurrentBatchConfig:Fu,ReactCurrentOwner:dg};mt.Children={map:pu,forEach:function(e,t,r){pu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return pu(e,function(){t++}),t},toArray:function(e){return pu(e,function(t){return t})||[]},only:function(e){if(!fg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};mt.Component=es;mt.Fragment=L2;mt.Profiler=D2;mt.PureComponent=ug;mt.StrictMode=j2;mt.Suspense=W2;mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$2;mt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=$x({},e.props),s=e.key,l=e.ref,f=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,f=dg.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var b=e.type.defaultProps;for(S in t)Zx.call(t,S)&&!Qx.hasOwnProperty(S)&&(a[S]=t[S]===void 0&&b!==void 0?b[S]:t[S])}var S=arguments.length-2;if(S===1)a.children=r;else if(1<S){b=Array(S);for(var T=0;T<S;T++)b[T]=arguments[T+2];a.children=b}return{$$typeof:Ll,type:e.type,key:s,ref:l,props:a,_owner:f}};mt.createContext=function(e){return e={$$typeof:F2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:z2,_context:e},e.Consumer=e};mt.createElement=Jx;mt.createFactory=function(e){var t=Jx.bind(null,e);return t.type=e,t};mt.createRef=function(){return{current:null}};mt.forwardRef=function(e){return{$$typeof:V2,render:e}};mt.isValidElement=fg;mt.lazy=function(e){return{$$typeof:H2,_payload:{_status:-1,_result:e},_init:U2}};mt.memo=function(e,t){return{$$typeof:B2,type:e,compare:t===void 0?null:t}};mt.startTransition=function(e){var t=Fu.transition;Fu.transition={};try{e()}finally{Fu.transition=t}};mt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};mt.useCallback=function(e,t){return Lr.current.useCallback(e,t)};mt.useContext=function(e){return Lr.current.useContext(e)};mt.useDebugValue=function(){};mt.useDeferredValue=function(e){return Lr.current.useDeferredValue(e)};mt.useEffect=function(e,t){return Lr.current.useEffect(e,t)};mt.useId=function(){return Lr.current.useId()};mt.useImperativeHandle=function(e,t,r){return Lr.current.useImperativeHandle(e,t,r)};mt.useInsertionEffect=function(e,t){return Lr.current.useInsertionEffect(e,t)};mt.useLayoutEffect=function(e,t){return Lr.current.useLayoutEffect(e,t)};mt.useMemo=function(e,t){return Lr.current.useMemo(e,t)};mt.useReducer=function(e,t,r){return Lr.current.useReducer(e,t,r)};mt.useRef=function(e){return Lr.current.useRef(e)};mt.useState=function(e){return Lr.current.useState(e)};mt.useSyncExternalStore=function(e,t,r){return Lr.current.useSyncExternalStore(e,t,r)};mt.useTransition=function(){return Lr.current.useTransition()};mt.version="18.2.0";Gx.exports=mt;var ee=Gx.exports;const wn=Xx(ee),pg=N2({__proto__:null,default:wn},[ee]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var q2=ee,K2=Symbol.for("react.element"),Z2=Symbol.for("react.fragment"),Q2=Object.prototype.hasOwnProperty,J2=q2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eE={key:!0,ref:!0,__self:!0,__source:!0};function ew(e,t,r){var a,s={},l=null,f=null;r!==void 0&&(l=""+r),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(f=t.ref);for(a in t)Q2.call(t,a)&&!eE.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)s[a]===void 0&&(s[a]=t[a]);return{$$typeof:K2,type:e,key:l,ref:f,props:s,_owner:J2.current}}ld.Fragment=Z2;ld.jsx=ew;ld.jsxs=ew;Yx.exports=ld;var me=Yx.exports,Ip={},tw={exports:{}},ln={},rw={exports:{}},nw={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(he,ue){var ge=he.length;he.push(ue);e:for(;0<ge;){var ye=ge-1>>>1,Te=he[ye];if(0<s(Te,ue))he[ye]=ue,he[ge]=Te,ge=ye;else break e}}function r(he){return he.length===0?null:he[0]}function a(he){if(he.length===0)return null;var ue=he[0],ge=he.pop();if(ge!==ue){he[0]=ge;e:for(var ye=0,Te=he.length,Re=Te>>>1;ye<Re;){var De=2*(ye+1)-1,Le=he[De],Oe=De+1,Xe=he[Oe];if(0>s(Le,ge))Oe<Te&&0>s(Xe,Le)?(he[ye]=Xe,he[Oe]=ge,ye=Oe):(he[ye]=Le,he[De]=ge,ye=De);else if(Oe<Te&&0>s(Xe,ge))he[ye]=Xe,he[Oe]=ge,ye=Oe;else break e}}return ue}function s(he,ue){var ge=he.sortIndex-ue.sortIndex;return ge!==0?ge:he.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var f=Date,b=f.now();e.unstable_now=function(){return f.now()-b}}var S=[],T=[],O=1,j=null,F=3,z=!1,D=!1,R=!1,P=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(he){for(var ue=r(T);ue!==null;){if(ue.callback===null)a(T);else if(ue.startTime<=he)a(T),ue.sortIndex=ue.expirationTime,t(S,ue);else break;ue=r(T)}}function g(he){if(R=!1,v(he),!D)if(r(S)!==null)D=!0,ve(m);else{var ue=r(T);ue!==null&&Se(g,ue.startTime-he)}}function m(he,ue){D=!1,R&&(R=!1,y(X),X=-1),z=!0;var ge=F;try{for(v(ue),j=r(S);j!==null&&(!(j.expirationTime>ue)||he&&!U());){var ye=j.callback;if(typeof ye=="function"){j.callback=null,F=j.priorityLevel;var Te=ye(j.expirationTime<=ue);ue=e.unstable_now(),typeof Te=="function"?j.callback=Te:j===r(S)&&a(S),v(ue)}else a(S);j=r(S)}if(j!==null)var Re=!0;else{var De=r(T);De!==null&&Se(g,De.startTime-ue),Re=!1}return Re}finally{j=null,F=ge,z=!1}}var _=!1,M=null,X=-1,H=5,B=-1;function U(){return!(e.unstable_now()-B<H)}function K(){if(M!==null){var he=e.unstable_now();B=he;var ue=!0;try{ue=M(!0,he)}finally{ue?ne():(_=!1,M=null)}}else _=!1}var ne;if(typeof p=="function")ne=function(){p(K)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,fe=oe.port2;oe.port1.onmessage=K,ne=function(){fe.postMessage(null)}}else ne=function(){P(K,0)};function ve(he){M=he,_||(_=!0,ne())}function Se(he,ue){X=P(function(){he(e.unstable_now())},ue)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(he){he.callback=null},e.unstable_continueExecution=function(){D||z||(D=!0,ve(m))},e.unstable_forceFrameRate=function(he){0>he||125<he?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<he?Math.floor(1e3/he):5},e.unstable_getCurrentPriorityLevel=function(){return F},e.unstable_getFirstCallbackNode=function(){return r(S)},e.unstable_next=function(he){switch(F){case 1:case 2:case 3:var ue=3;break;default:ue=F}var ge=F;F=ue;try{return he()}finally{F=ge}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(he,ue){switch(he){case 1:case 2:case 3:case 4:case 5:break;default:he=3}var ge=F;F=he;try{return ue()}finally{F=ge}},e.unstable_scheduleCallback=function(he,ue,ge){var ye=e.unstable_now();switch(typeof ge=="object"&&ge!==null?(ge=ge.delay,ge=typeof ge=="number"&&0<ge?ye+ge:ye):ge=ye,he){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ge+Te,he={id:O++,callback:ue,priorityLevel:he,startTime:ge,expirationTime:Te,sortIndex:-1},ge>ye?(he.sortIndex=ge,t(T,he),r(S)===null&&he===r(T)&&(R?(y(X),X=-1):R=!0,Se(g,ge-ye))):(he.sortIndex=Te,t(S,he),D||z||(D=!0,ve(m))),he},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(he){var ue=F;return function(){var ge=F;F=ue;try{return he.apply(this,arguments)}finally{F=ge}}}})(nw);rw.exports=nw;var tE=rw.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ow=ee,an=tE;function Ye(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var aw=new Set,il={};function Ga(e,t){zi(e,t),zi(e+"Capture",t)}function zi(e,t){for(il[e]=t,e=0;e<t.length;e++)aw.add(t[e])}var Co=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lp=Object.prototype.hasOwnProperty,rE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,am={},im={};function nE(e){return Lp.call(im,e)?!0:Lp.call(am,e)?!1:rE.test(e)?im[e]=!0:(am[e]=!0,!1)}function oE(e,t,r,a){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aE(e,t,r,a){if(t===null||typeof t>"u"||oE(e,t,r,a))return!0;if(a)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function jr(e,t,r,a,s,l,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=f}var yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yr[e]=new jr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yr[t]=new jr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yr[e]=new jr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yr[e]=new jr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yr[e]=new jr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yr[e]=new jr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yr[e]=new jr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yr[e]=new jr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yr[e]=new jr(e,5,!1,e.toLowerCase(),null,!1,!1)});var hg=/[\-:]([a-z])/g;function gg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(hg,gg);yr[t]=new jr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(hg,gg);yr[t]=new jr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(hg,gg);yr[t]=new jr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yr[e]=new jr(e,1,!1,e.toLowerCase(),null,!1,!1)});yr.xlinkHref=new jr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yr[e]=new jr(e,1,!1,e.toLowerCase(),null,!0,!0)});function bg(e,t,r,a){var s=yr.hasOwnProperty(t)?yr[t]:null;(s!==null?s.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(aE(t,r,s,a)&&(r=null),a||s===null?nE(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,a=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))))}var Oo=ow.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hu=Symbol.for("react.element"),pi=Symbol.for("react.portal"),hi=Symbol.for("react.fragment"),vg=Symbol.for("react.strict_mode"),jp=Symbol.for("react.profiler"),iw=Symbol.for("react.provider"),sw=Symbol.for("react.context"),mg=Symbol.for("react.forward_ref"),Dp=Symbol.for("react.suspense"),zp=Symbol.for("react.suspense_list"),yg=Symbol.for("react.memo"),Xo=Symbol.for("react.lazy"),lw=Symbol.for("react.offscreen"),sm=Symbol.iterator;function Os(e){return e===null||typeof e!="object"?null:(e=sm&&e[sm]||e["@@iterator"],typeof e=="function"?e:null)}var qt=Object.assign,Vf;function Vs(e){if(Vf===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Vf=t&&t[1]||""}return`
`+Vf+e}var Wf=!1;function Bf(e,t){if(!e||Wf)return"";Wf=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(T){var a=T}Reflect.construct(e,[],t)}else{try{t.call()}catch(T){a=T}e.call(t.prototype)}else{try{throw Error()}catch(T){a=T}e()}}catch(T){if(T&&a&&typeof T.stack=="string"){for(var s=T.stack.split(`
`),l=a.stack.split(`
`),f=s.length-1,b=l.length-1;1<=f&&0<=b&&s[f]!==l[b];)b--;for(;1<=f&&0<=b;f--,b--)if(s[f]!==l[b]){if(f!==1||b!==1)do if(f--,b--,0>b||s[f]!==l[b]){var S=`
`+s[f].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=f&&0<=b);break}}}finally{Wf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Vs(e):""}function iE(e){switch(e.tag){case 5:return Vs(e.type);case 16:return Vs("Lazy");case 13:return Vs("Suspense");case 19:return Vs("SuspenseList");case 0:case 2:case 15:return e=Bf(e.type,!1),e;case 11:return e=Bf(e.type.render,!1),e;case 1:return e=Bf(e.type,!0),e;default:return""}}function Fp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hi:return"Fragment";case pi:return"Portal";case jp:return"Profiler";case vg:return"StrictMode";case Dp:return"Suspense";case zp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sw:return(e.displayName||"Context")+".Consumer";case iw:return(e._context.displayName||"Context")+".Provider";case mg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yg:return t=e.displayName||null,t!==null?t:Fp(e.type)||"Memo";case Xo:t=e._payload,e=e._init;try{return Fp(e(t))}catch{}}return null}function sE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fp(t);case 8:return t===vg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function la(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lE(e){var t=uw(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,l=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){a=""+f,l.call(this,f)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gu(e){e._valueTracker||(e._valueTracker=lE(e))}function cw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=uw(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function dc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vp(e,t){var r=t.checked;return qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function lm(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=la(t.value!=null?t.value:r),e._wrapperState={initialChecked:a,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dw(e,t){t=t.checked,t!=null&&bg(e,"checked",t,!1)}function Wp(e,t){dw(e,t);var r=la(t.value),a=t.type;if(r!=null)a==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bp(e,t.type,r):t.hasOwnProperty("defaultValue")&&Bp(e,t.type,la(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function um(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Bp(e,t,r){(t!=="number"||dc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ws=Array.isArray;function _i(e,t,r,a){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&a&&(e[r].defaultSelected=!0)}else{for(r=""+la(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Hp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ye(91));return qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function cm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Ye(92));if(Ws(r)){if(1<r.length)throw Error(Ye(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:la(r)}}function fw(e,t){var r=la(t.value),a=la(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),a!=null&&(e.defaultValue=""+a)}function dm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var bu,hw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,a,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,a,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(bu=bu||document.createElement("div"),bu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Gs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uE=["Webkit","ms","Moz","O"];Object.keys(Gs).forEach(function(e){uE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gs[t]=Gs[e]})});function gw(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Gs.hasOwnProperty(e)&&Gs[e]?(""+t).trim():t+"px"}function bw(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,s=gw(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,s):e[r]=s}}var cE=qt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yp(e,t){if(t){if(cE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ye(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ye(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ye(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ye(62))}}function Gp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Up=null;function xg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $p=null,Oi=null,Ai=null;function fm(e){if(e=zl(e)){if(typeof $p!="function")throw Error(Ye(280));var t=e.stateNode;t&&(t=pd(t),$p(e.stateNode,e.type,t))}}function vw(e){Oi?Ai?Ai.push(e):Ai=[e]:Oi=e}function mw(){if(Oi){var e=Oi,t=Ai;if(Ai=Oi=null,fm(e),t)for(e=0;e<t.length;e++)fm(t[e])}}function yw(e,t){return e(t)}function xw(){}var Hf=!1;function ww(e,t,r){if(Hf)return e(t,r);Hf=!0;try{return yw(e,t,r)}finally{Hf=!1,(Oi!==null||Ai!==null)&&(xw(),mw())}}function ll(e,t){var r=e.stateNode;if(r===null)return null;var a=pd(r);if(a===null)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Ye(231,t,typeof r));return r}var qp=!1;if(Co)try{var As={};Object.defineProperty(As,"passive",{get:function(){qp=!0}}),window.addEventListener("test",As,As),window.removeEventListener("test",As,As)}catch{qp=!1}function dE(e,t,r,a,s,l,f,b,S){var T=Array.prototype.slice.call(arguments,3);try{t.apply(r,T)}catch(O){this.onError(O)}}var Us=!1,fc=null,pc=!1,Kp=null,fE={onError:function(e){Us=!0,fc=e}};function pE(e,t,r,a,s,l,f,b,S){Us=!1,fc=null,dE.apply(fE,arguments)}function hE(e,t,r,a,s,l,f,b,S){if(pE.apply(this,arguments),Us){if(Us){var T=fc;Us=!1,fc=null}else throw Error(Ye(198));pc||(pc=!0,Kp=T)}}function Ua(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Cw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pm(e){if(Ua(e)!==e)throw Error(Ye(188))}function gE(e){var t=e.alternate;if(!t){if(t=Ua(e),t===null)throw Error(Ye(188));return t!==e?null:e}for(var r=e,a=t;;){var s=r.return;if(s===null)break;var l=s.alternate;if(l===null){if(a=s.return,a!==null){r=a;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===r)return pm(s),e;if(l===a)return pm(s),t;l=l.sibling}throw Error(Ye(188))}if(r.return!==a.return)r=s,a=l;else{for(var f=!1,b=s.child;b;){if(b===r){f=!0,r=s,a=l;break}if(b===a){f=!0,a=s,r=l;break}b=b.sibling}if(!f){for(b=l.child;b;){if(b===r){f=!0,r=l,a=s;break}if(b===a){f=!0,a=l,r=s;break}b=b.sibling}if(!f)throw Error(Ye(189))}}if(r.alternate!==a)throw Error(Ye(190))}if(r.tag!==3)throw Error(Ye(188));return r.stateNode.current===r?e:t}function Sw(e){return e=gE(e),e!==null?kw(e):null}function kw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kw(e);if(t!==null)return t;e=e.sibling}return null}var Tw=an.unstable_scheduleCallback,hm=an.unstable_cancelCallback,bE=an.unstable_shouldYield,vE=an.unstable_requestPaint,rr=an.unstable_now,mE=an.unstable_getCurrentPriorityLevel,wg=an.unstable_ImmediatePriority,Pw=an.unstable_UserBlockingPriority,hc=an.unstable_NormalPriority,yE=an.unstable_LowPriority,_w=an.unstable_IdlePriority,ud=null,ro=null;function xE(e){if(ro&&typeof ro.onCommitFiberRoot=="function")try{ro.onCommitFiberRoot(ud,e,void 0,(e.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:SE,wE=Math.log,CE=Math.LN2;function SE(e){return e>>>=0,e===0?32:31-(wE(e)/CE|0)|0}var vu=64,mu=4194304;function Bs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gc(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,s=e.suspendedLanes,l=e.pingedLanes,f=r&268435455;if(f!==0){var b=f&~s;b!==0?a=Bs(b):(l&=f,l!==0&&(a=Bs(l)))}else f=r&~s,f!==0?a=Bs(f):l!==0&&(a=Bs(l));if(a===0)return 0;if(t!==0&&t!==a&&!(t&s)&&(s=a&-a,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if(a&4&&(a|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)r=31-Ln(t),s=1<<r,a|=e[r],t&=~s;return a}function kE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function TE(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var f=31-Ln(l),b=1<<f,S=s[f];S===-1?(!(b&r)||b&a)&&(s[f]=kE(b,t)):S<=t&&(e.expiredLanes|=b),l&=~b}}function Zp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ow(){var e=vu;return vu<<=1,!(vu&4194240)&&(vu=64),e}function Xf(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function jl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ln(t),e[t]=r}function PE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-Ln(r),l=1<<s;t[s]=0,a[s]=-1,e[s]=-1,r&=~l}}function Cg(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-Ln(r),s=1<<a;s&t|e[a]&t&&(e[a]|=t),r&=~s}}var Ot=0;function Aw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ew,Sg,Mw,Rw,Nw,Qp=!1,yu=[],Qo=null,Jo=null,ea=null,ul=new Map,cl=new Map,Uo=[],_E="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gm(e,t){switch(e){case"focusin":case"focusout":Qo=null;break;case"dragenter":case"dragleave":Jo=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":ul.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cl.delete(t.pointerId)}}function Es(e,t,r,a,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:l,targetContainers:[s]},t!==null&&(t=zl(t),t!==null&&Sg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function OE(e,t,r,a,s){switch(t){case"focusin":return Qo=Es(Qo,e,t,r,a,s),!0;case"dragenter":return Jo=Es(Jo,e,t,r,a,s),!0;case"mouseover":return ea=Es(ea,e,t,r,a,s),!0;case"pointerover":var l=s.pointerId;return ul.set(l,Es(ul.get(l)||null,e,t,r,a,s)),!0;case"gotpointercapture":return l=s.pointerId,cl.set(l,Es(cl.get(l)||null,e,t,r,a,s)),!0}return!1}function Iw(e){var t=Aa(e.target);if(t!==null){var r=Ua(t);if(r!==null){if(t=r.tag,t===13){if(t=Cw(r),t!==null){e.blockedOn=t,Nw(e.priority,function(){Mw(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Jp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);Up=a,r.target.dispatchEvent(a),Up=null}else return t=zl(r),t!==null&&Sg(t),e.blockedOn=r,!1;t.shift()}return!0}function bm(e,t,r){Vu(e)&&r.delete(t)}function AE(){Qp=!1,Qo!==null&&Vu(Qo)&&(Qo=null),Jo!==null&&Vu(Jo)&&(Jo=null),ea!==null&&Vu(ea)&&(ea=null),ul.forEach(bm),cl.forEach(bm)}function Ms(e,t){e.blockedOn===t&&(e.blockedOn=null,Qp||(Qp=!0,an.unstable_scheduleCallback(an.unstable_NormalPriority,AE)))}function dl(e){function t(s){return Ms(s,e)}if(0<yu.length){Ms(yu[0],e);for(var r=1;r<yu.length;r++){var a=yu[r];a.blockedOn===e&&(a.blockedOn=null)}}for(Qo!==null&&Ms(Qo,e),Jo!==null&&Ms(Jo,e),ea!==null&&Ms(ea,e),ul.forEach(t),cl.forEach(t),r=0;r<Uo.length;r++)a=Uo[r],a.blockedOn===e&&(a.blockedOn=null);for(;0<Uo.length&&(r=Uo[0],r.blockedOn===null);)Iw(r),r.blockedOn===null&&Uo.shift()}var Ei=Oo.ReactCurrentBatchConfig,bc=!0;function EE(e,t,r,a){var s=Ot,l=Ei.transition;Ei.transition=null;try{Ot=1,kg(e,t,r,a)}finally{Ot=s,Ei.transition=l}}function ME(e,t,r,a){var s=Ot,l=Ei.transition;Ei.transition=null;try{Ot=4,kg(e,t,r,a)}finally{Ot=s,Ei.transition=l}}function kg(e,t,r,a){if(bc){var s=Jp(e,t,r,a);if(s===null)ep(e,t,a,vc,r),gm(e,a);else if(OE(s,e,t,r,a))a.stopPropagation();else if(gm(e,a),t&4&&-1<_E.indexOf(e)){for(;s!==null;){var l=zl(s);if(l!==null&&Ew(l),l=Jp(e,t,r,a),l===null&&ep(e,t,a,vc,r),l===s)break;s=l}s!==null&&a.stopPropagation()}else ep(e,t,a,null,r)}}var vc=null;function Jp(e,t,r,a){if(vc=null,e=xg(a),e=Aa(e),e!==null)if(t=Ua(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Cw(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vc=e,null}function Lw(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mE()){case wg:return 1;case Pw:return 4;case hc:case yE:return 16;case _w:return 536870912;default:return 16}default:return 16}}var qo=null,Tg=null,Wu=null;function jw(){if(Wu)return Wu;var e,t=Tg,r=t.length,a,s="value"in qo?qo.value:qo.textContent,l=s.length;for(e=0;e<r&&t[e]===s[e];e++);var f=r-e;for(a=1;a<=f&&t[r-a]===s[l-a];a++);return Wu=s.slice(e,1<a?1-a:void 0)}function Bu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xu(){return!0}function vm(){return!1}function un(e){function t(r,a,s,l,f){this._reactName=r,this._targetInst=s,this.type=a,this.nativeEvent=l,this.target=f,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(r=e[b],this[b]=r?r(l):l[b]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?xu:vm,this.isPropagationStopped=vm,this}return qt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=xu)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=xu)},persist:function(){},isPersistent:xu}),t}var ts={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pg=un(ts),Dl=qt({},ts,{view:0,detail:0}),RE=un(Dl),Yf,Gf,Rs,cd=qt({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_g,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Rs&&(Rs&&e.type==="mousemove"?(Yf=e.screenX-Rs.screenX,Gf=e.screenY-Rs.screenY):Gf=Yf=0,Rs=e),Yf)},movementY:function(e){return"movementY"in e?e.movementY:Gf}}),mm=un(cd),NE=qt({},cd,{dataTransfer:0}),IE=un(NE),LE=qt({},Dl,{relatedTarget:0}),Uf=un(LE),jE=qt({},ts,{animationName:0,elapsedTime:0,pseudoElement:0}),DE=un(jE),zE=qt({},ts,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FE=un(zE),VE=qt({},ts,{data:0}),ym=un(VE),WE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},HE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HE[e])?!!t[e]:!1}function _g(){return XE}var YE=qt({},Dl,{key:function(e){if(e.key){var t=WE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?BE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_g,charCode:function(e){return e.type==="keypress"?Bu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GE=un(YE),UE=qt({},cd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=un(UE),$E=qt({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_g}),qE=un($E),KE=qt({},ts,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZE=un(KE),QE=qt({},cd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),JE=un(QE),eM=[9,13,27,32],Og=Co&&"CompositionEvent"in window,$s=null;Co&&"documentMode"in document&&($s=document.documentMode);var tM=Co&&"TextEvent"in window&&!$s,Dw=Co&&(!Og||$s&&8<$s&&11>=$s),wm=String.fromCharCode(32),Cm=!1;function zw(e,t){switch(e){case"keyup":return eM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gi=!1;function rM(e,t){switch(e){case"compositionend":return Fw(t);case"keypress":return t.which!==32?null:(Cm=!0,wm);case"textInput":return e=t.data,e===wm&&Cm?null:e;default:return null}}function nM(e,t){if(gi)return e==="compositionend"||!Og&&zw(e,t)?(e=jw(),Wu=Tg=qo=null,gi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dw&&t.locale!=="ko"?null:t.data;default:return null}}var oM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oM[e.type]:t==="textarea"}function Vw(e,t,r,a){vw(a),t=mc(t,"onChange"),0<t.length&&(r=new Pg("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var qs=null,fl=null;function aM(e){Zw(e,0)}function dd(e){var t=mi(e);if(cw(t))return e}function iM(e,t){if(e==="change")return t}var Ww=!1;if(Co){var $f;if(Co){var qf="oninput"in document;if(!qf){var km=document.createElement("div");km.setAttribute("oninput","return;"),qf=typeof km.oninput=="function"}$f=qf}else $f=!1;Ww=$f&&(!document.documentMode||9<document.documentMode)}function Tm(){qs&&(qs.detachEvent("onpropertychange",Bw),fl=qs=null)}function Bw(e){if(e.propertyName==="value"&&dd(fl)){var t=[];Vw(t,fl,e,xg(e)),ww(aM,t)}}function sM(e,t,r){e==="focusin"?(Tm(),qs=t,fl=r,qs.attachEvent("onpropertychange",Bw)):e==="focusout"&&Tm()}function lM(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dd(fl)}function uM(e,t){if(e==="click")return dd(t)}function cM(e,t){if(e==="input"||e==="change")return dd(t)}function dM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:dM;function pl(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(a=0;a<r.length;a++){var s=r[a];if(!Lp.call(t,s)||!Fn(e[s],t[s]))return!1}return!0}function Pm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _m(e,t){var r=Pm(e);e=0;for(var a;r;){if(r.nodeType===3){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Pm(r)}}function Hw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xw(){for(var e=window,t=dc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dc(e.document)}return t}function Ag(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fM(e){var t=Xw(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Hw(r.ownerDocument.documentElement,r)){if(a!==null&&Ag(r)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,l=Math.min(a.start,s);a=a.end===void 0?l:Math.min(a.end,s),!e.extend&&l>a&&(s=a,a=l,l=s),s=_m(r,l);var f=_m(r,a);s&&f&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>a?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pM=Co&&"documentMode"in document&&11>=document.documentMode,bi=null,eh=null,Ks=null,th=!1;function Om(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;th||bi==null||bi!==dc(a)||(a=bi,"selectionStart"in a&&Ag(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ks&&pl(Ks,a)||(Ks=a,a=mc(eh,"onSelect"),0<a.length&&(t=new Pg("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=bi)))}function wu(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vi={animationend:wu("Animation","AnimationEnd"),animationiteration:wu("Animation","AnimationIteration"),animationstart:wu("Animation","AnimationStart"),transitionend:wu("Transition","TransitionEnd")},Kf={},Yw={};Co&&(Yw=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function fd(e){if(Kf[e])return Kf[e];if(!vi[e])return e;var t=vi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Yw)return Kf[e]=t[r];return e}var Gw=fd("animationend"),Uw=fd("animationiteration"),$w=fd("animationstart"),qw=fd("transitionend"),Kw=new Map,Am="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function da(e,t){Kw.set(e,t),Ga(t,[e])}for(var Zf=0;Zf<Am.length;Zf++){var Qf=Am[Zf],hM=Qf.toLowerCase(),gM=Qf[0].toUpperCase()+Qf.slice(1);da(hM,"on"+gM)}da(Gw,"onAnimationEnd");da(Uw,"onAnimationIteration");da($w,"onAnimationStart");da("dblclick","onDoubleClick");da("focusin","onFocus");da("focusout","onBlur");da(qw,"onTransitionEnd");zi("onMouseEnter",["mouseout","mouseover"]);zi("onMouseLeave",["mouseout","mouseover"]);zi("onPointerEnter",["pointerout","pointerover"]);zi("onPointerLeave",["pointerout","pointerover"]);Ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ga("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hs));function Em(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,hE(a,t,void 0,e),e.currentTarget=null}function Zw(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],s=a.event;a=a.listeners;e:{var l=void 0;if(t)for(var f=a.length-1;0<=f;f--){var b=a[f],S=b.instance,T=b.currentTarget;if(b=b.listener,S!==l&&s.isPropagationStopped())break e;Em(s,b,T),l=S}else for(f=0;f<a.length;f++){if(b=a[f],S=b.instance,T=b.currentTarget,b=b.listener,S!==l&&s.isPropagationStopped())break e;Em(s,b,T),l=S}}}if(pc)throw e=Kp,pc=!1,Kp=null,e}function Dt(e,t){var r=t[ih];r===void 0&&(r=t[ih]=new Set);var a=e+"__bubble";r.has(a)||(Qw(t,e,2,!1),r.add(a))}function Jf(e,t,r){var a=0;t&&(a|=4),Qw(r,e,a,t)}var Cu="_reactListening"+Math.random().toString(36).slice(2);function hl(e){if(!e[Cu]){e[Cu]=!0,aw.forEach(function(r){r!=="selectionchange"&&(bM.has(r)||Jf(r,!1,e),Jf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cu]||(t[Cu]=!0,Jf("selectionchange",!1,t))}}function Qw(e,t,r,a){switch(Lw(t)){case 1:var s=EE;break;case 4:s=ME;break;default:s=kg}r=s.bind(null,t,r,e),s=void 0,!qp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function ep(e,t,r,a,s){var l=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var b=a.stateNode.containerInfo;if(b===s||b.nodeType===8&&b.parentNode===s)break;if(f===4)for(f=a.return;f!==null;){var S=f.tag;if((S===3||S===4)&&(S=f.stateNode.containerInfo,S===s||S.nodeType===8&&S.parentNode===s))return;f=f.return}for(;b!==null;){if(f=Aa(b),f===null)return;if(S=f.tag,S===5||S===6){a=l=f;continue e}b=b.parentNode}}a=a.return}ww(function(){var T=l,O=xg(r),j=[];e:{var F=Kw.get(e);if(F!==void 0){var z=Pg,D=e;switch(e){case"keypress":if(Bu(r)===0)break e;case"keydown":case"keyup":z=GE;break;case"focusin":D="focus",z=Uf;break;case"focusout":D="blur",z=Uf;break;case"beforeblur":case"afterblur":z=Uf;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=IE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=qE;break;case Gw:case Uw:case $w:z=DE;break;case qw:z=ZE;break;case"scroll":z=RE;break;case"wheel":z=JE;break;case"copy":case"cut":case"paste":z=FE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=xm}var R=(t&4)!==0,P=!R&&e==="scroll",y=R?F!==null?F+"Capture":null:F;R=[];for(var p=T,v;p!==null;){v=p;var g=v.stateNode;if(v.tag===5&&g!==null&&(v=g,y!==null&&(g=ll(p,y),g!=null&&R.push(gl(p,g,v)))),P)break;p=p.return}0<R.length&&(F=new z(F,D,null,r,O),j.push({event:F,listeners:R}))}}if(!(t&7)){e:{if(F=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",F&&r!==Up&&(D=r.relatedTarget||r.fromElement)&&(Aa(D)||D[So]))break e;if((z||F)&&(F=O.window===O?O:(F=O.ownerDocument)?F.defaultView||F.parentWindow:window,z?(D=r.relatedTarget||r.toElement,z=T,D=D?Aa(D):null,D!==null&&(P=Ua(D),D!==P||D.tag!==5&&D.tag!==6)&&(D=null)):(z=null,D=T),z!==D)){if(R=mm,g="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(R=xm,g="onPointerLeave",y="onPointerEnter",p="pointer"),P=z==null?F:mi(z),v=D==null?F:mi(D),F=new R(g,p+"leave",z,r,O),F.target=P,F.relatedTarget=v,g=null,Aa(O)===T&&(R=new R(y,p+"enter",D,r,O),R.target=v,R.relatedTarget=P,g=R),P=g,z&&D)t:{for(R=z,y=D,p=0,v=R;v;v=ci(v))p++;for(v=0,g=y;g;g=ci(g))v++;for(;0<p-v;)R=ci(R),p--;for(;0<v-p;)y=ci(y),v--;for(;p--;){if(R===y||y!==null&&R===y.alternate)break t;R=ci(R),y=ci(y)}R=null}else R=null;z!==null&&Mm(j,F,z,R,!1),D!==null&&P!==null&&Mm(j,P,D,R,!0)}}e:{if(F=T?mi(T):window,z=F.nodeName&&F.nodeName.toLowerCase(),z==="select"||z==="input"&&F.type==="file")var m=iM;else if(Sm(F))if(Ww)m=cM;else{m=lM;var _=sM}else(z=F.nodeName)&&z.toLowerCase()==="input"&&(F.type==="checkbox"||F.type==="radio")&&(m=uM);if(m&&(m=m(e,T))){Vw(j,m,r,O);break e}_&&_(e,F,T),e==="focusout"&&(_=F._wrapperState)&&_.controlled&&F.type==="number"&&Bp(F,"number",F.value)}switch(_=T?mi(T):window,e){case"focusin":(Sm(_)||_.contentEditable==="true")&&(bi=_,eh=T,Ks=null);break;case"focusout":Ks=eh=bi=null;break;case"mousedown":th=!0;break;case"contextmenu":case"mouseup":case"dragend":th=!1,Om(j,r,O);break;case"selectionchange":if(pM)break;case"keydown":case"keyup":Om(j,r,O)}var M;if(Og)e:{switch(e){case"compositionstart":var X="onCompositionStart";break e;case"compositionend":X="onCompositionEnd";break e;case"compositionupdate":X="onCompositionUpdate";break e}X=void 0}else gi?zw(e,r)&&(X="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(X="onCompositionStart");X&&(Dw&&r.locale!=="ko"&&(gi||X!=="onCompositionStart"?X==="onCompositionEnd"&&gi&&(M=jw()):(qo=O,Tg="value"in qo?qo.value:qo.textContent,gi=!0)),_=mc(T,X),0<_.length&&(X=new ym(X,e,null,r,O),j.push({event:X,listeners:_}),M?X.data=M:(M=Fw(r),M!==null&&(X.data=M)))),(M=tM?rM(e,r):nM(e,r))&&(T=mc(T,"onBeforeInput"),0<T.length&&(O=new ym("onBeforeInput","beforeinput",null,r,O),j.push({event:O,listeners:T}),O.data=M))}Zw(j,t)})}function gl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function mc(e,t){for(var r=t+"Capture",a=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=ll(e,r),l!=null&&a.unshift(gl(e,l,s)),l=ll(e,t),l!=null&&a.push(gl(e,l,s))),e=e.return}return a}function ci(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mm(e,t,r,a,s){for(var l=t._reactName,f=[];r!==null&&r!==a;){var b=r,S=b.alternate,T=b.stateNode;if(S!==null&&S===a)break;b.tag===5&&T!==null&&(b=T,s?(S=ll(r,l),S!=null&&f.unshift(gl(r,S,b))):s||(S=ll(r,l),S!=null&&f.push(gl(r,S,b)))),r=r.return}f.length!==0&&e.push({event:t,listeners:f})}var vM=/\r\n?/g,mM=/\u0000|\uFFFD/g;function Rm(e){return(typeof e=="string"?e:""+e).replace(vM,`
`).replace(mM,"")}function Su(e,t,r){if(t=Rm(t),Rm(e)!==t&&r)throw Error(Ye(425))}function yc(){}var rh=null,nh=null;function oh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ah=typeof setTimeout=="function"?setTimeout:void 0,yM=typeof clearTimeout=="function"?clearTimeout:void 0,Nm=typeof Promise=="function"?Promise:void 0,xM=typeof queueMicrotask=="function"?queueMicrotask:typeof Nm<"u"?function(e){return Nm.resolve(null).then(e).catch(wM)}:ah;function wM(e){setTimeout(function(){throw e})}function tp(e,t){var r=t,a=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(a===0){e.removeChild(s),dl(t);return}a--}else r!=="$"&&r!=="$?"&&r!=="$!"||a++;r=s}while(r);dl(t)}function ta(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Im(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var rs=Math.random().toString(36).slice(2),to="__reactFiber$"+rs,bl="__reactProps$"+rs,So="__reactContainer$"+rs,ih="__reactEvents$"+rs,CM="__reactListeners$"+rs,SM="__reactHandles$"+rs;function Aa(e){var t=e[to];if(t)return t;for(var r=e.parentNode;r;){if(t=r[So]||r[to]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Im(e);e!==null;){if(r=e[to])return r;e=Im(e)}return t}e=r,r=e.parentNode}return null}function zl(e){return e=e[to]||e[So],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ye(33))}function pd(e){return e[bl]||null}var sh=[],yi=-1;function fa(e){return{current:e}}function Ft(e){0>yi||(e.current=sh[yi],sh[yi]=null,yi--)}function Rt(e,t){yi++,sh[yi]=e.current,e.current=t}var ua={},Or=fa(ua),$r=fa(!1),ja=ua;function Fi(e,t){var r=e.type.contextTypes;if(!r)return ua;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in r)s[l]=t[l];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function qr(e){return e=e.childContextTypes,e!=null}function xc(){Ft($r),Ft(Or)}function Lm(e,t,r){if(Or.current!==ua)throw Error(Ye(168));Rt(Or,t),Rt($r,r)}function Jw(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var s in a)if(!(s in t))throw Error(Ye(108,sE(e)||"Unknown",s));return qt({},r,a)}function wc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,ja=Or.current,Rt(Or,e),Rt($r,$r.current),!0}function jm(e,t,r){var a=e.stateNode;if(!a)throw Error(Ye(169));r?(e=Jw(e,t,ja),a.__reactInternalMemoizedMergedChildContext=e,Ft($r),Ft(Or),Rt(Or,e)):Ft($r),Rt($r,r)}var bo=null,hd=!1,rp=!1;function e1(e){bo===null?bo=[e]:bo.push(e)}function kM(e){hd=!0,e1(e)}function pa(){if(!rp&&bo!==null){rp=!0;var e=0,t=Ot;try{var r=bo;for(Ot=1;e<r.length;e++){var a=r[e];do a=a(!0);while(a!==null)}bo=null,hd=!1}catch(s){throw bo!==null&&(bo=bo.slice(e+1)),Tw(wg,pa),s}finally{Ot=t,rp=!1}}return null}var xi=[],wi=0,Cc=null,Sc=0,gn=[],bn=0,Da=null,vo=1,mo="";function _a(e,t){xi[wi++]=Sc,xi[wi++]=Cc,Cc=e,Sc=t}function t1(e,t,r){gn[bn++]=vo,gn[bn++]=mo,gn[bn++]=Da,Da=e;var a=vo;e=mo;var s=32-Ln(a)-1;a&=~(1<<s),r+=1;var l=32-Ln(t)+s;if(30<l){var f=s-s%5;l=(a&(1<<f)-1).toString(32),a>>=f,s-=f,vo=1<<32-Ln(t)+s|r<<s|a,mo=l+e}else vo=1<<l|r<<s|a,mo=e}function Eg(e){e.return!==null&&(_a(e,1),t1(e,1,0))}function Mg(e){for(;e===Cc;)Cc=xi[--wi],xi[wi]=null,Sc=xi[--wi],xi[wi]=null;for(;e===Da;)Da=gn[--bn],gn[bn]=null,mo=gn[--bn],gn[bn]=null,vo=gn[--bn],gn[bn]=null}var tn=null,en=null,Bt=!1,Rn=null;function r1(e,t){var r=vn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Dm(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,tn=e,en=ta(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tn=e,en=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Da!==null?{id:vo,overflow:mo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=vn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,tn=e,en=null,!0):!1;default:return!1}}function lh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uh(e){if(Bt){var t=en;if(t){var r=t;if(!Dm(e,t)){if(lh(e))throw Error(Ye(418));t=ta(r.nextSibling);var a=tn;t&&Dm(e,t)?r1(a,r):(e.flags=e.flags&-4097|2,Bt=!1,tn=e)}}else{if(lh(e))throw Error(Ye(418));e.flags=e.flags&-4097|2,Bt=!1,tn=e}}}function zm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tn=e}function ku(e){if(e!==tn)return!1;if(!Bt)return zm(e),Bt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!oh(e.type,e.memoizedProps)),t&&(t=en)){if(lh(e))throw n1(),Error(Ye(418));for(;t;)r1(e,t),t=ta(t.nextSibling)}if(zm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ye(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){en=ta(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}en=null}}else en=tn?ta(e.stateNode.nextSibling):null;return!0}function n1(){for(var e=en;e;)e=ta(e.nextSibling)}function Vi(){en=tn=null,Bt=!1}function Rg(e){Rn===null?Rn=[e]:Rn.push(e)}var TM=Oo.ReactCurrentBatchConfig;function En(e,t){if(e&&e.defaultProps){t=qt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var kc=fa(null),Tc=null,Ci=null,Ng=null;function Ig(){Ng=Ci=Tc=null}function Lg(e){var t=kc.current;Ft(kc),e._currentValue=t}function ch(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function Mi(e,t){Tc=e,Ng=Ci=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Gr=!0),e.firstContext=null)}function Cn(e){var t=e._currentValue;if(Ng!==e)if(e={context:e,memoizedValue:t,next:null},Ci===null){if(Tc===null)throw Error(Ye(308));Ci=e,Tc.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Ea=null;function jg(e){Ea===null?Ea=[e]:Ea.push(e)}function o1(e,t,r,a){var s=t.interleaved;return s===null?(r.next=r,jg(t)):(r.next=s.next,s.next=r),t.interleaved=r,ko(e,a)}function ko(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Yo=!1;function Dg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function a1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ra(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,St&2){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,ko(e,r)}return s=a.interleaved,s===null?(t.next=t,jg(a)):(t.next=s.next,s.next=t),a.interleaved=t,ko(e,r)}function Hu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,Cg(e,r)}}function Fm(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var s=null,l=null;if(r=r.firstBaseUpdate,r!==null){do{var f={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};l===null?s=l=f:l=l.next=f,r=r.next}while(r!==null);l===null?s=l=t:l=l.next=t}else s=l=t;r={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:a.shared,effects:a.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Pc(e,t,r,a){var s=e.updateQueue;Yo=!1;var l=s.firstBaseUpdate,f=s.lastBaseUpdate,b=s.shared.pending;if(b!==null){s.shared.pending=null;var S=b,T=S.next;S.next=null,f===null?l=T:f.next=T,f=S;var O=e.alternate;O!==null&&(O=O.updateQueue,b=O.lastBaseUpdate,b!==f&&(b===null?O.firstBaseUpdate=T:b.next=T,O.lastBaseUpdate=S))}if(l!==null){var j=s.baseState;f=0,O=T=S=null,b=l;do{var F=b.lane,z=b.eventTime;if((a&F)===F){O!==null&&(O=O.next={eventTime:z,lane:0,tag:b.tag,payload:b.payload,callback:b.callback,next:null});e:{var D=e,R=b;switch(F=t,z=r,R.tag){case 1:if(D=R.payload,typeof D=="function"){j=D.call(z,j,F);break e}j=D;break e;case 3:D.flags=D.flags&-65537|128;case 0:if(D=R.payload,F=typeof D=="function"?D.call(z,j,F):D,F==null)break e;j=qt({},j,F);break e;case 2:Yo=!0}}b.callback!==null&&b.lane!==0&&(e.flags|=64,F=s.effects,F===null?s.effects=[b]:F.push(b))}else z={eventTime:z,lane:F,tag:b.tag,payload:b.payload,callback:b.callback,next:null},O===null?(T=O=z,S=j):O=O.next=z,f|=F;if(b=b.next,b===null){if(b=s.shared.pending,b===null)break;F=b,b=F.next,F.next=null,s.lastBaseUpdate=F,s.shared.pending=null}}while(1);if(O===null&&(S=j),s.baseState=S,s.firstBaseUpdate=T,s.lastBaseUpdate=O,t=s.shared.interleaved,t!==null){s=t;do f|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);Fa|=f,e.lanes=f,e.memoizedState=j}}function Vm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],s=a.callback;if(s!==null){if(a.callback=null,a=r,typeof s!="function")throw Error(Ye(191,s));s.call(a)}}}var i1=new ow.Component().refs;function dh(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:qt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var gd={isMounted:function(e){return(e=e._reactInternals)?Ua(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var a=Ir(),s=oa(e),l=yo(a,s);l.payload=t,r!=null&&(l.callback=r),t=ra(e,l,s),t!==null&&(jn(t,e,s,a),Hu(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=Ir(),s=oa(e),l=yo(a,s);l.tag=1,l.payload=t,r!=null&&(l.callback=r),t=ra(e,l,s),t!==null&&(jn(t,e,s,a),Hu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ir(),a=oa(e),s=yo(r,a);s.tag=2,t!=null&&(s.callback=t),t=ra(e,s,a),t!==null&&(jn(t,e,a,r),Hu(t,e,a))}};function Wm(e,t,r,a,s,l,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,l,f):t.prototype&&t.prototype.isPureReactComponent?!pl(r,a)||!pl(s,l):!0}function s1(e,t,r){var a=!1,s=ua,l=t.contextType;return typeof l=="object"&&l!==null?l=Cn(l):(s=qr(t)?ja:Or.current,a=t.contextTypes,l=(a=a!=null)?Fi(e,s):ua),t=new t(r,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gd,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function Bm(e,t,r,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,a),t.state!==e&&gd.enqueueReplaceState(t,t.state,null)}function fh(e,t,r,a){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs=i1,Dg(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=Cn(l):(l=qr(t)?ja:Or.current,s.context=Fi(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(dh(e,t,l,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&gd.enqueueReplaceState(s,s.state,null),Pc(e,r,s,a),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ns(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Ye(309));var a=r.stateNode}if(!a)throw Error(Ye(147,e));var s=a,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(f){var b=s.refs;b===i1&&(b=s.refs={}),f===null?delete b[l]:b[l]=f},t._stringRef=l,t)}if(typeof e!="string")throw Error(Ye(284));if(!r._owner)throw Error(Ye(290,e))}return e}function Tu(e,t){throw e=Object.prototype.toString.call(t),Error(Ye(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hm(e){var t=e._init;return t(e._payload)}function l1(e){function t(y,p){if(e){var v=y.deletions;v===null?(y.deletions=[p],y.flags|=16):v.push(p)}}function r(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function a(y,p){for(y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function s(y,p){return y=aa(y,p),y.index=0,y.sibling=null,y}function l(y,p,v){return y.index=v,e?(v=y.alternate,v!==null?(v=v.index,v<p?(y.flags|=2,p):v):(y.flags|=2,p)):(y.flags|=1048576,p)}function f(y){return e&&y.alternate===null&&(y.flags|=2),y}function b(y,p,v,g){return p===null||p.tag!==6?(p=up(v,y.mode,g),p.return=y,p):(p=s(p,v),p.return=y,p)}function S(y,p,v,g){var m=v.type;return m===hi?O(y,p,v.props.children,g,v.key):p!==null&&(p.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Xo&&Hm(m)===p.type)?(g=s(p,v.props),g.ref=Ns(y,p,v),g.return=y,g):(g=qu(v.type,v.key,v.props,null,y.mode,g),g.ref=Ns(y,p,v),g.return=y,g)}function T(y,p,v,g){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=cp(v,y.mode,g),p.return=y,p):(p=s(p,v.children||[]),p.return=y,p)}function O(y,p,v,g,m){return p===null||p.tag!==7?(p=Ia(v,y.mode,g,m),p.return=y,p):(p=s(p,v),p.return=y,p)}function j(y,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=up(""+p,y.mode,v),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case hu:return v=qu(p.type,p.key,p.props,null,y.mode,v),v.ref=Ns(y,null,p),v.return=y,v;case pi:return p=cp(p,y.mode,v),p.return=y,p;case Xo:var g=p._init;return j(y,g(p._payload),v)}if(Ws(p)||Os(p))return p=Ia(p,y.mode,v,null),p.return=y,p;Tu(y,p)}return null}function F(y,p,v,g){var m=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return m!==null?null:b(y,p,""+v,g);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case hu:return v.key===m?S(y,p,v,g):null;case pi:return v.key===m?T(y,p,v,g):null;case Xo:return m=v._init,F(y,p,m(v._payload),g)}if(Ws(v)||Os(v))return m!==null?null:O(y,p,v,g,null);Tu(y,v)}return null}function z(y,p,v,g,m){if(typeof g=="string"&&g!==""||typeof g=="number")return y=y.get(v)||null,b(p,y,""+g,m);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case hu:return y=y.get(g.key===null?v:g.key)||null,S(p,y,g,m);case pi:return y=y.get(g.key===null?v:g.key)||null,T(p,y,g,m);case Xo:var _=g._init;return z(y,p,v,_(g._payload),m)}if(Ws(g)||Os(g))return y=y.get(v)||null,O(p,y,g,m,null);Tu(p,g)}return null}function D(y,p,v,g){for(var m=null,_=null,M=p,X=p=0,H=null;M!==null&&X<v.length;X++){M.index>X?(H=M,M=null):H=M.sibling;var B=F(y,M,v[X],g);if(B===null){M===null&&(M=H);break}e&&M&&B.alternate===null&&t(y,M),p=l(B,p,X),_===null?m=B:_.sibling=B,_=B,M=H}if(X===v.length)return r(y,M),Bt&&_a(y,X),m;if(M===null){for(;X<v.length;X++)M=j(y,v[X],g),M!==null&&(p=l(M,p,X),_===null?m=M:_.sibling=M,_=M);return Bt&&_a(y,X),m}for(M=a(y,M);X<v.length;X++)H=z(M,y,X,v[X],g),H!==null&&(e&&H.alternate!==null&&M.delete(H.key===null?X:H.key),p=l(H,p,X),_===null?m=H:_.sibling=H,_=H);return e&&M.forEach(function(U){return t(y,U)}),Bt&&_a(y,X),m}function R(y,p,v,g){var m=Os(v);if(typeof m!="function")throw Error(Ye(150));if(v=m.call(v),v==null)throw Error(Ye(151));for(var _=m=null,M=p,X=p=0,H=null,B=v.next();M!==null&&!B.done;X++,B=v.next()){M.index>X?(H=M,M=null):H=M.sibling;var U=F(y,M,B.value,g);if(U===null){M===null&&(M=H);break}e&&M&&U.alternate===null&&t(y,M),p=l(U,p,X),_===null?m=U:_.sibling=U,_=U,M=H}if(B.done)return r(y,M),Bt&&_a(y,X),m;if(M===null){for(;!B.done;X++,B=v.next())B=j(y,B.value,g),B!==null&&(p=l(B,p,X),_===null?m=B:_.sibling=B,_=B);return Bt&&_a(y,X),m}for(M=a(y,M);!B.done;X++,B=v.next())B=z(M,y,X,B.value,g),B!==null&&(e&&B.alternate!==null&&M.delete(B.key===null?X:B.key),p=l(B,p,X),_===null?m=B:_.sibling=B,_=B);return e&&M.forEach(function(K){return t(y,K)}),Bt&&_a(y,X),m}function P(y,p,v,g){if(typeof v=="object"&&v!==null&&v.type===hi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case hu:e:{for(var m=v.key,_=p;_!==null;){if(_.key===m){if(m=v.type,m===hi){if(_.tag===7){r(y,_.sibling),p=s(_,v.props.children),p.return=y,y=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Xo&&Hm(m)===_.type){r(y,_.sibling),p=s(_,v.props),p.ref=Ns(y,_,v),p.return=y,y=p;break e}r(y,_);break}else t(y,_);_=_.sibling}v.type===hi?(p=Ia(v.props.children,y.mode,g,v.key),p.return=y,y=p):(g=qu(v.type,v.key,v.props,null,y.mode,g),g.ref=Ns(y,p,v),g.return=y,y=g)}return f(y);case pi:e:{for(_=v.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){r(y,p.sibling),p=s(p,v.children||[]),p.return=y,y=p;break e}else{r(y,p);break}else t(y,p);p=p.sibling}p=cp(v,y.mode,g),p.return=y,y=p}return f(y);case Xo:return _=v._init,P(y,p,_(v._payload),g)}if(Ws(v))return D(y,p,v,g);if(Os(v))return R(y,p,v,g);Tu(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(r(y,p.sibling),p=s(p,v),p.return=y,y=p):(r(y,p),p=up(v,y.mode,g),p.return=y,y=p),f(y)):r(y,p)}return P}var Wi=l1(!0),u1=l1(!1),Fl={},no=fa(Fl),vl=fa(Fl),ml=fa(Fl);function Ma(e){if(e===Fl)throw Error(Ye(174));return e}function zg(e,t){switch(Rt(ml,t),Rt(vl,e),Rt(no,Fl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xp(t,e)}Ft(no),Rt(no,t)}function Bi(){Ft(no),Ft(vl),Ft(ml)}function c1(e){Ma(ml.current);var t=Ma(no.current),r=Xp(t,e.type);t!==r&&(Rt(vl,e),Rt(no,r))}function Fg(e){vl.current===e&&(Ft(no),Ft(vl))}var Yt=fa(0);function _c(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var np=[];function Vg(){for(var e=0;e<np.length;e++)np[e]._workInProgressVersionPrimary=null;np.length=0}var Xu=Oo.ReactCurrentDispatcher,op=Oo.ReactCurrentBatchConfig,za=0,Ut=null,ir=null,pr=null,Oc=!1,Zs=!1,yl=0,PM=0;function Cr(){throw Error(Ye(321))}function Wg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Fn(e[r],t[r]))return!1;return!0}function Bg(e,t,r,a,s,l){if(za=l,Ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xu.current=e===null||e.memoizedState===null?EM:MM,e=r(a,s),Zs){l=0;do{if(Zs=!1,yl=0,25<=l)throw Error(Ye(301));l+=1,pr=ir=null,t.updateQueue=null,Xu.current=RM,e=r(a,s)}while(Zs)}if(Xu.current=Ac,t=ir!==null&&ir.next!==null,za=0,pr=ir=Ut=null,Oc=!1,t)throw Error(Ye(300));return e}function Hg(){var e=yl!==0;return yl=0,e}function eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pr===null?Ut.memoizedState=pr=e:pr=pr.next=e,pr}function Sn(){if(ir===null){var e=Ut.alternate;e=e!==null?e.memoizedState:null}else e=ir.next;var t=pr===null?Ut.memoizedState:pr.next;if(t!==null)pr=t,ir=e;else{if(e===null)throw Error(Ye(310));ir=e,e={memoizedState:ir.memoizedState,baseState:ir.baseState,baseQueue:ir.baseQueue,queue:ir.queue,next:null},pr===null?Ut.memoizedState=pr=e:pr=pr.next=e}return pr}function xl(e,t){return typeof t=="function"?t(e):t}function ap(e){var t=Sn(),r=t.queue;if(r===null)throw Error(Ye(311));r.lastRenderedReducer=e;var a=ir,s=a.baseQueue,l=r.pending;if(l!==null){if(s!==null){var f=s.next;s.next=l.next,l.next=f}a.baseQueue=s=l,r.pending=null}if(s!==null){l=s.next,a=a.baseState;var b=f=null,S=null,T=l;do{var O=T.lane;if((za&O)===O)S!==null&&(S=S.next={lane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),a=T.hasEagerState?T.eagerState:e(a,T.action);else{var j={lane:O,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null};S===null?(b=S=j,f=a):S=S.next=j,Ut.lanes|=O,Fa|=O}T=T.next}while(T!==null&&T!==l);S===null?f=a:S.next=b,Fn(a,t.memoizedState)||(Gr=!0),t.memoizedState=a,t.baseState=f,t.baseQueue=S,r.lastRenderedState=a}if(e=r.interleaved,e!==null){s=e;do l=s.lane,Ut.lanes|=l,Fa|=l,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ip(e){var t=Sn(),r=t.queue;if(r===null)throw Error(Ye(311));r.lastRenderedReducer=e;var a=r.dispatch,s=r.pending,l=t.memoizedState;if(s!==null){r.pending=null;var f=s=s.next;do l=e(l,f.action),f=f.next;while(f!==s);Fn(l,t.memoizedState)||(Gr=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),r.lastRenderedState=l}return[l,a]}function d1(){}function f1(e,t){var r=Ut,a=Sn(),s=t(),l=!Fn(a.memoizedState,s);if(l&&(a.memoizedState=s,Gr=!0),a=a.queue,Xg(g1.bind(null,r,a,e),[e]),a.getSnapshot!==t||l||pr!==null&&pr.memoizedState.tag&1){if(r.flags|=2048,wl(9,h1.bind(null,r,a,s,t),void 0,null),hr===null)throw Error(Ye(349));za&30||p1(r,t,s)}return s}function p1(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function h1(e,t,r,a){t.value=r,t.getSnapshot=a,b1(t)&&v1(e)}function g1(e,t,r){return r(function(){b1(t)&&v1(e)})}function b1(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Fn(e,r)}catch{return!0}}function v1(e){var t=ko(e,1);t!==null&&jn(t,e,1,-1)}function Xm(e){var t=eo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:e},t.queue=e,e=e.dispatch=AM.bind(null,Ut,e),[t.memoizedState,e]}function wl(e,t,r,a){return e={tag:e,create:t,destroy:r,deps:a,next:null},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(a=r.next,r.next=e,e.next=a,t.lastEffect=e)),e}function m1(){return Sn().memoizedState}function Yu(e,t,r,a){var s=eo();Ut.flags|=e,s.memoizedState=wl(1|t,r,void 0,a===void 0?null:a)}function bd(e,t,r,a){var s=Sn();a=a===void 0?null:a;var l=void 0;if(ir!==null){var f=ir.memoizedState;if(l=f.destroy,a!==null&&Wg(a,f.deps)){s.memoizedState=wl(t,r,l,a);return}}Ut.flags|=e,s.memoizedState=wl(1|t,r,l,a)}function Ym(e,t){return Yu(8390656,8,e,t)}function Xg(e,t){return bd(2048,8,e,t)}function y1(e,t){return bd(4,2,e,t)}function x1(e,t){return bd(4,4,e,t)}function w1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function C1(e,t,r){return r=r!=null?r.concat([e]):null,bd(4,4,w1.bind(null,t,e),r)}function Yg(){}function S1(e,t){var r=Sn();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Wg(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function k1(e,t){var r=Sn();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Wg(t,a[1])?a[0]:(e=e(),r.memoizedState=[e,t],e)}function T1(e,t,r){return za&21?(Fn(r,t)||(r=Ow(),Ut.lanes|=r,Fa|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Gr=!0),e.memoizedState=r)}function _M(e,t){var r=Ot;Ot=r!==0&&4>r?r:4,e(!0);var a=op.transition;op.transition={};try{e(!1),t()}finally{Ot=r,op.transition=a}}function P1(){return Sn().memoizedState}function OM(e,t,r){var a=oa(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},_1(e))O1(t,r);else if(r=o1(e,t,r,a),r!==null){var s=Ir();jn(r,e,a,s),A1(r,t,a)}}function AM(e,t,r){var a=oa(e),s={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(_1(e))O1(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var f=t.lastRenderedState,b=l(f,r);if(s.hasEagerState=!0,s.eagerState=b,Fn(b,f)){var S=t.interleaved;S===null?(s.next=s,jg(t)):(s.next=S.next,S.next=s),t.interleaved=s;return}}catch{}finally{}r=o1(e,t,s,a),r!==null&&(s=Ir(),jn(r,e,a,s),A1(r,t,a))}}function _1(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function O1(e,t){Zs=Oc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function A1(e,t,r){if(r&4194240){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,Cg(e,r)}}var Ac={readContext:Cn,useCallback:Cr,useContext:Cr,useEffect:Cr,useImperativeHandle:Cr,useInsertionEffect:Cr,useLayoutEffect:Cr,useMemo:Cr,useReducer:Cr,useRef:Cr,useState:Cr,useDebugValue:Cr,useDeferredValue:Cr,useTransition:Cr,useMutableSource:Cr,useSyncExternalStore:Cr,useId:Cr,unstable_isNewReconciler:!1},EM={readContext:Cn,useCallback:function(e,t){return eo().memoizedState=[e,t===void 0?null:t],e},useContext:Cn,useEffect:Ym,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Yu(4194308,4,w1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Yu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yu(4,2,e,t)},useMemo:function(e,t){var r=eo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=eo();return t=r!==void 0?r(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=OM.bind(null,Ut,e),[a.memoizedState,e]},useRef:function(e){var t=eo();return e={current:e},t.memoizedState=e},useState:Xm,useDebugValue:Yg,useDeferredValue:function(e){return eo().memoizedState=e},useTransition:function(){var e=Xm(!1),t=e[0];return e=_M.bind(null,e[1]),eo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=Ut,s=eo();if(Bt){if(r===void 0)throw Error(Ye(407));r=r()}else{if(r=t(),hr===null)throw Error(Ye(349));za&30||p1(a,t,r)}s.memoizedState=r;var l={value:r,getSnapshot:t};return s.queue=l,Ym(g1.bind(null,a,l,e),[e]),a.flags|=2048,wl(9,h1.bind(null,a,l,r,t),void 0,null),r},useId:function(){var e=eo(),t=hr.identifierPrefix;if(Bt){var r=mo,a=vo;r=(a&~(1<<32-Ln(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=yl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=PM++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},MM={readContext:Cn,useCallback:S1,useContext:Cn,useEffect:Xg,useImperativeHandle:C1,useInsertionEffect:y1,useLayoutEffect:x1,useMemo:k1,useReducer:ap,useRef:m1,useState:function(){return ap(xl)},useDebugValue:Yg,useDeferredValue:function(e){var t=Sn();return T1(t,ir.memoizedState,e)},useTransition:function(){var e=ap(xl)[0],t=Sn().memoizedState;return[e,t]},useMutableSource:d1,useSyncExternalStore:f1,useId:P1,unstable_isNewReconciler:!1},RM={readContext:Cn,useCallback:S1,useContext:Cn,useEffect:Xg,useImperativeHandle:C1,useInsertionEffect:y1,useLayoutEffect:x1,useMemo:k1,useReducer:ip,useRef:m1,useState:function(){return ip(xl)},useDebugValue:Yg,useDeferredValue:function(e){var t=Sn();return ir===null?t.memoizedState=e:T1(t,ir.memoizedState,e)},useTransition:function(){var e=ip(xl)[0],t=Sn().memoizedState;return[e,t]},useMutableSource:d1,useSyncExternalStore:f1,useId:P1,unstable_isNewReconciler:!1};function Hi(e,t){try{var r="",a=t;do r+=iE(a),a=a.return;while(a);var s=r}catch(l){s=`
Error generating stack: `+l.message+`
`+l.stack}return{value:e,source:t,stack:s,digest:null}}function sp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ph(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var NM=typeof WeakMap=="function"?WeakMap:Map;function E1(e,t,r){r=yo(-1,r),r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){Mc||(Mc=!0,Sh=a),ph(e,t)},r}function M1(e,t,r){r=yo(-1,r),r.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var s=t.value;r.payload=function(){return a(s)},r.callback=function(){ph(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(r.callback=function(){ph(e,t),typeof a!="function"&&(na===null?na=new Set([this]):na.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),r}function Gm(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new NM;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(r)||(s.add(r),e=UM.bind(null,e,t,r),t.then(e,e))}function Um(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function $m(e,t,r,a,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=yo(-1,1),t.tag=2,ra(r,t,1))),r.lanes|=1),e)}var IM=Oo.ReactCurrentOwner,Gr=!1;function Nr(e,t,r,a){t.child=e===null?u1(t,null,r,a):Wi(t,e.child,r,a)}function qm(e,t,r,a,s){r=r.render;var l=t.ref;return Mi(t,s),a=Bg(e,t,r,a,l,s),r=Hg(),e!==null&&!Gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,To(e,t,s)):(Bt&&r&&Eg(t),t.flags|=1,Nr(e,t,a,s),t.child)}function Km(e,t,r,a,s){if(e===null){var l=r.type;return typeof l=="function"&&!Jg(l)&&l.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=l,R1(e,t,l,a,s)):(e=qu(r.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&s)){var f=l.memoizedProps;if(r=r.compare,r=r!==null?r:pl,r(f,a)&&e.ref===t.ref)return To(e,t,s)}return t.flags|=1,e=aa(l,a),e.ref=t.ref,e.return=t,t.child=e}function R1(e,t,r,a,s){if(e!==null){var l=e.memoizedProps;if(pl(l,a)&&e.ref===t.ref)if(Gr=!1,t.pendingProps=a=l,(e.lanes&s)!==0)e.flags&131072&&(Gr=!0);else return t.lanes=e.lanes,To(e,t,s)}return hh(e,t,r,a,s)}function N1(e,t,r){var a=t.pendingProps,s=a.children,l=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rt(ki,Jr),Jr|=r;else{if(!(r&1073741824))return e=l!==null?l.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Rt(ki,Jr),Jr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=l!==null?l.baseLanes:r,Rt(ki,Jr),Jr|=a}else l!==null?(a=l.baseLanes|r,t.memoizedState=null):a=r,Rt(ki,Jr),Jr|=a;return Nr(e,t,s,r),t.child}function I1(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function hh(e,t,r,a,s){var l=qr(r)?ja:Or.current;return l=Fi(t,l),Mi(t,s),r=Bg(e,t,r,a,l,s),a=Hg(),e!==null&&!Gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,To(e,t,s)):(Bt&&a&&Eg(t),t.flags|=1,Nr(e,t,r,s),t.child)}function Zm(e,t,r,a,s){if(qr(r)){var l=!0;wc(t)}else l=!1;if(Mi(t,s),t.stateNode===null)Gu(e,t),s1(t,r,a),fh(t,r,a,s),a=!0;else if(e===null){var f=t.stateNode,b=t.memoizedProps;f.props=b;var S=f.context,T=r.contextType;typeof T=="object"&&T!==null?T=Cn(T):(T=qr(r)?ja:Or.current,T=Fi(t,T));var O=r.getDerivedStateFromProps,j=typeof O=="function"||typeof f.getSnapshotBeforeUpdate=="function";j||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==a||S!==T)&&Bm(t,f,a,T),Yo=!1;var F=t.memoizedState;f.state=F,Pc(t,a,f,s),S=t.memoizedState,b!==a||F!==S||$r.current||Yo?(typeof O=="function"&&(dh(t,r,O,a),S=t.memoizedState),(b=Yo||Wm(t,r,b,a,F,S,T))?(j||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),f.props=a,f.state=S,f.context=T,a=b):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{f=t.stateNode,a1(e,t),b=t.memoizedProps,T=t.type===t.elementType?b:En(t.type,b),f.props=T,j=t.pendingProps,F=f.context,S=r.contextType,typeof S=="object"&&S!==null?S=Cn(S):(S=qr(r)?ja:Or.current,S=Fi(t,S));var z=r.getDerivedStateFromProps;(O=typeof z=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==j||F!==S)&&Bm(t,f,a,S),Yo=!1,F=t.memoizedState,f.state=F,Pc(t,a,f,s);var D=t.memoizedState;b!==j||F!==D||$r.current||Yo?(typeof z=="function"&&(dh(t,r,z,a),D=t.memoizedState),(T=Yo||Wm(t,r,T,a,F,D,S)||!1)?(O||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(a,D,S),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(a,D,S)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),f.props=a,f.state=D,f.context=S,a=T):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),a=!1)}return gh(e,t,r,a,l,s)}function gh(e,t,r,a,s,l){I1(e,t);var f=(t.flags&128)!==0;if(!a&&!f)return s&&jm(t,r,!1),To(e,t,l);a=t.stateNode,IM.current=t;var b=f&&typeof r.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&f?(t.child=Wi(t,e.child,null,l),t.child=Wi(t,null,b,l)):Nr(e,t,b,l),t.memoizedState=a.state,s&&jm(t,r,!0),t.child}function L1(e){var t=e.stateNode;t.pendingContext?Lm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lm(e,t.context,!1),zg(e,t.containerInfo)}function Qm(e,t,r,a,s){return Vi(),Rg(s),t.flags|=256,Nr(e,t,r,a),t.child}var bh={dehydrated:null,treeContext:null,retryLane:0};function vh(e){return{baseLanes:e,cachePool:null,transitions:null}}function j1(e,t,r){var a=t.pendingProps,s=Yt.current,l=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(s&2)!==0),b?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Rt(Yt,s&1),e===null)return uh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(f=a.children,e=a.fallback,l?(a=t.mode,l=t.child,f={mode:"hidden",children:f},!(a&1)&&l!==null?(l.childLanes=0,l.pendingProps=f):l=yd(f,a,0,null),e=Ia(e,a,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=vh(r),t.memoizedState=bh,e):Gg(t,f));if(s=e.memoizedState,s!==null&&(b=s.dehydrated,b!==null))return LM(e,t,f,a,b,s,r);if(l){l=a.fallback,f=t.mode,s=e.child,b=s.sibling;var S={mode:"hidden",children:a.children};return!(f&1)&&t.child!==s?(a=t.child,a.childLanes=0,a.pendingProps=S,t.deletions=null):(a=aa(s,S),a.subtreeFlags=s.subtreeFlags&14680064),b!==null?l=aa(b,l):(l=Ia(l,f,r,null),l.flags|=2),l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,f=e.child.memoizedState,f=f===null?vh(r):{baseLanes:f.baseLanes|r,cachePool:null,transitions:f.transitions},l.memoizedState=f,l.childLanes=e.childLanes&~r,t.memoizedState=bh,a}return l=e.child,e=l.sibling,a=aa(l,{mode:"visible",children:a.children}),!(t.mode&1)&&(a.lanes=r),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Gg(e,t){return t=yd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pu(e,t,r,a){return a!==null&&Rg(a),Wi(t,e.child,null,r),e=Gg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function LM(e,t,r,a,s,l,f){if(r)return t.flags&256?(t.flags&=-257,a=sp(Error(Ye(422))),Pu(e,t,f,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=a.fallback,s=t.mode,a=yd({mode:"visible",children:a.children},s,0,null),l=Ia(l,s,f,null),l.flags|=2,a.return=t,l.return=t,a.sibling=l,t.child=a,t.mode&1&&Wi(t,e.child,null,f),t.child.memoizedState=vh(f),t.memoizedState=bh,l);if(!(t.mode&1))return Pu(e,t,f,null);if(s.data==="$!"){if(a=s.nextSibling&&s.nextSibling.dataset,a)var b=a.dgst;return a=b,l=Error(Ye(419)),a=sp(l,a,void 0),Pu(e,t,f,a)}if(b=(f&e.childLanes)!==0,Gr||b){if(a=hr,a!==null){switch(f&-f){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(a.suspendedLanes|f)?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,ko(e,s),jn(a,e,s,-1))}return Qg(),a=sp(Error(Ye(421))),Pu(e,t,f,a)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=$M.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,en=ta(s.nextSibling),tn=t,Bt=!0,Rn=null,e!==null&&(gn[bn++]=vo,gn[bn++]=mo,gn[bn++]=Da,vo=e.id,mo=e.overflow,Da=t),t=Gg(t,a.children),t.flags|=4096,t)}function Jm(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ch(e.return,t,r)}function lp(e,t,r,a,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=a,l.tail=r,l.tailMode=s)}function D1(e,t,r){var a=t.pendingProps,s=a.revealOrder,l=a.tail;if(Nr(e,t,a.children,r),a=Yt.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jm(e,r,t);else if(e.tag===19)Jm(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Rt(Yt,a),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&_c(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),lp(t,!1,s,r,l);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&_c(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}lp(t,!0,r,null,l);break;case"together":lp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function To(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Fa|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ye(153));if(t.child!==null){for(e=t.child,r=aa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=aa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function jM(e,t,r){switch(t.tag){case 3:L1(t),Vi();break;case 5:c1(t);break;case 1:qr(t.type)&&wc(t);break;case 4:zg(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,s=t.memoizedProps.value;Rt(kc,a._currentValue),a._currentValue=s;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Rt(Yt,Yt.current&1),t.flags|=128,null):r&t.child.childLanes?j1(e,t,r):(Rt(Yt,Yt.current&1),e=To(e,t,r),e!==null?e.sibling:null);Rt(Yt,Yt.current&1);break;case 19:if(a=(r&t.childLanes)!==0,e.flags&128){if(a)return D1(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Rt(Yt,Yt.current),a)break;return null;case 22:case 23:return t.lanes=0,N1(e,t,r)}return To(e,t,r)}var z1,mh,F1,V1;z1=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};mh=function(){};F1=function(e,t,r,a){var s=e.memoizedProps;if(s!==a){e=t.stateNode,Ma(no.current);var l=null;switch(r){case"input":s=Vp(e,s),a=Vp(e,a),l=[];break;case"select":s=qt({},s,{value:void 0}),a=qt({},a,{value:void 0}),l=[];break;case"textarea":s=Hp(e,s),a=Hp(e,a),l=[];break;default:typeof s.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=yc)}Yp(r,a);var f;r=null;for(T in s)if(!a.hasOwnProperty(T)&&s.hasOwnProperty(T)&&s[T]!=null)if(T==="style"){var b=s[T];for(f in b)b.hasOwnProperty(f)&&(r||(r={}),r[f]="")}else T!=="dangerouslySetInnerHTML"&&T!=="children"&&T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(il.hasOwnProperty(T)?l||(l=[]):(l=l||[]).push(T,null));for(T in a){var S=a[T];if(b=s!=null?s[T]:void 0,a.hasOwnProperty(T)&&S!==b&&(S!=null||b!=null))if(T==="style")if(b){for(f in b)!b.hasOwnProperty(f)||S&&S.hasOwnProperty(f)||(r||(r={}),r[f]="");for(f in S)S.hasOwnProperty(f)&&b[f]!==S[f]&&(r||(r={}),r[f]=S[f])}else r||(l||(l=[]),l.push(T,r)),r=S;else T==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,b=b?b.__html:void 0,S!=null&&b!==S&&(l=l||[]).push(T,S)):T==="children"?typeof S!="string"&&typeof S!="number"||(l=l||[]).push(T,""+S):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&(il.hasOwnProperty(T)?(S!=null&&T==="onScroll"&&Dt("scroll",e),l||b===S||(l=[])):(l=l||[]).push(T,S))}r&&(l=l||[]).push("style",r);var T=l;(t.updateQueue=T)&&(t.flags|=4)}};V1=function(e,t,r,a){r!==a&&(t.flags|=4)};function Is(e,t){if(!Bt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Sr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,a|=s.subtreeFlags&14680064,a|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function DM(e,t,r){var a=t.pendingProps;switch(Mg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(t),null;case 1:return qr(t.type)&&xc(),Sr(t),null;case 3:return a=t.stateNode,Bi(),Ft($r),Ft(Or),Vg(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ku(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rn!==null&&(Ph(Rn),Rn=null))),mh(e,t),Sr(t),null;case 5:Fg(t);var s=Ma(ml.current);if(r=t.type,e!==null&&t.stateNode!=null)F1(e,t,r,a,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(Ye(166));return Sr(t),null}if(e=Ma(no.current),ku(t)){a=t.stateNode,r=t.type;var l=t.memoizedProps;switch(a[to]=t,a[bl]=l,e=(t.mode&1)!==0,r){case"dialog":Dt("cancel",a),Dt("close",a);break;case"iframe":case"object":case"embed":Dt("load",a);break;case"video":case"audio":for(s=0;s<Hs.length;s++)Dt(Hs[s],a);break;case"source":Dt("error",a);break;case"img":case"image":case"link":Dt("error",a),Dt("load",a);break;case"details":Dt("toggle",a);break;case"input":lm(a,l),Dt("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!l.multiple},Dt("invalid",a);break;case"textarea":cm(a,l),Dt("invalid",a)}Yp(r,l),s=null;for(var f in l)if(l.hasOwnProperty(f)){var b=l[f];f==="children"?typeof b=="string"?a.textContent!==b&&(l.suppressHydrationWarning!==!0&&Su(a.textContent,b,e),s=["children",b]):typeof b=="number"&&a.textContent!==""+b&&(l.suppressHydrationWarning!==!0&&Su(a.textContent,b,e),s=["children",""+b]):il.hasOwnProperty(f)&&b!=null&&f==="onScroll"&&Dt("scroll",a)}switch(r){case"input":gu(a),um(a,l,!0);break;case"textarea":gu(a),dm(a);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(a.onclick=yc)}a=s,t.updateQueue=a,a!==null&&(t.flags|=4)}else{f=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pw(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=f.createElement(r,{is:a.is}):(e=f.createElement(r),r==="select"&&(f=e,a.multiple?f.multiple=!0:a.size&&(f.size=a.size))):e=f.createElementNS(e,r),e[to]=t,e[bl]=a,z1(e,t,!1,!1),t.stateNode=e;e:{switch(f=Gp(r,a),r){case"dialog":Dt("cancel",e),Dt("close",e),s=a;break;case"iframe":case"object":case"embed":Dt("load",e),s=a;break;case"video":case"audio":for(s=0;s<Hs.length;s++)Dt(Hs[s],e);s=a;break;case"source":Dt("error",e),s=a;break;case"img":case"image":case"link":Dt("error",e),Dt("load",e),s=a;break;case"details":Dt("toggle",e),s=a;break;case"input":lm(e,a),s=Vp(e,a),Dt("invalid",e);break;case"option":s=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},s=qt({},a,{value:void 0}),Dt("invalid",e);break;case"textarea":cm(e,a),s=Hp(e,a),Dt("invalid",e);break;default:s=a}Yp(r,s),b=s;for(l in b)if(b.hasOwnProperty(l)){var S=b[l];l==="style"?bw(e,S):l==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&hw(e,S)):l==="children"?typeof S=="string"?(r!=="textarea"||S!=="")&&sl(e,S):typeof S=="number"&&sl(e,""+S):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(il.hasOwnProperty(l)?S!=null&&l==="onScroll"&&Dt("scroll",e):S!=null&&bg(e,l,S,f))}switch(r){case"input":gu(e),um(e,a,!1);break;case"textarea":gu(e),dm(e);break;case"option":a.value!=null&&e.setAttribute("value",""+la(a.value));break;case"select":e.multiple=!!a.multiple,l=a.value,l!=null?_i(e,!!a.multiple,l,!1):a.defaultValue!=null&&_i(e,!!a.multiple,a.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=yc)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Sr(t),null;case 6:if(e&&t.stateNode!=null)V1(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(Ye(166));if(r=Ma(ml.current),Ma(no.current),ku(t)){if(a=t.stateNode,r=t.memoizedProps,a[to]=t,(l=a.nodeValue!==r)&&(e=tn,e!==null))switch(e.tag){case 3:Su(a.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Su(a.nodeValue,r,(e.mode&1)!==0)}l&&(t.flags|=4)}else a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[to]=t,t.stateNode=a}return Sr(t),null;case 13:if(Ft(Yt),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Bt&&en!==null&&t.mode&1&&!(t.flags&128))n1(),Vi(),t.flags|=98560,l=!1;else if(l=ku(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(Ye(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(Ye(317));l[to]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sr(t),l=!1}else Rn!==null&&(Ph(Rn),Rn=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,t.mode&1&&(e===null||Yt.current&1?sr===0&&(sr=3):Qg())),t.updateQueue!==null&&(t.flags|=4),Sr(t),null);case 4:return Bi(),mh(e,t),e===null&&hl(t.stateNode.containerInfo),Sr(t),null;case 10:return Lg(t.type._context),Sr(t),null;case 17:return qr(t.type)&&xc(),Sr(t),null;case 19:if(Ft(Yt),l=t.memoizedState,l===null)return Sr(t),null;if(a=(t.flags&128)!==0,f=l.rendering,f===null)if(a)Is(l,!1);else{if(sr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(f=_c(e),f!==null){for(t.flags|=128,Is(l,!1),a=f.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;r!==null;)l=r,e=a,l.flags&=14680066,f=l.alternate,f===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=f.childLanes,l.lanes=f.lanes,l.child=f.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=f.memoizedProps,l.memoizedState=f.memoizedState,l.updateQueue=f.updateQueue,l.type=f.type,e=f.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Rt(Yt,Yt.current&1|2),t.child}e=e.sibling}l.tail!==null&&rr()>Xi&&(t.flags|=128,a=!0,Is(l,!1),t.lanes=4194304)}else{if(!a)if(e=_c(f),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Is(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Bt)return Sr(t),null}else 2*rr()-l.renderingStartTime>Xi&&r!==1073741824&&(t.flags|=128,a=!0,Is(l,!1),t.lanes=4194304);l.isBackwards?(f.sibling=t.child,t.child=f):(r=l.last,r!==null?r.sibling=f:t.child=f,l.last=f)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=rr(),t.sibling=null,r=Yt.current,Rt(Yt,a?r&1|2:r&1),t):(Sr(t),null);case 22:case 23:return Zg(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?Jr&1073741824&&(Sr(t),t.subtreeFlags&6&&(t.flags|=8192)):Sr(t),null;case 24:return null;case 25:return null}throw Error(Ye(156,t.tag))}function zM(e,t){switch(Mg(t),t.tag){case 1:return qr(t.type)&&xc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bi(),Ft($r),Ft(Or),Vg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fg(t),null;case 13:if(Ft(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ye(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Yt),null;case 4:return Bi(),null;case 10:return Lg(t.type._context),null;case 22:case 23:return Zg(),null;case 24:return null;default:return null}}var _u=!1,Pr=!1,FM=typeof WeakSet=="function"?WeakSet:Set,et=null;function Si(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){Kt(e,t,a)}else r.current=null}function yh(e,t,r){try{r()}catch(a){Kt(e,t,a)}}var ey=!1;function VM(e,t){if(rh=bc,e=Xw(),Ag(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var s=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{r.nodeType,l.nodeType}catch{r=null;break e}var f=0,b=-1,S=-1,T=0,O=0,j=e,F=null;t:for(;;){for(var z;j!==r||s!==0&&j.nodeType!==3||(b=f+s),j!==l||a!==0&&j.nodeType!==3||(S=f+a),j.nodeType===3&&(f+=j.nodeValue.length),(z=j.firstChild)!==null;)F=j,j=z;for(;;){if(j===e)break t;if(F===r&&++T===s&&(b=f),F===l&&++O===a&&(S=f),(z=j.nextSibling)!==null)break;j=F,F=j.parentNode}j=z}r=b===-1||S===-1?null:{start:b,end:S}}else r=null}r=r||{start:0,end:0}}else r=null;for(nh={focusedElem:e,selectionRange:r},bc=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){t=et;try{var D=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(D!==null){var R=D.memoizedProps,P=D.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?R:En(t.type,R),P);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ye(163))}}catch(g){Kt(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}return D=ey,ey=!1,D}function Qs(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var s=a=a.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&yh(t,r,l)}s=s.next}while(s!==a)}}function vd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var a=r.create;r.destroy=a()}r=r.next}while(r!==t)}}function xh(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function W1(e){var t=e.alternate;t!==null&&(e.alternate=null,W1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[to],delete t[bl],delete t[ih],delete t[CM],delete t[SM])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function B1(e){return e.tag===5||e.tag===3||e.tag===4}function ty(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wh(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=yc));else if(a!==4&&(e=e.child,e!==null))for(wh(e,t,r),e=e.sibling;e!==null;)wh(e,t,r),e=e.sibling}function Ch(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Ch(e,t,r),e=e.sibling;e!==null;)Ch(e,t,r),e=e.sibling}var vr=null,Mn=!1;function Fo(e,t,r){for(r=r.child;r!==null;)H1(e,t,r),r=r.sibling}function H1(e,t,r){if(ro&&typeof ro.onCommitFiberUnmount=="function")try{ro.onCommitFiberUnmount(ud,r)}catch{}switch(r.tag){case 5:Pr||Si(r,t);case 6:var a=vr,s=Mn;vr=null,Fo(e,t,r),vr=a,Mn=s,vr!==null&&(Mn?(e=vr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):vr.removeChild(r.stateNode));break;case 18:vr!==null&&(Mn?(e=vr,r=r.stateNode,e.nodeType===8?tp(e.parentNode,r):e.nodeType===1&&tp(e,r),dl(e)):tp(vr,r.stateNode));break;case 4:a=vr,s=Mn,vr=r.stateNode.containerInfo,Mn=!0,Fo(e,t,r),vr=a,Mn=s;break;case 0:case 11:case 14:case 15:if(!Pr&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){s=a=a.next;do{var l=s,f=l.destroy;l=l.tag,f!==void 0&&(l&2||l&4)&&yh(r,t,f),s=s.next}while(s!==a)}Fo(e,t,r);break;case 1:if(!Pr&&(Si(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(b){Kt(r,t,b)}Fo(e,t,r);break;case 21:Fo(e,t,r);break;case 22:r.mode&1?(Pr=(a=Pr)||r.memoizedState!==null,Fo(e,t,r),Pr=a):Fo(e,t,r);break;default:Fo(e,t,r)}}function ry(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FM),t.forEach(function(a){var s=qM.bind(null,e,a);r.has(a)||(r.add(a),a.then(s,s))})}}function On(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var s=r[a];try{var l=e,f=t,b=f;e:for(;b!==null;){switch(b.tag){case 5:vr=b.stateNode,Mn=!1;break e;case 3:vr=b.stateNode.containerInfo,Mn=!0;break e;case 4:vr=b.stateNode.containerInfo,Mn=!0;break e}b=b.return}if(vr===null)throw Error(Ye(160));H1(l,f,s),vr=null,Mn=!1;var S=s.alternate;S!==null&&(S.return=null),s.return=null}catch(T){Kt(s,t,T)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)X1(t,e),t=t.sibling}function X1(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(On(t,e),Jn(e),a&4){try{Qs(3,e,e.return),vd(3,e)}catch(R){Kt(e,e.return,R)}try{Qs(5,e,e.return)}catch(R){Kt(e,e.return,R)}}break;case 1:On(t,e),Jn(e),a&512&&r!==null&&Si(r,r.return);break;case 5:if(On(t,e),Jn(e),a&512&&r!==null&&Si(r,r.return),e.flags&32){var s=e.stateNode;try{sl(s,"")}catch(R){Kt(e,e.return,R)}}if(a&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,f=r!==null?r.memoizedProps:l,b=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{b==="input"&&l.type==="radio"&&l.name!=null&&dw(s,l),Gp(b,f);var T=Gp(b,l);for(f=0;f<S.length;f+=2){var O=S[f],j=S[f+1];O==="style"?bw(s,j):O==="dangerouslySetInnerHTML"?hw(s,j):O==="children"?sl(s,j):bg(s,O,j,T)}switch(b){case"input":Wp(s,l);break;case"textarea":fw(s,l);break;case"select":var F=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var z=l.value;z!=null?_i(s,!!l.multiple,z,!1):F!==!!l.multiple&&(l.defaultValue!=null?_i(s,!!l.multiple,l.defaultValue,!0):_i(s,!!l.multiple,l.multiple?[]:"",!1))}s[bl]=l}catch(R){Kt(e,e.return,R)}}break;case 6:if(On(t,e),Jn(e),a&4){if(e.stateNode===null)throw Error(Ye(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(R){Kt(e,e.return,R)}}break;case 3:if(On(t,e),Jn(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{dl(t.containerInfo)}catch(R){Kt(e,e.return,R)}break;case 4:On(t,e),Jn(e);break;case 13:On(t,e),Jn(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(qg=rr())),a&4&&ry(e);break;case 22:if(O=r!==null&&r.memoizedState!==null,e.mode&1?(Pr=(T=Pr)||O,On(t,e),Pr=T):On(t,e),Jn(e),a&8192){if(T=e.memoizedState!==null,(e.stateNode.isHidden=T)&&!O&&e.mode&1)for(et=e,O=e.child;O!==null;){for(j=et=O;et!==null;){switch(F=et,z=F.child,F.tag){case 0:case 11:case 14:case 15:Qs(4,F,F.return);break;case 1:Si(F,F.return);var D=F.stateNode;if(typeof D.componentWillUnmount=="function"){a=F,r=F.return;try{t=a,D.props=t.memoizedProps,D.state=t.memoizedState,D.componentWillUnmount()}catch(R){Kt(a,r,R)}}break;case 5:Si(F,F.return);break;case 22:if(F.memoizedState!==null){oy(j);continue}}z!==null?(z.return=F,et=z):oy(j)}O=O.sibling}e:for(O=null,j=e;;){if(j.tag===5){if(O===null){O=j;try{s=j.stateNode,T?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(b=j.stateNode,S=j.memoizedProps.style,f=S!=null&&S.hasOwnProperty("display")?S.display:null,b.style.display=gw("display",f))}catch(R){Kt(e,e.return,R)}}}else if(j.tag===6){if(O===null)try{j.stateNode.nodeValue=T?"":j.memoizedProps}catch(R){Kt(e,e.return,R)}}else if((j.tag!==22&&j.tag!==23||j.memoizedState===null||j===e)&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===e)break e;for(;j.sibling===null;){if(j.return===null||j.return===e)break e;O===j&&(O=null),j=j.return}O===j&&(O=null),j.sibling.return=j.return,j=j.sibling}}break;case 19:On(t,e),Jn(e),a&4&&ry(e);break;case 21:break;default:On(t,e),Jn(e)}}function Jn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(B1(r)){var a=r;break e}r=r.return}throw Error(Ye(160))}switch(a.tag){case 5:var s=a.stateNode;a.flags&32&&(sl(s,""),a.flags&=-33);var l=ty(e);Ch(e,l,s);break;case 3:case 4:var f=a.stateNode.containerInfo,b=ty(e);wh(e,b,f);break;default:throw Error(Ye(161))}}catch(S){Kt(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function WM(e,t,r){et=e,Y1(e)}function Y1(e,t,r){for(var a=(e.mode&1)!==0;et!==null;){var s=et,l=s.child;if(s.tag===22&&a){var f=s.memoizedState!==null||_u;if(!f){var b=s.alternate,S=b!==null&&b.memoizedState!==null||Pr;b=_u;var T=Pr;if(_u=f,(Pr=S)&&!T)for(et=s;et!==null;)f=et,S=f.child,f.tag===22&&f.memoizedState!==null?ay(s):S!==null?(S.return=f,et=S):ay(s);for(;l!==null;)et=l,Y1(l),l=l.sibling;et=s,_u=b,Pr=T}ny(e)}else s.subtreeFlags&8772&&l!==null?(l.return=s,et=l):ny(e)}}function ny(e){for(;et!==null;){var t=et;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pr||vd(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!Pr)if(r===null)a.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:En(t.type,r.memoizedProps);a.componentDidUpdate(s,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Vm(t,l,a);break;case 3:var f=t.updateQueue;if(f!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Vm(t,f,r)}break;case 5:var b=t.stateNode;if(r===null&&t.flags&4){r=b;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&r.focus();break;case"img":S.src&&(r.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var T=t.alternate;if(T!==null){var O=T.memoizedState;if(O!==null){var j=O.dehydrated;j!==null&&dl(j)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ye(163))}Pr||t.flags&512&&xh(t)}catch(F){Kt(t,t.return,F)}}if(t===e){et=null;break}if(r=t.sibling,r!==null){r.return=t.return,et=r;break}et=t.return}}function oy(e){for(;et!==null;){var t=et;if(t===e){et=null;break}var r=t.sibling;if(r!==null){r.return=t.return,et=r;break}et=t.return}}function ay(e){for(;et!==null;){var t=et;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{vd(4,t)}catch(S){Kt(t,r,S)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var s=t.return;try{a.componentDidMount()}catch(S){Kt(t,s,S)}}var l=t.return;try{xh(t)}catch(S){Kt(t,l,S)}break;case 5:var f=t.return;try{xh(t)}catch(S){Kt(t,f,S)}}}catch(S){Kt(t,t.return,S)}if(t===e){et=null;break}var b=t.sibling;if(b!==null){b.return=t.return,et=b;break}et=t.return}}var BM=Math.ceil,Ec=Oo.ReactCurrentDispatcher,Ug=Oo.ReactCurrentOwner,xn=Oo.ReactCurrentBatchConfig,St=0,hr=null,nr=null,mr=0,Jr=0,ki=fa(0),sr=0,Cl=null,Fa=0,md=0,$g=0,Js=null,Xr=null,qg=0,Xi=1/0,go=null,Mc=!1,Sh=null,na=null,Ou=!1,Ko=null,Rc=0,el=0,kh=null,Uu=-1,$u=0;function Ir(){return St&6?rr():Uu!==-1?Uu:Uu=rr()}function oa(e){return e.mode&1?St&2&&mr!==0?mr&-mr:TM.transition!==null?($u===0&&($u=Ow()),$u):(e=Ot,e!==0||(e=window.event,e=e===void 0?16:Lw(e.type)),e):1}function jn(e,t,r,a){if(50<el)throw el=0,kh=null,Error(Ye(185));jl(e,r,a),(!(St&2)||e!==hr)&&(e===hr&&(!(St&2)&&(md|=r),sr===4&&$o(e,mr)),Kr(e,a),r===1&&St===0&&!(t.mode&1)&&(Xi=rr()+500,hd&&pa()))}function Kr(e,t){var r=e.callbackNode;TE(e,t);var a=gc(e,e===hr?mr:0);if(a===0)r!==null&&hm(r),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(r!=null&&hm(r),t===1)e.tag===0?kM(iy.bind(null,e)):e1(iy.bind(null,e)),xM(function(){!(St&6)&&pa()}),r=null;else{switch(Aw(a)){case 1:r=wg;break;case 4:r=Pw;break;case 16:r=hc;break;case 536870912:r=_w;break;default:r=hc}r=J1(r,G1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function G1(e,t){if(Uu=-1,$u=0,St&6)throw Error(Ye(327));var r=e.callbackNode;if(Ri()&&e.callbackNode!==r)return null;var a=gc(e,e===hr?mr:0);if(a===0)return null;if(a&30||a&e.expiredLanes||t)t=Nc(e,a);else{t=a;var s=St;St|=2;var l=$1();(hr!==e||mr!==t)&&(go=null,Xi=rr()+500,Na(e,t));do try{YM();break}catch(b){U1(e,b)}while(1);Ig(),Ec.current=l,St=s,nr!==null?t=0:(hr=null,mr=0,t=sr)}if(t!==0){if(t===2&&(s=Zp(e),s!==0&&(a=s,t=Th(e,s))),t===1)throw r=Cl,Na(e,0),$o(e,a),Kr(e,rr()),r;if(t===6)$o(e,a);else{if(s=e.current.alternate,!(a&30)&&!HM(s)&&(t=Nc(e,a),t===2&&(l=Zp(e),l!==0&&(a=l,t=Th(e,l))),t===1))throw r=Cl,Na(e,0),$o(e,a),Kr(e,rr()),r;switch(e.finishedWork=s,e.finishedLanes=a,t){case 0:case 1:throw Error(Ye(345));case 2:Oa(e,Xr,go);break;case 3:if($o(e,a),(a&130023424)===a&&(t=qg+500-rr(),10<t)){if(gc(e,0)!==0)break;if(s=e.suspendedLanes,(s&a)!==a){Ir(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=ah(Oa.bind(null,e,Xr,go),t);break}Oa(e,Xr,go);break;case 4:if($o(e,a),(a&4194240)===a)break;for(t=e.eventTimes,s=-1;0<a;){var f=31-Ln(a);l=1<<f,f=t[f],f>s&&(s=f),a&=~l}if(a=s,a=rr()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*BM(a/1960))-a,10<a){e.timeoutHandle=ah(Oa.bind(null,e,Xr,go),a);break}Oa(e,Xr,go);break;case 5:Oa(e,Xr,go);break;default:throw Error(Ye(329))}}}return Kr(e,rr()),e.callbackNode===r?G1.bind(null,e):null}function Th(e,t){var r=Js;return e.current.memoizedState.isDehydrated&&(Na(e,t).flags|=256),e=Nc(e,t),e!==2&&(t=Xr,Xr=r,t!==null&&Ph(t)),e}function Ph(e){Xr===null?Xr=e:Xr.push.apply(Xr,e)}function HM(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var a=0;a<r.length;a++){var s=r[a],l=s.getSnapshot;s=s.value;try{if(!Fn(l(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $o(e,t){for(t&=~$g,t&=~md,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ln(t),a=1<<r;e[r]=-1,t&=~a}}function iy(e){if(St&6)throw Error(Ye(327));Ri();var t=gc(e,0);if(!(t&1))return Kr(e,rr()),null;var r=Nc(e,t);if(e.tag!==0&&r===2){var a=Zp(e);a!==0&&(t=a,r=Th(e,a))}if(r===1)throw r=Cl,Na(e,0),$o(e,t),Kr(e,rr()),r;if(r===6)throw Error(Ye(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Oa(e,Xr,go),Kr(e,rr()),null}function Kg(e,t){var r=St;St|=1;try{return e(t)}finally{St=r,St===0&&(Xi=rr()+500,hd&&pa())}}function Va(e){Ko!==null&&Ko.tag===0&&!(St&6)&&Ri();var t=St;St|=1;var r=xn.transition,a=Ot;try{if(xn.transition=null,Ot=1,e)return e()}finally{Ot=a,xn.transition=r,St=t,!(St&6)&&pa()}}function Zg(){Jr=ki.current,Ft(ki)}function Na(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,yM(r)),nr!==null)for(r=nr.return;r!==null;){var a=r;switch(Mg(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&xc();break;case 3:Bi(),Ft($r),Ft(Or),Vg();break;case 5:Fg(a);break;case 4:Bi();break;case 13:Ft(Yt);break;case 19:Ft(Yt);break;case 10:Lg(a.type._context);break;case 22:case 23:Zg()}r=r.return}if(hr=e,nr=e=aa(e.current,null),mr=Jr=t,sr=0,Cl=null,$g=md=Fa=0,Xr=Js=null,Ea!==null){for(t=0;t<Ea.length;t++)if(r=Ea[t],a=r.interleaved,a!==null){r.interleaved=null;var s=a.next,l=r.pending;if(l!==null){var f=l.next;l.next=s,a.next=f}r.pending=a}Ea=null}return e}function U1(e,t){do{var r=nr;try{if(Ig(),Xu.current=Ac,Oc){for(var a=Ut.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}Oc=!1}if(za=0,pr=ir=Ut=null,Zs=!1,yl=0,Ug.current=null,r===null||r.return===null){sr=1,Cl=t,nr=null;break}e:{var l=e,f=r.return,b=r,S=t;if(t=mr,b.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var T=S,O=b,j=O.tag;if(!(O.mode&1)&&(j===0||j===11||j===15)){var F=O.alternate;F?(O.updateQueue=F.updateQueue,O.memoizedState=F.memoizedState,O.lanes=F.lanes):(O.updateQueue=null,O.memoizedState=null)}var z=Um(f);if(z!==null){z.flags&=-257,$m(z,f,b,l,t),z.mode&1&&Gm(l,T,t),t=z,S=T;var D=t.updateQueue;if(D===null){var R=new Set;R.add(S),t.updateQueue=R}else D.add(S);break e}else{if(!(t&1)){Gm(l,T,t),Qg();break e}S=Error(Ye(426))}}else if(Bt&&b.mode&1){var P=Um(f);if(P!==null){!(P.flags&65536)&&(P.flags|=256),$m(P,f,b,l,t),Rg(Hi(S,b));break e}}l=S=Hi(S,b),sr!==4&&(sr=2),Js===null?Js=[l]:Js.push(l),l=f;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var y=E1(l,S,t);Fm(l,y);break e;case 1:b=S;var p=l.type,v=l.stateNode;if(!(l.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(na===null||!na.has(v)))){l.flags|=65536,t&=-t,l.lanes|=t;var g=M1(l,b,t);Fm(l,g);break e}}l=l.return}while(l!==null)}K1(r)}catch(m){t=m,nr===r&&r!==null&&(nr=r=r.return);continue}break}while(1)}function $1(){var e=Ec.current;return Ec.current=Ac,e===null?Ac:e}function Qg(){(sr===0||sr===3||sr===2)&&(sr=4),hr===null||!(Fa&268435455)&&!(md&268435455)||$o(hr,mr)}function Nc(e,t){var r=St;St|=2;var a=$1();(hr!==e||mr!==t)&&(go=null,Na(e,t));do try{XM();break}catch(s){U1(e,s)}while(1);if(Ig(),St=r,Ec.current=a,nr!==null)throw Error(Ye(261));return hr=null,mr=0,sr}function XM(){for(;nr!==null;)q1(nr)}function YM(){for(;nr!==null&&!bE();)q1(nr)}function q1(e){var t=Q1(e.alternate,e,Jr);e.memoizedProps=e.pendingProps,t===null?K1(e):nr=t,Ug.current=null}function K1(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=zM(r,t),r!==null){r.flags&=32767,nr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sr=6,nr=null;return}}else if(r=DM(r,t,Jr),r!==null){nr=r;return}if(t=t.sibling,t!==null){nr=t;return}nr=t=e}while(t!==null);sr===0&&(sr=5)}function Oa(e,t,r){var a=Ot,s=xn.transition;try{xn.transition=null,Ot=1,GM(e,t,r,a)}finally{xn.transition=s,Ot=a}return null}function GM(e,t,r,a){do Ri();while(Ko!==null);if(St&6)throw Error(Ye(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Ye(177));e.callbackNode=null,e.callbackPriority=0;var l=r.lanes|r.childLanes;if(PE(e,l),e===hr&&(nr=hr=null,mr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ou||(Ou=!0,J1(hc,function(){return Ri(),null})),l=(r.flags&15990)!==0,r.subtreeFlags&15990||l){l=xn.transition,xn.transition=null;var f=Ot;Ot=1;var b=St;St|=4,Ug.current=null,VM(e,r),X1(r,e),fM(nh),bc=!!rh,nh=rh=null,e.current=r,WM(r),vE(),St=b,Ot=f,xn.transition=l}else e.current=r;if(Ou&&(Ou=!1,Ko=e,Rc=s),l=e.pendingLanes,l===0&&(na=null),xE(r.stateNode),Kr(e,rr()),t!==null)for(a=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],a(s.value,{componentStack:s.stack,digest:s.digest});if(Mc)throw Mc=!1,e=Sh,Sh=null,e;return Rc&1&&e.tag!==0&&Ri(),l=e.pendingLanes,l&1?e===kh?el++:(el=0,kh=e):el=0,pa(),null}function Ri(){if(Ko!==null){var e=Aw(Rc),t=xn.transition,r=Ot;try{if(xn.transition=null,Ot=16>e?16:e,Ko===null)var a=!1;else{if(e=Ko,Ko=null,Rc=0,St&6)throw Error(Ye(331));var s=St;for(St|=4,et=e.current;et!==null;){var l=et,f=l.child;if(et.flags&16){var b=l.deletions;if(b!==null){for(var S=0;S<b.length;S++){var T=b[S];for(et=T;et!==null;){var O=et;switch(O.tag){case 0:case 11:case 15:Qs(8,O,l)}var j=O.child;if(j!==null)j.return=O,et=j;else for(;et!==null;){O=et;var F=O.sibling,z=O.return;if(W1(O),O===T){et=null;break}if(F!==null){F.return=z,et=F;break}et=z}}}var D=l.alternate;if(D!==null){var R=D.child;if(R!==null){D.child=null;do{var P=R.sibling;R.sibling=null,R=P}while(R!==null)}}et=l}}if(l.subtreeFlags&2064&&f!==null)f.return=l,et=f;else e:for(;et!==null;){if(l=et,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Qs(9,l,l.return)}var y=l.sibling;if(y!==null){y.return=l.return,et=y;break e}et=l.return}}var p=e.current;for(et=p;et!==null;){f=et;var v=f.child;if(f.subtreeFlags&2064&&v!==null)v.return=f,et=v;else e:for(f=p;et!==null;){if(b=et,b.flags&2048)try{switch(b.tag){case 0:case 11:case 15:vd(9,b)}}catch(m){Kt(b,b.return,m)}if(b===f){et=null;break e}var g=b.sibling;if(g!==null){g.return=b.return,et=g;break e}et=b.return}}if(St=s,pa(),ro&&typeof ro.onPostCommitFiberRoot=="function")try{ro.onPostCommitFiberRoot(ud,e)}catch{}a=!0}return a}finally{Ot=r,xn.transition=t}}return!1}function sy(e,t,r){t=Hi(r,t),t=E1(e,t,1),e=ra(e,t,1),t=Ir(),e!==null&&(jl(e,1,t),Kr(e,t))}function Kt(e,t,r){if(e.tag===3)sy(e,e,r);else for(;t!==null;){if(t.tag===3){sy(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(na===null||!na.has(a))){e=Hi(r,e),e=M1(t,e,1),t=ra(t,e,1),e=Ir(),t!==null&&(jl(t,1,e),Kr(t,e));break}}t=t.return}}function UM(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),t=Ir(),e.pingedLanes|=e.suspendedLanes&r,hr===e&&(mr&r)===r&&(sr===4||sr===3&&(mr&130023424)===mr&&500>rr()-qg?Na(e,0):$g|=r),Kr(e,t)}function Z1(e,t){t===0&&(e.mode&1?(t=mu,mu<<=1,!(mu&130023424)&&(mu=4194304)):t=1);var r=Ir();e=ko(e,t),e!==null&&(jl(e,t,r),Kr(e,r))}function $M(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Z1(e,r)}function qM(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(Ye(314))}a!==null&&a.delete(t),Z1(e,r)}var Q1;Q1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||$r.current)Gr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Gr=!1,jM(e,t,r);Gr=!!(e.flags&131072)}else Gr=!1,Bt&&t.flags&1048576&&t1(t,Sc,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Gu(e,t),e=t.pendingProps;var s=Fi(t,Or.current);Mi(t,r),s=Bg(null,t,a,e,s,r);var l=Hg();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qr(a)?(l=!0,wc(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Dg(t),s.updater=gd,t.stateNode=s,s._reactInternals=t,fh(t,a,e,r),t=gh(null,t,a,!0,l,r)):(t.tag=0,Bt&&l&&Eg(t),Nr(null,t,s,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Gu(e,t),e=t.pendingProps,s=a._init,a=s(a._payload),t.type=a,s=t.tag=ZM(a),e=En(a,e),s){case 0:t=hh(null,t,a,e,r);break e;case 1:t=Zm(null,t,a,e,r);break e;case 11:t=qm(null,t,a,e,r);break e;case 14:t=Km(null,t,a,En(a.type,e),r);break e}throw Error(Ye(306,a,""))}return t;case 0:return a=t.type,s=t.pendingProps,s=t.elementType===a?s:En(a,s),hh(e,t,a,s,r);case 1:return a=t.type,s=t.pendingProps,s=t.elementType===a?s:En(a,s),Zm(e,t,a,s,r);case 3:e:{if(L1(t),e===null)throw Error(Ye(387));a=t.pendingProps,l=t.memoizedState,s=l.element,a1(e,t),Pc(t,a,null,r);var f=t.memoizedState;if(a=f.element,l.isDehydrated)if(l={element:a,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=Hi(Error(Ye(423)),t),t=Qm(e,t,a,r,s);break e}else if(a!==s){s=Hi(Error(Ye(424)),t),t=Qm(e,t,a,r,s);break e}else for(en=ta(t.stateNode.containerInfo.firstChild),tn=t,Bt=!0,Rn=null,r=u1(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vi(),a===s){t=To(e,t,r);break e}Nr(e,t,a,r)}t=t.child}return t;case 5:return c1(t),e===null&&uh(t),a=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,f=s.children,oh(a,s)?f=null:l!==null&&oh(a,l)&&(t.flags|=32),I1(e,t),Nr(e,t,f,r),t.child;case 6:return e===null&&uh(t),null;case 13:return j1(e,t,r);case 4:return zg(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Wi(t,null,a,r):Nr(e,t,a,r),t.child;case 11:return a=t.type,s=t.pendingProps,s=t.elementType===a?s:En(a,s),qm(e,t,a,s,r);case 7:return Nr(e,t,t.pendingProps,r),t.child;case 8:return Nr(e,t,t.pendingProps.children,r),t.child;case 12:return Nr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,s=t.pendingProps,l=t.memoizedProps,f=s.value,Rt(kc,a._currentValue),a._currentValue=f,l!==null)if(Fn(l.value,f)){if(l.children===s.children&&!$r.current){t=To(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var b=l.dependencies;if(b!==null){f=l.child;for(var S=b.firstContext;S!==null;){if(S.context===a){if(l.tag===1){S=yo(-1,r&-r),S.tag=2;var T=l.updateQueue;if(T!==null){T=T.shared;var O=T.pending;O===null?S.next=S:(S.next=O.next,O.next=S),T.pending=S}}l.lanes|=r,S=l.alternate,S!==null&&(S.lanes|=r),ch(l.return,r,t),b.lanes|=r;break}S=S.next}}else if(l.tag===10)f=l.type===t.type?null:l.child;else if(l.tag===18){if(f=l.return,f===null)throw Error(Ye(341));f.lanes|=r,b=f.alternate,b!==null&&(b.lanes|=r),ch(f,r,t),f=l.sibling}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===t){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}Nr(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,a=t.pendingProps.children,Mi(t,r),s=Cn(s),a=a(s),t.flags|=1,Nr(e,t,a,r),t.child;case 14:return a=t.type,s=En(a,t.pendingProps),s=En(a.type,s),Km(e,t,a,s,r);case 15:return R1(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,s=t.pendingProps,s=t.elementType===a?s:En(a,s),Gu(e,t),t.tag=1,qr(a)?(e=!0,wc(t)):e=!1,Mi(t,r),s1(t,a,s),fh(t,a,s,r),gh(null,t,a,!0,e,r);case 19:return D1(e,t,r);case 22:return N1(e,t,r)}throw Error(Ye(156,t.tag))};function J1(e,t){return Tw(e,t)}function KM(e,t,r,a){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vn(e,t,r,a){return new KM(e,t,r,a)}function Jg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZM(e){if(typeof e=="function")return Jg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mg)return 11;if(e===yg)return 14}return 2}function aa(e,t){var r=e.alternate;return r===null?(r=vn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function qu(e,t,r,a,s,l){var f=2;if(a=e,typeof e=="function")Jg(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case hi:return Ia(r.children,s,l,t);case vg:f=8,s|=8;break;case jp:return e=vn(12,r,t,s|2),e.elementType=jp,e.lanes=l,e;case Dp:return e=vn(13,r,t,s),e.elementType=Dp,e.lanes=l,e;case zp:return e=vn(19,r,t,s),e.elementType=zp,e.lanes=l,e;case lw:return yd(r,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iw:f=10;break e;case sw:f=9;break e;case mg:f=11;break e;case yg:f=14;break e;case Xo:f=16,a=null;break e}throw Error(Ye(130,e==null?e:typeof e,""))}return t=vn(f,r,t,s),t.elementType=e,t.type=a,t.lanes=l,t}function Ia(e,t,r,a){return e=vn(7,e,a,t),e.lanes=r,e}function yd(e,t,r,a){return e=vn(22,e,a,t),e.elementType=lw,e.lanes=r,e.stateNode={isHidden:!1},e}function up(e,t,r){return e=vn(6,e,null,t),e.lanes=r,e}function cp(e,t,r){return t=vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QM(e,t,r,a,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xf(0),this.expirationTimes=Xf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xf(0),this.identifierPrefix=a,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function e0(e,t,r,a,s,l,f,b,S){return e=new QM(e,t,r,b,S),t===1?(t=1,l===!0&&(t|=8)):t=0,l=vn(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dg(l),e}function JM(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pi,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}function eC(e){if(!e)return ua;e=e._reactInternals;e:{if(Ua(e)!==e||e.tag!==1)throw Error(Ye(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ye(171))}if(e.tag===1){var r=e.type;if(qr(r))return Jw(e,r,t)}return t}function tC(e,t,r,a,s,l,f,b,S){return e=e0(r,a,!0,e,s,l,f,b,S),e.context=eC(null),r=e.current,a=Ir(),s=oa(r),l=yo(a,s),l.callback=t??null,ra(r,l,s),e.current.lanes=s,jl(e,s,a),Kr(e,a),e}function xd(e,t,r,a){var s=t.current,l=Ir(),f=oa(s);return r=eC(r),t.context===null?t.context=r:t.pendingContext=r,t=yo(l,f),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=ra(s,t,f),e!==null&&(jn(e,s,f,l),Hu(e,s,f)),f}function Ic(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ly(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function t0(e,t){ly(e,t),(e=e.alternate)&&ly(e,t)}function eR(){return null}var rC=typeof reportError=="function"?reportError:function(e){console.error(e)};function r0(e){this._internalRoot=e}wd.prototype.render=r0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ye(409));xd(e,t,null,null)};wd.prototype.unmount=r0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Va(function(){xd(null,e,null,null)}),t[So]=null}};function wd(e){this._internalRoot=e}wd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rw();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Uo.length&&t!==0&&t<Uo[r].priority;r++);Uo.splice(r,0,e),r===0&&Iw(e)}};function n0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function uy(){}function tR(e,t,r,a,s){if(s){if(typeof a=="function"){var l=a;a=function(){var T=Ic(f);l.call(T)}}var f=tC(t,a,e,0,null,!1,!1,"",uy);return e._reactRootContainer=f,e[So]=f.current,hl(e.nodeType===8?e.parentNode:e),Va(),f}for(;s=e.lastChild;)e.removeChild(s);if(typeof a=="function"){var b=a;a=function(){var T=Ic(S);b.call(T)}}var S=e0(e,0,!1,null,null,!1,!1,"",uy);return e._reactRootContainer=S,e[So]=S.current,hl(e.nodeType===8?e.parentNode:e),Va(function(){xd(t,S,r,a)}),S}function Sd(e,t,r,a,s){var l=r._reactRootContainer;if(l){var f=l;if(typeof s=="function"){var b=s;s=function(){var S=Ic(f);b.call(S)}}xd(t,f,e,s)}else f=tR(r,t,e,s,a);return Ic(f)}Ew=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Bs(t.pendingLanes);r!==0&&(Cg(t,r|1),Kr(t,rr()),!(St&6)&&(Xi=rr()+500,pa()))}break;case 13:Va(function(){var a=ko(e,1);if(a!==null){var s=Ir();jn(a,e,1,s)}}),t0(e,1)}};Sg=function(e){if(e.tag===13){var t=ko(e,134217728);if(t!==null){var r=Ir();jn(t,e,134217728,r)}t0(e,134217728)}};Mw=function(e){if(e.tag===13){var t=oa(e),r=ko(e,t);if(r!==null){var a=Ir();jn(r,e,t,a)}t0(e,t)}};Rw=function(){return Ot};Nw=function(e,t){var r=Ot;try{return Ot=e,t()}finally{Ot=r}};$p=function(e,t,r){switch(t){case"input":if(Wp(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var s=pd(a);if(!s)throw Error(Ye(90));cw(a),Wp(a,s)}}}break;case"textarea":fw(e,r);break;case"select":t=r.value,t!=null&&_i(e,!!r.multiple,t,!1)}};yw=Kg;xw=Va;var rR={usingClientEntryPoint:!1,Events:[zl,mi,pd,vw,mw,Kg]},Ls={findFiberByHostInstance:Aa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nR={bundleType:Ls.bundleType,version:Ls.version,rendererPackageName:Ls.rendererPackageName,rendererConfig:Ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Oo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sw(e),e===null?null:e.stateNode},findFiberByHostInstance:Ls.findFiberByHostInstance||eR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{ud=Au.inject(nR),ro=Au}catch{}}ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rR;ln.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!n0(t))throw Error(Ye(200));return JM(e,t,null,r)};ln.createRoot=function(e,t){if(!n0(e))throw Error(Ye(299));var r=!1,a="",s=rC;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=e0(e,1,!1,null,null,r,!1,a,s),e[So]=t.current,hl(e.nodeType===8?e.parentNode:e),new r0(t)};ln.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ye(188)):(e=Object.keys(e).join(","),Error(Ye(268,e)));return e=Sw(t),e=e===null?null:e.stateNode,e};ln.flushSync=function(e){return Va(e)};ln.hydrate=function(e,t,r){if(!Cd(t))throw Error(Ye(200));return Sd(null,e,t,!0,r)};ln.hydrateRoot=function(e,t,r){if(!n0(e))throw Error(Ye(405));var a=r!=null&&r.hydratedSources||null,s=!1,l="",f=rC;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onRecoverableError!==void 0&&(f=r.onRecoverableError)),t=tC(t,null,e,1,r??null,s,!1,l,f),e[So]=t.current,hl(e),a)for(e=0;e<a.length;e++)r=a[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new wd(t)};ln.render=function(e,t,r){if(!Cd(t))throw Error(Ye(200));return Sd(null,e,t,!1,r)};ln.unmountComponentAtNode=function(e){if(!Cd(e))throw Error(Ye(40));return e._reactRootContainer?(Va(function(){Sd(null,null,e,!1,function(){e._reactRootContainer=null,e[So]=null})}),!0):!1};ln.unstable_batchedUpdates=Kg;ln.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Cd(r))throw Error(Ye(200));if(e==null||e._reactInternals===void 0)throw Error(Ye(38));return Sd(e,t,r,!1,a)};ln.version="18.2.0-next-9e3b772b8-20220608";function nC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nC)}catch(e){console.error(e)}}nC(),tw.exports=ln;var Po=tw.exports,cy=Po;Ip.createRoot=cy.createRoot,Ip.hydrateRoot=cy.hydrateRoot;/**
* @remix-run/router v1.10.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sl.apply(this,arguments)}var Zo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Zo||(Zo={}));const dy="popstate";function oR(e){e===void 0&&(e={});function t(a,s){let{pathname:l,search:f,hash:b}=a.location;return _h("",{pathname:l,search:f,hash:b},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(a,s){return typeof s=="string"?s:Lc(s)}return iR(t,r,null,e)}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function o0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aR(){return Math.random().toString(36).substr(2,8)}function fy(e,t){return{usr:e.state,key:e.key,idx:t}}function _h(e,t,r,a){return r===void 0&&(r=null),Sl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ns(t):t,{state:r,key:t&&t.key||a||aR()})}function Lc(e){let{pathname:t="/",search:r="",hash:a=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function ns(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function iR(e,t,r,a){a===void 0&&(a={});let{window:s=document.defaultView,v5Compat:l=!1}=a,f=s.history,b=Zo.Pop,S=null,T=O();T==null&&(T=0,f.replaceState(Sl({},f.state,{idx:T}),""));function O(){return(f.state||{idx:null}).idx}function j(){b=Zo.Pop;let P=O(),y=P==null?null:P-T;T=P,S&&S({action:b,location:R.location,delta:y})}function F(P,y){b=Zo.Push;let p=_h(R.location,P,y);r&&r(p,P),T=O()+1;let v=fy(p,T),g=R.createHref(p);try{f.pushState(v,"",g)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;s.location.assign(g)}l&&S&&S({action:b,location:R.location,delta:1})}function z(P,y){b=Zo.Replace;let p=_h(R.location,P,y);r&&r(p,P),T=O();let v=fy(p,T),g=R.createHref(p);f.replaceState(v,"",g),l&&S&&S({action:b,location:R.location,delta:0})}function D(P){let y=s.location.origin!=="null"?s.location.origin:s.location.href,p=typeof P=="string"?P:Lc(P);return $t(y,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,y)}let R={get action(){return b},get location(){return e(s,f)},listen(P){if(S)throw new Error("A history only accepts one active listener");return s.addEventListener(dy,j),S=P,()=>{s.removeEventListener(dy,j),S=null}},createHref(P){return t(s,P)},createURL:D,encodeLocation(P){let y=D(P);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:F,replace:z,go(P){return f.go(P)}};return R}var py;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(py||(py={}));function sR(e,t,r){r===void 0&&(r="/");let a=typeof t=="string"?ns(t):t,s=kl(a.pathname||"/",r);if(s==null)return null;let l=oC(e);lR(l);let f=null;for(let b=0;f==null&&b<l.length;++b)f=vR(l[b],yR(s));return f}function oC(e,t,r,a){t===void 0&&(t=[]),r===void 0&&(r=[]),a===void 0&&(a="");let s=(l,f,b)=>{let S={relativePath:b===void 0?l.path||"":b,caseSensitive:l.caseSensitive===!0,childrenIndex:f,route:l};S.relativePath.startsWith("/")&&($t(S.relativePath.startsWith(a),'Absolute route path "'+S.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),S.relativePath=S.relativePath.slice(a.length));let T=ia([a,S.relativePath]),O=r.concat(S);l.children&&l.children.length>0&&($t(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+T+'".')),oC(l.children,t,O,T)),!(l.path==null&&!l.index)&&t.push({path:T,score:gR(T,l.index),routesMeta:O})};return e.forEach((l,f)=>{var b;if(l.path===""||!((b=l.path)!=null&&b.includes("?")))s(l,f);else for(let S of aC(l.path))s(l,f,S)}),t}function aC(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,s=r.endsWith("?"),l=r.replace(/\?$/,"");if(a.length===0)return s?[l,""]:[l];let f=aC(a.join("/")),b=[];return b.push(...f.map(S=>S===""?l:[l,S].join("/"))),s&&b.push(...f),b.map(S=>e.startsWith("/")&&S===""?"/":S)}function lR(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:bR(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}const uR=/^:\w+$/,cR=3,dR=2,fR=1,pR=10,hR=-2,hy=e=>e==="*";function gR(e,t){let r=e.split("/"),a=r.length;return r.some(hy)&&(a+=hR),t&&(a+=dR),r.filter(s=>!hy(s)).reduce((s,l)=>s+(uR.test(l)?cR:l===""?fR:pR),a)}function bR(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function vR(e,t){let{routesMeta:r}=e,a={},s="/",l=[];for(let f=0;f<r.length;++f){let b=r[f],S=f===r.length-1,T=s==="/"?t:t.slice(s.length)||"/",O=Oh({path:b.relativePath,caseSensitive:b.caseSensitive,end:S},T);if(!O)return null;Object.assign(a,O.params);let j=b.route;l.push({params:a,pathname:ia([s,O.pathname]),pathnameBase:SR(ia([s,O.pathnameBase])),route:j}),O.pathnameBase!=="/"&&(s=ia([s,O.pathnameBase]))}return l}function Oh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=mR(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let l=s[0],f=l.replace(/(.)\/+$/,"$1"),b=s.slice(1);return{params:a.reduce((T,O,j)=>{if(O==="*"){let F=b[j]||"";f=l.slice(0,l.length-F.length).replace(/(.)\/+$/,"$1")}return T[O]=xR(b[j]||"",O),T},{}),pathname:l,pathnameBase:f,pattern:e}}function mR(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),o0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(f,b)=>(a.push(b),"/([^\\/]+)"));return e.endsWith("*")?(a.push("*"),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function yR(e){try{return decodeURI(e)}catch(t){return o0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function xR(e,t){try{return decodeURIComponent(e)}catch(r){return o0(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function kl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function wR(e,t){t===void 0&&(t="/");let{pathname:r,search:a="",hash:s=""}=typeof e=="string"?ns(e):e;return{pathname:r?r.startsWith("/")?r:CR(r,t):t,search:kR(a),hash:TR(s)}}function CR(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function dp(e,t,r,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(a)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function a0(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function i0(e,t,r,a){a===void 0&&(a=!1);let s;typeof e=="string"?s=ns(e):(s=Sl({},e),$t(!s.pathname||!s.pathname.includes("?"),dp("?","pathname","search",s)),$t(!s.pathname||!s.pathname.includes("#"),dp("#","pathname","hash",s)),$t(!s.search||!s.search.includes("#"),dp("#","search","hash",s)));let l=e===""||s.pathname==="",f=l?"/":s.pathname,b;if(a||f==null)b=r;else{let j=t.length-1;if(f.startsWith("..")){let F=f.split("/");for(;F[0]==="..";)F.shift(),j-=1;s.pathname=F.join("/")}b=j>=0?t[j]:"/"}let S=wR(s,b),T=f&&f!=="/"&&f.endsWith("/"),O=(l||f===".")&&r.endsWith("/");return!S.pathname.endsWith("/")&&(T||O)&&(S.pathname+="/"),S}const ia=e=>e.join("/").replace(/\/\/+/g,"/"),SR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function PR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const iC=["post","put","patch","delete"];new Set(iC);const _R=["get",...iC];new Set(_R);/**
* React Router v6.17.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},jc.apply(this,arguments)}const kd=ee.createContext(null),sC=ee.createContext(null),$a=ee.createContext(null),Td=ee.createContext(null),ha=ee.createContext({outlet:null,matches:[],isDataRoute:!1}),lC=ee.createContext(null);function OR(e,t){let{relative:r}=t===void 0?{}:t;os()||$t(!1);let{basename:a,navigator:s}=ee.useContext($a),{hash:l,pathname:f,search:b}=Pd(e,{relative:r}),S=f;return a!=="/"&&(S=f==="/"?a:ia([a,f])),s.createHref({pathname:S,search:b,hash:l})}function os(){return ee.useContext(Td)!=null}function qa(){return os()||$t(!1),ee.useContext(Td).location}function uC(e){ee.useContext($a).static||ee.useLayoutEffect(e)}function cC(){let{isDataRoute:e}=ee.useContext(ha);return e?WR():AR()}function AR(){os()||$t(!1);let e=ee.useContext(kd),{basename:t,navigator:r}=ee.useContext($a),{matches:a}=ee.useContext(ha),{pathname:s}=qa(),l=JSON.stringify(a0(a).map(S=>S.pathnameBase)),f=ee.useRef(!1);return uC(()=>{f.current=!0}),ee.useCallback(function(S,T){if(T===void 0&&(T={}),!f.current)return;if(typeof S=="number"){r.go(S);return}let O=i0(S,JSON.parse(l),s,T.relative==="path");e==null&&t!=="/"&&(O.pathname=O.pathname==="/"?t:ia([t,O.pathname])),(T.replace?r.replace:r.push)(O,T.state,T)},[t,r,l,s,e])}function Pd(e,t){let{relative:r}=t===void 0?{}:t,{matches:a}=ee.useContext(ha),{pathname:s}=qa(),l=JSON.stringify(a0(a).map(f=>f.pathnameBase));return ee.useMemo(()=>i0(e,JSON.parse(l),s,r==="path"),[e,l,s,r])}function ER(e,t){return MR(e,t)}function MR(e,t,r){os()||$t(!1);let{navigator:a}=ee.useContext($a),{matches:s}=ee.useContext(ha),l=s[s.length-1],f=l?l.params:{};l&&l.pathname;let b=l?l.pathnameBase:"/";l&&l.route;let S=qa(),T;if(t){var O;let R=typeof t=="string"?ns(t):t;b==="/"||(O=R.pathname)!=null&&O.startsWith(b)||$t(!1),T=R}else T=S;let j=T.pathname||"/",F=b==="/"?j:j.slice(b.length)||"/",z=sR(e,{pathname:F}),D=jR(z&&z.map(R=>Object.assign({},R,{params:Object.assign({},f,R.params),pathname:ia([b,a.encodeLocation?a.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?b:ia([b,a.encodeLocation?a.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),s,r);return t&&D?ee.createElement(Td.Provider,{value:{location:jc({pathname:"/",search:"",hash:"",state:null,key:"default"},T),navigationType:Zo.Pop}},D):D}function RR(){let e=VR(),t=PR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},l=null;return ee.createElement(ee.Fragment,null,ee.createElement("h2",null,"Unexpected Application Error!"),ee.createElement("h3",{style:{fontStyle:"italic"}},t),r?ee.createElement("pre",{style:s},r):null,l)}const NR=ee.createElement(RR,null);class IR extends ee.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?ee.createElement(ha.Provider,{value:this.props.routeContext},ee.createElement(lC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function LR(e){let{routeContext:t,match:r,children:a}=e,s=ee.useContext(kd);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),ee.createElement(ha.Provider,{value:t},a)}function jR(e,t,r){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var s;if((s=r)!=null&&s.errors)e=r.matches;else return null}let l=e,f=(a=r)==null?void 0:a.errors;if(f!=null){let b=l.findIndex(S=>S.route.id&&(f==null?void 0:f[S.route.id]));b>=0||$t(!1),l=l.slice(0,Math.min(l.length,b+1))}return l.reduceRight((b,S,T)=>{let O=S.route.id?f==null?void 0:f[S.route.id]:null,j=null;r&&(j=S.route.errorElement||NR);let F=t.concat(l.slice(0,T+1)),z=()=>{let D;return O?D=j:S.route.Component?D=ee.createElement(S.route.Component,null):S.route.element?D=S.route.element:D=b,ee.createElement(LR,{match:S,routeContext:{outlet:b,matches:F,isDataRoute:r!=null},children:D})};return r&&(S.route.ErrorBoundary||S.route.errorElement||T===0)?ee.createElement(IR,{location:r.location,revalidation:r.revalidation,component:j,error:O,children:z(),routeContext:{outlet:null,matches:F,isDataRoute:!0}}):z()},null)}var dC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dC||{}),Dc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Dc||{});function DR(e){let t=ee.useContext(kd);return t||$t(!1),t}function zR(e){let t=ee.useContext(sC);return t||$t(!1),t}function FR(e){let t=ee.useContext(ha);return t||$t(!1),t}function fC(e){let t=FR(),r=t.matches[t.matches.length-1];return r.route.id||$t(!1),r.route.id}function VR(){var e;let t=ee.useContext(lC),r=zR(Dc.UseRouteError),a=fC(Dc.UseRouteError);return t||((e=r.errors)==null?void 0:e[a])}function WR(){let{router:e}=DR(dC.UseNavigateStable),t=fC(Dc.UseNavigateStable),r=ee.useRef(!1);return uC(()=>{r.current=!0}),ee.useCallback(function(s,l){l===void 0&&(l={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,jc({fromRouteId:t},l)))},[e,t])}function BR(e){let{to:t,replace:r,state:a,relative:s}=e;os()||$t(!1);let{matches:l}=ee.useContext(ha),{pathname:f}=qa(),b=cC(),S=i0(t,a0(l).map(O=>O.pathnameBase),f,s==="path"),T=JSON.stringify(S);return ee.useEffect(()=>b(JSON.parse(T),{replace:r,state:a,relative:s}),[b,T,s,r,a]),null}function Ni(e){$t(!1)}function HR(e){let{basename:t="/",children:r=null,location:a,navigationType:s=Zo.Pop,navigator:l,static:f=!1}=e;os()&&$t(!1);let b=t.replace(/^\/*/,"/"),S=ee.useMemo(()=>({basename:b,navigator:l,static:f}),[b,l,f]);typeof a=="string"&&(a=ns(a));let{pathname:T="/",search:O="",hash:j="",state:F=null,key:z="default"}=a,D=ee.useMemo(()=>{let R=kl(T,b);return R==null?null:{location:{pathname:R,search:O,hash:j,state:F,key:z},navigationType:s}},[b,T,O,j,F,z,s]);return D==null?null:ee.createElement($a.Provider,{value:S},ee.createElement(Td.Provider,{children:r,value:D}))}function s0(e){let{children:t,location:r}=e;return ER(Ah(t),r)}new Promise(()=>{});function Ah(e,t){t===void 0&&(t=[]);let r=[];return ee.Children.forEach(e,(a,s)=>{if(!ee.isValidElement(a))return;let l=[...t,s];if(a.type===ee.Fragment){r.push.apply(r,Ah(a.props.children,l));return}a.type!==Ni&&$t(!1),!a.props.index||!a.props.children||$t(!1);let f={id:a.props.id||l.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(f.children=Ah(a.props.children,l)),r.push(f)}),r}/**
* React Router DOM v6.17.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},zc.apply(this,arguments)}function pC(e,t){if(e==null)return{};var r={},a=Object.keys(e),s,l;for(l=0;l<a.length;l++)s=a[l],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function XR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YR(e,t){return e.button===0&&(!t||t==="_self")&&!XR(e)}const GR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],UR=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],$R=ee.createContext({isTransitioning:!1}),qR="startTransition",gy=pg[qR];function KR(e){let{basename:t,children:r,future:a,window:s}=e,l=ee.useRef();l.current==null&&(l.current=oR({window:s,v5Compat:!0}));let f=l.current,[b,S]=ee.useState({action:f.action,location:f.location}),{v7_startTransition:T}=a||{},O=ee.useCallback(j=>{T&&gy?gy(()=>S(j)):S(j)},[S,T]);return ee.useLayoutEffect(()=>f.listen(O),[f,O]),ee.createElement(HR,{basename:t,children:r,location:b.location,navigationType:b.action,navigator:f})}const ZR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fc=ee.forwardRef(function(t,r){let{onClick:a,relative:s,reloadDocument:l,replace:f,state:b,target:S,to:T,preventScrollReset:O,unstable_viewTransition:j}=t,F=pC(t,GR),{basename:z}=ee.useContext($a),D,R=!1;if(typeof T=="string"&&QR.test(T)&&(D=T,ZR))try{let v=new URL(window.location.href),g=T.startsWith("//")?new URL(v.protocol+T):new URL(T),m=kl(g.pathname,z);g.origin===v.origin&&m!=null?T=m+g.search+g.hash:R=!0}catch{}let P=OR(T,{relative:s}),y=tN(T,{replace:f,state:b,target:S,preventScrollReset:O,relative:s,unstable_viewTransition:j});function p(v){a&&a(v),v.defaultPrevented||y(v)}return ee.createElement("a",zc({},F,{href:D||P,onClick:R||l?a:p,ref:r,target:S}))}),JR=ee.forwardRef(function(t,r){let{"aria-current":a="page",caseSensitive:s=!1,className:l="",end:f=!1,style:b,to:S,unstable_viewTransition:T,children:O}=t,j=pC(t,UR),F=Pd(S,{relative:j.relative}),z=qa(),D=ee.useContext(sC),{navigator:R}=ee.useContext($a),P=D!=null&&rN(F)&&T===!0,y=R.encodeLocation?R.encodeLocation(F).pathname:F.pathname,p=z.pathname,v=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;s||(p=p.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase());let g=p===y||!f&&p.startsWith(y)&&p.charAt(y.length)==="/",m=v!=null&&(v===y||!f&&v.startsWith(y)&&v.charAt(y.length)==="/"),_={isActive:g,isPending:m,isTransitioning:P},M=g?a:void 0,X;typeof l=="function"?X=l(_):X=[l,g?"active":null,m?"pending":null,P?"transitioning":null].filter(Boolean).join(" ");let H=typeof b=="function"?b(_):b;return ee.createElement(Fc,zc({},j,{"aria-current":M,className:X,ref:r,style:H,to:S,unstable_viewTransition:T}),typeof O=="function"?O(_):O)});var Eh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Eh||(Eh={}));var by;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(by||(by={}));function eN(e){let t=ee.useContext(kd);return t||$t(!1),t}function tN(e,t){let{target:r,replace:a,state:s,preventScrollReset:l,relative:f,unstable_viewTransition:b}=t===void 0?{}:t,S=cC(),T=qa(),O=Pd(e,{relative:f});return ee.useCallback(j=>{if(YR(j,r)){j.preventDefault();let F=a!==void 0?a:Lc(T)===Lc(O);S(e,{replace:F,state:s,preventScrollReset:l,relative:f,unstable_viewTransition:b})}},[T,S,O,a,s,r,e,l,f,b])}function rN(e,t){t===void 0&&(t={});let r=ee.useContext($R);r==null&&$t(!1);let{basename:a}=eN(Eh.useViewTransitionState),s=Pd(e,{relative:t.relative});if(!r.isTransitioning)return!1;let l=kl(r.currentLocation.pathname,a)||r.currentLocation.pathname,f=kl(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Oh(s.pathname,f)!=null||Oh(s.pathname,l)!=null}function nN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M12 7.5a2.25 2.25 0 100 4.5 2.25 2.25 0 000-4.5z"}),ee.createElement("path",{fillRule:"evenodd",d:"M1.5 4.875C1.5 3.839 2.34 3 3.375 3h17.25c1.035 0 1.875.84 1.875 1.875v9.75c0 1.036-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 011.5 14.625v-9.75zM8.25 9.75a3.75 3.75 0 117.5 0 3.75 3.75 0 01-7.5 0zM18.75 9a.75.75 0 00-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 00.75-.75V9.75a.75.75 0 00-.75-.75h-.008zM4.5 9.75A.75.75 0 015.25 9h.008a.75.75 0 01.75.75v.008a.75.75 0 01-.75.75H5.25a.75.75 0 01-.75-.75V9.75z",clipRule:"evenodd"}),ee.createElement("path",{d:"M2.25 18a.75.75 0 000 1.5c5.4 0 10.63.722 15.6 2.075 1.19.324 2.4-.558 2.4-1.82V18.75a.75.75 0 00-.75-.75H2.25z"}))}const oN=ee.forwardRef(nN),hC=oN;function aN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M3 6.75A.75.75 0 013.75 6h16.5a.75.75 0 010 1.5H3.75A.75.75 0 013 6.75zM3 12a.75.75 0 01.75-.75h16.5a.75.75 0 010 1.5H3.75A.75.75 0 013 12zm0 5.25a.75.75 0 01.75-.75h16.5a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))}const iN=ee.forwardRef(aN),sN=iN;function lN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M5.25 9a6.75 6.75 0 0113.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 01-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 11-7.48 0 24.585 24.585 0 01-4.831-1.244.75.75 0 01-.298-1.205A8.217 8.217 0 005.25 9.75V9zm4.502 8.9a2.25 2.25 0 104.496 0 25.057 25.057 0 01-4.496 0z",clipRule:"evenodd"}))}const uN=ee.forwardRef(lN),gC=uN;function cN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M18.375 2.25c-1.035 0-1.875.84-1.875 1.875v15.75c0 1.035.84 1.875 1.875 1.875h.75c1.035 0 1.875-.84 1.875-1.875V4.125c0-1.036-.84-1.875-1.875-1.875h-.75zM9.75 8.625c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-.75a1.875 1.875 0 01-1.875-1.875V8.625zM3 13.125c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v6.75c0 1.035-.84 1.875-1.875 1.875h-.75A1.875 1.875 0 013 19.875v-6.75z"}))}const dN=ee.forwardRef(cN),fN=dN;function pN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("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 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const hN=ee.forwardRef(pN),gN=hN;function bN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 6a.75.75 0 00-1.5 0v6c0 .414.336.75.75.75h4.5a.75.75 0 000-1.5h-3.75V6z",clipRule:"evenodd"}))}const vN=ee.forwardRef(bN),Ku=vN;function mN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 00-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 00-2.282.819l-.922 1.597a1.875 1.875 0 00.432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 000 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 00-.432 2.385l.922 1.597a1.875 1.875 0 002.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 002.28-.819l.923-1.597a1.875 1.875 0 00-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 000-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 00-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 00-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 00-1.85-1.567h-1.843zM12 15.75a3.75 3.75 0 100-7.5 3.75 3.75 0 000 7.5z",clipRule:"evenodd"}))}const yN=ee.forwardRef(mN),bC=yN;function xN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M4.5 3.75a3 3 0 00-3 3v.75h21v-.75a3 3 0 00-3-3h-15z"}),ee.createElement("path",{fillRule:"evenodd",d:"M22.5 9.75h-21v7.5a3 3 0 003 3h15a3 3 0 003-3v-7.5zm-18 3.75a.75.75 0 01.75-.75h6a.75.75 0 010 1.5h-6a.75.75 0 01-.75-.75zm.75 2.25a.75.75 0 000 1.5h3a.75.75 0 000-1.5h-3z",clipRule:"evenodd"}))}const wN=ee.forwardRef(xN),vC=wN;function CN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"}))}const SN=ee.forwardRef(CN),kN=SN;function TN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M2.625 6.75a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zm4.875 0A.75.75 0 018.25 6h12a.75.75 0 010 1.5h-12a.75.75 0 01-.75-.75zM2.625 12a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zM7.5 12a.75.75 0 01.75-.75h12a.75.75 0 010 1.5h-12A.75.75 0 017.5 12zm-4.875 5.25a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0zm4.875 0a.75.75 0 01.75-.75h12a.75.75 0 010 1.5h-12a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))}const PN=ee.forwardRef(TN),_N=PN;function ON({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M18 1.5c2.9 0 5.25 2.35 5.25 5.25v3.75a.75.75 0 01-1.5 0V6.75a3.75 3.75 0 10-7.5 0v3a3 3 0 013 3v6.75a3 3 0 01-3 3H3.75a3 3 0 01-3-3v-6.75a3 3 0 013-3h9v-3c0-2.9 2.35-5.25 5.25-5.25z"}))}const AN=ee.forwardRef(ON),EN=AN;function MN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 9a.75.75 0 00-1.5 0v2.25H9a.75.75 0 000 1.5h2.25V15a.75.75 0 001.5 0v-2.25H15a.75.75 0 000-1.5h-2.25V9z",clipRule:"evenodd"}))}const RN=ee.forwardRef(MN),NN=RN;function IN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M2.25 2.25a.75.75 0 000 1.5h1.386c.17 0 .318.114.362.278l2.558 9.592a3.752 3.752 0 00-2.806 3.63c0 .414.336.75.75.75h15.75a.75.75 0 000-1.5H5.378A2.25 2.25 0 017.5 15h11.218a.75.75 0 00.674-.421 60.358 60.358 0 002.96-7.228.75.75 0 00-.525-.965A60.864 60.864 0 005.68 4.509l-.232-.867A1.875 1.875 0 003.636 2.25H2.25zM3.75 20.25a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zM16.5 20.25a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"}))}const LN=ee.forwardRef(IN),jN=LN;function DN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M11.644 1.59a.75.75 0 01.712 0l9.75 5.25a.75.75 0 010 1.32l-9.75 5.25a.75.75 0 01-.712 0l-9.75-5.25a.75.75 0 010-1.32l9.75-5.25z"}),ee.createElement("path",{d:"M3.265 10.602l7.668 4.129a2.25 2.25 0 002.134 0l7.668-4.13 1.37.739a.75.75 0 010 1.32l-9.75 5.25a.75.75 0 01-.71 0l-9.75-5.25a.75.75 0 010-1.32l1.37-.738z"}),ee.createElement("path",{d:"M10.933 19.231l-7.668-4.13-1.37.739a.75.75 0 000 1.32l9.75 5.25c.221.12.489.12.71 0l9.75-5.25a.75.75 0 000-1.32l-1.37-.738-7.668 4.13a2.25 2.25 0 01-2.134-.001z"}))}const zN=ee.forwardRef(DN),FN=zN;function VN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0021.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 003.065 7.097A9.716 9.716 0 0012 21.75a9.716 9.716 0 006.685-2.653zm-12.54-1.285A7.486 7.486 0 0112 15a7.486 7.486 0 015.855 2.812A8.224 8.224 0 0112 20.25a8.224 8.224 0 01-5.855-2.438zM15.75 9a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z",clipRule:"evenodd"}))}const WN=ee.forwardRef(VN),vy=WN;function BN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M6.25 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM3.25 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 0 01-.363.63 13.067 13.067 0 01-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 01-.364-.63l-.001-.122zM19.75 7.5a.75.75 0 00-1.5 0v2.25H16a.75.75 0 000 1.5h2.25v2.25a.75.75 0 001.5 0v-2.25H22a.75.75 0 000-1.5h-2.25V7.5z"}))}const HN=ee.forwardRef(BN),XN=HN;function YN({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{d:"M4.5 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM14.25 8.625a3.375 3.375 0 116.75 0 3.375 3.375 0 01-6.75 0zM1.5 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 0 01-.363.63 13.067 13.067 0 01-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 01-.364-.63l-.001-.122zM17.25 19.128l-.001.144a2.25 2.25 0 01-.233.96 10.088 10.088 0 005.06-1.01.75.75 0 00.42-.643 4.875 4.875 0 00-6.957-4.611 8.586 8.586 0 011.71 5.157v.003z"}))}const GN=ee.forwardRef(YN),UN=GN;function $N({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{fillRule:"evenodd",d:"M12 6.75a5.25 5.25 0 016.775-5.025.75.75 0 01.313 1.248l-3.32 3.319c.063.475.276.934.641 1.299.365.365.824.578 1.3.64l3.318-3.319a.75.75 0 011.248.313 5.25 5.25 0 01-5.472 6.756c-1.018-.086-1.87.1-2.309.634L7.344 21.3A3.298 3.298 0 112.7 16.657l8.684-7.151c.533-.44.72-1.291.634-2.309A5.342 5.342 0 0112 6.75zM4.117 19.125a.75.75 0 01.75-.75h.008a.75.75 0 01.75.75v.008a.75.75 0 01-.75.75h-.008a.75.75 0 01-.75-.75v-.008z",clipRule:"evenodd"}),ee.createElement("path",{d:"M10.076 8.64l-2.201-2.2V4.874a.75.75 0 00-.364-.643l-3.75-2.25a.75.75 0 00-.916.113l-.75.75a.75.75 0 00-.113.916l2.25 3.75a.75.75 0 00.643.364h1.564l2.062 2.062 1.575-1.297z"}),ee.createElement("path",{fillRule:"evenodd",d:"M12.556 17.329l4.183 4.182a3.375 3.375 0 004.773-4.773l-3.306-3.305a6.803 6.803 0 01-1.53.043c-.394-.034-.682-.006-.867.042a.589.589 0 00-.167.063l-3.086 3.748zm3.414-1.36a.75.75 0 011.06 0l1.875 1.876a.75.75 0 11-1.06 1.06L15.97 17.03a.75.75 0 010-1.06z",clipRule:"evenodd"}))}const qN=ee.forwardRef($N),KN=qN;var Be={},mC={},yC={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a=[],s=0;s<arguments.length;s++){var l=arguments[s];if(l){var f=typeof l;if(f==="string"||f==="number")a.push(l);else if(Array.isArray(l)){if(l.length){var b=r.apply(null,l);b&&a.push(b)}}else if(f==="object"){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){a.push(l.toString());continue}for(var S in l)t.call(l,S)&&l[S]&&a.push(S)}}}return a.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(yC);var ct=yC.exports,xC={exports:{}},An={};function l0(){for(var e,t,r=0,a="";r<arguments.length;)(e=arguments[r++])&&(t=wC(e))&&(a&&(a+=" "),a+=t);return a}function wC(e){if(typeof e=="string")return e;for(var t,r="",a=0;a<e.length;a++)e[a]&&(t=wC(e[a]))&&(r&&(r+=" "),r+=t);return r}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Mh.apply(this,arguments)}function ZN(e){var t=function(r){var a=r.theme,s=r.prefix,l={nextPart:new Map,validators:[]};return function(f,b){return b?f.map(function(S){return[S[0],S[1].map(function(T){return typeof T=="string"?b+T:typeof T=="object"?Object.fromEntries(Object.entries(T).map(function(O){return[b+O[0],O[1]]})):T})]}):f}(Object.entries(r.classGroups),s).forEach(function(f){Rh(f[1],l,f[0],a)}),l}(e);return{getClassGroupId:function(r){var a=r.split("-");return a[0]===""&&a.length!==1&&a.shift(),CC(a,t)||function(s){if(my.test(s)){var l=my.exec(s)[1],f=l==null?void 0:l.substring(0,l.indexOf(":"));if(f)return"arbitrary.."+f}}(r)},getConflictingClassGroupIds:function(r){return e.conflictingClassGroups[r]||[]}}}function CC(e,t){var r;if(e.length===0)return t.classGroupId;var a=t.nextPart.get(e[0]),s=a?CC(e.slice(1),a):void 0;if(s)return s;if(t.validators.length!==0){var l=e.join("-");return(r=t.validators.find(function(f){return(0,f.validator)(l)}))==null?void 0:r.classGroupId}}Object.defineProperty(An,"__esModule",{value:!0});var my=/^\[(.+)\]$/;function Rh(e,t,r,a){e.forEach(function(s){if(typeof s!="string"){if(typeof s=="function")return s.isThemeGetter?void Rh(s(a),t,r,a):void t.validators.push({validator:s,classGroupId:r});Object.entries(s).forEach(function(l){Rh(l[1],yy(t,l[0]),r,a)})}else(s===""?t:yy(t,s)).classGroupId=r})}function yy(e,t){var r=e;return t.split("-").forEach(function(a){r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r}function QN(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,a=new Map;function s(l,f){r.set(l,f),++t>e&&(t=0,a=r,r=new Map)}return{get:function(l){var f=r.get(l);return f!==void 0?f:(f=a.get(l))!==void 0?(s(l,f),f):void 0},set:function(l,f){r.has(l)?r.set(l,f):s(l,f)}}}function JN(e){var t=e.separator||":";return function(r){for(var a=0,s=[],l=0,f=0;f<r.length;f++){var b=r[f];a===0&&b===t[0]&&(t.length!==1&&r.slice(f,f+t.length)!==t||(s.push(r.slice(l,f)),l=f+t.length)),b==="["?a++:b==="]"&&a--}var S=s.length===0?r:r.substring(l),T=S.startsWith("!");return{modifiers:s,hasImportantModifier:T,baseClassName:T?S.substring(1):S}}}function eI(e){return Mh({cache:QN(e.cacheSize),splitModifiers:JN(e)},ZN(e))}var tI=/\s+/;function rI(e,t){var r=t.splitModifiers,a=t.getClassGroupId,s=t.getConflictingClassGroupIds,l=new Set;return e.trim().split(tI).map(function(f){var b=r(f),S=b.modifiers,T=b.hasImportantModifier,O=a(b.baseClassName);if(!O)return{isTailwindClass:!1,originalClassName:f};var j=function(F){if(F.length<=1)return F;var z=[],D=[];return F.forEach(function(R){R[0]==="["?(z.push.apply(z,D.sort().concat([R])),D=[]):D.push(R)}),z.push.apply(z,D.sort()),z}(S).join(":");return{isTailwindClass:!0,modifierId:T?j+"!":j,classGroupId:O,originalClassName:f}}).reverse().filter(function(f){if(!f.isTailwindClass)return!0;var b=f.modifierId,S=f.classGroupId,T=b+S;return!l.has(T)&&(l.add(T),s(S).forEach(function(O){return l.add(b+O)}),!0)}).reverse().map(function(f){return f.originalClassName}).join(" ")}function Nh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a,s,l,f=b;function b(T){var O=t[0],j=t.slice(1).reduce(function(F,z){return z(F)},O());return a=eI(j),s=a.cache.get,l=a.cache.set,f=S,S(T)}function S(T){var O=s(T);if(O)return O;var j=rI(T,a);return l(T,j),j}return function(){return f(l0.apply(null,arguments))}}function zt(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var ga=/^\[(.+)\]$/,nI=/^\d+\/\d+$/,oI=new Set(["px","full","screen"]),aI=/^(\d+)?(xs|sm|md|lg|xl)$/,iI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,sI=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function pn(e){return!Number.isNaN(Number(e))||oI.has(e)||nI.test(e)||Go(e)}function Go(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&(r.startsWith("length:")||iI.test(r))}function SC(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&r.startsWith("size:")}function kC(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&r.startsWith("position:")}function TC(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&(r.startsWith("url(")||r.startsWith("url:"))}function Vc(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&(!Number.isNaN(Number(r))||r.startsWith("number:"))}function kr(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return Number.isInteger(Number(r||e))}function fr(e){return ga.test(e)}function fi(){return!0}function ho(e){return aI.test(e)}function PC(e){var t,r=(t=ga.exec(e))==null?void 0:t[1];return!!r&&sI.test(r)}var lI={__proto__:null,isLength:pn,isArbitraryLength:Go,isArbitrarySize:SC,isArbitraryPosition:kC,isArbitraryUrl:TC,isArbitraryNumber:Vc,isArbitraryWeight:Vc,isInteger:kr,isArbitraryValue:fr,isAny:fi,isTshirtSize:ho,isArbitraryShadow:PC};function Zu(){var e=zt("colors"),t=zt("spacing"),r=zt("blur"),a=zt("brightness"),s=zt("borderColor"),l=zt("borderRadius"),f=zt("borderSpacing"),b=zt("borderWidth"),S=zt("contrast"),T=zt("grayscale"),O=zt("hueRotate"),j=zt("invert"),F=zt("gap"),z=zt("gradientColorStops"),D=zt("inset"),R=zt("margin"),P=zt("opacity"),y=zt("padding"),p=zt("saturate"),v=zt("scale"),g=zt("sepia"),m=zt("skew"),_=zt("space"),M=zt("translate"),X=function(){return["auto",t]},H=function(){return["",pn]},B=function(){return["auto",kr]},U=function(){return["","0",fr]};return{cacheSize:500,theme:{colors:[fi],spacing:[pn],blur:["none","",ho,Go],brightness:[kr],borderColor:[e],borderRadius:["none","","full",ho,Go],borderSpacing:[t],borderWidth:H(),contrast:[kr],grayscale:U(),hueRotate:[kr],invert:U(),gap:[t],gradientColorStops:[e],inset:X(),margin:X(),opacity:[kr],padding:[t],saturate:[kr],scale:[kr],sepia:U(),skew:[kr,fr],space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",fr]}],container:["container"],columns:[{columns:[ho]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[fr])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:[kr]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fr]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",kr]}],"grid-cols":[{"grid-cols":[fi]}],"col-start-end":[{col:["auto",{span:[kr]}]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[fi]}],"row-start-end":[{row:["auto",{span:[kr]}]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fr]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fr]}],gap:[{gap:[F]}],"gap-x":[{"gap-x":[F]}],"gap-y":[{"gap-y":[F]}],"justify-content":[{justify:["start","end","center","between","around","evenly"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(["start","end","center","between","around","evenly"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly"],["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",pn]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[ho]},ho,Go]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",pn]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",ho,Go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vc]}],"font-family":[{font:[fi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Go]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pn]}],"list-style-type":[{list:["none","disc","decimal",fr]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",pn]}],"underline-offset":[{"underline-offset":["auto",pn]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Go]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",fr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[kC])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",SC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TC]}],"bg-color":[{bg:[e]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[b]}],"border-w-x":[{"border-x":[b]}],"border-w-y":[{"border-y":[b]}],"border-w-t":[{"border-t":[b]}],"border-w-r":[{"border-r":[b]}],"border-w-b":[{"border-b":[b]}],"border-w-l":[{"border-l":[b]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[b]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[b]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[pn]}],"outline-w":[{outline:[pn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[pn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ho,PC]}],"shadow-color":[{shadow:[fi]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[S]}],"drop-shadow":[{"drop-shadow":["","none",ho,fr]}],grayscale:[{grayscale:[T]}],"hue-rotate":[{"hue-rotate":[O]}],invert:[{invert:[j]}],saturate:[{saturate:[p]}],sepia:[{sepia:[g]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[S]}],"backdrop-grayscale":[{"backdrop-grayscale":[T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fr]}],duration:[{duration:[kr]}],ease:[{ease:["linear","in","out","in-out",fr]}],delay:[{delay:[kr]}],animate:[{animate:["none","spin","ping","pulse","bounce",fr]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[kr,fr]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[m]}],"skew-y":[{"skew-y":[m]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fr]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fr]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fr]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pn,Vc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var uI=Nh(Zu);function xy(e,t){for(var r in t)_C(e,r,t[r]);return e}var cI=Object.prototype.hasOwnProperty,dI=new Set(["string","number","boolean"]);function _C(e,t,r){if(cI.call(e,t)&&!dI.has(typeof r)&&r!==null){if(Array.isArray(r)&&Array.isArray(e[t]))e[t]=e[t].concat(r);else if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null)return void(e[t]=r);for(var a in r)_C(e[t],a,r[a])}}else e[t]=r}var fI=l0;An.createTailwindMerge=Nh,An.extendTailwindMerge=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return Nh.apply(void 0,typeof e=="function"?[Zu,e].concat(r):[function(){return xy(Zu(),e)}].concat(r))},An.fromTheme=zt,An.getDefaultConfig=Zu,An.join=fI,An.mergeConfigs=xy,An.twJoin=l0,An.twMerge=uI,An.validators=lI;xC.exports=An;var it=xC.exports,nt={},OC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return b}});function t(S,T){(T==null||T>S.length)&&(T=S.length);for(var O=0,j=new Array(T);O<T;O++)j[O]=S[O];return j}function r(S){if(Array.isArray(S))return t(S)}function a(S){if(typeof Symbol<"u"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(S){return r(S)||a(S)||f(S)||s()}function f(S,T){if(S){if(typeof S=="string")return t(S,T);var O=Object.prototype.toString.call(S).slice(8,-1);if(O==="Object"&&S.constructor&&(O=S.constructor.name),O==="Map"||O==="Set")return Array.from(O);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return t(S,T)}}function b(S){var T=[];return Object.values(S).forEach(function(O){typeof O=="string"?T=l(T).concat([O]):typeof O=="object"&&!Array.isArray(O)&&O!==null&&(T=l(T).concat(l(b(O))))}),T}})(OC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});var t=r(OC);function r(s){return s&&s.__esModule?s:{default:s}}function a(s){return(0,t.default)(s).join(" ")}})(nt);var rt={},AC={exports:{}},pI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hI=pI,gI=hI;function EC(){}function MC(){}MC.resetWarningCache=EC;var bI=function(){function e(a,s,l,f,b,S){if(S!==gI){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:MC,resetWarningCache:EC};return r.PropTypes=r,r};AC.exports=bI();var ot=AC.exports;const Nt=Xx(ot);var vI=function(t){return mI(t)&&!yI(t)};function mI(e){return!!e&&typeof e=="object"}function yI(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||CI(e)}var xI=typeof Symbol=="function"&&Symbol.for,wI=xI?Symbol.for("react.element"):60103;function CI(e){return e.$$typeof===wI}function SI(e){return Array.isArray(e)?[]:{}}function Tl(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Yi(SI(e),e,t):e}function kI(e,t,r){return e.concat(t).map(function(a){return Tl(a,r)})}function TI(e,t){if(!t.customMerge)return Yi;var r=t.customMerge(e);return typeof r=="function"?r:Yi}function PI(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function wy(e){return Object.keys(e).concat(PI(e))}function RC(e,t){try{return t in e}catch{return!1}}function _I(e,t){return RC(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function OI(e,t,r){var a={};return r.isMergeableObject(e)&&wy(e).forEach(function(s){a[s]=Tl(e[s],r)}),wy(t).forEach(function(s){_I(e,s)||(RC(e,s)&&r.isMergeableObject(t[s])?a[s]=TI(s,r)(e[s],t[s],r):a[s]=Tl(t[s],r))}),a}function Yi(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||kI,r.isMergeableObject=r.isMergeableObject||vI,r.cloneUnlessOtherwiseSpecified=Tl;var a=Array.isArray(t),s=Array.isArray(e),l=a===s;return l?a?r.arrayMerge(e,t,r):OI(e,t,r):Tl(t,r)}Yi.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(a,s){return Yi(a,s,r)},{})};var AI=Yi,xr=AI,u0={},NC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{accordion:function(){return r},default:function(){return a}});var r={defaultProps:{icon:void 0,className:"",animate:{unmount:{},mount:{}},disabled:!1},styles:{base:{container:{display:"block",position:"relative",width:"w-full"},header:{initial:{display:"flex",justifyContent:"justify-between",alignItems:"items-center",width:"w-full",py:"py-4",borderWidth:"border-b border-b-blue-gray-100",color:"text-blue-gray-700",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-xl",textAlign:"text-left",fontWeight:"font-semibold",lineHeight:"leading-snug",userSelect:"select-none",hover:"hover:text-blue-gray-900",transition:"transition-colors"},active:{color:"text-blue-gray-900"},icon:{ml:"ml-4"}},body:{display:"block",width:"w-full",py:"py-4",color:"text-gray-700",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-light",lineHeight:"leading-normal"},disabled:{pointerEvents:"pointer-events-none",opacity:"opacity-50"}}}},a=r})(NC);var IC={},LC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-900",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(LC);var jC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(jC);var DC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{border:"border border-blue-gray-500",color:"text-blue-gray-700"},gray:{border:"border border-gray-900",color:"text-gray-900"},brown:{border:"border border-brown-500",color:"text-brown-700"},"deep-orange":{border:"border border-deep-orange-500",color:"text-deep-orange-700"},orange:{border:"border border-orange-500",color:"text-orange-700"},amber:{border:"border border-amber-500",color:"text-amber-700"},yellow:{border:"border border-yellow-500",color:"text-yellow-700"},lime:{border:"border border-lime-500",color:"text-lime-700"},"light-green":{border:"border border-light-green-500",color:"text-light-green-700"},green:{border:"border border-green-500",color:"text-green-700"},teal:{border:"border border-teal-500",color:"text-teal-700"},cyan:{border:"border border-cyan-500",color:"text-cyan-700"},"light-blue":{border:"border border-light-blue-500",color:"text-light-blue-700"},blue:{border:"border border-blue-500",color:"text-blue-700"},indigo:{border:"border border-indigo-500",color:"text-indigo-700"},"deep-purple":{border:"border border-deep-purple-500",color:"text-deep-purple-700"},purple:{border:"border border-purple-500",color:"text-purple-700"},pink:{border:"border border-pink-500",color:"text-pink-700"},red:{border:"border border-red-500",color:"text-red-700"}},r=t})(DC);var zC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500/20",color:"text-blue-gray-900"},gray:{backgroud:"bg-gray-900/10",color:"text-gray-900"},brown:{backgroud:"bg-brown-500/20",color:"text-brown-900"},"deep-orange":{backgroud:"bg-deep-orange-500/20",color:"text-deep-orange-900"},orange:{backgroud:"bg-orange-500/20",color:"text-orange-900"},amber:{backgroud:"bg-amber-500/20",color:"text-amber-900"},yellow:{backgroud:"bg-yellow-500/20",color:"text-yellow-900"},lime:{backgroud:"bg-lime-500/20",color:"text-lime-900"},"light-green":{backgroud:"bg-light-green-500/20",color:"text-light-green-900"},green:{backgroud:"bg-green-500/20",color:"text-green-900"},teal:{backgroud:"bg-teal-500/20",color:"text-teal-900"},cyan:{backgroud:"bg-cyan-500/20",color:"text-cyan-900"},"light-blue":{backgroud:"bg-light-blue-500/20",color:"text-light-blue-900"},blue:{backgroud:"bg-blue-500/20",color:"text-blue-900"},indigo:{backgroud:"bg-indigo-500/20",color:"text-indigo-900"},"deep-purple":{backgroud:"bg-deep-purple-500/20",color:"text-deep-purple-900"},purple:{backgroud:"bg-purple-500/20",color:"text-purple-900"},pink:{backgroud:"bg-pink-500/20",color:"text-pink-900"},red:{backgroud:"bg-red-500/20",color:"text-red-900"}},r=t})(zC);var c0={},Vt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{propTypesColors:function(){return s},propTypesAnimation:function(){return l},propTypesDismissType:function(){return f},propTypesOffsetType:function(){return b},propTypesPlacements:function(){return S}});var r=a(ot);function a(T){return T&&T.__esModule?T:{default:T}}var s=["blue-gray","gray","brown","deep-orange","orange","amber","yellow","lime","light-green","green","teal","cyan","light-blue","blue","indigo","deep-purple","purple","pink","red"],l=r.default.shape({mount:r.default.instanceOf(Object),unmount:r.default.instanceOf(Object)}),f=r.default.shape({enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),b=r.default.oneOfType([r.default.number,r.default.shape({mainAxis:r.default.number,crossAxis:r.default.number,alignmentAxis:r.default.number})]),S=["top-start","top","top-end","right-start","right","right-end","bottom-start","bottom","bottom-end","left-start","left","left-end"]})(Vt);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{propTypesVariant:function(){return l},propTypesColor:function(){return f},propTypesIcon:function(){return b},propTypesOpen:function(){return S},propTypesOnClose:function(){return T},propTypesAction:function(){return O},propTypesAnimate:function(){return j},propTypesClassName:function(){return F},propTypesChildren:function(){return z}});var r=s(ot),a=Vt;function s(D){return D&&D.__esModule?D:{default:D}}var l=["filled","gradient","outlined","ghost"],f=a.propTypesColors,b=r.default.node,S=r.default.bool,T=r.default.func,O=r.default.node,j=a.propTypesAnimation,F=r.default.string,z=r.default.node.isRequired})(c0);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{alert:function(){return S},default:function(){return T}});var r=b(LC),a=b(jC),s=b(DC),l=b(zC),f=c0;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{variant:"filled",color:"gray",icon:void 0,open:!0,action:void 0,onClose:void 0,animate:{unmount:{},mount:{}},className:""},valid:{variants:f.propTypesVariant,colors:f.propTypesColor},styles:{base:{alert:{position:"relative",display:"block",width:"w-full",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-regular",px:"px-4",py:"py-4",borderRadius:"rounded-lg"},action:{position:"!absolute",top:"top-3",right:"right-3"}},variants:{filled:r.default,gradient:a.default,outlined:s.default,ghost:l.default}}},T=S})(IC);var FC={},d0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{propTypesVariant:function(){return j},propTypesSize:function(){return F},propTypesClassName:function(){return z},propTypesWithBorder:function(){return D},propTypesColor:function(){return R}});var r=f(ot),a=Vt;function s(P,y){(y==null||y>P.length)&&(y=P.length);for(var p=0,v=new Array(y);p<y;p++)v[p]=P[p];return v}function l(P){if(Array.isArray(P))return s(P)}function f(P){return P&&P.__esModule?P:{default:P}}function b(P){if(typeof Symbol<"u"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(P){return l(P)||b(P)||O(P)||S()}function O(P,y){if(P){if(typeof P=="string")return s(P,y);var p=Object.prototype.toString.call(P).slice(8,-1);if(p==="Object"&&P.constructor&&(p=P.constructor.name),p==="Map"||p==="Set")return Array.from(p);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return s(P,y)}}var j=["circular","rounded","square"],F=["xs","sm","md","lg","xl","xxl"],z=r.default.string,D=r.default.bool,R=["white"].concat(T(a.propTypesColors))})(d0);var VC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{borderColor:"border-white"},"blue-gray":{borderColor:"border-blue-gray-500"},gray:{borderColor:"border-gray-900"},brown:{borderColor:"border-brown-500"},"deep-orange":{borderColor:"border-deep-orange-500"},orange:{borderColor:"border-orange-500"},amber:{borderColor:"border-amber-500"},yellow:{borderColor:"border-yellow-500"},lime:{borderColor:"border-lime-500"},"light-green":{borderColor:"border-light-green-500"},green:{borderColor:"border-green-500"},teal:{borderColor:"border-teal-500"},cyan:{borderColor:"border-cyan-500"},"light-blue":{borderColor:"border-light-blue-500"},blue:{borderColor:"border-blue-500"},indigo:{borderColor:"border-indigo-500"},"deep-purple":{borderColor:"border-deep-purple-500"},purple:{borderColor:"border-purple-500"},pink:{borderColor:"border-pink-500"},red:{borderColor:"border-red-500"}},r=t})(VC);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{avatar:function(){return l},default:function(){return f}});var r=d0,a=s(VC);function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"circular",size:"md",className:"",withBorder:!1,color:"gray"},valid:{variants:r.propTypesVariant,sizes:r.propTypesSize,colors:r.propTypesColor},styles:{base:{initial:{display:"inline-block",position:"relative",objectFit:"object-cover",objectPosition:"object-center"},withBorder:{border:"border-2"}},sizes:{xs:{width:"w-6",height:"h-6",borderRadius:"rounded-md"},sm:{width:"w-9",height:"h-9",borderRadius:"rounded-md"},md:{width:"w-12",height:"h-12",borderRadius:"rounded-lg"},lg:{width:"w-[58px]",height:"h-[58px]",borderRadius:"rounded-lg"},xl:{width:"w-[74px]",height:"h-[74px]",borderRadius:"rounded-xl"},xxl:{width:"w-[110px]",height:"h-[110px]",borderRadius:"rounded-2xl"}},variants:{rounded:{},square:{borderRadius:"!rounded-none"},circular:{borderRadius:"!rounded-full"}},borderColor:a.default}},f=l})(FC);var WC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{breadcrumbs:function(){return r},default:function(){return a}});var r={defaultProps:{className:"",fullWidth:!1,separator:"/"},styles:{base:{root:{initial:{width:"w-max"},fullWidth:{display:"block",width:"w-full"}},list:{display:"flex",flexWrap:"flex-wrap",alignItems:"items-center",width:"w-full",bg:"bg-blue-gray-50",bgOpacity:"bg-opacity-60",py:"py-2",px:"px-4",borderRadius:"rounded-md"},item:{initial:{display:"flex",alignItems:"items-center",color:"text-blue-gray-900",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",lineHeight:"leading-normal",cursor:"cursor-pointer",transition:"transition-colors duration-300",hover:"hover:text-light-blue-500"},disabled:{pointerEvents:"pointer-events-none"}},separator:{color:"text-blue-gray-500",fontSize:"text-sm",fontSmoothing:"antialiased",fontFamily:"font-sans",fontWeight:"font-normal",lineHeight:"leading-normal",px:"mx-2",pointerEvents:"pointer-events-none",userSelcet:"select-none"}}}},a=r})(WC);var BC={},f0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{background:"bg-white",color:"text-blue-gray-900",shadow:"shadow-md shadow-blue-gray-500/10",hover:"hover:shadow-lg hover:shadow-blue-gray-500/20",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"blue-gray":{background:"bg-blue-gray-500",color:"text-white",shadow:"shadow-md shadow-blue-gray-500/20",hover:"hover:shadow-lg hover:shadow-blue-gray-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},gray:{background:"bg-gray-900",color:"text-white",shadow:"shadow-md shadow-gray-900/10",hover:"hover:shadow-lg hover:shadow-gray-900/20",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},brown:{background:"bg-brown-500",color:"text-white",shadow:"shadow-md shadow-brown-500/20",hover:"hover:shadow-lg hover:shadow-brown-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"deep-orange":{background:"bg-deep-orange-500",color:"text-white",shadow:"shadow-md shadow-deep-orange-500/20",hover:"hover:shadow-lg hover:shadow-deep-orange-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},orange:{background:"bg-orange-500",color:"text-white",shadow:"shadow-md shadow-orange-500/20",hover:"hover:shadow-lg hover:shadow-orange-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},amber:{background:"bg-amber-500",color:"text-black",shadow:"shadow-md shadow-amber-500/20",hover:"hover:shadow-lg hover:shadow-amber-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},yellow:{background:"bg-yellow-500",color:"text-black",shadow:"shadow-md shadow-yellow-500/20",hover:"hover:shadow-lg hover:shadow-yellow-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},lime:{background:"bg-lime-500",color:"text-black",shadow:"shadow-md shadow-lime-500/20",hover:"hover:shadow-lg hover:shadow-lime-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"light-green":{background:"bg-light-green-500",color:"text-white",shadow:"shadow-md shadow-light-green-500/20",hover:"hover:shadow-lg hover:shadow-light-green-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},green:{background:"bg-green-500",color:"text-white",shadow:"shadow-md shadow-green-500/20",hover:"hover:shadow-lg hover:shadow-green-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},teal:{background:"bg-teal-500",color:"text-white",shadow:"shadow-md shadow-teal-500/20",hover:"hover:shadow-lg hover:shadow-teal-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},cyan:{background:"bg-cyan-500",color:"text-white",shadow:"shadow-md shadow-cyan-500/20",hover:"hover:shadow-lg hover:shadow-cyan-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"light-blue":{background:"bg-light-blue-500",color:"text-white",shadow:"shadow-md shadow-light-blue-500/20",hover:"hover:shadow-lg hover:shadow-light-blue-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},blue:{background:"bg-blue-500",color:"text-white",shadow:"shadow-md shadow-blue-500/20",hover:"hover:shadow-lg hover:shadow-blue-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},indigo:{background:"bg-indigo-500",color:"text-white",shadow:"shadow-md shadow-indigo-500/20",hover:"hover:shadow-lg hover:shadow-indigo-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"deep-purple":{background:"bg-deep-purple-500",color:"text-white",shadow:"shadow-md shadow-deep-purple-500/20",hover:"hover:shadow-lg hover:shadow-deep-purple-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},purple:{background:"bg-purple-500",color:"text-white",shadow:"shadow-md shadow-purple-500/20",hover:"hover:shadow-lg hover:shadow-purple-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},pink:{background:"bg-pink-500",color:"text-white",shadow:"shadow-md shadow-pink-500/20",hover:"hover:shadow-lg hover:shadow-pink-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},red:{background:"bg-red-500",color:"text-white",shadow:"shadow-md shadow-red-500/20",hover:"hover:shadow-lg hover:shadow-red-500/40",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"}},r=t})(f0);var p0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{background:"bg-white",color:"text-blue-gray-900",shadow:"shadow-md shadow-blue-gray-500/10",hover:"hover:shadow-lg hover:shadow-blue-gray-500/20",focus:"focus:opacity-[0.85] focus:shadow-none",active:"active:opacity-[0.85] active:shadow-none"},"blue-gray":{background:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white",shadow:"shadow-md shadow-blue-gray-500/20",hover:"hover:shadow-lg hover:shadow-blue-gray-500/40",active:"active:opacity-[0.85]"},gray:{background:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white",shadow:"shadow-md shadow-gray-900/10",hover:"hover:shadow-lg hover:shadow-gray-900/20",active:"active:opacity-[0.85]"},brown:{background:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white",shadow:"shadow-md shadow-brown-500/20",hover:"hover:shadow-lg hover:shadow-brown-500/40",active:"active:opacity-[0.85]"},"deep-orange":{background:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white",shadow:"shadow-md shadow-deep-orange-500/20",hover:"hover:shadow-lg hover:shadow-deep-orange-500/40",active:"active:opacity-[0.85]"},orange:{background:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white",shadow:"shadow-md shadow-orange-500/20",hover:"hover:shadow-lg hover:shadow-orange-500/40",active:"active:opacity-[0.85]"},amber:{background:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black",shadow:"shadow-md shadow-amber-500/20",hover:"hover:shadow-lg hover:shadow-amber-500/40",active:"active:opacity-[0.85]"},yellow:{background:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black",shadow:"shadow-md shadow-yellow-500/20",hover:"hover:shadow-lg hover:shadow-yellow-500/40",active:"active:opacity-[0.85]"},lime:{background:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black",shadow:"shadow-md shadow-lime-500/20",hover:"hover:shadow-lg hover:shadow-lime-500/40",active:"active:opacity-[0.85]"},"light-green":{background:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white",shadow:"shadow-md shadow-light-green-500/20",hover:"hover:shadow-lg hover:shadow-light-green-500/40",active:"active:opacity-[0.85]"},green:{background:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white",shadow:"shadow-md shadow-green-500/20",hover:"hover:shadow-lg hover:shadow-green-500/40",active:"active:opacity-[0.85]"},teal:{background:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white",shadow:"shadow-md shadow-teal-500/20",hover:"hover:shadow-lg hover:shadow-teal-500/40",active:"active:opacity-[0.85]"},cyan:{background:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white",shadow:"shadow-md shadow-cyan-500/20",hover:"hover:shadow-lg hover:shadow-cyan-500/40",active:"active:opacity-[0.85]"},"light-blue":{background:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white",shadow:"shadow-md shadow-light-blue-500/20",hover:"hover:shadow-lg hover:shadow-light-blue-500/40",active:"active:opacity-[0.85]"},blue:{background:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white",shadow:"shadow-md shadow-blue-500/20",hover:"hover:shadow-lg hover:shadow-blue-500/40",active:"active:opacity-[0.85]"},indigo:{background:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white",shadow:"shadow-md shadow-indigo-500/20",hover:"hover:shadow-lg hover:shadow-indigo-500/40",active:"active:opacity-[0.85]"},"deep-purple":{background:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white",shadow:"shadow-md shadow-deep-purple-500/20",hover:"hover:shadow-lg hover:shadow-deep-purple-500/40",active:"active:opacity-[0.85]"},purple:{background:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white",shadow:"shadow-md shadow-purple-500/20",hover:"hover:shadow-lg hover:shadow-purple-500/40",active:"active:opacity-[0.85]"},pink:{background:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white",shadow:"shadow-md shadow-pink-500/20",hover:"hover:shadow-lg hover:shadow-pink-500/40",active:"active:opacity-[0.85]"},red:{background:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white",shadow:"shadow-md shadow-red-500/20",hover:"hover:shadow-lg hover:shadow-red-500/40",active:"active:opacity-[0.85]"}},r=t})(p0);var h0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{border:"border border-white",color:"text-white",hover:"hover:opacity-75",focus:"focus:ring focus:ring-white/50",active:"active:opacity-[0.85]"},"blue-gray":{border:"border border-blue-gray-500",color:"text-blue-gray-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-blue-gray-200",active:"active:opacity-[0.85]"},gray:{border:"border border-gray-900",color:"text-gray-900",hover:"hover:opacity-75",focus:"focus:ring focus:ring-gray-300",active:"active:opacity-[0.85]"},brown:{border:"border border-brown-500",color:"text-brown-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-brown-200",active:"active:opacity-[0.85]"},"deep-orange":{border:"border border-deep-orange-500",color:"text-deep-orange-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-deep-orange-200",active:"active:opacity-[0.85]"},orange:{border:"border border-orange-500",color:"text-orange-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-orange-200",active:"active:opacity-[0.85]"},amber:{border:"border border-amber-500",color:"text-amber-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-amber-200",active:"active:opacity-[0.85]"},yellow:{border:"border border-yellow-500",color:"text-yellow-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-yellow-200",active:"active:opacity-[0.85]"},lime:{border:"border border-lime-500",color:"text-lime-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-lime-200",active:"active:opacity-[0.85]"},"light-green":{border:"border border-light-green-500",color:"text-light-green-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-light-green-200",active:"active:opacity-[0.85]"},green:{border:"border border-green-500",color:"text-green-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-green-200",active:"active:opacity-[0.85]"},teal:{border:"border border-teal-500",color:"text-teal-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-teal-200",active:"active:opacity-[0.85]"},cyan:{border:"border border-cyan-500",color:"text-cyan-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-cyan-200",active:"active:opacity-[0.85]"},"light-blue":{border:"border border-light-blue-500",color:"text-light-blue-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-light-blue-200",active:"active:opacity-[0.85]"},blue:{border:"border border-blue-500",color:"text-blue-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-blue-200",active:"active:opacity-[0.85]"},indigo:{border:"border border-indigo-500",color:"text-indigo-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-indigo-200",active:"active:opacity-[0.85]"},"deep-purple":{border:"border border-deep-purple-500",color:"text-deep-purple-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-deep-purple-200",active:"active:opacity-[0.85]"},purple:{border:"border border-purple-500",color:"text-purple-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-purple-200",active:"active:opacity-[0.85]"},pink:{border:"border border-pink-500",color:"text-pink-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-pink-200",active:"active:opacity-[0.85]"},red:{border:"border border-red-500",color:"text-red-500",hover:"hover:opacity-75",focus:"focus:ring focus:ring-red-200",active:"active:opacity-[0.85]"}},r=t})(h0);var g0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{color:"text-white",hover:"hover:bg-white/10",active:"active:bg-white/30"},"blue-gray":{color:"text-blue-gray-500",hover:"hover:bg-blue-gray-500/10",active:"active:bg-blue-gray-500/30"},gray:{color:"text-gray-900",hover:"hover:bg-gray-900/10",active:"active:bg-gray-900/20"},brown:{color:"text-brown-500",hover:"hover:bg-brown-500/10",active:"active:bg-brown-500/30"},"deep-orange":{color:"text-deep-orange-500",hover:"hover:bg-deep-orange-500/10",active:"active:bg-deep-orange-500/30"},orange:{color:"text-orange-500",hover:"hover:bg-orange-500/10",active:"active:bg-orange-500/30"},amber:{color:"text-amber-500",hover:"hover:bg-amber-500/10",active:"active:bg-amber-500/30"},yellow:{color:"text-yellow-500",hover:"hover:bg-yellow-500/10",active:"active:bg-yellow-500/30"},lime:{color:"text-lime-500",hover:"hover:bg-lime-500/10",active:"active:bg-lime-500/30"},"light-green":{color:"text-light-green-500",hover:"hover:bg-light-green-500/10",active:"active:bg-light-green-500/30"},green:{color:"text-green-500",hover:"hover:bg-green-500/10",active:"active:bg-green-500/30"},teal:{color:"text-teal-500",hover:"hover:bg-teal-500/10",active:"active:bg-teal-500/30"},cyan:{color:"text-cyan-500",hover:"hover:bg-cyan-500/10",active:"active:bg-cyan-500/30"},"light-blue":{color:"text-light-blue-500",hover:"hover:bg-light-blue-500/10",active:"active:bg-light-blue-500/30"},blue:{color:"text-blue-500",hover:"hover:bg-blue-500/10",active:"active:bg-blue-500/30"},indigo:{color:"text-indigo-500",hover:"hover:bg-indigo-500/10",active:"active:bg-indigo-500/30"},"deep-purple":{color:"text-deep-purple-500",hover:"hover:bg-deep-purple-500/10",active:"active:bg-deep-purple-500/30"},purple:{color:"text-purple-500",hover:"hover:bg-purple-500/10",active:"active:bg-purple-500/30"},pink:{color:"text-pink-500",hover:"hover:bg-pink-500/10",active:"active:bg-pink-500/30"},red:{color:"text-red-500",hover:"hover:bg-red-500/10",active:"active:bg-red-500/30"}},r=t})(g0);var Ka={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{propTypesVariant:function(){return j},propTypesSize:function(){return F},propTypesColor:function(){return z},propTypesFullWidth:function(){return D},propTypesRipple:function(){return R},propTypesClassName:function(){return P},propTypesChildren:function(){return y}});var r=f(ot),a=Vt;function s(p,v){(v==null||v>p.length)&&(v=p.length);for(var g=0,m=new Array(v);g<v;g++)m[g]=p[g];return m}function l(p){if(Array.isArray(p))return s(p)}function f(p){return p&&p.__esModule?p:{default:p}}function b(p){if(typeof Symbol<"u"&&p[Symbol.iterator]!=null||p["@@iterator"]!=null)return Array.from(p)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(p){return l(p)||b(p)||O(p)||S()}function O(p,v){if(p){if(typeof p=="string")return s(p,v);var g=Object.prototype.toString.call(p).slice(8,-1);if(g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return s(p,v)}}var j=["filled","outlined","gradient","text"],F=["sm","md","lg"],z=["white"].concat(T(a.propTypesColors)),D=r.default.bool,R=r.default.bool,P=r.default.string,y=r.default.node.isRequired})(Ka);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{button:function(){return S},default:function(){return T}});var r=b(f0),a=b(p0),s=b(h0),l=b(g0),f=Ka;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{variant:"filled",size:"md",color:"gray",fullWidth:!1,ripple:!0,className:""},valid:{variants:f.propTypesVariant,sizes:f.propTypesSize,colors:f.propTypesColor},styles:{base:{initial:{verticalAlign:"align-middle",userSelect:"select-none",fontFamily:"font-sans",fontWeight:"font-bold",textAlign:"text-center",textTransform:"uppercase",transition:"transition-all",disabled:"disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none"},fullWidth:{display:"block",width:"w-full"}},sizes:{sm:{fontSize:"text-xs",py:"py-2",px:"px-4",borderRadius:"rounded-lg"},md:{fontSize:"text-xs",py:"py-3",px:"px-6",borderRadius:"rounded-lg"},lg:{fontSize:"text-sm",py:"py-3.5",px:"px-7",borderRadius:"rounded-lg"}},variants:{filled:r.default,gradient:a.default,outlined:s.default,text:l.default}}},T=S})(BC);var HC={},b0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-gray-700",shadow:"shadow-none"},white:{backgroud:"bg-white",color:"text-gray-700"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white",shadow:"shadow-blue-gray-500/40"},gray:{backgroud:"bg-gray-900",color:"text-white",shadow:"shadow-gray-900/20"},brown:{backgroud:"bg-brown-500",color:"text-white",shadow:"shadow-brown-500/40"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white",shadow:"shadow-deep-orange-500/40"},orange:{backgroud:"bg-orange-500",color:"text-white",shadow:"shadow-orange-500/40"},amber:{backgroud:"bg-amber-500",color:"text-gray-700",shadow:"shadow-amber-500/40"},yellow:{backgroud:"bg-yellow-500",color:"text-gray-700",shadow:"shadow-yellow-500/40"},lime:{backgroud:"bg-lime-500",color:"text-gray-700",shadow:"shadow-lime-500/40"},"light-green":{backgroud:"bg-light-green-500",color:"text-white",shadow:"shadow-light-green-500/40"},green:{backgroud:"bg-green-500",color:"text-white",shadow:"shadow-green-500/40"},teal:{backgroud:"bg-teal-500",color:"text-white",shadow:"shadow-teal-500/40"},cyan:{backgroud:"bg-cyan-500",color:"text-white",shadow:"shadow-cyan-500/40"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white",shadow:"shadow-light-blue-500/40"},blue:{backgroud:"bg-blue-500",color:"text-white",shadow:"shadow-blue-500/40"},indigo:{backgroud:"bg-indigo-500",color:"text-white",shadow:"shadow-indigo-500/40"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white",shadow:"shadow-deep-purple-500/40"},purple:{backgroud:"bg-purple-500",color:"text-white",shadow:"shadow-purple-500/40"},pink:{backgroud:"bg-pink-500",color:"text-white",shadow:"shadow-pink-500/40"},red:{backgroud:"bg-red-500",color:"text-white",shadow:"shadow-red-500/40"}},r=t})(b0);var v0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-gray-700",shadow:"shadow-none"},white:{backgroud:"bg-white",color:"text-gray-700"},"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white",shadow:"shadow-blue-gray-500/40"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white",shadow:"shadow-gray-900/20"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white",shadow:"shadow-brown-500/40"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white",shadow:"shadow-deep-orange-500/40"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white",shadow:"shadow-orange-500/40"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-gray-700",shadow:"shadow-amber-500/40"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-gray-700",shadow:"shadow-yellow-500/40"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-gray-700",shadow:"shadow-lime-500/40"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white",shadow:"shadow-light-green-500/40"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white",shadow:"shadow-green-500/40"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white",shadow:"shadow-teal-500/40"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white",shadow:"shadow-cyan-500/40"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white",shadow:"shadow-light-blue-500/40"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white",shadow:"shadow-blue-500/40"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white",shadow:"shadow-indigo-500/40"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white",shadow:"shadow-deep-purple-500/40"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white",shadow:"shadow-purple-500/40"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white",shadow:"shadow-pink-500/40"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white",shadow:"shadow-red-500/40"}},r=t})(v0);var Za={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{propTypesVariant:function(){return j},propTypesColor:function(){return F},propTypesShadow:function(){return z},propTypesFloated:function(){return D},propTypesDivider:function(){return R},propTypesClassName:function(){return P},propTypesChildren:function(){return y}});var r=f(ot),a=Vt;function s(p,v){(v==null||v>p.length)&&(v=p.length);for(var g=0,m=new Array(v);g<v;g++)m[g]=p[g];return m}function l(p){if(Array.isArray(p))return s(p)}function f(p){return p&&p.__esModule?p:{default:p}}function b(p){if(typeof Symbol<"u"&&p[Symbol.iterator]!=null||p["@@iterator"]!=null)return Array.from(p)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(p){return l(p)||b(p)||O(p)||S()}function O(p,v){if(p){if(typeof p=="string")return s(p,v);var g=Object.prototype.toString.call(p).slice(8,-1);if(g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return s(p,v)}}var j=["filled","gradient"],F=["transparent","white"].concat(T(a.propTypesColors)),z=r.default.bool,D=r.default.bool,R=r.default.bool,P=r.default.string,y=r.default.node.isRequired})(Za);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(b0),r=s(v0),a=Za;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"filled",color:"white",shadow:!0,className:""},valid:{variants:a.propTypesVariant,colors:a.propTypesColor},styles:{base:{initial:{position:"relative",display:"flex",flexDirection:"flex-col",backgroundClip:"bg-clip-border",borderRadius:"rounded-xl"},shadow:{boxShadow:"shadow-md"}},variants:{filled:t.default,gradient:r.default}}},f=l})(HC);var XC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{cardBody:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{p:"p-6"}}},a=r})(XC);var YC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{cardFooter:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{initial:{p:"p-6"},divider:{borderWidth:"border-t",borderColor:"border-blue-gray-50"}}}},a=r})(YC);var GC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(b0),r=s(v0),a=Za;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"filled",color:"white",shadow:!0,floated:!0,className:""},valid:{variants:a.propTypesVariant,colors:a.propTypesColor},styles:{base:{initial:{position:"relative",backgroundClip:"bg-clip-border",mt:"mt-4",mx:"mx-4",borderRadius:"rounded-xl",overflow:"overflow-hidden"},shadow:{boxShadow:"shadow-lg"},floated:{mt:"-mt-6"}},variants:{filled:t.default,gradient:r.default}}},f=l})(GC);var UC={},$C={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{background:"checked:bg-blue-gray-500",border:"checked:border-blue-gray-500",before:"checked:before:bg-blue-gray-500"},gray:{background:"checked:bg-gray-900",border:"checked:border-gray-900",before:"checked:before:bg-gray-900"},brown:{background:"checked:bg-brown-500",border:"checked:border-brown-500",before:"checked:before:bg-brown-500"},"deep-orange":{background:"checked:bg-deep-orange-500",border:"checked:border-deep-orange-500",before:"checked:before:bg-deep-orange-500"},orange:{background:"checked:bg-orange-500",border:"checked:border-orange-500",before:"checked:before:bg-orange-500"},amber:{background:"checked:bg-amber-500",border:"checked:border-amber-500",before:"checked:before:bg-amber-500"},yellow:{background:"checked:bg-yellow-500",border:"checked:border-yellow-500",before:"checked:before:bg-yellow-500"},lime:{background:"checked:bg-lime-500",border:"checked:border-lime-500",before:"checked:before:bg-lime-500"},"light-green":{background:"checked:bg-light-green-500",border:"checked:border-light-green-500",before:"checked:before:bg-light-green-500"},green:{background:"checked:bg-green-500",border:"checked:border-green-500",before:"checked:before:bg-green-500"},teal:{background:"checked:bg-teal-500",border:"checked:border-teal-500",before:"checked:before:bg-teal-500"},cyan:{background:"checked:bg-cyan-500",border:"checked:border-cyan-500",before:"checked:before:bg-cyan-500"},"light-blue":{background:"checked:bg-light-blue-500",border:"checked:border-light-blue-500",before:"checked:before:bg-light-blue-500"},blue:{background:"checked:bg-blue-500",border:"checked:border-blue-500",before:"checked:before:bg-blue-500"},indigo:{background:"checked:bg-indigo-500",border:"checked:border-indigo-500",before:"checked:before:bg-indigo-500"},"deep-purple":{background:"checked:bg-deep-purple-500",border:"checked:border-deep-purple-500",before:"checked:before:bg-deep-purple-500"},purple:{background:"checked:bg-purple-500",border:"checked:border-purple-500",before:"checked:before:bg-purple-500"},pink:{background:"checked:bg-pink-500",border:"checked:border-pink-500",before:"checked:before:bg-pink-500"},red:{background:"checked:bg-red-500",border:"checked:border-red-500",before:"checked:before:bg-red-500"}},r=t})($C);var Qa={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,z){for(var D in z)Object.defineProperty(F,D,{enumerable:!0,get:z[D]})}t(e,{propTypesColor:function(){return l},propTypesLabel:function(){return f},propTypesIcon:function(){return b},propTypesRipple:function(){return S},propTypesClassName:function(){return T},propTypesDisabled:function(){return O},propTypesObject:function(){return j}});var r=s(ot),a=Vt;function s(F){return F&&F.__esModule?F:{default:F}}var l=a.propTypesColors,f=r.default.node,b=r.default.node,S=r.default.bool,T=r.default.string,O=r.default.bool,j=r.default.instanceOf(Object)})(Qa);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{checkbox:function(){return l},default:function(){return f}});var r=s($C),a=Qa;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",label:void 0,icon:void 0,ripple:!0,className:"",disabled:!1,containerProps:void 0,labelProps:void 0,iconProps:void 0},valid:{colors:a.propTypesColor},styles:{base:{root:{display:"inline-flex",alignItems:"items-center"},container:{position:"relative",display:"flex",alignItems:"items-center",cursor:"cursor-pointer",p:"p-3",borderRadius:"rounded-full"},input:{peer:"peer",position:"relative",appearance:"appearance-none",width:"w-5",height:"h-5",borderWidth:"border",borderRadius:"rounded-md",borderColor:"border-blue-gray-200",cursor:"cursor-pointer",transition:"transition-all",before:{content:"before:content['']",display:"before:block",bg:"before:bg-blue-gray-500",width:"before:w-12",height:"before:h-12",borderRadius:"before:rounded-full",position:"before:absolute",top:"before:top-2/4",left:"before:left-2/4",transform:"before:-translate-y-2/4 before:-translate-x-2/4",opacity:"before:opacity-0 hover:before:opacity-10",transition:"before:transition-opacity"}},label:{color:"text-gray-700",fontWeight:"font-light",userSelect:"select-none",cursor:"cursor-pointer",mt:"mt-px"},icon:{color:"text-white",position:"absolute",top:"top-2/4",left:"left-2/4",translate:"-translate-y-2/4 -translate-x-2/4",pointerEvents:"pointer-events-none",opacity:"opacity-0 peer-checked:opacity-100",transition:"transition-opacity"},disabled:{opacity:"opacity-50",pointerEvents:"pointer-events-none"}},colors:r.default}},f=l})(UC);var qC={},KC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-900",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(KC);var ZC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(ZC);var QC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{border:"border border-blue-gray-500",color:"text-blue-gray-700"},gray:{border:"border border-gray-900",color:"text-gray-700"},brown:{border:"border border-brown-500",color:"text-brown-700"},"deep-orange":{border:"border border-deep-orange-500",color:"text-deep-orange-700"},orange:{border:"border border-orange-500",color:"text-orange-700"},amber:{border:"border border-amber-500",color:"text-amber-700"},yellow:{border:"border border-yellow-500",color:"text-yellow-700"},lime:{border:"border border-lime-500",color:"text-lime-700"},"light-green":{border:"border border-light-green-500",color:"text-light-green-700"},green:{border:"border border-green-500",color:"text-green-700"},teal:{border:"border border-teal-500",color:"text-teal-700"},cyan:{border:"border border-cyan-500",color:"text-cyan-700"},"light-blue":{border:"border border-light-blue-500",color:"text-light-blue-700"},blue:{border:"border border-blue-500",color:"text-blue-700"},indigo:{border:"border border-indigo-500",color:"text-indigo-700"},"deep-purple":{border:"border border-deep-purple-500",color:"text-deep-purple-700"},purple:{border:"border border-purple-500",color:"text-purple-700"},pink:{border:"border border-pink-500",color:"text-pink-700"},red:{border:"border border-red-500",color:"text-red-700"}},r=t})(QC);var JC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500/20",color:"text-blue-gray-900"},gray:{backgroud:"bg-gray-900/10",color:"text-gray-900"},brown:{backgroud:"bg-brown-500/20",color:"text-brown-900"},"deep-orange":{backgroud:"bg-deep-orange-500/20",color:"text-deep-orange-900"},orange:{backgroud:"bg-orange-500/20",color:"text-orange-900"},amber:{backgroud:"bg-amber-500/20",color:"text-amber-900"},yellow:{backgroud:"bg-yellow-500/20",color:"text-yellow-900"},lime:{backgroud:"bg-lime-500/20",color:"text-lime-900"},"light-green":{backgroud:"bg-light-green-500/20",color:"text-light-green-900"},green:{backgroud:"bg-green-500/20",color:"text-green-900"},teal:{backgroud:"bg-teal-500/20",color:"text-teal-900"},cyan:{backgroud:"bg-cyan-500/20",color:"text-cyan-900"},"light-blue":{backgroud:"bg-light-blue-500/20",color:"text-light-blue-900"},blue:{backgroud:"bg-blue-500/20",color:"text-blue-900"},indigo:{backgroud:"bg-indigo-500/20",color:"text-indigo-900"},"deep-purple":{backgroud:"bg-deep-purple-500/20",color:"text-deep-purple-900"},purple:{backgroud:"bg-purple-500/20",color:"text-purple-900"},pink:{backgroud:"bg-pink-500/20",color:"text-pink-900"},red:{backgroud:"bg-red-500/20",color:"text-red-900"}},r=t})(JC);var m0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{propTypesVariant:function(){return l},propTypesSize:function(){return f},propTypesColor:function(){return b},propTypesIcon:function(){return S},propTypesOpen:function(){return T},propTypesOnClose:function(){return O},propTypesAction:function(){return j},propTypesAnimate:function(){return F},propTypesClassName:function(){return z},propTypesValue:function(){return D}});var r=s(ot),a=Vt;function s(R){return R&&R.__esModule?R:{default:R}}var l=["filled","gradient","outlined","ghost"],f=["sm","md","lg"],b=a.propTypesColors,S=r.default.node,T=r.default.bool,O=r.default.func,j=r.default.node,F=a.propTypesAnimation,z=r.default.string,D=r.default.node.isRequired})(m0);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{chip:function(){return S},default:function(){return T}});var r=b(KC),a=b(ZC),s=b(QC),l=b(JC),f=m0;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{variant:"filled",size:"md",color:"gray",icon:void 0,open:!0,onClose:void 0,action:void 0,animate:{unmount:{},mount:{}},className:""},valid:{variants:f.propTypesVariant,sizes:f.propTypesSize,colors:f.propTypesColor},styles:{base:{chip:{position:"relative",display:"grid",placeItems:"items-center",fontFamily:"font-sans",fontWeight:"font-bold",textTransform:"uppercase",lineHeight:"leading-none",whiteSpace:"whitespace-nowrap",userSelect:"select-none"},action:{position:"!absolute",top:"top-2/4",right:"right-1",translate:"-translate-y-2/4",mx:"mx-px",rounded:"rounded-md"},icon:{position:"absolute",top:"top-2/4",translate:"-translate-y-2/4"}},sizes:{sm:{chip:{py:"py-1",px:"px-2",fontSize:"text-xs",borderRadius:"rounded-md"},action:{width:"w-4",height:"h-4"},icon:{width:"w-4",height:"h-4",left:"left-1"}},md:{chip:{py:"py-1.5",px:"px-3",fontSize:"text-xs",borderRadius:"rounded-lg"},action:{width:"w-5",height:"h-5"},icon:{width:"w-5",height:"h-5",left:"left-1.5"}},lg:{chip:{py:"py-2",px:"px-4",fontSize:"text-xs",borderRadius:"rounded-lg"},action:{width:"w-6",height:"h-6"},icon:{width:"w-6",height:"h-6",left:"left-1.5"}}},variants:{filled:r.default,gradient:a.default,outlined:s.default,ghost:l.default}}},T=S})(qC);var eS={},as={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{propTypesOpen:function(){return l},propTypesHandler:function(){return f},propTypesSize:function(){return b},propTypesDismiss:function(){return S},propTypesAnimate:function(){return T},propTypesDivider:function(){return O},propTypesClassName:function(){return j},propTypesChildren:function(){return F}});var r=s(ot),a=Vt;function s(z){return z&&z.__esModule?z:{default:z}}var l=r.default.bool.isRequired,f=r.default.func,b=["xs","sm","md","lg","xl","xxl"],S=a.propTypesDismissType,T=a.propTypesAnimation,O=r.default.bool,j=r.default.string,F=r.default.node.isRequired})(as);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var b in f)Object.defineProperty(l,b,{enumerable:!0,get:f[b]})}t(e,{dialog:function(){return a},default:function(){return s}});var r=as,a={defaultProps:{size:"md",dismiss:{},animate:{unmount:{},mount:{}},className:""},valid:{sizes:r.propTypesSize},styles:{base:{backdrop:{display:"grid",placeItems:"place-items-center",position:"fixed",top:0,left:0,width:"w-screen",height:"h-screen",backgroundColor:"bg-black",backgroundOpacity:"bg-opacity-60",backdropFilter:"backdrop-blur-sm"},container:{position:"relative",bg:"bg-white",m:"m-4",borderRadius:"rounded-lg",boxShadow:"shadow-2xl",color:"text-blue-gray-500",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-light",lineHeight:"leading-relaxed"}},sizes:{xs:{width:"w-full md:w-3/5 lg:w-2/5 2xl:w-1/4",minWidth:"min-w-[80%] md:min-w-[60%] lg:min-w-[40%] 2xl:min-w-[25%]",maxWidth:"max-w-[80%] md:max-w-[60%] lg:max-w-[40%] 2xl:max-w-[25%]"},sm:{width:"w-full md:w-2/3 lg:w-2/4 2xl:w-1/3",minWidth:"min-w-[80%] md:min-w-[66.666667%] lg:min-w-[50%] 2xl:min-w-[33.333333%]",maxWidth:"max-w-[80%] md:max-w-[66.666667%] lg:max-w-[50%] 2xl:max-w-[33.333333%]"},md:{width:"w-full md:w-3/4 lg:w-3/5 2xl:w-2/5",minWidth:"min-w-[90%] md:min-w-[75%] lg:min-w-[60%] 2xl:min-w-[40%]",maxWidth:"max-w-[90%] md:max-w-[75%] lg:max-w-[60%] 2xl:max-w-[40%]"},lg:{width:"w-full md:w-5/6 lg:w-3/4 2xl:w-3/5",minWidth:"min-w-[90%] md:min-w-[83.333333%] lg:min-w-[75%] 2xl:min-w-[60%]",maxWidth:"max-w-[90%] md:max-w-[83.333333%] lg:max-w-[75%] 2xl:max-w-[60%]"},xl:{width:"w-full md:w-5/6 2xl:w-3/4",minWidth:"min-w-[95%] md:min-w-[83.333333%] 2xl:min-w-[75%]",maxWidth:"max-w-[95%] md:max-w-[83.333333%] 2xl:max-w-[75%]"},xxl:{display:"flex",flexDirection:"flex-col",width:"w-screen",minWidth:"min-w-[100vw]",maxWidth:"max-w-[100vw]",height:"h-screen",minHeight:"min-h-[100vh]",maxHeight:"max-h-[100vh]",m:"m-0",borderRadius:"rounded-none"}}}},s=a})(eS);var tS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{dialogBody:function(){return r},default:function(){return a}});var r={defaultProps:{className:"",divider:!1},styles:{base:{initial:{position:"relative",p:"p-4",color:"text-blue-gray-500",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-light",lineHeight:"leading-relaxed"},divider:{borderTop:"border-t",borderTopColor:"border-t-blue-gray-100",borderBottom:"border-b",borderBottomColor:"border-b-blue-gray-100"}}}},a=r})(tS);var rS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{dialogFooter:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{display:"flex",alignItems:"items-center",justifyContent:"justify-end",flexShrink:"shrink-0",flexWrap:"flex-wrap",p:"p-4",color:"text-blue-gray-500"}}},a=r})(rS);var nS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{dialogHeader:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{display:"flex",alignItems:"items-center",flexShrink:"shrink-0",p:"p-4",color:"text-blue-gray-900",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-2xl",fontWeight:"font-semibold",lineHeight:"leading-snug"}}},a=r})(nS);var oS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{iconButton:function(){return S},default:function(){return T}});var r=b(f0),a=b(p0),s=b(h0),l=b(g0),f=Ka;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{variant:"filled",size:"md",color:"gray",fullWidth:!1,ripple:!0,className:""},valid:{variants:f.propTypesVariant,sizes:f.propTypesSize,colors:f.propTypesColor},styles:{base:{position:"relative",verticalAlign:"align-middle",userSelect:"select-none",fontFamily:"font-sans",fontWeight:"font-medium",textAlign:"text-center",textTransform:"uppercase",transition:"transition-all",disabled:"disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none"},sizes:{sm:{width:"w-8",maxWidth:"max-w-[32px]",height:"h-8",maxHeight:"max-h-[32px]",borderRadius:"rounded-lg",fontSize:"text-xs"},md:{width:"w-10",maxWidth:"max-w-[40px]",height:"h-10",maxHeight:"max-h-[40px]",borderRadius:"rounded-lg",fontSize:"text-xs"},lg:{width:"w-12",maxWidth:"max-w-[48px]",height:"h-12",maxHeight:"max-h-[48px]",borderRadius:"rounded-lg",fontSize:"text-sm"}},variants:{filled:r.default,gradient:a.default,outlined:s.default,text:l.default}}},T=S})(oS);var aS={},iS={},sS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",fontSize:"peer-placeholder-shown:text-sm",floated:{fontSize:"text-[11px] peer-focus:text-[11px]"},before:{content:"before:content[' ']",display:"before:block",boxSizing:"before:box-border",width:"before:w-2.5",height:"before:h-1.5",mt:"before:mt-[6.5px]",mr:"before:mr-1",borderColor:"peer-placeholder-shown:before:border-transparent",borderRadius:"before:rounded-tl-md",floated:{bt:"before:border-t peer-focus:before:border-t-2",bl:"before:border-l peer-focus:before:border-l-2"},pointerEvents:"before:pointer-events-none",transition:"before:transition-all",disabled:"peer-disabled:before:border-transparent"},after:{content:"after:content[' ']",display:"after:block",flexGrow:"after:flex-grow",boxSizing:"after:box-border",width:"after:w-2.5",height:"after:h-1.5",mt:"after:mt-[6.5px]",ml:"after:ml-1",borderColor:"peer-placeholder-shown:after:border-transparent",borderRadius:"after:rounded-tr-md",floated:{bt:"after:border-t peer-focus:after:border-t-2",br:"after:border-r peer-focus:after:border-r-2"},pointerEvents:"after:pointer-events-none",transition:"after:transition-all",disabled:"peer-disabled:after:border-transparent"}},r=t})(sS);var lS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"text-black",borderColor:"border-black",borderColorFocused:"focus:border-black"},white:{color:"!text-white",borderColor:"border-white",borderColorFocused:"focus:border-white"},"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(lS);var uS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"!text-black peer-focus:text-black",before:"before:border-black peer-focus:before:!border-black",after:"after:border-black peer-focus:after:!border-black"},white:{color:"!text-white peer-focus:text-white",before:"before:border-white peer-focus:before:!border-white",after:"after:border-white peer-focus:after:!border-white"},"blue-gray":{color:"text-blue-gray-400 peer-focus:text-blue-gray-500",before:"before:border-blue-gray-200 peer-focus:before:!border-blue-gray-500",after:"after:border-blue-gray-200 peer-focus:after:!border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",before:"before:border-blue-gray-200 peer-focus:before:!border-gray-900",after:"after:border-blue-gray-200 peer-focus:after:!border-gray-900"},brown:{color:"text-blue-gray-400 peer-focus:text-brown-500",before:"before:border-blue-gray-200 peer-focus:before:!border-brown-500",after:"after:border-blue-gray-200 peer-focus:after:!border-brown-500"},"deep-orange":{color:"text-blue-gray-400 peer-focus:text-deep-orange-500",before:"before:border-blue-gray-200 peer-focus:before:!border-deep-orange-500",after:"after:border-blue-gray-200 peer-focus:after:!border-deep-orange-500"},orange:{color:"text-blue-gray-400 peer-focus:text-orange-500",before:"before:border-blue-gray-200 peer-focus:before:!border-orange-500",after:"after:border-blue-gray-200 peer-focus:after:!border-orange-500"},amber:{color:"text-blue-gray-400 peer-focus:text-amber-500",before:"before:border-blue-gray-200 peer-focus:before:!border-amber-500",after:"after:border-blue-gray-200 peer-focus:after:!border-amber-500"},yellow:{color:"text-blue-gray-400 peer-focus:text-yellow-500",before:"before:border-blue-gray-200 peer-focus:before:!border-yellow-500",after:"after:border-blue-gray-200 peer-focus:after:!border-yellow-500"},lime:{color:"text-blue-gray-400 peer-focus:text-lime-500",before:"before:border-blue-gray-200 peer-focus:before:!border-lime-500",after:"after:border-blue-gray-200 peer-focus:after:!border-lime-500"},"light-green":{color:"text-blue-gray-400 peer-focus:text-light-green-500",before:"before:border-blue-gray-200 peer-focus:before:!border-light-green-500",after:"after:border-blue-gray-200 peer-focus:after:!border-light-green-500"},green:{color:"text-blue-gray-400 peer-focus:text-green-500",before:"before:border-blue-gray-200 peer-focus:before:!border-green-500",after:"after:border-blue-gray-200 peer-focus:after:!border-green-500"},teal:{color:"text-blue-gray-400 peer-focus:text-teal-500",before:"before:border-blue-gray-200 peer-focus:before:!border-teal-500",after:"after:border-blue-gray-200 peer-focus:after:!border-teal-500"},cyan:{color:"text-blue-gray-400 peer-focus:text-cyan-500",before:"before:border-blue-gray-200 peer-focus:before:!border-cyan-500",after:"after:border-blue-gray-200 peer-focus:after:!border-cyan-500"},"light-blue":{color:"text-blue-gray-400 peer-focus:text-light-blue-500",before:"before:border-blue-gray-200 peer-focus:before:!border-light-blue-500",after:"after:border-blue-gray-200 peer-focus:after:!border-light-blue-500"},blue:{color:"text-blue-gray-400 peer-focus:text-blue-500",before:"before:border-blue-gray-200 peer-focus:before:!border-blue-500",after:"after:border-blue-gray-200 peer-focus:after:!border-blue-500"},indigo:{color:"text-blue-gray-400 peer-focus:text-indigo-500",before:"before:border-blue-gray-200 peer-focus:before:!border-indigo-500",after:"after:border-blue-gray-200 peer-focus:after:!border-indigo-500"},"deep-purple":{color:"text-blue-gray-400 peer-focus:text-deep-purple-500",before:"before:border-blue-gray-200 peer-focus:before:!border-deep-purple-500",after:"after:border-blue-gray-200 peer-focus:after:!border-deep-purple-500"},purple:{color:"text-blue-gray-400 peer-focus:text-purple-500",before:"before:border-blue-gray-200 peer-focus:before:!border-purple-500",after:"after:border-blue-gray-200 peer-focus:after:!border-purple-500"},pink:{color:"text-blue-gray-400 peer-focus:text-pink-500",before:"before:border-blue-gray-200 peer-focus:before:!border-pink-500",after:"after:border-blue-gray-200 peer-focus:after:!border-pink-500"},red:{color:"text-blue-gray-400 peer-focus:text-red-500",before:"before:border-blue-gray-200 peer-focus:before:!border-red-500",after:"after:border-blue-gray-200 peer-focus:after:!border-red-500"}},r=t})(uS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(sS),r=s(lS),a=s(uS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{input:{borderWidth:"placeholder-shown:border",borderColor:"placeholder-shown:border-blue-gray-200 placeholder-shown:border-t-blue-gray-200",floated:{borderWidth:"border focus:border-2",borderColor:"border-t-transparent focus:border-t-transparent"}},inputWithIcon:{pr:"!pr-9"},icon:{top:"top-2/4",right:"right-3",transform:"-translate-y-2/4"},label:t.default},sizes:{md:{container:{height:"h-10"},input:{fontSize:"text-sm",px:"px-3",py:"py-2.5",borderRadius:"rounded-[7px]"},label:{lineHeight:"peer-placeholder-shown:leading-[3.75]"},icon:{width:"w-5",height:"h-5"}},lg:{container:{height:"h-11"},input:{fontSize:"text-sm",px:"px-3",py:"py-3",borderRadius:"rounded-md"},label:{lineHeight:"peer-placeholder-shown:leading-[4.1]"},icon:{width:"w-6",height:"h-6"}}},colors:{input:r.default,label:a.default},error:{input:{borderColor:"border-red-500 placeholder-shown:border-t-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",before:"before:border-red-500 peer-focus:before:border-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{input:{borderColor:"border-green-500 placeholder-shown:border-t-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",before:"before:border-green-500 peer-focus:before:border-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{input:{borderTop:"!border-t-transparent"},label:{fontSize:"!text-[11px]",lineHeight:"!leading-tight",borderColor:"before:!border-blue-gray-200 after:!border-blue-gray-200"}}},f=l})(iS);var cS={},dS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",fontSize:"peer-placeholder-shown:text-sm",floated:{fontSize:"text-[11px] peer-focus:text-[11px]"},after:{content:"after:content['']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-1.5",left:"left-0",borderWidth:"after:border-b-2",scale:"after:scale-x-0",floated:{scale:"peer-focus:after:scale-x-100"},transition:"after:transition-transform after:duration-300"}},r=t})(dS);var fS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"text-black",borderColor:"border-black",borderColorFocused:"focus:border-black"},white:{color:"!text-white",borderColor:"border-white",borderColorFocused:"focus:border-white"},"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-900"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-500"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(fS);var pS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"!text-black peer-focus:text-black",after:"after:border-black peer-focus:after:border-black"},white:{color:"!text-white peer-focus:text-white",after:"after:border-white peer-focus:after:border-white"},"blue-gray":{color:"text-blue-gray-500 peer-focus:text-blue-gray-500",after:"after:border-blue-gray-500 peer-focus:after:border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",after:"after:border-gray-500 peer-focus:after:border-gray-900"},brown:{color:"text-blue-gray-500 peer-focus:text-brown-500",after:"after:border-brown-500 peer-focus:after:border-brown-500"},"deep-orange":{color:"text-blue-gray-500 peer-focus:text-deep-orange-500",after:"after:border-deep-orange-500 peer-focus:after:border-deep-orange-500"},orange:{color:"text-blue-gray-500 peer-focus:text-orange-500",after:"after:border-orange-500 peer-focus:after:border-orange-500"},amber:{color:"text-blue-gray-500 peer-focus:text-amber-500",after:"after:border-amber-500 peer-focus:after:border-amber-500"},yellow:{color:"text-blue-gray-500 peer-focus:text-yellow-500",after:"after:border-yellow-500 peer-focus:after:border-yellow-500"},lime:{color:"text-blue-gray-500 peer-focus:text-lime-500",after:"after:border-lime-500 peer-focus:after:border-lime-500"},"light-green":{color:"text-blue-gray-500 peer-focus:text-light-green-500",after:"after:border-light-green-500 peer-focus:after:border-light-green-500"},green:{color:"text-blue-gray-500 peer-focus:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"},teal:{color:"text-blue-gray-500 peer-focus:text-teal-500",after:"after:border-teal-500 peer-focus:after:border-teal-500"},cyan:{color:"text-blue-gray-500 peer-focus:text-cyan-500",after:"after:border-cyan-500 peer-focus:after:border-cyan-500"},"light-blue":{color:"text-blue-gray-500 peer-focus:text-light-blue-500",after:"after:border-light-blue-500 peer-focus:after:border-light-blue-500"},blue:{color:"text-blue-gray-500 peer-focus:text-blue-500",after:"after:border-blue-500 peer-focus:after:border-blue-500"},indigo:{color:"text-blue-gray-500 peer-focus:text-indigo-500",after:"after:border-indigo-500 peer-focus:after:border-indigo-500"},"deep-purple":{color:"text-blue-gray-500 peer-focus:text-deep-purple-500",after:"after:border-deep-purple-500 peer-focus:after:border-deep-purple-500"},purple:{color:"text-blue-gray-500 peer-focus:text-purple-500",after:"after:border-purple-500 peer-focus:after:border-purple-500"},pink:{color:"text-blue-gray-500 peer-focus:text-pink-500",after:"after:border-pink-500 peer-focus:after:border-pink-500"},red:{color:"text-blue-gray-500 peer-focus:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},r=t})(pS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(dS),r=s(fS),a=s(pS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{input:{borderWidth:"border-b",borderColor:"placeholder-shown:border-blue-gray-200"},inputWithIcon:{pr:"!pr-7"},icon:{top:"top-2/4",right:"right-0",transform:"-translate-y-1/4"},label:t.default},sizes:{md:{container:{height:"h-11"},input:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{lineHeight:"peer-placeholder-shown:leading-[4.25]"},icon:{width:"w-5",height:"h-5"}},lg:{container:{height:"h-12"},input:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{lineHeight:"peer-placeholder-shown:leading-[4.875]"},icon:{width:"w-6",height:"h-6"}}},colors:{input:r.default,label:a.default},error:{input:{borderColor:"border-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{input:{borderColor:"border-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{input:{},label:{fontSize:"!text-[11px]",lineHeight:"!leading-tight"}}},f=l})(cS);var hS={},gS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-2.5",fontSize:"text-sm peer-focus:text-sm",after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-2.5",left:"left-0",borderWidth:"after:border-b-2",scale:"after:scale-x-0",floated:{scale:"peer-focus:after:scale-x-100"},transition:"after:transition-transform after:duration-300"}},r=t})(gS);var bS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"text-black",borderColor:"border-black",borderColorFocused:"focus:border-black"},white:{color:"!text-white",borderColor:"border-white",borderColorFocused:"focus:border-white"},"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(bS);var vS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={black:{color:"!text-black peer-focus:black",after:"after:border-black peer-focus:after:border-black"},white:{color:"!text-white peer-focus:white",after:"after:border-white peer-focus:after:border-white"},"blue-gray":{color:"text-blue-gray-500 peer-focus:text-blue-gray-500",after:"after:border-blue-gray-500 peer-focus:after:border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",after:"after:border-gray-500 peer-focus:after:border-gray-900"},brown:{color:"text-blue-gray-500 peer-focus:text-brown-500",after:"after:border-brown-500 peer-focus:after:border-brown-500"},"deep-orange":{color:"text-blue-gray-500 peer-focus:text-deep-orange-500",after:"after:border-deep-orange-500 peer-focus:after:border-deep-orange-500"},orange:{color:"text-blue-gray-500 peer-focus:text-orange-500",after:"after:border-orange-500 peer-focus:after:border-orange-500"},amber:{color:"text-blue-gray-500 peer-focus:text-amber-500",after:"after:border-amber-500 peer-focus:after:border-amber-500"},yellow:{color:"text-blue-gray-500 peer-focus:text-yellow-500",after:"after:border-yellow-500 peer-focus:after:border-yellow-500"},lime:{color:"text-blue-gray-500 peer-focus:text-lime-500",after:"after:border-lime-500 peer-focus:after:border-lime-500"},"light-green":{color:"text-blue-gray-500 peer-focus:text-light-green-500",after:"after:border-light-green-500 peer-focus:after:border-light-green-500"},green:{color:"text-blue-gray-500 peer-focus:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"},teal:{color:"text-blue-gray-500 peer-focus:text-teal-500",after:"after:border-teal-500 peer-focus:after:border-teal-500"},cyan:{color:"text-blue-gray-500 peer-focus:text-cyan-500",after:"after:border-cyan-500 peer-focus:after:border-cyan-500"},"light-blue":{color:"text-blue-gray-500 peer-focus:text-light-blue-500",after:"after:border-light-blue-500 peer-focus:after:border-light-blue-500"},blue:{color:"text-blue-gray-500 peer-focus:text-blue-500",after:"after:border-blue-500 peer-focus:after:border-blue-500"},indigo:{color:"text-blue-gray-500 peer-focus:text-indigo-500",after:"after:border-indigo-500 peer-focus:after:border-indigo-500"},"deep-purple":{color:"text-blue-gray-500 peer-focus:text-deep-purple-500",after:"after:border-deep-purple-500 peer-focus:after:border-deep-purple-500"},purple:{color:"text-blue-gray-500 peer-focus:text-purple-500",after:"after:border-purple-500 peer-focus:after:border-purple-500"},pink:{color:"text-blue-gray-500 peer-focus:text-pink-500",after:"after:border-pink-500 peer-focus:after:border-pink-500"},red:{color:"text-blue-gray-500 peer-focus:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},r=t})(vS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(gS),r=s(bS),a=s(vS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{input:{borderWidth:"border-b",borderColor:"placeholder-shown:border-blue-gray-200"},inputWithIcon:{pr:"!pr-7"},icon:{top:"top-2/4",right:"right-0",transform:"-translate-y-1/4"},label:t.default},sizes:{md:{container:{height:"h-11"},input:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{lineHeight:"peer-placeholder-shown:leading-tight"},icon:{width:"w-5",height:"h-5"}},lg:{container:{height:"h-12"},input:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{lineHeight:"peer-placeholder-shown:leading-tight"},icon:{width:"w-6",height:"h-6"}}},colors:{input:r.default,label:a.default},error:{input:{borderColor:"border-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{input:{borderColor:"border-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{input:{},label:{}}},f=l})(hS);var Vl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(M,X){for(var H in X)Object.defineProperty(M,H,{enumerable:!0,get:X[H]})}t(e,{propTypesVariant:function(){return j},propTypesSize:function(){return F},propTypesColor:function(){return z},propTypesLabel:function(){return D},propTypesError:function(){return R},propTypesSuccess:function(){return P},propTypesIcon:function(){return y},propTypesResize:function(){return p},propTypesLabelProps:function(){return v},propTypesContainerProps:function(){return g},propTypesShrink:function(){return m},propTypesClassName:function(){return _}});var r=f(ot),a=Vt;function s(M,X){(X==null||X>M.length)&&(X=M.length);for(var H=0,B=new Array(X);H<X;H++)B[H]=M[H];return B}function l(M){if(Array.isArray(M))return s(M)}function f(M){return M&&M.__esModule?M:{default:M}}function b(M){if(typeof Symbol<"u"&&M[Symbol.iterator]!=null||M["@@iterator"]!=null)return Array.from(M)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(M){return l(M)||b(M)||O(M)||S()}function O(M,X){if(M){if(typeof M=="string")return s(M,X);var H=Object.prototype.toString.call(M).slice(8,-1);if(H==="Object"&&M.constructor&&(H=M.constructor.name),H==="Map"||H==="Set")return Array.from(H);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return s(M,X)}}var j=["standard","outlined","static"],F=["md","lg"],z=["black","white"].concat(T(a.propTypesColors)),D=r.default.string,R=r.default.bool,P=r.default.bool,y=r.default.node,p=r.default.bool,v=r.default.instanceOf(Object),g=r.default.instanceOf(Object),m=r.default.bool,_=r.default.string})(Vl);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{input:function(){return b},default:function(){return S}});var r=f(iS),a=f(cS),s=f(hS),l=Vl;function f(T){return T&&T.__esModule?T:{default:T}}var b={defaultProps:{variant:"outlined",size:"md",color:"gray",label:"",error:!1,success:!1,icon:void 0,labelProps:void 0,containerProps:void 0,shrink:!1,className:""},valid:{variants:l.propTypesVariant,sizes:l.propTypesSize,colors:l.propTypesColor},styles:{base:{container:{position:"relative",width:"w-full",minWidth:"min-w-[200px]"},input:{peer:"peer",width:"w-full",height:"h-full",bg:"bg-transparent",color:"text-blue-gray-700",fontFamily:"font-sans",fontWeight:"font-normal",outline:"outline outline-0 focus:outline-0",disabled:"disabled:bg-blue-gray-50 disabled:border-0",transition:"transition-all"},label:{display:"flex",width:"w-full",height:"h-full",userSelect:"select-none",pointerEvents:"pointer-events-none",position:"absolute",left:"left-0",fontWeight:"font-normal",overflow:"!overflow-visible",textOverflow:"truncate",color:"peer-placeholder-shown:text-blue-gray-500",lineHeight:"leading-tight peer-focus:leading-tight",disabled:"peer-disabled:text-transparent peer-disabled:peer-placeholder-shown:text-blue-gray-500",transition:"transition-all"},icon:{display:"grid",placeItems:"place-items-center",position:"absolute",color:"text-blue-gray-500"},asterisk:{display:"inline-block",color:"text-red-500",ml:"ml-0.5"}},variants:{outlined:r.default,standard:a.default,static:s.default}}},S=b})(aS);var mS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{menu:function(){return r},default:function(){return a}});var r={defaultProps:{placement:"bottom",offset:5,dismiss:{itemPress:!0},animate:{unmount:{},mount:{}},lockScroll:!1},styles:{base:{menu:{bg:"bg-white",minWidth:"min-w-[180px]",p:"p-3",border:"border border-blue-gray-50",borderRadius:"rounded-md",boxShadow:"shadow-lg shadow-blue-gray-500/10",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",color:"text-blue-gray-500",overflow:"overflow-auto",outline:"focus:outline-none",zIndex:"z-[999]"},item:{initial:{display:"block",width:"w-full",pt:"pt-[9px]",pb:"pb-2",px:"px-3",borderRadius:"rounded-md",textAlign:"text-start",lightHeight:"leading-tight",cursor:"cursor-pointer",userSelect:"select-none",transition:"transition-all",bg:"hover:bg-blue-gray-50 hover:bg-opacity-80 focus:bg-blue-gray-50 focus:bg-opacity-80 active:bg-blue-gray-50 active:bg-opacity-80",color:"hover:text-blue-gray-900 focus:text-blue-gray-900 active:text-blue-gray-900",outline:"outline-none"},disabled:{opacity:"opacity-50",cursor:"cursor-not-allowed",pointerEvents:"pointer-events-none",userSelect:"select-none",bg:"hover:bg-transparent focus:bg-transparent active:bg-transparent",color:"hover:text-blue-gray-500 focus:text-blue-gray-500 active:text-blue-gray-500"}}}}},a=r})(mS);var yS={},xS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-white",boxShadow:"shadow-none"},white:{backgroud:"bg-white",color:"text-white"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(xS);var wS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900",boxShadow:"shadow-none"},white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-600 to-gray-400",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(wS);var _d={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{propTypesVariant:function(){return j},propTypesColor:function(){return F},propTypesShadow:function(){return z},propTypesBlurred:function(){return D},propTypesFullWidth:function(){return R},propTypesClassName:function(){return P},propTypesChildren:function(){return y},propTypesOpen:function(){return p},propTypesAnimate:function(){return v}});var r=f(ot),a=Vt;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,M=new Array(m);_<m;_++)M[_]=g[_];return M}function l(g){if(Array.isArray(g))return s(g)}function f(g){return g&&g.__esModule?g:{default:g}}function b(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(g){return l(g)||b(g)||O(g)||S()}function O(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var j=["filled","gradient"],F=["transparent","white"].concat(T(a.propTypesColors)),z=r.default.bool,D=r.default.bool,R=r.default.bool,P=r.default.string,y=r.default.node.isRequired,p=r.default.bool.isRequired,v=a.propTypesAnimation})(_d);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{navbar:function(){return f},default:function(){return b}});var r=l(xS),a=l(wS),s=_d;function l(S){return S&&S.__esModule?S:{default:S}}var f={defaultProps:{variant:"filled",color:"white",shadow:!0,blurred:!0,fullWidth:!1,className:""},valid:{variants:s.propTypesVariant,colors:s.propTypesColor},styles:{base:{navbar:{initial:{display:"block",width:"w-full",maxWidth:"max-w-screen-2xl",borderRadius:"rounded-xl",py:"py-4",px:"px-8"},shadow:{boxShadow:"shadow-md"},blurred:{backdropFilter:"backdrop-saturate-200 backdrop-blur-2xl",bgOpacity:"bg-opacity-80",borderWidth:"border",borderColor:"border-white/80"},fullWidth:{width:"w-full",maxWidth:"max-w-full",rounded:"rounded-none",px:"px-4"}},mobileNav:{display:"block",width:"w-full",basis:"basis-full",overflow:"overflow-hidden"}},variants:{filled:r.default,gradient:a.default}}},b=f})(yS);var CS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{popover:function(){return r},default:function(){return a}});var r={defaultProps:{placement:"top",offset:5,dismiss:{},animate:{unmount:{},mount:{}},className:""},styles:{base:{bg:"bg-white",p:"p-4",border:"border border-blue-gray-50",borderRadius:"rounded-lg",boxShadow:"shadow-lg shadow-blue-gray-500/10",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",color:"text-blue-gray-500",outline:"focus:outline-none",overflowWrap:"break-words",whiteSpace:"whitespace-normal"}}},a=r})(CS);var SS={},kS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-900",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(kS);var TS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(TS);var y0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,z){for(var D in z)Object.defineProperty(F,D,{enumerable:!0,get:z[D]})}t(e,{propTypesVariant:function(){return l},propTypesColor:function(){return f},propTypesSize:function(){return b},propTypesValue:function(){return S},propTypesLabel:function(){return T},propTypesBarProps:function(){return O},propTypesClassName:function(){return j}});var r=s(ot),a=Vt;function s(F){return F&&F.__esModule?F:{default:F}}var l=["filled","gradient"],f=a.propTypesColors,b=["sm","md","lg"],S=r.default.number,T=r.default.oneOfType([r.default.string,r.default.bool]),O=r.default.instanceOf(Object),j=r.default.string})(y0);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{progress:function(){return f},default:function(){return b}});var r=l(kS),a=l(TS),s=y0;function l(S){return S&&S.__esModule?S:{default:S}}var f={defaultProps:{variant:"filled",color:"gray",size:"md",value:0,label:!1,className:"",barProps:{}},valid:{variants:s.propTypesVariant,colors:s.propTypesColor,sizes:s.propTypesSize},styles:{base:{container:{initial:{display:"flex",justifyContent:"flex-start",bg:"bg-blue-gray-50",overflow:"overflow-hidden",width:"w-full",fontFamily:"font-sans",borderRadius:"rounded-full",fontSize:"text-xs",fontWeight:"font-medium"},withLabel:{}},bar:{display:"flex",justifyContent:"justify-center",alignItems:"items-center",height:"h-full",overflow:"overflow-hidden",wordBreak:"break-all",borderRadius:"rounded-full"}},sizes:{sm:{container:{initial:{height:"h-1.5"},withLabel:{height:"h-3.5"}},bar:{}},md:{container:{initial:{height:"h-2.5"},withLabel:{height:"h-4"}},bar:{}},lg:{container:{initial:{height:"h-3.5"},withLabel:{height:"h-5"}},bar:{}}},variants:{filled:r.default,gradient:a.default}}},b=f})(SS);var PS={},_S={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-500",border:"checked:border-blue-gray-500",before:"checked:before:bg-blue-gray-500"},gray:{color:"text-gray-900",border:"checked:border-gray-900",before:"checked:before:bg-gray-900"},brown:{color:"text-brown-500",border:"checked:border-brown-500",before:"checked:before:bg-brown-500"},"deep-orange":{color:"text-deep-orange-500",border:"checked:border-deep-orange-500",before:"checked:before:bg-deep-orange-500"},orange:{color:"text-orange-500",border:"checked:border-orange-500",before:"checked:before:bg-orange-500"},amber:{color:"text-amber-500",border:"checked:border-amber-500",before:"checked:before:bg-amber-500"},yellow:{color:"text-yellow-500",border:"checked:border-yellow-500",before:"checked:before:bg-yellow-500"},lime:{color:"text-lime-500",border:"checked:border-lime-500",before:"checked:before:bg-lime-500"},"light-green":{color:"text-light-green-500",border:"checked:border-light-green-500",before:"checked:before:bg-light-green-500"},green:{color:"text-green-500",border:"checked:border-green-500",before:"checked:before:bg-green-500"},teal:{color:"text-teal-500",border:"checked:border-teal-500",before:"checked:before:bg-teal-500"},cyan:{color:"text-cyan-500",border:"checked:border-cyan-500",before:"checked:before:bg-cyan-500"},"light-blue":{color:"text-light-blue-500",border:"checked:border-light-blue-500",before:"checked:before:bg-light-blue-500"},blue:{color:"text-blue-500",border:"checked:border-blue-500",before:"checked:before:bg-blue-500"},indigo:{color:"text-indigo-500",border:"checked:border-indigo-500",before:"checked:before:bg-indigo-500"},"deep-purple":{color:"text-deep-purple-500",border:"checked:border-deep-purple-500",before:"checked:before:bg-deep-purple-500"},purple:{color:"text-purple-500",border:"checked:border-purple-500",before:"checked:before:bg-purple-500"},pink:{color:"text-pink-500",border:"checked:border-pink-500",before:"checked:before:bg-pink-500"},red:{color:"text-red-500",border:"checked:border-red-500",before:"checked:before:bg-red-500"}},r=t})(_S);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{radio:function(){return l},default:function(){return f}});var r=s(_S),a=Qa;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",label:void 0,icon:void 0,ripple:!0,className:"",disabled:!1,containerProps:void 0,labelProps:void 0,iconProps:void 0},valid:{colors:a.propTypesColor},styles:{base:{root:{display:"inline-flex",alignItems:"items-center"},container:{position:"relative",display:"flex",alignItems:"items-center",cursor:"cursor-pointer",p:"p-3",borderRadius:"rounded-full"},input:{peer:"peer",position:"relative",appearance:"appearance-none",width:"w-5",height:"h-5",borderWidth:"border",borderRadius:"rounded-full",borderColor:"border-blue-gray-200",cursor:"cursor-pointer",transition:"transition-all",before:{content:"before:content['']",display:"before:block",bg:"before:bg-blue-gray-500",width:"before:w-12",height:"before:h-12",borderRadius:"before:rounded-full",position:"before:absolute",top:"before:top-2/4",left:"before:left-2/4",transform:"before:-translate-y-2/4 before:-translate-x-2/4",opacity:"before:opacity-0 hover:before:opacity-10",transition:"before:transition-opacity"}},label:{color:"text-gray-700",fontWeight:"font-light",userSelect:"select-none",cursor:"cursor-pointer",mt:"mt-px"},icon:{position:"absolute",top:"top-2/4",left:"left-2/4",translate:"-translate-y-2/4 -translate-x-2/4",pointerEvents:"pointer-events-none",opacity:"opacity-0 peer-checked:opacity-100",transition:"transition-opacity"},disabled:{opacity:"opacity-50",pointerEvents:"pointer-events-none"}},colors:r.default}},f=l})(PS);var OS={},AS={},ES={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",before:{content:"before:content[' ']",display:"before:block",boxSizing:"before:box-border",width:"before:w-2.5",height:"before:h-1.5",mt:"before:mt-[6.5px]",mr:"before:mr-1",borderRadius:"before:rounded-tl-md",pointerEvents:"before:pointer-events-none",transition:"before:transition-all",disabled:"peer-disabled:before:border-transparent"},after:{content:"after:content[' ']",display:"after:block",flexGrow:"after:flex-grow",boxSizing:"after:box-border",width:"after:w-2.5",height:"after:h-1.5",mt:"after:mt-[6.5px]",ml:"after:ml-1",borderRadius:"after:rounded-tr-md",pointerEvents:"after:pointer-events-none",transition:"after:transition-all",disabled:"peer-disabled:after:border-transparent"}},r=t})(ES);var MS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-gray-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},gray:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-gray-900",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},brown:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-brown-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},"deep-orange":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-orange-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},orange:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-orange-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},amber:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-amber-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},yellow:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-yellow-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},lime:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-lime-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},"light-green":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-green-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},green:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-green-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},teal:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-teal-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},cyan:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-cyan-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},"light-blue":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-blue-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},blue:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},indigo:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-indigo-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},"deep-purple":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-purple-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},purple:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-purple-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},pink:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-pink-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}},red:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-red-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-blue-gray-200",borderTopColor:"border-t-transparent"}}},r=t})(MS);var RS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-blue-gray-500",before:"before:border-blue-gray-500",after:"after:border-blue-gray-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},gray:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-gray-900",before:"before:border-gray-900",after:"after:border-gray-900"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},brown:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-brown-500",before:"before:border-brown-500",after:"after:border-brown-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},"deep-orange":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-deep-orange-500",before:"before:border-deep-orange-500",after:"after:border-deep-orange-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},orange:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-orange-500",before:"before:border-orange-500",after:"after:border-orange-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},amber:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-amber-500",before:"before:border-amber-500",after:"after:border-amber-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},yellow:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-yellow-500",before:"before:border-yellow-500",after:"after:border-yellow-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},lime:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-lime-500",before:"before:border-lime-500",after:"after:border-lime-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},"light-green":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-light-green-500",before:"before:border-light-green-500",after:"after:border-light-green-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},green:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-green-500",before:"before:border-green-500",after:"after:border-green-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},teal:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-teal-500",before:"before:border-teal-500",after:"after:border-teal-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},cyan:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-cyan-500",before:"before:border-cyan-500",after:"after:border-cyan-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},"light-blue":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-light-blue-500",before:"before:border-light-blue-500",after:"after:border-light-blue-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},blue:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-blue-500",before:"before:border-blue-500",after:"after:border-blue-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},indigo:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-indigo-500",before:"before:border-indigo-500",after:"after:border-indigo-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},"deep-purple":{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-deep-purple-500",before:"before:border-deep-purple-500",after:"after:border-deep-purple-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},purple:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-purple-500",before:"before:border-purple-500",after:"after:border-purple-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},pink:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-pink-500",before:"before:border-pink-500",after:"after:border-pink-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}},red:{close:{color:"text-blue-gray-400",before:"before:border-transparent",after:"after:border-transparent"},open:{color:"text-red-500",before:"before:border-red-500",after:"after:border-red-500"},withValue:{color:"text-blue-gray-400",before:"before:border-blue-gray-200",after:"after:border-blue-gray-200"}}},r=t})(RS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(ES),r=s(MS),a=s(RS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{select:{},label:t.default},sizes:{md:{container:{height:"h-10"},select:{fontSize:"text-sm",px:"px-3",py:"py-2.5",borderRadius:"rounded-[7px]"},label:{initial:{},states:{close:{lineHeight:"leading-[3.75]"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}},lg:{container:{height:"h-11"},select:{fontSize:"text-sm",px:"px-3",py:"py-3",borderRadius:"rounded-[7px]"},label:{initial:{},states:{close:{lineHeight:"leading-[4.1]"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}}},colors:{select:r.default,label:a.default},states:{close:{select:{borderWidth:"border"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-blue-gray-400",before:{bt:"before:border-t-transparent",bl:"before:border-l-transparent"},after:{bt:"after:border-t-transparent",br:"after:border-r-transparent"}}},open:{select:{borderWidth:"border-2",borderColor:"border-t-transparent"},label:{fontSize:"text-[11px]",disabled:"peer-disabled:text-transparent",before:{bt:"before:border-t-2",bl:"before:border-l-2"},after:{bt:"after:border-t-2",br:"after:border-r-2"}}},withValue:{select:{borderWidth:"border",borderColor:"border-t-transparent"},label:{fontSize:"text-[11px]",disabled:"peer-disabled:text-transparent",before:{bt:"before:border-t",bl:"before:border-l"},after:{bt:"after:border-t",br:"after:border-r"}}}},error:{select:{initial:{},states:{close:{borderColor:"border-red-500"},open:{borderColor:"border-red-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-red-500",borderTopColor:"border-t-transparent"}}},label:{initial:{},states:{close:{color:"text-red-500",before:"before:border-red-500",after:"after:border-red-500"},open:{color:"text-red-500",before:"before:border-red-500",after:"after:border-red-500"},withValue:{color:"text-red-500",before:"before:border-red-500",after:"after:border-red-500"}}}},success:{select:{initial:{},states:{close:{borderColor:"border-green-500"},open:{borderColor:"border-green-500",borderTopColor:"border-t-transparent"},withValue:{borderColor:"border-green-500",borderTopColor:"border-t-transparent"}}},label:{initial:{},states:{close:{color:"text-green-500",before:"before:border-green-500",after:"after:border-green-500"},open:{color:"text-green-500",before:"before:border-green-500",after:"after:border-green-500"},withValue:{color:"text-green-500",before:"before:border-green-500",after:"after:border-green-500"}}}}},f=l})(AS);var NS={},IS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-1.5",left:"left-0",borderWidth:"after:border-b-2",transition:"after:transition-transform after:duration-300"}},r=t})(IS);var LS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-gray-500"},withValue:{borderColor:"border-blue-gray-200"}},gray:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-gray-900"},withValue:{borderColor:"border-blue-gray-200"}},brown:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-brown-500"},withValue:{borderColor:"border-blue-gray-200"}},"deep-orange":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-orange-500"},withValue:{borderColor:"border-blue-gray-200"}},orange:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-orange-500"},withValue:{borderColor:"border-blue-gray-200"}},amber:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-amber-500"},withValue:{borderColor:"border-blue-gray-200"}},yellow:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-yellow-500"},withValue:{borderColor:"border-blue-gray-200"}},lime:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-lime-500"},withValue:{borderColor:"border-blue-gray-200"}},"light-green":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-green-500"},withValue:{borderColor:"border-blue-gray-200"}},green:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-green-500"},withValue:{borderColor:"border-blue-gray-200"}},teal:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-teal-500"},withValue:{borderColor:"border-blue-gray-200"}},cyan:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-cyan-500"},withValue:{borderColor:"border-blue-gray-200"}},"light-blue":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-blue-500"},withValue:{borderColor:"border-blue-gray-200"}},blue:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-500"},withValue:{borderColor:"border-blue-gray-200"}},indigo:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-indigo-500"},withValue:{borderColor:"border-blue-gray-200"}},"deep-purple":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-purple-500"},withValue:{borderColor:"border-blue-gray-200"}},purple:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-purple-500"},withValue:{borderColor:"border-blue-gray-200"}},pink:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-pink-500"},withValue:{borderColor:"border-blue-gray-200"}},red:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-red-500"},withValue:{borderColor:"border-blue-gray-200"}}},r=t})(LS);var jS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{color:"text-blue-gray-500",after:"after:border-blue-gray-500"},open:{color:"text-blue-gray-500",after:"after:border-blue-gray-500"},withValue:{color:"text-blue-gray-500",after:"after:border-blue-gray-50"}},gray:{close:{color:"text-blue-gray-500",after:"after:border-gray-500"},open:{color:"text-gray-900",after:"after:border-gray-900"},withValue:{color:"text-blue-gray-500",after:"after:border-gray-500"}},brown:{close:{color:"text-blue-gray-500",after:"after:border-brown-500"},open:{color:"text-brown-500",after:"after:border-brown-500"},withValue:{color:"text-blue-gray-500",after:"after:border-brown-500"}},"deep-orange":{close:{color:"text-blue-gray-500",after:"after:border-deep-orange-500"},open:{color:"text-deep-orange-500",after:"after:border-deep-orange-500"},withValue:{color:"text-blue-gray-500",after:"after:border-deep-orange-500"}},orange:{close:{color:"text-blue-gray-500",after:"after:border-orange-500"},open:{color:"text-orange-500",after:"after:border-orange-500"},withValue:{color:"text-blue-gray-500",after:"after:border-orange-500"}},amber:{close:{color:"text-blue-gray-500",after:"after:border-amber-500"},open:{color:"text-amber-500",after:"after:border-amber-500"},withValue:{color:"text-blue-gray-500",after:"after:border-amber-500"}},yellow:{close:{color:"text-blue-gray-500",after:"after:border-yellow-500"},open:{color:"text-yellow-500",after:"after:border-yellow-500"},withValue:{color:"text-blue-gray-500",after:"after:border-yellow-500"}},lime:{close:{color:"text-blue-gray-500",after:"after:border-lime-500"},open:{color:"text-lime-500",after:"after:border-lime-500"},withValue:{color:"text-blue-gray-500",after:"after:border-lime-500"}},"light-green":{close:{color:"text-blue-gray-500",after:"after:border-light-green-500"},open:{color:"text-light-green-500",after:"after:border-light-green-500"},withValue:{color:"text-blue-gray-500",after:"after:border-light-green-500"}},green:{close:{color:"text-blue-gray-500",after:"after:border-green-500"},open:{color:"text-green-500",after:"after:border-green-500"},withValue:{color:"text-blue-gray-500",after:"after:border-green-500"}},teal:{close:{color:"text-blue-gray-500",after:"after:border-teal-500"},open:{color:"text-teal-500",after:"after:border-teal-500"},withValue:{color:"text-blue-gray-500",after:"after:border-teal-500"}},cyan:{close:{color:"text-blue-gray-500",after:"after:border-cyan-500"},open:{color:"text-cyan-500",after:"after:border-cyan-500"},withValue:{color:"text-blue-gray-500",after:"after:border-cyan-500"}},"light-blue":{close:{color:"text-blue-gray-500",after:"after:border-light-blue-500"},open:{color:"text-light-blue-500",after:"after:border-light-blue-500"},withValue:{color:"text-blue-gray-500",after:"after:border-light-blue-500"}},blue:{close:{color:"text-blue-gray-500",after:"after:border-blue-500"},open:{color:"text-blue-500",after:"after:border-blue-500"},withValue:{color:"text-blue-gray-500",after:"after:border-blue-500"}},indigo:{close:{color:"text-blue-gray-500",after:"after:border-indigo-500"},open:{color:"text-indigo-500",after:"after:border-indigo-500"},withValue:{color:"text-blue-gray-500",after:"after:border-indigo-500"}},"deep-purple":{close:{color:"text-blue-gray-500",after:"after:border-deep-purple-500"},open:{color:"text-deep-purple-500",after:"after:border-deep-purple-500"},withValue:{color:"text-blue-gray-500",after:"after:border-deep-purple-500"}},purple:{close:{color:"text-blue-gray-500",after:"after:border-purple-500"},open:{color:"text-purple-500",after:"after:border-purple-500"},withValue:{color:"text-blue-gray-500",after:"after:border-purple-500"}},pink:{close:{color:"text-blue-gray-500",after:"after:border-pink-500"},open:{color:"text-pink-500",after:"after:border-pink-500"},withValue:{color:"text-blue-gray-500",after:"after:border-pink-500"}},red:{close:{color:"text-blue-gray-500",after:"after:border-red-500"},open:{color:"text-red-500",after:"after:border-red-500"},withValue:{color:"text-blue-gray-500",after:"after:border-red-500"}}},r=t})(jS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(IS),r=s(LS),a=s(jS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{select:{},label:t.default},sizes:{md:{container:{height:"h-11"},select:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{initial:{},states:{close:{lineHeight:"leading-[4.25]"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}},lg:{container:{height:"h-12"},select:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{initial:{},states:{close:{lineHeight:"leading-[4.875]"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}}},colors:{select:r.default,label:a.default},states:{close:{select:{borderWidth:"border-b"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-blue-gray-400",after:{transform:"after:scale-x-0"}}},open:{select:{borderWidth:"border-b"},label:{fontSize:"text-[11px]",disabled:"peer-disabled:text-transparent",after:{transform:"after:scale-x-100"}}},withValue:{select:{borderWidth:"border-b"},label:{fontSize:"text-[11px]",disabled:"peer-disabled:text-transparent",after:{transform:"after:scale-x-0"}}}},error:{select:{initial:{},states:{close:{borderColor:"border-red-500"},open:{borderColor:"border-red-500"},withValue:{borderColor:"border-red-500"}}},label:{initial:{},states:{close:{color:"text-red-500",after:"after:border-red-500"},open:{color:"text-red-500",after:"after:border-red-500"},withValue:{color:"text-red-500",after:"after:border-red-500"}}}},success:{select:{initial:{},states:{close:{borderColor:"border-green-500"},open:{borderColor:"border-green-500"},withValue:{borderColor:"border-green-500"}}},label:{initial:{},states:{close:{color:"text-green-500",after:"after:border-green-500"},open:{color:"text-green-500",after:"after:border-green-500"},withValue:{color:"text-green-500",after:"after:border-green-500"}}}}},f=l})(NS);var DS={},zS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-2.5",after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-2.5",left:"left-0",borderWidth:"after:border-b-2",transition:"after:transition-transform after:duration-300"}},r=t})(zS);var FS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-gray-500"},withValue:{borderColor:"border-blue-gray-200"}},gray:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-gray-900"},withValue:{borderColor:"border-blue-gray-200"}},brown:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-brown-500"},withValue:{borderColor:"border-blue-gray-200"}},"deep-orange":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-orange-500"},withValue:{borderColor:"border-blue-gray-200"}},orange:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-orange-500"},withValue:{borderColor:"border-blue-gray-200"}},amber:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-amber-500"},withValue:{borderColor:"border-blue-gray-200"}},yellow:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-yellow-500"},withValue:{borderColor:"border-blue-gray-200"}},lime:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-lime-500"},withValue:{borderColor:"border-blue-gray-200"}},"light-green":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-green-500"},withValue:{borderColor:"border-blue-gray-200"}},green:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-green-500"},withValue:{borderColor:"border-blue-gray-200"}},teal:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-teal-500"},withValue:{borderColor:"border-blue-gray-200"}},cyan:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-cyan-500"},withValue:{borderColor:"border-blue-gray-200"}},"light-blue":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-light-blue-500"},withValue:{borderColor:"border-blue-gray-200"}},blue:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-blue-500"},withValue:{borderColor:"border-blue-gray-200"}},indigo:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-indigo-500"},withValue:{borderColor:"border-blue-gray-200"}},"deep-purple":{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-deep-purple-500"},withValue:{borderColor:"border-blue-gray-200"}},purple:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-purple-500"},withValue:{borderColor:"border-blue-gray-200"}},pink:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-pink-500"},withValue:{borderColor:"border-blue-gray-200"}},red:{close:{borderColor:"border-blue-gray-200"},open:{borderColor:"border-red-500"},withValue:{borderColor:"border-blue-gray-200"}}},r=t})(FS);var VS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{close:{color:"text-blue-gray-500",after:"after:border-blue-gray-500"},open:{color:"text-blue-gray-500",after:"after:border-blue-gray-500"},withValue:{color:"text-blue-gray-500",after:"after:border-blue-gray-50"}},gray:{close:{color:"text-blue-gray-500",after:"after:border-gray-500"},open:{color:"text-gray-900",after:"after:border-gray-900"},withValue:{color:"text-blue-gray-500",after:"after:border-gray-500"}},brown:{close:{color:"text-blue-gray-500",after:"after:border-brown-500"},open:{color:"text-brown-500",after:"after:border-brown-500"},withValue:{color:"text-blue-gray-500",after:"after:border-brown-500"}},"deep-orange":{close:{color:"text-blue-gray-500",after:"after:border-deep-orange-500"},open:{color:"text-deep-orange-500",after:"after:border-deep-orange-500"},withValue:{color:"text-blue-gray-500",after:"after:border-deep-orange-500"}},orange:{close:{color:"text-blue-gray-500",after:"after:border-orange-500"},open:{color:"text-orange-500",after:"after:border-orange-500"},withValue:{color:"text-blue-gray-500",after:"after:border-orange-500"}},amber:{close:{color:"text-blue-gray-500",after:"after:border-amber-500"},open:{color:"text-amber-500",after:"after:border-amber-500"},withValue:{color:"text-blue-gray-500",after:"after:border-amber-500"}},yellow:{close:{color:"text-blue-gray-500",after:"after:border-yellow-500"},open:{color:"text-yellow-500",after:"after:border-yellow-500"},withValue:{color:"text-blue-gray-500",after:"after:border-yellow-500"}},lime:{close:{color:"text-blue-gray-500",after:"after:border-lime-500"},open:{color:"text-lime-500",after:"after:border-lime-500"},withValue:{color:"text-blue-gray-500",after:"after:border-lime-500"}},"light-green":{close:{color:"text-blue-gray-500",after:"after:border-light-green-500"},open:{color:"text-light-green-500",after:"after:border-light-green-500"},withValue:{color:"text-blue-gray-500",after:"after:border-light-green-500"}},green:{close:{color:"text-blue-gray-500",after:"after:border-green-500"},open:{color:"text-green-500",after:"after:border-green-500"},withValue:{color:"text-blue-gray-500",after:"after:border-green-500"}},teal:{close:{color:"text-blue-gray-500",after:"after:border-teal-500"},open:{color:"text-teal-500",after:"after:border-teal-500"},withValue:{color:"text-blue-gray-500",after:"after:border-teal-500"}},cyan:{close:{color:"text-blue-gray-500",after:"after:border-cyan-500"},open:{color:"text-cyan-500",after:"after:border-cyan-500"},withValue:{color:"text-blue-gray-500",after:"after:border-cyan-500"}},"light-blue":{close:{color:"text-blue-gray-500",after:"after:border-light-blue-500"},open:{color:"text-light-blue-500",after:"after:border-light-blue-500"},withValue:{color:"text-blue-gray-500",after:"after:border-light-blue-500"}},blue:{close:{color:"text-blue-gray-500",after:"after:border-blue-500"},open:{color:"text-blue-500",after:"after:border-blue-500"},withValue:{color:"text-blue-gray-500",after:"after:border-blue-500"}},indigo:{close:{color:"text-blue-gray-500",after:"after:border-indigo-500"},open:{color:"text-indigo-500",after:"after:border-indigo-500"},withValue:{color:"text-blue-gray-500",after:"after:border-indigo-500"}},"deep-purple":{close:{color:"text-blue-gray-500",after:"after:border-deep-purple-500"},open:{color:"text-deep-purple-500",after:"after:border-deep-purple-500"},withValue:{color:"text-blue-gray-500",after:"after:border-deep-purple-500"}},purple:{close:{color:"text-blue-gray-500",after:"after:border-purple-500"},open:{color:"text-purple-500",after:"after:border-purple-500"},withValue:{color:"text-blue-gray-500",after:"after:border-purple-500"}},pink:{close:{color:"text-blue-gray-500",after:"after:border-pink-500"},open:{color:"text-pink-500",after:"after:border-pink-500"},withValue:{color:"text-blue-gray-500",after:"after:border-pink-500"}},red:{close:{color:"text-blue-gray-500",after:"after:border-red-500"},open:{color:"text-red-500",after:"after:border-red-500"},withValue:{color:"text-blue-gray-500",after:"after:border-red-500"}}},r=t})(VS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(zS),r=s(FS),a=s(VS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{select:{},label:t.default},sizes:{md:{container:{height:"h-11"},select:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{initial:{},states:{close:{lineHeight:"leading-tight"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}},lg:{container:{height:"h-12"},select:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{initial:{},states:{close:{lineHeight:"leading-tight"},open:{lineHeight:"leading-tight"},withValue:{lineHeight:"leading-tight"}}}}},colors:{select:r.default,label:a.default},states:{close:{select:{borderWidth:"border-b"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-blue-gray-400",after:{transform:"after:scale-x-0"}}},open:{select:{borderWidth:"border-b"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-transparent",after:{transform:"after:scale-x-100"}}},withValue:{select:{borderWidth:"border-b"},label:{fontSize:"text-sm",disabled:"peer-disabled:text-transparent",after:{transform:"after:scale-x-0"}}}},error:{select:{initial:{},states:{close:{borderColor:"border-red-500"},open:{borderColor:"border-red-500"},withValue:{borderColor:"border-red-500"}}},label:{initial:{},states:{close:{color:"text-red-500",after:"after:border-red-500"},open:{color:"text-red-500",after:"after:border-red-500"},withValue:{color:"text-red-500",after:"after:border-red-500"}}}},success:{select:{initial:{},states:{close:{borderColor:"border-green-500"},open:{borderColor:"border-green-500"},withValue:{borderColor:"border-green-500"}}},label:{initial:{},states:{close:{color:"text-green-500",after:"after:border-green-500"},open:{color:"text-green-500",after:"after:border-green-500"},withValue:{color:"text-green-500",after:"after:border-green-500"}}}}},f=l})(DS);var Wl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(ne,oe){for(var fe in oe)Object.defineProperty(ne,fe,{enumerable:!0,get:oe[fe]})}t(e,{propTypesVariant:function(){return l},propTypesSize:function(){return f},propTypesColor:function(){return b},propTypesLabel:function(){return S},propTypesError:function(){return T},propTypesSuccess:function(){return O},propTypesArrow:function(){return j},propTypesValue:function(){return F},propTypesOnChange:function(){return z},propTypesSelected:function(){return D},propTypesOffset:function(){return R},propTypesDismiss:function(){return P},propTypesAnimate:function(){return y},propTypesAutoHeight:function(){return p},propTypesLockScroll:function(){return v},propTypesLabelProps:function(){return g},propTypesMenuProps:function(){return m},propTypesIndex:function(){return _},propTypesDisabled:function(){return M},propTypesClassName:function(){return X},propTypesName:function(){return H},propTypesChildren:function(){return B},propTypesContainerProps:function(){return U},propTypesContextValue:function(){return K}});var r=s(ot),a=Vt;function s(ne){return ne&&ne.__esModule?ne:{default:ne}}var l=["standard","outlined","static"],f=["md","lg"],b=a.propTypesColors,S=r.default.string,T=r.default.bool,O=r.default.bool,j=r.default.node,F=r.default.string,z=r.default.func,D=r.default.func,R=a.propTypesOffsetType,P=a.propTypesDismissType,y=a.propTypesAnimation,p=r.default.bool,v=r.default.bool,g=r.default.instanceOf(Object),m=r.default.instanceOf(Object),_=r.default.number,M=r.default.bool,X=r.default.string,H=r.default.string,B=r.default.node.isRequired,U=r.default.instanceOf(Object),K=r.default.shape({selectedIndex:r.default.number.isRequired,setSelectedIndex:r.default.func.isRequired,activeIndex:r.default.oneOfType([r.default.number,r.default.instanceOf(null)]),setActiveIndex:r.default.func.isRequired,listRef:r.default.instanceOf(Object).isRequired,setOpen:r.default.func.isRequired,onChange:r.default.func.isRequired,getItemProps:r.default.func.isRequired,dataRef:r.default.instanceOf(Object).isRequired}).isRequired})(Wl);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{select:function(){return b},default:function(){return S}});var r=f(AS),a=f(NS),s=f(DS),l=Wl;function f(T){return T&&T.__esModule?T:{default:T}}var b={defaultProps:{variant:"outlined",color:"gray",size:"md",label:"",error:!1,success:!1,arrow:void 0,value:void 0,onChange:void 0,selected:void 0,offset:5,dismiss:{},animate:{unmount:{},mount:{}},autoHeight:!1,lockScroll:!1,labelProps:{},menuProps:{},className:"",disabled:!1,containerProps:void 0},valid:{variants:l.propTypesVariant,sizes:l.propTypesSize,colors:l.propTypesColor},styles:{base:{container:{position:"relative",width:"w-full",minWidth:"min-w-[200px]"},select:{peer:"peer",width:"w-full",height:"h-full",bg:"bg-transparent",color:"text-blue-gray-700",fontFamily:"font-sans",fontWeight:"font-normal",textAlign:"text-left",outline:"outline outline-0 focus:outline-0",disabled:"disabled:bg-blue-gray-50 disabled:border-0",transition:"transition-all"},arrow:{initial:{display:"grid",placeItems:"place-items-center",position:"absolute",top:"top-2/4",right:"right-2",pt:"pt-px",width:"w-5",height:"h-5",color:"text-blue-gray-400",transform:"rotate-0 -translate-y-2/4",transition:"transition-all"},active:{transform:"rotate-180",mt:"mt-px"}},label:{display:"flex",width:"w-full",height:"h-full",userSelect:"select-none",pointerEvents:"pointer-events-none",position:"absolute",left:"left-0",fontWeight:"font-normal",transition:"transition-all"},menu:{width:"w-full",maxHeight:"max-h-96",bg:"bg-white",p:"p-3",border:"border border-blue-gray-50",borderRadius:"rounded-md",boxShadow:"shadow-lg shadow-blue-gray-500/10",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",color:"text-blue-gray-500",overflow:"overflow-auto",outline:"focus:outline-none"},option:{initial:{pt:"pt-[9px]",pb:"pb-2",px:"px-3",borderRadius:"rounded-md",lightHeight:"leading-tight",cursor:"cursor-pointer",userSelect:"select-none",background:"hover:bg-blue-gray-50 focus:bg-blue-gray-50",opacity:"hover:bg-opacity-80 focus:bg-opacity-80",color:"hover:text-blue-gray-900 focus:text-blue-gray-900",outline:"outline outline-0",transition:"transition-all"},active:{bg:"bg-blue-gray-50 bg-opacity-80",color:"text-blue-gray-900"},disabled:{opacity:"opacity-50",cursor:"cursor-not-allowed",userSelect:"select-none",pointerEvents:"pointer-events-none"}}},variants:{outlined:r.default,standard:a.default,static:s.default}}},S=b})(OS);var WS={},BS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{input:"checked:bg-blue-gray-500",circle:"peer-checked:border-blue-gray-500",before:"peer-checked:before:bg-blue-gray-500"},gray:{input:"checked:bg-gray-900",circle:"peer-checked:border-gray-900",before:"peer-checked:before:bg-gray-900"},brown:{input:"checked:bg-brown-500",circle:"peer-checked:border-brown-500",before:"peer-checked:before:bg-brown-500"},"deep-orange":{input:"checked:bg-deep-orange-500",circle:"peer-checked:border-deep-orange-500",before:"peer-checked:before:bg-deep-orange-500"},orange:{input:"checked:bg-orange-500",circle:"peer-checked:border-orange-500",before:"peer-checked:before:bg-orange-500"},amber:{input:"checked:bg-amber-500",circle:"peer-checked:border-amber-500",before:"peer-checked:before:bg-amber-500"},yellow:{input:"checked:bg-yellow-500",circle:"peer-checked:border-yellow-500",before:"peer-checked:before:bg-yellow-500"},lime:{input:"checked:bg-lime-500",circle:"peer-checked:border-lime-500",before:"peer-checked:before:bg-lime-500"},"light-green":{input:"checked:bg-light-green-500",circle:"peer-checked:border-light-green-500",before:"peer-checked:before:bg-light-green-500"},green:{input:"checked:bg-green-500",circle:"peer-checked:border-green-500",before:"peer-checked:before:bg-green-500"},teal:{input:"checked:bg-teal-500",circle:"peer-checked:border-teal-500",before:"peer-checked:before:bg-teal-500"},cyan:{input:"checked:bg-cyan-500",circle:"peer-checked:border-cyan-500",before:"peer-checked:before:bg-cyan-500"},"light-blue":{input:"checked:bg-light-blue-500",circle:"peer-checked:border-light-blue-500",before:"peer-checked:before:bg-light-blue-500"},blue:{input:"checked:bg-blue-500",circle:"peer-checked:border-blue-500",before:"peer-checked:before:bg-blue-500"},indigo:{input:"checked:bg-indigo-500",circle:"peer-checked:border-indigo-500",before:"peer-checked:before:bg-indigo-500"},"deep-purple":{input:"checked:bg-deep-purple-500",circle:"peer-checked:border-deep-purple-500",before:"peer-checked:before:bg-deep-purple-500"},purple:{input:"checked:bg-purple-500",circle:"peer-checked:border-purple-500",before:"peer-checked:before:bg-purple-500"},pink:{input:"checked:bg-pink-500",circle:"peer-checked:border-pink-500",before:"peer-checked:before:bg-pink-500"},red:{input:"checked:bg-red-500",circle:"peer-checked:border-red-500",before:"peer-checked:before:bg-red-500"}},r=t})(BS);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{switchButton:function(){return l},default:function(){return f}});var r=s(BS),a=Qa;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",label:"",ripple:!0,className:"",disabled:!1,containerProps:void 0,labelProps:void 0,circleProps:void 0},valid:{colors:a.propTypesColor},styles:{base:{root:{display:"inline-flex",alignItems:"items-center"},container:{position:"relative",display:"inline-block",width:"w-8",height:"h-4",cursor:"cursor-pointer",borderRadius:"rounded-full"},input:{peer:"peer",appearance:"appearance-none",width:"w-8",height:"h-4",position:"absolute",background:"bg-blue-gray-100",borderRadius:"rounded-full",cursor:"cursor-pointer",transition:"transition-colors duration-300"},circle:{bg:"bg-white",width:"w-5",height:"h-5",borderWidth:"border",borderColor:"border-blue-gray-100",borderRadius:"rounded-full",boxShadow:"shadow-md",position:"absolute",top:"top-2/4",left:"-left-1",transform:"-translate-y-2/4 peer-checked:translate-x-full",transition:"transition-all duration-300",cursor:"cursor-pointer",before:{content:"before:content['']",display:"before:block",bg:"before:bg-blue-gray-500",width:"before:w-10",height:"before:h-10",borderRadius:"before:rounded-full",position:"before:absolute",top:"before:top-2/4",left:"before:left-2/4",transform:"before:-translate-y-2/4 before:-translate-x-2/4",transition:"before:transition-opacity",opacity:"before:opacity-0 hover:before:opacity-10"}},ripple:{display:"inline-block",top:"top-2/4",left:"left-2/4",transform:"-translate-x-2/4 -translate-y-2/4",p:"p-5",borderRadius:"rounded-full"},label:{color:"text-gray-700",fontWeight:"font-light",userSelect:"select-none",cursor:"cursor-pointer",mt:"mt-px",ml:"ml-3",mb:"mb-0"},disabled:{opacity:"opacity-50",pointerEvents:"pointer-events-none"}},colors:r.default}},f=l})(WS);var HS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tab:function(){return r},default:function(){return a}});var r={defaultProps:{className:"",activeClassName:"",disabled:!1},styles:{base:{tab:{initial:{display:"flex",alignItems:"items-center",justifyContent:"justify-center",textAlign:"text-center",width:"w-full",height:"h-full",position:"relative",bg:"bg-transparent",py:"py-1",px:"px-2",color:"text-blue-gray-900",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-normal",lineHeight:"leading-relaxed",userSelect:"select-none",cursor:"cursor-pointer"},disabled:{opacity:"opacity-50",cursor:"cursor-not-allowed",pointerEvents:"pointer-events-none",userSelect:"select-none"}},indicator:{position:"absolute",inset:"inset-0",zIndex:"z-10",height:"h-full",bg:"bg-white",borderRadius:"rounded-md",boxShadow:"shadow"}}}},a=r})(HS);var XS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tabs:function(){return r},default:function(){return a}});var r={defaultProps:{className:"",orientation:"horizontal"},styles:{base:{overflow:"overflow-hidden"},horizontal:{display:"block"},vertical:{display:"flex"}}},a=r})(XS);var YS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tabsBody:function(){return r},default:function(){return a}});var r={defaultProps:{animate:{unmount:{},mount:{}},className:""},styles:{base:{display:"block",width:"w-full",position:"relative",bg:"bg-transparent",overflow:"overflow-hidden"}}},a=r})(YS);var GS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tabsHeader:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{display:"flex",position:"relative",bg:"bg-blue-gray-50",bgOpacity:"bg-opacity-60",borderRadius:"rounded-lg",p:"p-1"},horizontal:{flexDirection:"flex-row"},vertical:{flexDirection:"flex-col"}}},a=r})(GS);var US={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tabPanel:function(){return r},default:function(){return a}});var r={defaultProps:{className:""},styles:{base:{width:"w-full",height:"h-max",color:"text-gray-700",p:"p-4",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-light",lineHeight:"leading-relaxed"}}},a=r})(US);var $S={},qS={},KS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",fontSize:"peer-placeholder-shown:text-sm",floated:{fontSize:"text-[11px] peer-focus:text-[11px]"},before:{content:"before:content[' ']",display:"before:block",boxSizing:"before:box-border",width:"before:w-2.5",height:"before:h-1.5",mt:"before:mt-[6.5px]",mr:"before:mr-1",borderColor:"peer-placeholder-shown:before:border-transparent",borderRadius:"before:rounded-tl-md",floated:{bt:"before:border-t peer-focus:before:border-t-2",bl:"before:border-l peer-focus:before:border-l-2"},pointerEvents:"before:pointer-events-none",transition:"before:transition-all",disabled:"peer-disabled:before:border-transparent"},after:{content:"after:content[' ']",display:"after:block",flexGrow:"after:flex-grow",boxSizing:"after:box-border",width:"after:w-2.5",height:"after:h-1.5",mt:"after:mt-[6.5px]",ml:"after:ml-1",borderColor:"peer-placeholder-shown:after:border-transparent",borderRadius:"after:rounded-tr-md",floated:{bt:"after:border-t peer-focus:after:border-t-2",br:"after:border-r peer-focus:after:border-r-2"},pointerEvents:"after:pointer-events-none",transition:"after:transition-all",disabled:"peer-disabled:after:border-transparent"}},r=t})(KS);var ZS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(ZS);var QS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-400 peer-focus:text-blue-gray-500",before:"before:border-blue-gray-200 peer-focus:before:!border-blue-gray-500",after:"after:border-blue-gray-200 peer-focus:after:!border-blue-gray-500"},gray:{color:"text-blue-gray-400 peer-focus:text-gray-900",before:"before:border-blue-gray-200 peer-focus:before:!border-gray-900",after:"after:border-blue-gray-200 peer-focus:after:!border-gray-900"},brown:{color:"text-blue-gray-400 peer-focus:text-brown-500",before:"before:border-blue-gray-200 peer-focus:before:!border-brown-500",after:"after:border-blue-gray-200 peer-focus:after:!border-brown-500"},"deep-orange":{color:"text-blue-gray-400 peer-focus:text-deep-orange-500",before:"before:border-blue-gray-200 peer-focus:before:!border-deep-orange-500",after:"after:border-blue-gray-200 peer-focus:after:!border-deep-orange-500"},orange:{color:"text-blue-gray-400 peer-focus:text-orange-500",before:"before:border-blue-gray-200 peer-focus:before:!border-orange-500",after:"after:border-blue-gray-200 peer-focus:after:!border-orange-500"},amber:{color:"text-blue-gray-400 peer-focus:text-amber-500",before:"before:border-blue-gray-200 peer-focus:before:!border-amber-500",after:"after:border-blue-gray-200 peer-focus:after:!border-amber-500"},yellow:{color:"text-blue-gray-400 peer-focus:text-yellow-500",before:"before:border-blue-gray-200 peer-focus:before:!border-yellow-500",after:"after:border-blue-gray-200 peer-focus:after:!border-yellow-500"},lime:{color:"text-blue-gray-400 peer-focus:text-lime-500",before:"before:border-blue-gray-200 peer-focus:before:!border-lime-500",after:"after:border-blue-gray-200 peer-focus:after:!border-lime-500"},"light-green":{color:"text-blue-gray-400 peer-focus:text-light-green-500",before:"before:border-blue-gray-200 peer-focus:before:!border-light-green-500",after:"after:border-blue-gray-200 peer-focus:after:!border-light-green-500"},green:{color:"text-blue-gray-400 peer-focus:text-green-500",before:"before:border-blue-gray-200 peer-focus:before:!border-green-500",after:"after:border-blue-gray-200 peer-focus:after:!border-green-500"},teal:{color:"text-blue-gray-400 peer-focus:text-teal-500",before:"before:border-blue-gray-200 peer-focus:before:!border-teal-500",after:"after:border-blue-gray-200 peer-focus:after:!border-teal-500"},cyan:{color:"text-blue-gray-400 peer-focus:text-cyan-500",before:"before:border-blue-gray-200 peer-focus:before:!border-cyan-500",after:"after:border-blue-gray-200 peer-focus:after:!border-cyan-500"},"light-blue":{color:"text-blue-gray-400 peer-focus:text-light-blue-500",before:"before:border-blue-gray-200 peer-focus:before:!border-light-blue-500",after:"after:border-blue-gray-200 peer-focus:after:!border-light-blue-500"},blue:{color:"text-blue-gray-400 peer-focus:text-blue-500",before:"before:border-blue-gray-200 peer-focus:before:!border-blue-500",after:"after:border-blue-gray-200 peer-focus:after:!border-blue-500"},indigo:{color:"text-blue-gray-400 peer-focus:text-indigo-500",before:"before:border-blue-gray-200 peer-focus:before:!border-indigo-500",after:"after:border-blue-gray-200 peer-focus:after:!border-indigo-500"},"deep-purple":{color:"text-blue-gray-400 peer-focus:text-deep-purple-500",before:"before:border-blue-gray-200 peer-focus:before:!border-deep-purple-500",after:"after:border-blue-gray-200 peer-focus:after:!border-deep-purple-500"},purple:{color:"text-blue-gray-400 peer-focus:text-purple-500",before:"before:border-blue-gray-200 peer-focus:before:!border-purple-500",after:"after:border-blue-gray-200 peer-focus:after:!border-purple-500"},pink:{color:"text-blue-gray-400 peer-focus:text-pink-500",before:"before:border-blue-gray-200 peer-focus:before:!border-pink-500",after:"after:border-blue-gray-200 peer-focus:after:!border-pink-500"},red:{color:"text-blue-gray-400 peer-focus:text-red-500",before:"before:border-blue-gray-200 peer-focus:before:!border-red-500",after:"after:border-blue-gray-200 peer-focus:after:!border-red-500"}},r=t})(QS);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(KS),r=s(ZS),a=s(QS);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{textarea:{borderWidth:"placeholder-shown:border",borderColor:"placeholder-shown:border-blue-gray-200 placeholder-shown:border-t-blue-gray-200",floated:{borderWidth:"border focus:border-2",borderColor:"border-t-transparent focus:border-t-transparent"}},label:t.default},sizes:{md:{container:{height:"h-10"},textarea:{fontSize:"text-sm",px:"px-3",py:"py-2.5",borderRadius:"rounded-[7px]"},label:{lineHeight:"peer-placeholder-shown:leading-[3.75]"}},lg:{container:{height:"h-11"},textarea:{fontSize:"text-sm",px:"px-3",py:"py-3",borderRadius:"rounded-md"},label:{lineHeight:"peer-placeholder-shown:leading-[4.1]"}}},colors:{textarea:r.default,label:a.default},error:{textarea:{borderColor:"border-red-500 placeholder-shown:border-t-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",before:"before:border-red-500 peer-focus:before:border-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{textarea:{borderColor:"border-green-500 placeholder-shown:border-t-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",before:"before:border-green-500 peer-focus:before:border-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{textarea:{borderTop:"!border-t-transparent"},label:{fontSize:"!text-[11px]",lineHeight:"!leading-tight",borderColor:"before:!border-blue-gray-200 after:!border-blue-gray-200"}}},f=l})(qS);var JS={},ek={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-1.5",fontSize:"peer-placeholder-shown:text-sm",floated:{fontSize:"text-[11px] peer-focus:text-[11px]"},after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-0",left:"left-0",borderWidth:"after:border-b-2",scale:"after:scale-x-0",floated:{scale:"peer-focus:after:scale-x-100"},transition:"after:transition-transform after:duration-300"}},r=t})(ek);var tk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(tk);var rk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-500 peer-focus:text-blue-gray-500",after:"after:border-blue-gray-500 peer-focus:after:!border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",after:"after:border-gray-500 peer-focus:after:!border-gray-900"},brown:{color:"text-blue-gray-500 peer-focus:text-brown-500",after:"after:border-brown-500 peer-focus:after:!border-brown-500"},"deep-orange":{color:"text-blue-gray-500 peer-focus:text-deep-orange-500",after:"after:border-deep-orange-500 peer-focus:after:!border-deep-orange-500"},orange:{color:"text-blue-gray-500 peer-focus:text-orange-500",after:"after:border-orange-500 peer-focus:after:!border-orange-500"},amber:{color:"text-blue-gray-500 peer-focus:text-amber-500",after:"after:border-amber-500 peer-focus:after:!border-amber-500"},yellow:{color:"text-blue-gray-500 peer-focus:text-yellow-500",after:"after:border-yellow-500 peer-focus:after:!border-yellow-500"},lime:{color:"text-blue-gray-500 peer-focus:text-lime-500",after:"after:border-lime-500 peer-focus:after:!border-lime-500"},"light-green":{color:"text-blue-gray-500 peer-focus:text-light-green-500",after:"after:border-light-green-500 peer-focus:after:!border-light-green-500"},green:{color:"text-blue-gray-500 peer-focus:text-green-500",after:"after:border-green-500 peer-focus:after:!border-green-500"},teal:{color:"text-blue-gray-500 peer-focus:text-teal-500",after:"after:border-teal-500 peer-focus:after:!border-teal-500"},cyan:{color:"text-blue-gray-500 peer-focus:text-cyan-500",after:"after:border-cyan-500 peer-focus:after:!border-cyan-500"},"light-blue":{color:"text-blue-gray-500 peer-focus:text-light-blue-500",after:"after:border-light-blue-500 peer-focus:after:!border-light-blue-500"},blue:{color:"text-blue-gray-500 peer-focus:text-blue-500",after:"after:border-blue-500 peer-focus:after:!border-blue-500"},indigo:{color:"text-blue-gray-500 peer-focus:text-indigo-500",after:"after:border-indigo-500 peer-focus:after:!border-indigo-500"},"deep-purple":{color:"text-blue-gray-500 peer-focus:text-deep-purple-500",after:"after:border-deep-purple-500 peer-focus:after:!border-deep-purple-500"},purple:{color:"text-blue-gray-500 peer-focus:text-purple-500",after:"after:border-purple-500 peer-focus:after:!border-purple-500"},pink:{color:"text-blue-gray-500 peer-focus:text-pink-500",after:"after:border-pink-500 peer-focus:after:!border-pink-500"},red:{color:"text-blue-gray-500 peer-focus:text-red-500",after:"after:border-red-500 peer-focus:after:!border-red-500"}},r=t})(rk);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(ek),r=s(tk),a=s(rk);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{textarea:{borderWidth:"border-b",borderColor:"placeholder-shown:border-blue-gray-200"},label:t.default},sizes:{md:{container:{height:"h-11"},textarea:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{lineHeight:"peer-placeholder-shown:leading-[4.25]"}},lg:{container:{height:"h-12"},textarea:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{lineHeight:"peer-placeholder-shown:leading-[4.875]"}}},colors:{textarea:r.default,label:a.default},error:{textarea:{borderColor:"border-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{textarea:{borderColor:"border-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{textarea:{},label:{fontSize:"!text-[11px]",lineHeight:"!leading-tight"}}},f=l})(JS);var nk={},ok={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={position:"-top-2.5",fontSize:"text-sm peer-focus:text-sm",after:{content:"after:content[' ']",display:"after:block",width:"after:w-full",position:"after:absolute",bottom:"after:-bottom-1",left:"left-0",borderWidth:"after:border-b-2",scale:"after:scale-x-0",floated:{scale:"peer-focus:after:scale-x-100"},transition:"after:transition-transform after:duration-300"}},r=t})(ok);var ak={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-gray-500"},gray:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-gray-900"},brown:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-brown-500"},"deep-orange":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-orange-500"},orange:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-orange-500"},amber:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-amber-500"},yellow:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-yellow-500"},lime:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-lime-500"},"light-green":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-green-500"},green:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-green-500"},teal:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-teal-500"},cyan:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-cyan-500"},"light-blue":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-light-blue-500"},blue:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-blue-500"},indigo:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-indigo-500"},"deep-purple":{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-deep-purple-500"},purple:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-purple-500"},pink:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-pink-500"},red:{borderColor:"border-blue-gray-200",borderColorFocused:"focus:border-red-500"}},r=t})(ak);var ik={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-500 peer-focus:text-blue-gray-500",after:"after:border-blue-gray-500 peer-focus:after:border-blue-gray-500"},gray:{color:"text-gray-500 peer-focus:text-gray-900",after:"after:border-gray-500 peer-focus:after:border-gray-900"},brown:{color:"text-blue-gray-500 peer-focus:text-brown-500",after:"after:border-brown-500 peer-focus:after:border-brown-500"},"deep-orange":{color:"text-blue-gray-500 peer-focus:text-deep-orange-500",after:"after:border-deep-orange-500 peer-focus:after:border-deep-orange-500"},orange:{color:"text-blue-gray-500 peer-focus:text-orange-500",after:"after:border-orange-500 peer-focus:after:border-orange-500"},amber:{color:"text-blue-gray-500 peer-focus:text-amber-500",after:"after:border-amber-500 peer-focus:after:border-amber-500"},yellow:{color:"text-blue-gray-500 peer-focus:text-yellow-500",after:"after:border-yellow-500 peer-focus:after:border-yellow-500"},lime:{color:"text-blue-gray-500 peer-focus:text-lime-500",after:"after:border-lime-500 peer-focus:after:border-lime-500"},"light-green":{color:"text-blue-gray-500 peer-focus:text-light-green-500",after:"after:border-light-green-500 peer-focus:after:border-light-green-500"},green:{color:"text-blue-gray-500 peer-focus:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"},teal:{color:"text-blue-gray-500 peer-focus:text-teal-500",after:"after:border-teal-500 peer-focus:after:border-teal-500"},cyan:{color:"text-blue-gray-500 peer-focus:text-cyan-500",after:"after:border-cyan-500 peer-focus:after:border-cyan-500"},"light-blue":{color:"text-blue-gray-500 peer-focus:text-light-blue-500",after:"after:border-light-blue-500 peer-focus:after:border-light-blue-500"},blue:{color:"text-blue-gray-500 peer-focus:text-blue-500",after:"after:border-blue-500 peer-focus:after:border-blue-500"},indigo:{color:"text-blue-gray-500 peer-focus:text-indigo-500",after:"after:border-indigo-500 peer-focus:after:border-indigo-500"},"deep-purple":{color:"text-blue-gray-500 peer-focus:text-deep-purple-500",after:"after:border-deep-purple-500 peer-focus:after:border-deep-purple-500"},purple:{color:"text-blue-gray-500 peer-focus:text-purple-500",after:"after:border-purple-500 peer-focus:after:border-purple-500"},pink:{color:"text-blue-gray-500 peer-focus:text-pink-500",after:"after:border-pink-500 peer-focus:after:border-pink-500"},red:{color:"text-blue-gray-500 peer-focus:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},r=t})(ik);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=s(ok),r=s(ak),a=s(ik);function s(b){return b&&b.__esModule?b:{default:b}}var l={base:{textarea:{borderWidth:"border-b",borderColor:"placeholder-shown:border-blue-gray-200"},label:t.default},sizes:{md:{container:{height:"h-11"},textarea:{fontSize:"text-sm",pt:"pt-4",pb:"pb-1.5"},label:{lineHeight:"peer-placeholder-shown:leading-tight"}},lg:{container:{height:"h-12"},textarea:{fontSize:"text-sm",px:"px-px",pt:"pt-5",pb:"pb-2"},label:{lineHeight:"peer-placeholder-shown:leading-tight"}}},colors:{textarea:r.default,label:a.default},error:{textarea:{borderColor:"border-red-500 placeholder-shown:border-red-500",borderColorFocused:"focus:border-red-500"},label:{color:"text-red-500 peer-focus:text-red-500 peer-placeholder-shown:text-red-500",after:"after:border-red-500 peer-focus:after:border-red-500"}},success:{textarea:{borderColor:"border-green-500 placeholder-shown:border-green-500",borderColorFocused:"focus:border-green-500"},label:{color:"text-green-500 peer-focus:text-green-500 peer-placeholder-shown:text-green-500",after:"after:border-green-500 peer-focus:after:border-green-500"}},shrink:{textarea:{},label:{}}},f=l})(nk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{textarea:function(){return b},default:function(){return S}});var r=f(qS),a=f(JS),s=f(nk),l=Vl;function f(T){return T&&T.__esModule?T:{default:T}}var b={defaultProps:{variant:"outlined",size:"md",color:"gray",label:"",error:!1,success:!1,resize:!0,labelProps:void 0,containerProps:void 0,shrink:!1,className:""},valid:{variants:l.propTypesVariant,sizes:l.propTypesSize,colors:l.propTypesColor},styles:{base:{container:{position:"relative",width:"w-full",minWidth:"min-w-[200px]"},textarea:{peer:"peer",width:"w-full",height:"h-full",minHeight:"min-h-[100px]",bg:"bg-transparent",color:"text-blue-gray-700",fontFamily:"font-sans",fontWeight:"font-normal",outline:"outline outline-0 focus:outline-0",resize:"resize-y",disabled:"disabled:bg-blue-gray-50 disabled:border-0 disabled:resize-none",transition:"transition-all"},label:{display:"flex",width:"w-full",height:"h-full",userSelect:"select-none",pointerEvents:"pointer-events-none",position:"absolute",left:"left-0",fontWeight:"font-normal",color:"peer-placeholder-shown:text-blue-gray-500",lineHeight:"leading-tight peer-focus:leading-tight",disabled:"peer-disabled:text-transparent peer-disabled:peer-placeholder-shown:text-blue-gray-500",transition:"transition-all"}},variants:{outlined:r.default,standard:a.default,static:s.default}}},S=b})($S);var sk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{tooltip:function(){return r},default:function(){return a}});var r={defaultProps:{interactive:!1,placement:"top",offset:5,dismiss:{},animate:{unmount:{},mount:{}},className:""},styles:{base:{bg:"bg-black",py:"py-1.5",px:"px-3",borderRadius:"rounded-lg",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-normal",color:"text-white",outline:"focus:outline-none",overflowWrap:"break-words",zIndex:"z-[999]",whiteSpace:"whitespace-normal"}}},a=r})(sk);var lk={},uk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={inherit:{color:"text-inherit"},current:{color:"text-current"},black:{color:"text-black"},white:{color:"text-white"},"blue-gray":{color:"text-blue-gray-900",gradient:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400"},gray:{color:"text-gray-700",gradient:"bg-gradient-to-tr from-gray-600 to-gray-400"},brown:{color:"text-brown-500",gradient:"bg-gradient-to-tr from-brown-600 to-brown-400"},"deep-orange":{color:"text-deep-orange-500",gradient:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400"},orange:{color:"text-orange-500",gradient:"bg-gradient-to-tr from-orange-600 to-orange-400"},amber:{color:"text-amber-500",gradient:"bg-gradient-to-tr from-amber-600 to-amber-400"},yellow:{color:"text-yellow-500",gradient:"bg-gradient-to-tr from-yellow-600 to-yellow-400"},lime:{color:"text-lime-500",gradient:"bg-gradient-to-tr from-lime-600 to-lime-400"},"light-green":{color:"text-light-green-500",gradient:"bg-gradient-to-tr from-light-green-600 to-light-green-400"},green:{color:"text-green-500",gradient:"bg-gradient-to-tr from-green-600 to-green-400"},teal:{color:"text-teal-500",gradient:"bg-gradient-to-tr from-teal-600 to-teal-400"},cyan:{color:"text-cyan-500",gradient:"bg-gradient-to-tr from-cyan-600 to-cyan-400"},"light-blue":{color:"text-light-blue-500",gradient:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400"},blue:{color:"text-blue-500",gradient:"bg-gradient-to-tr from-blue-600 to-blue-400"},indigo:{color:"text-indigo-500",gradient:"bg-gradient-to-tr from-indigo-600 to-indigo-400"},"deep-purple":{color:"text-deep-purple-500",gradient:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400"},purple:{color:"text-purple-500",gradient:"bg-gradient-to-tr from-purple-600 to-purple-400"},pink:{color:"text-pink-500",gradient:"bg-gradient-to-tr from-pink-600 to-pink-400"},red:{color:"text-red-500",gradient:"bg-gradient-to-tr from-red-600 to-red-400"}},r=t})(uk);var x0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{propTypesVariant:function(){return j},propTypesColor:function(){return F},propTypesAs:function(){return z},propTypesTextGradient:function(){return D},propTypesClassName:function(){return R},propTypesChildren:function(){return P}});var r=f(ot),a=Vt;function s(y,p){(p==null||p>y.length)&&(p=y.length);for(var v=0,g=new Array(p);v<p;v++)g[v]=y[v];return g}function l(y){if(Array.isArray(y))return s(y)}function f(y){return y&&y.__esModule?y:{default:y}}function b(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(y){return l(y)||b(y)||O(y)||S()}function O(y,p){if(y){if(typeof y=="string")return s(y,p);var v=Object.prototype.toString.call(y).slice(8,-1);if(v==="Object"&&y.constructor&&(v=y.constructor.name),v==="Map"||v==="Set")return Array.from(v);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return s(y,p)}}var j=["h1","h2","h3","h4","h5","h6","lead","paragraph","small"],F=["inherit","current","black","white"].concat(T(a.propTypesColors)),z=r.default.elementType,D=r.default.bool,R=r.default.string,P=r.default.node.isRequired})(x0);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{typography:function(){return l},default:function(){return f}});var r=s(uk),a=x0;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"paragraph",color:"inherit",textGradient:!1,className:""},valid:{variants:a.propTypesVariant,colors:a.propTypesColor},styles:{variants:{h1:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-5xl",fontWeight:"font-semibold",lineHeight:"leading-tight"},h2:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-4xl",fontWeight:"font-semibold",lineHeight:"leading-[1.3]"},h3:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-3xl",fontWeight:"font-semibold",lineHeight:"leading-snug"},h4:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-2xl",fontWeight:"font-semibold",lineHeight:"leading-snug"},h5:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-xl",fontWeight:"font-semibold",lineHeight:"leading-snug"},h6:{display:"block",fontSmoothing:"antialiased",letterSpacing:"tracking-normal",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-semibold",lineHeight:"leading-relaxed"},lead:{display:"block",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-xl",fontWeight:"font-normal",lineHeight:"leading-relaxed"},paragraph:{display:"block",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-light",lineHeight:"leading-relaxed"},small:{display:"block",fontSmoothing:"antialiased",fontFamily:"font-sans",fontSize:"text-sm",fontWeight:"font-light",lineHeight:"leading-normal"}},textGradient:{bgClip:"bg-clip-text",color:"text-transparent"},colors:r.default}},f=l})(lk);var ck={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{collapse:function(){return r},default:function(){return a}});var r={defaultProps:{animate:{unmount:{},mount:{}},className:""},styles:{base:{display:"block",width:"w-full",basis:"basis-full",overflow:"overflow-hidden"}}},a=r})(ck);var dk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{list:function(){return r},default:function(){return a}});var r={defaultProps:{ripple:!0,className:""},styles:{base:{list:{display:"flex",flexDirection:"flex-col",gap:"gap-1",minWidth:"min-w-[240px]",p:"p-2",fontFamily:"font-sans",fontSize:"text-base",fontWeight:"font-normal",color:"text-blue-gray-700"},item:{initial:{display:"flex",alignItems:"items-center",width:"w-full",padding:"p-3",borderRadius:"rounded-lg",textAlign:"text-start",lightHeight:"leading-tight",transition:"transition-all",bg:"hover:bg-blue-gray-50 hover:bg-opacity-80 focus:bg-blue-gray-50 focus:bg-opacity-80 active:bg-blue-gray-50 active:bg-opacity-80",color:"hover:text-blue-gray-900 focus:text-blue-gray-900 active:text-blue-gray-900",outline:"outline-none"},selected:{bg:"bg-blue-gray-50/50",color:"text-blue-gray-700"},disabled:{opacity:"opacity-50",cursor:"cursor-not-allowed",pointerEvents:"pointer-events-none",userSelect:"select-none",bg:"hover:bg-transparent focus:bg-transparent active:bg-transparent",color:"hover:text-blue-gray-500 focus:text-blue-gray-500 active:text-blue-gray-500"}},itemPrefix:{display:"grid",placeItems:"place-items-center",marginRight:"mr-4"},itemSuffix:{display:"grid",placeItems:"place-items-center",marginRight:"ml-auto justify-self-end"}}}},a=r})(dk);var fk={},pk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{divideColor:"divide-blue-gray-50"},"blue-gray":{divideColor:"divide-blue-gray-600"},gray:{divideColor:"divide-gray-800"},brown:{divideColor:"divide-brown-600"},"deep-orange":{divideColor:"divide-deep-orange-600"},orange:{divideColor:"divide-orange-600"},amber:{divideColor:"divide-amber-600"},yellow:{divideColor:"divide-yellow-600"},lime:{divideColor:"divide-lime-600"},"light-green":{divideColor:"divide-light-green-600"},green:{divideColor:"divide-green-600"},teal:{divideColor:"divide-teal-600"},cyan:{divideColor:"divide-cyan-600"},"light-blue":{divideColor:"divide-light-blue-600"},blue:{divideColor:"divide-blue-600"},indigo:{divideColor:"divide-indigo-600"},"deep-purple":{divideColor:"divide-deep-purple-600"},purple:{divideColor:"divide-purple-600"},pink:{divideColor:"divide-pink-600"},red:{divideColor:"divide-red-600"}},r=t})(pk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{buttonGroup:function(){return l},default:function(){return f}});var r=s(pk),a=Ka;function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{variant:"filled",size:"md",color:"gray",fullWidth:!1,ripple:!0,className:""},valid:{variants:a.propTypesVariant,sizes:a.propTypesSize,colors:a.propTypesColor},styles:{base:{initial:{display:"flex",flexDirection:"row"},fullWidth:{width:"w-full"}},dividerColor:r.default}},f=l})(fk);var hk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,b){for(var S in b)Object.defineProperty(f,S,{enumerable:!0,get:b[S]})}t(e,{carousel:function(){return s},default:function(){return l}});var r=a(ee);function a(f){return f&&f.__esModule?f:{default:f}}var s={defaultProps:{prevArrow:function(f){var b=f.loop,S=f.handlePrev,T=f.firstIndex;return r.default.createElement("button",{onClick:S,disabled:!b&&T,className:"!absolute top-2/4 left-4 -translate-y-2/4 rounded-full select-none transition-all disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none w-12 max-w-[48px] h-12 max-h-[48px] text-white hover:bg-white/10 active:bg-white/30 grid place-items-center"},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,className:"-ml-1 h-7 w-7"},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})))},nextArrow:function(f){var b=f.loop,S=f.handleNext,T=f.lastIndex;return r.default.createElement("button",{onClick:S,disabled:!b&&T,className:"!absolute top-2/4 right-4 -translate-y-2/4 rounded-full select-none transition-all disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none w-12 max-w-[48px] h-12 max-h-[48px] text-white hover:bg-white/10 active:bg-white/30 grid place-items-center"},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,className:"ml-1 h-7 w-7"},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})))},navigation:function(f){var b=f.setActiveIndex,S=f.activeIndex,T=f.length;return r.default.createElement("div",{className:"absolute bottom-4 left-2/4 z-50 flex -translate-x-2/4 gap-2"},new Array(T).fill("").map(function(O,j){return r.default.createElement("span",{key:j,className:"block h-3 w-3 cursor-pointer rounded-full transition-colors content-[''] ".concat(S===j?"bg-white":"bg-white/50"),onClick:function(){return b(j)}})}))},autoplay:!1,autoplayDelay:5e3,transition:{type:"tween",duration:.5},loop:!1,className:""},styles:{base:{carousel:{position:"relative",width:"w-full",height:"h-full",overflowX:"overflow-x-hidden",display:"flex"},slide:{width:"w-full",height:"h-full",display:"inline-block",flex:"flex-none"}}}},l=s})(hk);var gk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{drawer:function(){return r},default:function(){return a}});var r={defaultProps:{size:300,overlay:!0,placement:"left",overlayProps:void 0,className:"",dismiss:void 0,onClose:void 0,transition:{type:"tween",duration:.3}},styles:{base:{drawer:{position:"fixed",zIndex:"z-[9999]",pointerEvents:"pointer-events-auto",backgroundColor:"bg-white",boxSizing:"box-border",width:"w-full",boxShadow:"shadow-2xl shadow-blue-gray-900/10"},overlay:{position:"absolute",inset:"inset-0",width:"w-full",height:"h-full",pointerEvents:"pointer-events-auto",zIndex:"z-[9995]",backgroundColor:"bg-black",backgroundOpacity:"bg-opacity-60",backdropBlur:"backdrop-blur-sm"}}}},a=r})(gk);var bk={},w0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var M in _)Object.defineProperty(m,M,{enumerable:!0,get:_[M]})}t(e,{propTypesColor:function(){return j},propTypesInvisible:function(){return F},propTypesWithBorder:function(){return z},propTypesOverlap:function(){return D},propTypesPlacement:function(){return R},propTypesClassName:function(){return P},propTypesContent:function(){return y},propTypesChildren:function(){return p},propTypesContainerProps:function(){return v},propTypesContainerRef:function(){return g}});var r=f(ot),a=Vt;function s(m,_){(_==null||_>m.length)&&(_=m.length);for(var M=0,X=new Array(_);M<_;M++)X[M]=m[M];return X}function l(m){if(Array.isArray(m))return s(m)}function f(m){return m&&m.__esModule?m:{default:m}}function b(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(m){return l(m)||b(m)||O(m)||S()}function O(m,_){if(m){if(typeof m=="string")return s(m,_);var M=Object.prototype.toString.call(m).slice(8,-1);if(M==="Object"&&m.constructor&&(M=m.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return s(m,_)}}var j=["white"].concat(T(a.propTypesColors)),F=r.default.bool,z=r.default.bool,D=["circular","square"],R=["top-start","top-end","bottom-start","bottom-end"],P=r.default.string,y=r.default.node,p=r.default.node.isRequired,v=r.default.instanceOf(Object),g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(w0);var vk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(vk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{badge:function(){return l},default:function(){return f}});var r=w0,a=s(vk);function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:a.default}},f=l})(bk);var mk={},C0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{propTypesCount:function(){return j},propTypesValue:function(){return F},propTypesRatedIcon:function(){return z},propTypesUnratedIcon:function(){return D},propTypesColor:function(){return R},propTypesOnChange:function(){return P},propTypesClassName:function(){return y},propTypesReadonly:function(){return p}});var r=f(ot),a=Vt;function s(v,g){(g==null||g>v.length)&&(g=v.length);for(var m=0,_=new Array(g);m<g;m++)_[m]=v[m];return _}function l(v){if(Array.isArray(v))return s(v)}function f(v){return v&&v.__esModule?v:{default:v}}function b(v){if(typeof Symbol<"u"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(v){return l(v)||b(v)||O(v)||S()}function O(v,g){if(v){if(typeof v=="string")return s(v,g);var m=Object.prototype.toString.call(v).slice(8,-1);if(m==="Object"&&v.constructor&&(m=v.constructor.name),m==="Map"||m==="Set")return Array.from(m);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return s(v,g)}}var j=r.default.number,F=r.default.number,z=r.default.oneOfType([r.default.node,r.default.instanceOf(Object)]),D=r.default.oneOfType([r.default.node,r.default.instanceOf(Object)]),R=["white"].concat(T(a.propTypesColors)),P=r.default.func,y=r.default.string,p=r.default.bool})(C0);var yk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{color:"text-white"},"blue-gray":{color:"text-blue-gray-500"},gray:{color:"text-gray-500"},brown:{color:"text-brown-500"},"deep-orange":{color:"text-deep-orange-500"},orange:{color:"text-orange-500"},amber:{color:"text-amber-500"},yellow:{color:"text-yellow-700"},lime:{color:"text-lime-500"},"light-green":{color:"text-light-green-500"},green:{color:"text-green-500"},teal:{color:"text-teal-500"},cyan:{color:"text-cyan-500"},"light-blue":{color:"text-light-blue-500"},blue:{color:"text-blue-500"},indigo:{color:"text-indigo-500"},"deep-purple":{color:"text-deep-purple-500"},purple:{color:"text-purple-500"},pink:{color:"text-pink-500"},red:{color:"text-red-500"}},r=t})(yk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{rating:function(){return f},default:function(){return b}});var r=l(ee),a=C0,s=l(yk);function l(S){return S&&S.__esModule?S:{default:S}}var f={defaultProps:{count:5,value:0,ratedIcon:r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6"},r.default.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z",clipRule:"evenodd"})),unratedIcon:r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6"},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})),ratedColor:"yellow",unratedColor:"blue-gray",className:void 0,onChange:void 0,readonly:!1},valid:{colors:a.propTypesColor},styles:{base:{rating:{display:"inline-flex",alignItems:"items-center"},icon:{width:"w-5",height:"h-5",color:"text-inherit",cursor:"cursor-pointer"}},colors:s.default}},b=f})(mk);var xk={},S0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{propTypesColor:function(){return l},propTypesSize:function(){return f},propTypesClassName:function(){return b},propTypesTrackClassName:function(){return S},propTypesThumbClassName:function(){return T},propTypesBarClassName:function(){return O},propTypesDefaultValue:function(){return j},propTypesValue:function(){return F},propTypesOnChange:function(){return z},propTypesMin:function(){return D},propTypesMax:function(){return R},propTypesStep:function(){return P},propTypesInputRef:function(){return y},propTypesInputProps:function(){return p}});var r=s(ot),a=Vt;function s(v){return v&&v.__esModule?v:{default:v}}var l=a.propTypesColors,f=["sm","md","lg"],b=r.default.string,S=r.default.string,T=r.default.string,O=r.default.string,j=r.default.oneOfType([r.default.number,r.default.string]),F=r.default.oneOfType([r.default.number,r.default.string]),z=r.default.func,D=r.default.oneOfType([r.default.number,r.default.string]),R=r.default.oneOfType([r.default.number,r.default.string]),P=r.default.oneOfType([r.default.number,r.default.string]),y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})]),p=r.default.instanceOf(Object)})(S0);var wk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={"blue-gray":{color:"text-blue-gray-500"},gray:{color:"text-gray-900"},brown:{color:"text-brown-500"},"deep-orange":{color:"text-deep-orange-500"},orange:{color:"text-orange-500"},amber:{color:"text-amber-500"},yellow:{color:"text-yellow-500"},lime:{color:"text-lime-500"},"light-green":{color:"text-light-green-500"},green:{color:"text-green-500"},teal:{color:"text-teal-500"},cyan:{color:"text-cyan-500"},"light-blue":{color:"text-light-blue-500"},blue:{color:"text-blue-500"},indigo:{color:"text-indigo-500"},"deep-purple":{color:"text-deep-purple-500"},purple:{color:"text-purple-500"},pink:{color:"text-pink-500"},red:{color:"text-red-500"}},r=t})(wk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{slider:function(){return l},default:function(){return f}});var r=S0,a=s(wk);function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",size:"md",min:void 0,max:void 0,step:"any",className:"",trackClassName:"",thumbClassName:"",barClassName:"",inputProps:void 0},valid:{sizes:r.propTypesSize,colors:r.propTypesColor},styles:{base:{container:{position:"relative",width:"w-full",minWidth:"min-w-[200px]"},slider:{width:"w-full",position:"absolute",inset:"inset-0",backgroundColor:"bg-transparent",cursor:"cursor-pointer",outline:"focus:outline-none focus:outline-0",appearance:"appearance-none [-webkit-appearance:none]"},track:{height:"[&::-webkit-slider-runnable-track]:h-full [&::-moz-range-track]:h-full",borderRadius:"[&::-webkit-slider-runnable-track]:rounded-full [&::-moz-range-track]:rounded-full",backgroundColor:"[&::-webkit-slider-runnable-track]:bg-blue-gray-100 [&::-moz-range-track]:bg-blue-gray-100"},thumb:{appearance:"[&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:[-webkit-appearance:none] [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:[-webkit-appearance:none]",borderRadius:"[&::-moz-range-thumb]:rounded-full [&::-webkit-slider-thumb]:rounded-full",border:"[&::-moz-range-thumb]:border-0 [&::-webkit-slider-thumb]:border-0",ringWidth:"[&::-moz-range-thumb]:ring-2 [&::-webkit-slider-thumb]:ring-2",ringColor:"[&::-moz-range-thumb]:ring-current [&::-webkit-slider-thumb]:ring-current",backgroundColor:"[&::-moz-range-thumb]:bg-white [&::-webkit-slider-thumb]:bg-white",position:"[&::-moz-range-thumb]:relative [&::-webkit-slider-thumb]:relative",zIndex:"[&::-moz-range-thumb]:z-20 [&::-webkit-slider-thumb]:z-20"},bar:{position:"absolute",inset:"inset-0",zIndex:"z-10",borderRadius:"rounded-l-full",height:"h-full",pointerEvents:"pointer-events-none",backgroundColor:"bg-current"}},sizes:{sm:{container:{height:"h-1"},thumb:{width:"[&::-moz-range-thumb]:w-2.5 [&::-webkit-slider-thumb]:w-2.5",height:"[&::-moz-range-thumb]:h-2.5 [&::-webkit-slider-thumb]:h-2.5",marginTop:"[&::-moz-range-thumb]:-mt-[3px] [&::-webkit-slider-thumb]:-mt-[3px]"},slider:{},track:{},bar:{}},md:{container:{height:"h-2"},thumb:{width:"[&::-moz-range-thumb]:w-3.5 [&::-webkit-slider-thumb]:w-3.5",height:"[&::-moz-range-thumb]:h-3.5 [&::-webkit-slider-thumb]:h-3.5",marginTop:"[&::-moz-range-thumb]:-mt-[3px] [&::-webkit-slider-thumb]:-mt-[3px]"},slider:{},track:{},bar:{}},lg:{container:{height:"h-3"},thumb:{width:"[&::-moz-range-thumb]:w-5 [&::-webkit-slider-thumb]:w-5",height:"[&::-moz-range-thumb]:h-5 [&::-webkit-slider-thumb]:h-5",marginTop:"[&::-moz-range-thumb]:-mt-1 [&::-webkit-slider-thumb]:-mt-1"},slider:{},track:{},bar:{}}},colors:a.default}},f=l})(xk);var Ck={},k0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{propTypesColor:function(){return j},propTypesClassName:function(){return F}});var r=f(ot),a=Vt;function s(z,D){(D==null||D>z.length)&&(D=z.length);for(var R=0,P=new Array(D);R<D;R++)P[R]=z[R];return P}function l(z){if(Array.isArray(z))return s(z)}function f(z){return z&&z.__esModule?z:{default:z}}function b(z){if(typeof Symbol<"u"&&z[Symbol.iterator]!=null||z["@@iterator"]!=null)return Array.from(z)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(z){return l(z)||b(z)||O(z)||S()}function O(z,D){if(z){if(typeof z=="string")return s(z,D);var R=Object.prototype.toString.call(z).slice(8,-1);if(R==="Object"&&z.constructor&&(R=z.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return s(z,D)}}var j=["white"].concat(T(a.propTypesColors)),F=r.default.string})(k0);var Sk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{color:"text-white"},"blue-gray":{color:"text-blue-gray-500"},gray:{color:"text-gray-900"},brown:{color:"text-brown-500"},"deep-orange":{color:"text-deep-orange-500"},orange:{color:"text-orange-500"},amber:{color:"text-amber-500"},yellow:{color:"text-yellow-500"},lime:{color:"text-lime-500"},"light-green":{color:"text-light-green-500"},green:{color:"text-green-500"},teal:{color:"text-teal-500"},cyan:{color:"text-cyan-500"},"light-blue":{color:"text-light-blue-500"},blue:{color:"text-blue-500"},indigo:{color:"text-indigo-500"},"deep-purple":{color:"text-deep-purple-500"},purple:{color:"text-purple-500"},pink:{color:"text-pink-500"},red:{color:"text-red-500"}},r=t})(Sk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,S){for(var T in S)Object.defineProperty(b,T,{enumerable:!0,get:S[T]})}t(e,{spinner:function(){return l},default:function(){return f}});var r=k0,a=s(Sk);function s(b){return b&&b.__esModule?b:{default:b}}var l={defaultProps:{color:"gray",className:""},valid:{colors:r.propTypesColor},styles:{base:{color:"text-gray-300",animation:"animate-spin"},colors:a.default}},f=l})(Ck);var kk={},Tk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{timeline:function(){return r},default:function(){return a}});var r={styles:{base:{display:"w-full",position:"flex",flexDirection:"flex-col"}}},a=r})(Tk);var Pk={},Ao={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{propTypeClassName:function(){return j},propTypeChildren:function(){return F},propTypeColor:function(){return z},propTypeVariant:function(){return D}});var r=f(ot),a=Vt;function s(R,P){(P==null||P>R.length)&&(P=R.length);for(var y=0,p=new Array(P);y<P;y++)p[y]=R[y];return p}function l(R){if(Array.isArray(R))return s(R)}function f(R){return R&&R.__esModule?R:{default:R}}function b(R){if(typeof Symbol<"u"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(R){return l(R)||b(R)||O(R)||S()}function O(R,P){if(R){if(typeof R=="string")return s(R,P);var y=Object.prototype.toString.call(R).slice(8,-1);if(y==="Object"&&R.constructor&&(y=R.constructor.name),y==="Map"||y==="Set")return Array.from(y);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return s(R,P)}}var j=r.default.string,F=r.default.node,z=["white"].concat(T(a.propTypesColors)),D=["filled","outlined","ghost","gradient"]})(Ao);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,f){for(var b in f)Object.defineProperty(l,b,{enumerable:!0,get:f[b]})}t(e,{timelineItem:function(){return a},default:function(){return s}});var r=Ao,a={defaultProps:{color:"gray",variant:"filled"},valid:{colors:r.propTypeColor,variants:r.propTypeVariant},styles:{base:{display:"flex",position:"relative",flexDirection:"flex-col",gap:"gap-2"}}},s=a})(Pk);var _k={},Ok={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900"},white:{color:"text-white",background:"bg-white/10"},"blue-gray":{color:"text-blue-gray-500",background:"bg-blue-gray-500/10"},gray:{color:"text-gray-900",background:"bg-gray-900/10"},brown:{color:"text-brown-500",background:"bg-brown-500/10"},"deep-orange":{color:"text-deep-orange-500",background:"bg-deep-orange-500/10"},orange:{color:"text-orange-500",background:"bg-orange-500/10"},amber:{color:"text-amber-500",background:"bg-amber-500/10"},yellow:{color:"text-yellow-500",background:"bg-yellow-500/10"},lime:{color:"text-lime-500",background:"bg-lime-500/10"},"light-green":{color:"text-light-green-500",background:"bg-light-green-500/10"},green:{color:"text-green-500",background:"bg-green-500/10"},teal:{color:"text-teal-500",background:"bg-teal-500/10"},cyan:{color:"text-cyan-500",background:"bg-cyan-500/10"},"light-blue":{color:"text-light-blue-500",background:"bg-light-blue-500/10"},blue:{color:"text-blue-500",background:"bg-blue-500/10"},indigo:{color:"text-indigo-500",background:"bg-indigo-500/10"},"deep-purple":{color:"text-deep-purple-500",background:"bg-deep-purple-500/10"},purple:{color:"text-purple-500",background:"bg-purple-500/10"},pink:{color:"text-pink-500",background:"bg-pink-500/10"},red:{color:"text-red-500",background:"bg-red-500/10"}},r=t})(Ok);var Ak={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900"},white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-900",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(Ak);var Ek={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900"},white:{border:"border border-white",color:"text-white"},"blue-gray":{border:"border border-blue-gray-500",color:"text-blue-gray-500"},gray:{border:"border border-gray-900",color:"text-gray-900"},brown:{border:"border border-brown-500",color:"text-brown-500"},"deep-orange":{border:"border border-deep-orange-500",color:"text-deep-orange-500"},orange:{border:"border border-orange-500",color:"text-orange-500"},amber:{border:"border border-amber-500",color:"text-amber-500"},yellow:{border:"border border-yellow-500",color:"text-yellow-500"},lime:{border:"border border-lime-500",color:"text-lime-500"},"light-green":{border:"border border-light-green-500",color:"text-light-green-500"},green:{border:"border border-green-500",color:"text-green-500"},teal:{border:"border border-teal-500",color:"text-teal-500"},cyan:{border:"border border-cyan-500",color:"text-cyan-500"},"light-blue":{border:"border border-light-blue-500",color:"text-light-blue-500"},blue:{border:"border border-blue-500",color:"text-blue-500"},indigo:{border:"border border-indigo-500",color:"text-indigo-500"},"deep-purple":{border:"border border-deep-purple-500",color:"text-deep-purple-500"},purple:{border:"border border-purple-500",color:"text-purple-500"},pink:{border:"border border-pink-500",color:"text-pink-500"},red:{border:"border border-red-500",color:"text-red-500"}},r=t})(Ek);var Mk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={transparent:{backgroud:"bg-transparent",color:"text-blue-gray-900"},white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-gradient-to-tr from-blue-gray-600 to-blue-gray-400",color:"text-white"},gray:{backgroud:"bg-gradient-to-tr from-gray-900 to-gray-800",color:"text-white"},brown:{backgroud:"bg-gradient-to-tr from-brown-600 to-brown-400",color:"text-white"},"deep-orange":{backgroud:"bg-gradient-to-tr from-deep-orange-600 to-deep-orange-400",color:"text-white"},orange:{backgroud:"bg-gradient-to-tr from-orange-600 to-orange-400",color:"text-white"},amber:{backgroud:"bg-gradient-to-tr from-amber-600 to-amber-400",color:"text-black"},yellow:{backgroud:"bg-gradient-to-tr from-yellow-600 to-yellow-400",color:"text-black"},lime:{backgroud:"bg-gradient-to-tr from-lime-600 to-lime-400",color:"text-black"},"light-green":{backgroud:"bg-gradient-to-tr from-light-green-600 to-light-green-400",color:"text-white"},green:{backgroud:"bg-gradient-to-tr from-green-600 to-green-400",color:"text-white"},teal:{backgroud:"bg-gradient-to-tr from-teal-600 to-teal-400",color:"text-white"},cyan:{backgroud:"bg-gradient-to-tr from-cyan-600 to-cyan-400",color:"text-white"},"light-blue":{backgroud:"bg-gradient-to-tr from-light-blue-600 to-light-blue-400",color:"text-white"},blue:{backgroud:"bg-gradient-to-tr from-blue-600 to-blue-400",color:"text-white"},indigo:{backgroud:"bg-gradient-to-tr from-indigo-600 to-indigo-400",color:"text-white"},"deep-purple":{backgroud:"bg-gradient-to-tr from-deep-purple-600 to-deep-purple-400",color:"text-white"},purple:{backgroud:"bg-gradient-to-tr from-purple-600 to-purple-400",color:"text-white"},pink:{backgroud:"bg-gradient-to-tr from-pink-600 to-pink-400",color:"text-white"},red:{backgroud:"bg-gradient-to-tr from-red-600 to-red-400",color:"text-white"}},r=t})(Mk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{timelineIcon:function(){return S},default:function(){return T}});var r=b(Ok),a=b(Ak),s=b(Ek),l=b(Mk),f=Ao;function b(O){return O&&O.__esModule?O:{default:O}}var S={defaultProps:{color:"gray",variant:"filled"},valid:{colors:f.propTypeColor,variants:f.propTypeVariant},styles:{base:{width:"w-max",height:"w-max",padding:"p-1.5",position:"relative",zIndex:"z-[2]",flexShrink:"flex-shrink-0",borderRadius:"rounded-full",overflow:"overflow-hidden"},variants:{ghost:r.default,filled:a.default,outlined:s.default,gradient:l.default}}},T=S})(_k);var Rk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{timelineHeader:function(){return r},default:function(){return a}});var r={styles:{base:{display:"flex",alignItems:"items-center",gap:"gap-4"}}},a=r})(Rk);var Nk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{timelineBody:function(){return r},default:function(){return a}});var r={styles:{base:{display:"flex",gap:"gap-4"}}},a=r})(Nk);var Ik={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{timelineConnector:function(){return r},default:function(){return a}});var r={styles:{base:{container:{position:"absolute",left:"left-0",display:"grid",justifyContent:"justify-center",backgroundColor:"bg-transparent",transition:"transition-opacity duration-200"},line:{width:"w-0.5",height:"h-full",backgroundColor:"bg-blue-gray-100"}}}},a=r})(Ik);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(Tk,e),t(Pk,e),t(_k,e),t(Rk,e),t(Nk,e),t(Ik,e);function t(r,a){return Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:function(){return r[s]}})}),r}})(kk);var Lk={},jk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{step:function(){return r},default:function(){return a}});var r={styles:{base:{initial:{position:"relative",zIndex:"z-10",display:"grid",placeItems:"place-items-center",width:"w-10",height:"h-10",borderRadius:"rounded-full",backgroundColor:"bg-gray-300",color:"text-gray-900",fontWeight:"font-bold",transition:"transition-all duration-300"},active:{backgroundColor:"bg-gray-900",color:"text-white"},completed:{backgroundColor:"bg-gray-900",color:"text-white"}}}},a=r})(jk);var Dk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{stepper:function(){return r},default:function(){return a}});var r={styles:{base:{stepper:{width:"w-full",position:"relative",display:"flex",alignItems:"items-center",justifyContent:"justify-between"},line:{initial:{position:"absolute",left:"left-0",top:"top-2/4",height:"h-0.5",width:"w-full",transform:"-translate-y-2/4",backgroundColor:"bg-gray-300"},active:{backgroundColor:"bg-gray-900",transition:"transition-all",duration:"duration-500"}}}}},a=r})(Dk);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(jk,e),t(Dk,e);function t(r,a){return Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:function(){return r[s]}})}),r}})(Lk);var zk={},Fk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{speedDial:function(){return r},default:function(){return a}});var r={defaultProps:{offset:5,placement:"top",dismiss:void 0,animate:{unmount:{},mount:{}}}},a=r})(Fk);var Vk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{speedDialContent:function(){return r},default:function(){return a}});var r={styles:{padding:"p-0.5",width:"w-max",display:"flex",flexDirection:"flex-col",alignItems:"items-center",gap:"gap-1"}},a=r})(Vk);var Wk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var f in l)Object.defineProperty(s,f,{enumerable:!0,get:l[f]})}t(e,{speedDialAction:function(){return r},default:function(){return a}});var r={styles:{display:"flex",flexDirection:"flex-col",alignItems:"items-center",justifyContent:"justify-center",gap:"gap-1",padding:"p-1",margin:"m-0.5",borderWidth:"border",minWidth:"min-w-[48px]",fontFamily:"font-normal",minHeight:"min-h-[48px]",backgroundColor:"bg-white",borderRadius:"rounded-full",borderColor:"border-blue-gray-50",scale:"hover:scale-110 focus:scale-110 active:scale-100",transition:"transition-transform duration-300 ease-in-out"}},a=r})(Wk);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(Fk,e),t(Vk,e),t(Wk,e);function t(r,a){return Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:function(){return r[s]}})}),r}})(zk);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return Ge}});var t=Me(ke(NC,e)),r=Me(ke(IC,e)),a=Me(ke(FC,e)),s=Me(ke(WC,e)),l=Me(ke(BC,e)),f=Me(ke(HC,e)),b=Me(ke(XC,e)),S=Me(ke(YC,e)),T=Me(ke(GC,e)),O=Me(ke(UC,e)),j=Me(ke(qC,e)),F=Me(ke(eS,e)),z=Me(ke(tS,e)),D=Me(ke(rS,e)),R=Me(ke(nS,e)),P=Me(ke(oS,e)),y=Me(ke(aS,e)),p=Me(ke(mS,e)),v=Me(ke(yS,e)),g=Me(ke(CS,e)),m=Me(ke(SS,e)),_=Me(ke(PS,e)),M=Me(ke(OS,e)),X=Me(ke(WS,e)),H=Me(ke(HS,e)),B=Me(ke(XS,e)),U=Me(ke(YS,e)),K=Me(ke(GS,e)),ne=Me(ke(US,e)),oe=Me(ke($S,e)),fe=Me(ke(sk,e)),ve=Me(ke(lk,e)),Se=Me(ke(ck,e)),he=Me(ke(dk,e)),ue=Me(ke(fk,e)),ge=Me(ke(hk,e)),ye=Me(ke(gk,e)),Te=Me(ke(bk,e)),Re=Me(ke(mk,e)),De=Me(ke(xk,e)),Le=Me(ke(Ck,e)),Oe=ke(kk,e),Xe=ke(Lk,e),Ve=ke(zk,e);function ke(Qe,qe){return Object.keys(Qe).forEach(function(He){He!=="default"&&!Object.prototype.hasOwnProperty.call(qe,He)&&Object.defineProperty(qe,He,{enumerable:!0,get:function(){return Qe[He]}})}),Qe}function Me(Qe){return Qe&&Qe.__esModule?Qe:{default:Qe}}var Ne={accordion:t.default,alert:r.default,avatar:a.default,breadcrumbs:s.default,button:l.default,card:f.default,cardBody:b.default,cardFooter:S.default,cardHeader:T.default,checkbox:O.default,chip:j.default,dialog:F.default,dialogBody:z.default,dialogFooter:D.default,dialogHeader:R.default,iconButton:P.default,input:y.default,menu:p.default,navbar:v.default,popover:g.default,progress:m.default,radio:_.default,select:M.default,switch:X.default,tab:H.default,tabs:B.default,tabsBody:U.default,tabsHeader:K.default,tabPanel:ne.default,textarea:oe.default,tooltip:fe.default,typography:ve.default,collapse:Se.default,list:he.default,buttonGroup:ue.default,carousel:ge.default,drawer:ye.default,badge:Te.default,rating:Re.default,slider:De.default,spinner:Le.default,timeline:Oe.timeline,timelineItem:Oe.timelineItem,timelineIcon:Oe.timelineIcon,timelineHeader:Oe.timelineHeader,timelineBody:Oe.timelineBody,timelineConnector:Oe.timelineConnector,step:Xe.step,stepper:Xe.stepper,speedDial:Ve.speedDial,speedDialContent:Ve.speedDialContent,speedDialAction:Ve.speedDialAction},Ge=Ne})(u0);var Bk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});var t=r(xr);function r(s){return s&&s.__esModule?s:{default:s}}function a(s,l,f){var b=s.slice();return l.forEach(function(S,T){typeof b[T]>"u"?b[T]=f.cloneUnlessOtherwiseSpecified(S,f):f.isMergeableObject(S)?b[T]=(0,t.default)(s[T],S,f):s.indexOf(S)===-1&&b.push(S)}),b}})(Bk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{MaterialTailwindTheme:function(){return O},ThemeProvider:function(){return j},useTheme:function(){return F}});var r=T(ee),a=b(ot),s=b(xr),l=b(u0),f=b(Bk);function b(z){return z&&z.__esModule?z:{default:z}}function S(z){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(S=function(P){return P?R:D})(z)}function T(z,D){if(!D&&z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var R=S(D);if(R&&R.has(z))return R.get(z);var P={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in z)if(p!=="default"&&Object.prototype.hasOwnProperty.call(z,p)){var v=y?Object.getOwnPropertyDescriptor(z,p):null;v&&(v.get||v.set)?Object.defineProperty(P,p,v):P[p]=z[p]}return P.default=z,R&&R.set(z,P),P}var O=(0,r.createContext)(l.default);O.displayName="MaterialTailwindThemeProvider";function j(z){var D=z.value,R=D===void 0?l.default:D,P=z.children,y=(0,s.default)(l.default,R,{arrayMerge:f.default});return r.default.createElement(O.Provider,{value:y},P)}var F=function(){return(0,r.useContext)(O)};j.propTypes={value:a.default.instanceOf(Object),children:a.default.node.isRequired}})(rt);var Od={},Bl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,z){for(var D in z)Object.defineProperty(F,D,{enumerable:!0,get:z[D]})}t(e,{propTypesOpen:function(){return l},propTypesIcon:function(){return f},propTypesAnimate:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return T},propTypesValue:function(){return O},propTypesChildren:function(){return j}});var r=s(ot),a=Vt;function s(F){return F&&F.__esModule?F:{default:F}}var l=r.default.bool.isRequired,f=r.default.node,b=a.propTypesAnimation,S=r.default.bool,T=r.default.string,O=r.default.instanceOf(Object).isRequired,j=r.default.node.isRequired})(Bl);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{AccordionContext:function(){return l},useAccordion:function(){return f},AccordionContextProvider:function(){return b}});var r=s(ee),a=Bl;function s(S){return S&&S.__esModule?S:{default:S}}var l=r.default.createContext(null);l.displayName="MaterialTailwind.AccordionContext";function f(){var S=r.default.useContext(l);if(!S)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return S}var b=function(S){var T=S.value,O=S.children;return r.default.createElement(l.Provider,{value:T},O)};b.propTypes={value:a.propTypesValue,children:a.propTypesChildren},b.displayName="MaterialTailwind.AccordionContextProvider"})(Od);var Hk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{AccordionHeader:function(){return D},default:function(){return R}});var r=j(ee),a=j(ct),s=it,l=j(nt),f=Od,b=rt,S=Bl;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.className,v=P.children,g=F(P,["className","children"]),m=(0,f.useAccordion)(),_=m.open,M=m.icon,X=m.disabled,H=(0,b.useTheme)().accordion,B=H.styles.base;p=p??"";var U=(0,s.twMerge)((0,a.default)((0,l.default)(B.header.initial),T({},(0,l.default)(B.header.active),_)),p),K=(0,a.default)((0,l.default)(B.header.icon));return r.default.createElement("button",O({},g,{ref:y,type:"button",disabled:X,className:U}),v,r.default.createElement("span",{className:K},M??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});D.propTypes={className:S.propTypesClassName,children:S.propTypesChildren},D.displayName="MaterialTailwind.AccordionHeader";var R=D})(Hk);var Xk={},gr={},Ih=function(e,t){return Ih=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(r[s]=a[s])},Ih(e,t)};function Yk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ih(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Wc=function(){return Wc=Object.assign||function(t){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Wc.apply(this,arguments)};function is(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function Gk(e,t,r,a){var s=arguments.length,l=s<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,r):a,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,t,r,a);else for(var b=e.length-1;b>=0;b--)(f=e[b])&&(l=(s<3?f(l):s>3?f(t,r,l):f(t,r))||l);return s>3&&l&&Object.defineProperty(t,r,l),l}function Uk(e,t){return function(r,a){t(r,a,e)}}function $k(e,t,r,a,s,l){function f(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var b=a.kind,S=b==="getter"?"get":b==="setter"?"set":"value",T=!t&&e?a.static?e:e.prototype:null,O=t||(T?Object.getOwnPropertyDescriptor(T,a.name):{}),j,F=!1,z=r.length-1;z>=0;z--){var D={};for(var R in a)D[R]=R==="access"?{}:a[R];for(var R in a.access)D.access[R]=a.access[R];D.addInitializer=function(y){if(F)throw new TypeError("Cannot add initializers after decoration has completed");l.push(f(y||null))};var P=(0,r[z])(b==="accessor"?{get:O.get,set:O.set}:O[S],D);if(b==="accessor"){if(P===void 0)continue;if(P===null||typeof P!="object")throw new TypeError("Object expected");(j=f(P.get))&&(O.get=j),(j=f(P.set))&&(O.set=j),(j=f(P.init))&&s.unshift(j)}else(j=f(P))&&(b==="field"?s.unshift(j):O[S]=j)}T&&Object.defineProperty(T,a.name,O),F=!0}function qk(e,t,r){for(var a=arguments.length>2,s=0;s<t.length;s++)r=a?t[s].call(e,r):t[s].call(e);return a?r:void 0}function Kk(e){return typeof e=="symbol"?e:"".concat(e)}function Zk(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Qk(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Jk(e,t,r,a){function s(l){return l instanceof r?l:new r(function(f){f(l)})}return new(r||(r=Promise))(function(l,f){function b(O){try{T(a.next(O))}catch(j){f(j)}}function S(O){try{T(a.throw(O))}catch(j){f(j)}}function T(O){O.done?l(O.value):s(O.value).then(b,S)}T((a=a.apply(e,t||[])).next())})}function e5(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=b(0),f.throw=b(1),f.return=b(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function b(T){return function(O){return S([T,O])}}function S(T){if(a)throw new TypeError("Generator is already executing.");for(;f&&(f=0,T[0]&&(r=0)),r;)try{if(a=1,s&&(l=T[0]&2?s.return:T[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,T[1])).done)return l;switch(s=0,l&&(T=[T[0]&2,l.value]),T[0]){case 0:case 1:l=T;break;case 4:return r.label++,{value:T[1],done:!1};case 5:r.label++,s=T[1],T=[0];continue;case 7:T=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(T[0]===6||T[0]===2)){r=0;continue}if(T[0]===3&&(!l||T[1]>l[0]&&T[1]<l[3])){r.label=T[1];break}if(T[0]===6&&r.label<l[1]){r.label=l[1],l=T;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(T);break}l[2]&&r.ops.pop(),r.trys.pop();continue}T=t.call(e,r)}catch(O){T=[6,O],s=0}finally{a=l=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}}var Ad=Object.create?function(e,t,r,a){a===void 0&&(a=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,s)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]};function t5(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ad(t,e,r)}function Bc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function T0(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),s,l=[],f;try{for(;(t===void 0||t-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(b){f={error:b}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(f)throw f.error}}return l}function r5(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(T0(arguments[t]));return e}function n5(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var a=Array(e),s=0,t=0;t<r;t++)for(var l=arguments[t],f=0,b=l.length;f<b;f++,s++)a[s]=l[f];return a}function o5(e,t,r){if(r||arguments.length===2)for(var a=0,s=t.length,l;a<s;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}function Gi(e){return this instanceof Gi?(this.v=e,this):new Gi(e)}function a5(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=r.apply(e,t||[]),s,l=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),b("next"),b("throw"),b("return",f),s[Symbol.asyncIterator]=function(){return this},s;function f(z){return function(D){return Promise.resolve(D).then(z,j)}}function b(z,D){a[z]&&(s[z]=function(R){return new Promise(function(P,y){l.push([z,R,P,y])>1||S(z,R)})},D&&(s[z]=D(s[z])))}function S(z,D){try{T(a[z](D))}catch(R){F(l[0][3],R)}}function T(z){z.value instanceof Gi?Promise.resolve(z.value.v).then(O,j):F(l[0][2],z)}function O(z){S("next",z)}function j(z){S("throw",z)}function F(z,D){z(D),l.shift(),l.length&&S(l[0][0],l[0][1])}}function i5(e){var t,r;return t={},a("next"),a("throw",function(s){throw s}),a("return"),t[Symbol.iterator]=function(){return this},t;function a(s,l){t[s]=e[s]?function(f){return(r=!r)?{value:Gi(e[s](f)),done:!1}:l?l(f):f}:l}}function s5(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Bc=="function"?Bc(e):e[Symbol.iterator](),r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r);function a(l){r[l]=e[l]&&function(f){return new Promise(function(b,S){f=e[l](f),s(b,S,f.done,f.value)})}}function s(l,f,b,S){Promise.resolve(S).then(function(T){l({value:T,done:b})},f)}}function l5(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var EI=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Lh=function(e){return Lh=Object.getOwnPropertyNames||function(t){var r=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[r.length]=a);return r},Lh(e)};function u5(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Lh(e),a=0;a<r.length;a++)r[a]!=="default"&&Ad(t,e,r[a]);return EI(t,e),t}function c5(e){return e&&e.__esModule?e:{default:e}}function d5(e,t,r,a){if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?a:r==="a"?a.call(e):a?a.value:t.get(e)}function f5(e,t,r,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r}function p5(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function h5(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var a,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=t[Symbol.asyncDispose]}if(a===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=t[Symbol.dispose],r&&(s=a)}if(typeof a!="function")throw new TypeError("Object not disposable.");s&&(a=function(){try{s.call(this)}catch(l){return Promise.reject(l)}}),e.stack.push({value:t,dispose:a,async:r})}else r&&e.stack.push({async:!0});return t}var MI=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var a=new Error(r);return a.name="SuppressedError",a.error=e,a.suppressed=t,a};function g5(e){function t(l){e.error=e.hasError?new MI(l,e.error,"An error was suppressed during disposal."):l,e.hasError=!0}var r,a=0;function s(){for(;r=e.stack.pop();)try{if(!r.async&&a===1)return a=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var l=r.dispose.call(r.value);if(r.async)return a|=2,Promise.resolve(l).then(s,function(f){return t(f),s()})}else a|=1}catch(f){t(f)}if(a===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s()}function b5(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,a,s,l,f){return a?t?".jsx":".js":s&&(!l||!f)?r:s+l+"."+f.toLowerCase()+"js"}):e}const RI={__extends:Yk,__assign:Wc,__rest:is,__decorate:Gk,__param:Uk,__esDecorate:$k,__runInitializers:qk,__propKey:Kk,__setFunctionName:Zk,__metadata:Qk,__awaiter:Jk,__generator:e5,__createBinding:Ad,__exportStar:t5,__values:Bc,__read:T0,__spread:r5,__spreadArrays:n5,__spreadArray:o5,__await:Gi,__asyncGenerator:a5,__asyncDelegator:i5,__asyncValues:s5,__makeTemplateObject:l5,__importStar:u5,__importDefault:c5,__classPrivateFieldGet:d5,__classPrivateFieldSet:f5,__classPrivateFieldIn:p5,__addDisposableResource:h5,__disposeResources:g5,__rewriteRelativeImportExtension:b5},NI=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:h5,get __assign(){return Wc},__asyncDelegator:i5,__asyncGenerator:a5,__asyncValues:s5,__await:Gi,__awaiter:Jk,__classPrivateFieldGet:d5,__classPrivateFieldIn:p5,__classPrivateFieldSet:f5,__createBinding:Ad,__decorate:Gk,__disposeResources:g5,__esDecorate:$k,__exportStar:t5,__extends:Yk,__generator:e5,__importDefault:c5,__importStar:u5,__makeTemplateObject:l5,__metadata:Qk,__param:Uk,__propKey:Kk,__read:T0,__rest:is,__rewriteRelativeImportExtension:b5,__runInitializers:qk,__setFunctionName:Zk,__spread:r5,__spreadArray:o5,__spreadArrays:n5,__values:Bc,default:RI},Symbol.toStringTag,{value:"Module"})),v5=Il(NI);var II=function(){},m5=function(){};const LI=Object.freeze(Object.defineProperty({__proto__:null,invariant:m5,warning:II},Symbol.toStringTag,{value:"Module"})),y5=Il(LI);var lr={};Object.defineProperty(lr,"__esModule",{value:!0});const x5=(e,t)=>r=>Math.max(Math.min(r,t),e),tl=e=>e%1?Number(e.toFixed(5)):e,Pl=/(-)?([\d]*\.?[\d])+/g,jh=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,jI=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Hl(e){return typeof e=="string"}const Xl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},P0=Object.assign(Object.assign({},Xl),{transform:x5(0,1)}),DI=Object.assign(Object.assign({},Xl),{default:1}),Yl=e=>({test:t=>Hl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zI=Yl("deg"),Ii=Yl("%"),FI=Yl("px"),VI=Yl("vh"),WI=Yl("vw"),BI=Object.assign(Object.assign({},Ii),{parse:e=>Ii.parse(e)/100,transform:e=>Ii.transform(e*100)}),_0=(e,t)=>r=>!!(Hl(r)&&jI.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),w5=(e,t,r)=>a=>{if(!Hl(a))return a;const[s,l,f,b]=a.match(Pl);return{[e]:parseFloat(s),[t]:parseFloat(l),[r]:parseFloat(f),alpha:b!==void 0?parseFloat(b):1}},Xs={test:_0("hsl","hue"),parse:w5("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+Ii.transform(tl(t))+", "+Ii.transform(tl(r))+", "+tl(P0.transform(a))+")"},HI=x5(0,255),Qu=Object.assign(Object.assign({},Xl),{transform:e=>Math.round(HI(e))}),Ti={test:_0("rgb","red"),parse:w5("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+Qu.transform(e)+", "+Qu.transform(t)+", "+Qu.transform(r)+", "+tl(P0.transform(a))+")"};function XI(e){let t="",r="",a="",s="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),a=e.substr(5,2),s=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),a=e.substr(3,1),s=e.substr(4,1),t+=t,r+=r,a+=a,s+=s),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alpha:s?parseInt(s,16)/255:1}}const Dh={test:_0("#"),parse:XI,transform:Ti.transform},O0={test:e=>Ti.test(e)||Dh.test(e)||Xs.test(e),parse:e=>Ti.test(e)?Ti.parse(e):Xs.test(e)?Xs.parse(e):Dh.parse(e),transform:e=>Hl(e)?e:e.hasOwnProperty("red")?Ti.transform(e):Xs.transform(e)},C5="${c}",S5="${n}";function YI(e){var t,r,a,s;return isNaN(e)&&Hl(e)&&((r=(t=e.match(Pl))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((s=(a=e.match(jh))===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0)>0}function k5(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const a=e.match(jh);a&&(r=a.length,e=e.replace(jh,C5),t.push(...a.map(O0.parse)));const s=e.match(Pl);return s&&(e=e.replace(Pl,S5),t.push(...s.map(Xl.parse))),{values:t,numColors:r,tokenised:e}}function T5(e){return k5(e).values}function P5(e){const{values:t,numColors:r,tokenised:a}=k5(e),s=t.length;return l=>{let f=a;for(let b=0;b<s;b++)f=f.replace(b<r?C5:S5,b<r?O0.transform(l[b]):tl(l[b]));return f}}const GI=e=>typeof e=="number"?0:e;function UI(e){const t=T5(e);return P5(e)(t.map(GI))}const _5={test:YI,parse:T5,createTransformer:P5,getAnimatableNone:UI},$I=new Set(["brightness","contrast","saturate","opacity"]);function qI(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=r.match(Pl)||[];if(!a)return e;const s=r.replace(a,"");let l=$I.has(t)?1:0;return a!==r&&(l*=100),t+"("+l+s+")"}const KI=/([a-z-]*)\(.*?\)/g,ZI=Object.assign(Object.assign({},_5),{getAnimatableNone:e=>{const t=e.match(KI);return t?t.map(qI).join(" "):e}});lr.alpha=P0;lr.color=O0;lr.complex=_5;lr.degrees=zI;lr.filter=ZI;lr.hex=Dh;lr.hsla=Xs;lr.number=Xl;lr.percent=Ii;lr.progressPercentage=BI;lr.px=FI;lr.rgbUnit=Qu;lr.rgba=Ti;lr.scale=DI;lr.vh=VI;lr.vw=WI;var lt={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});const O5=1/60*1e3,QI=typeof performance<"u"?()=>performance.now():()=>Date.now(),A5=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(QI()),O5);function JI(e){let t=[],r=[],a=0,s=!1,l=!1;const f=new WeakSet,b={schedule:(S,T=!1,O=!1)=>{const j=O&&s,F=j?t:r;return T&&f.add(S),F.indexOf(S)===-1&&(F.push(S),j&&s&&(a=t.length)),S},cancel:S=>{const T=r.indexOf(S);T!==-1&&r.splice(T,1),f.delete(S)},process:S=>{if(s){l=!0;return}if(s=!0,[t,r]=[r,t],r.length=0,a=t.length,a)for(let T=0;T<a;T++){const O=t[T];O(S),f.has(O)&&(b.schedule(O),e())}s=!1,l&&(l=!1,b.process(S))}};return b}const eL=40;let zh=!0,_l=!1,Fh=!1;const Li={delta:0,timestamp:0},Gl=["read","update","preRender","render","postRender"],Ed=Gl.reduce((e,t)=>(e[t]=JI(()=>_l=!0),e),{}),tL=Gl.reduce((e,t)=>{const r=Ed[t];return e[t]=(a,s=!1,l=!1)=>(_l||aL(),r.schedule(a,s,l)),e},{}),rL=Gl.reduce((e,t)=>(e[t]=Ed[t].cancel,e),{}),nL=Gl.reduce((e,t)=>(e[t]=()=>Ed[t].process(Li),e),{}),oL=e=>Ed[e].process(Li),E5=e=>{_l=!1,Li.delta=zh?O5:Math.max(Math.min(e-Li.timestamp,eL),1),Li.timestamp=e,Fh=!0,Gl.forEach(oL),Fh=!1,_l&&(zh=!1,A5(E5))},aL=()=>{_l=!0,zh=!0,Fh||A5(E5)},iL=()=>Li;Ja.cancelSync=rL;Ja.default=tL;Ja.flushSync=nL;Ja.getFrameData=iL;Object.defineProperty(lt,"__esModule",{value:!0});var M5=v5,Ui=y5,Nn=lr,Md=Ja;function sL(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var lL=sL(Md);const Ol=(e,t,r)=>Math.min(Math.max(r,e),t),fp=.001,uL=.01,Cy=10,cL=.05,dL=1;function fL({duration:e=800,bounce:t=.25,velocity:r=0,mass:a=1}){let s,l;Ui.warning(e<=Cy*1e3,"Spring duration must be 10 seconds or less");let f=1-t;f=Ol(cL,dL,f),e=Ol(uL,Cy,e/1e3),f<1?(s=T=>{const O=T*f,j=O*e,F=O-r,z=Vh(T,f),D=Math.exp(-j);return fp-F/z*D},l=T=>{const j=T*f*e,F=j*r+r,z=Math.pow(f,2)*Math.pow(T,2)*e,D=Math.exp(-j),R=Vh(Math.pow(T,2),f);return(-s(T)+fp>0?-1:1)*((F-z)*D)/R}):(s=T=>{const O=Math.exp(-T*e),j=(T-r)*e+1;return-fp+O*j},l=T=>{const O=Math.exp(-T*e),j=(r-T)*(e*e);return O*j});const b=5/e,S=hL(s,l,b);if(e=e*1e3,isNaN(S))return{stiffness:100,damping:10,duration:e};{const T=Math.pow(S,2)*a;return{stiffness:T,damping:f*2*Math.sqrt(a*T),duration:e}}}const pL=12;function hL(e,t,r){let a=r;for(let s=1;s<pL;s++)a=a-e(a)/t(a);return a}function Vh(e,t){return e*Math.sqrt(1-t*t)}const gL=["duration","bounce"],bL=["stiffness","damping","mass"];function Sy(e,t){return t.some(r=>e[r]!==void 0)}function vL(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Sy(e,bL)&&Sy(e,gL)){const r=fL(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Rd(e){var{from:t=0,to:r=1,restSpeed:a=2,restDelta:s}=e,l=M5.__rest(e,["from","to","restSpeed","restDelta"]);const f={done:!1,value:t};let{stiffness:b,damping:S,mass:T,velocity:O,duration:j,isResolvedFromDuration:F}=vL(l),z=ky,D=ky;function R(){const P=O?-(O/1e3):0,y=r-t,p=S/(2*Math.sqrt(b*T)),v=Math.sqrt(b/T)/1e3;if(s===void 0&&(s=Math.min(Math.abs(r-t)/100,.4)),p<1){const g=Vh(v,p);z=m=>{const _=Math.exp(-p*v*m);return r-_*((P+p*v*y)/g*Math.sin(g*m)+y*Math.cos(g*m))},D=m=>{const _=Math.exp(-p*v*m);return p*v*_*(Math.sin(g*m)*(P+p*v*y)/g+y*Math.cos(g*m))-_*(Math.cos(g*m)*(P+p*v*y)-g*y*Math.sin(g*m))}}else if(p===1)z=g=>r-Math.exp(-v*g)*(y+(P+v*y)*g);else{const g=v*Math.sqrt(p*p-1);z=m=>{const _=Math.exp(-p*v*m),M=Math.min(g*m,300);return r-_*((P+p*v*y)*Math.sinh(M)+g*y*Math.cosh(M))/g}}}return R(),{next:P=>{const y=z(P);if(F)f.done=P>=j;else{const p=D(P)*1e3,v=Math.abs(p)<=a,g=Math.abs(r-y)<=s;f.done=v&&g}return f.value=f.done?r:y,f},flipTarget:()=>{O=-O,[t,r]=[r,t],R()}}}Rd.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const ky=e=>0,A0=(e,t,r)=>{const a=t-e;return a===0?1:(r-e)/a},Nd=(e,t,r)=>-r*e+r*t+e;function pp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ty({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let s=0,l=0,f=0;if(!t)s=l=f=r;else{const b=r<.5?r*(1+t):r+t-r*t,S=2*r-b;s=pp(S,b,e+1/3),l=pp(S,b,e),f=pp(S,b,e-1/3)}return{red:Math.round(s*255),green:Math.round(l*255),blue:Math.round(f*255),alpha:a}}const mL=(e,t,r)=>{const a=e*e,s=t*t;return Math.sqrt(Math.max(0,r*(s-a)+a))},yL=[Nn.hex,Nn.rgba,Nn.hsla],Py=e=>yL.find(t=>t.test(e)),_y=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,E0=(e,t)=>{let r=Py(e),a=Py(t);Ui.invariant(!!r,_y(e)),Ui.invariant(!!a,_y(t));let s=r.parse(e),l=a.parse(t);r===Nn.hsla&&(s=Ty(s),r=Nn.rgba),a===Nn.hsla&&(l=Ty(l),a=Nn.rgba);const f=Object.assign({},s);return b=>{for(const S in f)S!=="alpha"&&(f[S]=mL(s[S],l[S],b));return f.alpha=Nd(s.alpha,l.alpha,b),r.transform(f)}},xL={x:0,y:0,z:0},Wh=e=>typeof e=="number",wL=(e,t)=>r=>t(e(r)),M0=(...e)=>e.reduce(wL);function R5(e,t){return Wh(e)?r=>Nd(e,t,r):Nn.color.test(e)?E0(e,t):R0(e,t)}const N5=(e,t)=>{const r=[...e],a=r.length,s=e.map((l,f)=>R5(l,t[f]));return l=>{for(let f=0;f<a;f++)r[f]=s[f](l);return r}},CL=(e,t)=>{const r=Object.assign(Object.assign({},e),t),a={};for(const s in r)e[s]!==void 0&&t[s]!==void 0&&(a[s]=R5(e[s],t[s]));return s=>{for(const l in a)r[l]=a[l](s);return r}};function Oy(e){const t=Nn.complex.parse(e),r=t.length;let a=0,s=0,l=0;for(let f=0;f<r;f++)a||typeof t[f]=="number"?a++:t[f].hue!==void 0?l++:s++;return{parsed:t,numNumbers:a,numRGB:s,numHSL:l}}const R0=(e,t)=>{const r=Nn.complex.createTransformer(t),a=Oy(e),s=Oy(t);return a.numHSL===s.numHSL&&a.numRGB===s.numRGB&&a.numNumbers>=s.numNumbers?M0(N5(a.parsed,s.parsed),r):(Ui.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),f=>`${f>0?t:e}`)},SL=(e,t)=>r=>Nd(e,t,r);function kL(e){if(typeof e=="number")return SL;if(typeof e=="string")return Nn.color.test(e)?E0:R0;if(Array.isArray(e))return N5;if(typeof e=="object")return CL}function TL(e,t,r){const a=[],s=r||kL(e[0]),l=e.length-1;for(let f=0;f<l;f++){let b=s(e[f],e[f+1]);if(t){const S=Array.isArray(t)?t[f]:t;b=M0(S,b)}a.push(b)}return a}function PL([e,t],[r]){return a=>r(A0(e,t,a))}function _L(e,t){const r=e.length,a=r-1;return s=>{let l=0,f=!1;if(s<=e[0]?f=!0:s>=e[a]&&(l=a-1,f=!0),!f){let S=1;for(;S<r&&!(e[S]>s||S===a);S++);l=S-1}const b=A0(e[l],e[l+1],s);return t[l](b)}}function N0(e,t,{clamp:r=!0,ease:a,mixer:s}={}){const l=e.length;Ui.invariant(l===t.length,"Both input and output ranges must be the same length"),Ui.invariant(!a||!Array.isArray(a)||a.length===l-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[l-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const f=TL(t,a,s),b=l===2?PL(e,f):_L(e,f);return r?S=>b(Ol(e[0],e[l-1],S)):b}const Ul=e=>t=>1-e(1-t),Id=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,I5=e=>t=>Math.pow(t,e),I0=e=>t=>t*t*((e+1)*t-e),L5=e=>{const t=I0(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},j5=1.525,OL=4/11,AL=8/11,EL=9/10,D5=e=>e,L0=I5(2),ML=Ul(L0),z5=Id(L0),F5=e=>1-Math.sin(Math.acos(e)),V5=Ul(F5),RL=Id(V5),j0=I0(j5),NL=Ul(j0),IL=Id(j0),LL=L5(j5),jL=4356/361,DL=35442/1805,zL=16061/1805,Hc=e=>{if(e===1||e===0)return e;const t=e*e;return e<OL?7.5625*t:e<AL?9.075*t-9.9*e+3.4:e<EL?jL*t-DL*e+zL:10.8*e*e-20.52*e+10.72},FL=Ul(Hc),VL=e=>e<.5?.5*(1-Hc(1-e*2)):.5*Hc(e*2-1)+.5;function WL(e,t){return e.map(()=>t||z5).splice(0,e.length-1)}function BL(e){const t=e.length;return e.map((r,a)=>a!==0?a/(t-1):0)}function HL(e,t){return e.map(r=>r*t)}function rl({from:e=0,to:t=1,ease:r,offset:a,duration:s=300}){const l={done:!1,value:e},f=Array.isArray(t)?t:[e,t],b=HL(a&&a.length===f.length?a:BL(f),s);function S(){return N0(b,f,{ease:Array.isArray(r)?r:WL(f,r)})}let T=S();return{next:O=>(l.value=T(O),l.done=O>=s,l),flipTarget:()=>{f.reverse(),T=S()}}}function W5({velocity:e=0,from:t=0,power:r=.8,timeConstant:a=350,restDelta:s=.5,modifyTarget:l}){const f={done:!1,value:t};let b=r*e;const S=t+b,T=l===void 0?S:l(S);return T!==S&&(b=T-t),{next:O=>{const j=-b*Math.exp(-O/a);return f.done=!(j>s||j<-s),f.value=f.done?T:T+j,f},flipTarget:()=>{}}}const Ay={keyframes:rl,spring:Rd,decay:W5};function XL(e){if(Array.isArray(e.to))return rl;if(Ay[e.type])return Ay[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?rl:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Rd:rl}function B5(e,t,r=0){return e-t-r}function YL(e,t,r=0,a=!0){return a?B5(t+-e,t,r):t-(e-t)+r}function GL(e,t,r,a){return a?e>=t+r:e<=-r}const UL=e=>{const t=({delta:r})=>e(r);return{start:()=>lL.default.update(t,!0),stop:()=>Md.cancelSync.update(t)}};function H5(e){var t,r,{from:a,autoplay:s=!0,driver:l=UL,elapsed:f=0,repeat:b=0,repeatType:S="loop",repeatDelay:T=0,onPlay:O,onStop:j,onComplete:F,onRepeat:z,onUpdate:D}=e,R=M5.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:P}=R,y,p=0,v=R.duration,g,m=!1,_=!0,M;const X=XL(R);!((r=(t=X).needsInterpolation)===null||r===void 0)&&r.call(t,a,P)&&(M=N0([0,100],[a,P],{clamp:!1}),a=0,P=100);const H=X(Object.assign(Object.assign({},R),{from:a,to:P}));function B(){p++,S==="reverse"?(_=p%2===0,f=YL(f,v,T,_)):(f=B5(f,v,T),S==="mirror"&&H.flipTarget()),m=!1,z&&z()}function U(){y.stop(),F&&F()}function K(oe){if(_||(oe=-oe),f+=oe,!m){const fe=H.next(Math.max(0,f));g=fe.value,M&&(g=M(g)),m=_?fe.done:f<=0}D==null||D(g),m&&(p===0&&(v??(v=f)),p<b?GL(f,v,T,_)&&B():U())}function ne(){O==null||O(),y=l(K),y.start()}return s&&ne(),{stop:()=>{j==null||j(),y.stop()}}}function X5(e,t){return t?e*(1e3/t):0}function $L({from:e=0,velocity:t=0,min:r,max:a,power:s=.8,timeConstant:l=750,bounceStiffness:f=500,bounceDamping:b=10,restDelta:S=1,modifyTarget:T,driver:O,onUpdate:j,onComplete:F,onStop:z}){let D;function R(v){return r!==void 0&&v<r||a!==void 0&&v>a}function P(v){return r===void 0?a:a===void 0||Math.abs(r-v)<Math.abs(a-v)?r:a}function y(v){D==null||D.stop(),D=H5(Object.assign(Object.assign({},v),{driver:O,onUpdate:g=>{var m;j==null||j(g),(m=v.onUpdate)===null||m===void 0||m.call(v,g)},onComplete:F,onStop:z}))}function p(v){y(Object.assign({type:"spring",stiffness:f,damping:b,restDelta:S},v))}if(R(e))p({from:e,velocity:t,to:P(e)});else{let v=s*t+e;typeof T<"u"&&(v=T(v));const g=P(v),m=g===r?-1:1;let _,M;const X=H=>{_=M,M=H,t=X5(H-_,Md.getFrameData().delta),(m===1&&H>g||m===-1&&H<g)&&p({from:H,to:g,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:l,power:s,restDelta:S,modifyTarget:T,onUpdate:R(v)?X:void 0})}return{stop:()=>D==null?void 0:D.stop()}}const Y5=e=>e*180/Math.PI,qL=(e,t=xL)=>Y5(Math.atan2(t.y-e.y,t.x-e.x)),KL=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),a=>r?a-e+t:(e=a,r=!0,t)},ZL=e=>e,D0=(e=ZL)=>(t,r,a)=>{const s=r-a,l=-(0-t+1)*(0-e(Math.abs(s)));return s<=0?r+l:r-l},QL=D0(),JL=D0(Math.sqrt),G5=e=>e*Math.PI/180,Xc=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Bh=e=>Xc(e)&&e.hasOwnProperty("z"),Eu=(e,t)=>Math.abs(e-t);function ej(e,t){if(Wh(e)&&Wh(t))return Eu(e,t);if(Xc(e)&&Xc(t)){const r=Eu(e.x,t.x),a=Eu(e.y,t.y),s=Bh(e)&&Bh(t)?Eu(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(a,2)+Math.pow(s,2))}}const tj=(e,t,r)=>(t=G5(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),U5=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),$5=(e,t,r,a=0)=>U5(e+r*(t-e)/Math.max(a,r)),rj=(e=50)=>{let t=0,r=0;return a=>{const s=Md.getFrameData().timestamp,l=s!==r?s-r:0,f=l?$5(t,a,l,e):t;return r=s,t=f,f}},nj=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return a=>{let s=Math.abs(e[0]-a);for(t=1;t<r;t++){const l=e[t],f=Math.abs(l-a);if(f===0)return l;if(f>s)return e[t-1];if(t===r-1)return l;s=f}}}};function oj(e,t){return e/(1e3/t)}const aj=(e,t,r)=>{const a=t-e;return((r-e)%a+a)%a+e},q5=(e,t)=>1-3*t+3*e,K5=(e,t)=>3*t-6*e,Z5=e=>3*e,Yc=(e,t,r)=>((q5(t,r)*e+K5(t,r))*e+Z5(t))*e,Q5=(e,t,r)=>3*q5(t,r)*e*e+2*K5(t,r)*e+Z5(t),ij=1e-7,sj=10;function lj(e,t,r,a,s){let l,f,b=0;do f=t+(r-t)/2,l=Yc(f,a,s)-e,l>0?r=f:t=f;while(Math.abs(l)>ij&&++b<sj);return f}const uj=8,cj=.001;function dj(e,t,r,a){for(let s=0;s<uj;++s){const l=Q5(t,r,a);if(l===0)return t;const f=Yc(t,r,a)-e;t-=f/l}return t}const Ju=11,Mu=1/(Ju-1);function fj(e,t,r,a){if(e===t&&r===a)return D5;const s=new Float32Array(Ju);for(let f=0;f<Ju;++f)s[f]=Yc(f*Mu,e,r);function l(f){let b=0,S=1;const T=Ju-1;for(;S!==T&&s[S]<=f;++S)b+=Mu;--S;const O=(f-s[S])/(s[S+1]-s[S]),j=b+O*Mu,F=Q5(j,e,r);return F>=cj?dj(f,j,e,r):F===0?j:lj(f,b,b+Mu,e,r)}return f=>f===0||f===1?f:Yc(l(f),t,a)}const pj=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const a=r*e,s=t==="end"?Math.floor(a):Math.ceil(a);return Ol(0,1,s/e)};lt.angle=qL;lt.animate=H5;lt.anticipate=LL;lt.applyOffset=KL;lt.attract=QL;lt.attractExpo=JL;lt.backIn=j0;lt.backInOut=IL;lt.backOut=NL;lt.bounceIn=FL;lt.bounceInOut=VL;lt.bounceOut=Hc;lt.circIn=F5;lt.circInOut=RL;lt.circOut=V5;lt.clamp=Ol;lt.createAnticipate=L5;lt.createAttractor=D0;lt.createBackIn=I0;lt.createExpoIn=I5;lt.cubicBezier=fj;lt.decay=W5;lt.degreesToRadians=G5;lt.distance=ej;lt.easeIn=L0;lt.easeInOut=z5;lt.easeOut=ML;lt.inertia=$L;lt.interpolate=N0;lt.isPoint=Xc;lt.isPoint3D=Bh;lt.keyframes=rl;lt.linear=D5;lt.mirrorEasing=Id;lt.mix=Nd;lt.mixColor=E0;lt.mixComplex=R0;lt.pipe=M0;lt.pointFromVector=tj;lt.progress=A0;lt.radiansToDegrees=Y5;lt.reverseEasing=Ul;lt.smooth=rj;lt.smoothFrame=$5;lt.snap=nj;lt.spring=Rd;lt.steps=pj;lt.toDecimal=U5;lt.velocityPerFrame=oj;lt.velocityPerSecond=X5;lt.wrap=aj;class hj{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const hp=new WeakMap;function z0(e){return hp.has(e)||hp.set(e,{transforms:[],values:new Map}),hp.get(e)}function gj(e,t){return e.has(t)||e.set(t,new hj),e.get(t)}function J5(e,t){e.indexOf(t)===-1&&e.push(t)}function eT(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const tT=(e,t,r)=>Math.min(Math.max(r,e),t),Yr={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},_o=e=>typeof e=="number",Al=e=>Array.isArray(e)&&!_o(e[0]),bj=(e,t,r)=>{const a=t-e;return((r-e)%a+a)%a+e};function rT(e,t){return Al(e)?e[bj(0,e.length,t)]:e}const F0=(e,t,r)=>-r*e+r*t+e,V0=()=>{},xo=e=>e,Ld=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function W0(e,t){const r=e[e.length-1];for(let a=1;a<=t;a++){const s=Ld(0,t,a);e.push(F0(r,1,s))}}function B0(e){const t=[0];return W0(t,e-1),t}function nT(e,t=B0(e.length),r=xo){const a=e.length,s=a-t.length;return s>0&&W0(t,s),l=>{let f=0;for(;f<a-2&&!(l<t[f+1]);f++);let b=tT(0,1,Ld(t[f],t[f+1],l));return b=rT(r,f)(b),F0(e[f],e[f+1],b)}}const oT=e=>Array.isArray(e)&&_o(e[0]),Gc=e=>typeof e=="object"&&!!e.createAnimation,vj=e=>typeof e=="function",H0=e=>typeof e=="string",La={ms:e=>e*1e3,s:e=>e/1e3};function aT(e,t){return t?e*(1e3/t):0}const mj=["","X","Y","Z"],yj=["translate","scale","rotate","skew"],$i={x:"translateX",y:"translateY",z:"translateZ"},Ey={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},xj={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Ey,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:xo},skew:Ey},qi=new Map,jd=e=>`--motion-${e}`,Uc=["x","y","z"];yj.forEach(e=>{mj.forEach(t=>{Uc.push(e+t),qi.set(jd(e+t),xj[e])})});const wj=(e,t)=>Uc.indexOf(e)-Uc.indexOf(t),Cj=new Set(Uc),Dd=e=>Cj.has(e),Sj=(e,t)=>{$i[t]&&(t=$i[t]);const{transforms:r}=z0(e);J5(r,t),e.style.transform=iT(r)},iT=e=>e.sort(wj).reduce(kj,"").trim(),kj=(e,t)=>`${e} ${t}(var(${jd(t)}))`,Hh=e=>e.startsWith("--"),My=new Set;function Tj(e){if(!My.has(e)){My.add(e);try{const{syntax:t,initialValue:r}=qi.has(e)?qi.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const sT=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Pj=1e-7,_j=12;function Oj(e,t,r,a,s){let l,f,b=0;do f=t+(r-t)/2,l=sT(f,a,s)-e,l>0?r=f:t=f;while(Math.abs(l)>Pj&&++b<_j);return f}function Ys(e,t,r,a){if(e===t&&r===a)return xo;const s=l=>Oj(l,0,1,e,r);return l=>l===0||l===1?l:sT(s(l),t,a)}const Aj=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const a=r*e,s=t==="end"?Math.floor(a):Math.ceil(a);return tT(0,1,s/e)},Ej={ease:Ys(.25,.1,.25,1),"ease-in":Ys(.42,0,1,1),"ease-in-out":Ys(.42,0,.58,1),"ease-out":Ys(0,0,.58,1)},Mj=/\((.*?)\)/;function Xh(e){if(vj(e))return e;if(oT(e))return Ys(...e);const t=Ej[e];if(t)return t;if(e.startsWith("steps")){const r=Mj.exec(e);if(r){const a=r[1].split(",");return Aj(parseFloat(a[0]),a[1].trim())}}return xo}class Rj{constructor(t,r=[0,1],{easing:a,duration:s=Yr.duration,delay:l=Yr.delay,endDelay:f=Yr.endDelay,repeat:b=Yr.repeat,offset:S,direction:T="normal",autoplay:O=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=xo,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((F,z)=>{this.resolve=F,this.reject=z}),a=a||Yr.easing,Gc(a)){const F=a.createAnimation(r);a=F.easing,r=F.keyframes||r,s=F.duration||s}this.repeat=b,this.easing=Al(a)?xo:Xh(a),this.updateDuration(s);const j=nT(r,S,Al(a)?a.map(Xh):xo);this.tick=F=>{var z;l=l;let D=0;this.pauseTime!==void 0?D=this.pauseTime:D=(F-this.startTime)*this.rate,this.t=D,D/=1e3,D=Math.max(D-l,0),this.playState==="finished"&&this.pauseTime===void 0&&(D=this.totalDuration);const R=D/this.duration;let P=Math.floor(R),y=R%1;!y&&R>=1&&(y=1),y===1&&P--;const p=P%2;(T==="reverse"||T==="alternate"&&p||T==="alternate-reverse"&&!p)&&(y=1-y);const v=D>=this.totalDuration?1:Math.min(y,1),g=j(this.easing(v));t(g),this.pauseTime===void 0&&(this.playState==="finished"||D>=this.totalDuration+f)?(this.playState="finished",(z=this.resolve)===null||z===void 0||z.call(this,g)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},O&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const Ry=e=>oT(e)?Nj(e):e,Nj=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`,Ny=e=>document.createElement("div").animate(e,{duration:.001}),Iy={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Ny({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Ny({opacity:[0,1]}).finished},gp={},ec={};for(const e in Iy)ec[e]=()=>(gp[e]===void 0&&(gp[e]=Iy[e]()),gp[e]);function Ij(e,t){for(let r=0;r<e.length;r++)e[r]===null&&(e[r]=r?e[r-1]:t());return e}const lT=e=>Array.isArray(e)?e:[e];function $c(e){return $i[e]&&(e=$i[e]),Dd(e)?jd(e):e}const Pi={get:(e,t)=>{t=$c(t);let r=Hh(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const a=qi.get(t);a&&(r=a.initialValue)}return r},set:(e,t,r)=>{t=$c(t),Hh(t)?e.style.setProperty(t,r):e.style[t]=r}};function uT(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function Lj(){return window.__MOTION_DEV_TOOLS_RECORD}function zd(e,t,r,a={}){const s=Lj(),l=a.record!==!1&&s;let f,{duration:b=Yr.duration,delay:S=Yr.delay,endDelay:T=Yr.endDelay,repeat:O=Yr.repeat,easing:j=Yr.easing,direction:F,offset:z,allowWebkitAcceleration:D=!1}=a;const R=z0(e);let P=ec.waapi();const y=Dd(t);y&&Sj(e,t);const p=$c(t),v=gj(R.values,p),g=qi.get(p);return uT(v.animation,!(Gc(j)&&v.generator)&&a.record!==!1),()=>{const m=()=>{var M,X;return(X=(M=Pi.get(e,p))!==null&&M!==void 0?M:g==null?void 0:g.initialValue)!==null&&X!==void 0?X:0};let _=Ij(lT(r),m);if(Gc(j)){const M=j.createAnimation(_,m,y,p,v);j=M.easing,M.keyframes!==void 0&&(_=M.keyframes),M.duration!==void 0&&(b=M.duration)}if(Hh(p)&&(ec.cssRegisterProperty()?Tj(p):P=!1),P){g&&(_=_.map(H=>_o(H)?g.toDefaultUnit(H):H)),_.length===1&&(!ec.partialKeyframes()||l)&&_.unshift(m());const M={delay:La.ms(S),duration:La.ms(b),endDelay:La.ms(T),easing:Al(j)?void 0:Ry(j),direction:F,iterations:O+1,fill:"both"};f=e.animate({[p]:_,offset:z,easing:Al(j)?j.map(Ry):void 0},M),f.finished||(f.finished=new Promise((H,B)=>{f.onfinish=H,f.oncancel=B}));const X=_[_.length-1];f.finished.then(()=>{Pi.set(e,p,X),f.cancel()}).catch(V0),D||(f.playbackRate=1.000001)}else if(y){_=_.map(X=>typeof X=="string"?parseFloat(X):X),_.length===1&&_.unshift(parseFloat(m()));const M=X=>{g&&(X=g.toDefaultUnit(X)),Pi.set(e,p,X)};f=new Rj(M,_,Object.assign(Object.assign({},a),{duration:b,easing:j}))}else{const M=_[_.length-1];Pi.set(e,p,g&&_o(M)?g.toDefaultUnit(M):M)}return l&&s(e,t,_,{duration:b,delay:S,easing:j,repeat:O,offset:z},"motion-one"),v.setAnimation(f),f}}const X0=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function Fd(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const jj=e=>e(),Y0=(e,t,r=Yr.duration)=>new Proxy({animations:e.map(jj).filter(Boolean),duration:r,options:t},zj),Dj=e=>e.animations[0],zj={get:(e,t)=>{const r=Dj(e);switch(t){case"duration":return e.duration;case"currentTime":return La.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(Fj)).catch(V0)),e.finished;case"stop":return()=>{e.animations.forEach(a=>uT(a))};case"forEachNative":return a=>{e.animations.forEach(s=>a(s,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(a=>a[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=La.ms(r);case"currentTime":case"playbackRate":for(let a=0;a<e.animations.length;a++)e.animations[a][t]=r;return!0}return!1}},Fj=e=>e.finished;function Vj(e=.1,{start:t=0,from:r=0,easing:a}={}){return(s,l)=>{const f=_o(r)?r:Wj(r,l),b=Math.abs(f-s);let S=e*b;if(a){const T=l*e;S=Xh(a)(S/T)*T}return t+S}}function Wj(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function cT(e,t,r){return typeof e=="function"?e(t,r):e}function Bj(e,t,r={}){e=Fd(e);const a=e.length,s=[];for(let l=0;l<a;l++){const f=e[l];for(const b in t){const S=X0(r,b);S.delay=cT(S.delay,l,a);const T=zd(f,b,t[b],S);s.push(T)}}return Y0(s,r,r.duration)}function Ly(e,t,r,a){var s;return _o(t)?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?r:(s=a.get(t))!==null&&s!==void 0?s:e}function Hj(e,t,r){for(let a=0;a<e.length;a++){const s=e[a];s.at>t&&s.at<r&&(eT(e,s),a--)}}function Xj(e,t,r,a,s,l){Hj(e,s,l);for(let f=0;f<t.length;f++)e.push({value:t[f],at:F0(s,l,a[f]),easing:rT(r,f)})}function Yj(e,t){return e.at===t.at?e.value===null?1:-1:e.at-t.at}function Gj(e,t={}){var r;const a=Uj(e,t),s=a.map(l=>zd(...l)).filter(Boolean);return Y0(s,t,(r=a[0])===null||r===void 0?void 0:r[3].duration)}function Uj(e,t={}){var{defaultOptions:r={}}=t,a=is(t,["defaultOptions"]);const s=[],l=new Map,f={},b=new Map;let S=0,T=0,O=0;for(let j=0;j<e.length;j++){const F=e[j];if(H0(F)){b.set(F,T);continue}else if(!Array.isArray(F)){b.set(F.name,Ly(T,F.at,S,b));continue}const[z,D,R={}]=F;R.at!==void 0&&(T=Ly(T,R.at,S,b));let P=0;const y=Fd(z,f),p=y.length;for(let v=0;v<p;v++){const g=y[v],m=$j(g,l);for(const _ in D){const M=qj(_,m);let X=lT(D[_]);const H=X0(R,_);let{duration:B=r.duration||Yr.duration,easing:U=r.easing||Yr.easing}=H;if(Gc(U)){const Se=Dd(_);m5(X.length===2||!Se);const he=U.createAnimation(X,()=>"0",Se);U=he.easing,he.keyframes!==void 0&&(X=he.keyframes),he.duration!==void 0&&(B=he.duration)}const K=cT(R.delay,v,p)||0,ne=T+K,oe=ne+B;let{offset:fe=B0(X.length)}=H;fe.length===1&&fe[0]===0&&(fe[1]=1);const ve=length-X.length;ve>0&&W0(fe,ve),X.length===1&&X.unshift(null),Xj(M,X,U,fe,ne,oe),P=Math.max(K+B,P),O=Math.max(oe,O)}}S=T,T+=P}return l.forEach((j,F)=>{for(const z in j){const D=j[z];D.sort(Yj);const R=[],P=[],y=[];for(let p=0;p<D.length;p++){const{at:v,value:g,easing:m}=D[p];R.push(g),P.push(Ld(0,O,v)),y.push(m||Yr.easing)}P[0]!==0&&(P.unshift(0),R.unshift(R[0]),y.unshift("linear")),P[P.length-1]!==1&&(P.push(1),R.push(null)),s.push([F,z,R,Object.assign(Object.assign(Object.assign({},r),{duration:O,easing:y,offset:P}),a)])}}),s}function $j(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function qj(e,t){return t[e]||(t[e]=[]),t[e]}const Kj=5;function G0(e,t,r){const a=Math.max(t-Kj,0);return aT(r-e(a),t-a)}const ji={stiffness:100,damping:10,mass:1},Zj=(e=ji.stiffness,t=ji.damping,r=ji.mass)=>t/(2*Math.sqrt(e*r));function Qj(e,t,r){return e<t&&r>=t||e>t&&r<=t}const dT=({stiffness:e=ji.stiffness,damping:t=ji.damping,mass:r=ji.mass,from:a=0,to:s=1,velocity:l=0,restSpeed:f,restDistance:b}={})=>{l=l?La.s(l):0;const S={done:!1,hasReachedTarget:!1,current:a,target:s},T=s-a,O=Math.sqrt(e/r)/1e3,j=Zj(e,t,r),F=Math.abs(T)<5;f||(f=F?.01:2),b||(b=F?.005:.5);let z;if(j<1){const D=O*Math.sqrt(1-j*j);z=R=>s-Math.exp(-j*O*R)*((-l+j*O*T)/D*Math.sin(D*R)+T*Math.cos(D*R))}else z=D=>s-Math.exp(-O*D)*(T+(-l+O*T)*D);return D=>{S.current=z(D);const R=D===0?l:G0(z,D,S.current),P=Math.abs(R)<=f,y=Math.abs(s-S.current)<=b;return S.done=P&&y,S.hasReachedTarget=Qj(a,s,S.current),S}},Jj=({from:e=0,velocity:t=0,power:r=.8,decay:a=.325,bounceDamping:s,bounceStiffness:l,changeTarget:f,min:b,max:S,restDistance:T=.5,restSpeed:O})=>{a=La.ms(a);const j={hasReachedTarget:!1,done:!1,current:e,target:e},F=M=>b!==void 0&&M<b||S!==void 0&&M>S,z=M=>b===void 0?S:S===void 0||Math.abs(b-M)<Math.abs(S-M)?b:S;let D=r*t;const R=e+D,P=f===void 0?R:f(R);j.target=P,P!==R&&(D=P-e);const y=M=>-D*Math.exp(-M/a),p=M=>P+y(M),v=M=>{const X=y(M),H=p(M);j.done=Math.abs(X)<=T,j.current=j.done?P:H};let g,m;const _=M=>{F(j.current)&&(g=M,m=dT({from:j.current,to:z(j.current),velocity:G0(p,M,j.current),damping:s,stiffness:l,restDistance:T,restSpeed:O}))};return _(0),M=>{let X=!1;return!m&&g===void 0&&(X=!0,v(M),_(M)),g!==void 0&&M>g?(j.hasReachedTarget=!0,m(M-g)):(j.hasReachedTarget=!1,!X&&v(M),j)}},bp=10,eD=1e4;function tD(e,t=xo){let r,a=bp,s=e(0);const l=[t(s.current)];for(;!s.done&&a<eD;)s=e(a),l.push(t(s.done?s.target:s.current)),r===void 0&&s.hasReachedTarget&&(r=a),a+=bp;const f=a-bp;return l.length===1&&l.push(s.current),{keyframes:l,duration:f/1e3,overshootDuration:(r??f)/1e3}}function fT(e){const t=new WeakMap;return(r={})=>{const a=new Map,s=(f=0,b=100,S=0,T=!1)=>{const O=`${f}-${b}-${S}-${T}`;return a.has(O)||a.set(O,e(Object.assign({from:f,to:b,velocity:S,restSpeed:T?.05:2,restDistance:T?.01:.5},r))),a.get(O)},l=f=>(t.has(f)||t.set(f,tD(f)),t.get(f));return{createAnimation:(f,b,S,T,O)=>{var j,F;let z;const D=f.length;if(S&&D<=2&&f.every(rD)){const P=f[D-1],y=D===1?null:f[0];let p=0,v=0;const g=O==null?void 0:O.generator;if(g){const{animation:M,generatorStartTime:X}=O,H=(M==null?void 0:M.startTime)||X||0,B=(M==null?void 0:M.currentTime)||performance.now()-H,U=g(B).current;v=(j=y)!==null&&j!==void 0?j:U,(D===1||D===2&&f[0]===null)&&(p=G0(K=>g(K).current,B,U))}else v=(F=y)!==null&&F!==void 0?F:parseFloat(b());const m=s(v,P,p,T==null?void 0:T.includes("scale")),_=l(m);z=Object.assign(Object.assign({},_),{easing:"linear"}),O&&(O.generator=m,O.generatorStartTime=performance.now())}else z={easing:"ease",duration:l(s(0,100)).overshootDuration};return z}}}}const rD=e=>typeof e!="string",nD=fT(dT),oD=fT(Jj),aD={any:0,all:1};function pT(e,t,{root:r,margin:a,amount:s="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const l=Fd(e),f=new WeakMap,b=T=>{T.forEach(O=>{const j=f.get(O.target);if(O.isIntersecting!==!!j)if(O.isIntersecting){const F=t(O);typeof F=="function"?f.set(O.target,F):S.unobserve(O.target)}else j&&(j(O),f.delete(O.target))})},S=new IntersectionObserver(b,{root:r,rootMargin:a,threshold:typeof s=="number"?s:aD[s]});return l.forEach(T=>S.observe(T)),()=>S.disconnect()}const tc=new WeakMap;let Bo;function iD(e,t){if(t){const{inlineSize:r,blockSize:a}=t[0];return{width:r,height:a}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function sD({target:e,contentRect:t,borderBoxSize:r}){var a;(a=tc.get(e))===null||a===void 0||a.forEach(s=>{s({target:e,contentSize:t,get size(){return iD(e,r)}})})}function lD(e){e.forEach(sD)}function uD(){typeof ResizeObserver>"u"||(Bo=new ResizeObserver(lD))}function cD(e,t){Bo||uD();const r=Fd(e);return r.forEach(a=>{let s=tc.get(a);s||(s=new Set,tc.set(a,s)),s.add(t),Bo==null||Bo.observe(a)}),()=>{r.forEach(a=>{const s=tc.get(a);s==null||s.delete(t),s!=null&&s.size||Bo==null||Bo.unobserve(a)})}}const rc=new Set;let nl;function dD(){nl=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};rc.forEach(r=>r(t))},window.addEventListener("resize",nl)}function fD(e){return rc.add(e),nl||dD(),()=>{rc.delete(e),!rc.size&&nl&&(nl=void 0)}}function hT(e,t){return typeof e=="function"?fD(e):cD(e,t)}const pD=50,jy=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),hD=()=>({time:0,x:jy(),y:jy()}),gD={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Dy(e,t,r,a){const s=r[t],{length:l,position:f}=gD[t],b=s.current,S=r.time;s.current=e["scroll"+f],s.scrollLength=e["scroll"+l]-e["client"+l],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=Ld(0,s.scrollLength,s.current);const T=a-S;s.velocity=T>pD?0:aT(s.current-b,T)}function bD(e,t,r){Dy(e,"x",t,r),Dy(e,"y",t,r),t.time=r}function vD(e,t){let r={x:0,y:0},a=e;for(;a&&a!==t;)if(a instanceof HTMLElement)r.x+=a.offsetLeft,r.y+=a.offsetTop,a=a.offsetParent;else if(a instanceof SVGGraphicsElement&&"getBBox"in a){const{top:s,left:l}=a.getBBox();for(r.x+=l,r.y+=s;a&&a.tagName!=="svg";)a=a.parentNode}return r}const gT={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Yh={start:0,center:.5,end:1};function zy(e,t,r=0){let a=0;if(Yh[e]!==void 0&&(e=Yh[e]),H0(e)){const s=parseFloat(e);e.endsWith("px")?a=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?a=s/100*document.documentElement.clientWidth:e.endsWith("vh")?a=s/100*document.documentElement.clientHeight:e=s}return _o(e)&&(a=t*e),r+a}const mD=[0,0];function yD(e,t,r,a){let s=Array.isArray(e)?e:mD,l=0,f=0;return _o(e)?s=[e,e]:H0(e)&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Yh[e]?e:"0"]),l=zy(s[0],r,a),f=zy(s[1],t),l-f}const xD={x:0,y:0};function wD(e,t,r){let{offset:a=gT.All}=r;const{target:s=e,axis:l="y"}=r,f=l==="y"?"height":"width",b=s!==e?vD(s,e):xD,S=s===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:s.clientWidth,height:s.clientHeight},T={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let O=!t[l].interpolate;const j=a.length;for(let F=0;F<j;F++){const z=yD(a[F],T[f],S[f],b[l]);!O&&z!==t[l].interpolatorOffsets[F]&&(O=!0),t[l].offset[F]=z}O&&(t[l].interpolate=nT(B0(j),t[l].offset),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=t[l].interpolate(t[l].current)}function CD(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let a=t;for(;a&&a!=e;)r.x.targetOffset+=a.offsetLeft,r.y.targetOffset+=a.offsetTop,a=a.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}function SD(e,t,r,a={}){const s=a.axis||"y";return{measure:()=>CD(e,a.target,r),update:l=>{bD(e,r,l),(a.offset||a.target)&&wD(e,r,a)},notify:typeof t=="function"?()=>t(r):kD(t,r[s])}}function kD(e,t){return e.pause(),e.forEachNative((r,{easing:a})=>{var s,l;if(r.updateDuration)a||(r.easing=xo),r.updateDuration(1);else{const f={duration:1e3};a||(f.easing="linear"),(l=(s=r.effect)===null||s===void 0?void 0:s.updateTiming)===null||l===void 0||l.call(s,f)}}),()=>{e.currentTime=t.progress}}const js=new WeakMap,Fy=new WeakMap,vp=new WeakMap,Vy=e=>e===document.documentElement?window:e;function TD(e,t={}){var{container:r=document.documentElement}=t,a=is(t,["container"]);let s=vp.get(r);s||(s=new Set,vp.set(r,s));const l=hD(),f=SD(r,e,l,a);if(s.add(f),!js.has(r)){const T=()=>{const j=performance.now();for(const F of s)F.measure();for(const F of s)F.update(j);for(const F of s)F.notify()};js.set(r,T);const O=Vy(r);window.addEventListener("resize",T,{passive:!0}),r!==document.documentElement&&Fy.set(r,hT(r,T)),O.addEventListener("scroll",T,{passive:!0})}const b=js.get(r),S=requestAnimationFrame(b);return()=>{var T;typeof e!="function"&&e.stop(),cancelAnimationFrame(S);const O=vp.get(r);if(!O||(O.delete(f),O.size))return;const j=js.get(r);js.delete(r),j&&(Vy(r).removeEventListener("scroll",j),(T=Fy.get(r))===null||T===void 0||T(),window.removeEventListener("resize",j))}}function PD(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!_D(e,t):e!==t}function _D(e,t){const r=t.length;if(r!==e.length)return!1;for(let a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}function OD(e){return typeof e=="object"}function Wy(e,t){if(OD(e))return e;if(e&&t)return t[e]}let sa;function AD(){if(!sa)return;const e=sa.sort(MD).map(RD);e.forEach(By),e.forEach(By),sa=void 0}function mp(e){sa?J5(sa,e):(sa=[e],requestAnimationFrame(AD))}function ED(e){sa&&eT(sa,e)}const MD=(e,t)=>e.getDepth()-t.getDepth(),RD=e=>e.animateUpdates(),By=e=>e.next(),Hy=(e,t)=>new CustomEvent(e,{detail:{target:t}});function Gh(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function Xy(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const ND={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:a={}})=>{const{once:s}=a,l=is(a,["once"]);return pT(e,f=>{if(t(),Xy(e,"viewenter",f),!s)return b=>{r(),Xy(e,"viewleave",b)}},l)}},Yy=(e,t,r)=>a=>{a.pointerType&&a.pointerType!=="mouse"||(r(),Gh(e,t,a))},ID={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const a=Yy(e,"hoverstart",t),s=Yy(e,"hoverend",r);return e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",s),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",s)}}},LD={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const a=l=>{r(),Gh(e,"pressend",l),window.removeEventListener("pointerup",a)},s=l=>{t(),Gh(e,"pressstart",l),window.addEventListener("pointerup",a)};return e.addEventListener("pointerdown",s),()=>{e.removeEventListener("pointerdown",s),window.removeEventListener("pointerup",a)}}},nc={inView:ND,hover:ID,press:LD},Gy=["initial","animate",...Object.keys(nc),"exit"],Uh=new WeakMap;function jD(e={},t){let r,a=t?t.getDepth()+1:0;const s={initial:!0,animate:!0},l={},f={};for(const R of Gy)f[R]=typeof e[R]=="string"?e[R]:t==null?void 0:t.getContext()[R];const b=e.initial===!1?"animate":"initial";let S=Wy(e[b]||f[b],e.variants)||{},T=is(S,["transition"]);const O=Object.assign({},T);function*j(){var R,P;const y=T;T={};const p={};for(const M of Gy){if(!s[M])continue;const X=Wy(e[M]);if(X)for(const H in X)H!=="transition"&&(T[H]=X[H],p[H]=X0((P=(R=X.transition)!==null&&R!==void 0?R:e.transition)!==null&&P!==void 0?P:{},H))}const v=new Set([...Object.keys(T),...Object.keys(y)]),g=[];v.forEach(M=>{var X;T[M]===void 0&&(T[M]=O[M]),PD(y[M],T[M])&&((X=O[M])!==null&&X!==void 0||(O[M]=Pi.get(r,M)),g.push(zd(r,M,T[M],p[M])))}),yield;const m=g.map(M=>M()).filter(Boolean);if(!m.length)return;const _=T;r.dispatchEvent(Hy("motionstart",_)),Promise.all(m.map(M=>M.finished)).then(()=>{r.dispatchEvent(Hy("motioncomplete",_))}).catch(V0)}const F=(R,P)=>()=>{s[R]=P,mp(D)},z=()=>{for(const R in nc){const P=nc[R].isActive(e),y=l[R];P&&!y?l[R]=nc[R].subscribe(r,{enable:F(R,!0),disable:F(R,!1)},e):!P&&y&&(y(),delete l[R])}},D={update:R=>{r&&(e=R,z(),mp(D))},setActive:(R,P)=>{r&&(s[R]=P,mp(D))},animateUpdates:j,getDepth:()=>a,getTarget:()=>T,getOptions:()=>e,getContext:()=>f,mount:R=>(r=R,Uh.set(r,D),z(),()=>{Uh.delete(r),ED(D);for(const P in l)l[P]()}),isMounted:()=>!!r};return D}function bT(e){const t={},r=[];for(let a in e){const s=e[a];Dd(a)&&($i[a]&&(a=$i[a]),r.push(a),a=jd(a));let l=Array.isArray(s)?s[0]:s;const f=qi.get(a);f&&(l=_o(s)?f.toDefaultUnit(s):s),t[a]=l}return r.length&&(t.transform=iT(r)),t}const DD=e=>`-${e.toLowerCase()}`,zD=e=>e.replace(/[A-Z]/g,DD);function FD(e={}){const t=bT(e);let r="";for(const a in t)r+=a.startsWith("--")?a:zD(a),r+=`: ${t[a]}; `;return r}const VD=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:gT,animate:Bj,animateStyle:zd,createMotionState:jD,createStyleString:FD,createStyles:bT,getAnimationData:z0,getStyleName:$c,glide:oD,inView:pT,mountedStates:Uh,resize:hT,scroll:TD,spring:nD,stagger:Vj,style:Pi,timeline:Gj,withControls:Y0},Symbol.toStringTag,{value:"Module"})),WD=Il(VD);function BD(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var HD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,XD=BD(function(e){return HD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const YD=Object.freeze(Object.defineProperty({__proto__:null,default:XD},Symbol.toStringTag,{value:"Module"})),GD=Il(YD);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=v5,r=ee,a=y5,s=lr,l=lt,f=Ja,b=WD;function S(w){return w&&typeof w=="object"&&"default"in w?w:{default:w}}function T(w){if(w&&w.__esModule)return w;var A=Object.create(null);return w&&Object.keys(w).forEach(function(V){if(V!=="default"){var Y=Object.getOwnPropertyDescriptor(w,V);Object.defineProperty(A,V,Y.get?Y:{enumerable:!0,get:function(){return w[V]}})}}),A.default=w,Object.freeze(A)}var O=T(r),j=S(r),F=S(f),z="production",D=typeof process>"u"||process.env===void 0?z:"production",R=function(w){return{isEnabled:function(A){return w.some(function(V){return!!A[V]})}}},P={measureLayout:R(["layout","layoutId","drag"]),animation:R(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:R(["exit"]),drag:R(["drag","dragControls"]),focus:R(["whileFocus"]),hover:R(["whileHover","onHoverStart","onHoverEnd"]),tap:R(["whileTap","onTap","onTapStart","onTapCancel"]),pan:R(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:R(["whileInView","onViewportEnter","onViewportLeave"])};function y(w){for(var A in w)w[A]!==null&&(A==="projectionNodeConstructor"?P.projectionNodeConstructor=w[A]:P[A].Component=w[A])}var p=r.createContext({strict:!1}),v=Object.keys(P),g=v.length;function m(w,A,V){var Y=[],Z=r.useContext(p);if(!A)return null;D!=="production"&&V&&Z.strict&&a.invariant(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var se=0;se<g;se++){var le=v[se],ae=P[le],pe=ae.isEnabled,be=ae.Component;pe(w)&&be&&Y.push(O.createElement(be,t.__assign({key:le},w,{visualElement:A})))}return Y}var _=r.createContext({transformPagePoint:function(w){return w},isStatic:!1,reducedMotion:"never"}),M=r.createContext({});function X(){return r.useContext(M).visualElement}var H=r.createContext(null),B=typeof document<"u",U=B?r.useLayoutEffect:r.useEffect,K={current:null},ne=!1;function oe(){if(ne=!0,!!B)if(window.matchMedia){var w=window.matchMedia("(prefers-reduced-motion)"),A=function(){return K.current=w.matches};w.addListener(A),A()}else K.current=!1}function fe(){!ne&&oe();var w=t.__read(r.useState(K.current),1),A=w[0];return A}function ve(){var w=fe(),A=r.useContext(_).reducedMotion;return A==="never"?!1:A==="always"?!0:w}function Se(w,A,V,Y){var Z=r.useContext(p),se=X(),le=r.useContext(H),ae=ve(),pe=r.useRef(void 0);Y||(Y=Z.renderer),!pe.current&&Y&&(pe.current=Y(w,{visualState:A,parent:se,props:V,presenceId:le==null?void 0:le.id,blockInitialAnimation:(le==null?void 0:le.initial)===!1,shouldReduceMotion:ae}));var be=pe.current;return U(function(){be==null||be.syncRender()}),r.useEffect(function(){var xe;(xe=be==null?void 0:be.animationState)===null||xe===void 0||xe.animateChanges()}),U(function(){return function(){return be==null?void 0:be.notifyUnmount()}},[]),be}function he(w){return typeof w=="object"&&Object.prototype.hasOwnProperty.call(w,"current")}function ue(w,A,V){return r.useCallback(function(Y){var Z;Y&&((Z=w.mount)===null||Z===void 0||Z.call(w,Y)),A&&(Y?A.mount(Y):A.unmount()),V&&(typeof V=="function"?V(Y):he(V)&&(V.current=Y))},[A])}function ge(w){return Array.isArray(w)}function ye(w){return typeof w=="string"||ge(w)}function Te(w){var A={};return w.forEachValue(function(V,Y){return A[Y]=V.get()}),A}function Re(w){var A={};return w.forEachValue(function(V,Y){return A[Y]=V.getVelocity()}),A}function De(w,A,V,Y,Z){var se;return Y===void 0&&(Y={}),Z===void 0&&(Z={}),typeof A=="function"&&(A=A(V??w.custom,Y,Z)),typeof A=="string"&&(A=(se=w.variants)===null||se===void 0?void 0:se[A]),typeof A=="function"&&(A=A(V??w.custom,Y,Z)),A}function Le(w,A,V){var Y=w.getProps();return De(Y,A,V??Y.custom,Te(w),Re(w))}function Oe(w){var A;return typeof((A=w.animate)===null||A===void 0?void 0:A.start)=="function"||ye(w.initial)||ye(w.animate)||ye(w.whileHover)||ye(w.whileDrag)||ye(w.whileTap)||ye(w.whileFocus)||ye(w.exit)}function Xe(w){return!!(Oe(w)||w.variants)}function Ve(w,A){if(Oe(w)){var V=w.initial,Y=w.animate;return{initial:V===!1||ye(V)?V:void 0,animate:ye(Y)?Y:void 0}}return w.inherit!==!1?A:{}}function ke(w){var A=Ve(w,r.useContext(M)),V=A.initial,Y=A.animate;return r.useMemo(function(){return{initial:V,animate:Y}},[Me(V),Me(Y)])}function Me(w){return Array.isArray(w)?w.join(" "):w}function Ne(w){var A=r.useRef(null);return A.current===null&&(A.current=w()),A.current}var Ge={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Qe=1;function qe(){return Ne(function(){if(Ge.hasEverUpdated)return Qe++})}var He=r.createContext({}),Ze=r.createContext({});function bt(w,A,V,Y){var Z,se=A.layoutId,le=A.layout,ae=A.drag,pe=A.dragConstraints,be=A.layoutScroll,xe=r.useContext(Ze);!Y||!V||V!=null&&V.projection||(V.projection=new Y(w,V.getLatestValues(),(Z=V.parent)===null||Z===void 0?void 0:Z.projection),V.projection.setOptions({layoutId:se,layout:le,alwaysMeasureLayout:!!ae||pe&&he(pe),visualElement:V,scheduleRender:function(){return V.scheduleRender()},animationType:typeof le=="string"?le:"both",initialPromotionConfig:xe,layoutScroll:be}))}var wt=function(w){t.__extends(A,w);function A(){return w!==null&&w.apply(this,arguments)||this}return A.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},A.prototype.componentDidUpdate=function(){},A.prototype.updateProps=function(){var V=this.props,Y=V.visualElement,Z=V.props;Y&&Y.setProps(Z)},A.prototype.render=function(){return this.props.children},A}(j.default.Component);function It(w){var A=w.preloadedFeatures,V=w.createVisualElement,Y=w.projectionNodeConstructor,Z=w.useRender,se=w.useVisualState,le=w.Component;A&&y(A);function ae(pe,be){var xe=Pt(pe);pe=t.__assign(t.__assign({},pe),{layoutId:xe});var Pe=r.useContext(_),_e=null,Ae=ke(pe),Ee=Pe.isStatic?void 0:qe(),je=se(pe,Pe.isStatic);return!Pe.isStatic&&B&&(Ae.visualElement=Se(le,je,t.__assign(t.__assign({},Pe),pe),V),bt(Ee,pe,Ae.visualElement,Y||P.projectionNodeConstructor),_e=m(pe,Ae.visualElement,A)),O.createElement(wt,{visualElement:Ae.visualElement,props:t.__assign(t.__assign({},Pe),pe)},_e,O.createElement(M.Provider,{value:Ae},Z(le,pe,Ee,ue(je,Ae.visualElement,be),je,Pe.isStatic,Ae.visualElement)))}return r.forwardRef(ae)}function Pt(w){var A,V=w.layoutId,Y=(A=r.useContext(He))===null||A===void 0?void 0:A.id;return Y&&V!==void 0?Y+"-"+V:V}function Lt(w){function A(Y,Z){return Z===void 0&&(Z={}),It(w(Y,Z))}if(typeof Proxy>"u")return A;var V=new Map;return new Proxy(A,{get:function(Y,Z){return V.has(Z)||V.set(Z,A(Z)),V.get(Z)}})}var Zt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Qt(w){return typeof w!="string"||w.includes("-")?!1:!!(Zt.indexOf(w)>-1||/[A-Z]/.test(w))}var kt={};function yt(w){Object.assign(kt,w)}var Jt=["","X","Y","Z"],wr=["translate","scale","rotate","skew"],er=["transformPerspective","x","y","z"];wr.forEach(function(w){return Jt.forEach(function(A){return er.push(w+A)})});function so(w,A){return er.indexOf(w)-er.indexOf(A)}var Eo=new Set(er);function tr(w){return Eo.has(w)}var kn=new Set(["originX","originY","originZ"]);function Dr(w){return kn.has(w)}function zr(w,A){var V=A.layout,Y=A.layoutId;return tr(w)||Dr(w)||(V||Y!==void 0)&&(!!kt[w]||w==="opacity")}var Xt=function(w){return!!(w!==null&&typeof w=="object"&&w.getVelocity)},ri={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ba(w,A,V,Y){var Z=w.transform,se=w.transformKeys,le=A.enableHardwareAcceleration,ae=le===void 0?!0:le,pe=A.allowTransformNone,be=pe===void 0?!0:pe,xe="";se.sort(so);for(var Pe=!1,_e=se.length,Ae=0;Ae<_e;Ae++){var Ee=se[Ae];xe+="".concat(ri[Ee]||Ee,"(").concat(Z[Ee],") "),Ee==="z"&&(Pe=!0)}return!Pe&&ae?xe+="translateZ(0)":xe=xe.trim(),Y?xe=Y(Z,V?"":xe):be&&V&&(xe="none"),xe}function Ar(w){var A=w.originX,V=A===void 0?"50%":A,Y=w.originY,Z=Y===void 0?"50%":Y,se=w.originZ,le=se===void 0?0:se;return"".concat(V," ").concat(Z," ").concat(le)}function va(w){return w.startsWith("--")}var Tn=function(w,A){return A&&typeof w=="number"?A.transform(w):w},Fr=t.__assign(t.__assign({},s.number),{transform:Math.round}),Yn={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.degrees,rotateX:s.degrees,rotateY:s.degrees,rotateZ:s.degrees,scale:s.scale,scaleX:s.scale,scaleY:s.scale,scaleZ:s.scale,skew:s.degrees,skewX:s.degrees,skewY:s.degrees,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:s.alpha,originX:s.progressPercentage,originY:s.progressPercentage,originZ:s.px,zIndex:Fr,fillOpacity:s.alpha,strokeOpacity:s.alpha,numOctaves:Fr};function lo(w,A,V,Y){var Z,se=w.style,le=w.vars,ae=w.transform,pe=w.transformKeys,be=w.transformOrigin;pe.length=0;var xe=!1,Pe=!1,_e=!0;for(var Ae in A){var Ee=A[Ae];if(va(Ae)){le[Ae]=Ee;continue}var je=Yn[Ae],Ue=Tn(Ee,je);if(tr(Ae)){if(xe=!0,ae[Ae]=Ue,pe.push(Ae),!_e)continue;Ee!==((Z=je.default)!==null&&Z!==void 0?Z:0)&&(_e=!1)}else Dr(Ae)?(be[Ae]=Ue,Pe=!0):se[Ae]=Ue}xe?se.transform=ba(w,V,_e,Y):Y?se.transform=Y({},""):!A.transform&&se.transform&&(se.transform="none"),Pe&&(se.transformOrigin=Ar(be))}var br=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function uo(w,A,V){for(var Y in A)!Xt(A[Y])&&!zr(Y,V)&&(w[Y]=A[Y])}function ma(w,A,V){var Y=w.transformTemplate;return r.useMemo(function(){var Z=br();lo(Z,A,{enableHardwareAcceleration:!V},Y);var se=Z.vars,le=Z.style;return t.__assign(t.__assign({},se),le)},[A])}function ni(w,A,V){var Y=w.style||{},Z={};return uo(Z,Y,w),Object.assign(Z,ma(w,A,V)),w.transformValues&&(Z=w.transformValues(Z)),Z}function Gn(w,A,V){var Y={},Z=ni(w,A,V);return w.drag&&w.dragListener!==!1&&(Y.draggable=!1,Z.userSelect=Z.WebkitUserSelect=Z.WebkitTouchCallout="none",Z.touchAction=w.drag===!0?"none":"pan-".concat(w.drag==="x"?"y":"x")),Y.style=Z,Y}var ya=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Zr(w){return ya.has(w)}var Mo=function(w){return!Zr(w)};function Un(w){w&&(Mo=function(A){return A.startsWith("on")?!Zr(A):w(A)})}try{Un(GD.default)}catch{}function xa(w,A,V){var Y={};for(var Z in w)(Mo(Z)||V===!0&&Zr(Z)||!A&&!Zr(Z)||w.draggable&&Z.startsWith("onDrag"))&&(Y[Z]=w[Z]);return Y}function $n(w,A,V){return typeof w=="string"?w:s.px.transform(A+V*w)}function Vr(w,A,V){var Y=$n(A,w.x,w.width),Z=$n(V,w.y,w.height);return"".concat(Y," ").concat(Z)}var Pn={offset:"stroke-dashoffset",array:"stroke-dasharray"},qn={offset:"strokeDashoffset",array:"strokeDasharray"};function bs(w,A,V,Y,Z){V===void 0&&(V=1),Y===void 0&&(Y=0),Z===void 0&&(Z=!0),w.pathLength=1;var se=Z?Pn:qn;w[se.offset]=s.px.transform(-Y);var le=s.px.transform(A),ae=s.px.transform(V);w[se.array]="".concat(le," ").concat(ae)}function wa(w,A,V,Y){var Z=A.attrX,se=A.attrY,le=A.originX,ae=A.originY,pe=A.pathLength,be=A.pathSpacing,xe=be===void 0?1:be,Pe=A.pathOffset,_e=Pe===void 0?0:Pe,Ae=t.__rest(A,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);lo(w,Ae,V,Y),w.attrs=w.style,w.style={};var Ee=w.attrs,je=w.style,Ue=w.dimensions;Ee.transform&&(Ue&&(je.transform=Ee.transform),delete Ee.transform),Ue&&(le!==void 0||ae!==void 0||je.transform)&&(je.transformOrigin=Vr(Ue,le!==void 0?le:.5,ae!==void 0?ae:.5)),Z!==void 0&&(Ee.x=Z),se!==void 0&&(Ee.y=se),pe!==void 0&&bs(Ee,pe,xe,_e,!1)}var Ca=function(){return t.__assign(t.__assign({},br()),{attrs:{}})};function vs(w,A){var V=r.useMemo(function(){var Z=Ca();return wa(Z,A,{enableHardwareAcceleration:!1},w.transformTemplate),t.__assign(t.__assign({},Z.attrs),{style:t.__assign({},Z.style)})},[A]);if(w.style){var Y={};uo(Y,w.style,w),V.style=t.__assign(t.__assign({},Y),V.style)}return V}function Wr(w){w===void 0&&(w=!1);var A=function(V,Y,Z,se,le,ae){var pe=le.latestValues,be=Qt(V)?vs:Gn,xe=be(Y,pe,ae),Pe=xa(Y,typeof V=="string",w),_e=t.__assign(t.__assign(t.__assign({},Pe),xe),{ref:se});return Z&&(_e["data-projection-id"]=Z),r.createElement(V,_e)};return A}var co=/([a-z])([A-Z])/g,Sa="$1-$2",fo=function(w){return w.replace(co,Sa).toLowerCase()};function oi(w,A,V,Y){var Z=A.style,se=A.vars;Object.assign(w.style,Z,Y&&Y.getProjectionStyles(V));for(var le in se)w.style.setProperty(le,se[le])}var J=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function n(w,A,V,Y){oi(w,A,void 0,Y);for(var Z in A.attrs)w.setAttribute(J.has(Z)?Z:fo(Z),A.attrs[Z])}function o(w){var A=w.style,V={};for(var Y in A)(Xt(A[Y])||zr(Y,w))&&(V[Y]=A[Y]);return V}function i(w){var A=o(w);for(var V in w)if(Xt(w[V])){var Y=V==="x"||V==="y"?"attr"+V.toUpperCase():V;A[Y]=w[V]}return A}function u(w){return typeof w=="object"&&typeof w.start=="function"}var c=function(w){return Array.isArray(w)},d=function(w){return!!(w&&typeof w=="object"&&w.mix&&w.toValue)},h=function(w){return c(w)?w[w.length-1]||0:w};function x(w){var A=Xt(w)?w.get():w;return d(A)?A.toValue():A}function k(w,A,V,Y){var Z=w.scrapeMotionValuesFromProps,se=w.createRenderState,le=w.onMount,ae={latestValues:N(A,V,Y,Z),renderState:se()};return le&&(ae.mount=function(pe){return le(A,pe,ae)}),ae}var E=function(w){return function(A,V){var Y=r.useContext(M),Z=r.useContext(H);return V?k(w,A,Y,Z):Ne(function(){return k(w,A,Y,Z)})}};function N(w,A,V,Y){var Z={},se=(V==null?void 0:V.initial)===!1,le=Y(w);for(var ae in le)Z[ae]=x(le[ae]);var pe=w.initial,be=w.animate,xe=Oe(w),Pe=Xe(w);A&&Pe&&!xe&&w.inherit!==!1&&(pe??(pe=A.initial),be??(be=A.animate));var _e=se||pe===!1,Ae=_e?be:pe;if(Ae&&typeof Ae!="boolean"&&!u(Ae)){var Ee=Array.isArray(Ae)?Ae:[Ae];Ee.forEach(function(je){var Ue=De(w,je);if(Ue){var Je=Ue.transitionEnd;Ue.transition;var at=t.__rest(Ue,["transitionEnd","transition"]);for(var dt in at){var ft=at[dt];if(Array.isArray(ft)){var gt=_e?ft.length-1:0;ft=ft[gt]}ft!==null&&(Z[dt]=ft)}for(var dt in Je)Z[dt]=Je[dt]}})}return Z}var L={useVisualState:E({scrapeMotionValuesFromProps:i,createRenderState:Ca,onMount:function(w,A,V){var Y=V.renderState,Z=V.latestValues;try{Y.dimensions=typeof A.getBBox=="function"?A.getBBox():A.getBoundingClientRect()}catch{Y.dimensions={x:0,y:0,width:0,height:0}}wa(Y,Z,{enableHardwareAcceleration:!1},w.transformTemplate),n(A,Y)}})},W={useVisualState:E({scrapeMotionValuesFromProps:o,createRenderState:br})};function G(w,A,V,Y,Z){var se=A.forwardMotionProps,le=se===void 0?!1:se,ae=Qt(w)?L:W;return t.__assign(t.__assign({},ae),{preloadedFeatures:V,useRender:Wr(le),createVisualElement:Y,projectionNodeConstructor:Z,Component:w})}e.AnimationType=void 0,function(w){w.Animate="animate",w.Hover="whileHover",w.Tap="whileTap",w.Drag="whileDrag",w.Focus="whileFocus",w.InView="whileInView",w.Exit="exit"}(e.AnimationType||(e.AnimationType={}));function q(w,A,V,Y){return Y===void 0&&(Y={passive:!0}),w.addEventListener(A,V,Y),function(){return w.removeEventListener(A,V)}}function Q(w,A,V,Y){r.useEffect(function(){var Z=w.current;if(V&&Z)return q(Z,A,V,Y)},[w,A,V,Y])}function re(w){var A=w.whileFocus,V=w.visualElement,Y=function(){var se;(se=V.animationState)===null||se===void 0||se.setActive(e.AnimationType.Focus,!0)},Z=function(){var se;(se=V.animationState)===null||se===void 0||se.setActive(e.AnimationType.Focus,!1)};Q(V,"focus",A?Y:void 0),Q(V,"blur",A?Z:void 0)}function ie(w){return typeof PointerEvent<"u"&&w instanceof PointerEvent?w.pointerType==="mouse":w instanceof MouseEvent}function C(w){var A=!!w.touches;return A}function I(w){return function(A){var V=A instanceof MouseEvent,Y=!V||V&&A.button===0;Y&&w(A)}}var $={pageX:0,pageY:0};function te(w,A){A===void 0&&(A="page");var V=w.touches[0]||w.changedTouches[0],Y=V||$;return{x:Y[A+"X"],y:Y[A+"Y"]}}function ce(w,A){return A===void 0&&(A="page"),{x:w[A+"X"],y:w[A+"Y"]}}function de(w,A){return A===void 0&&(A="page"),{point:C(w)?te(w,A):ce(w,A)}}var we=function(w,A){A===void 0&&(A=!1);var V=function(Y){return w(Y,de(Y))};return A?I(V):V},Ce=function(){return B&&window.onpointerdown===null},Ie=function(){return B&&window.ontouchstart===null},We=function(){return B&&window.onmousedown===null},Fe={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},$e={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ke(w){return Ce()?w:Ie()?$e[w]:We()?Fe[w]:w}function st(w,A,V,Y){return q(w,Ke(A),we(V,A==="pointerdown"),Y)}function pt(w,A,V,Y){return Q(w,Ke(A),V&&we(V,A==="pointerdown"),Y)}function xt(w){var A=null;return function(){var V=function(){A=null};return A===null?(A=w,V):!1}}var Mt=xt("dragHorizontal"),_t=xt("dragVertical");function jt(w){var A=!1;if(w==="y")A=_t();else if(w==="x")A=Mt();else{var V=Mt(),Y=_t();V&&Y?A=function(){V(),Y()}:(V&&V(),Y&&Y())}return A}function Er(){var w=jt(!0);return w?(w(),!1):!0}function Kn(w,A,V){return function(Y,Z){var se;!ie(Y)||Er()||((se=w.animationState)===null||se===void 0||se.setActive(e.AnimationType.Hover,A),V==null||V(Y,Z))}}function ms(w){var A=w.onHoverStart,V=w.onHoverEnd,Y=w.whileHover,Z=w.visualElement;pt(Z,"pointerenter",A||Y?Kn(Z,!0,A):void 0,{passive:!A}),pt(Z,"pointerleave",V||Y?Kn(Z,!1,V):void 0,{passive:!V})}var ai=function(w,A){return A?w===A?!0:ai(w,A.parentElement):!1};function ar(w){return r.useEffect(function(){return function(){return w()}},[])}function cr(w){var A=w.onTap,V=w.onTapStart,Y=w.onTapCancel,Z=w.whileTap,se=w.visualElement,le=A||V||Y||Z,ae=r.useRef(!1),pe=r.useRef(null),be={passive:!(V||A||Y||Ee)};function xe(){var je;(je=pe.current)===null||je===void 0||je.call(pe),pe.current=null}function Pe(){var je;return xe(),ae.current=!1,(je=se.animationState)===null||je===void 0||je.setActive(e.AnimationType.Tap,!1),!Er()}function _e(je,Ue){Pe()&&(ai(se.getInstance(),je.target)?A==null||A(je,Ue):Y==null||Y(je,Ue))}function Ae(je,Ue){Pe()&&(Y==null||Y(je,Ue))}function Ee(je,Ue){var Je;xe(),!ae.current&&(ae.current=!0,pe.current=l.pipe(st(window,"pointerup",_e,be),st(window,"pointercancel",Ae,be)),(Je=se.animationState)===null||Je===void 0||Je.setActive(e.AnimationType.Tap,!0),V==null||V(je,Ue))}pt(se,"pointerdown",le?Ee:void 0,be),ar(xe)}var ys=new Set;function af(w,A,V){w||ys.has(A)||(console.warn(A),V&&console.warn(V),ys.add(A))}var sf=new WeakMap,lf=new WeakMap,W_=function(w){var A;(A=sf.get(w.target))===null||A===void 0||A(w)},B_=function(w){w.forEach(W_)};function H_(w){var A=w.root,V=t.__rest(w,["root"]),Y=A||document;lf.has(Y)||lf.set(Y,{});var Z=lf.get(Y),se=JSON.stringify(V);return Z[se]||(Z[se]=new IntersectionObserver(B_,t.__assign({root:A},V))),Z[se]}function X_(w,A,V){var Y=H_(A);return sf.set(w,V),Y.observe(w),function(){sf.delete(w),Y.unobserve(w)}}function Y_(w){var A=w.visualElement,V=w.whileInView,Y=w.onViewportEnter,Z=w.onViewportLeave,se=w.viewport,le=se===void 0?{}:se,ae=r.useRef({hasEnteredView:!1,isInView:!1}),pe=!!(V||Y||Z);le.once&&ae.current.hasEnteredView&&(pe=!1);var be=typeof IntersectionObserver>"u"?$_:U_;be(pe,ae.current,A,le)}var G_={some:0,all:1};function U_(w,A,V,Y){var Z=Y.root,se=Y.margin,le=Y.amount,ae=le===void 0?"some":le,pe=Y.once;r.useEffect(function(){if(w){var be={root:Z==null?void 0:Z.current,rootMargin:se,threshold:typeof ae=="number"?ae:G_[ae]},xe=function(Pe){var _e,Ae=Pe.isIntersecting;if(A.isInView!==Ae&&(A.isInView=Ae,!(pe&&!Ae&&A.hasEnteredView))){Ae&&(A.hasEnteredView=!0),(_e=V.animationState)===null||_e===void 0||_e.setActive(e.AnimationType.InView,Ae);var Ee=V.getProps(),je=Ae?Ee.onViewportEnter:Ee.onViewportLeave;je==null||je(Pe)}};return X_(V.getInstance(),be,xe)}},[w,Z,se,ae])}function $_(w,A,V,Y){var Z=Y.fallback,se=Z===void 0?!0:Z;r.useEffect(function(){!w||!se||(D!=="production"&&af(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var le;A.hasEnteredView=!0;var ae=V.getProps().onViewportEnter;ae==null||ae(null),(le=V.animationState)===null||le===void 0||le.setActive(e.AnimationType.InView,!0)}))},[w])}var Ro=function(w){return function(A){return w(A),null}},wb={inView:Ro(Y_),tap:Ro(cr),focus:Ro(re),hover:Ro(ms)},q_=0,K_=function(){return q_++},Cb=function(){return Ne(K_)};function uf(){var w=r.useContext(H);if(w===null)return[!0,null];var A=w.isPresent,V=w.onExitComplete,Y=w.register,Z=Cb();r.useEffect(function(){return Y(Z)},[]);var se=function(){return V==null?void 0:V(Z)};return!A&&V?[!1,se]:[!0]}function Z_(){return Q_(r.useContext(H))}function Q_(w){return w===null?!0:w.isPresent}function Sb(w,A){if(!Array.isArray(A))return!1;var V=A.length;if(V!==w.length)return!1;for(var Y=0;Y<V;Y++)if(A[Y]!==w[Y])return!1;return!0}var tu=function(w){return w*1e3},kb={linear:l.linear,easeIn:l.easeIn,easeInOut:l.easeInOut,easeOut:l.easeOut,circIn:l.circIn,circInOut:l.circInOut,circOut:l.circOut,backIn:l.backIn,backInOut:l.backInOut,backOut:l.backOut,anticipate:l.anticipate,bounceIn:l.bounceIn,bounceInOut:l.bounceInOut,bounceOut:l.bounceOut},Tb=function(w){if(Array.isArray(w)){a.invariant(w.length===4,"Cubic bezier arrays must contain four numerical values.");var A=t.__read(w,4),V=A[0],Y=A[1],Z=A[2],se=A[3];return l.cubicBezier(V,Y,Z,se)}else if(typeof w=="string")return a.invariant(kb[w]!==void 0,"Invalid easing type '".concat(w,"'")),kb[w];return w},J_=function(w){return Array.isArray(w)&&typeof w[0]!="number"},Pb=function(w,A){return w==="zIndex"?!1:!!(typeof A=="number"||Array.isArray(A)||typeof A=="string"&&s.complex.test(A)&&!A.startsWith("url("))},ka=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ru=function(w){return{type:"spring",stiffness:550,damping:w===0?2*Math.sqrt(550):30,restSpeed:10}},cf=function(){return{type:"keyframes",ease:"linear",duration:.3}},eO=function(w){return{type:"keyframes",duration:.8,values:w}},_b={x:ka,y:ka,z:ka,rotate:ka,rotateX:ka,rotateY:ka,rotateZ:ka,scaleX:ru,scaleY:ru,scale:ru,opacity:cf,backgroundColor:cf,color:cf,default:ru},tO=function(w,A){var V;return c(A)?V=eO:V=_b[w]||_b.default,t.__assign({to:A},V(A))},rO=t.__assign(t.__assign({},Yn),{color:s.color,backgroundColor:s.color,outlineColor:s.color,fill:s.color,stroke:s.color,borderColor:s.color,borderTopColor:s.color,borderRightColor:s.color,borderBottomColor:s.color,borderLeftColor:s.color,filter:s.filter,WebkitFilter:s.filter}),df=function(w){return rO[w]};function ff(w,A){var V,Y=df(w);return Y!==s.filter&&(Y=s.complex),(V=Y.getAnimatableNone)===null||V===void 0?void 0:V.call(Y,A)}var pf={current:!1};function nO(w){w.when,w.delay,w.delayChildren,w.staggerChildren,w.staggerDirection,w.repeat,w.repeatType,w.repeatDelay,w.from;var A=t.__rest(w,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(A).length}var Ob=!1;function oO(w){var A=w.ease,V=w.times,Y=w.yoyo,Z=w.flip,se=w.loop,le=t.__rest(w,["ease","times","yoyo","flip","loop"]),ae=t.__assign({},le);return V&&(ae.offset=V),le.duration&&(ae.duration=tu(le.duration)),le.repeatDelay&&(ae.repeatDelay=tu(le.repeatDelay)),A&&(ae.ease=J_(A)?A.map(Tb):Tb(A)),le.type==="tween"&&(ae.type="keyframes"),(Y||se||Z)&&(a.warning(!Ob,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Ob=!0,Y?ae.repeatType="reverse":se?ae.repeatType="loop":Z&&(ae.repeatType="mirror"),ae.repeat=se||Y||Z||le.repeat),le.type!=="spring"&&(ae.type="keyframes"),ae}function aO(w,A){var V,Y,Z=hf(w,A)||{};return(Y=(V=Z.delay)!==null&&V!==void 0?V:w.delay)!==null&&Y!==void 0?Y:0}function iO(w){return Array.isArray(w.to)&&w.to[0]===null&&(w.to=t.__spreadArray([],t.__read(w.to),!1),w.to[0]=w.from),w}function sO(w,A,V){var Y;return Array.isArray(A.to)&&((Y=w.duration)!==null&&Y!==void 0||(w.duration=.8)),iO(A),nO(w)||(w=t.__assign(t.__assign({},w),tO(V,A.to))),t.__assign(t.__assign({},A),oO(w))}function lO(w,A,V,Y,Z){var se,le=hf(Y,w),ae=(se=le.from)!==null&&se!==void 0?se:A.get(),pe=Pb(w,V);ae==="none"&&pe&&typeof V=="string"?ae=ff(w,V):Ab(ae)&&typeof V=="string"?ae=Eb(V):!Array.isArray(V)&&Ab(V)&&typeof ae=="string"&&(V=Eb(ae));var be=Pb(w,ae);a.warning(be===pe,"You are trying to animate ".concat(w,' from "').concat(ae,'" to "').concat(V,'". ').concat(ae," is not an animatable value - to enable this animation set ").concat(ae," to a value animatable to ").concat(V," via the `style` property."));function xe(){var _e={from:ae,to:V,velocity:A.getVelocity(),onComplete:Z,onUpdate:function(Ae){return A.set(Ae)}};return le.type==="inertia"||le.type==="decay"?l.inertia(t.__assign(t.__assign({},_e),le)):l.animate(t.__assign(t.__assign({},sO(le,_e,w)),{onUpdate:function(Ae){var Ee;_e.onUpdate(Ae),(Ee=le.onUpdate)===null||Ee===void 0||Ee.call(le,Ae)},onComplete:function(){var Ae;_e.onComplete(),(Ae=le.onComplete)===null||Ae===void 0||Ae.call(le)}}))}function Pe(){var _e,Ae,Ee=h(V);return A.set(Ee),Z(),(_e=le==null?void 0:le.onUpdate)===null||_e===void 0||_e.call(le,Ee),(Ae=le==null?void 0:le.onComplete)===null||Ae===void 0||Ae.call(le),{stop:function(){}}}return!be||!pe||le.type===!1?Pe:xe}function Ab(w){return w===0||typeof w=="string"&&parseFloat(w)===0&&w.indexOf(" ")===-1}function Eb(w){return typeof w=="number"?0:ff("",w)}function hf(w,A){return w[A]||w.default||w}function gf(w,A,V,Y){return Y===void 0&&(Y={}),pf.current&&(Y={type:!1}),A.start(function(Z){var se,le,ae=lO(w,A,V,Y,Z),pe=aO(Y,w),be=function(){return le=ae()};return pe?se=window.setTimeout(be,tu(pe)):be(),function(){clearTimeout(se),le==null||le.stop()}})}var uO=function(w){return/^\-?\d*\.?\d+$/.test(w)},cO=function(w){return/^0[^.\s]+$/.test(w)};function bf(w,A){w.indexOf(A)===-1&&w.push(A)}function vf(w,A){var V=w.indexOf(A);V>-1&&w.splice(V,1)}function dO(w,A,V){var Y=t.__read(w),Z=Y.slice(0),se=A<0?Z.length+A:A;if(se>=0&&se<Z.length){var le=V<0?Z.length+V:V,ae=t.__read(Z.splice(A,1),1),pe=ae[0];Z.splice(le,0,pe)}return Z}var xs=function(){function w(){this.subscriptions=[]}return w.prototype.add=function(A){var V=this;return bf(this.subscriptions,A),function(){return vf(V.subscriptions,A)}},w.prototype.notify=function(A,V,Y){var Z=this.subscriptions.length;if(Z)if(Z===1)this.subscriptions[0](A,V,Y);else for(var se=0;se<Z;se++){var le=this.subscriptions[se];le&&le(A,V,Y)}},w.prototype.getSize=function(){return this.subscriptions.length},w.prototype.clear=function(){this.subscriptions.length=0},w}(),fO=function(w){return!isNaN(parseFloat(w))},Mb=function(){function w(A){var V=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new xs,this.velocityUpdateSubscribers=new xs,this.renderSubscribers=new xs,this.canTrackVelocity=!1,this.updateAndNotify=function(Y,Z){Z===void 0&&(Z=!0),V.prev=V.current,V.current=Y;var se=f.getFrameData(),le=se.delta,ae=se.timestamp;V.lastUpdated!==ae&&(V.timeDelta=le,V.lastUpdated=ae,F.default.postRender(V.scheduleVelocityCheck)),V.prev!==V.current&&V.updateSubscribers.notify(V.current),V.velocityUpdateSubscribers.getSize()&&V.velocityUpdateSubscribers.notify(V.getVelocity()),Z&&V.renderSubscribers.notify(V.current)},this.scheduleVelocityCheck=function(){return F.default.postRender(V.velocityCheck)},this.velocityCheck=function(Y){var Z=Y.timestamp;Z!==V.lastUpdated&&(V.prev=V.current,V.velocityUpdateSubscribers.notify(V.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=A,this.canTrackVelocity=fO(this.current)}return w.prototype.onChange=function(A){return this.updateSubscribers.add(A)},w.prototype.clearListeners=function(){this.updateSubscribers.clear()},w.prototype.onRenderRequest=function(A){return A(this.get()),this.renderSubscribers.add(A)},w.prototype.attach=function(A){this.passiveEffect=A},w.prototype.set=function(A,V){V===void 0&&(V=!0),!V||!this.passiveEffect?this.updateAndNotify(A,V):this.passiveEffect(A,this.updateAndNotify)},w.prototype.get=function(){return this.current},w.prototype.getPrevious=function(){return this.prev},w.prototype.getVelocity=function(){return this.canTrackVelocity?l.velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},w.prototype.start=function(A){var V=this;return this.stop(),new Promise(function(Y){V.hasAnimated=!0,V.stopAnimation=A(Y)}).then(function(){return V.clearAnimation()})},w.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},w.prototype.isAnimating=function(){return!!this.stopAnimation},w.prototype.clearAnimation=function(){this.stopAnimation=null},w.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},w}();function cn(w){return new Mb(w)}var Rb=function(w){return function(A){return A.test(w)}},pO={test:function(w){return w==="auto"},parse:function(w){return w}},Nb=[s.number,s.px,s.percent,s.degrees,s.vw,s.vh,pO],ws=function(w){return Nb.find(Rb(w))},hO=t.__spreadArray(t.__spreadArray([],t.__read(Nb),!1),[s.color,s.complex],!1),gO=function(w){return hO.find(Rb(w))};function bO(w,A,V){w.hasValue(A)?w.getValue(A).set(V):w.addValue(A,cn(V))}function mf(w,A){var V=Le(w,A),Y=V?w.makeTargetAnimatable(V,!1):{},Z=Y.transitionEnd,se=Z===void 0?{}:Z;Y.transition;var le=t.__rest(Y,["transitionEnd","transition"]);le=t.__assign(t.__assign({},le),se);for(var ae in le){var pe=h(le[ae]);bO(w,ae,pe)}}function yf(w,A){var V=t.__spreadArray([],t.__read(A),!1).reverse();V.forEach(function(Y){var Z,se=w.getVariant(Y);se&&mf(w,se),(Z=w.variantChildren)===null||Z===void 0||Z.forEach(function(le){yf(le,A)})})}function vO(w,A){if(Array.isArray(A))return yf(w,A);if(typeof A=="string")return yf(w,[A]);mf(w,A)}function xf(w,A,V){var Y,Z,se,le,ae=Object.keys(A).filter(function(Ae){return!w.hasValue(Ae)}),pe=ae.length;if(pe)for(var be=0;be<pe;be++){var xe=ae[be],Pe=A[xe],_e=null;Array.isArray(Pe)&&(_e=Pe[0]),_e===null&&(_e=(Z=(Y=V[xe])!==null&&Y!==void 0?Y:w.readValue(xe))!==null&&Z!==void 0?Z:A[xe]),_e!=null&&(typeof _e=="string"&&(uO(_e)||cO(_e))?_e=parseFloat(_e):!gO(_e)&&s.complex.test(Pe)&&(_e=ff(xe,Pe)),w.addValue(xe,cn(_e)),(se=(le=V)[xe])!==null&&se!==void 0||(le[xe]=_e),w.setBaseTarget(xe,_e))}}function mO(w,A){if(A){var V=A[w]||A.default||A;return V.from}}function Ib(w,A,V){var Y,Z,se={};for(var le in w)se[le]=(Y=mO(le,A))!==null&&Y!==void 0?Y:(Z=V.getValue(le))===null||Z===void 0?void 0:Z.get();return se}function nu(w,A,V){V===void 0&&(V={}),w.notifyAnimationStart(A);var Y;if(Array.isArray(A)){var Z=A.map(function(le){return wf(w,le,V)});Y=Promise.all(Z)}else if(typeof A=="string")Y=wf(w,A,V);else{var se=typeof A=="function"?Le(w,A,V.custom):A;Y=Lb(w,se,V)}return Y.then(function(){return w.notifyAnimationComplete(A)})}function wf(w,A,V){var Y;V===void 0&&(V={});var Z=Le(w,A,V.custom),se=(Z||{}).transition,le=se===void 0?w.getDefaultTransition()||{}:se;V.transitionOverride&&(le=V.transitionOverride);var ae=Z?function(){return Lb(w,Z,V)}:function(){return Promise.resolve()},pe=!((Y=w.variantChildren)===null||Y===void 0)&&Y.size?function(Ae){Ae===void 0&&(Ae=0);var Ee=le.delayChildren,je=Ee===void 0?0:Ee,Ue=le.staggerChildren,Je=le.staggerDirection;return yO(w,A,je+Ae,Ue,Je,V)}:function(){return Promise.resolve()},be=le.when;if(be){var xe=t.__read(be==="beforeChildren"?[ae,pe]:[pe,ae],2),Pe=xe[0],_e=xe[1];return Pe().then(_e)}else return Promise.all([ae(),pe(V.delay)])}function Lb(w,A,V){var Y,Z=V===void 0?{}:V,se=Z.delay,le=se===void 0?0:se,ae=Z.transitionOverride,pe=Z.type,be=w.makeTargetAnimatable(A),xe=be.transition,Pe=xe===void 0?w.getDefaultTransition():xe,_e=be.transitionEnd,Ae=t.__rest(be,["transition","transitionEnd"]);ae&&(Pe=ae);var Ee=[],je=pe&&((Y=w.animationState)===null||Y===void 0?void 0:Y.getState()[pe]);for(var Ue in Ae){var Je=w.getValue(Ue),at=Ae[Ue];if(!(!Je||at===void 0||je&&CO(je,Ue))){var dt=t.__assign({delay:le},Pe);w.shouldReduceMotion&&tr(Ue)&&(dt=t.__assign(t.__assign({},dt),{type:!1,delay:0}));var ft=gf(Ue,Je,at,dt);Ee.push(ft)}}return Promise.all(Ee).then(function(){_e&&mf(w,_e)})}function yO(w,A,V,Y,Z,se){V===void 0&&(V=0),Y===void 0&&(Y=0),Z===void 0&&(Z=1);var le=[],ae=(w.variantChildren.size-1)*Y,pe=Z===1?function(be){return be===void 0&&(be=0),be*Y}:function(be){return be===void 0&&(be=0),ae-be*Y};return Array.from(w.variantChildren).sort(wO).forEach(function(be,xe){le.push(wf(be,A,t.__assign(t.__assign({},se),{delay:V+pe(xe)})).then(function(){return be.notifyAnimationComplete(A)}))}),Promise.all(le)}function xO(w){w.forEachValue(function(A){return A.stop()})}function wO(w,A){return w.sortNodePosition(A)}function CO(w,A){var V=w.protectedKeys,Y=w.needsAnimating,Z=V.hasOwnProperty(A)&&Y[A]!==!0;return Y[A]=!1,Z}var Cf=[e.AnimationType.Animate,e.AnimationType.InView,e.AnimationType.Focus,e.AnimationType.Hover,e.AnimationType.Tap,e.AnimationType.Drag,e.AnimationType.Exit],SO=t.__spreadArray([],t.__read(Cf),!1).reverse(),kO=Cf.length;function TO(w){return function(A){return Promise.all(A.map(function(V){var Y=V.animation,Z=V.options;return nu(w,Y,Z)}))}}function PO(w){var A=TO(w),V=OO(),Y={},Z=!0,se=function(xe,Pe){var _e=Le(w,Pe);if(_e){_e.transition;var Ae=_e.transitionEnd,Ee=t.__rest(_e,["transition","transitionEnd"]);xe=t.__assign(t.__assign(t.__assign({},xe),Ee),Ae)}return xe};function le(xe){return Y[xe]!==void 0}function ae(xe){A=xe(w)}function pe(xe,Pe){for(var _e,Ae=w.getProps(),Ee=w.getVariantContext(!0)||{},je=[],Ue=new Set,Je={},at=1/0,dt=function(Et){var vt=SO[Et],Ct=V[vt],Wt=(_e=Ae[vt])!==null&&_e!==void 0?_e:Ee[vt],dn=ye(Wt),Mr=vt===Pe?Ct.isActive:null;Mr===!1&&(at=Et);var Qr=Wt===Ee[vt]&&Wt!==Ae[vt]&&dn;if(Qr&&Z&&w.manuallyAnimateOnMount&&(Qr=!1),Ct.protectedKeys=t.__assign({},Je),!Ct.isActive&&Mr===null||!Wt&&!Ct.prevProp||u(Wt)||typeof Wt=="boolean")return"continue";var jo=_O(Ct.prevProp,Wt),Do=jo||vt===Pe&&Ct.isActive&&!Qr&&dn||Et>at&&dn,zo=Array.isArray(Wt)?Wt:[Wt],fn=zo.reduce(se,{});Mr===!1&&(fn={});var Ps=Ct.prevResolvedValues,li=Ps===void 0?{}:Ps,du=t.__assign(t.__assign({},li),fn),ui=function(ut){Do=!0,Ue.delete(ut),Ct.needsAnimating[ut]=!0};for(var Br in du){var Tt=fn[Br],tt=li[Br];Je.hasOwnProperty(Br)||(Tt!==tt?c(Tt)&&c(tt)?!Sb(Tt,tt)||jo?ui(Br):Ct.protectedKeys[Br]=!0:Tt!==void 0?ui(Br):Ue.add(Br):Tt!==void 0&&Ue.has(Br)?ui(Br):Ct.protectedKeys[Br]=!0)}Ct.prevProp=Wt,Ct.prevResolvedValues=fn,Ct.isActive&&(Je=t.__assign(t.__assign({},Je),fn)),Z&&w.blockInitialAnimation&&(Do=!1),Do&&!Qr&&je.push.apply(je,t.__spreadArray([],t.__read(zo.map(function(ut){return{animation:ut,options:t.__assign({type:vt},xe)}})),!1))},ft=0;ft<kO;ft++)dt(ft);if(Y=t.__assign({},Je),Ue.size){var gt={};Ue.forEach(function(Et){var vt=w.getBaseTarget(Et);vt!==void 0&&(gt[Et]=vt)}),je.push({animation:gt})}var At=!!je.length;return Z&&Ae.initial===!1&&!w.manuallyAnimateOnMount&&(At=!1),Z=!1,At?A(je):Promise.resolve()}function be(xe,Pe,_e){var Ae;if(V[xe].isActive===Pe)return Promise.resolve();(Ae=w.variantChildren)===null||Ae===void 0||Ae.forEach(function(Ue){var Je;return(Je=Ue.animationState)===null||Je===void 0?void 0:Je.setActive(xe,Pe)}),V[xe].isActive=Pe;var Ee=pe(_e,xe);for(var je in V)V[je].protectedKeys={};return Ee}return{isAnimated:le,animateChanges:pe,setActive:be,setAnimateFunction:ae,getState:function(){return V}}}function _O(w,A){return typeof A=="string"?A!==w:ge(A)?!Sb(A,w):!1}function Ta(w){return w===void 0&&(w=!1),{isActive:w,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OO(){var w;return w={},w[e.AnimationType.Animate]=Ta(!0),w[e.AnimationType.InView]=Ta(),w[e.AnimationType.Hover]=Ta(),w[e.AnimationType.Tap]=Ta(),w[e.AnimationType.Drag]=Ta(),w[e.AnimationType.Focus]=Ta(),w[e.AnimationType.Exit]=Ta(),w}var Sf={animation:Ro(function(w){var A=w.visualElement,V=w.animate;A.animationState||(A.animationState=PO(A)),u(V)&&r.useEffect(function(){return V.subscribe(A)},[V])}),exit:Ro(function(w){var A=w.custom,V=w.visualElement,Y=t.__read(uf(),2),Z=Y[0],se=Y[1],le=r.useContext(H);r.useEffect(function(){var ae,pe;V.isPresent=Z;var be=(ae=V.animationState)===null||ae===void 0?void 0:ae.setActive(e.AnimationType.Exit,!Z,{custom:(pe=le==null?void 0:le.custom)!==null&&pe!==void 0?pe:A});!Z&&(be==null||be.then(se))},[Z])})},jb=function(){function w(A,V,Y){var Z=this,se=Y===void 0?{}:Y,le=se.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(Z.lastMoveEvent&&Z.lastMoveEventInfo){var _e=Tf(Z.lastMoveEventInfo,Z.history),Ae=Z.startEvent!==null,Ee=l.distance(_e.offset,{x:0,y:0})>=3;if(!(!Ae&&!Ee)){var je=_e.point,Ue=f.getFrameData().timestamp;Z.history.push(t.__assign(t.__assign({},je),{timestamp:Ue}));var Je=Z.handlers,at=Je.onStart,dt=Je.onMove;Ae||(at&&at(Z.lastMoveEvent,_e),Z.startEvent=Z.lastMoveEvent),dt&&dt(Z.lastMoveEvent,_e)}}},this.handlePointerMove=function(_e,Ae){if(Z.lastMoveEvent=_e,Z.lastMoveEventInfo=kf(Ae,Z.transformPagePoint),ie(_e)&&_e.buttons===0){Z.handlePointerUp(_e,Ae);return}F.default.update(Z.updatePoint,!0)},this.handlePointerUp=function(_e,Ae){Z.end();var Ee=Z.handlers,je=Ee.onEnd,Ue=Ee.onSessionEnd,Je=Tf(kf(Ae,Z.transformPagePoint),Z.history);Z.startEvent&&je&&je(_e,Je),Ue&&Ue(_e,Je)},!(C(A)&&A.touches.length>1)){this.handlers=V,this.transformPagePoint=le;var ae=de(A),pe=kf(ae,this.transformPagePoint),be=pe.point,xe=f.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},be),{timestamp:xe})];var Pe=V.onSessionStart;Pe&&Pe(A,Tf(pe,this.history)),this.removeListeners=l.pipe(st(window,"pointermove",this.handlePointerMove),st(window,"pointerup",this.handlePointerUp),st(window,"pointercancel",this.handlePointerUp))}}return w.prototype.updateHandlers=function(A){this.handlers=A},w.prototype.end=function(){this.removeListeners&&this.removeListeners(),f.cancelSync.update(this.updatePoint)},w}();function kf(w,A){return A?{point:A(w.point)}:w}function Db(w,A){return{x:w.x-A.x,y:w.y-A.y}}function Tf(w,A){var V=w.point;return{point:V,delta:Db(V,zb(A)),offset:Db(V,AO(A)),velocity:EO(A,.1)}}function AO(w){return w[0]}function zb(w){return w[w.length-1]}function EO(w,A){if(w.length<2)return{x:0,y:0};for(var V=w.length-1,Y=null,Z=zb(w);V>=0&&(Y=w[V],!(Z.timestamp-Y.timestamp>tu(A)));)V--;if(!Y)return{x:0,y:0};var se=(Z.timestamp-Y.timestamp)/1e3;if(se===0)return{x:0,y:0};var le={x:(Z.x-Y.x)/se,y:(Z.y-Y.y)/se};return le.x===1/0&&(le.x=0),le.y===1/0&&(le.y=0),le}function Zn(w){return w.max-w.min}function Fb(w,A,V){return A===void 0&&(A=0),V===void 0&&(V=.01),l.distance(w,A)<V}function Vb(w,A,V,Y){Y===void 0&&(Y=.5),w.origin=Y,w.originPoint=l.mix(A.min,A.max,w.origin),w.scale=Zn(V)/Zn(A),(Fb(w.scale,1,1e-4)||isNaN(w.scale))&&(w.scale=1),w.translate=l.mix(V.min,V.max,w.origin)-w.originPoint,(Fb(w.translate)||isNaN(w.translate))&&(w.translate=0)}function Cs(w,A,V,Y){Vb(w.x,A.x,V.x,Y==null?void 0:Y.originX),Vb(w.y,A.y,V.y,Y==null?void 0:Y.originY)}function Wb(w,A,V){w.min=V.min+A.min,w.max=w.min+Zn(A)}function MO(w,A,V){Wb(w.x,A.x,V.x),Wb(w.y,A.y,V.y)}function Bb(w,A,V){w.min=A.min-V.min,w.max=w.min+Zn(A)}function Ss(w,A,V){Bb(w.x,A.x,V.x),Bb(w.y,A.y,V.y)}function RO(w,A,V){var Y=A.min,Z=A.max;return Y!==void 0&&w<Y?w=V?l.mix(Y,w,V.min):Math.max(w,Y):Z!==void 0&&w>Z&&(w=V?l.mix(Z,w,V.max):Math.min(w,Z)),w}function Hb(w,A,V){return{min:A!==void 0?w.min+A:void 0,max:V!==void 0?w.max+V-(w.max-w.min):void 0}}function NO(w,A){var V=A.top,Y=A.left,Z=A.bottom,se=A.right;return{x:Hb(w.x,Y,se),y:Hb(w.y,V,Z)}}function Xb(w,A){var V,Y=A.min-w.min,Z=A.max-w.max;return A.max-A.min<w.max-w.min&&(V=t.__read([Z,Y],2),Y=V[0],Z=V[1]),{min:Y,max:Z}}function IO(w,A){return{x:Xb(w.x,A.x),y:Xb(w.y,A.y)}}function LO(w,A){var V=.5,Y=Zn(w),Z=Zn(A);return Z>Y?V=l.progress(A.min,A.max-Y,w.min):Y>Z&&(V=l.progress(w.min,w.max-Z,A.min)),l.clamp(0,1,V)}function jO(w,A){var V={};return A.min!==void 0&&(V.min=A.min-w.min),A.max!==void 0&&(V.max=A.max-w.min),V}var Pf=.35;function DO(w){return w===void 0&&(w=Pf),w===!1?w=0:w===!0&&(w=Pf),{x:Yb(w,"left","right"),y:Yb(w,"top","bottom")}}function Yb(w,A,V){return{min:Gb(w,A),max:Gb(w,V)}}function Gb(w,A){var V;return typeof w=="number"?w:(V=w[A])!==null&&V!==void 0?V:0}var Ub=function(){return{translate:0,scale:1,origin:0,originPoint:0}},ks=function(){return{x:Ub(),y:Ub()}},$b=function(){return{min:0,max:0}},dr=function(){return{x:$b(),y:$b()}};function Qn(w){return[w("x"),w("y")]}function qb(w){var A=w.top,V=w.left,Y=w.right,Z=w.bottom;return{x:{min:V,max:Y},y:{min:A,max:Z}}}function zO(w){var A=w.x,V=w.y;return{top:V.min,right:A.max,bottom:V.max,left:A.min}}function FO(w,A){if(!A)return w;var V=A({x:w.left,y:w.top}),Y=A({x:w.right,y:w.bottom});return{top:V.y,left:V.x,bottom:Y.y,right:Y.x}}function _f(w){return w===void 0||w===1}function Kb(w){var A=w.scale,V=w.scaleX,Y=w.scaleY;return!_f(A)||!_f(V)||!_f(Y)}function No(w){return Kb(w)||Zb(w.x)||Zb(w.y)||w.z||w.rotate||w.rotateX||w.rotateY}function Zb(w){return w&&w!=="0%"}function ou(w,A,V){var Y=w-V,Z=A*Y;return V+Z}function Qb(w,A,V,Y,Z){return Z!==void 0&&(w=ou(w,Z,Y)),ou(w,V,Y)+A}function Of(w,A,V,Y,Z){A===void 0&&(A=0),V===void 0&&(V=1),w.min=Qb(w.min,A,V,Y,Z),w.max=Qb(w.max,A,V,Y,Z)}function Jb(w,A){var V=A.x,Y=A.y;Of(w.x,V.translate,V.scale,V.originPoint),Of(w.y,Y.translate,Y.scale,Y.originPoint)}function VO(w,A,V,Y){var Z,se;Y===void 0&&(Y=!1);var le=V.length;if(le){A.x=A.y=1;for(var ae,pe,be=0;be<le;be++)ae=V[be],pe=ae.projectionDelta,((se=(Z=ae.instance)===null||Z===void 0?void 0:Z.style)===null||se===void 0?void 0:se.display)!=="contents"&&(Y&&ae.options.layoutScroll&&ae.scroll&&ae!==ae.root&&ii(w,{x:-ae.scroll.x,y:-ae.scroll.y}),pe&&(A.x*=pe.x.scale,A.y*=pe.y.scale,Jb(w,pe)),Y&&No(ae.latestValues)&&ii(w,ae.latestValues))}}function Io(w,A){w.min=w.min+A,w.max=w.max+A}function ev(w,A,V){var Y=t.__read(V,3),Z=Y[0],se=Y[1],le=Y[2],ae=A[le]!==void 0?A[le]:.5,pe=l.mix(w.min,w.max,ae);Of(w,A[Z],A[se],pe,A.scale)}var WO=["x","scaleX","originX"],BO=["y","scaleY","originY"];function ii(w,A){ev(w.x,A,WO),ev(w.y,A,BO)}function tv(w,A){return qb(FO(w.getBoundingClientRect(),A))}function HO(w,A,V){var Y=tv(w,V),Z=A.scroll;return Z&&(Io(Y.x,Z.x),Io(Y.y,Z.y)),Y}var XO=new WeakMap,YO=function(){function w(A){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=dr(),this.visualElement=A}return w.prototype.start=function(A,V){var Y=this,Z=V===void 0?{}:V,se=Z.snapToCursor,le=se===void 0?!1:se;if(this.visualElement.isPresent!==!1){var ae=function(Pe){Y.stopAnimation(),le&&Y.snapToCursor(de(Pe,"page").point)},pe=function(Pe,_e){var Ae,Ee=Y.getProps(),je=Ee.drag,Ue=Ee.dragPropagation,Je=Ee.onDragStart;je&&!Ue&&(Y.openGlobalLock&&Y.openGlobalLock(),Y.openGlobalLock=jt(je),!Y.openGlobalLock)||(Y.isDragging=!0,Y.currentDirection=null,Y.resolveConstraints(),Y.visualElement.projection&&(Y.visualElement.projection.isAnimationBlocked=!0,Y.visualElement.projection.target=void 0),Qn(function(at){var dt,ft,gt=Y.getAxisMotionValue(at).get()||0;if(s.percent.test(gt)){var At=(ft=(dt=Y.visualElement.projection)===null||dt===void 0?void 0:dt.layout)===null||ft===void 0?void 0:ft.actual[at];if(At){var Et=Zn(At);gt=Et*(parseFloat(gt)/100)}}Y.originPoint[at]=gt}),Je==null||Je(Pe,_e),(Ae=Y.visualElement.animationState)===null||Ae===void 0||Ae.setActive(e.AnimationType.Drag,!0))},be=function(Pe,_e){var Ae=Y.getProps(),Ee=Ae.dragPropagation,je=Ae.dragDirectionLock,Ue=Ae.onDirectionLock,Je=Ae.onDrag;if(!(!Ee&&!Y.openGlobalLock)){var at=_e.offset;if(je&&Y.currentDirection===null){Y.currentDirection=GO(at),Y.currentDirection!==null&&(Ue==null||Ue(Y.currentDirection));return}Y.updateAxis("x",_e.point,at),Y.updateAxis("y",_e.point,at),Y.visualElement.syncRender(),Je==null||Je(Pe,_e)}},xe=function(Pe,_e){return Y.stop(Pe,_e)};this.panSession=new jb(A,{onSessionStart:ae,onStart:pe,onMove:be,onSessionEnd:xe},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},w.prototype.stop=function(A,V){var Y=this.isDragging;if(this.cancel(),!!Y){var Z=V.velocity;this.startAnimation(Z);var se=this.getProps().onDragEnd;se==null||se(A,V)}},w.prototype.cancel=function(){var A,V;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(A=this.panSession)===null||A===void 0||A.end(),this.panSession=void 0;var Y=this.getProps().dragPropagation;!Y&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(V=this.visualElement.animationState)===null||V===void 0||V.setActive(e.AnimationType.Drag,!1)},w.prototype.updateAxis=function(A,V,Y){var Z=this.getProps().drag;if(!(!Y||!au(A,Z,this.currentDirection))){var se=this.getAxisMotionValue(A),le=this.originPoint[A]+Y[A];this.constraints&&this.constraints[A]&&(le=RO(le,this.constraints[A],this.elastic[A])),se.set(le)}},w.prototype.resolveConstraints=function(){var A=this,V=this.getProps(),Y=V.dragConstraints,Z=V.dragElastic,se=(this.visualElement.projection||{}).layout,le=this.constraints;Y&&he(Y)?this.constraints||(this.constraints=this.resolveRefConstraints()):Y&&se?this.constraints=NO(se.actual,Y):this.constraints=!1,this.elastic=DO(Z),le!==this.constraints&&se&&this.constraints&&!this.hasMutatedConstraints&&Qn(function(ae){A.getAxisMotionValue(ae)&&(A.constraints[ae]=jO(se.actual[ae],A.constraints[ae]))})},w.prototype.resolveRefConstraints=function(){var A=this.getProps(),V=A.dragConstraints,Y=A.onMeasureDragConstraints;if(!V||!he(V))return!1;var Z=V.current;a.invariant(Z!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var se=this.visualElement.projection;if(!se||!se.layout)return!1;var le=HO(Z,se.root,this.visualElement.getTransformPagePoint()),ae=IO(se.layout.actual,le);if(Y){var pe=Y(zO(ae));this.hasMutatedConstraints=!!pe,pe&&(ae=qb(pe))}return ae},w.prototype.startAnimation=function(A){var V=this,Y=this.getProps(),Z=Y.drag,se=Y.dragMomentum,le=Y.dragElastic,ae=Y.dragTransition,pe=Y.dragSnapToOrigin,be=Y.onDragTransitionEnd,xe=this.constraints||{},Pe=Qn(function(_e){var Ae;if(au(_e,Z,V.currentDirection)){var Ee=(Ae=xe==null?void 0:xe[_e])!==null&&Ae!==void 0?Ae:{};pe&&(Ee={min:0,max:0});var je=le?200:1e6,Ue=le?40:1e7,Je=t.__assign(t.__assign({type:"inertia",velocity:se?A[_e]:0,bounceStiffness:je,bounceDamping:Ue,timeConstant:750,restDelta:1,restSpeed:10},ae),Ee);return V.startAxisValueAnimation(_e,Je)}});return Promise.all(Pe).then(be)},w.prototype.startAxisValueAnimation=function(A,V){var Y=this.getAxisMotionValue(A);return gf(A,Y,0,V)},w.prototype.stopAnimation=function(){var A=this;Qn(function(V){return A.getAxisMotionValue(V).stop()})},w.prototype.getAxisMotionValue=function(A){var V,Y,Z="_drag"+A.toUpperCase(),se=this.visualElement.getProps()[Z];return se||this.visualElement.getValue(A,(Y=(V=this.visualElement.getProps().initial)===null||V===void 0?void 0:V[A])!==null&&Y!==void 0?Y:0)},w.prototype.snapToCursor=function(A){var V=this;Qn(function(Y){var Z=V.getProps().drag;if(au(Y,Z,V.currentDirection)){var se=V.visualElement.projection,le=V.getAxisMotionValue(Y);if(se&&se.layout){var ae=se.layout.actual[Y],pe=ae.min,be=ae.max;le.set(A[Y]-l.mix(pe,be,.5))}}})},w.prototype.scalePositionWithinConstraints=function(){var A=this,V,Y=this.getProps(),Z=Y.drag,se=Y.dragConstraints,le=this.visualElement.projection;if(!(!he(se)||!le||!this.constraints)){this.stopAnimation();var ae={x:0,y:0};Qn(function(be){var xe=A.getAxisMotionValue(be);if(xe){var Pe=xe.get();ae[be]=LO({min:Pe,max:Pe},A.constraints[be])}});var pe=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=pe?pe({},""):"none",(V=le.root)===null||V===void 0||V.updateScroll(),le.updateLayout(),this.resolveConstraints(),Qn(function(be){if(au(be,Z,null)){var xe=A.getAxisMotionValue(be),Pe=A.constraints[be],_e=Pe.min,Ae=Pe.max;xe.set(l.mix(_e,Ae,ae[be]))}})}},w.prototype.addListeners=function(){var A=this,V;XO.set(this.visualElement,this);var Y=this.visualElement.getInstance(),Z=st(Y,"pointerdown",function(be){var xe=A.getProps(),Pe=xe.drag,_e=xe.dragListener,Ae=_e===void 0?!0:_e;Pe&&Ae&&A.start(be)}),se=function(){var be=A.getProps().dragConstraints;he(be)&&(A.constraints=A.resolveRefConstraints())},le=this.visualElement.projection,ae=le.addEventListener("measure",se);le&&!le.layout&&((V=le.root)===null||V===void 0||V.updateScroll(),le.updateLayout()),se();var pe=q(window,"resize",function(){return A.scalePositionWithinConstraints()});return le.addEventListener("didUpdate",function(be){var xe=be.delta,Pe=be.hasLayoutChanged;A.isDragging&&Pe&&(Qn(function(_e){var Ae=A.getAxisMotionValue(_e);Ae&&(A.originPoint[_e]+=xe[_e].translate,Ae.set(Ae.get()+xe[_e].translate))}),A.visualElement.syncRender())}),function(){pe(),Z(),ae()}},w.prototype.getProps=function(){var A=this.visualElement.getProps(),V=A.drag,Y=V===void 0?!1:V,Z=A.dragDirectionLock,se=Z===void 0?!1:Z,le=A.dragPropagation,ae=le===void 0?!1:le,pe=A.dragConstraints,be=pe===void 0?!1:pe,xe=A.dragElastic,Pe=xe===void 0?Pf:xe,_e=A.dragMomentum,Ae=_e===void 0?!0:_e;return t.__assign(t.__assign({},A),{drag:Y,dragDirectionLock:se,dragPropagation:ae,dragConstraints:be,dragElastic:Pe,dragMomentum:Ae})},w}();function au(w,A,V){return(A===!0||A===w)&&(V===null||V===w)}function GO(w,A){A===void 0&&(A=10);var V=null;return Math.abs(w.y)>A?V="y":Math.abs(w.x)>A&&(V="x"),V}function UO(w){var A=w.dragControls,V=w.visualElement,Y=Ne(function(){return new YO(V)});r.useEffect(function(){return A&&A.subscribe(Y)},[Y,A]),r.useEffect(function(){return Y.addListeners()},[Y])}function $O(w){var A=w.onPan,V=w.onPanStart,Y=w.onPanEnd,Z=w.onPanSessionStart,se=w.visualElement,le=A||V||Y||Z,ae=r.useRef(null),pe=r.useContext(_).transformPagePoint,be={onSessionStart:Z,onStart:V,onMove:A,onEnd:function(Pe,_e){ae.current=null,Y&&Y(Pe,_e)}};r.useEffect(function(){ae.current!==null&&ae.current.updateHandlers(be)});function xe(Pe){ae.current=new jb(Pe,be,{transformPagePoint:pe})}pt(se,"pointerdown",le&&xe),ar(function(){return ae.current&&ae.current.end()})}var rv={pan:Ro($O),drag:Ro(UO)},iu=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function qO(){var w=iu.map(function(){return new xs}),A={},V={clearAllListeners:function(){return w.forEach(function(Y){return Y.clear()})},updatePropListeners:function(Y){iu.forEach(function(Z){var se,le="on"+Z,ae=Y[le];(se=A[Z])===null||se===void 0||se.call(A),ae&&(A[Z]=V[le](ae))})}};return w.forEach(function(Y,Z){V["on"+iu[Z]]=function(se){return Y.add(se)},V["notify"+iu[Z]]=function(){for(var se=[],le=0;le<arguments.length;le++)se[le]=arguments[le];return Y.notify.apply(Y,t.__spreadArray([],t.__read(se),!1))}}),V}function KO(w,A,V){var Y;for(var Z in A){var se=A[Z],le=V[Z];if(Xt(se))w.addValue(Z,se);else if(Xt(le))w.addValue(Z,cn(se));else if(le!==se)if(w.hasValue(Z)){var ae=w.getValue(Z);!ae.hasAnimated&&ae.set(se)}else w.addValue(Z,cn((Y=w.getStaticValue(Z))!==null&&Y!==void 0?Y:se))}for(var Z in V)A[Z]===void 0&&w.removeValue(Z);return A}var su=function(w){var A=w.treeType,V=A===void 0?"":A,Y=w.build,Z=w.getBaseTarget,se=w.makeTargetAnimatable,le=w.measureViewportBox,ae=w.render,pe=w.readValueFromInstance,be=w.removeValueFromRenderState,xe=w.sortNodePosition,Pe=w.scrapeMotionValuesFromProps;return function(_e,Ae){var Ee=_e.parent,je=_e.props,Ue=_e.presenceId,Je=_e.blockInitialAnimation,at=_e.visualState,dt=_e.shouldReduceMotion;Ae===void 0&&(Ae={});var ft=!1,gt=at.latestValues,At=at.renderState,Et,vt=qO(),Ct=new Map,Wt=new Map,dn={},Mr=t.__assign({},gt),Qr;function jo(){!Et||!ft||(Do(),ae(Et,At,je.style,Tt.projection))}function Do(){Y(Tt,At,gt,Ae,je)}function zo(){vt.notifyUpdate(gt)}function fn(tt,ut){var Rr=ut.onChange(function(fu){gt[tt]=fu,je.onUpdate&&F.default.update(zo,!1,!0)}),_s=ut.onRenderRequest(Tt.scheduleRender);Wt.set(tt,function(){Rr(),_s()})}var Ps=Pe(je);for(var li in Ps){var du=Ps[li];gt[li]!==void 0&&Xt(du)&&du.set(gt[li],!1)}var ui=Oe(je),Br=Xe(je),Tt=t.__assign(t.__assign({treeType:V,current:null,depth:Ee?Ee.depth+1:0,parent:Ee,children:new Set,presenceId:Ue,shouldReduceMotion:dt,variantChildren:Br?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(Ee!=null&&Ee.isMounted()),blockInitialAnimation:Je,isMounted:function(){return!!Et},mount:function(tt){ft=!0,Et=Tt.current=tt,Tt.projection&&Tt.projection.mount(tt),Br&&Ee&&!ui&&(Qr=Ee==null?void 0:Ee.addVariantChild(Tt)),Ct.forEach(function(ut,Rr){return fn(Rr,ut)}),Ee==null||Ee.children.add(Tt),Tt.setProps(je)},unmount:function(){var tt;(tt=Tt.projection)===null||tt===void 0||tt.unmount(),f.cancelSync.update(zo),f.cancelSync.render(jo),Wt.forEach(function(ut){return ut()}),Qr==null||Qr(),Ee==null||Ee.children.delete(Tt),vt.clearAllListeners(),Et=void 0,ft=!1},addVariantChild:function(tt){var ut,Rr=Tt.getClosestVariantNode();if(Rr)return(ut=Rr.variantChildren)===null||ut===void 0||ut.add(tt),function(){return Rr.variantChildren.delete(tt)}},sortNodePosition:function(tt){return!xe||V!==tt.treeType?0:xe(Tt.getInstance(),tt.getInstance())},getClosestVariantNode:function(){return Br?Tt:Ee==null?void 0:Ee.getClosestVariantNode()},getLayoutId:function(){return je.layoutId},getInstance:function(){return Et},getStaticValue:function(tt){return gt[tt]},setStaticValue:function(tt,ut){return gt[tt]=ut},getLatestValues:function(){return gt},setVisibility:function(tt){Tt.isVisible!==tt&&(Tt.isVisible=tt,Tt.scheduleRender())},makeTargetAnimatable:function(tt,ut){return ut===void 0&&(ut=!0),se(Tt,tt,je,ut)},measureViewportBox:function(){return le(Et,je)},addValue:function(tt,ut){Tt.hasValue(tt)&&Tt.removeValue(tt),Ct.set(tt,ut),gt[tt]=ut.get(),fn(tt,ut)},removeValue:function(tt){var ut;Ct.delete(tt),(ut=Wt.get(tt))===null||ut===void 0||ut(),Wt.delete(tt),delete gt[tt],be(tt,At)},hasValue:function(tt){return Ct.has(tt)},getValue:function(tt,ut){var Rr=Ct.get(tt);return Rr===void 0&&ut!==void 0&&(Rr=cn(ut),Tt.addValue(tt,Rr)),Rr},forEachValue:function(tt){return Ct.forEach(tt)},readValue:function(tt){var ut;return(ut=gt[tt])!==null&&ut!==void 0?ut:pe(Et,tt,Ae)},setBaseTarget:function(tt,ut){Mr[tt]=ut},getBaseTarget:function(tt){if(Z){var ut=Z(je,tt);if(ut!==void 0&&!Xt(ut))return ut}return Mr[tt]}},vt),{build:function(){return Do(),At},scheduleRender:function(){F.default.render(jo,!1,!0)},syncRender:jo,setProps:function(tt){(tt.transformTemplate||je.transformTemplate)&&Tt.scheduleRender(),je=tt,vt.updatePropListeners(tt),dn=KO(Tt,Pe(je),dn)},getProps:function(){return je},getVariant:function(tt){var ut;return(ut=je.variants)===null||ut===void 0?void 0:ut[tt]},getDefaultTransition:function(){return je.transition},getTransformPagePoint:function(){return je.transformPagePoint},getVariantContext:function(tt){if(tt===void 0&&(tt=!1),tt)return Ee==null?void 0:Ee.getVariantContext();if(!ui){var ut=(Ee==null?void 0:Ee.getVariantContext())||{};return je.initial!==void 0&&(ut.initial=je.initial),ut}for(var Rr={},_s=0;_s<ZO;_s++){var fu=nv[_s],zf=je[fu];(ye(zf)||zf===!1)&&(Rr[fu]=zf)}return Rr}});return Tt}},nv=t.__spreadArray(["initial"],t.__read(Cf),!1),ZO=nv.length;function Af(w){return typeof w=="string"&&w.startsWith("var(--")}var ov=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function QO(w){var A=ov.exec(w);if(!A)return[,];var V=t.__read(A,3),Y=V[1],Z=V[2];return[Y,Z]}var JO=4;function Ef(w,A,V){V===void 0&&(V=1),a.invariant(V<=JO,'Max CSS variable fallback depth detected in property "'.concat(w,'". This may indicate a circular fallback dependency.'));var Y=t.__read(QO(w),2),Z=Y[0],se=Y[1];if(Z){var le=window.getComputedStyle(A).getPropertyValue(Z);return le?le.trim():Af(se)?Ef(se,A,V+1):se}}function eA(w,A,V){var Y,Z=t.__rest(A,[]),se=w.getInstance();if(!(se instanceof Element))return{target:Z,transitionEnd:V};V&&(V=t.__assign({},V)),w.forEachValue(function(be){var xe=be.get();if(Af(xe)){var Pe=Ef(xe,se);Pe&&be.set(Pe)}});for(var le in Z){var ae=Z[le];if(Af(ae)){var pe=Ef(ae,se);pe&&(Z[le]=pe,V&&((Y=V[le])!==null&&Y!==void 0||(V[le]=ae)))}}return{target:Z,transitionEnd:V}}var tA=new Set(["width","height","top","left","right","bottom","x","y"]),av=function(w){return tA.has(w)},rA=function(w){return Object.keys(w).some(av)},iv=function(w,A){w.set(A,!1),w.set(A)},lu=function(w){return w===s.number||w===s.px},sv;(function(w){w.width="width",w.height="height",w.left="left",w.right="right",w.top="top",w.bottom="bottom"})(sv||(sv={}));var lv=function(w,A){return parseFloat(w.split(", ")[A])},uv=function(w,A){return function(V,Y){var Z=Y.transform;if(Z==="none"||!Z)return 0;var se=Z.match(/^matrix3d\((.+)\)$/);if(se)return lv(se[1],A);var le=Z.match(/^matrix\((.+)\)$/);return le?lv(le[1],w):0}},nA=new Set(["x","y","z"]),oA=er.filter(function(w){return!nA.has(w)});function aA(w){var A=[];return oA.forEach(function(V){var Y=w.getValue(V);Y!==void 0&&(A.push([V,Y.get()]),Y.set(V.startsWith("scale")?1:0))}),A.length&&w.syncRender(),A}var cv={width:function(w,A){var V=w.x,Y=A.paddingLeft,Z=Y===void 0?"0":Y,se=A.paddingRight,le=se===void 0?"0":se;return V.max-V.min-parseFloat(Z)-parseFloat(le)},height:function(w,A){var V=w.y,Y=A.paddingTop,Z=Y===void 0?"0":Y,se=A.paddingBottom,le=se===void 0?"0":se;return V.max-V.min-parseFloat(Z)-parseFloat(le)},top:function(w,A){var V=A.top;return parseFloat(V)},left:function(w,A){var V=A.left;return parseFloat(V)},bottom:function(w,A){var V=w.y,Y=A.top;return parseFloat(Y)+(V.max-V.min)},right:function(w,A){var V=w.x,Y=A.left;return parseFloat(Y)+(V.max-V.min)},x:uv(4,13),y:uv(5,14)},iA=function(w,A,V){var Y=A.measureViewportBox(),Z=A.getInstance(),se=getComputedStyle(Z),le=se.display,ae={};le==="none"&&A.setStaticValue("display",w.display||"block"),V.forEach(function(be){ae[be]=cv[be](Y,se)}),A.syncRender();var pe=A.measureViewportBox();return V.forEach(function(be){var xe=A.getValue(be);iv(xe,ae[be]),w[be]=cv[be](pe,se)}),w},sA=function(w,A,V,Y){V===void 0&&(V={}),Y===void 0&&(Y={}),A=t.__assign({},A),Y=t.__assign({},Y);var Z=Object.keys(A).filter(av),se=[],le=!1,ae=[];if(Z.forEach(function(xe){var Pe=w.getValue(xe);if(w.hasValue(xe)){var _e=V[xe],Ae=ws(_e),Ee=A[xe],je;if(c(Ee)){var Ue=Ee.length,Je=Ee[0]===null?1:0;_e=Ee[Je],Ae=ws(_e);for(var at=Je;at<Ue;at++)je?a.invariant(ws(Ee[at])===je,"All keyframes must be of the same type"):(je=ws(Ee[at]),a.invariant(je===Ae||lu(Ae)&&lu(je),"Keyframes must be of the same dimension as the current value"))}else je=ws(Ee);if(Ae!==je)if(lu(Ae)&&lu(je)){var dt=Pe.get();typeof dt=="string"&&Pe.set(parseFloat(dt)),typeof Ee=="string"?A[xe]=parseFloat(Ee):Array.isArray(Ee)&&je===s.px&&(A[xe]=Ee.map(parseFloat))}else Ae!=null&&Ae.transform&&(je!=null&&je.transform)&&(_e===0||Ee===0)?_e===0?Pe.set(je.transform(_e)):A[xe]=Ae.transform(Ee):(le||(se=aA(w),le=!0),ae.push(xe),Y[xe]=Y[xe]!==void 0?Y[xe]:A[xe],iv(Pe,Ee))}}),ae.length){var pe=ae.indexOf("height")>=0?window.pageYOffset:null,be=iA(A,w,ae);return se.length&&se.forEach(function(xe){var Pe=t.__read(xe,2),_e=Pe[0],Ae=Pe[1];w.getValue(_e).set(Ae)}),w.syncRender(),pe!==null&&window.scrollTo({top:pe}),{target:be,transitionEnd:Y}}else return{target:A,transitionEnd:Y}};function lA(w,A,V,Y){return rA(A)?sA(w,A,V,Y):{target:A,transitionEnd:Y}}var uA=function(w,A,V,Y){var Z=eA(w,A,Y);return A=Z.target,Y=Z.transitionEnd,lA(w,A,V,Y)};function cA(w){return window.getComputedStyle(w)}var dv={treeType:"dom",readValueFromInstance:function(w,A){if(tr(A)){var V=df(A);return V&&V.default||0}else{var Y=cA(w);return(va(A)?Y.getPropertyValue(A):Y[A])||0}},sortNodePosition:function(w,A){return w.compareDocumentPosition(A)&2?1:-1},getBaseTarget:function(w,A){var V;return(V=w.style)===null||V===void 0?void 0:V[A]},measureViewportBox:function(w,A){var V=A.transformPagePoint;return tv(w,V)},resetTransform:function(w,A,V){var Y=V.transformTemplate;A.style.transform=Y?Y({},""):"none",w.scheduleRender()},restoreTransform:function(w,A){w.style.transform=A.style.transform},removeValueFromRenderState:function(w,A){var V=A.vars,Y=A.style;delete V[w],delete Y[w]},makeTargetAnimatable:function(w,A,V,Y){var Z=V.transformValues;Y===void 0&&(Y=!0);var se=A.transition,le=A.transitionEnd,ae=t.__rest(A,["transition","transitionEnd"]),pe=Ib(ae,se||{},w);if(Z&&(le&&(le=Z(le)),ae&&(ae=Z(ae)),pe&&(pe=Z(pe))),Y){xf(w,ae,pe);var be=uA(w,ae,pe,le);le=be.transitionEnd,ae=be.target}return t.__assign({transition:se,transitionEnd:le},ae)},scrapeMotionValuesFromProps:o,build:function(w,A,V,Y,Z){w.isVisible!==void 0&&(A.style.visibility=w.isVisible?"visible":"hidden"),lo(A,V,Y,Z.transformTemplate)},render:oi},dA=su(dv),fA=su(t.__assign(t.__assign({},dv),{getBaseTarget:function(w,A){return w[A]},readValueFromInstance:function(w,A){var V;return tr(A)?((V=df(A))===null||V===void 0?void 0:V.default)||0:(A=J.has(A)?A:fo(A),w.getAttribute(A))},scrapeMotionValuesFromProps:i,build:function(w,A,V,Y,Z){wa(A,V,Y,Z.transformTemplate)},render:n})),Mf=function(w,A){return Qt(w)?fA(A,{enableHardwareAcceleration:!1}):dA(A,{enableHardwareAcceleration:!0})};function fv(w,A){return A.max===A.min?0:w/(A.max-A.min)*100}var Ts={correct:function(w,A){if(!A.target)return w;if(typeof w=="string")if(s.px.test(w))w=parseFloat(w);else return w;var V=fv(w,A.target.x),Y=fv(w,A.target.y);return"".concat(V,"% ").concat(Y,"%")}},pv="_$css",pA={correct:function(w,A){var V=A.treeScale,Y=A.projectionDelta,Z=w,se=w.includes("var("),le=[];se&&(w=w.replace(ov,function(je){return le.push(je),pv}));var ae=s.complex.parse(w);if(ae.length>5)return Z;var pe=s.complex.createTransformer(w),be=typeof ae[0]!="number"?1:0,xe=Y.x.scale*V.x,Pe=Y.y.scale*V.y;ae[0+be]/=xe,ae[1+be]/=Pe;var _e=l.mix(xe,Pe,.5);typeof ae[2+be]=="number"&&(ae[2+be]/=_e),typeof ae[3+be]=="number"&&(ae[3+be]/=_e);var Ae=pe(ae);if(se){var Ee=0;Ae=Ae.replace(pv,function(){var je=le[Ee];return Ee++,je})}return Ae}},hA=function(w){t.__extends(A,w);function A(){return w!==null&&w.apply(this,arguments)||this}return A.prototype.componentDidMount=function(){var V=this,Y=this.props,Z=Y.visualElement,se=Y.layoutGroup,le=Y.switchLayoutGroup,ae=Y.layoutId,pe=Z.projection;yt(bA),pe&&(se!=null&&se.group&&se.group.add(pe),le!=null&&le.register&&ae&&le.register(pe),pe.root.didUpdate(),pe.addEventListener("animationComplete",function(){V.safeToRemove()}),pe.setOptions(t.__assign(t.__assign({},pe.options),{onExitComplete:function(){return V.safeToRemove()}}))),Ge.hasEverUpdated=!0},A.prototype.getSnapshotBeforeUpdate=function(V){var Y=this,Z=this.props,se=Z.layoutDependency,le=Z.visualElement,ae=Z.drag,pe=Z.isPresent,be=le.projection;return be&&(be.isPresent=pe,ae||V.layoutDependency!==se||se===void 0?be.willUpdate():this.safeToRemove(),V.isPresent!==pe&&(pe?be.promote():be.relegate()||F.default.postRender(function(){var xe;!((xe=be.getStack())===null||xe===void 0)&&xe.members.length||Y.safeToRemove()}))),null},A.prototype.componentDidUpdate=function(){var V=this.props.visualElement.projection;V&&(V.root.didUpdate(),!V.currentAnimation&&V.isLead()&&this.safeToRemove())},A.prototype.componentWillUnmount=function(){var V=this.props,Y=V.visualElement,Z=V.layoutGroup,se=V.switchLayoutGroup,le=Y.projection;le&&(le.scheduleCheckAfterUnmount(),Z!=null&&Z.group&&Z.group.remove(le),se!=null&&se.deregister&&se.deregister(le))},A.prototype.safeToRemove=function(){var V=this.props.safeToRemove;V==null||V()},A.prototype.render=function(){return null},A}(j.default.Component);function gA(w){var A=t.__read(uf(),2),V=A[0],Y=A[1],Z=r.useContext(He);return j.default.createElement(hA,t.__assign({},w,{layoutGroup:Z,switchLayoutGroup:r.useContext(Ze),isPresent:V,safeToRemove:Y}))}var bA={borderRadius:t.__assign(t.__assign({},Ts),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ts,borderTopRightRadius:Ts,borderBottomLeftRadius:Ts,borderBottomRightRadius:Ts,boxShadow:pA},hv={measureLayout:gA};function gv(w,A,V){V===void 0&&(V={});var Y=Xt(w)?w:cn(w);return gf("",Y,A,V),{stop:function(){return Y.stop()},isAnimating:function(){return Y.isAnimating()}}}var bv=["TopLeft","TopRight","BottomLeft","BottomRight"],vA=bv.length,vv=function(w){return typeof w=="string"?parseFloat(w):w},mv=function(w){return typeof w=="number"||s.px.test(w)};function mA(w,A,V,Y,Z,se){var le,ae,pe,be;Z?(w.opacity=l.mix(0,(le=V.opacity)!==null&&le!==void 0?le:1,yA(Y)),w.opacityExit=l.mix((ae=A.opacity)!==null&&ae!==void 0?ae:1,0,xA(Y))):se&&(w.opacity=l.mix((pe=A.opacity)!==null&&pe!==void 0?pe:1,(be=V.opacity)!==null&&be!==void 0?be:1,Y));for(var xe=0;xe<vA;xe++){var Pe="border".concat(bv[xe],"Radius"),_e=yv(A,Pe),Ae=yv(V,Pe);if(!(_e===void 0&&Ae===void 0)){_e||(_e=0),Ae||(Ae=0);var Ee=_e===0||Ae===0||mv(_e)===mv(Ae);Ee?(w[Pe]=Math.max(l.mix(vv(_e),vv(Ae),Y),0),(s.percent.test(Ae)||s.percent.test(_e))&&(w[Pe]+="%")):w[Pe]=Ae}}(A.rotate||V.rotate)&&(w.rotate=l.mix(A.rotate||0,V.rotate||0,Y))}function yv(w,A){var V;return(V=w[A])!==null&&V!==void 0?V:w.borderRadius}var yA=xv(0,.5,l.circOut),xA=xv(.5,.95,l.linear);function xv(w,A,V){return function(Y){return Y<w?0:Y>A?1:V(l.progress(w,A,Y))}}function wv(w,A){w.min=A.min,w.max=A.max}function _n(w,A){wv(w.x,A.x),wv(w.y,A.y)}function Cv(w,A,V,Y,Z){return w-=A,w=ou(w,1/V,Y),Z!==void 0&&(w=ou(w,1/Z,Y)),w}function wA(w,A,V,Y,Z,se,le){if(A===void 0&&(A=0),V===void 0&&(V=1),Y===void 0&&(Y=.5),se===void 0&&(se=w),le===void 0&&(le=w),s.percent.test(A)){A=parseFloat(A);var ae=l.mix(le.min,le.max,A/100);A=ae-le.min}if(typeof A=="number"){var pe=l.mix(se.min,se.max,Y);w===se&&(pe-=A),w.min=Cv(w.min,A,V,pe,Z),w.max=Cv(w.max,A,V,pe,Z)}}function Sv(w,A,V,Y,Z){var se=t.__read(V,3),le=se[0],ae=se[1],pe=se[2];wA(w,A[le],A[ae],A[pe],A.scale,Y,Z)}var CA=["x","scaleX","originX"],SA=["y","scaleY","originY"];function kv(w,A,V,Y){Sv(w.x,A,CA,V==null?void 0:V.x,Y==null?void 0:Y.x),Sv(w.y,A,SA,V==null?void 0:V.y,Y==null?void 0:Y.y)}function Tv(w){return w.translate===0&&w.scale===1}function Pv(w){return Tv(w.x)&&Tv(w.y)}function _v(w,A){return w.x.min===A.x.min&&w.x.max===A.x.max&&w.y.min===A.y.min&&w.y.max===A.y.max}var kA=function(){function w(){this.members=[]}return w.prototype.add=function(A){bf(this.members,A),A.scheduleRender()},w.prototype.remove=function(A){if(vf(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){var V=this.members[this.members.length-1];V&&this.promote(V)}},w.prototype.relegate=function(A){var V=this.members.findIndex(function(le){return A===le});if(V===0)return!1;for(var Y,Z=V;Z>=0;Z--){var se=this.members[Z];if(se.isPresent!==!1){Y=se;break}}return Y?(this.promote(Y),!0):!1},w.prototype.promote=function(A,V){var Y,Z=this.lead;if(A!==Z&&(this.prevLead=Z,this.lead=A,A.show(),Z)){Z.instance&&Z.scheduleRender(),A.scheduleRender(),A.resumeFrom=Z,V&&(A.resumeFrom.preserveOpacity=!0),Z.snapshot&&(A.snapshot=Z.snapshot,A.snapshot.latestValues=Z.animationValues||Z.latestValues,A.snapshot.isShared=!0),!((Y=A.root)===null||Y===void 0)&&Y.isUpdating&&(A.isLayoutDirty=!0);var se=A.options.crossfade;se===!1&&Z.hide()}},w.prototype.exitAnimationComplete=function(){this.members.forEach(function(A){var V,Y,Z,se,le;(Y=(V=A.options).onExitComplete)===null||Y===void 0||Y.call(V),(le=(Z=A.resumingFrom)===null||Z===void 0?void 0:(se=Z.options).onExitComplete)===null||le===void 0||le.call(se)})},w.prototype.scheduleRender=function(){this.members.forEach(function(A){A.instance&&A.scheduleRender(!1)})},w.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},w}(),TA="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Ov(w,A,V){var Y=w.x.translate/A.x,Z=w.y.translate/A.y,se="translate3d(".concat(Y,"px, ").concat(Z,"px, 0) ");if(se+="scale(".concat(1/A.x,", ").concat(1/A.y,") "),V){var le=V.rotate,ae=V.rotateX,pe=V.rotateY;le&&(se+="rotate(".concat(le,"deg) ")),ae&&(se+="rotateX(".concat(ae,"deg) ")),pe&&(se+="rotateY(".concat(pe,"deg) "))}var be=w.x.scale*A.x,xe=w.y.scale*A.y;return se+="scale(".concat(be,", ").concat(xe,")"),se===TA?"none":se}var PA=function(w,A){return w.depth-A.depth},Av=function(){function w(){this.children=[],this.isDirty=!1}return w.prototype.add=function(A){bf(this.children,A),this.isDirty=!0},w.prototype.remove=function(A){vf(this.children,A),this.isDirty=!0},w.prototype.forEach=function(A){this.isDirty&&this.children.sort(PA),this.isDirty=!1,this.children.forEach(A)},w}(),Ev=1e3;function Mv(w){var A=w.attachResizeListener,V=w.defaultParent,Y=w.measureScroll,Z=w.checkIsScrollRoot,se=w.resetTransform;return function(){function le(ae,pe,be){var xe=this;pe===void 0&&(pe={}),be===void 0&&(be=V==null?void 0:V()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){xe.isUpdating&&(xe.isUpdating=!1,xe.clearAllSnapshots())},this.updateProjection=function(){xe.nodes.forEach(RA),xe.nodes.forEach(NA)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=ae,this.latestValues=pe,this.root=be?be.root||be:this,this.path=be?t.__spreadArray(t.__spreadArray([],t.__read(be.path),!1),[be],!1):[],this.parent=be,this.depth=be?be.depth+1:0,ae&&this.root.registerPotentialNode(ae,this);for(var Pe=0;Pe<this.path.length;Pe++)this.path[Pe].shouldResetTransform=!0;this.root===this&&(this.nodes=new Av)}return le.prototype.addEventListener=function(ae,pe){return this.eventHandlers.has(ae)||this.eventHandlers.set(ae,new xs),this.eventHandlers.get(ae).add(pe)},le.prototype.notifyListeners=function(ae){for(var pe=[],be=1;be<arguments.length;be++)pe[be-1]=arguments[be];var xe=this.eventHandlers.get(ae);xe==null||xe.notify.apply(xe,t.__spreadArray([],t.__read(pe),!1))},le.prototype.hasListeners=function(ae){return this.eventHandlers.has(ae)},le.prototype.registerPotentialNode=function(ae,pe){this.potentialNodes.set(ae,pe)},le.prototype.mount=function(ae,pe){var be=this,xe;if(pe===void 0&&(pe=!1),!this.instance){this.isSVG=ae instanceof SVGElement&&ae.tagName!=="svg",this.instance=ae;var Pe=this.options,_e=Pe.layoutId,Ae=Pe.layout,Ee=Pe.visualElement;if(Ee&&!Ee.getInstance()&&Ee.mount(ae),this.root.nodes.add(this),(xe=this.parent)===null||xe===void 0||xe.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),pe&&(Ae||_e)&&(this.isLayoutDirty=!0),A){var je,Ue=function(){return be.root.updateBlockedByResize=!1};A(ae,function(){be.root.updateBlockedByResize=!0,clearTimeout(je),je=window.setTimeout(Ue,250),Ge.hasAnimatedSinceResize&&(Ge.hasAnimatedSinceResize=!1,be.nodes.forEach(MA))})}_e&&this.root.registerSharedNode(_e,this),this.options.animate!==!1&&Ee&&(_e||Ae)&&this.addEventListener("didUpdate",function(Je){var at,dt,ft,gt,At,Et=Je.delta,vt=Je.hasLayoutChanged,Ct=Je.hasRelativeTargetChanged,Wt=Je.layout;if(be.isTreeAnimationBlocked()){be.target=void 0,be.relativeTarget=void 0;return}var dn=(dt=(at=be.options.transition)!==null&&at!==void 0?at:Ee.getDefaultTransition())!==null&&dt!==void 0?dt:zA,Mr=Ee.getProps(),Qr=Mr.onLayoutAnimationStart,jo=Mr.onLayoutAnimationComplete,Do=!be.targetLayout||!_v(be.targetLayout,Wt)||Ct,zo=!vt&&Ct;if(!((ft=be.resumeFrom)===null||ft===void 0)&&ft.instance||zo||vt&&(Do||!be.currentAnimation)){be.resumeFrom&&(be.resumingFrom=be.resumeFrom,be.resumingFrom.resumingFrom=void 0),be.setAnimationOrigin(Et,zo);var fn=t.__assign(t.__assign({},hf(dn,"layout")),{onPlay:Qr,onComplete:jo});Ee.shouldReduceMotion&&(fn.delay=0,fn.type=!1),be.startAnimation(fn)}else!vt&&be.animationProgress===0&&be.finishAnimation(),be.isLead()&&((At=(gt=be.options).onExitComplete)===null||At===void 0||At.call(gt));be.targetLayout=Wt})}},le.prototype.unmount=function(){var ae,pe;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(ae=this.getStack())===null||ae===void 0||ae.remove(this),(pe=this.parent)===null||pe===void 0||pe.children.delete(this),this.instance=void 0,f.cancelSync.preRender(this.updateProjection)},le.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},le.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},le.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},le.prototype.isTreeAnimationBlocked=function(){var ae;return this.isAnimationBlocked||((ae=this.parent)===null||ae===void 0?void 0:ae.isTreeAnimationBlocked())||!1},le.prototype.startUpdate=function(){var ae;this.isUpdateBlocked()||(this.isUpdating=!0,(ae=this.nodes)===null||ae===void 0||ae.forEach(IA))},le.prototype.willUpdate=function(ae){var pe,be,xe;if(ae===void 0&&(ae=!0),this.root.isUpdateBlocked()){(be=(pe=this.options).onExitComplete)===null||be===void 0||be.call(pe);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var Pe=0;Pe<this.path.length;Pe++){var _e=this.path[Pe];_e.shouldResetTransform=!0,_e.updateScroll()}var Ae=this.options,Ee=Ae.layoutId,je=Ae.layout;if(!(Ee===void 0&&!je)){var Ue=(xe=this.options.visualElement)===null||xe===void 0?void 0:xe.getProps().transformTemplate;this.prevTransformTemplateValue=Ue==null?void 0:Ue(this.latestValues,""),this.updateSnapshot(),ae&&this.notifyListeners("willUpdate")}}},le.prototype.didUpdate=function(){var ae=this.isUpdateBlocked();if(ae){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Rv);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(FA),this.potentialNodes.clear()),this.nodes.forEach(EA),this.nodes.forEach(_A),this.nodes.forEach(OA),this.clearAllSnapshots(),f.flushSync.update(),f.flushSync.preRender(),f.flushSync.render())},le.prototype.clearAllSnapshots=function(){this.nodes.forEach(AA),this.sharedNodes.forEach(LA)},le.prototype.scheduleUpdateProjection=function(){F.default.preRender(this.updateProjection,!1,!0)},le.prototype.scheduleCheckAfterUnmount=function(){var ae=this;F.default.postRender(function(){ae.isLayoutDirty?ae.root.didUpdate():ae.root.checkUpdateFailed()})},le.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var ae=this.measure(),pe=this.removeTransform(this.removeElementScroll(ae));jv(pe),this.snapshot={measured:ae,layout:pe,latestValues:{}}}},le.prototype.updateLayout=function(){var ae;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var pe=0;pe<this.path.length;pe++){var be=this.path[pe];be.updateScroll()}var xe=this.measure();jv(xe);var Pe=this.layout;this.layout={measured:xe,actual:this.removeElementScroll(xe)},this.layoutCorrected=dr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(ae=this.options.visualElement)===null||ae===void 0||ae.notifyLayoutMeasure(this.layout.actual,Pe==null?void 0:Pe.actual)}},le.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=Z(this.instance),this.scroll=Y(this.instance))},le.prototype.resetTransform=function(){var ae;if(se){var pe=this.isLayoutDirty||this.shouldResetTransform,be=this.projectionDelta&&!Pv(this.projectionDelta),xe=(ae=this.options.visualElement)===null||ae===void 0?void 0:ae.getProps().transformTemplate,Pe=xe==null?void 0:xe(this.latestValues,""),_e=Pe!==this.prevTransformTemplateValue;pe&&(be||No(this.latestValues)||_e)&&(se(this.instance,Pe),this.shouldResetTransform=!1,this.scheduleRender())}},le.prototype.measure=function(){var ae=this.options.visualElement;if(!ae)return dr();var pe=ae.measureViewportBox(),be=this.root.scroll;return be&&(Io(pe.x,be.x),Io(pe.y,be.y)),pe},le.prototype.removeElementScroll=function(ae){var pe=dr();_n(pe,ae);for(var be=0;be<this.path.length;be++){var xe=this.path[be],Pe=xe.scroll,_e=xe.options,Ae=xe.isScrollRoot;if(xe!==this.root&&Pe&&_e.layoutScroll){if(Ae){_n(pe,ae);var Ee=this.root.scroll;Ee&&(Io(pe.x,-Ee.x),Io(pe.y,-Ee.y))}Io(pe.x,Pe.x),Io(pe.y,Pe.y)}}return pe},le.prototype.applyTransform=function(ae,pe){pe===void 0&&(pe=!1);var be=dr();_n(be,ae);for(var xe=0;xe<this.path.length;xe++){var Pe=this.path[xe];!pe&&Pe.options.layoutScroll&&Pe.scroll&&Pe!==Pe.root&&ii(be,{x:-Pe.scroll.x,y:-Pe.scroll.y}),No(Pe.latestValues)&&ii(be,Pe.latestValues)}return No(this.latestValues)&&ii(be,this.latestValues),be},le.prototype.removeTransform=function(ae){var pe,be=dr();_n(be,ae);for(var xe=0;xe<this.path.length;xe++){var Pe=this.path[xe];if(Pe.instance&&No(Pe.latestValues)){Kb(Pe.latestValues)&&Pe.updateSnapshot();var _e=dr(),Ae=Pe.measure();_n(_e,Ae),kv(be,Pe.latestValues,(pe=Pe.snapshot)===null||pe===void 0?void 0:pe.layout,_e)}}return No(this.latestValues)&&kv(be,this.latestValues),be},le.prototype.setTargetDelta=function(ae){this.targetDelta=ae,this.root.scheduleUpdateProjection()},le.prototype.setOptions=function(ae){var pe;this.options=t.__assign(t.__assign(t.__assign({},this.options),ae),{crossfade:(pe=ae.crossfade)!==null&&pe!==void 0?pe:!0})},le.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},le.prototype.resolveTargetDelta=function(){var ae,pe=this.options,be=pe.layout,xe=pe.layoutId;!this.layout||!(be||xe)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=dr(),this.relativeTargetOrigin=dr(),Ss(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),_n(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=dr(),this.targetWithTransforms=dr()),this.relativeTarget&&this.relativeTargetOrigin&&(!((ae=this.relativeParent)===null||ae===void 0)&&ae.target)?MO(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):_n(this.target,this.layout.actual),Jb(this.target,this.targetDelta)):_n(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=dr(),this.relativeTargetOrigin=dr(),Ss(this.relativeTargetOrigin,this.target,this.relativeParent.target),_n(this.relativeTarget,this.relativeTargetOrigin)))))},le.prototype.getClosestProjectingParent=function(){if(!(!this.parent||No(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},le.prototype.calcProjection=function(){var ae,pe=this.options,be=pe.layout,xe=pe.layoutId;if(this.isTreeAnimating=!!(!((ae=this.parent)===null||ae===void 0)&&ae.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(be||xe))){var Pe=this.getLead();_n(this.layoutCorrected,this.layout.actual),VO(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==Pe);var _e=Pe.target;if(_e){this.projectionDelta||(this.projectionDelta=ks(),this.projectionDeltaWithTransform=ks());var Ae=this.treeScale.x,Ee=this.treeScale.y,je=this.projectionTransform;Cs(this.projectionDelta,this.layoutCorrected,_e,this.latestValues),this.projectionTransform=Ov(this.projectionDelta,this.treeScale),(this.projectionTransform!==je||this.treeScale.x!==Ae||this.treeScale.y!==Ee)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_e))}}},le.prototype.hide=function(){this.isVisible=!1},le.prototype.show=function(){this.isVisible=!0},le.prototype.scheduleRender=function(ae){var pe,be,xe;ae===void 0&&(ae=!0),(be=(pe=this.options).scheduleRender)===null||be===void 0||be.call(pe),ae&&((xe=this.getStack())===null||xe===void 0||xe.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},le.prototype.setAnimationOrigin=function(ae,pe){var be=this,xe;pe===void 0&&(pe=!1);var Pe=this.snapshot,_e=(Pe==null?void 0:Pe.latestValues)||{},Ae=t.__assign({},this.latestValues),Ee=ks();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!pe;var je=dr(),Ue=Pe==null?void 0:Pe.isShared,Je=(((xe=this.getStack())===null||xe===void 0?void 0:xe.members.length)||0)<=1,at=!!(Ue&&!Je&&this.options.crossfade===!0&&!this.path.some(DA));this.animationProgress=0,this.mixTargetDelta=function(dt){var ft,gt=dt/1e3;Nv(Ee.x,ae.x,gt),Nv(Ee.y,ae.y,gt),be.setTargetDelta(Ee),be.relativeTarget&&be.relativeTargetOrigin&&be.layout&&(!((ft=be.relativeParent)===null||ft===void 0)&&ft.layout)&&(Ss(je,be.layout.actual,be.relativeParent.layout.actual),jA(be.relativeTarget,be.relativeTargetOrigin,je,gt)),Ue&&(be.animationValues=Ae,mA(Ae,_e,be.latestValues,gt,at,Je)),be.root.scheduleUpdateProjection(),be.scheduleRender(),be.animationProgress=gt},this.mixTargetDelta(0)},le.prototype.startAnimation=function(ae){var pe=this,be,xe;this.notifyListeners("animationStart"),(be=this.currentAnimation)===null||be===void 0||be.stop(),this.resumingFrom&&((xe=this.resumingFrom.currentAnimation)===null||xe===void 0||xe.stop()),this.pendingAnimation&&(f.cancelSync.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.default.update(function(){Ge.hasAnimatedSinceResize=!0,pe.currentAnimation=gv(0,Ev,t.__assign(t.__assign({},ae),{onUpdate:function(Pe){var _e;pe.mixTargetDelta(Pe),(_e=ae.onUpdate)===null||_e===void 0||_e.call(ae,Pe)},onComplete:function(){var Pe;(Pe=ae.onComplete)===null||Pe===void 0||Pe.call(ae),pe.completeAnimation()}})),pe.resumingFrom&&(pe.resumingFrom.currentAnimation=pe.currentAnimation),pe.pendingAnimation=void 0})},le.prototype.completeAnimation=function(){var ae;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(ae=this.getStack())===null||ae===void 0||ae.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},le.prototype.finishAnimation=function(){var ae;this.currentAnimation&&((ae=this.mixTargetDelta)===null||ae===void 0||ae.call(this,Ev),this.currentAnimation.stop()),this.completeAnimation()},le.prototype.applyTransformsToTarget=function(){var ae=this.getLead(),pe=ae.targetWithTransforms,be=ae.target,xe=ae.layout,Pe=ae.latestValues;!pe||!be||!xe||(_n(pe,be),ii(pe,Pe),Cs(this.projectionDeltaWithTransform,this.layoutCorrected,pe,Pe))},le.prototype.registerSharedNode=function(ae,pe){var be,xe,Pe;this.sharedNodes.has(ae)||this.sharedNodes.set(ae,new kA);var _e=this.sharedNodes.get(ae);_e.add(pe),pe.promote({transition:(be=pe.options.initialPromotionConfig)===null||be===void 0?void 0:be.transition,preserveFollowOpacity:(Pe=(xe=pe.options.initialPromotionConfig)===null||xe===void 0?void 0:xe.shouldPreserveFollowOpacity)===null||Pe===void 0?void 0:Pe.call(xe,pe)})},le.prototype.isLead=function(){var ae=this.getStack();return ae?ae.lead===this:!0},le.prototype.getLead=function(){var ae,pe=this.options.layoutId;return pe?((ae=this.getStack())===null||ae===void 0?void 0:ae.lead)||this:this},le.prototype.getPrevLead=function(){var ae,pe=this.options.layoutId;return pe?(ae=this.getStack())===null||ae===void 0?void 0:ae.prevLead:void 0},le.prototype.getStack=function(){var ae=this.options.layoutId;if(ae)return this.root.sharedNodes.get(ae)},le.prototype.promote=function(ae){var pe=ae===void 0?{}:ae,be=pe.needsReset,xe=pe.transition,Pe=pe.preserveFollowOpacity,_e=this.getStack();_e&&_e.promote(this,Pe),be&&(this.projectionDelta=void 0,this.needsReset=!0),xe&&this.setOptions({transition:xe})},le.prototype.relegate=function(){var ae=this.getStack();return ae?ae.relegate(this):!1},le.prototype.resetRotation=function(){var ae=this.options.visualElement;if(ae){for(var pe=!1,be={},xe=0;xe<Jt.length;xe++){var Pe=Jt[xe],_e="rotate"+Pe;ae.getStaticValue(_e)&&(pe=!0,be[_e]=ae.getStaticValue(_e),ae.setStaticValue(_e,0))}if(pe){ae==null||ae.syncRender();for(var _e in be)ae.setStaticValue(_e,be[_e]);ae.scheduleRender()}}},le.prototype.getProjectionStyles=function(ae){var pe,be,xe,Pe,_e,Ae;ae===void 0&&(ae={});var Ee={};if(!this.instance||this.isSVG)return Ee;if(this.isVisible)Ee.visibility="";else return{visibility:"hidden"};var je=(pe=this.options.visualElement)===null||pe===void 0?void 0:pe.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,Ee.opacity="",Ee.pointerEvents=x(ae.pointerEvents)||"",Ee.transform=je?je(this.latestValues,""):"none",Ee;var Ue=this.getLead();if(!this.projectionDelta||!this.layout||!Ue.target){var Je={};return this.options.layoutId&&(Je.opacity=(be=this.latestValues.opacity)!==null&&be!==void 0?be:1,Je.pointerEvents=x(ae.pointerEvents)||""),this.hasProjected&&!No(this.latestValues)&&(Je.transform=je?je({},""):"none",this.hasProjected=!1),Je}var at=Ue.animationValues||Ue.latestValues;this.applyTransformsToTarget(),Ee.transform=Ov(this.projectionDeltaWithTransform,this.treeScale,at),je&&(Ee.transform=je(at,Ee.transform));var dt=this.projectionDelta,ft=dt.x,gt=dt.y;Ee.transformOrigin="".concat(ft.origin*100,"% ").concat(gt.origin*100,"% 0"),Ue.animationValues?Ee.opacity=Ue===this?(Pe=(xe=at.opacity)!==null&&xe!==void 0?xe:this.latestValues.opacity)!==null&&Pe!==void 0?Pe:1:this.preserveOpacity?this.latestValues.opacity:at.opacityExit:Ee.opacity=Ue===this?(_e=at.opacity)!==null&&_e!==void 0?_e:"":(Ae=at.opacityExit)!==null&&Ae!==void 0?Ae:0;for(var At in kt)if(at[At]!==void 0){var Et=kt[At],vt=Et.correct,Ct=Et.applyTo,Wt=vt(at[At],Ue);if(Ct)for(var dn=Ct.length,Mr=0;Mr<dn;Mr++)Ee[Ct[Mr]]=Wt;else Ee[At]=Wt}return this.options.layoutId&&(Ee.pointerEvents=Ue===this?x(ae.pointerEvents)||"":"none"),Ee},le.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},le.prototype.resetTree=function(){this.root.nodes.forEach(function(ae){var pe;return(pe=ae.currentAnimation)===null||pe===void 0?void 0:pe.stop()}),this.root.nodes.forEach(Rv),this.root.sharedNodes.clear()},le}()}function _A(w){w.updateLayout()}function OA(w){var A,V,Y,Z,se=(V=(A=w.resumeFrom)===null||A===void 0?void 0:A.snapshot)!==null&&V!==void 0?V:w.snapshot;if(w.isLead()&&w.layout&&se&&w.hasListeners("didUpdate")){var le=w.layout,ae=le.actual,pe=le.measured;w.options.animationType==="size"?Qn(function(at){var dt=se.isShared?se.measured[at]:se.layout[at],ft=Zn(dt);dt.min=ae[at].min,dt.max=dt.min+ft}):w.options.animationType==="position"&&Qn(function(at){var dt=se.isShared?se.measured[at]:se.layout[at],ft=Zn(ae[at]);dt.max=dt.min+ft});var be=ks();Cs(be,ae,se.layout);var xe=ks();se.isShared?Cs(xe,w.applyTransform(pe,!0),se.measured):Cs(xe,ae,se.layout);var Pe=!Pv(be),_e=!1;if(!w.resumeFrom&&(w.relativeParent=w.getClosestProjectingParent(),w.relativeParent&&!w.relativeParent.resumeFrom)){var Ae=w.relativeParent,Ee=Ae.snapshot,je=Ae.layout;if(Ee&&je){var Ue=dr();Ss(Ue,se.layout,Ee.layout);var Je=dr();Ss(Je,ae,je.actual),_v(Ue,Je)||(_e=!0)}}w.notifyListeners("didUpdate",{layout:ae,snapshot:se,delta:xe,layoutDelta:be,hasLayoutChanged:Pe,hasRelativeTargetChanged:_e})}else w.isLead()&&((Z=(Y=w.options).onExitComplete)===null||Z===void 0||Z.call(Y));w.options.transition=void 0}function AA(w){w.clearSnapshot()}function Rv(w){w.clearMeasurements()}function EA(w){var A=w.options.visualElement;A!=null&&A.getProps().onBeforeLayoutMeasure&&A.notifyBeforeLayoutMeasure(),w.resetTransform()}function MA(w){w.finishAnimation(),w.targetDelta=w.relativeTarget=w.target=void 0}function RA(w){w.resolveTargetDelta()}function NA(w){w.calcProjection()}function IA(w){w.resetRotation()}function LA(w){w.removeLeadSnapshot()}function Nv(w,A,V){w.translate=l.mix(A.translate,0,V),w.scale=l.mix(A.scale,1,V),w.origin=A.origin,w.originPoint=A.originPoint}function Iv(w,A,V,Y){w.min=l.mix(A.min,V.min,Y),w.max=l.mix(A.max,V.max,Y)}function jA(w,A,V,Y){Iv(w.x,A.x,V.x,Y),Iv(w.y,A.y,V.y,Y)}function DA(w){return w.animationValues&&w.animationValues.opacityExit!==void 0}var zA={duration:.45,ease:[.4,0,.1,1]};function FA(w,A){for(var V=w.root,Y=w.path.length-1;Y>=0;Y--)if(w.path[Y].instance){V=w.path[Y];break}var Z=V&&V!==w.root?V.instance:document,se=Z.querySelector('[data-projection-id="'.concat(A,'"]'));se&&w.mount(se,!0)}function Lv(w){w.min=Math.round(w.min),w.max=Math.round(w.max)}function jv(w){Lv(w.x),Lv(w.y)}var VA=Mv({attachResizeListener:function(w,A){return q(w,"resize",A)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Pa={current:void 0},Rf=Mv({measureScroll:function(w){return{x:w.scrollLeft,y:w.scrollTop}},defaultParent:function(){if(!Pa.current){var w=new VA(0,{});w.mount(window),w.setOptions({layoutScroll:!0}),Pa.current=w}return Pa.current},resetTransform:function(w,A){w.style.transform=A??"none"},checkIsScrollRoot:function(w){return window.getComputedStyle(w).position==="fixed"}}),Dv=t.__assign(t.__assign(t.__assign(t.__assign({},Sf),wb),rv),hv),Nf=Lt(function(w,A){return G(w,A,Dv,Mf,Rf)});function WA(w){return It(G(w,{forwardMotionProps:!1},Dv,Mf,Rf))}var BA=Lt(G);function zv(){var w=r.useRef(!1);return U(function(){return w.current=!0,function(){w.current=!1}},[]),w}function uu(){var w=zv(),A=t.__read(r.useState(0),2),V=A[0],Y=A[1],Z=r.useCallback(function(){w.current&&Y(V+1)},[V]),se=r.useCallback(function(){return F.default.postRender(Z)},[Z]);return[se,V]}var If=function(w){var A=w.children,V=w.initial,Y=w.isPresent,Z=w.onExitComplete,se=w.custom,le=w.presenceAffectsLayout,ae=Ne(HA),pe=Cb(),be=r.useMemo(function(){return{id:pe,initial:V,isPresent:Y,custom:se,onExitComplete:function(xe){var Pe,_e;ae.set(xe,!0);try{for(var Ae=t.__values(ae.values()),Ee=Ae.next();!Ee.done;Ee=Ae.next()){var je=Ee.value;if(!je)return}}catch(Ue){Pe={error:Ue}}finally{try{Ee&&!Ee.done&&(_e=Ae.return)&&_e.call(Ae)}finally{if(Pe)throw Pe.error}}Z==null||Z()},register:function(xe){return ae.set(xe,!1),function(){return ae.delete(xe)}}}},le?void 0:[Y]);return r.useMemo(function(){ae.forEach(function(xe,Pe){return ae.set(Pe,!1)})},[Y]),O.useEffect(function(){!Y&&!ae.size&&(Z==null||Z())},[Y]),O.createElement(H.Provider,{value:be},A)};function HA(){return new Map}var si=function(w){return w.key||""};function XA(w,A){w.forEach(function(V){var Y=si(V);A.set(Y,V)})}function YA(w){var A=[];return r.Children.forEach(w,function(V){r.isValidElement(V)&&A.push(V)}),A}var GA=function(w){var A=w.children,V=w.custom,Y=w.initial,Z=Y===void 0?!0:Y,se=w.onExitComplete,le=w.exitBeforeEnter,ae=w.presenceAffectsLayout,pe=ae===void 0?!0:ae,be=t.__read(uu(),1),xe=be[0],Pe=r.useContext(He).forceRender;Pe&&(xe=Pe);var _e=zv(),Ae=YA(A),Ee=Ae,je=new Set,Ue=r.useRef(Ee),Je=r.useRef(new Map).current,at=r.useRef(!0);if(U(function(){at.current=!1,XA(Ae,Je),Ue.current=Ee}),ar(function(){at.current=!0,Je.clear(),je.clear()}),at.current)return O.createElement(O.Fragment,null,Ee.map(function(vt){return O.createElement(If,{key:si(vt),isPresent:!0,initial:Z?void 0:!1,presenceAffectsLayout:pe},vt)}));Ee=t.__spreadArray([],t.__read(Ee),!1);for(var dt=Ue.current.map(si),ft=Ae.map(si),gt=dt.length,At=0;At<gt;At++){var Et=dt[At];ft.indexOf(Et)===-1&&je.add(Et)}return le&&je.size&&(Ee=[]),je.forEach(function(vt){if(ft.indexOf(vt)===-1){var Ct=Je.get(vt);if(Ct){var Wt=dt.indexOf(vt),dn=function(){Je.delete(vt),je.delete(vt);var Mr=Ue.current.findIndex(function(Qr){return Qr.key===vt});if(Ue.current.splice(Mr,1),!je.size){if(Ue.current=Ae,_e.current===!1)return;xe(),se&&se()}};Ee.splice(Wt,0,O.createElement(If,{key:si(Ct),isPresent:!1,onExitComplete:dn,custom:V,presenceAffectsLayout:pe},Ct))}}}),Ee=Ee.map(function(vt){var Ct=vt.key;return je.has(Ct)?vt:O.createElement(If,{key:si(vt),isPresent:!0,presenceAffectsLayout:pe},vt)}),D!=="production"&&le&&Ee.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),O.createElement(O.Fragment,null,je.size?Ee:Ee.map(function(vt){return r.cloneElement(vt)}))},Fv=r.createContext(null),UA=function(w){return!w.isLayoutDirty&&w.willUpdate(!1)};function Vv(){var w=new Set,A=new WeakMap,V=function(){return w.forEach(UA)};return{add:function(Y){w.add(Y),A.set(Y,Y.addEventListener("willUpdate",V))},remove:function(Y){var Z;w.delete(Y),(Z=A.get(Y))===null||Z===void 0||Z(),A.delete(Y),V()},dirty:V}}var Wv=function(w){return w===!0},$A=function(w){return Wv(w===!0)||w==="id"},Bv=function(w){var A,V,Y=w.children,Z=w.id,se=w.inheritId,le=w.inherit,ae=le===void 0?!0:le;se!==void 0&&(ae=se);var pe=r.useContext(He),be=r.useContext(Fv),xe=t.__read(uu(),2),Pe=xe[0],_e=xe[1],Ae=r.useRef(null),Ee=(A=pe.id)!==null&&A!==void 0?A:be;Ae.current===null&&($A(ae)&&Ee&&(Z=Z?Ee+"-"+Z:Ee),Ae.current={id:Z,group:Wv(ae)&&(V=pe==null?void 0:pe.group)!==null&&V!==void 0?V:Vv()});var je=r.useMemo(function(){return t.__assign(t.__assign({},Ae.current),{forceRender:Pe})},[_e]);return O.createElement(He.Provider,{value:je},Y)},qA=0,KA=function(w){var A=w.children;return O.useEffect(function(){a.warning(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),O.createElement(Bv,{id:Ne(function(){return"asl-".concat(qA++)})},A)};function ZA(w){var A=w.children,V=w.isValidProp,Y=t.__rest(w,["children","isValidProp"]);V&&Un(V),Y=t.__assign(t.__assign({},r.useContext(_)),Y),Y.isStatic=Ne(function(){return Y.isStatic});var Z=r.useMemo(function(){return Y},[JSON.stringify(Y.transition),Y.transformPagePoint,Y.reducedMotion]);return O.createElement(_.Provider,{value:Z},A)}function QA(w){var A=w.children,V=w.features,Y=w.strict,Z=Y===void 0?!1:Y,se=t.__read(r.useState(!Lf(V)),2),le=se[1],ae=r.useRef(void 0);if(!Lf(V)){var pe=V.renderer,be=t.__rest(V,["renderer"]);ae.current=pe,y(be)}return r.useEffect(function(){Lf(V)&&V().then(function(xe){var Pe=xe.renderer,_e=t.__rest(xe,["renderer"]);y(_e),ae.current=Pe,le(!0)})},[]),O.createElement(p.Provider,{value:{renderer:ae.current,strict:Z}},A)}function Lf(w){return typeof w=="function"}var Hv=r.createContext(null);function JA(w,A,V,Y){if(!Y)return w;var Z=w.findIndex(function(xe){return xe.value===A});if(Z===-1)return w;var se=Y>0?1:-1,le=w[Z+se];if(!le)return w;var ae=w[Z],pe=le.layout,be=l.mix(pe.min,pe.max,.5);return se===1&&ae.layout.max+V>be||se===-1&&ae.layout.min+V<be?dO(w,Z,Z+se):w}function e2(w,A){var V=w.children,Y=w.as,Z=Y===void 0?"ul":Y,se=w.axis,le=se===void 0?"y":se,ae=w.onReorder,pe=w.values,be=t.__rest(w,["children","as","axis","onReorder","values"]),xe=Ne(function(){return Nf(Z)}),Pe=[],_e=r.useRef(!1);a.invariant(!!pe,"Reorder.Group must be provided a values prop");var Ae={axis:le,registerItem:function(Ee,je){je&&Pe.findIndex(function(Ue){return Ee===Ue.value})===-1&&(Pe.push({value:Ee,layout:je[le]}),Pe.sort(n2))},updateOrder:function(Ee,je,Ue){if(!_e.current){var Je=JA(Pe,Ee,je,Ue);Pe!==Je&&(_e.current=!0,ae(Je.map(r2).filter(function(at){return pe.indexOf(at)!==-1})))}}};return r.useEffect(function(){_e.current=!1}),O.createElement(xe,t.__assign({},be,{ref:A}),O.createElement(Hv.Provider,{value:Ae},V))}var t2=r.forwardRef(e2);function r2(w){return w.value}function n2(w,A){return w.layout.min-A.layout.min}function Lo(w){var A=Ne(function(){return cn(w)}),V=r.useContext(_).isStatic;if(V){var Y=t.__read(r.useState(w),2),Z=Y[1];r.useEffect(function(){return A.onChange(Z)},[])}return A}var o2=function(w){return typeof w=="object"&&w.mix},a2=function(w){return o2(w)?w.mix:void 0};function Xv(){for(var w=[],A=0;A<arguments.length;A++)w[A]=arguments[A];var V=!Array.isArray(w[0]),Y=V?0:-1,Z=w[0+Y],se=w[1+Y],le=w[2+Y],ae=w[3+Y],pe=l.interpolate(se,le,t.__assign({mixer:a2(le[0])},ae));return V?pe(Z):pe}function i2(w,A){U(function(){if(Xt(w))return w.onChange(A)},[A])}function s2(w,A){U(function(){var V=w.map(function(Y){return Y.onChange(A)});return function(){return V.forEach(function(Y){return Y()})}})}function Yv(w,A){var V=Lo(A()),Y=function(){return V.set(A())};return Y(),s2(w,function(){return F.default.update(Y,!1,!0)}),V}function cu(w,A,V,Y){var Z=typeof A=="function"?A:Xv(A,V,Y);return Array.isArray(w)?Gv(w,Z):Gv([w],function(se){var le=t.__read(se,1),ae=le[0];return Z(ae)})}function Gv(w,A){var V=Ne(function(){return[]});return Yv(w,function(){V.length=0;for(var Y=w.length,Z=0;Z<Y;Z++)V[Z]=w[Z].get();return A(V)})}function Uv(w,A){return A===void 0&&(A=0),Xt(w)?w:Lo(A)}function l2(w,A){var V=w.children,Y=w.style,Z=w.value,se=w.as,le=se===void 0?"li":se,ae=w.onDrag,pe=w.layout,be=pe===void 0?!0:pe,xe=t.__rest(w,["children","style","value","as","onDrag","layout"]),Pe=Ne(function(){return Nf(le)}),_e=r.useContext(Hv),Ae={x:Uv(Y==null?void 0:Y.x),y:Uv(Y==null?void 0:Y.y)},Ee=cu([Ae.x,Ae.y],function(ft){var gt=t.__read(ft,2),At=gt[0],Et=gt[1];return At||Et?1:"unset"}),je=r.useRef(null);a.invariant(!!_e,"Reorder.Item must be a child of Reorder.Group");var Ue=_e,Je=Ue.axis,at=Ue.registerItem,dt=Ue.updateOrder;return r.useEffect(function(){at(Z,je.current)},[_e]),O.createElement(Pe,t.__assign({drag:Je},xe,{dragSnapToOrigin:!0,style:t.__assign(t.__assign({},Y),{x:Ae.x,y:Ae.y,zIndex:Ee}),layout:be,onDrag:function(ft,gt){var At=gt.velocity;At[Je]&&dt(Z,Ae[Je].get(),At[Je]),ae==null||ae(ft,gt)},onLayoutMeasure:function(ft){je.current=ft},ref:A}),V)}var u2=r.forwardRef(l2),c2={Group:t2,Item:u2},$v=t.__assign(t.__assign({renderer:Mf},Sf),wb),d2=t.__assign(t.__assign(t.__assign(t.__assign({},$v),rv),hv),{projectionNodeConstructor:Rf});function f2(w){for(var A=[],V=1;V<arguments.length;V++)A[V-1]=arguments[V];var Y=w.length;function Z(){for(var se="",le=0;le<Y;le++){se+=w[le];var ae=A[le];ae&&(se+=A[le].get())}return se}return Yv(A,Z)}function p2(w,A){A===void 0&&(A={});var V=r.useContext(_).isStatic,Y=r.useRef(null),Z=Lo(Xt(w)?w.get():w);return r.useMemo(function(){return Z.attach(function(se,le){return V?le(se):(Y.current&&Y.current.stop(),Y.current=l.animate(t.__assign(t.__assign({from:Z.get(),to:se,velocity:Z.getVelocity()},A),{onUpdate:le})),Z.get())})},[JSON.stringify(A)]),i2(w,function(se){return Z.set(parseFloat(se))}),Z}function h2(w){var A=Lo(w.getVelocity());return r.useEffect(function(){return w.velocityUpdateSubscribers.add(function(V){A.set(V)})},[w]),A}var g2=function(){return{scrollX:cn(0),scrollY:cn(0),scrollXProgress:cn(0),scrollYProgress:cn(0)}};function jf(w){w===void 0&&(w={});var A=w.container,V=w.target,Y=t.__rest(w,["container","target"]),Z=Ne(g2);return U(function(){return b.scroll(function(se){var le=se.x,ae=se.y;Z.scrollX.set(le.current),Z.scrollXProgress.set(le.progress),Z.scrollY.set(ae.current),Z.scrollYProgress.set(ae.progress)},t.__assign(t.__assign({},Y),{container:(A==null?void 0:A.current)||void 0,target:(V==null?void 0:V.current)||void 0}))},[]),Z}function b2(w){return af(!1,"useElementScroll is deprecated. Convert to useScroll({ container: ref })."),jf({container:w})}function v2(){return af(!1,"useViewportScroll is deprecated. Convert to useScroll()."),jf()}var m2=typeof performance<"u"?function(){return performance.now()}:function(){return Date.now()};function qv(w){var A=Ne(m2),V=r.useContext(_).isStatic;r.useEffect(function(){if(!V){var Y=function(Z){var se=Z.timestamp;w(se-A)};return F.default.update(Y,!0),function(){return f.cancelSync.update(Y)}}},[w])}function y2(){var w=Lo(0);return qv(function(A){return w.set(A)}),w}function Kv(){var w=!1,A=[],V=new Set,Y={subscribe:function(Z){return V.add(Z),function(){return void V.delete(Z)}},start:function(Z,se){if(w){var le=[];return V.forEach(function(ae){le.push(nu(ae,Z,{transitionOverride:se}))}),Promise.all(le)}else return new Promise(function(ae){A.push({animation:[Z,se],resolve:ae})})},set:function(Z){return a.invariant(w,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),V.forEach(function(se){vO(se,Z)})},stop:function(){V.forEach(function(Z){xO(Z)})},mount:function(){return w=!0,A.forEach(function(Z){var se=Z.animation,le=Z.resolve;Y.start.apply(Y,t.__spreadArray([],t.__read(se),!1)).then(le)}),function(){w=!1,Y.stop()}}};return Y}function Zv(){var w=Ne(Kv);return r.useEffect(w.mount,[]),w}var x2=Zv;function w2(){for(var w=[],A=0;A<arguments.length;A++)w[A]=arguments[A];var V=r.useRef(0),Y=t.__read(r.useState(w[V.current]),2),Z=Y[0],se=Y[1],le=r.useCallback(function(ae){V.current=typeof ae!="number"?l.wrap(0,w.length,V.current+1):ae,se(w[V.current])},t.__spreadArray([w.length],t.__read(w),!1));return[Z,le]}function C2(w,A){var V=A===void 0?{}:A,Y=V.root,Z=V.margin,se=V.amount,le=V.once,ae=le===void 0?!1:le,pe=t.__read(r.useState(!1),2),be=pe[0],xe=pe[1];return r.useEffect(function(){var Pe;if(!(!w.current||ae&&be)){var _e=function(){return xe(!0),ae?void 0:function(){return xe(!1)}},Ae={root:(Pe=Y==null?void 0:Y.current)!==null&&Pe!==void 0?Pe:void 0,margin:Z,amount:se==="some"?"any":se};return b.inView(w.current,_e,Ae)}},[Y,w,Z,ae]),be}var Qv=function(){function w(){this.componentControls=new Set}return w.prototype.subscribe=function(A){var V=this;return this.componentControls.add(A),function(){return V.componentControls.delete(A)}},w.prototype.start=function(A,V){this.componentControls.forEach(function(Y){Y.start(A.nativeEvent||A,V)})},w}(),S2=function(){return new Qv};function k2(){return Ne(S2)}function Jv(){return T2}function T2(w){Pa.current&&(Pa.current.isUpdating=!1,Pa.current.blockUpdate(),w==null||w())}function P2(){var w=t.__read(uu(),2),A=w[0],V=w[1],Y=Jv();return r.useEffect(function(){F.default.postRender(function(){return F.default.postRender(function(){return pf.current=!1})})},[V]),function(Z){Y(function(){pf.current=!0,A(),Z()})}}function _2(){var w=O.useCallback(function(){var A=Pa.current;A&&A.resetTree()},[]);return w}var Df=function(){return{}},O2=su({build:function(){},measureViewportBox:dr,resetTransform:function(){},restoreTransform:function(){},removeValueFromRenderState:function(){},render:function(){},scrapeMotionValuesFromProps:Df,readValueFromInstance:function(w,A,V){return V.initialState[A]||0},makeTargetAnimatable:function(w,A){var V=A.transition,Y=A.transitionEnd,Z=t.__rest(A,["transition","transitionEnd"]),se=Ib(Z,V||{},w);return xf(w,Z,se),t.__assign({transition:V,transitionEnd:Y},Z)}}),A2=E({scrapeMotionValuesFromProps:Df,createRenderState:Df});function E2(w){var A=t.__read(r.useState(w),2),V=A[0],Y=A[1],Z=A2({},!1),se=Ne(function(){return O2({props:{},visualState:Z},{initialState:w})});r.useEffect(function(){return se.mount({}),se.unmount},[se]),r.useEffect(function(){se.setProps({onUpdate:function(ae){Y(t.__assign({},ae))}})},[Y,se]);var le=Ne(function(){return function(ae){return nu(se,ae)}});return[V,le]}var M2=1e5,em=function(w){return w>.001?1/w:M2},tm=!1;function R2(w){var A=Lo(1),V=Lo(1),Y=X();a.invariant(!!(w||Y),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),a.warning(tm,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),tm=!0,w?(A=w.scaleX||A,V=w.scaleY||V):Y&&(A=Y.getValue("scaleX",1),V=Y.getValue("scaleY",1));var Z=cu(A,em),se=cu(V,em);return{scaleX:Z,scaleY:se}}e.AnimatePresence=GA,e.AnimateSharedLayout=KA,e.DeprecatedLayoutGroupContext=Fv,e.DragControls=Qv,e.FlatTree=Av,e.LayoutGroup=Bv,e.LayoutGroupContext=He,e.LazyMotion=QA,e.MotionConfig=ZA,e.MotionConfigContext=_,e.MotionContext=M,e.MotionValue=Mb,e.PresenceContext=H,e.Reorder=c2,e.SwitchLayoutGroupContext=Ze,e.addPointerEvent=st,e.addScaleCorrector=yt,e.animate=gv,e.animateVisualElement=nu,e.animationControls=Kv,e.animations=Sf,e.calcLength=Zn,e.checkTargetForNewValues=xf,e.createBox=dr,e.createDomMotionComponent=WA,e.createMotionComponent=It,e.domAnimation=$v,e.domMax=d2,e.filterProps=xa,e.isBrowser=B,e.isDragActive=Er,e.isMotionValue=Xt,e.isValidMotionProp=Zr,e.m=BA,e.makeUseVisualState=E,e.motion=Nf,e.motionValue=cn,e.resolveMotionValue=x,e.transform=Xv,e.useAnimation=x2,e.useAnimationControls=Zv,e.useAnimationFrame=qv,e.useCycle=w2,e.useDeprecatedAnimatedState=E2,e.useDeprecatedInvertedScale=R2,e.useDomEvent=Q,e.useDragControls=k2,e.useElementScroll=b2,e.useForceUpdate=uu,e.useInView=C2,e.useInstantLayoutTransition=Jv,e.useInstantTransition=P2,e.useIsPresent=Z_,e.useIsomorphicLayoutEffect=U,e.useMotionTemplate=f2,e.useMotionValue=Lo,e.usePresence=uf,e.useReducedMotion=fe,e.useReducedMotionConfig=ve,e.useResetProjection=_2,e.useScroll=jf,e.useSpring=p2,e.useTime=y2,e.useTransform=cu,e.useUnmountEffect=ar,e.useVelocity=h2,e.useViewportScroll=v2,e.useVisualElementContext=X,e.visualElement=su,e.wrapHandler=we})(gr);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{AccordionBody:function(){return R},default:function(){return P}});var r=F(ee),a=gr,s=F(ct),l=F(xr),f=F(nt),b=it,S=Od,T=rt,O=Bl;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.className,g=y.children,m=z(y,["className","children"]),_=(0,S.useAccordion)(),M=_.open,X=_.animate,H=(0,T.useTheme)().accordion,B=H.styles.base;v=v??"";var U=(0,b.twMerge)((0,s.default)((0,f.default)(B.body)),v),K={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},ne={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},oe=(0,l.default)(ne,X);return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(a.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:M?"mount":"unmount",variants:K},r.default.createElement(a.m.div,j({},m,{ref:p,className:U,initial:"unmount",exit:"unmount",animate:M?"mount":"unmount",variants:oe}),g)))});R.propTypes={className:O.propTypesClassName,children:O.propTypesChildren},R.displayName="MaterialTailwind.AccordionBody";var P=R})(Xk);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Accordion:function(){return P},AccordionHeader:function(){return T.AccordionHeader},AccordionBody:function(){return O.AccordionBody},useAccordion:function(){return b.useAccordion},default:function(){return y}});var r=z(ee),a=z(ct),s=it,l=z(nt),f=rt,b=Od,S=Bl,T=Hk,O=Xk;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.open,m=p.icon,_=p.animate,M=p.className,X=p.disabled,H=p.children,B=D(p,["open","icon","animate","className","disabled","children"]),U=(0,f.useTheme)().accordion,K=U.defaultProps,ne=U.styles.base;m=m??K.icon,_=_??K.animate,M=M??K.className,X=X??K.disabled;var oe=(0,s.twMerge)((0,a.default)((0,l.default)(ne.container),j({},(0,l.default)(ne.disabled),X)),M),fe=r.default.useMemo(function(){return{open:g,icon:m,animate:_,disabled:X}},[g,m,_,X]);return r.default.createElement(b.AccordionContextProvider,{value:fe},r.default.createElement("div",F({},B,{ref:v,className:oe}),H))});P.propTypes={open:S.propTypesOpen,icon:S.propTypesIcon,animate:S.propTypesAnimate,disabled:S.propTypesDisabled,className:S.propTypesClassName,children:S.propTypesChildren},P.displayName="MaterialTailwind.Accordion";var y=Object.assign(P,{Header:T.AccordionHeader,Body:O.AccordionBody})})(mC);var vT={},Ht={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(a,s,l){var f=a.findIndex(function(b){return b===s});return f>=0?s:l}var r=t})(Ht);var Vd={},ss=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,a,s,l,f){return this.x=t-a>r/2?0:r,this.y=s-f>l/2?0:l,this.z=Math.hypot(this.x-(t-a),this.y-(s-f)),this.z}appyStyles(t,r,a,s,l){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=l.clientX-a.left-s+"px",t.style.top=l.clientY-a.top-s+"px",t.style.width=t.style.height=s*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const a=t.currentTarget;a.style.position="relative",a.style.overflow="hidden";const s=a.getBoundingClientRect(),l=this.findFurthestPoint(t.clientX,a.offsetWidth,s.left,t.clientY,a.offsetHeight,s.top),f=document.createElement("span");this.appyStyles(f,r,s,l,t),this.applyAnimation(f),a.appendChild(f),setTimeout(()=>f.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{IconButton:function(){return R},default:function(){return P}});var r=F(ee),a=F(ot),s=F(ss),l=F(ct),f=it,b=F(Ht),S=F(nt),T=rt,O=Ka;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.size,m=y.color,_=y.ripple,M=y.className,X=y.children;y.fullWidth;var H=z(y,["variant","size","color","ripple","className","children","fullWidth"]),B=(0,T.useTheme)().iconButton,U=B.valid,K=B.defaultProps,ne=B.styles,oe=ne.base,fe=ne.variants,ve=ne.sizes;v=v??K.variant,g=g??K.size,m=m??K.color,_=_??K.ripple,M=M??K.className;var Se=_!==void 0&&new s.default,he=(0,S.default)(oe),ue=(0,S.default)(fe[(0,b.default)(U.variants,v,"filled")][(0,b.default)(U.colors,m,"gray")]),ge=(0,S.default)(ve[(0,b.default)(U.sizes,g,"md")]),ye=(0,f.twMerge)((0,l.default)(he,ge,ue),M);return r.default.createElement("button",j({},H,{ref:p,className:ye,type:H.type||"button",onMouseDown:function(Te){var Re=H==null?void 0:H.onMouseDown;return _&&Se.create(Te,(v==="filled"||v==="gradient")&&m!=="white"?"light":"dark"),typeof Re=="function"&&Re(Te)}}),r.default.createElement("span",{className:"absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2"},X))});R.propTypes={variant:a.default.oneOf(O.propTypesVariant),size:a.default.oneOf(O.propTypesSize),color:a.default.oneOf(O.propTypesColor),ripple:O.propTypesRipple,className:O.propTypesClassName,children:O.propTypesChildren},R.displayName="MaterialTailwind.IconButton";var P=R})(Vd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{Alert:function(){return y},default:function(){return p}});var r=D(ee),a=D(ot),s=gr,l=D(ct),f=D(xr),b=it,S=D(Ht),T=D(nt),O=rt,j=c0,F=D(Vd);function z(){return z=Object.assign||function(v){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var _ in m)Object.prototype.hasOwnProperty.call(m,_)&&(v[_]=m[_])}return v},z.apply(this,arguments)}function D(v){return v&&v.__esModule?v:{default:v}}function R(v,g){if(v==null)return{};var m=P(v,g),_,M;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(v);for(M=0;M<X.length;M++)_=X[M],!(g.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(v,_)&&(m[_]=v[_])}return m}function P(v,g){if(v==null)return{};var m={},_=Object.keys(v),M,X;for(X=0;X<_.length;X++)M=_[X],!(g.indexOf(M)>=0)&&(m[M]=v[M]);return m}var y=r.default.forwardRef(function(v,g){var m=v.variant,_=v.color,M=v.icon,X=v.open,H=v.action,B=v.onClose,U=v.animate,K=v.className,ne=v.children,oe=R(v,["variant","color","icon","open","action","onClose","animate","className","children"]),fe=(0,O.useTheme)().alert,ve=fe.defaultProps,Se=fe.valid,he=fe.styles,ue=he.base,ge=he.variants;m=m??ve.variant,_=_??ve.color,K=K??ve.className,U=U??ve.animate,X=X??ve.open,H=H??ve.action,B=B??ve.onClose;var ye=(0,T.default)(ue.alert),Te=(0,T.default)(ue.action),Re=(0,T.default)(ge[(0,S.default)(Se.variants,m,"filled")][(0,S.default)(Se.colors,_,"gray")]),De=(0,b.twMerge)((0,l.default)(ye,Re),K),Le=(0,l.default)(Te),Oe={unmount:{opacity:0},mount:{opacity:1}},Xe=(0,f.default)(Oe,U),Ve=r.default.createElement("div",{className:"shrink-0"},M),ke=s.AnimatePresence;return r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(ke,null,X&&r.default.createElement(s.m.div,z({},oe,{ref:g,role:"alert",className:"".concat(De," flex"),initial:"unmount",exit:"unmount",animate:X?"mount":"unmount",variants:Xe}),M&&Ve,r.default.createElement("div",{className:"".concat(M?"ml-3":""," mr-12")},ne),B&&!H&&r.default.createElement(F.default,{onClick:B,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:Le},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),H||null)))});y.propTypes={variant:a.default.oneOf(j.propTypesVariant),color:a.default.oneOf(j.propTypesColor),icon:j.propTypesIcon,open:j.propTypesOpen,action:j.propTypesAction,onClose:j.propTypesOnClose,animate:j.propTypesAnimate,className:j.propTypesClassName,children:j.propTypesChildren},y.displayName="MaterialTailwind.Alert";var p=y})(vT);var mT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Avatar:function(){return R},default:function(){return P}});var r=F(ee),a=F(ot),s=F(ct),l=it,f=F(Ht),b=F(nt),S=rt,T=d0;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.size,m=y.className,_=y.color,M=y.withBorder,X=z(y,["variant","size","className","color","withBorder"]),H=(0,S.useTheme)().avatar,B=H.valid,U=H.defaultProps,K=H.styles,ne=K.base,oe=K.variants,fe=K.sizes,ve=K.borderColor;v=v??U.variant,g=g??U.size,m=m??U.className,M=M??U.withBorder,_=_??U.color;var Se=(0,b.default)(oe[(0,f.default)(B.variants,v,"rounded")]),he=(0,b.default)(fe[(0,f.default)(B.sizes,g,"md")]),ue=(0,b.default)(ve[(0,f.default)(B.colors,_,"gray")]),ge,ye=(0,l.twMerge)((0,s.default)((0,b.default)(ne.initial),Se,he,(ge={},O(ge,(0,b.default)(ne.withBorder),M),O(ge,ue,M),ge)),m);return r.default.createElement("img",j({},X,{ref:p,className:ye}))});R.propTypes={variant:a.default.oneOf(T.propTypesVariant),size:a.default.oneOf(T.propTypesSize),className:T.propTypesClassName,withBorder:T.propTypesWithBorder,color:a.default.oneOf(T.propTypesColor)},R.displayName="MaterialTailwind.Avatar";var P=R})(mT);var yT={},xT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{propTypesSeparator:function(){return s},propTypesFullWidth:function(){return l},propTypesClassName:function(){return f},propTypesChildren:function(){return b}});var r=a(ot);function a(S){return S&&S.__esModule?S:{default:S}}var s=r.default.node,l=r.default.bool,f=r.default.string,b=r.default.node.isRequired})(xT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Breadcrumbs:function(){return R},default:function(){return P}});var r=F(ee),a=O(ct),s=it,l=O(nt),f=rt,b=xT;function S(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function T(){return T=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},T.apply(this,arguments)}function O(y){return y&&y.__esModule?y:{default:y}}function j(y){if(typeof WeakMap!="function")return null;var p=new WeakMap,v=new WeakMap;return(j=function(g){return g?v:p})(y)}function F(y,p){if(!p&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var v=j(p);if(v&&v.has(y))return v.get(y);var g={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in y)if(_!=="default"&&Object.prototype.hasOwnProperty.call(y,_)){var M=m?Object.getOwnPropertyDescriptor(y,_):null;M&&(M.get||M.set)?Object.defineProperty(g,_,M):g[_]=y[_]}return g.default=y,v&&v.set(y,g),g}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=(0,r.forwardRef)(function(y,p){var v=y.separator,g=y.fullWidth,m=y.className,_=y.children,M=z(y,["separator","fullWidth","className","children"]),X=(0,f.useTheme)().breadcrumbs,H=X.defaultProps,B=X.styles.base;v=v??H.separator,g=g??H.fullWidth,m=m??H.className;var U=(0,a.default)((0,l.default)(B.root.initial),S({},(0,l.default)(B.root.fullWidth),g)),K=(0,s.twMerge)((0,a.default)((0,l.default)(B.list)),m),ne=(0,a.default)((0,l.default)(B.item.initial)),oe=(0,a.default)((0,l.default)(B.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:U},r.default.createElement("ol",T({},M,{ref:p,className:K}),r.Children.map(_,function(fe,ve){if((0,r.isValidElement)(fe)){var Se;return r.default.createElement("li",{className:(0,a.default)(ne,S({},(0,l.default)(B.item.disabled),fe==null||(Se=fe.props)===null||Se===void 0?void 0:Se.disabled))},fe,ve!==r.Children.count(_)-1&&r.default.createElement("span",{className:oe},v))}return null})))});R.propTypes={separator:b.propTypesSeparator,fullWidth:b.propTypesFullWidth,className:b.propTypesClassName,children:b.propTypesChildren},R.displayName="MaterialTailwind.Breadcrumbs";var P=R})(yT);var wT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Button:function(){return P},default:function(){return y}});var r=z(ee),a=z(ot),s=z(ss),l=z(ct),f=it,b=z(Ht),S=z(nt),T=rt,O=Ka;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.variant,m=p.size,_=p.color,M=p.fullWidth,X=p.ripple,H=p.className,B=p.children,U=D(p,["variant","size","color","fullWidth","ripple","className","children"]),K=(0,T.useTheme)().button,ne=K.valid,oe=K.defaultProps,fe=K.styles,ve=fe.base,Se=fe.variants,he=fe.sizes;g=g??oe.variant,m=m??oe.size,_=_??oe.color,M=M??oe.fullWidth,X=X??oe.ripple,H=H??oe.className;var ue=X!==void 0&&new s.default,ge=(0,S.default)(ve.initial),ye=(0,S.default)(Se[(0,b.default)(ne.variants,g,"filled")][(0,b.default)(ne.colors,_,"gray")]),Te=(0,S.default)(he[(0,b.default)(ne.sizes,m,"md")]),Re=(0,f.twMerge)((0,l.default)(ge,Te,ye,j({},(0,S.default)(ve.fullWidth),M)),H);return r.default.createElement("button",F({},U,{ref:v,className:Re,type:U.type||"button",onMouseDown:function(De){var Le=U==null?void 0:U.onMouseDown;return X&&ue.create(De,(g==="filled"||g==="gradient")&&_!=="white"?"light":"dark"),typeof Le=="function"&&Le(De)}}),B)});P.propTypes={variant:a.default.oneOf(O.propTypesVariant),size:a.default.oneOf(O.propTypesSize),color:a.default.oneOf(O.propTypesColor),fullWidth:O.propTypesFullWidth,ripple:O.propTypesRipple,className:O.propTypesClassName,children:O.propTypesChildren},P.displayName="MaterialTailwind.Button";var y=P})(wT);var CT={},ST={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{CardHeader:function(){return R},default:function(){return P}});var r=F(ee),a=F(ot),s=F(ct),l=it,f=F(Ht),b=F(nt),S=rt,T=Za;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.color,m=y.shadow,_=y.floated,M=y.className,X=y.children,H=z(y,["variant","color","shadow","floated","className","children"]),B=(0,S.useTheme)().cardHeader,U=B.defaultProps,K=B.styles,ne=B.valid,oe=K.base,fe=K.variants;v=v??U.variant,g=g??U.color,m=m??U.shadow,_=_??U.floated,M=M??U.className;var ve=(0,b.default)(oe.initial),Se=(0,b.default)(fe[(0,f.default)(ne.variants,v,"filled")][(0,f.default)(ne.colors,g,"white")]),he=(0,l.twMerge)((0,s.default)(ve,Se,O({},(0,b.default)(oe.shadow),m),O({},(0,b.default)(oe.floated),_)),M);return r.default.createElement("div",j({},H,{ref:p,className:he}),X)});R.propTypes={variant:a.default.oneOf(T.propTypesVariant),color:a.default.oneOf(T.propTypesColor),shadow:T.propTypesShadow,floated:T.propTypesFloated,className:T.propTypesClassName,children:T.propTypesChildren},R.displayName="MaterialTailwind.CardHeader";var P=R})(ST);var kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{CardBody:function(){return F},default:function(){return z}});var r=T(ee),a=T(ct),s=it,l=T(nt),f=rt,b=Za;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,f.useTheme)().cardBody,g=v.defaultProps,m=v.styles.base;P=P??g.className;var _=(0,s.twMerge)((0,a.default)((0,l.default)(m)),P);return r.default.createElement("div",S({},p,{ref:R,className:_}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.CardBody";var z=F})(kT);var TT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{CardFooter:function(){return z},default:function(){return D}});var r=O(ee),a=O(ct),s=it,l=O(nt),f=rt,b=Za;function S(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function T(){return T=Object.assign||function(R){for(var P=1;P<arguments.length;P++){var y=arguments[P];for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(R[p]=y[p])}return R},T.apply(this,arguments)}function O(R){return R&&R.__esModule?R:{default:R}}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.divider,p=R.className,v=R.children,g=j(R,["divider","className","children"]),m=(0,f.useTheme)().cardFooter,_=m.defaultProps,M=m.styles.base;p=p??_.className,y=y??_.divider;var X=(0,s.twMerge)((0,a.default)((0,l.default)(M.initial),S({},(0,l.default)(M.divider),y)),p);return r.default.createElement("div",T({},g,{ref:P,className:X}),v)});z.propTypes={divider:b.propTypesDivider,className:b.propTypesClassName,children:b.propTypesChildren},z.displayName="MaterialTailwind.CardFooter";var D=z})(TT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return p},CardHeader:function(){return T.CardHeader},CardBody:function(){return O.CardBody},CardFooter:function(){return j.CardFooter},default:function(){return v}});var r=R(ee),a=R(ot),s=R(ct),l=it,f=R(Ht),b=R(nt),S=rt,T=ST,O=kT,j=TT,F=Za;function z(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function D(){return D=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},D.apply(this,arguments)}function R(g){return g&&g.__esModule?g:{default:g}}function P(g,m){if(g==null)return{};var _=y(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function y(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}var p=r.default.forwardRef(function(g,m){var _=g.variant,M=g.color,X=g.shadow,H=g.className,B=g.children,U=P(g,["variant","color","shadow","className","children"]),K=(0,S.useTheme)().card,ne=K.defaultProps,oe=K.styles,fe=K.valid,ve=oe.base,Se=oe.variants;_=_??ne.variant,M=M??ne.color,X=X??ne.shadow,H=H??ne.className;var he=(0,b.default)(ve.initial),ue=(0,b.default)(Se[(0,f.default)(fe.variants,_,"filled")][(0,f.default)(fe.colors,M,"white")]),ge=(0,l.twMerge)((0,s.default)(he,ue,z({},(0,b.default)(ve.shadow),X)),H);return r.default.createElement("div",D({},U,{ref:m,className:ge}),B)});p.propTypes={variant:a.default.oneOf(F.propTypesVariant),color:a.default.oneOf(F.propTypesColor),shadow:F.propTypesShadow,className:F.propTypesClassName,children:F.propTypesChildren},p.displayName="MaterialTailwind.Card";var v=Object.assign(p,{Header:T.CardHeader,Body:O.CardBody,Footer:j.CardFooter})})(CT);var PT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Checkbox:function(){return P},default:function(){return y}});var r=z(ee),a=z(ot),s=z(ss),l=z(ct),f=it,b=z(Ht),S=z(nt),T=rt,O=Qa;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.color,m=p.label,_=p.icon,M=p.ripple,X=p.className,H=p.disabled,B=p.containerProps,U=p.labelProps,K=p.iconProps,ne=p.inputRef,oe=D(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),fe=(0,T.useTheme)().checkbox,ve=fe.defaultProps,Se=fe.valid,he=fe.styles,ue=he.base,ge=he.colors,ye=r.default.useId();g=g??ve.color,m=m??ve.label,_=_??ve.icon,M=M??ve.ripple,X=X??ve.className,H=H??ve.disabled,B=B??ve.containerProps,U=U??ve.labelProps,K=K??ve.iconProps;var Te=M!==void 0&&new s.default,Re=(0,l.default)((0,S.default)(ue.root),j({},(0,S.default)(ue.disabled),H)),De=(0,f.twMerge)((0,l.default)((0,S.default)(ue.container)),B==null?void 0:B.className),Le=(0,f.twMerge)((0,l.default)((0,S.default)(ue.input),(0,S.default)(ge[(0,b.default)(Se.colors,g,"gray")])),X),Oe=(0,f.twMerge)((0,l.default)((0,S.default)(ue.label)),U==null?void 0:U.className),Xe=(0,f.twMerge)((0,l.default)((0,S.default)(ue.icon)),K==null?void 0:K.className);return r.default.createElement("div",{ref:v,className:Re},r.default.createElement("label",F({},B,{className:De,htmlFor:oe.id||ye,onMouseDown:function(Ve){var ke=B==null?void 0:B.onMouseDown;return M&&Te.create(Ve,"dark"),typeof ke=="function"&&ke(Ve)}}),r.default.createElement("input",F({},oe,{ref:ne,type:"checkbox",disabled:H,className:Le,id:oe.id||ye})),r.default.createElement("span",{className:Xe},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",F({},U,{className:Oe,htmlFor:oe.id||ye}),m))});P.propTypes={color:a.default.oneOf(O.propTypesColor),label:O.propTypesLabel,icon:O.propTypesIcon,ripple:O.propTypesRipple,className:O.propTypesClassName,disabled:O.propTypesDisabled,containerProps:O.propTypesObject,labelProps:O.propTypesObject},P.displayName="MaterialTailwind.Checkbox";var y=P})(PT);var _T={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{Chip:function(){return y},default:function(){return p}});var r=D(ee),a=D(ot),s=gr,l=D(ct),f=D(xr),b=it,S=D(Ht),T=D(nt),O=rt,j=m0,F=D(Vd);function z(){return z=Object.assign||function(v){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var _ in m)Object.prototype.hasOwnProperty.call(m,_)&&(v[_]=m[_])}return v},z.apply(this,arguments)}function D(v){return v&&v.__esModule?v:{default:v}}function R(v,g){if(v==null)return{};var m=P(v,g),_,M;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(v);for(M=0;M<X.length;M++)_=X[M],!(g.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(v,_)&&(m[_]=v[_])}return m}function P(v,g){if(v==null)return{};var m={},_=Object.keys(v),M,X;for(X=0;X<_.length;X++)M=_[X],!(g.indexOf(M)>=0)&&(m[M]=v[M]);return m}var y=r.default.forwardRef(function(v,g){var m=v.variant,_=v.size,M=v.color,X=v.icon,H=v.open,B=v.onClose,U=v.action,K=v.animate,ne=v.className,oe=v.value,fe=R(v,["variant","size","color","icon","open","onClose","action","animate","className","value"]),ve=(0,O.useTheme)().chip,Se=ve.defaultProps,he=ve.valid,ue=ve.styles,ge=ue.base,ye=ue.variants,Te=ue.sizes;m=m??Se.variant,_=_??Se.size,M=M??Se.color,ne=ne??Se.className,K=K??Se.animate,H=H??Se.open,U=U??Se.action,B=B??Se.onClose;var Re=(0,T.default)(ge.chip),De=(0,T.default)(ge.action),Le=(0,T.default)(ge.icon),Oe=(0,T.default)(ye[(0,S.default)(he.variants,m,"filled")][(0,S.default)(he.colors,M,"gray")]),Xe=(0,T.default)(Te[(0,S.default)(he.sizes,_,"md")].chip),Ve=(0,T.default)(Te[(0,S.default)(he.sizes,_,"md")].action),ke=(0,T.default)(Te[(0,S.default)(he.sizes,_,"md")].icon),Me=(0,b.twMerge)((0,l.default)(Re,Oe,Xe),ne),Ne=(0,l.default)(De,Ve),Ge=(0,l.default)(Le,ke),Qe=(0,l.default)({"ml-4":X&&_==="sm","ml-[18px]":X&&_==="md","ml-5":X&&_==="lg","mr-5":B}),qe={unmount:{opacity:0},mount:{opacity:1}},He=(0,f.default)(qe,K),Ze=r.default.createElement("div",{className:Ge},X),bt=s.AnimatePresence;return r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(bt,null,H&&r.default.createElement(s.m.div,z({},fe,{ref:g,className:Me,initial:"unmount",exit:"unmount",animate:H?"mount":"unmount",variants:He}),X&&Ze,r.default.createElement("span",{className:Qe},oe),B&&!U&&r.default.createElement(F.default,{onClick:B,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?M:"white",className:Ne},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,l.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),U||null)))});y.propTypes={variant:a.default.oneOf(j.propTypesVariant),size:a.default.oneOf(j.propTypesSize),color:a.default.oneOf(j.propTypesColor),icon:j.propTypesIcon,open:j.propTypesOpen,onClose:j.propTypesOnClose,action:j.propTypesAction,animate:j.propTypesAnimate,className:j.propTypesClassName,value:j.propTypesValue},y.displayName="MaterialTailwind.Chip";var p=y})(_T);var OT={},UD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},di=new WeakMap,Ru=new WeakMap,Nu={},yp=0,AT=function(e){return e&&(e.host||AT(e.parentNode))},$D=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=AT(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},qD=function(e,t,r,a){var s=$D(t,Array.isArray(e)?e:[e]);Nu[r]||(Nu[r]=new WeakMap);var l=Nu[r],f=[],b=new Set,S=new Set(s),T=function(j){!j||b.has(j)||(b.add(j),T(j.parentNode))};s.forEach(T);var O=function(j){!j||S.has(j)||Array.prototype.forEach.call(j.children,function(F){if(b.has(F))O(F);else try{var z=F.getAttribute(a),D=z!==null&&z!=="false",R=(di.get(F)||0)+1,P=(l.get(F)||0)+1;di.set(F,R),l.set(F,P),f.push(F),R===1&&D&&Ru.set(F,!0),P===1&&F.setAttribute(r,"true"),D||F.setAttribute(a,"true")}catch(y){console.error("aria-hidden: cannot operate on ",F,y)}})};return O(t),b.clear(),yp++,function(){f.forEach(function(j){var F=di.get(j)-1,z=l.get(j)-1;di.set(j,F),l.set(j,z),F||(Ru.has(j)||j.removeAttribute(a),Ru.delete(j)),z||j.removeAttribute(r)}),yp--,yp||(di=new WeakMap,di=new WeakMap,Ru=new WeakMap,Nu={})}},KD=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=t||UD(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),qD(a,s,r,"aria-hidden")):function(){return null}};/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var ZD=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],$h=ZD.join(","),ET=typeof Element>"u",El=ET?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qc=!ET&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Kc=function e(t,r){var a;r===void 0&&(r=!0);var s=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"inert"),l=s===""||s==="true",f=l||r&&t&&e(t.parentNode);return f},QD=function(t){var r,a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return a===""||a==="true"},JD=function(t,r,a){if(Kc(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll($h));return r&&El.call(t,$h)&&s.unshift(t),s=s.filter(a),s},ez=function e(t,r,a){for(var s=[],l=Array.from(t);l.length;){var f=l.shift();if(!Kc(f,!1))if(f.tagName==="SLOT"){var b=f.assignedElements(),S=b.length?b:f.children,T=e(S,!0,a);a.flatten?s.push.apply(s,T):s.push({scopeParent:f,candidates:T})}else{var O=El.call(f,$h);O&&a.filter(f)&&(r||!t.includes(f))&&s.push(f);var j=f.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(f),F=!Kc(j,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(f));if(j&&F){var z=e(j===!0?f.children:j.children,!0,a);a.flatten?s.push.apply(s,z):s.push({scopeParent:f,candidates:z})}else l.unshift.apply(l,f.children)}}return s},MT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},RT=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||QD(t))&&!MT(t)?0:t.tabIndex},tz=function(t,r){var a=RT(t);return a<0&&r&&!MT(t)?0:a},rz=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},NT=function(t){return t.tagName==="INPUT"},nz=function(t){return NT(t)&&t.type==="hidden"},oz=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(a){return a.tagName==="SUMMARY"});return r},az=function(t,r){for(var a=0;a<t.length;a++)if(t[a].checked&&t[a].form===r)return t[a]},iz=function(t){if(!t.name)return!0;var r=t.form||qc(t),a=function(b){return r.querySelectorAll('input[type="radio"][name="'+b+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(t.name));else try{s=a(t.name)}catch(f){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",f.message),!1}var l=az(s,t.form);return!l||l===t},sz=function(t){return NT(t)&&t.type==="radio"},lz=function(t){return sz(t)&&!iz(t)},uz=function(t){var r,a=t&&qc(t),s=(r=a)===null||r===void 0?void 0:r.host,l=!1;if(a&&a!==t){var f,b,S;for(l=!!((f=s)!==null&&f!==void 0&&(b=f.ownerDocument)!==null&&b!==void 0&&b.contains(s)||t!=null&&(S=t.ownerDocument)!==null&&S!==void 0&&S.contains(t));!l&&s;){var T,O,j;a=qc(s),s=(T=a)===null||T===void 0?void 0:T.host,l=!!((O=s)!==null&&O!==void 0&&(j=O.ownerDocument)!==null&&j!==void 0&&j.contains(s))}}return l},Uy=function(t){var r=t.getBoundingClientRect(),a=r.width,s=r.height;return a===0&&s===0},cz=function(t,r){var a=r.displayCheck,s=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var l=El.call(t,"details>summary:first-of-type"),f=l?t.parentElement:t;if(El.call(f,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof s=="function"){for(var b=t;t;){var S=t.parentElement,T=qc(t);if(S&&!S.shadowRoot&&s(S)===!0)return Uy(t);t.assignedSlot?t=t.assignedSlot:!S&&T!==t.ownerDocument?t=T.host:t=S}t=b}if(uz(t))return!t.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Uy(t);return!1},dz=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var a=0;a<r.children.length;a++){var s=r.children.item(a);if(s.tagName==="LEGEND")return El.call(r,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}r=r.parentElement}return!1},fz=function(t,r){return!(r.disabled||Kc(r)||nz(r)||cz(r,t)||oz(r)||dz(r))},$y=function(t,r){return!(lz(r)||RT(r)<0||!fz(t,r))},pz=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},hz=function e(t){var r=[],a=[];return t.forEach(function(s,l){var f=!!s.scopeParent,b=f?s.scopeParent:s,S=tz(b,f),T=f?e(s.candidates):b;S===0?f?r.push.apply(r,T):r.push(b):a.push({documentOrder:l,tabIndex:S,item:s,isScope:f,content:T})}),a.sort(rz).reduce(function(s,l){return l.isScope?s.push.apply(s,l.content):s.push(l.content),s},[]).concat(r)},Zc=function(t,r){r=r||{};var a;return r.getShadowRoot?a=ez([t],r.includeContainer,{filter:$y.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:pz}):a=JD(t,r.includeContainer,$y.bind(null,r)),hz(a)};const IT=["top","right","bottom","left"],qy=["start","end"],Ky=IT.reduce((e,t)=>e.concat(t,t+"-"+qy[0],t+"-"+qy[1]),[]),Vn=Math.min,_r=Math.max,Qc=Math.round,Iu=Math.floor,oo=e=>({x:e,y:e}),gz={left:"right",right:"left",bottom:"top",top:"bottom"},bz={start:"end",end:"start"};function qh(e,t,r){return _r(e,Vn(t,r))}function Wn(e,t){return typeof e=="function"?e(t):e}function sn(e){return e.split("-")[0]}function Dn(e){return e.split("-")[1]}function U0(e){return e==="x"?"y":"x"}function $0(e){return e==="y"?"height":"width"}const vz=new Set(["top","bottom"]);function In(e){return vz.has(sn(e))?"y":"x"}function q0(e){return U0(In(e))}function LT(e,t,r){r===void 0&&(r=!1);const a=Dn(e),s=q0(e),l=$0(s);let f=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(f=ed(f)),[f,ed(f)]}function mz(e){const t=ed(e);return[Jc(e),t,Jc(t)]}function Jc(e){return e.replace(/start|end/g,t=>bz[t])}const Zy=["left","right"],Qy=["right","left"],yz=["top","bottom"],xz=["bottom","top"];function wz(e,t,r){switch(e){case"top":case"bottom":return r?t?Qy:Zy:t?Zy:Qy;case"left":case"right":return t?yz:xz;default:return[]}}function Cz(e,t,r,a){const s=Dn(e);let l=wz(sn(e),r==="start",a);return s&&(l=l.map(f=>f+"-"+s),t&&(l=l.concat(l.map(Jc)))),l}function ed(e){return e.replace(/left|right|bottom|top/g,t=>gz[t])}function Sz(e){return{top:0,right:0,bottom:0,left:0,...e}}function K0(e){return typeof e!="number"?Sz(e):{top:e,right:e,bottom:e,left:e}}function Ki(e){const{x:t,y:r,width:a,height:s}=e;return{width:a,height:s,top:r,left:t,right:t+a,bottom:r+s,x:t,y:r}}function Jy(e,t,r){let{reference:a,floating:s}=e;const l=In(t),f=q0(t),b=$0(f),S=sn(t),T=l==="y",O=a.x+a.width/2-s.width/2,j=a.y+a.height/2-s.height/2,F=a[b]/2-s[b]/2;let z;switch(S){case"top":z={x:O,y:a.y-s.height};break;case"bottom":z={x:O,y:a.y+a.height};break;case"right":z={x:a.x+a.width,y:j};break;case"left":z={x:a.x-s.width,y:j};break;default:z={x:a.x,y:a.y}}switch(Dn(t)){case"start":z[f]-=F*(r&&T?-1:1);break;case"end":z[f]+=F*(r&&T?-1:1);break}return z}const kz=async(e,t,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:l=[],platform:f}=r,b=l.filter(Boolean),S=await(f.isRTL==null?void 0:f.isRTL(t));let T=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:O,y:j}=Jy(T,a,S),F=a,z={},D=0;for(let R=0;R<b.length;R++){const{name:P,fn:y}=b[R],{x:p,y:v,data:g,reset:m}=await y({x:O,y:j,initialPlacement:a,placement:F,strategy:s,middlewareData:z,rects:T,platform:f,elements:{reference:e,floating:t}});O=p??O,j=v??j,z={...z,[P]:{...z[P],...g}},m&&D<=50&&(D++,typeof m=="object"&&(m.placement&&(F=m.placement),m.rects&&(T=m.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):m.rects),{x:O,y:j}=Jy(T,F,S)),R=-1)}return{x:O,y:j,placement:F,strategy:s,middlewareData:z}};async function Wa(e,t){var r;t===void 0&&(t={});const{x:a,y:s,platform:l,rects:f,elements:b,strategy:S}=e,{boundary:T="clippingAncestors",rootBoundary:O="viewport",elementContext:j="floating",altBoundary:F=!1,padding:z=0}=Wn(t,e),D=K0(z),P=b[F?j==="floating"?"reference":"floating":j],y=Ki(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(P)))==null||r?P:P.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(b.floating)),boundary:T,rootBoundary:O,strategy:S})),p=j==="floating"?{x:a,y:s,width:f.floating.width,height:f.floating.height}:f.reference,v=await(l.getOffsetParent==null?void 0:l.getOffsetParent(b.floating)),g=await(l.isElement==null?void 0:l.isElement(v))?await(l.getScale==null?void 0:l.getScale(v))||{x:1,y:1}:{x:1,y:1},m=Ki(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:p,offsetParent:v,strategy:S}):p);return{top:(y.top-m.top+D.top)/g.y,bottom:(m.bottom-y.bottom+D.bottom)/g.y,left:(y.left-m.left+D.left)/g.x,right:(m.right-y.right+D.right)/g.x}}const Tz=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:s,rects:l,platform:f,elements:b,middlewareData:S}=t,{element:T,padding:O=0}=Wn(e,t)||{};if(T==null)return{};const j=K0(O),F={x:r,y:a},z=q0(s),D=$0(z),R=await f.getDimensions(T),P=z==="y",y=P?"top":"left",p=P?"bottom":"right",v=P?"clientHeight":"clientWidth",g=l.reference[D]+l.reference[z]-F[z]-l.floating[D],m=F[z]-l.reference[z],_=await(f.getOffsetParent==null?void 0:f.getOffsetParent(T));let M=_?_[v]:0;(!M||!await(f.isElement==null?void 0:f.isElement(_)))&&(M=b.floating[v]||l.floating[D]);const X=g/2-m/2,H=M/2-R[D]/2-1,B=Vn(j[y],H),U=Vn(j[p],H),K=B,ne=M-R[D]-U,oe=M/2-R[D]/2+X,fe=qh(K,oe,ne),ve=!S.arrow&&Dn(s)!=null&&oe!==fe&&l.reference[D]/2-(oe<K?B:U)-R[D]/2<0,Se=ve?oe<K?oe-K:oe-ne:0;return{[z]:F[z]+Se,data:{[z]:fe,centerOffset:oe-fe-Se,...ve&&{alignmentOffset:Se}},reset:ve}}});function Pz(e,t,r){return(e?[...r.filter(s=>Dn(s)===e),...r.filter(s=>Dn(s)!==e)]:r.filter(s=>sn(s)===s)).filter(s=>e?Dn(s)===e||(t?Jc(s)!==s:!1):!0)}const _z=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,a,s;const{rects:l,middlewareData:f,placement:b,platform:S,elements:T}=t,{crossAxis:O=!1,alignment:j,allowedPlacements:F=Ky,autoAlignment:z=!0,...D}=Wn(e,t),R=j!==void 0||F===Ky?Pz(j||null,z,F):F,P=await Wa(t,D),y=((r=f.autoPlacement)==null?void 0:r.index)||0,p=R[y];if(p==null)return{};const v=LT(p,l,await(S.isRTL==null?void 0:S.isRTL(T.floating)));if(b!==p)return{reset:{placement:R[0]}};const g=[P[sn(p)],P[v[0]],P[v[1]]],m=[...((a=f.autoPlacement)==null?void 0:a.overflows)||[],{placement:p,overflows:g}],_=R[y+1];if(_)return{data:{index:y+1,overflows:m},reset:{placement:_}};const M=m.map(B=>{const U=Dn(B.placement);return[B.placement,U&&O?B.overflows.slice(0,2).reduce((K,ne)=>K+ne,0):B.overflows[0],B.overflows]}).sort((B,U)=>B[1]-U[1]),H=((s=M.filter(B=>B[2].slice(0,Dn(B[0])?2:3).every(U=>U<=0))[0])==null?void 0:s[0])||M[0][0];return H!==b?{data:{index:y+1,overflows:m},reset:{placement:H}}:{}}}},Oz=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:s,middlewareData:l,rects:f,initialPlacement:b,platform:S,elements:T}=t,{mainAxis:O=!0,crossAxis:j=!0,fallbackPlacements:F,fallbackStrategy:z="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:R=!0,...P}=Wn(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const y=sn(s),p=In(b),v=sn(b)===b,g=await(S.isRTL==null?void 0:S.isRTL(T.floating)),m=F||(v||!R?[ed(b)]:mz(b)),_=D!=="none";!F&&_&&m.push(...Cz(b,R,D,g));const M=[b,...m],X=await Wa(t,P),H=[];let B=((a=l.flip)==null?void 0:a.overflows)||[];if(O&&H.push(X[y]),j){const oe=LT(s,f,g);H.push(X[oe[0]],X[oe[1]])}if(B=[...B,{placement:s,overflows:H}],!H.every(oe=>oe<=0)){var U,K;const oe=(((U=l.flip)==null?void 0:U.index)||0)+1,fe=M[oe];if(fe&&(!(j==="alignment"?p!==In(fe):!1)||B.every(he=>In(he.placement)===p?he.overflows[0]>0:!0)))return{data:{index:oe,overflows:B},reset:{placement:fe}};let ve=(K=B.filter(Se=>Se.overflows[0]<=0).sort((Se,he)=>Se.overflows[1]-he.overflows[1])[0])==null?void 0:K.placement;if(!ve)switch(z){case"bestFit":{var ne;const Se=(ne=B.filter(he=>{if(_){const ue=In(he.placement);return ue===p||ue==="y"}return!0}).map(he=>[he.placement,he.overflows.filter(ue=>ue>0).reduce((ue,ge)=>ue+ge,0)]).sort((he,ue)=>he[1]-ue[1])[0])==null?void 0:ne[0];Se&&(ve=Se);break}case"initialPlacement":ve=b;break}if(s!==ve)return{reset:{placement:ve}}}return{}}}};function ex(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tx(e){return IT.some(t=>e[t]>=0)}const Az=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:a="referenceHidden",...s}=Wn(e,t);switch(a){case"referenceHidden":{const l=await Wa(t,{...s,elementContext:"reference"}),f=ex(l,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:tx(f)}}}case"escaped":{const l=await Wa(t,{...s,altBoundary:!0}),f=ex(l,r.floating);return{data:{escapedOffsets:f,escaped:tx(f)}}}default:return{}}}}};function jT(e){const t=Vn(...e.map(l=>l.left)),r=Vn(...e.map(l=>l.top)),a=_r(...e.map(l=>l.right)),s=_r(...e.map(l=>l.bottom));return{x:t,y:r,width:a-t,height:s-r}}function Ez(e){const t=e.slice().sort((s,l)=>s.y-l.y),r=[];let a=null;for(let s=0;s<t.length;s++){const l=t[s];!a||l.y-a.y>a.height/2?r.push([l]):r[r.length-1].push(l),a=l}return r.map(s=>Ki(jT(s)))}const Mz=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:a,rects:s,platform:l,strategy:f}=t,{padding:b=2,x:S,y:T}=Wn(e,t),O=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(a.reference))||[]),j=Ez(O),F=Ki(jT(O)),z=K0(b);function D(){if(j.length===2&&j[0].left>j[1].right&&S!=null&&T!=null)return j.find(P=>S>P.left-z.left&&S<P.right+z.right&&T>P.top-z.top&&T<P.bottom+z.bottom)||F;if(j.length>=2){if(In(r)==="y"){const B=j[0],U=j[j.length-1],K=sn(r)==="top",ne=B.top,oe=U.bottom,fe=K?B.left:U.left,ve=K?B.right:U.right,Se=ve-fe,he=oe-ne;return{top:ne,bottom:oe,left:fe,right:ve,width:Se,height:he,x:fe,y:ne}}const P=sn(r)==="left",y=_r(...j.map(B=>B.right)),p=Vn(...j.map(B=>B.left)),v=j.filter(B=>P?B.left===p:B.right===y),g=v[0].top,m=v[v.length-1].bottom,_=p,M=y,X=M-_,H=m-g;return{top:g,bottom:m,left:_,right:M,width:X,height:H,x:_,y:g}}return F}const R=await l.getElementRects({reference:{getBoundingClientRect:D},floating:a.floating,strategy:f});return s.reference.x!==R.reference.x||s.reference.y!==R.reference.y||s.reference.width!==R.reference.width||s.reference.height!==R.reference.height?{reset:{rects:R}}:{}}}},DT=new Set(["left","top"]);async function Rz(e,t){const{placement:r,platform:a,elements:s}=e,l=await(a.isRTL==null?void 0:a.isRTL(s.floating)),f=sn(r),b=Dn(r),S=In(r)==="y",T=DT.has(f)?-1:1,O=l&&S?-1:1,j=Wn(t,e);let{mainAxis:F,crossAxis:z,alignmentAxis:D}=typeof j=="number"?{mainAxis:j,crossAxis:0,alignmentAxis:null}:{mainAxis:j.mainAxis||0,crossAxis:j.crossAxis||0,alignmentAxis:j.alignmentAxis};return b&&typeof D=="number"&&(z=b==="end"?D*-1:D),S?{x:z*O,y:F*T}:{x:F*T,y:z*O}}const Nz=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:s,y:l,placement:f,middlewareData:b}=t,S=await Rz(t,e);return f===((r=b.offset)==null?void 0:r.placement)&&(a=b.arrow)!=null&&a.alignmentOffset?{}:{x:s+S.x,y:l+S.y,data:{...S,placement:f}}}}},Iz=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:s}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:b={fn:P=>{let{x:y,y:p}=P;return{x:y,y:p}}},...S}=Wn(e,t),T={x:r,y:a},O=await Wa(t,S),j=In(sn(s)),F=U0(j);let z=T[F],D=T[j];if(l){const P=F==="y"?"top":"left",y=F==="y"?"bottom":"right",p=z+O[P],v=z-O[y];z=qh(p,z,v)}if(f){const P=j==="y"?"top":"left",y=j==="y"?"bottom":"right",p=D+O[P],v=D-O[y];D=qh(p,D,v)}const R=b.fn({...t,[F]:z,[j]:D});return{...R,data:{x:R.x-r,y:R.y-a,enabled:{[F]:l,[j]:f}}}}}},Lz=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:s,rects:l,middlewareData:f}=t,{offset:b=0,mainAxis:S=!0,crossAxis:T=!0}=Wn(e,t),O={x:r,y:a},j=In(s),F=U0(j);let z=O[F],D=O[j];const R=Wn(b,t),P=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(S){const v=F==="y"?"height":"width",g=l.reference[F]-l.floating[v]+P.mainAxis,m=l.reference[F]+l.reference[v]-P.mainAxis;z<g?z=g:z>m&&(z=m)}if(T){var y,p;const v=F==="y"?"width":"height",g=DT.has(sn(s)),m=l.reference[j]-l.floating[v]+(g&&((y=f.offset)==null?void 0:y[j])||0)+(g?0:P.crossAxis),_=l.reference[j]+l.reference[v]+(g?0:((p=f.offset)==null?void 0:p[j])||0)-(g?P.crossAxis:0);D<m?D=m:D>_&&(D=_)}return{[F]:z,[j]:D}}}},jz=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:s,rects:l,platform:f,elements:b}=t,{apply:S=()=>{},...T}=Wn(e,t),O=await Wa(t,T),j=sn(s),F=Dn(s),z=In(s)==="y",{width:D,height:R}=l.floating;let P,y;j==="top"||j==="bottom"?(P=j,y=F===(await(f.isRTL==null?void 0:f.isRTL(b.floating))?"start":"end")?"left":"right"):(y=j,P=F==="end"?"top":"bottom");const p=R-O.top-O.bottom,v=D-O.left-O.right,g=Vn(R-O[P],p),m=Vn(D-O[y],v),_=!t.middlewareData.shift;let M=g,X=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(X=v),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(M=p),_&&!F){const B=_r(O.left,0),U=_r(O.right,0),K=_r(O.top,0),ne=_r(O.bottom,0);z?X=D-2*(B!==0||U!==0?B+U:_r(O.left,O.right)):M=R-2*(K!==0||ne!==0?K+ne:_r(O.top,O.bottom))}await S({...t,availableWidth:X,availableHeight:M});const H=await f.getDimensions(b.floating);return D!==H.width||R!==H.height?{reset:{rects:!0}}:{}}}};function Wd(){return typeof window<"u"}function ls(e){return zT(e)?(e.nodeName||"").toLowerCase():"#document"}function rn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function io(e){var t;return(t=(zT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zT(e){return Wd()?e instanceof Node||e instanceof rn(e).Node:!1}function Bn(e){return Wd()?e instanceof Element||e instanceof rn(e).Element:!1}function ao(e){return Wd()?e instanceof HTMLElement||e instanceof rn(e).HTMLElement:!1}function rx(e){return!Wd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rn(e).ShadowRoot}const Dz=new Set(["inline","contents"]);function $l(e){const{overflow:t,overflowX:r,overflowY:a,display:s}=Hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!Dz.has(s)}const zz=new Set(["table","td","th"]);function Fz(e){return zz.has(ls(e))}const Vz=[":popover-open",":modal"];function Bd(e){return Vz.some(t=>{try{return e.matches(t)}catch{return!1}})}const Wz=["transform","translate","scale","rotate","perspective"],Bz=["transform","translate","scale","rotate","perspective","filter"],Hz=["paint","layout","strict","content"];function Z0(e){const t=Q0(),r=Bn(e)?Hn(e):e;return Wz.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Bz.some(a=>(r.willChange||"").includes(a))||Hz.some(a=>(r.contain||"").includes(a))}function Xz(e){let t=ca(e);for(;ao(t)&&!Zi(t);){if(Z0(t))return t;if(Bd(t))return null;t=ca(t)}return null}function Q0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yz=new Set(["html","body","#document"]);function Zi(e){return Yz.has(ls(e))}function Hn(e){return rn(e).getComputedStyle(e)}function Hd(e){return Bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ca(e){if(ls(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rx(e)&&e.host||io(e);return rx(t)?t.host:t}function FT(e){const t=ca(e);return Zi(t)?e.ownerDocument?e.ownerDocument.body:e.body:ao(t)&&$l(t)?t:FT(t)}function wo(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=FT(e),l=s===((a=e.ownerDocument)==null?void 0:a.body),f=rn(s);if(l){const b=Kh(f);return t.concat(f,f.visualViewport||[],$l(s)?s:[],b&&r?wo(b):[])}return t.concat(s,wo(s,[],r))}function Kh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function VT(e){const t=Hn(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=ao(e),l=s?e.offsetWidth:r,f=s?e.offsetHeight:a,b=Qc(r)!==l||Qc(a)!==f;return b&&(r=l,a=f),{width:r,height:a,$:b}}function J0(e){return Bn(e)?e:e.contextElement}function Di(e){const t=J0(e);if(!ao(t))return oo(1);const r=t.getBoundingClientRect(),{width:a,height:s,$:l}=VT(t);let f=(l?Qc(r.width):r.width)/a,b=(l?Qc(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!b||!Number.isFinite(b))&&(b=1),{x:f,y:b}}const Gz=oo(0);function WT(e){const t=rn(e);return!Q0()||!t.visualViewport?Gz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uz(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==rn(e)?!1:t}function Ba(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),l=J0(e);let f=oo(1);t&&(a?Bn(a)&&(f=Di(a)):f=Di(e));const b=Uz(l,r,a)?WT(l):oo(0);let S=(s.left+b.x)/f.x,T=(s.top+b.y)/f.y,O=s.width/f.x,j=s.height/f.y;if(l){const F=rn(l),z=a&&Bn(a)?rn(a):a;let D=F,R=Kh(D);for(;R&&a&&z!==D;){const P=Di(R),y=R.getBoundingClientRect(),p=Hn(R),v=y.left+(R.clientLeft+parseFloat(p.paddingLeft))*P.x,g=y.top+(R.clientTop+parseFloat(p.paddingTop))*P.y;S*=P.x,T*=P.y,O*=P.x,j*=P.y,S+=v,T+=g,D=rn(R),R=Kh(D)}}return Ki({width:O,height:j,x:S,y:T})}function Xd(e,t){const r=Hd(e).scrollLeft;return t?t.left+r:Ba(io(e)).left+r}function BT(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-Xd(e,r),s=r.top+t.scrollTop;return{x:a,y:s}}function $z(e){let{elements:t,rect:r,offsetParent:a,strategy:s}=e;const l=s==="fixed",f=io(a),b=t?Bd(t.floating):!1;if(a===f||b&&l)return r;let S={scrollLeft:0,scrollTop:0},T=oo(1);const O=oo(0),j=ao(a);if((j||!j&&!l)&&((ls(a)!=="body"||$l(f))&&(S=Hd(a)),ao(a))){const z=Ba(a);T=Di(a),O.x=z.x+a.clientLeft,O.y=z.y+a.clientTop}const F=f&&!j&&!l?BT(f,S):oo(0);return{width:r.width*T.x,height:r.height*T.y,x:r.x*T.x-S.scrollLeft*T.x+O.x+F.x,y:r.y*T.y-S.scrollTop*T.y+O.y+F.y}}function qz(e){return Array.from(e.getClientRects())}function Kz(e){const t=io(e),r=Hd(e),a=e.ownerDocument.body,s=_r(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=_r(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let f=-r.scrollLeft+Xd(e);const b=-r.scrollTop;return Hn(a).direction==="rtl"&&(f+=_r(t.clientWidth,a.clientWidth)-s),{width:s,height:l,x:f,y:b}}const nx=25;function Zz(e,t){const r=rn(e),a=io(e),s=r.visualViewport;let l=a.clientWidth,f=a.clientHeight,b=0,S=0;if(s){l=s.width,f=s.height;const O=Q0();(!O||O&&t==="fixed")&&(b=s.offsetLeft,S=s.offsetTop)}const T=Xd(a);if(T<=0){const O=a.ownerDocument,j=O.body,F=getComputedStyle(j),z=O.compatMode==="CSS1Compat"&&parseFloat(F.marginLeft)+parseFloat(F.marginRight)||0,D=Math.abs(a.clientWidth-j.clientWidth-z);D<=nx&&(l-=D)}else T<=nx&&(l+=T);return{width:l,height:f,x:b,y:S}}const Qz=new Set(["absolute","fixed"]);function Jz(e,t){const r=Ba(e,!0,t==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,l=ao(e)?Di(e):oo(1),f=e.clientWidth*l.x,b=e.clientHeight*l.y,S=s*l.x,T=a*l.y;return{width:f,height:b,x:S,y:T}}function ox(e,t,r){let a;if(t==="viewport")a=Zz(e,r);else if(t==="document")a=Kz(io(e));else if(Bn(t))a=Jz(t,r);else{const s=WT(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ki(a)}function HT(e,t){const r=ca(e);return r===t||!Bn(r)||Zi(r)?!1:Hn(r).position==="fixed"||HT(r,t)}function eF(e,t){const r=t.get(e);if(r)return r;let a=wo(e,[],!1).filter(b=>Bn(b)&&ls(b)!=="body"),s=null;const l=Hn(e).position==="fixed";let f=l?ca(e):e;for(;Bn(f)&&!Zi(f);){const b=Hn(f),S=Z0(f);!S&&b.position==="fixed"&&(s=null),(l?!S&&!s:!S&&b.position==="static"&&!!s&&Qz.has(s.position)||$l(f)&&!S&&HT(e,f))?a=a.filter(O=>O!==f):s=b,f=ca(f)}return t.set(e,a),a}function tF(e){let{element:t,boundary:r,rootBoundary:a,strategy:s}=e;const f=[...r==="clippingAncestors"?Bd(t)?[]:eF(t,this._c):[].concat(r),a],b=f[0],S=f.reduce((T,O)=>{const j=ox(t,O,s);return T.top=_r(j.top,T.top),T.right=Vn(j.right,T.right),T.bottom=Vn(j.bottom,T.bottom),T.left=_r(j.left,T.left),T},ox(t,b,s));return{width:S.right-S.left,height:S.bottom-S.top,x:S.left,y:S.top}}function rF(e){const{width:t,height:r}=VT(e);return{width:t,height:r}}function nF(e,t,r){const a=ao(t),s=io(t),l=r==="fixed",f=Ba(e,!0,l,t);let b={scrollLeft:0,scrollTop:0};const S=oo(0);function T(){S.x=Xd(s)}if(a||!a&&!l)if((ls(t)!=="body"||$l(s))&&(b=Hd(t)),a){const z=Ba(t,!0,l,t);S.x=z.x+t.clientLeft,S.y=z.y+t.clientTop}else s&&T();l&&!a&&s&&T();const O=s&&!a&&!l?BT(s,b):oo(0),j=f.left+b.scrollLeft-S.x-O.x,F=f.top+b.scrollTop-S.y-O.y;return{x:j,y:F,width:f.width,height:f.height}}function xp(e){return Hn(e).position==="static"}function ax(e,t){if(!ao(e)||Hn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return io(e)===r&&(r=r.ownerDocument.body),r}function XT(e,t){const r=rn(e);if(Bd(e))return r;if(!ao(e)){let s=ca(e);for(;s&&!Zi(s);){if(Bn(s)&&!xp(s))return s;s=ca(s)}return r}let a=ax(e,t);for(;a&&Fz(a)&&xp(a);)a=ax(a,t);return a&&Zi(a)&&xp(a)&&!Z0(a)?r:a||Xz(e)||r}const oF=async function(e){const t=this.getOffsetParent||XT,r=this.getDimensions,a=await r(e.floating);return{reference:nF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function aF(e){return Hn(e).direction==="rtl"}const YT={convertOffsetParentRelativeRectToViewportRelativeRect:$z,getDocumentElement:io,getClippingRect:tF,getOffsetParent:XT,getElementRects:oF,getClientRects:qz,getDimensions:rF,getScale:Di,isElement:Bn,isRTL:aF};function GT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iF(e,t){let r=null,a;const s=io(e);function l(){var b;clearTimeout(a),(b=r)==null||b.disconnect(),r=null}function f(b,S){b===void 0&&(b=!1),S===void 0&&(S=1),l();const T=e.getBoundingClientRect(),{left:O,top:j,width:F,height:z}=T;if(b||t(),!F||!z)return;const D=Iu(j),R=Iu(s.clientWidth-(O+F)),P=Iu(s.clientHeight-(j+z)),y=Iu(O),v={rootMargin:-D+"px "+-R+"px "+-P+"px "+-y+"px",threshold:_r(0,Vn(1,S))||1};let g=!0;function m(_){const M=_[0].intersectionRatio;if(M!==S){if(!g)return f();M?f(!1,M):a=setTimeout(()=>{f(!1,1e-7)},1e3)}M===1&&!GT(T,e.getBoundingClientRect())&&f(),g=!1}try{r=new IntersectionObserver(m,{...v,root:s.ownerDocument})}catch{r=new IntersectionObserver(m,v)}r.observe(e)}return f(!0),l}function sF(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:S=!1}=a,T=J0(e),O=s||l?[...T?wo(T):[],...wo(t)]:[];O.forEach(y=>{s&&y.addEventListener("scroll",r,{passive:!0}),l&&y.addEventListener("resize",r)});const j=T&&b?iF(T,r):null;let F=-1,z=null;f&&(z=new ResizeObserver(y=>{let[p]=y;p&&p.target===T&&z&&(z.unobserve(t),cancelAnimationFrame(F),F=requestAnimationFrame(()=>{var v;(v=z)==null||v.observe(t)})),r()}),T&&!S&&z.observe(T),z.observe(t));let D,R=S?Ba(e):null;S&&P();function P(){const y=Ba(e);R&&!GT(R,y)&&r(),R=y,D=requestAnimationFrame(P)}return r(),()=>{var y;O.forEach(p=>{s&&p.removeEventListener("scroll",r),l&&p.removeEventListener("resize",r)}),j==null||j(),(y=z)==null||y.disconnect(),z=null,S&&cancelAnimationFrame(D)}}const oc=Wa,UT=Nz,lF=_z,uF=Iz,cF=Oz,dF=jz,fF=Az,ix=Tz,pF=Mz,hF=Lz,$T=(e,t,r)=>{const a=new Map,s={platform:YT,...r},l={...s.platform,_c:a};return kz(e,t,{...s,platform:l})},gF=e=>{const{element:t,padding:r}=e;function a(s){return Object.prototype.hasOwnProperty.call(s,"current")}return{name:"arrow",options:e,fn(s){return a(t)?t.current!=null?ix({element:t.current,padding:r}).fn(s):{}:t?ix({element:t,padding:r}).fn(s):{}}}};var ac=typeof document<"u"?ee.useLayoutEffect:ee.useEffect;function td(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(a=r;a--!==0;)if(!td(e[a],t[a]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[a]))return!1;for(a=r;a--!==0;){const l=s[a];if(!(l==="_owner"&&e.$$typeof)&&!td(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function sx(e){const t=ee.useRef(e);return ac(()=>{t.current=e}),t}function bF(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:s,whileElementsMounted:l,open:f}=e,[b,S]=ee.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[T,O]=ee.useState(a);td(T,a)||O(a);const j=ee.useRef(null),F=ee.useRef(null),z=ee.useRef(b),D=sx(l),R=sx(s),[P,y]=ee.useState(null),[p,v]=ee.useState(null),g=ee.useCallback(B=>{j.current!==B&&(j.current=B,y(B))},[]),m=ee.useCallback(B=>{F.current!==B&&(F.current=B,v(B))},[]),_=ee.useCallback(()=>{if(!j.current||!F.current)return;const B={placement:t,strategy:r,middleware:T};R.current&&(B.platform=R.current),$T(j.current,F.current,B).then(U=>{const K={...U,isPositioned:!0};M.current&&!td(z.current,K)&&(z.current=K,Po.flushSync(()=>{S(K)}))})},[T,t,r,R]);ac(()=>{f===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,S(B=>({...B,isPositioned:!1})))},[f]);const M=ee.useRef(!1);ac(()=>(M.current=!0,()=>{M.current=!1}),[]),ac(()=>{if(P&&p){if(D.current)return D.current(P,p,_);_()}},[P,p,_,D]);const X=ee.useMemo(()=>({reference:j,floating:F,setReference:g,setFloating:m}),[g,m]),H=ee.useMemo(()=>({reference:P,floating:p}),[P,p]);return ee.useMemo(()=>({...b,update:_,refs:X,elements:H,reference:g,floating:m}),[b,_,X,H,g,m])}var Gt=typeof document<"u"?ee.useLayoutEffect:ee.useEffect;let wp=!1,vF=0;const lx=()=>"floating-ui-"+vF++;function mF(){const[e,t]=ee.useState(()=>wp?lx():void 0);return Gt(()=>{e==null&&t(lx())},[]),ee.useEffect(()=>{wp||(wp=!0)},[]),e}const yF=pg["useId".toString()],Ml=yF||mF;function qT(){const e=new Map;return{emit(t,r){var a;(a=e.get(t))==null||a.forEach(s=>s(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(a=>a!==r))}}}const KT=ee.createContext(null),ZT=ee.createContext(null),us=()=>{var e;return((e=ee.useContext(KT))==null?void 0:e.id)||null},ei=()=>ee.useContext(ZT),xF=e=>{const t=Ml(),r=ei(),a=us(),s=e||a;return Gt(()=>{const l={id:t,parentId:s};return r==null||r.addNode(l),()=>{r==null||r.removeNode(l)}},[r,t,s]),t},wF=e=>{let{children:t,id:r}=e;const a=us();return ee.createElement(KT.Provider,{value:ee.useMemo(()=>({id:r,parentId:a}),[r,a])},t)},CF=e=>{let{children:t}=e;const r=ee.useRef([]),a=ee.useCallback(f=>{r.current=[...r.current,f]},[]),s=ee.useCallback(f=>{r.current=r.current.filter(b=>b!==f)},[]),l=ee.useState(()=>qT())[0];return ee.createElement(ZT.Provider,{value:ee.useMemo(()=>({nodesRef:r,addNode:a,removeNode:s,events:l}),[r,a,s,l])},t)};function Ur(e){return(e==null?void 0:e.ownerDocument)||document}function eb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function QT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:a}=t;return r+"/"+a}).join(" "):navigator.userAgent}function tb(e){return Ur(e).defaultView||window}function mn(e){return e?e instanceof tb(e).Element:!1}function Ha(e){return e?e instanceof tb(e).HTMLElement:!1}function SF(e){if(typeof ShadowRoot>"u")return!1;const t=tb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JT(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(eb())||t.test(QT()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function eP(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function Zh(){return/apple/i.test(navigator.vendor)}function tP(){return eb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function rd(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function yn(e){const t=ee.useRef(e);return Gt(()=>{t.current=e}),t}const ux="data-floating-ui-safe-polygon";function ic(e,t,r){return r&&!rd(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const kF=function(e,t){let{enabled:r=!0,delay:a=0,handleClose:s=null,mouseOnly:l=!1,restMs:f=0,move:b=!0}=t===void 0?{}:t;const{open:S,onOpenChange:T,dataRef:O,events:j,elements:{domReference:F,floating:z},refs:D}=e,R=ei(),P=us(),y=yn(s),p=yn(a),v=ee.useRef(),g=ee.useRef(),m=ee.useRef(),_=ee.useRef(),M=ee.useRef(!0),X=ee.useRef(!1),H=ee.useRef(()=>{}),B=ee.useCallback(()=>{var oe;const fe=(oe=O.current.openEvent)==null?void 0:oe.type;return(fe==null?void 0:fe.includes("mouse"))&&fe!=="mousedown"},[O]);ee.useEffect(()=>{if(!r)return;function oe(){clearTimeout(g.current),clearTimeout(_.current),M.current=!0}return j.on("dismiss",oe),()=>{j.off("dismiss",oe)}},[r,j]),ee.useEffect(()=>{if(!r||!y.current||!S)return;function oe(){B()&&T(!1)}const fe=Ur(z).documentElement;return fe.addEventListener("mouseleave",oe),()=>{fe.removeEventListener("mouseleave",oe)}},[z,S,T,r,y,O,B]);const U=ee.useCallback(function(oe){oe===void 0&&(oe=!0);const fe=ic(p.current,"close",v.current);fe&&!m.current?(clearTimeout(g.current),g.current=setTimeout(()=>T(!1),fe)):oe&&(clearTimeout(g.current),T(!1))},[p,T]),K=ee.useCallback(()=>{H.current(),m.current=void 0},[]),ne=ee.useCallback(()=>{if(X.current){const oe=Ur(D.floating.current).body;oe.style.pointerEvents="",oe.removeAttribute(ux),X.current=!1}},[D]);return ee.useEffect(()=>{if(!r)return;function oe(){return O.current.openEvent?["click","mousedown"].includes(O.current.openEvent.type):!1}function fe(he){if(clearTimeout(g.current),M.current=!1,l&&!rd(v.current)||f>0&&ic(p.current,"open")===0)return;O.current.openEvent=he;const ue=ic(p.current,"open",v.current);ue?g.current=setTimeout(()=>{T(!0)},ue):T(!0)}function ve(he){if(oe())return;H.current();const ue=Ur(z);if(clearTimeout(_.current),y.current){clearTimeout(g.current),m.current=y.current({...e,tree:R,x:he.clientX,y:he.clientY,onClose(){ne(),K(),U()}});const ge=m.current;ue.addEventListener("mousemove",ge),H.current=()=>{ue.removeEventListener("mousemove",ge)};return}U()}function Se(he){oe()||y.current==null||y.current({...e,tree:R,x:he.clientX,y:he.clientY,onClose(){K(),U()}})(he)}if(mn(F)){const he=F;return S&&he.addEventListener("mouseleave",Se),z==null||z.addEventListener("mouseleave",Se),b&&he.addEventListener("mousemove",fe,{once:!0}),he.addEventListener("mouseenter",fe),he.addEventListener("mouseleave",ve),()=>{S&&he.removeEventListener("mouseleave",Se),z==null||z.removeEventListener("mouseleave",Se),b&&he.removeEventListener("mousemove",fe),he.removeEventListener("mouseenter",fe),he.removeEventListener("mouseleave",ve)}}},[F,z,r,e,l,f,b,U,K,ne,T,S,R,p,y,O]),Gt(()=>{var oe;if(r&&S&&(oe=y.current)!=null&&oe.__options.blockPointerEvents&&B()){const Se=Ur(z).body;if(Se.setAttribute(ux,""),Se.style.pointerEvents="none",X.current=!0,mn(F)&&z){var fe,ve;const he=F,ue=R==null||(fe=R.nodesRef.current.find(ge=>ge.id===P))==null||(ve=fe.context)==null?void 0:ve.elements.floating;return ue&&(ue.style.pointerEvents=""),he.style.pointerEvents="auto",z.style.pointerEvents="auto",()=>{he.style.pointerEvents="",z.style.pointerEvents=""}}}},[r,S,P,z,F,R,y,O,B]),Gt(()=>{S||(v.current=void 0,K(),ne())},[S,K,ne]),ee.useEffect(()=>()=>{K(),clearTimeout(g.current),clearTimeout(_.current),ne()},[r,K,ne]),ee.useMemo(()=>{if(!r)return{};function oe(fe){v.current=fe.pointerType}return{reference:{onPointerDown:oe,onPointerEnter:oe,onMouseMove(){S||f===0||(clearTimeout(_.current),_.current=setTimeout(()=>{M.current||T(!0)},f))}},floating:{onMouseEnter(){clearTimeout(g.current)},onMouseLeave(){j.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),U(!1)}}}},[j,r,f,S,T,U])},rP=ee.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),nP=()=>ee.useContext(rP),TF=e=>{let{children:t,delay:r,timeoutMs:a=0}=e;const[s,l]=ee.useReducer((S,T)=>({...S,...T}),{delay:r,timeoutMs:a,initialDelay:r,currentId:null,isInstantPhase:!1}),f=ee.useRef(null),b=ee.useCallback(S=>{l({currentId:S})},[]);return Gt(()=>{s.currentId?f.current===null?f.current=s.currentId:l({isInstantPhase:!0}):(l({isInstantPhase:!1}),f.current=null)},[s.currentId]),ee.createElement(rP.Provider,{value:ee.useMemo(()=>({...s,setState:l,setCurrentId:b}),[s,l,b])},t)},PF=(e,t)=>{let{open:r,onOpenChange:a}=e,{id:s}=t;const{currentId:l,setCurrentId:f,initialDelay:b,setState:S,timeoutMs:T}=nP();ee.useEffect(()=>{l&&(S({delay:{open:1,close:ic(b,"close")}}),l!==s&&a(!1))},[s,a,S,l,b]),ee.useEffect(()=>{function O(){a(!1),S({delay:b,currentId:null})}if(!r&&l===s)if(T){const j=window.setTimeout(O,T);return()=>{clearTimeout(j)}}else O()},[r,S,l,s,a,b,T]),ee.useEffect(()=>{r&&f(s)},[r,f,s])};function Rl(){return Rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Rl.apply(this,arguments)}function Xa(e){let t=e.activeElement;for(;((r=t)==null||(a=r.shadowRoot)==null?void 0:a.activeElement)!=null;){var r,a;t=t.shadowRoot.activeElement}return t}function Hr(e,t){if(!e||!t)return!1;const r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SF(r)){let a=t;do{if(a&&e===a)return!0;a=a.parentNode||a.host}while(a)}return!1}let cx=0;function Ho(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:a=!0,sync:s=!1}=t;a&&cancelAnimationFrame(cx);const l=()=>e==null?void 0:e.focus({preventScroll:r});s?l():cx=requestAnimationFrame(l)}function _F(e,t){var r;let a=[],s=(r=e.find(l=>l.id===t))==null?void 0:r.parentId;for(;s;){const l=e.find(f=>f.id===s);s=l==null?void 0:l.parentId,l&&(a=a.concat(l))}return a}function ol(e,t){let r=e.filter(s=>{var l;return s.parentId===t&&((l=s.context)==null?void 0:l.open)})||[],a=r;for(;a.length;)a=e.filter(s=>{var l;return(l=a)==null?void 0:l.some(f=>{var b;return s.parentId===f.id&&((b=s.context)==null?void 0:b.open)})})||[],r=r.concat(a);return r}function Yd(e){return"composedPath"in e?e.composedPath()[0]:e.target}const OF="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function oP(e){return Ha(e)&&e.matches(OF)}function hn(e){e.preventDefault(),e.stopPropagation()}const nd=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function aP(e,t){const r=Zc(e,nd());t==="prev"&&r.reverse();const a=r.indexOf(Xa(Ur(e)));return r.slice(a+1)[0]}function iP(){return aP(document.body,"next")}function sP(){return aP(document.body,"prev")}function al(e,t){const r=t||e.currentTarget,a=e.relatedTarget;return!a||!Hr(r,a)}function AF(e){Zc(e,nd()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function EF(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const a=r.dataset.tabindex;delete r.dataset.tabindex,a?r.setAttribute("tabindex",a):r.removeAttribute("tabindex")})}const MF=pg["useInsertionEffect".toString()],RF=MF||(e=>e());function cs(e){const t=ee.useRef(()=>{});return RF(()=>{t.current=e}),ee.useCallback(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return t.current==null?void 0:t.current(...a)},[])}const rb={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Qh,nb;function dx(e){e.key==="Tab"&&(Qh=e.target,clearTimeout(nb))}function NF(e){const t=Qh===e.relatedTarget;return Qh=e.relatedTarget,clearTimeout(nb),t}const od=ee.forwardRef(function(t,r){const a=cs(t.onFocus),[s,l]=ee.useState();return Gt(()=>(Zh()&&l("button"),document.addEventListener("keydown",dx),()=>{document.removeEventListener("keydown",dx)}),[]),ee.createElement("span",Rl({},t,{ref:r,tabIndex:0,role:s,"aria-hidden":s?void 0:!0,"data-floating-ui-focus-guard":"",style:rb,onFocus:f=>{Zh()&&tP()&&!NF(f)?(f.persist(),nb=window.setTimeout(()=>{a(f)},50)):a(f)}}))}),lP=ee.createContext(null),uP=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[a,s]=ee.useState(null),l=Ml(),f=cP();return Gt(()=>{if(!r)return;const b=t?document.getElementById(t):null;if(b)b.setAttribute("data-floating-ui-portal",""),s(b);else{const S=document.createElement("div");t!==""&&(S.id=t||l),S.setAttribute("data-floating-ui-portal",""),s(S);const T=(f==null?void 0:f.portalNode)||document.body;return T.appendChild(S),()=>{T.removeChild(S)}}},[t,f,l,r]),a},IF=e=>{let{children:t,id:r,root:a=null,preserveTabOrder:s=!0}=e;const l=uP({id:r,enabled:!a}),[f,b]=ee.useState(null),S=ee.useRef(null),T=ee.useRef(null),O=ee.useRef(null),j=ee.useRef(null),F=!!f&&!f.modal&&!!(a||l)&&s;return ee.useEffect(()=>{if(!l||!s||f!=null&&f.modal)return;function z(D){l&&al(D)&&(D.type==="focusin"?EF:AF)(l)}return l.addEventListener("focusin",z,!0),l.addEventListener("focusout",z,!0),()=>{l.removeEventListener("focusin",z,!0),l.removeEventListener("focusout",z,!0)}},[l,s,f==null?void 0:f.modal]),ee.createElement(lP.Provider,{value:ee.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:S,afterOutsideRef:T,beforeInsideRef:O,afterInsideRef:j,portalNode:l,setFocusManagerState:b}),[s,l])},F&&l&&ee.createElement(od,{"data-type":"outside",ref:S,onFocus:z=>{if(al(z,l)){var D;(D=O.current)==null||D.focus()}else{const R=sP()||(f==null?void 0:f.refs.domReference.current);R==null||R.focus()}}}),F&&l&&ee.createElement("span",{"aria-owns":l.id,style:rb}),a?Po.createPortal(t,a):l?Po.createPortal(t,l):null,F&&l&&ee.createElement(od,{"data-type":"outside",ref:T,onFocus:z=>{if(al(z,l)){var D;(D=j.current)==null||D.focus()}else{const R=iP()||(f==null?void 0:f.refs.domReference.current);R==null||R.focus(),f!=null&&f.closeOnFocusOut&&(f==null||f.onOpenChange(!1))}}}))},cP=()=>ee.useContext(lP),LF=ee.forwardRef(function(t,r){return ee.createElement("button",Rl({},t,{type:"button",ref:r,tabIndex:-1,style:rb}))});function jF(e){let{context:t,children:r,order:a=["content"],guards:s=!0,initialFocus:l=0,returnFocus:f=!0,modal:b=!0,visuallyHiddenDismiss:S=!1,closeOnFocusOut:T=!0}=e;const{refs:O,nodeId:j,onOpenChange:F,events:z,dataRef:D,elements:{domReference:R,floating:P}}=t,y=yn(a),p=ei(),v=cP(),[g,m]=ee.useState(null),_=typeof l=="number"&&l<0,M=ee.useRef(null),X=ee.useRef(null),H=ee.useRef(!1),B=ee.useRef(null),U=ee.useRef(!1),K=v!=null,ne=R&&R.getAttribute("role")==="combobox"&&oP(R),oe=ee.useCallback(function(he){return he===void 0&&(he=P),he?Zc(he,nd()):[]},[P]),fe=ee.useCallback(he=>{const ue=oe(he);return y.current.map(ge=>R&&ge==="reference"?R:P&&ge==="floating"?P:ue).filter(Boolean).flat()},[R,P,y,oe]);ee.useEffect(()=>{if(!b)return;function he(ge){if(ge.key==="Tab"){oe().length===0&&!ne&&hn(ge);const ye=fe(),Te=Yd(ge);y.current[0]==="reference"&&Te===R&&(hn(ge),ge.shiftKey?Ho(ye[ye.length-1]):Ho(ye[1])),y.current[1]==="floating"&&Te===P&&ge.shiftKey&&(hn(ge),Ho(ye[0]))}}const ue=Ur(P);return ue.addEventListener("keydown",he),()=>{ue.removeEventListener("keydown",he)}},[R,P,b,y,O,ne,oe,fe]),ee.useEffect(()=>{if(!T)return;function he(){U.current=!0,setTimeout(()=>{U.current=!1})}function ue(ge){const ye=ge.relatedTarget,Te=!(Hr(R,ye)||Hr(P,ye)||Hr(ye,P)||Hr(v==null?void 0:v.portalNode,ye)||ye!=null&&ye.hasAttribute("data-floating-ui-focus-guard")||p&&(ol(p.nodesRef.current,j).find(Re=>{var De,Le;return Hr((De=Re.context)==null?void 0:De.elements.floating,ye)||Hr((Le=Re.context)==null?void 0:Le.elements.domReference,ye)})||_F(p.nodesRef.current,j).find(Re=>{var De,Le;return((De=Re.context)==null?void 0:De.elements.floating)===ye||((Le=Re.context)==null?void 0:Le.elements.domReference)===ye})));ye&&Te&&!U.current&&ye!==B.current&&(H.current=!0,setTimeout(()=>F(!1)))}if(P&&Ha(R))return R.addEventListener("focusout",ue),R.addEventListener("pointerdown",he),!b&&P.addEventListener("focusout",ue),()=>{R.removeEventListener("focusout",ue),R.removeEventListener("pointerdown",he),!b&&P.removeEventListener("focusout",ue)}},[R,P,b,j,p,v,F,T]),ee.useEffect(()=>{var he;const ue=Array.from((v==null||(he=v.portalNode)==null?void 0:he.querySelectorAll("[data-floating-ui-portal]"))||[]);function ge(){return[M.current,X.current].filter(Boolean)}if(P&&b){const ye=[P,...ue,...ge()],Te=KD(y.current.includes("reference")||ne?ye.concat(R||[]):ye);return()=>{Te()}}},[R,P,b,y,v,ne]),ee.useEffect(()=>{if(b&&!s&&P){const he=[],ue=nd(),ge=Zc(Ur(P).body,ue),ye=fe(),Te=ge.filter(Re=>!ye.includes(Re));return Te.forEach((Re,De)=>{he[De]=Re.getAttribute("tabindex"),Re.setAttribute("tabindex","-1")}),()=>{Te.forEach((Re,De)=>{const Le=he[De];Le==null?Re.removeAttribute("tabindex"):Re.setAttribute("tabindex",Le)})}}},[P,b,s,fe]),Gt(()=>{if(!P)return;const he=Ur(P);let ue=f,ge=!1;const ye=Xa(he),Te=D.current;B.current=ye;const Re=fe(P),De=(typeof l=="number"?Re[l]:l.current)||P;!_&&Ho(De,{preventScroll:De===P});function Le(Oe){if(Oe.type==="escapeKey"&&O.domReference.current&&(B.current=O.domReference.current),["referencePress","escapeKey"].includes(Oe.type))return;const Xe=Oe.data.returnFocus;typeof Xe=="object"?(ue=!0,ge=Xe.preventScroll):ue=Xe}return z.on("dismiss",Le),()=>{if(z.off("dismiss",Le),Hr(P,Xa(he))&&O.domReference.current&&(B.current=O.domReference.current),ue&&Ha(B.current)&&!H.current)if(!O.domReference.current||U.current)Ho(B.current,{cancelPrevious:!1,preventScroll:ge});else{var Oe;Te.__syncReturnFocus=!0,(Oe=B.current)==null||Oe.focus({preventScroll:ge}),setTimeout(()=>{delete Te.__syncReturnFocus})}}},[P,fe,l,f,D,O,z,_]),Gt(()=>{if(v)return v.setFocusManagerState({...t,modal:b,closeOnFocusOut:T}),()=>{v.setFocusManagerState(null)}},[v,b,T,t]),Gt(()=>{if(_||!P)return;function he(){m(oe().length)}if(he(),typeof MutationObserver=="function"){const ue=new MutationObserver(he);return ue.observe(P,{childList:!0,subtree:!0}),()=>{ue.disconnect()}}},[P,oe,_,O]);const ve=s&&(K||b)&&!ne;function Se(he){return S&&b?ee.createElement(LF,{ref:he==="start"?M:X,onClick:()=>F(!1)},typeof S=="string"?S:"Dismiss"):null}return ee.createElement(ee.Fragment,null,ve&&ee.createElement(od,{"data-type":"inside",ref:v==null?void 0:v.beforeInsideRef,onFocus:he=>{if(b){const ge=fe();Ho(a[0]==="reference"?ge[0]:ge[ge.length-1])}else if(v!=null&&v.preserveTabOrder&&v.portalNode)if(H.current=!1,al(he,v.portalNode)){const ge=iP()||R;ge==null||ge.focus()}else{var ue;(ue=v.beforeOutsideRef.current)==null||ue.focus()}}}),ne?null:Se("start"),ee.cloneElement(r,g===0||a.includes("floating")?{tabIndex:0}:{}),Se("end"),ve&&ee.createElement(od,{"data-type":"inside",ref:v==null?void 0:v.afterInsideRef,onFocus:he=>{if(b)Ho(fe()[0]);else if(v!=null&&v.preserveTabOrder&&v.portalNode)if(H.current=!0,al(he,v.portalNode)){const ge=sP()||R;ge==null||ge.focus()}else{var ue;(ue=v.afterOutsideRef.current)==null||ue.focus()}}}))}const Lu="data-floating-ui-scroll-lock",DF=ee.forwardRef(function(t,r){let{lockScroll:a=!1,...s}=t;return Gt(()=>{var l,f;if(!a||document.body.hasAttribute(Lu))return;document.body.setAttribute(Lu,"");const T=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",O=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(eb()))return Object.assign(document.body.style,{overflow:"hidden",[T]:O+"px"}),()=>{document.body.removeAttribute(Lu),Object.assign(document.body.style,{overflow:"",[T]:""})};const j=((l=window.visualViewport)==null?void 0:l.offsetLeft)||0,F=((f=window.visualViewport)==null?void 0:f.offsetTop)||0,z=window.pageXOffset,D=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(D-Math.floor(F))+"px",left:-(z-Math.floor(j))+"px",right:"0",[T]:O+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[T]:""}),document.body.removeAttribute(Lu),window.scrollTo(z,D)}},[a]),ee.createElement("div",Rl({ref:r},s,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}}))});function fx(e){return Ha(e.target)&&e.target.tagName==="BUTTON"}function px(e){return oP(e)}const zF=function(e,t){let{open:r,onOpenChange:a,dataRef:s,elements:{domReference:l}}=e,{enabled:f=!0,event:b="click",toggle:S=!0,ignoreMouse:T=!1,keyboardHandlers:O=!0}=t===void 0?{}:t;const j=ee.useRef();return ee.useMemo(()=>f?{reference:{onPointerDown(F){j.current=F.pointerType},onMouseDown(F){F.button===0&&(rd(j.current,!0)&&T||b!=="click"&&(r?S&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")&&a(!1):(F.preventDefault(),a(!0)),s.current.openEvent=F.nativeEvent))},onClick(F){if(!s.current.__syncReturnFocus){if(b==="mousedown"&&j.current){j.current=void 0;return}rd(j.current,!0)&&T||(r?S&&(!s.current.openEvent||s.current.openEvent.type==="click")&&a(!1):a(!0),s.current.openEvent=F.nativeEvent)}},onKeyDown(F){j.current=void 0,O&&(fx(F)||(F.key===" "&&!px(l)&&F.preventDefault(),F.key==="Enter"&&(r?S&&a(!1):a(!0))))},onKeyUp(F){O&&(fx(F)||px(l)||F.key===" "&&(r?S&&a(!1):a(!0)))}}}:{},[f,s,b,T,O,l,S,r,a])};function sc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const FF={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},VF={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},WF=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},BF=function(e,t){let{open:r,onOpenChange:a,events:s,nodeId:l,elements:{reference:f,domReference:b,floating:S},dataRef:T}=e,{enabled:O=!0,escapeKey:j=!0,outsidePress:F=!0,outsidePressEvent:z="pointerdown",referencePress:D=!1,referencePressEvent:R="pointerdown",ancestorScroll:P=!1,bubbles:y=!0}=t===void 0?{}:t;const p=ei(),v=us()!=null,g=cs(typeof F=="function"?F:()=>!1),m=typeof F=="function"?g:F,_=ee.useRef(!1),{escapeKeyBubbles:M,outsidePressBubbles:X}=WF(y);return ee.useEffect(()=>{if(!r||!O)return;T.current.__escapeKeyBubbles=M,T.current.__outsidePressBubbles=X;function H(oe){if(oe.key==="Escape"){const fe=p?ol(p.nodesRef.current,l):[];if(fe.length>0){let ve=!0;if(fe.forEach(Se=>{var he;if((he=Se.context)!=null&&he.open&&!Se.context.dataRef.current.__escapeKeyBubbles){ve=!1;return}}),!ve)return}s.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),a(!1)}}function B(oe){const fe=_.current;if(_.current=!1,fe||typeof m=="function"&&!m(oe))return;const ve=Yd(oe);if(Ha(ve)&&S){const ue=S.ownerDocument.defaultView||window,ge=ve.scrollWidth>ve.clientWidth,ye=ve.scrollHeight>ve.clientHeight;let Te=ye&&oe.offsetX>ve.clientWidth;if(ye&&ue.getComputedStyle(ve).direction==="rtl"&&(Te=oe.offsetX<=ve.offsetWidth-ve.clientWidth),Te||ge&&oe.offsetY>ve.clientHeight)return}const Se=p&&ol(p.nodesRef.current,l).some(ue=>{var ge;return sc(oe,(ge=ue.context)==null?void 0:ge.elements.floating)});if(sc(oe,S)||sc(oe,b)||Se)return;const he=p?ol(p.nodesRef.current,l):[];if(he.length>0){let ue=!0;if(he.forEach(ge=>{var ye;if((ye=ge.context)!=null&&ye.open&&!ge.context.dataRef.current.__outsidePressBubbles){ue=!1;return}}),!ue)return}s.emit("dismiss",{type:"outsidePress",data:{returnFocus:v?{preventScroll:!0}:JT(oe)||eP(oe)}}),a(!1)}function U(){a(!1)}const K=Ur(S);j&&K.addEventListener("keydown",H),m&&K.addEventListener(z,B);let ne=[];return P&&(mn(b)&&(ne=wo(b)),mn(S)&&(ne=ne.concat(wo(S))),!mn(f)&&f&&f.contextElement&&(ne=ne.concat(wo(f.contextElement)))),ne=ne.filter(oe=>{var fe;return oe!==((fe=K.defaultView)==null?void 0:fe.visualViewport)}),ne.forEach(oe=>{oe.addEventListener("scroll",U,{passive:!0})}),()=>{j&&K.removeEventListener("keydown",H),m&&K.removeEventListener(z,B),ne.forEach(oe=>{oe.removeEventListener("scroll",U)})}},[T,S,b,f,j,m,z,s,p,l,r,a,P,O,M,X,v]),ee.useEffect(()=>{_.current=!1},[m,z]),ee.useMemo(()=>O?{reference:{[FF[R]]:()=>{D&&(s.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),a(!1))}},floating:{[VF[z]]:()=>{_.current=!0}}}:{},[O,s,D,z,R,a])},HF=function(e,t){let{open:r,onOpenChange:a,dataRef:s,events:l,refs:f,elements:{floating:b,domReference:S}}=e,{enabled:T=!0,keyboardOnly:O=!0}=t===void 0?{}:t;const j=ee.useRef(""),F=ee.useRef(!1),z=ee.useRef();return ee.useEffect(()=>{if(!T)return;const R=Ur(b).defaultView||window;function P(){!r&&Ha(S)&&S===Xa(Ur(S))&&(F.current=!0)}return R.addEventListener("blur",P),()=>{R.removeEventListener("blur",P)}},[b,S,r,T]),ee.useEffect(()=>{if(!T)return;function D(R){(R.type==="referencePress"||R.type==="escapeKey")&&(F.current=!0)}return l.on("dismiss",D),()=>{l.off("dismiss",D)}},[l,T]),ee.useEffect(()=>()=>{clearTimeout(z.current)},[]),ee.useMemo(()=>T?{reference:{onPointerDown(D){let{pointerType:R}=D;j.current=R,F.current=!!(R&&O)},onMouseLeave(){F.current=!1},onFocus(D){var R;F.current||D.type==="focus"&&((R=s.current.openEvent)==null?void 0:R.type)==="mousedown"&&s.current.openEvent&&sc(s.current.openEvent,S)||(s.current.openEvent=D.nativeEvent,a(!0))},onBlur(D){F.current=!1;const R=D.relatedTarget,P=mn(R)&&R.hasAttribute("data-floating-ui-focus-guard")&&R.getAttribute("data-type")==="outside";z.current=setTimeout(()=>{Hr(f.floating.current,R)||Hr(S,R)||P||a(!1)})}}}:{},[T,O,S,f,s,a])};let hx=!1;const ob="ArrowUp",Gd="ArrowDown",Qi="ArrowLeft",ql="ArrowRight";function ju(e,t,r){return Math.floor(e/t)!==r}function Ds(e,t){return t<0||t>=e.current.length}function Tr(e,t){let{startingIndex:r=-1,decrement:a=!1,disabledIndices:s,amount:l=1}=t===void 0?{}:t;const f=e.current;let b=r;do{var S,T;b=b+(a?-l:l)}while(b>=0&&b<=f.length-1&&(s?s.includes(b):f[b]==null||(S=f[b])!=null&&S.hasAttribute("disabled")||((T=f[b])==null?void 0:T.getAttribute("aria-disabled"))==="true"));return b}function Ud(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function gx(e,t){return Ud(t,e===ob||e===Gd,e===Qi||e===ql)}function Cp(e,t,r){return Ud(t,e===Gd,r?e===Qi:e===ql)||e==="Enter"||e==" "||e===""}function XF(e,t,r){return Ud(t,r?e===Qi:e===ql,e===Gd)}function YF(e,t,r){return Ud(t,r?e===ql:e===Qi,e===ob)}function Sp(e,t){return Tr(e,{disabledIndices:t})}function bx(e,t){return Tr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const GF=function(e,t){let{open:r,onOpenChange:a,refs:s,elements:{domReference:l}}=e,{listRef:f,activeIndex:b,onNavigate:S=()=>{},enabled:T=!0,selectedIndex:O=null,allowEscape:j=!1,loop:F=!1,nested:z=!1,rtl:D=!1,virtual:R=!1,focusItemOnOpen:P="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:p=!0,disabledIndices:v=void 0,orientation:g="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const M=us(),X=ei(),H=cs(S),B=ee.useRef(P),U=ee.useRef(O??-1),K=ee.useRef(null),ne=ee.useRef(!0),oe=ee.useRef(H),fe=ee.useRef(r),ve=ee.useRef(!1),Se=ee.useRef(!1),he=yn(v),ue=yn(r),ge=yn(_),[ye,Te]=ee.useState(),Re=ee.useCallback(function(Oe,Xe,Ve){Ve===void 0&&(Ve=!1);const ke=Oe.current[Xe.current];R?Te(ke==null?void 0:ke.id):Ho(ke,{preventScroll:!0,sync:tP()&&Zh()?hx||ve.current:!1}),requestAnimationFrame(()=>{const Me=ge.current;Me&&ke&&(Ve||!ne.current)&&(ke.scrollIntoView==null||ke.scrollIntoView(typeof Me=="boolean"?{block:"nearest",inline:"nearest"}:Me))})},[R,ge]);Gt(()=>{document.createElement("div").focus({get preventScroll(){return hx=!0,!1}})},[]),Gt(()=>{T&&(r?B.current&&O!=null&&(Se.current=!0,H(O)):fe.current&&(U.current=-1,oe.current(null)))},[T,r,O,H]),Gt(()=>{if(T&&r)if(b==null){if(ve.current=!1,O!=null)return;fe.current&&(U.current=-1,Re(f,U)),!fe.current&&B.current&&(K.current!=null||B.current===!0&&K.current==null)&&(U.current=K.current==null||Cp(K.current,g,D)||z?Sp(f,he.current):bx(f,he.current),H(U.current))}else Ds(f,b)||(U.current=b,Re(f,U,Se.current),Se.current=!1)},[T,r,b,O,z,f,g,D,H,Re,he]),Gt(()=>{if(T&&fe.current&&!r){var Oe,Xe;const Ve=X==null||(Oe=X.nodesRef.current.find(ke=>ke.id===M))==null||(Xe=Oe.context)==null?void 0:Xe.elements.floating;Ve&&!Hr(Ve,Xa(Ur(Ve)))&&Ve.focus({preventScroll:!0})}},[T,r,X,M]),Gt(()=>{K.current=null,oe.current=H,fe.current=r});const De=b!=null,Le=ee.useMemo(()=>{function Oe(Ve){if(!r)return;const ke=f.current.indexOf(Ve);ke!==-1&&H(ke)}return{onFocus(Ve){let{currentTarget:ke}=Ve;Oe(ke)},onClick:Ve=>{let{currentTarget:ke}=Ve;return ke.focus({preventScroll:!0})},...y&&{onMouseMove(Ve){let{currentTarget:ke}=Ve;Oe(ke)},onPointerLeave(){if(ne.current&&(U.current=-1,Re(f,U),Po.flushSync(()=>H(null)),!R)){var Ve;(Ve=s.floating.current)==null||Ve.focus({preventScroll:!0})}}}}},[r,s,Re,y,f,H,R]);return ee.useMemo(()=>{if(!T)return{};const Oe=he.current;function Xe(Ne){if(ne.current=!1,ve.current=!0,!ue.current&&Ne.currentTarget===s.floating.current)return;if(z&&YF(Ne.key,g,D)){hn(Ne),a(!1),Ha(l)&&l.focus();return}const Ge=U.current,Qe=Sp(f,Oe),qe=bx(f,Oe);if(Ne.key==="Home"&&(U.current=Qe,H(U.current)),Ne.key==="End"&&(U.current=qe,H(U.current)),m>1){const He=U.current;if(Ne.key===ob){if(hn(Ne),He===-1)U.current=qe;else if(U.current=Tr(f,{startingIndex:He,amount:m,decrement:!0,disabledIndices:Oe}),F&&(He-m<Qe||U.current<0)){const Ze=He%m,bt=qe%m,wt=qe-(bt-Ze);bt===Ze?U.current=qe:U.current=bt>Ze?wt:wt-m}Ds(f,U.current)&&(U.current=He),H(U.current)}if(Ne.key===Gd&&(hn(Ne),He===-1?U.current=Qe:(U.current=Tr(f,{startingIndex:He,amount:m,disabledIndices:Oe}),F&&He+m>qe&&(U.current=Tr(f,{startingIndex:He%m-m,amount:m,disabledIndices:Oe}))),Ds(f,U.current)&&(U.current=He),H(U.current)),g==="both"){const Ze=Math.floor(He/m);Ne.key===ql&&(hn(Ne),He%m!==m-1?(U.current=Tr(f,{startingIndex:He,disabledIndices:Oe}),F&&ju(U.current,m,Ze)&&(U.current=Tr(f,{startingIndex:He-He%m-1,disabledIndices:Oe}))):F&&(U.current=Tr(f,{startingIndex:He-He%m-1,disabledIndices:Oe})),ju(U.current,m,Ze)&&(U.current=He)),Ne.key===Qi&&(hn(Ne),He%m!==0?(U.current=Tr(f,{startingIndex:He,disabledIndices:Oe,decrement:!0}),F&&ju(U.current,m,Ze)&&(U.current=Tr(f,{startingIndex:He+(m-He%m),decrement:!0,disabledIndices:Oe}))):F&&(U.current=Tr(f,{startingIndex:He+(m-He%m),decrement:!0,disabledIndices:Oe})),ju(U.current,m,Ze)&&(U.current=He));const bt=Math.floor(qe/m)===Ze;Ds(f,U.current)&&(F&&bt?U.current=Ne.key===Qi?qe:Tr(f,{startingIndex:He-He%m-1,disabledIndices:Oe}):U.current=He),H(U.current);return}}if(gx(Ne.key,g)){if(hn(Ne),r&&!R&&Xa(Ne.currentTarget.ownerDocument)===Ne.currentTarget){U.current=Cp(Ne.key,g,D)?Qe:qe,H(U.current);return}Cp(Ne.key,g,D)?F?U.current=Ge>=qe?j&&Ge!==f.current.length?-1:Qe:Tr(f,{startingIndex:Ge,disabledIndices:Oe}):U.current=Math.min(qe,Tr(f,{startingIndex:Ge,disabledIndices:Oe})):F?U.current=Ge<=Qe?j&&Ge!==-1?f.current.length:qe:Tr(f,{startingIndex:Ge,decrement:!0,disabledIndices:Oe}):U.current=Math.max(Qe,Tr(f,{startingIndex:Ge,decrement:!0,disabledIndices:Oe})),Ds(f,U.current)?H(null):H(U.current)}}function Ve(Ne){P==="auto"&&JT(Ne.nativeEvent)&&(B.current=!0)}function ke(Ne){B.current=P,P==="auto"&&eP(Ne.nativeEvent)&&(B.current=!0)}const Me=R&&r&&De&&{"aria-activedescendant":ye};return{reference:{...Me,onKeyDown(Ne){ne.current=!1;const Ge=Ne.key.indexOf("Arrow")===0;if(R&&r)return Xe(Ne);if(!r&&!p&&Ge)return;if((Ge||Ne.key==="Enter"||Ne.key===" "||Ne.key==="")&&(K.current=Ne.key),z){XF(Ne.key,g,D)&&(hn(Ne),r?(U.current=Sp(f,Oe),H(U.current)):a(!0));return}gx(Ne.key,g)&&(O!=null&&(U.current=O),hn(Ne),!r&&p?a(!0):Xe(Ne),r&&H(U.current))},onFocus(){r&&H(null)},onPointerDown:ke,onMouseDown:Ve,onClick:Ve},floating:{"aria-orientation":g==="both"?void 0:g,...Me,onKeyDown:Xe,onPointerMove(){ne.current=!0}},item:Le}},[l,s,ye,he,ue,f,T,g,D,R,r,De,z,O,p,j,m,F,P,H,a,Le])};function UF(e){return ee.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const $F=function(e,t){let{open:r}=e,{enabled:a=!0,role:s="dialog"}=t===void 0?{}:t;const l=Ml(),f=Ml();return ee.useMemo(()=>{const b={id:l,role:s};return a?s==="tooltip"?{reference:{"aria-describedby":r?l:void 0},floating:b}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?l:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:f}},floating:{...b,...s==="menu"&&{"aria-labelledby":f}}}:{}},[a,s,r,l,f])},vx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function qF(e,t){const[r,a]=ee.useState(e);return e&&!r&&a(!0),ee.useEffect(()=>{if(!e){const s=setTimeout(()=>a(!1),t);return()=>clearTimeout(s)}},[e,t]),r}function dP(e,t){let{open:r,elements:{floating:a}}=e,{duration:s=250}=t===void 0?{}:t;const f=(typeof s=="number"?s:s.close)||0,[b,S]=ee.useState(!1),[T,O]=ee.useState("unmounted"),j=qF(r,f);return Gt(()=>{b&&!j&&O("unmounted")},[b,j]),Gt(()=>{if(a)if(r){O("initial");const F=requestAnimationFrame(()=>{O("open")});return()=>{cancelAnimationFrame(F)}}else S(!0),O("close")},[r,a]),{isMounted:j,status:T}}function KF(e,t){let{initial:r={opacity:0},open:a,close:s,common:l,duration:f=250}=t===void 0?{}:t;const b=e.placement,S=b.split("-")[0],[T,O]=ee.useState({}),{isMounted:j,status:F}=dP(e,{duration:f}),z=yn(r),D=yn(a),R=yn(s),P=yn(l),y=typeof f=="number",p=(y?f:f.open)||0,v=(y?f:f.close)||0;return Gt(()=>{const g={side:S,placement:b},m=z.current,_=R.current,M=D.current,X=P.current,H=typeof m=="function"?m(g):m,B=typeof _=="function"?_(g):_,U=typeof X=="function"?X(g):X,K=(typeof M=="function"?M(g):M)||Object.keys(H).reduce((ne,oe)=>(ne[oe]="",ne),{});if(F==="initial"&&O(ne=>({transitionProperty:ne.transitionProperty,...U,...H})),F==="open"&&O({transitionProperty:Object.keys(K).map(vx).join(","),transitionDuration:p+"ms",...U,...K}),F==="close"){const ne=B||H;O({transitionProperty:Object.keys(ne).map(vx).join(","),transitionDuration:v+"ms",...U,...ne})}},[S,b,v,R,z,D,P,p,F]),{isMounted:j,styles:T}}const ZF=function(e,t){var r;let{open:a,dataRef:s}=e,{listRef:l,activeIndex:f,onMatch:b=()=>{},enabled:S=!0,findMatch:T=null,resetMs:O=1e3,ignoreKeys:j=[],selectedIndex:F=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const z=ee.useRef(),D=ee.useRef(""),R=ee.useRef((r=F??f)!=null?r:-1),P=ee.useRef(null),y=cs(b),p=yn(T),v=yn(j);return Gt(()=>{a&&(clearTimeout(z.current),P.current=null,D.current="")},[a]),Gt(()=>{if(a&&D.current===""){var g;R.current=(g=F??f)!=null?g:-1}},[a,F,f]),ee.useMemo(()=>{if(!S)return{};function g(m){const _=Yd(m.nativeEvent);if(mn(_)&&(Xa(Ur(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;D.current.length>0&&D.current[0]!==" "&&(s.current.typing=!0,m.key===" "&&hn(m));const M=l.current;if(M==null||v.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;M.every(ne=>{var oe,fe;return ne?((oe=ne[0])==null?void 0:oe.toLocaleLowerCase())!==((fe=ne[1])==null?void 0:fe.toLocaleLowerCase()):!0})&&D.current===m.key&&(D.current="",R.current=P.current),D.current+=m.key,clearTimeout(z.current),z.current=setTimeout(()=>{D.current="",R.current=P.current,s.current.typing=!1},O);const H=R.current,B=[...M.slice((H||0)+1),...M.slice(0,(H||0)+1)],U=p.current?p.current(B,D.current):B.find(ne=>(ne==null?void 0:ne.toLocaleLowerCase().indexOf(D.current.toLocaleLowerCase()))===0),K=U?M.indexOf(U):-1;K!==-1&&(y(K),P.current=K)}return{reference:{onKeyDown:g},floating:{onKeyDown:g}}},[S,s,l,O,v,p,y])};function mx(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const QF=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:a,onFallbackChange:s,offset:l=0,index:f=0,minItemsVisible:b=4,referenceOverflowThreshold:S=0,scrollRef:T,...O}=e,{rects:j,elements:{floating:F}}=t,z=r.current[f];if(!z)return{};const D={...t,...await UT(-z.offsetTop-j.reference.height/2-z.offsetHeight/2-l).fn(t)},R=(T==null?void 0:T.current)||F,P=await oc(mx(D,R.scrollHeight),O),y=await oc(D,{...O,elementContext:"reference"}),p=Math.max(0,P.top),v=D.y+p,g=Math.max(0,R.scrollHeight-p-Math.max(0,P.bottom));return R.style.maxHeight=g+"px",R.scrollTop=p,s&&(R.offsetHeight<z.offsetHeight*Math.min(b,r.current.length-1)-1||y.top>=-S||y.bottom>=-S?Po.flushSync(()=>s(!0)):Po.flushSync(()=>s(!1))),a&&(a.current=await oc(mx({...D,y:v},R.offsetHeight),O)),{y:v}}}),JF=(e,t)=>{let{open:r,elements:a}=e,{enabled:s=!0,overflowRef:l,scrollRef:f,onChange:b}=t;const S=cs(b),T=ee.useRef(!1),O=ee.useRef(null),j=ee.useRef(null);return ee.useEffect(()=>{if(!s)return;function F(D){if(D.ctrlKey||!z||l.current==null)return;const R=D.deltaY,P=l.current.top>=-.5,y=l.current.bottom>=-.5,p=z.scrollHeight-z.clientHeight,v=R<0?-1:1,g=R<0?"max":"min";z.scrollHeight<=z.clientHeight||(!P&&R>0||!y&&R<0?(D.preventDefault(),Po.flushSync(()=>{S(m=>m+Math[g](R,p*v))})):/firefox/i.test(QT())&&(z.scrollTop+=R))}const z=(f==null?void 0:f.current)||a.floating;if(r&&z)return z.addEventListener("wheel",F),requestAnimationFrame(()=>{O.current=z.scrollTop,l.current!=null&&(j.current={...l.current})}),()=>{O.current=null,j.current=null,z.removeEventListener("wheel",F)}},[s,r,a.floating,l,f,S]),ee.useMemo(()=>s?{floating:{onKeyDown(){T.current=!0},onWheel(){T.current=!1},onPointerMove(){T.current=!1},onScroll(){const F=(f==null?void 0:f.current)||a.floating;if(!(!l.current||!F||!T.current)){if(O.current!==null){const z=F.scrollTop-O.current;(l.current.bottom<-.5&&z<-1||l.current.top<-.5&&z>1)&&Po.flushSync(()=>S(D=>D+z))}requestAnimationFrame(()=>{O.current=F.scrollTop})}}}}:{},[s,l,a.floating,f,S])};function e4(e,t){const[r,a]=e;let s=!1;const l=t.length;for(let f=0,b=l-1;f<l;b=f++){const[S,T]=t[f]||[0,0],[O,j]=t[b]||[0,0];T>=a!=j>=a&&r<=(O-S)*(a-T)/(j-T)+S&&(s=!s)}return s}function t4(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function r4(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:a=!1}=e===void 0?{}:e,s,l=!1,f=!1;const b=S=>{let{x:T,y:O,placement:j,elements:F,onClose:z,nodeId:D,tree:R}=S;return function(y){function p(){clearTimeout(s),z()}if(clearTimeout(s),!F.domReference||!F.floating||j==null||T==null||O==null)return;const{clientX:v,clientY:g}=y,m=[v,g],_=Yd(y),M=y.type==="mouseleave",X=Hr(F.floating,_),H=Hr(F.domReference,_),B=F.domReference.getBoundingClientRect(),U=F.floating.getBoundingClientRect(),K=j.split("-")[0],ne=T>U.right-U.width/2,oe=O>U.bottom-U.height/2,fe=t4(m,B);if(X&&(f=!0),H&&(f=!1),H&&!M){f=!0;return}if(M&&mn(y.relatedTarget)&&Hr(F.floating,y.relatedTarget)||R&&ol(R.nodesRef.current,D).some(ue=>{let{context:ge}=ue;return ge==null?void 0:ge.open}))return;if(K==="top"&&O>=B.bottom-1||K==="bottom"&&O<=B.top+1||K==="left"&&T>=B.right-1||K==="right"&&T<=B.left+1)return p();let ve=[];switch(K){case"top":ve=[[U.left,B.top+1],[U.left,U.bottom-1],[U.right,U.bottom-1],[U.right,B.top+1]],l=v>=U.left&&v<=U.right&&g>=U.top&&g<=B.top+1;break;case"bottom":ve=[[U.left,U.top+1],[U.left,B.bottom-1],[U.right,B.bottom-1],[U.right,U.top+1]],l=v>=U.left&&v<=U.right&&g>=B.bottom-1&&g<=U.bottom;break;case"left":ve=[[U.right-1,U.bottom],[U.right-1,U.top],[B.left+1,U.top],[B.left+1,U.bottom]],l=v>=U.left&&v<=B.left+1&&g>=U.top&&g<=U.bottom;break;case"right":ve=[[B.right-1,U.bottom],[B.right-1,U.top],[U.left+1,U.top],[U.left+1,U.bottom]],l=v>=B.right-1&&v<=U.right&&g>=U.top&&g<=U.bottom;break}function Se(ue){let[ge,ye]=ue;const Te=U.width>B.width,Re=U.height>B.height;switch(K){case"top":{const De=[Te?ge+r/2:ne?ge+r*4:ge-r*4,ye+r+1],Le=[Te?ge-r/2:ne?ge+r*4:ge-r*4,ye+r+1],Oe=[[U.left,ne||Te?U.bottom-r:U.top],[U.right,ne?Te?U.bottom-r:U.top:U.bottom-r]];return[De,Le,...Oe]}case"bottom":{const De=[Te?ge+r/2:ne?ge+r*4:ge-r*4,ye-r],Le=[Te?ge-r/2:ne?ge+r*4:ge-r*4,ye-r],Oe=[[U.left,ne||Te?U.top+r:U.bottom],[U.right,ne?Te?U.top+r:U.bottom:U.top+r]];return[De,Le,...Oe]}case"left":{const De=[ge+r+1,Re?ye+r/2:oe?ye+r*4:ye-r*4],Le=[ge+r+1,Re?ye-r/2:oe?ye+r*4:ye-r*4];return[...[[oe||Re?U.right-r:U.left,U.top],[oe?Re?U.right-r:U.left:U.right-r,U.bottom]],De,Le]}case"right":{const De=[ge-r,Re?ye+r/2:oe?ye+r*4:ye-r*4],Le=[ge-r,Re?ye-r/2:oe?ye+r*4:ye-r*4],Oe=[[oe||Re?U.left+r:U.right,U.top],[oe?Re?U.left+r:U.right:U.left+r,U.bottom]];return[De,Le,...Oe]}}}const he=l?ve:Se([T,O]);if(!l){if(f&&!fe)return p();e4([v,g],he)?t&&!f&&(s=setTimeout(p,t)):p()}}};return b.__options={blockPointerEvents:a},b}function n4(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:a}=e,s=bF(e),l=ei(),f=ee.useRef(null),b=ee.useRef({}),S=ee.useState(()=>qT())[0],[T,O]=ee.useState(null),j=ee.useCallback(y=>{const p=mn(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;s.refs.setReference(p)},[s.refs]),F=ee.useCallback(y=>{(mn(y)||y===null)&&(f.current=y,O(y)),(mn(s.refs.reference.current)||s.refs.reference.current===null||y!==null&&!mn(y))&&s.refs.setReference(y)},[s.refs]),z=ee.useMemo(()=>({...s.refs,setReference:F,setPositionReference:j,domReference:f}),[s.refs,F,j]),D=ee.useMemo(()=>({...s.elements,domReference:T}),[s.elements,T]),R=cs(r),P=ee.useMemo(()=>({...s,refs:z,elements:D,dataRef:b,nodeId:a,events:S,open:t,onOpenChange:R}),[s,a,S,t,R,z,D]);return Gt(()=>{const y=l==null?void 0:l.nodesRef.current.find(p=>p.id===a);y&&(y.context=P)}),ee.useMemo(()=>({...s,context:P,refs:z,reference:F,positionReference:j}),[s,z,P,F,j])}function kp(e,t,r){const a=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(s=>s?s[r]:null).concat(e).reduce((s,l)=>(l&&Object.entries(l).forEach(f=>{let[b,S]=f;if(b.indexOf("on")===0){if(a.has(b)||a.set(b,[]),typeof S=="function"){var T;(T=a.get(b))==null||T.push(S),s[b]=function(){for(var O,j=arguments.length,F=new Array(j),z=0;z<j;z++)F[z]=arguments[z];(O=a.get(b))==null||O.forEach(D=>D(...F))}}}else s[b]=S}),s),{})}}const o4=function(e){e===void 0&&(e=[]);const t=e,r=ee.useCallback(l=>kp(l,e,"reference"),t),a=ee.useCallback(l=>kp(l,e,"floating"),t),s=ee.useCallback(l=>kp(l,e,"item"),e.map(l=>l==null?void 0:l.item));return ee.useMemo(()=>({getReferenceProps:r,getFloatingProps:a,getItemProps:s}),[r,a,s])},a4=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:TF,FloatingFocusManager:jF,FloatingNode:wF,FloatingOverlay:DF,FloatingPortal:IF,FloatingTree:CF,arrow:gF,autoPlacement:lF,autoUpdate:sF,computePosition:$T,detectOverflow:oc,flip:cF,getOverflowAncestors:wo,hide:fF,inline:pF,inner:QF,limitShift:hF,offset:UT,platform:YT,safePolygon:r4,shift:uF,size:dF,useClick:zF,useDelayGroup:PF,useDelayGroupContext:nP,useDismiss:BF,useFloating:n4,useFloatingNodeId:xF,useFloatingParentNodeId:us,useFloatingPortalNode:uP,useFloatingTree:ei,useFocus:HF,useHover:kF,useId:Ml,useInnerOffset:JF,useInteractions:o4,useListNavigation:GF,useMergeRefs:UF,useRole:$F,useTransitionStatus:dP,useTransitionStyles:KF,useTypeahead:ZF},Symbol.toStringTag,{value:"Module"})),ur=Il(a4);var fP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{DialogHeader:function(){return F},default:function(){return z}});var r=T(ee),a=T(ct),s=it,l=T(nt),f=rt,b=as;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,f.useTheme)().dialogHeader,g=v.defaultProps,m=v.styles.base;P=P??g.className;var _=(0,s.twMerge)((0,a.default)((0,l.default)(m)),P);return r.default.createElement("div",S({},p,{ref:R,className:_}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.DialogHeader";var z=F})(fP);var pP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{DialogBody:function(){return z},default:function(){return D}});var r=O(ee),a=O(ct),s=it,l=O(nt),f=rt,b=as;function S(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function T(){return T=Object.assign||function(R){for(var P=1;P<arguments.length;P++){var y=arguments[P];for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(R[p]=y[p])}return R},T.apply(this,arguments)}function O(R){return R&&R.__esModule?R:{default:R}}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.divider,p=R.className,v=R.children,g=j(R,["divider","className","children"]),m=(0,f.useTheme)().dialogBody,_=m.defaultProps,M=m.styles.base;p=p??_.className;var X=(0,s.twMerge)((0,a.default)((0,l.default)(M.initial),S({},(0,l.default)(M.divider),y)),p);return r.default.createElement("div",T({},g,{ref:P,className:X}),v)});z.propTypes={divider:b.propTypesDivider,className:b.propTypesClassName,children:b.propTypesChildren},z.displayName="MaterialTailwind.DialogBody";var D=z})(pP);var hP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{DialogFooter:function(){return F},default:function(){return z}});var r=T(ee),a=T(ct),s=it,l=T(nt),f=rt,b=as;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,f.useTheme)().dialogFooter,g=v.defaultProps,m=v.styles.base;P=P??g.className;var _=(0,s.twMerge)((0,a.default)((0,l.default)(m)),P);return r.default.createElement("div",S({},p,{ref:R,className:_}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.DialogFooter";var z=F})(hP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(B,U){for(var K in U)Object.defineProperty(B,K,{enumerable:!0,get:U[K]})}t(e,{Dialog:function(){return X},DialogHeader:function(){return z.DialogHeader},DialogBody:function(){return D.DialogBody},DialogFooter:function(){return R.DialogFooter},default:function(){return H}});var r=p(ee),a=p(ot),s=ur,l=gr,f=p(ct),b=p(xr),S=it,T=p(Ht),O=p(nt),j=rt,F=as,z=fP,D=pP,R=hP;function P(B,U,K){return U in B?Object.defineProperty(B,U,{value:K,enumerable:!0,configurable:!0,writable:!0}):B[U]=K,B}function y(){return y=Object.assign||function(B){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var ne in K)Object.prototype.hasOwnProperty.call(K,ne)&&(B[ne]=K[ne])}return B},y.apply(this,arguments)}function p(B){return B&&B.__esModule?B:{default:B}}function v(B){for(var U=1;U<arguments.length;U++){var K=arguments[U]!=null?arguments[U]:{},ne=Object.keys(K);typeof Object.getOwnPropertySymbols=="function"&&(ne=ne.concat(Object.getOwnPropertySymbols(K).filter(function(oe){return Object.getOwnPropertyDescriptor(K,oe).enumerable}))),ne.forEach(function(oe){P(B,oe,K[oe])})}return B}function g(B,U){var K=Object.keys(B);if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(B);U&&(ne=ne.filter(function(oe){return Object.getOwnPropertyDescriptor(B,oe).enumerable})),K.push.apply(K,ne)}return K}function m(B,U){return U=U??{},Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(U)):g(Object(U)).forEach(function(K){Object.defineProperty(B,K,Object.getOwnPropertyDescriptor(U,K))}),B}function _(B,U){if(B==null)return{};var K=M(B,U),ne,oe;if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(B);for(oe=0;oe<fe.length;oe++)ne=fe[oe],!(U.indexOf(ne)>=0)&&Object.prototype.propertyIsEnumerable.call(B,ne)&&(K[ne]=B[ne])}return K}function M(B,U){if(B==null)return{};var K={},ne=Object.keys(B),oe,fe;for(fe=0;fe<ne.length;fe++)oe=ne[fe],!(U.indexOf(oe)>=0)&&(K[oe]=B[oe]);return K}var X=r.default.forwardRef(function(B,U){var K=B.open,ne=B.handler,oe=B.size,fe=B.dismiss,ve=B.animate,Se=B.className,he=B.children,ue=_(B,["open","handler","size","dismiss","animate","className","children"]),ge=(0,j.useTheme)().dialog,ye=ge.defaultProps,Te=ge.valid,Re=ge.styles,De=Re.base,Le=Re.sizes;ne=ne??void 0,oe=oe??ye.size,fe=fe??ye.dismiss,ve=ve??ye.animate,Se=Se??ye.className;var Oe=(0,f.default)((0,O.default)(De.backdrop)),Xe=(0,S.twMerge)((0,f.default)((0,O.default)(De.container),(0,O.default)(Le[(0,T.default)(Te.sizes,oe,"md")])),Se),Ve={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ke={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Me=(0,b.default)(Ve,ve),Ne=(0,s.useFloating)({open:K,onOpenChange:ne}),Ge=Ne.floating,Qe=Ne.context,qe=(0,s.useId)(),He="".concat(qe,"-label"),Ze="".concat(qe,"-description"),bt=(0,s.useInteractions)([(0,s.useClick)(Qe),(0,s.useRole)(Qe),(0,s.useDismiss)(Qe,fe)]).getFloatingProps,wt=(0,s.useMergeRefs)([U,Ge]),It=l.AnimatePresence;return r.default.createElement(l.LazyMotion,{features:l.domAnimation},r.default.createElement(s.FloatingPortal,null,r.default.createElement(It,null,K&&r.default.createElement(s.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(s.FloatingFocusManager,{context:Qe},r.default.createElement(l.m.div,{className:oe==="xxl"?"":Oe,initial:"unmount",exit:"unmount",animate:K?"mount":"unmount",variants:ke,transition:{duration:.2}},r.default.createElement(l.m.div,y({},bt(m(v({},ue),{ref:wt,className:Xe,"aria-labelledby":He,"aria-describedby":Ze})),{initial:"unmount",exit:"unmount",animate:K?"mount":"unmount",variants:Me}),he)))))))});X.propTypes={open:F.propTypesOpen,handler:F.propTypesHandler,size:a.default.oneOf(F.propTypesSize),dismiss:F.propTypesDismiss,animate:F.propTypesAnimate,className:F.propTypesClassName,children:F.propTypesChildren},X.displayName="MaterialTailwind.Dialog";var H=Object.assign(X,{Header:z.DialogHeader,Body:D.DialogBody,Footer:R.DialogFooter})})(OT);var gP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{Input:function(){return D},default:function(){return R}});var r=j(ee),a=j(ot),s=j(ct),l=j(Ht),f=j(nt),b=rt,S=Vl;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.variant,v=P.color,g=P.size,m=P.label,_=P.error,M=P.success,X=P.icon,H=P.containerProps,B=P.labelProps,U=P.className,K=P.shrink,ne=P.inputRef,oe=F(P,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),fe=(0,b.useTheme)().input,ve=fe.defaultProps,Se=fe.valid,he=fe.styles,ue=he.base,ge=he.variants;p=p??ve.variant,g=g??ve.size,v=v??ve.color,m=m??ve.label,B=B??ve.labelProps,H=H??ve.containerProps,U=U??ve.className,K=K??ve.shrink,X=X??ve.icon;var ye=ge[(0,l.default)(Se.variants,p,"outlined")],Te=ye.sizes[(0,l.default)(Se.sizes,g,"md")],Re=(0,f.default)(ye.error.input),De=(0,f.default)(ye.success.input),Le=(0,f.default)(ye.shrink.input),Oe=(0,f.default)(ye.colors.input[(0,l.default)(Se.colors,v,"gray")]),Xe=(0,f.default)(ye.error.label),Ve=(0,f.default)(ye.success.label),ke=(0,f.default)(ye.shrink.label),Me=(0,f.default)(ye.colors.label[(0,l.default)(Se.colors,v,"gray")]),Ne=(0,s.default)((0,f.default)(ue.container),(0,f.default)(Te.container),H==null?void 0:H.className),Ge=(0,s.default)((0,f.default)(ue.input),(0,f.default)(ye.base.input),(0,f.default)(Te.input),T({},(0,f.default)(ye.base.inputWithIcon),X),T({},Oe,!_&&!M),T({},Re,_),T({},De,M),T({},Le,K),U),Qe=(0,s.default)((0,f.default)(ue.label),(0,f.default)(ye.base.label),(0,f.default)(Te.label),T({},Me,!_&&!M),T({},Xe,_),T({},Ve,M),T({},ke,K),B==null?void 0:B.className),qe=(0,s.default)((0,f.default)(ue.icon),(0,f.default)(ye.base.icon),(0,f.default)(Te.icon)),He=(0,s.default)((0,f.default)(ue.asterisk));return r.default.createElement("div",O({},H,{ref:y,className:Ne}),X&&r.default.createElement("div",{className:qe},X),r.default.createElement("input",O({},oe,{ref:ne,className:Ge,placeholder:(oe==null?void 0:oe.placeholder)||" "})),r.default.createElement("label",O({},B,{className:Qe}),m," ",oe.required?r.default.createElement("span",{className:He},"*"):""))});D.propTypes={variant:a.default.oneOf(S.propTypesVariant),size:a.default.oneOf(S.propTypesSize),color:a.default.oneOf(S.propTypesColor),label:S.propTypesLabel,error:S.propTypesError,success:S.propTypesSuccess,icon:S.propTypesIcon,labelProps:S.propTypesLabelProps,containerProps:S.propTypesContainerProps,shrink:S.propTypesShrink,className:S.propTypesClassName},D.displayName="MaterialTailwind.Input";var R=D})(gP);var bP={},Kl={},ds={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{propTypesOpen:function(){return T},propTypesHandler:function(){return O},propTypesPlacement:function(){return j},propTypesOffset:function(){return F},propTypesDismiss:function(){return z},propTypesAnimate:function(){return D},propTypesLockScroll:function(){return R},propTypesDisabled:function(){return P},propTypesClassName:function(){return y},propTypesChildren:function(){return p},propTypesContextValue:function(){return v}});var r=l(ot),a=Vt;function s(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function l(g){return g&&g.__esModule?g:{default:g}}function f(g){for(var m=1;m<arguments.length;m++){var _=arguments[m]!=null?arguments[m]:{},M=Object.keys(_);typeof Object.getOwnPropertySymbols=="function"&&(M=M.concat(Object.getOwnPropertySymbols(_).filter(function(X){return Object.getOwnPropertyDescriptor(_,X).enumerable}))),M.forEach(function(X){s(g,X,_[X])})}return g}function b(g,m){var _=Object.keys(g);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(g);m&&(M=M.filter(function(X){return Object.getOwnPropertyDescriptor(g,X).enumerable})),_.push.apply(_,M)}return _}function S(g,m){return m=m??{},Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(m)):b(Object(m)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(m,_))}),g}var T=r.default.bool,O=r.default.func,j=a.propTypesPlacements,F=a.propTypesOffsetType,z=r.default.shape(S(f({},a.propTypesDismissType),{itemPress:r.default.bool})),D=a.propTypesAnimation,R=r.default.bool,P=r.default.bool,y=r.default.string,p=r.default.node.isRequired,v=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:D.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(ds);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{MenuContext:function(){return l},useMenu:function(){return f},MenuContextProvider:function(){return b}});var r=s(ee),a=ds;function s(S){return S&&S.__esModule?S:{default:S}}var l=r.default.createContext(null);l.displayName="MaterialTailwind.MenuContext";function f(){var S=r.default.useContext(l);if(!S)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return S}var b=function(S){var T=S.value,O=S.children;return r.default.createElement(l.Provider,{value:T},O)};b.prototypes={value:a.propTypesContextValue,children:a.propTypesChildren},b.displayName="MaterialTailwind.MenuContextProvider"})(Kl);var vP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{MenuCore:function(){return P},default:function(){return y}});var r=j(ee),a=j(ot),s=ur,l=j(xr),f=rt,b=Kl,S=ds;function T(p,v){(v==null||v>p.length)&&(v=p.length);for(var g=0,m=new Array(v);g<v;g++)m[g]=p[g];return m}function O(p){if(Array.isArray(p))return p}function j(p){return p&&p.__esModule?p:{default:p}}function F(p,v){var g=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(g!=null){var m=[],_=!0,M=!1,X,H;try{for(g=g.call(p);!(_=(X=g.next()).done)&&(m.push(X.value),!(v&&m.length===v));_=!0);}catch(B){M=!0,H=B}finally{try{!_&&g.return!=null&&g.return()}finally{if(M)throw H}}return m}}function z(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(p,v){return O(p)||F(p,v)||R(p,v)||z()}function R(p,v){if(p){if(typeof p=="string")return T(p,v);var g=Object.prototype.toString.call(p).slice(8,-1);if(g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return T(p,v)}}var P=r.default.forwardRef(function(p,v){var g=p.open,m=p.handler,_=p.placement,M=p.offset,X=p.dismiss,H=p.animate,B=p.lockScroll,U=p.allowHover,K=p.children,ne=(0,f.useTheme)().menu,oe=ne.defaultProps,fe=D(r.default.useState(!1),2),ve=fe[0],Se=fe[1],he=D(r.default.useState(!1),2),ue=he[0],ge=he[1];g=g??ve,m=m??Se,_=_??oe.placement,M=M??oe.offset,X=X??oe.dismiss,H=H??oe.animate,B=B??oe.lockScroll;var ye={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},Te=(0,l.default)(ye,H),Re=D(r.default.useState(null),2),De=Re[0],Le=Re[1],Oe=r.default.useRef([]),Xe=r.default.useRef(r.default.Children.map(K,function(kt){return r.default.isValidElement(kt)?kt.props.label:null})),Ve=(0,s.useFloatingTree)(),ke=(0,s.useFloatingNodeId)(),Me=(0,s.useFloatingParentNodeId)(),Ne=Me!=null,Ge=(0,s.useFloating)({open:g,nodeId:ke,placement:_,onOpenChange:m,middleware:[(0,s.offset)(M),(0,s.flip)(),(0,s.shift)()],whileElementsMounted:s.autoUpdate}),Qe=Ge.x,qe=Ge.y,He=Ge.strategy,Ze=Ge.refs,bt=Ge.context,wt=(0,s.useInteractions)([(0,s.useHover)(bt,{handleClose:(0,s.safePolygon)({restMs:25,blockPointerEvents:!0}),enabled:U||Ne&&ue,delay:{open:75}}),(0,s.useClick)(bt,{toggle:!Ne||!ue,event:"mousedown",ignoreMouse:Ne}),(0,s.useRole)(bt,{role:"menu"}),(0,s.useDismiss)(bt,X),(0,s.useListNavigation)(bt,{listRef:Oe,activeIndex:De,nested:Ne,onNavigate:Le}),(0,s.useTypeahead)(bt,{listRef:Xe,onMatch:g?Le:void 0,activeIndex:De})]),It=wt.getReferenceProps,Pt=wt.getFloatingProps,Lt=wt.getItemProps;r.default.useEffect(function(){var kt=function(){X.itemPress&&m(!1)},yt=function(wr){wr.nodeId!==ke&&wr.parentId===Me&&m(!1)};return Ve==null||Ve.events.on("click",kt),Ve==null||Ve.events.on("menuopen",yt),function(){Ve==null||Ve.events.off("click",kt),Ve==null||Ve.events.off("menuopen",yt)}},[Ve,ke,Me,m,X]),r.default.useEffect(function(){g&&(Ve==null||Ve.events.emit("menuopen",{parentId:Me,nodeId:ke}))},[Ve,g,ke,Me]),r.default.useEffect(function(){var kt=function(wr){var er=wr.pointerType;er!=="touch"&&ge(!0)},yt=function(){ge(!1)};return window.addEventListener("pointermove",kt,{once:!0,capture:!0}),window.addEventListener("keydown",yt,!0),function(){window.removeEventListener("pointermove",kt,{capture:!0}),window.removeEventListener("keydown",yt,!0)}},[ue]);var Zt=(0,s.useMergeRefs)([Ze.setReference,v]),Qt=r.default.useMemo(function(){return{open:g,handler:m,setInternalOpen:Se,strategy:He,x:Qe,y:qe,reference:Zt,floating:Ze.setFloating,listItemsRef:Oe,getReferenceProps:It,getFloatingProps:Pt,getItemProps:Lt,appliedAnimation:Te,lockScroll:B,context:bt,activeIndex:De,tree:Ve,allowHover:U,internalAllowHover:ue,nested:Ne,setActiveIndex:Le}},[g,m,Se,He,Qe,qe,Zt,Ze,It,Pt,Lt,Te,B,bt,De,Ve,U,ue,Ne,Le]);return r.default.createElement(b.MenuContextProvider,{value:Qt},r.default.createElement(s.FloatingNode,{id:ke},K))});P.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,placement:a.default.oneOf(S.propTypesPlacement),offset:S.propTypesOffset,dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,lockScroll:S.propTypesLockScroll,children:S.propTypesChildren},P.displayName="MaterialTailwind.MenuCore";var y=P})(vP);var mP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{MenuHandler:function(){return z},default:function(){return D}});var r=b(ee),a=ur,s=Kl,l=ds;function f(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function b(R){return R&&R.__esModule?R:{default:R}}function S(R){for(var P=1;P<arguments.length;P++){var y=arguments[P]!=null?arguments[P]:{},p=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(p=p.concat(Object.getOwnPropertySymbols(y).filter(function(v){return Object.getOwnPropertyDescriptor(y,v).enumerable}))),p.forEach(function(v){f(R,v,y[v])})}return R}function T(R,P){var y=Object.keys(R);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(R);P&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(R,v).enumerable})),y.push.apply(y,p)}return y}function O(R,P){return P=P??{},Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(P)):T(Object(P)).forEach(function(y){Object.defineProperty(R,y,Object.getOwnPropertyDescriptor(P,y))}),R}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.children,p=j(R,["children"]),v=(0,s.useMenu)(),g=v.getReferenceProps,m=v.reference,_=v.nested,M=(0,a.useMergeRefs)([P,m]);return r.default.cloneElement(y,S({},g(S(O(S({},p),{ref:M,onClick:function(H){H.stopPropagation()}}),_&&{role:"menuitem"}))))});z.propTypes={children:l.propTypesChildren},z.displayName="MaterialTailwind.MenuHandler";var D=z})(mP);var yP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{MenuList:function(){return R},default:function(){return P}});var r=F(ee),a=ur,s=gr,l=F(ct),f=it,b=F(nt),S=rt,T=Kl,O=ds;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.children,g=y.className,m=z(y,["children","className"]),_=(0,S.useTheme)().menu,M=_.styles.base,X=(0,T.useMenu)(),H=X.open,B=X.handler,U=X.strategy,K=X.x,ne=X.y,oe=X.floating,fe=X.listItemsRef,ve=X.getFloatingProps,Se=X.getItemProps,he=X.appliedAnimation,ue=X.lockScroll,ge=X.context,ye=X.activeIndex,Te=X.tree,Re=X.allowHover,De=X.internalAllowHover,Le=X.setActiveIndex,Oe=X.nested;g=g??"";var Xe=(0,f.twMerge)((0,l.default)((0,b.default)(M.menu)),g),Ve=(0,a.useMergeRefs)([p,oe]),ke=s.AnimatePresence,Me=r.default.createElement(s.m.div,j({},m,{ref:Ve,style:{position:U,top:ne??0,left:K??0},className:Xe},ve({onKeyDown:function(Ge){Ge.key==="Tab"&&(B(!1),Ge.shiftKey&&Ge.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:H?"mount":"unmount",variants:he}),r.default.Children.map(v,function(Ne,Ge){return r.default.isValidElement(Ne)&&r.default.cloneElement(Ne,Se({tabIndex:ye===Ge?0:-1,role:"menuitem",className:Ne.props.className,ref:function(qe){fe.current[Ge]=qe},onClick:function(qe){if(Ne.props.onClick){var He,Ze;(Ze=(He=Ne.props).onClick)===null||Ze===void 0||Ze.call(He,qe)}Te==null||Te.events.emit("click")},onMouseEnter:function(){(Re&&H||De&&H)&&Le(Ge)}}))}));return r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(a.FloatingPortal,null,r.default.createElement(ke,null,H&&r.default.createElement(r.default.Fragment,null,ue?r.default.createElement(a.FloatingOverlay,{lockScroll:!0},r.default.createElement(a.FloatingFocusManager,{context:ge,modal:!Oe,initialFocus:Oe?-1:0,returnFocus:!Oe,visuallyHiddenDismiss:!0},Me)):r.default.createElement(a.FloatingFocusManager,{context:ge,modal:!Oe,initialFocus:Oe?-1:0,returnFocus:!Oe,visuallyHiddenDismiss:!0},Me)))))});R.propTypes={className:O.propTypesClassName,children:O.propTypesChildren},R.displayName="MaterialTailwind.MenuList";var P=R})(yP);var xP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{MenuItem:function(){return z},default:function(){return D}});var r=O(ee),a=O(ct),s=it,l=O(nt),f=rt,b=ds;function S(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function T(){return T=Object.assign||function(R){for(var P=1;P<arguments.length;P++){var y=arguments[P];for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(R[p]=y[p])}return R},T.apply(this,arguments)}function O(R){return R&&R.__esModule?R:{default:R}}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.className,p=y===void 0?"":y,v=R.disabled,g=v===void 0?!1:v,m=R.children,_=j(R,["className","disabled","children"]),M=(0,f.useTheme)().menu,X=M.styles.base,H=(0,s.twMerge)((0,a.default)((0,l.default)(X.item.initial),S({},(0,l.default)(X.item.disabled),g)),p);return r.default.createElement("button",T({},_,{ref:P,role:"menuitem",className:H}),m)});z.propTypes={className:b.propTypesClassName,disabled:b.propTypesDisabled,children:b.propTypesChildren},z.displayName="MaterialTailwind.MenuItem";var D=z})(xP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{Menu:function(){return j},MenuHandler:function(){return f.MenuHandler},MenuList:function(){return b.MenuList},MenuItem:function(){return S.MenuItem},useMenu:function(){return s.useMenu},default:function(){return F}});var r=O(ee),a=ur,s=Kl,l=vP,f=mP,b=yP,S=xP;function T(){return T=Object.assign||function(z){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(z[P]=R[P])}return z},T.apply(this,arguments)}function O(z){return z&&z.__esModule?z:{default:z}}var j=r.default.forwardRef(function(z,D){var R=z.open,P=z.handler,y=z.placement,p=z.offset,v=z.dismiss,g=z.animate,m=z.lockScroll,_=z.allowHover,M=z.children,X=(0,a.useFloatingParentNodeId)(),H={open:R,handler:P,placement:y,offset:p,dismiss:v,animate:g,lockScroll:m,allowHover:_};return X==null?r.default.createElement(a.FloatingTree,null,r.default.createElement(l.MenuCore,T({ref:D},H),M)):r.default.createElement(l.MenuCore,T({ref:D},H),M)});j.propTypes=l.MenuCore.propTypes,j.displayName="MaterialTailwind.Menu";var F=Object.assign(j,{Handler:f.MenuHandler,List:b.MenuList,Item:S.MenuItem})})(bP);var wP={},CP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{MobileNav:function(){return R},default:function(){return P}});var r=F(ee),a=gr,s=ur,l=F(xr),f=F(ct),b=it,S=F(nt),T=rt,O=_d;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.open,g=y.animate,m=y.className,_=y.children,M=z(y,["open","animate","className","children"]),X;console.error(`<MobileNav /> will be deprecated in the future versions of @material-tailwind/react use <Collapse /> instead.
More details: https://www.material-tailwind.com/docs/react/collapse
`);var H=r.default.useRef(null),B=(0,T.useTheme)().navbar,U=B.styles,K=U.base.mobileNav;g=g??{},m=m??"";var ne=(0,b.twMerge)((0,f.default)((0,S.default)(K)),m),oe={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((X=H.current)===null||X===void 0?void 0:X.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},fe=(0,l.default)(oe,g),ve=a.AnimatePresence,Se=(0,s.useMergeRefs)([p,H]);return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(ve,null,r.default.createElement(a.m.div,j({},M,{ref:Se,className:ne,initial:"unmount",exit:"unmount",animate:v?"mount":"unmount",variants:fe}),_)))});R.displayName="MaterialTailwind.MobileNav",R.propTypes={open:O.propTypesOpen,animate:O.propTypesAnimate,className:O.propTypesClassName,children:O.propTypesChildren};var P=R})(CP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Navbar:function(){return P},MobileNav:function(){return T.MobileNav},default:function(){return y}});var r=z(ee),a=z(ot),s=z(ct),l=it,f=z(Ht),b=z(nt),S=rt,T=CP,O=_d;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.variant,m=p.color,_=p.shadow,M=p.blurred,X=p.fullWidth,H=p.className,B=p.children,U=D(p,["variant","color","shadow","blurred","fullWidth","className","children"]),K=(0,S.useTheme)().navbar,ne=K.defaultProps,oe=K.valid,fe=K.styles,ve=fe.base,Se=fe.variants;g=g??ne.variant,m=m??ne.color,_=_??ne.shadow,M=M??ne.blurred,X=X??ne.fullWidth,H=H??ne.className;var he,ue=(0,s.default)((0,b.default)(ve.navbar.initial),(he={},j(he,(0,b.default)(ve.navbar.shadow),_),j(he,(0,b.default)(ve.navbar.blurred),M&&m==="white"),j(he,(0,b.default)(ve.navbar.fullWidth),X),he)),ge=(0,s.default)((0,b.default)(Se[(0,f.default)(oe.variants,g,"filled")][(0,f.default)(oe.colors,m,"white")])),ye=(0,l.twMerge)((0,s.default)(ue,ge),H);return r.default.createElement("nav",F({},U,{ref:v,className:ye}),B)});P.propTypes={variant:a.default.oneOf(O.propTypesVariant),color:a.default.oneOf(O.propTypesColor),shadow:O.propTypesShadow,blurred:O.propTypesBlurred,fullWidth:O.propTypesFullWidth,className:O.propTypesClassName,children:O.propTypesChildren},P.displayName="MaterialTailwind.Navbar";var y=Object.assign(P,{MobileNav:T.MobileNav})})(wP);var SP={},$d={},fs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{propTypesOpen:function(){return l},propTypesHandler:function(){return f},propTypesPlacement:function(){return b},propTypesOffset:function(){return S},propTypesDismiss:function(){return T},propTypesAnimate:function(){return O},propTypesContent:function(){return j},propTypesInteractive:function(){return F},propTypesClassName:function(){return z},propTypesChildren:function(){return D},propTypesContextValue:function(){return R}});var r=s(ot),a=Vt;function s(P){return P&&P.__esModule?P:{default:P}}var l=r.default.bool,f=r.default.func,b=a.propTypesPlacements,S=a.propTypesOffsetType,T=a.propTypesDismissType,O=a.propTypesAnimation,j=r.default.node,F=r.default.bool,z=r.default.string,D=r.default.node.isRequired,R=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:O.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(fs);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,T){for(var O in T)Object.defineProperty(S,O,{enumerable:!0,get:T[O]})}t(e,{PopoverContext:function(){return l},usePopover:function(){return f},PopoverContextProvider:function(){return b}});var r=s(ee),a=fs;function s(S){return S&&S.__esModule?S:{default:S}}var l=r.default.createContext(null);l.displayName="MaterialTailwind.PopoverContext";function f(){var S=r.default.useContext(l);if(!S)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return S}var b=function(S){var T=S.value,O=S.children;return r.default.createElement(l.Provider,{value:T},O)};b.propTypes={value:a.propTypesContextValue,children:a.propTypesChildren},b.displayName="MaterialTailwind.PopoverContextProvider"})($d);var kP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,P){for(var y in P)Object.defineProperty(R,y,{enumerable:!0,get:P[y]})}t(e,{PopoverHandler:function(){return z},default:function(){return D}});var r=b(ee),a=ur,s=$d,l=fs;function f(R,P,y){return P in R?Object.defineProperty(R,P,{value:y,enumerable:!0,configurable:!0,writable:!0}):R[P]=y,R}function b(R){return R&&R.__esModule?R:{default:R}}function S(R){for(var P=1;P<arguments.length;P++){var y=arguments[P]!=null?arguments[P]:{},p=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(p=p.concat(Object.getOwnPropertySymbols(y).filter(function(v){return Object.getOwnPropertyDescriptor(y,v).enumerable}))),p.forEach(function(v){f(R,v,y[v])})}return R}function T(R,P){var y=Object.keys(R);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(R);P&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(R,v).enumerable})),y.push.apply(y,p)}return y}function O(R,P){return P=P??{},Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(P)):T(Object(P)).forEach(function(y){Object.defineProperty(R,y,Object.getOwnPropertyDescriptor(P,y))}),R}function j(R,P){if(R==null)return{};var y=F(R,P),p,v;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(R);for(v=0;v<g.length;v++)p=g[v],!(P.indexOf(p)>=0)&&Object.prototype.propertyIsEnumerable.call(R,p)&&(y[p]=R[p])}return y}function F(R,P){if(R==null)return{};var y={},p=Object.keys(R),v,g;for(g=0;g<p.length;g++)v=p[g],!(P.indexOf(v)>=0)&&(y[v]=R[v]);return y}var z=r.default.forwardRef(function(R,P){var y=R.children,p=j(R,["children"]),v=(0,s.usePopover)(),g=v.getReferenceProps,m=v.reference,_=(0,a.useMergeRefs)([P,m]);return r.default.cloneElement(y,S({},g(O(S({},p),{ref:_}))))});z.propTypes={children:l.propTypesChildren},z.displayName="MaterialTailwind.PopoverHandler";var D=z})(kP);var TP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var M in _)Object.defineProperty(m,M,{enumerable:!0,get:_[M]})}t(e,{PopoverContent:function(){return v},default:function(){return g}});var r=z(ee),a=ur,s=gr,l=z(ct),f=it,b=z(nt),S=rt,T=$d,O=fs;function j(m,_,M){return _ in m?Object.defineProperty(m,_,{value:M,enumerable:!0,configurable:!0,writable:!0}):m[_]=M,m}function F(){return F=Object.assign||function(m){for(var _=1;_<arguments.length;_++){var M=arguments[_];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(m[X]=M[X])}return m},F.apply(this,arguments)}function z(m){return m&&m.__esModule?m:{default:m}}function D(m){for(var _=1;_<arguments.length;_++){var M=arguments[_]!=null?arguments[_]:{},X=Object.keys(M);typeof Object.getOwnPropertySymbols=="function"&&(X=X.concat(Object.getOwnPropertySymbols(M).filter(function(H){return Object.getOwnPropertyDescriptor(M,H).enumerable}))),X.forEach(function(H){j(m,H,M[H])})}return m}function R(m,_){var M=Object.keys(m);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(m);_&&(X=X.filter(function(H){return Object.getOwnPropertyDescriptor(m,H).enumerable})),M.push.apply(M,X)}return M}function P(m,_){return _=_??{},Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(_)):R(Object(_)).forEach(function(M){Object.defineProperty(m,M,Object.getOwnPropertyDescriptor(_,M))}),m}function y(m,_){if(m==null)return{};var M=p(m,_),X,H;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(m);for(H=0;H<B.length;H++)X=B[H],!(_.indexOf(X)>=0)&&Object.prototype.propertyIsEnumerable.call(m,X)&&(M[X]=m[X])}return M}function p(m,_){if(m==null)return{};var M={},X=Object.keys(m),H,B;for(B=0;B<X.length;B++)H=X[B],!(_.indexOf(H)>=0)&&(M[H]=m[H]);return M}var v=r.default.forwardRef(function(m,_){var M=m.children,X=m.className,H=y(m,["children","className"]),B=(0,S.useTheme)().popover,U=B.defaultProps,K=B.styles.base,ne=(0,T.usePopover)(),oe=ne.open,fe=ne.strategy,ve=ne.x,Se=ne.y,he=ne.context,ue=ne.floating,ge=ne.getFloatingProps,ye=ne.appliedAnimation,Te=ne.labelId,Re=ne.descriptionId;X=X??U.className;var De=(0,f.twMerge)((0,l.default)((0,b.default)(K)),X),Le=(0,a.useMergeRefs)([_,ue]),Oe=s.AnimatePresence;return r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(a.FloatingPortal,null,r.default.createElement(Oe,null,oe&&r.default.createElement(a.FloatingFocusManager,{context:he},r.default.createElement(s.m.div,F({},ge(P(D({},H),{ref:Le,className:De,style:{position:fe,top:Se??"",left:ve??""},"aria-labelledby":Te,"aria-describedby":Re})),{initial:"unmount",exit:"unmount",animate:oe?"mount":"unmount",variants:ye}),M)))))});v.propTypes={className:O.propTypesClassName,children:O.propTypesChildren},v.displayName="MaterialTailwind.PopoverContent";var g=v})(TP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return p},PopoverHandler:function(){return T.PopoverHandler},PopoverContent:function(){return O.PopoverContent},usePopover:function(){return b.usePopover},default:function(){return v}});var r=z(ee),a=z(ot),s=ur,l=z(xr),f=rt,b=$d,S=fs,T=kP,O=TP;function j(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,M=new Array(m);_<m;_++)M[_]=g[_];return M}function F(g){if(Array.isArray(g))return g}function z(g){return g&&g.__esModule?g:{default:g}}function D(g,m){var _=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(_!=null){var M=[],X=!0,H=!1,B,U;try{for(_=_.call(g);!(X=(B=_.next()).done)&&(M.push(B.value),!(m&&M.length===m));X=!0);}catch(K){H=!0,U=K}finally{try{!X&&_.return!=null&&_.return()}finally{if(H)throw U}}return M}}function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(g,m){return F(g)||D(g,m)||y(g,m)||R()}function y(g,m){if(g){if(typeof g=="string")return j(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return j(g,m)}}var p=function(g){var m=g.open,_=g.handler,M=g.placement,X=g.offset,H=g.dismiss,B=g.animate,U=g.children,K=(0,f.useTheme)().popover,ne=K.defaultProps,oe=P(r.default.useState(!1),2),fe=oe[0],ve=oe[1];m=m??fe,_=_??ve,M=M??ne.placement,X=X??ne.offset,H=H??ne.dismiss,B=B??ne.animate;var Se={unmount:{opacity:0},mount:{opacity:1}},he=(0,l.default)(Se,B),ue=(0,s.useFloating)({open:m,onOpenChange:_,middleware:[(0,s.offset)(X),(0,s.flip)(),(0,s.shift)()],placement:M}),ge=ue.x,ye=ue.y,Te=ue.reference,Re=ue.floating,De=ue.strategy,Le=ue.refs,Oe=ue.update,Xe=ue.context,Ve=(0,s.useId)(),ke="".concat(Ve,"-label"),Me="".concat(Ve,"-description"),Ne=(0,s.useInteractions)([(0,s.useClick)(Xe),(0,s.useRole)(Xe),(0,s.useDismiss)(Xe,H)]),Ge=Ne.getReferenceProps,Qe=Ne.getFloatingProps;r.default.useEffect(function(){if(Le.reference.current&&Le.floating.current&&m)return(0,s.autoUpdate)(Le.reference.current,Le.floating.current,Oe)},[m,Oe,Le.reference,Le.floating]);var qe=r.default.useMemo(function(){return{open:m,strategy:De,x:ge,y:ye,context:Xe,reference:Te,floating:Re,getReferenceProps:Ge,getFloatingProps:Qe,appliedAnimation:he,labelId:ke,descriptionId:Me}},[m,De,ge,ye,Xe,Te,Re,Qe,Ge,he,ke,Me]);return r.default.createElement(b.PopoverContextProvider,{value:qe},U)};p.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,placement:a.default.oneOf(S.propTypesPlacement),offset:S.propTypesOffset,dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,children:S.propTypesChildren},p.displayName="MaterialTailwind.Popover";var v=Object.assign(p,{Handler:T.PopoverHandler,Content:O.PopoverContent})})(SP);var PP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Progress:function(){return R},default:function(){return P}});var r=F(ee),a=F(ot),s=F(ct),l=it,f=F(Ht),b=F(nt),S=rt,T=y0;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.color,m=y.size,_=y.value,M=y.label,X=y.className,H=y.barProps,B=z(y,["variant","color","size","value","label","className","barProps"]),U=(0,S.useTheme)().progress,K=U.defaultProps,ne=U.valid,oe=U.styles,fe=oe.base,ve=oe.variants,Se=oe.sizes;v=v??K.variant,g=g??K.color,m=m??K.size,M=M??K.label,X=X??K.className,H=H??K.barProps;var he=(0,b.default)(ve[(0,f.default)(ne.variants,v,"filled")][(0,f.default)(ne.colors,g,"gray")]),ue=(0,b.default)(Se[(0,f.default)(ne.sizes,m,"md")].container.initial),ge=(0,s.default)((0,b.default)(fe.container.initial),ue),ye=(0,b.default)(Se[(0,f.default)(ne.sizes,m,"md")].container.withLabel),Te=(0,s.default)((0,b.default)(fe.container.withLabel),ye),Re=(0,b.default)(Se[(0,f.default)(ne.sizes,m,"md")].bar),De=(0,s.default)((0,b.default)(fe.bar),Re),Le=(0,l.twMerge)((0,s.default)(ge,O({},Te,M)),X),Oe=(0,l.twMerge)((0,s.default)(De,he),H==null?void 0:H.className);return r.default.createElement("div",j({},B,{ref:p,className:Le}),r.default.createElement("div",j({},H,{className:Oe,style:{width:"".concat(_,"%")}}),M&&"".concat(_,"% ").concat(typeof M=="string"?M:"")))});R.propTypes={variant:a.default.oneOf(T.propTypesVariant),color:a.default.oneOf(T.propTypesColor),size:a.default.oneOf(T.propTypesSize),value:T.propTypesValue,label:T.propTypesLabel,barProps:T.propTypesBarProps,className:T.propTypesClassName},R.displayName="MaterialTailwind.Progress";var P=R})(PP);var _P={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Radio:function(){return P},default:function(){return y}});var r=z(ee),a=z(ot),s=z(ss),l=z(ct),f=it,b=z(Ht),S=z(nt),T=rt,O=Qa;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.color,m=p.label,_=p.icon,M=p.ripple,X=p.className,H=p.disabled,B=p.containerProps,U=p.labelProps,K=p.iconProps,ne=p.inputRef,oe=D(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),fe=(0,T.useTheme)().radio,ve=fe.defaultProps,Se=fe.valid,he=fe.styles,ue=he.base,ge=he.colors,ye=r.default.useId();g=g??ve.color,m=m??ve.label,_=_??ve.icon,M=M??ve.ripple,X=X??ve.className,H=H??ve.disabled,B=B??ve.containerProps,U=U??ve.labelProps,K=K??ve.iconProps;var Te=M!==void 0&&new s.default,Re=(0,l.default)((0,S.default)(ue.root),j({},(0,S.default)(ue.disabled),H)),De=(0,f.twMerge)((0,l.default)((0,S.default)(ue.container)),B==null?void 0:B.className),Le=(0,f.twMerge)((0,l.default)((0,S.default)(ue.input),(0,S.default)(ge[(0,b.default)(Se.colors,g,"gray")])),X),Oe=(0,f.twMerge)((0,l.default)((0,S.default)(ue.label)),U==null?void 0:U.className),Xe=(0,l.default)((0,l.default)((0,S.default)(ue.icon)),ge[(0,b.default)(Se.colors,g,"gray")].color,K==null?void 0:K.className);return r.default.createElement("div",{ref:v,className:Re},r.default.createElement("label",F({},B,{className:De,htmlFor:oe.id||ye,onMouseDown:function(Ve){var ke=B==null?void 0:B.onMouseDown;return M&&Te.create(Ve,"dark"),typeof ke=="function"&&ke(Ve)}}),r.default.createElement("input",F({},oe,{ref:ne,type:"radio",disabled:H,className:Le,id:oe.id||ye})),r.default.createElement("span",{className:Xe},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",F({},U,{className:Oe,htmlFor:oe.id||ye}),m))});P.propTypes={color:a.default.oneOf(O.propTypesColor),label:O.propTypesLabel,icon:O.propTypesIcon,ripple:O.propTypesRipple,className:O.propTypesClassName,disabled:O.propTypesDisabled,containerProps:O.propTypesObject,labelProps:O.propTypesObject},P.displayName="MaterialTailwind.Radio";var y=P})(_P);var OP={},ab={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(O,j){for(var F in j)Object.defineProperty(O,F,{enumerable:!0,get:j[F]})}t(e,{SelectContext:function(){return f},useSelect:function(){return b},usePrevious:function(){return S},SelectContextProvider:function(){return T}});var r=l(ee),a=gr,s=Wl;function l(O){return O&&O.__esModule?O:{default:O}}var f=r.default.createContext(null);f.displayName="MaterialTailwind.SelectContext";function b(){var O=r.default.useContext(f);if(O===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return O}function S(O){var j=r.default.useRef();return(0,a.useIsomorphicLayoutEffect)(function(){j.current=O},[O]),j.current}var T=function(O){var j=O.value,F=O.children;return r.default.createElement(f.Provider,{value:j},F)};T.propTypes={value:s.propTypesContextValue,children:s.propTypesChildren},T.displayName="MaterialTailwind.SelectContextProvider"})(ab);var AP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{SelectOption:function(){return D},default:function(){return R}});var r=j(ee),a=j(ct),s=it,l=j(nt),f=rt,b=ab,S=Wl;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=function(P){var y=function(){he(_),ye(g),ge(!1),Re(null)},p=function(Ge){(Ge.key==="Enter"||Ge.key===" "&&!Le.current.typing)&&(Ge.preventDefault(),y())},v=P.value,g=v===void 0?"":v,m=P.index,_=m===void 0?0:m,M=P.disabled,X=M===void 0?!1:M,H=P.className,B=H===void 0?"":H,U=P.children,K=F(P,["value","index","disabled","className","children"]),ne=(0,f.useTheme)().select,oe=ne.styles,fe=oe.base,ve=(0,b.useSelect)(),Se=ve.selectedIndex,he=ve.setSelectedIndex,ue=ve.listRef,ge=ve.setOpen,ye=ve.onChange,Te=ve.activeIndex,Re=ve.setActiveIndex,De=ve.getItemProps,Le=ve.dataRef,Oe=(0,l.default)(fe.option.initial),Xe=(0,l.default)(fe.option.active),Ve=(0,l.default)(fe.option.disabled),ke,Me=(0,s.twMerge)((0,a.default)(Oe,(ke={},T(ke,Xe,Se===_),T(ke,Ve,X),ke)),B??"");return r.default.createElement("li",O({},K,{role:"option",ref:function(Ne){return ue.current[_]=Ne},className:Me,disabled:X,tabIndex:Te===_?0:1,"aria-selected":Te===_&&Se===_,"data-selected":Se===_},De({onClick:function(Ne){var Ge=K==null?void 0:K.onClick;typeof Ge=="function"&&(Ge(Ne),y()),y()},onKeyDown:function(Ne){var Ge=K==null?void 0:K.onKeyDown;typeof Ge=="function"&&(Ge(Ne),p(Ne)),p(Ne)}})),U)};D.propTypes={value:S.propTypesValue,index:S.propTypesIndex,disabled:S.propTypesDisabled,className:S.propTypesClassName,children:S.propTypesChildren},D.displayName="MaterialTailwind.SelectOption";var R=D})(AP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(ue,ge){for(var ye in ge)Object.defineProperty(ue,ye,{enumerable:!0,get:ge[ye]})}t(e,{Select:function(){return Se},Option:function(){return D.SelectOption},useSelect:function(){return F.useSelect},usePrevious:function(){return F.usePrevious},default:function(){return he}});var r=g(ee),a=g(ot),s=ur,l=gr,f=g(ct),b=it,S=g(xr),T=g(Ht),O=g(nt),j=rt,F=ab,z=Wl,D=AP;function R(ue,ge){(ge==null||ge>ue.length)&&(ge=ue.length);for(var ye=0,Te=new Array(ge);ye<ge;ye++)Te[ye]=ue[ye];return Te}function P(ue){if(Array.isArray(ue))return ue}function y(ue){if(Array.isArray(ue))return R(ue)}function p(ue,ge,ye){return ge in ue?Object.defineProperty(ue,ge,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ue[ge]=ye,ue}function v(){return v=Object.assign||function(ue){for(var ge=1;ge<arguments.length;ge++){var ye=arguments[ge];for(var Te in ye)Object.prototype.hasOwnProperty.call(ye,Te)&&(ue[Te]=ye[Te])}return ue},v.apply(this,arguments)}function g(ue){return ue&&ue.__esModule?ue:{default:ue}}function m(ue){if(typeof Symbol<"u"&&ue[Symbol.iterator]!=null||ue["@@iterator"]!=null)return Array.from(ue)}function _(ue,ge){var ye=ue==null?null:typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(ye!=null){var Te=[],Re=!0,De=!1,Le,Oe;try{for(ye=ye.call(ue);!(Re=(Le=ye.next()).done)&&(Te.push(Le.value),!(ge&&Te.length===ge));Re=!0);}catch(Xe){De=!0,Oe=Xe}finally{try{!Re&&ye.return!=null&&ye.return()}finally{if(De)throw Oe}}return Te}}function M(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function X(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(ue){for(var ge=1;ge<arguments.length;ge++){var ye=arguments[ge]!=null?arguments[ge]:{},Te=Object.keys(ye);typeof Object.getOwnPropertySymbols=="function"&&(Te=Te.concat(Object.getOwnPropertySymbols(ye).filter(function(Re){return Object.getOwnPropertyDescriptor(ye,Re).enumerable}))),Te.forEach(function(Re){p(ue,Re,ye[Re])})}return ue}function B(ue,ge){var ye=Object.keys(ue);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(ue);ge&&(Te=Te.filter(function(Re){return Object.getOwnPropertyDescriptor(ue,Re).enumerable})),ye.push.apply(ye,Te)}return ye}function U(ue,ge){return ge=ge??{},Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(ge)):B(Object(ge)).forEach(function(ye){Object.defineProperty(ue,ye,Object.getOwnPropertyDescriptor(ge,ye))}),ue}function K(ue,ge){if(ue==null)return{};var ye=ne(ue,ge),Te,Re;if(Object.getOwnPropertySymbols){var De=Object.getOwnPropertySymbols(ue);for(Re=0;Re<De.length;Re++)Te=De[Re],!(ge.indexOf(Te)>=0)&&Object.prototype.propertyIsEnumerable.call(ue,Te)&&(ye[Te]=ue[Te])}return ye}function ne(ue,ge){if(ue==null)return{};var ye={},Te=Object.keys(ue),Re,De;for(De=0;De<Te.length;De++)Re=Te[De],!(ge.indexOf(Re)>=0)&&(ye[Re]=ue[Re]);return ye}function oe(ue,ge){return P(ue)||_(ue,ge)||ve(ue,ge)||M()}function fe(ue){return y(ue)||m(ue)||ve(ue)||X()}function ve(ue,ge){if(ue){if(typeof ue=="string")return R(ue,ge);var ye=Object.prototype.toString.call(ue).slice(8,-1);if(ye==="Object"&&ue.constructor&&(ye=ue.constructor.name),ye==="Map"||ye==="Set")return Array.from(ye);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return R(ue,ge)}}var Se=r.default.forwardRef(function(ue,ge){var ye=ue.variant,Te=ue.color,Re=ue.size,De=ue.label,Le=ue.error,Oe=ue.success,Xe=ue.arrow,Ve=ue.value,ke=ue.onChange,Me=ue.selected,Ne=ue.offset,Ge=ue.dismiss,Qe=ue.animate,qe=ue.lockScroll,He=ue.labelProps,Ze=ue.menuProps,bt=ue.className,wt=ue.disabled,It=ue.name,Pt=ue.children,Lt=ue.containerProps,Zt=K(ue,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Qt,kt=(0,j.useTheme)().select,yt=kt.defaultProps,Jt=kt.valid,wr=kt.styles,er=wr.base,so=wr.variants,Eo=oe(r.default.useState("close"),2),tr=Eo[0],kn=Eo[1];ye=ye??yt.variant,Te=Te??yt.color,Re=Re??yt.size,De=De??yt.label,Le=Le??yt.error,Oe=Oe??yt.success,Xe=Xe??yt.arrow,Ve=Ve??yt.value,ke=ke??yt.onChange,Me=Me??yt.selected,Ne=Ne??yt.offset,Ge=Ge??yt.dismiss,Qe=Qe??yt.animate,He=He??yt.labelProps,Ze=Ze??yt.menuProps;var Dr;Lt=(Dr=(0,S.default)(Lt,(yt==null?void 0:yt.containerProps)||{}))!==null&&Dr!==void 0?Dr:yt.containerProps,bt=bt??yt.className;var zr=r.default.useRef([]),Xt,ri=r.default.useRef(fe((Xt=r.default.Children.map(Pt,function(Q){var re=Q.props;return re==null?void 0:re.value}))!==null&&Xt!==void 0?Xt:[])),ba=oe(r.default.useState(!1),2),Ar=ba[0],va=ba[1],Tn=oe(r.default.useState(null),2),Fr=Tn[0],Yn=Tn[1],lo=oe(r.default.useState(0),2),br=lo[0],uo=lo[1],ma=oe(r.default.useState(!1),2),ni=ma[0],Gn=ma[1],ya=(0,F.usePrevious)(Fr),Zr=(0,s.useFloating)({placement:"bottom-start",open:Ar,onOpenChange:va,whileElementsMounted:s.autoUpdate,middleware:[(0,s.offset)(5),(0,s.flip)({padding:10}),(0,s.size)({apply:function(re){var ie=re.rects,C=re.elements,I,$;Object.assign(C==null||(I=C.floating)===null||I===void 0?void 0:I.style,{width:"".concat(ie==null||($=ie.reference)===null||$===void 0?void 0:$.width,"px"),zIndex:99})},padding:20})]}),Mo=Zr.x,Un=Zr.y,xa=Zr.strategy,$n=Zr.refs,Vr=Zr.context;r.default.useEffect(function(){uo(Math.max(0,ri.current.indexOf(Ve)+1))},[Ve]);var Pn=$n.floating,qn=(0,s.useInteractions)([(0,s.useClick)(Vr),(0,s.useRole)(Vr,{role:"listbox"}),(0,s.useDismiss)(Vr,H({},Ge)),(0,s.useListNavigation)(Vr,{listRef:zr,activeIndex:Fr,selectedIndex:br,onNavigate:Yn,loop:!0}),(0,s.useTypeahead)(Vr,{listRef:ri,activeIndex:Fr,selectedIndex:br,onMatch:Ar?Yn:uo})]),bs=qn.getReferenceProps,wa=qn.getFloatingProps,Ca=qn.getItemProps;(0,l.useIsomorphicLayoutEffect)(function(){var Q=Pn.current;if(Ar&&ni&&Q){var re=Fr!=null?zr.current[Fr]:br!=null?zr.current[br]:null;if(re&&ya!=null){var ie,C,I=(C=(ie=zr.current[ya])===null||ie===void 0?void 0:ie.offsetHeight)!==null&&C!==void 0?C:0,$=Q.offsetHeight,te=re.offsetTop,ce=te+I;te<Q.scrollTop?Q.scrollTop-=Q.scrollTop-te+5:ce>$+Q.scrollTop&&(Q.scrollTop+=ce-$-Q.scrollTop+5)}}},[Ar,ni,ya,Fr]);var vs=r.default.useMemo(function(){return{selectedIndex:br,setSelectedIndex:uo,listRef:zr,setOpen:va,onChange:ke||function(){},activeIndex:Fr,setActiveIndex:Yn,getItemProps:Ca,dataRef:Vr.dataRef}},[br,ke,Fr,Ca,Vr.dataRef]);r.default.useEffect(function(){kn(Ar?"open":!Ar&&br||!Ar&&Ve?"withValue":"close")},[Ar,Ve,br,Me]);var Wr=so[(0,T.default)(Jt.variants,ye,"outlined")],co=Wr.sizes[(0,T.default)(Jt.sizes,Re,"md")],Sa=Wr.error.select,fo=Wr.success.select,oi=Wr.colors.select[(0,T.default)(Jt.colors,Te,"gray")],J=Wr.error.label,n=Wr.success.label,o=Wr.colors.label[(0,T.default)(Jt.colors,Te,"gray")],i=Wr.states[tr],u=(0,f.default)((0,O.default)(er.container),(0,O.default)(co.container),Lt==null?void 0:Lt.className),c=(0,b.twMerge)((0,f.default)((0,O.default)(er.select),(0,O.default)(Wr.base.select),(0,O.default)(i.select),(0,O.default)(co.select),p({},(0,O.default)(oi[tr]),!Le&&!Oe),p({},(0,O.default)(Sa.initial),Le),p({},(0,O.default)(Sa.states[tr]),Le),p({},(0,O.default)(fo.initial),Oe),p({},(0,O.default)(fo.states[tr]),Oe)),bt),d,h=(0,b.twMerge)((0,f.default)((0,O.default)(er.label),(0,O.default)(Wr.base.label),(0,O.default)(i.label),(0,O.default)(co.label.initial),(0,O.default)(co.label.states[tr]),p({},(0,O.default)(o[tr]),!Le&&!Oe),p({},(0,O.default)(J.initial),Le),p({},(0,O.default)(J.states[tr]),Le),p({},(0,O.default)(n.initial),Oe),p({},(0,O.default)(n.states[tr]),Oe)),(d=He.className)!==null&&d!==void 0?d:""),x=(0,f.default)((0,O.default)(er.arrow.initial),p({},(0,O.default)(er.arrow.active),Ar)),k,E=(0,b.twMerge)((0,f.default)((0,O.default)(er.menu)),(k=Ze.className)!==null&&k!==void 0?k:""),N=(0,f.default)("absolute top-2/4 -translate-y-2/4",ye==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),L={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,S.default)(L,Qe),G=l.AnimatePresence;r.default.useEffect(function(){Ve&&!ke&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[Ve,ke]);var q=r.default.createElement(s.FloatingFocusManager,{context:Vr,modal:!1},r.default.createElement(l.m.ul,v({},wa(U(H({},Ze),{ref:$n.setFloating,role:"listbox",className:E,style:{position:xa,top:Un??0,left:Mo??0,overflow:"auto"},onPointerEnter:function(re){var ie=Ze==null?void 0:Ze.onPointerEnter;typeof ie=="function"&&(ie(re),Gn(!1)),Gn(!1)},onPointerMove:function(re){var ie=Ze==null?void 0:Ze.onPointerMove;typeof ie=="function"&&(ie(re),Gn(!1)),Gn(!1)},onKeyDown:function(re){var ie=Ze==null?void 0:Ze.onKeyDown;typeof ie=="function"&&(ie(re),Gn(!0)),Gn(!0)}})),{initial:"unmount",exit:"unmount",animate:Ar?"mount":"unmount",variants:W}),r.default.Children.map(Pt,function(Q,re){var ie;return r.default.isValidElement(Q)&&r.default.cloneElement(Q,U(H({},Q.props),{index:((ie=Q.props)===null||ie===void 0?void 0:ie.index)||re+1,id:"material-tailwind-select-".concat(re)}))})));return r.default.createElement(F.SelectContextProvider,{value:vs},r.default.createElement("div",v({},Lt,{ref:ge,className:u}),r.default.createElement("button",v({type:"button"},bs(U(H({},Zt),{ref:$n.setReference,className:c,disabled:wt,name:It}))),typeof Me=="function"?r.default.createElement("span",{className:N},Me(Pt[br-1],br-1)):Ve&&!ke?r.default.createElement("span",{className:N},Ve):r.default.createElement("span",v({},(Qt=Pt[br-1])===null||Qt===void 0?void 0:Qt.props,{className:N})),r.default.createElement("div",{className:x},Xe??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{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"})))),r.default.createElement("label",v({},He,{className:h}),De),r.default.createElement(l.LazyMotion,{features:l.domAnimation},r.default.createElement(G,null,Ar&&r.default.createElement(r.default.Fragment,null,qe?r.default.createElement(s.FloatingOverlay,{lockScroll:!0},q):q)))))});Se.propTypes={variant:a.default.oneOf(z.propTypesVariant),color:a.default.oneOf(z.propTypesColor),size:a.default.oneOf(z.propTypesSize),label:z.propTypesLabel,error:z.propTypesError,success:z.propTypesSuccess,arrow:z.propTypesArrow,value:z.propTypesValue,onChange:z.propTypesOnChange,selected:z.propTypesSelected,offset:z.propTypesOffset,dismiss:z.propTypesDismiss,animate:z.propTypesAnimate,lockScroll:z.propTypesLockScroll,labelProps:z.propTypesLabelProps,menuProps:z.propTypesMenuProps,className:z.propTypesClassName,disabled:z.propTypesDisabled,name:z.propTypesName,children:z.propTypesChildren,containerProps:z.propTypesContainerProps},Se.displayName="MaterialTailwind.Select";var he=Object.assign(Se,{Option:D.SelectOption})})(OP);var EP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Switch:function(){return P},default:function(){return y}});var r=z(ee),a=z(ot),s=z(ss),l=z(ct),f=it,b=z(Ht),S=z(nt),T=rt,O=Qa;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.color,m=p.label,_=p.ripple,M=p.className,X=p.disabled,H=p.containerProps,B=p.circleProps,U=p.labelProps,K=p.inputRef,ne=D(p,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),oe=(0,T.useTheme)(),fe=oe.switch,ve=fe.defaultProps,Se=fe.valid,he=fe.styles,ue=he.base,ge=he.colors,ye=r.default.useId();g=g??ve.color,_=_??ve.ripple,M=M??ve.className,X=X??ve.disabled,H=H??ve.containerProps,U=U??ve.labelProps,B=B??ve.circleProps;var Te=_!==void 0&&new s.default,Re=(0,l.default)((0,S.default)(ue.root),j({},(0,S.default)(ue.disabled),X)),De=(0,f.twMerge)((0,l.default)((0,S.default)(ue.container)),H==null?void 0:H.className),Le=(0,f.twMerge)((0,l.default)((0,S.default)(ue.input),(0,S.default)(ge[(0,b.default)(Se.colors,g,"gray")])),M),Oe=(0,f.twMerge)((0,l.default)((0,S.default)(ue.circle),ge[(0,b.default)(Se.colors,g,"gray")].circle,ge[(0,b.default)(Se.colors,g,"gray")].before),B==null?void 0:B.className),Xe=(0,l.default)((0,S.default)(ue.ripple)),Ve=(0,f.twMerge)((0,l.default)((0,S.default)(ue.label)),U==null?void 0:U.className);return r.default.createElement("div",{ref:v,className:Re},r.default.createElement("div",F({},H,{className:De}),r.default.createElement("input",F({},ne,{ref:K,type:"checkbox",disabled:X,id:ne.id||ye,className:Le})),r.default.createElement("label",F({},B,{htmlFor:ne.id||ye,className:Oe}),_&&r.default.createElement("div",{className:Xe,onMouseDown:function(ke){var Me=H==null?void 0:H.onMouseDown;return _&&Te.create(ke,"dark"),typeof Me=="function"&&Me(ke)}}))),m&&r.default.createElement("label",F({},U,{htmlFor:ne.id||ye,className:Ve}),m))});P.propTypes={color:a.default.oneOf(O.propTypesColor),label:O.propTypesLabel,ripple:O.propTypesRipple,className:O.propTypesClassName,disabled:O.propTypesDisabled,containerProps:O.propTypesObject,labelProps:O.propTypesObject,circleProps:O.propTypesObject},P.displayName="MaterialTailwind.Switch";var y=P})(EP);var MP={},ps={},ti={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{propTypesId:function(){return l},propTypesValue:function(){return f},propTypesAnimate:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return T},propTypesOrientation:function(){return O},propTypesIndicator:function(){return j},propTypesChildren:function(){return F}});var r=s(ot),a=Vt;function s(z){return z&&z.__esModule?z:{default:z}}var l=r.default.string,f=r.default.oneOfType([r.default.string,r.default.number]).isRequired,b=a.propTypesAnimation,S=r.default.bool,T=r.default.string,O=r.default.oneOf(["horizontal","vertical"]),j=r.default.instanceOf(Object),F=r.default.node.isRequired})(ti);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(H,B){for(var U in B)Object.defineProperty(H,U,{enumerable:!0,get:B[U]})}t(e,{TabsContext:function(){return P},useTabs:function(){return y},TabsContextProvider:function(){return p},setId:function(){return v},setActive:function(){return g},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return M},setOrientation:function(){return X}});var r=b(ee),a=ti;function s(H,B){(B==null||B>H.length)&&(B=H.length);for(var U=0,K=new Array(B);U<B;U++)K[U]=H[U];return K}function l(H){if(Array.isArray(H))return H}function f(H,B,U){return B in H?Object.defineProperty(H,B,{value:U,enumerable:!0,configurable:!0,writable:!0}):H[B]=U,H}function b(H){return H&&H.__esModule?H:{default:H}}function S(H,B){var U=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(U!=null){var K=[],ne=!0,oe=!1,fe,ve;try{for(U=U.call(H);!(ne=(fe=U.next()).done)&&(K.push(fe.value),!(B&&K.length===B));ne=!0);}catch(Se){oe=!0,ve=Se}finally{try{!ne&&U.return!=null&&U.return()}finally{if(oe)throw ve}}return K}}function T(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(H){for(var B=1;B<arguments.length;B++){var U=arguments[B]!=null?arguments[B]:{},K=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(K=K.concat(Object.getOwnPropertySymbols(U).filter(function(ne){return Object.getOwnPropertyDescriptor(U,ne).enumerable}))),K.forEach(function(ne){f(H,ne,U[ne])})}return H}function j(H,B){var U=Object.keys(H);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);B&&(K=K.filter(function(ne){return Object.getOwnPropertyDescriptor(H,ne).enumerable})),U.push.apply(U,K)}return U}function F(H,B){return B=B??{},Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(B)):j(Object(B)).forEach(function(U){Object.defineProperty(H,U,Object.getOwnPropertyDescriptor(B,U))}),H}function z(H,B){return l(H)||S(H,B)||D(H,B)||T()}function D(H,B){if(H){if(typeof H=="string")return s(H,B);var U=Object.prototype.toString.call(H).slice(8,-1);if(U==="Object"&&H.constructor&&(U=H.constructor.name),U==="Map"||U==="Set")return Array.from(U);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return s(H,B)}}function R(H,B){switch(B.type){case"SET_ID":return F(O({},H),{id:B.value});case"SET_ACTIVE":return F(O({},H),{active:B.value});case"SET_ANIMATION":return F(O({},H),{appliedAnimation:B.value});case"SET_INDICATOR":return F(O({},H),{indicatorProps:B.value});case"SET_IS_INITIAL":return F(O({},H),{isInitial:B.value});case"SET_ORIENTATION":return F(O({},H),{orientation:B.value});default:throw new Error("Unhandled action type: ".concat(B.type))}}var P=r.default.createContext(null);P.displayName="MaterialTailwind.TabsContext";function y(){var H=r.default.useContext(P);if(!H)throw new Error("useTabs() must be used within a Tabs. It happens when you use TabsHeader, TabsBody, Tab or TabPanel outside the Tabs component.");return H}var p=function(H){var B=H.id,U=H.value,K=H.orientation,ne=H.children,oe=r.default.useMemo(function(){return{id:B??"indicator",active:U,orientation:K,isInitial:!0,appliedAnimation:{initial:{},unmount:{},mount:{}},indicatorProps:void 0}},[B,U,K]),fe=z(r.default.useReducer(R,oe),2),ve=fe[0],Se=fe[1],he=r.default.useMemo(function(){return{state:ve,dispatch:Se}},[ve]);return r.default.createElement(P.Provider,{value:he},ne)},v=function(H,B){return H({type:"SET_ID",value:B})},g=function(H,B){return H({type:"SET_ACTIVE",value:B})},m=function(H,B){return H({type:"SET_ANIMATION",value:B})},_=function(H,B){return H({type:"SET_INDICATOR",value:B})},M=function(H,B){return H({type:"SET_IS_INITIAL",value:B})},X=function(H,B){return H({type:"SET_ORIENTATION",value:B})};p.propTypes={id:a.propTypesId,value:a.propTypesValue,orientation:a.propTypesOrientation,children:a.propTypesChildren},p.displayName="MaterialTailwind.TabsContextProvider"})(ps);var RP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Tab:function(){return R},default:function(){return P}});var r=F(ee),a=gr,s=F(ct),l=it,f=F(nt),b=rt,S=ps,T=ti;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.value,g=y.className,m=y.activeClassName,_=y.disabled,M=y.children,X=z(y,["value","className","activeClassName","disabled","children"]),H=(0,b.useTheme)(),B=H.tab,U=B.defaultProps,K=B.styles.base,ne=(0,S.useTabs)(),oe=ne.state,fe=ne.dispatch,ve=oe.id,Se=oe.active,he=oe.indicatorProps;g=g??U.className,m=m??U.activeClassName,_=_??U.disabled;var ue,ge=(0,l.twMerge)((0,s.default)((0,f.default)(K.tab.initial),(ue={},O(ue,(0,f.default)(K.tab.disabled),_),O(ue,m,Se===v),ue)),g),ye,Te=(0,l.twMerge)((0,s.default)((0,f.default)(K.indicator)),(ye=he==null?void 0:he.className)!==null&&ye!==void 0?ye:"");return r.default.createElement("li",j({},X,{ref:p,role:"tab",className:ge,onClick:function(Re){var De=X==null?void 0:X.onClick;typeof De=="function"&&((0,S.setActive)(fe,v),(0,S.setIsInitial)(fe,!1),De(Re)),(0,S.setIsInitial)(fe,!1),(0,S.setActive)(fe,v)},"data-value":v}),r.default.createElement("div",{className:"z-20 text-inherit"},M),Se===v&&r.default.createElement(a.motion.div,j({},he,{transition:{duration:.5},className:Te,layoutId:ve})))});R.propTypes={value:T.propTypesValue,className:T.propTypesClassName,disabled:T.propTypesDisabled,children:T.propTypesChildren},R.displayName="MaterialTailwind.Tab";var P=R})(RP);var NP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{TabsBody:function(){return R},default:function(){return P}});var r=F(ee),a=gr,s=F(xr),l=F(ct),f=it,b=F(nt),S=rt,T=ps,O=ti;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.animate,g=y.className,m=y.children,_=z(y,["animate","className","children"]),M=(0,S.useTheme)().tabsBody,X=M.defaultProps,H=M.styles.base,B=(0,T.useTabs)().dispatch;g=g??X.className,v=v??X.animate;var U=(0,f.twMerge)((0,l.default)((0,b.default)(H)),g),K=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),ne=r.default.useMemo(function(){return(0,s.default)(K,v)},[v,K]);return(0,a.useIsomorphicLayoutEffect)(function(){(0,T.setAnimation)(B,ne)},[ne,B]),r.default.createElement("div",j({},_,{ref:p,className:U}),m)});R.propTypes={animate:O.propTypesAnimate,className:O.propTypesClassName,children:O.propTypesChildren},R.displayName="MaterialTailwind.TabsBody";var P=R})(NP);var IP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{TabsHeader:function(){return D},default:function(){return R}});var r=j(ee),a=j(ct),s=it,l=j(nt),f=rt,b=ps,S=ti;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.indicatorProps,v=P.className,g=P.children,m=F(P,["indicatorProps","className","children"]),_=(0,f.useTheme)().tabsHeader,M=_.defaultProps,X=_.styles,H=(0,b.useTabs)(),B=H.state,U=H.dispatch,K=B.orientation;r.default.useEffect(function(){(0,b.setIndicator)(U,p)},[U,p]),v=v??M.className;var ne=(0,s.twMerge)((0,a.default)((0,l.default)(X.base),T({},X[K]&&(0,l.default)(X[K]),K)),v);return r.default.createElement("nav",null,r.default.createElement("ul",O({},m,{ref:y,role:"tablist",className:ne}),g))});D.propTypes={indicatorProps:S.propTypesIndicator,className:S.propTypesClassName,children:S.propTypesChildren},D.displayName="MaterialTailwind.TabsHeader";var R=D})(IP);var LP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{TabPanel:function(){return D},default:function(){return R}});var r=j(ee),a=gr,s=j(ct),l=it,f=j(nt),b=rt,S=ps,T=ti;function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.value,v=P.className,g=P.children,m=F(P,["value","className","children"]),_=(0,b.useTheme)().tabPanel,M=_.defaultProps,X=_.styles.base,H=(0,S.useTabs)().state,B=H.active,U=H.appliedAnimation,K=H.isInitial;v=v??M.className;var ne=(0,l.twMerge)((0,s.default)((0,f.default)(X)),v),oe=a.AnimatePresence;return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(oe,{exitBeforeEnter:!0},r.default.createElement(a.m.div,O({},m,{ref:y,role:"tabpanel",className:ne,initial:"unmount",exit:"unmount",animate:B===p?"mount":K?"initial":"unmount",variants:U,"data-value":p}),g)))});D.propTypes={value:T.propTypesValue,className:T.propTypesClassName,children:T.propTypesChildren},D.displayName="MaterialTailwind.TabPanel";var R=D})(LP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return p},Tab:function(){return S.Tab},TabsBody:function(){return T.TabsBody},TabsHeader:function(){return O.TabsHeader},TabPanel:function(){return j.TabPanel},useTabs:function(){return b.useTabs},default:function(){return v}});var r=R(ee),a=R(ct),s=it,l=R(nt),f=rt,b=ps,S=RP,T=NP,O=IP,j=LP,F=ti;function z(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function D(){return D=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},D.apply(this,arguments)}function R(g){return g&&g.__esModule?g:{default:g}}function P(g,m){if(g==null)return{};var _=y(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function y(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}var p=r.default.forwardRef(function(g,m){var _=g.value,M=g.className,X=g.orientation,H=g.children,B=P(g,["value","className","orientation","children"]),U=(0,f.useTheme)().tabs,K=U.defaultProps,ne=U.styles,oe=r.default.useId();M=M??K.className,X=X??K.orientation;var fe=(0,s.twMerge)((0,a.default)((0,l.default)(ne.base),z({},ne[X]&&(0,l.default)(ne[X]),X)),M);return r.default.createElement(b.TabsContextProvider,{id:oe,value:_,orientation:X},r.default.createElement("div",D({},B,{ref:m,className:fe}),H))});p.propTypes={id:F.propTypesId,value:F.propTypesValue,className:F.propTypesClassName,orientation:F.propTypesOrientation,children:F.propTypesChildren},p.displayName="MaterialTailwind.Tabs";var v=Object.assign(p,{Tab:S.Tab,Body:T.TabsBody,Header:O.TabsHeader,Panel:j.TabPanel})})(MP);var jP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{Textarea:function(){return D},default:function(){return R}});var r=j(ee),a=j(ot),s=j(ct),l=j(Ht),f=j(nt),b=rt,S=Vl;function T(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.variant,v=P.color,g=P.size,m=P.label,_=P.error,M=P.success,X=P.resize,H=P.labelProps,B=P.containerProps,U=P.shrink,K=P.className,ne=F(P,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),oe=(0,b.useTheme)().textarea,fe=oe.defaultProps,ve=oe.valid,Se=oe.styles,he=Se.base,ue=Se.variants;p=p??fe.variant,g=g??fe.size,v=v??fe.color,m=m??fe.label,H=H??fe.labelProps,B=B??fe.containerProps,U=U??fe.shrink,K=K??fe.className;var ge=ue[(0,l.default)(ve.variants,p,"outlined")],ye=(0,f.default)(ge.error.textarea),Te=(0,f.default)(ge.success.textarea),Re=(0,f.default)(ge.shrink.textarea),De=(0,f.default)(ge.colors.textarea[(0,l.default)(ve.colors,v,"gray")]),Le=(0,f.default)(ge.error.label),Oe=(0,f.default)(ge.success.label),Xe=(0,f.default)(ge.shrink.label),Ve=(0,f.default)(ge.colors.label[(0,l.default)(ve.colors,v,"gray")]),ke=(0,s.default)((0,f.default)(he.container),B==null?void 0:B.className),Me=(0,s.default)((0,f.default)(he.textarea),(0,f.default)(ge.base.textarea),(0,f.default)(ge.sizes[(0,l.default)(ve.sizes,g,"md")].textarea),T({},De,!_&&!M),T({},ye,_),T({},Te,M),T({},Re,U),X?"":"!resize-none",K),Ne=(0,s.default)((0,f.default)(he.label),(0,f.default)(ge.base.label),(0,f.default)(ge.sizes[(0,l.default)(ve.sizes,g,"md")].label),T({},Ve,!_&&!M),T({},Le,_),T({},Oe,M),T({},Xe,U),H==null?void 0:H.className);return r.default.createElement("div",{ref:y,className:ke},r.default.createElement("textarea",O({},ne,{className:Me,placeholder:(ne==null?void 0:ne.placeholder)||" "})),r.default.createElement("label",{className:Ne},m))});D.propTypes={variant:a.default.oneOf(S.propTypesVariant),size:a.default.oneOf(S.propTypesSize),color:a.default.oneOf(S.propTypesColor),label:S.propTypesLabel,error:S.propTypesError,success:S.propTypesSuccess,resize:S.propTypesResize,labelProps:S.propTypesLabelProps,containerProps:S.propTypesContainerProps,shrink:S.propTypesShrink,className:S.propTypesClassName},D.displayName="MaterialTailwind.Textarea";var R=D})(jP);var DP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(K,ne){for(var oe in ne)Object.defineProperty(K,oe,{enumerable:!0,get:ne[oe]})}t(e,{Tooltip:function(){return B},default:function(){return U}});var r=P(ee),a=P(ot),s=ur,l=gr,f=P(ct),b=it,S=P(xr),T=P(nt),O=rt,j=fs;function F(K,ne){(ne==null||ne>K.length)&&(ne=K.length);for(var oe=0,fe=new Array(ne);oe<ne;oe++)fe[oe]=K[oe];return fe}function z(K){if(Array.isArray(K))return K}function D(K,ne,oe){return ne in K?Object.defineProperty(K,ne,{value:oe,enumerable:!0,configurable:!0,writable:!0}):K[ne]=oe,K}function R(){return R=Object.assign||function(K){for(var ne=1;ne<arguments.length;ne++){var oe=arguments[ne];for(var fe in oe)Object.prototype.hasOwnProperty.call(oe,fe)&&(K[fe]=oe[fe])}return K},R.apply(this,arguments)}function P(K){return K&&K.__esModule?K:{default:K}}function y(K,ne){var oe=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(oe!=null){var fe=[],ve=!0,Se=!1,he,ue;try{for(oe=oe.call(K);!(ve=(he=oe.next()).done)&&(fe.push(he.value),!(ne&&fe.length===ne));ve=!0);}catch(ge){Se=!0,ue=ge}finally{try{!ve&&oe.return!=null&&oe.return()}finally{if(Se)throw ue}}return fe}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(K){for(var ne=1;ne<arguments.length;ne++){var oe=arguments[ne]!=null?arguments[ne]:{},fe=Object.keys(oe);typeof Object.getOwnPropertySymbols=="function"&&(fe=fe.concat(Object.getOwnPropertySymbols(oe).filter(function(ve){return Object.getOwnPropertyDescriptor(oe,ve).enumerable}))),fe.forEach(function(ve){D(K,ve,oe[ve])})}return K}function g(K,ne){var oe=Object.keys(K);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(K);ne&&(fe=fe.filter(function(ve){return Object.getOwnPropertyDescriptor(K,ve).enumerable})),oe.push.apply(oe,fe)}return oe}function m(K,ne){return ne=ne??{},Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(ne)):g(Object(ne)).forEach(function(oe){Object.defineProperty(K,oe,Object.getOwnPropertyDescriptor(ne,oe))}),K}function _(K,ne){if(K==null)return{};var oe=M(K,ne),fe,ve;if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols(K);for(ve=0;ve<Se.length;ve++)fe=Se[ve],!(ne.indexOf(fe)>=0)&&Object.prototype.propertyIsEnumerable.call(K,fe)&&(oe[fe]=K[fe])}return oe}function M(K,ne){if(K==null)return{};var oe={},fe=Object.keys(K),ve,Se;for(Se=0;Se<fe.length;Se++)ve=fe[Se],!(ne.indexOf(ve)>=0)&&(oe[ve]=K[ve]);return oe}function X(K,ne){return z(K)||y(K,ne)||H(K,ne)||p()}function H(K,ne){if(K){if(typeof K=="string")return F(K,ne);var oe=Object.prototype.toString.call(K).slice(8,-1);if(oe==="Object"&&K.constructor&&(oe=K.constructor.name),oe==="Map"||oe==="Set")return Array.from(oe);if(oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe))return F(K,ne)}}var B=r.default.forwardRef(function(K,ne){var oe=K.open,fe=K.handler,ve=K.content,Se=K.interactive,he=K.placement,ue=K.offset,ge=K.dismiss,ye=K.animate,Te=K.className,Re=K.children,De=_(K,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),Le=(0,O.useTheme)().tooltip,Oe=Le.defaultProps,Xe=Le.styles.base,Ve=X(r.default.useState(!1),2),ke=Ve[0],Me=Ve[1];oe=oe??ke,fe=fe??Me,Se=Se??Oe.interactive,he=he??Oe.placement,ue=ue??Oe.offset,ge=ge??Oe.dismiss,ye=ye??Oe.animate,Te=Te??Oe.className;var Ne=(0,b.twMerge)((0,f.default)((0,T.default)(Xe)),Te),Ge={unmount:{opacity:0},mount:{opacity:1}},Qe=(0,S.default)(Ge,ye),qe=(0,s.useFloating)({open:oe,onOpenChange:fe,middleware:[(0,s.offset)(ue),(0,s.flip)(),(0,s.shift)()],placement:he}),He=qe.x,Ze=qe.y,bt=qe.reference,wt=qe.floating,It=qe.strategy,Pt=qe.refs,Lt=qe.update,Zt=qe.context,Qt=(0,s.useInteractions)([(0,s.useClick)(Zt,{enabled:Se}),(0,s.useFocus)(Zt),(0,s.useHover)(Zt),(0,s.useRole)(Zt,{role:"tooltip"}),(0,s.useDismiss)(Zt,ge)]),kt=Qt.getReferenceProps,yt=Qt.getFloatingProps;r.default.useEffect(function(){if(Pt.reference.current&&Pt.floating.current&&oe)return(0,s.autoUpdate)(Pt.reference.current,Pt.floating.current,Lt)},[oe,Lt,Pt.reference,Pt.floating]);var Jt=(0,s.useMergeRefs)([ne,wt]),wr=(0,s.useMergeRefs)([ne,bt]),er=l.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof Re=="string"?r.default.createElement("span",R({},kt({ref:wr})),Re):r.default.cloneElement(Re,v({},kt(m(v({},Re==null?void 0:Re.props),{ref:wr})))),r.default.createElement(l.LazyMotion,{features:l.domAnimation},r.default.createElement(s.FloatingPortal,null,r.default.createElement(er,null,oe&&r.default.createElement(l.m.div,R({},yt(m(v({},De),{ref:Jt,className:Ne,style:{position:It,top:Ze??"",left:He??""}})),{initial:"unmount",exit:"unmount",animate:oe?"mount":"unmount",variants:Qe}),ve)))))});B.propTypes={open:j.propTypesOpen,handler:j.propTypesHandler,content:j.propTypesContent,interactive:j.propTypesInteractive,placement:a.default.oneOf(j.propTypesPlacement),offset:j.propTypesOffset,dismiss:j.propTypesDismiss,animate:j.propTypesAnimate,className:j.propTypesClassName,children:j.propTypesChildren},B.displayName="MaterialTailwind.Tooltip";var U=B})(DP);var zP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,g){for(var m in g)Object.defineProperty(v,m,{enumerable:!0,get:g[m]})}t(e,{Typography:function(){return y},default:function(){return p}});var r=j(ee),a=j(ot),s=j(ct),l=it,f=j(Ht),b=j(nt),S=rt,T=x0;function O(v,g,m){return g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function j(v){return v&&v.__esModule?v:{default:v}}function F(v){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{},_=Object.keys(m);typeof Object.getOwnPropertySymbols=="function"&&(_=_.concat(Object.getOwnPropertySymbols(m).filter(function(M){return Object.getOwnPropertyDescriptor(m,M).enumerable}))),_.forEach(function(M){O(v,M,m[M])})}return v}function z(v,g){var m=Object.keys(v);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(v);g&&(_=_.filter(function(M){return Object.getOwnPropertyDescriptor(v,M).enumerable})),m.push.apply(m,_)}return m}function D(v,g){return g=g??{},Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)):z(Object(g)).forEach(function(m){Object.defineProperty(v,m,Object.getOwnPropertyDescriptor(g,m))}),v}function R(v,g){if(v==null)return{};var m=P(v,g),_,M;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(v);for(M=0;M<X.length;M++)_=X[M],!(g.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(v,_)&&(m[_]=v[_])}return m}function P(v,g){if(v==null)return{};var m={},_=Object.keys(v),M,X;for(X=0;X<_.length;X++)M=_[X],!(g.indexOf(M)>=0)&&(m[M]=v[M]);return m}var y=r.default.forwardRef(function(v,g){var m=v.variant,_=v.color,M=v.textGradient,X=v.as,H=v.className,B=v.children,U=R(v,["variant","color","textGradient","as","className","children"]),K=(0,S.useTheme)().typography,ne=K.defaultProps,oe=K.valid,fe=K.styles,ve=fe.variants,Se=fe.colors,he=fe.textGradient;m=m??ne.variant,_=_??ne.color,M=M||ne.textGradient,X=X??void 0,H=H??ne.className;var ue=(0,b.default)(ve[(0,f.default)(oe.variants,m,"paragraph")]),ge=Se[(0,f.default)(oe.colors,_,"inherit")],ye=(0,b.default)(he),Te=(0,l.twMerge)((0,s.default)(ue,O({},ge.color,!M),O({},ye,M),O({},ge.gradient,M)),H),Re;switch(m){case"h1":Re=r.default.createElement(X||"h1",D(F({},U),{ref:g,className:Te}),B);break;case"h2":Re=r.default.createElement(X||"h2",D(F({},U),{ref:g,className:Te}),B);break;case"h3":Re=r.default.createElement(X||"h3",D(F({},U),{ref:g,className:Te}),B);break;case"h4":Re=r.default.createElement(X||"h4",D(F({},U),{ref:g,className:Te}),B);break;case"h5":Re=r.default.createElement(X||"h5",D(F({},U),{ref:g,className:Te}),B);break;case"h6":Re=r.default.createElement(X||"h6",D(F({},U),{ref:g,className:Te}),B);break;case"lead":Re=r.default.createElement(X||"p",D(F({},U),{ref:g,className:Te}),B);break;case"paragraph":Re=r.default.createElement(X||"p",D(F({},U),{ref:g,className:Te}),B);break;case"small":Re=r.default.createElement(X||"p",D(F({},U),{ref:g,className:Te}),B);break;default:Re=r.default.createElement(X||"p",D(F({},U),{ref:g,className:Te}),B);break}return Re});y.propTypes={variant:a.default.oneOf(T.propTypesVariant),color:a.default.oneOf(T.propTypesColor),as:T.propTypesAs,textGradient:T.propTypesTextGradient,className:T.propTypesClassName,children:T.propTypesChildren},y.displayName="MaterialTailwind.Typography";var p=y})(zP);var FP={},VP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{propTypesClassName:function(){return l},propTypesChildren:function(){return f},propTypesOpen:function(){return b},propTypesAnimate:function(){return S}});var r=s(ot),a=Vt;function s(T){return T&&T.__esModule?T:{default:T}}var l=r.default.string,f=r.default.node.isRequired,b=r.default.bool.isRequired,S=a.propTypesAnimation})(VP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{Collapse:function(){return R},default:function(){return P}});var r=F(ee),a=gr,s=ur,l=F(xr),f=F(ct),b=it,S=F(nt),T=rt,O=VP;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.open,g=y.animate,m=y.className,_=y.children,M=z(y,["open","animate","className","children"]),X=r.default.useRef(null),H=(0,T.useTheme)().collapse,B=H.styles,U=B.base;g=g??{},m=m??"";var K=(0,b.twMerge)((0,f.default)((0,S.default)(U)),m),ne={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},oe=(0,l.default)(ne,g),fe=a.AnimatePresence,ve=(0,s.useMergeRefs)([p,X]);return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(fe,null,r.default.createElement(a.m.div,j({},M,{ref:ve,className:K,initial:"unmount",exit:"unmount",animate:v?"mount":"unmount",variants:oe}),_)))});R.displayName="MaterialTailwind.Collapse",R.propTypes={open:O.propTypesOpen,animate:O.propTypesAnimate,className:O.propTypesClassName,children:O.propTypesChildren};var P=R})(FP);var WP={},Zl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{propTypesClassName:function(){return s},propTypesDisabled:function(){return l},propTypesSelected:function(){return f},propTypesRipple:function(){return b},propTypesChildren:function(){return S}});var r=a(ot);function a(T){return T&&T.__esModule?T:{default:T}}var s=r.default.string,l=r.default.bool,f=r.default.bool,b=r.default.bool,S=r.default.node.isRequired})(Zl);var BP={},ib={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{ListItemPrefix:function(){return F},default:function(){return z}});var r=T(ee),a=rt,s=T(ct),l=it,f=T(nt),b=Zl;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,a.useTheme)().list,g=v.styles.base,m=(0,l.twMerge)((0,s.default)((0,f.default)(g.itemPrefix)),P);return r.default.createElement("div",S({},p,{ref:R,className:m}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.ListItemPrefix";var z=F})(ib);var sb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{ListItemSuffix:function(){return F},default:function(){return z}});var r=T(ee),a=rt,s=T(ct),l=it,f=T(nt),b=Zl;function S(){return S=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var P=arguments[R];for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&(D[y]=P[y])}return D},S.apply(this,arguments)}function T(D){return D&&D.__esModule?D:{default:D}}function O(D,R){if(D==null)return{};var P=j(D,R),y,p;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(D);for(p=0;p<v.length;p++)y=v[p],!(R.indexOf(y)>=0)&&Object.prototype.propertyIsEnumerable.call(D,y)&&(P[y]=D[y])}return P}function j(D,R){if(D==null)return{};var P={},y=Object.keys(D),p,v;for(v=0;v<y.length;v++)p=y[v],!(R.indexOf(p)>=0)&&(P[p]=D[p]);return P}var F=r.default.forwardRef(function(D,R){var P=D.className,y=D.children,p=O(D,["className","children"]),v=(0,a.useTheme)().list,g=v.styles.base,m=(0,l.twMerge)((0,s.default)((0,f.default)(g.itemSuffix)),P);return r.default.createElement("div",S({},p,{ref:R,className:m}),y)});F.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},F.displayName="MaterialTailwind.ListItemSuffix";var z=F})(sb);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{ListItem:function(){return P},ListItemPrefix:function(){return T.ListItemPrefix},ListItemSuffix:function(){return O.ListItemSuffix},default:function(){return y}});var r=z(ee),a=rt,s=z(ss),l=z(ct),f=it,b=z(nt),S=Zl,T=ib,O=sb;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.className,m=p.disabled,_=p.selected,M=p.ripple,X=p.children,H=D(p,["className","disabled","selected","ripple","children"]),B=(0,a.useTheme)().list,U=B.defaultProps,K=B.styles.base;M=M??U.ripple;var ne=M!==void 0&&new s.default,oe,fe=(0,f.twMerge)((0,l.default)((0,b.default)(K.item.initial),(oe={},j(oe,(0,b.default)(K.item.disabled),m),j(oe,(0,b.default)(K.item.selected),_&&!m),oe)),g);return r.default.createElement("div",F({},H,{ref:v,role:"button",tabIndex:0,className:fe,onMouseDown:function(ve){var Se=H==null?void 0:H.onMouseDown;return M&&ne.create(ve,"dark"),typeof Se=="function"&&Se(ve)}}),X)});P.propTypes={className:S.propTypesClassName,selected:S.propTypesSelected,disabled:S.propTypesDisabled,ripple:S.propTypesRipple,children:S.propTypesChildren},P.displayName="MaterialTailwind.ListItem";var y=Object.assign(P,{Prefix:T.ListItemPrefix,Suffix:O.ListItemSuffix})})(BP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{List:function(){return R},ListItem:function(){return S.ListItem},ListItemPrefix:function(){return T.ListItemPrefix},ListItemSuffix:function(){return O.ListItemSuffix},default:function(){return P}});var r=F(ee),a=rt,s=F(ct),l=it,f=F(nt),b=Zl,S=BP,T=ib,O=sb;function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.className,g=y.children,m=z(y,["className","children"]),_=(0,a.useTheme)().list,M=_.defaultProps,X=_.styles.base;v=v??M.className;var H=(0,l.twMerge)((0,s.default)((0,f.default)(X.list)),v);return r.default.createElement("nav",j({},m,{ref:p,className:H}),g)});R.propTypes={className:b.propTypesClassName,children:b.propTypesChildren},R.displayName="MaterialTailwind.List";var P=Object.assign(R,{Item:S.ListItem,ItemPrefix:T.ListItemPrefix,ItemSuffix:O.ListItemSuffix})})(WP);var HP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,p){for(var v in p)Object.defineProperty(y,v,{enumerable:!0,get:p[v]})}t(e,{ButtonGroup:function(){return R},default:function(){return P}});var r=F(ee),a=F(ot),s=F(ct),l=it,f=F(Ht),b=F(nt),S=rt,T=Ka;function O(y,p,v){return p in y?Object.defineProperty(y,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[p]=v,y}function j(){return j=Object.assign||function(y){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(y[g]=v[g])}return y},j.apply(this,arguments)}function F(y){return y&&y.__esModule?y:{default:y}}function z(y,p){if(y==null)return{};var v=D(y,p),g,m;if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);for(m=0;m<_.length;m++)g=_[m],!(p.indexOf(g)>=0)&&Object.prototype.propertyIsEnumerable.call(y,g)&&(v[g]=y[g])}return v}function D(y,p){if(y==null)return{};var v={},g=Object.keys(y),m,_;for(_=0;_<g.length;_++)m=g[_],!(p.indexOf(m)>=0)&&(v[m]=y[m]);return v}var R=r.default.forwardRef(function(y,p){var v=y.variant,g=y.size,m=y.color,_=y.fullWidth,M=y.ripple,X=y.className,H=y.children,B=z(y,["variant","size","color","fullWidth","ripple","className","children"]),U=(0,S.useTheme)().buttonGroup,K=U.defaultProps,ne=U.styles,oe=U.valid,fe=ne.base,ve=ne.dividerColor;v=v??K.variant,g=g??K.size,m=m??K.color,M=M??K.ripple,_=_??K.fullWidth,X=X??K.className;var Se,he=(0,l.twMerge)((0,s.default)((0,b.default)(fe.initial),(Se={},O(Se,(0,b.default)(fe.fullWidth),_),O(Se,"divide-x",v!=="outlined"),O(Se,(0,b.default)(ve[(0,f.default)(oe.colors,m,"gray")]),v!=="outlined"),Se)),X);return r.default.createElement("div",j({},B,{ref:p,className:he}),r.default.Children.map(H,function(ue,ge){var ye;return r.default.isValidElement(ue)&&r.default.cloneElement(ue,{variant:v,size:g,color:m,ripple:M,fullWidth:_,className:(0,l.twMerge)((0,s.default)({"rounded-r-none":ge!==r.default.Children.count(H)-1,"border-r-0":ge!==r.default.Children.count(H)-1,"rounded-l-none":ge!==0}),(ye=ue.props)===null||ye===void 0?void 0:ye.className)})}))});R.propTypes={variant:a.default.oneOf(T.propTypesVariant),size:a.default.oneOf(T.propTypesSize),color:a.default.oneOf(T.propTypesColor),fullWidth:T.propTypesFullWidth,ripple:T.propTypesRipple,className:T.propTypesClassName,children:T.propTypesChildren},R.displayName="MaterialTailwind.ButtonGroup";var P=R})(HP);var XP={},YP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(D,R){for(var P in R)Object.defineProperty(D,P,{enumerable:!0,get:R[P]})}t(e,{propTypesClassName:function(){return s},propTypesPrevArrow:function(){return l},propTypesNextArrow:function(){return f},propTypesNavigation:function(){return b},propTypesAutoplay:function(){return S},propTypesAutoplayDelay:function(){return T},propTypesTransition:function(){return O},propTypesLoop:function(){return j},propTypesChildren:function(){return F},propTypesSlideRef:function(){return z}});var r=a(ot);function a(D){return D&&D.__esModule?D:{default:D}}var s=r.default.string,l=r.default.func,f=r.default.func,b=r.default.func,S=r.default.bool,T=r.default.number,O=r.default.object,j=r.default.bool,F=r.default.node.isRequired,z=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(YP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,M){for(var X in M)Object.defineProperty(_,X,{enumerable:!0,get:M[X]})}t(e,{Carousel:function(){return g},default:function(){return m}});var r=z(ee),a=gr,s=ur,l=z(ct),f=it,b=z(nt),S=rt,T=YP;function O(_,M){(M==null||M>_.length)&&(M=_.length);for(var X=0,H=new Array(M);X<M;X++)H[X]=_[X];return H}function j(_){if(Array.isArray(_))return _}function F(){return F=Object.assign||function(_){for(var M=1;M<arguments.length;M++){var X=arguments[M];for(var H in X)Object.prototype.hasOwnProperty.call(X,H)&&(_[H]=X[H])}return _},F.apply(this,arguments)}function z(_){return _&&_.__esModule?_:{default:_}}function D(_,M){var X=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(X!=null){var H=[],B=!0,U=!1,K,ne;try{for(X=X.call(_);!(B=(K=X.next()).done)&&(H.push(K.value),!(M&&H.length===M));B=!0);}catch(oe){U=!0,ne=oe}finally{try{!B&&X.return!=null&&X.return()}finally{if(U)throw ne}}return H}}function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(_,M){if(_==null)return{};var X=y(_,M),H,B;if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(_);for(B=0;B<U.length;B++)H=U[B],!(M.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(_,H)&&(X[H]=_[H])}return X}function y(_,M){if(_==null)return{};var X={},H=Object.keys(_),B,U;for(U=0;U<H.length;U++)B=H[U],!(M.indexOf(B)>=0)&&(X[B]=_[B]);return X}function p(_,M){return j(_)||D(_,M)||v(_,M)||R()}function v(_,M){if(_){if(typeof _=="string")return O(_,M);var X=Object.prototype.toString.call(_).slice(8,-1);if(X==="Object"&&_.constructor&&(X=_.constructor.name),X==="Map"||X==="Set")return Array.from(X);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return O(_,M)}}var g=r.default.forwardRef(function(_,M){var X=_.children,H=_.prevArrow,B=_.nextArrow,U=_.navigation,K=_.autoplay,ne=_.autoplayDelay,oe=_.transition,fe=_.loop,ve=_.className,Se=_.slideRef,he=P(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),ue=(0,S.useTheme)().carousel,ge=ue.defaultProps,ye=ue.styles.base,Te=(0,a.useMotionValue)(0),Re=r.default.useRef(null),De=p(r.default.useState(0),2),Le=De[0],Oe=De[1],Xe=r.default.Children.toArray(X);ve=ve??ge.className,H=H??ge.prevArrow,B=B??ge.nextArrow,U=U??ge.navigation,K=K??ge.autoplay,ne=ne??ge.autoplayDelay,oe=oe??ge.transition,fe=fe??ge.loop;var Ve=(0,f.twMerge)((0,l.default)((0,b.default)(ye.carousel)),ve),ke=(0,f.twMerge)((0,l.default)((0,b.default)(ye.slide))),Me=r.default.useCallback(function(){var qe;return-Le*(((qe=Re.current)===null||qe===void 0?void 0:qe.clientWidth)||0)},[Le]),Ne=r.default.useCallback(function(){var qe=fe?0:Le;Oe(Le+1===Xe.length?qe:Le+1)},[Le,fe,Xe.length]),Ge=function(){var qe=fe?Xe.length-1:0;Oe(Le-1<0?qe:Le-1)};r.default.useEffect(function(){var qe=(0,a.animate)(Te,Me(),oe);return qe.stop},[Me,Le,Te,oe]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,a.animate)(Te,Me(),oe)})},[Me,oe,Te]),r.default.useEffect(function(){if(K){var qe=setInterval(function(){return Ne()},ne);return function(){return clearInterval(qe)}}},[K,Ne,ne]);var Qe=(0,s.useMergeRefs)([Re,M]);return r.default.createElement("div",F({},he,{ref:Qe,className:Ve}),Xe.map(function(qe,He){return r.default.createElement(a.LazyMotion,{key:He,features:a.domAnimation},r.default.createElement(a.m.div,{ref:Se,className:ke,style:{x:Te,left:"".concat(He*100,"%"),right:"".concat(He*100,"%")}},qe))}),H&&H({loop:fe,handlePrev:Ge,activeIndex:Le,firstIndex:Le===0}),B&&B({loop:fe,handleNext:Ne,activeIndex:Le,lastIndex:Le===Xe.length-1}),U&&U({setActiveIndex:Oe,activeIndex:Le,length:Xe.length}))});g.propTypes={className:T.propTypesClassName,children:T.propTypesChildren,nextArrow:T.propTypesNextArrow,prevArrow:T.propTypesPrevArrow,navigation:T.propTypesNavigation,autoplay:T.propTypesAutoplay,autoplayDelay:T.propTypesAutoplayDelay,transition:T.propTypesTransition,loop:T.propTypesLoop,slideRef:T.propTypesSlideRef},g.displayName="MaterialTailwind.Carousel";var m=g})(XP);var GP={},UP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{propTypesOpen:function(){return l},propTypesSize:function(){return f},propTypesOverlay:function(){return b},propTypesChildren:function(){return S},propTypesPlacement:function(){return T},propTypesOverlayProps:function(){return O},propTypesClassName:function(){return j},propTypesOnClose:function(){return F},propTypesDismiss:function(){return z},propTypesTransition:function(){return D},propTypesOverlayRef:function(){return R}});var r=s(ot),a=Vt;function s(P){return P&&P.__esModule?P:{default:P}}var l=r.default.bool.isRequired,f=r.default.number,b=r.default.bool,S=r.default.node.isRequired,T=["top","right","bottom","left"],O=r.default.object,j=r.default.string,F=r.default.func,z=a.propTypesDismissType,D=r.default.object,R=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(UP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return p},default:function(){return v}});var r=D(ee),a=D(ot),s=gr,l=ur,f=D(xr),b=D(ct),S=it,T=D(nt),O=rt,j=UP;function F(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function z(){return z=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},z.apply(this,arguments)}function D(g){return g&&g.__esModule?g:{default:g}}function R(g){for(var m=1;m<arguments.length;m++){var _=arguments[m]!=null?arguments[m]:{},M=Object.keys(_);typeof Object.getOwnPropertySymbols=="function"&&(M=M.concat(Object.getOwnPropertySymbols(_).filter(function(X){return Object.getOwnPropertyDescriptor(_,X).enumerable}))),M.forEach(function(X){F(g,X,_[X])})}return g}function P(g,m){if(g==null)return{};var _=y(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function y(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}var p=r.default.forwardRef(function(g,m){var _=g.open,M=g.size,X=g.overlay,H=g.children,B=g.placement,U=g.overlayProps,K=g.className,ne=g.onClose,oe=g.dismiss,fe=g.transition,ve=g.overlayRef,Se=P(g,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),he=(0,O.useTheme)().drawer,ue=he.defaultProps,ge=he.styles.base,ye=(0,s.useAnimation)();M=M??ue.size,X=X??ue.overlay,B=B??ue.placement,K=K??ue.className,U=U??ue.overlayProps,ne=ne??ue.onClose;var Te;oe=(Te=(0,f.default)(ue.dismiss,oe||{}))!==null&&Te!==void 0?Te:ue.dismiss,fe=fe??ue.transition;var Re=(0,S.twMerge)((0,b.default)((0,T.default)(ge.drawer),{"top-0 right-0":B==="right","bottom-0 left-0":B==="bottom","top-0 left-0":B==="top"||B==="left"}),K),De=(0,S.twMerge)((0,b.default)((0,T.default)(ge.overlay)),U==null?void 0:U.className),Le=(0,l.useFloating)({open:_,onOpenChange:ne}).context,Oe=(0,l.useInteractions)([(0,l.useDismiss)(Le,oe)]).getFloatingProps;r.default.useEffect(function(){ye.start(_?"open":"close")},[_,ye,B]);var Xe={open:{x:0,y:0},close:{x:B==="left"?-M:B==="right"?M:0,y:B==="top"?-M:B==="bottom"?M:0}},Ve={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(s.LazyMotion,{features:s.domAnimation},r.default.createElement(s.AnimatePresence,null,X&&_&&r.default.createElement(s.m.div,{ref:ve,className:De,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:Ve,transition:{duration:.3}})),r.default.createElement(s.m.div,z({},Oe(R({ref:m},Se)),{className:Re,style:{maxWidth:B==="left"||B==="right"?M:"100%",maxHeight:B==="top"||B==="bottom"?M:"100%",height:B==="left"||B==="right"?"100vh":"100%"},initial:"close",animate:ye,variants:Xe,transition:fe}),H)))});p.propTypes={open:j.propTypesOpen,size:j.propTypesSize,overlay:j.propTypesOverlay,children:j.propTypesChildren,placement:a.default.oneOf(j.propTypesPlacement),overlayProps:j.propTypesOverlayProps,className:j.propTypesClassName,onClose:j.propTypesOnClose,dismiss:j.propTypesDismiss,transition:j.propTypesTransition,overlayRef:j.propTypesOverlayRef},p.displayName="MaterialTailwind.Drawer";var v=p})(GP);var $P={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Badge:function(){return P},default:function(){return y}});var r=z(ee),a=z(ot),s=z(xr),l=z(ct),f=it,b=z(Ht),S=z(nt),T=rt,O=w0;function j(p,v,g){return v in p?Object.defineProperty(p,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[v]=g,p}function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.color,m=p.invisible,_=p.withBorder,M=p.overlap,X=p.placement,H=p.className,B=p.content,U=p.children,K=p.containerProps,ne=p.containerRef,oe=D(p,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),fe=(0,T.useTheme)().badge,ve=fe.valid,Se=fe.defaultProps,he=fe.styles,ue=he.base,ge=he.placements,ye=he.colors;g=g??Se.color,m=m??Se.invisible,_=_??Se.withBorder,M=M??Se.overlap,X=X??Se.placement;var Te;H=(Te=(0,l.default)(H,Se.className))!==null&&Te!==void 0?Te:Se.className;var Re;K=(Re=(0,s.default)(K,Se.containerProps||{}))!==null&&Re!==void 0?Re:Se.containerProps;var De=(0,S.default)(ue.badge.initial),Le=(0,S.default)(ue.badge.withBorder),Oe=(0,S.default)(ue.badge.withContent),Xe=(0,S.default)(ye[(0,b.default)(ve.colors,g,"red")]),Ve=(0,S.default)(ge[(0,b.default)(ve.placements,X,"top-end")][(0,b.default)(ve.overlaps,M,"square")]),ke,Me=(0,f.twMerge)((0,l.default)(De,Ve,Xe,(ke={},j(ke,Le,_),j(ke,Oe,B),ke)),H),Ne=(0,f.twMerge)((0,l.default)((0,S.default)(ue.container),K==null?void 0:K.className));return r.default.createElement("div",F({ref:ne},K,{className:Ne}),U,!m&&r.default.createElement("span",F({},oe,{ref:v,className:Me}),B))});P.propTypes={color:a.default.oneOf(O.propTypesColor),invisible:O.propTypesInvisible,withBorder:O.propTypesWithBorder,overlap:a.default.oneOf(O.propTypesOverlap),className:O.propTypesClassName,content:O.propTypesContent,children:O.propTypesChildren,placement:a.default.oneOf(O.propTypesPlacement),containerProps:O.propTypesContainerProps,containerRef:O.propTypesContainerRef},P.displayName="MaterialTailwind.Badge";var y=P})($P);var qP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(B,U){for(var K in U)Object.defineProperty(B,K,{enumerable:!0,get:U[K]})}t(e,{Rating:function(){return X},default:function(){return H}});var r=D(ee),a=D(ot),s=D(ct),l=it,f=D(Ht),b=D(nt),S=rt,T=C0;function O(B,U){(U==null||U>B.length)&&(U=B.length);for(var K=0,ne=new Array(U);K<U;K++)ne[K]=B[K];return ne}function j(B){if(Array.isArray(B))return B}function F(B){if(Array.isArray(B))return O(B)}function z(){return z=Object.assign||function(B){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var ne in K)Object.prototype.hasOwnProperty.call(K,ne)&&(B[ne]=K[ne])}return B},z.apply(this,arguments)}function D(B){return B&&B.__esModule?B:{default:B}}function R(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)}function P(B,U){var K=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(K!=null){var ne=[],oe=!0,fe=!1,ve,Se;try{for(K=K.call(B);!(oe=(ve=K.next()).done)&&(ne.push(ve.value),!(U&&ne.length===U));oe=!0);}catch(he){fe=!0,Se=he}finally{try{!oe&&K.return!=null&&K.return()}finally{if(fe)throw Se}}return ne}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(B,U){if(B==null)return{};var K=g(B,U),ne,oe;if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(B);for(oe=0;oe<fe.length;oe++)ne=fe[oe],!(U.indexOf(ne)>=0)&&Object.prototype.propertyIsEnumerable.call(B,ne)&&(K[ne]=B[ne])}return K}function g(B,U){if(B==null)return{};var K={},ne=Object.keys(B),oe,fe;for(fe=0;fe<ne.length;fe++)oe=ne[fe],!(U.indexOf(oe)>=0)&&(K[oe]=B[oe]);return K}function m(B,U){return j(B)||P(B,U)||M(B,U)||y()}function _(B){return F(B)||R(B)||M(B)||p()}function M(B,U){if(B){if(typeof B=="string")return O(B,U);var K=Object.prototype.toString.call(B).slice(8,-1);if(K==="Object"&&B.constructor&&(K=B.constructor.name),K==="Map"||K==="Set")return Array.from(K);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return O(B,U)}}var X=r.default.forwardRef(function(B,U){var K=B.count,ne=B.value,oe=B.ratedIcon,fe=B.unratedIcon,ve=B.ratedColor,Se=B.unratedColor,he=B.className,ue=B.onChange,ge=B.readonly,ye=v(B,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),Te,Re,De=(0,S.useTheme)().rating,Le=De.valid,Oe=De.defaultProps,Xe=De.styles,Ve=Xe.base,ke=Xe.colors;K=K??Oe.count,ne=ne??Oe.value,oe=oe??Oe.ratedIcon,oe=oe??Oe.ratedIcon,fe=fe??Oe.unratedIcon,ve=ve??Oe.ratedColor,Se=Se??Oe.unratedColor,he=he??Oe.className,ue=ue??Oe.onChange,ge=ge??Oe.readonly;var Me=m(r.default.useState(function(){return _(Array(ne).fill("rated")).concat(_(Array(K-ne).fill("un_rated")))}),2),Ne=Me[0],Ge=Me[1],Qe=m(r.default.useState(function(){return _(Array(K).fill("un_rated"))}),2),qe=Qe[0],He=Qe[1],Ze=m(r.default.useState(!1),2),bt=Ze[0],wt=Ze[1],It=(0,b.default)(ke[(0,f.default)(Le.colors,ve,"yellow")]),Pt=(0,b.default)(ke[(0,f.default)(Le.colors,Se,"blue-gray")]),Lt=(0,l.twMerge)((0,s.default)((0,b.default)(Ve.rating),he)),Zt=(0,b.default)(Ve.icon),Qt=oe,kt=fe,yt=r.default.isValidElement(oe)&&r.default.cloneElement(Qt,{className:(0,l.twMerge)((0,s.default)(Zt,It,Qt==null||(Te=Qt.props)===null||Te===void 0?void 0:Te.className))}),Jt=r.default.isValidElement(oe)&&r.default.cloneElement(kt,{className:(0,l.twMerge)((0,s.default)(Zt,Pt,kt==null||(Re=kt.props)===null||Re===void 0?void 0:Re.className))}),wr=!r.default.isValidElement(oe)&&r.default.createElement(oe,{className:(0,l.twMerge)((0,s.default)(Zt,It))}),er=!r.default.isValidElement(oe)&&r.default.createElement(fe,{className:(0,l.twMerge)((0,s.default)(Zt,Pt))}),so=function(Eo){return Eo.map(function(tr,kn){return r.default.createElement("span",{key:kn,onClick:function(){if(!ge){var Dr=Ne.map(function(zr,Xt){return Xt<=kn?"rated":"un_rated"});Ge(Dr),ue&&typeof ue=="function"&&ue(Dr.filter(function(zr){return zr==="rated"}).length)}},onMouseEnter:function(){if(!ge){var Dr=qe.map(function(zr,Xt){return Xt<=kn?"rated":"un_rated"});wt(!0),He(Dr)}},onMouseLeave:function(){return!ge&&wt(!1)}},r.default.isValidElement(tr==="rated"?oe:fe)?tr==="rated"?yt:Jt:tr==="rated"?wr:er)})};return r.default.createElement("div",z({},ye,{ref:U,className:Lt}),so(bt?qe:Ne))});X.propTypes={count:T.propTypesCount,value:T.propTypesValue,ratedIcon:T.propTypesRatedIcon,unratedIcon:T.propTypesUnratedIcon,ratedColor:a.default.oneOf(T.propTypesColor),unratedColor:a.default.oneOf(T.propTypesColor),className:T.propTypesClassName,onChange:T.propTypesOnChange,readonly:T.propTypesReadonly},X.displayName="MaterialTailwind.Rating";var H=X})(qP);var KP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(M,X){for(var H in X)Object.defineProperty(M,H,{enumerable:!0,get:X[H]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=D(ee),a=D(ot),s=D(xr),l=D(ct),f=it,b=D(Ht),S=D(nt),T=rt,O=S0;function j(M,X){(X==null||X>M.length)&&(X=M.length);for(var H=0,B=new Array(X);H<X;H++)B[H]=M[H];return B}function F(M){if(Array.isArray(M))return M}function z(){return z=Object.assign||function(M){for(var X=1;X<arguments.length;X++){var H=arguments[X];for(var B in H)Object.prototype.hasOwnProperty.call(H,B)&&(M[B]=H[B])}return M},z.apply(this,arguments)}function D(M){return M&&M.__esModule?M:{default:M}}function R(M,X){var H=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(H!=null){var B=[],U=!0,K=!1,ne,oe;try{for(H=H.call(M);!(U=(ne=H.next()).done)&&(B.push(ne.value),!(X&&B.length===X));U=!0);}catch(fe){K=!0,oe=fe}finally{try{!U&&H.return!=null&&H.return()}finally{if(K)throw oe}}return B}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(M,X){if(M==null)return{};var H=p(M,X),B,U;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(M);for(U=0;U<K.length;U++)B=K[U],!(X.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(M,B)&&(H[B]=M[B])}return H}function p(M,X){if(M==null)return{};var H={},B=Object.keys(M),U,K;for(K=0;K<B.length;K++)U=B[K],!(X.indexOf(U)>=0)&&(H[U]=M[U]);return H}function v(M,X){return F(M)||R(M,X)||g(M,X)||P()}function g(M,X){if(M){if(typeof M=="string")return j(M,X);var H=Object.prototype.toString.call(M).slice(8,-1);if(H==="Object"&&M.constructor&&(H=M.constructor.name),H==="Map"||H==="Set")return Array.from(H);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return j(M,X)}}var m=r.default.forwardRef(function(M,X){var H=M.color,B=M.size,U=M.className,K=M.trackClassName,ne=M.thumbClassName,oe=M.barClassName,fe=M.value,ve=M.defaultValue,Se=M.onChange,he=M.min,ue=M.max,ge=M.step,ye=M.inputRef,Te=M.inputProps,Re=y(M,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),De=(0,T.useTheme)().slider,Le=De.valid,Oe=De.defaultProps,Xe=De.styles,Ve=Xe.base,ke=Xe.sizes,Me=Xe.colors,Ne=v(r.default.useState(ve||0),2),Ge=Ne[0],Qe=Ne[1];r.default.useMemo(function(){ve&&Qe(ve)},[ve]),H=H??Oe.color,B=B??Oe.size,he=he??Oe.min,ue=ue??Oe.max,ge=ge??Oe.step;var qe;U=(qe=(0,l.default)(Oe.className,U))!==null&&qe!==void 0?qe:Oe.className;var He;ne=(He=(0,l.default)(Oe.thumbClassName,ne))!==null&&He!==void 0?He:Oe.thumbClassName;var Ze;K=(Ze=(0,l.default)(Oe.trackClassName,K))!==null&&Ze!==void 0?Ze:Oe.trackClassName;var bt;oe=(bt=(0,l.default)(Oe.barClassName,oe))!==null&&bt!==void 0?bt:Oe.barClassName;var wt;Te=(wt=(0,s.default)(Te,(Oe==null?void 0:Oe.inputProps)||{}))!==null&&wt!==void 0?wt:Oe.inputProps;var It=(0,f.twMerge)((0,l.default)((0,S.default)(Ve.container),(0,S.default)(Me[(0,b.default)(Le.colors,H,"gray")]),(0,S.default)(ke[(0,b.default)(Le.sizes,B,"md")].container),U)),Pt=(0,f.twMerge)((0,l.default)((0,S.default)(Ve.bar),oe)),Lt=(0,l.default)((0,S.default)(Ve.track),(0,S.default)(ke[(0,b.default)(Le.sizes,B,"md")].track)),Zt=(0,l.default)((0,S.default)(Ve.thumb),(0,S.default)(ke[(0,b.default)(Le.sizes,B,"md")].thumb)),Qt=(0,l.default)((0,S.default)(Ve.slider),(0,f.twMerge)(Lt,K),(0,f.twMerge)(Zt,ne));return r.default.createElement("div",z({},Re,{ref:X,className:It}),r.default.createElement("label",{className:Pt,style:{width:"".concat(fe||Ge,"%")}}),r.default.createElement("input",z({ref:ye,type:"range",max:ue,min:he,step:ge,className:Qt},fe?{value:fe}:null,{defaultValue:ve,onChange:function(kt){return Se?Se(kt):Qe(Number(kt.target.value))}})))});m.propTypes={color:a.default.oneOf(O.propTypesColor),size:a.default.oneOf(O.propTypesSize),className:O.propTypesClassName,trackClassName:O.propTypesTrackClassName,thumbClassName:O.propTypesThumbClassName,barClassName:O.propTypesBarClassName,defaultValue:O.propTypesDefaultValue,value:O.propTypesValue,onChange:O.propTypesOnChange,min:O.propTypesMin,max:O.propTypesMax,step:O.propTypesStep,inputRef:O.propTypesInputRef,inputProps:O.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(KP);var ZP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Spinner:function(){return P},default:function(){return y}});var r=j(ot),a=z(ee),s=j(ct),l=it,f=j(Ht),b=j(nt),S=rt,T=k0;function O(){return O=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},O.apply(this,arguments)}function j(p){return p&&p.__esModule?p:{default:p}}function F(p){if(typeof WeakMap!="function")return null;var v=new WeakMap,g=new WeakMap;return(F=function(m){return m?g:v})(p)}function z(p,v){if(!v&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var g=F(v);if(g&&g.has(p))return g.get(p);var m={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in p)if(M!=="default"&&Object.prototype.hasOwnProperty.call(p,M)){var X=_?Object.getOwnPropertyDescriptor(p,M):null;X&&(X.get||X.set)?Object.defineProperty(m,M,X):m[M]=p[M]}return m.default=p,g&&g.set(p,m),m}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=(0,a.forwardRef)(function(p,v){var g=p.color,m=p.className,_=D(p,["color","className"]),M=(0,S.useTheme)().spinner,X=M.defaultProps,H=M.valid,B=M.styles,U=B.base,K=B.colors;g=g??X.color;var ne;m=(ne=(0,s.default)(X.className,m))!==null&&ne!==void 0?ne:X.className;var oe=(0,b.default)(K[(0,f.default)(H.colors,g,"gray")]),fe=(0,l.twMerge)((0,s.default)((0,b.default)(U)),m),ve,Se;return a.default.createElement("svg",O({},_,{ref:v,className:fe,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(ve=_==null?void 0:_.width)!==null&&ve!==void 0?ve:24,height:(Se=_==null?void 0:_.height)!==null&&Se!==void 0?Se:24}),a.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),a.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:oe}))});P.propTypes={color:r.default.oneOf(T.propTypesColor),className:T.propTypesClassName},P.displayName="MaterialTailwind.Spinner";var y=P})(ZP);var QP={},Ql={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var M in _)Object.defineProperty(m,M,{enumerable:!0,get:_[M]})}t(e,{useTimelineItem:function(){return p},TimelineItem:function(){return v},default:function(){return g}});var r=O(ee),a=it,s=O(nt),l=rt,f=Ao;function b(m,_){(_==null||_>m.length)&&(_=m.length);for(var M=0,X=new Array(_);M<_;M++)X[M]=m[M];return X}function S(m){if(Array.isArray(m))return m}function T(){return T=Object.assign||function(m){for(var _=1;_<arguments.length;_++){var M=arguments[_];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(m[X]=M[X])}return m},T.apply(this,arguments)}function O(m){return m&&m.__esModule?m:{default:m}}function j(m,_){var M=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(M!=null){var X=[],H=!0,B=!1,U,K;try{for(M=M.call(m);!(H=(U=M.next()).done)&&(X.push(U.value),!(_&&X.length===_));H=!0);}catch(ne){B=!0,K=ne}finally{try{!H&&M.return!=null&&M.return()}finally{if(B)throw K}}return X}}function F(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(m,_){if(m==null)return{};var M=D(m,_),X,H;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(m);for(H=0;H<B.length;H++)X=B[H],!(_.indexOf(X)>=0)&&Object.prototype.propertyIsEnumerable.call(m,X)&&(M[X]=m[X])}return M}function D(m,_){if(m==null)return{};var M={},X=Object.keys(m),H,B;for(B=0;B<X.length;B++)H=X[B],!(_.indexOf(H)>=0)&&(M[H]=m[H]);return M}function R(m,_){return S(m)||j(m,_)||P(m,_)||F()}function P(m,_){if(m){if(typeof m=="string")return b(m,_);var M=Object.prototype.toString.call(m).slice(8,-1);if(M==="Object"&&m.constructor&&(M=m.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return b(m,_)}}var y=r.default.createContext(0);y.displayName="MaterialTailwind.TimelineItemContext";function p(){var m=r.default.useContext(y);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var v=r.default.forwardRef(function(m,_){var M=m.className,X=m.children,H=z(m,["className","children"]),B=(0,l.useTheme)().timelineItem,U=B.styles,K=U.base,ne=R(r.default.useState(0),2),oe=ne[0],fe=ne[1],ve=r.default.useMemo(function(){return[oe,fe]},[oe,fe]),Se=(0,a.twMerge)((0,s.default)(K),M);return r.default.createElement(y.Provider,{value:ve},r.default.createElement("li",T({ref:_},H,{className:Se}),X))});v.propTypes={className:f.propTypeClassName,children:f.propTypeChildren.isRequired},v.displayName="MaterialTailwind.TimelineItem";var g=v})(Ql);var JP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(M,X){for(var H in X)Object.defineProperty(M,H,{enumerable:!0,get:X[H]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=D(ee),a=D(ot),s=ur,l=it,f=D(Ht),b=D(nt),S=rt,T=Ql,O=Ao;function j(M,X){(X==null||X>M.length)&&(X=M.length);for(var H=0,B=new Array(X);H<X;H++)B[H]=M[H];return B}function F(M){if(Array.isArray(M))return M}function z(){return z=Object.assign||function(M){for(var X=1;X<arguments.length;X++){var H=arguments[X];for(var B in H)Object.prototype.hasOwnProperty.call(H,B)&&(M[B]=H[B])}return M},z.apply(this,arguments)}function D(M){return M&&M.__esModule?M:{default:M}}function R(M,X){var H=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(H!=null){var B=[],U=!0,K=!1,ne,oe;try{for(H=H.call(M);!(U=(ne=H.next()).done)&&(B.push(ne.value),!(X&&B.length===X));U=!0);}catch(fe){K=!0,oe=fe}finally{try{!U&&H.return!=null&&H.return()}finally{if(K)throw oe}}return B}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(M,X){if(M==null)return{};var H=p(M,X),B,U;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(M);for(U=0;U<K.length;U++)B=K[U],!(X.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(M,B)&&(H[B]=M[B])}return H}function p(M,X){if(M==null)return{};var H={},B=Object.keys(M),U,K;for(K=0;K<B.length;K++)U=B[K],!(X.indexOf(U)>=0)&&(H[U]=M[U]);return H}function v(M,X){return F(M)||R(M,X)||g(M,X)||P()}function g(M,X){if(M){if(typeof M=="string")return j(M,X);var H=Object.prototype.toString.call(M).slice(8,-1);if(H==="Object"&&M.constructor&&(H=M.constructor.name),H==="Map"||H==="Set")return Array.from(H);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return j(M,X)}}var m=r.default.forwardRef(function(M,X){var H=M.color,B=M.variant,U=M.className,K=M.children,ne=y(M,["color","variant","className","children"]),oe=(0,S.useTheme)().timelineIcon,fe=oe.styles,ve=oe.valid,Se=fe.base,he=fe.variants,ue=v((0,T.useTimelineItem)(),2),ge=ue[1],ye=r.default.useRef(null),Te=(0,s.useMergeRefs)([X,ye]);r.default.useEffect(function(){var Le=ye.current;if(Le){var Oe=Le.getBoundingClientRect().width;return ge(Oe),function(){ge(0)}}},[ge,U,K]);var Re=(0,b.default)(he[(0,f.default)(ve.variants,B,"filled")][(0,f.default)(ve.colors,H,"gray")]),De=(0,l.twMerge)((0,b.default)(Se),Re,U);return r.default.createElement("span",z({ref:Te},ne,{className:De}),K)});m.propTypes={children:O.propTypeChildren,className:O.propTypeClassName,color:a.default.oneOf(O.propTypeColor),variant:a.default.oneOf(O.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(JP);var e_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return p},default:function(){return v}});var r=j(ee),a=it,s=j(nt),l=rt,f=Ql,b=Ao;function S(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,M=new Array(m);_<m;_++)M[_]=g[_];return M}function T(g){if(Array.isArray(g))return g}function O(){return O=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},O.apply(this,arguments)}function j(g){return g&&g.__esModule?g:{default:g}}function F(g,m){var _=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(_!=null){var M=[],X=!0,H=!1,B,U;try{for(_=_.call(g);!(X=(B=_.next()).done)&&(M.push(B.value),!(m&&M.length===m));X=!0);}catch(K){H=!0,U=K}finally{try{!X&&_.return!=null&&_.return()}finally{if(H)throw U}}return M}}function z(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(g,m){if(g==null)return{};var _=R(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function R(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}function P(g,m){return T(g)||F(g,m)||y(g,m)||z()}function y(g,m){if(g){if(typeof g=="string")return S(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return S(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,M=g.children,X=D(g,["className","children"]),H=(0,l.useTheme)().timelineBody,B=H.styles,U=B.base,K=P((0,f.useTimelineItem)(),1),ne=K[0],oe=(0,a.twMerge)((0,s.default)(U),_);return r.default.createElement("div",O({},X,{ref:m,className:oe}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(ne,"px")}}),r.default.createElement("div",null,M))});p.propTypes={children:b.propTypeChildren,className:b.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var v=p})(e_);var t_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{TimelineHeader:function(){return j},default:function(){return F}});var r=S(ee),a=it,s=S(nt),l=rt,f=Ao;function b(){return b=Object.assign||function(z){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(z[P]=R[P])}return z},b.apply(this,arguments)}function S(z){return z&&z.__esModule?z:{default:z}}function T(z,D){if(z==null)return{};var R=O(z,D),P,y;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(z);for(y=0;y<p.length;y++)P=p[y],!(D.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(z,P)&&(R[P]=z[P])}return R}function O(z,D){if(z==null)return{};var R={},P=Object.keys(z),y,p;for(p=0;p<P.length;p++)y=P[p],!(D.indexOf(y)>=0)&&(R[y]=z[y]);return R}var j=r.default.forwardRef(function(z,D){var R=z.className,P=z.children,y=T(z,["className","children"]),p=(0,l.useTheme)().timelineHeader,v=p.styles,g=v.base,m=(0,a.twMerge)((0,s.default)(g),R);return r.default.createElement("div",b({},y,{ref:D,className:m}),P)});j.propTypes={children:f.propTypeChildren,className:f.propTypeClassName},j.displayName="MaterialTailwind.TimelineHeader";var F=j})(t_);var r_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return p},default:function(){return v}});var r=j(ee),a=it,s=j(nt),l=rt,f=Ql,b=Ao;function S(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,M=new Array(m);_<m;_++)M[_]=g[_];return M}function T(g){if(Array.isArray(g))return g}function O(){return O=Object.assign||function(g){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(g[M]=_[M])}return g},O.apply(this,arguments)}function j(g){return g&&g.__esModule?g:{default:g}}function F(g,m){var _=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(_!=null){var M=[],X=!0,H=!1,B,U;try{for(_=_.call(g);!(X=(B=_.next()).done)&&(M.push(B.value),!(m&&M.length===m));X=!0);}catch(K){H=!0,U=K}finally{try{!X&&_.return!=null&&_.return()}finally{if(H)throw U}}return M}}function z(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(g,m){if(g==null)return{};var _=R(g,m),M,X;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(g);for(X=0;X<H.length;X++)M=H[X],!(m.indexOf(M)>=0)&&Object.prototype.propertyIsEnumerable.call(g,M)&&(_[M]=g[M])}return _}function R(g,m){if(g==null)return{};var _={},M=Object.keys(g),X,H;for(H=0;H<M.length;H++)X=M[H],!(m.indexOf(X)>=0)&&(_[X]=g[X]);return _}function P(g,m){return T(g)||F(g,m)||y(g,m)||z()}function y(g,m){if(g){if(typeof g=="string")return S(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return S(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,M=g.children,X=D(g,["className","children"]),H,B=(0,l.useTheme)().timelineConnector,U=B.styles,K=U.base,ne=P((0,f.useTimelineItem)(),1),oe=ne[0],fe=(0,s.default)(K.line),ve=(0,a.twMerge)((0,s.default)(K.container),_);return r.default.createElement("span",O({},X,{ref:m,className:ve,style:{top:"".concat(oe,"px"),width:"".concat(oe,"px"),opacity:oe?1:0,height:"calc(100% - ".concat(oe,"px)")}}),M&&r.default.isValidElement(M)?r.default.cloneElement(M,{className:(0,a.twMerge)(fe,(H=M.props)===null||H===void 0?void 0:H.className)}):r.default.createElement("span",{className:fe}))});p.propTypes={children:b.propTypeChildren,className:b.propTypeClassName},p.displayName="MaterialTailwind.TimelineConnector";var v=p})(r_);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,v){for(var g in v)Object.defineProperty(p,g,{enumerable:!0,get:v[g]})}t(e,{Timeline:function(){return P},TimelineItem:function(){return b.default},TimelineIcon:function(){return S.default},TimelineBody:function(){return T.default},TimelineHeader:function(){return O.default},TimelineConnector:function(){return j.default},default:function(){return y}});var r=z(ee),a=it,s=z(nt),l=rt,f=Ao,b=z(Ql),S=z(JP),T=z(e_),O=z(t_),j=z(r_);function F(){return F=Object.assign||function(p){for(var v=1;v<arguments.length;v++){var g=arguments[v];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(p[m]=g[m])}return p},F.apply(this,arguments)}function z(p){return p&&p.__esModule?p:{default:p}}function D(p,v){if(p==null)return{};var g=R(p,v),m,_;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(p);for(_=0;_<M.length;_++)m=M[_],!(v.indexOf(m)>=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function R(p,v){if(p==null)return{};var g={},m=Object.keys(p),_,M;for(M=0;M<m.length;M++)_=m[M],!(v.indexOf(_)>=0)&&(g[_]=p[_]);return g}var P=r.default.forwardRef(function(p,v){var g=p.className,m=p.children,_=D(p,["className","children"]),M=(0,l.useTheme)().timeline,X=M.styles,H=X.base,B=(0,a.twMerge)((0,s.default)(H),g);return r.default.createElement("ul",F({ref:v},_,{className:B}),m)});P.propTypes={className:f.propTypeClassName,children:f.propTypeChildren},P.displayName="MaterialTailwind.Timeline";var y=Object.assign(P,{Item:b.default,Icon:S.default,Header:O.default,Body:T.default,Connector:j.default})})(QP);var n_={},o_={},lb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,O){for(var j in O)Object.defineProperty(T,j,{enumerable:!0,get:O[j]})}t(e,{propTypesActiveStep:function(){return s},propTypesIsLastStep:function(){return l},propTypesIsFirstStep:function(){return f},propTypesChildren:function(){return b},propTypesClassName:function(){return S}});var r=a(ot);function a(T){return T&&T.__esModule?T:{default:T}}var s=r.default.number,l=r.default.func,f=r.default.func,b=r.default.node,S=r.default.string})(lb);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{Step:function(){return j},default:function(){return F}});var r=S(ee),a=it,s=S(nt),l=rt,f=lb;function b(){return b=Object.assign||function(z){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(z[P]=R[P])}return z},b.apply(this,arguments)}function S(z){return z&&z.__esModule?z:{default:z}}function T(z,D){if(z==null)return{};var R=O(z,D),P,y;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(z);for(y=0;y<p.length;y++)P=p[y],!(D.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(z,P)&&(R[P]=z[P])}return R}function O(z,D){if(z==null)return{};var R={},P=Object.keys(z),y,p;for(p=0;p<P.length;p++)y=P[p],!(D.indexOf(y)>=0)&&(R[y]=z[y]);return R}var j=r.default.forwardRef(function(z,D){var R=z.className;z.activeClassName,z.completedClassName;var P=z.children,y=T(z,["className","activeClassName","completedClassName","children"]),p=(0,l.useTheme)().step,v=p.styles.base,g=(0,a.twMerge)((0,s.default)(v.initial),R);return r.default.createElement("div",b({},y,{ref:D,className:g}),P)});j.propTypes={className:f.propTypesClassName,activeClassName:f.propTypesClassName,completedClassName:f.propTypesClassName,children:f.propTypesChildren},j.displayName="MaterialTailwind.Step";var F=j})(o_);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(H,B){for(var U in B)Object.defineProperty(H,U,{enumerable:!0,get:B[U]})}t(e,{Stepper:function(){return M},Step:function(){return b.default},default:function(){return X}});var r=z(ee),a=ur,s=it,l=z(nt),f=rt,b=z(o_),S=lb;function T(H,B){(B==null||B>H.length)&&(B=H.length);for(var U=0,K=new Array(B);U<B;U++)K[U]=H[U];return K}function O(H){if(Array.isArray(H))return H}function j(H,B,U){return B in H?Object.defineProperty(H,B,{value:U,enumerable:!0,configurable:!0,writable:!0}):H[B]=U,H}function F(){return F=Object.assign||function(H){for(var B=1;B<arguments.length;B++){var U=arguments[B];for(var K in U)Object.prototype.hasOwnProperty.call(U,K)&&(H[K]=U[K])}return H},F.apply(this,arguments)}function z(H){return H&&H.__esModule?H:{default:H}}function D(H,B){var U=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(U!=null){var K=[],ne=!0,oe=!1,fe,ve;try{for(U=U.call(H);!(ne=(fe=U.next()).done)&&(K.push(fe.value),!(B&&K.length===B));ne=!0);}catch(Se){oe=!0,ve=Se}finally{try{!ne&&U.return!=null&&U.return()}finally{if(oe)throw ve}}return K}}function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(H){for(var B=1;B<arguments.length;B++){var U=arguments[B]!=null?arguments[B]:{},K=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(K=K.concat(Object.getOwnPropertySymbols(U).filter(function(ne){return Object.getOwnPropertyDescriptor(U,ne).enumerable}))),K.forEach(function(ne){j(H,ne,U[ne])})}return H}function y(H,B){var U=Object.keys(H);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);B&&(K=K.filter(function(ne){return Object.getOwnPropertyDescriptor(H,ne).enumerable})),U.push.apply(U,K)}return U}function p(H,B){return B=B??{},Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(B)):y(Object(B)).forEach(function(U){Object.defineProperty(H,U,Object.getOwnPropertyDescriptor(B,U))}),H}function v(H,B){if(H==null)return{};var U=g(H,B),K,ne;if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(H);for(ne=0;ne<oe.length;ne++)K=oe[ne],!(B.indexOf(K)>=0)&&Object.prototype.propertyIsEnumerable.call(H,K)&&(U[K]=H[K])}return U}function g(H,B){if(H==null)return{};var U={},K=Object.keys(H),ne,oe;for(oe=0;oe<K.length;oe++)ne=K[oe],!(B.indexOf(ne)>=0)&&(U[ne]=H[ne]);return U}function m(H,B){return O(H)||D(H,B)||_(H,B)||R()}function _(H,B){if(H){if(typeof H=="string")return T(H,B);var U=Object.prototype.toString.call(H).slice(8,-1);if(U==="Object"&&H.constructor&&(U=H.constructor.name),U==="Map"||U==="Set")return Array.from(U);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return T(H,B)}}var M=r.default.forwardRef(function(H,B){var U=H.activeStep,K=H.isFirstStep,ne=H.isLastStep,oe=H.className,fe=H.lineClassName,ve=H.activeLineClassName,Se=H.children,he=v(H,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),ue=(0,f.useTheme)(),ge=ue.stepper,ye=ue.step,Te=ge.styles.base,Re=ye.styles,De=Re.base,Le=r.default.useRef(null),Oe=m(r.default.useState(0),2),Xe=Oe[0],Ve=Oe[1],ke=U===0,Me=Array.isArray(Se)&&U===Se.length-1,Ne=Array.isArray(Se)&&U>Se.length-1;r.default.useEffect(function(){if(Le.current){var wt=Se,It=Le.current.getBoundingClientRect().width,Pt=It/(wt.length-1);Ve(Pt)}},[Se]);var Ge=r.default.useMemo(function(){if(!Ne)return Xe*U},[U,Ne,Xe]);(0,a.useMergeRefs)([B,Le]);var Qe=(0,s.twMerge)((0,l.default)(Te.stepper),oe),qe=(0,s.twMerge)((0,l.default)(Te.line.initial),fe),He=(0,s.twMerge)(qe,(0,l.default)(Te.line.active),ve),Ze=(0,l.default)(De.active),bt=(0,l.default)(De.completed);return r.default.useEffect(function(){ne&&typeof ne=="function"&&ne(Me),K&&typeof K=="function"&&K(ke)},[K,ke,ne,Me]),r.default.createElement("div",F({},he,{ref:Le,className:Qe}),r.default.createElement("div",{className:qe}),r.default.createElement("div",{className:He,style:{width:"".concat(Ge,"px")}}),Array.isArray(Se)?Se.map(function(wt,It){var Pt,Lt;return r.default.cloneElement(wt,p(P({key:It},wt.props),{className:(0,s.twMerge)(wt.props.className,It===U?(0,s.twMerge)(Ze,(Pt=wt.props)===null||Pt===void 0?void 0:Pt.activeClassName):It<U?(0,s.twMerge)(bt,(Lt=wt.props)===null||Lt===void 0?void 0:Lt.completedClassName):"")}))}):Se)});M.propTypes={activeStep:S.propTypesActiveStep,isFirstStep:S.propTypesIsFirstStep,isLastStep:S.propTypesIsLastStep,className:S.propTypesClassName,lineClassName:S.propTypesClassName,activeLineClassName:S.propTypesClassName,children:S.propTypesChildren},M.displayName="MaterialTailwind.Stepper";var X=Object.assign(M,{Step:b.default})})(n_);var Tp={},Jl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{propTypesOpen:function(){return l},propTypesHanlder:function(){return f},propTypesPlacement:function(){return b},propTypesOffset:function(){return S},propTypesDismiss:function(){return T},propTypesChildren:function(){return O},propTypesAnimate:function(){return j},propTypesClassName:function(){return F}});var r=s(ot),a=Vt;function s(z){return z&&z.__esModule?z:{default:z}}var l=r.default.bool,f=r.default.func,b=r.default.oneOf(a.propTypesPlacements),S=a.propTypesOffsetType,T=a.propTypesDismissType,O=r.default.node.isRequired,j=a.propTypesAnimation,F=r.default.string})(Jl);var Pp={},yx;function i4(){return yx||(yx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{SpeedDialHandler:function(){return D},default:function(){return R}});var r=S(ee),a=ur,s=ub(),l=it,f=Jl;function b(P,y,p){return y in P?Object.defineProperty(P,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):P[y]=p,P}function S(P){return P&&P.__esModule?P:{default:P}}function T(P){for(var y=1;y<arguments.length;y++){var p=arguments[y]!=null?arguments[y]:{},v=Object.keys(p);typeof Object.getOwnPropertySymbols=="function"&&(v=v.concat(Object.getOwnPropertySymbols(p).filter(function(g){return Object.getOwnPropertyDescriptor(p,g).enumerable}))),v.forEach(function(g){b(P,g,p[g])})}return P}function O(P,y){var p=Object.keys(P);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(P);y&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(P,g).enumerable})),p.push.apply(p,v)}return p}function j(P,y){return y=y??{},Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(y)):O(Object(y)).forEach(function(p){Object.defineProperty(P,p,Object.getOwnPropertyDescriptor(y,p))}),P}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.children,v=F(P,["children"]),g,m=(0,s.useSpeedDial)(),_=m.getReferenceProps,M=m.refs,X=(0,a.useMergeRefs)([y,M.setReference]);return r.default.cloneElement(p,T({},_(j(T({},v),{ref:X,className:(0,l.twMerge)(p==null||(g=p.props)===null||g===void 0?void 0:g.className,v==null?void 0:v.className)}))))});D.propTypes={children:f.propTypesChildren},D.displayName="MaterialTailwind.SpeedDialHandler";var R=D}(Pp)),Pp}var _p={},xx;function s4(){return xx||(xx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var p in y)Object.defineProperty(P,p,{enumerable:!0,get:y[p]})}t(e,{SpeedDialContent:function(){return D},default:function(){return R}});var r=j(ee),a=gr,s=ur,l=ub(),f=rt,b=it,S=j(nt),T=Jl;function O(){return O=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var p=arguments[y];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(P[v]=p[v])}return P},O.apply(this,arguments)}function j(P){return P&&P.__esModule?P:{default:P}}function F(P,y){if(P==null)return{};var p=z(P,y),v,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(P);for(g=0;g<m.length;g++)v=m[g],!(y.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(P,v)&&(p[v]=P[v])}return p}function z(P,y){if(P==null)return{};var p={},v=Object.keys(P),g,m;for(m=0;m<v.length;m++)g=v[m],!(y.indexOf(g)>=0)&&(p[g]=P[g]);return p}var D=r.default.forwardRef(function(P,y){var p=P.children,v=P.className,g=F(P,["children","className"]),m=(0,f.useTheme)(),_=m.speedDialContent.styles,M=(0,l.useSpeedDial)(),X=M.x,H=M.y,B=M.refs,U=M.open,K=M.strategy,ne=M.getFloatingProps,oe=M.animation,fe=(0,s.useMergeRefs)([y,B.setFloating]),ve=(0,b.twMerge)((0,S.default)(_),v),Se=a.AnimatePresence;return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(Se,null,U&&r.default.createElement("div",O({},g,{ref:fe,className:ve,style:{position:K,top:H??0,left:X??0}},ne()),r.default.Children.map(p,function(he){return r.default.createElement(a.m.div,{initial:"unmount",exit:"unmount",animate:U?"mount":"unmount",variants:oe},he)}))))});D.propTypes={children:T.propTypesChildren,className:T.propTypesClassName},D.displayName="MaterialTailwind.SpeedDialContent";var R=D}(_p)),_p}var a_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,D){for(var R in D)Object.defineProperty(z,R,{enumerable:!0,get:D[R]})}t(e,{SpeedDialAction:function(){return j},default:function(){return F}});var r=S(ee),a=rt,s=it,l=S(nt),f=Jl;function b(){return b=Object.assign||function(z){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&(z[P]=R[P])}return z},b.apply(this,arguments)}function S(z){return z&&z.__esModule?z:{default:z}}function T(z,D){if(z==null)return{};var R=O(z,D),P,y;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(z);for(y=0;y<p.length;y++)P=p[y],!(D.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(z,P)&&(R[P]=z[P])}return R}function O(z,D){if(z==null)return{};var R={},P=Object.keys(z),y,p;for(p=0;p<P.length;p++)y=P[p],!(D.indexOf(y)>=0)&&(R[y]=z[y]);return R}var j=r.default.forwardRef(function(z,D){var R=z.className,P=z.children,y=T(z,["className","children"]),p=(0,a.useTheme)(),v=p.speedDialAction.styles,g=(0,s.twMerge)((0,l.default)(v),R);return r.default.createElement("button",b({},y,{ref:D,className:g}),P)});j.propTypes={children:f.propTypesChildren,className:f.propTypesClassName},j.displayName="SpeedDialAction";var F=j})(a_);var wx;function ub(){return wx||(wx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var M in _)Object.defineProperty(m,M,{enumerable:!0,get:_[M]})}t(e,{SpeedDialContext:function(){return y},useSpeedDial:function(){return p},SpeedDial:function(){return v},SpeedDialHandler:function(){return b.default},SpeedDialContent:function(){return S.default},SpeedDialAction:function(){return T.default},default:function(){return g}});var r=F(ee),a=ur,s=rt,l=F(xr),f=Jl,b=F(i4()),S=F(s4()),T=F(a_);function O(m,_){(_==null||_>m.length)&&(_=m.length);for(var M=0,X=new Array(_);M<_;M++)X[M]=m[M];return X}function j(m){if(Array.isArray(m))return m}function F(m){return m&&m.__esModule?m:{default:m}}function z(m,_){var M=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(M!=null){var X=[],H=!0,B=!1,U,K;try{for(M=M.call(m);!(H=(U=M.next()).done)&&(X.push(U.value),!(_&&X.length===_));H=!0);}catch(ne){B=!0,K=ne}finally{try{!H&&M.return!=null&&M.return()}finally{if(B)throw K}}return X}}function D(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(m,_){return j(m)||z(m,_)||P(m,_)||D()}function P(m,_){if(m){if(typeof m=="string")return O(m,_);var M=Object.prototype.toString.call(m).slice(8,-1);if(M==="Object"&&m.constructor&&(M=m.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return O(m,_)}}var y=r.default.createContext(null);function p(){var m=r.default.useContext(y);if(!m)throw new Error("useSpeedDial must be used within a <SpeedDial />.");return m}function v(m){var _=m.open,M=m.handler,X=m.placement,H=m.offset,B=m.dismiss,U=m.animate,K=m.children,ne=(0,s.useTheme)(),oe=ne.speedDial.defaultProps,fe=R(r.default.useState(!1),2),ve=fe[0],Se=fe[1];_=_??ve,M=M??Se,X=X??oe.placement,H=H??oe.offset,B=B??oe.dismiss,U=U??oe.animate;var he={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},ue=(0,l.default)(he,U),ge=(0,a.useFloatingNodeId)(),ye=(0,a.useFloating)({open:_,nodeId:ge,placement:X,onOpenChange:M,whileElementsMounted:a.autoUpdate,middleware:[(0,a.offset)(H),(0,a.flip)(),(0,a.shift)()]}),Te=ye.x,Re=ye.y,De=ye.strategy,Le=ye.refs,Oe=ye.context,Xe=(0,a.useInteractions)([(0,a.useHover)(Oe,{handleClose:(0,a.safePolygon)()}),(0,a.useDismiss)(Oe,B)]),Ve=Xe.getReferenceProps,ke=Xe.getFloatingProps,Me=r.default.useMemo(function(){return{x:Te,y:Re,strategy:De,refs:Le,open:_,context:Oe,getReferenceProps:Ve,getFloatingProps:ke,animation:ue}},[Oe,ke,Ve,Le,De,Te,Re,_,ue]);return r.default.createElement(y.Provider,{value:Me},r.default.createElement("div",{className:"group"},r.default.createElement(a.FloatingNode,{id:ge},K)))}v.propTypes={open:f.propTypesOpen,handler:f.propTypesHanlder,placement:f.propTypesPlacement,offset:f.propTypesOffset,dismiss:f.propTypesDismiss,className:f.propTypesClassName,children:f.propTypesChildren,animate:f.propTypesAnimate},v.displayName="MaterialTailwind.SpeedDial";var g=Object.assign(v,{Handler:b.default,Content:S.default,Action:T.default})}(Tp)),Tp}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(mC,e),t(vT,e),t(mT,e),t(yT,e),t(wT,e),t(CT,e),t(PT,e),t(_T,e),t(OT,e),t(Vd,e),t(gP,e),t(bP,e),t(wP,e),t(SP,e),t(PP,e),t(_P,e),t(OP,e),t(EP,e),t(MP,e),t(jP,e),t(DP,e),t(zP,e),t(FP,e),t(WP,e),t(HP,e),t(XP,e),t(GP,e),t($P,e),t(qP,e),t(KP,e),t(ZP,e),t(QP,e),t(n_,e),t(ub(),e),t(rt,e),t(u0,e);function t(r,a){return Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:function(){return r[s]}})}),r}})(Be);function l4({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18"}))}const u4=ee.forwardRef(l4),c4=u4;function d4({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 12.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 18.75a.75.75 0 110-1.5.75.75 0 010 1.5z"}))}const f4=ee.forwardRef(d4),p4=f4;function h4({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const g4=ee.forwardRef(h4),b4=g4;function v4({title:e,titleId:t,...r},a){return ee.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?ee.createElement("title",{id:t},e):null,ee.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const m4=ee.forwardRef(v4),i_=m4,cb=wn.createContext(null);cb.displayName="MaterialTailwindContext";function y4(e,t){switch(t.type){case"OPEN_SIDENAV":return{...e,openSidenav:t.value};case"SIDENAV_TYPE":return{...e,sidenavType:t.value};case"SIDENAV_COLOR":return{...e,sidenavColor:t.value};case"TRANSPARENT_NAVBAR":return{...e,transparentNavbar:t.value};case"FIXED_NAVBAR":return{...e,fixedNavbar:t.value};case"OPEN_CONFIGURATOR":return{...e,openConfigurator:t.value};default:throw new Error(`Unhandled action type: ${t.type}`)}}function db({children:e}){const t={openSidenav:!1,sidenavColor:"dark",sidenavType:"white",transparentNavbar:!0,fixedNavbar:!1,openConfigurator:!1},[r,a]=wn.useReducer(y4,t),s=wn.useMemo(()=>[r,a],[r,a]);return me.jsx(cb.Provider,{value:s,children:e})}function qd(){const e=wn.useContext(cb);if(!e)throw new Error("useMaterialTailwindController should be used inside the MaterialTailwindControllerProvider.");return e}db.displayName="/src/context/index.jsx";db.propTypes={children:Nt.node.isRequired};const s_=(e,t)=>e({type:"OPEN_SIDENAV",value:t}),Op=(e,t)=>e({type:"SIDENAV_TYPE",value:t}),x4=(e,t)=>e({type:"SIDENAV_COLOR",value:t}),w4=(e,t)=>e({type:"FIXED_NAVBAR",value:t}),fb=(e,t)=>e({type:"OPEN_CONFIGURATOR",value:t});function Kd({brandImg:e,brandName:t,routes:r}){const[a,s]=qd(),{sidenavColor:l,sidenavType:f,openSidenav:b}=a,S={dark:"bg-gradient-to-br from-gray-800 to-gray-900",white:"bg-white shadow-sm",transparent:"bg-transparent"};return me.jsxs("aside",{className:`${S[f]} ${b?"translate-x-0":"-translate-x-80"} fixed inset-0 z-50 my-4 ml-4 h-[calc(100vh-32px)] w-72 rounded-xl transition-transform duration-300 xl:translate-x-0 border border-blue-gray-100`,children:[me.jsxs("div",{className:"relative",children:[me.jsx(Fc,{to:"/",className:"py-6 px-8 text-center",children:me.jsx(Be.Typography,{variant:"h6",color:f==="dark"?"white":"blue-gray",children:t})}),me.jsx(Be.IconButton,{variant:"text",color:"white",size:"sm",ripple:!1,className:"absolute right-0 top-0 grid rounded-br-none rounded-tl-none xl:hidden",onClick:()=>s_(s,!1),children:me.jsx(i_,{strokeWidth:2.5,className:"h-5 w-5 text-white"})})]}),me.jsx("div",{className:"m-4",children:r.map(({layout:T,title:O,pages:j},F)=>me.jsxs("ul",{className:"mb-4 flex flex-col gap-1",children:[O&&me.jsx("li",{className:"mx-3.5 mt-4 mb-2",children:me.jsx(Be.Typography,{variant:"small",color:f==="dark"?"white":"blue-gray",className:"font-black uppercase opacity-75",children:O})}),j.map(({icon:z,name:D,path:R})=>me.jsx("li",{children:me.jsx(JR,{to:`/${T}${R}`,children:({isActive:P})=>me.jsxs(Be.Button,{variant:P?"gradient":"text",color:P?l:f==="dark"?"white":"blue-gray",className:"flex items-center gap-4 px-4 capitalize",fullWidth:!0,children:[z,me.jsx(Be.Typography,{color:"inherit",className:"font-medium capitalize",children:D})]})})},D))]},F))})]})}Kd.defaultProps={brandImg:"/img/logo-ct.png",brandName:"Material Tailwind React"};Kd.propTypes={brandImg:Nt.string,brandName:Nt.string,routes:Nt.arrayOf(Nt.object).isRequired};Kd.displayName="/src/widgets/layout/sidnave.jsx";function l_(){const[e,t]=qd(),{fixedNavbar:r,openSidenav:a}=e,{pathname:s}=qa(),[l,f]=s.split("/").filter(b=>b!=="");return me.jsx(Be.Navbar,{color:r?"white":"transparent",className:`rounded-xl transition-all ${r?"sticky top-4 z-40 py-3 shadow-md shadow-blue-gray-500/5":"px-0 py-1"}`,fullWidth:!0,blurred:r,children:me.jsxs("div",{className:"flex flex-col-reverse justify-between gap-6 md:flex-row md:items-center",children:[me.jsxs("div",{className:"capitalize",children:[me.jsxs(Be.Breadcrumbs,{className:`bg-transparent p-0 transition-all ${r?"mt-1":""}`,children:[me.jsx(Fc,{to:`/${l}`,children:me.jsx(Be.Typography,{variant:"small",color:"blue-gray",className:"font-normal opacity-50 transition-all hover:text-blue-500 hover:opacity-100",children:l})}),me.jsx(Be.Typography,{variant:"small",color:"blue-gray",className:"font-normal",children:f})]}),me.jsx(Be.Typography,{variant:"h6",color:"blue-gray",children:f})]}),me.jsxs("div",{className:"flex items-center",children:[me.jsx("div",{className:"mr-auto md:mr-4 md:w-56",children:me.jsx(Be.Input,{label:"Search"})}),me.jsx(Be.IconButton,{variant:"text",color:"blue-gray",className:"grid xl:hidden",onClick:()=>s_(t,!a),children:me.jsx(sN,{strokeWidth:3,className:"h-6 w-6 text-blue-gray-500"})}),me.jsxs(Fc,{to:"/auth/sign-in",children:[me.jsxs(Be.Button,{variant:"text",color:"blue-gray",className:"hidden items-center gap-1 px-4 xl:flex normal-case",children:[me.jsx(vy,{className:"h-5 w-5 text-blue-gray-500"}),"Sign In"]}),me.jsx(Be.IconButton,{variant:"text",color:"blue-gray",className:"grid xl:hidden",children:me.jsx(vy,{className:"h-5 w-5 text-blue-gray-500"})})]}),me.jsxs(Be.Menu,{children:[me.jsx(Be.MenuHandler,{children:me.jsx(Be.IconButton,{variant:"text",color:"blue-gray",children:me.jsx(gC,{className:"h-5 w-5 text-blue-gray-500"})})}),me.jsxs(Be.MenuList,{className:"w-max border-0",children:[me.jsxs(Be.MenuItem,{className:"flex items-center gap-3",children:[me.jsx(Be.Avatar,{src:"https://demos.creative-tim.com/material-dashboard/assets/img/team-2.jpg",alt:"item-1",size:"sm",variant:"circular"}),me.jsxs("div",{children:[me.jsxs(Be.Typography,{variant:"small",color:"blue-gray",className:"mb-1 font-normal",children:[me.jsx("strong",{children:"New message"})," from Laur"]}),me.jsxs(Be.Typography,{variant:"small",color:"blue-gray",className:"flex items-center gap-1 text-xs font-normal opacity-60",children:[me.jsx(Ku,{className:"h-3.5 w-3.5"})," 13 minutes ago"]})]})]}),me.jsxs(Be.MenuItem,{className:"flex items-center gap-4",children:[me.jsx(Be.Avatar,{src:"https://demos.creative-tim.com/material-dashboard/assets/img/small-logos/logo-spotify.svg",alt:"item-1",size:"sm",variant:"circular"}),me.jsxs("div",{children:[me.jsxs(Be.Typography,{variant:"small",color:"blue-gray",className:"mb-1 font-normal",children:[me.jsx("strong",{children:"New album"})," by Travis Scott"]}),me.jsxs(Be.Typography,{variant:"small",color:"blue-gray",className:"flex items-center gap-1 text-xs font-normal opacity-60",children:[me.jsx(Ku,{className:"h-3.5 w-3.5"})," 1 day ago"]})]})]}),me.jsxs(Be.MenuItem,{className:"flex items-center gap-4",children:[me.jsx("div",{className:"grid h-9 w-9 place-items-center rounded-full bg-gradient-to-tr from-blue-gray-800 to-blue-gray-900",children:me.jsx(vC,{className:"h-4 w-4 text-white"})}),me.jsxs("div",{children:[me.jsx(Be.Typography,{variant:"small",color:"blue-gray",className:"mb-1 font-normal",children:"Payment successfully completed"}),me.jsxs(Be.Typography,{variant:"small",color:"blue-gray",className:"flex items-center gap-1 text-xs font-normal opacity-60",children:[me.jsx(Ku,{className:"h-3.5 w-3.5"})," 2 days ago"]})]})]})]})]}),me.jsx(Be.IconButton,{variant:"text",color:"blue-gray",onClick:()=>fb(t,!0),children:me.jsx(bC,{className:"h-5 w-5 text-blue-gray-500"})})]})]})})}l_.displayName="/src/widgets/layout/dashboard-navbar.jsx";function C4(e,t){t=Math.pow(10,t);const r=["K","M","B","T"];for(let s=r.length-1;s>=0;s--){var a=Math.pow(10,(s+1)*3);if(a<=e){e=Math.round(e*t/a)/t,e==1e3&&s<r.length-1&&(e=1,s++),e+=r[s];break}}return e}function u_(){const[e,t]=qd(),{openConfigurator:r,sidenavColor:a,sidenavType:s,fixedNavbar:l}=e,[f,b]=wn.useState(0),S={white:"from-gray-100 to-gray-100 border-gray-200",dark:"from-black to-black border-gray-200",green:"from-green-400 to-green-600",orange:"from-orange-400 to-orange-600",red:"from-red-400 to-red-600",pink:"from-pink-400 to-pink-600"};return wn.useEffect(()=>{fetch("https://api.github.com/repos/creativetimofficial/material-tailwind-dashboard-react").then(T=>T.json()).then(T=>b(C4(T.stargazers_count,1)))},[]),me.jsxs("aside",{className:`fixed top-0 right-0 z-50 h-screen w-96 bg-white px-2.5 shadow-lg transition-transform duration-300 ${r?"translate-x-0":"translate-x-96"}`,children:[me.jsxs("div",{className:"flex items-start justify-between px-6 pt-8 pb-6",children:[me.jsxs("div",{children:[me.jsx(Be.Typography,{variant:"h5",color:"blue-gray",children:"Dashboard Configurator"}),me.jsx(Be.Typography,{className:"font-normal text-blue-gray-600",children:"See our dashboard options."})]}),me.jsx(Be.IconButton,{variant:"text",color:"blue-gray",onClick:()=>fb(t,!1),children:me.jsx(i_,{strokeWidth:2.5,className:"h-5 w-5"})})]}),me.jsxs("div",{className:"py-4 px-6",children:[me.jsxs("div",{className:"mb-12",children:[me.jsx(Be.Typography,{variant:"h6",color:"blue-gray",children:"Sidenav Colors"}),me.jsx("div",{className:"mt-3 flex items-center gap-2",children:Object.keys(S).map(T=>me.jsx("span",{className:`h-6 w-6 cursor-pointer rounded-full border bg-gradient-to-br transition-transform hover:scale-105 ${S[T]} ${a===T?"border-black":"border-transparent"}`,onClick:()=>x4(t,T)},T))})]}),me.jsxs("div",{className:"mb-12",children:[me.jsx(Be.Typography,{variant:"h6",color:"blue-gray",children:"Sidenav Types"}),me.jsx(Be.Typography,{variant:"small",color:"gray",children:"Choose between 3 different sidenav types."}),me.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[me.jsx(Be.Button,{variant:s==="dark"?"gradient":"outlined",onClick:()=>Op(t,"dark"),children:"Dark"}),me.jsx(Be.Button,{variant:s==="transparent"?"gradient":"outlined",onClick:()=>Op(t,"transparent"),children:"Transparent"}),me.jsx(Be.Button,{variant:s==="white"?"gradient":"outlined",onClick:()=>Op(t,"white"),children:"White"})]})]}),me.jsxs("div",{className:"mb-12",children:[me.jsx("hr",{}),me.jsxs("div",{className:"flex items-center justify-between py-5",children:[me.jsx(Be.Typography,{variant:"h6",color:"blue-gray",children:"Navbar Fixed"}),me.jsx(Be.Switch,{id:"navbar-fixed",value:l,onChange:()=>w4(t,!l)})]}),me.jsx("hr",{}),me.jsxs("div",{className:"my-8 flex flex-col gap-4",children:[me.jsx("a",{href:"https://www.creative-tim.com/product/material-tailwind-dashboard-react?rel=mtdr",target:"_black",children:me.jsx(Be.Button,{variant:"gradient",fullWidth:!0,children:"Free Download"})}),me.jsx("a",{href:"https://www.material-tailwind.com/docs/react/installation?rel=mtdr",target:"_black",children:me.jsx(Be.Button,{variant:"outlined",color:"blue-gray",fullWidth:!0,children:"View Documentation"})}),me.jsx("a",{href:"https://www.material-tailwind.com/blocks/react?rel=mtdr",target:"_black",children:me.jsx(Be.Button,{variant:"outlined",color:"blue-gray",fullWidth:!0,children:"Material Tailwind PRO"})})]}),me.jsxs("a",{className:"mx-auto flex items-center justify-center gap-2",href:"https://github.com/creativetimofficial/material-tailwind-dashboard-react",target:"_blank",rel:"noreferrer",children:[me.jsx(Be.Chip,{value:`${f} - Stars`,icon:me.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"mt-px ml-1.5 h-4 w-4",children:me.jsx("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z",clipRule:"evenodd"})}),className:"bg-blue-gray-900 px-4"}),me.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:me.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})]})]}),me.jsxs("div",{className:"text-center",children:[me.jsx(Be.Typography,{variant:"h6",color:"blue-gray",children:"Thank you for sharing ❤️"}),me.jsxs("div",{className:"mt-4 flex justify-center gap-2",children:[me.jsxs(Be.Button,{variant:"gradient",className:"flex items-center gap-2",children:[me.jsx("i",{className:"fa-brands fa-twitter text-white"}),"Tweet"]}),me.jsxs(Be.Button,{variant:"gradient",className:"flex items-center gap-2",children:[me.jsx("i",{className:"fa-brands fa-facebook text-white"}),"Share"]})]})]})]})]})}u_.displayName="/src/widgets/layout/configurator.jsx";function c_({brandName:e,brandLink:t,routes:r}){const a=new Date().getFullYear();return me.jsx("footer",{className:"py-2",children:me.jsx("div",{className:"flex w-full flex-wrap items-center justify-center gap-6 px-2 md:justify-between",children:me.jsxs(Be.Typography,{variant:"small",className:"font-normal text-inherit",children:["© ",a,", made with"," ",me.jsx(kN,{className:"-mt-0.5 inline-block h-3.5 w-3.5 text-red-600"})," by"," ",me.jsx("a",{href:t,target:"_blank",className:"transition-colors hover:text-blue-500 font-bold",children:e})," ","for a better web."]})})})}c_.displayName="/src/widgets/layout/footer.jsx";Nt.string,Nt.arrayOf(Nt.object).isRequired,Nt.node;function Zd({color:e,icon:t,title:r,value:a,footer:s}){return me.jsxs(Be.Card,{className:"border border-blue-gray-100 shadow-sm",children:[me.jsx(Be.CardHeader,{variant:"gradient",color:e,floated:!1,shadow:!1,className:"absolute grid h-12 w-12 place-items-center",children:t}),me.jsxs(Be.CardBody,{className:"p-4 text-right",children:[me.jsx(Be.Typography,{variant:"small",className:"font-normal text-blue-gray-600",children:r}),me.jsx(Be.Typography,{variant:"h4",color:"blue-gray",children:a})]}),s&&me.jsx(Be.CardFooter,{className:"border-t border-blue-gray-50 p-4",children:s})]})}Zd.defaultProps={color:"blue",footer:null};Zd.propTypes={color:Nt.oneOf(["white","blue-gray","gray","brown","deep-orange","orange","amber","yellow","lime","light-green","green","teal","cyan","light-blue","blue","indigo","deep-purple","purple","pink","red"]),icon:Nt.node.isRequired,title:Nt.node.isRequired,value:Nt.node.isRequired,footer:Nt.node};Zd.displayName="/src/widgets/cards/statistics-card.jsx";Nt.string.isRequired,Nt.node,Nt.object;Nt.string.isRequired,Nt.string.isRequired,Nt.node.isRequired,Nt.node;var d_={},Jh={exports:{}};/*!
* ApexCharts v3.44.0
* (c) 2018-2023 ApexCharts
* Released under the MIT License.
*/(function(e,t){function r(J,n){var o=Object.keys(J);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(J);n&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(J,u).enumerable})),o.push.apply(o,i)}return o}function a(J){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(i){S(J,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(i){Object.defineProperty(J,i,Object.getOwnPropertyDescriptor(o,i))})}return J}function s(J){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s(J)}function l(J,n){if(!(J instanceof n))throw new TypeError("Cannot call a class as a function")}function f(J,n){for(var o=0;o<n.length;o++){var i=n[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(J,i.key,i)}}function b(J,n,o){return n&&f(J.prototype,n),o&&f(J,o),J}function S(J,n,o){return n in J?Object.defineProperty(J,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):J[n]=o,J}function T(J,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(n&&n.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),n&&j(J,n)}function O(J){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},O(J)}function j(J,n){return j=Object.setPrototypeOf||function(o,i){return o.__proto__=i,o},j(J,n)}function F(J,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(J)}function z(J){var n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,i=O(J);if(n){var u=O(this).constructor;o=Reflect.construct(i,arguments,u)}else o=i.apply(this,arguments);return F(this,o)}}function D(J,n){return function(o){if(Array.isArray(o))return o}(J)||function(o,i){var u=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(u!=null){var c,d,h=[],x=!0,k=!1;try{for(u=u.call(o);!(x=(c=u.next()).done)&&(h.push(c.value),!i||h.length!==i);x=!0);}catch(E){k=!0,d=E}finally{try{x||u.return==null||u.return()}finally{if(k)throw d}}return h}}(J,n)||P(J,n)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R(J){return function(n){if(Array.isArray(n))return y(n)}(J)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(J)||P(J)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P(J,n){if(J){if(typeof J=="string")return y(J,n);var o=Object.prototype.toString.call(J).slice(8,-1);return o==="Object"&&J.constructor&&(o=J.constructor.name),o==="Map"||o==="Set"?Array.from(J):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(J,n):void 0}}function y(J,n){(n==null||n>J.length)&&(n=J.length);for(var o=0,i=new Array(n);o<n;o++)i[o]=J[o];return i}var p=function(){function J(){l(this,J)}return b(J,[{key:"shadeRGBColor",value:function(n,o){var i=o.split(","),u=n<0?0:255,c=n<0?-1*n:n,d=parseInt(i[0].slice(4),10),h=parseInt(i[1],10),x=parseInt(i[2],10);return"rgb("+(Math.round((u-d)*c)+d)+","+(Math.round((u-h)*c)+h)+","+(Math.round((u-x)*c)+x)+")"}},{key:"shadeHexColor",value:function(n,o){var i=parseInt(o.slice(1),16),u=n<0?0:255,c=n<0?-1*n:n,d=i>>16,h=i>>8&255,x=255&i;return"#"+(16777216+65536*(Math.round((u-d)*c)+d)+256*(Math.round((u-h)*c)+h)+(Math.round((u-x)*c)+x)).toString(16).slice(1)}},{key:"shadeColor",value:function(n,o){return J.isColorHex(o)?this.shadeHexColor(n,o):this.shadeRGBColor(n,o)}}],[{key:"bind",value:function(n,o){return function(){return n.apply(o,arguments)}}},{key:"isObject",value:function(n){return n&&s(n)==="object"&&!Array.isArray(n)&&n!=null}},{key:"is",value:function(n,o){return Object.prototype.toString.call(o)==="[object "+n+"]"}},{key:"listToArray",value:function(n){var o,i=[];for(o=0;o<n.length;o++)i[o]=n[o];return i}},{key:"extend",value:function(n,o){var i=this;typeof Object.assign!="function"&&(Object.assign=function(c){if(c==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=Object(c),h=1;h<arguments.length;h++){var x=arguments[h];if(x!=null)for(var k in x)x.hasOwnProperty(k)&&(d[k]=x[k])}return d});var u=Object.assign({},n);return this.isObject(n)&&this.isObject(o)&&Object.keys(o).forEach(function(c){i.isObject(o[c])&&c in n?u[c]=i.extend(n[c],o[c]):Object.assign(u,S({},c,o[c]))}),u}},{key:"extendArray",value:function(n,o){var i=[];return n.map(function(u){i.push(J.extend(o,u))}),n=i}},{key:"monthMod",value:function(n){return n%12}},{key:"clone",value:function(n){if(J.is("Array",n)){for(var o=[],i=0;i<n.length;i++)o[i]=this.clone(n[i]);return o}if(J.is("Null",n))return null;if(J.is("Date",n))return n;if(s(n)==="object"){var u={};for(var c in n)n.hasOwnProperty(c)&&(u[c]=this.clone(n[c]));return u}return n}},{key:"log10",value:function(n){return Math.log(n)/Math.LN10}},{key:"roundToBase10",value:function(n){return Math.pow(10,Math.floor(Math.log10(n)))}},{key:"roundToBase",value:function(n,o){return Math.pow(o,Math.floor(Math.log(n)/Math.log(o)))}},{key:"parseNumber",value:function(n){return n===null?n:parseFloat(n)}},{key:"stripNumber",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(n)?n:parseFloat(n.toPrecision(o))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(n){var o=String(n).split(/[eE]/);if(o.length===1)return o[0];var i="",u=n<0?"-":"",c=o[0].replace(".",""),d=Number(o[1])+1;if(d<0){for(i=u+"0.";d++;)i+="0";return i+c.replace(/^-/,"")}for(d-=c.length;d--;)i+="0";return c+i}},{key:"getDimensions",value:function(n){var o=getComputedStyle(n,null),i=n.clientHeight,u=n.clientWidth;return i-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),[u-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i]}},{key:"getBoundingClientRect",value:function(n){var o=n.getBoundingClientRect();return{top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:n.clientWidth,height:n.clientHeight,x:o.left,y:o.top}}},{key:"getLargestStringFromArr",value:function(n){return n.reduce(function(o,i){return Array.isArray(i)&&(i=i.reduce(function(u,c){return u.length>c.length?u:c})),o.length>i.length?o:i},0)}},{key:"hexToRgba",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;n.substring(0,1)!=="#"&&(n="#999999");var i=n.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var u=0;u<i.length;u++)i[u]=parseInt(i[u].length===1?i[u]+i[u]:i[u],16);return o!==void 0&&i.push(o),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(n){return parseFloat(n.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(n){return(n=n.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&n.length===4?"#"+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(n)}},{key:"getPolygonPos",value:function(n,o){for(var i=[],u=2*Math.PI/o,c=0;c<o;c++){var d={};d.x=n*Math.sin(c*u),d.y=-n*Math.cos(c*u),i.push(d)}return i}},{key:"polarToCartesian",value:function(n,o,i,u){var c=(u-90)*Math.PI/180;return{x:n+i*Math.cos(c),y:o+i*Math.sin(c)}}},{key:"escapeString",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",i=n.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,o)}},{key:"negToZero",value:function(n){return n<0?0:n}},{key:"moveIndexInArray",value:function(n,o,i){if(i>=n.length)for(var u=i-n.length+1;u--;)n.push(void 0);return n.splice(i,0,n.splice(o,1)[0]),n}},{key:"extractNumber",value:function(n){return parseFloat(n.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(n,o){for(;(n=n.parentElement)&&!n.classList.contains(o););return n}},{key:"setELstyles",value:function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n.style.key=o[i])}},{key:"isNumber",value:function(n){return!isNaN(n)&&parseFloat(Number(n))===n&&!isNaN(parseInt(n,10))}},{key:"isFloat",value:function(n){return Number(n)===n&&n%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var n=window.navigator.userAgent,o=n.indexOf("MSIE ");if(o>0)return parseInt(n.substring(o+5,n.indexOf(".",o)),10);if(n.indexOf("Trident/")>0){var i=n.indexOf("rv:");return parseInt(n.substring(i+3,n.indexOf(".",i)),10)}var u=n.indexOf("Edge/");return u>0&&parseInt(n.substring(u+5,n.indexOf(".",u)),10)}}]),J}(),v=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.setEasingFunctions()}return b(J,[{key:"setEasingFunctions",value:function(){var n;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":n="-";break;case"easein":n="<";break;case"easeout":n=">";break;case"easeinout":default:n="<>";break;case"swing":n=function(o){var i=1.70158;return(o-=1)*o*((i+1)*o+i)+1};break;case"bounce":n=function(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375};break;case"elastic":n=function(o){return o===!!o?o:Math.pow(2,-10*o)*Math.sin((o-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=n}}},{key:"animateLine",value:function(n,o,i,u){n.attr(o).animate(u).attr(i)}},{key:"animateMarker",value:function(n,o,i,u,c,d){o||(o=0),n.attr({r:o,width:o,height:o}).animate(u,c).attr({r:i,width:i.width,height:i.height}).afterAll(function(){d()})}},{key:"animateCircle",value:function(n,o,i,u,c){n.attr({r:o.r,cx:o.cx,cy:o.cy}).animate(u,c).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(n,o,i,u,c){n.attr(o).animate(u).attr(i).afterAll(function(){return c()})}},{key:"animatePathsGradually",value:function(n){var o=n.el,i=n.realIndex,u=n.j,c=n.fill,d=n.pathFrom,h=n.pathTo,x=n.speed,k=n.delay,E=this.w,N=0;E.config.chart.animations.animateGradually.enabled&&(N=E.config.chart.animations.animateGradually.delay),E.config.chart.animations.dynamicAnimation.enabled&&E.globals.dataChanged&&E.config.chart.type!=="bar"&&(N=0),this.morphSVG(o,i,u,E.config.chart.type!=="line"||E.globals.comboCharts?c:"stroke",d,h,x,k*N)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(n){var o=n.el;o.classList.remove("apexcharts-element-hidden"),o.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(n){var o=this.w;o.globals.animationEnded||(o.globals.animationEnded=!0,this.showDelayedElements(),typeof o.config.chart.events.animationEnd=="function"&&o.config.chart.events.animationEnd(this.ctx,{el:n,w:o}))}},{key:"morphSVG",value:function(n,o,i,u,c,d,h,x){var k=this,E=this.w;c||(c=n.attr("pathFrom")),d||(d=n.attr("pathTo"));var N=function(L){return E.config.chart.type==="radar"&&(h=1),"M 0 ".concat(E.globals.gridHeight)};(!c||c.indexOf("undefined")>-1||c.indexOf("NaN")>-1)&&(c=N()),(!d||d.indexOf("undefined")>-1||d.indexOf("NaN")>-1)&&(d=N()),E.globals.shouldAnimate||(h=1),n.plot(c).animate(1,E.globals.easing,x).plot(c).animate(h,E.globals.easing,x).plot(d).afterAll(function(){p.isNumber(i)?i===E.globals.series[E.globals.maxValsInArrayIndex].length-2&&E.globals.shouldAnimate&&k.animationCompleted(n):u!=="none"&&E.globals.shouldAnimate&&(!E.globals.comboCharts&&o===E.globals.series.length-1||E.globals.comboCharts)&&k.animationCompleted(n),k.showDelayedElements()})}}]),J}(),g=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"getDefaultFilter",value:function(n,o){var i=this.w;n.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),i.config.states.normal.filter!=="none"?this.applyFilter(n,o,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(n,i.config.chart.dropShadow,o)}},{key:"addNormalFilter",value:function(n,o){var i=this.w;i.config.chart.dropShadow.enabled&&!n.node.classList.contains("apexcharts-marker")&&this.dropShadow(n,i.config.chart.dropShadow,o)}},{key:"addLightenFilter",value:function(n,o,i){var u=this,c=this.w,d=i.intensity;n.unfilter(!0),new window.SVG.Filter,n.filter(function(h){var x=c.config.chart.dropShadow;(x.enabled?u.addShadow(h,o,x):h).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:d}})}),n.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(n.filterer.node)}},{key:"addDarkenFilter",value:function(n,o,i){var u=this,c=this.w,d=i.intensity;n.unfilter(!0),new window.SVG.Filter,n.filter(function(h){var x=c.config.chart.dropShadow;(x.enabled?u.addShadow(h,o,x):h).componentTransfer({rgb:{type:"linear",slope:d}})}),n.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(n.filterer.node)}},{key:"applyFilter",value:function(n,o,i){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(n,o);break;case"lighten":this.addLightenFilter(n,o,{intensity:u});break;case"darken":this.addDarkenFilter(n,o,{intensity:u})}}},{key:"addShadow",value:function(n,o,i){var u=i.blur,c=i.top,d=i.left,h=i.color,x=i.opacity,k=n.flood(Array.isArray(h)?h[o]:h,x).composite(n.sourceAlpha,"in").offset(d,c).gaussianBlur(u).merge(n.source);return n.blend(n.source,k)}},{key:"dropShadow",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=o.top,c=o.left,d=o.blur,h=o.color,x=o.opacity,k=o.noUserSpaceOnUse,E=this.w;return n.unfilter(!0),p.isIE()&&E.config.chart.type==="radialBar"||(h=Array.isArray(h)?h[i]:h,n.filter(function(N){var L=null;L=p.isSafari()||p.isFirefox()||p.isIE()?N.flood(h,x).composite(N.sourceAlpha,"in").offset(c,u).gaussianBlur(d):N.flood(h,x).composite(N.sourceAlpha,"in").offset(c,u).gaussianBlur(d).merge(N.source),N.blend(N.source,L)}),k||n.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(n.filterer.node)),n}},{key:"setSelectionFilter",value:function(n,o,i){var u=this.w;if(u.globals.selectedDataPoints[o]!==void 0&&u.globals.selectedDataPoints[o].indexOf(i)>-1){n.node.setAttribute("selected",!0);var c=u.config.states.active.filter;c!=="none"&&this.applyFilter(n,o,c.type,c.value)}}},{key:"_scaleFilterSize",value:function(n){(function(o){for(var i in o)o.hasOwnProperty(i)&&n.setAttribute(i,o[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),J}(),m=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"roundPathCorners",value:function(n,o){function i(de,we,Ce){var Ie=we.x-de.x,We=we.y-de.y,Fe=Math.sqrt(Ie*Ie+We*We);return u(de,we,Math.min(1,Ce/Fe))}function u(de,we,Ce){return{x:de.x+(we.x-de.x)*Ce,y:de.y+(we.y-de.y)*Ce}}function c(de,we){de.length>2&&(de[de.length-2]=we.x,de[de.length-1]=we.y)}function d(de){return{x:parseFloat(de[de.length-2]),y:parseFloat(de[de.length-1])}}n.indexOf("NaN")>-1&&(n="");var h=n.split(/[,\s]/).reduce(function(de,we){var Ce=we.match("([a-zA-Z])(.+)");return Ce?(de.push(Ce[1]),de.push(Ce[2])):de.push(we),de},[]).reduce(function(de,we){return parseFloat(we)==we&&de.length?de[de.length-1].push(we):de.push([we]),de},[]),x=[];if(h.length>1){var k=d(h[0]),E=null;h[h.length-1][0]=="Z"&&h[0].length>2&&(E=["L",k.x,k.y],h[h.length-1]=E),x.push(h[0]);for(var N=1;N<h.length;N++){var L=x[x.length-1],W=h[N],G=W==E?h[1]:h[N+1];if(G&&L&&L.length>2&&W[0]=="L"&&G.length>2&&G[0]=="L"){var q,Q,re=d(L),ie=d(W),C=d(G);q=i(ie,re,o),Q=i(ie,C,o),c(W,q),W.origPoint=ie,x.push(W);var I=u(q,ie,.5),$=u(ie,Q,.5),te=["C",I.x,I.y,$.x,$.y,Q.x,Q.y];te.origPoint=ie,x.push(te)}else x.push(W)}if(E){var ce=d(x[x.length-1]);x.push(["Z"]),c(x[0],ce)}}else x=h;return x.reduce(function(de,we){return de+we.join(" ")+" "},"")}},{key:"drawLine",value:function(n,o,i,u){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,x=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:n,y1:o,x2:i,y2:u,stroke:c,"stroke-dasharray":d,"stroke-width":h,"stroke-linecap":x})}},{key:"drawRect",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,x=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,k=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,E=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,N=this.w.globals.dom.Paper.rect();return N.attr({x:n,y:o,width:i>0?i:0,height:u>0?u:0,rx:c,ry:c,opacity:h,"stroke-width":x!==null?x:0,stroke:k!==null?k:"none","stroke-dasharray":E}),N.node.setAttribute("fill",d),N}},{key:"drawPolygon",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(n).attr({fill:u,stroke:o,"stroke-width":i})}},{key:"drawCircle",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;n<0&&(n=0);var i=this.w.globals.dom.Paper.circle(2*n);return o!==null&&i.attr(o),i}},{key:"drawPath",value:function(n){var o=n.d,i=o===void 0?"":o,u=n.stroke,c=u===void 0?"#a8a8a8":u,d=n.strokeWidth,h=d===void 0?1:d,x=n.fill,k=n.fillOpacity,E=k===void 0?1:k,N=n.strokeOpacity,L=N===void 0?1:N,W=n.classes,G=n.strokeLinecap,q=G===void 0?null:G,Q=n.strokeDashArray,re=Q===void 0?0:Q,ie=this.w;return q===null&&(q=ie.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(ie.globals.gridHeight)),ie.globals.dom.Paper.path(i).attr({fill:x,"fill-opacity":E,stroke:c,"stroke-opacity":L,"stroke-linecap":q,"stroke-width":h,"stroke-dasharray":re,class:W})}},{key:"group",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=this.w.globals.dom.Paper.group();return n!==null&&o.attr(n),o}},{key:"move",value:function(n,o){var i=["M",n,o].join(" ");return i}},{key:"line",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=null;return i===null?u=[" L",n,o].join(" "):i==="H"?u=[" H",n].join(" "):i==="V"&&(u=[" V",o].join(" ")),u}},{key:"curve",value:function(n,o,i,u,c,d){var h=["C",n,o,i,u,c,d].join(" ");return h}},{key:"quadraticCurve",value:function(n,o,i,u){return["Q",n,o,i,u].join(" ")}},{key:"arc",value:function(n,o,i,u,c,d,h){var x="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(x="a");var k=[x,n,o,i,u,c,d,h].join(" ");return k}},{key:"renderPaths",value:function(n){var o,i=n.j,u=n.realIndex,c=n.pathFrom,d=n.pathTo,h=n.stroke,x=n.strokeWidth,k=n.strokeLinecap,E=n.fill,N=n.animationDelay,L=n.initialSpeed,W=n.dataChangeSpeed,G=n.className,q=n.shouldClipToGrid,Q=q===void 0||q,re=n.bindEventsOnPaths,ie=re===void 0||re,C=n.drawShadow,I=C===void 0||C,$=this.w,te=new g(this.ctx),ce=new v(this.ctx),de=this.w.config.chart.animations.enabled,we=de&&this.w.config.chart.animations.dynamicAnimation.enabled,Ce=!!(de&&!$.globals.resized||we&&$.globals.dataChanged&&$.globals.shouldAnimate);Ce?o=c:(o=d,$.globals.animationEnded=!0);var Ie=$.config.stroke.dashArray,We=0;We=Array.isArray(Ie)?Ie[u]:$.config.stroke.dashArray;var Fe=this.drawPath({d:o,stroke:h,strokeWidth:x,fill:E,fillOpacity:1,classes:G,strokeLinecap:k,strokeDashArray:We});if(Fe.attr("index",u),Q&&Fe.attr({"clip-path":"url(#gridRectMask".concat($.globals.cuid,")")}),$.config.states.normal.filter.type!=="none")te.getDefaultFilter(Fe,u);else if($.config.chart.dropShadow.enabled&&I&&(!$.config.chart.dropShadow.enabledOnSeries||$.config.chart.dropShadow.enabledOnSeries&&$.config.chart.dropShadow.enabledOnSeries.indexOf(u)!==-1)){var $e=$.config.chart.dropShadow;te.dropShadow(Fe,$e,u)}ie&&(Fe.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,Fe)),Fe.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,Fe)),Fe.node.addEventListener("mousedown",this.pathMouseDown.bind(this,Fe))),Fe.attr({pathTo:d,pathFrom:c});var Ke={el:Fe,j:i,realIndex:u,pathFrom:c,pathTo:d,fill:E,strokeWidth:x,delay:N};return!de||$.globals.resized||$.globals.dataChanged?!$.globals.resized&&$.globals.dataChanged||ce.showDelayedElements():ce.animatePathsGradually(a(a({},Ke),{},{speed:L})),$.globals.dataChanged&&we&&Ce&&ce.animatePathsGradually(a(a({},Ke),{},{speed:W})),Fe}},{key:"drawPattern",value:function(n,o,i){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(o,i,function(d){n==="horizontalLines"?d.line(0,0,i,0).stroke({color:u,width:c+1}):n==="verticalLines"?d.line(0,0,0,o).stroke({color:u,width:c+1}):n==="slantedLines"?d.line(0,0,o,i).stroke({color:u,width:c}):n==="squares"?d.rect(o,i).fill("none").stroke({color:u,width:c}):n==="circles"&&d.circle(o).fill("none").stroke({color:u,width:c})})}},{key:"drawGradient",value:function(n,o,i,u,c){var d,h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,x=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,k=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,E=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,N=this.w;o.length<9&&o.indexOf("#")===0&&(o=p.hexToRgba(o,u)),i.length<9&&i.indexOf("#")===0&&(i=p.hexToRgba(i,c));var L=0,W=1,G=1,q=null;x!==null&&(L=x[0]!==void 0?x[0]/100:0,W=x[1]!==void 0?x[1]/100:1,G=x[2]!==void 0?x[2]/100:1,q=x[3]!==void 0?x[3]/100:null);var Q=!(N.config.chart.type!=="donut"&&N.config.chart.type!=="pie"&&N.config.chart.type!=="polarArea"&&N.config.chart.type!=="bubble");if(d=k===null||k.length===0?N.globals.dom.Paper.gradient(Q?"radial":"linear",function(C){C.at(L,o,u),C.at(W,i,c),C.at(G,i,c),q!==null&&C.at(q,o,u)}):N.globals.dom.Paper.gradient(Q?"radial":"linear",function(C){(Array.isArray(k[E])?k[E]:k).forEach(function(I){C.at(I.offset/100,I.color,I.opacity)})}),Q){var re=N.globals.gridWidth/2,ie=N.globals.gridHeight/2;N.config.chart.type!=="bubble"?d.attr({gradientUnits:"userSpaceOnUse",cx:re,cy:ie,r:h}):d.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else n==="vertical"?d.from(0,0).to(0,1):n==="diagonal"?d.from(0,0).to(1,1):n==="horizontal"?d.from(0,1).to(1,1):n==="diagonal2"&&d.from(1,0).to(0,1);return d}},{key:"getTextBasedOnMaxWidth",value:function(n){var o=n.text,i=n.maxWidth,u=n.fontSize,c=n.fontFamily,d=this.getTextRects(o,u,c),h=d.width/o.length,x=Math.floor(i/h);return i<d.width?o.slice(0,x-3)+"...":o}},{key:"drawText",value:function(n){var o=this,i=n.x,u=n.y,c=n.text,d=n.textAnchor,h=n.fontSize,x=n.fontFamily,k=n.fontWeight,E=n.foreColor,N=n.opacity,L=n.maxWidth,W=n.cssClass,G=W===void 0?"":W,q=n.isPlainText,Q=q===void 0||q,re=this.w;c===void 0&&(c="");var ie=c;d||(d="start"),E&&E.length||(E=re.config.chart.foreColor),x=x||re.config.chart.fontFamily,k=k||"regular";var C,I={maxWidth:L,fontSize:h=h||"11px",fontFamily:x};return Array.isArray(c)?C=re.globals.dom.Paper.text(function($){for(var te=0;te<c.length;te++)ie=c[te],L&&(ie=o.getTextBasedOnMaxWidth(a({text:c[te]},I))),te===0?$.tspan(ie):$.tspan(ie).newLine()}):(L&&(ie=this.getTextBasedOnMaxWidth(a({text:c},I))),C=Q?re.globals.dom.Paper.plain(c):re.globals.dom.Paper.text(function($){return $.tspan(ie)})),C.attr({x:i,y:u,"text-anchor":d,"dominant-baseline":"auto","font-size":h,"font-family":x,"font-weight":k,fill:E,class:"apexcharts-text "+G}),C.node.style.fontFamily=x,C.node.style.opacity=N,C}},{key:"drawMarker",value:function(n,o,i){n=n||0;var u=i.pSize||0,c=null;if(i.shape==="square"||i.shape==="rect"){var d=i.pRadius===void 0?u/2:i.pRadius;o!==null&&u||(u=0,d=0);var h=1.2*u+d,x=this.drawRect(h,h,h,h,d);x.attr({x:n-h/2,y:o-h/2,cx:n,cy:o,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),c=x}else i.shape!=="circle"&&i.shape||(p.isNumber(o)||(u=0,o=0),c=this.drawCircle(u,{cx:n,cy:o,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return c}},{key:"pathMouseEnter",value:function(n,o){var i=this.w,u=new g(this.ctx),c=parseInt(n.node.getAttribute("index"),10),d=parseInt(n.node.getAttribute("j"),10);if(typeof i.config.chart.events.dataPointMouseEnter=="function"&&i.config.chart.events.dataPointMouseEnter(o,this.ctx,{seriesIndex:c,dataPointIndex:d,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[o,this.ctx,{seriesIndex:c,dataPointIndex:d,w:i}]),(i.config.states.active.filter.type==="none"||n.node.getAttribute("selected")!=="true")&&i.config.states.hover.filter.type!=="none"&&!i.globals.isTouchDevice){var h=i.config.states.hover.filter;u.applyFilter(n,c,h.type,h.value)}}},{key:"pathMouseLeave",value:function(n,o){var i=this.w,u=new g(this.ctx),c=parseInt(n.node.getAttribute("index"),10),d=parseInt(n.node.getAttribute("j"),10);typeof i.config.chart.events.dataPointMouseLeave=="function"&&i.config.chart.events.dataPointMouseLeave(o,this.ctx,{seriesIndex:c,dataPointIndex:d,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[o,this.ctx,{seriesIndex:c,dataPointIndex:d,w:i}]),i.config.states.active.filter.type!=="none"&&n.node.getAttribute("selected")==="true"||i.config.states.hover.filter.type!=="none"&&u.getDefaultFilter(n,c)}},{key:"pathMouseDown",value:function(n,o){var i=this.w,u=new g(this.ctx),c=parseInt(n.node.getAttribute("index"),10),d=parseInt(n.node.getAttribute("j"),10),h="false";if(n.node.getAttribute("selected")==="true"){if(n.node.setAttribute("selected","false"),i.globals.selectedDataPoints[c].indexOf(d)>-1){var x=i.globals.selectedDataPoints[c].indexOf(d);i.globals.selectedDataPoints[c].splice(x,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var k=i.globals.dom.Paper.select(".apexcharts-series path").members,E=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,N=function(G){Array.prototype.forEach.call(G,function(q){q.node.setAttribute("selected","false"),u.getDefaultFilter(q,c)})};N(k),N(E)}n.node.setAttribute("selected","true"),h="true",i.globals.selectedDataPoints[c]===void 0&&(i.globals.selectedDataPoints[c]=[]),i.globals.selectedDataPoints[c].push(d)}if(h==="true"){var L=i.config.states.active.filter;if(L!=="none")u.applyFilter(n,c,L.type,L.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var W=i.config.states.hover.filter;u.applyFilter(n,c,W.type,W.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?u.getDefaultFilter(n,c):(W=i.config.states.hover.filter,u.applyFilter(n,c,W.type,W.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(o,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:c,dataPointIndex:d,w:i}),o&&this.ctx.events.fireEvent("dataPointSelection",[o,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:c,dataPointIndex:d,w:i}])}},{key:"rotateAroundCenter",value:function(n){var o={};return n&&typeof n.getBBox=="function"&&(o=n.getBBox()),{x:o.x+o.width/2,y:o.y+o.height/2}}},{key:"getTextRects",value:function(n,o,i,u){var c=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],d=this.w,h=this.drawText({x:-200,y:-200,text:n,textAnchor:"start",fontSize:o,fontFamily:i,foreColor:"#fff",opacity:0});u&&h.attr("transform",u),d.globals.dom.Paper.add(h);var x=h.bbox();return c||(x=h.node.getBoundingClientRect()),h.remove(),{width:x.width,height:x.height}}},{key:"placeTextWithEllipsis",value:function(n,o,i){if(typeof n.getComputedTextLength=="function"&&(n.textContent=o,o.length>0&&n.getComputedTextLength()>=i/1.1)){for(var u=o.length-3;u>0;u-=3)if(n.getSubStringLength(0,u)<=i/1.1)return void(n.textContent=o.substring(0,u)+"...");n.textContent="."}}}],[{key:"setAttrs",value:function(n,o){for(var i in o)o.hasOwnProperty(i)&&n.setAttribute(i,o[i])}}]),J}(),_=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"getStackedSeriesTotals",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=this.w,i=[];if(o.globals.series.length===0)return i;for(var u=0;u<o.globals.series[o.globals.maxValsInArrayIndex].length;u++){for(var c=0,d=0;d<o.globals.series.length;d++)o.globals.series[d][u]!==void 0&&n.indexOf(d)===-1&&(c+=o.globals.series[d][u]);i.push(c)}return i}},{key:"getSeriesTotalByIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return n===null?this.w.config.series.reduce(function(o,i){return o+i},0):this.w.globals.series[n].reduce(function(o,i){return o+i},0)}},{key:"isSeriesNull",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(n===null?this.w.config.series.filter(function(o){return o!==null}):this.w.config.series[n].data.filter(function(o){return o!==null})).length===0}},{key:"seriesHaveSameValues",value:function(n){return this.w.globals.series[n].every(function(o,i,u){return o===u[0]})}},{key:"getCategoryLabels",value:function(n){var o=this.w,i=n.slice();return o.config.xaxis.convertedCatToNumeric&&(i=n.map(function(u,c){return o.config.xaxis.labels.formatter(u-o.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var n=this.w;n.globals.maxValsInArrayIndex=n.globals.series.map(function(o){return o.length}).indexOf(Math.max.apply(Math,n.globals.series.map(function(o){return o.length})))}},{key:"getLargestMarkerSize",value:function(){var n=this.w,o=0;return n.globals.markers.size.forEach(function(i){o=Math.max(o,i)}),n.config.markers.discrete&&n.config.markers.discrete.length&&n.config.markers.discrete.forEach(function(i){o=Math.max(o,i.size)}),o>0&&(o+=n.config.markers.hover.sizeOffset+1),n.globals.markers.largestSize=o,o}},{key:"getSeriesTotals",value:function(){var n=this.w;n.globals.seriesTotals=n.globals.series.map(function(o,i){var u=0;if(Array.isArray(o))for(var c=0;c<o.length;c++)u+=o[c];else u+=o;return u})}},{key:"getSeriesTotalsXRange",value:function(n,o){var i=this.w;return i.globals.series.map(function(u,c){for(var d=0,h=0;h<u.length;h++)i.globals.seriesX[c][h]>n&&i.globals.seriesX[c][h]<o&&(d+=u[h]);return d})}},{key:"getPercentSeries",value:function(){var n=this.w;n.globals.seriesPercent=n.globals.series.map(function(o,i){var u=[];if(Array.isArray(o))for(var c=0;c<o.length;c++){var d=n.globals.stackedSeriesTotals[c],h=0;d&&(h=100*o[c]/d),u.push(h)}else{var x=100*o/n.globals.seriesTotals.reduce(function(k,E){return k+E},0);u.push(x)}return u})}},{key:"getCalculatedRatios",value:function(){var n,o,i,u,c=this.w.globals,d=[],h=0,x=[],k=.1,E=0;if(c.yRange=[],c.isMultipleYAxis)for(var N=0;N<c.minYArr.length;N++)c.yRange.push(Math.abs(c.minYArr[N]-c.maxYArr[N])),x.push(0);else c.yRange.push(Math.abs(c.minY-c.maxY));c.xRange=Math.abs(c.maxX-c.minX),c.zRange=Math.abs(c.maxZ-c.minZ);for(var L=0;L<c.yRange.length;L++)d.push(c.yRange[L]/c.gridHeight);if(o=c.xRange/c.gridWidth,i=Math.abs(c.initialMaxX-c.initialMinX)/c.gridWidth,n=c.yRange/c.gridWidth,u=c.xRange/c.gridHeight,(h=c.zRange/c.gridHeight*16)||(h=1),c.minY!==Number.MIN_VALUE&&Math.abs(c.minY)!==0&&(c.hasNegs=!0),c.isMultipleYAxis){x=[];for(var W=0;W<d.length;W++)x.push(-c.minYArr[W]/d[W])}else x.push(-c.minY/d[0]),c.minY!==Number.MIN_VALUE&&Math.abs(c.minY)!==0&&(k=-c.minY/n,E=c.minX/o);return{yRatio:d,invertedYRatio:n,zRatio:h,xRatio:o,initialXRatio:i,invertedXRatio:u,baseLineInvertedY:k,baseLineY:x,baseLineX:E}}},{key:"getLogSeries",value:function(n){var o=this,i=this.w;return i.globals.seriesLog=n.map(function(u,c){return i.config.yaxis[c]&&i.config.yaxis[c].logarithmic?u.map(function(d){return d===null?null:o.getLogVal(i.config.yaxis[c].logBase,d,c)}):u}),i.globals.invalidLogScale?n:i.globals.seriesLog}},{key:"getBaseLog",value:function(n,o){return Math.log(o)/Math.log(n)}},{key:"getLogVal",value:function(n,o,i){if(o===0)return 0;var u=this.w,c=u.globals.minYArr[i]===0?-1:this.getBaseLog(n,u.globals.minYArr[i]),d=(u.globals.maxYArr[i]===0?0:this.getBaseLog(n,u.globals.maxYArr[i]))-c;return o<1?o/d:(this.getBaseLog(n,o)-c)/d}},{key:"getLogYRatios",value:function(n){var o=this,i=this.w,u=this.w.globals;return u.yLogRatio=n.slice(),u.logYRange=u.yRange.map(function(c,d){if(i.config.yaxis[d]&&o.w.config.yaxis[d].logarithmic){var h,x=-Number.MAX_VALUE,k=Number.MIN_VALUE;return u.seriesLog.forEach(function(E,N){E.forEach(function(L){i.config.yaxis[N]&&i.config.yaxis[N].logarithmic&&(x=Math.max(L,x),k=Math.min(L,k))})}),h=Math.pow(u.yRange[d],Math.abs(k-x)/u.yRange[d]),u.yLogRatio[d]=h/u.gridHeight,h}}),u.invalidLogScale?n.slice():u.yLogRatio}}],[{key:"checkComboSeries",value:function(n){var o=!1,i=0,u=0;return n.length&&n[0].type!==void 0&&n.forEach(function(c){c.type!=="bar"&&c.type!=="column"&&c.type!=="candlestick"&&c.type!=="boxPlot"||i++,c.type!==void 0&&u++}),u>0&&(o=!0),{comboBarCount:i,comboCharts:o}}},{key:"extendArrayProps",value:function(n,o,i){return o.yaxis&&(o=n.extendYAxis(o,i)),o.annotations&&(o.annotations.yaxis&&(o=n.extendYAxisAnnotations(o)),o.annotations.xaxis&&(o=n.extendXAxisAnnotations(o)),o.annotations.points&&(o=n.extendPointAnnotations(o))),o}}]),J}(),M=function(){function J(n){l(this,J),this.w=n.w,this.annoCtx=n}return b(J,[{key:"setOrientations",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;if(n.label.orientation==="vertical"){var u=o!==null?o:0,c=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(u,"']"));if(c!==null){var d=c.getBoundingClientRect();c.setAttribute("x",parseFloat(c.getAttribute("x"))-d.height+4),n.label.position==="top"?c.setAttribute("y",parseFloat(c.getAttribute("y"))+d.width):c.setAttribute("y",parseFloat(c.getAttribute("y"))-d.width);var h=this.annoCtx.graphics.rotateAroundCenter(c),x=h.x,k=h.y;c.setAttribute("transform","rotate(-90 ".concat(x," ").concat(k,")"))}}}},{key:"addBackgroundToAnno",value:function(n,o){var i=this.w;if(!n||o.label.text===void 0||o.label.text!==void 0&&!String(o.label.text).trim())return null;var u=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),c=n.getBoundingClientRect(),d=o.label.style.padding.left,h=o.label.style.padding.right,x=o.label.style.padding.top,k=o.label.style.padding.bottom;o.label.orientation==="vertical"&&(x=o.label.style.padding.left,k=o.label.style.padding.right,d=o.label.style.padding.top,h=o.label.style.padding.bottom);var E=c.left-u.left-d,N=c.top-u.top-x,L=this.annoCtx.graphics.drawRect(E-i.globals.barPadForNumericAxis,N,c.width+d+h,c.height+x+k,o.label.borderRadius,o.label.style.background,1,o.label.borderWidth,o.label.borderColor,0);return o.id&&L.node.classList.add(o.id),L}},{key:"annotationsBackground",value:function(){var n=this,o=this.w,i=function(u,c,d){var h=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(d,"-annotations .apexcharts-").concat(d,"-annotation-label[rel='").concat(c,"']"));if(h){var x=h.parentNode,k=n.addBackgroundToAnno(h,u);k&&(x.insertBefore(k.node,h),u.label.mouseEnter&&k.node.addEventListener("mouseenter",u.label.mouseEnter.bind(n,u)),u.label.mouseLeave&&k.node.addEventListener("mouseleave",u.label.mouseLeave.bind(n,u)),u.label.click&&k.node.addEventListener("click",u.label.click.bind(n,u)))}};o.config.annotations.xaxis.map(function(u,c){i(u,c,"xaxis")}),o.config.annotations.yaxis.map(function(u,c){i(u,c,"yaxis")}),o.config.annotations.points.map(function(u,c){i(u,c,"point")})}},{key:"getY1Y2",value:function(n,o){var i,u=n==="y1"?o.y:o.y2,c=this.w;if(this.annoCtx.invertAxis){var d=c.globals.labels.indexOf(u);c.config.xaxis.convertedCatToNumeric&&(d=c.globals.categoryLabels.indexOf(u));var h=c.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(d+1)+")");h&&(i=parseFloat(h.getAttribute("y")))}else{var x;c.config.yaxis[o.yAxisIndex].logarithmic?x=(u=new _(this.annoCtx.ctx).getLogVal(u,o.yAxisIndex))/c.globals.yLogRatio[o.yAxisIndex]:x=(u-c.globals.minYArr[o.yAxisIndex])/(c.globals.yRange[o.yAxisIndex]/c.globals.gridHeight),i=c.globals.gridHeight-x,!o.marker||o.y!==void 0&&o.y!==null||(i=0),c.config.yaxis[o.yAxisIndex]&&c.config.yaxis[o.yAxisIndex].reversed&&(i=x)}return typeof u=="string"&&u.indexOf("px")>-1&&(i=parseFloat(u)),i}},{key:"getX1X2",value:function(n,o){var i=this.w,u=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,c=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,d=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,h=(o.x-u)/(d/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(h=(c-o.x)/(d/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(h=this.getStringX(o.x));var x=(o.x2-u)/(d/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(x=(c-o.x2)/(d/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(x=this.getStringX(o.x2)),o.x!==void 0&&o.x!==null||!o.marker||(h=i.globals.gridWidth),n==="x1"&&typeof o.x=="string"&&o.x.indexOf("px")>-1&&(h=parseFloat(o.x)),n==="x2"&&typeof o.x2=="string"&&o.x2.indexOf("px")>-1&&(x=parseFloat(o.x2)),n==="x1"?h:x}},{key:"getStringX",value:function(n){var o=this.w,i=n;o.config.xaxis.convertedCatToNumeric&&o.globals.categoryLabels.length&&(n=o.globals.categoryLabels.indexOf(n)+1);var u=o.globals.labels.indexOf(n),c=o.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(u+1)+")");return c&&(i=parseFloat(c.getAttribute("x"))),i}}]),J}(),X=function(){function J(n){l(this,J),this.w=n.w,this.annoCtx=n,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new M(this.annoCtx)}return b(J,[{key:"addXaxisAnnotation",value:function(n,o,i){var u,c=this.w,d=this.helpers.getX1X2("x1",n),h=n.label.text,x=n.strokeDashArray;if(p.isNumber(d)){if(n.x2===null||n.x2===void 0){var k=this.annoCtx.graphics.drawLine(d+n.offsetX,0+n.offsetY,d+n.offsetX,c.globals.gridHeight+n.offsetY,n.borderColor,x,n.borderWidth);o.appendChild(k.node),n.id&&k.node.classList.add(n.id)}else{if((u=this.helpers.getX1X2("x2",n))<d){var E=d;d=u,u=E}var N=this.annoCtx.graphics.drawRect(d+n.offsetX,0+n.offsetY,u-d,c.globals.gridHeight+n.offsetY,0,n.fillColor,n.opacity,1,n.borderColor,x);N.node.classList.add("apexcharts-annotation-rect"),N.attr("clip-path","url(#gridRectMask".concat(c.globals.cuid,")")),o.appendChild(N.node),n.id&&N.node.classList.add(n.id)}var L=this.annoCtx.graphics.getTextRects(h,parseFloat(n.label.style.fontSize)),W=n.label.position==="top"?4:n.label.position==="center"?c.globals.gridHeight/2+(n.label.orientation==="vertical"?L.width/2:0):c.globals.gridHeight,G=this.annoCtx.graphics.drawText({x:d+n.label.offsetX,y:W+n.label.offsetY-(n.label.orientation==="vertical"?n.label.position==="top"?L.width/2-12:-L.width/2:0),text:h,textAnchor:n.label.textAnchor,fontSize:n.label.style.fontSize,fontFamily:n.label.style.fontFamily,fontWeight:n.label.style.fontWeight,foreColor:n.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(n.label.style.cssClass," ").concat(n.id?n.id:"")});G.attr({rel:i}),o.appendChild(G.node),this.annoCtx.helpers.setOrientations(n,i)}}},{key:"drawXAxisAnnotations",value:function(){var n=this,o=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return o.config.annotations.xaxis.map(function(u,c){n.addXaxisAnnotation(u,i.node,c)}),i}}]),J}(),H=function(){function J(n){l(this,J),this.w=n.w,this.annoCtx=n,this.helpers=new M(this.annoCtx)}return b(J,[{key:"addYaxisAnnotation",value:function(n,o,i){var u,c=this.w,d=n.strokeDashArray,h=this.helpers.getY1Y2("y1",n),x=n.label.text;if(n.y2===null||n.y2===void 0){var k=this.annoCtx.graphics.drawLine(0+n.offsetX,h+n.offsetY,this._getYAxisAnnotationWidth(n),h+n.offsetY,n.borderColor,d,n.borderWidth);o.appendChild(k.node),n.id&&k.node.classList.add(n.id)}else{if((u=this.helpers.getY1Y2("y2",n))>h){var E=h;h=u,u=E}var N=this.annoCtx.graphics.drawRect(0+n.offsetX,u+n.offsetY,this._getYAxisAnnotationWidth(n),h-u,0,n.fillColor,n.opacity,1,n.borderColor,d);N.node.classList.add("apexcharts-annotation-rect"),N.attr("clip-path","url(#gridRectMask".concat(c.globals.cuid,")")),o.appendChild(N.node),n.id&&N.node.classList.add(n.id)}var L=n.label.position==="right"?c.globals.gridWidth:n.label.position==="center"?c.globals.gridWidth/2:0,W=this.annoCtx.graphics.drawText({x:L+n.label.offsetX,y:(u??h)+n.label.offsetY-3,text:x,textAnchor:n.label.textAnchor,fontSize:n.label.style.fontSize,fontFamily:n.label.style.fontFamily,fontWeight:n.label.style.fontWeight,foreColor:n.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(n.label.style.cssClass," ").concat(n.id?n.id:"")});W.attr({rel:i}),o.appendChild(W.node)}},{key:"_getYAxisAnnotationWidth",value:function(n){var o=this.w;return o.globals.gridWidth,(n.width.indexOf("%")>-1?o.globals.gridWidth*parseInt(n.width,10)/100:parseInt(n.width,10))+n.offsetX}},{key:"drawYAxisAnnotations",value:function(){var n=this,o=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return o.config.annotations.yaxis.map(function(u,c){n.addYaxisAnnotation(u,i.node,c)}),i}}]),J}(),B=function(){function J(n){l(this,J),this.w=n.w,this.annoCtx=n,this.helpers=new M(this.annoCtx)}return b(J,[{key:"addPointAnnotation",value:function(n,o,i){this.w;var u=this.helpers.getX1X2("x1",n),c=this.helpers.getY1Y2("y1",n);if(p.isNumber(u)){var d={pSize:n.marker.size,pointStrokeWidth:n.marker.strokeWidth,pointFillColor:n.marker.fillColor,pointStrokeColor:n.marker.strokeColor,shape:n.marker.shape,pRadius:n.marker.radius,class:"apexcharts-point-annotation-marker ".concat(n.marker.cssClass," ").concat(n.id?n.id:"")},h=this.annoCtx.graphics.drawMarker(u+n.marker.offsetX,c+n.marker.offsetY,d);o.appendChild(h.node);var x=n.label.text?n.label.text:"",k=this.annoCtx.graphics.drawText({x:u+n.label.offsetX,y:c+n.label.offsetY-n.marker.size-parseFloat(n.label.style.fontSize)/1.6,text:x,textAnchor:n.label.textAnchor,fontSize:n.label.style.fontSize,fontFamily:n.label.style.fontFamily,fontWeight:n.label.style.fontWeight,foreColor:n.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(n.label.style.cssClass," ").concat(n.id?n.id:"")});if(k.attr({rel:i}),o.appendChild(k.node),n.customSVG.SVG){var E=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+n.customSVG.cssClass});E.attr({transform:"translate(".concat(u+n.customSVG.offsetX,", ").concat(c+n.customSVG.offsetY,")")}),E.node.innerHTML=n.customSVG.SVG,o.appendChild(E.node)}if(n.image.path){var N=n.image.width?n.image.width:20,L=n.image.height?n.image.height:20;h=this.annoCtx.addImage({x:u+n.image.offsetX-N/2,y:c+n.image.offsetY-L/2,width:N,height:L,path:n.image.path,appendTo:".apexcharts-point-annotations"})}n.mouseEnter&&h.node.addEventListener("mouseenter",n.mouseEnter.bind(this,n)),n.mouseLeave&&h.node.addEventListener("mouseleave",n.mouseLeave.bind(this,n)),n.click&&h.node.addEventListener("click",n.click.bind(this,n))}}},{key:"drawPointAnnotations",value:function(){var n=this,o=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return o.config.annotations.points.map(function(u,c){n.addPointAnnotation(u,i.node,c)}),i}}]),J}(),U={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},K=function(){function J(){l(this,J),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return b(J,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[U],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(n){return new Date(n).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(n){return n}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(n){return n+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(n){return n.globals.seriesTotals.reduce(function(o,i){return o+i},0)/n.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(n){return n}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(n){return n}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(n){return n.globals.seriesTotals.reduce(function(o,i){return o+i},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(n){return n!==null?n:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(n){return n?n+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),J}(),ne=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.graphics=new m(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new M(this),this.xAxisAnnotations=new X(this),this.yAxisAnnotations=new H(this),this.pointsAnnotations=new B(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return b(J,[{key:"drawAxesAnnotations",value:function(){var n=this.w;if(n.globals.axisCharts){for(var o=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),u=this.pointsAnnotations.drawPointAnnotations(),c=n.config.chart.animations.enabled,d=[o,i,u],h=[i.node,o.node,u.node],x=0;x<3;x++)n.globals.dom.elGraphical.add(d[x]),!c||n.globals.resized||n.globals.dataChanged||n.config.chart.type!=="scatter"&&n.config.chart.type!=="bubble"&&n.globals.dataPoints>1&&h[x].classList.add("apexcharts-element-hidden"),n.globals.delayedElements.push({el:h[x],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var n=this;this.w.config.annotations.images.map(function(o,i){n.addImage(o,i)})}},{key:"drawTextAnnos",value:function(){var n=this;this.w.config.annotations.texts.map(function(o,i){n.addText(o,i)})}},{key:"addXaxisAnnotation",value:function(n,o,i){this.xAxisAnnotations.addXaxisAnnotation(n,o,i)}},{key:"addYaxisAnnotation",value:function(n,o,i){this.yAxisAnnotations.addYaxisAnnotation(n,o,i)}},{key:"addPointAnnotation",value:function(n,o,i){this.pointsAnnotations.addPointAnnotation(n,o,i)}},{key:"addText",value:function(n,o){var i=n.x,u=n.y,c=n.text,d=n.textAnchor,h=n.foreColor,x=n.fontSize,k=n.fontFamily,E=n.fontWeight,N=n.cssClass,L=n.backgroundColor,W=n.borderWidth,G=n.strokeDashArray,q=n.borderRadius,Q=n.borderColor,re=n.appendTo,ie=re===void 0?".apexcharts-annotations":re,C=n.paddingLeft,I=C===void 0?4:C,$=n.paddingRight,te=$===void 0?4:$,ce=n.paddingBottom,de=ce===void 0?2:ce,we=n.paddingTop,Ce=we===void 0?2:we,Ie=this.w,We=this.graphics.drawText({x:i,y:u,text:c,textAnchor:d||"start",fontSize:x||"12px",fontWeight:E||"regular",fontFamily:k||Ie.config.chart.fontFamily,foreColor:h||Ie.config.chart.foreColor,cssClass:N}),Fe=Ie.globals.dom.baseEl.querySelector(ie);Fe&&Fe.appendChild(We.node);var $e=We.bbox();if(c){var Ke=this.graphics.drawRect($e.x-I,$e.y-Ce,$e.width+I+te,$e.height+de+Ce,q,L||"transparent",1,W,Q,G);Fe.insertBefore(Ke.node,We.node)}}},{key:"addImage",value:function(n,o){var i=this.w,u=n.path,c=n.x,d=c===void 0?0:c,h=n.y,x=h===void 0?0:h,k=n.width,E=k===void 0?20:k,N=n.height,L=N===void 0?20:N,W=n.appendTo,G=W===void 0?".apexcharts-annotations":W,q=i.globals.dom.Paper.image(u);q.size(E,L).move(d,x);var Q=i.globals.dom.baseEl.querySelector(G);return Q&&Q.appendChild(q.node),q}},{key:"addXaxisAnnotationExternal",value:function(n,o,i){return this.addAnnotationExternal({params:n,pushToMemory:o,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(n,o,i){return this.addAnnotationExternal({params:n,pushToMemory:o,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(n,o,i){return this.invertAxis===void 0&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:n,pushToMemory:o,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(n){var o=n.params,i=n.pushToMemory,u=n.context,c=n.type,d=n.contextMethod,h=u,x=h.w,k=x.globals.dom.baseEl.querySelector(".apexcharts-".concat(c,"-annotations")),E=k.childNodes.length+1,N=new K,L=Object.assign({},c==="xaxis"?N.xAxisAnnotation:c==="yaxis"?N.yAxisAnnotation:N.pointAnnotation),W=p.extend(L,o);switch(c){case"xaxis":this.addXaxisAnnotation(W,k,E);break;case"yaxis":this.addYaxisAnnotation(W,k,E);break;case"point":this.addPointAnnotation(W,k,E)}var G=x.globals.dom.baseEl.querySelector(".apexcharts-".concat(c,"-annotations .apexcharts-").concat(c,"-annotation-label[rel='").concat(E,"']")),q=this.helpers.addBackgroundToAnno(G,W);return q&&k.insertBefore(q.node,G),i&&x.globals.memory.methodsToExec.push({context:h,id:W.id?W.id:p.randomId(),method:d,label:"addAnnotation",params:o}),u}},{key:"clearAnnotations",value:function(n){var o=n.w,i=o.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");o.globals.memory.methodsToExec.map(function(u,c){u.label!=="addText"&&u.label!=="addAnnotation"||o.globals.memory.methodsToExec.splice(c,1)}),i=p.listToArray(i),Array.prototype.forEach.call(i,function(u){for(;u.firstChild;)u.removeChild(u.firstChild)})}},{key:"removeAnnotation",value:function(n,o){var i=n.w,u=i.globals.dom.baseEl.querySelectorAll(".".concat(o));u&&(i.globals.memory.methodsToExec.map(function(c,d){c.id===o&&i.globals.memory.methodsToExec.splice(d,1)}),Array.prototype.forEach.call(u,function(c){c.parentElement.removeChild(c)}))}}]),J}(),oe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return b(J,[{key:"isValidDate",value:function(n){return!isNaN(this.parseDate(n))}},{key:"getTimeStamp",value:function(n){return Date.parse(n)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(n).toISOString().substr(0,25)).getTime():new Date(n).getTime():n}},{key:"getDate",value:function(n){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(n).toUTCString()):new Date(n)}},{key:"parseDate",value:function(n){var o=Date.parse(n);if(!isNaN(o))return this.getTimeStamp(n);var i=Date.parse(n.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(n){return Date.parse(n.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(n,o){var i=this.w.globals.locale,u=this.w.config.xaxis.labels.datetimeUTC,c=["\0"].concat(R(i.months)),d=[""].concat(R(i.shortMonths)),h=[""].concat(R(i.days)),x=[""].concat(R(i.shortDays));function k(de,we){var Ce=de+"";for(we=we||2;Ce.length<we;)Ce="0"+Ce;return Ce}var E=u?n.getUTCFullYear():n.getFullYear();o=(o=(o=o.replace(/(^|[^\\])yyyy+/g,"$1"+E)).replace(/(^|[^\\])yy/g,"$1"+E.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+E);var N=(u?n.getUTCMonth():n.getMonth())+1;o=(o=(o=(o=o.replace(/(^|[^\\])MMMM+/g,"$1"+c[0])).replace(/(^|[^\\])MMM/g,"$1"+d[0])).replace(/(^|[^\\])MM/g,"$1"+k(N))).replace(/(^|[^\\])M/g,"$1"+N);var L=u?n.getUTCDate():n.getDate();o=(o=(o=(o=o.replace(/(^|[^\\])dddd+/g,"$1"+h[0])).replace(/(^|[^\\])ddd/g,"$1"+x[0])).replace(/(^|[^\\])dd/g,"$1"+k(L))).replace(/(^|[^\\])d/g,"$1"+L);var W=u?n.getUTCHours():n.getHours(),G=W>12?W-12:W===0?12:W;o=(o=(o=(o=o.replace(/(^|[^\\])HH+/g,"$1"+k(W))).replace(/(^|[^\\])H/g,"$1"+W)).replace(/(^|[^\\])hh+/g,"$1"+k(G))).replace(/(^|[^\\])h/g,"$1"+G);var q=u?n.getUTCMinutes():n.getMinutes();o=(o=o.replace(/(^|[^\\])mm+/g,"$1"+k(q))).replace(/(^|[^\\])m/g,"$1"+q);var Q=u?n.getUTCSeconds():n.getSeconds();o=(o=o.replace(/(^|[^\\])ss+/g,"$1"+k(Q))).replace(/(^|[^\\])s/g,"$1"+Q);var re=u?n.getUTCMilliseconds():n.getMilliseconds();o=o.replace(/(^|[^\\])fff+/g,"$1"+k(re,3)),re=Math.round(re/10),o=o.replace(/(^|[^\\])ff/g,"$1"+k(re)),re=Math.round(re/10);var ie=W<12?"AM":"PM";o=(o=(o=o.replace(/(^|[^\\])f/g,"$1"+re)).replace(/(^|[^\\])TT+/g,"$1"+ie)).replace(/(^|[^\\])T/g,"$1"+ie.charAt(0));var C=ie.toLowerCase();o=(o=o.replace(/(^|[^\\])tt+/g,"$1"+C)).replace(/(^|[^\\])t/g,"$1"+C.charAt(0));var I=-n.getTimezoneOffset(),$=u||!I?"Z":I>0?"+":"-";if(!u){var te=(I=Math.abs(I))%60;$+=k(Math.floor(I/60))+":"+k(te)}o=o.replace(/(^|[^\\])K/g,"$1"+$);var ce=(u?n.getUTCDay():n.getDay())+1;return o=(o=(o=(o=(o=o.replace(new RegExp(h[0],"g"),h[ce])).replace(new RegExp(x[0],"g"),x[ce])).replace(new RegExp(c[0],"g"),c[N])).replace(new RegExp(d[0],"g"),d[N])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(n,o,i){var u=this.w;u.config.xaxis.min!==void 0&&(n=u.config.xaxis.min),u.config.xaxis.max!==void 0&&(o=u.config.xaxis.max);var c=this.getDate(n),d=this.getDate(o),h=this.formatDate(c,"yyyy MM dd HH mm ss fff").split(" "),x=this.formatDate(d,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(h[6],10),maxMillisecond:parseInt(x[6],10),minSecond:parseInt(h[5],10),maxSecond:parseInt(x[5],10),minMinute:parseInt(h[4],10),maxMinute:parseInt(x[4],10),minHour:parseInt(h[3],10),maxHour:parseInt(x[3],10),minDate:parseInt(h[2],10),maxDate:parseInt(x[2],10),minMonth:parseInt(h[1],10)-1,maxMonth:parseInt(x[1],10)-1,minYear:parseInt(h[0],10),maxYear:parseInt(x[0],10)}}},{key:"isLeapYear",value:function(n){return n%4==0&&n%100!=0||n%400==0}},{key:"calculcateLastDaysOfMonth",value:function(n,o,i){return this.determineDaysOfMonths(n,o)-i}},{key:"determineDaysOfYear",value:function(n){var o=365;return this.isLeapYear(n)&&(o=366),o}},{key:"determineRemainingDaysOfYear",value:function(n,o,i){var u=this.daysCntOfYear[o]+i;return o>1&&this.isLeapYear()&&u++,u}},{key:"determineDaysOfMonths",value:function(n,o){var i=30;switch(n=p.monthMod(n),!0){case this.months30.indexOf(n)>-1:n===2&&(i=this.isLeapYear(o)?29:28);break;case this.months31.indexOf(n)>-1:default:i=31}return i}}]),J}(),fe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.tooltipKeyFormat="dd MMM"}return b(J,[{key:"xLabelFormat",value:function(n,o,i,u){var c=this.w;if(c.config.xaxis.type==="datetime"&&c.config.xaxis.labels.formatter===void 0&&c.config.tooltip.x.formatter===void 0){var d=new oe(this.ctx);return d.formatDate(d.getDate(o),c.config.tooltip.x.format)}return n(o,i,u)}},{key:"defaultGeneralFormatter",value:function(n){return Array.isArray(n)?n.map(function(o){return o}):n}},{key:"defaultYFormatter",value:function(n,o,i){var u=this.w;return p.isNumber(n)&&(n=u.globals.yValueDecimal!==0?n.toFixed(o.decimalsInFloat!==void 0?o.decimalsInFloat:u.globals.yValueDecimal):u.globals.maxYArr[i]-u.globals.minYArr[i]<5?n.toFixed(1):n.toFixed(0)),n}},{key:"setLabelFormatters",value:function(){var n=this,o=this.w;return o.globals.xaxisTooltipFormatter=function(i){return n.defaultGeneralFormatter(i)},o.globals.ttKeyFormatter=function(i){return n.defaultGeneralFormatter(i)},o.globals.ttZFormatter=function(i){return i},o.globals.legendFormatter=function(i){return n.defaultGeneralFormatter(i)},o.config.xaxis.labels.formatter!==void 0?o.globals.xLabelFormatter=o.config.xaxis.labels.formatter:o.globals.xLabelFormatter=function(i){if(p.isNumber(i)){if(!o.config.xaxis.convertedCatToNumeric&&o.config.xaxis.type==="numeric"){if(p.isNumber(o.config.xaxis.decimalsInFloat))return i.toFixed(o.config.xaxis.decimalsInFloat);var u=o.globals.maxX-o.globals.minX;return u>0&&u<100?i.toFixed(1):i.toFixed(0)}return o.globals.isBarHorizontal&&o.globals.maxY-o.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},typeof o.config.tooltip.x.formatter=="function"?o.globals.ttKeyFormatter=o.config.tooltip.x.formatter:o.globals.ttKeyFormatter=o.globals.xLabelFormatter,typeof o.config.xaxis.tooltip.formatter=="function"&&(o.globals.xaxisTooltipFormatter=o.config.xaxis.tooltip.formatter),(Array.isArray(o.config.tooltip.y)||o.config.tooltip.y.formatter!==void 0)&&(o.globals.ttVal=o.config.tooltip.y),o.config.tooltip.z.formatter!==void 0&&(o.globals.ttZFormatter=o.config.tooltip.z.formatter),o.config.legend.formatter!==void 0&&(o.globals.legendFormatter=o.config.legend.formatter),o.config.yaxis.forEach(function(i,u){i.labels.formatter!==void 0?o.globals.yLabelFormatters[u]=i.labels.formatter:o.globals.yLabelFormatters[u]=function(c){return o.globals.xyCharts?Array.isArray(c)?c.map(function(d){return n.defaultYFormatter(d,i,u)}):n.defaultYFormatter(c,i,u):c}}),o.globals}},{key:"heatmapLabelFormatters",value:function(){var n=this.w;if(n.config.chart.type==="heatmap"){n.globals.yAxisScale[0].result=n.globals.seriesNames.slice();var o=n.globals.seriesNames.reduce(function(i,u){return i.length>u.length?i:u},0);n.globals.yAxisScale[0].niceMax=o,n.globals.yAxisScale[0].niceMin=o}}}]),J}(),ve=function(J){var n,o=J.isTimeline,i=J.ctx,u=J.seriesIndex,c=J.dataPointIndex,d=J.y1,h=J.y2,x=J.w,k=x.globals.seriesRangeStart[u][c],E=x.globals.seriesRangeEnd[u][c],N=x.globals.labels[c],L=x.config.series[u].name?x.config.series[u].name:"",W=x.globals.ttKeyFormatter,G=x.config.tooltip.y.title.formatter,q={w:x,seriesIndex:u,dataPointIndex:c,start:k,end:E};typeof G=="function"&&(L=G(L,q)),(n=x.config.series[u].data[c])!==null&&n!==void 0&&n.x&&(N=x.config.series[u].data[c].x),o||x.config.xaxis.type==="datetime"&&(N=new fe(i).xLabelFormat(x.globals.ttKeyFormatter,N,N,{i:void 0,dateFormatter:new oe(i).formatDate,w:x})),typeof W=="function"&&(N=W(N,q)),Number.isFinite(d)&&Number.isFinite(h)&&(k=d,E=h);var Q="",re="",ie=x.globals.colors[u];if(x.config.tooltip.x.formatter===void 0)if(x.config.xaxis.type==="datetime"){var C=new oe(i);Q=C.formatDate(C.getDate(k),x.config.tooltip.x.format),re=C.formatDate(C.getDate(E),x.config.tooltip.x.format)}else Q=k,re=E;else Q=x.config.tooltip.x.formatter(k),re=x.config.tooltip.x.formatter(E);return{start:k,end:E,startVal:Q,endVal:re,ylabel:N,color:ie,seriesName:L}},Se=function(J){var n=J.color,o=J.seriesName,i=J.ylabel,u=J.start,c=J.end,d=J.seriesIndex,h=J.dataPointIndex,x=J.ctx.tooltip.tooltipLabels.getFormatters(d);u=x.yLbFormatter(u),c=x.yLbFormatter(c);var k=x.yLbFormatter(J.w.globals.series[d][h]),E=`<span class="value start-value">
`.concat(u,`
</span> <span class="separator">-</span> <span class="value end-value">
`).concat(c,`
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+n+'">'+(o||"")+'</span></div><div> <span class="category">'+i+": </span> "+(J.w.globals.comboCharts?J.w.config.series[d].type==="rangeArea"||J.w.config.series[d].type==="rangeBar"?E:"<span>".concat(k,"</span>"):E)+" </div></div>"},he=function(){function J(n){l(this,J),this.opts=n}return b(J,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(n){return this.hideYAxis(),p.extend(n,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),a(a({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var n=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(o){var i=o.seriesIndex,u=o.dataPointIndex,c=o.w;return n._getBoxTooltip(c,i,u,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var n=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(o){var i=o.seriesIndex,u=o.dataPointIndex,c=o.w;return n._getBoxTooltip(c,i,u,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(n,o){o.ctx;var i=o.seriesIndex,u=o.dataPointIndex,c=o.w,d=function(){var h=c.globals.seriesRangeStart[i][u];return c.globals.seriesRangeEnd[i][u]-h};return c.globals.comboCharts?c.config.series[i].type==="rangeBar"||c.config.series[i].type==="rangeArea"?d():n:d()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(n){return n.w.config.plotOptions&&n.w.config.plotOptions.bar&&n.w.config.plotOptions.bar.horizontal?function(o){var i=ve(a(a({},o),{},{isTimeline:!0})),u=i.color,c=i.seriesName,d=i.ylabel,h=i.startVal,x=i.endVal;return Se(a(a({},o),{},{color:u,seriesName:c,ylabel:d,start:h,end:x}))}(n):function(o){var i=ve(o),u=i.color,c=i.seriesName,d=i.ylabel,h=i.start,x=i.end;return Se(a(a({},o),{},{color:u,seriesName:c,ylabel:d,start:h,end:x}))}(n)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(n){var o,i;return(o=n.plotOptions.bar)!==null&&o!==void 0&&o.barHeight||(n.plotOptions.bar.barHeight=2),(i=n.plotOptions.bar)!==null&&i!==void 0&&i.columnWidth||(n.plotOptions.bar.columnWidth=2),n}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(n){return function(o){var i=ve(o),u=i.color,c=i.seriesName,d=i.ylabel,h=i.start,x=i.end;return Se(a(a({},o),{},{color:u,seriesName:c,ylabel:d,start:h,end:x}))}(n)}}}}},{key:"brush",value:function(n){return p.extend(n,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(n){n.dataLabels=n.dataLabels||{},n.dataLabels.formatter=n.dataLabels.formatter||void 0;var o=n.dataLabels.formatter;return n.yaxis.forEach(function(i,u){n.yaxis[u].min=0,n.yaxis[u].max=100}),n.chart.type==="bar"&&(n.dataLabels.formatter=o||function(i){return typeof i=="number"&&i?i.toFixed(0)+"%":i}),n}},{key:"stackedBars",value:function(){var n=this.bar();return a(a({},n),{},{plotOptions:a(a({},n.plotOptions),{},{bar:a(a({},n.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(n){return n.xaxis.convertedCatToNumeric=!0,n}},{key:"convertCatToNumericXaxis",value:function(n,o,i){n.xaxis.type="numeric",n.xaxis.labels=n.xaxis.labels||{},n.xaxis.labels.formatter=n.xaxis.labels.formatter||function(d){return p.isNumber(d)?Math.floor(d):d};var u=n.xaxis.labels.formatter,c=n.xaxis.categories&&n.xaxis.categories.length?n.xaxis.categories:n.labels;return i&&i.length&&(c=i.map(function(d){return Array.isArray(d)?d:String(d)})),c&&c.length&&(n.xaxis.labels.formatter=function(d){return p.isNumber(d)?u(c[Math.floor(d)-1]):u(d)}),n.xaxis.categories=[],n.labels=[],n.xaxis.tickAmount=n.xaxis.tickAmount||"dataPoints",n}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(n){return n.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(n){return n},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(n,o,i,u,c){var d=n.globals.seriesCandleO[o][i],h=n.globals.seriesCandleH[o][i],x=n.globals.seriesCandleM[o][i],k=n.globals.seriesCandleL[o][i],E=n.globals.seriesCandleC[o][i];return n.config.series[o].type&&n.config.series[o].type!==c?`<div class="apexcharts-custom-tooltip">
`.concat(n.config.series[o].name?n.config.series[o].name:"series-"+(o+1),": <strong>").concat(n.globals.series[o][i],`</strong>
</div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(n.config.chart.type,'">')+"<div>".concat(u[0],': <span class="value">')+d+"</span></div>"+"<div>".concat(u[1],': <span class="value">')+h+"</span></div>"+(x?"<div>".concat(u[2],': <span class="value">')+x+"</span></div>":"")+"<div>".concat(u[3],': <span class="value">')+k+"</span></div>"+"<div>".concat(u[4],': <span class="value">')+E+"</span></div></div>"}}]),J}(),ue=function(){function J(n){l(this,J),this.opts=n}return b(J,[{key:"init",value:function(n){var o=n.responsiveOverride,i=this.opts,u=new K,c=new he(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var d=u.init(),h={};if(i&&s(i)==="object"){var x,k,E,N,L,W,G,q,Q,re,ie={};ie=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?c[i.chart.type]():c.line(),(x=i.plotOptions)!==null&&x!==void 0&&(k=x.bar)!==null&&k!==void 0&&k.isFunnel&&(ie=c.funnel()),i.chart.stacked&&i.chart.type==="bar"&&(ie=c.stackedBars()),(E=i.chart.brush)!==null&&E!==void 0&&E.enabled&&(ie=c.brush(ie)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=c.stacked100(i)),(N=i.plotOptions)!==null&&N!==void 0&&(L=N.bar)!==null&&L!==void 0&&L.isDumbbell&&(i=c.dumbbell(i)),((W=i)===null||W===void 0||(G=W.stroke)===null||G===void 0?void 0:G.curve)==="monotoneCubic"&&(i.stroke.curve="smooth"),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},o||(i.xaxis.convertedCatToNumeric=!1),((q=(i=this.checkForCatToNumericXAxis(this.chartType,ie,i)).chart.sparkline)!==null&&q!==void 0&&q.enabled||(Q=window.Apex.chart)!==null&&Q!==void 0&&(re=Q.sparkline)!==null&&re!==void 0&&re.enabled)&&(ie=c.sparkline(ie)),h=p.extend(d,ie)}var C=p.extend(h,window.Apex);return d=p.extend(C,i),d=this.handleUserInputErrors(d)}},{key:"checkForCatToNumericXAxis",value:function(n,o,i){var u,c,d=new he(i),h=(n==="bar"||n==="boxPlot")&&((u=i.plotOptions)===null||u===void 0||(c=u.bar)===null||c===void 0?void 0:c.horizontal),x=n==="pie"||n==="polarArea"||n==="donut"||n==="radar"||n==="radialBar"||n==="heatmap",k=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",E=i.xaxis.tickPlacement?i.xaxis.tickPlacement:o.xaxis&&o.xaxis.tickPlacement;return h||x||!k||E==="between"||(i=d.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(n,o){var i=new K;(n.yaxis===void 0||!n.yaxis||Array.isArray(n.yaxis)&&n.yaxis.length===0)&&(n.yaxis={}),n.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(n.yaxis=p.extend(n.yaxis,window.Apex.yaxis)),n.yaxis.constructor!==Array?n.yaxis=[p.extend(i.yAxis,n.yaxis)]:n.yaxis=p.extendArray(n.yaxis,i.yAxis);var u=!1;n.yaxis.forEach(function(d){d.logarithmic&&(u=!0)});var c=n.series;return o&&!c&&(c=o.config.series),u&&c.length!==n.yaxis.length&&c.length&&(n.yaxis=c.map(function(d,h){if(d.name||(c[h].name="series-".concat(h+1)),n.yaxis[h])return n.yaxis[h].seriesName=c[h].name,n.yaxis[h];var x=p.extend(i.yAxis,n.yaxis[0]);return x.show=!1,x})),u&&c.length>1&&c.length!==n.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),n}},{key:"extendAnnotations",value:function(n){return n.annotations===void 0&&(n.annotations={},n.annotations.yaxis=[],n.annotations.xaxis=[],n.annotations.points=[]),n=this.extendYAxisAnnotations(n),n=this.extendXAxisAnnotations(n),n=this.extendPointAnnotations(n)}},{key:"extendYAxisAnnotations",value:function(n){var o=new K;return n.annotations.yaxis=p.extendArray(n.annotations.yaxis!==void 0?n.annotations.yaxis:[],o.yAxisAnnotation),n}},{key:"extendXAxisAnnotations",value:function(n){var o=new K;return n.annotations.xaxis=p.extendArray(n.annotations.xaxis!==void 0?n.annotations.xaxis:[],o.xAxisAnnotation),n}},{key:"extendPointAnnotations",value:function(n){var o=new K;return n.annotations.points=p.extendArray(n.annotations.points!==void 0?n.annotations.points:[],o.pointAnnotation),n}},{key:"checkForDarkTheme",value:function(n){n.theme&&n.theme.mode==="dark"&&(n.tooltip||(n.tooltip={}),n.tooltip.theme!=="light"&&(n.tooltip.theme="dark"),n.chart.foreColor||(n.chart.foreColor="#f6f7f8"),n.chart.background||(n.chart.background="#424242"),n.theme.palette||(n.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(n){var o=n;if(o.tooltip.shared&&o.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(o.chart.type==="bar"&&o.plotOptions.bar.horizontal){if(o.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");o.yaxis[0].reversed&&(o.yaxis[0].opposite=!0),o.xaxis.tooltip.enabled=!1,o.yaxis[0].tooltip.enabled=!1,o.chart.zoom.enabled=!1}return o.chart.type!=="bar"&&o.chart.type!=="rangeBar"||o.tooltip.shared&&o.xaxis.crosshairs.width==="barWidth"&&o.series.length>1&&(o.xaxis.crosshairs.width="tickWidth"),o.chart.type!=="candlestick"&&o.chart.type!=="boxPlot"||o.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(o.chart.type," chart is not supported.")),o.yaxis[0].reversed=!1),o}}]),J}(),ge=function(){function J(){l(this,J)}return b(J,[{key:"initGlobalVars",value:function(n){n.series=[],n.seriesCandleO=[],n.seriesCandleH=[],n.seriesCandleM=[],n.seriesCandleL=[],n.seriesCandleC=[],n.seriesRangeStart=[],n.seriesRangeEnd=[],n.seriesRange=[],n.seriesPercent=[],n.seriesGoals=[],n.seriesX=[],n.seriesZ=[],n.seriesNames=[],n.seriesTotals=[],n.seriesLog=[],n.seriesColors=[],n.stackedSeriesTotals=[],n.seriesXvalues=[],n.seriesYvalues=[],n.labels=[],n.hasXaxisGroups=!1,n.groups=[],n.hasSeriesGroups=!1,n.seriesGroups=[],n.categoryLabels=[],n.timescaleLabels=[],n.noLabelsProvided=!1,n.resizeTimer=null,n.selectionResizeTimer=null,n.delayedElements=[],n.pointsArray=[],n.dataLabelsRects=[],n.isXNumeric=!1,n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1,n.isDataXYZ=!1,n.isMultiLineX=!1,n.isMultipleYAxis=!1,n.maxY=-Number.MAX_VALUE,n.minY=Number.MIN_VALUE,n.minYArr=[],n.maxYArr=[],n.maxX=-Number.MAX_VALUE,n.minX=Number.MAX_VALUE,n.initialMaxX=-Number.MAX_VALUE,n.initialMinX=Number.MAX_VALUE,n.maxDate=0,n.minDate=Number.MAX_VALUE,n.minZ=Number.MAX_VALUE,n.maxZ=-Number.MAX_VALUE,n.minXDiff=Number.MAX_VALUE,n.yAxisScale=[],n.xAxisScale=null,n.xAxisTicksPositions=[],n.yLabelsCoords=[],n.yTitleCoords=[],n.barPadForNumericAxis=0,n.padHorizontal=0,n.xRange=0,n.yRange=[],n.zRange=0,n.dataPoints=0,n.xTickAmount=0}},{key:"globalVars",value:function(n){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:n.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:n.chart.toolbar.autoSelected==="zoom"&&n.chart.toolbar.tools.zoom&&n.chart.zoom.enabled,panEnabled:n.chart.toolbar.autoSelected==="pan"&&n.chart.toolbar.tools.pan,selectionEnabled:n.chart.toolbar.autoSelected==="selection"&&n.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(n){var o=this.globalVars(n);return this.initGlobalVars(o),o.initialConfig=p.extend({},n),o.initialSeries=p.clone(n.series),o.lastXAxis=p.clone(o.initialConfig.xaxis),o.lastYAxis=p.clone(o.initialConfig.yaxis),o}}]),J}(),ye=function(){function J(n){l(this,J),this.opts=n}return b(J,[{key:"init",value:function(){var n=new ue(this.opts).init({responsiveOverride:!1});return{config:n,globals:new ge().init(n)}}}]),J}(),Te=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.opts=null,this.seriesIndex=0}return b(J,[{key:"clippedImgArea",value:function(n){var o=this.w,i=o.config,u=parseInt(o.globals.gridWidth,10),c=parseInt(o.globals.gridHeight,10),d=u>c?u:c,h=n.image,x=0,k=0;n.width===void 0&&n.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(x=i.fill.image.width+1,k=i.fill.image.height):(x=d+1,k=d):(x=n.width,k=n.height);var E=document.createElementNS(o.globals.SVGNS,"pattern");m.setAttrs(E,{id:n.patternID,patternUnits:n.patternUnits?n.patternUnits:"userSpaceOnUse",width:x+"px",height:k+"px"});var N=document.createElementNS(o.globals.SVGNS,"image");E.appendChild(N),N.setAttributeNS(window.SVG.xlink,"href",h),m.setAttrs(N,{x:0,y:0,preserveAspectRatio:"none",width:x+"px",height:k+"px"}),N.style.opacity=n.opacity,o.globals.dom.elDefs.node.appendChild(E)}},{key:"getSeriesIndex",value:function(n){var o=this.w,i=o.config.chart.type;return(i==="bar"||i==="rangeBar")&&o.config.plotOptions.bar.distributed||i==="heatmap"||i==="treemap"?this.seriesIndex=n.seriesNumber:this.seriesIndex=n.seriesNumber%o.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(n){var o=this.w;this.opts=n;var i,u,c,d=this.w.config;this.seriesIndex=this.getSeriesIndex(n);var h=this.getFillColors()[this.seriesIndex];o.globals.seriesColors[this.seriesIndex]!==void 0&&(h=o.globals.seriesColors[this.seriesIndex]),typeof h=="function"&&(h=h({seriesIndex:this.seriesIndex,dataPointIndex:n.dataPointIndex,value:n.value,w:o}));var x=n.fillType?n.fillType:this.getFillType(this.seriesIndex),k=Array.isArray(d.fill.opacity)?d.fill.opacity[this.seriesIndex]:d.fill.opacity;n.color&&(h=n.color),h||(h="#fff",console.warn("undefined color - ApexCharts"));var E=h;if(h.indexOf("rgb")===-1?h.length<9&&(E=p.hexToRgba(h,k)):h.indexOf("rgba")>-1&&(k=p.getOpacityFromRGBA(h)),n.opacity&&(k=n.opacity),x==="pattern"&&(u=this.handlePatternFill({fillConfig:n.fillConfig,patternFill:u,fillColor:h,fillOpacity:k,defaultColor:E})),x==="gradient"&&(c=this.handleGradientFill({fillConfig:n.fillConfig,fillColor:h,fillOpacity:k,i:this.seriesIndex})),x==="image"){var N=d.fill.image.src,L=n.patternID?n.patternID:"";this.clippedImgArea({opacity:k,image:Array.isArray(N)?n.seriesNumber<N.length?N[n.seriesNumber]:N[0]:N,width:n.width?n.width:void 0,height:n.height?n.height:void 0,patternUnits:n.patternUnits,patternID:"pattern".concat(o.globals.cuid).concat(n.seriesNumber+1).concat(L)}),i="url(#pattern".concat(o.globals.cuid).concat(n.seriesNumber+1).concat(L,")")}else i=x==="gradient"?c:x==="pattern"?u:E;return n.solid&&(i=E),i}},{key:"getFillType",value:function(n){var o=this.w;return Array.isArray(o.config.fill.type)?o.config.fill.type[n]:o.config.fill.type}},{key:"getFillColors",value:function(){var n=this.w,o=n.config,i=this.opts,u=[];return n.globals.comboCharts?n.config.series[this.seriesIndex].type==="line"?Array.isArray(n.globals.stroke.colors)?u=n.globals.stroke.colors:u.push(n.globals.stroke.colors):Array.isArray(n.globals.fill.colors)?u=n.globals.fill.colors:u.push(n.globals.fill.colors):o.chart.type==="line"?Array.isArray(n.globals.stroke.colors)?u=n.globals.stroke.colors:u.push(n.globals.stroke.colors):Array.isArray(n.globals.fill.colors)?u=n.globals.fill.colors:u.push(n.globals.fill.colors),i.fillColors!==void 0&&(u=[],Array.isArray(i.fillColors)?u=i.fillColors.slice():u.push(i.fillColors)),u}},{key:"handlePatternFill",value:function(n){var o=n.fillConfig,i=n.patternFill,u=n.fillColor,c=n.fillOpacity,d=n.defaultColor,h=this.w.config.fill;o&&(h=o);var x=this.opts,k=new m(this.ctx),E=Array.isArray(h.pattern.strokeWidth)?h.pattern.strokeWidth[this.seriesIndex]:h.pattern.strokeWidth,N=u;return Array.isArray(h.pattern.style)?i=h.pattern.style[x.seriesNumber]!==void 0?k.drawPattern(h.pattern.style[x.seriesNumber],h.pattern.width,h.pattern.height,N,E,c):d:i=k.drawPattern(h.pattern.style,h.pattern.width,h.pattern.height,N,E,c),i}},{key:"handleGradientFill",value:function(n){var o=n.fillColor,i=n.fillOpacity,u=n.fillConfig,c=n.i,d=this.w.config.fill;u&&(d=a(a({},d),u));var h,x=this.opts,k=new m(this.ctx),E=new p,N=d.gradient.type,L=o,W=d.gradient.opacityFrom===void 0?i:Array.isArray(d.gradient.opacityFrom)?d.gradient.opacityFrom[c]:d.gradient.opacityFrom;L.indexOf("rgba")>-1&&(W=p.getOpacityFromRGBA(L));var G=d.gradient.opacityTo===void 0?i:Array.isArray(d.gradient.opacityTo)?d.gradient.opacityTo[c]:d.gradient.opacityTo;if(d.gradient.gradientToColors===void 0||d.gradient.gradientToColors.length===0)h=d.gradient.shade==="dark"?E.shadeColor(-1*parseFloat(d.gradient.shadeIntensity),o.indexOf("rgb")>-1?p.rgb2hex(o):o):E.shadeColor(parseFloat(d.gradient.shadeIntensity),o.indexOf("rgb")>-1?p.rgb2hex(o):o);else if(d.gradient.gradientToColors[x.seriesNumber]){var q=d.gradient.gradientToColors[x.seriesNumber];h=q,q.indexOf("rgba")>-1&&(G=p.getOpacityFromRGBA(q))}else h=o;if(d.gradient.gradientFrom&&(L=d.gradient.gradientFrom),d.gradient.gradientTo&&(h=d.gradient.gradientTo),d.gradient.inverseColors){var Q=L;L=h,h=Q}return L.indexOf("rgb")>-1&&(L=p.rgb2hex(L)),h.indexOf("rgb")>-1&&(h=p.rgb2hex(h)),k.drawGradient(N,L,h,W,G,x.size,d.gradient.stops,d.gradient.colorStops,c)}}]),J}(),Re=function(){function J(n,o){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"setGlobalMarkerSize",value:function(){var n=this.w;if(n.globals.markers.size=Array.isArray(n.config.markers.size)?n.config.markers.size:[n.config.markers.size],n.globals.markers.size.length>0){if(n.globals.markers.size.length<n.globals.series.length+1)for(var o=0;o<=n.globals.series.length;o++)n.globals.markers.size[o]===void 0&&n.globals.markers.size.push(n.globals.markers.size[0])}else n.globals.markers.size=n.config.series.map(function(i){return n.config.markers.size})}},{key:"plotChartMarkers",value:function(n,o,i,u){var c,d=arguments.length>4&&arguments[4]!==void 0&&arguments[4],h=this.w,x=o,k=n,E=null,N=new m(this.ctx),L=h.config.markers.discrete&&h.config.markers.discrete.length;if((h.globals.markers.size[o]>0||d||L)&&(E=N.group({class:d||L?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(h.globals.cuid,")")),Array.isArray(k.x))for(var W=0;W<k.x.length;W++){var G=i;i===1&&W===0&&(G=0),i===1&&W===1&&(G=1);var q="apexcharts-marker";if(h.config.chart.type!=="line"&&h.config.chart.type!=="area"||h.globals.comboCharts||h.config.tooltip.intersect||(q+=" no-pointer-events"),(Array.isArray(h.config.markers.size)?h.globals.markers.size[o]>0:h.config.markers.size>0)||d||L){p.isNumber(k.y[W])?q+=" w".concat(p.randomId()):q="apexcharts-nullpoint";var Q=this.getMarkerConfig({cssClass:q,seriesIndex:o,dataPointIndex:G});h.config.series[x].data[G]&&(h.config.series[x].data[G].fillColor&&(Q.pointFillColor=h.config.series[x].data[G].fillColor),h.config.series[x].data[G].strokeColor&&(Q.pointStrokeColor=h.config.series[x].data[G].strokeColor)),u&&(Q.pSize=u),(k.x[W]<0||k.x[W]>h.globals.gridWidth||k.y[W]<-h.globals.markers.largestSize||k.y[W]>h.globals.gridHeight+h.globals.markers.largestSize)&&(Q.pSize=0),(c=N.drawMarker(k.x[W],k.y[W],Q)).attr("rel",G),c.attr("j",G),c.attr("index",o),c.node.setAttribute("default-marker-size",Q.pSize),new g(this.ctx).setSelectionFilter(c,o,G),this.addEvents(c),E&&E.add(c)}else h.globals.pointsArray[o]===void 0&&(h.globals.pointsArray[o]=[]),h.globals.pointsArray[o].push([k.x[W],k.y[W]])}return E}},{key:"getMarkerConfig",value:function(n){var o=n.cssClass,i=n.seriesIndex,u=n.dataPointIndex,c=u===void 0?null:u,d=n.finishRadius,h=d===void 0?null:d,x=this.w,k=this.getMarkerStyle(i),E=x.globals.markers.size[i],N=x.config.markers;return c!==null&&N.discrete.length&&N.discrete.map(function(L){L.seriesIndex===i&&L.dataPointIndex===c&&(k.pointStrokeColor=L.strokeColor,k.pointFillColor=L.fillColor,E=L.size,k.pointShape=L.shape)}),{pSize:h===null?E:h,pRadius:N.radius,width:Array.isArray(N.width)?N.width[i]:N.width,height:Array.isArray(N.height)?N.height[i]:N.height,pointStrokeWidth:Array.isArray(N.strokeWidth)?N.strokeWidth[i]:N.strokeWidth,pointStrokeColor:k.pointStrokeColor,pointFillColor:k.pointFillColor,shape:k.pointShape||(Array.isArray(N.shape)?N.shape[i]:N.shape),class:o,pointStrokeOpacity:Array.isArray(N.strokeOpacity)?N.strokeOpacity[i]:N.strokeOpacity,pointStrokeDashArray:Array.isArray(N.strokeDashArray)?N.strokeDashArray[i]:N.strokeDashArray,pointFillOpacity:Array.isArray(N.fillOpacity)?N.fillOpacity[i]:N.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(n){var o=this.w,i=new m(this.ctx);n.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,n)),n.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,n)),n.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,n)),n.node.addEventListener("click",o.config.markers.onClick),n.node.addEventListener("dblclick",o.config.markers.onDblClick),n.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,n),{passive:!0})}},{key:"getMarkerStyle",value:function(n){var o=this.w,i=o.globals.markers.colors,u=o.config.markers.strokeColor||o.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(u)?u[n]:u,pointFillColor:Array.isArray(i)?i[n]:i}}}]),J}(),De=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return b(J,[{key:"draw",value:function(n,o,i){var u=this.w,c=new m(this.ctx),d=i.realIndex,h=i.pointsPos,x=i.zRatio,k=i.elParent,E=c.group({class:"apexcharts-series-markers apexcharts-series-".concat(u.config.chart.type)});if(E.attr("clip-path","url(#gridRectMarkerMask".concat(u.globals.cuid,")")),Array.isArray(h.x))for(var N=0;N<h.x.length;N++){var L=o+1,W=!0;o===0&&N===0&&(L=0),o===0&&N===1&&(L=1);var G=0,q=u.globals.markers.size[d];if(x!==1/0){var Q=u.config.plotOptions.bubble;q=u.globals.seriesZ[d][L],Q.zScaling&&(q/=x),Q.minBubbleRadius&&q<Q.minBubbleRadius&&(q=Q.minBubbleRadius),Q.maxBubbleRadius&&q>Q.maxBubbleRadius&&(q=Q.maxBubbleRadius)}u.config.chart.animations.enabled||(G=q);var re=h.x[N],ie=h.y[N];if(G=G||0,ie!==null&&u.globals.series[d][L]!==void 0||(W=!1),W){var C=this.drawPoint(re,ie,G,q,d,L,o);E.add(C)}k.add(E)}}},{key:"drawPoint",value:function(n,o,i,u,c,d,h){var x=this.w,k=c,E=new v(this.ctx),N=new g(this.ctx),L=new Te(this.ctx),W=new Re(this.ctx),G=new m(this.ctx),q=W.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:k,dataPointIndex:d,finishRadius:x.config.chart.type==="bubble"||x.globals.comboCharts&&x.config.series[c]&&x.config.series[c].type==="bubble"?u:null});u=q.pSize;var Q,re=L.fillPath({seriesNumber:c,dataPointIndex:d,color:q.pointFillColor,patternUnits:"objectBoundingBox",value:x.globals.series[c][h]});if(q.shape==="circle"?Q=G.drawCircle(i):q.shape!=="square"&&q.shape!=="rect"||(Q=G.drawRect(0,0,q.width-q.pointStrokeWidth/2,q.height-q.pointStrokeWidth/2,q.pRadius)),x.config.series[k].data[d]&&x.config.series[k].data[d].fillColor&&(re=x.config.series[k].data[d].fillColor),Q.attr({x:n-q.width/2-q.pointStrokeWidth/2,y:o-q.height/2-q.pointStrokeWidth/2,cx:n,cy:o,fill:re,"fill-opacity":q.pointFillOpacity,stroke:q.pointStrokeColor,r:u,"stroke-width":q.pointStrokeWidth,"stroke-dasharray":q.pointStrokeDashArray,"stroke-opacity":q.pointStrokeOpacity}),x.config.chart.dropShadow.enabled){var ie=x.config.chart.dropShadow;N.dropShadow(Q,ie,c)}if(!this.initialAnim||x.globals.dataChanged||x.globals.resized)x.globals.animationEnded=!0;else{var C=x.config.chart.animations.speed;E.animateMarker(Q,0,q.shape==="circle"?u:{width:q.width,height:q.height},C,x.globals.easing,function(){window.setTimeout(function(){E.animationCompleted(Q)},100)})}if(x.globals.dataChanged&&q.shape==="circle")if(this.dynamicAnim){var I,$,te,ce,de=x.config.chart.animations.dynamicAnimation.speed;(ce=x.globals.previousPaths[c]&&x.globals.previousPaths[c][h])!=null&&(I=ce.x,$=ce.y,te=ce.r!==void 0?ce.r:u);for(var we=0;we<x.globals.collapsedSeries.length;we++)x.globals.collapsedSeries[we].index===c&&(de=1,u=0);n===0&&o===0&&(u=0),E.animateCircle(Q,{cx:I,cy:$,r:te},{cx:n,cy:o,r:u},de,x.globals.easing)}else Q.attr({r:u});return Q.attr({rel:d,j:d,index:c,"default-marker-size":u}),N.setSelectionFilter(Q,c,d),W.addEvents(Q),Q.node.classList.add("apexcharts-marker"),Q}},{key:"centerTextInBubble",value:function(n){var o=this.w;return{y:n+=parseInt(o.config.dataLabels.style.fontSize,10)/4}}}]),J}(),Le=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"dataLabelsCorrection",value:function(n,o,i,u,c,d,h){var x=this.w,k=!1,E=new m(this.ctx).getTextRects(i,h),N=E.width,L=E.height;o<0&&(o=0),o>x.globals.gridHeight+L&&(o=x.globals.gridHeight+L/2),x.globals.dataLabelsRects[u]===void 0&&(x.globals.dataLabelsRects[u]=[]),x.globals.dataLabelsRects[u].push({x:n,y:o,width:N,height:L});var W=x.globals.dataLabelsRects[u].length-2,G=x.globals.lastDrawnDataLabelsIndexes[u]!==void 0?x.globals.lastDrawnDataLabelsIndexes[u][x.globals.lastDrawnDataLabelsIndexes[u].length-1]:0;if(x.globals.dataLabelsRects[u][W]!==void 0){var q=x.globals.dataLabelsRects[u][G];(n>q.x+q.width||o>q.y+q.height||o+L<q.y||n+N<q.x)&&(k=!0)}return(c===0||d)&&(k=!0),{x:n,y:o,textRects:E,drawnextLabel:k}}},{key:"drawDataLabel",value:function(n){var o=this,i=n.type,u=n.pos,c=n.i,d=n.j,h=n.isRangeStart,x=n.strokeWidth,k=x===void 0?2:x,E=this.w,N=new m(this.ctx),L=E.config.dataLabels,W=0,G=0,q=d,Q=null;if(!L.enabled||!Array.isArray(u.x))return Q;Q=N.group({class:"apexcharts-data-labels"});for(var re=0;re<u.x.length;re++)if(W=u.x[re]+L.offsetX,G=u.y[re]+L.offsetY+k,!isNaN(W)){d===1&&re===0&&(q=0),d===1&&re===1&&(q=1);var ie=E.globals.series[c][q];i==="rangeArea"&&(ie=h?E.globals.seriesRangeStart[c][q]:E.globals.seriesRangeEnd[c][q]);var C="",I=function($){return E.config.dataLabels.formatter($,{ctx:o.ctx,seriesIndex:c,dataPointIndex:q,w:E})};E.config.chart.type==="bubble"?(C=I(ie=E.globals.seriesZ[c][q]),G=u.y[re],G=new De(this.ctx).centerTextInBubble(G,c,q).y):ie!==void 0&&(C=I(ie)),this.plotDataLabelsText({x:W,y:G,text:C,i:c,j:q,parent:Q,offsetCorrection:!0,dataLabelsConfig:E.config.dataLabels})}return Q}},{key:"plotDataLabelsText",value:function(n){var o=this.w,i=new m(this.ctx),u=n.x,c=n.y,d=n.i,h=n.j,x=n.text,k=n.textAnchor,E=n.fontSize,N=n.parent,L=n.dataLabelsConfig,W=n.color,G=n.alwaysDrawDataLabel,q=n.offsetCorrection;if(!(Array.isArray(o.config.dataLabels.enabledOnSeries)&&o.config.dataLabels.enabledOnSeries.indexOf(d)<0)){var Q={x:u,y:c,drawnextLabel:!0,textRects:null};q&&(Q=this.dataLabelsCorrection(u,c,x,d,h,G,parseInt(L.style.fontSize,10))),o.globals.zoomed||(u=Q.x,c=Q.y),Q.textRects&&(u<-10-Q.textRects.width||u>o.globals.gridWidth+Q.textRects.width+10)&&(x="");var re=o.globals.dataLabels.style.colors[d];((o.config.chart.type==="bar"||o.config.chart.type==="rangeBar")&&o.config.plotOptions.bar.distributed||o.config.dataLabels.distributed)&&(re=o.globals.dataLabels.style.colors[h]),typeof re=="function"&&(re=re({series:o.globals.series,seriesIndex:d,dataPointIndex:h,w:o})),W&&(re=W);var ie=L.offsetX,C=L.offsetY;if(o.config.chart.type!=="bar"&&o.config.chart.type!=="rangeBar"||(ie=0,C=0),Q.drawnextLabel){var I=i.drawText({width:100,height:parseInt(L.style.fontSize,10),x:u+ie,y:c+C,foreColor:re,textAnchor:k||L.textAnchor,text:x,fontSize:E||L.style.fontSize,fontFamily:L.style.fontFamily,fontWeight:L.style.fontWeight||"normal"});if(I.attr({class:"apexcharts-datalabel",cx:u,cy:c}),L.dropShadow.enabled){var $=L.dropShadow;new g(this.ctx).dropShadow(I,$)}N.add(I),o.globals.lastDrawnDataLabelsIndexes[d]===void 0&&(o.globals.lastDrawnDataLabelsIndexes[d]=[]),o.globals.lastDrawnDataLabelsIndexes[d].push(h)}}}},{key:"addBackgroundToDataLabel",value:function(n,o){var i=this.w,u=i.config.dataLabels.background,c=u.padding,d=u.padding/2,h=o.width,x=o.height,k=new m(this.ctx).drawRect(o.x-c,o.y-d/2,h+2*c,x+d,u.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,u.opacity,u.borderWidth,u.borderColor);return u.dropShadow.enabled&&new g(this.ctx).dropShadow(k,u.dropShadow),k}},{key:"dataLabelsBackground",value:function(){var n=this.w;if(n.config.chart.type!=="bubble")for(var o=n.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<o.length;i++){var u=o[i],c=u.getBBox(),d=null;if(c.width&&c.height&&(d=this.addBackgroundToDataLabel(u,c)),d){u.parentNode.insertBefore(d.node,u);var h=u.getAttribute("fill");n.config.chart.animations.enabled&&!n.globals.resized&&!n.globals.dataChanged?d.animate().attr({fill:h}):d.attr({fill:h}),u.setAttribute("fill",n.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var n=this.w,o=n.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=n.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),u=0;u<o.length;u++)i&&i.insertBefore(o[u],i.nextSibling)}}]),J}(),Oe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.legendInactiveClass="legend-mouseover-inactive"}return b(J,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(n){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(p.escapeString(n),"']"))}},{key:"isSeriesHidden",value:function(n){var o=this.getSeriesByName(n),i=parseInt(o.getAttribute("data:realIndex"),10);return{isHidden:o.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(n,o){var i=this.w;function u(c){for(var d=0;d<c.length;d++)c[d].index===o&&n.node.classList.add("apexcharts-series-collapsed")}u(i.globals.collapsedSeries),u(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(n){var o=this.isSeriesHidden(n);return this.ctx.legend.legendHelpers.toggleDataSeries(o.realIndex,o.isHidden),o.isHidden}},{key:"showSeries",value:function(n){var o=this.isSeriesHidden(n);o.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(o.realIndex,!0)}},{key:"hideSeries",value:function(n){var o=this.isSeriesHidden(n);o.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(o.realIndex,!1)}},{key:"resetSeries",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],u=this.w,c=p.clone(u.globals.initialSeries);u.globals.previousPaths=[],i?(u.globals.collapsedSeries=[],u.globals.ancillaryCollapsedSeries=[],u.globals.collapsedSeriesIndices=[],u.globals.ancillaryCollapsedSeriesIndices=[]):c=this.emptyCollapsedSeries(c),u.config.series=c,n&&(o&&(u.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(c,u.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(n){for(var o=this.w,i=0;i<n.length;i++)o.globals.collapsedSeriesIndices.indexOf(i)>-1&&(n[i].data=[]);return n}},{key:"toggleSeriesOnHover",value:function(n,o){var i=this.w;o||(o=n.target);var u=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(n.type==="mousemove"){var c=parseInt(o.getAttribute("rel"),10)-1,d=null,h=null;i.globals.axisCharts||i.config.chart.type==="radialBar"?i.globals.axisCharts?(d=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(c,"']")),h=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(c,"']"))):d=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(c+1,"']")):d=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(c+1,"'] path"));for(var x=0;x<u.length;x++)u[x].classList.add(this.legendInactiveClass);d!==null&&(i.globals.axisCharts||d.parentNode.classList.remove(this.legendInactiveClass),d.classList.remove(this.legendInactiveClass),h!==null&&h.classList.remove(this.legendInactiveClass))}else if(n.type==="mouseout")for(var k=0;k<u.length;k++)u[k].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(n,o){var i=this,u=this.w,c=u.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),d=function(x){for(var k=0;k<c.length;k++)c[k].classList[x](i.legendInactiveClass)};if(n.type==="mousemove"){var h=parseInt(o.getAttribute("rel"),10)-1;d("add"),function(x){for(var k=0;k<c.length;k++){var E=parseInt(c[k].getAttribute("val"),10);E>=x.from&&E<=x.to&&c[k].classList.remove(i.legendInactiveClass)}}(u.config.plotOptions.heatmap.colorScale.ranges[h])}else n.type==="mouseout"&&d("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=this.w,u=0;if(i.config.series.length>1){for(var c=i.config.series.map(function(h,x){return h.data&&h.data.length>0&&i.globals.collapsedSeriesIndices.indexOf(x)===-1&&(!i.globals.comboCharts||o.length===0||o.length&&o.indexOf(i.config.series[x].type)>-1)?x:-1}),d=n==="asc"?0:c.length-1;n==="asc"?d<c.length:d>=0;n==="asc"?d++:d--)if(c[d]!==-1){u=c[d];break}}return u}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(n,o){return n.type==="bar"||n.type==="column"?o:-1}).filter(function(n){return n!==-1}):this.w.config.series.map(function(n,o){return o})}},{key:"getPreviousPaths",value:function(){var n=this.w;function o(d,h,x){for(var k=d[h].childNodes,E={type:x,paths:[],realIndex:d[h].getAttribute("data:realIndex")},N=0;N<k.length;N++)if(k[N].hasAttribute("pathTo")){var L=k[N].getAttribute("pathTo");E.paths.push({d:L})}n.globals.previousPaths.push(E)}n.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(d){for(var h,x=(h=d,n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(h,"-series .apexcharts-series"))),k=0;k<x.length;k++)o(x,k,d)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n.config.chart.type," .apexcharts-series"));if(i.length>0)for(var u=function(d){for(var h=n.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(d,"'] rect")),x=[],k=function(N){var L=function(G){return h[N].getAttribute(G)},W={x:parseFloat(L("x")),y:parseFloat(L("y")),width:parseFloat(L("width")),height:parseFloat(L("height"))};x.push({rect:W,color:h[N].getAttribute("color")})},E=0;E<h.length;E++)k(E);n.globals.previousPaths.push(x)},c=0;c<i.length;c++)u(c);n.globals.axisCharts||(n.globals.previousPaths=n.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(n){var o=this.w,i=o.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series"));if(i.length>0)for(var u=0;u<i.length;u++){for(var c=o.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series[data\\:realIndex='").concat(u,"'] circle")),d=[],h=0;h<c.length;h++)d.push({x:c[h].getAttribute("cx"),y:c[h].getAttribute("cy"),r:c[h].getAttribute("r")});o.globals.previousPaths.push(d)}}},{key:"clearPreviousPaths",value:function(){var n=this.w;n.globals.previousPaths=[],n.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var n=this.w,o=n.config.noData,i=new m(this.ctx),u=n.globals.svgWidth/2,c=n.globals.svgHeight/2,d="middle";if(n.globals.noData=!0,n.globals.animationEnded=!0,o.align==="left"?(u=10,d="start"):o.align==="right"&&(u=n.globals.svgWidth-10,d="end"),o.verticalAlign==="top"?c=50:o.verticalAlign==="bottom"&&(c=n.globals.svgHeight-50),u+=o.offsetX,c=c+parseInt(o.style.fontSize,10)+2+o.offsetY,o.text!==void 0&&o.text!==""){var h=i.drawText({x:u,y:c,text:o.text,textAnchor:d,fontSize:o.style.fontSize,fontFamily:o.style.fontFamily,foreColor:o.style.color,opacity:1,class:"apexcharts-text-nodata"});n.globals.dom.Paper.add(h)}}},{key:"setNullSeriesToZeroValues",value:function(n){for(var o=this.w,i=0;i<n.length;i++)if(n[i].length===0)for(var u=0;u<n[o.globals.maxValsInArrayIndex].length;u++)n[i].push(0);return n}},{key:"hasAllSeriesEqualX",value:function(){for(var n=!0,o=this.w,i=this.filteredSeriesX(),u=0;u<i.length-1;u++)if(i[u][0]!==i[u+1][0]){n=!1;break}return o.globals.allSeriesHasEqualX=n,n}},{key:"filteredSeriesX",value:function(){var n=this.w.globals.seriesX.map(function(o){return o.length>0?o:[]});return n}}]),J}(),Xe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new _(this.ctx)}return b(J,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var n=this.w.config.series.slice(),o=new Oe(this.ctx);if(this.activeSeriesIndex=o.getActiveConfigSeriesIndex(),n[this.activeSeriesIndex].data!==void 0&&n[this.activeSeriesIndex].data.length>0&&n[this.activeSeriesIndex].data[0]!==null&&n[this.activeSeriesIndex].data[0].x!==void 0&&n[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var n=this.w.config.series.slice(),o=new Oe(this.ctx);if(this.activeSeriesIndex=o.getActiveConfigSeriesIndex(),n[this.activeSeriesIndex].data!==void 0&&n[this.activeSeriesIndex].data.length>0&&n[this.activeSeriesIndex].data[0]!==void 0&&n[this.activeSeriesIndex].data[0]!==null&&n[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(n,o){for(var i=this.w.config,u=this.w.globals,c=i.chart.type==="boxPlot"||i.series[o].type==="boxPlot",d=0;d<n[o].data.length;d++)if(n[o].data[d][1]!==void 0&&(Array.isArray(n[o].data[d][1])&&n[o].data[d][1].length===4&&!c?this.twoDSeries.push(p.parseNumber(n[o].data[d][1][3])):n[o].data[d].length>=5?this.twoDSeries.push(p.parseNumber(n[o].data[d][4])):this.twoDSeries.push(p.parseNumber(n[o].data[d][1])),u.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var h=new Date(n[o].data[d][0]);h=new Date(h).getTime(),this.twoDSeriesX.push(h)}else this.twoDSeriesX.push(n[o].data[d][0]);for(var x=0;x<n[o].data.length;x++)n[o].data[x][2]!==void 0&&(this.threeDSeries.push(n[o].data[x][2]),u.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(n,o){var i=this.w.config,u=this.w.globals,c=new oe(this.ctx),d=o;u.collapsedSeriesIndices.indexOf(o)>-1&&(d=this.activeSeriesIndex);for(var h=0;h<n[o].data.length;h++)n[o].data[h].y!==void 0&&(Array.isArray(n[o].data[h].y)?this.twoDSeries.push(p.parseNumber(n[o].data[h].y[n[o].data[h].y.length-1])):this.twoDSeries.push(p.parseNumber(n[o].data[h].y))),n[o].data[h].goals!==void 0&&Array.isArray(n[o].data[h].goals)?(this.seriesGoals[o]===void 0&&(this.seriesGoals[o]=[]),this.seriesGoals[o].push(n[o].data[h].goals)):(this.seriesGoals[o]===void 0&&(this.seriesGoals[o]=[]),this.seriesGoals[o].push(null));for(var x=0;x<n[d].data.length;x++){var k=typeof n[d].data[x].x=="string",E=Array.isArray(n[d].data[x].x),N=!E&&!!c.isValidDate(n[d].data[x].x.toString());if(k||N)if(k||i.xaxis.convertedCatToNumeric){var L=u.isBarHorizontal&&u.isRangeData;i.xaxis.type!=="datetime"||L?(this.fallbackToCategory=!0,this.twoDSeriesX.push(n[d].data[x].x),isNaN(n[d].data[x].x)||this.w.config.xaxis.type==="category"||typeof n[d].data[x].x=="string"||(u.isXNumeric=!0)):this.twoDSeriesX.push(c.parseDate(n[d].data[x].x))}else i.xaxis.type==="datetime"?this.twoDSeriesX.push(c.parseDate(n[d].data[x].x.toString())):(u.dataFormatXNumeric=!0,u.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(n[d].data[x].x)));else E?(this.fallbackToCategory=!0,this.twoDSeriesX.push(n[d].data[x].x)):(u.isXNumeric=!0,u.dataFormatXNumeric=!0,this.twoDSeriesX.push(n[d].data[x].x))}if(n[o].data[0]&&n[o].data[0].z!==void 0){for(var W=0;W<n[o].data.length;W++)this.threeDSeries.push(n[o].data[W].z);u.isDataXYZ=!0}}},{key:"handleRangeData",value:function(n,o){var i=this.w.globals,u={};return this.isFormat2DArray()?u=this.handleRangeDataFormat("array",n,o):this.isFormatXY()&&(u=this.handleRangeDataFormat("xy",n,o)),i.seriesRangeStart.push(u.start),i.seriesRangeEnd.push(u.end),i.seriesRange.push(u.rangeUniques),i.seriesRange.forEach(function(c,d){c&&c.forEach(function(h,x){h.y.forEach(function(k,E){for(var N=0;N<h.y.length;N++)if(E!==N){var L=k.y1,W=k.y2,G=h.y[N].y1;L<=h.y[N].y2&&G<=W&&(h.overlaps.indexOf(k.rangeName)<0&&h.overlaps.push(k.rangeName),h.overlaps.indexOf(h.y[N].rangeName)<0&&h.overlaps.push(h.y[N].rangeName))}})})}),u}},{key:"handleCandleStickBoxData",value:function(n,o){var i=this.w.globals,u={};return this.isFormat2DArray()?u=this.handleCandleStickBoxDataFormat("array",n,o):this.isFormatXY()&&(u=this.handleCandleStickBoxDataFormat("xy",n,o)),i.seriesCandleO[o]=u.o,i.seriesCandleH[o]=u.h,i.seriesCandleM[o]=u.m,i.seriesCandleL[o]=u.l,i.seriesCandleC[o]=u.c,u}},{key:"handleRangeDataFormat",value:function(n,o,i){var u=[],c=[],d=o[i].data.filter(function(E,N,L){return N===L.findIndex(function(W){return W.x===E.x})}).map(function(E,N){return{x:E.x,overlaps:[],y:[]}});if(n==="array")for(var h=0;h<o[i].data.length;h++)Array.isArray(o[i].data[h])?(u.push(o[i].data[h][1][0]),c.push(o[i].data[h][1][1])):(u.push(o[i].data[h]),c.push(o[i].data[h]));else if(n==="xy")for(var x=function(E){var N=Array.isArray(o[i].data[E].y),L=p.randomId(),W=o[i].data[E].x,G={y1:N?o[i].data[E].y[0]:o[i].data[E].y,y2:N?o[i].data[E].y[1]:o[i].data[E].y,rangeName:L};o[i].data[E].rangeName=L;var q=d.findIndex(function(Q){return Q.x===W});d[q].y.push(G),u.push(G.y1),c.push(G.y2)},k=0;k<o[i].data.length;k++)x(k);return{start:u,end:c,rangeUniques:d}}},{key:"handleCandleStickBoxDataFormat",value:function(n,o,i){var u=this.w,c=u.config.chart.type==="boxPlot"||u.config.series[i].type==="boxPlot",d=[],h=[],x=[],k=[],E=[];if(n==="array")if(c&&o[i].data[0].length===6||!c&&o[i].data[0].length===5)for(var N=0;N<o[i].data.length;N++)d.push(o[i].data[N][1]),h.push(o[i].data[N][2]),c?(x.push(o[i].data[N][3]),k.push(o[i].data[N][4]),E.push(o[i].data[N][5])):(k.push(o[i].data[N][3]),E.push(o[i].data[N][4]));else for(var L=0;L<o[i].data.length;L++)Array.isArray(o[i].data[L][1])&&(d.push(o[i].data[L][1][0]),h.push(o[i].data[L][1][1]),c?(x.push(o[i].data[L][1][2]),k.push(o[i].data[L][1][3]),E.push(o[i].data[L][1][4])):(k.push(o[i].data[L][1][2]),E.push(o[i].data[L][1][3])));else if(n==="xy")for(var W=0;W<o[i].data.length;W++)Array.isArray(o[i].data[W].y)&&(d.push(o[i].data[W].y[0]),h.push(o[i].data[W].y[1]),c?(x.push(o[i].data[W].y[2]),k.push(o[i].data[W].y[3]),E.push(o[i].data[W].y[4])):(k.push(o[i].data[W].y[2]),E.push(o[i].data[W].y[3])));return{o:d,h,m:x,l:k,c:E}}},{key:"parseDataAxisCharts",value:function(n){var o,i=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,c=this.w.config,d=this.w.globals,h=new oe(u),x=c.labels.length>0?c.labels.slice():c.xaxis.categories.slice();if(d.isRangeBar=c.chart.type==="rangeBar"&&d.isBarHorizontal,d.hasXaxisGroups=c.xaxis.type==="category"&&c.xaxis.group.groups.length>0,d.hasXaxisGroups&&(d.groups=c.xaxis.group.groups),d.hasSeriesGroups=(o=n[0])===null||o===void 0?void 0:o.group,d.hasSeriesGroups){var k=[],E=R(new Set(n.map(function(G){return G.group})));n.forEach(function(G,q){var Q=E.indexOf(G.group);k[Q]||(k[Q]=[]),k[Q].push(G.name)}),d.seriesGroups=k}for(var N=function(){for(var G=0;G<x.length;G++)if(typeof x[G]=="string"){if(!h.isValidDate(x[G]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");i.twoDSeriesX.push(h.parseDate(x[G]))}else i.twoDSeriesX.push(x[G])},L=0;L<n.length;L++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],n[L].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(c.chart.type!=="rangeBar"&&c.chart.type!=="rangeArea"&&n[L].type!=="rangeBar"&&n[L].type!=="rangeArea"||(d.isRangeData=!0,d.isComboCharts?n[L].type!=="rangeBar"&&n[L].type!=="rangeArea"||this.handleRangeData(n,L):c.chart.type!=="rangeBar"&&c.chart.type!=="rangeArea"||this.handleRangeData(n,L)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(n,L):this.isFormatXY()&&this.handleFormatXY(n,L),c.chart.type!=="candlestick"&&n[L].type!=="candlestick"&&c.chart.type!=="boxPlot"&&n[L].type!=="boxPlot"||this.handleCandleStickBoxData(n,L),d.series.push(this.twoDSeries),d.labels.push(this.twoDSeriesX),d.seriesX.push(this.twoDSeriesX),d.seriesGoals=this.seriesGoals,L!==this.activeSeriesIndex||this.fallbackToCategory||(d.isXNumeric=!0);else{c.xaxis.type==="datetime"?(d.isXNumeric=!0,N(),d.seriesX.push(this.twoDSeriesX)):c.xaxis.type==="numeric"&&(d.isXNumeric=!0,x.length>0&&(this.twoDSeriesX=x,d.seriesX.push(this.twoDSeriesX))),d.labels.push(this.twoDSeriesX);var W=n[L].data.map(function(G){return p.parseNumber(G)});d.series.push(W)}d.seriesZ.push(this.threeDSeries),n[L].name!==void 0?d.seriesNames.push(n[L].name):d.seriesNames.push("series-"+parseInt(L+1,10)),n[L].color!==void 0?d.seriesColors.push(n[L].color):d.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(n){var o=this.w.globals,i=this.w.config;o.series=n.slice(),o.seriesNames=i.labels.slice();for(var u=0;u<o.series.length;u++)o.seriesNames[u]===void 0&&o.seriesNames.push("series-"+(u+1));return this.w}},{key:"handleExternalLabelsData",value:function(n){var o=this.w.config,i=this.w.globals;o.xaxis.categories.length>0?i.labels=o.xaxis.categories:o.labels.length>0?i.labels=o.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(u){u.forEach(function(c){i.labels.indexOf(c.x)<0&&c.x&&i.labels.push(c.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),o.xaxis.convertedCatToNumeric&&(new he(o).convertCatToNumericXaxis(o,this.ctx,i.seriesX[0]),this._generateExternalLabels(n))):this._generateExternalLabels(n)}},{key:"_generateExternalLabels",value:function(n){var o=this.w.globals,i=this.w.config,u=[];if(o.axisCharts){if(o.series.length>0)if(this.isFormatXY())for(var c=i.series.map(function(N,L){return N.data.filter(function(W,G,q){return q.findIndex(function(Q){return Q.x===W.x})===G})}),d=c.reduce(function(N,L,W,G){return G[N].length>L.length?N:W},0),h=0;h<c[d].length;h++)u.push(h+1);else for(var x=0;x<o.series[o.maxValsInArrayIndex].length;x++)u.push(x+1);o.seriesX=[];for(var k=0;k<n.length;k++)o.seriesX.push(u);this.w.globals.isBarHorizontal||(o.isXNumeric=!0)}if(u.length===0){u=o.axisCharts?[]:o.series.map(function(N,L){return L+1});for(var E=0;E<n.length;E++)o.seriesX.push(u)}o.labels=u,i.xaxis.convertedCatToNumeric&&(o.categoryLabels=u.map(function(N){return i.xaxis.labels.formatter(N)})),o.noLabelsProvided=!0}},{key:"parseData",value:function(n){var o=this.w,i=o.config,u=o.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),u.axisCharts?(this.parseDataAxisCharts(n),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(n),i.chart.stacked){var c=new Oe(this.ctx);u.series=c.setNullSeriesToZeroValues(u.series)}this.coreUtils.getSeriesTotals(),u.axisCharts&&(u.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals()),this.coreUtils.getPercentSeries(),u.dataFormatXNumeric||u.isXNumeric&&(i.xaxis.type!=="numeric"||i.labels.length!==0||i.xaxis.categories.length!==0)||this.handleExternalLabelsData(n);for(var d=this.coreUtils.getCategoryLabels(u.labels),h=0;h<d.length;h++)if(Array.isArray(d[h])){u.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var n=this,o=this.w;o.globals.ignoreYAxisIndexes=o.globals.collapsedSeries.map(function(i,u){if(n.w.globals.isMultipleYAxis&&!o.config.chart.stacked)return i.index})}}]),J}(),Ve=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"getLabel",value:function(n,o,i,u){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",h=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],x=this.w,k=n[u]===void 0?"":n[u],E=k,N=x.globals.xLabelFormatter,L=x.config.xaxis.labels.formatter,W=!1,G=new fe(this.ctx),q=k;h&&(E=G.xLabelFormat(N,k,q,{i:u,dateFormatter:new oe(this.ctx).formatDate,w:x}),L!==void 0&&(E=L(k,n[u],{i:u,dateFormatter:new oe(this.ctx).formatDate,w:x})));var Q,re;o.length>0?(Q=o[u].unit,re=null,o.forEach(function($){$.unit==="month"?re="year":$.unit==="day"?re="month":$.unit==="hour"?re="day":$.unit==="minute"&&(re="hour")}),W=re===Q,i=o[u].position,E=o[u].value):x.config.xaxis.type==="datetime"&&L===void 0&&(E=""),E===void 0&&(E=""),E=Array.isArray(E)?E:E.toString();var ie=new m(this.ctx),C={};C=x.globals.rotateXLabels&&h?ie.getTextRects(E,parseInt(d,10),null,"rotate(".concat(x.config.xaxis.labels.rotate," 0 0)"),!1):ie.getTextRects(E,parseInt(d,10));var I=!x.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(E)&&(E.indexOf("NaN")===0||E.toLowerCase().indexOf("invalid")===0||E.toLowerCase().indexOf("infinity")>=0||c.indexOf(E)>=0&&I)&&(E=""),{x:i,text:E,textRect:C,isBold:W}}},{key:"checkLabelBasedOnTickamount",value:function(n,o,i){var u=this.w,c=u.config.xaxis.tickAmount;return c==="dataPoints"&&(c=Math.round(u.globals.gridWidth/120)),c>i||n%Math.round(i/(c+1))==0||(o.text=""),o}},{key:"checkForOverflowingLabels",value:function(n,o,i,u,c){var d=this.w;if(n===0&&d.globals.skipFirstTimelinelabel&&(o.text=""),n===i-1&&d.globals.skipLastTimelinelabel&&(o.text=""),d.config.xaxis.labels.hideOverlappingLabels&&u.length>0){var h=c[c.length-1];o.x<h.textRect.width/(d.globals.rotateXLabels?Math.abs(d.config.xaxis.labels.rotate)/12:1.01)+h.x&&(o.text="")}return o}},{key:"checkForReversedLabels",value:function(n,o){var i=this.w;return i.config.yaxis[n]&&i.config.yaxis[n].reversed&&o.reverse(),o}},{key:"isYAxisHidden",value:function(n){var o=this.w,i=new _(this.ctx);return!o.config.yaxis[n].show||!o.config.yaxis[n].showForNullSeries&&i.isSeriesNull(n)&&o.globals.collapsedSeriesIndices.indexOf(n)===-1}},{key:"getYAxisForeColor",value:function(n,o){var i=this.w;return Array.isArray(n)&&i.globals.yAxisScale[o]&&this.ctx.theme.pushExtraColors(n,i.globals.yAxisScale[o].result.length,!1),n}},{key:"drawYAxisTicks",value:function(n,o,i,u,c,d,h){var x=this.w,k=new m(this.ctx),E=x.globals.translateY;if(u.show&&o>0){x.config.yaxis[c].opposite===!0&&(n+=u.width);for(var N=o;N>=0;N--){var L=E+o/10+x.config.yaxis[c].labels.offsetY-1;x.globals.isBarHorizontal&&(L=d*N),x.config.chart.type==="heatmap"&&(L+=d/2);var W=k.drawLine(n+i.offsetX-u.width+u.offsetX,L+u.offsetY,n+i.offsetX+u.offsetX,L+u.offsetY,u.color);h.add(W),E+=d}}}}]),J}(),ke=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"scaleSvgNode",value:function(n,o){var i=parseFloat(n.getAttributeNS(null,"width")),u=parseFloat(n.getAttributeNS(null,"height"));n.setAttributeNS(null,"width",i*o),n.setAttributeNS(null,"height",u*o),n.setAttributeNS(null,"viewBox","0 0 "+i+" "+u)}},{key:"fixSvgStringForIe11",value:function(n){if(!p.isIE11())return n.replace(/&nbsp;/g,"&#160;");var o=0,i=n.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(u){return++o===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':u});return i=(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(n){n==null&&(n=1);var o=this.w.globals.dom.Paper.svg();if(n!==1){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,n),o=new XMLSerializer().serializeToString(i)}return this.fixSvgStringForIe11(o)}},{key:"cleanup",value:function(){var n=this.w,o=n.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=n.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),u=n.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(u,function(c){c.setAttribute("width",0)}),o&&o[0]&&(o[0].setAttribute("x",-500),o[0].setAttribute("x1",-500),o[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var n=this.getSvgString(),o=new Blob([n],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(o)}},{key:"dataURI",value:function(n){var o=this;return new Promise(function(i){var u=o.w,c=n?n.scale||n.width/u.globals.svgWidth:1;o.cleanup();var d=document.createElement("canvas");d.width=u.globals.svgWidth*c,d.height=parseInt(u.globals.dom.elWrap.style.height,10)*c;var h=u.config.chart.background==="transparent"?"#fff":u.config.chart.background,x=d.getContext("2d");x.fillStyle=h,x.fillRect(0,0,d.width*c,d.height*c);var k=o.getSvgString(c);if(window.canvg&&p.isIE11()){var E=window.canvg.Canvg.fromString(x,k,{ignoreClear:!0,ignoreDimensions:!0});E.start();var N=d.msToBlob();E.stop(),i({blob:N})}else{var L="data:image/svg+xml,"+encodeURIComponent(k),W=new Image;W.crossOrigin="anonymous",W.onload=function(){if(x.drawImage(W,0,0),d.msToBlob){var G=d.msToBlob();i({blob:G})}else{var q=d.toDataURL("image/png");i({imgURI:q})}},W.src=L}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var n=this;this.dataURI().then(function(o){var i=o.imgURI,u=o.blob;u?navigator.msSaveOrOpenBlob(u,n.w.globals.chartID+".png"):n.triggerDownload(i,n.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(n){var o=this,i=n.series,u=n.fileName,c=n.columnDelimiter,d=c===void 0?",":c,h=n.lineDelimiter,x=h===void 0?`
`:h,k=this.w;i||(i=k.config.series);var E=[],N=[],L="",W=k.globals.series.map(function(C,I){return k.globals.collapsedSeriesIndices.indexOf(I)===-1?C:[]}),G=Math.max.apply(Math,R(i.map(function(C){return C.data?C.data.length:0}))),q=new Xe(this.ctx),Q=new Ve(this.ctx),re=function(C){var I="";if(k.globals.axisCharts){if(k.config.xaxis.type==="category"||k.config.xaxis.convertedCatToNumeric)if(k.globals.isBarHorizontal){var $=k.globals.yLabelFormatters[0],te=new Oe(o.ctx).getActiveConfigSeriesIndex();I=$(k.globals.labels[C],{seriesIndex:te,dataPointIndex:C,w:k})}else I=Q.getLabel(k.globals.labels,k.globals.timescaleLabels,0,C).text;k.config.xaxis.type==="datetime"&&(k.config.xaxis.categories.length?I=k.config.xaxis.categories[C]:k.config.labels.length&&(I=k.config.labels[C]))}else I=k.config.labels[C];return Array.isArray(I)&&(I=I.join(" ")),p.isNumber(I)?I:I.split(d).join("")},ie=function(C,I){if(E.length&&I===0&&N.push(E.join(d)),C.data){C.data=C.data.length&&C.data||R(Array(G)).map(function(){return""});for(var $=0;$<C.data.length;$++){E=[];var te=re($);if(te||(q.isFormatXY()?te=i[I].data[$].x:q.isFormat2DArray()&&(te=i[I].data[$]?i[I].data[$][0]:"")),I===0){E.push((we=te,k.config.xaxis.type==="datetime"&&String(we).length>=10?k.config.chart.toolbar.export.csv.dateFormatter(te):p.isNumber(te)?te:te.split(d).join("")));for(var ce=0;ce<k.globals.series.length;ce++){var de;q.isFormatXY()?E.push((de=i[ce].data[$])===null||de===void 0?void 0:de.y):E.push(W[ce][$])}}(k.config.chart.type==="candlestick"||C.type&&C.type==="candlestick")&&(E.pop(),E.push(k.globals.seriesCandleO[I][$]),E.push(k.globals.seriesCandleH[I][$]),E.push(k.globals.seriesCandleL[I][$]),E.push(k.globals.seriesCandleC[I][$])),(k.config.chart.type==="boxPlot"||C.type&&C.type==="boxPlot")&&(E.pop(),E.push(k.globals.seriesCandleO[I][$]),E.push(k.globals.seriesCandleH[I][$]),E.push(k.globals.seriesCandleM[I][$]),E.push(k.globals.seriesCandleL[I][$]),E.push(k.globals.seriesCandleC[I][$])),k.config.chart.type==="rangeBar"&&(E.pop(),E.push(k.globals.seriesRangeStart[I][$]),E.push(k.globals.seriesRangeEnd[I][$])),E.length&&N.push(E.join(d))}}var we};E.push(k.config.chart.toolbar.export.csv.headerCategory),k.config.chart.type==="boxPlot"?(E.push("minimum"),E.push("q1"),E.push("median"),E.push("q3"),E.push("maximum")):k.config.chart.type==="candlestick"?(E.push("open"),E.push("high"),E.push("low"),E.push("close")):k.config.chart.type==="rangeBar"?(E.push("minimum"),E.push("maximum")):i.map(function(C,I){var $=(C.name?C.name:"series-".concat(I))+"";k.globals.axisCharts&&E.push($.split(d).join("")?$.split(d).join(""):"series-".concat(I))}),k.globals.axisCharts||(E.push(k.config.chart.toolbar.export.csv.headerValue),N.push(E.join(d))),i.map(function(C,I){k.globals.axisCharts?ie(C,I):((E=[]).push(k.globals.labels[I].split(d).join("")),E.push(W[I]),N.push(E.join(d)))}),L+=N.join(x),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+L),u||k.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(n,o,i){var u=document.createElement("a");u.href=n,u.download=(o||this.w.globals.chartID)+i,document.body.appendChild(u),u.click(),document.body.removeChild(u)}}]),J}(),Me=function(){function J(n,o){l(this,J),this.ctx=n,this.elgrid=o,this.w=n.w;var i=this.w;this.axesUtils=new Ve(n),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return b(J,[{key:"drawXaxis",value:function(){var n=this.w,o=new m(this.ctx),i=o.group({class:"apexcharts-xaxis",transform:"translate(".concat(n.config.xaxis.offsetX,", ").concat(n.config.xaxis.offsetY,")")}),u=o.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(n.globals.translateXAxisX,", ").concat(n.globals.translateXAxisY,")")});i.add(u);for(var c=[],d=0;d<this.xaxisLabels.length;d++)c.push(this.xaxisLabels[d]);if(this.drawXAxisLabelAndGroup(!0,o,u,c,n.globals.isXNumeric,function(G,q){return q}),n.globals.hasXaxisGroups){var h=n.globals.groups;c=[];for(var x=0;x<h.length;x++)c.push(h[x].title);var k={};n.config.xaxis.group.style&&(k.xaxisFontSize=n.config.xaxis.group.style.fontSize,k.xaxisFontFamily=n.config.xaxis.group.style.fontFamily,k.xaxisForeColors=n.config.xaxis.group.style.colors,k.fontWeight=n.config.xaxis.group.style.fontWeight,k.cssClass=n.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,o,u,c,!1,function(G,q){return h[G].cols*q},k)}if(n.config.xaxis.title.text!==void 0){var E=o.group({class:"apexcharts-xaxis-title"}),N=o.drawText({x:n.globals.gridWidth/2+n.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(n.config.xaxis.position==="bottom"?n.globals.xAxisLabelsHeight:-n.globals.xAxisLabelsHeight-10)+n.config.xaxis.title.offsetY,text:n.config.xaxis.title.text,textAnchor:"middle",fontSize:n.config.xaxis.title.style.fontSize,fontFamily:n.config.xaxis.title.style.fontFamily,fontWeight:n.config.xaxis.title.style.fontWeight,foreColor:n.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+n.config.xaxis.title.style.cssClass});E.add(N),i.add(E)}if(n.config.xaxis.axisBorder.show){var L=n.globals.barPadForNumericAxis,W=o.drawLine(n.globals.padHorizontal+n.config.xaxis.axisBorder.offsetX-L,this.offY,this.xaxisBorderWidth+L,this.offY,n.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&n.config.grid.show?this.elgrid.elGridBorders.add(W):i.add(W)}return i}},{key:"drawXAxisLabelAndGroup",value:function(n,o,i,u,c,d){var h,x=this,k=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},E=[],N=[],L=this.w,W=k.xaxisFontSize||this.xaxisFontSize,G=k.xaxisFontFamily||this.xaxisFontFamily,q=k.xaxisForeColors||this.xaxisForeColors,Q=k.fontWeight||L.config.xaxis.labels.style.fontWeight,re=k.cssClass||L.config.xaxis.labels.style.cssClass,ie=L.globals.padHorizontal,C=u.length,I=L.config.xaxis.type==="category"?L.globals.dataPoints:C;if(I===0&&C>I&&(I=C),c){var $=I>1?I-1:I;h=L.globals.gridWidth/Math.min($,C-1),ie=ie+d(0,h)/2+L.config.xaxis.labels.offsetX}else h=L.globals.gridWidth/I,ie=ie+d(0,h)+L.config.xaxis.labels.offsetX;for(var te=function(de){var we=ie-d(de,h)/2+L.config.xaxis.labels.offsetX;de===0&&C===1&&h/2===ie&&I===1&&(we=L.globals.gridWidth/2);var Ce=x.axesUtils.getLabel(u,L.globals.timescaleLabels,we,de,E,W,n),Ie=28;if(L.globals.rotateXLabels&&n&&(Ie=22),L.config.xaxis.title.text&&L.config.xaxis.position==="top"&&(Ie+=parseFloat(L.config.xaxis.title.style.fontSize)+2),n||(Ie=Ie+parseFloat(W)+(L.globals.xAxisLabelsHeight-L.globals.xAxisGroupLabelsHeight)+(L.globals.rotateXLabels?10:0)),Ce=L.config.xaxis.tickAmount!==void 0&&L.config.xaxis.tickAmount!=="dataPoints"&&L.config.xaxis.type!=="datetime"?x.axesUtils.checkLabelBasedOnTickamount(de,Ce,C):x.axesUtils.checkForOverflowingLabels(de,Ce,C,E,N),L.config.xaxis.labels.show){var We=o.drawText({x:Ce.x,y:x.offY+L.config.xaxis.labels.offsetY+Ie-(L.config.xaxis.position==="top"?L.globals.xAxisHeight+L.config.xaxis.axisTicks.height-2:0),text:Ce.text,textAnchor:"middle",fontWeight:Ce.isBold?600:Q,fontSize:W,fontFamily:G,foreColor:Array.isArray(q)?n&&L.config.xaxis.convertedCatToNumeric?q[L.globals.minX+de-1]:q[de]:q,isPlainText:!1,cssClass:(n?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+re});if(i.add(We),We.on("click",function($e){if(typeof L.config.chart.events.xAxisLabelClick=="function"){var Ke=Object.assign({},L,{labelIndex:de});L.config.chart.events.xAxisLabelClick($e,x.ctx,Ke)}}),n){var Fe=document.createElementNS(L.globals.SVGNS,"title");Fe.textContent=Array.isArray(Ce.text)?Ce.text.join(" "):Ce.text,We.node.appendChild(Fe),Ce.text!==""&&(E.push(Ce.text),N.push(Ce))}}de<C-1&&(ie+=d(de+1,h))},ce=0;ce<=C-1;ce++)te(ce)}},{key:"drawXaxisInversed",value:function(n){var o,i,u=this,c=this.w,d=new m(this.ctx),h=c.config.yaxis[0].opposite?c.globals.translateYAxisX[n]:0,x=d.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:n}),k=d.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+h+", 0)"});x.add(k);var E=[];if(c.config.yaxis[n].show)for(var N=0;N<this.xaxisLabels.length;N++)E.push(this.xaxisLabels[N]);o=c.globals.gridHeight/E.length,i=-o/2.2;var L=c.globals.yLabelFormatters[0],W=c.config.yaxis[0].labels;if(W.show)for(var G=function($){var te=E[$]===void 0?"":E[$];te=L(te,{seriesIndex:n,dataPointIndex:$,w:c});var ce=u.axesUtils.getYAxisForeColor(W.style.colors,n),de=0;Array.isArray(te)&&(de=te.length/2*parseInt(W.style.fontSize,10));var we=W.offsetX-15,Ce="end";u.yaxis.opposite&&(Ce="start"),c.config.yaxis[0].labels.align==="left"?(we=W.offsetX,Ce="start"):c.config.yaxis[0].labels.align==="center"?(we=W.offsetX,Ce="middle"):c.config.yaxis[0].labels.align==="right"&&(Ce="end");var Ie=d.drawText({x:we,y:i+o+W.offsetY-de,text:te,textAnchor:Ce,foreColor:Array.isArray(ce)?ce[$]:ce,fontSize:W.style.fontSize,fontFamily:W.style.fontFamily,fontWeight:W.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+W.style.cssClass,maxWidth:W.maxWidth});k.add(Ie),Ie.on("click",function($e){if(typeof c.config.chart.events.xAxisLabelClick=="function"){var Ke=Object.assign({},c,{labelIndex:$});c.config.chart.events.xAxisLabelClick($e,u.ctx,Ke)}});var We=document.createElementNS(c.globals.SVGNS,"title");if(We.textContent=Array.isArray(te)?te.join(" "):te,Ie.node.appendChild(We),c.config.yaxis[n].labels.rotate!==0){var Fe=d.rotateAroundCenter(Ie.node);Ie.node.setAttribute("transform","rotate(".concat(c.config.yaxis[n].labels.rotate," 0 ").concat(Fe.y,")"))}i+=o},q=0;q<=E.length-1;q++)G(q);if(c.config.yaxis[0].title.text!==void 0){var Q=d.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+h+", 0)"}),re=d.drawText({x:c.config.yaxis[0].title.offsetX,y:c.globals.gridHeight/2+c.config.yaxis[0].title.offsetY,text:c.config.yaxis[0].title.text,textAnchor:"middle",foreColor:c.config.yaxis[0].title.style.color,fontSize:c.config.yaxis[0].title.style.fontSize,fontWeight:c.config.yaxis[0].title.style.fontWeight,fontFamily:c.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+c.config.yaxis[0].title.style.cssClass});Q.add(re),x.add(Q)}var ie=0;this.isCategoryBarHorizontal&&c.config.yaxis[0].opposite&&(ie=c.globals.gridWidth);var C=c.config.xaxis.axisBorder;if(C.show){var I=d.drawLine(c.globals.padHorizontal+C.offsetX+ie,1+C.offsetY,c.globals.padHorizontal+C.offsetX+ie,c.globals.gridHeight+C.offsetY,C.color,0);this.elgrid&&this.elgrid.elGridBorders&&c.config.grid.show?this.elgrid.elGridBorders.add(I):x.add(I)}return c.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(ie,E.length,c.config.yaxis[0].axisBorder,c.config.yaxis[0].axisTicks,0,o,x),x}},{key:"drawXaxisTicks",value:function(n,o,i){var u=this.w,c=n;if(!(n<0||n-2>u.globals.gridWidth)){var d=this.offY+u.config.xaxis.axisTicks.offsetY;if(o=o+d+u.config.xaxis.axisTicks.height,u.config.xaxis.position==="top"&&(o=d-u.config.xaxis.axisTicks.height),u.config.xaxis.axisTicks.show){var h=new m(this.ctx).drawLine(n+u.config.xaxis.axisTicks.offsetX,d+u.config.xaxis.offsetY,c+u.config.xaxis.axisTicks.offsetX,o+u.config.xaxis.offsetY,u.config.xaxis.axisTicks.color);i.add(h),h.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var n=this.w,o=[],i=this.xaxisLabels.length,u=n.globals.padHorizontal;if(n.globals.timescaleLabels.length>0)for(var c=0;c<i;c++)u=this.xaxisLabels[c].position,o.push(u);else for(var d=i,h=0;h<d;h++){var x=d;n.globals.isXNumeric&&n.config.chart.type!=="bar"&&(x-=1),u+=n.globals.gridWidth/x,o.push(u)}return o}},{key:"xAxisLabelCorrections",value:function(){var n=this.w,o=new m(this.ctx),i=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),u=n.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),c=n.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),d=n.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(n.globals.rotateXLabels||n.config.xaxis.labels.rotateAlways)for(var h=0;h<u.length;h++){var x=o.rotateAroundCenter(u[h]);x.y=x.y-1,x.x=x.x+1,u[h].setAttribute("transform","rotate(".concat(n.config.xaxis.labels.rotate," ").concat(x.x," ").concat(x.y,")")),u[h].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var k=u[h].childNodes;n.config.xaxis.labels.trim&&Array.prototype.forEach.call(k,function(W){o.placeTextWithEllipsis(W,W.textContent,n.globals.xAxisLabelsHeight-(n.config.legend.position==="bottom"?20:10))})}else(function(){for(var W=n.globals.gridWidth/(n.globals.labels.length+1),G=0;G<u.length;G++){var q=u[G].childNodes;n.config.xaxis.labels.trim&&n.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(q,function(Q){o.placeTextWithEllipsis(Q,Q.textContent,W)})}})();if(c.length>0){var E=c[c.length-1].getBBox(),N=c[0].getBBox();E.x<-20&&c[c.length-1].parentNode.removeChild(c[c.length-1]),N.x+N.width>n.globals.gridWidth&&!n.globals.isBarHorizontal&&c[0].parentNode.removeChild(c[0]);for(var L=0;L<d.length;L++)o.placeTextWithEllipsis(d[L],d[L].textContent,n.config.yaxis[0].labels.maxWidth-(n.config.yaxis[0].title.text?2*parseFloat(n.config.yaxis[0].title.style.fontSize):0)-15)}}}]),J}(),Ne=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w;var o=this.w;this.xaxisLabels=o.globals.labels.slice(),this.axesUtils=new Ve(n),this.isRangeBar=o.globals.seriesRange.length&&o.globals.isBarHorizontal,o.globals.timescaleLabels.length>0&&(this.xaxisLabels=o.globals.timescaleLabels.slice())}return b(J,[{key:"drawGridArea",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=this.w,i=new m(this.ctx);n===null&&(n=i.group({class:"apexcharts-grid"}));var u=i.drawLine(o.globals.padHorizontal,1,o.globals.padHorizontal,o.globals.gridHeight,"transparent"),c=i.drawLine(o.globals.padHorizontal,o.globals.gridHeight,o.globals.gridWidth,o.globals.gridHeight,"transparent");return n.add(c),n.add(u),n}},{key:"drawGrid",value:function(){var n=null;return this.w.globals.axisCharts&&(n=this.renderGrid(),this.drawGridArea(n.el)),n}},{key:"createGridMask",value:function(){var n=this.w,o=n.globals,i=new m(this.ctx),u=Array.isArray(n.config.stroke.width)?0:n.config.stroke.width;if(Array.isArray(n.config.stroke.width)){var c=0;n.config.stroke.width.forEach(function(N){c=Math.max(c,N)}),u=c}o.dom.elGridRectMask=document.createElementNS(o.SVGNS,"clipPath"),o.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(o.cuid)),o.dom.elGridRectMarkerMask=document.createElementNS(o.SVGNS,"clipPath"),o.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(o.cuid)),o.dom.elForecastMask=document.createElementNS(o.SVGNS,"clipPath"),o.dom.elForecastMask.setAttribute("id","forecastMask".concat(o.cuid)),o.dom.elNonForecastMask=document.createElementNS(o.SVGNS,"clipPath"),o.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(o.cuid));var d=n.config.chart.type,h=0,x=0;(d==="bar"||d==="rangeBar"||d==="candlestick"||d==="boxPlot"||n.globals.comboBarCount>0)&&n.globals.isXNumeric&&!n.globals.isBarHorizontal&&(h=n.config.grid.padding.left,x=n.config.grid.padding.right,o.barPadForNumericAxis>h&&(h=o.barPadForNumericAxis,x=o.barPadForNumericAxis)),o.dom.elGridRect=i.drawRect(-u-h-2,2*-u-2,o.gridWidth+u+x+h+4,o.gridHeight+4*u+4,0,"#fff");var k=n.globals.markers.largestSize+1;o.dom.elGridRectMarker=i.drawRect(2*-k,2*-k,o.gridWidth+4*k,o.gridHeight+4*k,0,"#fff"),o.dom.elGridRectMask.appendChild(o.dom.elGridRect.node),o.dom.elGridRectMarkerMask.appendChild(o.dom.elGridRectMarker.node);var E=o.dom.baseEl.querySelector("defs");E.appendChild(o.dom.elGridRectMask),E.appendChild(o.dom.elForecastMask),E.appendChild(o.dom.elNonForecastMask),E.appendChild(o.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(n){var o=n.i,i=n.x1,u=n.y1,c=n.x2,d=n.y2,h=n.xCount,x=n.parent,k=this.w;if(!(o===0&&k.globals.skipFirstTimelinelabel||o===h-1&&k.globals.skipLastTimelinelabel&&!k.config.xaxis.labels.formatter||k.config.chart.type==="radar")){k.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,x1:i,y1:u,x2:c,y2:d,xCount:h,parent:x});var E=0;if(k.globals.hasXaxisGroups&&k.config.xaxis.tickPlacement==="between"){var N=k.globals.groups;if(N){for(var L=0,W=0;L<o&&W<N.length;W++)L+=N[W].cols;L===o&&(E=.6*k.globals.xAxisLabelsHeight)}}new Me(this.ctx).drawXaxisTicks(i,E,k.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(n){var o=n.i,i=n.x1,u=n.y1,c=n.x2,d=n.y2,h=n.xCount,x=n.parent,k=this.w,E=!1,N=x.node.classList.contains("apexcharts-gridlines-horizontal"),L=k.config.grid.strokeDashArray,W=k.globals.barPadForNumericAxis;(u===0&&d===0||i===0&&c===0)&&(E=!0),u===k.globals.gridHeight&&d===k.globals.gridHeight&&(E=!0),!k.globals.isBarHorizontal||o!==0&&o!==h-1||(E=!0);var G=new m(this).drawLine(i-(N?W:0),u,c+(N?W:0),d,k.config.grid.borderColor,L);G.node.classList.add("apexcharts-gridline"),E&&k.config.grid.show?this.elGridBorders.add(G):x.add(G)}},{key:"_drawGridBandRect",value:function(n){var o=n.c,i=n.x1,u=n.y1,c=n.x2,d=n.y2,h=n.type,x=this.w,k=new m(this.ctx),E=x.globals.barPadForNumericAxis;if(h!=="column"||x.config.xaxis.type!=="datetime"){var N=x.config.grid[h].colors[o],L=k.drawRect(i-(h==="row"?E:0),u,c+(h==="row"?2*E:0),d,0,N,x.config.grid[h].opacity);this.elg.add(L),L.attr("clip-path","url(#gridRectMask".concat(x.globals.cuid,")")),L.node.classList.add("apexcharts-grid-".concat(h))}}},{key:"_drawXYLines",value:function(n){var o=this,i=n.xCount,u=n.tickAmount,c=this.w;if(c.config.grid.xaxis.lines.show||c.config.xaxis.axisTicks.show){var d,h=c.globals.padHorizontal,x=c.globals.gridHeight;c.globals.timescaleLabels.length?function(G){for(var q=G.xC,Q=G.x1,re=G.y1,ie=G.x2,C=G.y2,I=0;I<q;I++)Q=o.xaxisLabels[I].position,ie=o.xaxisLabels[I].position,o._drawGridLines({i:I,x1:Q,y1:re,x2:ie,y2:C,xCount:i,parent:o.elgridLinesV})}({xC:i,x1:h,y1:0,x2:d,y2:x}):(c.globals.isXNumeric&&(i=c.globals.xAxisScale.result.length),function(G){for(var q=G.xC,Q=G.x1,re=G.y1,ie=G.x2,C=G.y2,I=0;I<q+(c.globals.isXNumeric?0:1);I++)I===0&&q===1&&c.globals.dataPoints===1&&(ie=Q=c.globals.gridWidth/2),o._drawGridLines({i:I,x1:Q,y1:re,x2:ie,y2:C,xCount:i,parent:o.elgridLinesV}),ie=Q+=c.globals.gridWidth/(c.globals.isXNumeric?q-1:q)}({xC:i,x1:h,y1:0,x2:d,y2:x}))}if(c.config.grid.yaxis.lines.show){var k=0,E=0,N=c.globals.gridWidth,L=u+1;this.isRangeBar&&(L=c.globals.labels.length);for(var W=0;W<L+(this.isRangeBar?1:0);W++)this._drawGridLine({i:W,xCount:L+(this.isRangeBar?1:0),x1:0,y1:k,x2:N,y2:E,parent:this.elgridLinesH}),E=k+=c.globals.gridHeight/(this.isRangeBar?L:u)}}},{key:"_drawInvertedXYLines",value:function(n){var o=n.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var u,c=i.globals.padHorizontal,d=i.globals.gridHeight,h=0;h<o+1;h++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:h,xCount:o+1,x1:c,y1:0,x2:u,y2:d,parent:this.elgridLinesV}),new Me(this.ctx).drawXaxisTicks(c,0,i.globals.dom.elGraphical),u=c=c+i.globals.gridWidth/o+.3;if(i.config.grid.yaxis.lines.show)for(var x=0,k=0,E=i.globals.gridWidth,N=0;N<i.globals.dataPoints+1;N++)this._drawGridLine({i:N,xCount:i.globals.dataPoints+1,x1:0,y1:x,x2:E,y2:k,parent:this.elgridLinesH}),k=x+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var n=this.w,o=new m(this.ctx);this.elg=o.group({class:"apexcharts-grid"}),this.elgridLinesH=o.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=o.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=o.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),n.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var i,u=n.globals.yAxisScale.length?n.globals.yAxisScale[0].result.length-1:5,c=0;c<n.globals.series.length&&(n.globals.yAxisScale[c]!==void 0&&(u=n.globals.yAxisScale[c].result.length-1),!(u>2));c++);return!n.globals.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(i--,u=n.globals.labels.length,n.config.xaxis.tickAmount&&n.config.xaxis.labels.formatter&&(i=n.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:u})):(i=u,u=n.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:u})),this.drawGridBands(i,u),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:n.globals.gridWidth/i}}},{key:"drawGridBands",value:function(n,o){var i=this.w;if(i.config.grid.row.colors!==void 0&&i.config.grid.row.colors.length>0)for(var u=0,c=i.globals.gridHeight/o,d=i.globals.gridWidth,h=0,x=0;h<o;h++,x++)x>=i.config.grid.row.colors.length&&(x=0),this._drawGridBandRect({c:x,x1:0,y1:u,x2:d,y2:c,type:"row"}),u+=i.globals.gridHeight/o;if(i.config.grid.column.colors!==void 0&&i.config.grid.column.colors.length>0)for(var k=i.globals.isBarHorizontal||i.config.xaxis.tickPlacement!=="on"||i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric?n:n-1,E=i.globals.padHorizontal,N=i.globals.padHorizontal+i.globals.gridWidth/k,L=i.globals.gridHeight,W=0,G=0;W<n;W++,G++)G>=i.config.grid.column.colors.length&&(G=0),this._drawGridBandRect({c:G,x1:E,y1:0,x2:N,y2:L,type:"column"}),E+=i.globals.gridWidth/k}}]),J}(),Ge=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"niceScale",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4?arguments[4]:void 0,d=this.w,h=Math.abs(o-n);if((i=this._adjustTicksForSmallRange(i,u,h))==="dataPoints"&&(i=d.globals.dataPoints-1),n===Number.MIN_VALUE&&o===0||!p.isNumber(n)&&!p.isNumber(o)||n===Number.MIN_VALUE&&o===-Number.MAX_VALUE)return n=0,o=i,this.linearScale(n,o,i);n>o?(console.warn("axis.min cannot be greater than axis.max"),o=n+.1):n===o&&(n=n===0?0:n-.5,o=o===0?2:o+.5);var x=[];h<1&&c&&(d.config.chart.type==="candlestick"||d.config.series[u].type==="candlestick"||d.config.chart.type==="boxPlot"||d.config.series[u].type==="boxPlot"||d.globals.isRangeData)&&(o*=1.01);var k=i+1;k<2?k=2:k>2&&(k-=2);var E=h/k,N=Math.floor(p.log10(E)),L=Math.pow(10,N),W=Math.round(E/L);W<1&&(W=1);var G=W*L,q=G*Math.floor(n/G),Q=G*Math.ceil(o/G),re=q;if(c&&h>2){for(;x.push(p.stripNumber(re,7)),!((re+=G)>Q););return{result:x,niceMin:x[0],niceMax:x[x.length-1]}}var ie=n;(x=[]).push(p.stripNumber(ie,7));for(var C=Math.abs(o-n)/i,I=0;I<=i;I++)ie+=C,x.push(ie);return x[x.length-2]>=o&&x.pop(),{result:x,niceMin:x[0],niceMax:x[x.length-1]}}},{key:"linearScale",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,u=arguments.length>3?arguments[3]:void 0,c=Math.abs(o-n);(i=this._adjustTicksForSmallRange(i,u,c))==="dataPoints"&&(i=this.w.globals.dataPoints-1);var d=c/i;i===Number.MAX_VALUE&&(i=10,d=1);for(var h=[],x=n;i>=0;)h.push(x),x+=d,i-=1;return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"logarithmicScaleNice",value:function(n,o,i){o<=0&&(o=Math.max(n,i)),n<=0&&(n=Math.min(o,i));for(var u=[],c=Math.ceil(Math.log(o)/Math.log(i)+1),d=Math.floor(Math.log(n)/Math.log(i));d<c;d++)u.push(Math.pow(i,d));return{result:u,niceMin:u[0],niceMax:u[u.length-1]}}},{key:"logarithmicScale",value:function(n,o,i){o<=0&&(o=Math.max(n,i)),n<=0&&(n=Math.min(o,i));for(var u=[],c=Math.log(o)/Math.log(i),d=Math.log(n)/Math.log(i),h=c-d,x=Math.round(h),k=h/x,E=0,N=d;E<x;E++,N+=k)u.push(Math.pow(i,N));return u.push(Math.pow(i,c)),{result:u,niceMin:n,niceMax:o}}},{key:"_adjustTicksForSmallRange",value:function(n,o,i){var u=n;if(o!==void 0&&this.w.config.yaxis[o].labels.formatter&&this.w.config.yaxis[o].tickAmount===void 0){var c=Number(this.w.config.yaxis[o].labels.formatter(1));p.isNumber(c)&&this.w.globals.yValueDecimal===0&&(u=Math.ceil(i))}return u<n?u:n}},{key:"setYScaleForIndex",value:function(n,o,i){var u=this.w.globals,c=this.w.config,d=u.isBarHorizontal?c.xaxis:c.yaxis[n];u.yAxisScale[n]===void 0&&(u.yAxisScale[n]=[]);var h=Math.abs(i-o);if(d.logarithmic&&h<=5&&(u.invalidLogScale=!0),d.logarithmic&&h>5)u.allSeriesCollapsed=!1,u.yAxisScale[n]=this.logarithmicScale(o,i,d.logBase),u.yAxisScale[n]=d.forceNiceScale?this.logarithmicScaleNice(o,i,d.logBase):this.logarithmicScale(o,i,d.logBase);else if(i!==-Number.MAX_VALUE&&p.isNumber(i))if(u.allSeriesCollapsed=!1,d.min===void 0&&d.max===void 0||d.forceNiceScale){var x=c.yaxis[n].max===void 0&&c.yaxis[n].min===void 0||c.yaxis[n].forceNiceScale;u.yAxisScale[n]=this.niceScale(o,i,d.tickAmount?d.tickAmount:h<5&&h>1?h+1:5,n,x)}else u.yAxisScale[n]=this.linearScale(o,i,d.tickAmount,n);else u.yAxisScale[n]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(n,o){var i=this.w,u=i.globals,c=i.config.xaxis,d=Math.abs(o-n);return o!==-Number.MAX_VALUE&&p.isNumber(o)?u.xAxisScale=this.linearScale(n,o,c.tickAmount?c.tickAmount:d<5&&d>1?d+1:5,0):u.xAxisScale=this.linearScale(0,5,5),u.xAxisScale}},{key:"setMultipleYScales",value:function(){var n=this,o=this.w.globals,i=this.w.config,u=o.minYArr.concat([]),c=o.maxYArr.concat([]),d=[];i.yaxis.forEach(function(h,x){var k=x;i.series.forEach(function(L,W){L.name===h.seriesName&&(k=W,x!==W?d.push({index:W,similarIndex:x,alreadyExists:!0}):d.push({index:W}))});var E=u[k],N=c[k];n.setYScaleForIndex(x,E,N)}),this.sameScaleInMultipleAxes(u,c,d)}},{key:"sameScaleInMultipleAxes",value:function(n,o,i){var u=this,c=this.w.config,d=this.w.globals,h=[];i.forEach(function(q){q.alreadyExists&&(h[q.index]===void 0&&(h[q.index]=[]),h[q.index].push(q.index),h[q.index].push(q.similarIndex))}),d.yAxisSameScaleIndices=h,h.forEach(function(q,Q){h.forEach(function(re,ie){var C,I;Q!==ie&&(C=q,I=re,C.filter(function($){return I.indexOf($)!==-1})).length>0&&(h[Q]=h[Q].concat(h[ie]))})});var x=h.map(function(q){return q.filter(function(Q,re){return q.indexOf(Q)===re})}).map(function(q){return q.sort()});h=h.filter(function(q){return!!q});var k=x.slice(),E=k.map(function(q){return JSON.stringify(q)});k=k.filter(function(q,Q){return E.indexOf(JSON.stringify(q))===Q});var N=[],L=[];n.forEach(function(q,Q){k.forEach(function(re,ie){re.indexOf(Q)>-1&&(N[ie]===void 0&&(N[ie]=[],L[ie]=[]),N[ie].push({key:Q,value:q}),L[ie].push({key:Q,value:o[Q]}))})});var W=Array.apply(null,Array(k.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),G=Array.apply(null,Array(k.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);N.forEach(function(q,Q){q.forEach(function(re,ie){W[Q]=Math.min(re.value,W[Q])})}),L.forEach(function(q,Q){q.forEach(function(re,ie){G[Q]=Math.max(re.value,G[Q])})}),n.forEach(function(q,Q){L.forEach(function(re,ie){var C=W[ie],I=G[ie];c.chart.stacked&&(I=0,re.forEach(function($,te){$.value!==-Number.MAX_VALUE&&(I+=$.value),C!==Number.MIN_VALUE&&(C+=N[ie][te].value)})),re.forEach(function($,te){re[te].key===Q&&(c.yaxis[Q].min!==void 0&&(C=typeof c.yaxis[Q].min=="function"?c.yaxis[Q].min(d.minY):c.yaxis[Q].min),c.yaxis[Q].max!==void 0&&(I=typeof c.yaxis[Q].max=="function"?c.yaxis[Q].max(d.maxY):c.yaxis[Q].max),u.setYScaleForIndex(Q,C,I))})})})}},{key:"autoScaleY",value:function(n,o,i){n||(n=this);var u=n.w;if(u.globals.isMultipleYAxis||u.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),o;var c=u.globals.seriesX[0],d=u.config.chart.stacked;return o.forEach(function(h,x){for(var k=0,E=0;E<c.length;E++)if(c[E]>=i.xaxis.min){k=E;break}var N,L,W=u.globals.minYArr[x],G=u.globals.maxYArr[x],q=u.globals.stackedSeriesTotals;u.globals.series.forEach(function(Q,re){var ie=Q[k];d?(ie=q[k],N=L=ie,q.forEach(function(C,I){c[I]<=i.xaxis.max&&c[I]>=i.xaxis.min&&(C>L&&C!==null&&(L=C),Q[I]<N&&Q[I]!==null&&(N=Q[I]))})):(N=L=ie,Q.forEach(function(C,I){if(c[I]<=i.xaxis.max&&c[I]>=i.xaxis.min){var $=C,te=C;u.globals.series.forEach(function(ce,de){C!==null&&($=Math.min(ce[I],$),te=Math.max(ce[I],te))}),te>L&&te!==null&&(L=te),$<N&&$!==null&&(N=$)}})),N===void 0&&L===void 0&&(N=W,L=G),L*=L<0?.9:1.1,(N*=N<0?1.1:.9)===0&&L===0&&(N=-1,L=1),L<0&&L<G&&(L=G),N<0&&N>W&&(N=W),o.length>1?(o[re].min=h.min===void 0?N:h.min,o[re].max=h.max===void 0?L:h.max):(o[0].min=h.min===void 0?N:h.min,o[0].max=h.max===void 0?L:h.max)})}),o}}]),J}(),Qe=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.scales=new Ge(n)}return b(J,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,c=this.w.config,d=this.w.globals,h=-Number.MAX_VALUE,x=Number.MIN_VALUE;u===null&&(u=n+1);var k=d.series,E=k,N=k;c.chart.type==="candlestick"?(E=d.seriesCandleL,N=d.seriesCandleH):c.chart.type==="boxPlot"?(E=d.seriesCandleO,N=d.seriesCandleC):d.isRangeData&&(E=d.seriesRangeStart,N=d.seriesRangeEnd);for(var L=n;L<u;L++){d.dataPoints=Math.max(d.dataPoints,k[L].length),d.categoryLabels.length&&(d.dataPoints=d.categoryLabels.filter(function(q){return q!==void 0}).length),d.labels.length&&c.xaxis.type!=="datetime"&&d.series.reduce(function(q,Q){return q+Q.length},0)!==0&&(d.dataPoints=Math.max(d.dataPoints,d.labels.length));for(var W=0;W<d.series[L].length;W++){var G=k[L][W];G!==null&&p.isNumber(G)?(N[L][W]!==void 0&&(h=Math.max(h,N[L][W]),o=Math.min(o,N[L][W])),E[L][W]!==void 0&&(o=Math.min(o,E[L][W]),i=Math.max(i,E[L][W])),this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"&&this.w.config.chart.type==="rangeArea"&&this.w.config.chart.type==="rangeBar"||(this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"||d.seriesCandleC[L][W]!==void 0&&(h=Math.max(h,d.seriesCandleO[L][W]),h=Math.max(h,d.seriesCandleH[L][W]),h=Math.max(h,d.seriesCandleL[L][W]),h=Math.max(h,d.seriesCandleC[L][W]),this.w.config.chart.type==="boxPlot"&&(h=Math.max(h,d.seriesCandleM[L][W]))),!c.series[L].type||c.series[L].type==="candlestick"&&c.series[L].type==="boxPlot"&&c.series[L].type==="rangeArea"&&c.series[L].type==="rangeBar"||(h=Math.max(h,d.series[L][W]),o=Math.min(o,d.series[L][W])),i=h),d.seriesGoals[L]&&d.seriesGoals[L][W]&&Array.isArray(d.seriesGoals[L][W])&&d.seriesGoals[L][W].forEach(function(q){x!==Number.MIN_VALUE&&(x=Math.min(x,q.value),o=x),h=Math.max(h,q.value),i=h}),p.isFloat(G)&&(G=p.noExponents(G),d.yValueDecimal=Math.max(d.yValueDecimal,G.toString().split(".")[1].length)),x>E[L][W]&&E[L][W]<0&&(x=E[L][W])):d.hasNullValues=!0}}return c.chart.type==="rangeBar"&&d.seriesRangeStart.length&&d.isBarHorizontal&&(x=o),c.chart.type==="bar"&&(x<0&&h<0&&(h=0),x===Number.MIN_VALUE&&(x=0)),{minY:x,maxY:h,lowestY:o,highestY:i}}},{key:"setYRange",value:function(){var n=this.w.globals,o=this.w.config;n.maxY=-Number.MAX_VALUE,n.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(n.isMultipleYAxis)for(var u=0;u<n.series.length;u++){var c=this.getMinYMaxY(u,i,null,u+1);n.minYArr.push(c.minY),n.maxYArr.push(c.maxY),i=c.lowestY}var d=this.getMinYMaxY(0,i,null,n.series.length);if(n.minY=d.minY,n.maxY=d.maxY,i=d.lowestY,o.chart.stacked&&this._setStackedMinMax(),(o.chart.type==="line"||o.chart.type==="area"||o.chart.type==="candlestick"||o.chart.type==="boxPlot"||o.chart.type==="rangeBar"&&!n.isBarHorizontal)&&n.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==n.maxY){var h=n.maxY-i;(i>=0&&i<=10||o.yaxis[0].min!==void 0||o.yaxis[0].max!==void 0)&&(h=0),n.minY=i-5*h/100,i>0&&n.minY<0&&(n.minY=0),n.maxY=n.maxY+5*h/100}return o.yaxis.forEach(function(x,k){x.max!==void 0&&(typeof x.max=="number"?n.maxYArr[k]=x.max:typeof x.max=="function"&&(n.maxYArr[k]=x.max(n.isMultipleYAxis?n.maxYArr[k]:n.maxY)),n.maxY=n.maxYArr[k]),x.min!==void 0&&(typeof x.min=="number"?n.minYArr[k]=x.min:typeof x.min=="function"&&(n.minYArr[k]=x.min(n.isMultipleYAxis?n.minYArr[k]===Number.MIN_VALUE?0:n.minYArr[k]:n.minY)),n.minY=n.minYArr[k])}),n.isBarHorizontal&&["min","max"].forEach(function(x){o.xaxis[x]!==void 0&&typeof o.xaxis[x]=="number"&&(x==="min"?n.minY=o.xaxis[x]:n.maxY=o.xaxis[x])}),n.isMultipleYAxis?(this.scales.setMultipleYScales(),n.minY=i,n.yAxisScale.forEach(function(x,k){n.minYArr[k]=x.niceMin,n.maxYArr[k]=x.niceMax})):(this.scales.setYScaleForIndex(0,n.minY,n.maxY),n.minY=n.yAxisScale[0].niceMin,n.maxY=n.yAxisScale[0].niceMax,n.minYArr[0]=n.yAxisScale[0].niceMin,n.maxYArr[0]=n.yAxisScale[0].niceMax),{minY:n.minY,maxY:n.maxY,minYArr:n.minYArr,maxYArr:n.maxYArr,yAxisScale:n.yAxisScale}}},{key:"setXRange",value:function(){var n=this.w.globals,o=this.w.config,i=o.xaxis.type==="numeric"||o.xaxis.type==="datetime"||o.xaxis.type==="category"&&!n.noLabelsProvided||n.noLabelsProvided||n.isXNumeric;if(n.isXNumeric&&function(){for(var h=0;h<n.series.length;h++)if(n.labels[h])for(var x=0;x<n.labels[h].length;x++)n.labels[h][x]!==null&&p.isNumber(n.labels[h][x])&&(n.maxX=Math.max(n.maxX,n.labels[h][x]),n.initialMaxX=Math.max(n.maxX,n.labels[h][x]),n.minX=Math.min(n.minX,n.labels[h][x]),n.initialMinX=Math.min(n.minX,n.labels[h][x]))}(),n.noLabelsProvided&&o.xaxis.categories.length===0&&(n.maxX=n.labels[n.labels.length-1],n.initialMaxX=n.labels[n.labels.length-1],n.minX=1,n.initialMinX=1),n.isXNumeric||n.noLabelsProvided||n.dataFormatXNumeric){var u;if(o.xaxis.tickAmount===void 0?(u=Math.round(n.svgWidth/150),o.xaxis.type==="numeric"&&n.dataPoints<30&&(u=n.dataPoints-1),u>n.dataPoints&&n.dataPoints!==0&&(u=n.dataPoints-1)):o.xaxis.tickAmount==="dataPoints"?(n.series.length>1&&(u=n.series[n.maxValsInArrayIndex].length-1),n.isXNumeric&&(u=n.maxX-n.minX-1)):u=o.xaxis.tickAmount,n.xTickAmount=u,o.xaxis.max!==void 0&&typeof o.xaxis.max=="number"&&(n.maxX=o.xaxis.max),o.xaxis.min!==void 0&&typeof o.xaxis.min=="number"&&(n.minX=o.xaxis.min),o.xaxis.range!==void 0&&(n.minX=n.maxX-o.xaxis.range),n.minX!==Number.MAX_VALUE&&n.maxX!==-Number.MAX_VALUE)if(o.xaxis.convertedCatToNumeric&&!n.dataFormatXNumeric){for(var c=[],d=n.minX-1;d<n.maxX;d++)c.push(d+1);n.xAxisScale={result:c,niceMin:c[0],niceMax:c[c.length-1]}}else n.xAxisScale=this.scales.setXScale(n.minX,n.maxX);else n.xAxisScale=this.scales.linearScale(0,u,u),n.noLabelsProvided&&n.labels.length>0&&(n.xAxisScale=this.scales.linearScale(1,n.labels.length,u-1),n.seriesX=n.labels.slice());i&&(n.labels=n.xAxisScale.result.slice())}return n.isBarHorizontal&&n.labels.length&&(n.xTickAmount=n.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:n.minX,maxX:n.maxX}}},{key:"setZRange",value:function(){var n=this.w.globals;if(n.isDataXYZ){for(var o=0;o<n.series.length;o++)if(n.seriesZ[o]!==void 0)for(var i=0;i<n.seriesZ[o].length;i++)n.seriesZ[o][i]!==null&&p.isNumber(n.seriesZ[o][i])&&(n.maxZ=Math.max(n.maxZ,n.seriesZ[o][i]),n.minZ=Math.min(n.minZ,n.seriesZ[o][i]))}}},{key:"_handleSingleDataPoint",value:function(){var n=this.w.globals,o=this.w.config;if(n.minX===n.maxX){var i=new oe(this.ctx);if(o.xaxis.type==="datetime"){var u=i.getDate(n.minX);o.xaxis.labels.datetimeUTC?u.setUTCDate(u.getUTCDate()-2):u.setDate(u.getDate()-2),n.minX=new Date(u).getTime();var c=i.getDate(n.maxX);o.xaxis.labels.datetimeUTC?c.setUTCDate(c.getUTCDate()+2):c.setDate(c.getDate()+2),n.maxX=new Date(c).getTime()}else(o.xaxis.type==="numeric"||o.xaxis.type==="category"&&!n.noLabelsProvided)&&(n.minX=n.minX-2,n.initialMinX=n.minX,n.maxX=n.maxX+2,n.initialMaxX=n.maxX)}}},{key:"_getMinXDiff",value:function(){var n=this.w.globals;n.isXNumeric&&n.seriesX.forEach(function(o,i){o.length===1&&o.push(n.seriesX[n.maxValsInArrayIndex][n.seriesX[n.maxValsInArrayIndex].length-1]);var u=o.slice();u.sort(function(c,d){return c-d}),u.forEach(function(c,d){if(d>0){var h=c-u[d-1];h>0&&(n.minXDiff=Math.min(h,n.minXDiff))}}),n.dataPoints!==1&&n.minXDiff!==Number.MAX_VALUE||(n.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var n=this,o=this.w.globals;if(o.series.length){var i=o.seriesGroups;i.length||(i=[this.w.config.series.map(function(d){return d.name})]);var u={},c={};i.forEach(function(d){u[d]=[],c[d]=[],n.w.config.series.map(function(h,x){return d.indexOf(h.name)>-1?x:null}).filter(function(h){return h!==null}).forEach(function(h){for(var x=0;x<o.series[o.maxValsInArrayIndex].length;x++)u[d][x]===void 0&&(u[d][x]=0,c[d][x]=0),o.series[h][x]!==null&&p.isNumber(o.series[h][x])&&(o.series[h][x]>0?u[d][x]+=parseFloat(o.series[h][x])+1e-4:c[d][x]+=parseFloat(o.series[h][x]))})}),Object.entries(u).forEach(function(d){var h=D(d,1)[0];u[h].forEach(function(x,k){o.maxY=Math.max(o.maxY,u[h][k]),o.minY=Math.min(o.minY,c[h][k])})})}}}]),J}(),qe=function(){function J(n,o){l(this,J),this.ctx=n,this.elgrid=o,this.w=n.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,i.config.xaxis.position==="bottom"&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Ve(n)}return b(J,[{key:"drawYaxis",value:function(n){var o=this,i=this.w,u=new m(this.ctx),c=i.config.yaxis[n].labels.style,d=c.fontSize,h=c.fontFamily,x=c.fontWeight,k=u.group({class:"apexcharts-yaxis",rel:n,transform:"translate("+i.globals.translateYAxisX[n]+", 0)"});if(this.axesUtils.isYAxisHidden(n))return k;var E=u.group({class:"apexcharts-yaxis-texts-g"});k.add(E);var N=i.globals.yAxisScale[n].result.length-1,L=i.globals.gridHeight/N,W=i.globals.translateY,G=i.globals.yLabelFormatters[n],q=i.globals.yAxisScale[n].result.slice();q=this.axesUtils.checkForReversedLabels(n,q);var Q="";if(i.config.yaxis[n].labels.show)for(var re=function(we){var Ce=q[we];Ce=G(Ce,we,i);var Ie=i.config.yaxis[n].labels.padding;i.config.yaxis[n].opposite&&i.config.yaxis.length!==0&&(Ie*=-1);var We="end";i.config.yaxis[n].opposite&&(We="start"),i.config.yaxis[n].labels.align==="left"?We="start":i.config.yaxis[n].labels.align==="center"?We="middle":i.config.yaxis[n].labels.align==="right"&&(We="end");var Fe=o.axesUtils.getYAxisForeColor(c.colors,n),$e=i.config.yaxis[n].labels.offsetY;i.config.chart.type==="heatmap"&&($e-=(i.globals.gridHeight/i.globals.series.length-1)/2);var Ke=u.drawText({x:Ie,y:W+N/10+$e+1,text:Ce,textAnchor:We,fontSize:d,fontFamily:h,fontWeight:x,maxWidth:i.config.yaxis[n].labels.maxWidth,foreColor:Array.isArray(Fe)?Fe[we]:Fe,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+c.cssClass});we===N&&(Q=Ke),E.add(Ke);var st=document.createElementNS(i.globals.SVGNS,"title");if(st.textContent=Array.isArray(Ce)?Ce.join(" "):Ce,Ke.node.appendChild(st),i.config.yaxis[n].labels.rotate!==0){var pt=u.rotateAroundCenter(Q.node),xt=u.rotateAroundCenter(Ke.node);Ke.node.setAttribute("transform","rotate(".concat(i.config.yaxis[n].labels.rotate," ").concat(pt.x," ").concat(xt.y,")"))}W+=L},ie=N;ie>=0;ie--)re(ie);if(i.config.yaxis[n].title.text!==void 0){var C=u.group({class:"apexcharts-yaxis-title"}),I=0;i.config.yaxis[n].opposite&&(I=i.globals.translateYAxisX[n]);var $=u.drawText({x:I,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[n].title.offsetY,text:i.config.yaxis[n].title.text,textAnchor:"end",foreColor:i.config.yaxis[n].title.style.color,fontSize:i.config.yaxis[n].title.style.fontSize,fontWeight:i.config.yaxis[n].title.style.fontWeight,fontFamily:i.config.yaxis[n].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[n].title.style.cssClass});C.add($),k.add(C)}var te=i.config.yaxis[n].axisBorder,ce=31+te.offsetX;if(i.config.yaxis[n].opposite&&(ce=-31-te.offsetX),te.show){var de=u.drawLine(ce,i.globals.translateY+te.offsetY-2,ce,i.globals.gridHeight+i.globals.translateY+te.offsetY+2,te.color,0,te.width);k.add(de)}return i.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(ce,N,te,i.config.yaxis[n].axisTicks,n,L,k),k}},{key:"drawYaxisInversed",value:function(n){var o=this.w,i=new m(this.ctx),u=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),c=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(o.globals.translateXAxisX,", ").concat(o.globals.translateXAxisY,")")});u.add(c);var d=o.globals.yAxisScale[n].result.length-1,h=o.globals.gridWidth/d+.1,x=h+o.config.xaxis.labels.offsetX,k=o.globals.xLabelFormatter,E=o.globals.yAxisScale[n].result.slice(),N=o.globals.timescaleLabels;N.length>0&&(this.xaxisLabels=N.slice(),d=(E=N.slice()).length),E=this.axesUtils.checkForReversedLabels(n,E);var L=N.length;if(o.config.xaxis.labels.show)for(var W=L?0:d;L?W<L:W>=0;L?W++:W--){var G=E[W];G=k(G,W,o);var q=o.globals.gridWidth+o.globals.padHorizontal-(x-h+o.config.xaxis.labels.offsetX);if(N.length){var Q=this.axesUtils.getLabel(E,N,q,W,this.drawnLabels,this.xaxisFontSize);q=Q.x,G=Q.text,this.drawnLabels.push(Q.text),W===0&&o.globals.skipFirstTimelinelabel&&(G=""),W===E.length-1&&o.globals.skipLastTimelinelabel&&(G="")}var re=i.drawText({x:q,y:this.xAxisoffX+o.config.xaxis.labels.offsetY+30-(o.config.xaxis.position==="top"?o.globals.xAxisHeight+o.config.xaxis.axisTicks.height-2:0),text:G,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[n]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:o.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+o.config.xaxis.labels.style.cssClass});c.add(re),re.tspan(G);var ie=document.createElementNS(o.globals.SVGNS,"title");ie.textContent=G,re.node.appendChild(ie),x+=h}return this.inversedYAxisTitleText(u),this.inversedYAxisBorder(u),u}},{key:"inversedYAxisBorder",value:function(n){var o=this.w,i=new m(this.ctx),u=o.config.xaxis.axisBorder;if(u.show){var c=0;o.config.chart.type==="bar"&&o.globals.isXNumeric&&(c-=15);var d=i.drawLine(o.globals.padHorizontal+c+u.offsetX,this.xAxisoffX,o.globals.gridWidth,this.xAxisoffX,u.color,0,u.height);this.elgrid&&this.elgrid.elGridBorders&&o.config.grid.show?this.elgrid.elGridBorders.add(d):n.add(d)}}},{key:"inversedYAxisTitleText",value:function(n){var o=this.w,i=new m(this.ctx);if(o.config.xaxis.title.text!==void 0){var u=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),c=i.drawText({x:o.globals.gridWidth/2+o.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(o.config.xaxis.title.style.fontSize)+o.config.xaxis.title.offsetY+20,text:o.config.xaxis.title.text,textAnchor:"middle",fontSize:o.config.xaxis.title.style.fontSize,fontFamily:o.config.xaxis.title.style.fontFamily,fontWeight:o.config.xaxis.title.style.fontWeight,foreColor:o.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+o.config.xaxis.title.style.cssClass});u.add(c),n.add(u)}}},{key:"yAxisTitleRotate",value:function(n,o){var i=this.w,u=new m(this.ctx),c={width:0,height:0},d={width:0,height:0},h=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g"));h!==null&&(c=h.getBoundingClientRect());var x=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-title text"));if(x!==null&&(d=x.getBoundingClientRect()),x!==null){var k=this.xPaddingForYAxisTitle(n,c,d,o);x.setAttribute("x",k.xPos-(o?10:0))}if(x!==null){var E=u.rotateAroundCenter(x);x.setAttribute("transform","rotate(".concat(o?-1*i.config.yaxis[n].title.rotate:i.config.yaxis[n].title.rotate," ").concat(E.x," ").concat(E.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(n,o,i,u){var c=this.w,d=0,h=0,x=10;return c.config.yaxis[n].title.text===void 0||n<0?{xPos:h,padd:0}:(u?(h=o.width+c.config.yaxis[n].title.offsetX+i.width/2+x/2,(d+=1)===0&&(h-=x/2)):(h=-1*o.width+c.config.yaxis[n].title.offsetX+x/2+i.width/2,c.globals.isBarHorizontal&&(x=25,h=-1*o.width-c.config.yaxis[n].title.offsetX-x)),{xPos:h,padd:x})}},{key:"setYAxisXPosition",value:function(n,o){var i=this.w,u=0,c=0,d=18,h=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(x,k){var E=i.globals.ignoreYAxisIndexes.indexOf(k)>-1||!x.show||x.floating||n[k].width===0,N=n[k].width+o[k].width;x.opposite?i.globals.isBarHorizontal?(c=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[k]=c-x.labels.offsetX):(c=i.globals.gridWidth+i.globals.translateX+h,E||(h=h+N+20),i.globals.translateYAxisX[k]=c-x.labels.offsetX+20):(u=i.globals.translateX-d,E||(d=d+N+20),i.globals.translateYAxisX[k]=u+x.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var n=this.w,o=n.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(o=p.listToArray(o)).forEach(function(i,u){var c=n.config.yaxis[u];if(c&&!c.floating&&c.labels.align!==void 0){var d=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(u,"'] .apexcharts-yaxis-texts-g")),h=n.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(u,"'] .apexcharts-yaxis-label"));h=p.listToArray(h);var x=d.getBoundingClientRect();c.labels.align==="left"?(h.forEach(function(k,E){k.setAttribute("text-anchor","start")}),c.opposite||d.setAttribute("transform","translate(-".concat(x.width,", 0)"))):c.labels.align==="center"?(h.forEach(function(k,E){k.setAttribute("text-anchor","middle")}),d.setAttribute("transform","translate(".concat(x.width/2*(c.opposite?1:-1),", 0)"))):c.labels.align==="right"&&(h.forEach(function(k,E){k.setAttribute("text-anchor","end")}),c.opposite&&d.setAttribute("transform","translate(".concat(x.width,", 0)")))}})}}]),J}(),He=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.documentEvent=p.bind(this.documentEvent,this)}return b(J,[{key:"addEventListener",value:function(n,o){var i=this.w;i.globals.events.hasOwnProperty(n)?i.globals.events[n].push(o):i.globals.events[n]=[o]}},{key:"removeEventListener",value:function(n,o){var i=this.w;if(i.globals.events.hasOwnProperty(n)){var u=i.globals.events[n].indexOf(o);u!==-1&&i.globals.events[n].splice(u,1)}}},{key:"fireEvent",value:function(n,o){var i=this.w;if(i.globals.events.hasOwnProperty(n)){o&&o.length||(o=[]);for(var u=i.globals.events[n],c=u.length,d=0;d<c;d++)u[d].apply(null,o)}}},{key:"setupEventHandlers",value:function(){var n=this,o=this.w,i=this.ctx,u=o.globals.dom.baseEl.querySelector(o.globals.chartClass);this.ctx.eventList.forEach(function(c){u.addEventListener(c,function(d){var h=Object.assign({},o,{seriesIndex:o.globals.capturedSeriesIndex,dataPointIndex:o.globals.capturedDataPointIndex});d.type==="mousemove"||d.type==="touchmove"?typeof o.config.chart.events.mouseMove=="function"&&o.config.chart.events.mouseMove(d,i,h):d.type==="mouseleave"||d.type==="touchleave"?typeof o.config.chart.events.mouseLeave=="function"&&o.config.chart.events.mouseLeave(d,i,h):(d.type==="mouseup"&&d.which===1||d.type==="touchend")&&(typeof o.config.chart.events.click=="function"&&o.config.chart.events.click(d,i,h),i.ctx.events.fireEvent("click",[d,i,h]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(c){o.globals.dom.baseEl.addEventListener(c,n.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(n){var o=this.w,i=n.target.className;if(n.type==="click"){var u=o.globals.dom.baseEl.querySelector(".apexcharts-menu");u&&u.classList.contains("apexcharts-menu-open")&&i!=="apexcharts-menu-icon"&&u.classList.remove("apexcharts-menu-open")}o.globals.clientX=n.type==="touchmove"?n.touches[0].clientX:n.clientX,o.globals.clientY=n.type==="touchmove"?n.touches[0].clientY:n.clientY}}]),J}(),Ze=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"setCurrentLocaleValues",value:function(n){var o=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(o=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=o.filter(function(c){return c.name===n})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var u=p.extend(U,i);this.w.globals.locale=u.options}}]),J}(),bt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"drawAxis",value:function(n,o){var i,u,c=this,d=this.w.globals,h=this.w.config,x=new Me(this.ctx,o),k=new qe(this.ctx,o);d.axisCharts&&n!=="radar"&&(d.isBarHorizontal?(u=k.drawYaxisInversed(0),i=x.drawXaxisInversed(0),d.dom.elGraphical.add(i),d.dom.elGraphical.add(u)):(i=x.drawXaxis(),d.dom.elGraphical.add(i),h.yaxis.map(function(E,N){if(d.ignoreYAxisIndexes.indexOf(N)===-1&&(u=k.drawYaxis(N),d.dom.Paper.add(u),c.w.config.grid.position==="back")){var L=d.dom.Paper.children()[1];L.remove(),d.dom.Paper.add(L)}})))}}]),J}(),wt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"drawXCrosshairs",value:function(){var n=this.w,o=new m(this.ctx),i=new g(this.ctx),u=n.config.xaxis.crosshairs.fill.gradient,c=n.config.xaxis.crosshairs.dropShadow,d=n.config.xaxis.crosshairs.fill.type,h=u.colorFrom,x=u.colorTo,k=u.opacityFrom,E=u.opacityTo,N=u.stops,L=c.enabled,W=c.left,G=c.top,q=c.blur,Q=c.color,re=c.opacity,ie=n.config.xaxis.crosshairs.fill.color;if(n.config.xaxis.crosshairs.show){d==="gradient"&&(ie=o.drawGradient("vertical",h,x,k,E,null,N,null));var C=o.drawRect();n.config.xaxis.crosshairs.width===1&&(C=o.drawLine());var I=n.globals.gridHeight;(!p.isNumber(I)||I<0)&&(I=0);var $=n.config.xaxis.crosshairs.width;(!p.isNumber($)||$<0)&&($=0),C.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:I,width:$,height:I,fill:ie,filter:"none","fill-opacity":n.config.xaxis.crosshairs.opacity,stroke:n.config.xaxis.crosshairs.stroke.color,"stroke-width":n.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":n.config.xaxis.crosshairs.stroke.dashArray}),L&&(C=i.dropShadow(C,{left:W,top:G,blur:q,color:Q,opacity:re})),n.globals.dom.elGraphical.add(C)}}},{key:"drawYCrosshairs",value:function(){var n=this.w,o=new m(this.ctx),i=n.config.yaxis[0].crosshairs,u=n.globals.barPadForNumericAxis;if(n.config.yaxis[0].crosshairs.show){var c=o.drawLine(-u,0,n.globals.gridWidth+u,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);c.attr({class:"apexcharts-ycrosshairs"}),n.globals.dom.elGraphical.add(c)}var d=o.drawLine(-u,0,n.globals.gridWidth+u,0,i.stroke.color,0,0);d.attr({class:"apexcharts-ycrosshairs-hidden"}),n.globals.dom.elGraphical.add(d)}}]),J}(),It=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"checkResponsiveConfig",value:function(n){var o=this,i=this.w,u=i.config;if(u.responsive.length!==0){var c=u.responsive.slice();c.sort(function(k,E){return k.breakpoint>E.breakpoint?1:E.breakpoint>k.breakpoint?-1:0}).reverse();var d=new ue({}),h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=c[0].breakpoint,N=window.innerWidth>0?window.innerWidth:screen.width;if(N>E){var L=_.extendArrayProps(d,i.globals.initialConfig,i);k=p.extend(L,k),k=p.extend(i.config,k),o.overrideResponsiveOptions(k)}else for(var W=0;W<c.length;W++)N<c[W].breakpoint&&(k=_.extendArrayProps(d,c[W].options,i),k=p.extend(i.config,k),o.overrideResponsiveOptions(k))};if(n){var x=_.extendArrayProps(d,n,i);x=p.extend(i.config,x),h(x=p.extend(x,n))}else h({})}}},{key:"overrideResponsiveOptions",value:function(n){var o=new ue(n).init({responsiveOverride:!0});this.w.config=o}}]),J}(),Pt=function(){function J(n){l(this,J),this.ctx=n,this.colors=[],this.w=n.w;var o=this.w;this.isColorFn=!1,this.isHeatmapDistributed=o.config.chart.type==="treemap"&&o.config.plotOptions.treemap.distributed||o.config.chart.type==="heatmap"&&o.config.plotOptions.heatmap.distributed,this.isBarDistributed=o.config.plotOptions.bar.distributed&&(o.config.chart.type==="bar"||o.config.chart.type==="rangeBar")}return b(J,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var n,o=this,i=this.w,u=new p;if(i.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(i.config.theme.mode)),i.config.colors===void 0||((n=i.config.colors)===null||n===void 0?void 0:n.length)===0?i.globals.colors=this.predefined():(i.globals.colors=i.config.colors,Array.isArray(i.config.colors)&&i.config.colors.length>0&&typeof i.config.colors[0]=="function"&&(i.globals.colors=i.config.series.map(function(G,q){var Q=i.config.colors[q];return Q||(Q=i.config.colors[0]),typeof Q=="function"?(o.isColorFn=!0,Q({value:i.globals.axisCharts?i.globals.series[q][0]?i.globals.series[q][0]:0:i.globals.series[q],seriesIndex:q,dataPointIndex:q,w:i})):Q}))),i.globals.seriesColors.map(function(G,q){G&&(i.globals.colors[q]=G)}),i.config.theme.monochrome.enabled){var c=[],d=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(d=i.globals.series[0].length*i.globals.series.length);for(var h=i.config.theme.monochrome.color,x=1/(d/i.config.theme.monochrome.shadeIntensity),k=i.config.theme.monochrome.shadeTo,E=0,N=0;N<d;N++){var L=void 0;k==="dark"?(L=u.shadeColor(-1*E,h),E+=x):(L=u.shadeColor(E,h),E+=x),c.push(L)}i.globals.colors=c.slice()}var W=i.globals.colors.slice();this.pushExtraColors(i.globals.colors),["fill","stroke"].forEach(function(G){i.config[G].colors===void 0?i.globals[G].colors=o.isColorFn?i.config.colors:W:i.globals[G].colors=i.config[G].colors.slice(),o.pushExtraColors(i.globals[G].colors)}),i.config.dataLabels.style.colors===void 0?i.globals.dataLabels.style.colors=W:i.globals.dataLabels.style.colors=i.config.dataLabels.style.colors.slice(),this.pushExtraColors(i.globals.dataLabels.style.colors,50),i.config.plotOptions.radar.polygons.fill.colors===void 0?i.globals.radarPolygons.fill.colors=[i.config.theme.mode==="dark"?"#424242":"none"]:i.globals.radarPolygons.fill.colors=i.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(i.globals.radarPolygons.fill.colors,20),i.config.markers.colors===void 0?i.globals.markers.colors=W:i.globals.markers.colors=i.config.markers.colors.slice(),this.pushExtraColors(i.globals.markers.colors)}},{key:"pushExtraColors",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=this.w,c=o||u.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||u.config.chart.type==="heatmap"&&u.config.plotOptions.heatmap.colorScale.inverse),i&&u.globals.series.length&&(c=u.globals.series[u.globals.maxValsInArrayIndex].length*u.globals.series.length),n.length<c)for(var d=c-n.length,h=0;h<d;h++)n.push(n[h])}},{key:"updateThemeOptions",value:function(n){n.chart=n.chart||{},n.tooltip=n.tooltip||{};var o=n.theme.mode||"light",i=n.theme.palette?n.theme.palette:o==="dark"?"palette4":"palette1",u=n.chart.foreColor?n.chart.foreColor:o==="dark"?"#f6f7f8":"#373d3f";return n.tooltip.theme=o,n.chart.foreColor=u,n.theme.palette=i,n}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),J}(),Lt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(n){var o=this.w,i=n==="title"?o.config.title:o.config.subtitle,u=o.globals.svgWidth/2,c=i.offsetY,d="middle";if(i.align==="left"?(u=10,d="start"):i.align==="right"&&(u=o.globals.svgWidth-10,d="end"),u+=i.offsetX,c=c+parseInt(i.style.fontSize,10)+i.margin/2,i.text!==void 0){var h=new m(this.ctx).drawText({x:u,y:c,text:i.text,textAnchor:d,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});h.node.setAttribute("class","apexcharts-".concat(n,"-text")),o.globals.dom.Paper.add(h)}}}]),J}(),Zt=function(){function J(n){l(this,J),this.w=n.w,this.dCtx=n}return b(J,[{key:"getTitleSubtitleCoords",value:function(n){var o=this.w,i=0,u=0,c=n==="title"?o.config.title.floating:o.config.subtitle.floating,d=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-text"));if(d!==null&&!c){var h=d.getBoundingClientRect();i=h.width,u=o.globals.axisCharts?h.height+5:h.height}return{width:i,height:u}}},{key:"getLegendsRect",value:function(){var n=this.w,o=n.globals.dom.elLegendWrap;n.config.legend.height||n.config.legend.position!=="top"&&n.config.legend.position!=="bottom"||(o.style.maxHeight=n.globals.svgHeight/2+"px");var i=Object.assign({},p.getBoundingClientRect(o));return o!==null&&!n.config.legend.floating&&n.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:i.height===0?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},n.config.legend.position!=="left"&&n.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>n.globals.svgWidth&&(this.dCtx.lgRect.width=n.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(n,o){var i=n;if(this.w.globals.isMultiLineX){var u=o.map(function(d,h){return Array.isArray(d)?d.length:1}),c=Math.max.apply(Math,R(u));i=o[u.indexOf(c)]}return i}}]),J}(),Qt=function(){function J(n){l(this,J),this.w=n.w,this.dCtx=n}return b(J,[{key:"getxAxisLabelsCoords",value:function(){var n,o=this.w,i=o.globals.labels.slice();if(o.config.xaxis.convertedCatToNumeric&&i.length===0&&(i=o.globals.categoryLabels),o.globals.timescaleLabels.length>0){var u=this.getxAxisTimeScaleLabelsCoords();n={width:u.width,height:u.height},o.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=o.config.legend.position!=="left"&&o.config.legend.position!=="right"||o.config.legend.floating?0:this.dCtx.lgRect.width;var c=o.globals.xLabelFormatter,d=p.getLargestStringFromArr(i),h=this.dCtx.dimHelpers.getLargestStringFromMultiArr(d,i);o.globals.isBarHorizontal&&(h=d=o.globals.yAxisScale[0].result.reduce(function(G,q){return G.length>q.length?G:q},0));var x=new fe(this.dCtx.ctx),k=d;d=x.xLabelFormat(c,d,k,{i:void 0,dateFormatter:new oe(this.dCtx.ctx).formatDate,w:o}),h=x.xLabelFormat(c,h,k,{i:void 0,dateFormatter:new oe(this.dCtx.ctx).formatDate,w:o}),(o.config.xaxis.convertedCatToNumeric&&d===void 0||String(d).trim()==="")&&(h=d="1");var E=new m(this.dCtx.ctx),N=E.getTextRects(d,o.config.xaxis.labels.style.fontSize),L=N;if(d!==h&&(L=E.getTextRects(h,o.config.xaxis.labels.style.fontSize)),(n={width:N.width>=L.width?N.width:L.width,height:N.height>=L.height?N.height:L.height}).width*i.length>o.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&o.config.xaxis.labels.rotate!==0||o.config.xaxis.labels.rotateAlways){if(!o.globals.isBarHorizontal){o.globals.rotateXLabels=!0;var W=function(G){return E.getTextRects(G,o.config.xaxis.labels.style.fontSize,o.config.xaxis.labels.style.fontFamily,"rotate(".concat(o.config.xaxis.labels.rotate," 0 0)"),!1)};N=W(d),d!==h&&(L=W(h)),n.height=(N.height>L.height?N.height:L.height)/1.5,n.width=N.width>L.width?N.width:L.width}}else o.globals.rotateXLabels=!1}return o.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var n,o=this.w;if(!o.globals.hasXaxisGroups)return{width:0,height:0};var i,u=((n=o.config.xaxis.group.style)===null||n===void 0?void 0:n.fontSize)||o.config.xaxis.labels.style.fontSize,c=o.globals.groups.map(function(N){return N.title}),d=p.getLargestStringFromArr(c),h=this.dCtx.dimHelpers.getLargestStringFromMultiArr(d,c),x=new m(this.dCtx.ctx),k=x.getTextRects(d,u),E=k;return d!==h&&(E=x.getTextRects(h,u)),i={width:k.width>=E.width?k.width:E.width,height:k.height>=E.height?k.height:E.height},o.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var n=this.w,o=0,i=0;if(n.config.xaxis.title.text!==void 0){var u=new m(this.dCtx.ctx).getTextRects(n.config.xaxis.title.text,n.config.xaxis.title.style.fontSize);o=u.width,i=u.height}return{width:o,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var n,o=this.w;this.dCtx.timescaleLabels=o.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(c){return c.value}),u=i.reduce(function(c,d){return c===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):c.length>d.length?c:d},0);return 1.05*(n=new m(this.dCtx.ctx).getTextRects(u,o.config.xaxis.labels.style.fontSize)).width*i.length>o.globals.gridWidth&&o.config.xaxis.labels.rotate!==0&&(o.globals.overlappingXLabels=!0),n}},{key:"additionalPaddingXLabels",value:function(n){var o=this,i=this.w,u=i.globals,c=i.config,d=c.xaxis.type,h=n.width;u.skipLastTimelinelabel=!1,u.skipFirstTimelinelabel=!1;var x=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,k=function(E,N){c.yaxis.length>1&&function(L){return u.collapsedSeriesIndices.indexOf(L)!==-1}(N)||function(L){if(o.dCtx.timescaleLabels&&o.dCtx.timescaleLabels.length){var W=o.dCtx.timescaleLabels[0],G=o.dCtx.timescaleLabels[o.dCtx.timescaleLabels.length-1].position+h/1.75-o.dCtx.yAxisWidthRight,q=W.position-h/1.75+o.dCtx.yAxisWidthLeft,Q=i.config.legend.position==="right"&&o.dCtx.lgRect.width>0?o.dCtx.lgRect.width:0;G>u.svgWidth-u.translateX-Q&&(u.skipLastTimelinelabel=!0),q<-(L.show&&!L.floating||c.chart.type!=="bar"&&c.chart.type!=="candlestick"&&c.chart.type!=="rangeBar"&&c.chart.type!=="boxPlot"?10:h/1.75)&&(u.skipFirstTimelinelabel=!0)}else d==="datetime"?o.dCtx.gridPad.right<h&&!u.rotateXLabels&&(u.skipLastTimelinelabel=!0):d!=="datetime"&&o.dCtx.gridPad.right<h/2-o.dCtx.yAxisWidthRight&&!u.rotateXLabels&&!i.config.xaxis.labels.trim&&(i.config.xaxis.tickPlacement!=="between"||i.globals.isBarHorizontal)&&(o.dCtx.xPadRight=h/2+1)}(E)};c.yaxis.forEach(function(E,N){x?(o.dCtx.gridPad.left<h&&(o.dCtx.xPadLeft=h/2+1),o.dCtx.xPadRight=h/2+1):k(E,N)})}}]),J}(),kt=function(){function J(n){l(this,J),this.w=n.w,this.dCtx=n}return b(J,[{key:"getyAxisLabelsCoords",value:function(){var n=this,o=this.w,i=[],u=10,c=new Ve(this.dCtx.ctx);return o.config.yaxis.map(function(d,h){var x={seriesIndex:h,dataPointIndex:-1,w:o},k=o.globals.yAxisScale[h],E=0;if(!c.isYAxisHidden(h)&&d.labels.show&&d.labels.minWidth!==void 0&&(E=d.labels.minWidth),!c.isYAxisHidden(h)&&d.labels.show&&k.result.length){var N=o.globals.yLabelFormatters[h],L=k.niceMin===Number.MIN_VALUE?0:k.niceMin,W=k.result.reduce(function(I,$){var te,ce;return((te=String(N(I,x)))===null||te===void 0?void 0:te.length)>((ce=String(N($,x)))===null||ce===void 0?void 0:ce.length)?I:$},L),G=W=N(W,x);if(W!==void 0&&W.length!==0||(W=k.niceMax),o.globals.isBarHorizontal){u=0;var q=o.globals.labels.slice();W=p.getLargestStringFromArr(q),W=N(W,{seriesIndex:h,dataPointIndex:-1,w:o}),G=n.dCtx.dimHelpers.getLargestStringFromMultiArr(W,q)}var Q=new m(n.dCtx.ctx),re="rotate(".concat(d.labels.rotate," 0 0)"),ie=Q.getTextRects(W,d.labels.style.fontSize,d.labels.style.fontFamily,re,!1),C=ie;W!==G&&(C=Q.getTextRects(G,d.labels.style.fontSize,d.labels.style.fontFamily,re,!1)),i.push({width:(E>C.width||E>ie.width?E:C.width>ie.width?C.width:ie.width)+u,height:C.height>ie.height?C.height:ie.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var n=this,o=this.w,i=[];return o.config.yaxis.map(function(u,c){if(u.show&&u.title.text!==void 0){var d=new m(n.dCtx.ctx),h="rotate(".concat(u.title.rotate," 0 0)"),x=d.getTextRects(u.title.text,u.title.style.fontSize,u.title.style.fontFamily,h,!1);i.push({width:x.width,height:x.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var n=this.w,o=0,i=0,u=0,c=n.globals.yAxisScale.length>1?10:0,d=new Ve(this.dCtx.ctx),h=function(x,k){var E=n.config.yaxis[k].floating,N=0;x.width>0&&!E?(N=x.width+c,function(L){return n.globals.ignoreYAxisIndexes.indexOf(L)>-1}(k)&&(N=N-x.width-c)):N=E||d.isYAxisHidden(k)?0:5,n.config.yaxis[k].opposite?u+=N:i+=N,o+=N};return n.globals.yLabelsCoords.map(function(x,k){h(x,k)}),n.globals.yTitleCoords.map(function(x,k){h(x,k)}),n.globals.isBarHorizontal&&!n.config.yaxis[0].floating&&(o=n.globals.yLabelsCoords[0].width+n.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=u,o}}]),J}(),yt=function(){function J(n){l(this,J),this.w=n.w,this.dCtx=n}return b(J,[{key:"gridPadForColumnsInNumericAxis",value:function(n){var o=this.w;if(o.globals.noData||o.globals.allSeriesCollapsed)return 0;var i=function(E){return E==="bar"||E==="rangeBar"||E==="candlestick"||E==="boxPlot"},u=o.config.chart.type,c=0,d=i(u)?o.config.series.length:1;if(o.globals.comboBarCount>0&&(d=o.globals.comboBarCount),o.globals.collapsedSeries.forEach(function(E){i(E.type)&&(d-=1)}),o.config.chart.stacked&&(d=1),(i(u)||o.globals.comboBarCount>0)&&o.globals.isXNumeric&&!o.globals.isBarHorizontal&&d>0){var h,x,k=Math.abs(o.globals.initialMaxX-o.globals.initialMinX);k<=3&&(k=o.globals.dataPoints),h=k/n,o.globals.minXDiff&&o.globals.minXDiff/h>0&&(x=o.globals.minXDiff/h),x>n/2&&(x/=2),(c=x/d*parseInt(o.config.plotOptions.bar.columnWidth,10)/100)<1&&(c=1),c=c/(d>1?1:1.5)+5,o.globals.barPadForNumericAxis=c}return c}},{key:"gridPadFortitleSubtitle",value:function(){var n=this,o=this.w,i=o.globals,u=this.dCtx.isSparkline||!o.globals.axisCharts?0:10;["title","subtitle"].forEach(function(h){o.config[h].text!==void 0?u+=o.config[h].margin:u+=n.dCtx.isSparkline||!o.globals.axisCharts?0:5}),!o.config.legend.show||o.config.legend.position!=="bottom"||o.config.legend.floating||o.globals.axisCharts||(u+=10);var c=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),d=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-c.height-d.height-u,i.translateY=i.translateY+c.height+d.height+u}},{key:"setGridXPosForDualYAxis",value:function(n,o){var i=this.w,u=new Ve(this.dCtx.ctx);i.config.yaxis.map(function(c,d){i.globals.ignoreYAxisIndexes.indexOf(d)!==-1||c.floating||u.isYAxisHidden(d)||(c.opposite&&(i.globals.translateX=i.globals.translateX-(o[d].width+n[d].width)-parseInt(i.config.yaxis[d].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),J}(),Jt=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new Zt(this),this.dimYAxis=new kt(this),this.dimXAxis=new Qt(this),this.dimGrid=new yt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return b(J,[{key:"plotCoords",value:function(){var n=this,o=this.w,i=o.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((o.config.markers.discrete.length>0||o.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(c){var d=D(c,2),h=d[0],x=d[1];n.gridPad[h]=Math.max(x,n.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(o.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(o.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var u=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*u,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(u>0?u+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var n=this,o=this.w,i=o.globals,u=this.dimYAxis.getyAxisLabelsCoords(),c=this.dimYAxis.getyAxisTitleCoords();o.globals.yLabelsCoords=[],o.globals.yTitleCoords=[],o.config.yaxis.map(function(W,G){o.globals.yLabelsCoords.push({width:u[G].width,index:G}),o.globals.yTitleCoords.push({width:c[G].width,index:G})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var d=this.dimXAxis.getxAxisLabelsCoords(),h=this.dimXAxis.getxAxisGroupLabelsCoords(),x=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(d,x,h),i.translateXAxisY=o.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=o.globals.rotateXLabels&&o.globals.isXNumeric&&o.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,o.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(o.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+o.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+o.config.xaxis.labels.offsetX;var k=this.yAxisWidth,E=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-x.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-d.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var N=10;(o.config.chart.type==="radar"||this.isSparkline)&&(k=0,E=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||o.config.chart.type==="treemap")&&(k=0,E=0,N=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(d);var L=function(){i.translateX=k,i.gridHeight=i.svgHeight-n.lgRect.height-E-(n.isSparkline||o.config.chart.type==="treemap"?0:o.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-k};switch(o.config.xaxis.position==="top"&&(N=i.xAxisHeight-o.config.xaxis.axisTicks.height-5),o.config.legend.position){case"bottom":i.translateY=N,L();break;case"top":i.translateY=this.lgRect.height+N,L();break;case"left":i.translateY=N,i.translateX=this.lgRect.width+k,i.gridHeight=i.svgHeight-E-12,i.gridWidth=i.svgWidth-this.lgRect.width-k;break;case"right":i.translateY=N,i.translateX=k,i.gridHeight=i.svgHeight-E-12,i.gridWidth=i.svgWidth-this.lgRect.width-k-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(c,u),new qe(this.ctx).setYAxisXPosition(u,c)}},{key:"setDimensionsForNonAxisCharts",value:function(){var n=this.w,o=n.globals,i=n.config,u=0;n.config.legend.show&&!n.config.legend.floating&&(u=20);var c=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",d=i.plotOptions[c].offsetY,h=i.plotOptions[c].offsetX;if(!i.legend.show||i.legend.floating)return o.gridHeight=o.svgHeight-i.grid.padding.left+i.grid.padding.right,o.gridWidth=o.gridHeight,o.translateY=d,void(o.translateX=h+(o.svgWidth-o.gridWidth)/2);switch(i.legend.position){case"bottom":o.gridHeight=o.svgHeight-this.lgRect.height-o.goldenPadding,o.gridWidth=o.svgWidth,o.translateY=d-10,o.translateX=h+(o.svgWidth-o.gridWidth)/2;break;case"top":o.gridHeight=o.svgHeight-this.lgRect.height-o.goldenPadding,o.gridWidth=o.svgWidth,o.translateY=this.lgRect.height+d+10,o.translateX=h+(o.svgWidth-o.gridWidth)/2;break;case"left":o.gridWidth=o.svgWidth-this.lgRect.width-u,o.gridHeight=i.chart.height!=="auto"?o.svgHeight:o.gridWidth,o.translateY=d,o.translateX=h+this.lgRect.width+u;break;case"right":o.gridWidth=o.svgWidth-this.lgRect.width-u-5,o.gridHeight=i.chart.height!=="auto"?o.svgHeight:o.gridWidth,o.translateY=d,o.translateX=h+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(n,o,i){var u=this.w,c=u.globals.hasXaxisGroups?2:1,d=i.height+n.height+o.height,h=u.globals.isMultiLineX?1.2:u.globals.LINE_HEIGHT_RATIO,x=u.globals.rotateXLabels?22:10,k=u.globals.rotateXLabels&&u.config.legend.position==="bottom"?10:0;this.xAxisHeight=d*h+c*x+k,this.xAxisWidth=n.width,this.xAxisHeight-o.height>u.config.xaxis.labels.maxHeight&&(this.xAxisHeight=u.config.xaxis.labels.maxHeight),u.config.xaxis.labels.minHeight&&this.xAxisHeight<u.config.xaxis.labels.minHeight&&(this.xAxisHeight=u.config.xaxis.labels.minHeight),u.config.xaxis.floating&&(this.xAxisHeight=0);var E=0,N=0;u.config.yaxis.forEach(function(L){E+=L.labels.minWidth,N+=L.labels.maxWidth}),this.yAxisWidth<E&&(this.yAxisWidth=E),this.yAxisWidth>N&&(this.yAxisWidth=N)}}]),J}(),wr=function(){function J(n){l(this,J),this.w=n.w,this.lgCtx=n}return b(J,[{key:"getLegendStyles",value:function(){var n=document.createElement("style");n.setAttribute("type","text/css");var o=document.createTextNode(`
.apexcharts-legend {
display: flex;
overflow: auto;
padding: 0 10px;
}
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
flex-wrap: wrap
}
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
flex-direction: column;
bottom: 0;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
justify-content: flex-start;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
justify-content: center;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
justify-content: flex-end;
}
.apexcharts-legend-series {
cursor: pointer;
line-height: normal;
}
.apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{
display: flex;
align-items: center;
}
.apexcharts-legend-text {
position: relative;
font-size: 14px;
}
.apexcharts-legend-text *, .apexcharts-legend-marker * {
pointer-events: none;
}
.apexcharts-legend-marker {
position: relative;
display: inline-block;
cursor: pointer;
margin-right: 3px;
border-style: solid;
}
.apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{
display: inline-block;
}
.apexcharts-legend-series.apexcharts-no-click {
cursor: auto;
}
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
display: none !important;
}
.apexcharts-inactive-legend {
opacity: 0.45;
}`);return n.appendChild(o),n}},{key:"getLegendBBox",value:function(){var n=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),o=n.width;return{clwh:n.height,clww:o}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(n,o){var i=this,u=this.w;if(u.globals.axisCharts||u.config.chart.type==="radialBar"){u.globals.resized=!0;var c=null,d=null;u.globals.risingSeries=[],u.globals.axisCharts?(c=u.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(n,"']")),d=parseInt(c.getAttribute("data:realIndex"),10)):(c=u.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"']")),d=parseInt(c.getAttribute("rel"),10)-1),o?[{cs:u.globals.collapsedSeries,csi:u.globals.collapsedSeriesIndices},{cs:u.globals.ancillaryCollapsedSeries,csi:u.globals.ancillaryCollapsedSeriesIndices}].forEach(function(E){i.riseCollapsedSeries(E.cs,E.csi,d)}):this.hideSeries({seriesEl:c,realIndex:d})}else{var h=u.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(n+1,"'] path")),x=u.config.chart.type;if(x==="pie"||x==="polarArea"||x==="donut"){var k=u.config.plotOptions.pie.donut.labels;new m(this.lgCtx.ctx).pathMouseDown(h.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(h.members[0].node,k)}h.fire("click")}}},{key:"hideSeries",value:function(n){var o=n.seriesEl,i=n.realIndex,u=this.w,c=p.clone(u.config.series);if(u.globals.axisCharts){var d=!1;if(u.config.yaxis[i]&&u.config.yaxis[i].show&&u.config.yaxis[i].showAlways&&(d=!0,u.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(u.globals.ancillaryCollapsedSeries.push({index:i,data:c[i].data.slice(),type:o.parentNode.className.baseVal.split("-")[1]}),u.globals.ancillaryCollapsedSeriesIndices.push(i))),!d){u.globals.collapsedSeries.push({index:i,data:c[i].data.slice(),type:o.parentNode.className.baseVal.split("-")[1]}),u.globals.collapsedSeriesIndices.push(i);var h=u.globals.risingSeries.indexOf(i);u.globals.risingSeries.splice(h,1)}}else u.globals.collapsedSeries.push({index:i,data:c[i]}),u.globals.collapsedSeriesIndices.push(i);for(var x=o.childNodes,k=0;k<x.length;k++)x[k].classList.contains("apexcharts-series-markers-wrap")&&(x[k].classList.contains("apexcharts-hide")?x[k].classList.remove("apexcharts-hide"):x[k].classList.add("apexcharts-hide"));u.globals.allSeriesCollapsed=u.globals.collapsedSeries.length===u.config.series.length,c=this._getSeriesBasedOnCollapsedState(c),this.lgCtx.ctx.updateHelpers._updateSeries(c,u.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(n,o,i){var u=this.w,c=p.clone(u.config.series);if(n.length>0){for(var d=0;d<n.length;d++)n[d].index===i&&(u.globals.axisCharts?(c[i].data=n[d].data.slice(),n.splice(d,1),o.splice(d,1),u.globals.risingSeries.push(i)):(c[i]=n[d].data,n.splice(d,1),o.splice(d,1),u.globals.risingSeries.push(i)));c=this._getSeriesBasedOnCollapsedState(c),this.lgCtx.ctx.updateHelpers._updateSeries(c,u.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(n){var o=this.w;return o.globals.axisCharts?n.forEach(function(i,u){o.globals.collapsedSeriesIndices.indexOf(u)>-1&&(n[u].data=[])}):n.forEach(function(i,u){o.globals.collapsedSeriesIndices.indexOf(u)>-1&&(n[u]=0)}),n}}]),J}(),er=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new wr(this)}return b(J,[{key:"init",value:function(){var n=this.w,o=n.globals,i=n.config;if((i.legend.showForSingleSeries&&o.series.length===1||this.isBarsDistributed||o.series.length>1||!o.axisCharts)&&i.legend.show){for(;o.dom.elLegendWrap.firstChild;)o.dom.elLegendWrap.removeChild(o.dom.elLegendWrap.firstChild);this.drawLegends(),p.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var n=this,o=this.w,i=o.config.legend.fontFamily,u=o.globals.seriesNames,c=o.globals.colors.slice();if(o.config.chart.type==="heatmap"){var d=o.config.plotOptions.heatmap.colorScale.ranges;u=d.map(function(Fe){return Fe.name?Fe.name:Fe.from+" - "+Fe.to}),c=d.map(function(Fe){return Fe.color})}else this.isBarsDistributed&&(u=o.globals.labels.slice());o.config.legend.customLegendItems.length&&(u=o.config.legend.customLegendItems);for(var h=o.globals.legendFormatter,x=o.config.legend.inverseOrder,k=x?u.length-1:0;x?k>=0:k<=u.length-1;x?k--:k++){var E,N=h(u[k],{seriesIndex:k,w:o}),L=!1,W=!1;if(o.globals.collapsedSeries.length>0)for(var G=0;G<o.globals.collapsedSeries.length;G++)o.globals.collapsedSeries[G].index===k&&(L=!0);if(o.globals.ancillaryCollapsedSeriesIndices.length>0)for(var q=0;q<o.globals.ancillaryCollapsedSeriesIndices.length;q++)o.globals.ancillaryCollapsedSeriesIndices[q]===k&&(W=!0);var Q=document.createElement("span");Q.classList.add("apexcharts-legend-marker");var re=o.config.legend.markers.offsetX,ie=o.config.legend.markers.offsetY,C=o.config.legend.markers.height,I=o.config.legend.markers.width,$=o.config.legend.markers.strokeWidth,te=o.config.legend.markers.strokeColor,ce=o.config.legend.markers.radius,de=Q.style;de.background=c[k],de.color=c[k],de.setProperty("background",c[k],"important"),o.config.legend.markers.fillColors&&o.config.legend.markers.fillColors[k]&&(de.background=o.config.legend.markers.fillColors[k]),o.globals.seriesColors[k]!==void 0&&(de.background=o.globals.seriesColors[k],de.color=o.globals.seriesColors[k]),de.height=Array.isArray(C)?parseFloat(C[k])+"px":parseFloat(C)+"px",de.width=Array.isArray(I)?parseFloat(I[k])+"px":parseFloat(I)+"px",de.left=(Array.isArray(re)?parseFloat(re[k]):parseFloat(re))+"px",de.top=(Array.isArray(ie)?parseFloat(ie[k]):parseFloat(ie))+"px",de.borderWidth=Array.isArray($)?$[k]:$,de.borderColor=Array.isArray(te)?te[k]:te,de.borderRadius=Array.isArray(ce)?parseFloat(ce[k])+"px":parseFloat(ce)+"px",o.config.legend.markers.customHTML&&(Array.isArray(o.config.legend.markers.customHTML)?o.config.legend.markers.customHTML[k]&&(Q.innerHTML=o.config.legend.markers.customHTML[k]()):Q.innerHTML=o.config.legend.markers.customHTML()),m.setAttrs(Q,{rel:k+1,"data:collapsed":L||W}),(L||W)&&Q.classList.add("apexcharts-inactive-legend");var we=document.createElement("div"),Ce=document.createElement("span");Ce.classList.add("apexcharts-legend-text"),Ce.innerHTML=Array.isArray(N)?N.join(" "):N;var Ie=o.config.legend.labels.useSeriesColors?o.globals.colors[k]:Array.isArray(o.config.legend.labels.colors)?(E=o.config.legend.labels.colors)===null||E===void 0?void 0:E[k]:o.config.legend.labels.colors;Ie||(Ie=o.config.chart.foreColor),Ce.style.color=Ie,Ce.style.fontSize=parseFloat(o.config.legend.fontSize)+"px",Ce.style.fontWeight=o.config.legend.fontWeight,Ce.style.fontFamily=i||o.config.chart.fontFamily,m.setAttrs(Ce,{rel:k+1,i:k,"data:default-text":encodeURIComponent(N),"data:collapsed":L||W}),we.appendChild(Q),we.appendChild(Ce);var We=new _(this.ctx);o.config.legend.showForZeroSeries||We.getSeriesTotalByIndex(k)===0&&We.seriesHaveSameValues(k)&&!We.isSeriesNull(k)&&o.globals.collapsedSeriesIndices.indexOf(k)===-1&&o.globals.ancillaryCollapsedSeriesIndices.indexOf(k)===-1&&we.classList.add("apexcharts-hidden-zero-series"),o.config.legend.showForNullSeries||We.isSeriesNull(k)&&o.globals.collapsedSeriesIndices.indexOf(k)===-1&&o.globals.ancillaryCollapsedSeriesIndices.indexOf(k)===-1&&we.classList.add("apexcharts-hidden-null-series"),o.globals.dom.elLegendWrap.appendChild(we),o.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(o.config.legend.horizontalAlign)),o.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+o.config.legend.position),we.classList.add("apexcharts-legend-series"),we.style.margin="".concat(o.config.legend.itemMargin.vertical,"px ").concat(o.config.legend.itemMargin.horizontal,"px"),o.globals.dom.elLegendWrap.style.width=o.config.legend.width?o.config.legend.width+"px":"",o.globals.dom.elLegendWrap.style.height=o.config.legend.height?o.config.legend.height+"px":"",m.setAttrs(we,{rel:k+1,seriesName:p.escapeString(u[k]),"data:collapsed":L||W}),(L||W)&&we.classList.add("apexcharts-inactive-legend"),o.config.legend.onItemClick.toggleDataSeries||we.classList.add("apexcharts-no-click")}o.globals.dom.elWrap.addEventListener("click",n.onLegendClick,!0),o.config.legend.onItemHover.highlightDataSeries&&o.config.legend.customLegendItems.length===0&&(o.globals.dom.elWrap.addEventListener("mousemove",n.onLegendHovered,!0),o.globals.dom.elWrap.addEventListener("mouseout",n.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(n,o){var i=this.w,u=i.globals.dom.elLegendWrap,c=u.getBoundingClientRect(),d=0,h=0;if(i.config.legend.position==="bottom")h+=i.globals.svgHeight-c.height/2;else if(i.config.legend.position==="top"){var x=new Jt(this.ctx),k=x.dimHelpers.getTitleSubtitleCoords("title").height,E=x.dimHelpers.getTitleSubtitleCoords("subtitle").height;h=h+(k>0?k-10:0)+(E>0?E-10:0)}u.style.position="absolute",d=d+n+i.config.legend.offsetX,h=h+o+i.config.legend.offsetY,u.style.left=d+"px",u.style.top=h+"px",i.config.legend.position==="bottom"?(u.style.top="auto",u.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(u.style.left="auto",u.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(N){u.style[N]&&(u.style[N]=parseInt(i.config.legend[N],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var n=this.w;n.globals.dom.elLegendWrap.style.right=0;var o=this.legendHelpers.getLegendBBox(),i=new Jt(this.ctx),u=i.dimHelpers.getTitleSubtitleCoords("title"),c=i.dimHelpers.getTitleSubtitleCoords("subtitle"),d=0;n.config.legend.position==="bottom"?d=-o.clwh/1.8:n.config.legend.position==="top"&&(d=u.height+c.height+n.config.title.margin+n.config.subtitle.margin-10),this.setLegendWrapXY(20,d)}},{key:"legendAlignVertical",value:function(){var n=this.w,o=this.legendHelpers.getLegendBBox(),i=0;n.config.legend.position==="left"&&(i=20),n.config.legend.position==="right"&&(i=n.globals.svgWidth-o.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(n){var o=this.w,i=n.target.classList.contains("apexcharts-legend-series")||n.target.classList.contains("apexcharts-legend-text")||n.target.classList.contains("apexcharts-legend-marker");if(o.config.chart.type==="heatmap"||this.isBarsDistributed){if(i){var u=parseInt(n.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,u,this.w]),new Oe(this.ctx).highlightRangeInSeries(n,n.target)}}else!n.target.classList.contains("apexcharts-inactive-legend")&&i&&new Oe(this.ctx).toggleSeriesOnHover(n,n.target)}},{key:"onLegendClick",value:function(n){var o=this.w;if(!o.config.legend.customLegendItems.length&&(n.target.classList.contains("apexcharts-legend-series")||n.target.classList.contains("apexcharts-legend-text")||n.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(n.target.getAttribute("rel"),10)-1,u=n.target.getAttribute("data:collapsed")==="true",c=this.w.config.chart.events.legendClick;typeof c=="function"&&c(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var d=this.w.config.legend.markers.onClick;typeof d=="function"&&n.target.classList.contains("apexcharts-legend-marker")&&(d(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),o.config.chart.type!=="treemap"&&o.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&o.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,u)}}}]),J}(),so=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w;var o=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=o.globals.minX,this.maxX=o.globals.maxX}return b(J,[{key:"createToolbar",value:function(){var n=this,o=this.w,i=function(){return document.createElement("div")},u=i();if(u.setAttribute("class","apexcharts-toolbar"),u.style.top=o.config.chart.toolbar.offsetY+"px",u.style.right=3-o.config.chart.toolbar.offsetX+"px",o.globals.dom.elWrap.appendChild(u),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=o.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var c=0;c<this.t.customIcons.length;c++)this.elCustomIcons.push(i());var d=[],h=function(N,L,W){var G=N.toLowerCase();n.t[G]&&o.config.chart.zoom.enabled&&d.push({el:L,icon:typeof n.t[G]=="string"?n.t[G]:W,title:n.localeValues[N],class:"apexcharts-".concat(G,"-icon")})};h("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`),h("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`);var x=function(N){n.t[N]&&o.config.chart[N].enabled&&d.push({el:N==="zoom"?n.elZoom:n.elSelection,icon:typeof n.t[N]=="string"?n.t[N]:N==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
</svg>`,title:n.localeValues[N==="zoom"?"selectionZoom":"selection"],class:o.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(N,"-icon")})};x("zoom"),x("selection"),this.t.pan&&o.config.chart.zoom.enabled&&d.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
<defs>
<path d="M0 0h24v24H0z" id="a"/>
</defs>
<clipPath id="b">
<use overflow="visible" xlink:href="#a"/>
</clipPath>
<path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
</svg>`,title:this.localeValues.pan,class:o.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),h("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>`),this.t.download&&d.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var k=0;k<this.elCustomIcons.length;k++)d.push({el:this.elCustomIcons[k],icon:this.t.customIcons[k].icon,title:this.t.customIcons[k].title,index:this.t.customIcons[k].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[k].class});d.forEach(function(N,L){N.index&&p.moveIndexInArray(d,L,N.index)});for(var E=0;E<d.length;E++)m.setAttrs(d[E].el,{class:d[E].class,title:d[E].title}),d[E].el.innerHTML=d[E].icon,u.appendChild(d[E].el);this._createHamburgerMenu(u),o.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):o.globals.panEnabled?this.elPan.classList.add(this.selectedClass):o.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(n){this.elMenuItems=[],n.appendChild(this.elMenu),m.setAttrs(this.elMenu,{class:"apexcharts-menu"});var o=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||o.splice(2,1);for(var i=0;i<o.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=o[i].title,m.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(o[i].name),title:o[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var n=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(i){i.classList.contains("exportSVG")?i.addEventListener("click",n.handleDownload.bind(n,"svg")):i.classList.contains("exportPNG")?i.addEventListener("click",n.handleDownload.bind(n,"png")):i.classList.contains("exportCSV")&&i.addEventListener("click",n.handleDownload.bind(n,"csv"))});for(var o=0;o<this.t.customIcons.length;o++)this.elCustomIcons[o].addEventListener("click",this.t.customIcons[o].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(n){this.ctx.getSyncedCharts().forEach(function(o){o.ctx.toolbar.toggleOtherControls();var i=n==="selection"?o.ctx.toolbar.elSelection:o.ctx.toolbar.elZoom,u=n==="selection"?"selectionEnabled":"zoomEnabled";o.w.globals[u]=!o.w.globals[u],i.classList.contains(o.ctx.toolbar.selectedClass)?i.classList.remove(o.ctx.toolbar.selectedClass):i.classList.add(o.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var n=this.w;this.elZoom||(this.elZoom=n.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=n.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=n.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(n){this.toggleOtherControls(),n==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var o=n==="pan"?this.elPan:this.elZoom,i=n==="pan"?this.elZoom:this.elPan;o&&o.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(n){n.ctx.toolbar.toggleOtherControls(),n.w.globals.panEnabled=!n.w.globals.panEnabled,n.ctx.toolbar.elPan.classList.contains(n.ctx.toolbar.selectedClass)?n.ctx.toolbar.elPan.classList.remove(n.ctx.toolbar.selectedClass):n.ctx.toolbar.elPan.classList.add(n.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var n=this,o=this.w;o.globals.panEnabled=!1,o.globals.zoomEnabled=!1,o.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(i){i&&i.classList.remove(n.selectedClass)})}},{key:"handleZoomIn",value:function(){var n=this.w;n.globals.isRangeBar&&(this.minX=n.globals.minY,this.maxX=n.globals.maxY);var o=(this.minX+this.maxX)/2,i=(this.minX+o)/2,u=(this.maxX+o)/2,c=this._getNewMinXMaxX(i,u);n.globals.disableZoomIn||this.zoomUpdateOptions(c.minX,c.maxX)}},{key:"handleZoomOut",value:function(){var n=this.w;if(n.globals.isRangeBar&&(this.minX=n.globals.minY,this.maxX=n.globals.maxY),!(n.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var o=(this.minX+this.maxX)/2,i=this.minX-(o-this.minX),u=this.maxX-(o-this.maxX),c=this._getNewMinXMaxX(i,u);n.globals.disableZoomOut||this.zoomUpdateOptions(c.minX,c.maxX)}}},{key:"_getNewMinXMaxX",value:function(n,o){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(n):n,maxX:i?Math.floor(o):o}}},{key:"zoomUpdateOptions",value:function(n,o){var i=this.w;if(n!==void 0||o!==void 0){if(!(i.config.xaxis.convertedCatToNumeric&&(n<1&&(n=1,o=i.globals.dataPoints),o-n<2))){var u={min:n,max:o},c=this.getBeforeZoomRange(u);c&&(u=c.xaxis);var d={xaxis:u},h=p.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(h=new Ge(this.ctx).autoScaleY(this.ctx,h,{xaxis:u})),i.config.chart.group||(d.yaxis=h),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(d,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(u,h)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(n,o){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:n,yaxis:o})}},{key:"getBeforeZoomRange",value:function(n,o){var i=null;return typeof this.ev.beforeZoom=="function"&&(i=this.ev.beforeZoom(this,{xaxis:n,yaxis:o})),i}},{key:"toggleMenu",value:function(){var n=this;window.setTimeout(function(){n.elMenu.classList.contains("apexcharts-menu-open")?n.elMenu.classList.remove("apexcharts-menu-open"):n.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(n){var o=this.w,i=new ke(this.ctx);switch(n){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:o.config.series,columnDelimiter:o.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(n){this.ctx.getSyncedCharts().forEach(function(o){var i=o.w;if(i.globals.lastXAxis.min=i.globals.initialConfig.xaxis.min,i.globals.lastXAxis.max=i.globals.initialConfig.xaxis.max,o.updateHelpers.revertDefaultAxisMinMax(),typeof i.config.chart.events.beforeResetZoom=="function"){var u=i.config.chart.events.beforeResetZoom(o,i);u&&o.updateHelpers.revertDefaultAxisMinMax(u)}typeof i.config.chart.events.zoomed=="function"&&o.ctx.toolbar.zoomCallback({min:i.config.xaxis.min,max:i.config.xaxis.max}),i.globals.zoomed=!1;var c=o.ctx.series.emptyCollapsedSeries(p.clone(i.globals.initialSeries));o.updateHelpers._updateSeries(c,i.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),J}(),Eo=function(J){T(o,so);var n=z(o);function o(i){var u;return l(this,o),(u=n.call(this,i)).ctx=i,u.w=i.w,u.dragged=!1,u.graphics=new m(u.ctx),u.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],u.clientX=0,u.clientY=0,u.startX=0,u.endX=0,u.dragX=0,u.startY=0,u.endY=0,u.dragY=0,u.moveDirection="none",u}return b(o,[{key:"init",value:function(i){var u=this,c=i.xyRatios,d=this.w,h=this;this.xyRatios=c,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=d.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),d.globals.dom.elGraphical.add(this.zoomRect),d.globals.dom.elGraphical.add(this.selectionRect),d.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:d.globals.gridWidth,maxY:d.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):d.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:d.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=d.globals.dom.baseEl.querySelector("".concat(d.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(x){u.hoverArea.addEventListener(x,h.svgMouseEvents.bind(h,c),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(i,u){var c=this.w,d=this,h=this.ctx.toolbar,x=c.globals.zoomEnabled?c.config.chart.zoom.type:c.config.chart.selection.type,k=c.config.chart.toolbar.autoSelected;if(u.shiftKey?(this.shiftWasPressed=!0,h.enableZoomPanFromToolbar(k==="pan"?"zoom":"pan")):this.shiftWasPressed&&(h.enableZoomPanFromToolbar(k),this.shiftWasPressed=!1),u.target){var E,N=u.target.classList;if(u.target.parentNode&&u.target.parentNode!==null&&(E=u.target.parentNode.classList),!(N.contains("apexcharts-selection-rect")||N.contains("apexcharts-legend-marker")||N.contains("apexcharts-legend-text")||E&&E.contains("apexcharts-toolbar"))){if(d.clientX=u.type==="touchmove"||u.type==="touchstart"?u.touches[0].clientX:u.type==="touchend"?u.changedTouches[0].clientX:u.clientX,d.clientY=u.type==="touchmove"||u.type==="touchstart"?u.touches[0].clientY:u.type==="touchend"?u.changedTouches[0].clientY:u.clientY,u.type==="mousedown"&&u.which===1){var L=d.gridRect.getBoundingClientRect();d.startX=d.clientX-L.left,d.startY=d.clientY-L.top,d.dragged=!1,d.w.globals.mousedown=!0}if((u.type==="mousemove"&&u.which===1||u.type==="touchmove")&&(d.dragged=!0,c.globals.panEnabled?(c.globals.selection=null,d.w.globals.mousedown&&d.panDragging({context:d,zoomtype:x,xyRatios:i})):(d.w.globals.mousedown&&c.globals.zoomEnabled||d.w.globals.mousedown&&c.globals.selectionEnabled)&&(d.selection=d.selectionDrawing({context:d,zoomtype:x}))),u.type==="mouseup"||u.type==="touchend"||u.type==="mouseleave"){var W=d.gridRect.getBoundingClientRect();d.w.globals.mousedown&&(d.endX=d.clientX-W.left,d.endY=d.clientY-W.top,d.dragX=Math.abs(d.endX-d.startX),d.dragY=Math.abs(d.endY-d.startY),(c.globals.zoomEnabled||c.globals.selectionEnabled)&&d.selectionDrawn({context:d,zoomtype:x}),c.globals.panEnabled&&c.config.xaxis.convertedCatToNumeric&&d.delayedPanScrolled()),c.globals.zoomEnabled&&d.hideSelectionRect(this.selectionRect),d.dragged=!1,d.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var i=this.w;if(this.selectionRect){var u=this.selectionRect.node.getBoundingClientRect();u.width>0&&u.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,u=this.xyRatios;if(!i.globals.zoomEnabled){if(i.globals.selection!==void 0&&i.globals.selection!==null)this.drawSelectionRect(i.globals.selection);else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var c=(i.config.chart.selection.xaxis.min-i.globals.minX)/u.xRatio,d={x:c,y:0,width:i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/u.xRatio-c,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(d),this.makeSelectionRectDraggable(),typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(i){var u=i.x,c=i.y,d=i.width,h=i.height,x=i.translateX,k=x===void 0?0:x,E=i.translateY,N=E===void 0?0:E,L=this.w,W=this.zoomRect,G=this.selectionRect;if(this.dragged||L.globals.selection!==null){var q={transform:"translate("+k+", "+N+")"};L.globals.zoomEnabled&&this.dragged&&(d<0&&(d=1),W.attr({x:u,y:c,width:d,height:h,fill:L.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":L.config.chart.zoom.zoomedArea.fill.opacity,stroke:L.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":L.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":L.config.chart.zoom.zoomedArea.stroke.opacity}),m.setAttrs(W.node,q)),L.globals.selectionEnabled&&(G.attr({x:u,y:c,width:d>0?d:0,height:h>0?h:0,fill:L.config.chart.selection.fill.color,"fill-opacity":L.config.chart.selection.fill.opacity,stroke:L.config.chart.selection.stroke.color,"stroke-width":L.config.chart.selection.stroke.width,"stroke-dasharray":L.config.chart.selection.stroke.dashArray,"stroke-opacity":L.config.chart.selection.stroke.opacity}),m.setAttrs(G.node,q))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var u=i.context,c=i.zoomtype,d=this.w,h=u,x=this.gridRect.getBoundingClientRect(),k=h.startX-1,E=h.startY,N=!1,L=!1,W=h.clientX-x.left-k,G=h.clientY-x.top-E,q={};return Math.abs(W+k)>d.globals.gridWidth?W=d.globals.gridWidth-k:h.clientX-x.left<0&&(W=k),k>h.clientX-x.left&&(N=!0,W=Math.abs(W)),E>h.clientY-x.top&&(L=!0,G=Math.abs(G)),q=c==="x"?{x:N?k-W:k,y:0,width:W,height:d.globals.gridHeight}:c==="y"?{x:0,y:L?E-G:E,width:d.globals.gridWidth,height:G}:{x:N?k-W:k,y:L?E-G:E,width:W,height:G},h.drawSelectionRect(q),h.selectionDragging("resizing"),q}},{key:"selectionDragging",value:function(i,u){var c=this,d=this.w,h=this.xyRatios,x=this.selectionRect,k=0;i==="resizing"&&(k=30);var E=function(L){return parseFloat(x.node.getAttribute(L))},N={x:E("x"),y:E("y"),width:E("width"),height:E("height")};d.globals.selection=N,typeof d.config.chart.events.selection=="function"&&d.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var L=c.gridRect.getBoundingClientRect(),W=x.node.getBoundingClientRect(),G={xaxis:{min:d.globals.xAxisScale.niceMin+(W.left-L.left)*h.xRatio,max:d.globals.xAxisScale.niceMin+(W.right-L.left)*h.xRatio},yaxis:{min:d.globals.yAxisScale[0].niceMin+(L.bottom-W.bottom)*h.yRatio[0],max:d.globals.yAxisScale[0].niceMax-(W.top-L.top)*h.yRatio[0]}};d.config.chart.events.selection(c.ctx,G),d.config.chart.brush.enabled&&d.config.chart.events.brushScrolled!==void 0&&d.config.chart.events.brushScrolled(c.ctx,G)},k))}},{key:"selectionDrawn",value:function(i){var u=i.context,c=i.zoomtype,d=this.w,h=u,x=this.xyRatios,k=this.ctx.toolbar;if(h.startX>h.endX){var E=h.startX;h.startX=h.endX,h.endX=E}if(h.startY>h.endY){var N=h.startY;h.startY=h.endY,h.endY=N}var L=void 0,W=void 0;d.globals.isRangeBar?(L=d.globals.yAxisScale[0].niceMin+h.startX*x.invertedYRatio,W=d.globals.yAxisScale[0].niceMin+h.endX*x.invertedYRatio):(L=d.globals.xAxisScale.niceMin+h.startX*x.xRatio,W=d.globals.xAxisScale.niceMin+h.endX*x.xRatio);var G=[],q=[];if(d.config.yaxis.forEach(function(ce,de){G.push(d.globals.yAxisScale[de].niceMax-x.yRatio[de]*h.startY),q.push(d.globals.yAxisScale[de].niceMax-x.yRatio[de]*h.endY)}),h.dragged&&(h.dragX>10||h.dragY>10)&&L!==W){if(d.globals.zoomEnabled){var Q=p.clone(d.globals.initialConfig.yaxis),re=p.clone(d.globals.initialConfig.xaxis);if(d.globals.zoomed=!0,d.config.xaxis.convertedCatToNumeric&&(L=Math.floor(L),W=Math.floor(W),L<1&&(L=1,W=d.globals.dataPoints),W-L<2&&(W=L+1)),c!=="xy"&&c!=="x"||(re={min:L,max:W}),c!=="xy"&&c!=="y"||Q.forEach(function(ce,de){Q[de].min=q[de],Q[de].max=G[de]}),d.config.chart.zoom.autoScaleYaxis){var ie=new Ge(h.ctx);Q=ie.autoScaleY(h.ctx,Q,{xaxis:re})}if(k){var C=k.getBeforeZoomRange(re,Q);C&&(re=C.xaxis?C.xaxis:re,Q=C.yaxis?C.yaxis:Q)}var I={xaxis:re};d.config.chart.group||(I.yaxis=Q),h.ctx.updateHelpers._updateOptions(I,!1,h.w.config.chart.animations.dynamicAnimation.enabled),typeof d.config.chart.events.zoomed=="function"&&k.zoomCallback(re,Q)}else if(d.globals.selectionEnabled){var $,te=null;$={min:L,max:W},c!=="xy"&&c!=="y"||(te=p.clone(d.config.yaxis)).forEach(function(ce,de){te[de].min=q[de],te[de].max=G[de]}),d.globals.selection=h.selection,typeof d.config.chart.events.selection=="function"&&d.config.chart.events.selection(h.ctx,{xaxis:$,yaxis:te})}}}},{key:"panDragging",value:function(i){var u=i.context,c=this.w,d=u;if(c.globals.lastClientPosition.x!==void 0){var h=c.globals.lastClientPosition.x-d.clientX,x=c.globals.lastClientPosition.y-d.clientY;Math.abs(h)>Math.abs(x)&&h>0?this.moveDirection="left":Math.abs(h)>Math.abs(x)&&h<0?this.moveDirection="right":Math.abs(x)>Math.abs(h)&&x>0?this.moveDirection="up":Math.abs(x)>Math.abs(h)&&x<0&&(this.moveDirection="down")}c.globals.lastClientPosition={x:d.clientX,y:d.clientY};var k=c.globals.isRangeBar?c.globals.minY:c.globals.minX,E=c.globals.isRangeBar?c.globals.maxY:c.globals.maxX;c.config.xaxis.convertedCatToNumeric||d.panScrolled(k,E)}},{key:"delayedPanScrolled",value:function(){var i=this.w,u=i.globals.minX,c=i.globals.maxX,d=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(u=i.globals.minX+d,c=i.globals.maxX+d):this.moveDirection==="right"&&(u=i.globals.minX-d,c=i.globals.maxX-d),u=Math.floor(u),c=Math.floor(c),this.updateScrolledChart({xaxis:{min:u,max:c}},u,c)}},{key:"panScrolled",value:function(i,u){var c=this.w,d=this.xyRatios,h=p.clone(c.globals.initialConfig.yaxis),x=d.xRatio,k=c.globals.minX,E=c.globals.maxX;c.globals.isRangeBar&&(x=d.invertedYRatio,k=c.globals.minY,E=c.globals.maxY),this.moveDirection==="left"?(i=k+c.globals.gridWidth/15*x,u=E+c.globals.gridWidth/15*x):this.moveDirection==="right"&&(i=k-c.globals.gridWidth/15*x,u=E-c.globals.gridWidth/15*x),c.globals.isRangeBar||(i<c.globals.initialMinX||u>c.globals.initialMaxX)&&(i=k,u=E);var N={min:i,max:u};c.config.chart.zoom.autoScaleYaxis&&(h=new Ge(this.ctx).autoScaleY(this.ctx,h,{xaxis:N}));var L={xaxis:{min:i,max:u}};c.config.chart.group||(L.yaxis=h),this.updateScrolledChart(L,i,u)}},{key:"updateScrolledChart",value:function(i,u,c){var d=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof d.config.chart.events.scrolled=="function"&&d.config.chart.events.scrolled(this.ctx,{xaxis:{min:u,max:c}})}}]),o}(),tr=function(){function J(n){l(this,J),this.w=n.w,this.ttCtx=n,this.ctx=n.ctx}return b(J,[{key:"getNearestValues",value:function(n){var o=n.hoverArea,i=n.elGrid,u=n.clientX,c=n.clientY,d=this.w,h=i.getBoundingClientRect(),x=h.width,k=h.height,E=x/(d.globals.dataPoints-1),N=k/d.globals.dataPoints,L=this.hasBars();!d.globals.comboCharts&&!L||d.config.xaxis.convertedCatToNumeric||(E=x/d.globals.dataPoints);var W=u-h.left-d.globals.barPadForNumericAxis,G=c-h.top;W<0||G<0||W>x||G>k?(o.classList.remove("hovering-zoom"),o.classList.remove("hovering-pan")):d.globals.zoomEnabled?(o.classList.remove("hovering-pan"),o.classList.add("hovering-zoom")):d.globals.panEnabled&&(o.classList.remove("hovering-zoom"),o.classList.add("hovering-pan"));var q=Math.round(W/E),Q=Math.floor(G/N);L&&!d.config.xaxis.convertedCatToNumeric&&(q=Math.ceil(W/E),q-=1);var re=null,ie=null,C=d.globals.seriesXvalues.map(function(de){return de.filter(function(we){return p.isNumber(we)})}),I=d.globals.seriesYvalues.map(function(de){return de.filter(function(we){return p.isNumber(we)})});if(d.globals.isXNumeric){var $=this.ttCtx.getElGrid().getBoundingClientRect(),te=W*($.width/x),ce=G*($.height/k);re=(ie=this.closestInMultiArray(te,ce,C,I)).index,q=ie.j,re!==null&&(C=d.globals.seriesXvalues[re],q=(ie=this.closestInArray(te,C)).index)}return d.globals.capturedSeriesIndex=re===null?-1:re,(!q||q<1)&&(q=0),d.globals.isBarHorizontal?d.globals.capturedDataPointIndex=Q:d.globals.capturedDataPointIndex=q,{capturedSeries:re,j:d.globals.isBarHorizontal?Q:q,hoverX:W,hoverY:G}}},{key:"closestInMultiArray",value:function(n,o,i,u){var c=this.w,d=0,h=null,x=-1;c.globals.series.length>1?d=this.getFirstActiveXArray(i):h=0;var k=i[d][0],E=Math.abs(n-k);if(i.forEach(function(W){W.forEach(function(G,q){var Q=Math.abs(n-G);Q<=E&&(E=Q,x=q)})}),x!==-1){var N=u[d][x],L=Math.abs(o-N);h=d,u.forEach(function(W,G){var q=Math.abs(o-W[x]);q<=L&&(L=q,h=G)})}return{index:h,j:x}}},{key:"getFirstActiveXArray",value:function(n){for(var o=this.w,i=0,u=n.map(function(d,h){return d.length>0?h:-1}),c=0;c<u.length;c++)if(u[c]!==-1&&o.globals.collapsedSeriesIndices.indexOf(c)===-1&&o.globals.ancillaryCollapsedSeriesIndices.indexOf(c)===-1){i=u[c];break}return i}},{key:"closestInArray",value:function(n,o){for(var i=o[0],u=null,c=Math.abs(n-i),d=0;d<o.length;d++){var h=Math.abs(n-o[d]);h<c&&(c=h,u=d)}return{index:u}}},{key:"isXoverlap",value:function(n){var o=[],i=this.w.globals.seriesX.filter(function(c){return c[0]!==void 0});if(i.length>0)for(var u=0;u<i.length-1;u++)i[u][n]!==void 0&&i[u+1][n]!==void 0&&i[u][n]!==i[u+1][n]&&o.push("unEqual");return o.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var n=!0,o=this.w.globals.initialSeries,i=0;i<o.length-1;i++)if(o[i].data.length!==o[i+1].data.length){n=!1;break}return n}},{key:"getBarsHeight",value:function(n){return R(n).reduce(function(o,i){return o+i.getBBox().height},0)}},{key:"getElMarkers",value:function(n){return typeof n=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(n,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var n=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(n=R(n)).sort(function(i,u){var c=Number(i.getAttribute("data:realIndex")),d=Number(u.getAttribute("data:realIndex"));return d<c?1:d>c?-1:0});var o=[];return n.forEach(function(i){o.push(i.querySelector(".apexcharts-marker"))}),o}},{key:"hasMarkers",value:function(n){return this.getElMarkers(n).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(n){var o=this.w,i=o.config.markers.hover.size;return i===void 0&&(i=o.globals.markers.size[n]+o.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(n){var o=this.w,i=this.ttCtx;i.allTooltipSeriesGroups.length===0&&(i.allTooltipSeriesGroups=o.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var u=i.allTooltipSeriesGroups,c=0;c<u.length;c++)n==="enable"?(u[c].classList.add("apexcharts-active"),u[c].style.display=o.config.tooltip.items.display):(u[c].classList.remove("apexcharts-active"),u[c].style.display="none")}}]),J}(),kn=function(){function J(n){l(this,J),this.w=n.w,this.ctx=n.ctx,this.ttCtx=n,this.tooltipUtil=new tr(n)}return b(J,[{key:"drawSeriesTexts",value:function(n){var o=n.shared,i=o===void 0||o,u=n.ttItems,c=n.i,d=c===void 0?0:c,h=n.j,x=h===void 0?null:h,k=n.y1,E=n.y2,N=n.e,L=this.w;L.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:d,j:x,y1:k,y2:E,w:L}):this.toggleActiveInactiveSeries(i);var W=this.getValuesToPrint({i:d,j:x});this.printLabels({i:d,j:x,values:W,ttItems:u,shared:i,e:N});var G=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=G.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=G.getBoundingClientRect().height}},{key:"printLabels",value:function(n){var o,i=this,u=n.i,c=n.j,d=n.values,h=n.ttItems,x=n.shared,k=n.e,E=this.w,N=[],L=function($){return E.globals.seriesGoals[$]&&E.globals.seriesGoals[$][c]&&Array.isArray(E.globals.seriesGoals[$][c])},W=d.xVal,G=d.zVal,q=d.xAxisTTVal,Q="",re=E.globals.colors[u];c!==null&&E.config.plotOptions.bar.distributed&&(re=E.globals.colors[c]);for(var ie=function($,te){var ce=i.getFormatters(u);Q=i.getSeriesName({fn:ce.yLbTitleFormatter,index:u,seriesIndex:u,j:c}),E.config.chart.type==="treemap"&&(Q=ce.yLbTitleFormatter(String(E.config.series[u].data[c].x),{series:E.globals.series,seriesIndex:u,dataPointIndex:c,w:E}));var de=E.config.tooltip.inverseOrder?te:$;if(E.globals.axisCharts){var we=function(We){var Fe,$e,Ke,st;return E.globals.isRangeData?ce.yLbFormatter((Fe=E.globals.seriesRangeStart)===null||Fe===void 0||($e=Fe[We])===null||$e===void 0?void 0:$e[c],{series:E.globals.seriesRangeStart,seriesIndex:We,dataPointIndex:c,w:E})+" - "+ce.yLbFormatter((Ke=E.globals.seriesRangeEnd)===null||Ke===void 0||(st=Ke[We])===null||st===void 0?void 0:st[c],{series:E.globals.seriesRangeEnd,seriesIndex:We,dataPointIndex:c,w:E}):ce.yLbFormatter(E.globals.series[We][c],{series:E.globals.series,seriesIndex:We,dataPointIndex:c,w:E})};if(x)ce=i.getFormatters(de),Q=i.getSeriesName({fn:ce.yLbTitleFormatter,index:de,seriesIndex:u,j:c}),re=E.globals.colors[de],o=we(de),L(de)&&(N=E.globals.seriesGoals[de][c].map(function(We){return{attrs:We,val:ce.yLbFormatter(We.value,{seriesIndex:de,dataPointIndex:c,w:E})}}));else{var Ce,Ie=k==null||(Ce=k.target)===null||Ce===void 0?void 0:Ce.getAttribute("fill");Ie&&(re=Ie.indexOf("url")!==-1?document.querySelector(Ie.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):Ie),o=we(u),L(u)&&Array.isArray(E.globals.seriesGoals[u][c])&&(N=E.globals.seriesGoals[u][c].map(function(We){return{attrs:We,val:ce.yLbFormatter(We.value,{seriesIndex:u,dataPointIndex:c,w:E})}}))}}c===null&&(o=ce.yLbFormatter(E.globals.series[u],a(a({},E),{},{seriesIndex:u,dataPointIndex:u}))),i.DOMHandling({i:u,t:de,j:c,ttItems:h,values:{val:o,goalVals:N,xVal:W,xAxisTTVal:q,zVal:G},seriesName:Q,shared:x,pColor:re})},C=0,I=E.globals.series.length-1;C<E.globals.series.length;C++,I--)ie(C,I)}},{key:"getFormatters",value:function(n){var o,i=this.w,u=i.globals.yLabelFormatters[n];return i.globals.ttVal!==void 0?Array.isArray(i.globals.ttVal)?(u=i.globals.ttVal[n]&&i.globals.ttVal[n].formatter,o=i.globals.ttVal[n]&&i.globals.ttVal[n].title&&i.globals.ttVal[n].title.formatter):(u=i.globals.ttVal.formatter,typeof i.globals.ttVal.title.formatter=="function"&&(o=i.globals.ttVal.title.formatter)):o=i.config.tooltip.y.title.formatter,typeof u!="function"&&(u=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(c){return c}),typeof o!="function"&&(o=function(c){return c}),{yLbFormatter:u,yLbTitleFormatter:o}}},{key:"getSeriesName",value:function(n){var o=n.fn,i=n.index,u=n.seriesIndex,c=n.j,d=this.w;return o(String(d.globals.seriesNames[i]),{series:d.globals.series,seriesIndex:u,dataPointIndex:c,w:d})}},{key:"DOMHandling",value:function(n){n.i;var o=n.t,i=n.j,u=n.ttItems,c=n.values,d=n.seriesName,h=n.shared,x=n.pColor,k=this.w,E=this.ttCtx,N=c.val,L=c.goalVals,W=c.xVal,G=c.xAxisTTVal,q=c.zVal,Q=null;Q=u[o].children,k.config.tooltip.fillSeriesColor&&(u[o].style.backgroundColor=x,Q[0].style.display="none"),E.showTooltipTitle&&(E.tooltipTitle===null&&(E.tooltipTitle=k.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),E.tooltipTitle.innerHTML=W),E.isXAxisTooltipEnabled&&(E.xaxisTooltipText.innerHTML=G!==""?G:W);var re=u[o].querySelector(".apexcharts-tooltip-text-y-label");re&&(re.innerHTML=d||"");var ie=u[o].querySelector(".apexcharts-tooltip-text-y-value");ie&&(ie.innerHTML=N!==void 0?N:""),Q[0]&&Q[0].classList.contains("apexcharts-tooltip-marker")&&(k.config.tooltip.marker.fillColors&&Array.isArray(k.config.tooltip.marker.fillColors)&&(x=k.config.tooltip.marker.fillColors[o]),Q[0].style.backgroundColor=x),k.config.tooltip.marker.show||(Q[0].style.display="none");var C=u[o].querySelector(".apexcharts-tooltip-text-goals-label"),I=u[o].querySelector(".apexcharts-tooltip-text-goals-value");if(L.length&&k.globals.seriesGoals[o]){var $=function(){var te="<div >",ce="<div>";L.forEach(function(de,we){te+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(de.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(de.attrs.name,"</div>"),ce+="<div>".concat(de.val,"</div>")}),C.innerHTML=te+"</div>",I.innerHTML=ce+"</div>"};h?k.globals.seriesGoals[o][i]&&Array.isArray(k.globals.seriesGoals[o][i])?$():(C.innerHTML="",I.innerHTML=""):$()}else C.innerHTML="",I.innerHTML="";q!==null&&(u[o].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=k.config.tooltip.z.title,u[o].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=q!==void 0?q:""),h&&Q[0]&&(N==null||k.globals.ancillaryCollapsedSeriesIndices.indexOf(o)>-1||k.globals.collapsedSeriesIndices.indexOf(o)>-1?Q[0].parentNode.style.display="none":Q[0].parentNode.style.display=k.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(n){var o=this.w;if(n)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=o.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(n){var o=n.i,i=n.j,u=this.w,c=this.ctx.series.filteredSeriesX(),d="",h="",x=null,k=null,E={series:u.globals.series,seriesIndex:o,dataPointIndex:i,w:u},N=u.globals.ttZFormatter;i===null?k=u.globals.series[o]:u.globals.isXNumeric&&u.config.chart.type!=="treemap"?(d=c[o][i],c[o].length===0&&(d=c[this.tooltipUtil.getFirstActiveXArray(c)][i])):d=u.globals.labels[i]!==void 0?u.globals.labels[i]:"";var L=d;return u.globals.isXNumeric&&u.config.xaxis.type==="datetime"?d=new fe(this.ctx).xLabelFormat(u.globals.ttKeyFormatter,L,L,{i:void 0,dateFormatter:new oe(this.ctx).formatDate,w:this.w}):d=u.globals.isBarHorizontal?u.globals.yLabelFormatters[0](L,E):u.globals.xLabelFormatter(L,E),u.config.tooltip.x.formatter!==void 0&&(d=u.globals.ttKeyFormatter(L,E)),u.globals.seriesZ.length>0&&u.globals.seriesZ[o].length>0&&(x=N(u.globals.seriesZ[o][i],u)),h=typeof u.config.xaxis.tooltip.formatter=="function"?u.globals.xaxisTooltipFormatter(L,E):d,{val:Array.isArray(k)?k.join(" "):k,xVal:Array.isArray(d)?d.join(" "):d,xAxisTTVal:Array.isArray(h)?h.join(" "):h,zVal:x}}},{key:"handleCustomTooltip",value:function(n){var o=n.i,i=n.j,u=n.y1,c=n.y2,d=n.w,h=this.ttCtx.getElTooltip(),x=d.config.tooltip.custom;Array.isArray(x)&&x[o]&&(x=x[o]),h.innerHTML=x({ctx:this.ctx,series:d.globals.series,seriesIndex:o,dataPointIndex:i,y1:u,y2:c,w:d})}}]),J}(),Dr=function(){function J(n){l(this,J),this.ttCtx=n,this.ctx=n.ctx,this.w=n.w}return b(J,[{key:"moveXCrosshairs",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,u=this.w,c=i.getElXCrosshairs(),d=n-i.xcrosshairsWidth/2,h=u.globals.labels.slice().length;if(o!==null&&(d=u.globals.gridWidth/h*o),c===null||u.globals.isBarHorizontal||(c.setAttribute("x",d),c.setAttribute("x1",d),c.setAttribute("x2",d),c.setAttribute("y2",u.globals.gridHeight),c.classList.add("apexcharts-active")),d<0&&(d=0),d>u.globals.gridWidth&&(d=u.globals.gridWidth),i.isXAxisTooltipEnabled){var x=d;u.config.xaxis.crosshairs.width!=="tickWidth"&&u.config.xaxis.crosshairs.width!=="barWidth"||(x=d+i.xcrosshairsWidth/2),this.moveXAxisTooltip(x)}}},{key:"moveYCrosshairs",value:function(n){var o=this.ttCtx;o.ycrosshairs!==null&&m.setAttrs(o.ycrosshairs,{y1:n,y2:n}),o.ycrosshairsHidden!==null&&m.setAttrs(o.ycrosshairsHidden,{y1:n,y2:n})}},{key:"moveXAxisTooltip",value:function(n){var o=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");var u=i.xaxisOffY+o.config.xaxis.tooltip.offsetY+o.globals.translateY+1+o.config.xaxis.offsetY;if(n-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(n)){n+=o.globals.translateX;var c;c=new m(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=c.width+"px",i.xaxisTooltip.style.left=n+"px",i.xaxisTooltip.style.top=u+"px"}}}},{key:"moveYAxisTooltip",value:function(n){var o=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=o.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var u=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),c=o.globals.translateY+u,d=i.yaxisTTEls[n].getBoundingClientRect().height,h=o.globals.translateYAxisX[n]-2;o.config.yaxis[n].opposite&&(h-=26),c-=d/2,o.globals.ignoreYAxisIndexes.indexOf(n)===-1?(i.yaxisTTEls[n].classList.add("apexcharts-active"),i.yaxisTTEls[n].style.top=c+"px",i.yaxisTTEls[n].style.left=h+o.config.yaxis[n].tooltip.offsetX+"px"):i.yaxisTTEls[n].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=this.w,c=this.ttCtx,d=c.getElTooltip(),h=c.tooltipRect,x=i!==null?parseFloat(i):1,k=parseFloat(n)+x+5,E=parseFloat(o)+x/2;if(k>u.globals.gridWidth/2&&(k=k-h.ttWidth-x-10),k>u.globals.gridWidth-h.ttWidth-10&&(k=u.globals.gridWidth-h.ttWidth),k<-20&&(k=-20),u.config.tooltip.followCursor){var N=c.getElGrid().getBoundingClientRect();(k=c.e.clientX-N.left)>u.globals.gridWidth/2&&(k-=c.tooltipRect.ttWidth),(E=c.e.clientY+u.globals.translateY-N.top)>u.globals.gridHeight/2&&(E-=c.tooltipRect.ttHeight)}else u.globals.isBarHorizontal||h.ttHeight/2+E>u.globals.gridHeight&&(E=u.globals.gridHeight-h.ttHeight+u.globals.translateY);isNaN(k)||(k+=u.globals.translateX,d.style.left=k+"px",d.style.top=E+"px")}},{key:"moveMarkers",value:function(n,o){var i=this.w,u=this.ttCtx;if(i.globals.markers.size[n]>0)for(var c=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(n,"'] .apexcharts-marker")),d=0;d<c.length;d++)parseInt(c[d].getAttribute("rel"),10)===o&&(u.marker.resetPointsSize(),u.marker.enlargeCurrentPoint(o,c[d]));else u.marker.resetPointsSize(),this.moveDynamicPointOnHover(o,n)}},{key:"moveDynamicPointOnHover",value:function(n,o){var i,u,c=this.w,d=this.ttCtx,h=c.globals.pointsArray,x=d.tooltipUtil.getHoverMarkerSize(o),k=c.config.series[o].type;if(!k||k!=="column"&&k!=="candlestick"&&k!=="boxPlot"){i=h[o][n][0],u=h[o][n][1]?h[o][n][1]:0;var E=c.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(o,"'] .apexcharts-series-markers circle"));E&&u<c.globals.gridHeight&&u>0&&(E.setAttribute("r",x),E.setAttribute("cx",i),E.setAttribute("cy",u)),this.moveXCrosshairs(i),d.fixedTooltip||this.moveTooltip(i,u,x)}}},{key:"moveDynamicPointsOnHover",value:function(n){var o,i=this.ttCtx,u=i.w,c=0,d=0,h=u.globals.pointsArray;o=new Oe(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var x=i.tooltipUtil.getHoverMarkerSize(o);h[o]&&(c=h[o][n][0],d=h[o][n][1]);var k=i.tooltipUtil.getAllMarkers();if(k!==null)for(var E=0;E<u.globals.series.length;E++){var N=h[E];if(u.globals.comboCharts&&N===void 0&&k.splice(E,0,null),N&&N.length){var L=h[E][n][1],W=void 0;if(k[E].setAttribute("cx",c),u.config.chart.type==="rangeArea"&&!u.globals.comboCharts){var G=n+u.globals.series[E].length;W=h[E][G][1],L-=Math.abs(L-W)/2}L!==null&&!isNaN(L)&&L<u.globals.gridHeight+x&&L+x>0?(k[E]&&k[E].setAttribute("r",x),k[E]&&k[E].setAttribute("cy",L)):k[E]&&k[E].setAttribute("r",0)}}this.moveXCrosshairs(c),i.fixedTooltip||this.moveTooltip(c,d||u.globals.gridHeight,x)}},{key:"moveStickyTooltipOverBars",value:function(n,o){var i=this.w,u=this.ttCtx,c=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,d=c>=2&&c%2==0?Math.floor(c/2):Math.floor(c/2)+1;i.globals.isBarHorizontal&&(d=new Oe(this.ctx).getActiveConfigSeriesIndex("desc")+1);var h=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(d,"'] path[j='").concat(n,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(d,"'] path[j='").concat(n,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(d,"'] path[j='").concat(n,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(d,"'] path[j='").concat(n,"']"));h||typeof o!="number"||(h=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(o,"'] path[j='").concat(n,`'],
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(o,"'] path[j='").concat(n,`'],
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(o,"'] path[j='").concat(n,`'],
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(o,"'] path[j='").concat(n,"']")));var x=h?parseFloat(h.getAttribute("cx")):0,k=h?parseFloat(h.getAttribute("cy")):0,E=h?parseFloat(h.getAttribute("barWidth")):0,N=u.getElGrid().getBoundingClientRect(),L=h&&(h.classList.contains("apexcharts-candlestick-area")||h.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(h&&!L&&(x-=c%2!=0?E/2:0),h&&L&&i.globals.comboCharts&&(x-=E/2)):i.globals.isBarHorizontal||(x=u.xAxisTicksPositions[n-1]+u.dataPointsDividedWidth/2,isNaN(x)&&(x=u.xAxisTicksPositions[n]-u.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?k-=u.tooltipRect.ttHeight:i.config.tooltip.followCursor?k=u.e.clientY-N.top-u.tooltipRect.ttHeight/2:k+u.tooltipRect.ttHeight+15>i.globals.gridHeight&&(k=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(x),u.fixedTooltip||this.moveTooltip(x,k||i.globals.gridHeight)}}]),J}(),zr=function(){function J(n){l(this,J),this.w=n.w,this.ttCtx=n,this.ctx=n.ctx,this.tooltipPosition=new Dr(n)}return b(J,[{key:"drawDynamicPoints",value:function(){var n=this.w,o=new m(this.ctx),i=new Re(this.ctx),u=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series");u=R(u),n.config.chart.stacked&&u.sort(function(N,L){return parseFloat(N.getAttribute("data:realIndex"))-parseFloat(L.getAttribute("data:realIndex"))});for(var c=0;c<u.length;c++){var d=u[c].querySelector(".apexcharts-series-markers-wrap");if(d!==null){var h=void 0,x="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));n.config.chart.type!=="line"&&n.config.chart.type!=="area"||n.globals.comboCharts||n.config.tooltip.intersect||(x+=" no-pointer-events");var k=i.getMarkerConfig({cssClass:x,seriesIndex:Number(d.getAttribute("data:realIndex"))});(h=o.drawMarker(0,0,k)).node.setAttribute("default-marker-size",0);var E=document.createElementNS(n.globals.SVGNS,"g");E.classList.add("apexcharts-series-markers"),E.appendChild(h.node),d.appendChild(E)}}}},{key:"enlargeCurrentPoint",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,c=this.w;c.config.chart.type!=="bubble"&&this.newPointSize(n,o);var d=o.getAttribute("cx"),h=o.getAttribute("cy");if(i!==null&&u!==null&&(d=i,h=u),this.tooltipPosition.moveXCrosshairs(d),!this.fixedTooltip){if(c.config.chart.type==="radar"){var x=this.ttCtx.getElGrid().getBoundingClientRect();d=this.ttCtx.e.clientX-x.left}this.tooltipPosition.moveTooltip(d,h,c.config.markers.hover.size)}}},{key:"enlargePoints",value:function(n){for(var o=this.w,i=this,u=this.ttCtx,c=n,d=o.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),h=o.config.markers.hover.size,x=0;x<d.length;x++){var k=d[x].getAttribute("rel"),E=d[x].getAttribute("index");if(h===void 0&&(h=o.globals.markers.size[E]+o.config.markers.hover.sizeOffset),c===parseInt(k,10)){i.newPointSize(c,d[x]);var N=d[x].getAttribute("cx"),L=d[x].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(N),u.fixedTooltip||i.tooltipPosition.moveTooltip(N,L,h)}else i.oldPointSize(d[x])}}},{key:"newPointSize",value:function(n,o){var i=this.w,u=i.config.markers.hover.size,c=n===0?o.parentNode.firstChild:o.parentNode.lastChild;if(c.getAttribute("default-marker-size")!=="0"){var d=parseInt(c.getAttribute("index"),10);u===void 0&&(u=i.globals.markers.size[d]+i.config.markers.hover.sizeOffset),u<0&&(u=0),c.setAttribute("r",u)}}},{key:"oldPointSize",value:function(n){var o=parseFloat(n.getAttribute("default-marker-size"));n.setAttribute("r",o)}},{key:"resetPointsSize",value:function(){for(var n=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=0;o<n.length;o++){var i=parseFloat(n[o].getAttribute("default-marker-size"));p.isNumber(i)&&i>=0?n[o].setAttribute("r",i):n[o].setAttribute("r",0)}}}]),J}(),Xt=function(){function J(n){l(this,J),this.w=n.w;var o=this.w;this.ttCtx=n,this.isVerticalGroupedRangeBar=!o.globals.isBarHorizontal&&o.config.chart.type==="rangeBar"&&o.config.plotOptions.bar.rangeBarGroupRows}return b(J,[{key:"getAttr",value:function(n,o){return parseFloat(n.target.getAttribute(o))}},{key:"handleHeatTreeTooltip",value:function(n){var o=n.e,i=n.opt,u=n.x,c=n.y,d=n.type,h=this.ttCtx,x=this.w;if(o.target.classList.contains("apexcharts-".concat(d,"-rect"))){var k=this.getAttr(o,"i"),E=this.getAttr(o,"j"),N=this.getAttr(o,"cx"),L=this.getAttr(o,"cy"),W=this.getAttr(o,"width"),G=this.getAttr(o,"height");if(h.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:k,j:E,shared:!1,e:o}),x.globals.capturedSeriesIndex=k,x.globals.capturedDataPointIndex=E,u=N+h.tooltipRect.ttWidth/2+W,c=L+h.tooltipRect.ttHeight/2-G/2,h.tooltipPosition.moveXCrosshairs(N+W/2),u>x.globals.gridWidth/2&&(u=N-h.tooltipRect.ttWidth/2+W),h.w.config.tooltip.followCursor){var q=x.globals.dom.elWrap.getBoundingClientRect();u=x.globals.clientX-q.left-(u>x.globals.gridWidth/2?h.tooltipRect.ttWidth:0),c=x.globals.clientY-q.top-(c>x.globals.gridHeight/2?h.tooltipRect.ttHeight:0)}}return{x:u,y:c}}},{key:"handleMarkerTooltip",value:function(n){var o,i,u=n.e,c=n.opt,d=n.x,h=n.y,x=this.w,k=this.ttCtx;if(u.target.classList.contains("apexcharts-marker")){var E=parseInt(c.paths.getAttribute("cx"),10),N=parseInt(c.paths.getAttribute("cy"),10),L=parseFloat(c.paths.getAttribute("val"));if(i=parseInt(c.paths.getAttribute("rel"),10),o=parseInt(c.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,k.intersect){var W=p.findAncestor(c.paths,"apexcharts-series");W&&(o=parseInt(W.getAttribute("data:realIndex"),10))}if(k.tooltipLabels.drawSeriesTexts({ttItems:c.ttItems,i:o,j:i,shared:!k.showOnIntersect&&x.config.tooltip.shared,e:u}),u.type==="mouseup"&&k.markerClick(u,o,i),x.globals.capturedSeriesIndex=o,x.globals.capturedDataPointIndex=i,d=E,h=N+x.globals.translateY-1.4*k.tooltipRect.ttHeight,k.w.config.tooltip.followCursor){var G=k.getElGrid().getBoundingClientRect();h=k.e.clientY+x.globals.translateY-G.top}L<0&&(h=N),k.marker.enlargeCurrentPoint(i,c.paths,d,h)}return{x:d,y:h}}},{key:"handleBarTooltip",value:function(n){var o,i,u=n.e,c=n.opt,d=this.w,h=this.ttCtx,x=h.getElTooltip(),k=0,E=0,N=0,L=this.getBarTooltipXY({e:u,opt:c});o=L.i;var W=L.barHeight,G=L.j;d.globals.capturedSeriesIndex=o,d.globals.capturedDataPointIndex=G,d.globals.isBarHorizontal&&h.tooltipUtil.hasBars()||!d.config.tooltip.shared?(E=L.x,N=L.y,i=Array.isArray(d.config.stroke.width)?d.config.stroke.width[o]:d.config.stroke.width,k=E):d.globals.comboCharts||d.config.tooltip.shared||(k/=2),isNaN(N)&&(N=d.globals.svgHeight-h.tooltipRect.ttHeight);var q=parseInt(c.paths.parentNode.getAttribute("data:realIndex"),10),Q=d.globals.isMultipleYAxis?d.config.yaxis[q]&&d.config.yaxis[q].reversed:d.config.yaxis[0].reversed;if(E+h.tooltipRect.ttWidth>d.globals.gridWidth&&!Q?E-=h.tooltipRect.ttWidth:E<0&&(E=0),h.w.config.tooltip.followCursor){var re=h.getElGrid().getBoundingClientRect();N=h.e.clientY-re.top}h.tooltip===null&&(h.tooltip=d.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),d.config.tooltip.shared||(d.globals.comboBarCount>0?h.tooltipPosition.moveXCrosshairs(k+i/2):h.tooltipPosition.moveXCrosshairs(k)),!h.fixedTooltip&&(!d.config.tooltip.shared||d.globals.isBarHorizontal&&h.tooltipUtil.hasBars())&&(Q&&(E-=h.tooltipRect.ttWidth)<0&&(E=0),!Q||d.globals.isBarHorizontal&&h.tooltipUtil.hasBars()||(N=N+W-2*(d.globals.series[o][G]<0?W:0)),N=N+d.globals.translateY-h.tooltipRect.ttHeight/2,x.style.left=E+d.globals.translateX+"px",x.style.top=N+"px")}},{key:"getBarTooltipXY",value:function(n){var o=this,i=n.e,u=n.opt,c=this.w,d=null,h=this.ttCtx,x=0,k=0,E=0,N=0,L=0,W=i.target.classList;if(W.contains("apexcharts-bar-area")||W.contains("apexcharts-candlestick-area")||W.contains("apexcharts-boxPlot-area")||W.contains("apexcharts-rangebar-area")){var G=i.target,q=G.getBoundingClientRect(),Q=u.elGrid.getBoundingClientRect(),re=q.height;L=q.height;var ie=q.width,C=parseInt(G.getAttribute("cx"),10),I=parseInt(G.getAttribute("cy"),10);N=parseFloat(G.getAttribute("barWidth"));var $=i.type==="touchmove"?i.touches[0].clientX:i.clientX;d=parseInt(G.getAttribute("j"),10),x=parseInt(G.parentNode.getAttribute("rel"),10)-1;var te=G.getAttribute("data-range-y1"),ce=G.getAttribute("data-range-y2");c.globals.comboCharts&&(x=parseInt(G.parentNode.getAttribute("data:realIndex"),10));var de=function(Ce){return c.globals.isXNumeric?C-ie/2:o.isVerticalGroupedRangeBar?C+ie/2:C-h.dataPointsDividedWidth+ie/2},we=function(){return I-h.dataPointsDividedHeight+re/2-h.tooltipRect.ttHeight/2};h.tooltipLabels.drawSeriesTexts({ttItems:u.ttItems,i:x,j:d,y1:te?parseInt(te,10):null,y2:ce?parseInt(ce,10):null,shared:!h.showOnIntersect&&c.config.tooltip.shared,e:i}),c.config.tooltip.followCursor?c.globals.isBarHorizontal?(k=$-Q.left+15,E=we()):(k=de(),E=i.clientY-Q.top-h.tooltipRect.ttHeight/2-15):c.globals.isBarHorizontal?((k=C)<h.xyRatios.baseLineInvertedY&&(k=C-h.tooltipRect.ttWidth),E=we()):(k=de(),E=I)}return{x:k,y:E,barHeight:L,barWidth:N,i:x,j:d}}}]),J}(),ri=function(){function J(n){l(this,J),this.w=n.w,this.ttCtx=n}return b(J,[{key:"drawXaxisTooltip",value:function(){var n=this.w,o=this.ttCtx,i=n.config.xaxis.position==="bottom";o.xaxisOffY=i?n.globals.gridHeight+1:-n.globals.xAxisHeight-n.config.xaxis.axisTicks.height+3;var u=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",c=n.globals.dom.elWrap;o.isXAxisTooltipEnabled&&n.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(o.xaxisTooltip=document.createElement("div"),o.xaxisTooltip.setAttribute("class",u+" apexcharts-theme-"+n.config.tooltip.theme),c.appendChild(o.xaxisTooltip),o.xaxisTooltipText=document.createElement("div"),o.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),o.xaxisTooltipText.style.fontFamily=n.config.xaxis.tooltip.style.fontFamily||n.config.chart.fontFamily,o.xaxisTooltipText.style.fontSize=n.config.xaxis.tooltip.style.fontSize,o.xaxisTooltip.appendChild(o.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var n=this.w,o=this.ttCtx,i=function(c){var d=n.config.yaxis[c].opposite||n.config.yaxis[c].crosshairs.opposite;o.yaxisOffX=d?n.globals.gridWidth+1:1;var h="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(c,d?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");n.globals.yAxisSameScaleIndices.map(function(k,E){k.map(function(N,L){L===c&&(h+=n.config.yaxis[L].show?" ":" apexcharts-yaxistooltip-hidden")})});var x=n.globals.dom.elWrap;n.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(c))===null&&(o.yaxisTooltip=document.createElement("div"),o.yaxisTooltip.setAttribute("class",h+" apexcharts-theme-"+n.config.tooltip.theme),x.appendChild(o.yaxisTooltip),c===0&&(o.yaxisTooltipText=[]),o.yaxisTooltipText[c]=document.createElement("div"),o.yaxisTooltipText[c].classList.add("apexcharts-yaxistooltip-text"),o.yaxisTooltip.appendChild(o.yaxisTooltipText[c]))},u=0;u<n.config.yaxis.length;u++)i(u)}},{key:"setXCrosshairWidth",value:function(){var n=this.w,o=this.ttCtx,i=o.getElXCrosshairs();if(o.xcrosshairsWidth=parseInt(n.config.xaxis.crosshairs.width,10),n.globals.comboCharts){var u=n.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(u!==null&&n.config.xaxis.crosshairs.width==="barWidth"){var c=parseFloat(u.getAttribute("barWidth"));o.xcrosshairsWidth=c}else if(n.config.xaxis.crosshairs.width==="tickWidth"){var d=n.globals.labels.length;o.xcrosshairsWidth=n.globals.gridWidth/d}}else if(n.config.xaxis.crosshairs.width==="tickWidth"){var h=n.globals.labels.length;o.xcrosshairsWidth=n.globals.gridWidth/h}else if(n.config.xaxis.crosshairs.width==="barWidth"){var x=n.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(x!==null){var k=parseFloat(x.getAttribute("barWidth"));o.xcrosshairsWidth=k}else o.xcrosshairsWidth=1}n.globals.isBarHorizontal&&(o.xcrosshairsWidth=0),i!==null&&o.xcrosshairsWidth>0&&i.setAttribute("width",o.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var n=this.w,o=this.ttCtx;o.ycrosshairs=n.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),o.ycrosshairsHidden=n.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(n,o,i){var u=this.ttCtx,c=this.w,d=c.globals.yLabelFormatters[n];if(u.yaxisTooltips[n]){var h=u.getElGrid().getBoundingClientRect(),x=(o-h.top)*i.yRatio[n],k=c.globals.maxYArr[n]-c.globals.minYArr[n],E=c.globals.minYArr[n]+(k-x);u.tooltipPosition.moveYCrosshairs(o-h.top),u.yaxisTooltipText[n].innerHTML=d(E),u.tooltipPosition.moveYAxisTooltip(n)}}}]),J}(),ba=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w;var o=this.w;this.tConfig=o.config.tooltip,this.tooltipUtil=new tr(this),this.tooltipLabels=new kn(this),this.tooltipPosition=new Dr(this),this.marker=new zr(this),this.intersect=new Xt(this),this.axesTooltip=new ri(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!o.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return b(J,[{key:"getElTooltip",value:function(n){return n||(n=this),n.w.globals.dom.baseEl?n.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(n){var o=this.w;this.xyRatios=n,this.isXAxisTooltipEnabled=o.config.xaxis.tooltip.enabled&&o.globals.axisCharts,this.yaxisTooltips=o.config.yaxis.map(function(d,h){return!!(d.show&&d.tooltip.enabled&&o.globals.axisCharts)}),this.allTooltipSeriesGroups=[],o.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),o.config.tooltip.cssClass&&i.classList.add(o.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),o.globals.dom.elWrap.appendChild(i),o.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var u=new Me(this.ctx);this.xAxisTicksPositions=u.getXAxisTicksPositions()}if(!o.globals.comboCharts&&!this.tConfig.intersect&&o.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),o.config.markers.size!==0&&o.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),o.globals.collapsedSeries.length!==o.globals.series.length){this.dataPointsDividedHeight=o.globals.gridHeight/o.globals.dataPoints,this.dataPointsDividedWidth=o.globals.gridWidth/o.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||o.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var c=o.globals.series.length;(o.globals.xyCharts||o.globals.comboCharts)&&this.tConfig.shared&&(c=this.showOnIntersect?1:o.globals.series.length),this.legendLabels=o.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(c),this.addSVGEvents()}}},{key:"createTTElements",value:function(n){for(var o=this,i=this.w,u=[],c=this.getElTooltip(),d=function(x){var k=document.createElement("div");k.classList.add("apexcharts-tooltip-series-group"),k.style.order=i.config.tooltip.inverseOrder?n-x:x+1,o.tConfig.shared&&o.tConfig.enabledOnSeries&&Array.isArray(o.tConfig.enabledOnSeries)&&o.tConfig.enabledOnSeries.indexOf(x)<0&&k.classList.add("apexcharts-tooltip-series-group-hidden");var E=document.createElement("span");E.classList.add("apexcharts-tooltip-marker"),E.style.backgroundColor=i.globals.colors[x],k.appendChild(E);var N=document.createElement("div");N.classList.add("apexcharts-tooltip-text"),N.style.fontFamily=o.tConfig.style.fontFamily||i.config.chart.fontFamily,N.style.fontSize=o.tConfig.style.fontSize,["y","goals","z"].forEach(function(L){var W=document.createElement("div");W.classList.add("apexcharts-tooltip-".concat(L,"-group"));var G=document.createElement("span");G.classList.add("apexcharts-tooltip-text-".concat(L,"-label")),W.appendChild(G);var q=document.createElement("span");q.classList.add("apexcharts-tooltip-text-".concat(L,"-value")),W.appendChild(q),N.appendChild(W)}),k.appendChild(N),c.appendChild(k),u.push(k)},h=0;h<n;h++)d(h);return u}},{key:"addSVGEvents",value:function(){var n=this.w,o=n.config.chart.type,i=this.getElTooltip(),u=!(o!=="bar"&&o!=="candlestick"&&o!=="boxPlot"&&o!=="rangeBar"),c=o==="area"||o==="line"||o==="scatter"||o==="bubble"||o==="radar",d=n.globals.dom.Paper.node,h=this.getElGrid();h&&(this.seriesBound=h.getBoundingClientRect());var x,k=[],E=[],N={hoverArea:d,elGrid:h,tooltipEl:i,tooltipY:k,tooltipX:E,ttItems:this.ttItems};if(n.globals.axisCharts&&(c?x=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):u?x=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):o!=="heatmap"&&o!=="treemap"||(x=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),x&&x.length))for(var L=0;L<x.length;L++)k.push(x[L].getAttribute("cy")),E.push(x[L].getAttribute("cx"));if(n.globals.xyCharts&&!this.showOnIntersect||n.globals.comboCharts&&!this.showOnIntersect||u&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([d],N);else if(u&&!n.globals.comboCharts||c&&this.showOnIntersect)this.addDatapointEventsListeners(N);else if(!n.globals.axisCharts||o==="heatmap"||o==="treemap"){var W=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(W,N)}if(this.showOnIntersect){var G=n.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");G.length>0&&this.addPathsEventListeners(G,N),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(N)}}},{key:"drawFixedTooltipRect",value:function(){var n=this.w,o=this.getElTooltip(),i=o.getBoundingClientRect(),u=i.width+10,c=i.height+10,d=this.tConfig.fixed.offsetX,h=this.tConfig.fixed.offsetY,x=this.tConfig.fixed.position.toLowerCase();return x.indexOf("right")>-1&&(d=d+n.globals.svgWidth-u+10),x.indexOf("bottom")>-1&&(h=h+n.globals.svgHeight-c-10),o.style.left=d+"px",o.style.top=h+"px",{x:d,y:h,ttWidth:u,ttHeight:c}}},{key:"addDatapointEventsListeners",value:function(n){var o=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(o,n)}},{key:"addPathsEventListeners",value:function(n,o){for(var i=this,u=function(d){var h={paths:n[d],tooltipEl:o.tooltipEl,tooltipY:o.tooltipY,tooltipX:o.tooltipX,elGrid:o.elGrid,hoverArea:o.hoverArea,ttItems:o.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(x){return n[d].addEventListener(x,i.onSeriesHover.bind(i,h),{capture:!1,passive:!0})})},c=0;c<n.length;c++)u(c)}},{key:"onSeriesHover",value:function(n,o){var i=this,u=Date.now()-this.lastHoverTime;u>=100?this.seriesHover(n,o):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(n,o)},100-u))}},{key:"seriesHover",value:function(n,o){var i=this;this.lastHoverTime=Date.now();var u=[],c=this.w;c.config.chart.group&&(u=this.ctx.getGroupedCharts()),c.globals.axisCharts&&(c.globals.minX===-1/0&&c.globals.maxX===1/0||c.globals.dataPoints===0)||(u.length?u.forEach(function(d){var h=i.getElTooltip(d),x={paths:n.paths,tooltipEl:h,tooltipY:n.tooltipY,tooltipX:n.tooltipX,elGrid:n.elGrid,hoverArea:n.hoverArea,ttItems:d.w.globals.tooltip.ttItems};d.w.globals.minX===i.w.globals.minX&&d.w.globals.maxX===i.w.globals.maxX&&d.w.globals.tooltip.seriesHoverByContext({chartCtx:d,ttCtx:d.w.globals.tooltip,opt:x,e:o})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:n,e:o}))}},{key:"seriesHoverByContext",value:function(n){var o=n.chartCtx,i=n.ttCtx,u=n.opt,c=n.e,d=o.w,h=this.getElTooltip();h&&(i.tooltipRect={x:0,y:0,ttWidth:h.getBoundingClientRect().width,ttHeight:h.getBoundingClientRect().height},i.e=c,i.tooltipUtil.hasBars()&&!d.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Oe(o).toggleSeriesOnHover(c,c.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),d.globals.axisCharts?i.axisChartsTooltips({e:c,opt:u,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:c,opt:u,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(n){var o,i,u=n.e,c=n.opt,d=this.w,h=c.elGrid.getBoundingClientRect(),x=u.type==="touchmove"?u.touches[0].clientX:u.clientX,k=u.type==="touchmove"?u.touches[0].clientY:u.clientY;if(this.clientY=k,this.clientX=x,d.globals.capturedSeriesIndex=-1,d.globals.capturedDataPointIndex=-1,k<h.top||k>h.top+h.height)this.handleMouseOut(c);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!d.config.tooltip.shared){var E=parseInt(c.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(E)<0)return void this.handleMouseOut(c)}var N=this.getElTooltip(),L=this.getElXCrosshairs(),W=d.globals.xyCharts||d.config.chart.type==="bar"&&!d.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||d.globals.comboCharts&&this.tooltipUtil.hasBars();if(u.type==="mousemove"||u.type==="touchmove"||u.type==="mouseup"){if(d.globals.collapsedSeries.length+d.globals.ancillaryCollapsedSeries.length===d.globals.series.length)return;L!==null&&L.classList.add("apexcharts-active");var G=this.yaxisTooltips.filter(function(re){return re===!0});if(this.ycrosshairs!==null&&G.length&&this.ycrosshairs.classList.add("apexcharts-active"),W&&!this.showOnIntersect)this.handleStickyTooltip(u,x,k,c);else if(d.config.chart.type==="heatmap"||d.config.chart.type==="treemap"){var q=this.intersect.handleHeatTreeTooltip({e:u,opt:c,x:o,y:i,type:d.config.chart.type});o=q.x,i=q.y,N.style.left=o+"px",N.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:u,opt:c}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:u,opt:c,x:o,y:i});if(this.yaxisTooltips.length)for(var Q=0;Q<d.config.yaxis.length;Q++)this.axesTooltip.drawYaxisTooltipText(Q,k,this.xyRatios);c.tooltipEl.classList.add("apexcharts-active")}else u.type!=="mouseout"&&u.type!=="touchend"||this.handleMouseOut(c)}}},{key:"nonAxisChartsTooltips",value:function(n){var o=n.e,i=n.opt,u=n.tooltipRect,c=this.w,d=i.paths.getAttribute("rel"),h=this.getElTooltip(),x=c.globals.dom.elWrap.getBoundingClientRect();if(o.type==="mousemove"||o.type==="touchmove"){h.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(d,10)-1,shared:!1});var k=c.globals.clientX-x.left-u.ttWidth/2,E=c.globals.clientY-x.top-u.ttHeight-10;if(h.style.left=k+"px",h.style.top=E+"px",c.config.legend.tooltipHoverFormatter){var N=d-1,L=(0,c.config.legend.tooltipHoverFormatter)(this.legendLabels[N].getAttribute("data:default-text"),{seriesIndex:N,dataPointIndex:N,w:c});this.legendLabels[N].innerHTML=L}}else o.type!=="mouseout"&&o.type!=="touchend"||(h.classList.remove("apexcharts-active"),c.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(W){var G=W.getAttribute("data:default-text");W.innerHTML=decodeURIComponent(G)}))}},{key:"handleStickyTooltip",value:function(n,o,i,u){var c=this.w,d=this.tooltipUtil.getNearestValues({context:this,hoverArea:u.hoverArea,elGrid:u.elGrid,clientX:o,clientY:i}),h=d.j,x=d.capturedSeries;c.globals.collapsedSeriesIndices.includes(x)&&(x=null);var k=u.elGrid.getBoundingClientRect();if(d.hoverX<0||d.hoverX>k.width)this.handleMouseOut(u);else if(x!==null)this.handleStickyCapturedSeries(n,x,u,h);else if(this.tooltipUtil.isXoverlap(h)||c.globals.isBarHorizontal){var E=c.globals.series.findIndex(function(N,L){return!c.globals.collapsedSeriesIndices.includes(L)});this.create(n,this,E,h,u.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(n,o,i,u){var c=this.w;if(!this.tConfig.shared&&c.globals.series[o][u]===null)return void this.handleMouseOut(i);if(c.globals.series[o][u]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(u)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(n,this,o,u,i.ttItems):this.create(n,this,o,u,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(u)){var d=c.globals.series.findIndex(function(h,x){return!c.globals.collapsedSeriesIndices.includes(x)});this.create(n,this,d,u,i.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var n=this.w,o=new m(this.ctx),i=n.globals.dom.Paper.select(".apexcharts-bar-area"),u=0;u<i.length;u++)o.pathMouseLeave(i[u])}},{key:"handleMouseOut",value:function(n){var o=this.w,i=this.getElXCrosshairs();if(n.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),o.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),i!==null&&i.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=o.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var u=0;u<this.yaxisTTEls.length;u++)this.yaxisTTEls[u].classList.remove("apexcharts-active")}o.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(c){var d=c.getAttribute("data:default-text");c.innerHTML=decodeURIComponent(d)})}},{key:"markerClick",value:function(n,o,i){var u=this.w;typeof u.config.chart.events.markerClick=="function"&&u.config.chart.events.markerClick(n,this.ctx,{seriesIndex:o,dataPointIndex:i,w:u}),this.ctx.events.fireEvent("markerClick",[n,this.ctx,{seriesIndex:o,dataPointIndex:i,w:u}])}},{key:"create",value:function(n,o,i,u,c){var d,h,x,k,E,N,L,W,G,q,Q,re,ie,C,I,$,te=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,ce=this.w,de=o;n.type==="mouseup"&&this.markerClick(n,i,u),te===null&&(te=this.tConfig.shared);var we=this.tooltipUtil.hasMarkers(i),Ce=this.tooltipUtil.getElBars();if(ce.config.legend.tooltipHoverFormatter){var Ie=ce.config.legend.tooltipHoverFormatter,We=Array.from(this.legendLabels);We.forEach(function(Er){var Kn=Er.getAttribute("data:default-text");Er.innerHTML=decodeURIComponent(Kn)});for(var Fe=0;Fe<We.length;Fe++){var $e=We[Fe],Ke=parseInt($e.getAttribute("i"),10),st=decodeURIComponent($e.getAttribute("data:default-text")),pt=Ie(st,{seriesIndex:te?Ke:i,dataPointIndex:u,w:ce});if(te)$e.innerHTML=ce.globals.collapsedSeriesIndices.indexOf(Ke)<0?pt:st;else if($e.innerHTML=Ke===i?pt:st,i===Ke)break}}var xt=a(a({ttItems:c,i,j:u},((d=ce.globals.seriesRange)===null||d===void 0||(h=d[i])===null||h===void 0||(x=h[u])===null||x===void 0||(k=x.y[0])===null||k===void 0?void 0:k.y1)!==void 0&&{y1:(E=ce.globals.seriesRange)===null||E===void 0||(N=E[i])===null||N===void 0||(L=N[u])===null||L===void 0||(W=L.y[0])===null||W===void 0?void 0:W.y1}),((G=ce.globals.seriesRange)===null||G===void 0||(q=G[i])===null||q===void 0||(Q=q[u])===null||Q===void 0||(re=Q.y[0])===null||re===void 0?void 0:re.y2)!==void 0&&{y2:(ie=ce.globals.seriesRange)===null||ie===void 0||(C=ie[i])===null||C===void 0||(I=C[u])===null||I===void 0||($=I.y[0])===null||$===void 0?void 0:$.y2});if(te){if(de.tooltipLabels.drawSeriesTexts(a(a({},xt),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),we)ce.globals.markers.largestSize>0?de.marker.enlargePoints(u):de.tooltipPosition.moveDynamicPointsOnHover(u);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(Ce),this.barSeriesHeight>0)){var Mt=new m(this.ctx),_t=ce.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(u,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(u,i);for(var jt=0;jt<_t.length;jt++)Mt.pathMouseEnter(_t[jt])}}else de.tooltipLabels.drawSeriesTexts(a({shared:!1},xt)),this.tooltipUtil.hasBars()&&de.tooltipPosition.moveStickyTooltipOverBars(u,i),we&&de.tooltipPosition.moveMarkers(i,u)}}]),J}(),Ar=function(){function J(n){l(this,J),this.w=n.w,this.barCtx=n,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return b(J,[{key:"handleBarDataLabels",value:function(n){var o=n.x,i=n.y,u=n.y1,c=n.y2,d=n.i,h=n.j,x=n.realIndex,k=n.groupIndex,E=n.series,N=n.barHeight,L=n.barWidth,W=n.barXPosition,G=n.barYPosition,q=n.visibleSeries,Q=n.renderedPath,re=this.w,ie=new m(this.barCtx.ctx),C=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[x]:this.barCtx.strokeWidth,I=o+parseFloat(L*q),$=i+parseFloat(N*q);re.globals.isXNumeric&&!re.globals.isBarHorizontal&&(I=o+parseFloat(L*(q+1)),$=i+parseFloat(N*(q+1))-C);var te,ce=null,de=o,we=i,Ce={},Ie=re.config.dataLabels,We=this.barCtx.barOptions.dataLabels,Fe=this.barCtx.barOptions.dataLabels.total;G!==void 0&&this.barCtx.isRangeBar&&($=G,we=G),W!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(I=W,de=W);var $e=Ie.offsetX,Ke=Ie.offsetY,st={width:0,height:0};if(re.config.dataLabels.enabled){var pt=this.barCtx.series[d][h];st=ie.getTextRects(re.globals.yLabelFormatters[0](pt),parseFloat(Ie.style.fontSize))}var xt={x:o,y:i,i:d,j:h,realIndex:x,groupIndex:k||-1,renderedPath:Q,bcx:I,bcy:$,barHeight:N,barWidth:L,textRects:st,strokeWidth:C,dataLabelsX:de,dataLabelsY:we,dataLabelsConfig:Ie,barDataLabelsConfig:We,barTotalDataLabelsConfig:Fe,offX:$e,offY:Ke};return Ce=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(xt):this.calculateColumnsDataLabelsPosition(xt),Q.attr({cy:Ce.bcy,cx:Ce.bcx,j:h,val:E[d][h],barHeight:N,barWidth:L}),te=this.drawCalculatedDataLabels({x:Ce.dataLabelsX,y:Ce.dataLabelsY,val:this.barCtx.isRangeBar?[u,c]:E[d][h],i:x,j:h,barWidth:L,barHeight:N,textRects:st,dataLabelsConfig:Ie}),re.config.chart.stacked&&Fe.enabled&&(ce=this.drawTotalDataLabels({x:Ce.totalDataLabelsX,y:Ce.totalDataLabelsY,realIndex:x,textAnchor:Ce.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:x,j:h}),dataLabelsConfig:Ie,barTotalDataLabelsConfig:Fe})),{dataLabels:te,totalDataLabels:ce}}},{key:"getStackedTotalDataLabel",value:function(n){var o=n.realIndex,i=n.j,u=this.w,c=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(c=this.totalFormatter(c,a(a({},u),{},{seriesIndex:o,dataPointIndex:i,w:u}))),c}},{key:"calculateColumnsDataLabelsPosition",value:function(n){var o,i,u=this.w,c=n.i,d=n.j,h=n.realIndex,x=n.groupIndex,k=n.y,E=n.bcx,N=n.barWidth,L=n.barHeight,W=n.textRects,G=n.dataLabelsX,q=n.dataLabelsY,Q=n.dataLabelsConfig,re=n.barDataLabelsConfig,ie=n.barTotalDataLabelsConfig,C=n.strokeWidth,I=n.offX,$=n.offY;L=Math.abs(L);var te=u.config.plotOptions.bar.dataLabels.orientation==="vertical",ce=this.barCtx.barHelpers.getZeroValueEncounters({i:c,j:d}).zeroEncounters;E=E-C/2+(x!==-1?x*N:0);var de=u.globals.gridWidth/u.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?G+=N/2:(G=u.globals.isXNumeric?E-N/2+I:E-de+N/2+I,ce>0&&u.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(G-=N*ce)),te&&(G=G+W.height/2-C/2-2);var we=this.barCtx.series[c][d]<0,Ce=k;switch(this.barCtx.isReversed&&(Ce=k-L+(we?2*L:0),k-=L),re.position){case"center":q=te?we?Ce-L/2+$:Ce+L/2-$:we?Ce-L/2+W.height/2+$:Ce+L/2+W.height/2-$;break;case"bottom":q=te?we?Ce-L+$:Ce+L-$:we?Ce-L+W.height+C+$:Ce+L-W.height/2+C-$;break;case"top":q=te?we?Ce+$:Ce-$:we?Ce-W.height/2-$:Ce+W.height+$}if(this.barCtx.lastActiveBarSerieIndex===h&&ie.enabled){var Ie=new m(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:h,j:d}),Q.fontSize);o=we?Ce-Ie.height/2-$-ie.offsetY+18:Ce+Ie.height+$+ie.offsetY-18,i=G+ie.offsetX}return u.config.chart.stacked||(q<0?q=0+C:q+W.height/3>u.globals.gridHeight&&(q=u.globals.gridHeight-C)),{bcx:E,bcy:k,dataLabelsX:G,dataLabelsY:q,totalDataLabelsX:i,totalDataLabelsY:o,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(n){var o=this.w,i=n.x,u=n.i,c=n.j,d=n.realIndex,h=n.groupIndex,x=n.bcy,k=n.barHeight,E=n.barWidth,N=n.textRects,L=n.dataLabelsX,W=n.strokeWidth,G=n.dataLabelsConfig,q=n.barDataLabelsConfig,Q=n.barTotalDataLabelsConfig,re=n.offX,ie=n.offY,C=o.globals.gridHeight/o.globals.dataPoints;E=Math.abs(E);var I,$,te=(x+=h!==-1?h*k:0)-(this.barCtx.isRangeBar?0:C)+k/2+N.height/2+ie-3,ce="start",de=this.barCtx.series[u][c]<0,we=i;switch(this.barCtx.isReversed&&(we=i+E-(de?2*E:0),i=o.globals.gridWidth-E),q.position){case"center":L=de?we+E/2-re:Math.max(N.width/2,we-E/2)+re;break;case"bottom":L=de?we+E-W-Math.round(N.width/2)-re:we-E+W+Math.round(N.width/2)+re;break;case"top":L=de?we-W+Math.round(N.width/2)-re:we-W-Math.round(N.width/2)+re}if(this.barCtx.lastActiveBarSerieIndex===d&&Q.enabled){var Ce=new m(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:d,j:c}),G.fontSize);de?(I=we-W+Math.round(Ce.width/2)-re-Q.offsetX-15,ce="end"):I=we-W-Math.round(Ce.width/2)+re+Q.offsetX+15,$=te+Q.offsetY}return o.config.chart.stacked||(L<0?L=L+N.width+W:L+N.width/2>o.globals.gridWidth&&(L=o.globals.gridWidth-N.width-W)),{bcx:i,bcy:x,dataLabelsX:L,dataLabelsY:te,totalDataLabelsX:I,totalDataLabelsY:$,totalDataLabelsAnchor:ce}}},{key:"drawCalculatedDataLabels",value:function(n){var o=n.x,i=n.y,u=n.val,c=n.i,d=n.j,h=n.textRects,x=n.barHeight,k=n.barWidth,E=n.dataLabelsConfig,N=this.w,L="rotate(0)";N.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(L="rotate(-90, ".concat(o,", ").concat(i,")"));var W=new Le(this.barCtx.ctx),G=new m(this.barCtx.ctx),q=E.formatter,Q=null,re=N.globals.collapsedSeriesIndices.indexOf(c)>-1;if(E.enabled&&!re){Q=G.group({class:"apexcharts-data-labels",transform:L});var ie="";u!==void 0&&(ie=q(u,a(a({},N),{},{seriesIndex:c,dataPointIndex:d,w:N}))),!u&&N.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(ie="");var C=N.globals.series[c][d]<0,I=N.config.plotOptions.bar.dataLabels.position;N.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(I==="top"&&(E.textAnchor=C?"end":"start"),I==="center"&&(E.textAnchor="middle"),I==="bottom"&&(E.textAnchor=C?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&k<G.getTextRects(ie,parseFloat(E.style.fontSize)).width&&(ie=""),N.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?h.width/1.6>Math.abs(k)&&(ie=""):h.height/1.6>Math.abs(x)&&(ie=""));var $=a({},E);this.barCtx.isHorizontal&&u<0&&(E.textAnchor==="start"?$.textAnchor="end":E.textAnchor==="end"&&($.textAnchor="start")),W.plotDataLabelsText({x:o,y:i,text:ie,i:c,j:d,parent:Q,dataLabelsConfig:$,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return Q}},{key:"drawTotalDataLabels",value:function(n){var o,i=n.x,u=n.y,c=n.val,d=n.realIndex,h=n.textAnchor,x=n.barTotalDataLabelsConfig,k=new m(this.barCtx.ctx);return x.enabled&&i!==void 0&&u!==void 0&&this.barCtx.lastActiveBarSerieIndex===d&&(o=k.drawText({x:i,y:u,foreColor:x.style.color,text:c,textAnchor:h,fontFamily:x.style.fontFamily,fontSize:x.style.fontSize,fontWeight:x.style.fontWeight})),o}}]),J}(),va=function(){function J(n){l(this,J),this.w=n.w,this.barCtx=n}return b(J,[{key:"initVariables",value:function(n){var o=this.w;this.barCtx.series=n,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<n.length;i++)if(n[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=n[i].length),o.globals.isXNumeric)for(var u=0;u<n[i].length;u++)o.globals.seriesX[i][u]>o.globals.minX&&o.globals.seriesX[i][u]<o.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=o.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],o.globals.comboCharts||this.checkZeroSeries({series:n})}},{key:"initialPositions",value:function(){var n,o,i,u,c,d,h,x,k=this.w,E=k.globals.dataPoints;this.barCtx.isRangeBar&&(E=k.globals.labels.length);var N=this.barCtx.seriesLen;if(k.config.plotOptions.bar.rangeBarGroupRows&&(N=1),this.barCtx.isHorizontal)c=(i=k.globals.gridHeight/E)/N,k.globals.isXNumeric&&(c=(i=k.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),c=c*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(c=parseInt(this.barCtx.barOptions.barHeight,10)),x=this.barCtx.baseLineInvertedY+k.globals.padHorizontal+(this.barCtx.isReversed?k.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(x=k.globals.gridWidth/2),o=(i-c*this.barCtx.seriesLen)/2;else{if(u=k.globals.gridWidth/this.barCtx.visibleItems,k.config.xaxis.convertedCatToNumeric&&(u=k.globals.gridWidth/k.globals.dataPoints),d=u/N*parseInt(this.barCtx.barOptions.columnWidth,10)/100,k.globals.isXNumeric){var L=this.barCtx.xRatio;k.config.xaxis.convertedCatToNumeric&&(L=this.barCtx.initialXRatio),k.globals.minXDiff&&k.globals.minXDiff!==.5&&k.globals.minXDiff/L>0&&(u=k.globals.minXDiff/L),(d=u/N*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(d=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(d=parseInt(this.barCtx.barOptions.columnWidth,10)),h=k.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?k.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),n=k.globals.padHorizontal+(u-d*this.barCtx.seriesLen)/2}return{x:n,y:o,yDivision:i,xDivision:u,barHeight:c,barWidth:d,zeroH:h,zeroW:x}}},{key:"initializeStackedPrevVars",value:function(n){var o=n.w;o.globals.hasSeriesGroups?o.globals.seriesGroups.forEach(function(i){n[i]||(n[i]={}),n[i].prevY=[],n[i].prevX=[],n[i].prevYF=[],n[i].prevXF=[],n[i].prevYVal=[],n[i].prevXVal=[]}):(n.prevY=[],n.prevX=[],n.prevYF=[],n.prevXF=[],n.prevYVal=[],n.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(n){var o=n.w;o.globals.hasSeriesGroups?o.globals.seriesGroups.forEach(function(i){n[i]||(n[i]={}),n[i].xArrj=[],n[i].xArrjF=[],n[i].xArrjVal=[],n[i].yArrj=[],n[i].yArrjF=[],n[i].yArrjVal=[]}):(n.xArrj=[],n.xArrjF=[],n.xArrjVal=[],n.yArrj=[],n.yArrjF=[],n.yArrjVal=[])}},{key:"getPathFillColor",value:function(n,o,i,u){var c,d,h,x,k=this.w,E=new Te(this.barCtx.ctx),N=null,L=this.barCtx.barOptions.distributed?i:o;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(W){n[o][i]>=W.from&&n[o][i]<=W.to&&(N=W.color)}),k.config.series[o].data[i]&&k.config.series[o].data[i].fillColor&&(N=k.config.series[o].data[i].fillColor),E.fillPath({seriesNumber:this.barCtx.barOptions.distributed?L:u,dataPointIndex:i,color:N,value:n[o][i],fillConfig:(c=k.config.series[o].data[i])===null||c===void 0?void 0:c.fill,fillType:(d=k.config.series[o].data[i])!==null&&d!==void 0&&(h=d.fill)!==null&&h!==void 0&&h.type?(x=k.config.series[o].data[i])===null||x===void 0?void 0:x.fill.type:k.config.fill.type})}},{key:"getStrokeWidth",value:function(n,o,i){var u=0,c=this.w;return this.barCtx.series[n][o]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,c.config.stroke.show&&(this.barCtx.isNullValue||(u=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),u}},{key:"shouldApplyRadius",value:function(n){var o=this.w,i=!1;return o.config.plotOptions.bar.borderRadius>0&&(o.config.chart.stacked&&o.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===n&&(i=!0):i=!0),i}},{key:"barBackground",value:function(n){var o=n.j,i=n.i,u=n.x1,c=n.x2,d=n.y1,h=n.y2,x=n.elSeries,k=this.w,E=new m(this.barCtx.ctx),N=new Oe(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&N===i){o>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(o%=this.barCtx.barOptions.colors.backgroundBarColors.length);var L=this.barCtx.barOptions.colors.backgroundBarColors[o],W=E.drawRect(u!==void 0?u:0,d!==void 0?d:0,c!==void 0?c:k.globals.gridWidth,h!==void 0?h:k.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,L,this.barCtx.barOptions.colors.backgroundBarOpacity);x.add(W),W.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(n){var o,i=n.barWidth,u=n.barXPosition,c=n.y1,d=n.y2,h=n.strokeWidth,x=n.seriesGroup,k=n.realIndex,E=n.i,N=n.j,L=n.w,W=new m(this.barCtx.ctx);(h=Array.isArray(h)?h[k]:h)||(h=0);var G=i,q=u;(o=L.config.series[k].data[N])!==null&&o!==void 0&&o.columnWidthOffset&&(q=u-L.config.series[k].data[N].columnWidthOffset/2,G=i+L.config.series[k].data[N].columnWidthOffset);var Q=q,re=q+G;c+=.001,d+=.001;var ie=W.move(Q,c),C=W.move(Q,c),I=W.line(re-h,c);if(L.globals.previousPaths.length>0&&(C=this.barCtx.getPreviousPath(k,N,!1)),ie=ie+W.line(Q,d)+W.line(re-h,d)+W.line(re-h,c)+(L.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),C=C+W.line(Q,c)+I+I+I+I+I+W.line(Q,c)+(L.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(k)&&(ie=W.roundPathCorners(ie,L.config.plotOptions.bar.borderRadius)),L.config.chart.stacked){var $=this.barCtx;L.globals.hasSeriesGroups&&x&&($=this.barCtx[x]),$.yArrj.push(d),$.yArrjF.push(Math.abs(c-d)),$.yArrjVal.push(this.barCtx.series[E][N])}return{pathTo:ie,pathFrom:C}}},{key:"getBarpaths",value:function(n){var o,i=n.barYPosition,u=n.barHeight,c=n.x1,d=n.x2,h=n.strokeWidth,x=n.seriesGroup,k=n.realIndex,E=n.i,N=n.j,L=n.w,W=new m(this.barCtx.ctx);(h=Array.isArray(h)?h[k]:h)||(h=0);var G=i,q=u;(o=L.config.series[k].data[N])!==null&&o!==void 0&&o.barHeightOffset&&(G=i-L.config.series[k].data[N].barHeightOffset/2,q=u+L.config.series[k].data[N].barHeightOffset);var Q=G,re=G+q;c+=.001,d+=.001;var ie=W.move(c,Q),C=W.move(c,Q);L.globals.previousPaths.length>0&&(C=this.barCtx.getPreviousPath(k,N,!1));var I=W.line(c,re-h);if(ie=ie+W.line(d,Q)+W.line(d,re-h)+I+(L.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),C=C+W.line(c,Q)+I+I+I+I+I+W.line(c,Q)+(L.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(k)&&(ie=W.roundPathCorners(ie,L.config.plotOptions.bar.borderRadius)),L.config.chart.stacked){var $=this.barCtx;L.globals.hasSeriesGroups&&x&&($=this.barCtx[x]),$.xArrj.push(d),$.xArrjF.push(Math.abs(c-d)),$.xArrjVal.push(this.barCtx.series[E][N])}return{pathTo:ie,pathFrom:C}}},{key:"checkZeroSeries",value:function(n){for(var o=n.series,i=this.w,u=0;u<o.length;u++){for(var c=0,d=0;d<o[i.globals.maxValsInArrayIndex].length;d++)c+=o[u][d];c===0&&this.barCtx.zeroSerieses.push(u)}}},{key:"getXForValue",value:function(n,o){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?o:null;return n!=null&&(i=o+n/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?n/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(n,o){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?o:null;return n!=null&&(i=o-n/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?n/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(n,o,i,u,c){var d=this,h=this.w,x=[],k=function(L,W){var G;x.push((S(G={},n,n==="x"?d.getXForValue(L,o,!1):d.getYForValue(L,i,!1)),S(G,"attrs",W),G))};if(h.globals.seriesGoals[u]&&h.globals.seriesGoals[u][c]&&Array.isArray(h.globals.seriesGoals[u][c])&&h.globals.seriesGoals[u][c].forEach(function(L){k(L.value,L)}),this.barCtx.barOptions.isDumbbell&&h.globals.seriesRange.length){var E=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:h.globals.colors,N={strokeHeight:n==="x"?0:h.globals.markers.size[u],strokeWidth:n==="x"?h.globals.markers.size[u]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(E[u])?E[u][0]:E[u]};k(h.globals.seriesRangeStart[u][c],N),k(h.globals.seriesRangeEnd[u][c],a(a({},N),{},{strokeColor:Array.isArray(E[u])?E[u][1]:E[u]}))}return x}},{key:"drawGoalLine",value:function(n){var o=n.barXPosition,i=n.barYPosition,u=n.goalX,c=n.goalY,d=n.barWidth,h=n.barHeight,x=new m(this.barCtx.ctx),k=x.group({className:"apexcharts-bar-goals-groups"});k.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:k.node}),k.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var E=null;return this.barCtx.isHorizontal?Array.isArray(u)&&u.forEach(function(N){var L=N.attrs.strokeHeight!==void 0?N.attrs.strokeHeight:h/2,W=i+L+h/2;E=x.drawLine(N.x,W-2*L,N.x,W,N.attrs.strokeColor?N.attrs.strokeColor:void 0,N.attrs.strokeDashArray,N.attrs.strokeWidth?N.attrs.strokeWidth:2,N.attrs.strokeLineCap),k.add(E)}):Array.isArray(c)&&c.forEach(function(N){var L=N.attrs.strokeWidth!==void 0?N.attrs.strokeWidth:d/2,W=o+L+d/2;E=x.drawLine(W-2*L,N.y,W,N.y,N.attrs.strokeColor?N.attrs.strokeColor:void 0,N.attrs.strokeDashArray,N.attrs.strokeHeight?N.attrs.strokeHeight:2,N.attrs.strokeLineCap),k.add(E)}),k}},{key:"drawBarShadow",value:function(n){var o=n.prevPaths,i=n.currPaths,u=n.color,c=this.w,d=o.x,h=o.x1,x=o.barYPosition,k=i.x,E=i.x1,N=i.barYPosition,L=x+i.barHeight,W=new m(this.barCtx.ctx),G=new p,q=W.move(h,L)+W.line(d,L)+W.line(k,N)+W.line(E,N)+W.line(h,L)+(c.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return W.drawPath({d:q,fill:G.shadeColor(.5,p.rgb2hex(u)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(n){var o=n.i,i=n.j,u=this.w,c=0,d=0;return u.globals.seriesPercent.forEach(function(h,x){h[i]&&c++,x<o&&h[i]===0&&d++}),{nonZeroColumns:c,zeroEncounters:d}}}]),J}(),Tn=function(){function J(n,o){l(this,J),this.ctx=n,this.w=n.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&i.globals.seriesRange.length&&i.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=o,this.xyRatios!==null&&(this.xRatio=o.xRatio,this.initialXRatio=o.initialXRatio,this.yRatio=o.yRatio,this.invertedXRatio=o.invertedXRatio,this.invertedYRatio=o.invertedYRatio,this.baseLineY=o.baseLineY,this.baseLineInvertedY=o.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var u=new Oe(this.ctx);this.lastActiveBarSerieIndex=u.getActiveConfigSeriesIndex("desc",["bar","column"]);var c=u.getBarSeriesIndices(),d=new _(this.ctx);this.stackedSeriesTotals=d.getStackedSeriesTotals(this.w.config.series.map(function(h,x){return c.indexOf(x)===-1?x:-1}).filter(function(h){return h!==-1})),this.barHelpers=new va(this)}return b(J,[{key:"draw",value:function(n,o){var i=this.w,u=new m(this.ctx),c=new _(this.ctx,i);n=c.getLogSeries(n),this.series=n,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(n);var d=u.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var h=0,x=0;h<n.length;h++,x++){var k,E,N,L,W=void 0,G=void 0,q=[],Q=[],re=i.globals.comboCharts?o[h]:h,ie=u.group({class:"apexcharts-series",rel:h+1,seriesName:p.escapeString(i.globals.seriesNames[re]),"data:realIndex":re});this.ctx.series.addCollapsedClassToSeries(ie,re),n[h].length>0&&(this.visibleI=this.visibleI+1);var C=0,I=0;this.yRatio.length>1&&(this.yaxisIndex=re),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var $=this.barHelpers.initialPositions();G=$.y,C=$.barHeight,E=$.yDivision,L=$.zeroW,W=$.x,I=$.barWidth,k=$.xDivision,N=$.zeroH,this.horizontal||Q.push(W+I/2);var te=u.group({class:"apexcharts-datalabels","data:realIndex":re});i.globals.delayedElements.push({el:te.node}),te.node.classList.add("apexcharts-element-hidden");var ce=u.group({class:"apexcharts-bar-goals-markers"}),de=u.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:de.node}),de.node.classList.add("apexcharts-element-hidden");for(var we=0;we<i.globals.dataPoints;we++){var Ce=this.barHelpers.getStrokeWidth(h,we,re),Ie=null,We={indexes:{i:h,j:we,realIndex:re,bc:x},x:W,y:G,strokeWidth:Ce,elSeries:ie};this.isHorizontal?(Ie=this.drawBarPaths(a(a({},We),{},{barHeight:C,zeroW:L,yDivision:E})),I=this.series[h][we]/this.invertedYRatio):(Ie=this.drawColumnPaths(a(a({},We),{},{xDivision:k,barWidth:I,zeroH:N})),C=this.series[h][we]/this.yRatio[this.yaxisIndex]);var Fe=this.barHelpers.getPathFillColor(n,h,we,re);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&we>0){var $e=this.barHelpers.drawBarShadow({color:typeof Fe=="string"&&(Fe==null?void 0:Fe.indexOf("url"))===-1?Fe:p.hexToRgba(i.globals.colors[h]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:Ie});$e&&de.add($e)}this.pathArr.push(Ie);var Ke=this.barHelpers.drawGoalLine({barXPosition:Ie.barXPosition,barYPosition:Ie.barYPosition,goalX:Ie.goalX,goalY:Ie.goalY,barHeight:C,barWidth:I});Ke&&ce.add(Ke),G=Ie.y,W=Ie.x,we>0&&Q.push(W+I/2),q.push(G),this.renderSeries({realIndex:re,pathFill:Fe,j:we,i:h,pathFrom:Ie.pathFrom,pathTo:Ie.pathTo,strokeWidth:Ce,elSeries:ie,x:W,y:G,series:n,barHeight:Ie.barHeight?Ie.barHeight:C,barWidth:Ie.barWidth?Ie.barWidth:I,elDataLabelsWrap:te,elGoalsMarkers:ce,elBarShadows:de,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[re]=Q,i.globals.seriesYvalues[re]=q,d.add(ie)}return d}},{key:"renderSeries",value:function(n){var o=n.realIndex,i=n.pathFill,u=n.lineFill,c=n.j,d=n.i,h=n.groupIndex,x=n.pathFrom,k=n.pathTo,E=n.strokeWidth,N=n.elSeries,L=n.x,W=n.y,G=n.y1,q=n.y2,Q=n.series,re=n.barHeight,ie=n.barWidth,C=n.barXPosition,I=n.barYPosition,$=n.elDataLabelsWrap,te=n.elGoalsMarkers,ce=n.elBarShadows,de=n.visibleSeries,we=n.type,Ce=this.w,Ie=new m(this.ctx);u||(u=this.barOptions.distributed?Ce.globals.stroke.colors[c]:Ce.globals.stroke.colors[o]),Ce.config.series[d].data[c]&&Ce.config.series[d].data[c].strokeColor&&(u=Ce.config.series[d].data[c].strokeColor),this.isNullValue&&(i="none");var We=c/Ce.config.chart.animations.animateGradually.delay*(Ce.config.chart.animations.speed/Ce.globals.dataPoints)/2.4,Fe=Ie.renderPaths({i:d,j:c,realIndex:o,pathFrom:x,pathTo:k,stroke:u,strokeWidth:E,strokeLineCap:Ce.config.stroke.lineCap,fill:i,animationDelay:We,initialSpeed:Ce.config.chart.animations.speed,dataChangeSpeed:Ce.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(we,"-area")});Fe.attr("clip-path","url(#gridRectMask".concat(Ce.globals.cuid,")"));var $e=Ce.config.forecastDataPoints;$e.count>0&&c>=Ce.globals.dataPoints-$e.count&&(Fe.node.setAttribute("stroke-dasharray",$e.dashArray),Fe.node.setAttribute("stroke-width",$e.strokeWidth),Fe.node.setAttribute("fill-opacity",$e.fillOpacity)),G!==void 0&&q!==void 0&&(Fe.attr("data-range-y1",G),Fe.attr("data-range-y2",q)),new g(this.ctx).setSelectionFilter(Fe,o,c),N.add(Fe);var Ke=new Ar(this).handleBarDataLabels({x:L,y:W,y1:G,y2:q,i:d,j:c,series:Q,realIndex:o,groupIndex:h,barHeight:re,barWidth:ie,barXPosition:C,barYPosition:I,renderedPath:Fe,visibleSeries:de});return Ke.dataLabels!==null&&$.add(Ke.dataLabels),Ke.totalDataLabels&&$.add(Ke.totalDataLabels),N.add($),te&&N.add(te),ce&&N.add(ce),N}},{key:"drawBarPaths",value:function(n){var o,i=n.indexes,u=n.barHeight,c=n.strokeWidth,d=n.zeroW,h=n.x,x=n.y,k=n.yDivision,E=n.elSeries,N=this.w,L=i.i,W=i.j;if(N.globals.isXNumeric)o=(x=(N.globals.seriesX[L][W]-N.globals.minX)/this.invertedXRatio-u)+u*this.visibleI;else if(N.config.plotOptions.bar.hideZeroBarsWhenGrouped){var G=0,q=0;N.globals.seriesPercent.forEach(function(re,ie){re[W]&&G++,ie<L&&re[W]===0&&q++}),G>0&&(u=this.seriesLen*u/G),o=x+u*this.visibleI,o-=u*q}else o=x+u*this.visibleI;this.isFunnel&&(d-=(this.barHelpers.getXForValue(this.series[L][W],d)-d)/2),h=this.barHelpers.getXForValue(this.series[L][W],d);var Q=this.barHelpers.getBarpaths({barYPosition:o,barHeight:u,x1:d,x2:h,strokeWidth:c,series:this.series,realIndex:i.realIndex,i:L,j:W,w:N});return N.globals.isXNumeric||(x+=k),this.barHelpers.barBackground({j:W,i:L,y1:o-u*this.visibleI,y2:u*this.seriesLen,elSeries:E}),{pathTo:Q.pathTo,pathFrom:Q.pathFrom,x1:d,x:h,y:x,goalX:this.barHelpers.getGoalValues("x",d,null,L,W),barYPosition:o,barHeight:u}}},{key:"drawColumnPaths",value:function(n){var o,i=n.indexes,u=n.x,c=n.y,d=n.xDivision,h=n.barWidth,x=n.zeroH,k=n.strokeWidth,E=n.elSeries,N=this.w,L=i.realIndex,W=i.i,G=i.j,q=i.bc;if(N.globals.isXNumeric){var Q=this.getBarXForNumericXAxis({x:u,j:G,realIndex:L,barWidth:h});u=Q.x,o=Q.barXPosition}else if(N.config.plotOptions.bar.hideZeroBarsWhenGrouped){var re=this.barHelpers.getZeroValueEncounters({i:W,j:G}),ie=re.nonZeroColumns,C=re.zeroEncounters;ie>0&&(h=this.seriesLen*h/ie),o=u+h*this.visibleI,o-=h*C}else o=u+h*this.visibleI;c=this.barHelpers.getYForValue(this.series[W][G],x);var I=this.barHelpers.getColumnPaths({barXPosition:o,barWidth:h,y1:x,y2:c,strokeWidth:k,series:this.series,realIndex:i.realIndex,i:W,j:G,w:N});return N.globals.isXNumeric||(u+=d),this.barHelpers.barBackground({bc:q,j:G,i:W,x1:o-k/2-h*this.visibleI,x2:h*this.seriesLen+k/2,elSeries:E}),{pathTo:I.pathTo,pathFrom:I.pathFrom,x:u,y:c,goalY:this.barHelpers.getGoalValues("y",null,x,W,G),barXPosition:o,barWidth:h}}},{key:"getBarXForNumericXAxis",value:function(n){var o=n.x,i=n.barWidth,u=n.realIndex,c=n.j,d=this.w,h=u;return d.globals.seriesX[u].length||(h=d.globals.maxValsInArrayIndex),d.globals.seriesX[h][c]&&(o=(d.globals.seriesX[h][c]-d.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:o+i*this.visibleI,x:o}}},{key:"getPreviousPath",value:function(n,o){for(var i,u=this.w,c=0;c<u.globals.previousPaths.length;c++){var d=u.globals.previousPaths[c];d.paths&&d.paths.length>0&&parseInt(d.realIndex,10)===parseInt(n,10)&&u.globals.previousPaths[c].paths[o]!==void 0&&(i=u.globals.previousPaths[c].paths[o].d)}return i}}]),J}(),Fr=function(J){T(o,Tn);var n=z(o);function o(){return l(this,o),n.apply(this,arguments)}return b(o,[{key:"draw",value:function(i,u){var c=this,d=this.w;this.graphics=new m(this.ctx),this.bar=new Tn(this.ctx,this.xyRatios);var h=new _(this.ctx,d);i=h.getLogSeries(i),this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),d.config.chart.stackType==="100%"&&(i=d.globals.seriesPercent.slice()),this.series=i,this.barHelpers.initializeStackedPrevVars(this);for(var x=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),k=0,E=0,N=function(G,q){var Q=void 0,re=void 0,ie=void 0,C=void 0,I=-1;c.groupCtx=c,d.globals.seriesGroups.forEach(function(_t,jt){_t.indexOf(d.config.series[G].name)>-1&&(I=jt)}),I!==-1&&(c.groupCtx=c[d.globals.seriesGroups[I]]);var $=[],te=[],ce=d.globals.comboCharts?u[G]:G;c.yRatio.length>1&&(c.yaxisIndex=ce),c.isReversed=d.config.yaxis[c.yaxisIndex]&&d.config.yaxis[c.yaxisIndex].reversed;var de=c.graphics.group({class:"apexcharts-series",seriesName:p.escapeString(d.globals.seriesNames[ce]),rel:G+1,"data:realIndex":ce});c.ctx.series.addCollapsedClassToSeries(de,ce);var we=c.graphics.group({class:"apexcharts-datalabels","data:realIndex":ce}),Ce=c.graphics.group({class:"apexcharts-bar-goals-markers"}),Ie=0,We=0,Fe=c.initialPositions(k,E,Q,re,ie,C);E=Fe.y,Ie=Fe.barHeight,re=Fe.yDivision,C=Fe.zeroW,k=Fe.x,We=Fe.barWidth,Q=Fe.xDivision,ie=Fe.zeroH,c.barHelpers.initializeStackedXYVars(c),c.groupCtx.prevY.length===1&&c.groupCtx.prevY[0].every(function(_t){return isNaN(_t)})&&(c.groupCtx.prevY[0]=c.groupCtx.prevY[0].map(function(_t){return ie}),c.groupCtx.prevYF[0]=c.groupCtx.prevYF[0].map(function(_t){return 0}));for(var $e=0;$e<d.globals.dataPoints;$e++){var Ke=c.barHelpers.getStrokeWidth(G,$e,ce),st={indexes:{i:G,j:$e,realIndex:ce,bc:q},strokeWidth:Ke,x:k,y:E,elSeries:de,groupIndex:I,seriesGroup:d.globals.seriesGroups[I]},pt=null;c.isHorizontal?(pt=c.drawStackedBarPaths(a(a({},st),{},{zeroW:C,barHeight:Ie,yDivision:re})),We=c.series[G][$e]/c.invertedYRatio):(pt=c.drawStackedColumnPaths(a(a({},st),{},{xDivision:Q,barWidth:We,zeroH:ie})),Ie=c.series[G][$e]/c.yRatio[c.yaxisIndex]);var xt=c.barHelpers.drawGoalLine({barXPosition:pt.barXPosition,barYPosition:pt.barYPosition,goalX:pt.goalX,goalY:pt.goalY,barHeight:Ie,barWidth:We});xt&&Ce.add(xt),E=pt.y,k=pt.x,$.push(k),te.push(E);var Mt=c.barHelpers.getPathFillColor(i,G,$e,ce);de=c.renderSeries({realIndex:ce,pathFill:Mt,j:$e,i:G,groupIndex:I,pathFrom:pt.pathFrom,pathTo:pt.pathTo,strokeWidth:Ke,elSeries:de,x:k,y:E,series:i,barHeight:Ie,barWidth:We,elDataLabelsWrap:we,elGoalsMarkers:Ce,type:"bar",visibleSeries:0})}d.globals.seriesXvalues[ce]=$,d.globals.seriesYvalues[ce]=te,c.groupCtx.prevY.push(c.groupCtx.yArrj),c.groupCtx.prevYF.push(c.groupCtx.yArrjF),c.groupCtx.prevYVal.push(c.groupCtx.yArrjVal),c.groupCtx.prevX.push(c.groupCtx.xArrj),c.groupCtx.prevXF.push(c.groupCtx.xArrjF),c.groupCtx.prevXVal.push(c.groupCtx.xArrjVal),x.add(de)},L=0,W=0;L<i.length;L++,W++)N(L,W);return x}},{key:"initialPositions",value:function(i,u,c,d,h,x){var k,E,N,L,W=this.w;return this.isHorizontal?(N=(N=d=W.globals.gridHeight/W.globals.dataPoints)*parseInt(W.config.plotOptions.bar.barHeight,10)/100,String(W.config.plotOptions.bar.barHeight).indexOf("%")===-1&&(N=parseInt(W.config.plotOptions.bar.barHeight,10)),x=this.baseLineInvertedY+W.globals.padHorizontal+(this.isReversed?W.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),u=(d-N)/2):(L=c=W.globals.gridWidth/W.globals.dataPoints,L=W.globals.isXNumeric&&W.globals.dataPoints>1?(c=W.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:L*parseInt(W.config.plotOptions.bar.columnWidth,10)/100,String(W.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(L=parseInt(W.config.plotOptions.bar.columnWidth,10)),h=W.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?W.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),i=W.globals.padHorizontal+(c-L)/2),{x:i,y:u,yDivision:d,xDivision:c,barHeight:(k=W.globals.seriesGroups)!==null&&k!==void 0&&k.length?N/W.globals.seriesGroups.length:N,barWidth:(E=W.globals.seriesGroups)!==null&&E!==void 0&&E.length?L/W.globals.seriesGroups.length:L,zeroH:h,zeroW:x}}},{key:"drawStackedBarPaths",value:function(i){for(var u,c=i.indexes,d=i.barHeight,h=i.strokeWidth,x=i.zeroW,k=i.x,E=i.y,N=i.groupIndex,L=i.seriesGroup,W=i.yDivision,G=i.elSeries,q=this.w,Q=E+(N!==-1?N*d:0),re=c.i,ie=c.j,C=0,I=0;I<this.groupCtx.prevXF.length;I++)C+=this.groupCtx.prevXF[I][ie];var $=re;if(L&&($=L.indexOf(q.config.series[re].name)),$>0){var te=x;this.groupCtx.prevXVal[$-1][ie]<0?te=this.series[re][ie]>=0?this.groupCtx.prevX[$-1][ie]+C-2*(this.isReversed?C:0):this.groupCtx.prevX[$-1][ie]:this.groupCtx.prevXVal[$-1][ie]>=0&&(te=this.series[re][ie]>=0?this.groupCtx.prevX[$-1][ie]:this.groupCtx.prevX[$-1][ie]-C+2*(this.isReversed?C:0)),u=te}else u=x;k=this.series[re][ie]===null?u:u+this.series[re][ie]/this.invertedYRatio-2*(this.isReversed?this.series[re][ie]/this.invertedYRatio:0);var ce=this.barHelpers.getBarpaths({barYPosition:Q,barHeight:d,x1:u,x2:k,strokeWidth:h,series:this.series,realIndex:c.realIndex,seriesGroup:L,i:re,j:ie,w:q});return this.barHelpers.barBackground({j:ie,i:re,y1:Q,y2:d,elSeries:G}),E+=W,{pathTo:ce.pathTo,pathFrom:ce.pathFrom,goalX:this.barHelpers.getGoalValues("x",x,null,re,ie),barYPosition:Q,x:k,y:E}}},{key:"drawStackedColumnPaths",value:function(i){var u=i.indexes,c=i.x,d=i.y,h=i.xDivision,x=i.barWidth,k=i.zeroH,E=i.groupIndex,N=i.seriesGroup,L=i.elSeries,W=this.w,G=u.i,q=u.j,Q=u.bc;if(W.globals.isXNumeric){var re=W.globals.seriesX[G][q];re||(re=0),c=(re-W.globals.minX)/this.xRatio-x/2,W.globals.seriesGroups.length&&(c=(re-W.globals.minX)/this.xRatio-x/2*W.globals.seriesGroups.length)}for(var ie,C=c+(E!==-1?E*x:0),I=0,$=0;$<this.groupCtx.prevYF.length;$++)I+=isNaN(this.groupCtx.prevYF[$][q])?0:this.groupCtx.prevYF[$][q];var te=G;if(N&&(te=N.indexOf(W.config.series[G].name)),te>0&&!W.globals.isXNumeric||te>0&&W.globals.isXNumeric&&W.globals.seriesX[G-1][q]===W.globals.seriesX[G][q]){var ce,de,we,Ce=Math.min(this.yRatio.length+1,G+1);if(this.groupCtx.prevY[te-1]!==void 0&&this.groupCtx.prevY[te-1].length)for(var Ie=1;Ie<Ce;Ie++){var We;if(!isNaN((We=this.groupCtx.prevY[te-Ie])===null||We===void 0?void 0:We[q])){we=this.groupCtx.prevY[te-Ie][q];break}}for(var Fe=1;Fe<Ce;Fe++){var $e,Ke;if((($e=this.groupCtx.prevYVal[te-Fe])===null||$e===void 0?void 0:$e[q])<0){de=this.series[G][q]>=0?we-I+2*(this.isReversed?I:0):we;break}if(((Ke=this.groupCtx.prevYVal[te-Fe])===null||Ke===void 0?void 0:Ke[q])>=0){de=this.series[G][q]>=0?we:we+I-2*(this.isReversed?I:0);break}}de===void 0&&(de=W.globals.gridHeight),ie=(ce=this.groupCtx.prevYF[0])!==null&&ce!==void 0&&ce.every(function(pt){return pt===0})&&this.groupCtx.prevYF.slice(1,te).every(function(pt){return pt.every(function(xt){return isNaN(xt)})})?k:de}else ie=k;d=this.series[G][q]?ie-this.series[G][q]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[G][q]/this.yRatio[this.yaxisIndex]:0):ie;var st=this.barHelpers.getColumnPaths({barXPosition:C,barWidth:x,y1:ie,y2:d,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:N,realIndex:u.realIndex,i:G,j:q,w:W});return this.barHelpers.barBackground({bc:Q,j:q,i:G,x1:C,x2:x,elSeries:L}),c+=h,{pathTo:st.pathTo,pathFrom:st.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,k,G,q),barXPosition:C,x:W.globals.isXNumeric?c-h:c,y:d}}}]),o}(),Yn=function(J){T(o,Tn);var n=z(o);function o(){return l(this,o),n.apply(this,arguments)}return b(o,[{key:"draw",value:function(i,u,c){var d=this,h=this.w,x=new m(this.ctx),k=h.globals.comboCharts?u:h.config.chart.type,E=new Te(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=h.config.plotOptions.bar.horizontal;var N=new _(this.ctx,h);i=N.getLogSeries(i),this.series=i,this.yRatio=N.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var L=x.group({class:"apexcharts-".concat(k,"-series apexcharts-plot-series")}),W=function(q){d.isBoxPlot=h.config.chart.type==="boxPlot"||h.config.series[q].type==="boxPlot";var Q,re,ie,C,I=void 0,$=void 0,te=[],ce=[],de=h.globals.comboCharts?c[q]:q,we=x.group({class:"apexcharts-series",seriesName:p.escapeString(h.globals.seriesNames[de]),rel:q+1,"data:realIndex":de});d.ctx.series.addCollapsedClassToSeries(we,de),i[q].length>0&&(d.visibleI=d.visibleI+1);var Ce,Ie;d.yRatio.length>1&&(d.yaxisIndex=de);var We=d.barHelpers.initialPositions();$=We.y,Ce=We.barHeight,re=We.yDivision,C=We.zeroW,I=We.x,Ie=We.barWidth,Q=We.xDivision,ie=We.zeroH,ce.push(I+Ie/2);for(var Fe=x.group({class:"apexcharts-datalabels","data:realIndex":de}),$e=function(st){var pt=d.barHelpers.getStrokeWidth(q,st,de),xt=null,Mt={indexes:{i:q,j:st,realIndex:de},x:I,y:$,strokeWidth:pt,elSeries:we};xt=d.isHorizontal?d.drawHorizontalBoxPaths(a(a({},Mt),{},{yDivision:re,barHeight:Ce,zeroW:C})):d.drawVerticalBoxPaths(a(a({},Mt),{},{xDivision:Q,barWidth:Ie,zeroH:ie})),$=xt.y,I=xt.x,st>0&&ce.push(I+Ie/2),te.push($),xt.pathTo.forEach(function(_t,jt){var Er=!d.isBoxPlot&&d.candlestickOptions.wick.useFillColor?xt.color[jt]:h.globals.stroke.colors[q],Kn=E.fillPath({seriesNumber:de,dataPointIndex:st,color:xt.color[jt],value:i[q][st]});d.renderSeries({realIndex:de,pathFill:Kn,lineFill:Er,j:st,i:q,pathFrom:xt.pathFrom,pathTo:_t,strokeWidth:pt,elSeries:we,x:I,y:$,series:i,barHeight:Ce,barWidth:Ie,elDataLabelsWrap:Fe,visibleSeries:d.visibleI,type:h.config.chart.type})})},Ke=0;Ke<h.globals.dataPoints;Ke++)$e(Ke);h.globals.seriesXvalues[de]=ce,h.globals.seriesYvalues[de]=te,L.add(we)},G=0;G<i.length;G++)W(G);return L}},{key:"drawVerticalBoxPaths",value:function(i){var u=i.indexes,c=i.x;i.y;var d=i.xDivision,h=i.barWidth,x=i.zeroH,k=i.strokeWidth,E=this.w,N=new m(this.ctx),L=u.i,W=u.j,G=!0,q=E.config.plotOptions.candlestick.colors.upward,Q=E.config.plotOptions.candlestick.colors.downward,re="";this.isBoxPlot&&(re=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var ie=this.yRatio[this.yaxisIndex],C=u.realIndex,I=this.getOHLCValue(C,W),$=x,te=x;I.o>I.c&&(G=!1);var ce=Math.min(I.o,I.c),de=Math.max(I.o,I.c),we=I.m;E.globals.isXNumeric&&(c=(E.globals.seriesX[C][W]-E.globals.minX)/this.xRatio-h/2);var Ce=c+h*this.visibleI;this.series[L][W]===void 0||this.series[L][W]===null?(ce=x,de=x):(ce=x-ce/ie,de=x-de/ie,$=x-I.h/ie,te=x-I.l/ie,we=x-I.m/ie);var Ie=N.move(Ce,x),We=N.move(Ce+h/2,ce);return E.globals.previousPaths.length>0&&(We=this.getPreviousPath(C,W,!0)),Ie=this.isBoxPlot?[N.move(Ce,ce)+N.line(Ce+h/2,ce)+N.line(Ce+h/2,$)+N.line(Ce+h/4,$)+N.line(Ce+h-h/4,$)+N.line(Ce+h/2,$)+N.line(Ce+h/2,ce)+N.line(Ce+h,ce)+N.line(Ce+h,we)+N.line(Ce,we)+N.line(Ce,ce+k/2),N.move(Ce,we)+N.line(Ce+h,we)+N.line(Ce+h,de)+N.line(Ce+h/2,de)+N.line(Ce+h/2,te)+N.line(Ce+h-h/4,te)+N.line(Ce+h/4,te)+N.line(Ce+h/2,te)+N.line(Ce+h/2,de)+N.line(Ce,de)+N.line(Ce,we)+"z"]:[N.move(Ce,de)+N.line(Ce+h/2,de)+N.line(Ce+h/2,$)+N.line(Ce+h/2,de)+N.line(Ce+h,de)+N.line(Ce+h,ce)+N.line(Ce+h/2,ce)+N.line(Ce+h/2,te)+N.line(Ce+h/2,ce)+N.line(Ce,ce)+N.line(Ce,de-k/2)],We+=N.move(Ce,ce),E.globals.isXNumeric||(c+=d),{pathTo:Ie,pathFrom:We,x:c,y:de,barXPosition:Ce,color:this.isBoxPlot?re:G?[q]:[Q]}}},{key:"drawHorizontalBoxPaths",value:function(i){var u=i.indexes;i.x;var c=i.y,d=i.yDivision,h=i.barHeight,x=i.zeroW,k=i.strokeWidth,E=this.w,N=new m(this.ctx),L=u.i,W=u.j,G=this.boxOptions.colors.lower;this.isBoxPlot&&(G=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var q=this.invertedYRatio,Q=u.realIndex,re=this.getOHLCValue(Q,W),ie=x,C=x,I=Math.min(re.o,re.c),$=Math.max(re.o,re.c),te=re.m;E.globals.isXNumeric&&(c=(E.globals.seriesX[Q][W]-E.globals.minX)/this.invertedXRatio-h/2);var ce=c+h*this.visibleI;this.series[L][W]===void 0||this.series[L][W]===null?(I=x,$=x):(I=x+I/q,$=x+$/q,ie=x+re.h/q,C=x+re.l/q,te=x+re.m/q);var de=N.move(x,ce),we=N.move(I,ce+h/2);return E.globals.previousPaths.length>0&&(we=this.getPreviousPath(Q,W,!0)),de=[N.move(I,ce)+N.line(I,ce+h/2)+N.line(ie,ce+h/2)+N.line(ie,ce+h/2-h/4)+N.line(ie,ce+h/2+h/4)+N.line(ie,ce+h/2)+N.line(I,ce+h/2)+N.line(I,ce+h)+N.line(te,ce+h)+N.line(te,ce)+N.line(I+k/2,ce),N.move(te,ce)+N.line(te,ce+h)+N.line($,ce+h)+N.line($,ce+h/2)+N.line(C,ce+h/2)+N.line(C,ce+h-h/4)+N.line(C,ce+h/4)+N.line(C,ce+h/2)+N.line($,ce+h/2)+N.line($,ce)+N.line(te,ce)+"z"],we+=N.move(I,ce),E.globals.isXNumeric||(c+=d),{pathTo:de,pathFrom:we,x:$,y:c,barYPosition:ce,color:G}}},{key:"getOHLCValue",value:function(i,u){var c=this.w;return{o:this.isBoxPlot?c.globals.seriesCandleH[i][u]:c.globals.seriesCandleO[i][u],h:this.isBoxPlot?c.globals.seriesCandleO[i][u]:c.globals.seriesCandleH[i][u],m:c.globals.seriesCandleM[i][u],l:this.isBoxPlot?c.globals.seriesCandleC[i][u]:c.globals.seriesCandleL[i][u],c:this.isBoxPlot?c.globals.seriesCandleL[i][u]:c.globals.seriesCandleC[i][u]}}}]),o}(),lo=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"checkColorRange",value:function(){var n=this.w,o=!1,i=n.config.plotOptions[n.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(u,c){u.from<=0&&(o=!0)}),o}},{key:"getShadeColor",value:function(n,o,i,u){var c=this.w,d=1,h=c.config.plotOptions[n].shadeIntensity,x=this.determineColor(n,o,i);c.globals.hasNegs||u?d=c.config.plotOptions[n].reverseNegativeShade?x.percent<0?x.percent/100*(1.25*h):(1-x.percent/100)*(1.25*h):x.percent<=0?1-(1+x.percent/100)*h:(1-x.percent/100)*h:(d=1-x.percent/100,n==="treemap"&&(d=(1-x.percent/100)*(1.25*h)));var k=x.color,E=new p;return c.config.plotOptions[n].enableShades&&(k=this.w.config.theme.mode==="dark"?p.hexToRgba(E.shadeColor(-1*d,x.color),c.config.fill.opacity):p.hexToRgba(E.shadeColor(d,x.color),c.config.fill.opacity)),{color:k,colorProps:x}}},{key:"determineColor",value:function(n,o,i){var u=this.w,c=u.globals.series[o][i],d=u.config.plotOptions[n],h=d.colorScale.inverse?i:o;d.distributed&&u.config.chart.type==="treemap"&&(h=i);var x=u.globals.colors[h],k=null,E=Math.min.apply(Math,R(u.globals.series[o])),N=Math.max.apply(Math,R(u.globals.series[o]));d.distributed||n!=="heatmap"||(E=u.globals.minY,N=u.globals.maxY),d.colorScale.min!==void 0&&(E=d.colorScale.min<u.globals.minY?d.colorScale.min:u.globals.minY,N=d.colorScale.max>u.globals.maxY?d.colorScale.max:u.globals.maxY);var L=Math.abs(N)+Math.abs(E),W=100*c/(L===0?L-1e-6:L);return d.colorScale.ranges.length>0&&d.colorScale.ranges.map(function(G,q){if(c>=G.from&&c<=G.to){x=G.color,k=G.foreColor?G.foreColor:null,E=G.from,N=G.to;var Q=Math.abs(N)+Math.abs(E);W=100*c/(Q===0?Q-1e-6:Q)}}),{color:x,foreColor:k,percent:W}}},{key:"calculateDataLabels",value:function(n){var o=n.text,i=n.x,u=n.y,c=n.i,d=n.j,h=n.colorProps,x=n.fontSize,k=this.w.config.dataLabels,E=new m(this.ctx),N=new Le(this.ctx),L=null;if(k.enabled){L=E.group({class:"apexcharts-data-labels"});var W=k.offsetX,G=k.offsetY,q=i+W,Q=u+parseFloat(k.style.fontSize)/3+G;N.plotDataLabelsText({x:q,y:Q,text:o,i:c,j:d,color:h.foreColor,parent:L,fontSize:x,dataLabelsConfig:k})}return L}},{key:"addListeners",value:function(n){var o=new m(this.ctx);n.node.addEventListener("mouseenter",o.pathMouseEnter.bind(this,n)),n.node.addEventListener("mouseleave",o.pathMouseLeave.bind(this,n)),n.node.addEventListener("mousedown",o.pathMouseDown.bind(this,n))}}]),J}(),br=function(){function J(n,o){l(this,J),this.ctx=n,this.w=n.w,this.xRatio=o.xRatio,this.yRatio=o.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new lo(n),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return b(J,[{key:"draw",value:function(n){var o=this.w,i=new m(this.ctx),u=i.group({class:"apexcharts-heatmap"});u.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")"));var c=o.globals.gridWidth/o.globals.dataPoints,d=o.globals.gridHeight/o.globals.series.length,h=0,x=!1;this.negRange=this.helpers.checkColorRange();var k=n.slice();o.config.yaxis[0].reversed&&(x=!0,k.reverse());for(var E=x?0:k.length-1;x?E<k.length:E>=0;x?E++:E--){var N=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:p.escapeString(o.globals.seriesNames[E]),rel:E+1,"data:realIndex":E});if(this.ctx.series.addCollapsedClassToSeries(N,E),o.config.chart.dropShadow.enabled){var L=o.config.chart.dropShadow;new g(this.ctx).dropShadow(N,L,E)}for(var W=0,G=o.config.plotOptions.heatmap.shadeIntensity,q=0;q<k[E].length;q++){var Q=this.helpers.getShadeColor(o.config.chart.type,E,q,this.negRange),re=Q.color,ie=Q.colorProps;o.config.fill.type==="image"&&(re=new Te(this.ctx).fillPath({seriesNumber:E,dataPointIndex:q,opacity:o.globals.hasNegs?ie.percent<0?1-(1+ie.percent/100):G+ie.percent/100:ie.percent/100,patternID:p.randomId(),width:o.config.fill.image.width?o.config.fill.image.width:c,height:o.config.fill.image.height?o.config.fill.image.height:d}));var C=this.rectRadius,I=i.drawRect(W,h,c,d,C);if(I.attr({cx:W,cy:h}),I.node.classList.add("apexcharts-heatmap-rect"),N.add(I),I.attr({fill:re,i:E,index:E,j:q,val:k[E][q],"stroke-width":this.strokeWidth,stroke:o.config.plotOptions.heatmap.useFillColorAsStroke?re:o.globals.stroke.colors[0],color:re}),this.helpers.addListeners(I),o.config.chart.animations.enabled&&!o.globals.dataChanged){var $=1;o.globals.resized||($=o.config.chart.animations.speed),this.animateHeatMap(I,W,h,c,d,$)}if(o.globals.dataChanged){var te=1;if(this.dynamicAnim.enabled&&o.globals.shouldAnimate){te=this.dynamicAnim.speed;var ce=o.globals.previousPaths[E]&&o.globals.previousPaths[E][q]&&o.globals.previousPaths[E][q].color;ce||(ce="rgba(255, 255, 255, 0)"),this.animateHeatColor(I,p.isColorHex(ce)?ce:p.rgb2hex(ce),p.isColorHex(re)?re:p.rgb2hex(re),te)}}var de=(0,o.config.dataLabels.formatter)(o.globals.series[E][q],{value:o.globals.series[E][q],seriesIndex:E,dataPointIndex:q,w:o}),we=this.helpers.calculateDataLabels({text:de,x:W+c/2,y:h+d/2,i:E,j:q,colorProps:ie,series:k});we!==null&&N.add(we),W+=c}h+=d,u.add(N)}var Ce=o.globals.yAxisScale[0].result.slice();return o.config.yaxis[0].reversed?Ce.unshift(""):Ce.push(""),o.globals.yAxisScale[0].result=Ce,u}},{key:"animateHeatMap",value:function(n,o,i,u,c,d){var h=new v(this.ctx);h.animateRect(n,{x:o+u/2,y:i+c/2,width:0,height:0},{x:o,y:i,width:u,height:c},d,function(){h.animationCompleted(n)})}},{key:"animateHeatColor",value:function(n,o,i,u){n.attr({fill:o}).animate(u).attr({fill:i})}}]),J}(),uo=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"drawYAxisTexts",value:function(n,o,i,u){var c=this.w,d=c.config.yaxis[0],h=c.globals.yLabelFormatters[0];return new m(this.ctx).drawText({x:n+d.labels.offsetX,y:o+d.labels.offsetY,text:h(u,i),textAnchor:"middle",fontSize:d.labels.style.fontSize,fontFamily:d.labels.style.fontFamily,foreColor:Array.isArray(d.labels.style.colors)?d.labels.style.colors[i]:d.labels.style.colors})}}]),J}(),ma=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w;var o=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=o.globals.stroke.colors!==void 0?o.globals.stroke.colors:o.globals.colors,this.defaultSize=Math.min(o.globals.gridWidth,o.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=o.globals.gridWidth/2,o.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(o.config.plotOptions.pie.endAngle-o.config.plotOptions.pie.startAngle),this.initialAngle=o.config.plotOptions.pie.startAngle%this.fullAngle,o.globals.radialSize=this.defaultSize/2.05-o.config.stroke.width-(o.config.chart.sparkline.enabled?0:o.config.chart.dropShadow.blur),this.donutSize=o.globals.radialSize*parseInt(o.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return b(J,[{key:"draw",value:function(n){var o=this,i=this.w,u=new m(this.ctx);if(this.ret=u.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var c=0,d=0;d<n.length;d++)c+=p.negToZero(n[d]);var h=[],x=u.group();c===0&&(c=1e-5),n.forEach(function(ce){o.maxY=Math.max(o.maxY,ce)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),i.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var k=0;k<n.length;k++){var E=this.fullAngle*p.negToZero(n[k])/c;h.push(E),this.chartType==="polarArea"?(h[k]=this.fullAngle/n.length,this.sliceSizes.push(i.globals.radialSize*n[k]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var N,L=0,W=0;W<i.globals.previousPaths.length;W++)L+=p.negToZero(i.globals.previousPaths[W]);for(var G=0;G<i.globals.previousPaths.length;G++)N=this.fullAngle*p.negToZero(i.globals.previousPaths[G])/L,this.prevSectorAngleArr.push(N)}this.donutSize<0&&(this.donutSize=0);var q=i.config.plotOptions.pie.customScale,Q=i.globals.gridWidth/2,re=i.globals.gridHeight/2,ie=Q-i.globals.gridWidth/2*q,C=re-i.globals.gridHeight/2*q;if(this.chartType==="donut"){var I=u.drawCircle(this.donutSize);I.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),x.add(I)}var $=this.drawArcs(h,n);if(this.sliceLabels.forEach(function(ce){$.add(ce)}),x.attr({transform:"translate(".concat(ie,", ").concat(C,") scale(").concat(q,")")}),x.add($),this.ret.add(x),this.donutDataLabels.show){var te=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:ie,translateY:C});this.ret.add(te)}return i.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(n,o){var i=this.w,u=new g(this.ctx),c=new m(this.ctx),d=new Te(this.ctx),h=c.group({class:"apexcharts-slices"}),x=this.initialAngle,k=this.initialAngle,E=this.initialAngle,N=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var L=0;L<n.length;L++){var W=c.group({class:"apexcharts-series apexcharts-pie-series",seriesName:p.escapeString(i.globals.seriesNames[L]),rel:L+1,"data:realIndex":L});h.add(W),k=N,E=(x=E)+n[L],N=k+this.prevSectorAngleArr[L];var G=E<x?this.fullAngle+E-x:E-x,q=d.fillPath({seriesNumber:L,size:this.sliceSizes[L],value:o[L]}),Q=this.getChangedPath(k,N),re=c.drawPath({d:Q,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[L]:this.lineColorArr,strokeWidth:0,fill:q,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(L)});if(re.attr({index:0,j:L}),u.setSelectionFilter(re,0,L),i.config.chart.dropShadow.enabled){var ie=i.config.chart.dropShadow;u.dropShadow(re,ie,L)}this.addListeners(re,this.donutDataLabels),m.setAttrs(re.node,{"data:angle":G,"data:startAngle":x,"data:strokeWidth":this.strokeWidth,"data:value":o[L]});var C={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?C=p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(x+G/2)%this.fullAngle):this.chartType==="donut"&&(C=p.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(x+G/2)%this.fullAngle)),W.add(re);var I=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):((I=G/this.fullAngle*i.config.chart.animations.speed)===0&&(I=1),this.animDur=I+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(re,{size:this.sliceSizes[L],endAngle:E,startAngle:x,prevStartAngle:k,prevEndAngle:N,animateStartingPos:!0,i:L,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(re,{size:this.sliceSizes[L],endAngle:E,startAngle:x,i:L,totalItems:n.length-1,animBeginArr:this.animBeginArr,dur:I}),i.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&re.click(this.pieClicked.bind(this,L)),i.globals.selectedDataPoints[0]!==void 0&&i.globals.selectedDataPoints[0].indexOf(L)>-1&&this.pieClicked(L),i.config.dataLabels.enabled){var $=C.x,te=C.y,ce=100*G/this.fullAngle+"%";if(G!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<n[L]){var de=i.config.dataLabels.formatter;de!==void 0&&(ce=de(i.globals.seriesPercent[L][0],{seriesIndex:L,w:i}));var we=i.globals.dataLabels.style.colors[L],Ce=c.group({class:"apexcharts-datalabels"}),Ie=c.drawText({x:$,y:te,text:ce,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:we});if(Ce.add(Ie),i.config.dataLabels.dropShadow.enabled){var We=i.config.dataLabels.dropShadow;u.dropShadow(Ie,We)}Ie.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&i.globals.resized===!1&&(Ie.node.classList.add("apexcharts-pie-label-delay"),Ie.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(Ce)}}}return h}},{key:"addListeners",value:function(n,o){var i=new m(this.ctx);n.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,n)),n.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,n)),n.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,n.node,o)),n.node.addEventListener("mousedown",i.pathMouseDown.bind(this,n)),this.donutDataLabels.total.showAlways||(n.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,n.node,o)),n.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,n.node,o)))}},{key:"animatePaths",value:function(n,o){var i=this.w,u=o.endAngle<o.startAngle?this.fullAngle+o.endAngle-o.startAngle:o.endAngle-o.startAngle,c=u,d=o.startAngle,h=o.startAngle;o.prevStartAngle!==void 0&&o.prevEndAngle!==void 0&&(d=o.prevEndAngle,c=o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle),o.i===i.config.series.length-1&&(u+h>this.fullAngle?o.endAngle=o.endAngle-(u+h):u+h<this.fullAngle&&(o.endAngle=o.endAngle+(this.fullAngle-(u+h)))),u===this.fullAngle&&(u=this.fullAngle-.01),this.animateArc(n,d,h,u,c,o)}},{key:"animateArc",value:function(n,o,i,u,c,d){var h,x=this,k=this.w,E=new v(this.ctx),N=d.size;(isNaN(o)||isNaN(c))&&(o=i,c=u,d.dur=0);var L=u,W=i,G=o<i?this.fullAngle+o-i:o-i;k.globals.dataChanged&&d.shouldSetPrevPaths&&d.prevEndAngle&&(h=x.getPiePath({me:x,startAngle:d.prevStartAngle,angle:d.prevEndAngle<d.prevStartAngle?this.fullAngle+d.prevEndAngle-d.prevStartAngle:d.prevEndAngle-d.prevStartAngle,size:N}),n.attr({d:h})),d.dur!==0?n.animate(d.dur,k.globals.easing,d.animBeginArr[d.i]).afterAll(function(){x.chartType!=="pie"&&x.chartType!=="donut"&&x.chartType!=="polarArea"||this.animate(k.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":x.strokeWidth}),d.i===k.config.series.length-1&&E.animationCompleted(n)}).during(function(q){L=G+(u-G)*q,d.animateStartingPos&&(L=c+(u-c)*q,W=o-c+(i-(o-c))*q),h=x.getPiePath({me:x,startAngle:W,angle:L,size:N}),n.node.setAttribute("data:pathOrig",h),n.attr({d:h})}):(h=x.getPiePath({me:x,startAngle:W,angle:u,size:N}),d.isTrack||(k.globals.animationEnded=!0),n.node.setAttribute("data:pathOrig",h),n.attr({d:h,"stroke-width":x.strokeWidth}))}},{key:"pieClicked",value:function(n){var o,i=this.w,u=this,c=u.sliceSizes[n]+(i.config.plotOptions.pie.expandOnClick?4:0),d=i.globals.dom.Paper.select(".apexcharts-".concat(u.chartType.toLowerCase(),"-slice-").concat(n)).members[0];if(d.attr("data:pieClicked")!=="true"){var h=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(h,function(N){N.setAttribute("data:pieClicked","false");var L=N.getAttribute("data:pathOrig");L&&N.setAttribute("d",L)}),d.attr("data:pieClicked","true");var x=parseInt(d.attr("data:startAngle"),10),k=parseInt(d.attr("data:angle"),10);o=u.getPiePath({me:u,startAngle:x,angle:k,size:c}),k!==360&&d.plot(o)}else{d.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(d.node,this.donutDataLabels);var E=d.attr("data:pathOrig");d.attr({d:E})}}},{key:"getChangedPath",value:function(n,o){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:n,angle:o-n,size:this.size})),i}},{key:"getPiePath",value:function(n){var o=n.me,i=n.startAngle,u=n.angle,c=n.size,d=i,h=Math.PI*(d-90)/180,x=u+i;Math.ceil(x)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(x=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(x)>this.fullAngle&&(x-=this.fullAngle);var k=Math.PI*(x-90)/180,E=o.centerX+c*Math.cos(h),N=o.centerY+c*Math.sin(h),L=o.centerX+c*Math.cos(k),W=o.centerY+c*Math.sin(k),G=p.polarToCartesian(o.centerX,o.centerY,o.donutSize,x),q=p.polarToCartesian(o.centerX,o.centerY,o.donutSize,d),Q=u>180?1:0,re=["M",E,N,"A",c,c,0,Q,1,L,W];return o.chartType==="donut"?[].concat(re,["L",G.x,G.y,"A",o.donutSize,o.donutSize,0,Q,0,q.x,q.y,"L",E,N,"z"]).join(" "):o.chartType==="pie"||o.chartType==="polarArea"?[].concat(re,["L",o.centerX,o.centerY,"L",E,N]).join(" "):[].concat(re).join(" ")}},{key:"drawPolarElements",value:function(n){var o=this.w,i=new Ge(this.ctx),u=new m(this.ctx),c=new uo(this.ctx),d=u.group(),h=u.group(),x=i.niceScale(0,Math.ceil(this.maxY),o.config.yaxis[0].tickAmount,0,!0),k=x.result.reverse(),E=x.result.length;this.maxY=x.niceMax;for(var N=o.globals.radialSize,L=N/(E-1),W=0;W<E-1;W++){var G=u.drawCircle(N);if(G.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":o.config.plotOptions.polarArea.rings.strokeWidth,stroke:o.config.plotOptions.polarArea.rings.strokeColor}),o.config.yaxis[0].show){var q=c.drawYAxisTexts(this.centerX,this.centerY-N+parseInt(o.config.yaxis[0].labels.style.fontSize,10)/2,W,k[W]);h.add(q)}d.add(G),N-=L}this.drawSpokes(n),n.add(d),n.add(h)}},{key:"renderInnerDataLabels",value:function(n,o){var i=this.w,u=new m(this.ctx),c=u.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(o.translateX?o.translateX:0,", ").concat(o.translateY?o.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),d=n.total.show;c.node.style.opacity=o.opacity;var h,x,k=o.centerX,E=o.centerY;h=n.name.color===void 0?i.globals.colors[0]:n.name.color;var N=n.name.fontSize,L=n.name.fontFamily,W=n.name.fontWeight;x=n.value.color===void 0?i.config.chart.foreColor:n.value.color;var G=n.value.formatter,q="",Q="";if(d?(h=n.total.color,N=n.total.fontSize,L=n.total.fontFamily,W=n.total.fontWeight,Q=n.total.label,q=n.total.formatter(i)):i.globals.series.length===1&&(q=G(i.globals.series[0],i),Q=i.globals.seriesNames[0]),Q&&(Q=n.name.formatter(Q,n.total.show,i)),n.name.show){var re=u.drawText({x:k,y:E+parseFloat(n.name.offsetY),text:Q,textAnchor:"middle",foreColor:h,fontSize:N,fontWeight:W,fontFamily:L});re.node.classList.add("apexcharts-datalabel-label"),c.add(re)}if(n.value.show){var ie=n.name.show?parseFloat(n.value.offsetY)+16:n.value.offsetY,C=u.drawText({x:k,y:E+ie,text:q,textAnchor:"middle",foreColor:x,fontWeight:n.value.fontWeight,fontSize:n.value.fontSize,fontFamily:n.value.fontFamily});C.node.classList.add("apexcharts-datalabel-value"),c.add(C)}return c}},{key:"printInnerLabels",value:function(n,o,i,u){var c,d=this.w;u?c=n.name.color===void 0?d.globals.colors[parseInt(u.parentNode.getAttribute("rel"),10)-1]:n.name.color:d.globals.series.length>1&&n.total.show&&(c=n.total.color);var h=d.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),x=d.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,n.value.formatter)(i,d),u||typeof n.total.formatter!="function"||(i=n.total.formatter(d));var k=o===n.total.label;o=n.name.formatter(o,k,d),h!==null&&(h.textContent=o),x!==null&&(x.textContent=i),h!==null&&(h.style.fill=c)}},{key:"printDataLabelsInner",value:function(n,o){var i=this.w,u=n.getAttribute("data:value"),c=i.globals.seriesNames[parseInt(n.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(o,c,u,n);var d=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");d!==null&&(d.style.opacity=1)}},{key:"drawSpokes",value:function(n){var o=this,i=this.w,u=new m(this.ctx),c=i.config.plotOptions.polarArea.spokes;if(c.strokeWidth!==0){for(var d=[],h=360/i.globals.series.length,x=0;x<i.globals.series.length;x++)d.push(p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+h*x));d.forEach(function(k,E){var N=u.drawLine(k.x,k.y,o.centerX,o.centerY,Array.isArray(c.connectorColors)?c.connectorColors[E]:c.connectorColors);n.add(N)})}}},{key:"revertDataLabelsInner",value:function(n,o,i){var u=this,c=this.w,d=c.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),h=!1,x=c.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),k=function(L){var W=L.makeSliceOut,G=L.printLabel;Array.prototype.forEach.call(x,function(q){q.getAttribute("data:pieClicked")==="true"&&(W&&(h=!0),G&&u.printDataLabelsInner(q,o))})};if(k({makeSliceOut:!0,printLabel:!1}),o.total.show&&c.globals.series.length>1)h&&!o.total.showAlways?k({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(o,o.total.label,o.total.formatter(c));else if(k({makeSliceOut:!1,printLabel:!0}),!h)if(c.globals.selectedDataPoints.length&&c.globals.series.length>1)if(c.globals.selectedDataPoints[0].length>0){var E=c.globals.selectedDataPoints[0],N=c.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(E));this.printDataLabelsInner(N,o)}else d&&c.globals.selectedDataPoints.length&&c.globals.selectedDataPoints[0].length===0&&(d.style.opacity=0);else d&&c.globals.series.length>1&&(d.style.opacity=0)}}]),J}(),ni=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var o=this.w;this.graphics=new m(this.ctx),this.lineColorArr=o.globals.stroke.colors!==void 0?o.globals.stroke.colors:o.globals.colors,this.defaultSize=o.globals.svgHeight<o.globals.svgWidth?o.globals.gridHeight+1.5*o.globals.goldenPadding:o.globals.gridWidth,this.isLog=o.config.yaxis[0].logarithmic,this.coreUtils=new _(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(o.globals.maxY,0):o.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):o.globals.minY,this.polygons=o.config.plotOptions.radar.polygons,this.strokeWidth=o.config.stroke.show?o.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-o.config.chart.dropShadow.blur,o.config.xaxis.labels.show&&(this.size=this.size-o.globals.xAxisLabelsWidth/1.75),o.config.plotOptions.radar.size!==void 0&&(this.size=o.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return b(J,[{key:"draw",value:function(n){var o=this,i=this.w,u=new Te(this.ctx),c=[],d=new Le(this.ctx);n.length&&(this.dataPointsLen=n[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var h=i.globals.gridWidth/2,x=i.globals.gridHeight/2,k=h+i.config.plotOptions.radar.offsetX,E=x+i.config.plotOptions.radar.offsetY,N=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(k||0,", ").concat(E||0,")")}),L=[],W=null,G=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),n.forEach(function(Q,re){var ie=Q.length===i.globals.dataPoints,C=o.graphics.group().attr({class:"apexcharts-series","data:longestSeries":ie,seriesName:p.escapeString(i.globals.seriesNames[re]),rel:re+1,"data:realIndex":re});o.dataRadiusOfPercent[re]=[],o.dataRadius[re]=[],o.angleArr[re]=[],Q.forEach(function(Fe,$e){var Ke=Math.abs(o.maxValue-o.minValue);Fe+=Math.abs(o.minValue),o.isLog&&(Fe=o.coreUtils.getLogVal(Fe,0)),o.dataRadiusOfPercent[re][$e]=Fe/Ke,o.dataRadius[re][$e]=o.dataRadiusOfPercent[re][$e]*o.size,o.angleArr[re][$e]=$e*o.disAngle}),L=o.getDataPointsPos(o.dataRadius[re],o.angleArr[re]);var I=o.createPaths(L,{x:0,y:0});W=o.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),G=o.graphics.group({class:"apexcharts-datalabels","data:realIndex":re}),i.globals.delayedElements.push({el:W.node,index:re});var $={i:re,realIndex:re,animationDelay:re,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[re],strokeLineCap:i.config.stroke.lineCap},te=null;i.globals.previousPaths.length>0&&(te=o.getPreviousPath(re));for(var ce=0;ce<I.linePathsTo.length;ce++){var de=o.graphics.renderPaths(a(a({},$),{},{pathFrom:te===null?I.linePathsFrom[ce]:te,pathTo:I.linePathsTo[ce],strokeWidth:Array.isArray(o.strokeWidth)?o.strokeWidth[re]:o.strokeWidth,fill:"none",drawShadow:!1}));C.add(de);var we=u.fillPath({seriesNumber:re}),Ce=o.graphics.renderPaths(a(a({},$),{},{pathFrom:te===null?I.areaPathsFrom[ce]:te,pathTo:I.areaPathsTo[ce],strokeWidth:0,fill:we,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var Ie=new g(o.ctx),We=i.config.chart.dropShadow;Ie.dropShadow(Ce,Object.assign({},We,{noUserSpaceOnUse:!0}),re)}C.add(Ce)}Q.forEach(function(Fe,$e){var Ke=new Re(o.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:re,dataPointIndex:$e}),st=o.graphics.drawMarker(L[$e].x,L[$e].y,Ke);st.attr("rel",$e),st.attr("j",$e),st.attr("index",re),st.node.setAttribute("default-marker-size",Ke.pSize);var pt=o.graphics.group({class:"apexcharts-series-markers"});pt&&pt.add(st),W.add(pt),C.add(W);var xt=i.config.dataLabels;if(xt.enabled){var Mt=xt.formatter(i.globals.series[re][$e],{seriesIndex:re,dataPointIndex:$e,w:i});d.plotDataLabelsText({x:L[$e].x,y:L[$e].y,text:Mt,textAnchor:"middle",i:re,j:re,parent:G,offsetCorrection:!1,dataLabelsConfig:a({},xt)})}C.add(G)}),c.push(C)}),this.drawPolygons({parent:N}),i.config.xaxis.labels.show){var q=this.drawXAxisTexts();N.add(q)}return c.forEach(function(Q){N.add(Q)}),N.add(this.yaxisLabels),N}},{key:"drawPolygons",value:function(n){for(var o=this,i=this.w,u=n.parent,c=new uo(this.ctx),d=i.globals.yAxisScale[0].result.reverse(),h=d.length,x=[],k=this.size/(h-1),E=0;E<h;E++)x[E]=k*E;x.reverse();var N=[],L=[];x.forEach(function(W,G){var q=p.getPolygonPos(W,o.dataPointsLen),Q="";q.forEach(function(re,ie){if(G===0){var C=o.graphics.drawLine(re.x,re.y,0,0,Array.isArray(o.polygons.connectorColors)?o.polygons.connectorColors[ie]:o.polygons.connectorColors);L.push(C)}ie===0&&o.yaxisLabelsTextsPos.push({x:re.x,y:re.y}),Q+=re.x+","+re.y+" "}),N.push(Q)}),N.forEach(function(W,G){var q=o.polygons.strokeColors,Q=o.polygons.strokeWidth,re=o.graphics.drawPolygon(W,Array.isArray(q)?q[G]:q,Array.isArray(Q)?Q[G]:Q,i.globals.radarPolygons.fill.colors[G]);u.add(re)}),L.forEach(function(W){u.add(W)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(W,G){var q=c.drawYAxisTexts(W.x,W.y,G,d[G]);o.yaxisLabels.add(q)})}},{key:"drawXAxisTexts",value:function(){var n=this,o=this.w,i=o.config.xaxis.labels,u=this.graphics.group({class:"apexcharts-xaxis"}),c=p.getPolygonPos(this.size,this.dataPointsLen);return o.globals.labels.forEach(function(d,h){var x=o.config.xaxis.labels.formatter,k=new Le(n.ctx);if(c[h]){var E=n.getTextPos(c[h],n.size),N=x(d,{seriesIndex:-1,dataPointIndex:h,w:o});k.plotDataLabelsText({x:E.newX,y:E.newY,text:N,textAnchor:E.textAnchor,i:h,j:h,parent:u,color:Array.isArray(i.style.colors)&&i.style.colors[h]?i.style.colors[h]:"#a8a8a8",dataLabelsConfig:a({textAnchor:E.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}}),u}},{key:"createPaths",value:function(n,o){var i=this,u=[],c=[],d=[],h=[];if(n.length){c=[this.graphics.move(o.x,o.y)],h=[this.graphics.move(o.x,o.y)];var x=this.graphics.move(n[0].x,n[0].y),k=this.graphics.move(n[0].x,n[0].y);n.forEach(function(E,N){x+=i.graphics.line(E.x,E.y),k+=i.graphics.line(E.x,E.y),N===n.length-1&&(x+="Z",k+="Z")}),u.push(x),d.push(k)}return{linePathsFrom:c,linePathsTo:u,areaPathsFrom:h,areaPathsTo:d}}},{key:"getTextPos",value:function(n,o){var i="middle",u=n.x,c=n.y;return Math.abs(n.x)>=10?n.x>0?(i="start",u+=10):n.x<0&&(i="end",u-=10):i="middle",Math.abs(n.y)>=o-10&&(n.y<0?c-=10:n.y>0&&(c+=10)),{textAnchor:i,newX:u,newY:c}}},{key:"getPreviousPath",value:function(n){for(var o=this.w,i=null,u=0;u<o.globals.previousPaths.length;u++){var c=o.globals.previousPaths[u];c.paths.length>0&&parseInt(c.realIndex,10)===parseInt(n,10)&&o.globals.previousPaths[u].paths[0]!==void 0&&(i=o.globals.previousPaths[u].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(n,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;n=n||[],o=o||[];for(var u=[],c=0;c<i;c++){var d={};d.x=n[c]*Math.sin(o[c]),d.y=-n[c]*Math.cos(o[c]),u.push(d)}return u}}]),J}(),Gn=function(J){T(o,ma);var n=z(o);function o(i){var u;l(this,o),(u=n.call(this,i)).ctx=i,u.w=i.w,u.animBeginArr=[0],u.animDur=0;var c=u.w;return u.startAngle=c.config.plotOptions.radialBar.startAngle,u.endAngle=c.config.plotOptions.radialBar.endAngle,u.totalAngle=Math.abs(c.config.plotOptions.radialBar.endAngle-c.config.plotOptions.radialBar.startAngle),u.trackStartAngle=c.config.plotOptions.radialBar.track.startAngle,u.trackEndAngle=c.config.plotOptions.radialBar.track.endAngle,u.donutDataLabels=u.w.config.plotOptions.radialBar.dataLabels,u.radialDataLabels=u.donutDataLabels,u.trackStartAngle||(u.trackStartAngle=u.startAngle),u.trackEndAngle||(u.trackEndAngle=u.endAngle),u.endAngle===360&&(u.endAngle=359.99),u.margin=parseInt(c.config.plotOptions.radialBar.track.margin,10),u}return b(o,[{key:"draw",value:function(i){var u=this.w,c=new m(this.ctx),d=c.group({class:"apexcharts-radialbar"});if(u.globals.noData)return d;var h=c.group(),x=this.defaultSize/2,k=u.globals.gridWidth/2,E=this.defaultSize/2.05;u.config.chart.sparkline.enabled||(E=E-u.config.stroke.width-u.config.chart.dropShadow.blur);var N=u.globals.fill.colors;if(u.config.plotOptions.radialBar.track.show){var L=this.drawTracks({size:E,centerX:k,centerY:x,colorArr:N,series:i});h.add(L)}var W=this.drawArcs({size:E,centerX:k,centerY:x,colorArr:N,series:i}),G=360;u.config.plotOptions.radialBar.startAngle<0&&(G=this.totalAngle);var q=(360-G)/360;if(u.globals.radialSize=E-E*q,this.radialDataLabels.value.show){var Q=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);u.globals.radialSize+=Q*q}return h.add(W.g),u.config.plotOptions.radialBar.hollow.position==="front"&&(W.g.add(W.elHollow),W.dataLabels&&W.g.add(W.dataLabels)),d.add(h),d}},{key:"drawTracks",value:function(i){var u=this.w,c=new m(this.ctx),d=c.group({class:"apexcharts-tracks"}),h=new g(this.ctx),x=new Te(this.ctx),k=this.getStrokeWidth(i);i.size=i.size-k/2;for(var E=0;E<i.series.length;E++){var N=c.group({class:"apexcharts-radialbar-track apexcharts-track"});d.add(N),N.attr({rel:E+1}),i.size=i.size-k-this.margin;var L=u.config.plotOptions.radialBar.track,W=x.fillPath({seriesNumber:0,size:i.size,fillColors:Array.isArray(L.background)?L.background[E]:L.background,solid:!0}),G=this.trackStartAngle,q=this.trackEndAngle;Math.abs(q)+Math.abs(G)>=360&&(q=360-Math.abs(this.startAngle)-.1);var Q=c.drawPath({d:"",stroke:W,strokeWidth:k*parseInt(L.strokeWidth,10)/100,fill:"none",strokeOpacity:L.opacity,classes:"apexcharts-radialbar-area"});if(L.dropShadow.enabled){var re=L.dropShadow;h.dropShadow(Q,re)}N.add(Q),Q.attr("id","apexcharts-radialbarTrack-"+E),this.animatePaths(Q,{centerX:i.centerX,centerY:i.centerY,endAngle:q,startAngle:G,size:i.size,i:E,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:u.globals.easing})}return d}},{key:"drawArcs",value:function(i){var u=this.w,c=new m(this.ctx),d=new Te(this.ctx),h=new g(this.ctx),x=c.group(),k=this.getStrokeWidth(i);i.size=i.size-k/2;var E=u.config.plotOptions.radialBar.hollow.background,N=i.size-k*i.series.length-this.margin*i.series.length-k*parseInt(u.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,L=N-u.config.plotOptions.radialBar.hollow.margin;u.config.plotOptions.radialBar.hollow.image!==void 0&&(E=this.drawHollowImage(i,x,N,E));var W=this.drawHollow({size:L,centerX:i.centerX,centerY:i.centerY,fill:E||"transparent"});if(u.config.plotOptions.radialBar.hollow.dropShadow.enabled){var G=u.config.plotOptions.radialBar.hollow.dropShadow;h.dropShadow(W,G)}var q=1;!this.radialDataLabels.total.show&&u.globals.series.length>1&&(q=0);var Q=null;this.radialDataLabels.show&&(Q=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:N,centerX:i.centerX,centerY:i.centerY,opacity:q})),u.config.plotOptions.radialBar.hollow.position==="back"&&(x.add(W),Q&&x.add(Q));var re=!1;u.config.plotOptions.radialBar.inverseOrder&&(re=!0);for(var ie=re?i.series.length-1:0;re?ie>=0:ie<i.series.length;re?ie--:ie++){var C=c.group({class:"apexcharts-series apexcharts-radial-series",seriesName:p.escapeString(u.globals.seriesNames[ie])});x.add(C),C.attr({rel:ie+1,"data:realIndex":ie}),this.ctx.series.addCollapsedClassToSeries(C,ie),i.size=i.size-k-this.margin;var I=d.fillPath({seriesNumber:ie,size:i.size,value:i.series[ie]}),$=this.startAngle,te=void 0,ce=p.negToZero(i.series[ie]>100?100:i.series[ie])/100,de=Math.round(this.totalAngle*ce)+this.startAngle,we=void 0;u.globals.dataChanged&&(te=this.startAngle,we=Math.round(this.totalAngle*p.negToZero(u.globals.previousPaths[ie])/100)+te),Math.abs(de)+Math.abs($)>=360&&(de-=.01),Math.abs(we)+Math.abs(te)>=360&&(we-=.01);var Ce=de-$,Ie=Array.isArray(u.config.stroke.dashArray)?u.config.stroke.dashArray[ie]:u.config.stroke.dashArray,We=c.drawPath({d:"",stroke:I,strokeWidth:k,fill:"none",fillOpacity:u.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+ie,strokeDashArray:Ie});if(m.setAttrs(We.node,{"data:angle":Ce,"data:value":i.series[ie]}),u.config.chart.dropShadow.enabled){var Fe=u.config.chart.dropShadow;h.dropShadow(We,Fe,ie)}h.setSelectionFilter(We,0,ie),this.addListeners(We,this.radialDataLabels),C.add(We),We.attr({index:0,j:ie});var $e=0;!this.initialAnim||u.globals.resized||u.globals.dataChanged||($e=u.config.chart.animations.speed),u.globals.dataChanged&&($e=u.config.chart.animations.dynamicAnimation.speed),this.animDur=$e/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(We,{centerX:i.centerX,centerY:i.centerY,endAngle:de,startAngle:$,prevEndAngle:we,prevStartAngle:te,size:i.size,i:ie,totalItems:2,animBeginArr:this.animBeginArr,dur:$e,shouldSetPrevPaths:!0,easing:u.globals.easing})}return{g:x,elHollow:W,dataLabels:Q}}},{key:"drawHollow",value:function(i){var u=new m(this.ctx).drawCircle(2*i.size);return u.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),u}},{key:"drawHollowImage",value:function(i,u,c,d){var h=this.w,x=new Te(this.ctx),k=p.randomId(),E=h.config.plotOptions.radialBar.hollow.image;if(h.config.plotOptions.radialBar.hollow.imageClipped)x.clippedImgArea({width:c,height:c,image:E,patternID:"pattern".concat(h.globals.cuid).concat(k)}),d="url(#pattern".concat(h.globals.cuid).concat(k,")");else{var N=h.config.plotOptions.radialBar.hollow.imageWidth,L=h.config.plotOptions.radialBar.hollow.imageHeight;if(N===void 0&&L===void 0){var W=h.globals.dom.Paper.image(E).loaded(function(q){this.move(i.centerX-q.width/2+h.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-q.height/2+h.config.plotOptions.radialBar.hollow.imageOffsetY)});u.add(W)}else{var G=h.globals.dom.Paper.image(E).loaded(function(q){this.move(i.centerX-N/2+h.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-L/2+h.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(N,L)});u.add(G)}}return d}},{key:"getStrokeWidth",value:function(i){var u=this.w;return i.size*(100-parseInt(u.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}}]),o}(),ya=function(J){T(o,Tn);var n=z(o);function o(){return l(this,o),n.apply(this,arguments)}return b(o,[{key:"draw",value:function(i,u){var c=this.w,d=new m(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=c.globals.seriesRangeStart,this.seriesRangeEnd=c.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var h=d.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),x=0;x<i.length;x++){var k,E,N,L,W=void 0,G=void 0,q=c.globals.comboCharts?u[x]:x,Q=d.group({class:"apexcharts-series",seriesName:p.escapeString(c.globals.seriesNames[q]),rel:x+1,"data:realIndex":q});this.ctx.series.addCollapsedClassToSeries(Q,q),i[x].length>0&&(this.visibleI=this.visibleI+1);var re=0,ie=0;this.yRatio.length>1&&(this.yaxisIndex=q);var C=this.barHelpers.initialPositions();G=C.y,L=C.zeroW,W=C.x,ie=C.barWidth,re=C.barHeight,k=C.xDivision,E=C.yDivision,N=C.zeroH;for(var I=d.group({class:"apexcharts-datalabels","data:realIndex":q}),$=d.group({class:"apexcharts-rangebar-goals-markers"}),te=0;te<c.globals.dataPoints;te++){var ce,de=this.barHelpers.getStrokeWidth(x,te,q),we=this.seriesRangeStart[x][te],Ce=this.seriesRangeEnd[x][te],Ie=null,We=null,Fe=null,$e={x:W,y:G,strokeWidth:de,elSeries:Q},Ke=this.seriesLen;if(c.config.plotOptions.bar.rangeBarGroupRows&&(Ke=1),c.config.series[x].data[te]===void 0)break;if(this.isHorizontal){Fe=G+re*this.visibleI;var st=(E-re*Ke)/2;if(c.config.series[x].data[te].x){var pt=this.detectOverlappingBars({i:x,j:te,barYPosition:Fe,srty:st,barHeight:re,yDivision:E,initPositions:C});re=pt.barHeight,Fe=pt.barYPosition}ie=(Ie=this.drawRangeBarPaths(a({indexes:{i:x,j:te,realIndex:q},barHeight:re,barYPosition:Fe,zeroW:L,yDivision:E,y1:we,y2:Ce},$e))).barWidth}else{c.globals.isXNumeric&&(W=(c.globals.seriesX[x][te]-c.globals.minX)/this.xRatio-ie/2),We=W+ie*this.visibleI;var xt=(k-ie*Ke)/2;if(c.config.series[x].data[te].x){var Mt=this.detectOverlappingBars({i:x,j:te,barXPosition:We,srtx:xt,barWidth:ie,xDivision:k,initPositions:C});ie=Mt.barWidth,We=Mt.barXPosition}re=(Ie=this.drawRangeColumnPaths(a({indexes:{i:x,j:te,realIndex:q},barWidth:ie,barXPosition:We,zeroH:N,xDivision:k},$e))).barHeight}var _t=this.barHelpers.drawGoalLine({barXPosition:Ie.barXPosition,barYPosition:Fe,goalX:Ie.goalX,goalY:Ie.goalY,barHeight:re,barWidth:ie});_t&&$.add(_t),G=Ie.y,W=Ie.x;var jt=this.barHelpers.getPathFillColor(i,x,te,q),Er=c.globals.stroke.colors[q];this.renderSeries((S(ce={realIndex:q,pathFill:jt,lineFill:Er,j:te,i:x,x:W,y:G,y1:we,y2:Ce,pathFrom:Ie.pathFrom,pathTo:Ie.pathTo,strokeWidth:de,elSeries:Q,series:i,barHeight:re,barWidth:ie,barXPosition:We,barYPosition:Fe},"barWidth",ie),S(ce,"elDataLabelsWrap",I),S(ce,"elGoalsMarkers",$),S(ce,"visibleSeries",this.visibleI),S(ce,"type","rangebar"),ce))}h.add(Q)}return h}},{key:"detectOverlappingBars",value:function(i){var u=i.i,c=i.j,d=i.barYPosition,h=i.barXPosition,x=i.srty,k=i.srtx,E=i.barHeight,N=i.barWidth,L=i.yDivision,W=i.xDivision,G=i.initPositions,q=this.w,Q=[],re=q.config.series[u].data[c].rangeName,ie=q.config.series[u].data[c].x,C=Array.isArray(ie)?ie.join(" "):ie,I=q.globals.labels.map(function(te){return Array.isArray(te)?te.join(" "):te}).indexOf(C),$=q.globals.seriesRange[u].findIndex(function(te){return te.x===C&&te.overlaps.length>0});return this.isHorizontal?(d=q.config.plotOptions.bar.rangeBarGroupRows?x+L*I:x+E*this.visibleI+L*I,$>-1&&!q.config.plotOptions.bar.rangeBarOverlap&&(Q=q.globals.seriesRange[u][$].overlaps).indexOf(re)>-1&&(d=(E=G.barHeight/Q.length)*this.visibleI+L*(100-parseInt(this.barOptions.barHeight,10))/100/2+E*(this.visibleI+Q.indexOf(re))+L*I)):(I>-1&&(h=q.config.plotOptions.bar.rangeBarGroupRows?k+W*I:k+N*this.visibleI+W*I),$>-1&&!q.config.plotOptions.bar.rangeBarOverlap&&(Q=q.globals.seriesRange[u][$].overlaps).indexOf(re)>-1&&(h=(N=G.barWidth/Q.length)*this.visibleI+W*(100-parseInt(this.barOptions.barWidth,10))/100/2+N*(this.visibleI+Q.indexOf(re))+W*I)),{barYPosition:d,barXPosition:h,barHeight:E,barWidth:N}}},{key:"drawRangeColumnPaths",value:function(i){var u=i.indexes,c=i.x,d=i.xDivision,h=i.barWidth,x=i.barXPosition,k=i.zeroH,E=this.w,N=u.i,L=u.j,W=this.yRatio[this.yaxisIndex],G=u.realIndex,q=this.getRangeValue(G,L),Q=Math.min(q.start,q.end),re=Math.max(q.start,q.end);this.series[N][L]===void 0||this.series[N][L]===null?Q=k:(Q=k-Q/W,re=k-re/W);var ie=Math.abs(re-Q),C=this.barHelpers.getColumnPaths({barXPosition:x,barWidth:h,y1:Q,y2:re,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:u.realIndex,i:G,j:L,w:E});if(E.globals.isXNumeric){var I=this.getBarXForNumericXAxis({x:c,j:L,realIndex:G,barWidth:h});c=I.x,x=I.barXPosition}else c+=d;return{pathTo:C.pathTo,pathFrom:C.pathFrom,barHeight:ie,x:c,y:re,goalY:this.barHelpers.getGoalValues("y",null,k,N,L),barXPosition:x}}},{key:"drawRangeBarPaths",value:function(i){var u=i.indexes,c=i.y,d=i.y1,h=i.y2,x=i.yDivision,k=i.barHeight,E=i.barYPosition,N=i.zeroW,L=this.w,W=N+d/this.invertedYRatio,G=N+h/this.invertedYRatio,q=Math.abs(G-W),Q=this.barHelpers.getBarpaths({barYPosition:E,barHeight:k,x1:W,x2:G,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:u.realIndex,realIndex:u.realIndex,j:u.j,w:L});return L.globals.isXNumeric||(c+=x),{pathTo:Q.pathTo,pathFrom:Q.pathFrom,barWidth:q,x:G,goalX:this.barHelpers.getGoalValues("x",N,null,u.realIndex,u.j),y:c}}},{key:"getRangeValue",value:function(i,u){var c=this.w;return{start:c.globals.seriesRangeStart[i][u],end:c.globals.seriesRangeEnd[i][u]}}}]),o}(),Zr=function(){function J(n){l(this,J),this.w=n.w,this.lineCtx=n}return b(J,[{key:"sameValueSeriesFix",value:function(n,o){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[n]==="gradient")&&new _(this.lineCtx.ctx,i).seriesHaveSameValues(n)){var u=o[n].slice();u[u.length-1]=u[u.length-1]+1e-6,o[n]=u}return o}},{key:"calculatePoints",value:function(n){var o=n.series,i=n.realIndex,u=n.x,c=n.y,d=n.i,h=n.j,x=n.prevY,k=this.w,E=[],N=[];if(h===0){var L=this.lineCtx.categoryAxisCorrection+k.config.markers.offsetX;k.globals.isXNumeric&&(L=(k.globals.seriesX[i][0]-k.globals.minX)/this.lineCtx.xRatio+k.config.markers.offsetX),E.push(L),N.push(p.isNumber(o[d][0])?x+k.config.markers.offsetY:null),E.push(u+k.config.markers.offsetX),N.push(p.isNumber(o[d][h+1])?c+k.config.markers.offsetY:null)}else E.push(u+k.config.markers.offsetX),N.push(p.isNumber(o[d][h+1])?c+k.config.markers.offsetY:null);return{x:E,y:N}}},{key:"checkPreviousPaths",value:function(n){for(var o=n.pathFromLine,i=n.pathFromArea,u=n.realIndex,c=this.w,d=0;d<c.globals.previousPaths.length;d++){var h=c.globals.previousPaths[d];(h.type==="line"||h.type==="area")&&h.paths.length>0&&parseInt(h.realIndex,10)===parseInt(u,10)&&(h.type==="line"?(this.lineCtx.appendPathFrom=!1,o=c.globals.previousPaths[d].paths[0].d):h.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=c.globals.previousPaths[d].paths[0].d,c.config.stroke.show&&c.globals.previousPaths[d].paths[1]&&(o=c.globals.previousPaths[d].paths[1].d)))}return{pathFromLine:o,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(n){var o,i=n.i,u=n.series,c=n.prevY,d=n.lineYPosition,h=this.w;if(((o=u[i])===null||o===void 0?void 0:o[0])!==void 0)c=(d=h.config.chart.stacked&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-u[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?u[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(h.config.chart.stacked&&i>0&&u[i][0]===void 0){for(var x=i-1;x>=0;x--)if(u[x][0]!==null&&u[x][0]!==void 0){c=d=this.lineCtx.prevSeriesY[x][0];break}}return{prevY:c,lineYPosition:d}}}]),J}(),Mo=function(J){for(var n,o,i,u,c=function(E){for(var N=[],L=E[0],W=E[1],G=N[0]=$n(L,W),q=1,Q=E.length-1;q<Q;q++)L=W,W=E[q+1],N[q]=.5*(G+(G=$n(L,W)));return N[q]=G,N}(J),d=J.length-1,h=[],x=0;x<d;x++)i=$n(J[x],J[x+1]),Math.abs(i)<1e-6?c[x]=c[x+1]=0:(u=(n=c[x]/i)*n+(o=c[x+1]/i)*o)>9&&(u=3*i/Math.sqrt(u),c[x]=u*n,c[x+1]=u*o);for(var k=0;k<=d;k++)u=(J[Math.min(d,k+1)][0]-J[Math.max(0,k-1)][0])/(6*(1+c[k]*c[k])),h.push([u||0,c[k]*u||0]);return h},Un=function(J){for(var n="",o=0;o<J.length;o++){var i=J[o],u=J[o-1],c=i.length,d=u==null?void 0:u.length;o>1&&Math.abs(i[c-2]-u[d-2])<30?(n+="Q".concat(i[0],", ").concat(i[1]),n+=", ".concat(i[2],", ").concat(i[3])):c>4?(n+="C".concat(i[0],", ").concat(i[1]),n+=", ".concat(i[2],", ").concat(i[3]),n+=", ".concat(i[4],", ").concat(i[5])):c>2&&(n+="S".concat(i[0],", ").concat(i[1]),n+=", ".concat(i[2],", ").concat(i[3]))}return n},xa=function(J){var n=Mo(J),o=J[1],i=J[0],u=[],c=n[1],d=n[0];u.push(i,[i[0]+d[0],i[1]+d[1],o[0]-c[0],o[1]-c[1],o[0],o[1]]);for(var h=2,x=n.length;h<x;h++){var k=J[h],E=n[h];u.push([k[0]-E[0],k[1]-E[1],k[0],k[1]])}return u};function $n(J,n){return(n[1]-J[1])/(n[0]-J[0])}var Vr=function(){function J(n,o,i){l(this,J),this.ctx=n,this.w=n.w,this.xyRatios=o,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||i,this.scatter=new De(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Zr(this),this.markers=new Re(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return b(J,[{key:"draw",value:function(n,o,i,u){var c,d=this.w,h=new m(this.ctx),x=d.globals.comboCharts?o:d.config.chart.type,k=h.group({class:"apexcharts-".concat(x,"-series apexcharts-plot-series")}),E=new _(this.ctx,d);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,n=E.getLogSeries(n),this.yRatio=E.getLogYRatios(this.yRatio);for(var N=[],L=0;L<n.length;L++){n=this.lineHelpers.sameValueSeriesFix(L,n);var W=d.globals.comboCharts?i[L]:L;this._initSerieVariables(n,L,W);var G=[],q=[],Q=[],re=d.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,W),d.globals.isXNumeric&&d.globals.seriesX.length>0&&(re=(d.globals.seriesX[W][0]-d.globals.minX)/this.xRatio),Q.push(re);var ie=re,C=this.zeroY,I=this.zeroY;C=this.lineHelpers.determineFirstPrevY({i:L,series:n,prevY:C,lineYPosition:0}).prevY,d.config.stroke.curve==="smooth"&&n[L][0]===null?G.push(null):G.push(C),x==="rangeArea"&&(I=this.lineHelpers.determineFirstPrevY({i:L,series:u,prevY:I,lineYPosition:0}).prevY,q.push(I));var $={type:x,series:n,realIndex:W,i:L,x:re,y:1,pathsFrom:this._calculatePathsFrom({type:x,series:n,i:L,realIndex:W,prevX:ie,prevY:C,prevY2:I}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:Q,yArrj:G,y2Arrj:q,seriesRangeEnd:u},te=this._iterateOverDataPoints(a(a({},$),{},{iterations:x==="rangeArea"?n[L].length-1:void 0,isRangeStart:!0}));if(x==="rangeArea"){var ce=this._calculatePathsFrom({series:u,i:L,realIndex:W,prevX:ie,prevY:I}),de=this._iterateOverDataPoints(a(a({},$),{},{series:u,pathsFrom:ce,iterations:u[L].length-1,isRangeStart:!1}));te.linePaths[0]=de.linePath+te.linePath,te.pathFromLine=de.pathFromLine+te.pathFromLine}this._handlePaths({type:x,realIndex:W,i:L,paths:te}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),N.push(this.elSeries)}if(((c=d.config.series[0])===null||c===void 0?void 0:c.zIndex)!==void 0&&N.sort(function(Ie,We){return Number(Ie.node.getAttribute("zIndex"))-Number(We.node.getAttribute("zIndex"))}),d.config.chart.stacked)for(var we=N.length;we>0;we--)k.add(N[we-1]);else for(var Ce=0;Ce<N.length;Ce++)k.add(N[Ce]);return k}},{key:"_initSerieVariables",value:function(n,o,i){var u=this.w,c=new m(this.ctx);this.xDivision=u.globals.gridWidth/(u.globals.dataPoints-(u.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(u.config.stroke.width)?u.config.stroke.width[i]:u.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=u.config.yaxis[this.yaxisIndex]&&u.config.yaxis[this.yaxisIndex].reversed,this.zeroY=u.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?u.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>u.globals.gridHeight||u.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=u.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=c.group({class:"apexcharts-series",zIndex:u.config.series[i].zIndex!==void 0?u.config.series[i].zIndex:i,seriesName:p.escapeString(u.globals.seriesNames[i])}),this.elPointsMain=c.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=c.group({class:"apexcharts-datalabels","data:realIndex":i});var d=n[o].length===u.globals.dataPoints;this.elSeries.attr({"data:longestSeries":d,rel:o+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(n){var o,i,u,c,d=n.type,h=n.series,x=n.i,k=n.realIndex,E=n.prevX,N=n.prevY,L=n.prevY2,W=this.w,G=new m(this.ctx);if(h[x][0]===null){for(var q=0;q<h[x].length;q++)if(h[x][q]!==null){E=this.xDivision*q,N=this.zeroY-h[x][q]/this.yRatio[this.yaxisIndex],o=G.move(E,N),i=G.move(E,this.areaBottomY);break}}else o=G.move(E,N),d==="rangeArea"&&(o=G.move(E,L)+G.line(E,N)),i=G.move(E,this.areaBottomY)+G.line(E,N);if(u=G.move(-1,this.zeroY)+G.line(-1,this.zeroY),c=G.move(-1,this.zeroY)+G.line(-1,this.zeroY),W.globals.previousPaths.length>0){var Q=this.lineHelpers.checkPreviousPaths({pathFromLine:u,pathFromArea:c,realIndex:k});u=Q.pathFromLine,c=Q.pathFromArea}return{prevX:E,prevY:N,linePath:o,areaPath:i,pathFromLine:u,pathFromArea:c}}},{key:"_handlePaths",value:function(n){var o=n.type,i=n.realIndex,u=n.i,c=n.paths,d=this.w,h=new m(this.ctx),x=new Te(this.ctx);this.prevSeriesY.push(c.yArrj),d.globals.seriesXvalues[i]=c.xArrj,d.globals.seriesYvalues[i]=c.yArrj;var k=d.config.forecastDataPoints;if(k.count>0&&o!=="rangeArea"){var E=d.globals.seriesXvalues[i][d.globals.seriesXvalues[i].length-k.count-1],N=h.drawRect(E,0,d.globals.gridWidth,d.globals.gridHeight,0);d.globals.dom.elForecastMask.appendChild(N.node);var L=h.drawRect(0,0,E,d.globals.gridHeight,0);d.globals.dom.elNonForecastMask.appendChild(L.node)}this.pointsChart||d.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var W={i:u,realIndex:i,animationDelay:u,initialSpeed:d.config.chart.animations.speed,dataChangeSpeed:d.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(o)};if(o==="area")for(var G=x.fillPath({seriesNumber:i}),q=0;q<c.areaPaths.length;q++){var Q=h.renderPaths(a(a({},W),{},{pathFrom:c.pathFromArea,pathTo:c.areaPaths[q],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:G}));this.elSeries.add(Q)}if(d.config.stroke.show&&!this.pointsChart){var re=null;if(o==="line")re=x.fillPath({seriesNumber:i,i:u});else if(d.config.stroke.fill.type==="solid")re=d.globals.stroke.colors[i];else{var ie=d.config.fill;d.config.fill=d.config.stroke.fill,re=x.fillPath({seriesNumber:i,i:u}),d.config.fill=ie}for(var C=0;C<c.linePaths.length;C++){var I=re;o==="rangeArea"&&(I=x.fillPath({seriesNumber:i}));var $=a(a({},W),{},{pathFrom:c.pathFromLine,pathTo:c.linePaths[C],stroke:re,strokeWidth:this.strokeWidth,strokeLineCap:d.config.stroke.lineCap,fill:o==="rangeArea"?I:"none"}),te=h.renderPaths($);if(this.elSeries.add(te),te.attr("fill-rule","evenodd"),k.count>0&&o!=="rangeArea"){var ce=h.renderPaths($);ce.node.setAttribute("stroke-dasharray",k.dashArray),k.strokeWidth&&ce.node.setAttribute("stroke-width",k.strokeWidth),this.elSeries.add(ce),ce.attr("clip-path","url(#forecastMask".concat(d.globals.cuid,")")),te.attr("clip-path","url(#nonForecastMask".concat(d.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(n){var o=this,i=n.type,u=n.series,c=n.iterations,d=n.realIndex,h=n.i,x=n.x,k=n.y,E=n.pathsFrom,N=n.linePaths,L=n.areaPaths,W=n.seriesIndex,G=n.lineYPosition,q=n.xArrj,Q=n.yArrj,re=n.y2Arrj,ie=n.isRangeStart,C=n.seriesRangeEnd,I=this.w,$=new m(this.ctx),te=this.yRatio,ce=E.prevY,de=E.linePath,we=E.areaPath,Ce=E.pathFromLine,Ie=E.pathFromArea,We=p.isNumber(I.globals.minYArr[d])?I.globals.minYArr[d]:I.globals.minY;c||(c=I.globals.dataPoints>1?I.globals.dataPoints-1:I.globals.dataPoints);for(var Fe=function(_t,jt){return jt-_t/te[o.yaxisIndex]+2*(o.isReversed?_t/te[o.yaxisIndex]:0)},$e=k,Ke=0;Ke<c;Ke++){var st=u[h][Ke+1]===void 0||u[h][Ke+1]===null;if(I.globals.isXNumeric){var pt=I.globals.seriesX[d][Ke+1];I.globals.seriesX[d][Ke+1]===void 0&&(pt=I.globals.seriesX[d][c-1]),x=(pt-I.globals.minX)/this.xRatio}else x+=this.xDivision;I.config.chart.stacked?h>0&&I.globals.collapsedSeries.length<I.config.series.length-1?G=this.prevSeriesY[function(_t){for(var jt=_t,Er=0;Er<I.globals.series.length;Er++)if(I.globals.collapsedSeriesIndices.indexOf(_t)>-1){jt--;break}return jt>=0?jt:0}(h-1)][Ke+1]:G=this.zeroY:G=this.zeroY,st?k=Fe(We,G):(k=Fe(u[h][Ke+1],G),i==="rangeArea"&&($e=Fe(C[h][Ke+1],G))),q.push(x),st&&I.config.stroke.curve==="smooth"?Q.push(null):Q.push(k),re.push($e);var xt=this.lineHelpers.calculatePoints({series:u,x,y:k,realIndex:d,i:h,j:Ke,prevY:ce}),Mt=this._createPaths({type:i,series:u,i:h,realIndex:d,j:Ke,x,y:k,y2:$e,xArrj:q,yArrj:Q,y2Arrj:re,linePath:de,areaPath:we,linePaths:N,areaPaths:L,seriesIndex:W,isRangeStart:ie});L=Mt.areaPaths,N=Mt.linePaths,we=Mt.areaPath,de=Mt.linePath,!this.appendPathFrom||I.config.stroke.curve==="smooth"&&i==="rangeArea"||(Ce+=$.line(x,this.zeroY),Ie+=$.line(x,this.zeroY)),this.handleNullDataPoints(u,xt,h,Ke,d),this._handleMarkersAndLabels({type:i,pointsPos:xt,i:h,j:Ke,realIndex:d,isRangeStart:ie})}return{yArrj:Q,xArrj:q,pathFromArea:Ie,areaPaths:L,pathFromLine:Ce,linePaths:N,linePath:de,areaPath:we}}},{key:"_handleMarkersAndLabels",value:function(n){var o=n.type,i=n.pointsPos,u=n.isRangeStart,c=n.i,d=n.j,h=n.realIndex,x=this.w,k=new Le(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,d,{realIndex:h,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{x.globals.series[c].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var E=this.markers.plotChartMarkers(i,h,d+1);E!==null&&this.elPointsMain.add(E)}var N=k.drawDataLabel({type:o,isRangeStart:u,pos:i,i:h,j:d+1});N!==null&&this.elDataLabelsWrap.add(N)}},{key:"_createPaths",value:function(n){var o=n.type,i=n.series,u=n.i,c=n.realIndex,d=n.j,h=n.x,x=n.y,k=n.xArrj,E=n.yArrj,N=n.y2,L=n.y2Arrj,W=n.linePath,G=n.areaPath,q=n.linePaths,Q=n.areaPaths,re=n.seriesIndex,ie=n.isRangeStart,C=this.w,I=new m(this.ctx),$=C.config.stroke.curve,te=this.areaBottomY;if(Array.isArray(C.config.stroke.curve)&&($=Array.isArray(re)?C.config.stroke.curve[re[u]]:C.config.stroke.curve[u]),o==="rangeArea"&&(C.globals.hasNullValues||C.config.forecastDataPoints.count>0)&&$==="smooth"&&($="straight"),$==="smooth"){var ce=o==="rangeArea"?k.length===C.globals.dataPoints:d===i[u].length-2,de=k.map(function(Ke,st){return[k[st],E[st]]}).filter(function(Ke){return Ke[1]!==null});if(ce&&de.length>1){var we=xa(de);if(W+=Un(we),i[u][0]===null?G=W:G+=Un(we),o==="rangeArea"&&ie){W+=I.line(k[k.length-1],L[L.length-1]);var Ce=k.slice().reverse(),Ie=L.slice().reverse(),We=Ce.map(function(Ke,st){return[Ce[st],Ie[st]]}),Fe=xa(We);G=W+=Un(Fe)}else G+=I.line(de[de.length-1][0],te)+I.line(de[0][0],te)+I.move(de[0][0],de[0][1])+"z";q.push(W),Q.push(G)}}else{if(i[u][d+1]===null){W+=I.move(h,x);var $e=C.globals.isXNumeric?(C.globals.seriesX[c][d]-C.globals.minX)/this.xRatio:h-this.xDivision;G=G+I.line($e,te)+I.move(h,x)+"z"}i[u][d]===null&&(W+=I.move(h,x),G+=I.move(h,te)),$==="stepline"?(W=W+I.line(h,null,"H")+I.line(null,x,"V"),G=G+I.line(h,null,"H")+I.line(null,x,"V")):$==="straight"&&(W+=I.line(h,x),G+=I.line(h,x)),d===i[u].length-2&&(G=G+I.line(h,te)+I.move(h,x)+"z",o==="rangeArea"&&ie?W=W+I.line(h,N)+I.move(h,N)+"z":(q.push(W),Q.push(G)))}return{linePaths:q,areaPaths:Q,linePath:W,areaPath:G}}},{key:"handleNullDataPoints",value:function(n,o,i,u,c){var d=this.w;if(n[i][u]===null&&d.config.markers.showNullDataPoints||n[i].length===1){var h=this.markers.plotChartMarkers(o,c,u+1,this.strokeWidth-d.config.markers.strokeWidth/2,!0);h!==null&&this.elPointsMain.add(h)}}}]),J}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function J(h,x,k,E){this.xoffset=h,this.yoffset=x,this.height=E,this.width=k,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(N){var L,W=[],G=this.xoffset,q=this.yoffset,Q=c(N)/this.height,re=c(N)/this.width;if(this.width>=this.height)for(L=0;L<N.length;L++)W.push([G,q,G+Q,q+N[L]/Q]),q+=N[L]/Q;else for(L=0;L<N.length;L++)W.push([G,q,G+N[L]/re,q+re]),G+=N[L]/re;return W},this.cutArea=function(N){var L;if(this.width>=this.height){var W=N/this.height,G=this.width-W;L=new J(this.xoffset+W,this.yoffset,G,this.height)}else{var q=N/this.width,Q=this.height-q;L=new J(this.xoffset,this.yoffset+q,this.width,Q)}return L}}function n(h,x,k,E,N){E=E===void 0?0:E,N=N===void 0?0:N;var L=o(function(W,G){var q,Q=[],re=G/c(W);for(q=0;q<W.length;q++)Q[q]=W[q]*re;return Q}(h,x*k),[],new J(E,N,x,k),[]);return function(W){var G,q,Q=[];for(G=0;G<W.length;G++)for(q=0;q<W[G].length;q++)Q.push(W[G][q]);return Q}(L)}function o(h,x,k,E){var N,L,W;if(h.length!==0)return N=k.shortestEdge(),function(G,q,Q){var re;if(G.length===0)return!0;(re=G.slice()).push(q);var ie=i(G,Q),C=i(re,Q);return ie>=C}(x,L=h[0],N)?(x.push(L),o(h.slice(1),x,k,E)):(W=k.cutArea(c(x),E),E.push(k.getCoordinates(x)),o(h,[],W,E)),E;E.push(k.getCoordinates(x))}function i(h,x){var k=Math.min.apply(Math,h),E=Math.max.apply(Math,h),N=c(h);return Math.max(Math.pow(x,2)*E/Math.pow(N,2),Math.pow(N,2)/(Math.pow(x,2)*k))}function u(h){return h&&h.constructor===Array}function c(h){var x,k=0;for(x=0;x<h.length;x++)k+=h[x];return k}function d(h){var x,k=0;if(u(h[0]))for(x=0;x<h.length;x++)k+=d(h[x]);else k=c(h);return k}return function h(x,k,E,N,L){N=N===void 0?0:N,L=L===void 0?0:L;var W,G,q=[],Q=[];if(u(x[0])){for(G=0;G<x.length;G++)q[G]=d(x[G]);for(W=n(q,k,E,N,L),G=0;G<x.length;G++)Q.push(h(x[G],W[G][2]-W[G][0],W[G][3]-W[G][1],W[G][0],W[G][1]))}else Q=n(x,k,E,N,L);return Q}}();var Pn,qn,bs=function(){function J(n,o){l(this,J),this.ctx=n,this.w=n.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new lo(n),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return b(J,[{key:"draw",value:function(n){var o=this,i=this.w,u=new m(this.ctx),c=new Te(this.ctx),d=u.group({class:"apexcharts-treemap"});if(i.globals.noData)return d;var h=[];return n.forEach(function(x){var k=x.map(function(E){return Math.abs(E)});h.push(k)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(x,k){x.data.forEach(function(E){Array.isArray(o.labels[k])||(o.labels[k]=[]),o.labels[k].push(E.x)})}),window.TreemapSquared.generate(h,i.globals.gridWidth,i.globals.gridHeight).forEach(function(x,k){var E=u.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:p.escapeString(i.globals.seriesNames[k]),rel:k+1,"data:realIndex":k});if(i.config.chart.dropShadow.enabled){var N=i.config.chart.dropShadow;new g(o.ctx).dropShadow(d,N,k)}var L=u.group({class:"apexcharts-data-labels"});x.forEach(function(W,G){var q=W[0],Q=W[1],re=W[2],ie=W[3],C=u.drawRect(q,Q,re-q,ie-Q,0,"#fff",1,o.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?$:i.globals.stroke.colors[k]);C.attr({cx:q,cy:Q,index:k,i:k,j:G,width:re-q,height:ie-Q});var I=o.helpers.getShadeColor(i.config.chart.type,k,G,o.negRange),$=I.color;i.config.series[k].data[G]!==void 0&&i.config.series[k].data[G].fillColor&&($=i.config.series[k].data[G].fillColor);var te=c.fillPath({color:$,seriesNumber:k,dataPointIndex:G});C.node.classList.add("apexcharts-treemap-rect"),C.attr({fill:te}),o.helpers.addListeners(C);var ce={x:q+(re-q)/2,y:Q+(ie-Q)/2,width:0,height:0},de={x:q,y:Q,width:re-q,height:ie-Q};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var we=1;i.globals.resized||(we=i.config.chart.animations.speed),o.animateTreemap(C,ce,de,we)}if(i.globals.dataChanged){var Ce=1;o.dynamicAnim.enabled&&i.globals.shouldAnimate&&(Ce=o.dynamicAnim.speed,i.globals.previousPaths[k]&&i.globals.previousPaths[k][G]&&i.globals.previousPaths[k][G].rect&&(ce=i.globals.previousPaths[k][G].rect),o.animateTreemap(C,ce,de,Ce))}var Ie=o.getFontSize(W),We=i.config.dataLabels.formatter(o.labels[k][G],{value:i.globals.series[k][G],seriesIndex:k,dataPointIndex:G,w:i});i.config.plotOptions.treemap.dataLabels.format==="truncate"&&(Ie=parseInt(i.config.dataLabels.style.fontSize,10),We=o.truncateLabels(We,Ie,q,Q,re,ie));var Fe=o.helpers.calculateDataLabels({text:We,x:(q+re)/2,y:(Q+ie)/2+o.strokeWidth/2+Ie/3,i:k,j:G,colorProps:I,fontSize:Ie,series:n});i.config.dataLabels.enabled&&Fe&&o.rotateToFitLabel(Fe,Ie,We,q,Q,re,ie),E.add(C),Fe!==null&&E.add(Fe)}),E.add(L),d.add(E)}),d}},{key:"getFontSize",value:function(n){var o=this.w,i,u,c,d,h=function x(k){var E,N=0;if(Array.isArray(k[0]))for(E=0;E<k.length;E++)N+=x(k[E]);else for(E=0;E<k.length;E++)N+=k[E].length;return N}(this.labels)/function x(k){var E,N=0;if(Array.isArray(k[0]))for(E=0;E<k.length;E++)N+=x(k[E]);else for(E=0;E<k.length;E++)N+=1;return N}(this.labels);return i=n[2]-n[0],u=n[3]-n[1],c=i*u,d=Math.pow(c,.5),Math.min(d/h,parseInt(o.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(n,o,i,u,c,d,h){var x=new m(this.ctx),k=x.getTextRects(i,o);if(k.width+this.w.config.stroke.width+5>d-u&&k.width<=h-c){var E=x.rotateAroundCenter(n.node);n.node.setAttribute("transform","rotate(-90 ".concat(E.x," ").concat(E.y,") translate(").concat(k.height/3,")"))}}},{key:"truncateLabels",value:function(n,o,i,u,c,d){var h=new m(this.ctx),x=h.getTextRects(n,o).width+this.w.config.stroke.width+5>c-i&&d-u>c-i?d-u:c-i,k=h.getTextBasedOnMaxWidth({text:n,maxWidth:x,fontSize:o});return n.length!==k.length&&x/o<5?"":k}},{key:"animateTreemap",value:function(n,o,i,u){var c=new v(this.ctx);c.animateRect(n,{x:o.x,y:o.y,width:o.width,height:o.height},{x:i.x,y:i.y,width:i.width,height:i.height},u,function(){c.animationCompleted(n)})}}]),J}(),wa=86400,Ca=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return b(J,[{key:"calculateTimeScaleTicks",value:function(n,o){var i=this,u=this.w;if(u.globals.allSeriesCollapsed)return u.globals.labels=[],u.globals.timescaleLabels=[],[];var c=new oe(this.ctx),d=(o-n)/864e5;this.determineInterval(d),u.globals.disableZoomIn=!1,u.globals.disableZoomOut=!1,d<.00011574074074074075?u.globals.disableZoomIn=!0:d>5e4&&(u.globals.disableZoomOut=!0);var h=c.getTimeUnitsfromTimestamp(n,o,this.utc),x=u.globals.gridWidth/d,k=x/24,E=k/60,N=E/60,L=Math.floor(24*d),W=Math.floor(1440*d),G=Math.floor(d*wa),q=Math.floor(d),Q=Math.floor(d/30),re=Math.floor(d/365),ie={minMillisecond:h.minMillisecond,minSecond:h.minSecond,minMinute:h.minMinute,minHour:h.minHour,minDate:h.minDate,minMonth:h.minMonth,minYear:h.minYear},C={firstVal:ie,currentMillisecond:ie.minMillisecond,currentSecond:ie.minSecond,currentMinute:ie.minMinute,currentHour:ie.minHour,currentMonthDate:ie.minDate,currentDate:ie.minDate,currentMonth:ie.minMonth,currentYear:ie.minYear,daysWidthOnXAxis:x,hoursWidthOnXAxis:k,minutesWidthOnXAxis:E,secondsWidthOnXAxis:N,numberOfSeconds:G,numberOfMinutes:W,numberOfHours:L,numberOfDays:q,numberOfMonths:Q,numberOfYears:re};switch(this.tickInterval){case"years":this.generateYearScale(C);break;case"months":case"half_year":this.generateMonthScale(C);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(C);break;case"hours":this.generateHourScale(C);break;case"minutes_fives":case"minutes":this.generateMinuteScale(C);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(C)}var I=this.timeScaleArray.map(function($){var te={position:$.position,unit:$.unit,year:$.year,day:$.day?$.day:1,hour:$.hour?$.hour:0,month:$.month+1};return $.unit==="month"?a(a({},te),{},{day:1,value:$.value+1}):$.unit==="day"||$.unit==="hour"?a(a({},te),{},{value:$.value}):$.unit==="minute"?a(a({},te),{},{value:$.value,minute:$.value}):$.unit==="second"?a(a({},te),{},{value:$.value,minute:$.minute,second:$.second}):$});return I.filter(function($){var te=1,ce=Math.ceil(u.globals.gridWidth/120),de=$.value;u.config.xaxis.tickAmount!==void 0&&(ce=u.config.xaxis.tickAmount),I.length>ce&&(te=Math.floor(I.length/ce));var we=!1,Ce=!1;switch(i.tickInterval){case"years":$.unit==="year"&&(we=!0);break;case"half_year":te=7,$.unit==="year"&&(we=!0);break;case"months":te=1,$.unit==="year"&&(we=!0);break;case"months_fortnight":te=15,$.unit!=="year"&&$.unit!=="month"||(we=!0),de===30&&(Ce=!0);break;case"months_days":te=10,$.unit==="month"&&(we=!0),de===30&&(Ce=!0);break;case"week_days":te=8,$.unit==="month"&&(we=!0);break;case"days":te=1,$.unit==="month"&&(we=!0);break;case"hours":$.unit==="day"&&(we=!0);break;case"minutes_fives":case"seconds_fives":de%5!=0&&(Ce=!0);break;case"seconds_tens":de%10!=0&&(Ce=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!Ce)return!0}else if((de%te==0||we)&&!Ce)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(n,o){var i=this.w,u=this.formatDates(n),c=this.removeOverlappingTS(u);i.globals.timescaleLabels=c.slice(),new Jt(this.ctx).plotCoords()}},{key:"determineInterval",value:function(n){var o=24*n,i=60*o;switch(!0){case n/365>5:this.tickInterval="years";break;case n>800:this.tickInterval="half_year";break;case n>180:this.tickInterval="months";break;case n>90:this.tickInterval="months_fortnight";break;case n>60:this.tickInterval="months_days";break;case n>30:this.tickInterval="week_days";break;case n>2:this.tickInterval="days";break;case o>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(n){var o=n.firstVal,i=n.currentMonth,u=n.currentYear,c=n.daysWidthOnXAxis,d=n.numberOfYears,h=o.minYear,x=0,k=new oe(this.ctx),E="year";if(o.minDate>1||o.minMonth>0){var N=k.determineRemainingDaysOfYear(o.minYear,o.minMonth,o.minDate);x=(k.determineDaysOfYear(o.minYear)-N+1)*c,h=o.minYear+1,this.timeScaleArray.push({position:x,value:h,unit:E,year:h,month:p.monthMod(i+1)})}else o.minDate===1&&o.minMonth===0&&this.timeScaleArray.push({position:x,value:h,unit:E,year:u,month:p.monthMod(i+1)});for(var L=h,W=x,G=0;G<d;G++)L++,W=k.determineDaysOfYear(L-1)*c+W,this.timeScaleArray.push({position:W,value:L,unit:E,year:L,month:1})}},{key:"generateMonthScale",value:function(n){var o=n.firstVal,i=n.currentMonthDate,u=n.currentMonth,c=n.currentYear,d=n.daysWidthOnXAxis,h=n.numberOfMonths,x=u,k=0,E=new oe(this.ctx),N="month",L=0;if(o.minDate>1){k=(E.determineDaysOfMonths(u+1,o.minYear)-i+1)*d,x=p.monthMod(u+1);var W=c+L,G=p.monthMod(x),q=x;x===0&&(N="year",q=W,G=1,W+=L+=1),this.timeScaleArray.push({position:k,value:q,unit:N,year:W,month:G})}else this.timeScaleArray.push({position:k,value:x,unit:N,year:c,month:p.monthMod(u)});for(var Q=x+1,re=k,ie=0,C=1;ie<h;ie++,C++){(Q=p.monthMod(Q))===0?(N="year",L+=1):N="month";var I=this._getYear(c,Q,L);re=E.determineDaysOfMonths(Q,I)*d+re;var $=Q===0?I:Q;this.timeScaleArray.push({position:re,value:$,unit:N,year:I,month:Q===0?1:Q}),Q++}}},{key:"generateDayScale",value:function(n){var o=n.firstVal,i=n.currentMonth,u=n.currentYear,c=n.hoursWidthOnXAxis,d=n.numberOfDays,h=new oe(this.ctx),x="day",k=o.minDate+1,E=k,N=function(C,I,$){return C>h.determineDaysOfMonths(I+1,$)&&(E=1,x="month",W=I+=1),I},L=(24-o.minHour)*c,W=k,G=N(E,i,u);o.minHour===0&&o.minDate===1?(L=0,W=p.monthMod(o.minMonth),x="month",E=o.minDate):o.minDate!==1&&o.minHour===0&&o.minMinute===0&&(L=0,k=o.minDate,W=k,G=N(E=k,i,u)),this.timeScaleArray.push({position:L,value:W,unit:x,year:this._getYear(u,G,0),month:p.monthMod(G),day:E});for(var q=L,Q=0;Q<d;Q++){x="day",G=N(E+=1,G,this._getYear(u,G,0));var re=this._getYear(u,G,0);q=24*c+q;var ie=E===1?p.monthMod(G):E;this.timeScaleArray.push({position:q,value:ie,unit:x,year:re,month:p.monthMod(G),day:ie})}}},{key:"generateHourScale",value:function(n){var o=n.firstVal,i=n.currentDate,u=n.currentMonth,c=n.currentYear,d=n.minutesWidthOnXAxis,h=n.numberOfHours,x=new oe(this.ctx),k="hour",E=function(te,ce){return te>x.determineDaysOfMonths(ce+1,c)&&(Q=1,ce+=1),{month:ce,date:Q}},N=function(te,ce){return te>x.determineDaysOfMonths(ce+1,c)?ce+=1:ce},L=60-(o.minMinute+o.minSecond/60),W=L*d,G=o.minHour+1,q=G;L===60&&(W=0,q=(G=o.minHour)+1);var Q=i;q>=24&&(q=0,Q+=1,k="day");var re=E(Q,u).month;re=N(Q,re),this.timeScaleArray.push({position:W,value:G,unit:k,day:Q,hour:q,year:c,month:p.monthMod(re)}),q++;for(var ie=W,C=0;C<h;C++){k="hour",q>=24&&(q=0,k="day",re=E(Q+=1,re).month,re=N(Q,re));var I=this._getYear(c,re,0);ie=60*d+ie;var $=q===0?Q:q;this.timeScaleArray.push({position:ie,value:$,unit:k,hour:q,day:Q,year:I,month:p.monthMod(re)}),q++}}},{key:"generateMinuteScale",value:function(n){for(var o=n.currentMillisecond,i=n.currentSecond,u=n.currentMinute,c=n.currentHour,d=n.currentDate,h=n.currentMonth,x=n.currentYear,k=n.minutesWidthOnXAxis,E=n.secondsWidthOnXAxis,N=n.numberOfMinutes,L=u+1,W=d,G=h,q=x,Q=c,re=(60-i-o/1e3)*E,ie=0;ie<N;ie++)L>=60&&(L=0,(Q+=1)===24&&(Q=0)),this.timeScaleArray.push({position:re,value:L,unit:"minute",hour:Q,minute:L,day:W,year:this._getYear(q,G,0),month:p.monthMod(G)}),re+=k,L++}},{key:"generateSecondScale",value:function(n){for(var o=n.currentMillisecond,i=n.currentSecond,u=n.currentMinute,c=n.currentHour,d=n.currentDate,h=n.currentMonth,x=n.currentYear,k=n.secondsWidthOnXAxis,E=n.numberOfSeconds,N=i+1,L=u,W=d,G=h,q=x,Q=c,re=(1e3-o)/1e3*k,ie=0;ie<E;ie++)N>=60&&(N=0,++L>=60&&(L=0,++Q===24&&(Q=0))),this.timeScaleArray.push({position:re,value:N,unit:"second",hour:Q,minute:L,second:N,day:W,year:this._getYear(q,G,0),month:p.monthMod(G)}),re+=k,N++}},{key:"createRawDateString",value:function(n,o){var i=n.year;return n.month===0&&(n.month=1),i+="-"+("0"+n.month.toString()).slice(-2),n.unit==="day"?i+=n.unit==="day"?"-"+("0"+o).slice(-2):"-01":i+="-"+("0"+(n.day?n.day:"1")).slice(-2),n.unit==="hour"?i+=n.unit==="hour"?"T"+("0"+o).slice(-2):"T00":i+="T"+("0"+(n.hour?n.hour:"0")).slice(-2),n.unit==="minute"?i+=":"+("0"+o).slice(-2):i+=":"+(n.minute?("0"+n.minute).slice(-2):"00"),n.unit==="second"?i+=":"+("0"+o).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(n){var o=this,i=this.w;return n.map(function(u){var c=u.value.toString(),d=new oe(o.ctx),h=o.createRawDateString(u,c),x=d.getDate(d.parseDate(h));if(o.utc||(x=d.getDate(d.parseDateWithTimezone(h))),i.config.xaxis.labels.format===void 0){var k="dd MMM",E=i.config.xaxis.labels.datetimeFormatter;u.unit==="year"&&(k=E.year),u.unit==="month"&&(k=E.month),u.unit==="day"&&(k=E.day),u.unit==="hour"&&(k=E.hour),u.unit==="minute"&&(k=E.minute),u.unit==="second"&&(k=E.second),c=d.formatDate(x,k)}else c=d.formatDate(x,i.config.xaxis.labels.format);return{dateString:h,position:u.position,value:c,unit:u.unit,year:u.year,month:u.month}})}},{key:"removeOverlappingTS",value:function(n){var o,i=this,u=new m(this.ctx),c=!1;n.length>0&&n[0].value&&n.every(function(x){return x.value.length===n[0].value.length})&&(c=!0,o=u.getTextRects(n[0].value).width);var d=0,h=n.map(function(x,k){if(k>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var E=c?o:u.getTextRects(n[d].value).width,N=n[d].position;return x.position>N+E+10?(d=k,x):null}return x});return h=h.filter(function(x){return x!==null})}},{key:"_getYear",value:function(n,o,i){return n+Math.floor(o/12)+i}}]),J}(),vs=function(){function J(n,o){l(this,J),this.ctx=o,this.w=o.w,this.el=n}return b(J,[{key:"setupElements",value:function(){var n=this.w.globals,o=this.w.config,i=o.chart.type;n.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,n.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,n.isBarHorizontal=(o.chart.type==="bar"||o.chart.type==="rangeBar"||o.chart.type==="boxPlot")&&o.plotOptions.bar.horizontal,n.chartClass=".apexcharts"+n.chartID,n.dom.baseEl=this.el,n.dom.elWrap=document.createElement("div"),m.setAttrs(n.dom.elWrap,{id:n.chartClass.substring(1),class:"apexcharts-canvas "+n.chartClass.substring(1)}),this.el.appendChild(n.dom.elWrap),n.dom.Paper=new window.SVG.Doc(n.dom.elWrap),n.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(o.chart.offsetX,", ").concat(o.chart.offsetY,")")}),n.dom.Paper.node.style.background=o.theme.mode!=="dark"||o.chart.background?o.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),n.dom.elLegendForeign=document.createElementNS(n.SVGNS,"foreignObject"),m.setAttrs(n.dom.elLegendForeign,{x:0,y:0,width:n.svgWidth,height:n.svgHeight}),n.dom.elLegendWrap=document.createElement("div"),n.dom.elLegendWrap.classList.add("apexcharts-legend"),n.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),n.dom.elLegendForeign.appendChild(n.dom.elLegendWrap),n.dom.Paper.node.appendChild(n.dom.elLegendForeign),n.dom.elGraphical=n.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),n.dom.elDefs=n.dom.Paper.defs(),n.dom.Paper.add(n.dom.elGraphical),n.dom.elGraphical.add(n.dom.elDefs)}},{key:"plotChartType",value:function(n,o){var i=this.w,u=i.config,c=i.globals,d={series:[],i:[]},h={series:[],i:[]},x={series:[],i:[]},k={series:[],i:[]},E={series:[],i:[]},N={series:[],i:[]},L={series:[],i:[]},W={series:[],i:[]},G={series:[],seriesRangeEnd:[],i:[]};c.series.map(function(ce,de){var we=0;n[de].type!==void 0?(n[de].type==="column"||n[de].type==="bar"?(c.series.length>1&&u.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),E.series.push(ce),E.i.push(de),we++,i.globals.columnSeries=E.series):n[de].type==="area"?(h.series.push(ce),h.i.push(de),we++):n[de].type==="line"?(d.series.push(ce),d.i.push(de),we++):n[de].type==="scatter"?(x.series.push(ce),x.i.push(de)):n[de].type==="bubble"?(k.series.push(ce),k.i.push(de),we++):n[de].type==="candlestick"?(N.series.push(ce),N.i.push(de),we++):n[de].type==="boxPlot"?(L.series.push(ce),L.i.push(de),we++):n[de].type==="rangeBar"?(W.series.push(ce),W.i.push(de),we++):n[de].type==="rangeArea"?(G.series.push(c.seriesRangeStart[de]),G.seriesRangeEnd.push(c.seriesRangeEnd[de]),G.i.push(de),we++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),we>1&&(c.comboCharts=!0)):(d.series.push(ce),d.i.push(de))});var q=new Vr(this.ctx,o),Q=new Yn(this.ctx,o);this.ctx.pie=new ma(this.ctx);var re=new Gn(this.ctx);this.ctx.rangeBar=new ya(this.ctx,o);var ie=new ni(this.ctx),C=[];if(c.comboCharts){if(h.series.length>0&&C.push(q.draw(h.series,"area",h.i)),E.series.length>0)if(i.config.chart.stacked){var I=new Fr(this.ctx,o);C.push(I.draw(E.series,E.i))}else this.ctx.bar=new Tn(this.ctx,o),C.push(this.ctx.bar.draw(E.series,E.i));if(G.series.length>0&&C.push(q.draw(G.series,"rangeArea",G.i,G.seriesRangeEnd)),d.series.length>0&&C.push(q.draw(d.series,"line",d.i)),N.series.length>0&&C.push(Q.draw(N.series,"candlestick",N.i)),L.series.length>0&&C.push(Q.draw(L.series,"boxPlot",L.i)),W.series.length>0&&C.push(this.ctx.rangeBar.draw(W.series,W.i)),x.series.length>0){var $=new Vr(this.ctx,o,!0);C.push($.draw(x.series,"scatter",x.i))}if(k.series.length>0){var te=new Vr(this.ctx,o,!0);C.push(te.draw(k.series,"bubble",k.i))}}else switch(u.chart.type){case"line":C=q.draw(c.series,"line");break;case"area":C=q.draw(c.series,"area");break;case"bar":u.chart.stacked?C=new Fr(this.ctx,o).draw(c.series):(this.ctx.bar=new Tn(this.ctx,o),C=this.ctx.bar.draw(c.series));break;case"candlestick":C=new Yn(this.ctx,o).draw(c.series,"candlestick");break;case"boxPlot":C=new Yn(this.ctx,o).draw(c.series,u.chart.type);break;case"rangeBar":C=this.ctx.rangeBar.draw(c.series);break;case"rangeArea":C=q.draw(c.seriesRangeStart,"rangeArea",void 0,c.seriesRangeEnd);break;case"heatmap":C=new br(this.ctx,o).draw(c.series);break;case"treemap":C=new bs(this.ctx,o).draw(c.series);break;case"pie":case"donut":case"polarArea":C=this.ctx.pie.draw(c.series);break;case"radialBar":C=re.draw(c.series);break;case"radar":C=ie.draw(c.series);break;default:C=q.draw(c.series)}return C}},{key:"setSVGDimensions",value:function(){var n=this.w.globals,o=this.w.config;n.svgWidth=o.chart.width,n.svgHeight=o.chart.height;var i=p.getDimensions(this.el),u=o.chart.width.toString().split(/[0-9]+/g).pop();u==="%"?p.isNumber(i[0])&&(i[0].width===0&&(i=p.getDimensions(this.el.parentNode)),n.svgWidth=i[0]*parseInt(o.chart.width,10)/100):u!=="px"&&u!==""||(n.svgWidth=parseInt(o.chart.width,10));var c=o.chart.height.toString().split(/[0-9]+/g).pop();if(n.svgHeight!=="auto"&&n.svgHeight!=="")if(c==="%"){var d=p.getDimensions(this.el.parentNode);n.svgHeight=d[1]*parseInt(o.chart.height,10)/100}else n.svgHeight=parseInt(o.chart.height,10);else n.axisCharts?n.svgHeight=n.svgWidth/1.61:n.svgHeight=n.svgWidth/1.2;if(n.svgWidth<0&&(n.svgWidth=0),n.svgHeight<0&&(n.svgHeight=0),m.setAttrs(n.dom.Paper.node,{width:n.svgWidth,height:n.svgHeight}),c!=="%"){var h=o.chart.sparkline.enabled?0:n.axisCharts?o.chart.parentHeightOffset:0;n.dom.Paper.node.parentNode.parentNode.style.minHeight=n.svgHeight+h+"px"}n.dom.elWrap.style.width=n.svgWidth+"px",n.dom.elWrap.style.height=n.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var n=this.w.globals,o=n.translateY,i={transform:"translate("+n.translateX+", "+o+")"};m.setAttrs(n.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var n=this.w,o=n.globals,i=0,u=n.config.chart.sparkline.enabled?1:15;u+=n.config.grid.padding.bottom,n.config.legend.position!=="top"&&n.config.legend.position!=="bottom"||!n.config.legend.show||n.config.legend.floating||(i=new er(this.ctx).legendHelpers.getLegendBBox().clwh+10);var c=n.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),d=2.05*n.globals.radialSize;if(c&&!n.config.chart.sparkline.enabled&&n.config.plotOptions.radialBar.startAngle!==0){var h=p.getBoundingClientRect(c);d=h.bottom;var x=h.bottom-h.top;d=Math.max(2.05*n.globals.radialSize,x)}var k=d+o.translateY+i+u;o.dom.elLegendForeign&&o.dom.elLegendForeign.setAttribute("height",k),n.config.chart.height&&String(n.config.chart.height).indexOf("%")>0||(o.dom.elWrap.style.height=k+"px",m.setAttrs(o.dom.Paper.node,{height:k}),o.dom.Paper.node.parentNode.parentNode.style.minHeight=k+"px")}},{key:"coreCalculations",value:function(){new Qe(this.ctx).init()}},{key:"resetGlobals",value:function(){var n=this,o=function(){return n.w.config.series.map(function(c){return[]})},i=new ge,u=this.w.globals;i.initGlobalVars(u),u.seriesXvalues=o(),u.seriesYvalues=o()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var n=null,o=this.w;if(o.globals.axisCharts){if(o.config.xaxis.crosshairs.position==="back"&&new wt(this.ctx).drawXCrosshairs(),o.config.yaxis[0].crosshairs.position==="back"&&new wt(this.ctx).drawYCrosshairs(),o.config.xaxis.type==="datetime"&&o.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Ca(this.ctx);var i=[];isFinite(o.globals.minX)&&isFinite(o.globals.maxX)&&!o.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(o.globals.minX,o.globals.maxX):o.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(o.globals.minY,o.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}n=new _(this.ctx).getCalculatedRatios()}return n}},{key:"updateSourceChart",value:function(n){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:n.w.globals.minX,max:n.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var n=this,o=this.w;if(o.config.chart.brush.enabled&&typeof o.config.chart.events.selection!="function"){var i=Array.isArray(o.config.chart.brush.targets)||[o.config.chart.brush.target];i.forEach(function(u){var c=ApexCharts.getChartByID(u);c.w.globals.brushSource=n.ctx,typeof c.w.config.chart.events.zoomed!="function"&&(c.w.config.chart.events.zoomed=function(){n.updateSourceChart(c)}),typeof c.w.config.chart.events.scrolled!="function"&&(c.w.config.chart.events.scrolled=function(){n.updateSourceChart(c)})}),o.config.chart.events.selection=function(u,c){i.forEach(function(d){var h=ApexCharts.getChartByID(d),x=p.clone(o.config.yaxis);if(o.config.chart.brush.autoScaleYaxis&&h.w.globals.series.length===1){var k=new Ge(h);x=k.autoScaleY(h,x,c)}var E=h.w.config.yaxis.reduce(function(N,L,W){return[].concat(R(N),[a(a({},h.w.config.yaxis[W]),{},{min:x[0].min,max:x[0].max})])},[]);h.ctx.updateHelpers._updateOptions({xaxis:{min:c.xaxis.min,max:c.xaxis.max},yaxis:E},!1,!1,!1,!1)})}}}}]),J}(),Wr=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"_updateOptions",value:function(n){var o=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],c=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],d=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(h){var x=[o.ctx];c&&(x=o.ctx.getSyncedCharts()),o.ctx.w.globals.isExecCalled&&(x=[o.ctx],o.ctx.w.globals.isExecCalled=!1),x.forEach(function(k,E){var N=k.w;if(N.globals.shouldAnimate=u,i||(N.globals.resized=!0,N.globals.dataChanged=!0,u&&k.series.getPreviousPaths()),n&&s(n)==="object"&&(k.config=new ue(n),n=_.extendArrayProps(k.config,n,N),k.w.globals.chartID!==o.ctx.w.globals.chartID&&delete n.series,N.config=p.extend(N.config,n),d&&(N.globals.lastXAxis=n.xaxis?p.clone(n.xaxis):[],N.globals.lastYAxis=n.yaxis?p.clone(n.yaxis):[],N.globals.initialConfig=p.extend({},N.config),N.globals.initialSeries=p.clone(N.config.series),n.series))){for(var L=0;L<N.globals.collapsedSeriesIndices.length;L++){var W=N.config.series[N.globals.collapsedSeriesIndices[L]];N.globals.collapsedSeries[L].data=N.globals.axisCharts?W.data.slice():W}for(var G=0;G<N.globals.ancillaryCollapsedSeriesIndices.length;G++){var q=N.config.series[N.globals.ancillaryCollapsedSeriesIndices[G]];N.globals.ancillaryCollapsedSeries[G].data=N.globals.axisCharts?q.data.slice():q}k.series.emptyCollapsedSeries(N.config.series)}return k.update(n).then(function(){E===x.length-1&&h(k)})})})}},{key:"_updateSeries",value:function(n,o){var i=this,u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(c){var d,h=i.w;return h.globals.shouldAnimate=o,h.globals.dataChanged=!0,o&&i.ctx.series.getPreviousPaths(),h.globals.axisCharts?((d=n.map(function(x,k){return i._extendSeries(x,k)})).length===0&&(d=[{data:[]}]),h.config.series=d):h.config.series=n.slice(),u&&(h.globals.initialConfig.series=p.clone(h.config.series),h.globals.initialSeries=p.clone(h.config.series)),i.ctx.update().then(function(){c(i.ctx)})})}},{key:"_extendSeries",value:function(n,o){var i=this.w,u=i.config.series[o];return a(a({},i.config.series[o]),{},{name:n.name?n.name:u==null?void 0:u.name,color:n.color?n.color:u==null?void 0:u.color,type:n.type?n.type:u==null?void 0:u.type,group:n.group?n.group:u==null?void 0:u.group,data:n.data?n.data:u==null?void 0:u.data,zIndex:n.zIndex!==void 0?n.zIndex:o})}},{key:"toggleDataPointSelection",value:function(n,o){var i=this.w,u=null,c=".apexcharts-series[data\\:realIndex='".concat(n,"']");return i.globals.axisCharts?u=i.globals.dom.Paper.select("".concat(c," path[j='").concat(o,"'], ").concat(c," circle[j='").concat(o,"'], ").concat(c," rect[j='").concat(o,"']")).members[0]:o===void 0&&(u=i.globals.dom.Paper.select("".concat(c," path[j='").concat(n,"']")).members[0],i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(n)),u?(new m(this.ctx).pathMouseDown(u,null),u.node?u.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(n){var o=this.w;if(["min","max"].forEach(function(u){n.xaxis[u]!==void 0&&(o.config.xaxis[u]=n.xaxis[u],o.globals.lastXAxis[u]=n.xaxis[u])}),n.xaxis.categories&&n.xaxis.categories.length&&(o.config.xaxis.categories=n.xaxis.categories),o.config.xaxis.convertedCatToNumeric){var i=new he(n);n=i.convertCatToNumericXaxis(n,this.ctx)}return n}},{key:"forceYAxisUpdate",value:function(n){return n.chart&&n.chart.stacked&&n.chart.stackType==="100%"&&(Array.isArray(n.yaxis)?n.yaxis.forEach(function(o,i){n.yaxis[i].min=0,n.yaxis[i].max=100}):(n.yaxis.min=0,n.yaxis.max=100)),n}},{key:"revertDefaultAxisMinMax",value:function(n){var o=this,i=this.w,u=i.globals.lastXAxis,c=i.globals.lastYAxis;n&&n.xaxis&&(u=n.xaxis),n&&n.yaxis&&(c=n.yaxis),i.config.xaxis.min=u.min,i.config.xaxis.max=u.max;var d=function(h){c[h]!==void 0&&(i.config.yaxis[h].min=c[h].min,i.config.yaxis[h].max=c[h].max)};i.config.yaxis.map(function(h,x){i.globals.zoomed||c[x]!==void 0?d(x):o.ctx.opts.yaxis[x]!==void 0&&(h.min=o.ctx.opts.yaxis[x].min,h.max=o.ctx.opts.yaxis[x].max)})}}]),J}();Pn=typeof window<"u"?window:void 0,qn=function(J,n){var o=(this!==void 0?this:J).SVG=function(C){if(o.supported)return C=new o.Doc(C),o.parser.draw||o.prepare(),C};if(o.ns="http://www.w3.org/2000/svg",o.xmlns="http://www.w3.org/2000/xmlns/",o.xlink="http://www.w3.org/1999/xlink",o.svgjs="http://svgjs.dev",o.supported=!0,!o.supported)return!1;o.did=1e3,o.eid=function(C){return"Svgjs"+E(C)+o.did++},o.create=function(C){var I=n.createElementNS(this.ns,C);return I.setAttribute("id",this.eid(C)),I},o.extend=function(){var C,I;I=(C=[].slice.call(arguments)).pop();for(var $=C.length-1;$>=0;$--)if(C[$])for(var te in I)C[$].prototype[te]=I[te];o.Set&&o.Set.inherit&&o.Set.inherit()},o.invent=function(C){var I=typeof C.create=="function"?C.create:function(){this.constructor.call(this,o.create(C.create))};return C.inherit&&(I.prototype=new C.inherit),C.extend&&o.extend(I,C.extend),C.construct&&o.extend(C.parent||o.Container,C.construct),I},o.adopt=function(C){return C?C.instance?C.instance:((I=C.nodeName=="svg"?C.parentNode instanceof J.SVGElement?new o.Nested:new o.Doc:C.nodeName=="linearGradient"?new o.Gradient("linear"):C.nodeName=="radialGradient"?new o.Gradient("radial"):o[E(C.nodeName)]?new o[E(C.nodeName)]:new o.Element(C)).type=C.nodeName,I.node=C,C.instance=I,I instanceof o.Doc&&I.namespace().defs(),I.setData(JSON.parse(C.getAttribute("svgjs:data"))||{}),I):null;var I},o.prepare=function(){var C=n.getElementsByTagName("body")[0],I=(C?new o.Doc(C):o.adopt(n.documentElement).nested()).size(2,0);o.parser={body:C||n.documentElement,draw:I.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:I.polyline().node,path:I.path().node,native:o.create("svg")}},o.parser={native:o.create("svg")},n.addEventListener("DOMContentLoaded",function(){o.parser.draw||o.prepare()},!1),o.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},o.utils={map:function(C,I){for(var $=C.length,te=[],ce=0;ce<$;ce++)te.push(I(C[ce]));return te},filter:function(C,I){for(var $=C.length,te=[],ce=0;ce<$;ce++)I(C[ce])&&te.push(C[ce]);return te},filterSVGElements:function(C){return this.filter(C,function(I){return I instanceof J.SVGElement})}},o.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},o.Color=function(C){var I,$;this.r=0,this.g=0,this.b=0,C&&(typeof C=="string"?o.regex.isRgb.test(C)?(I=o.regex.rgb.exec(C.replace(o.regex.whitespace,"")),this.r=parseInt(I[1]),this.g=parseInt(I[2]),this.b=parseInt(I[3])):o.regex.isHex.test(C)&&(I=o.regex.hex.exec(($=C).length==4?["#",$.substring(1,2),$.substring(1,2),$.substring(2,3),$.substring(2,3),$.substring(3,4),$.substring(3,4)].join(""):$),this.r=parseInt(I[1],16),this.g=parseInt(I[2],16),this.b=parseInt(I[3],16)):s(C)==="object"&&(this.r=C.r,this.g=C.g,this.b=C.b))},o.extend(o.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+N(this.r)+N(this.g)+N(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(C){return this.destination=new o.Color(C),this},at:function(C){return this.destination?(C=C<0?0:C>1?1:C,new o.Color({r:~~(this.r+(this.destination.r-this.r)*C),g:~~(this.g+(this.destination.g-this.g)*C),b:~~(this.b+(this.destination.b-this.b)*C)})):this}}),o.Color.test=function(C){return C+="",o.regex.isHex.test(C)||o.regex.isRgb.test(C)},o.Color.isRgb=function(C){return C&&typeof C.r=="number"&&typeof C.g=="number"&&typeof C.b=="number"},o.Color.isColor=function(C){return o.Color.isRgb(C)||o.Color.test(C)},o.Array=function(C,I){(C=(C||[]).valueOf()).length==0&&I&&(C=I.valueOf()),this.value=this.parse(C)},o.extend(o.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(C){return C=C.valueOf(),Array.isArray(C)?C:this.split(C)}}),o.PointArray=function(C,I){o.Array.call(this,C,I||[[0,0]])},o.PointArray.prototype=new o.Array,o.PointArray.prototype.constructor=o.PointArray;for(var i={M:function(C,I,$){return I.x=$.x=C[0],I.y=$.y=C[1],["M",I.x,I.y]},L:function(C,I){return I.x=C[0],I.y=C[1],["L",C[0],C[1]]},H:function(C,I){return I.x=C[0],["H",C[0]]},V:function(C,I){return I.y=C[0],["V",C[0]]},C:function(C,I){return I.x=C[4],I.y=C[5],["C",C[0],C[1],C[2],C[3],C[4],C[5]]},Q:function(C,I){return I.x=C[2],I.y=C[3],["Q",C[0],C[1],C[2],C[3]]},S:function(C,I){return I.x=C[2],I.y=C[3],["S",C[0],C[1],C[2],C[3]]},Z:function(C,I,$){return I.x=$.x,I.y=$.y,["Z"]}},u="mlhvqtcsaz".split(""),c=0,d=u.length;c<d;++c)i[u[c]]=function(C){return function(I,$,te){if(C=="H")I[0]=I[0]+$.x;else if(C=="V")I[0]=I[0]+$.y;else if(C=="A")I[5]=I[5]+$.x,I[6]=I[6]+$.y;else for(var ce=0,de=I.length;ce<de;++ce)I[ce]=I[ce]+(ce%2?$.y:$.x);if(i&&typeof i[C]=="function")return i[C](I,$,te)}}(u[c].toUpperCase());o.PathArray=function(C,I){o.Array.call(this,C,I||[["M",0,0]])},o.PathArray.prototype=new o.Array,o.PathArray.prototype.constructor=o.PathArray,o.extend(o.PathArray,{toString:function(){return function(C){for(var I=0,$=C.length,te="";I<$;I++)te+=C[I][0],C[I][1]!=null&&(te+=C[I][1],C[I][2]!=null&&(te+=" ",te+=C[I][2],C[I][3]!=null&&(te+=" ",te+=C[I][3],te+=" ",te+=C[I][4],C[I][5]!=null&&(te+=" ",te+=C[I][5],te+=" ",te+=C[I][6],C[I][7]!=null&&(te+=" ",te+=C[I][7])))));return te+" "}(this.value)},move:function(C,I){var $=this.bbox();return $.x,$.y,this},at:function(C){if(!this.destination)return this;for(var I=this.value,$=this.destination.value,te=[],ce=new o.PathArray,de=0,we=I.length;de<we;de++){te[de]=[I[de][0]];for(var Ce=1,Ie=I[de].length;Ce<Ie;Ce++)te[de][Ce]=I[de][Ce]+($[de][Ce]-I[de][Ce])*C;te[de][0]==="A"&&(te[de][4]=+(te[de][4]!=0),te[de][5]=+(te[de][5]!=0))}return ce.value=te,ce},parse:function(C){if(C instanceof o.PathArray)return C.valueOf();var I,$={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};C=typeof C=="string"?C.replace(o.regex.numbersWithDots,x).replace(o.regex.pathLetters," $& ").replace(o.regex.hyphen,"$1 -").trim().split(o.regex.delimiter):C.reduce(function(Ie,We){return[].concat.call(Ie,We)},[]);var te=[],ce=new o.Point,de=new o.Point,we=0,Ce=C.length;do o.regex.isPathLetter.test(C[we])?(I=C[we],++we):I=="M"?I="L":I=="m"&&(I="l"),te.push(i[I].call(null,C.slice(we,we+=$[I.toUpperCase()]).map(parseFloat),ce,de));while(Ce>we);return te},bbox:function(){return o.parser.draw||o.prepare(),o.parser.path.setAttribute("d",this.toString()),o.parser.path.getBBox()}}),o.Number=o.invent({create:function(C,I){this.value=0,this.unit=I||"",typeof C=="number"?this.value=isNaN(C)?0:isFinite(C)?C:C<0?-34e37:34e37:typeof C=="string"?(I=C.match(o.regex.numberAndUnit))&&(this.value=parseFloat(I[1]),I[5]=="%"?this.value/=100:I[5]=="s"&&(this.value*=1e3),this.unit=I[5]):C instanceof o.Number&&(this.value=C.valueOf(),this.unit=C.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(C){return C=new o.Number(C),new o.Number(this+C,this.unit||C.unit)},minus:function(C){return C=new o.Number(C),new o.Number(this-C,this.unit||C.unit)},times:function(C){return C=new o.Number(C),new o.Number(this*C,this.unit||C.unit)},divide:function(C){return C=new o.Number(C),new o.Number(this/C,this.unit||C.unit)},to:function(C){var I=new o.Number(this);return typeof C=="string"&&(I.unit=C),I},morph:function(C){return this.destination=new o.Number(C),C.relative&&(this.destination.value+=this.value),this},at:function(C){return this.destination?new o.Number(this.destination).minus(this).times(C).plus(this):this}}}),o.Element=o.invent({create:function(C){this._stroke=o.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=C)&&(this.type=C.nodeName,this.node.instance=this,this._stroke=C.getAttribute("stroke")||this._stroke)},extend:{x:function(C){return this.attr("x",C)},y:function(C){return this.attr("y",C)},cx:function(C){return C==null?this.x()+this.width()/2:this.x(C-this.width()/2)},cy:function(C){return C==null?this.y()+this.height()/2:this.y(C-this.height()/2)},move:function(C,I){return this.x(C).y(I)},center:function(C,I){return this.cx(C).cy(I)},width:function(C){return this.attr("width",C)},height:function(C){return this.attr("height",C)},size:function(C,I){var $=L(this,C,I);return this.width(new o.Number($.width)).height(new o.Number($.height))},clone:function(C){this.writeDataToDom();var I=q(this.node.cloneNode(!0));return C?C.add(I):this.after(I),I},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(C){return this.after(C).remove(),C},addTo:function(C){return C.put(this)},putIn:function(C){return C.add(this)},id:function(C){return this.attr("id",C)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var C=this.attr("class");return C==null?[]:C.trim().split(o.regex.delimiter)},hasClass:function(C){return this.classes().indexOf(C)!=-1},addClass:function(C){if(!this.hasClass(C)){var I=this.classes();I.push(C),this.attr("class",I.join(" "))}return this},removeClass:function(C){return this.hasClass(C)&&this.attr("class",this.classes().filter(function(I){return I!=C}).join(" ")),this},toggleClass:function(C){return this.hasClass(C)?this.removeClass(C):this.addClass(C)},reference:function(C){return o.get(this.attr(C))},parent:function(C){var I=this;if(!I.node.parentNode)return null;if(I=o.adopt(I.node.parentNode),!C)return I;for(;I&&I.node instanceof J.SVGElement;){if(typeof C=="string"?I.matches(C):I instanceof C)return I;if(!I.node.parentNode||I.node.parentNode.nodeName=="#document")return null;I=o.adopt(I.node.parentNode)}},doc:function(){return this instanceof o.Doc?this:this.parent(o.Doc)},parents:function(C){var I=[],$=this;do{if(!($=$.parent(C))||!$.node)break;I.push($)}while($.parent);return I},matches:function(C){return function(I,$){return(I.matches||I.matchesSelector||I.msMatchesSelector||I.mozMatchesSelector||I.webkitMatchesSelector||I.oMatchesSelector).call(I,$)}(this.node,C)},native:function(){return this.node},svg:function(C){var I=n.createElement("svg");if(!(C&&this instanceof o.Parent))return I.appendChild(C=n.createElement("svg")),this.writeDataToDom(),C.appendChild(this.node.cloneNode(!0)),I.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");I.innerHTML="<svg>"+C.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var $=0,te=I.firstChild.childNodes.length;$<te;$++)this.node.appendChild(I.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(C){return this.dom=C,this},is:function(C){return function(I,$){return I instanceof $}(this,C)}}}),o.easing={"-":function(C){return C},"<>":function(C){return-Math.cos(C*Math.PI)/2+.5},">":function(C){return Math.sin(C*Math.PI/2)},"<":function(C){return 1-Math.cos(C*Math.PI/2)}},o.morph=function(C){return function(I,$){return new o.MorphObj(I,$).at(C)}},o.Situation=o.invent({create:function(C){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new o.Number(C.duration).valueOf(),this.delay=new o.Number(C.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=C.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),o.FX=o.invent({create:function(C){this._target=C,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(C,I,$){s(C)==="object"&&(I=C.ease,$=C.delay,C=C.duration);var te=new o.Situation({duration:C||1e3,delay:$||0,ease:o.easing[I||"-"]||I});return this.queue(te),this},target:function(C){return C&&C instanceof o.Element?(this._target=C,this):this._target},timeToAbsPos:function(C){return(C-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(C){return this.situation.duration/this._speed*C+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=J.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){J.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(C){return(typeof C=="function"||C instanceof o.Situation)&&this.situations.push(C),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof o.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var C,I=this.situation;if(I.init)return this;for(var $ in I.animations){C=this.target()[$](),Array.isArray(C)||(C=[C]),Array.isArray(I.animations[$])||(I.animations[$]=[I.animations[$]]);for(var te=C.length;te--;)I.animations[$][te]instanceof o.Number&&(C[te]=new o.Number(C[te])),I.animations[$][te]=C[te].morph(I.animations[$][te])}for(var $ in I.attrs)I.attrs[$]=new o.MorphObj(this.target().attr($),I.attrs[$]);for(var $ in I.styles)I.styles[$]=new o.MorphObj(this.target().style($),I.styles[$]);return I.initialTransformation=this.target().matrixify(),I.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(C,I){var $=this.active;return this.active=!1,I&&this.clearQueue(),C&&this.situation&&(!$&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(C){var I=this.last();return this.target().on("finished.fx",function $(te){te.detail.situation==I&&(C.call(this,I),this.off("finished.fx",$))}),this._callStart()},during:function(C){var I=this.last(),$=function(te){te.detail.situation==I&&C.call(this,te.detail.pos,o.morph(te.detail.pos),te.detail.eased,I)};return this.target().off("during.fx",$).on("during.fx",$),this.after(function(){this.off("during.fx",$)}),this._callStart()},afterAll:function(C){var I=function $(te){C.call(this),this.off("allfinished.fx",$)};return this.target().off("allfinished.fx",I).on("allfinished.fx",I),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(C,I,$){return this.last()[$||"animations"][C]=I,this._callStart()},step:function(C){var I,$,te;C||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(I=Math.max(this.absPos,0),$=Math.floor(I),this.situation.loops===!0||$<this.situation.loops?(this.pos=I-$,te=this.situation.loop,this.situation.loop=$):(this.absPos=this.situation.loops,this.pos=1,te=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-te)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var ce=this.situation.ease(this.pos);for(var de in this.situation.once)de>this.lastPos&&de<=ce&&(this.situation.once[de].call(this.target(),this.pos,ce),delete this.situation.once[de]);return this.active&&this.target().fire("during",{pos:this.pos,eased:ce,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=ce,this):this},eachAt:function(){var C,I=this,$=this.target(),te=this.situation;for(var ce in te.animations)C=[].concat(te.animations[ce]).map(function(Ce){return typeof Ce!="string"&&Ce.at?Ce.at(te.ease(I.pos),I.pos):Ce}),$[ce].apply($,C);for(var ce in te.attrs)C=[ce].concat(te.attrs[ce]).map(function(Ie){return typeof Ie!="string"&&Ie.at?Ie.at(te.ease(I.pos),I.pos):Ie}),$.attr.apply($,C);for(var ce in te.styles)C=[ce].concat(te.styles[ce]).map(function(Ie){return typeof Ie!="string"&&Ie.at?Ie.at(te.ease(I.pos),I.pos):Ie}),$.style.apply($,C);if(te.transforms.length){C=te.initialTransformation,ce=0;for(var de=te.transforms.length;ce<de;ce++){var we=te.transforms[ce];we instanceof o.Matrix?C=we.relative?C.multiply(new o.Matrix().morph(we).at(te.ease(this.pos))):C.morph(we).at(te.ease(this.pos)):(we.relative||we.undo(C.extract()),C=C.multiply(we.at(te.ease(this.pos))))}$.matrix(C)}return this},once:function(C,I,$){var te=this.last();return $||(C=te.ease(C)),te.once[C]=I,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:o.Element,construct:{animate:function(C,I,$){return(this.fx||(this.fx=new o.FX(this))).animate(C,I,$)},delay:function(C){return(this.fx||(this.fx=new o.FX(this))).delay(C)},stop:function(C,I){return this.fx&&this.fx.stop(C,I),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),o.MorphObj=o.invent({create:function(C,I){return o.Color.isColor(I)?new o.Color(C).morph(I):o.regex.delimiter.test(C)?o.regex.pathLetters.test(C)?new o.PathArray(C).morph(I):new o.Array(C).morph(I):o.regex.numberAndUnit.test(I)?new o.Number(C).morph(I):(this.value=C,void(this.destination=I))},extend:{at:function(C,I){return I<1?this.value:this.destination},valueOf:function(){return this.value}}}),o.extend(o.FX,{attr:function(C,I,$){if(s(C)==="object")for(var te in C)this.attr(te,C[te]);else this.add(C,I,"attrs");return this},plot:function(C,I,$,te){return arguments.length==4?this.plot([C,I,$,te]):this.add("plot",new(this.target()).morphArray(C))}}),o.Box=o.invent({create:function(C,I,$,te){if(!(s(C)!=="object"||C instanceof o.Element))return o.Box.call(this,C.left!=null?C.left:C.x,C.top!=null?C.top:C.y,C.width,C.height);var ce;arguments.length==4&&(this.x=C,this.y=I,this.width=$,this.height=te),(ce=this).x==null&&(ce.x=0,ce.y=0,ce.width=0,ce.height=0),ce.w=ce.width,ce.h=ce.height,ce.x2=ce.x+ce.width,ce.y2=ce.y+ce.height,ce.cx=ce.x+ce.width/2,ce.cy=ce.y+ce.height/2}}),o.BBox=o.invent({create:function(C){if(o.Box.apply(this,[].slice.call(arguments)),C instanceof o.Element){var I;try{if(!n.documentElement.contains){for(var $=C.node;$.parentNode;)$=$.parentNode;if($!=n)throw new Error("Element not in the dom")}I=C.node.getBBox()}catch{if(C instanceof o.Shape){o.parser.draw||o.prepare();var te=C.clone(o.parser.draw.instance).show();te&&te.node&&typeof te.node.getBBox=="function"&&(I=te.node.getBBox()),te&&typeof te.remove=="function"&&te.remove()}else I={x:C.node.clientLeft,y:C.node.clientTop,width:C.node.clientWidth,height:C.node.clientHeight}}o.Box.call(this,I)}},inherit:o.Box,parent:o.Element,construct:{bbox:function(){return new o.BBox(this)}}}),o.BBox.prototype.constructor=o.BBox,o.Matrix=o.invent({create:function(C){var I=G([1,0,0,1,0,0]);C=C===null?I:C instanceof o.Element?C.matrixify():typeof C=="string"?G(C.split(o.regex.delimiter).map(parseFloat)):arguments.length==6?G([].slice.call(arguments)):Array.isArray(C)?G(C):C&&s(C)==="object"?C:I;for(var $=re.length-1;$>=0;--$)this[re[$]]=C[re[$]]!=null?C[re[$]]:I[re[$]]},extend:{extract:function(){var C=W(this,0,1);W(this,1,0);var I=180/Math.PI*Math.atan2(C.y,C.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(I*Math.PI/180)+this.f*Math.sin(I*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(I*Math.PI/180)+this.e*Math.sin(-I*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:I,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new o.Matrix(this)}},clone:function(){return new o.Matrix(this)},morph:function(C){return this.destination=new o.Matrix(C),this},multiply:function(C){return new o.Matrix(this.native().multiply(function(I){return I instanceof o.Matrix||(I=new o.Matrix(I)),I}(C).native()))},inverse:function(){return new o.Matrix(this.native().inverse())},translate:function(C,I){return new o.Matrix(this.native().translate(C||0,I||0))},native:function(){for(var C=o.parser.native.createSVGMatrix(),I=re.length-1;I>=0;I--)C[re[I]]=this[re[I]];return C},toString:function(){return"matrix("+Q(this.a)+","+Q(this.b)+","+Q(this.c)+","+Q(this.d)+","+Q(this.e)+","+Q(this.f)+")"}},parent:o.Element,construct:{ctm:function(){return new o.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof o.Nested){var C=this.rect(1,1),I=C.node.getScreenCTM();return C.remove(),new o.Matrix(I)}return new o.Matrix(this.node.getScreenCTM())}}}),o.Point=o.invent({create:function(C,I){var $;$=Array.isArray(C)?{x:C[0],y:C[1]}:s(C)==="object"?{x:C.x,y:C.y}:C!=null?{x:C,y:I??C}:{x:0,y:0},this.x=$.x,this.y=$.y},extend:{clone:function(){return new o.Point(this)},morph:function(C,I){return this.destination=new o.Point(C,I),this}}}),o.extend(o.Element,{point:function(C,I){return new o.Point(C,I).transform(this.screenCTM().inverse())}}),o.extend(o.Element,{attr:function(C,I,$){if(C==null){for(C={},$=(I=this.node.attributes).length-1;$>=0;$--)C[I[$].nodeName]=o.regex.isNumber.test(I[$].nodeValue)?parseFloat(I[$].nodeValue):I[$].nodeValue;return C}if(s(C)==="object")for(var te in C)this.attr(te,C[te]);else if(I===null)this.node.removeAttribute(C);else{if(I==null)return(I=this.node.getAttribute(C))==null?o.defaults.attrs[C]:o.regex.isNumber.test(I)?parseFloat(I):I;C=="stroke-width"?this.attr("stroke",parseFloat(I)>0?this._stroke:null):C=="stroke"&&(this._stroke=I),C!="fill"&&C!="stroke"||(o.regex.isImage.test(I)&&(I=this.doc().defs().image(I,0,0)),I instanceof o.Image&&(I=this.doc().defs().pattern(0,0,function(){this.add(I)}))),typeof I=="number"?I=new o.Number(I):o.Color.isColor(I)?I=new o.Color(I):Array.isArray(I)&&(I=new o.Array(I)),C=="leading"?this.leading&&this.leading(I):typeof $=="string"?this.node.setAttributeNS($,C,I.toString()):this.node.setAttribute(C,I.toString()),!this.rebuild||C!="font-size"&&C!="x"||this.rebuild(C,I)}return this}}),o.extend(o.Element,{transform:function(C,I){var $;return s(C)!=="object"?($=new o.Matrix(this).extract(),typeof C=="string"?$[C]:$):($=new o.Matrix(this),I=!!I||!!C.relative,C.a!=null&&($=I?$.multiply(new o.Matrix(C)):new o.Matrix(C)),this.attr("transform",$))}}),o.extend(o.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(o.regex.transforms).slice(0,-1).map(function(C){var I=C.trim().split("(");return[I[0],I[1].split(o.regex.delimiter).map(function($){return parseFloat($)})]}).reduce(function(C,I){return I[0]=="matrix"?C.multiply(G(I[1])):C[I[0]].apply(C,I[1])},new o.Matrix)},toParent:function(C){if(this==C)return this;var I=this.screenCTM(),$=C.screenCTM().inverse();return this.addTo(C).untransform().transform($.multiply(I)),this},toDoc:function(){return this.toParent(this.doc())}}),o.Transformation=o.invent({create:function(C,I){if(arguments.length>1&&typeof I!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(C))for(var $=0,te=this.arguments.length;$<te;++$)this[this.arguments[$]]=C[$];else if(C&&s(C)==="object")for($=0,te=this.arguments.length;$<te;++$)this[this.arguments[$]]=C[this.arguments[$]];this.inversed=!1,I===!0&&(this.inversed=!0)}}),o.Translate=o.invent({parent:o.Matrix,inherit:o.Transformation,create:function(C,I){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),o.extend(o.Element,{style:function(C,I){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(s(C)==="object")for(var $ in C)this.style($,C[$]);else{if(!o.regex.isCss.test(C))return this.node.style[k(C)];for(C=C.split(/\s*;\s*/).filter(function(te){return!!te}).map(function(te){return te.split(/\s*:\s*/)});I=C.pop();)this.style(I[0],I[1])}else this.node.style[k(C)]=I===null||o.regex.isBlank.test(I)?"":I;return this}}),o.Parent=o.invent({create:function(C){this.constructor.call(this,C)},inherit:o.Element,extend:{children:function(){return o.utils.map(o.utils.filterSVGElements(this.node.childNodes),function(C){return o.adopt(C)})},add:function(C,I){return I==null?this.node.appendChild(C.node):C.node!=this.node.childNodes[I]&&this.node.insertBefore(C.node,this.node.childNodes[I]),this},put:function(C,I){return this.add(C,I),C},has:function(C){return this.index(C)>=0},index:function(C){return[].slice.call(this.node.childNodes).indexOf(C.node)},get:function(C){return o.adopt(this.node.childNodes[C])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(C,I){for(var $=this.children(),te=0,ce=$.length;te<ce;te++)$[te]instanceof o.Element&&C.apply($[te],[te,$]),I&&$[te]instanceof o.Container&&$[te].each(C,I);return this},removeElement:function(C){return this.node.removeChild(C.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),o.extend(o.Parent,{ungroup:function(C,I){return I===0||this instanceof o.Defs||this.node==o.parser.draw||(C=C||(this instanceof o.Doc?this:this.parent(o.Parent)),I=I||1/0,this.each(function(){return this instanceof o.Defs?this:this instanceof o.Parent?this.ungroup(C,I-1):this.toParent(C)}),this.node.firstChild||this.remove()),this},flatten:function(C,I){return this.ungroup(C,I)}}),o.Container=o.invent({create:function(C){this.constructor.call(this,C)},inherit:o.Parent}),o.ViewBox=o.invent({parent:o.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(C){o.Element.prototype[C]=function(I){return o.on(this.node,C,I),this}}),o.listeners=[],o.handlerMap=[],o.listenerId=0,o.on=function(C,I,$,te,ce){var de=$.bind(te||C.instance||C),we=(o.handlerMap.indexOf(C)+1||o.handlerMap.push(C))-1,Ce=I.split(".")[0],Ie=I.split(".")[1]||"*";o.listeners[we]=o.listeners[we]||{},o.listeners[we][Ce]=o.listeners[we][Ce]||{},o.listeners[we][Ce][Ie]=o.listeners[we][Ce][Ie]||{},$._svgjsListenerId||($._svgjsListenerId=++o.listenerId),o.listeners[we][Ce][Ie][$._svgjsListenerId]=de,C.addEventListener(Ce,de,ce||{passive:!0})},o.off=function(C,I,$){var te=o.handlerMap.indexOf(C),ce=I&&I.split(".")[0],de=I&&I.split(".")[1],we="";if(te!=-1)if($){if(typeof $=="function"&&($=$._svgjsListenerId),!$)return;o.listeners[te][ce]&&o.listeners[te][ce][de||"*"]&&(C.removeEventListener(ce,o.listeners[te][ce][de||"*"][$],!1),delete o.listeners[te][ce][de||"*"][$])}else if(de&&ce){if(o.listeners[te][ce]&&o.listeners[te][ce][de]){for(var Ce in o.listeners[te][ce][de])o.off(C,[ce,de].join("."),Ce);delete o.listeners[te][ce][de]}}else if(de)for(var Ie in o.listeners[te])for(var we in o.listeners[te][Ie])de===we&&o.off(C,[Ie,de].join("."));else if(ce){if(o.listeners[te][ce]){for(var we in o.listeners[te][ce])o.off(C,[ce,we].join("."));delete o.listeners[te][ce]}}else{for(var Ie in o.listeners[te])o.off(C,Ie);delete o.listeners[te],delete o.handlerMap[te]}},o.extend(o.Element,{on:function(C,I,$,te){return o.on(this.node,C,I,$,te),this},off:function(C,I){return o.off(this.node,C,I),this},fire:function(C,I){return C instanceof J.Event?this.node.dispatchEvent(C):this.node.dispatchEvent(C=new o.CustomEvent(C,{detail:I,cancelable:!0})),this._event=C,this},event:function(){return this._event}}),o.Defs=o.invent({create:"defs",inherit:o.Container}),o.G=o.invent({create:"g",inherit:o.Container,extend:{x:function(C){return C==null?this.transform("x"):this.transform({x:C-this.x()},!0)}},construct:{group:function(){return this.put(new o.G)}}}),o.Doc=o.invent({create:function(C){C&&((C=typeof C=="string"?n.getElementById(C):C).nodeName=="svg"?this.constructor.call(this,C):(this.constructor.call(this,o.create("svg")),C.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:o.Container,extend:{namespace:function(){return this.attr({xmlns:o.ns,version:"1.1"}).attr("xmlns:xlink",o.xlink,o.xmlns).attr("xmlns:svgjs",o.svgjs,o.xmlns)},defs:function(){var C;return this._defs||((C=this.node.getElementsByTagName("defs")[0])?this._defs=o.adopt(C):this._defs=new o.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,o.parser.draw&&!o.parser.draw.parentNode&&this.node.appendChild(o.parser.draw),this},clone:function(C){this.writeDataToDom();var I=this.node,$=q(I.cloneNode(!0));return C?(C.node||C).appendChild($.node):I.parentNode.insertBefore($.node,I.nextSibling),$}}}),o.extend(o.Element,{}),o.Gradient=o.invent({create:function(C){this.constructor.call(this,o.create(C+"Gradient")),this.type=C},inherit:o.Container,extend:{at:function(C,I,$){return this.put(new o.Stop).update(C,I,$)},update:function(C){return this.clear(),typeof C=="function"&&C.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(C,I,$){return C=="transform"&&(C="gradientTransform"),o.Container.prototype.attr.call(this,C,I,$)}},construct:{gradient:function(C,I){return this.defs().gradient(C,I)}}}),o.extend(o.Gradient,o.FX,{from:function(C,I){return(this._target||this).type=="radial"?this.attr({fx:new o.Number(C),fy:new o.Number(I)}):this.attr({x1:new o.Number(C),y1:new o.Number(I)})},to:function(C,I){return(this._target||this).type=="radial"?this.attr({cx:new o.Number(C),cy:new o.Number(I)}):this.attr({x2:new o.Number(C),y2:new o.Number(I)})}}),o.extend(o.Defs,{gradient:function(C,I){return this.put(new o.Gradient(C)).update(I)}}),o.Stop=o.invent({create:"stop",inherit:o.Element,extend:{update:function(C){return(typeof C=="number"||C instanceof o.Number)&&(C={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),C.opacity!=null&&this.attr("stop-opacity",C.opacity),C.color!=null&&this.attr("stop-color",C.color),C.offset!=null&&this.attr("offset",new o.Number(C.offset)),this}}}),o.Pattern=o.invent({create:"pattern",inherit:o.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(C){return this.clear(),typeof C=="function"&&C.call(this,this),this},toString:function(){return this.fill()},attr:function(C,I,$){return C=="transform"&&(C="patternTransform"),o.Container.prototype.attr.call(this,C,I,$)}},construct:{pattern:function(C,I,$){return this.defs().pattern(C,I,$)}}}),o.extend(o.Defs,{pattern:function(C,I,$){return this.put(new o.Pattern).update($).attr({x:0,y:0,width:C,height:I,patternUnits:"userSpaceOnUse"})}}),o.Shape=o.invent({create:function(C){this.constructor.call(this,C)},inherit:o.Element}),o.Symbol=o.invent({create:"symbol",inherit:o.Container,construct:{symbol:function(){return this.put(new o.Symbol)}}}),o.Use=o.invent({create:"use",inherit:o.Shape,extend:{element:function(C,I){return this.attr("href",(I||"")+"#"+C,o.xlink)}},construct:{use:function(C,I){return this.put(new o.Use).element(C,I)}}}),o.Rect=o.invent({create:"rect",inherit:o.Shape,construct:{rect:function(C,I){return this.put(new o.Rect).size(C,I)}}}),o.Circle=o.invent({create:"circle",inherit:o.Shape,construct:{circle:function(C){return this.put(new o.Circle).rx(new o.Number(C).divide(2)).move(0,0)}}}),o.extend(o.Circle,o.FX,{rx:function(C){return this.attr("r",C)},ry:function(C){return this.rx(C)}}),o.Ellipse=o.invent({create:"ellipse",inherit:o.Shape,construct:{ellipse:function(C,I){return this.put(new o.Ellipse).size(C,I).move(0,0)}}}),o.extend(o.Ellipse,o.Rect,o.FX,{rx:function(C){return this.attr("rx",C)},ry:function(C){return this.attr("ry",C)}}),o.extend(o.Circle,o.Ellipse,{x:function(C){return C==null?this.cx()-this.rx():this.cx(C+this.rx())},y:function(C){return C==null?this.cy()-this.ry():this.cy(C+this.ry())},cx:function(C){return C==null?this.attr("cx"):this.attr("cx",C)},cy:function(C){return C==null?this.attr("cy"):this.attr("cy",C)},width:function(C){return C==null?2*this.rx():this.rx(new o.Number(C).divide(2))},height:function(C){return C==null?2*this.ry():this.ry(new o.Number(C).divide(2))},size:function(C,I){var $=L(this,C,I);return this.rx(new o.Number($.width).divide(2)).ry(new o.Number($.height).divide(2))}}),o.Line=o.invent({create:"line",inherit:o.Shape,extend:{array:function(){return new o.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(C,I,$,te){return C==null?this.array():(C=I!==void 0?{x1:C,y1:I,x2:$,y2:te}:new o.PointArray(C).toLine(),this.attr(C))},move:function(C,I){return this.attr(this.array().move(C,I).toLine())},size:function(C,I){var $=L(this,C,I);return this.attr(this.array().size($.width,$.height).toLine())}},construct:{line:function(C,I,$,te){return o.Line.prototype.plot.apply(this.put(new o.Line),C!=null?[C,I,$,te]:[0,0,0,0])}}}),o.Polyline=o.invent({create:"polyline",inherit:o.Shape,construct:{polyline:function(C){return this.put(new o.Polyline).plot(C||new o.PointArray)}}}),o.Polygon=o.invent({create:"polygon",inherit:o.Shape,construct:{polygon:function(C){return this.put(new o.Polygon).plot(C||new o.PointArray)}}}),o.extend(o.Polyline,o.Polygon,{array:function(){return this._array||(this._array=new o.PointArray(this.attr("points")))},plot:function(C){return C==null?this.array():this.clear().attr("points",typeof C=="string"?C:this._array=new o.PointArray(C))},clear:function(){return delete this._array,this},move:function(C,I){return this.attr("points",this.array().move(C,I))},size:function(C,I){var $=L(this,C,I);return this.attr("points",this.array().size($.width,$.height))}}),o.extend(o.Line,o.Polyline,o.Polygon,{morphArray:o.PointArray,x:function(C){return C==null?this.bbox().x:this.move(C,this.bbox().y)},y:function(C){return C==null?this.bbox().y:this.move(this.bbox().x,C)},width:function(C){var I=this.bbox();return C==null?I.width:this.size(C,I.height)},height:function(C){var I=this.bbox();return C==null?I.height:this.size(I.width,C)}}),o.Path=o.invent({create:"path",inherit:o.Shape,extend:{morphArray:o.PathArray,array:function(){return this._array||(this._array=new o.PathArray(this.attr("d")))},plot:function(C){return C==null?this.array():this.clear().attr("d",typeof C=="string"?C:this._array=new o.PathArray(C))},clear:function(){return delete this._array,this}},construct:{path:function(C){return this.put(new o.Path).plot(C||new o.PathArray)}}}),o.Image=o.invent({create:"image",inherit:o.Shape,extend:{load:function(C){if(!C)return this;var I=this,$=new J.Image;return o.on($,"load",function(){o.off($);var te=I.parent(o.Pattern);te!==null&&(I.width()==0&&I.height()==0&&I.size($.width,$.height),te&&te.width()==0&&te.height()==0&&te.size(I.width(),I.height()),typeof I._loaded=="function"&&I._loaded.call(I,{width:$.width,height:$.height,ratio:$.width/$.height,url:C}))}),o.on($,"error",function(te){o.off($),typeof I._error=="function"&&I._error.call(I,te)}),this.attr("href",$.src=this.src=C,o.xlink)},loaded:function(C){return this._loaded=C,this},error:function(C){return this._error=C,this}},construct:{image:function(C,I,$){return this.put(new o.Image).load(C).size(I||0,$||I||0)}}}),o.Text=o.invent({create:function(){this.constructor.call(this,o.create("text")),this.dom.leading=new o.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",o.defaults.attrs["font-family"])},inherit:o.Shape,extend:{x:function(C){return C==null?this.attr("x"):this.attr("x",C)},text:function(C){if(C===void 0){C="";for(var I=this.node.childNodes,$=0,te=I.length;$<te;++$)$!=0&&I[$].nodeType!=3&&o.adopt(I[$]).dom.newLined==1&&(C+=`
`),C+=I[$].textContent;return C}if(this.clear().build(!0),typeof C=="function")C.call(this,this);else{$=0;for(var ce=(C=C.split(`
`)).length;$<ce;$++)this.tspan(C[$]).newLine()}return this.build(!1).rebuild()},size:function(C){return this.attr("font-size",C).rebuild()},leading:function(C){return C==null?this.dom.leading:(this.dom.leading=new o.Number(C),this.rebuild())},lines:function(){var C=(this.textPath&&this.textPath()||this).node,I=o.utils.map(o.utils.filterSVGElements(C.childNodes),function($){return o.adopt($)});return new o.Set(I)},rebuild:function(C){if(typeof C=="boolean"&&(this._rebuild=C),this._rebuild){var I=this,$=0,te=this.dom.leading*new o.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(I.textPath()||this.attr("x",I.attr("x")),this.text()==`
`?$+=te:(this.attr("dy",te+$),$=0))}),this.fire("rebuild")}return this},build:function(C){return this._build=!!C,this},setData:function(C){return this.dom=C,this.dom.leading=new o.Number(C.leading||1.3),this}},construct:{text:function(C){return this.put(new o.Text).text(C)},plain:function(C){return this.put(new o.Text).plain(C)}}}),o.Tspan=o.invent({create:"tspan",inherit:o.Shape,extend:{text:function(C){return C==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof C=="function"?C.call(this,this):this.plain(C),this)},dx:function(C){return this.attr("dx",C)},dy:function(C){return this.attr("dy",C)},newLine:function(){var C=this.parent(o.Text);return this.dom.newLined=!0,this.dy(C.dom.leading*C.attr("font-size")).attr("x",C.x())}}}),o.extend(o.Text,o.Tspan,{plain:function(C){return this._build===!1&&this.clear(),this.node.appendChild(n.createTextNode(C)),this},tspan:function(C){var I=(this.textPath&&this.textPath()||this).node,$=new o.Tspan;return this._build===!1&&this.clear(),I.appendChild($.node),$.text(C)},clear:function(){for(var C=(this.textPath&&this.textPath()||this).node;C.hasChildNodes();)C.removeChild(C.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),o.TextPath=o.invent({create:"textPath",inherit:o.Parent,parent:o.Text,construct:{morphArray:o.PathArray,array:function(){var C=this.track();return C?C.array():null},plot:function(C){var I=this.track(),$=null;return I&&($=I.plot(C)),C==null?$:this},track:function(){var C=this.textPath();if(C)return C.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return o.adopt(this.node.firstChild)}}}),o.Nested=o.invent({create:function(){this.constructor.call(this,o.create("svg")),this.style("overflow","visible")},inherit:o.Container,construct:{nested:function(){return this.put(new o.Nested)}}});var h={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(C,I){return I=="color"?C:C+"-"+I}};function x(C,I,$,te){return $+te.replace(o.regex.dots," .")}function k(C){return C.toLowerCase().replace(/-(.)/g,function(I,$){return $.toUpperCase()})}function E(C){return C.charAt(0).toUpperCase()+C.slice(1)}function N(C){var I=C.toString(16);return I.length==1?"0"+I:I}function L(C,I,$){if(I==null||$==null){var te=C.bbox();I==null?I=te.width/te.height*$:$==null&&($=te.height/te.width*I)}return{width:I,height:$}}function W(C,I,$){return{x:I*C.a+$*C.c+0,y:I*C.b+$*C.d+0}}function G(C){return{a:C[0],b:C[1],c:C[2],d:C[3],e:C[4],f:C[5]}}function q(C){for(var I=C.childNodes.length-1;I>=0;I--)C.childNodes[I]instanceof J.SVGElement&&q(C.childNodes[I]);return o.adopt(C).id(o.eid(C.nodeName))}function Q(C){return Math.abs(C)>1e-37?C:0}["fill","stroke"].forEach(function(C){var I={};I[C]=function($){if($===void 0)return this;if(typeof $=="string"||o.Color.isRgb($)||$&&typeof $.fill=="function")this.attr(C,$);else for(var te=h[C].length-1;te>=0;te--)$[h[C][te]]!=null&&this.attr(h.prefix(C,h[C][te]),$[h[C][te]]);return this},o.extend(o.Element,o.FX,I)}),o.extend(o.Element,o.FX,{translate:function(C,I){return this.transform({x:C,y:I})},matrix:function(C){return this.attr("transform",new o.Matrix(arguments.length==6?[].slice.call(arguments):C))},opacity:function(C){return this.attr("opacity",C)},dx:function(C){return this.x(new o.Number(C).plus(this instanceof o.FX?0:this.x()),!0)},dy:function(C){return this.y(new o.Number(C).plus(this instanceof o.FX?0:this.y()),!0)}}),o.extend(o.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(C){return this.node.getPointAtLength(C)}}),o.Set=o.invent({create:function(C){Array.isArray(C)?this.members=C:this.clear()},extend:{add:function(){for(var C=[].slice.call(arguments),I=0,$=C.length;I<$;I++)this.members.push(C[I]);return this},remove:function(C){var I=this.index(C);return I>-1&&this.members.splice(I,1),this},each:function(C){for(var I=0,$=this.members.length;I<$;I++)C.apply(this.members[I],[I,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(C){return this.index(C)>=0},index:function(C){return this.members.indexOf(C)},get:function(C){return this.members[C]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(C){return new o.Set(C)}}}),o.FX.Set=o.invent({create:function(C){this.set=C}}),o.Set.inherit=function(){var C=[];for(var I in o.Shape.prototype)typeof o.Shape.prototype[I]=="function"&&typeof o.Set.prototype[I]!="function"&&C.push(I);for(var I in C.forEach(function(te){o.Set.prototype[te]=function(){for(var ce=0,de=this.members.length;ce<de;ce++)this.members[ce]&&typeof this.members[ce][te]=="function"&&this.members[ce][te].apply(this.members[ce],arguments);return te=="animate"?this.fx||(this.fx=new o.FX.Set(this)):this}}),C=[],o.FX.prototype)typeof o.FX.prototype[I]=="function"&&typeof o.FX.Set.prototype[I]!="function"&&C.push(I);C.forEach(function($){o.FX.Set.prototype[$]=function(){for(var te=0,ce=this.set.members.length;te<ce;te++)this.set.members[te].fx[$].apply(this.set.members[te].fx,arguments);return this}})},o.extend(o.Element,{}),o.extend(o.Element,{remember:function(C,I){if(s(arguments[0])==="object")for(var $ in C)this.remember($,C[$]);else{if(arguments.length==1)return this.memory()[C];this.memory()[C]=I}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var C=arguments.length-1;C>=0;C--)delete this.memory()[arguments[C]];return this},memory:function(){return this._memory||(this._memory={})}}),o.get=function(C){var I=n.getElementById(function($){var te=($||"").toString().match(o.regex.reference);if(te)return te[1]}(C)||C);return o.adopt(I)},o.select=function(C,I){return new o.Set(o.utils.map((I||n).querySelectorAll(C),function($){return o.adopt($)}))},o.extend(o.Parent,{select:function(C){return o.select(C,this.node)}});var re="abcdef".split("");if(typeof J.CustomEvent!="function"){var ie=function(C,I){I=I||{bubbles:!1,cancelable:!1,detail:void 0};var $=n.createEvent("CustomEvent");return $.initCustomEvent(C,I.bubbles,I.cancelable,I.detail),$};ie.prototype=J.Event.prototype,o.CustomEvent=ie}else o.CustomEvent=J.CustomEvent;return o},s(t)==="object"?e.exports=Pn.document?qn(Pn,Pn.document):function(J){return qn(J,J.document)}:Pn.SVG=qn(Pn,Pn.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(d,h){return this.add(d,h),!d.attr("in")&&this.autoSetIn&&d.attr("in",this.source),d.attr("result")||d.attr("result",d),d},blend:function(d,h,x){return this.put(new SVG.BlendEffect(d,h,x))},colorMatrix:function(d,h){return this.put(new SVG.ColorMatrixEffect(d,h))},convolveMatrix:function(d){return this.put(new SVG.ConvolveMatrixEffect(d))},componentTransfer:function(d){return this.put(new SVG.ComponentTransferEffect(d))},composite:function(d,h,x){return this.put(new SVG.CompositeEffect(d,h,x))},flood:function(d,h){return this.put(new SVG.FloodEffect(d,h))},offset:function(d,h){return this.put(new SVG.OffsetEffect(d,h))},image:function(d){return this.put(new SVG.ImageEffect(d))},merge:function(){var d=[void 0];for(var h in arguments)d.push(arguments[h]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,d)))},gaussianBlur:function(d,h){return this.put(new SVG.GaussianBlurEffect(d,h))},morphology:function(d,h){return this.put(new SVG.MorphologyEffect(d,h))},diffuseLighting:function(d,h,x){return this.put(new SVG.DiffuseLightingEffect(d,h,x))},displacementMap:function(d,h,x,k,E){return this.put(new SVG.DisplacementMapEffect(d,h,x,k,E))},specularLighting:function(d,h,x,k){return this.put(new SVG.SpecularLightingEffect(d,h,x,k))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(d,h,x,k,E){return this.put(new SVG.TurbulenceEffect(d,h,x,k,E))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(d){var h=this.put(new SVG.Filter);return typeof d=="function"&&d.call(h,h),h}}),SVG.extend(SVG.Container,{filter:function(d){return this.defs().filter(d)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(d){return this.filterer=d instanceof SVG.Element?d:this.doc().filter(d),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(d){return this.filterer&&d===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(d){return d==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",d)},result:function(d){return d==null?this.attr("result"):this.attr("result",d)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(d){return d==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",d)},result:function(d){return d==null?this.attr("result"):this.attr("result",d)},toString:function(){return this.result()}}});var J={blend:function(d,h){return this.parent()&&this.parent().blend(this,d,h)},colorMatrix:function(d,h){return this.parent()&&this.parent().colorMatrix(d,h).in(this)},convolveMatrix:function(d){return this.parent()&&this.parent().convolveMatrix(d).in(this)},componentTransfer:function(d){return this.parent()&&this.parent().componentTransfer(d).in(this)},composite:function(d,h){return this.parent()&&this.parent().composite(this,d,h)},flood:function(d,h){return this.parent()&&this.parent().flood(d,h)},offset:function(d,h){return this.parent()&&this.parent().offset(d,h).in(this)},image:function(d){return this.parent()&&this.parent().image(d)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(d,h){return this.parent()&&this.parent().gaussianBlur(d,h).in(this)},morphology:function(d,h){return this.parent()&&this.parent().morphology(d,h).in(this)},diffuseLighting:function(d,h,x){return this.parent()&&this.parent().diffuseLighting(d,h,x).in(this)},displacementMap:function(d,h,x,k){return this.parent()&&this.parent().displacementMap(this,d,h,x,k)},specularLighting:function(d,h,x,k){return this.parent()&&this.parent().specularLighting(d,h,x,k).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(d,h,x,k,E){return this.parent()&&this.parent().turbulence(d,h,x,k,E).in(this)}};SVG.extend(SVG.Effect,J),SVG.extend(SVG.ParentEffect,J),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(d){this.attr("in",d)}}});var n={blend:function(d,h,x){this.attr({in:d,in2:h,mode:x||"normal"})},colorMatrix:function(d,h){d=="matrix"&&(h=u(h)),this.attr({type:d,values:h===void 0?null:h})},convolveMatrix:function(d){d=u(d),this.attr({order:Math.sqrt(d.split(" ").length),kernelMatrix:d})},composite:function(d,h,x){this.attr({in:d,in2:h,operator:x})},flood:function(d,h){this.attr("flood-color",d),h!=null&&this.attr("flood-opacity",h)},offset:function(d,h){this.attr({dx:d,dy:h})},image:function(d){this.attr("href",d,SVG.xlink)},displacementMap:function(d,h,x,k,E){this.attr({in:d,in2:h,scale:x,xChannelSelector:k,yChannelSelector:E})},gaussianBlur:function(d,h){d!=null||h!=null?this.attr("stdDeviation",function(x){if(!Array.isArray(x))return x;for(var k=0,E=x.length,N=[];k<E;k++)N.push(x[k]);return N.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(d,h){this.attr({operator:d,radius:h})},tile:function(){},turbulence:function(d,h,x,k,E){this.attr({numOctaves:h,seed:x,stitchTiles:k,baseFrequency:d,type:E})}},o={merge:function(){var d;if(arguments[0]instanceof SVG.Set){var h=this;arguments[0].each(function(k){this instanceof SVG.MergeNode?h.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&h.put(new SVG.MergeNode(this))})}else{d=Array.isArray(arguments[0])?arguments[0]:arguments;for(var x=0;x<d.length;x++)d[x]instanceof SVG.MergeNode?this.put(d[x]):this.put(new SVG.MergeNode(d[x]))}},componentTransfer:function(d){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(x){this[x]=new SVG["Func"+x.toUpperCase()]("identity"),this.rgb.add(this[x]),this.node.appendChild(this[x].node)}).bind(this)),d)for(var h in d.rgb&&(["r","g","b"].forEach((function(x){this[x].attr(d.rgb)}).bind(this)),delete d.rgb),d)this[h].attr(d[h])},diffuseLighting:function(d,h,x){this.attr({surfaceScale:d,diffuseConstant:h,kernelUnitLength:x})},specularLighting:function(d,h,x,k){this.attr({surfaceScale:d,diffuseConstant:h,specularExponent:x,kernelUnitLength:k})}},i={distantLight:function(d,h){this.attr({azimuth:d,elevation:h})},pointLight:function(d,h,x){this.attr({x:d,y:h,z:x})},spotLight:function(d,h,x,k,E,N){this.attr({x:d,y:h,z:x,pointsAtX:k,pointsAtY:E,pointsAtZ:N})},mergeNode:function(d){this.attr("in",d)}};function u(d){return Array.isArray(d)&&(d=new SVG.Array(d)),d.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function c(){var d=function(){};for(var h in typeof arguments[arguments.length-1]=="function"&&(d=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var x in arguments[h])d(arguments[h][x],x,arguments[h])}["r","g","b","a"].forEach(function(d){i["Func"+d.toUpperCase()]=function(h){switch(this.attr("type",h),h){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),c(n,function(d,h){var x=h.charAt(0).toUpperCase()+h.slice(1);SVG[x+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+x)),d.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),c(o,function(d,h){var x=h.charAt(0).toUpperCase()+h.slice(1);SVG[x+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+x)),d.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),c(i,function(d,h){var x=h.charAt(0).toUpperCase()+h.slice(1);SVG[x]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+x)),d.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(d){return d instanceof SVG.MergeNode?this.add(d,0):this.add(new SVG.MergeNode(d),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(d){return d==null?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",d)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}).call(void 0),function(){function J(c,d,h,x,k,E,N){for(var L=c.slice(d,h||N),W=x.slice(k,E||N),G=0,q={pos:[0,0],start:[0,0]},Q={pos:[0,0],start:[0,0]};L[G]=n.call(q,L[G]),W[G]=n.call(Q,W[G]),L[G][0]!=W[G][0]||L[G][0]=="M"||L[G][0]=="A"&&(L[G][4]!=W[G][4]||L[G][5]!=W[G][5])?(Array.prototype.splice.apply(L,[G,1].concat(i.call(q,L[G]))),Array.prototype.splice.apply(W,[G,1].concat(i.call(Q,W[G])))):(L[G]=o.call(q,L[G]),W[G]=o.call(Q,W[G])),!(++G==L.length&&G==W.length);)G==L.length&&L.push(["C",q.pos[0],q.pos[1],q.pos[0],q.pos[1],q.pos[0],q.pos[1]]),G==W.length&&W.push(["C",Q.pos[0],Q.pos[1],Q.pos[0],Q.pos[1],Q.pos[0],Q.pos[1]]);return{start:L,dest:W}}function n(c){switch(c[0]){case"z":case"Z":c[0]="L",c[1]=this.start[0],c[2]=this.start[1];break;case"H":c[0]="L",c[2]=this.pos[1];break;case"V":c[0]="L",c[2]=c[1],c[1]=this.pos[0];break;case"T":c[0]="Q",c[3]=c[1],c[4]=c[2],c[1]=this.reflection[1],c[2]=this.reflection[0];break;case"S":c[0]="C",c[6]=c[4],c[5]=c[3],c[4]=c[2],c[3]=c[1],c[2]=this.reflection[1],c[1]=this.reflection[0]}return c}function o(c){var d=c.length;return this.pos=[c[d-2],c[d-1]],"SCQT".indexOf(c[0])!=-1&&(this.reflection=[2*this.pos[0]-c[d-4],2*this.pos[1]-c[d-3]]),c}function i(c){var d=[c];switch(c[0]){case"M":return this.pos=this.start=[c[1],c[2]],d;case"L":c[5]=c[3]=c[1],c[6]=c[4]=c[2],c[1]=this.pos[0],c[2]=this.pos[1];break;case"Q":c[6]=c[4],c[5]=c[3],c[4]=1*c[4]/3+2*c[2]/3,c[3]=1*c[3]/3+2*c[1]/3,c[2]=1*this.pos[1]/3+2*c[2]/3,c[1]=1*this.pos[0]/3+2*c[1]/3;break;case"A":d=function(h,x){var k,E,N,L,W,G,q,Q,re,ie,C,I,$,te,ce,de,we,Ce,Ie,We,Fe,$e,Ke,st,pt,xt,Mt=Math.abs(x[1]),_t=Math.abs(x[2]),jt=x[3]%360,Er=x[4],Kn=x[5],ms=x[6],ai=x[7],ar=new SVG.Point(h),cr=new SVG.Point(ms,ai),ys=[];if(Mt===0||_t===0||ar.x===cr.x&&ar.y===cr.y)return[["C",ar.x,ar.y,cr.x,cr.y,cr.x,cr.y]];for(k=new SVG.Point((ar.x-cr.x)/2,(ar.y-cr.y)/2).transform(new SVG.Matrix().rotate(jt)),(E=k.x*k.x/(Mt*Mt)+k.y*k.y/(_t*_t))>1&&(Mt*=E=Math.sqrt(E),_t*=E),N=new SVG.Matrix().rotate(jt).scale(1/Mt,1/_t).rotate(-jt),ar=ar.transform(N),cr=cr.transform(N),L=[cr.x-ar.x,cr.y-ar.y],G=L[0]*L[0]+L[1]*L[1],W=Math.sqrt(G),L[0]/=W,L[1]/=W,q=G<4?Math.sqrt(1-G/4):0,Er===Kn&&(q*=-1),Q=new SVG.Point((cr.x+ar.x)/2+q*-L[1],(cr.y+ar.y)/2+q*L[0]),re=new SVG.Point(ar.x-Q.x,ar.y-Q.y),ie=new SVG.Point(cr.x-Q.x,cr.y-Q.y),C=Math.acos(re.x/Math.sqrt(re.x*re.x+re.y*re.y)),re.y<0&&(C*=-1),I=Math.acos(ie.x/Math.sqrt(ie.x*ie.x+ie.y*ie.y)),ie.y<0&&(I*=-1),Kn&&C>I&&(I+=2*Math.PI),!Kn&&C<I&&(I-=2*Math.PI),te=Math.ceil(2*Math.abs(C-I)/Math.PI),de=[],we=C,$=(I-C)/te,ce=4*Math.tan($/4)/3,Fe=0;Fe<=te;Fe++)Ie=Math.cos(we),Ce=Math.sin(we),We=new SVG.Point(Q.x+Ie,Q.y+Ce),de[Fe]=[new SVG.Point(We.x+ce*Ce,We.y-ce*Ie),We,new SVG.Point(We.x-ce*Ce,We.y+ce*Ie)],we+=$;for(de[0][0]=de[0][1].clone(),de[de.length-1][2]=de[de.length-1][1].clone(),N=new SVG.Matrix().rotate(jt).scale(Mt,_t).rotate(-jt),Fe=0,$e=de.length;Fe<$e;Fe++)de[Fe][0]=de[Fe][0].transform(N),de[Fe][1]=de[Fe][1].transform(N),de[Fe][2]=de[Fe][2].transform(N);for(Fe=1,$e=de.length;Fe<$e;Fe++)Ke=(We=de[Fe-1][2]).x,st=We.y,pt=(We=de[Fe][0]).x,xt=We.y,ms=(We=de[Fe][1]).x,ai=We.y,ys.push(["C",Ke,st,pt,xt,ms,ai]);return ys}(this.pos,c),c=d[0]}return c[0]="C",this.pos=[c[5],c[6]],this.reflection=[2*c[5]-c[3],2*c[6]-c[4]],d}function u(c,d){if(d===!1)return!1;for(var h=d,x=c.length;h<x;++h)if(c[h][0]=="M")return h;return!1}SVG.extend(SVG.PathArray,{morph:function(c){for(var d=this.value,h=this.parse(c),x=0,k=0,E=!1,N=!1;x!==!1||k!==!1;){var L;E=u(d,x!==!1&&x+1),N=u(h,k!==!1&&k+1),x===!1&&(x=(L=new SVG.PathArray(W.start).bbox()).height==0||L.width==0?d.push(d[0])-1:d.push(["M",L.x+L.width/2,L.y+L.height/2])-1),k===!1&&(k=(L=new SVG.PathArray(W.dest).bbox()).height==0||L.width==0?h.push(h[0])-1:h.push(["M",L.x+L.width/2,L.y+L.height/2])-1);var W=J(d,x,E,h,k,N);d=d.slice(0,x).concat(W.start,E===!1?[]:d.slice(E)),h=h.slice(0,k).concat(W.dest,N===!1?[]:h.slice(N)),x=E!==!1&&x+W.start.length,k=N!==!1&&k+W.dest.length}return this.value=d,this.destination=new SVG.PathArray,this.destination.value=h,this}})}(),(function(){function J(n){n.remember("_draggable",this),this.el=n}J.prototype.init=function(n,o){var i=this;this.constraint=n,this.value=o,this.el.on("mousedown.drag",function(u){i.start(u)}),this.el.on("touchstart.drag",function(u){i.start(u)})},J.prototype.transformPoint=function(n,o){var i=(n=n||window.event).changedTouches&&n.changedTouches[0]||n;return this.p.x=i.clientX-(o||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},J.prototype.getBBox=function(){var n=this.el.bbox();return this.el instanceof SVG.Nested&&(n=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(n.x=this.el.x(),n.y=this.el.y()),n},J.prototype.start=function(n){if(n.type!="click"&&n.type!="mousedown"&&n.type!="mousemove"||(n.which||n.buttons)==1){var o=this;if(this.el.fire("beforedrag",{event:n,handler:this}),!this.el.event().defaultPrevented){n.preventDefault(),n.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,u=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(n,i),box:u,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(c){o.drag(c)}),SVG.on(window,"touchmove.drag",function(c){o.drag(c)}),SVG.on(window,"mouseup.drag",function(c){o.end(c)}),SVG.on(window,"touchend.drag",function(c){o.end(c)}),this.el.fire("dragstart",{event:n,p:this.startPoints.point,m:this.m,handler:this})}}},J.prototype.drag=function(n){var o=this.getBBox(),i=this.transformPoint(n),u=this.startPoints.box.x+i.x-this.startPoints.point.x,c=this.startPoints.box.y+i.y-this.startPoints.point.y,d=this.constraint,h=i.x-this.startPoints.point.x,x=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:n,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if(typeof d=="function"){var k=d.call(this.el,u,c,this.m);typeof k=="boolean"&&(k={x:k,y:k}),k.x===!0?this.el.x(u):k.x!==!1&&this.el.x(k.x),k.y===!0?this.el.y(c):k.y!==!1&&this.el.y(k.y)}else typeof d=="object"&&(d.minX!=null&&u<d.minX?h=(u=d.minX)-this.startPoints.box.x:d.maxX!=null&&u>d.maxX-o.width&&(h=(u=d.maxX-o.width)-this.startPoints.box.x),d.minY!=null&&c<d.minY?x=(c=d.minY)-this.startPoints.box.y:d.maxY!=null&&c>d.maxY-o.height&&(x=(c=d.maxY-o.height)-this.startPoints.box.y),d.snapToGrid!=null&&(u-=u%d.snapToGrid,c-=c%d.snapToGrid,h-=h%d.snapToGrid,x-=x%d.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:h,y:x},!0):this.el.move(u,c));return i},J.prototype.end=function(n){var o=this.drag(n);this.el.fire("dragend",{event:n,p:o,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(n,o){typeof n!="function"&&typeof n!="object"||(o=n,n=!0);var i=this.remember("_draggable")||new J(this);return(n=n===void 0||n)?i.init(o||{},n):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function J(n){this.el=n,n.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(o,i,u){var c=typeof o!="string"?o:i[o];return u?c/2:c},this.pointCoords=function(o,i){var u=this.pointsList[o];return{x:this.pointCoord(u[0],i,o==="t"||o==="b"),y:this.pointCoord(u[1],i,o==="r"||o==="l")}}}J.prototype.init=function(n,o){var i=this.el.bbox();this.options={};var u=this.el.selectize.defaults.points;for(var c in this.el.selectize.defaults)this.options[c]=this.el.selectize.defaults[c],o[c]!==void 0&&(this.options[c]=o[c]);var d=["points","pointsExclude"];for(var c in d){var h=this.options[d[c]];typeof h=="string"?h=h.length>0?h.split(/\s*,\s*/i):[]:typeof h=="boolean"&&d[c]==="points"&&(h=h?u:[]),this.options[d[c]]=h}this.options.points=[u,this.options.points].reduce(function(x,k){return x.filter(function(E){return k.indexOf(E)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(x,k){return x.filter(function(E){return k.indexOf(E)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(n):this.selectRect(n),this.observe(),this.cleanup()},J.prototype.selectPoints=function(n){return this.pointSelection.isSelected=n,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},J.prototype.getPointArray=function(){var n=this.el.bbox();return this.el.array().valueOf().map(function(o){return[o[0]-n.x,o[1]-n.y]})},J.prototype.drawPoints=function(){for(var n=this,o=this.getPointArray(),i=0,u=o.length;i<u;++i){var c=function(h){return function(x){(x=x||window.event).preventDefault?x.preventDefault():x.returnValue=!1,x.stopPropagation();var k=x.pageX||x.touches[0].pageX,E=x.pageY||x.touches[0].pageY;n.el.fire("point",{x:k,y:E,i:h,event:x})}}(i),d=this.drawPoint(o[i][0],o[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",c).on("mousedown",c);this.pointSelection.set.add(d)}},J.prototype.drawPoint=function(n,o){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(n,o);case"rect":return this.drawRect(n,o);default:if(typeof i=="function")return i.call(this,n,o);throw new Error("Unknown "+i+" point type!")}},J.prototype.drawCircle=function(n,o){return this.nested.circle(this.options.pointSize).center(n,o)},J.prototype.drawRect=function(n,o){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(n,o)},J.prototype.updatePointSelection=function(){var n=this.getPointArray();this.pointSelection.set.each(function(o){this.cx()===n[o][0]&&this.cy()===n[o][1]||this.center(n[o][0],n[o][1])})},J.prototype.updateRectSelection=function(){var n=this,o=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:o.width,height:o.height}),this.options.points.length&&this.options.points.map(function(u,c){var d=n.pointCoords(u,o);n.rectSelection.set.get(c+1).center(d.x,d.y)}),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(o.width/2,20)}},J.prototype.selectRect=function(n){var o=this,i=this.el.bbox();function u(h){return function(x){(x=x||window.event).preventDefault?x.preventDefault():x.returnValue=!1,x.stopPropagation();var k=x.pageX||x.touches[0].pageX,E=x.pageY||x.touches[0].pageY;o.el.fire(h,{x:k,y:E,event:x})}}if(this.rectSelection.isSelected=n,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(h,x){var k=o.pointCoords(h,i),E=o.drawPoint(k.x,k.y).attr("class",o.options.classPoints+"_"+h).on("mousedown",u(h)).on("touchstart",u(h));o.rectSelection.set.add(E)}),this.rectSelection.set.each(function(){this.addClass(o.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var c=function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var x=h.pageX||h.touches[0].pageX,k=h.pageY||h.touches[0].pageY;o.el.fire("rot",{x,y:k,event:h})},d=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",c).on("mousedown",c);this.rectSelection.set.add(d)}},J.prototype.handler=function(){var n=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},J.prototype.observe=function(){var n=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){n.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){n.handler()})},J.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(n,o){return typeof n=="object"&&(o=n,n=!0),(this.remember("_selectHandler")||new J(this)).init(n===void 0||n,o||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function J(n){n.remember("_resizeHandler",this),this.el=n,this.parameters={},this.lastUpdateCall=null,this.p=n.doc().node.createSVGPoint()}J.prototype.transformPoint=function(n,o,i){return this.p.x=n-(this.offset.x-window.pageXOffset),this.p.y=o-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},J.prototype._extractPosition=function(n){return{x:n.clientX!=null?n.clientX:n.touches[0].clientX,y:n.clientY!=null?n.clientY:n.touches[0].clientY}},J.prototype.init=function(n){var o=this;if(this.stop(),n!=="stop"){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],n[i]!==void 0&&(this.options[i]=n[i]);this.el.on("lt.resize",function(u){o.resize(u||window.event)}),this.el.on("rt.resize",function(u){o.resize(u||window.event)}),this.el.on("rb.resize",function(u){o.resize(u||window.event)}),this.el.on("lb.resize",function(u){o.resize(u||window.event)}),this.el.on("t.resize",function(u){o.resize(u||window.event)}),this.el.on("r.resize",function(u){o.resize(u||window.event)}),this.el.on("b.resize",function(u){o.resize(u||window.event)}),this.el.on("l.resize",function(u){o.resize(u||window.event)}),this.el.on("rot.resize",function(u){o.resize(u||window.event)}),this.el.on("point.resize",function(u){o.resize(u||window.event)}),this.update()}},J.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},J.prototype.resize=function(n){var o=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(n.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:n.detail.x,y:n.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),n.detail.i!==void 0){var u=this.el.array().valueOf();this.parameters.i=n.detail.i,this.parameters.pointCoords=[u[n.detail.i][0],u[n.detail.i][1]]}switch(n.type){case"lt":this.calc=function(c,d){var h=this.snapToGrid(c,d);if(this.parameters.box.width-h[0]>0&&this.parameters.box.height-h[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+h[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-h[0]);h=this.checkAspectRatio(h),this.el.move(this.parameters.box.x+h[0],this.parameters.box.y+h[1]).size(this.parameters.box.width-h[0],this.parameters.box.height-h[1])}};break;case"rt":this.calc=function(c,d){var h=this.snapToGrid(c,d,2);if(this.parameters.box.width+h[0]>0&&this.parameters.box.height-h[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-h[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+h[0]);h=this.checkAspectRatio(h,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+h[1]).size(this.parameters.box.width+h[0],this.parameters.box.height-h[1])}};break;case"rb":this.calc=function(c,d){var h=this.snapToGrid(c,d,0);if(this.parameters.box.width+h[0]>0&&this.parameters.box.height+h[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-h[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+h[0]);h=this.checkAspectRatio(h),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+h[0],this.parameters.box.height+h[1])}};break;case"lb":this.calc=function(c,d){var h=this.snapToGrid(c,d,1);if(this.parameters.box.width-h[0]>0&&this.parameters.box.height+h[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+h[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-h[0]);h=this.checkAspectRatio(h,!0),this.el.move(this.parameters.box.x+h[0],this.parameters.box.y).size(this.parameters.box.width-h[0],this.parameters.box.height+h[1])}};break;case"t":this.calc=function(c,d){var h=this.snapToGrid(c,d,2);if(this.parameters.box.height-h[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+h[1]).height(this.parameters.box.height-h[1])}};break;case"r":this.calc=function(c,d){var h=this.snapToGrid(c,d,0);if(this.parameters.box.width+h[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+h[0])}};break;case"b":this.calc=function(c,d){var h=this.snapToGrid(c,d,0);if(this.parameters.box.height+h[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+h[1])}};break;case"l":this.calc=function(c,d){var h=this.snapToGrid(c,d,1);if(this.parameters.box.width-h[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+h[0],this.parameters.box.y).width(this.parameters.box.width-h[0])}};break;case"rot":this.calc=function(c,d){var h=c+this.parameters.p.x,x=d+this.parameters.p.y,k=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),E=Math.atan2(x-this.parameters.box.y-this.parameters.box.height/2,h-this.parameters.box.x-this.parameters.box.width/2),N=this.parameters.rotation+180*(E-k)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(N-N%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(c,d){var h=this.snapToGrid(c,d,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),x=this.el.array().valueOf();x[this.parameters.i][0]=this.parameters.pointCoords[0]+h[0],x[this.parameters.i][1]=this.parameters.pointCoords[1]+h[1],this.el.plot(x)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:n}),SVG.on(window,"touchmove.resize",function(c){o.update(c||window.event)}),SVG.on(window,"touchend.resize",function(){o.done()}),SVG.on(window,"mousemove.resize",function(c){o.update(c||window.event)}),SVG.on(window,"mouseup.resize",function(){o.done()})},J.prototype.update=function(n){if(n){var o=this._extractPosition(n),i=this.transformPoint(o.x,o.y),u=i.x-this.parameters.p.x,c=i.y-this.parameters.p.y;this.lastUpdateCall=[u,c],this.calc(u,c),this.el.fire("resizing",{dx:u,dy:c,event:n})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},J.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},J.prototype.snapToGrid=function(n,o,i,u){var c;return u!==void 0?c=[(i+n)%this.options.snapToGrid,(u+o)%this.options.snapToGrid]:(i=i??3,c=[(this.parameters.box.x+n+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+o+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),n<0&&(c[0]-=this.options.snapToGrid),o<0&&(c[1]-=this.options.snapToGrid),n-=Math.abs(c[0])<this.options.snapToGrid/2?c[0]:c[0]-(n<0?-this.options.snapToGrid:this.options.snapToGrid),o-=Math.abs(c[1])<this.options.snapToGrid/2?c[1]:c[1]-(o<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(n,o,i,u)},J.prototype.constraintToBox=function(n,o,i,u){var c,d,h=this.options.constraint||{};return u!==void 0?(c=i,d=u):(c=this.parameters.box.x+(1&i?0:this.parameters.box.width),d=this.parameters.box.y+(2&i?0:this.parameters.box.height)),h.minX!==void 0&&c+n<h.minX&&(n=h.minX-c),h.maxX!==void 0&&c+n>h.maxX&&(n=h.maxX-c),h.minY!==void 0&&d+o<h.minY&&(o=h.minY-d),h.maxY!==void 0&&d+o>h.maxY&&(o=h.maxY-d),[n,o]},J.prototype.checkAspectRatio=function(n,o){if(!this.options.saveAspectRatio)return n;var i=n.slice(),u=this.parameters.box.width/this.parameters.box.height,c=this.parameters.box.width+n[0],d=this.parameters.box.height-n[1],h=c/d;return h<u?(i[1]=c/u-this.parameters.box.height,o&&(i[1]=-i[1])):h>u&&(i[0]=this.parameters.box.width-d*u,o&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(n){return(this.remember("_resizeHandler")||new J(this)).init(n||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var co=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new v(this.ctx),this.ctx.axes=new bt(this.ctx),this.ctx.core=new vs(this.ctx.el,this.ctx),this.ctx.config=new ue({}),this.ctx.data=new Xe(this.ctx),this.ctx.grid=new Ne(this.ctx),this.ctx.graphics=new m(this.ctx),this.ctx.coreUtils=new _(this.ctx),this.ctx.crosshairs=new wt(this.ctx),this.ctx.events=new He(this.ctx),this.ctx.exports=new ke(this.ctx),this.ctx.localization=new Ze(this.ctx),this.ctx.options=new K,this.ctx.responsive=new It(this.ctx),this.ctx.series=new Oe(this.ctx),this.ctx.theme=new Pt(this.ctx),this.ctx.formatters=new fe(this.ctx),this.ctx.titleSubtitle=new Lt(this.ctx),this.ctx.legend=new er(this.ctx),this.ctx.toolbar=new so(this.ctx),this.ctx.tooltip=new ba(this.ctx),this.ctx.dimensions=new Jt(this.ctx),this.ctx.updateHelpers=new Wr(this.ctx),this.ctx.zoomPanSelection=new Eo(this.ctx),this.ctx.w.globals.tooltip=new ba(this.ctx)}}]),J}(),Sa=function(){function J(n){l(this,J),this.ctx=n,this.w=n.w}return b(J,[{key:"clear",value:function(n){var o=n.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:o})}},{key:"killSVG",value:function(n){n.each(function(o,i){this.removeClass("*"),this.off(),this.stop()},!0),n.ungroup(),n.clear()}},{key:"clearDomElements",value:function(n){var o=this,i=n.isUpdating,u=this.w.globals.dom.Paper.node;u.parentNode&&u.parentNode.parentNode&&!i&&(u.parentNode.parentNode.style.minHeight="unset");var c=this.w.globals.dom.baseEl;c&&this.ctx.eventList.forEach(function(h){c.removeEventListener(h,o.ctx.events.documentEvent)});var d=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(d.Paper),d.Paper.remove(),d.elWrap=null,d.elGraphical=null,d.elLegendWrap=null,d.elLegendForeign=null,d.baseEl=null,d.elGridRect=null,d.elGridRectMask=null,d.elGridRectMarkerMask=null,d.elForecastMask=null,d.elNonForecastMask=null,d.elDefs=null}}]),J}(),fo=new WeakMap,oi=function(){function J(n,o){l(this,J),this.opts=o,this.ctx=this,this.w=new ye(o).init(),this.el=n,this.w.globals.cuid=p.randomId(),this.w.globals.chartID=this.w.config.chart.id?p.escapeString(this.w.config.chart.id):this.w.globals.cuid,new co(this).initModules(),this.create=p.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return b(J,[{key:"render",value:function(){var n=this;return new Promise(function(o,i){if(n.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),n.w.config.chart.id&&Apex._chartInstances.push({id:n.w.globals.chartID,group:n.w.config.chart.group,chart:n}),n.setLocale(n.w.config.chart.defaultLocale);var u=n.w.config.chart.events.beforeMount;if(typeof u=="function"&&u(n,n.w),n.events.fireEvent("beforeMount",[n,n.w]),window.addEventListener("resize",n.windowResizeHandler),function(E,N){var L=!1;if(E.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var W=E.getBoundingClientRect();E.style.display!=="none"&&W.width!==0||(L=!0)}var G=new ResizeObserver(function(q){L&&N.call(E,q),L=!0});E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(E.children).forEach(function(q){return G.observe(q)}):G.observe(E),fo.set(N,G)}(n.el.parentNode,n.parentResizeHandler),!n.css){var c=n.el.getRootNode&&n.el.getRootNode(),d=p.is("ShadowRoot",c),h=n.el.ownerDocument,x=h.getElementById("apexcharts-css");!d&&x||(n.css=document.createElement("style"),n.css.id="apexcharts-css",n.css.textContent=`@keyframes opaque {
0% {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes resizeanim {
0%,to {
opacity: 0
}
}
.apexcharts-canvas {
position: relative;
user-select: none
}
.apexcharts-canvas ::-webkit-scrollbar {
-webkit-appearance: none;
width: 6px
}
.apexcharts-canvas ::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0,0,0,.5);
box-shadow: 0 0 1px rgba(255,255,255,.5);
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)
}
.apexcharts-inner {
position: relative
}
.apexcharts-text tspan {
font-family: inherit
}
.legend-mouseover-inactive {
transition: .15s ease all;
opacity: .2
}
.apexcharts-legend-text {
padding-left: 15px;
margin-left: -15px;
}
.apexcharts-series-collapsed {
opacity: 0
}
.apexcharts-tooltip {
border-radius: 5px;
box-shadow: 2px 2px 6px -4px #999;
cursor: default;
font-size: 14px;
left: 62px;
opacity: 0;
pointer-events: none;
position: absolute;
top: 20px;
display: flex;
flex-direction: column;
overflow: hidden;
white-space: nowrap;
z-index: 12;
transition: .15s ease all
}
.apexcharts-tooltip.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-tooltip.apexcharts-theme-light {
border: 1px solid #e3e3e3;
background: rgba(255,255,255,.96)
}
.apexcharts-tooltip.apexcharts-theme-dark {
color: #fff;
background: rgba(30,30,30,.8)
}
.apexcharts-tooltip * {
font-family: inherit
}
.apexcharts-tooltip-title {
padding: 6px;
font-size: 15px;
margin-bottom: 4px
}
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
background: #eceff1;
border-bottom: 1px solid #ddd
}
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
background: rgba(0,0,0,.7);
border-bottom: 1px solid #333
}
.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {
display: inline-block;
margin-left: 5px;
font-weight: 600
}
.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {
display: none
}
.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
padding: 6px 0 5px
}
.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
display: flex
}
.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {
margin-top: -6px
}
.apexcharts-tooltip-marker {
width: 12px;
height: 12px;
position: relative;
top: 0;
margin-right: 10px;
border-radius: 50%
}
.apexcharts-tooltip-series-group {
padding: 0 10px;
display: none;
text-align: left;
justify-content: left;
align-items: center
}
.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
opacity: 1
}
.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {
padding-bottom: 4px
}
.apexcharts-tooltip-series-group-hidden {
opacity: 0;
height: 0;
line-height: 0;
padding: 0!important
}
.apexcharts-tooltip-y-group {
padding: 6px 0 5px
}
.apexcharts-custom-tooltip,.apexcharts-tooltip-box {
padding: 4px 8px
}
.apexcharts-tooltip-boxPlot {
display: flex;
flex-direction: column-reverse
}
.apexcharts-tooltip-box>div {
margin: 4px 0
}
.apexcharts-tooltip-box span.value {
font-weight: 700
}
.apexcharts-tooltip-rangebar {
padding: 5px 8px
}
.apexcharts-tooltip-rangebar .category {
font-weight: 600;
color: #777
}
.apexcharts-tooltip-rangebar .series-name {
font-weight: 700;
display: block;
margin-bottom: 5px
}
.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {
opacity: 0;
pointer-events: none;
color: #373d3f;
font-size: 13px;
text-align: center;
border-radius: 2px;
position: absolute;
z-index: 10;
background: #eceff1;
border: 1px solid #90a4ae
}
.apexcharts-xaxistooltip {
padding: 9px 10px;
transition: .15s ease all
}
.apexcharts-xaxistooltip.apexcharts-theme-dark {
background: rgba(0,0,0,.7);
border: 1px solid rgba(0,0,0,.5);
color: #fff
}
.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none
}
.apexcharts-xaxistooltip:after {
border-color: transparent;
border-width: 6px;
margin-left: -6px
}
.apexcharts-xaxistooltip:before {
border-color: transparent;
border-width: 7px;
margin-left: -7px
}
.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {
bottom: 100%
}
.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {
top: 100%
}
.apexcharts-xaxistooltip-bottom:after {
border-bottom-color: #eceff1
}
.apexcharts-xaxistooltip-bottom:before {
border-bottom-color: #90a4ae
}
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
border-bottom-color: rgba(0,0,0,.5)
}
.apexcharts-xaxistooltip-top:after {
border-top-color: #eceff1
}
.apexcharts-xaxistooltip-top:before {
border-top-color: #90a4ae
}
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
border-top-color: rgba(0,0,0,.5)
}
.apexcharts-xaxistooltip.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-yaxistooltip {
padding: 4px 10px
}
.apexcharts-yaxistooltip.apexcharts-theme-dark {
background: rgba(0,0,0,.7);
border: 1px solid rgba(0,0,0,.5);
color: #fff
}
.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none
}
.apexcharts-yaxistooltip:after {
border-color: transparent;
border-width: 6px;
margin-top: -6px
}
.apexcharts-yaxistooltip:before {
border-color: transparent;
border-width: 7px;
margin-top: -7px
}
.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {
left: 100%
}
.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {
right: 100%
}
.apexcharts-yaxistooltip-left:after {
border-left-color: #eceff1
}
.apexcharts-yaxistooltip-left:before {
border-left-color: #90a4ae
}
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
border-left-color: rgba(0,0,0,.5)
}
.apexcharts-yaxistooltip-right:after {
border-right-color: #eceff1
}
.apexcharts-yaxistooltip-right:before {
border-right-color: #90a4ae
}
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
border-right-color: rgba(0,0,0,.5)
}
.apexcharts-yaxistooltip.apexcharts-active {
opacity: 1
}
.apexcharts-yaxistooltip-hidden {
display: none
}
.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {
pointer-events: none;
opacity: 0;
transition: .15s ease all
}
.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-ycrosshairs-hidden {
opacity: 0
}
.apexcharts-selection-rect {
cursor: move
}
.svg_select_boundingRect,.svg_select_points_rot {
pointer-events: none;
opacity: 0;
visibility: hidden
}
.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {
opacity: 0;
visibility: hidden
}
.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {
cursor: ew-resize;
opacity: 1;
visibility: visible
}
.svg_select_points {
fill: #efefef;
stroke: #333;
rx: 2
}
.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
cursor: crosshair
}
.apexcharts-svg.apexcharts-zoomable.hovering-pan {
cursor: move
}
.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
cursor: pointer;
width: 20px;
height: 20px;
line-height: 24px;
color: #6e8192;
text-align: center
}
.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {
fill: #6e8192
}
.apexcharts-selection-icon svg {
fill: #444;
transform: scale(.76)
}
.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
fill: #f3f4f5
}
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
fill: #008ffb
}
.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
fill: #333
}
.apexcharts-menu-icon,.apexcharts-selection-icon {
position: relative
}
.apexcharts-reset-icon {
margin-left: 5px
}
.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {
transform: scale(.85)
}
.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
transform: scale(.7)
}
.apexcharts-zoomout-icon {
margin-right: 3px
}
.apexcharts-pan-icon {
transform: scale(.62);
position: relative;
left: 1px;
top: 0
}
.apexcharts-pan-icon svg {
fill: #fff;
stroke: #6e8192;
stroke-width: 2
}
.apexcharts-pan-icon.apexcharts-selected svg {
stroke: #008ffb
}
.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
stroke: #333
}
.apexcharts-toolbar {
position: absolute;
z-index: 11;
max-width: 176px;
text-align: right;
border-radius: 3px;
padding: 0 6px 2px;
display: flex;
justify-content: space-between;
align-items: center
}
.apexcharts-menu {
background: #fff;
position: absolute;
top: 100%;
border: 1px solid #ddd;
border-radius: 3px;
padding: 3px;
right: 10px;
opacity: 0;
min-width: 110px;
transition: .15s ease all;
pointer-events: none
}
.apexcharts-menu.apexcharts-menu-open {
opacity: 1;
pointer-events: all;
transition: .15s ease all
}
.apexcharts-menu-item {
padding: 6px 7px;
font-size: 12px;
cursor: pointer
}
.apexcharts-theme-light .apexcharts-menu-item:hover {
background: #eee
}
.apexcharts-theme-dark .apexcharts-menu {
background: rgba(0,0,0,.7);
color: #fff
}
@media screen and (min-width:768px) {
.apexcharts-canvas:hover .apexcharts-toolbar {
opacity: 1
}
}
.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {
opacity: 0
}
.apexcharts-hidden-element-shown {
opacity: 1;
transition: 0.25s ease all;
}
.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {
cursor: default;
pointer-events: none
}
.apexcharts-pie-label-delay {
opacity: 0;
animation-name: opaque;
animation-duration: .3s;
animation-fill-mode: forwards;
animation-timing-function: ease
}
.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {
pointer-events: none
}
.apexcharts-marker {
transition: .15s ease all
}
.resize-triggers {
animation: 1ms resizeanim;
visibility: hidden;
opacity: 0;
height: 100%;
width: 100%;
overflow: hidden
}
.contract-trigger:before,.resize-triggers,.resize-triggers>div {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0
}
.resize-triggers>div {
height: 100%;
width: 100%;
background: #eee;
overflow: auto
}
.contract-trigger:before {
overflow: hidden;
width: 200%;
height: 200%
}
.apexcharts-bar-goals-markers{
pointer-events: none
}
.apexcharts-bar-shadows{
pointer-events: none
}
.apexcharts-rangebar-goals-markers{
pointer-events: none
}`,d?c.prepend(n.css):h.head.appendChild(n.css))}var k=n.create(n.w.config.series,{});if(!k)return o(n);n.mount(k).then(function(){typeof n.w.config.chart.events.mounted=="function"&&n.w.config.chart.events.mounted(n,n.w),n.events.fireEvent("mounted",[n,n.w]),o(k)}).catch(function(E){i(E)})}else i(new Error("Element not found"))})}},{key:"create",value:function(n,o){var i=this.w;new co(this).initModules();var u=this.w.globals;if(u.noData=!1,u.animationEnded=!1,this.responsive.checkResponsiveConfig(o),i.config.xaxis.convertedCatToNumeric&&new he(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),u.svgWidth===0))return u.animationEnded=!0,null;var c=_.checkComboSeries(n);u.comboCharts=c.comboCharts,u.comboBarCount=c.comboBarCount;var d=n.every(function(E){return E.data&&E.data.length===0});(n.length===0||d)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(n),this.theme.init(),new Re(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),u.noData&&u.collapsedSeries.length!==u.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),u.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new _(this).getLargestMarkerSize(),this.dimensions.plotCoords();var h=this.core.xySettings();this.grid.createGridMask();var x=this.core.plotChartType(n,h),k=new Le(this);return k.bringForward(),i.config.dataLabels.background.enabled&&k.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:x,xyRatios:h,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var n=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,u=i.w;return new Promise(function(c,d){if(i.el===null)return d(new Error("Not enough data to display or target element not found"));(o===null||u.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new Ne(i);var h,x,k=i.grid.drawGrid();if(i.annotations=new ne(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),u.config.grid.position==="back"&&(k&&u.globals.dom.elGraphical.add(k.el),k!=null&&(h=k.elGridBorders)!==null&&h!==void 0&&h.node&&u.globals.dom.elGraphical.add(k.elGridBorders)),Array.isArray(o.elGraph))for(var E=0;E<o.elGraph.length;E++)u.globals.dom.elGraphical.add(o.elGraph[E]);else u.globals.dom.elGraphical.add(o.elGraph);u.config.grid.position==="front"&&(k&&u.globals.dom.elGraphical.add(k.el),k!=null&&(x=k.elGridBorders)!==null&&x!==void 0&&x.node&&u.globals.dom.elGraphical.add(k.elGridBorders)),u.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),u.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),u.config.chart.type!=="treemap"&&i.axes.drawAxis(u.config.chart.type,k);var N=new Me(n.ctx,k),L=new qe(n.ctx,k);if(k!==null&&(N.xAxisLabelCorrections(k.xAxisTickWidth),L.setYAxisTextAlignments(),u.config.yaxis.map(function(G,q){u.globals.ignoreYAxisIndexes.indexOf(q)===-1&&L.yAxisTitleRotate(q,G.opposite)})),i.annotations.drawAxesAnnotations(),!u.globals.noData){if(u.config.tooltip.enabled&&!u.globals.noData&&i.w.globals.tooltip.drawTooltip(o.xyRatios),u.globals.axisCharts&&(u.globals.isXNumeric||u.config.xaxis.convertedCatToNumeric||u.globals.isRangeBar))(u.config.chart.zoom.enabled||u.config.chart.selection&&u.config.chart.selection.enabled||u.config.chart.pan&&u.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:o.xyRatios});else{var W=u.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(G){W[G]=!1})}u.config.chart.toolbar.show&&!u.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}u.globals.memory.methodsToExec.length>0&&u.globals.memory.methodsToExec.forEach(function(G){G.method(G.params,!1,G.context)}),u.globals.axisCharts||u.globals.noData||i.core.resizeNonAxisCharts(),c(i)})}},{key:"destroy",value:function(){var n,o;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,n=this.parentResizeHandler,(o=fo.get(n))&&(o.disconnect(),fo.delete(n));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(u,c){u.id===p.escapeString(i)&&Apex._chartInstances.splice(c,1)}),new Sa(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(n){var o=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],c=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],d=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],h=this.w;return h.globals.selection=void 0,n.series&&(this.series.resetSeries(!1,!0,!1),n.series.length&&n.series[0].data&&(n.series=n.series.map(function(x,k){return o.updateHelpers._extendSeries(x,k)})),this.updateHelpers.revertDefaultAxisMinMax()),n.xaxis&&(n=this.updateHelpers.forceXAxisUpdate(n)),n.yaxis&&(n=this.updateHelpers.forceYAxisUpdate(n)),h.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),n.theme&&(n=this.theme.updateThemeOptions(n)),this.updateHelpers._updateOptions(n,i,u,c,d)}},{key:"updateSeries",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,o,i)}},{key:"appendSeries",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],u=this.w.config.series.slice();return u.push(n),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(u,o,i)}},{key:"appendData",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var u=i.w.config.series.slice(),c=0;c<u.length;c++)if(n[c]!==null&&n[c]!==void 0)for(var d=0;d<n[c].data.length;d++)u[c].data.push(n[c].data[d]);return i.w.config.series=u,o&&(i.w.globals.initialSeries=p.clone(i.w.config.series)),this.update()}},{key:"update",value:function(n){var o=this;return new Promise(function(i,u){new Sa(o.ctx).clear({isUpdating:!0});var c=o.create(o.w.config.series,n);if(!c)return i(o);o.mount(c).then(function(){typeof o.w.config.chart.events.updated=="function"&&o.w.config.chart.events.updated(o,o.w),o.events.fireEvent("updated",[o,o.w]),o.w.globals.isDirty=!0,i(o)}).catch(function(d){u(d)})})}},{key:"getSyncedCharts",value:function(){var n=this.getGroupedCharts(),o=[this];return n.length&&(o=[],n.forEach(function(i){o.push(i)})),o}},{key:"getGroupedCharts",value:function(){var n=this;return Apex._chartInstances.filter(function(o){if(o.group)return!0}).map(function(o){return n.w.config.chart.group===o.group?o.chart:n})}},{key:"toggleSeries",value:function(n){return this.series.toggleSeries(n)}},{key:"highlightSeriesOnLegendHover",value:function(n,o){return this.series.toggleSeriesOnHover(n,o)}},{key:"showSeries",value:function(n){this.series.showSeries(n)}},{key:"hideSeries",value:function(n){this.series.hideSeries(n)}},{key:"isSeriesHidden",value:function(n){this.series.isSeriesHidden(n)}},{key:"resetSeries",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(n,o)}},{key:"addEventListener",value:function(n,o){this.events.addEventListener(n,o)}},{key:"removeEventListener",value:function(n,o){this.events.removeEventListener(n,o)}},{key:"addXaxisAnnotation",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,u=this;i&&(u=i),u.annotations.addXaxisAnnotationExternal(n,o,u)}},{key:"addYaxisAnnotation",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,u=this;i&&(u=i),u.annotations.addYaxisAnnotationExternal(n,o,u)}},{key:"addPointAnnotation",value:function(n){var o=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,u=this;i&&(u=i),u.annotations.addPointAnnotationExternal(n,o,u)}},{key:"clearAnnotations",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,o=this;n&&(o=n),o.annotations.clearAnnotations(o)}},{key:"removeAnnotation",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;o&&(i=o),i.annotations.removeAnnotation(i,n)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(n,o){return this.coreUtils.getSeriesTotalsXRange(n,o)}},{key:"getHighestValueInSeries",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Qe(this.ctx).getMinYMaxY(n).highestY}},{key:"getLowestValueInSeries",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Qe(this.ctx).getMinYMaxY(n).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(n,o){return this.updateHelpers.toggleDataPointSelection(n,o)}},{key:"zoomX",value:function(n,o){this.ctx.toolbar.zoomUpdateOptions(n,o)}},{key:"setLocale",value:function(n){this.localization.setCurrentLocaleValues(n)}},{key:"dataURI",value:function(n){return new ke(this.ctx).dataURI(n)}},{key:"exportToCSV",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new ke(this.ctx).exportToCSV(n)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var n=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){n.w.globals.resized=!0,n.w.globals.dataChanged=!1,n.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var n=this.w.config.chart.redrawOnWindowResize;typeof n=="function"&&(n=n()),n&&this._windowResize()}}],[{key:"getChartByID",value:function(n){var o=p.escapeString(n);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(u){return u.id===o})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var n=document.querySelectorAll("[data-apexcharts]"),o=0;o<n.length;o++)new J(n[o],JSON.parse(n[o].getAttribute("data-options"))).render()}},{key:"exec",value:function(n,o){var i=this.getChartByID(n);if(i){i.w.globals.isExecCalled=!0;var u=null;if(i.publicMethods.indexOf(o)!==-1){for(var c=arguments.length,d=new Array(c>2?c-2:0),h=2;h<c;h++)d[h-2]=arguments[h];u=i[o].apply(i,d)}return u}}},{key:"merge",value:function(n,o){return p.extend(n,o)}}]),J}();e.exports=oi})(Jh,Jh.exports);var S4=Jh.exports,f_;Object.defineProperty(d_,"__esModule",{value:!0});var k4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T4=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,a=arguments[t];for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},P4=function(){function e(t,r){for(var a=0;a<r.length;a++){var s=r[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),_4=S4,p_=pb(_4),h_=ee,zs=pb(h_),O4=ot,po=pb(O4);function pb(e){return e&&e.__esModule?e:{default:e}}function A4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E4(e,t){var r,a={};for(r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function M4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R4(e,t){if(e)return!t||typeof t!="object"&&typeof t!="function"?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function N4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}window.ApexCharts=p_.default;var Cx=function(){function e(t){M4(this,e);var r=R4(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return zs.default.createRef?r.chartRef=zs.default.createRef():r.setRef=function(a){return r.chartRef=a},r.chart=null,r}return N4(e,h_.Component),P4(e,[{key:"render",value:function(){var t=E4(this.props,[]);return zs.default.createElement("div",T4({ref:zs.default.createRef?this.chartRef:this.setRef},t))}},{key:"componentDidMount",value:function(){var t=zs.default.createRef?this.chartRef.current:this.chartRef;this.chart=new p_.default(t,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var l=this.props,t=l.type,r=l.height,a=l.width,s=l.series,l=l.options;return this.extend(l,{chart:{type:t,height:r,width:a},series:s})}},{key:"isObject",value:function(t){return t&&(t===void 0?"undefined":k4(t))==="object"&&!Array.isArray(t)&&t!=null}},{key:"extend",value:function(t,r){var a=this,s=(typeof Object.assign!="function"&&(Object.assign=function(l){if(l==null)throw new TypeError("Cannot convert undefined or null to object");for(var f=Object(l),b=1;b<arguments.length;b++){var S=arguments[b];if(S!=null)for(var T in S)S.hasOwnProperty(T)&&(f[T]=S[T])}return f}),Object.assign({},t));return this.isObject(t)&&this.isObject(r)&&Object.keys(r).forEach(function(l){a.isObject(r[l])&&l in t?s[l]=a.extend(t[l],r[l]):Object.assign(s,A4({},l,r[l]))}),s}},{key:"componentDidUpdate",value:function(t){if(!this.chart)return null;var s=this.props,b=s.options,r=s.series,a=s.height,s=s.width,l=JSON.stringify(t.options),f=JSON.stringify(t.series),b=JSON.stringify(b),S=JSON.stringify(r);l===b&&f===S&&a===t.height&&s===t.width||(f!==S&&l===b&&a===t.height&&s===t.width?this.chart.updateSeries(r):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&typeof this.chart.destroy=="function"&&this.chart.destroy()}}]),e}();(f_=d_.default=Cx).propTypes={type:po.default.string.isRequired,width:po.default.oneOfType([po.default.string,po.default.number]),height:po.default.oneOfType([po.default.string,po.default.number]),series:po.default.array.isRequired,options:po.default.object.isRequired},Cx.defaultProps={type:"line",width:"100%",height:"auto"};function Qd({color:e,chart:t,title:r,description:a,footer:s}){return me.jsxs(Be.Card,{className:"border border-blue-gray-100 shadow-sm",children:[me.jsx(Be.CardHeader,{variant:"gradient",color:e,floated:!1,shadow:!1,children:me.jsx(f_,{...t})}),me.jsxs(Be.CardBody,{className:"px-6 pt-0",children:[me.jsx(Be.Typography,{variant:"h6",color:"blue-gray",children:r}),me.jsx(Be.Typography,{variant:"small",className:"font-normal text-blue-gray-600",children:a})]}),s&&me.jsx(Be.CardFooter,{className:"border-t border-blue-gray-50 px-6 py-5",children:s})]})}Qd.defaultProps={color:"blue",footer:null};Qd.propTypes={color:Nt.oneOf(["white","blue-gray","gray","brown","deep-orange","orange","amber","yellow","lime","light-green","green","teal","cyan","light-blue","blue","indigo","deep-purple","purple","pink","red"]),chart:Nt.object.isRequired,title:Nt.node.isRequired,description:Nt.node.isRequired,footer:Nt.node};Qd.displayName="/src/widgets/charts/statistics-chart.jsx";const I4=[{color:"gray",icon:hC,title:"Today's Money",value:"$53k",footer:{color:"text-green-500",value:"+55%",label:"than last week"}},{color:"gray",icon:UN,title:"Today's Users",value:"2,300",footer:{color:"text-green-500",value:"+3%",label:"than last month"}},{color:"gray",icon:XN,title:"New Clients",value:"3,462",footer:{color:"text-red-500",value:"-2%",label:"than yesterday"}},{color:"gray",icon:fN,title:"Sales",value:"$103,430",footer:{color:"text-green-500",value:"+5%",label:"than yesterday"}}],Ji={chart:{toolbar:{show:!1}},title:{show:""},dataLabels:{enabled:!1},xaxis:{axisTicks:{show:!1},axisBorder:{show:!1},labels:{style:{colors:"#37474f",fontSize:"13px",fontFamily:"inherit",fontWeight:300}}},yaxis:{labels:{style:{colors:"#37474f",fontSize:"13px",fontFamily:"inherit",fontWeight:300}}},grid:{show:!0,borderColor:"#dddddd",strokeDashArray:5,xaxis:{lines:{show:!0}},padding:{top:5,right:20}},fill:{opacity:.8},tooltip:{theme:"dark"}},L4={type:"bar",height:220,series:[{name:"Views",data:[50,20,10,22,50,10,40]}],options:{...Ji,colors:"#388e3c",plotOptions:{bar:{columnWidth:"16%",borderRadius:5}},xaxis:{...Ji.xaxis,categories:["M","T","W","T","F","S","S"]}}},j4={type:"line",height:220,series:[{name:"Sales",data:[50,40,300,320,500,350,200,230,500]}],options:{...Ji,colors:["#0288d1"],stroke:{lineCap:"round"},markers:{size:5},xaxis:{...Ji.xaxis,categories:["Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}}},D4={type:"line",height:220,series:[{name:"Sales",data:[50,40,300,320,500,350,200,230,500]}],options:{...Ji,colors:["#388e3c"],stroke:{lineCap:"round"},markers:{size:5},xaxis:{...Ji.xaxis,categories:["Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}}},z4={...D4,series:[{name:"Tasks",data:[50,40,300,220,500,250,400,230,500]}]},F4=[{color:"white",title:"Website View",description:"Last Campaign Performance",footer:"campaign sent 2 days ago",chart:L4},{color:"white",title:"Daily Sales",description:"15% increase in today sales",footer:"updated 4 min ago",chart:j4},{color:"white",title:"Completed Tasks",description:"Last Campaign Performance",footer:"just updated",chart:z4}],Sx=[{img:"/img/logo-xd.svg",name:"Material XD Version",members:[{img:"/img/team-1.jpeg",name:"Romina Hadid"},{img:"/img/team-2.jpeg",name:"Ryan Tompson"},{img:"/img/team-3.jpeg",name:"Jessica Doe"},{img:"/img/team-4.jpeg",name:"Alexander Smith"}],budget:"$14,000",completion:60},{img:"/img/logo-atlassian.svg",name:"Add Progress Track",members:[{img:"/img/team-2.jpeg",name:"Ryan Tompson"},{img:"/img/team-4.jpeg",name:"Alexander Smith"}],budget:"$3,000",completion:10},{img:"/img/logo-slack.svg",name:"Fix Platform Errors",members:[{img:"/img/team-3.jpeg",name:"Jessica Doe"},{img:"/img/team-1.jpeg",name:"Romina Hadid"}],budget:"Not set",completion:100},{img:"/img/logo-spotify.svg",name:"Launch our Mobile App",members:[{img:"/img/team-4.jpeg",name:"Alexander Smith"},{img:"/img/team-3.jpeg",name:"Jessica Doe"},{img:"/img/team-2.jpeg",name:"Ryan Tompson"},{img:"/img/team-1.jpeg",name:"Romina Hadid"}],budget:"$20,500",completion:100},{img:"/img/logo-jira.svg",name:"Add the New Pricing Page",members:[{img:"/img/team-4.jpeg",name:"Alexander Smith"}],budget:"$500",completion:25},{img:"/img/logo-invision.svg",name:"Redesign New Online Shop",members:[{img:"/img/team-1.jpeg",name:"Romina Hadid"},{img:"/img/team-4.jpeg",name:"Alexander Smith"}],budget:"$2,000",completion:40}],kx=[{icon:gC,color:"text-blue-gray-300",title:"$2400, Design changes",description:"22 DEC 7:20 PM"},{icon:NN,color:"text-blue-gray-300",title:"New order #1832412",description:"21 DEC 11 PM"},{icon:jN,color:"text-blue-gray-300",title:"Server payments for April",description:"21 DEC 9:34 PM"},{icon:vC,color:"text-blue-gray-300",title:"New card added for order #4395133",description:"20 DEC 2:20 AM"},{icon:EN,color:"text-blue-gray-300",title:"Unlock packages for development",description:"18 DEC 4:54 AM"},{icon:hC,color:"text-blue-gray-300",title:"New order #9583120",description:"17 DEC"}],Tx=[{img:"/img/team-2.jpeg",name:"John Michael",email:"john@creative-tim.com",job:["Manager","Organization"],online:!0,date:"23/04/18"},{img:"/img/team-1.jpeg",name:"Alexa Liras",email:"alexa@creative-tim.com",job:["Programator","Developer"],online:!1,date:"11/01/19"},{img:"/img/team-4.jpeg",name:"Laurent Perrier",email:"laurent@creative-tim.com",job:["Executive","Projects"],online:!0,date:"19/09/17"},{img:"/img/team-3.jpeg",name:"Michael Levi",email:"michael@creative-tim.com",job:["Programator","Developer"],online:!0,date:"24/12/08"},{img:"/img/bruce-mars.jpeg",name:"Bruce Mars",email:"bruce@creative-tim.com",job:["Manager","Executive"],online:!1,date:"04/10/21"},{img:"/img/team-2.jpeg",name:"Alexander",email:"alexander@creative-tim.com",job:["Programator","Developer"],online:!1,date:"14/09/20"}];function V4(){return me.jsxs("div",{className:"mt-12",children:[me.jsx("div",{className:"mb-12 grid gap-y-10 gap-x-6 md:grid-cols-2 xl:grid-cols-4",children:I4.map(({icon:e,title:t,footer:r,...a})=>me.jsx(Zd,{...a,title:t,icon:wn.createElement(e,{className:"w-6 h-6 text-white"}),footer:me.jsxs(Be.Typography,{className:"font-normal text-blue-gray-600",children:[me.jsx("strong",{className:r.color,children:r.value})," ",r.label]})},t))}),me.jsx("div",{className:"mb-6 grid grid-cols-1 gap-y-12 gap-x-6 md:grid-cols-2 xl:grid-cols-3",children:F4.map(e=>me.jsx(Qd,{...e,footer:me.jsxs(Be.Typography,{variant:"small",className:"flex items-center font-normal text-blue-gray-600",children:[me.jsx(Ku,{strokeWidth:2,className:"h-4 w-4 text-blue-gray-400"})," ",e.footer]})},e.title))}),me.jsxs("div",{className:"mb-4 grid grid-cols-1 gap-6 xl:grid-cols-3",children:[me.jsxs(Be.Card,{className:"overflow-hidden xl:col-span-2 border border-blue-gray-100 shadow-sm",children:[me.jsxs(Be.CardHeader,{floated:!1,shadow:!1,color:"transparent",className:"m-0 flex items-center justify-between p-6",children:[me.jsxs("div",{children:[me.jsx(Be.Typography,{variant:"h6",color:"blue-gray",className:"mb-1",children:"Projects"}),me.jsxs(Be.Typography,{variant:"small",className:"flex items-center gap-1 font-normal text-blue-gray-600",children:[me.jsx(gN,{strokeWidth:3,className:"h-4 w-4 text-blue-gray-200"}),me.jsx("strong",{children:"30 done"})," this month"]})]}),me.jsxs(Be.Menu,{placement:"left-start",children:[me.jsx(Be.MenuHandler,{children:me.jsx(Be.IconButton,{size:"sm",variant:"text",color:"blue-gray",children:me.jsx(p4,{strokeWidth:3,fill:"currenColor",className:"h-6 w-6"})})}),me.jsxs(Be.MenuList,{children:[me.jsx(Be.MenuItem,{children:"Action"}),me.jsx(Be.MenuItem,{children:"Another Action"}),me.jsx(Be.MenuItem,{children:"Something else here"})]})]})]}),me.jsx(Be.CardBody,{className:"overflow-x-scroll px-0 pt-0 pb-2",children:me.jsxs("table",{className:"w-full min-w-[640px] table-auto",children:[me.jsx("thead",{children:me.jsx("tr",{children:["companies","members","budget","completion"].map(e=>me.jsx("th",{className:"border-b border-blue-gray-50 py-3 px-6 text-left",children:me.jsx(Be.Typography,{variant:"small",className:"text-[11px] font-medium uppercase text-blue-gray-400",children:e})},e))})}),me.jsx("tbody",{children:Sx.map(({img:e,name:t,members:r,budget:a,completion:s},l)=>{const f=`py-3 px-5 ${l===Sx.length-1?"":"border-b border-blue-gray-50"}`;return me.jsxs("tr",{children:[me.jsx("td",{className:f,children:me.jsxs("div",{className:"flex items-center gap-4",children:[me.jsx(Be.Avatar,{src:e,alt:t,size:"sm"}),me.jsx(Be.Typography,{variant:"small",color:"blue-gray",className:"font-bold",children:t})]})}),me.jsx("td",{className:f,children:r.map(({img:b,name:S},T)=>me.jsx(Be.Tooltip,{content:S,children:me.jsx(Be.Avatar,{src:b,alt:S,size:"xs",variant:"circular",className:`cursor-pointer border-2 border-white ${T===0?"":"-ml-2.5"}`})},S))}),me.jsx("td",{className:f,children:me.jsx(Be.Typography,{variant:"small",className:"text-xs font-medium text-blue-gray-600",children:a})}),me.jsx("td",{className:f,children:me.jsxs("div",{className:"w-10/12",children:[me.jsxs(Be.Typography,{variant:"small",className:"mb-1 block text-xs font-medium text-blue-gray-600",children:[s,"%"]}),me.jsx(Be.Progress,{value:s,variant:"gradient",color:s===100?"green":"blue",className:"h-1"})]})})]},t)})})]})})]}),me.jsxs(Be.Card,{className:"border border-blue-gray-100 shadow-sm",children:[me.jsxs(Be.CardHeader,{floated:!1,shadow:!1,color:"transparent",className:"m-0 p-6",children:[me.jsx(Be.Typography,{variant:"h6",color:"blue-gray",className:"mb-2",children:"Orders Overview"}),me.jsxs(Be.Typography,{variant:"small",className:"flex items-center gap-1 font-normal text-blue-gray-600",children:[me.jsx(c4,{strokeWidth:3,className:"h-3.5 w-3.5 text-green-500"}),me.jsx("strong",{children:"24%"})," this month"]})]}),me.jsx(Be.CardBody,{className:"pt-0",children:kx.map(({icon:e,color:t,title:r,description:a},s)=>me.jsxs("div",{className:"flex items-start gap-4 py-3",children:[me.jsx("div",{className:`relative p-1 after:absolute after:-bottom-6 after:left-2/4 after:w-0.5 after:-translate-x-2/4 after:bg-blue-gray-50 after:content-[''] ${s===kx.length-1?"after:h-0":"after:h-4/6"}`,children:wn.createElement(e,{className:`!w-5 !h-5 ${t}`})}),me.jsxs("div",{children:[me.jsx(Be.Typography,{variant:"small",color:"blue-gray",className:"block font-medium",children:r}),me.jsx(Be.Typography,{as:"span",variant:"small",className:"text-xs font-medium text-blue-gray-500",children:a})]})]},r))})]})]})]})}function W4(){const[e,t]=wn.useState({blue:!0,green:!0,orange:!0,red:!0}),[r,a]=wn.useState({blue:!0,green:!0,orange:!0,red:!0}),s=["gray","green","orange","red"];return me.jsxs("div",{className:"mx-auto my-20 flex max-w-screen-lg flex-col gap-8",children:[me.jsxs(Be.Card,{children:[me.jsx(Be.CardHeader,{color:"transparent",floated:!1,shadow:!1,className:"m-0 p-4",children:me.jsx(Be.Typography,{variant:"h5",color:"blue-gray",children:"Alerts"})}),me.jsx(Be.CardBody,{className:"flex flex-col gap-4 p-4",children:s.map(l=>me.jsxs(Be.Alert,{open:e[l],color:l,onClose:()=>t(f=>({...f,[l]:!1})),children:["A simple ",l," alert with an ",me.jsx("a",{href:"#",children:"example link"}),". Give it a click if you like."]},l))})]}),me.jsxs(Be.Card,{children:[me.jsx(Be.CardHeader,{color:"transparent",floated:!1,shadow:!1,className:"m-0 p-4",children:me.jsx(Be.Typography,{variant:"h5",color:"blue-gray",children:"Alerts with Icon"})}),me.jsx(Be.CardBody,{className:"flex flex-col gap-4 p-4",children:s.map(l=>me.jsxs(Be.Alert,{open:r[l],color:l,icon:me.jsx(b4,{strokeWidth:2,className:"h-6 w-6"}),onClose:()=>a(f=>({...f,[l]:!1})),children:["A simple ",l," alert with an ",me.jsx("a",{href:"#",children:"example link"}),". Give it a click if you like."]},l))})]})]})}function g_(e,t){return function(){return e.apply(t,arguments)}}const{toString:B4}=Object.prototype,{getPrototypeOf:hb}=Object,Jd=(e=>t=>{const r=B4.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Xn=e=>(e=e.toLowerCase(),t=>Jd(t)===e),ef=e=>t=>typeof t===e,{isArray:hs}=Array,Nl=ef("undefined");function H4(e){return e!==null&&!Nl(e)&&e.constructor!==null&&!Nl(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b_=Xn("ArrayBuffer");function X4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&b_(e.buffer),t}const Y4=ef("string"),nn=ef("function"),v_=ef("number"),tf=e=>e!==null&&typeof e=="object",G4=e=>e===!0||e===!1,lc=e=>{if(Jd(e)!=="object")return!1;const t=hb(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},U4=Xn("Date"),$4=Xn("File"),q4=Xn("Blob"),K4=Xn("FileList"),Z4=e=>tf(e)&&nn(e.pipe),Q4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||nn(e.append)&&((t=Jd(e))==="formdata"||t==="object"&&nn(e.toString)&&e.toString()==="[object FormData]"))},J4=Xn("URLSearchParams"),[e3,t3,r3,n3]=["ReadableStream","Request","Response","Headers"].map(Xn),o3=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function eu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,s;if(typeof e!="object"&&(e=[e]),hs(e))for(a=0,s=e.length;a<s;a++)t.call(null,e[a],a,e);else{const l=r?Object.getOwnPropertyNames(e):Object.keys(e),f=l.length;let b;for(a=0;a<f;a++)b=l[a],t.call(null,e[b],b,e)}}function m_(e,t){t=t.toLowerCase();const r=Object.keys(e);let a=r.length,s;for(;a-- >0;)if(s=r[a],t===s.toLowerCase())return s;return null}const Ra=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),y_=e=>!Nl(e)&&e!==Ra;function eg(){const{caseless:e}=y_(this)&&this||{},t={},r=(a,s)=>{const l=e&&m_(t,s)||s;lc(t[l])&&lc(a)?t[l]=eg(t[l],a):lc(a)?t[l]=eg({},a):hs(a)?t[l]=a.slice():t[l]=a};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&eu(arguments[a],r);return t}const a3=(e,t,r,{allOwnKeys:a}={})=>(eu(t,(s,l)=>{r&&nn(s)?e[l]=g_(s,r):e[l]=s},{allOwnKeys:a}),e),i3=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s3=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},l3=(e,t,r,a)=>{let s,l,f;const b={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),l=s.length;l-- >0;)f=s[l],(!a||a(f,e,t))&&!b[f]&&(t[f]=e[f],b[f]=!0);e=r!==!1&&hb(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},u3=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},c3=e=>{if(!e)return null;if(hs(e))return e;let t=e.length;if(!v_(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},d3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hb(Uint8Array)),f3=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=a.next())&&!s.done;){const l=s.value;t.call(e,l[0],l[1])}},p3=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},h3=Xn("HTMLFormElement"),g3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,s){return a.toUpperCase()+s}),Px=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),b3=Xn("RegExp"),x_=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};eu(r,(s,l)=>{let f;(f=t(s,l,e))!==!1&&(a[l]=f||s)}),Object.defineProperties(e,a)},v3=e=>{x_(e,(t,r)=>{if(nn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(nn(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},m3=(e,t)=>{const r={},a=s=>{s.forEach(l=>{r[l]=!0})};return hs(e)?a(e):a(String(e).split(t)),r},y3=()=>{},x3=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ap="abcdefghijklmnopqrstuvwxyz",_x="0123456789",w_={DIGIT:_x,ALPHA:Ap,ALPHA_DIGIT:Ap+Ap.toUpperCase()+_x},w3=(e=16,t=w_.ALPHA_DIGIT)=>{let r="";const{length:a}=t;for(;e--;)r+=t[Math.random()*a|0];return r};function C3(e){return!!(e&&nn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const S3=e=>{const t=new Array(10),r=(a,s)=>{if(tf(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[s]=a;const l=hs(a)?[]:{};return eu(a,(f,b)=>{const S=r(f,s+1);!Nl(S)&&(l[b]=S)}),t[s]=void 0,l}}return a};return r(e,0)},k3=Xn("AsyncFunction"),T3=e=>e&&(tf(e)||nn(e))&&nn(e.then)&&nn(e.catch),C_=((e,t)=>e?setImmediate:t?((r,a)=>(Ra.addEventListener("message",({source:s,data:l})=>{s===Ra&&l===r&&a.length&&a.shift()()},!1),s=>{a.push(s),Ra.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",nn(Ra.postMessage)),P3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ra):typeof process<"u"&&process.nextTick||C_,ze={isArray:hs,isArrayBuffer:b_,isBuffer:H4,isFormData:Q4,isArrayBufferView:X4,isString:Y4,isNumber:v_,isBoolean:G4,isObject:tf,isPlainObject:lc,isReadableStream:e3,isRequest:t3,isResponse:r3,isHeaders:n3,isUndefined:Nl,isDate:U4,isFile:$4,isBlob:q4,isRegExp:b3,isFunction:nn,isStream:Z4,isURLSearchParams:J4,isTypedArray:d3,isFileList:K4,forEach:eu,merge:eg,extend:a3,trim:o3,stripBOM:i3,inherits:s3,toFlatObject:l3,kindOf:Jd,kindOfTest:Xn,endsWith:u3,toArray:c3,forEachEntry:f3,matchAll:p3,isHTMLForm:h3,hasOwnProperty:Px,hasOwnProp:Px,reduceDescriptors:x_,freezeMethods:v3,toObjectSet:m3,toCamelCase:g3,noop:y3,toFiniteNumber:x3,findKey:m_,global:Ra,isContextDefined:y_,ALPHABET:w_,generateString:w3,isSpecCompliantForm:C3,toJSONObject:S3,isAsyncFn:k3,isThenable:T3,setImmediate:C_,asap:P3};function ht(e,t,r,a,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),s&&(this.response=s,this.status=s.status?s.status:null)}ze.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ze.toJSONObject(this.config),code:this.code,status:this.status}}});const S_=ht.prototype,k_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{k_[e]={value:e}});Object.defineProperties(ht,k_);Object.defineProperty(S_,"isAxiosError",{value:!0});ht.from=(e,t,r,a,s,l)=>{const f=Object.create(S_);return ze.toFlatObject(e,f,function(S){return S!==Error.prototype},b=>b!=="isAxiosError"),ht.call(f,e.message,t,r,a,s),f.cause=e,f.name=e.name,l&&Object.assign(f,l),f};const _3=null;function tg(e){return ze.isPlainObject(e)||ze.isArray(e)}function T_(e){return ze.endsWith(e,"[]")?e.slice(0,-2):e}function Ox(e,t,r){return e?e.concat(t).map(function(s,l){return s=T_(s),!r&&l?"["+s+"]":s}).join(r?".":""):t}function O3(e){return ze.isArray(e)&&!e.some(tg)}const A3=ze.toFlatObject(ze,{},null,function(t){return/^is[A-Z]/.test(t)});function rf(e,t,r){if(!ze.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=ze.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,P){return!ze.isUndefined(P[R])});const a=r.metaTokens,s=r.visitor||O,l=r.dots,f=r.indexes,S=(r.Blob||typeof Blob<"u"&&Blob)&&ze.isSpecCompliantForm(t);if(!ze.isFunction(s))throw new TypeError("visitor must be a function");function T(D){if(D===null)return"";if(ze.isDate(D))return D.toISOString();if(!S&&ze.isBlob(D))throw new ht("Blob is not supported. Use a Buffer instead.");return ze.isArrayBuffer(D)||ze.isTypedArray(D)?S&&typeof Blob=="function"?new Blob([D]):Buffer.from(D):D}function O(D,R,P){let y=D;if(D&&!P&&typeof D=="object"){if(ze.endsWith(R,"{}"))R=a?R:R.slice(0,-2),D=JSON.stringify(D);else if(ze.isArray(D)&&O3(D)||(ze.isFileList(D)||ze.endsWith(R,"[]"))&&(y=ze.toArray(D)))return R=T_(R),y.forEach(function(v,g){!(ze.isUndefined(v)||v===null)&&t.append(f===!0?Ox([R],g,l):f===null?R:R+"[]",T(v))}),!1}return tg(D)?!0:(t.append(Ox(P,R,l),T(D)),!1)}const j=[],F=Object.assign(A3,{defaultVisitor:O,convertValue:T,isVisitable:tg});function z(D,R){if(!ze.isUndefined(D)){if(j.indexOf(D)!==-1)throw Error("Circular reference detected in "+R.join("."));j.push(D),ze.forEach(D,function(y,p){(!(ze.isUndefined(y)||y===null)&&s.call(t,y,ze.isString(p)?p.trim():p,R,F))===!0&&z(y,R?R.concat(p):[p])}),j.pop()}}if(!ze.isObject(e))throw new TypeError("data must be an object");return z(e),t}function Ax(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function gb(e,t){this._pairs=[],e&&rf(e,this,t)}const P_=gb.prototype;P_.append=function(t,r){this._pairs.push([t,r])};P_.toString=function(t){const r=t?function(a){return t.call(this,a,Ax)}:Ax;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function E3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function __(e,t,r){if(!t)return e;const a=r&&r.encode||E3,s=r&&r.serialize;let l;if(s?l=s(t,r):l=ze.isURLSearchParams(t)?t.toString():new gb(t,r).toString(a),l){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class M3{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ze.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Ex=M3,O_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R3=typeof URLSearchParams<"u"?URLSearchParams:gb,N3=typeof FormData<"u"?FormData:null,I3=typeof Blob<"u"?Blob:null,L3={isBrowser:!0,classes:{URLSearchParams:R3,FormData:N3,Blob:I3},protocols:["http","https","file","blob","url","data"]},bb=typeof window<"u"&&typeof document<"u",rg=typeof navigator=="object"&&navigator||void 0,j3=bb&&(!rg||["ReactNative","NativeScript","NS"].indexOf(rg.product)<0),D3=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),z3=bb&&window.location.href||"http://localhost",F3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bb,hasStandardBrowserEnv:j3,hasStandardBrowserWebWorkerEnv:D3,navigator:rg,origin:z3},Symbol.toStringTag,{value:"Module"})),on={...F3,...L3};function V3(e,t){return rf(e,new on.classes.URLSearchParams,Object.assign({visitor:function(r,a,s,l){return on.isNode&&ze.isBuffer(r)?(this.append(a,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function W3(e){return ze.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B3(e){const t={},r=Object.keys(e);let a;const s=r.length;let l;for(a=0;a<s;a++)l=r[a],t[l]=e[l];return t}function A_(e){function t(r,a,s,l){let f=r[l++];if(f==="__proto__")return!0;const b=Number.isFinite(+f),S=l>=r.length;return f=!f&&ze.isArray(s)?s.length:f,S?(ze.hasOwnProp(s,f)?s[f]=[s[f],a]:s[f]=a,!b):((!s[f]||!ze.isObject(s[f]))&&(s[f]=[]),t(r,a,s[f],l)&&ze.isArray(s[f])&&(s[f]=B3(s[f])),!b)}if(ze.isFormData(e)&&ze.isFunction(e.entries)){const r={};return ze.forEachEntry(e,(a,s)=>{t(W3(a),s,r,0)}),r}return null}function H3(e,t,r){if(ze.isString(e))try{return(t||JSON.parse)(e),ze.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const vb={transitional:O_,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",s=a.indexOf("application/json")>-1,l=ze.isObject(t);if(l&&ze.isHTMLForm(t)&&(t=new FormData(t)),ze.isFormData(t))return s?JSON.stringify(A_(t)):t;if(ze.isArrayBuffer(t)||ze.isBuffer(t)||ze.isStream(t)||ze.isFile(t)||ze.isBlob(t)||ze.isReadableStream(t))return t;if(ze.isArrayBufferView(t))return t.buffer;if(ze.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let b;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return V3(t,this.formSerializer).toString();if((b=ze.isFileList(t))||a.indexOf("multipart/form-data")>-1){const S=this.env&&this.env.FormData;return rf(b?{"files[]":t}:t,S&&new S,this.formSerializer)}}return l||s?(r.setContentType("application/json",!1),H3(t)):t}],transformResponse:[function(t){const r=this.transitional||vb.transitional,a=r&&r.forcedJSONParsing,s=this.responseType==="json";if(ze.isResponse(t)||ze.isReadableStream(t))return t;if(t&&ze.isString(t)&&(a&&!this.responseType||s)){const f=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(b){if(f)throw b.name==="SyntaxError"?ht.from(b,ht.ERR_BAD_RESPONSE,this,null,this.response):b}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:on.classes.FormData,Blob:on.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ze.forEach(["delete","get","head","post","put","patch"],e=>{vb.headers[e]={}});const mb=vb,X3=ze.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Y3=e=>{const t={};let r,a,s;return e&&e.split(`
`).forEach(function(f){s=f.indexOf(":"),r=f.substring(0,s).trim().toLowerCase(),a=f.substring(s+1).trim(),!(!r||t[r]&&X3[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t},Mx=Symbol("internals");function Fs(e){return e&&String(e).trim().toLowerCase()}function uc(e){return e===!1||e==null?e:ze.isArray(e)?e.map(uc):String(e)}function G3(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const U3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ep(e,t,r,a,s){if(ze.isFunction(a))return a.call(this,t,r);if(s&&(t=r),!!ze.isString(t)){if(ze.isString(a))return t.indexOf(a)!==-1;if(ze.isRegExp(a))return a.test(t)}}function $3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function q3(e,t){const r=ze.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(s,l,f){return this[a].call(this,t,s,l,f)},configurable:!0})})}class nf{constructor(t){t&&this.set(t)}set(t,r,a){const s=this;function l(b,S,T){const O=Fs(S);if(!O)throw new Error("header name must be a non-empty string");const j=ze.findKey(s,O);(!j||s[j]===void 0||T===!0||T===void 0&&s[j]!==!1)&&(s[j||S]=uc(b))}const f=(b,S)=>ze.forEach(b,(T,O)=>l(T,O,S));if(ze.isPlainObject(t)||t instanceof this.constructor)f(t,r);else if(ze.isString(t)&&(t=t.trim())&&!U3(t))f(Y3(t),r);else if(ze.isHeaders(t))for(const[b,S]of t.entries())l(S,b,a);else t!=null&&l(r,t,a);return this}get(t,r){if(t=Fs(t),t){const a=ze.findKey(this,t);if(a){const s=this[a];if(!r)return s;if(r===!0)return G3(s);if(ze.isFunction(r))return r.call(this,s,a);if(ze.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fs(t),t){const a=ze.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||Ep(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let s=!1;function l(f){if(f=Fs(f),f){const b=ze.findKey(a,f);b&&(!r||Ep(a,a[b],b,r))&&(delete a[b],s=!0)}}return ze.isArray(t)?t.forEach(l):l(t),s}clear(t){const r=Object.keys(this);let a=r.length,s=!1;for(;a--;){const l=r[a];(!t||Ep(this,this[l],l,t,!0))&&(delete this[l],s=!0)}return s}normalize(t){const r=this,a={};return ze.forEach(this,(s,l)=>{const f=ze.findKey(a,l);if(f){r[f]=uc(s),delete r[l];return}const b=t?$3(l):String(l).trim();b!==l&&delete r[l],r[b]=uc(s),a[b]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return ze.forEach(this,(a,s)=>{a!=null&&a!==!1&&(r[s]=t&&ze.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(s=>a.set(s)),a}static accessor(t){const a=(this[Mx]=this[Mx]={accessors:{}}).accessors,s=this.prototype;function l(f){const b=Fs(f);a[b]||(q3(s,f),a[b]=!0)}return ze.isArray(t)?t.forEach(l):l(t),this}}nf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ze.reduceDescriptors(nf.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});ze.freezeMethods(nf);const zn=nf;function Mp(e,t){const r=this||mb,a=t||r,s=zn.from(a.headers);let l=a.data;return ze.forEach(e,function(b){l=b.call(r,l,s.normalize(),t?t.status:void 0)}),s.normalize(),l}function E_(e){return!!(e&&e.__CANCEL__)}function gs(e,t,r){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,r),this.name="CanceledError"}ze.inherits(gs,ht,{__CANCEL__:!0});function M_(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new ht("Request failed with status code "+r.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function K3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Z3(e,t){e=e||10;const r=new Array(e),a=new Array(e);let s=0,l=0,f;return t=t!==void 0?t:1e3,function(S){const T=Date.now(),O=a[l];f||(f=T),r[s]=S,a[s]=T;let j=l,F=0;for(;j!==s;)F+=r[j++],j=j%e;if(s=(s+1)%e,s===l&&(l=(l+1)%e),T-f<t)return;const z=O&&T-O;return z?Math.round(F*1e3/z):void 0}}function Q3(e,t){let r=0,a=1e3/t,s,l;const f=(T,O=Date.now())=>{r=O,s=null,l&&(clearTimeout(l),l=null),e.apply(null,T)};return[(...T)=>{const O=Date.now(),j=O-r;j>=a?f(T,O):(s=T,l||(l=setTimeout(()=>{l=null,f(s)},a-j)))},()=>s&&f(s)]}const ad=(e,t,r=3)=>{let a=0;const s=Z3(50,250);return Q3(l=>{const f=l.loaded,b=l.lengthComputable?l.total:void 0,S=f-a,T=s(S),O=f<=b;a=f;const j={loaded:f,total:b,progress:b?f/b:void 0,bytes:S,rate:T||void 0,estimated:T&&b&&O?(b-f)/T:void 0,event:l,lengthComputable:b!=null,[t?"download":"upload"]:!0};e(j)},r)},Rx=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},Nx=e=>(...t)=>ze.asap(()=>e(...t)),J3=on.hasStandardBrowserEnv?function(){const t=on.navigator&&/(msie|trident)/i.test(on.navigator.userAgent),r=document.createElement("a");let a;function s(l){let f=l;return t&&(r.setAttribute("href",f),f=r.href),r.setAttribute("href",f),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return a=s(window.location.href),function(f){const b=ze.isString(f)?s(f):f;return b.protocol===a.protocol&&b.host===a.host}}():function(){return function(){return!0}}(),eV=on.hasStandardBrowserEnv?{write(e,t,r,a,s,l){const f=[e+"="+encodeURIComponent(t)];ze.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),ze.isString(a)&&f.push("path="+a),ze.isString(s)&&f.push("domain="+s),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rV(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function R_(e,t){return e&&!tV(t)?rV(e,t):t}const Ix=e=>e instanceof zn?{...e}:e;function Ya(e,t){t=t||{};const r={};function a(T,O,j){return ze.isPlainObject(T)&&ze.isPlainObject(O)?ze.merge.call({caseless:j},T,O):ze.isPlainObject(O)?ze.merge({},O):ze.isArray(O)?O.slice():O}function s(T,O,j){if(ze.isUndefined(O)){if(!ze.isUndefined(T))return a(void 0,T,j)}else return a(T,O,j)}function l(T,O){if(!ze.isUndefined(O))return a(void 0,O)}function f(T,O){if(ze.isUndefined(O)){if(!ze.isUndefined(T))return a(void 0,T)}else return a(void 0,O)}function b(T,O,j){if(j in t)return a(T,O);if(j in e)return a(void 0,T)}const S={url:l,method:l,data:l,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:b,headers:(T,O)=>s(Ix(T),Ix(O),!0)};return ze.forEach(Object.keys(Object.assign({},e,t)),function(O){const j=S[O]||s,F=j(e[O],t[O],O);ze.isUndefined(F)&&j!==b||(r[O]=F)}),r}const N_=e=>{const t=Ya({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:s,xsrfCookieName:l,headers:f,auth:b}=t;t.headers=f=zn.from(f),t.url=__(R_(t.baseURL,t.url),e.params,e.paramsSerializer),b&&f.set("Authorization","Basic "+btoa((b.username||"")+":"+(b.password?unescape(encodeURIComponent(b.password)):"")));let S;if(ze.isFormData(r)){if(on.hasStandardBrowserEnv||on.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((S=f.getContentType())!==!1){const[T,...O]=S?S.split(";").map(j=>j.trim()).filter(Boolean):[];f.setContentType([T||"multipart/form-data",...O].join("; "))}}if(on.hasStandardBrowserEnv&&(a&&ze.isFunction(a)&&(a=a(t)),a||a!==!1&&J3(t.url))){const T=s&&l&&eV.read(l);T&&f.set(s,T)}return t},nV=typeof XMLHttpRequest<"u",oV=nV&&function(e){return new Promise(function(r,a){const s=N_(e);let l=s.data;const f=zn.from(s.headers).normalize();let{responseType:b,onUploadProgress:S,onDownloadProgress:T}=s,O,j,F,z,D;function R(){z&&z(),D&&D(),s.cancelToken&&s.cancelToken.unsubscribe(O),s.signal&&s.signal.removeEventListener("abort",O)}let P=new XMLHttpRequest;P.open(s.method.toUpperCase(),s.url,!0),P.timeout=s.timeout;function y(){if(!P)return;const v=zn.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),m={data:!b||b==="text"||b==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:v,config:e,request:P};M_(function(M){r(M),R()},function(M){a(M),R()},m),P=null}"onloadend"in P?P.onloadend=y:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(y)},P.onabort=function(){P&&(a(new ht("Request aborted",ht.ECONNABORTED,e,P)),P=null)},P.onerror=function(){a(new ht("Network Error",ht.ERR_NETWORK,e,P)),P=null},P.ontimeout=function(){let g=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const m=s.transitional||O_;s.timeoutErrorMessage&&(g=s.timeoutErrorMessage),a(new ht(g,m.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,P)),P=null},l===void 0&&f.setContentType(null),"setRequestHeader"in P&&ze.forEach(f.toJSON(),function(g,m){P.setRequestHeader(m,g)}),ze.isUndefined(s.withCredentials)||(P.withCredentials=!!s.withCredentials),b&&b!=="json"&&(P.responseType=s.responseType),T&&([F,D]=ad(T,!0),P.addEventListener("progress",F)),S&&P.upload&&([j,z]=ad(S),P.upload.addEventListener("progress",j),P.upload.addEventListener("loadend",z)),(s.cancelToken||s.signal)&&(O=v=>{P&&(a(!v||v.type?new gs(null,e,P):v),P.abort(),P=null)},s.cancelToken&&s.cancelToken.subscribe(O),s.signal&&(s.signal.aborted?O():s.signal.addEventListener("abort",O)));const p=K3(s.url);if(p&&on.protocols.indexOf(p)===-1){a(new ht("Unsupported protocol "+p+":",ht.ERR_BAD_REQUEST,e));return}P.send(l||null)})},aV=(e,t)=>{let r=new AbortController,a;const s=function(S){if(!a){a=!0,f();const T=S instanceof Error?S:this.reason;r.abort(T instanceof ht?T:new gs(T instanceof Error?T.message:T))}};let l=t&&setTimeout(()=>{s(new ht(`timeout ${t} of ms exceeded`,ht.ETIMEDOUT))},t);const f=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(S=>{S&&(S.removeEventListener?S.removeEventListener("abort",s):S.unsubscribe(s))}),e=null)};e.forEach(S=>S&&S.addEventListener&&S.addEventListener("abort",s));const{signal:b}=r;return b.unsubscribe=f,[b,()=>{l&&clearTimeout(l),l=null}]},iV=aV,sV=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,s;for(;a<r;)s=a+t,yield e.slice(a,s),a=s},lV=async function*(e,t,r){for await(const a of e)yield*sV(ArrayBuffer.isView(a)?a:await r(String(a)),t)},Lx=(e,t,r,a,s)=>{const l=lV(e,t,s);let f=0,b,S=T=>{b||(b=!0,a&&a(T))};return new ReadableStream({async pull(T){try{const{done:O,value:j}=await l.next();if(O){S(),T.close();return}let F=j.byteLength;if(r){let z=f+=F;r(z)}T.enqueue(new Uint8Array(j))}catch(O){throw S(O),O}},cancel(T){return S(T),l.return()}},{highWaterMark:2})},of=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",I_=of&&typeof ReadableStream=="function",ng=of&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),L_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uV=I_&&L_(()=>{let e=!1;const t=new Request(on.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),jx=64*1024,og=I_&&L_(()=>ze.isReadableStream(new Response("").body)),id={stream:og&&(e=>e.body)};of&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!id[t]&&(id[t]=ze.isFunction(e[t])?r=>r[t]():(r,a)=>{throw new ht(`Response type '${t}' is not supported`,ht.ERR_NOT_SUPPORT,a)})})})(new Response);const cV=async e=>{if(e==null)return 0;if(ze.isBlob(e))return e.size;if(ze.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(ze.isArrayBufferView(e)||ze.isArrayBuffer(e))return e.byteLength;if(ze.isURLSearchParams(e)&&(e=e+""),ze.isString(e))return(await ng(e)).byteLength},dV=async(e,t)=>{const r=ze.toFiniteNumber(e.getContentLength());return r??cV(t)},fV=of&&(async e=>{let{url:t,method:r,data:a,signal:s,cancelToken:l,timeout:f,onDownloadProgress:b,onUploadProgress:S,responseType:T,headers:O,withCredentials:j="same-origin",fetchOptions:F}=N_(e);T=T?(T+"").toLowerCase():"text";let[z,D]=s||l||f?iV([s,l],f):[],R,P;const y=()=>{!R&&setTimeout(()=>{z&&z.unsubscribe()}),R=!0};let p;try{if(S&&uV&&r!=="get"&&r!=="head"&&(p=await dV(O,a))!==0){let M=new Request(t,{method:"POST",body:a,duplex:"half"}),X;if(ze.isFormData(a)&&(X=M.headers.get("content-type"))&&O.setContentType(X),M.body){const[H,B]=Rx(p,ad(Nx(S)));a=Lx(M.body,jx,H,B,ng)}}ze.isString(j)||(j=j?"include":"omit");const v="credentials"in Request.prototype;P=new Request(t,{...F,signal:z,method:r.toUpperCase(),headers:O.normalize().toJSON(),body:a,duplex:"half",credentials:v?j:void 0});let g=await fetch(P);const m=og&&(T==="stream"||T==="response");if(og&&(b||m)){const M={};["status","statusText","headers"].forEach(U=>{M[U]=g[U]});const X=ze.toFiniteNumber(g.headers.get("content-length")),[H,B]=b&&Rx(X,ad(Nx(b),!0))||[];g=new Response(Lx(g.body,jx,H,()=>{B&&B(),m&&y()},ng),M)}T=T||"text";let _=await id[ze.findKey(id,T)||"text"](g,e);return!m&&y(),D&&D(),await new Promise((M,X)=>{M_(M,X,{data:_,headers:zn.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:P})})}catch(v){throw y(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new ht("Network Error",ht.ERR_NETWORK,e,P),{cause:v.cause||v}):ht.from(v,v&&v.code,e,P)}}),ag={http:_3,xhr:oV,fetch:fV};ze.forEach(ag,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Dx=e=>`- ${e}`,pV=e=>ze.isFunction(e)||e===null||e===!1,j_={getAdapter:e=>{e=ze.isArray(e)?e:[e];const{length:t}=e;let r,a;const s={};for(let l=0;l<t;l++){r=e[l];let f;if(a=r,!pV(r)&&(a=ag[(f=String(r)).toLowerCase()],a===void 0))throw new ht(`Unknown adapter '${f}'`);if(a)break;s[f||"#"+l]=a}if(!a){const l=Object.entries(s).map(([b,S])=>`adapter ${b} `+(S===!1?"is not supported by the environment":"is not available in the build"));let f=t?l.length>1?`since :
`+l.map(Dx).join(`
`):" "+Dx(l[0]):"as no adapter specified";throw new ht("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a},adapters:ag};function Rp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gs(null,e)}function zx(e){return Rp(e),e.headers=zn.from(e.headers),e.data=Mp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),j_.getAdapter(e.adapter||mb.adapter)(e).then(function(a){return Rp(e),a.data=Mp.call(e,e.transformResponse,a),a.headers=zn.from(a.headers),a},function(a){return E_(a)||(Rp(e),a&&a.response&&(a.response.data=Mp.call(e,e.transformResponse,a.response),a.response.headers=zn.from(a.response.headers))),Promise.reject(a)})}const D_="1.7.5",yb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yb[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const Fx={};yb.transitional=function(t,r,a){function s(l,f){return"[Axios v"+D_+"] Transitional option '"+l+"'"+f+(a?". "+a:"")}return(l,f,b)=>{if(t===!1)throw new ht(s(f," has been removed"+(r?" in "+r:"")),ht.ERR_DEPRECATED);return r&&!Fx[f]&&(Fx[f]=!0,console.warn(s(f," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,f,b):!0}};function hV(e,t,r){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let s=a.length;for(;s-- >0;){const l=a[s],f=t[l];if(f){const b=e[l],S=b===void 0||f(b,l,e);if(S!==!0)throw new ht("option "+l+" must be "+S,ht.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ht("Unknown option "+l,ht.ERR_BAD_OPTION)}}const ig={assertOptions:hV,validators:yb},Vo=ig.validators;class sd{constructor(t){this.defaults=t,this.interceptors={request:new Ex,response:new Ex}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{a.stack?l&&!String(a.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(a.stack+=`
`+l):a.stack=l}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ya(this.defaults,r);const{transitional:a,paramsSerializer:s,headers:l}=r;a!==void 0&&ig.assertOptions(a,{silentJSONParsing:Vo.transitional(Vo.boolean),forcedJSONParsing:Vo.transitional(Vo.boolean),clarifyTimeoutError:Vo.transitional(Vo.boolean)},!1),s!=null&&(ze.isFunction(s)?r.paramsSerializer={serialize:s}:ig.assertOptions(s,{encode:Vo.function,serialize:Vo.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let f=l&&ze.merge(l.common,l[r.method]);l&&ze.forEach(["delete","get","head","post","put","patch","common"],D=>{delete l[D]}),r.headers=zn.concat(f,l);const b=[];let S=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(r)===!1||(S=S&&R.synchronous,b.unshift(R.fulfilled,R.rejected))});const T=[];this.interceptors.response.forEach(function(R){T.push(R.fulfilled,R.rejected)});let O,j=0,F;if(!S){const D=[zx.bind(this),void 0];for(D.unshift.apply(D,b),D.push.apply(D,T),F=D.length,O=Promise.resolve(r);j<F;)O=O.then(D[j++],D[j++]);return O}F=b.length;let z=r;for(j=0;j<F;){const D=b[j++],R=b[j++];try{z=D(z)}catch(P){R.call(this,P);break}}try{O=zx.call(this,z)}catch(D){return Promise.reject(D)}for(j=0,F=T.length;j<F;)O=O.then(T[j++],T[j++]);return O}getUri(t){t=Ya(this.defaults,t);const r=R_(t.baseURL,t.url);return __(r,t.params,t.paramsSerializer)}}ze.forEach(["delete","get","head","options"],function(t){sd.prototype[t]=function(r,a){return this.request(Ya(a||{},{method:t,url:r,data:(a||{}).data}))}});ze.forEach(["post","put","patch"],function(t){function r(a){return function(l,f,b){return this.request(Ya(b||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:f}))}}sd.prototype[t]=r(),sd.prototype[t+"Form"]=r(!0)});const cc=sd;class xb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const a=this;this.promise.then(s=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](s);a._listeners=null}),this.promise.then=s=>{let l;const f=new Promise(b=>{a.subscribe(b),l=b}).then(s);return f.cancel=function(){a.unsubscribe(l)},f},t(function(l,f,b){a.reason||(a.reason=new gs(l,f,b),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new xb(function(s){t=s}),cancel:t}}}const gV=xb;function bV(e){return function(r){return e.apply(null,r)}}function vV(e){return ze.isObject(e)&&e.isAxiosError===!0}const sg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sg).forEach(([e,t])=>{sg[t]=e});const mV=sg;function z_(e){const t=new cc(e),r=g_(cc.prototype.request,t);return ze.extend(r,cc.prototype,t,{allOwnKeys:!0}),ze.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return z_(Ya(e,s))},r}const or=z_(mb);or.Axios=cc;or.CanceledError=gs;or.CancelToken=gV;or.isCancel=E_;or.VERSION=D_;or.toFormData=rf;or.AxiosError=ht;or.Cancel=or.CanceledError;or.all=function(t){return Promise.all(t)};or.spread=bV;or.isAxiosError=vV;or.mergeConfig=Ya;or.AxiosHeaders=zn;or.formToJSON=e=>A_(ze.isHTMLForm(e)?new FormData(e):e);or.getAdapter=j_.getAdapter;or.HttpStatusCode=mV;or.default=or;const Vx=or,Wx=e=>{if(e)return e.replace("T"," ")},Bx="redeployLogFilters",Wo="__all__",Du="- Alle -",Hx="50",yV=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"},{value:"100",label:"100"},{value:"all",label:"Alle"}],xV=new Set(yV.map(e=>e.value)),wV={Einzeln:"Einzeln",Alle:"Alle",Auswahl:"Auswahl",single:"Einzeln",all:"Alle",selection:"Auswahl"},CV=e=>!!(e.stacks&&e.stacks.length||e.statuses&&e.statuses.length||e.endpoints&&e.endpoints.length||e.redeployTypes&&e.redeployTypes.length||e.message&&e.message.trim()||e.from&&e.from.trim()||e.to&&e.to.trim());function SV(){const[e,t]=ee.useState([]),[r,a]=ee.useState(0),[s,l]=ee.useState(!0),[f,b]=ee.useState("");ee.useState(!1);const[S,T]=ee.useState([]),[O,j]=ee.useState([]),[F,z]=ee.useState([]),[D,R]=ee.useState([]),[P,y]=ee.useState([]),[p,v]=ee.useState([]),[g,m]=ee.useState([]),[_,M]=ee.useState([]),[X,H]=ee.useState(""),[B,U]=ee.useState(""),[K,ne]=ee.useState(""),[oe,fe]=ee.useState(!1),[ve,Se]=ee.useState(!1),[he,ue]=ee.useState(!1),[ge,ye]=ee.useState(0),[Te,Re]=ee.useState(Hx),[De,Le]=ee.useState(1),Oe=ee.useCallback(ke=>{const Me=Array.isArray(ke)?ke:(ke==null?void 0:ke.items)??[],Ne=new Map,Ge=new Set,Qe=new Set,qe=new Set;Me.forEach(He=>{if(He.stackId){const Ze=String(He.stackId),bt=He.stackName||`Stack ${Ze}`;Ne.set(Ze,bt)}He.status&&Ge.add(He.status),He.endpoint!==null&&He.endpoint!==void 0&&He.endpoint!==""&&Qe.add(String(He.endpoint)),He.redeployType&&qe.add(He.redeployType)}),T(Array.from(Ne.entries()).map(([He,Ze])=>({value:He,label:Ze})).sort((He,Ze)=>He.label.localeCompare(Ze.label))),j(Array.from(Ge).sort()),z(Array.from(Qe).sort((He,Ze)=>He.localeCompare(Ze,void 0,{numeric:!0}))),R(Array.from(qe).sort()),ue(!0)},[]);ee.useMemo(()=>{const ke=new Map;return S.forEach(Me=>{ke.set(Me.value,Me.label)}),ke},[S]),ee.useEffect(()=>{he&&y(ke=>{const Me=ke.filter(Ne=>S.some(Ge=>Ge.value===Ne));return Me.length===ke.length?ke:Me})},[he,S]),ee.useEffect(()=>{he&&v(ke=>{const Me=ke.filter(Ne=>O.includes(Ne));return Me.length===ke.length?ke:Me})},[he,O]),ee.useEffect(()=>{he&&m(ke=>{const Me=ke.filter(Ne=>F.includes(Ne));return Me.length===ke.length?ke:Me})},[he,F]),ee.useEffect(()=>{he&&M(ke=>{const Me=ke.filter(Ne=>D.includes(Ne));return Me.length===ke.length?ke:Me})},[he,D]),ee.useEffect(()=>{if(typeof window>"u"){Se(!0);return}try{const ke=window.localStorage.getItem(Bx);if(ke){const Me=JSON.parse(ke),Ne=(Me==null?void 0:Me.filters)??Me??{},Ge=(Me==null?void 0:Me.pagination)??{};y(Ne.stacks||[]),v(Ne.statuses||[]),m(Ne.endpoints||[]),M(Ne.redeployTypes||[]),H(Ne.message||""),U(Ne.from||""),ne(Ne.to||""),fe(CV(Ne));const Qe=Ge.perPage;if(Qe!==void 0){const He=String(Qe);xV.has(He)&&Re(He)}const qe=Ge.page;typeof qe=="number"&&qe>0&&Le(qe)}}catch(ke){console.error("❌ Fehler beim Laden der gespeicherten Log-Filter:",ke)}finally{Se(!0)}},[]);const Xe=ee.useCallback(()=>{const ke={};P.length&&(ke.stackIds=P.join(",")),p.length&&(ke.statuses=p.join(",")),g.length&&(ke.endpoints=g.join(",")),_.length&&(ke.redeployTypes=_.join(",")),X.trim()&&(ke.message=X.trim());const Me=Wx(B);Me&&(ke.from=Me);const Ne=Wx(K);return Ne&&(ke.to=Ne),ke},[P,p,g,_,X,B,K]);ee.useEffect(()=>{if(!ve)return;let ke=!1;return Vx.get("/api/logs",{params:{perPage:"all",page:1}}).then(Me=>{ke||Oe(Me.data)}).catch(Me=>{ke||console.error("⚠️ Konnte Filteroptionen nicht aktualisieren:",Me)}),()=>{ke=!0}},[ve,Oe,ge]);const Ve=ee.useMemo(()=>({stacks:P,statuses:p,endpoints:g,redeployTypes:_,message:X,from:B,to:K}),[P,p,g,_,X,B,K]);return ee.useEffect(()=>{if(!ve)return;const ke={...Xe()};Te==="all"?(ke.perPage="all",ke.page=1):(ke.perPage=Te,ke.page=De);let Me=!1;return l(!0),b(""),Vx.get("/api/logs",{params:ke}).then(Ne=>{if(Me)return;const Ge=Ne.data||{},Qe=Array.isArray(Ge)?Ge:Ge.items??[],qe=Array.isArray(Ge)?Qe.length:Ge.total??Qe.length;if(t(Qe),a(qe),Te==="all")De!==1&&Le(1);else{const He=Math.max(1,Math.ceil((qe||0)/Number(Te))),Ze=Math.min(Math.max(De,1),He);Ze!==De&&Le(Ze)}}).catch(Ne=>{Me||(console.error("❌ Fehler beim Laden der Logs:",Ne),b("Fehler beim Laden der Redeploy-Logs"))}).finally(()=>{Me||l(!1)}),()=>{Me=!0}},[ve,Xe,Oe,ge,Te,De]),ee.useEffect(()=>{if(ve&&!(typeof window>"u"))try{window.localStorage.setItem(Bx,JSON.stringify({filters:Ve,pagination:{perPage:Te,page:De}}))}catch(ke){console.error("⚠️ Konnte Filter nicht speichern:",ke)}},[ve,Ve,Te,De]),ee.useMemo(()=>{const ke=S.filter(Me=>Me.value!==Wo);return[{value:Wo,label:Du},...ke]},[S]),ee.useMemo(()=>{const ke=O.filter(Me=>Me!==Wo).map(Me=>({value:Me,label:Me}));return[{value:Wo,label:Du},...ke]},[O]),ee.useMemo(()=>{const ke=F.filter(Me=>Me!==Wo).map(Me=>({value:Me,label:Me}));return[{value:Wo,label:Du},...ke]},[F]),ee.useMemo(()=>{const ke=D.filter(Me=>Me!==Wo).map(Me=>({value:Me,label:wV[Me]??Me}));return[{value:Wo,label:Du},...ke]},[D]),ee.useMemo(()=>{let ke=0;return P.length&&(ke+=P.length),p.length&&(ke+=p.length),g.length&&(ke+=g.length),_.length&&(ke+=_.length),X.trim()&&(ke+=1),B&&(ke+=1),K&&(ke+=1),ke},[P,p,g,X,B,K]),ee.useMemo(()=>{if(Te==="all")return 1;const ke=Number(Te)||Number(Hx);return Math.max(1,Math.ceil((r||0)/ke))},[Te,r]),ee.useMemo(()=>r===0?0:Te==="all"?1:(De-1)*Number(Te)+1,[r,Te,De]),ee.useMemo(()=>r===0?0:Te==="all"?r:Math.min(r,(De-1)*Number(Te)+e.length),[r,Te,De,e.length]),me.jsx("div",{className:"mt-12 mb-8 flex flex-col gap-12",children:me.jsxs(Be.Card,{children:[me.jsx(Be.CardHeader,{variant:"gradient",color:"gray",className:"mb-8 p-6",children:me.jsx(Be.Typography,{variant:"h6",color:"white",children:"Authors Table"})}),me.jsx(Be.CardBody,{className:"overflow-x-scroll px-0 pt-0 pb-2",children:me.jsxs("table",{className:"w-full min-w-[640px] table-auto",children:[me.jsx("thead",{children:me.jsx("tr",{children:["author","function","status","employed",""].map(ke=>me.jsx("th",{className:"border-b border-blue-gray-50 py-3 px-5 text-left",children:me.jsx(Be.Typography,{variant:"small",className:"text-[11px] font-bold uppercase text-blue-gray-400",children:ke})},ke))})}),me.jsx("tbody",{children:Tx.map(({img:ke,name:Me,email:Ne,job:Ge,online:Qe,date:qe},He)=>{const Ze=`py-3 px-5 ${He===Tx.length-1?"":"border-b border-blue-gray-50"}`;return me.jsxs("tr",{children:[me.jsx("td",{className:Ze,children:me.jsxs("div",{className:"flex items-center gap-4",children:[me.jsx(Be.Avatar,{src:ke,alt:Me,size:"sm",variant:"rounded"}),me.jsxs("div",{children:[me.jsx(Be.Typography,{variant:"small",color:"blue-gray",className:"font-semibold",children:Me}),me.jsx(Be.Typography,{className:"text-xs font-normal text-blue-gray-500",children:Ne})]})]})}),me.jsxs("td",{className:Ze,children:[me.jsx(Be.Typography,{className:"text-xs font-semibold text-blue-gray-600",children:Ge[0]}),me.jsx(Be.Typography,{className:"text-xs font-normal text-blue-gray-500",children:Ge[1]})]}),me.jsx("td",{className:Ze,children:me.jsx(Be.Chip,{variant:"gradient",color:Qe?"green":"blue-gray",value:Qe?"online":"offline",className:"py-0.5 px-2 text-[11px] font-medium w-fit"})}),me.jsx("td",{className:Ze,children:me.jsx(Be.Typography,{className:"text-xs font-semibold text-blue-gray-600",children:qe})}),me.jsx("td",{className:Ze,children:me.jsx(Be.Typography,{as:"a",href:"#",className:"text-xs font-semibold text-blue-gray-600",children:"Edit"})})]},Me)})})]})})]})})}const Np={className:"w-5 h-5 text-inherit"},lg=[{layout:"dashboard",pages:[{icon:me.jsx(FN,{...Np}),name:"stacks",path:"/stacks",element:me.jsx(V4,{})},{icon:me.jsx(KN,{...Np}),name:"maintenance",path:"/maintenance",element:me.jsx(W4,{})},{icon:me.jsx(_N,{...Np}),name:"logs",path:"/logs",element:me.jsx(SV,{})}]}];function F_(){const[e,t]=qd(),{sidenavType:r}=e;return me.jsxs("div",{className:"min-h-screen bg-blue-gray-50/50",children:[me.jsx(Kd,{routes:lg,brandImg:r==="dark"?"/img/logo-ct.png":"/img/logo-ct-dark.png"}),me.jsxs("div",{className:"p-4 xl:ml-80",children:[me.jsx(l_,{}),me.jsx(u_,{}),me.jsx(Be.IconButton,{size:"lg",color:"white",className:"fixed bottom-8 right-8 z-40 rounded-full shadow-blue-gray-900/10",ripple:!1,onClick:()=>fb(t,!0),children:me.jsx(bC,{className:"h-5 w-5"})}),me.jsx(s0,{children:lg.map(({layout:a,pages:s})=>a==="dashboard"&&s.map(({path:l,element:f})=>me.jsx(Ni,{exact:!0,path:l,element:f})))}),me.jsx("div",{className:"text-blue-gray-600",children:me.jsx(c_,{})})]})]})}F_.displayName="/src/layout/dashboard.jsx";function V_(){return me.jsx("div",{className:"relative min-h-screen w-full",children:me.jsx(s0,{children:lg.map(({layout:e,pages:t})=>e==="auth"&&t.map(({path:r,element:a})=>me.jsx(Ni,{exact:!0,path:r,element:a})))})})}V_.displayName="/src/layout/Auth.jsx";function kV(){return me.jsxs(s0,{children:[me.jsx(Ni,{path:"/dashboard/*",element:me.jsx(F_,{})}),me.jsx(Ni,{path:"/auth/*",element:me.jsx(V_,{})}),me.jsx(Ni,{path:"*",element:me.jsx(BR,{to:"/dashboard/home",replace:!0})})]})}Ip.createRoot(document.getElementById("root")).render(me.jsx(wn.StrictMode,{children:me.jsx(KR,{children:me.jsx(Be.ThemeProvider,{children:me.jsx(db,{children:me.jsx(kV,{})})})})}));