function qA(e,t){for(var r=0;rn[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var _s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZS={exports:{}},me={};/** * @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 ds=Symbol.for("react.element"),QA=Symbol.for("react.portal"),ZA=Symbol.for("react.fragment"),JA=Symbol.for("react.strict_mode"),e_=Symbol.for("react.profiler"),t_=Symbol.for("react.provider"),r_=Symbol.for("react.context"),n_=Symbol.for("react.forward_ref"),o_=Symbol.for("react.suspense"),i_=Symbol.for("react.memo"),a_=Symbol.for("react.lazy"),Gy=Symbol.iterator;function l_(e){return e===null||typeof e!="object"?null:(e=Gy&&e[Gy]||e["@@iterator"],typeof e=="function"?e:null)}var JS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eO=Object.assign,tO={};function Qa(e,t,r){this.props=e,this.context=t,this.refs=tO,this.updater=r||JS}Qa.prototype.isReactComponent={};Qa.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")};Qa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rO(){}rO.prototype=Qa.prototype;function Rp(e,t,r){this.props=e,this.context=t,this.refs=tO,this.updater=r||JS}var Np=Rp.prototype=new rO;Np.constructor=Rp;eO(Np,Qa.prototype);Np.isPureReactComponent=!0;var Ky=Array.isArray,nO=Object.prototype.hasOwnProperty,Mp={current:null},oO={key:!0,ref:!0,__self:!0,__source:!0};function iO(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)nO.call(t,n)&&!oO.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1>>1,H=R[Q];if(0>>1;Qo(Oe,V))zeo(cr,Oe)?(R[Q]=cr,R[ze]=V,Q=ze):(R[Q]=Oe,R[ie]=V,Q=ie);else if(zeo(cr,V))R[Q]=cr,R[ze]=V,Q=ze;else break e}}return F}function o(R,F){var V=R.sortIndex-F.sortIndex;return V!==0?V:R.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],s=[],f=1,c=null,d=3,g=!1,p=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(R){for(var F=r(s);F!==null;){if(F.callback===null)n(s);else if(F.startTime<=R)n(s),F.sortIndex=F.expirationTime,t(u,F);else break;F=r(s)}}function S(R){if(v=!1,x(R),!p)if(r(u)!==null)p=!0,M(C);else{var F=r(s);F!==null&&L(S,F.startTime-R)}}function C(R,F){p=!1,v&&(v=!1,m(E),E=-1),g=!0;var V=d;try{for(x(F),c=r(u);c!==null&&(!(c.expirationTime>F)||R&&!$());){var Q=c.callback;if(typeof Q=="function"){c.callback=null,d=c.priorityLevel;var H=Q(c.expirationTime<=F);F=e.unstable_now(),typeof H=="function"?c.callback=H:c===r(u)&&n(u),x(F)}else n(u);c=r(u)}if(c!==null)var Z=!0;else{var ie=r(s);ie!==null&&L(S,ie.startTime-F),Z=!1}return Z}finally{c=null,d=V,g=!1}}var w=!1,O=null,E=-1,P=5,k=-1;function $(){return!(e.unstable_now()-kR||125Q?(R.sortIndex=V,t(s,R),r(u)===null&&R===r(s)&&(v?(m(E),E=-1):v=!0,L(S,V-Q))):(R.sortIndex=H,t(u,R),p||g||(p=!0,M(C))),R},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(R){var F=d;return function(){var V=d;d=F;try{return R.apply(this,arguments)}finally{d=V}}}})(cO);sO.exports=cO;var d_=sO.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 g_=A,lr=d_;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),i0=Object.prototype.hasOwnProperty,h_=/^[: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]*$/,Qy={},Zy={};function v_(e){return i0.call(Zy,e)?!0:i0.call(Qy,e)?!1:h_.test(e)?Zy[e]=!0:(Qy[e]=!0,!1)}function p_(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function m_(e,t,r,n){if(t===null||typeof t>"u"||p_(e,t,r,n))return!0;if(n)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 Lt(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pt[e]=new Lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pt[t]=new Lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pt[e]=new Lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pt[e]=new Lt(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){Pt[e]=new Lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pt[e]=new Lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pt[e]=new Lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pt[e]=new Lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pt[e]=new Lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bp=/[\-:]([a-z])/g;function Dp(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(Bp,Dp);Pt[t]=new Lt(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(Bp,Dp);Pt[t]=new Lt(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(Bp,Dp);Pt[t]=new Lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Pt.xlinkHref=new Lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pt[e]=new Lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ip(e,t,r,n){var o=Pt.hasOwnProperty(t)?Pt[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var u=` `+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Ug=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Xl(e):""}function y_(e){switch(e.tag){case 5:return Xl(e.type);case 16:return Xl("Lazy");case 13:return Xl("Suspense");case 19:return Xl("SuspenseList");case 0:case 2:case 15:return e=Vg(e.type,!1),e;case 11:return e=Vg(e.type.render,!1),e;case 1:return e=Vg(e.type,!0),e;default:return""}}function s0(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 Fi:return"Fragment";case zi:return"Portal";case a0:return"Profiler";case Lp:return"StrictMode";case l0:return"Suspense";case u0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gO:return(e.displayName||"Context")+".Consumer";case dO:return(e._context.displayName||"Context")+".Provider";case zp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fp:return t=e.displayName||null,t!==null?t:s0(e.type)||"Memo";case Hn:t=e._payload,e=e._init;try{return s0(e(t))}catch{}}return null}function b_(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 s0(t);case 8:return t===Lp?"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 vo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x_(e){var t=vO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ns(e){e._valueTracker||(e._valueTracker=x_(e))}function pO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=vO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Bc(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 c0(e,t){var r=t.checked;return qe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function eb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=vo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mO(e,t){t=t.checked,t!=null&&Ip(e,"checked",t,!1)}function f0(e,t){mO(e,t);var r=vo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?d0(e,t.type,r):t.hasOwnProperty("defaultValue")&&d0(e,t.type,vo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tb(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="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 d0(e,t,r){(t!=="number"||Bc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Hl=Array.isArray;function na(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ms.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ql={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},C_=["Webkit","ms","Moz","O"];Object.keys(Ql).forEach(function(e){C_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ql[t]=Ql[e]})});function CO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ql.hasOwnProperty(e)&&Ql[e]?(""+t).trim():t+"px"}function wO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=CO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var w_=qe({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 v0(e,t){if(t){if(w_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function p0(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 m0=null;function Wp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var y0=null,oa=null,ia=null;function ob(e){if(e=vs(e)){if(typeof y0!="function")throw Error(q(280));var t=e.stateNode;t&&(t=wd(t),y0(e.stateNode,e.type,t))}}function SO(e){oa?ia?ia.push(e):ia=[e]:oa=e}function OO(){if(oa){var e=oa,t=ia;if(ia=oa=null,ob(e),t)for(e=0;e>>=0,e===0?32:31-(N_(e)/M_|0)|0}var js=64,Bs=4194304;function Yl(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 zc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=Yl(l):(i&=a,i!==0&&(n=Yl(i)))}else a=r&~o,a!==0?n=Yl(a):i!==0&&(n=Yl(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function gs(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jr(t),e[t]=r}function I_(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 n=e.eventTimes;for(e=e.expirationTimes;0=Jl),gb=String.fromCharCode(32),hb=!1;function VO(e,t){switch(e){case"keyup":return d$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function XO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wi=!1;function h$(e,t){switch(e){case"compositionend":return XO(t);case"keypress":return t.which!==32?null:(hb=!0,gb);case"textInput":return e=t.data,e===gb&&hb?null:e;default:return null}}function v$(e,t){if(Wi)return e==="compositionend"||!qp&&VO(e,t)?(e=WO(),Sc=Yp=Zn=null,Wi=!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)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=yb(r)}}function KO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?KO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qO(){for(var e=window,t=Bc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Bc(e.document)}return t}function Qp(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 O$(e){var t=qO(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&KO(r.ownerDocument.documentElement,r)){if(n!==null&&Qp(r)){if(t=n.start,e=n.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 o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=bb(r,i);var a=bb(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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=document.documentMode,Ui=null,O0=null,tu=null,E0=!1;function xb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;E0||Ui==null||Ui!==Bc(n)||(n=Ui,"selectionStart"in n&&Qp(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),tu&&xu(tu,n)||(tu=n,n=Uc(O0,"onSelect"),0Hi||(e.current=$0[Hi],$0[Hi]=null,Hi--)}function Ie(e,t){Hi++,$0[Hi]=e.current,e.current=t}var po={},Rt=Co(po),Xt=Co(!1),ii=po;function va(e,t){var r=e.type.contextTypes;if(!r)return po;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ht(e){return e=e.childContextTypes,e!=null}function Xc(){Xe(Xt),Xe(Rt)}function kb(e,t,r){if(Rt.current!==po)throw Error(q(168));Ie(Rt,t),Ie(Xt,r)}function iE(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(q(108,b_(e)||"Unknown",o));return qe({},r,n)}function Hc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,ii=Rt.current,Ie(Rt,e),Ie(Xt,Xt.current),!0}function Tb(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=iE(e,t,ii),n.__reactInternalMemoizedMergedChildContext=e,Xe(Xt),Xe(Rt),Ie(Rt,e)):Xe(Xt),Ie(Xt,r)}var dn=null,Sd=!1,oh=!1;function aE(e){dn===null?dn=[e]:dn.push(e)}function B$(e){Sd=!0,aE(e)}function wo(){if(!oh&&dn!==null){oh=!0;var e=0,t=ke;try{var r=dn;for(ke=1;e>=a,o-=a,gn=1<<32-jr(t)+o|r<E?(P=O,O=null):P=O.sibling;var k=d(m,O,x[E],S);if(k===null){O===null&&(O=P);break}e&&O&&k.alternate===null&&t(m,O),y=i(k,y,E),w===null?C=k:w.sibling=k,w=k,O=P}if(E===x.length)return r(m,O),He&&Mo(m,E),C;if(O===null){for(;EE?(P=O,O=null):P=O.sibling;var $=d(m,O,k.value,S);if($===null){O===null&&(O=P);break}e&&O&&$.alternate===null&&t(m,O),y=i($,y,E),w===null?C=$:w.sibling=$,w=$,O=P}if(k.done)return r(m,O),He&&Mo(m,E),C;if(O===null){for(;!k.done;E++,k=x.next())k=c(m,k.value,S),k!==null&&(y=i(k,y,E),w===null?C=k:w.sibling=k,w=k);return He&&Mo(m,E),C}for(O=n(m,O);!k.done;E++,k=x.next())k=g(O,m,E,k.value,S),k!==null&&(e&&k.alternate!==null&&O.delete(k.key===null?E:k.key),y=i(k,y,E),w===null?C=k:w.sibling=k,w=k);return e&&O.forEach(function(_){return t(m,_)}),He&&Mo(m,E),C}function b(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===Fi&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Rs:e:{for(var C=x.key,w=y;w!==null;){if(w.key===C){if(C=x.type,C===Fi){if(w.tag===7){r(m,w.sibling),y=o(w,x.props.children),y.return=m,m=y;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Hn&&$b(C)===w.type){r(m,w.sibling),y=o(w,x.props),y.ref=wl(m,w,x),y.return=m,m=y;break e}r(m,w);break}else t(m,w);w=w.sibling}x.type===Fi?(y=ei(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=$c(x.type,x.key,x.props,null,m.mode,S),S.ref=wl(m,y,x),S.return=m,m=S)}return a(m);case zi:e:{for(w=x.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(m,y.sibling),y=o(y,x.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=dh(x,m.mode,S),y.return=m,m=y}return a(m);case Hn:return w=x._init,b(m,y,w(x._payload),S)}if(Hl(x))return p(m,y,x,S);if(ml(x))return v(m,y,x,S);Us(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(m,y.sibling),y=o(y,x),y.return=m,m=y):(r(m,y),y=fh(x,m.mode,S),y.return=m,m=y),a(m)):r(m,y)}return b}var ma=cE(!0),fE=cE(!1),Kc=Co(null),qc=null,Ki=null,tm=null;function rm(){tm=Ki=qc=null}function nm(e){var t=Kc.current;Xe(Kc),e._currentValue=t}function M0(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function la(e,t){qc=e,tm=Ki=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ut=!0),e.firstContext=null)}function xr(e){var t=e._currentValue;if(tm!==e)if(e={context:e,memoizedValue:t,next:null},Ki===null){if(qc===null)throw Error(q(308));Ki=e,qc.dependencies={lanes:0,firstContext:e}}else Ki=Ki.next=e;return t}var Xo=null;function om(e){Xo===null?Xo=[e]:Xo.push(e)}function dE(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,om(t)):(r.next=o.next,o.next=r),t.interleaved=r,On(e,n)}function On(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 Yn=!1;function im(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gE(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 yn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,xe&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,On(e,r)}return o=n.interleaved,o===null?(t.next=t,om(n)):(t.next=o.next,o.next=t),n.interleaved=t,On(e,r)}function Ec(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Vp(e,r)}}function Rb(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Qc(e,t,r,n){var o=e.updateQueue;Yn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var u=l,s=u.next;u.next=null,a===null?i=s:a.next=s,a=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=u))}if(i!==null){var c=o.baseState;a=0,f=s=u=null,l=i;do{var d=l.lane,g=l.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,v=l;switch(d=t,g=r,v.tag){case 1:if(p=v.payload,typeof p=="function"){c=p.call(g,c,d);break e}c=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=v.payload,d=typeof p=="function"?p.call(g,c,d):p,d==null)break e;c=qe({},c,d);break e;case 2:Yn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=g,u=c):f=f.next=g,a|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(f===null&&(u=c),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ui|=a,e.lanes=a,e.memoizedState=c}}function Nb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ah.transition;ah.transition={};try{e(!1),t()}finally{ke=r,ah.transition=n}}function _E(){return Cr().memoizedState}function z$(e,t,r){var n=co(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},$E(e))RE(t,r);else if(r=dE(e,t,r,n),r!==null){var o=Dt();Br(r,e,n,o),NE(r,t,n)}}function F$(e,t,r){var n=co(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if($E(e))RE(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Lr(l,a)){var u=t.interleaved;u===null?(o.next=o,om(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=dE(e,t,o,n),r!==null&&(o=Dt(),Br(r,e,n,o),NE(r,t,n))}}function $E(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function RE(e,t){ru=Jc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function NE(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Vp(e,r)}}var ef={readContext:xr,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useInsertionEffect:kt,useLayoutEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useMutableSource:kt,useSyncExternalStore:kt,useId:kt,unstable_isNewReconciler:!1},W$={readContext:xr,useCallback:function(e,t){return Xr().memoizedState=[e,t===void 0?null:t],e},useContext:xr,useEffect:jb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,kc(4194308,4,EE.bind(null,t,e),r)},useLayoutEffect:function(e,t){return kc(4194308,4,e,t)},useInsertionEffect:function(e,t){return kc(4,2,e,t)},useMemo:function(e,t){var r=Xr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Xr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=z$.bind(null,Ke,e),[n.memoizedState,e]},useRef:function(e){var t=Xr();return e={current:e},t.memoizedState=e},useState:Mb,useDebugValue:gm,useDeferredValue:function(e){return Xr().memoizedState=e},useTransition:function(){var e=Mb(!1),t=e[0];return e=L$.bind(null,e[1]),Xr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ke,o=Xr();if(He){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),bt===null)throw Error(q(349));li&30||mE(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,jb(bE.bind(null,n,i,e),[e]),n.flags|=2048,Tu(9,yE.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Xr(),t=bt.identifierPrefix;if(He){var r=hn,n=gn;r=(n&~(1<<32-jr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Pu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Hr]=t,e[Su]=n,UE(e,t,!1,!1),t.stateNode=e;e:{switch(a=p0(r,n),r){case"dialog":We("cancel",e),We("close",e),o=n;break;case"iframe":case"object":case"embed":We("load",e),o=n;break;case"video":case"audio":for(o=0;oxa&&(t.flags|=128,n=!0,Sl(i,!1),t.lanes=4194304)}else{if(!n)if(e=Zc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Sl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!He)return Tt(t),null}else 2*et()-i.renderingStartTime>xa&&r!==1073741824&&(t.flags|=128,n=!0,Sl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=et(),t.sibling=null,r=Ge.current,Ie(Ge,n?r&1|2:r&1),t):(Tt(t),null);case 22:case 23:return bm(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Zt&1073741824&&(Tt(t),t.subtreeFlags&6&&(t.flags|=8192)):Tt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function q$(e,t){switch(Jp(t),t.tag){case 1:return Ht(t.type)&&Xc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(),Xe(Xt),Xe(Rt),um(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lm(t),null;case 13:if(Xe(Ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xe(Ge),null;case 4:return ya(),null;case 10:return nm(t.type._context),null;case 22:case 23:return bm(),null;case 24:return null;default:return null}}var Xs=!1,_t=!1,Q$=typeof WeakSet=="function"?WeakSet:Set,te=null;function qi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ze(e,t,n)}else r.current=null}function U0(e,t,r){try{r()}catch(n){Ze(e,t,n)}}var Hb=!1;function Z$(e,t){if(P0=Fc,e=qO(),Qp(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var g;c!==r||o!==0&&c.nodeType!==3||(l=a+o),c!==i||n!==0&&c.nodeType!==3||(u=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(g=c.firstChild)!==null;)d=c,c=g;for(;;){if(c===e)break t;if(d===r&&++s===o&&(l=a),d===i&&++f===n&&(u=a),(g=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=g}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(k0={focusedElem:e,selectionRange:r},Fc=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,b=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ar(t.type,v),b);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(S){Ze(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return p=Hb,Hb=!1,p}function nu(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&U0(t,r,i)}o=o.next}while(o!==n)}}function Pd(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 n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function V0(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 HE(e){var t=e.alternate;t!==null&&(e.alternate=null,HE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hr],delete t[Su],delete t[_0],delete t[M$],delete t[j$])),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 YE(e){return e.tag===5||e.tag===3||e.tag===4}function Yb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YE(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 X0(e,t,r){var n=e.tag;if(n===5||n===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=Vc));else if(n!==4&&(e=e.child,e!==null))for(X0(e,t,r),e=e.sibling;e!==null;)X0(e,t,r),e=e.sibling}function H0(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(H0(e,t,r),e=e.sibling;e!==null;)H0(e,t,r),e=e.sibling}var wt=null,_r=!1;function Ln(e,t,r){for(r=r.child;r!==null;)GE(e,t,r),r=r.sibling}function GE(e,t,r){if(qr&&typeof qr.onCommitFiberUnmount=="function")try{qr.onCommitFiberUnmount(yd,r)}catch{}switch(r.tag){case 5:_t||qi(r,t);case 6:var n=wt,o=_r;wt=null,Ln(e,t,r),wt=n,_r=o,wt!==null&&(_r?(e=wt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):wt.removeChild(r.stateNode));break;case 18:wt!==null&&(_r?(e=wt,r=r.stateNode,e.nodeType===8?nh(e.parentNode,r):e.nodeType===1&&nh(e,r),yu(e)):nh(wt,r.stateNode));break;case 4:n=wt,o=_r,wt=r.stateNode.containerInfo,_r=!0,Ln(e,t,r),wt=n,_r=o;break;case 0:case 11:case 14:case 15:if(!_t&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&U0(r,t,a),o=o.next}while(o!==n)}Ln(e,t,r);break;case 1:if(!_t&&(qi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Ze(r,t,l)}Ln(e,t,r);break;case 21:Ln(e,t,r);break;case 22:r.mode&1?(_t=(n=_t)||r.memoizedState!==null,Ln(e,t,r),_t=n):Ln(e,t,r);break;default:Ln(e,t,r)}}function Gb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Q$),t.forEach(function(n){var o=lR.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Pr(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=et()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*eR(n/1960))-n,10e?16:e,Jn===null)var n=!1;else{if(e=Jn,Jn=null,nf=0,xe&6)throw Error(q(331));var o=xe;for(xe|=4,te=e.current;te!==null;){var i=te,a=i.child;if(te.flags&16){var l=i.deletions;if(l!==null){for(var u=0;uet()-mm?Jo(e,0):pm|=r),Yt(e,t)}function rP(e,t){t===0&&(e.mode&1?(t=Bs,Bs<<=1,!(Bs&130023424)&&(Bs=4194304)):t=1);var r=Dt();e=On(e,t),e!==null&&(gs(e,t,r),Yt(e,r))}function aR(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),rP(e,r)}function lR(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),rP(e,r)}var nP;nP=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Ut=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ut=!1,G$(e,t,r);Ut=!!(e.flags&131072)}else Ut=!1,He&&t.flags&1048576&&lE(t,Gc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Tc(e,t),e=t.pendingProps;var o=va(t,Rt.current);la(t,r),o=cm(null,t,n,e,o,r);var i=fm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ht(n)?(i=!0,Hc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,im(t),o.updater=Ed,t.stateNode=o,o._reactInternals=t,B0(t,n,e,r),t=L0(null,t,n,!0,i,r)):(t.tag=0,He&&i&&Zp(t),Nt(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Tc(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=sR(n),e=Ar(n,e),o){case 0:t=I0(null,t,n,e,r);break e;case 1:t=Ub(null,t,n,e,r);break e;case 11:t=Fb(null,t,n,e,r);break e;case 14:t=Wb(null,t,n,Ar(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),I0(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),Ub(e,t,n,o,r);case 3:e:{if(zE(t),e===null)throw Error(q(387));n=t.pendingProps,i=t.memoizedState,o=i.element,gE(e,t),Qc(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ba(Error(q(423)),t),t=Vb(e,t,n,r,o);break e}else if(n!==o){o=ba(Error(q(424)),t),t=Vb(e,t,n,r,o);break e}else for(rr=lo(t.stateNode.containerInfo.firstChild),nr=t,He=!0,Nr=null,r=fE(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(pa(),n===o){t=En(e,t,r);break e}Nt(e,t,n,r)}t=t.child}return t;case 5:return hE(t),e===null&&N0(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,T0(n,o)?a=null:i!==null&&T0(n,i)&&(t.flags|=32),LE(e,t),Nt(e,t,a,r),t.child;case 6:return e===null&&N0(t),null;case 13:return FE(e,t,r);case 4:return am(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ma(t,null,n,r):Nt(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),Fb(e,t,n,o,r);case 7:return Nt(e,t,t.pendingProps,r),t.child;case 8:return Nt(e,t,t.pendingProps.children,r),t.child;case 12:return Nt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ie(Kc,n._currentValue),n._currentValue=a,i!==null)if(Lr(i.value,a)){if(i.children===o.children&&!Xt.current){t=En(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=yn(-1,r&-r),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),M0(i.return,r,t),l.lanes|=r;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(q(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),M0(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Nt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,la(t,r),o=xr(o),n=n(o),t.flags|=1,Nt(e,t,n,r),t.child;case 14:return n=t.type,o=Ar(n,t.pendingProps),o=Ar(n.type,o),Wb(e,t,n,o,r);case 15:return DE(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),Tc(e,t),t.tag=1,Ht(n)?(e=!0,Hc(t)):e=!1,la(t,r),ME(t,n,o),B0(t,n,o,r),L0(null,t,n,!0,e,r);case 19:return WE(e,t,r);case 22:return IE(e,t,r)}throw Error(q(156,t.tag))};function oP(e,t){return $O(e,t)}function uR(e,t,r,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mr(e,t,r,n){return new uR(e,t,r,n)}function Cm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sR(e){if(typeof e=="function")return Cm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zp)return 11;if(e===Fp)return 14}return 2}function fo(e,t){var r=e.alternate;return r===null?(r=mr(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 $c(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")Cm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Fi:return ei(r.children,o,i,t);case Lp:a=8,o|=8;break;case a0:return e=mr(12,r,t,o|2),e.elementType=a0,e.lanes=i,e;case l0:return e=mr(13,r,t,o),e.elementType=l0,e.lanes=i,e;case u0:return e=mr(19,r,t,o),e.elementType=u0,e.lanes=i,e;case hO:return Td(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dO:a=10;break e;case gO:a=9;break e;case zp:a=11;break e;case Fp:a=14;break e;case Hn:a=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=mr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ei(e,t,r,n){return e=mr(7,e,n,t),e.lanes=r,e}function Td(e,t,r,n){return e=mr(22,e,n,t),e.elementType=hO,e.lanes=r,e.stateNode={isHidden:!1},e}function fh(e,t,r){return e=mr(6,e,null,t),e.lanes=r,e}function dh(e,t,r){return t=mr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cR(e,t,r,n,o){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=Hg(0),this.expirationTimes=Hg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hg(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wm(e,t,r,n,o,i,a,l,u){return e=new cR(e,t,r,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},im(i),e}function fR(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uP)}catch(e){console.error(e)}}uP(),uO.exports=ur;var Pm=uO.exports;const Gs=Se(Pm);var rx=Pm;o0.createRoot=rx.createRoot,o0.hydrateRoot=rx.hydrateRoot;const pR="/assets/logo-8ab9f0ee.png";function ee(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);oe&&(t=0,n=r,r=new Map)}return{get:function(a){var l=r.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set:function(a,l){r.has(a)?r.set(a,l):o(a,l)}}}var fP="!";function OR(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(a){for(var l=[],u=0,s=0,f,c=0;cs?f-s:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:b}}}function ER(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var o=n[0]==="[";o?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function PR(e){return{cache:SR(e.cacheSize),splitModifiers:OR(e),...yR(e)}}var kR=/\s+/;function TR(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(kR).map(function(a){var l=r(a),u=l.modifiers,s=l.hasImportantModifier,f=l.baseClassName,c=l.maybePostfixModifierPosition,d=n(c?f.substring(0,c):f),g=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:a};if(d=n(f),!d)return{isTailwindClass:!1,originalClassName:a};g=!1}var p=ER(u).join(":"),v=s?p+fP:p;return{isTailwindClass:!0,modifierId:v,classGroupId:d,originalClassName:a,hasPostfixModifier:g}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var l=a.modifierId,u=a.classGroupId,s=a.hasPostfixModifier,f=l+u;return i.has(f)?!1:(i.add(f),o(u,s).forEach(function(c){return i.add(l+c)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function AR(){for(var e=arguments.length,t=new Array(e),r=0;r-1}var WM=FM,UM=Md;function VM(e,t){var r=this.__data__,n=UM(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var XM=VM,HM=TM,YM=BM,GM=LM,KM=WM,qM=XM;function nl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},Go=function(t){return ci(t)&&t.indexOf("%")===t.length-1},K=function(t){return y5(t)&&!il(t)},w5=function(t){return se(t)},gt=function(t){return K(t)||ci(t)},S5=0,Oi=function(t){var r=++S5;return"".concat(t||"").concat(r)},jt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!ci(t))return n;var i;if(Go(t)){var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return il(i)&&(i=n),o&&i>r&&(i=r),i},Qn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},O5=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ev(e){"@babel/helpers - typeof";return ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ev(e)}var mx={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},bn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},yx=null,vh=null,Lm=function e(t){if(t===yx&&Array.isArray(vh))return vh;var r=[];return A.Children.forEach(t,function(n){se(n)||(g5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),vh=r,yx=t,r};function ir(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(o){return bn(o)}):n=[bn(t)],Lm(e).forEach(function(o){var i=or(o,"type.displayName")||or(o,"type.name");n.indexOf(i)!==-1&&r.push(o)}),r}function Jt(e,t){var r=ir(e,t);return r&&r[0]}var bx=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,o=r.height;return!(!K(n)||n<=0||!K(o)||o<=0)},R5=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],N5=function(t){return t&&t.type&&ci(t.type)&&R5.indexOf(t.type)>=0},kP=function(t){return t&&ev(t)==="object"&&"clipDot"in t},M5=function(t,r,n,o){var i,a=(i=hh==null?void 0:hh[o])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!ue(t)&&(o&&a.includes(r)||k5.includes(r))||n&&Im.includes(r)},oe=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(A.isValidElement(t)&&(o=t.props),!tl(o))return null;var i={};return Object.keys(o).forEach(function(a){var l;M5((l=o)===null||l===void 0?void 0:l[a],a,r,n)&&(i[a]=o[a])}),i},tv=function e(t,r){if(t===r)return!0;var n=A.Children.count(t);if(n!==A.Children.count(r))return!1;if(n===0)return!0;if(n===1)return xx(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function L5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nv(e){var t=e.children,r=e.width,n=e.height,o=e.viewBox,i=e.className,a=e.style,l=e.title,u=e.desc,s=I5(e,D5),f=o||{width:r,height:n,x:0,y:0},c=ce("recharts-surface",i);return h.createElement("svg",rv({},oe(s,!0,"svg"),{className:c,width:r,height:n,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),h.createElement("title",null,l),h.createElement("desc",null,u),t)}var z5=["children","className"];function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function W5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var pe=h.forwardRef(function(e,t){var r=e.children,n=e.className,o=F5(e,z5),i=ce("recharts-layer",n);return h.createElement("g",ov({className:i},oe(o,!0),{ref:t}),r)}),Dr=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;io?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n=n?e:X5(e,t,r)}var Y5=H5,G5="\\ud800-\\udfff",K5="\\u0300-\\u036f",q5="\\ufe20-\\ufe2f",Q5="\\u20d0-\\u20ff",Z5=K5+q5+Q5,J5="\\ufe0e\\ufe0f",eB="\\u200d",tB=RegExp("["+eB+G5+Z5+J5+"]");function rB(e){return tB.test(e)}var TP=rB;function nB(e){return e.split("")}var oB=nB,AP="\\ud800-\\udfff",iB="\\u0300-\\u036f",aB="\\ufe20-\\ufe2f",lB="\\u20d0-\\u20ff",uB=iB+aB+lB,sB="\\ufe0e\\ufe0f",cB="["+AP+"]",iv="["+uB+"]",av="\\ud83c[\\udffb-\\udfff]",fB="(?:"+iv+"|"+av+")",_P="[^"+AP+"]",$P="(?:\\ud83c[\\udde6-\\uddff]){2}",RP="[\\ud800-\\udbff][\\udc00-\\udfff]",dB="\\u200d",NP=fB+"?",MP="["+sB+"]?",gB="(?:"+dB+"(?:"+[_P,$P,RP].join("|")+")"+MP+NP+")*",hB=MP+NP+gB,vB="(?:"+[_P+iv+"?",iv,$P,RP,cB].join("|")+")",pB=RegExp(av+"(?="+av+")|"+vB+hB,"g");function mB(e){return e.match(pB)||[]}var yB=mB,bB=oB,xB=TP,CB=yB;function wB(e){return xB(e)?CB(e):bB(e)}var SB=wB,OB=Y5,EB=TP,PB=SB,kB=CP;function TB(e){return function(t){t=kB(t);var r=EB(t)?PB(t):void 0,n=r?r[0]:t.charAt(0),o=r?OB(r,1).join(""):t.slice(1);return n[e]()+o}}var AB=TB,_B=AB,$B=_B("toUpperCase"),RB=$B;const Gd=Se(RB);function je(e){return function(){return e}}const jP=Math.cos,sf=Math.sin,Wr=Math.sqrt,cf=Math.PI,Kd=2*cf,lv=Math.PI,uv=2*lv,Bo=1e-6,NB=uv-Bo;function BP(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return BP;const r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;oBo)if(!(Math.abs(c*u-s*f)>Bo)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let g=n-a,p=o-l,v=u*u+s*s,b=g*g+p*p,m=Math.sqrt(v),y=Math.sqrt(d),x=i*Math.tan((lv-Math.acos((v+d-b)/(2*m*y)))/2),S=x/y,C=x/m;Math.abs(S-1)>Bo&&this._append`L${t+S*f},${r+S*c}`,this._append`A${i},${i},0,0,${+(c*g>f*p)},${this._x1=t+C*u},${this._y1=r+C*s}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(o),u=n*Math.sin(o),s=t+l,f=r+u,c=1^a,d=a?o-i:i-o;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Bo||Math.abs(this._y1-f)>Bo)&&this._append`L${s},${f}`,n&&(d<0&&(d=d%uv+uv),d>NB?this._append`A${n},${n},0,1,${c},${t-l},${r-u}A${n},${n},0,1,${c},${this._x1=s},${this._y1=f}`:d>Bo&&this._append`A${n},${n},0,${+(d>=lv)},${c},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function zm(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new jB(t)}function Fm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function DP(e){this._context=e}DP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function qd(e){return new DP(e)}function IP(e){return e[0]}function LP(e){return e[1]}function zP(e,t){var r=je(!0),n=null,o=qd,i=null,a=zm(l);e=typeof e=="function"?e:e===void 0?IP:je(e),t=typeof t=="function"?t:t===void 0?LP:je(t);function l(u){var s,f=(u=Fm(u)).length,c,d=!1,g;for(n==null&&(i=o(g=a())),s=0;s<=f;++s)!(s=g;--p)l.point(x[p],S[p]);l.lineEnd(),l.areaEnd()}m&&(x[d]=+e(b,d,c),S[d]=+t(b,d,c),l.point(n?+n(b,d,c):x[d],r?+r(b,d,c):S[d]))}if(y)return l=null,y+""||null}function f(){return zP().defined(o).curve(a).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:je(+c),n=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:je(+c),s):e},s.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:je(+c),s):n},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:je(+c),r=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:je(+c),s):t},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:je(+c),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(c){return arguments.length?(o=typeof c=="function"?c:je(!!c),s):o},s.curve=function(c){return arguments.length?(a=c,i!=null&&(l=a(i)),s):a},s.context=function(c){return arguments.length?(c==null?i=l=null:l=a(i=c),s):i},s}class FP{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function BB(e){return new FP(e,!0)}function DB(e){return new FP(e,!1)}const Wm={draw(e,t){const r=Wr(t/cf);e.moveTo(r,0),e.arc(0,0,r,0,Kd)}},IB={draw(e,t){const r=Wr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},WP=Wr(1/3),LB=WP*2,zB={draw(e,t){const r=Wr(t/LB),n=r*WP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},FB={draw(e,t){const r=Wr(t),n=-r/2;e.rect(n,n,r,r)}},WB=.8908130915292852,UP=sf(cf/10)/sf(7*cf/10),UB=sf(Kd/10)*UP,VB=-jP(Kd/10)*UP,XB={draw(e,t){const r=Wr(t*WB),n=UB*r,o=VB*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=Kd*i/5,l=jP(a),u=sf(a);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*o,u*n+l*o)}e.closePath()}},ph=Wr(3),HB={draw(e,t){const r=-Wr(t/(ph*3));e.moveTo(0,r*2),e.lineTo(-ph*r,-r),e.lineTo(ph*r,-r),e.closePath()}},fr=-.5,dr=Wr(3)/2,sv=1/Wr(12),YB=(sv/2+1)*3,GB={draw(e,t){const r=Wr(t/YB),n=r/2,o=r*sv,i=n,a=r*sv+r,l=-i,u=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(l,u),e.lineTo(fr*n-dr*o,dr*n+fr*o),e.lineTo(fr*i-dr*a,dr*i+fr*a),e.lineTo(fr*l-dr*u,dr*l+fr*u),e.lineTo(fr*n+dr*o,fr*o-dr*n),e.lineTo(fr*i+dr*a,fr*a-dr*i),e.lineTo(fr*l+dr*u,fr*u-dr*l),e.closePath()}};function KB(e,t){let r=null,n=zm(o);e=typeof e=="function"?e:je(e||Wm),t=typeof t=="function"?t:je(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:je(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:je(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function ff(){}function df(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function VP(e){this._context=e}VP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:df(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:df(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qB(e){return new VP(e)}function XP(e){this._context=e}XP.prototype={areaStart:ff,areaEnd:ff,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:df(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QB(e){return new XP(e)}function HP(e){this._context=e}HP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:df(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ZB(e){return new HP(e)}function YP(e){this._context=e}YP.prototype={areaStart:ff,areaEnd:ff,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function JB(e){return new YP(e)}function wx(e){return e<0?-1:1}function Sx(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),l=(i*o+a*n)/(n+o);return(wx(i)+wx(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function Ox(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function mh(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-n)/3;e._context.bezierCurveTo(n+l,o+l*t,i-l,a-l*r,i,a)}function gf(e){this._context=e}gf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:mh(this,this._t0,Ox(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,mh(this,Ox(this,r=Sx(this,e,t)),r);break;default:mh(this,this._t0,r=Sx(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function GP(e){this._context=new KP(e)}(GP.prototype=Object.create(gf.prototype)).point=function(e,t){gf.prototype.point.call(this,t,e)};function KP(e){this._context=e}KP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function eD(e){return new gf(e)}function tD(e){return new GP(e)}function qP(e){this._context=e}qP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Ex(e),o=Ex(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function nD(e){return new Qd(e,.5)}function oD(e){return new Qd(e,0)}function iD(e){return new Qd(e,1)}function Ca(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,l=i.length;r=0;)r[t]=t;return r}function aD(e,t){return e[t]}function lD(e){const t=[];return t.key=e,t}function uD(){var e=je([]),t=cv,r=Ca,n=aD;function o(i){var a=Array.from(e.apply(this,arguments),lD),l,u=a.length,s=-1,f;for(const c of i)for(l=0,++s;l0){for(var r,n,o=0,i=e[0].length,a;o0){for(var r=0,n=e[t[0]],o,i=n.length;r0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var QP={symbolCircle:Wm,symbolCross:IB,symbolDiamond:zB,symbolSquare:FB,symbolStar:XB,symbolTriangle:HB,symbolWye:GB},yD=Math.PI/180,bD=function(t){var r="symbol".concat(Gd(t));return QP[r]||Wm},xD=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*yD;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},CD=function(t,r){QP["symbol".concat(Gd(t))]=r},Um=function(t){var r=t.type,n=r===void 0?"circle":r,o=t.size,i=o===void 0?64:o,a=t.sizeType,l=a===void 0?"area":a,u=pD(t,dD),s=kx(kx({},u),{},{type:n,size:i,sizeType:l}),f=function(){var b=bD(n),m=KB().type(b).size(xD(i,l,n));return m()},c=s.className,d=s.cx,g=s.cy,p=oe(s,!0);return d===+d&&g===+g&&i===+i?h.createElement("path",fv({},p,{className:ce("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(g,")"),d:f()})):null};Um.registerSymbol=CD;function wa(e){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var y=g.inactive?s:g.color;return h.createElement("li",dv({className:b,style:c,key:"legend-item-".concat(p)},fi(n.props,g,p)),h.createElement(nv,{width:a,height:a,viewBox:f,style:d},n.renderIcon(g)),h.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},v?v(m,g,p):m))})}},{key:"render",value:function(){var n=this.props,o=n.payload,i=n.layout,a=n.align;if(!o||!o.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return h.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(A.PureComponent);$u(Vm,"displayName","Legend");$u(Vm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var _D=jd;function $D(){this.__data__=new _D,this.size=0}var RD=$D;function ND(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var MD=ND;function jD(e){return this.__data__.get(e)}var BD=jD;function DD(e){return this.__data__.has(e)}var ID=DD,LD=jd,zD=$m,FD=Rm,WD=200;function UD(e,t){var r=this.__data__;if(r instanceof LD){var n=r.__data__;if(!zD||n.lengthl))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var c=-1,d=!0,g=r&f4?new l4:void 0;for(i.set(e,t),i.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=vI}var Gm=pI,mI=Nn,yI=Gm,bI=Mn,xI="[object Arguments]",CI="[object Array]",wI="[object Boolean]",SI="[object Date]",OI="[object Error]",EI="[object Function]",PI="[object Map]",kI="[object Number]",TI="[object Object]",AI="[object RegExp]",_I="[object Set]",$I="[object String]",RI="[object WeakMap]",NI="[object ArrayBuffer]",MI="[object DataView]",jI="[object Float32Array]",BI="[object Float64Array]",DI="[object Int8Array]",II="[object Int16Array]",LI="[object Int32Array]",zI="[object Uint8Array]",FI="[object Uint8ClampedArray]",WI="[object Uint16Array]",UI="[object Uint32Array]",Ue={};Ue[jI]=Ue[BI]=Ue[DI]=Ue[II]=Ue[LI]=Ue[zI]=Ue[FI]=Ue[WI]=Ue[UI]=!0;Ue[xI]=Ue[CI]=Ue[NI]=Ue[wI]=Ue[MI]=Ue[SI]=Ue[OI]=Ue[EI]=Ue[PI]=Ue[kI]=Ue[TI]=Ue[AI]=Ue[_I]=Ue[$I]=Ue[RI]=!1;function VI(e){return bI(e)&&yI(e.length)&&!!Ue[mI(e)]}var XI=VI;function HI(e){return function(t){return e(t)}}var uk=HI,mf={exports:{}};mf.exports;(function(e,t){var r=vP,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,l=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=l})(mf,mf.exports);var YI=mf.exports,GI=XI,KI=uk,jx=YI,Bx=jx&&jx.isTypedArray,qI=Bx?KI(Bx):GI,sk=qI,QI=eI,ZI=Hm,JI=Gt,e3=lk,t3=Ym,r3=sk,n3=Object.prototype,o3=n3.hasOwnProperty;function i3(e,t){var r=JI(e),n=!r&&ZI(e),o=!r&&!n&&e3(e),i=!r&&!n&&!o&&r3(e),a=r||n||o||i,l=a?QI(e.length,String):[],u=l.length;for(var s in e)(t||o3.call(e,s))&&!(a&&(s=="length"||o&&(s=="offset"||s=="parent")||i&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||t3(s,u)))&&l.push(s);return l}var a3=i3,l3=Object.prototype;function u3(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||l3;return e===r}var s3=u3;function c3(e,t){return function(r){return e(t(r))}}var ck=c3,f3=ck,d3=f3(Object.keys,Object),g3=d3,h3=s3,v3=g3,p3=Object.prototype,m3=p3.hasOwnProperty;function y3(e){if(!h3(e))return v3(e);var t=[];for(var r in Object(e))m3.call(e,r)&&r!="constructor"&&t.push(r);return t}var b3=y3,x3=Am,C3=Gm;function w3(e){return e!=null&&C3(e.length)&&!x3(e)}var ys=w3,S3=a3,O3=b3,E3=ys;function P3(e){return E3(e)?S3(e):O3(e)}var Zd=P3,k3=W4,T3=Z4,A3=Zd;function _3(e){return k3(e,A3,T3)}var $3=_3,Dx=$3,R3=1,N3=Object.prototype,M3=N3.hasOwnProperty;function j3(e,t,r,n,o,i){var a=r&R3,l=Dx(e),u=l.length,s=Dx(t),f=s.length;if(u!=f&&!a)return!1;for(var c=u;c--;){var d=l[c];if(!(a?d in t:M3.call(t,d)))return!1}var g=i.get(e),p=i.get(t);if(g&&p)return g==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var b=a;++c-1}var N6=R6;function M6(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=K6){var s=t?null:Y6(e);if(s)return G6(s);a=!1,o=H6,u=new U6}else u=t?[]:l;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function d8(e){return e.value}function g8(e,t){if(h.isValidElement(e))return h.cloneElement(e,t);if(typeof e=="function")return h.createElement(e,t);t.ref;var r=c8(t,r8);return h.createElement(Vm,r)}var Jx=1,xn=function(e){function t(){var r;n8(this,t);for(var n=arguments.length,o=new Array(n),i=0;iJx||Math.abs(o.height-this.lastBoundingBox.height)>Jx)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,n&&n(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?sn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var o=this.props,i=o.layout,a=o.align,l=o.verticalAlign,u=o.margin,s=o.chartWidth,f=o.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(a==="center"&&i==="vertical"){var g=this.getBBoxSnapshot();c={left:((s||0)-g.width)/2}}else c=a==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var p=this.getBBoxSnapshot();d={top:((f||0)-p.height)/2}}else d=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return sn(sn({},c),d)}},{key:"render",value:function(){var n=this,o=this.props,i=o.content,a=o.width,l=o.height,u=o.wrapperStyle,s=o.payloadUniqBy,f=o.payload,c=sn(sn({position:"absolute",width:a||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return h.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(g){n.wrapperNode=g}},g8(i,sn(sn({},this.props),{},{payload:mk(f,s,d8)})))}}],[{key:"getWithHeight",value:function(n,o){var i=sn(sn({},this.defaultProps),n.props),a=i.layout;return a==="vertical"&&K(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||o}:null}}])}(A.PureComponent);Jd(xn,"displayName","Legend");Jd(xn,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var eC=ms,h8=Hm,v8=Gt,tC=eC?eC.isConcatSpreadable:void 0;function p8(e){return v8(e)||h8(e)||!!(tC&&e&&e[tC])}var m8=p8,y8=ik,b8=m8;function xk(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=b8),o||(o=[]);++i0&&r(l)?t>1?xk(l,t-1,r,n,o):y8(o,l):n||(o[o.length]=l)}return o}var Ck=xk;function x8(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),l=a.length;l--;){var u=a[e?l:++o];if(r(i[u],u,i)===!1)break}return t}}var C8=x8,w8=C8,S8=w8(),O8=S8,E8=O8,P8=Zd;function k8(e,t){return e&&E8(e,t,P8)}var wk=k8,T8=ys;function A8(e,t){return function(r,n){if(r==null)return r;if(!T8(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++it||i&&a&&u&&!l&&!s||n&&a&&u||!r&&u||!o)return 1;if(!n&&!i&&!s&&e=l)return u;var s=r[n];return u*(s=="desc"?-1:1)}}return e.index-t.index}var U8=W8,Ch=Mm,V8=jm,X8=ln,H8=Sk,Y8=I8,G8=uk,K8=U8,q8=ul,Q8=Gt;function Z8(e,t,r){t.length?t=Ch(t,function(i){return Q8(i)?function(a){return V8(a,i.length===1?i[0]:i)}:i}):t=[q8];var n=-1;t=Ch(t,G8(X8));var o=H8(e,function(i,a,l){var u=Ch(t,function(s){return s(i)});return{criteria:u,index:++n,value:i}});return Y8(o,function(i,a){return K8(i,a,r)})}var J8=Z8;function ez(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var tz=ez,rz=tz,nC=Math.max;function nz(e,t,r){return t=nC(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=nC(n.length-t,0),a=Array(i);++o0){if(++t>=gz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mz=pz,yz=dz,bz=mz,xz=bz(yz),Cz=xz,wz=ul,Sz=oz,Oz=Cz;function Ez(e,t){return Oz(Sz(e,t,wz),e+"")}var Pz=Ez,kz=_m,Tz=ys,Az=Ym,_z=So;function $z(e,t,r){if(!_z(r))return!1;var n=typeof t;return(n=="number"?Tz(r)&&Az(t,r.length):n=="string"&&t in r)?kz(r[t],e):!1}var eg=$z,Rz=Ck,Nz=J8,Mz=Pz,iC=eg,jz=Mz(function(e,t){if(e==null)return[];var r=t.length;return r>1&&iC(e,t[0],t[1])?t=[]:r>2&&iC(t[0],t[1],t[2])&&(t=[t[0]]),Nz(e,Rz(t,1),[])}),Bz=jz;const Qm=Se(Bz);function Ru(e){"@babel/helpers - typeof";return Ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(e)}function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(Tl,"-left"),K(r)&&t&&K(t.x)&&r=t.y),"".concat(Tl,"-top"),K(n)&&t&&K(t.y)&&nv?Math.max(f,u[n]):Math.max(c,u[n])}function Qz(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Zz(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,o=e.position,i=e.reverseDirection,a=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,s,f,c;return a.height>0&&a.width>0&&r?(f=uC({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:u,viewBoxDimension:u.width}),c=uC({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:u,viewBoxDimension:u.height}),s=Qz({translateX:f,translateY:c,useTranslate3d:l})):s=Kz,{cssProperties:s,cssClasses:qz({translateX:f,translateY:c,coordinate:r})}}function Oa(e){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(e)}function sC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cC(e){for(var t=1;tdC||Math.abs(n.height-this.state.lastBoundingBox.height)>dC)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,l=o.animationDuration,u=o.animationEasing,s=o.children,f=o.coordinate,c=o.hasPayload,d=o.isAnimationActive,g=o.offset,p=o.position,v=o.reverseDirection,b=o.useTranslate3d,m=o.viewBox,y=o.wrapperStyle,x=Zz({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:g,position:p,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:m}),S=x.cssClasses,C=x.cssProperties,w=cC(cC({transition:d&&i?"transform ".concat(l,"ms ").concat(u):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return h.createElement("div",{tabIndex:-1,className:S,style:w,ref:function(E){n.wrapperNode=E}},s)}}])}(A.PureComponent),l7=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ir={isSsr:l7(),get:function(t){return Ir[t]},set:function(t,r){if(typeof t=="string")Ir[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(o){Ir[o]=t[o]})}}};function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ea(e)}function gC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function hC(e){for(var t=1;t0;return h.createElement(a7,{allowEscapeViewBox:a,animationDuration:l,animationEasing:u,isAnimationActive:d,active:i,coordinate:f,hasPayload:w,offset:g,position:b,reverseDirection:m,useTranslate3d:y,viewBox:x,wrapperStyle:S},p7(s,hC(hC({},this.props),{},{payload:C})))}}])}(A.PureComponent);Zm(er,"displayName","Tooltip");Zm(er,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ir.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var m7=an,y7=function(){return m7.Date.now()},b7=y7,x7=/\s/;function C7(e){for(var t=e.length;t--&&x7.test(e.charAt(t)););return t}var w7=C7,S7=w7,O7=/^\s+/;function E7(e){return e&&e.slice(0,S7(e)+1).replace(O7,"")}var P7=E7,k7=P7,pC=So,T7=el,mC=0/0,A7=/^[-+]0x[0-9a-f]+$/i,_7=/^0b[01]+$/i,$7=/^0o[0-7]+$/i,R7=parseInt;function N7(e){if(typeof e=="number")return e;if(T7(e))return mC;if(pC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=k7(e);var r=_7.test(e);return r||$7.test(e)?R7(e.slice(2),r?2:8):A7.test(e)?mC:+e}var Ak=N7,M7=So,Sh=b7,yC=Ak,j7="Expected a function",B7=Math.max,D7=Math.min;function I7(e,t,r){var n,o,i,a,l,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(j7);t=yC(t)||0,M7(r)&&(f=!!r.leading,c="maxWait"in r,i=c?B7(yC(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function g(w){var O=n,E=o;return n=o=void 0,s=w,a=e.apply(E,O),a}function p(w){return s=w,l=setTimeout(m,t),f?g(w):a}function v(w){var O=w-u,E=w-s,P=t-O;return c?D7(P,i-E):P}function b(w){var O=w-u,E=w-s;return u===void 0||O>=t||O<0||c&&E>=i}function m(){var w=Sh();if(b(w))return y(w);l=setTimeout(m,v(w))}function y(w){return l=void 0,d&&n?g(w):(n=o=void 0,a)}function x(){l!==void 0&&clearTimeout(l),s=0,n=u=o=l=void 0}function S(){return l===void 0?a:y(Sh())}function C(){var w=Sh(),O=b(w);if(n=arguments,o=this,u=w,O){if(l===void 0)return p(u);if(c)return clearTimeout(l),l=setTimeout(m,t),g(u)}return l===void 0&&(l=setTimeout(m,t)),a}return C.cancel=x,C.flush=S,C}var L7=I7,z7=L7,F7=So,W7="Expected a function";function U7(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(W7);return F7(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),z7(e,t,{leading:n,maxWait:t,trailing:o})}var V7=U7;const _k=Se(V7);function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}function bC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Js(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(B=_k(B,v,{trailing:!0,leading:!1}));var N=new ResizeObserver(B),T=C.current.getBoundingClientRect(),M=T.width,L=T.height;return $(M,L),N.observe(C.current),function(){N.disconnect()}},[$,v]);var _=A.useMemo(function(){var B=P.containerWidth,N=P.containerHeight;if(B<0||N<0)return null;Dr(Go(a)||Go(u),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,a,u),Dr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var T=Go(a)?B:a,M=Go(u)?N:u;r&&r>0&&(T?M=T/r:M&&(T=M*r),d&&M>d&&(M=d)),Dr(T>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`,T,M,a,u,f,c,r);var L=!Array.isArray(g)&&bn(g.type).endsWith("Chart");return h.Children.map(g,function(R){return h.isValidElement(R)?A.cloneElement(R,Js({width:T,height:M},L?{style:Js({height:"100%",width:"100%",maxHeight:M,maxWidth:T},R.props.style)}:{})):R})},[r,g,u,d,c,f,P,a]);return h.createElement("div",{id:b?"".concat(b):void 0,className:ce("recharts-responsive-container",m),style:Js(Js({},S),{},{width:a,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:C},_)}),Jm=function(t){return null};Jm.displayName="Cell";function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function CC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ov(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ir.isSsr)return{width:0,height:0};var n=o9(r),o=JSON.stringify({text:t,copyStyle:n});if(Ri.widthCache[o])return Ri.widthCache[o];try{var i=document.getElementById(wC);i||(i=document.createElement("span"),i.setAttribute("id",wC),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Ov(Ov({},n9),n);Object.assign(i.style,a),i.textContent="".concat(t);var l=i.getBoundingClientRect(),u={width:l.width,height:l.height};return Ri.widthCache[o]=u,++Ri.cacheCount>r9&&(Ri.cacheCount=0,Ri.widthCache={}),u}catch{return{width:0,height:0}}},i9=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Bu(e){"@babel/helpers - typeof";return Bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}function Cf(e,t){return s9(e)||u9(e,t)||l9(e,t)||a9()}function a9(){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 l9(e,t){if(e){if(typeof e=="string")return SC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SC(e,t)}}function SC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S9(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AC(e,t){return k9(e)||P9(e,t)||E9(e,t)||O9()}function O9(){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 E9(e,t){if(e){if(typeof e=="string")return _C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _C(e,t)}}function _C(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return T.reduce(function(M,L){var R=L.word,F=L.width,V=M[M.length-1];if(V&&(o==null||i||V.width+F+nL.width?M:L})};if(!f)return g;for(var v="…",b=function(T){var M=c.slice(0,T),L=Mk({breakAll:s,style:u,children:M+v}).wordsWithComputedWidth,R=d(L),F=R.length>a||p(R).width>Number(o);return[F,R]},m=0,y=c.length-1,x=0,S;m<=y&&x<=c.length-1;){var C=Math.floor((m+y)/2),w=C-1,O=b(w),E=AC(O,2),P=E[0],k=E[1],$=b(C),_=AC($,1),B=_[0];if(!P&&!B&&(m=C+1),P&&B&&(y=C-1),!P&&B){S=k;break}x++}return S||g},$C=function(t){var r=se(t)?[]:t.toString().split(Nk);return[{words:r}]},A9=function(t){var r=t.width,n=t.scaleToFit,o=t.children,i=t.style,a=t.breakAll,l=t.maxLines;if((r||n)&&!Ir.isSsr){var u,s,f=Mk({breakAll:a,children:o,style:i});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,s=d}else return $C(o);return T9({breakAll:a,children:o,maxLines:l,style:i},u,s,r,n)}return $C(o)},RC="#808080",di=function(t){var r=t.x,n=r===void 0?0:r,o=t.y,i=o===void 0?0:o,a=t.lineHeight,l=a===void 0?"1em":a,u=t.capHeight,s=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,g=d===void 0?"start":d,p=t.verticalAnchor,v=p===void 0?"end":p,b=t.fill,m=b===void 0?RC:b,y=TC(t,C9),x=A.useMemo(function(){return A9({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:c,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,c,y.style,y.width]),S=y.dx,C=y.dy,w=y.angle,O=y.className,E=y.breakAll,P=TC(y,w9);if(!gt(n)||!gt(i))return null;var k=n+(K(S)?S:0),$=i+(K(C)?C:0),_;switch(v){case"start":_=Oh("calc(".concat(s,")"));break;case"middle":_=Oh("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:_=Oh("calc(".concat(x.length-1," * -").concat(l,")"));break}var B=[];if(c){var N=x[0].width,T=y.width;B.push("scale(".concat((K(T)?T/N:1)/N,")"))}return w&&B.push("rotate(".concat(w,", ").concat(k,", ").concat($,")")),B.length&&(P.transform=B.join(" ")),h.createElement("text",Ev({},oe(P,!0),{x:k,y:$,className:ce("recharts-text",O),textAnchor:g,fill:m.includes("url")?RC:m}),x.map(function(M,L){var R=M.words.join(E?"":" ");return h.createElement("tspan",{x:k,dy:L===0?_:l,key:"".concat(R,"-").concat(L)},R)}))};function go(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function _9(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ey(e){let t,r,n;e.length!==2?(t=go,r=(l,u)=>go(e(l),u),n=(l,u)=>e(l)-u):(t=e===go||e===_9?e:$9,r=e,n=e);function o(l,u,s=0,f=l.length){if(s>>1;r(l[c],u)<0?s=c+1:f=c}while(s>>1;r(l[c],u)<=0?s=c+1:f=c}while(ss&&n(l[c-1],u)>-n(l[c],u)?c-1:c}return{left:o,center:a,right:i}}function $9(){return 0}function jk(e){return e===null?NaN:+e}function*R9(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const N9=ey(go),M9=N9.right;ey(jk).center;const bs=M9;class NC extends Map{constructor(t,r=D9){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,o]of t)this.set(n,o)}get(t){return super.get(MC(this,t))}has(t){return super.has(MC(this,t))}set(t,r){return super.set(j9(this,t),r)}delete(t){return super.delete(B9(this,t))}}function MC({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function j9({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function B9({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function D9(e){return e!==null&&typeof e=="object"?e.valueOf():e}function I9(e=go){if(e===go)return Bk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Bk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const L9=Math.sqrt(50),z9=Math.sqrt(10),F9=Math.sqrt(2);function wf(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=L9?10:i>=z9?5:i>=F9?2:1;let l,u,s;return o<0?(s=Math.pow(10,-o)/a,l=Math.round(e*s),u=Math.round(t*s),l/st&&--u,s=-s):(s=Math.pow(10,o)*a,l=Math.round(e/s),u=Math.round(t/s),l*st&&--u),u0))return[];if(e===t)return[e];const n=t=o))return[];const l=i-o+1,u=new Array(l);if(n)if(a<0)for(let s=0;s=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r=o)&&(r=o)}return r}function BC(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function Dk(e,t,r=0,n=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(o=o===void 0?Bk:I9(o);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),g=Math.max(r,Math.floor(t-s*c/u+d)),p=Math.min(n,Math.floor(t+(u-s)*c/u+d));Dk(e,t,g,p,o)}const i=e[t];let a=r,l=n;for(Al(e,r,t),o(e[n],i)>0&&Al(e,r,n);a0;)--l}o(e[r],i)===0?Al(e,r,l):(++l,Al(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Al(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function W9(e,t,r){if(e=Float64Array.from(R9(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return BC(e);if(t>=1)return jC(e);var n,o=(n-1)*t,i=Math.floor(o),a=jC(Dk(e,i).subarray(0,i+1)),l=BC(e.subarray(i+1));return a+(l-a)*(o-i)}}function U9(e,t,r=jk){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return a+(l-a)*(o-i)}}function V9(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(o);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?tc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?tc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=H9.exec(e))?new Vt(t[1],t[2],t[3],1):(t=Y9.exec(e))?new Vt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=G9.exec(e))?tc(t[1],t[2],t[3],t[4]):(t=K9.exec(e))?tc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=q9.exec(e))?UC(t[1],t[2]/100,t[3]/100,1):(t=Q9.exec(e))?UC(t[1],t[2]/100,t[3]/100,t[4]):DC.hasOwnProperty(e)?zC(DC[e]):e==="transparent"?new Vt(NaN,NaN,NaN,0):null}function zC(e){return new Vt(e>>16&255,e>>8&255,e&255,1)}function tc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vt(e,t,r,n)}function eF(e){return e instanceof xs||(e=zu(e)),e?(e=e.rgb(),new Vt(e.r,e.g,e.b,e.opacity)):new Vt}function _v(e,t,r,n){return arguments.length===1?eF(e):new Vt(e,t,r,n??1)}function Vt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ry(Vt,_v,Lk(xs,{brighter(e){return e=e==null?Sf:Math.pow(Sf,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Iu:Math.pow(Iu,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vt(ti(this.r),ti(this.g),ti(this.b),Of(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:FC,formatHex:FC,formatHex8:tF,formatRgb:WC,toString:WC}));function FC(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}`}function tF(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}${Ko((isNaN(this.opacity)?1:this.opacity)*255)}`}function WC(){const e=Of(this.opacity);return`${e===1?"rgb(":"rgba("}${ti(this.r)}, ${ti(this.g)}, ${ti(this.b)}${e===1?")":`, ${e})`}`}function Of(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ti(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ko(e){return e=ti(e),(e<16?"0":"")+e.toString(16)}function UC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,r,n)}function zk(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof xs||(e=zu(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,u=(i+o)/2;return l?(t===i?a=(r-n)/l+(r0&&u<1?0:a,new Mr(a,l,u,e.opacity)}function rF(e,t,r,n){return arguments.length===1?zk(e):new Mr(e,t,r,n??1)}function Mr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ry(Mr,rF,Lk(xs,{brighter(e){return e=e==null?Sf:Math.pow(Sf,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Iu:Math.pow(Iu,e),new Mr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Vt(Eh(e>=240?e-240:e+120,o,n),Eh(e,o,n),Eh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Mr(VC(this.h),rc(this.s),rc(this.l),Of(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Of(this.opacity);return`${e===1?"hsl(":"hsla("}${VC(this.h)}, ${rc(this.s)*100}%, ${rc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function VC(e){return e=(e||0)%360,e<0?e+360:e}function rc(e){return Math.max(0,Math.min(1,e||0))}function Eh(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ny=e=>()=>e;function nF(e,t){return function(r){return e+r*t}}function oF(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function iF(e){return(e=+e)==1?Fk:function(t,r){return r-t?oF(t,r,e):ny(isNaN(t)?r:t)}}function Fk(e,t){var r=t-e;return r?nF(e,r):ny(isNaN(e)?t:e)}const XC=function e(t){var r=iF(t);function n(o,i){var a=r((o=_v(o)).r,(i=_v(i)).r),l=r(o.g,i.g),u=r(o.b,i.b),s=Fk(o.opacity,i.opacity);return function(f){return o.r=a(f),o.g=l(f),o.b=u(f),o.opacity=s(f),o+""}}return n.gamma=e,n}(1);function aF(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(i){for(o=0;or&&(i=t.slice(r,i),l[a]?l[a]+=i:l[++a]=i),(n=n[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,u.push({i:a,x:Ef(n,o)})),r=Ph.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function mF(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o2?yF:mF,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?i:(u||(u=l(e.map(n),t,r)))(n(a(d)))}return c.invert=function(d){return a(o((s||(s=l(t,e.map(n),Ef)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Pf),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=oy,f()},c.clamp=function(d){return arguments.length?(a=d?!0:Bt,f()):a!==Bt},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(i=d,c):i},function(d,g){return n=d,o=g,f()}}function iy(){return rg()(Bt,Bt)}function bF(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function kf(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Pa(e){return e=kf(Math.abs(e)),e?e[1]:NaN}function xF(e,t){return function(r,n){for(var o=r.length,i=[],a=0,l=e[0],u=0;o>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),i.push(r.substring(o-=l,o+l)),!((u+=l+1)>n));)l=e[a=(a+1)%e.length];return i.reverse().join(t)}}function CF(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var wF=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fu(e){if(!(t=wF.exec(e)))throw new Error("invalid format: "+e);var t;return new ay({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Fu.prototype=ay.prototype;function ay(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ay.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function SF(e){e:for(var t=e.length,r=1,n=-1,o;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var Wk;function OF(e,t){var r=kf(e,t);if(!r)return e+"";var n=r[0],o=r[1],i=o-(Wk=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+kf(e,Math.max(0,t+i-1))[0]}function YC(e,t){var r=kf(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}const GC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bF,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>YC(e*100,t),r:YC,s:OF,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function KC(e){return e}var qC=Array.prototype.map,QC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function EF(e){var t=e.grouping===void 0||e.thousands===void 0?KC:xF(qC.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?KC:CF(qC.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c){c=Fu(c);var d=c.fill,g=c.align,p=c.sign,v=c.symbol,b=c.zero,m=c.width,y=c.comma,x=c.precision,S=c.trim,C=c.type;C==="n"?(y=!0,C="g"):GC[C]||(x===void 0&&(x=12),S=!0,C="g"),(b||d==="0"&&g==="=")&&(b=!0,d="0",g="=");var w=v==="$"?r:v==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",O=v==="$"?n:/[%p]/.test(C)?a:"",E=GC[C],P=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function k($){var _=w,B=O,N,T,M;if(C==="c")B=E($)+B,$="";else{$=+$;var L=$<0||1/$<0;if($=isNaN($)?u:E(Math.abs($),x),S&&($=SF($)),L&&+$==0&&p!=="+"&&(L=!1),_=(L?p==="("?p:l:p==="-"||p==="("?"":p)+_,B=(C==="s"?QC[8+Wk/3]:"")+B+(L&&p==="("?")":""),P){for(N=-1,T=$.length;++NM||M>57){B=(M===46?o+$.slice(N+1):$.slice(N))+B,$=$.slice(0,N);break}}}y&&!b&&($=t($,1/0));var R=_.length+$.length+B.length,F=R>1)+_+$+B+F.slice(R);break;default:$=F+_+$+B;break}return i($)}return k.toString=function(){return c+""},k}function f(c,d){var g=s((c=Fu(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(Pa(d)/3)))*3,v=Math.pow(10,-p),b=QC[8+p/3];return function(m){return g(v*m)+b}}return{format:s,formatPrefix:f}}var nc,ly,Uk;PF({thousands:",",grouping:[3],currency:["$",""]});function PF(e){return nc=EF(e),ly=nc.format,Uk=nc.formatPrefix,nc}function kF(e){return Math.max(0,-Pa(Math.abs(e)))}function TF(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pa(t)/3)))*3-Pa(Math.abs(e)))}function AF(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pa(t)-Pa(e))+1}function Vk(e,t,r,n){var o=Tv(e,t,r),i;switch(n=Fu(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=TF(o,a))&&(n.precision=i),Uk(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=AF(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=kF(o))&&(n.precision=i-(n.type==="%")*2);break}}return ly(n)}function Oo(e){var t=e.domain;return e.ticks=function(r){var n=t();return Pv(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return Vk(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,i=n.length-1,a=n[o],l=n[i],u,s,f=10;for(l0;){if(s=kv(a,l,r),s===u)return n[o]=a,n[i]=l,t(n);if(s>0)a=Math.floor(a/s)*s,l=Math.ceil(l/s)*s;else if(s<0)a=Math.ceil(a*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function Tf(){var e=iy();return e.copy=function(){return Cs(e,Tf())},Or.apply(e,arguments),Oo(e)}function Xk(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Pf),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Xk(e).unknown(t)},e=arguments.length?Array.from(e,Pf):[0,1],Oo(r)}function Hk(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],i=e[n],a;return iMath.pow(e,t)}function MF(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function e1(e){return(t,r)=>-e(-t,r)}function uy(e){const t=e(ZC,JC),r=t.domain;let n=10,o,i;function a(){return o=MF(n),i=NF(n),r()[0]<0?(o=e1(o),i=e1(i),e(_F,$F)):e(ZC,JC),t}return t.base=function(l){return arguments.length?(n=+l,a()):n},t.domain=function(l){return arguments.length?(r(l),a()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const c=f0){for(;d<=g;++d)for(p=1;pf)break;m.push(v)}}else for(;d<=g;++d)for(p=n-1;p>=1;--p)if(v=d>0?p/i(-d):p*i(d),!(vf)break;m.push(v)}m.length*2{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Fu(u)).precision==null&&(u.trim=!0),u=ly(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let c=f/i(Math.round(o(f)));return c*nr(Hk(r(),{floor:l=>i(Math.floor(o(l))),ceil:l=>i(Math.ceil(o(l)))})),t}function Yk(){const e=uy(rg()).domain([1,10]);return e.copy=()=>Cs(e,Yk()).base(e.base()),Or.apply(e,arguments),e}function t1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function r1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sy(e){var t=1,r=e(t1(t),r1(t));return r.constant=function(n){return arguments.length?e(t1(t=+n),r1(t)):t},Oo(r)}function Gk(){var e=sy(rg());return e.copy=function(){return Cs(e,Gk()).constant(e.constant())},Or.apply(e,arguments)}function n1(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jF(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function BF(e){return e<0?-e*e:e*e}function cy(e){var t=e(Bt,Bt),r=1;function n(){return r===1?e(Bt,Bt):r===.5?e(jF,BF):e(n1(r),n1(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Oo(t)}function fy(){var e=cy(rg());return e.copy=function(){return Cs(e,fy()).exponent(e.exponent())},Or.apply(e,arguments),e}function DF(){return fy.apply(null,arguments).exponent(.5)}function o1(e){return Math.sign(e)*e*e}function IF(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Kk(){var e=iy(),t=[0,1],r=!1,n;function o(i){var a=IF(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(o1(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Pf)).map(o1)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(r=!!i,o):r},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Kk(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Or.apply(o,arguments),Oo(o)}function qk(){var e=[],t=[],r=[],n;function o(){var a=0,l=Math.max(1,t.length);for(r=new Array(l-1);++a0?r[l-1]:e[0],l=r?[n[r-1],t]:[n[s-1],n[s]]},a.unknown=function(u){return arguments.length&&(i=u),a},a.thresholds=function(){return n.slice()},a.copy=function(){return Qk().domain([e,t]).range(o).unknown(i)},Or.apply(Oo(a),arguments)}function Zk(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[bs(e,i,0,n)]:r}return o.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Zk().domain(e).range(t).unknown(r)},Or.apply(o,arguments)}const kh=new Date,Th=new Date;function vt(e,t,r,n){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),l=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,l)=>{const u=[];if(i=o.ceil(i),l=l==null?1:Math.floor(l),!(i0))return u;let s;do u.push(s=new Date(+i)),t(i,l),e(i);while(svt(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;t(a,-1),!i(a););else for(;--l>=0;)for(;t(a,1),!i(a););}),r&&(o.count=(i,a)=>(kh.setTime(+i),Th.setTime(+a),e(kh),e(Th),Math.floor(r(kh,Th))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(n?a=>n(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Af=vt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Af.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?vt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Af);Af.range;const vn=1e3,yr=vn*60,pn=yr*60,Pn=pn*24,dy=Pn*7,i1=Pn*30,Ah=Pn*365,qo=vt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vn)},(e,t)=>(t-e)/vn,e=>e.getUTCSeconds());qo.range;const gy=vt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vn)},(e,t)=>{e.setTime(+e+t*yr)},(e,t)=>(t-e)/yr,e=>e.getMinutes());gy.range;const hy=vt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yr)},(e,t)=>(t-e)/yr,e=>e.getUTCMinutes());hy.range;const vy=vt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vn-e.getMinutes()*yr)},(e,t)=>{e.setTime(+e+t*pn)},(e,t)=>(t-e)/pn,e=>e.getHours());vy.range;const py=vt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pn)},(e,t)=>(t-e)/pn,e=>e.getUTCHours());py.range;const ws=vt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yr)/Pn,e=>e.getDate()-1);ws.range;const ng=vt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Pn,e=>e.getUTCDate()-1);ng.range;const Jk=vt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Pn,e=>Math.floor(e/Pn));Jk.range;function Ei(e){return vt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*yr)/dy)}const og=Ei(0),_f=Ei(1),LF=Ei(2),zF=Ei(3),ka=Ei(4),FF=Ei(5),WF=Ei(6);og.range;_f.range;LF.range;zF.range;ka.range;FF.range;WF.range;function Pi(e){return vt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/dy)}const ig=Pi(0),$f=Pi(1),UF=Pi(2),VF=Pi(3),Ta=Pi(4),XF=Pi(5),HF=Pi(6);ig.range;$f.range;UF.range;VF.range;Ta.range;XF.range;HF.range;const my=vt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());my.range;const yy=vt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());yy.range;const kn=vt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());kn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});kn.range;const Tn=vt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Tn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Tn.range;function eT(e,t,r,n,o,i){const a=[[qo,1,vn],[qo,5,5*vn],[qo,15,15*vn],[qo,30,30*vn],[i,1,yr],[i,5,5*yr],[i,15,15*yr],[i,30,30*yr],[o,1,pn],[o,3,3*pn],[o,6,6*pn],[o,12,12*pn],[n,1,Pn],[n,2,2*Pn],[r,1,dy],[t,1,i1],[t,3,3*i1],[e,1,Ah]];function l(s,f,c){const d=fb).right(a,d);if(g===a.length)return e.every(Tv(s/Ah,f/Ah,c));if(g===0)return Af.every(Math.max(Tv(s,f,c),1));const[p,v]=a[d/a[g-1][2]53)return null;"w"in G||(G.w=1),"Z"in G?(be=$h(_l(G.y,0,1)),at=be.getUTCDay(),be=at>4||at===0?$f.ceil(be):$f(be),be=ng.offset(be,(G.V-1)*7),G.y=be.getUTCFullYear(),G.m=be.getUTCMonth(),G.d=be.getUTCDate()+(G.w+6)%7):(be=_h(_l(G.y,0,1)),at=be.getDay(),be=at>4||at===0?_f.ceil(be):_f(be),be=ws.offset(be,(G.V-1)*7),G.y=be.getFullYear(),G.m=be.getMonth(),G.d=be.getDate()+(G.w+6)%7)}else("W"in G||"U"in G)&&("w"in G||(G.w="u"in G?G.u%7:"W"in G?1:0),at="Z"in G?$h(_l(G.y,0,1)).getUTCDay():_h(_l(G.y,0,1)).getDay(),G.m=0,G.d="W"in G?(G.w+6)%7+G.W*7-(at+5)%7:G.w+G.U*7-(at+6)%7);return"Z"in G?(G.H+=G.Z/100|0,G.M+=G.Z%100,$h(G)):_h(G)}}function E(J,de,he,G){for(var Qe=0,be=de.length,at=he.length,lt,Ft;Qe=at)return-1;if(lt=de.charCodeAt(Qe++),lt===37){if(lt=de.charAt(Qe++),Ft=C[lt in a1?de.charAt(Qe++):lt],!Ft||(G=Ft(J,he,G))<0)return-1}else if(lt!=he.charCodeAt(G++))return-1}return G}function P(J,de,he){var G=s.exec(de.slice(he));return G?(J.p=f.get(G[0].toLowerCase()),he+G[0].length):-1}function k(J,de,he){var G=g.exec(de.slice(he));return G?(J.w=p.get(G[0].toLowerCase()),he+G[0].length):-1}function $(J,de,he){var G=c.exec(de.slice(he));return G?(J.w=d.get(G[0].toLowerCase()),he+G[0].length):-1}function _(J,de,he){var G=m.exec(de.slice(he));return G?(J.m=y.get(G[0].toLowerCase()),he+G[0].length):-1}function B(J,de,he){var G=v.exec(de.slice(he));return G?(J.m=b.get(G[0].toLowerCase()),he+G[0].length):-1}function N(J,de,he){return E(J,t,de,he)}function T(J,de,he){return E(J,r,de,he)}function M(J,de,he){return E(J,n,de,he)}function L(J){return a[J.getDay()]}function R(J){return i[J.getDay()]}function F(J){return u[J.getMonth()]}function V(J){return l[J.getMonth()]}function Q(J){return o[+(J.getHours()>=12)]}function H(J){return 1+~~(J.getMonth()/3)}function Z(J){return a[J.getUTCDay()]}function ie(J){return i[J.getUTCDay()]}function Oe(J){return u[J.getUTCMonth()]}function ze(J){return l[J.getUTCMonth()]}function cr(J){return o[+(J.getUTCHours()>=12)]}function zt(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var de=w(J+="",x);return de.toString=function(){return J},de},parse:function(J){var de=O(J+="",!1);return de.toString=function(){return J},de},utcFormat:function(J){var de=w(J+="",S);return de.toString=function(){return J},de},utcParse:function(J){var de=O(J+="",!0);return de.toString=function(){return J},de}}}var a1={"-":"",_:" ",0:"0"},xt=/^\s*\d+/,ZF=/^%/,JF=/[\\^$*+?|[\]().{}]/g;function Ce(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i[t.toLowerCase(),r]))}function tW(e,t,r){var n=xt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function rW(e,t,r){var n=xt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function nW(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function oW(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function iW(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function l1(e,t,r){var n=xt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function u1(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function aW(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function lW(e,t,r){var n=xt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function uW(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function s1(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function sW(e,t,r){var n=xt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function c1(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function cW(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function fW(e,t,r){var n=xt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function dW(e,t,r){var n=xt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function gW(e,t,r){var n=xt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function hW(e,t,r){var n=ZF.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function vW(e,t,r){var n=xt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pW(e,t,r){var n=xt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function f1(e,t){return Ce(e.getDate(),t,2)}function mW(e,t){return Ce(e.getHours(),t,2)}function yW(e,t){return Ce(e.getHours()%12||12,t,2)}function bW(e,t){return Ce(1+ws.count(kn(e),e),t,3)}function tT(e,t){return Ce(e.getMilliseconds(),t,3)}function xW(e,t){return tT(e,t)+"000"}function CW(e,t){return Ce(e.getMonth()+1,t,2)}function wW(e,t){return Ce(e.getMinutes(),t,2)}function SW(e,t){return Ce(e.getSeconds(),t,2)}function OW(e){var t=e.getDay();return t===0?7:t}function EW(e,t){return Ce(og.count(kn(e)-1,e),t,2)}function rT(e){var t=e.getDay();return t>=4||t===0?ka(e):ka.ceil(e)}function PW(e,t){return e=rT(e),Ce(ka.count(kn(e),e)+(kn(e).getDay()===4),t,2)}function kW(e){return e.getDay()}function TW(e,t){return Ce(_f.count(kn(e)-1,e),t,2)}function AW(e,t){return Ce(e.getFullYear()%100,t,2)}function _W(e,t){return e=rT(e),Ce(e.getFullYear()%100,t,2)}function $W(e,t){return Ce(e.getFullYear()%1e4,t,4)}function RW(e,t){var r=e.getDay();return e=r>=4||r===0?ka(e):ka.ceil(e),Ce(e.getFullYear()%1e4,t,4)}function NW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ce(t/60|0,"0",2)+Ce(t%60,"0",2)}function d1(e,t){return Ce(e.getUTCDate(),t,2)}function MW(e,t){return Ce(e.getUTCHours(),t,2)}function jW(e,t){return Ce(e.getUTCHours()%12||12,t,2)}function BW(e,t){return Ce(1+ng.count(Tn(e),e),t,3)}function nT(e,t){return Ce(e.getUTCMilliseconds(),t,3)}function DW(e,t){return nT(e,t)+"000"}function IW(e,t){return Ce(e.getUTCMonth()+1,t,2)}function LW(e,t){return Ce(e.getUTCMinutes(),t,2)}function zW(e,t){return Ce(e.getUTCSeconds(),t,2)}function FW(e){var t=e.getUTCDay();return t===0?7:t}function WW(e,t){return Ce(ig.count(Tn(e)-1,e),t,2)}function oT(e){var t=e.getUTCDay();return t>=4||t===0?Ta(e):Ta.ceil(e)}function UW(e,t){return e=oT(e),Ce(Ta.count(Tn(e),e)+(Tn(e).getUTCDay()===4),t,2)}function VW(e){return e.getUTCDay()}function XW(e,t){return Ce($f.count(Tn(e)-1,e),t,2)}function HW(e,t){return Ce(e.getUTCFullYear()%100,t,2)}function YW(e,t){return e=oT(e),Ce(e.getUTCFullYear()%100,t,2)}function GW(e,t){return Ce(e.getUTCFullYear()%1e4,t,4)}function KW(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ta(e):Ta.ceil(e),Ce(e.getUTCFullYear()%1e4,t,4)}function qW(){return"+0000"}function g1(){return"%"}function h1(e){return+e}function v1(e){return Math.floor(+e/1e3)}var Ni,iT,aT;QW({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});function QW(e){return Ni=QF(e),iT=Ni.format,Ni.parse,aT=Ni.utcFormat,Ni.utcParse,Ni}function ZW(e){return new Date(e)}function JW(e){return e instanceof Date?+e:+new Date(+e)}function by(e,t,r,n,o,i,a,l,u,s){var f=iy(),c=f.invert,d=f.domain,g=s(".%L"),p=s(":%S"),v=s("%I:%M"),b=s("%I %p"),m=s("%a %d"),y=s("%b %d"),x=s("%B"),S=s("%Y");function C(w){return(u(w)t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,i)=>W9(e,i/n))},r.copy=function(){return cT(t).domain(e)},jn.apply(r,arguments)}function lg(){var e=0,t=.5,r=1,n=1,o,i,a,l,u,s=Bt,f,c=!1,d;function g(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-i)*(n*vt}var hT=aU,lU=ug,uU=hT,sU=ul;function cU(e){return e&&e.length?lU(e,sU,uU):void 0}var fU=cU;const eo=Se(fU);function dU(e,t){return ee.e^i.s<0?1:-1;for(n=i.d.length,o=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1};re.decimalPlaces=re.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ve;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};re.dividedBy=re.div=function(e){return Cn(this,new this.constructor(e))};re.dividedToIntegerBy=re.idiv=function(e){var t=this,r=t.constructor;return Ne(Cn(t,new r(e),0,1),r.precision)};re.equals=re.eq=function(e){return!this.cmp(e)};re.exponent=function(){return ot(this)};re.greaterThan=re.gt=function(e){return this.cmp(e)>0};re.greaterThanOrEqualTo=re.gte=function(e){return this.cmp(e)>=0};re.isInteger=re.isint=function(){return this.e>this.d.length-2};re.isNegative=re.isneg=function(){return this.s<0};re.isPositive=re.ispos=function(){return this.s>0};re.isZero=function(){return this.s===0};re.lessThan=re.lt=function(e){return this.cmp(e)<0};re.lessThanOrEqualTo=re.lte=function(e){return this.cmp(e)<1};re.logarithm=re.log=function(e){var t,r=this,n=r.constructor,o=n.precision,i=o+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(tr))throw Error(wr+"NaN");if(r.s<1)throw Error(wr+(r.s?"NaN":"-Infinity"));return r.eq(tr)?new n(0):(Ye=!1,t=Cn(Wu(r,i),Wu(e,i),i),Ye=!0,Ne(t,o))};re.minus=re.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?bT(t,e):mT(t,(e.s=-e.s,e))};re.modulo=re.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(e=new n(e),!e.s)throw Error(wr+"NaN");return r.s?(Ye=!1,t=Cn(r,e,0,1).times(e),Ye=!0,r.minus(t)):Ne(new n(r),o)};re.naturalExponential=re.exp=function(){return yT(this)};re.naturalLogarithm=re.ln=function(){return Wu(this)};re.negated=re.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};re.plus=re.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mT(t,e):bT(t,(e.s=-e.s,e))};re.precision=re.sd=function(e){var t,r,n,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ri+e);if(t=ot(o)+1,n=o.d.length-1,r=n*Ve+1,n=o.d[n],n){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};re.squareRoot=re.sqrt=function(){var e,t,r,n,o,i,a,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(wr+"NaN")}for(e=ot(l),Ye=!1,o=Math.sqrt(+l),o==0||o==1/0?(t=Yr(l.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=fl((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(o.toString()),r=u.precision,o=a=r+3;;)if(i=n,n=i.plus(Cn(l,i,a+2)).times(.5),Yr(i.d).slice(0,a)===(t=Yr(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(Ne(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if(t!="9999")break;a+=4}return Ye=!0,Ne(n,r)};re.times=re.mul=function(e){var t,r,n,o,i,a,l,u,s,f=this,c=f.constructor,d=f.d,g=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,u=d.length,s=g.length,u=0;){for(t=0,o=u+n;o>n;)l=i[o]+g[n]*d[o-n-1]+t,i[o--]=l%pt|0,t=l/pt|0;i[o]=(i[o]+t)%pt|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Ye?Ne(e,c.precision):e};re.toDecimalPlaces=re.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(rn(e,0,cl),t===void 0?t=n.rounding:rn(t,0,8),Ne(r,e+ot(r)+1,t))};re.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=hi(n,!0):(rn(e,0,cl),t===void 0?t=o.rounding:rn(t,0,8),n=Ne(new o(n),e+1,t),r=hi(n,!0,e+1)),r};re.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?hi(o):(rn(e,0,cl),t===void 0?t=i.rounding:rn(t,0,8),n=Ne(new i(o),e+ot(o)+1,t),r=hi(n.abs(),!1,e+ot(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)};re.toInteger=re.toint=function(){var e=this,t=e.constructor;return Ne(new t(e),ot(e)+1,t.rounding)};re.toNumber=function(){return+this};re.toPower=re.pow=function(e){var t,r,n,o,i,a,l=this,u=l.constructor,s=12,f=+(e=new u(e));if(!e.s)return new u(tr);if(l=new u(l),!l.s){if(e.s<1)throw Error(wr+"Infinity");return l}if(l.eq(tr))return l;if(n=u.precision,e.eq(tr))return Ne(l,n);if(t=e.e,r=e.d.length-1,a=t>=r,i=l.s,a){if((r=f<0?-f:f)<=pT){for(o=new u(tr),t=Math.ceil(n/Ve+4),Ye=!1;r%2&&(o=o.times(l),y1(o.d,t)),r=fl(r/2),r!==0;)l=l.times(l),y1(l.d,t);return Ye=!0,e.s<0?new u(tr).div(o):Ne(o,n)}}else if(i<0)throw Error(wr+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Ye=!1,o=e.times(Wu(l,n+s)),Ye=!0,o=yT(o),o.s=i,o};re.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?(r=ot(o),n=hi(o,r<=i.toExpNeg||r>=i.toExpPos)):(rn(e,1,cl),t===void 0?t=i.rounding:rn(t,0,8),o=Ne(new i(o),e,t),r=ot(o),n=hi(o,e<=r||r<=i.toExpNeg,e)),n};re.toSignificantDigits=re.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(rn(e,1,cl),t===void 0?t=n.rounding:rn(t,0,8)),Ne(new n(r),e,t)};re.toString=re.valueOf=re.val=re.toJSON=re[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ot(e),r=e.constructor;return hi(e,t<=r.toExpNeg||t>=r.toExpPos)};function mT(e,t){var r,n,o,i,a,l,u,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Ye?Ne(t,c):t;if(u=e.d,s=t.d,a=e.e,o=t.e,u=u.slice(),i=a-o,i){for(i<0?(n=u,i=-i,l=s.length):(n=s,o=a,l=u.length),a=Math.ceil(c/Ve),l=a>l?a+1:l+1,i>l&&(i=l,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(l=u.length,i=s.length,l-i<0&&(i=l,n=s,s=u,u=n),r=0;i;)r=(u[--i]=u[i]+s[i]+r)/pt|0,u[i]%=pt;for(r&&(u.unshift(r),++o),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=o,Ye?Ne(t,c):t}function rn(e,t,r){if(e!==~~e||er)throw Error(ri+e)}function Yr(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;ta?1:-1;else for(l=u=0;lo[l]?1:-1;break}return u}function r(n,o,i){for(var a=0;i--;)n[i]-=a,a=n[i]1;)n.shift()}return function(n,o,i,a){var l,u,s,f,c,d,g,p,v,b,m,y,x,S,C,w,O,E,P=n.constructor,k=n.s==o.s?1:-1,$=n.d,_=o.d;if(!n.s)return new P(n);if(!o.s)throw Error(wr+"Division by zero");for(u=n.e-o.e,O=_.length,C=$.length,g=new P(k),p=g.d=[],s=0;_[s]==($[s]||0);)++s;if(_[s]>($[s]||0)&&--u,i==null?y=i=P.precision:a?y=i+(ot(n)-ot(o))+1:y=i,y<0)return new P(0);if(y=y/Ve+2|0,s=0,O==1)for(f=0,_=_[0],y++;(s1&&(_=e(_,f),$=e($,f),O=_.length,C=$.length),S=O,v=$.slice(0,O),b=v.length;b=pt/2&&++w;do f=0,l=t(_,v,O,b),l<0?(m=v[0],O!=b&&(m=m*pt+(v[1]||0)),f=m/w|0,f>1?(f>=pt&&(f=pt-1),c=e(_,f),d=c.length,b=v.length,l=t(c,v,d,b),l==1&&(f--,r(c,O16)throw Error(wy+ot(e));if(!e.s)return new f(tr);for(t==null?(Ye=!1,l=c):l=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),s+=5;for(n=Math.log(Io(2,s))/Math.LN10*2+5|0,l+=n,r=o=i=new f(tr),f.precision=l;;){if(o=Ne(o.times(e),l),r=r.times(++u),a=i.plus(Cn(o,r,l)),Yr(a.d).slice(0,l)===Yr(i.d).slice(0,l)){for(;s--;)i=Ne(i.times(i),l);return f.precision=c,t==null?(Ye=!0,Ne(i,c)):i}i=a}}function ot(e){for(var t=e.e*Ve,r=e.d[0];r>=10;r/=10)t++;return t}function Rh(e,t,r){if(t>e.LN10.sd())throw Ye=!0,r&&(e.precision=r),Error(wr+"LN10 precision limit exceeded");return Ne(new e(e.LN10),t)}function Gn(e){for(var t="";e--;)t+="0";return t}function Wu(e,t){var r,n,o,i,a,l,u,s,f,c=1,d=10,g=e,p=g.d,v=g.constructor,b=v.precision;if(g.s<1)throw Error(wr+(g.s?"NaN":"-Infinity"));if(g.eq(tr))return new v(0);if(t==null?(Ye=!1,s=b):s=t,g.eq(10))return t==null&&(Ye=!0),Rh(v,s);if(s+=d,v.precision=s,r=Yr(p),n=r.charAt(0),i=ot(g),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)g=g.times(e),r=Yr(g.d),n=r.charAt(0),c++;i=ot(g),n>1?(g=new v("0."+r),i++):g=new v(n+"."+r.slice(1))}else return u=Rh(v,s+2,b).times(i+""),g=Wu(new v(n+"."+r.slice(1)),s-d).plus(u),v.precision=b,t==null?(Ye=!0,Ne(g,b)):g;for(l=a=g=Cn(g.minus(tr),g.plus(tr),s),f=Ne(g.times(g),s),o=3;;){if(a=Ne(a.times(f),s),u=l.plus(Cn(a,new v(o),s)),Yr(u.d).slice(0,s)===Yr(l.d).slice(0,s))return l=l.times(2),i!==0&&(l=l.plus(Rh(v,s+2,b).times(i+""))),l=Cn(l,new v(c),s),v.precision=b,t==null?(Ye=!0,Ne(l,b)):l;l=u,o+=2}}function m1(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(n,o),t){if(o-=n,r=r-n-1,e.e=fl(r/Ve),e.d=[],n=(r+1)%Ve,r<0&&(n+=Ve),nRf||e.e<-Rf))throw Error(wy+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ne(e,t,r){var n,o,i,a,l,u,s,f,c=e.d;for(a=1,i=c[0];i>=10;i/=10)a++;if(n=t-a,n<0)n+=Ve,o=t,s=c[f=0];else{if(f=Math.ceil((n+1)/Ve),i=c.length,f>=i)return e;for(s=i=c[f],a=1;i>=10;i/=10)a++;n%=Ve,o=n-Ve+a}if(r!==void 0&&(i=Io(10,a-o-1),l=s/i%10|0,u=t<0||c[f+1]!==void 0||s%i,u=r<4?(l||u)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||u||r==6&&(n>0?o>0?s/Io(10,a-o):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return u?(i=ot(e),c.length=1,t=t-i-1,c[0]=Io(10,(Ve-t%Ve)%Ve),e.e=fl(-t/Ve)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,i=1,f--):(c.length=f+1,i=Io(10,Ve-n),c[f]=o>0?(s/Io(10,a-o)%Io(10,o)|0)*i:0),u)for(;;)if(f==0){(c[0]+=i)==pt&&(c[0]=1,++e.e);break}else{if(c[f]+=i,c[f]!=pt)break;c[f--]=0,i=1}for(n=c.length;c[--n]===0;)c.pop();if(Ye&&(e.e>Rf||e.e<-Rf))throw Error(wy+ot(e));return e}function bT(e,t){var r,n,o,i,a,l,u,s,f,c,d=e.constructor,g=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ye?Ne(t,g):t;if(u=e.d,c=t.d,n=t.e,s=e.e,u=u.slice(),a=s-n,a){for(f=a<0,f?(r=u,a=-a,l=c.length):(r=c,n=s,l=u.length),o=Math.max(Math.ceil(g/Ve),l)+2,a>o&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for(o=u.length,l=c.length,f=o0;--o)u[l++]=0;for(o=c.length;o>a;){if(u[--o]0?i=i.charAt(0)+"."+i.slice(1)+Gn(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Gn(-o-1)+i,r&&(n=r-a)>0&&(i+=Gn(n))):o>=a?(i+=Gn(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Gn(n))):((n=o+1)0&&(o+1===a&&(i+="."),i+=Gn(n))),e.s<0?"-"+i:i}function y1(e,t){if(e.length>t)return e.length=t,!0}function xT(e){var t,r,n;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ri+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return m1(a,i.toString())}else if(typeof i!="string")throw Error(ri+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,NU.test(i))m1(a,i);else throw Error(ri+i)}if(o.prototype=re,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=xT,o.config=o.set=MU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(ri+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ri+r+": "+n);return this}var Sy=xT(RU);tr=new Sy(1);const Ae=Sy;function jU(e){return LU(e)||IU(e)||DU(e)||BU()}function BU(){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 DU(e,t){if(e){if(typeof e=="string")return Nv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nv(e,t)}}function IU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function LU(e){if(Array.isArray(e))return Nv(e)}function Nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,o):e(t-a,b1(function(){for(var l=arguments.length,u=new Array(l),s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),l;!(n=(l=a.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(u){o=!0,i=u}finally{try{!n&&a.return!=null&&a.return()}finally{if(o)throw i}}return r}}function eV(e){if(Array.isArray(e))return e}function ET(e){var t=Uu(e,2),r=t[0],n=t[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function PT(e,t,r){if(e.lte(0))return new Ae(0);var n=fg.getDigitCount(e.toNumber()),o=new Ae(10).pow(n),i=e.div(o),a=n!==1?.05:.1,l=new Ae(Math.ceil(i.div(a).toNumber())).add(r).mul(a),u=l.mul(o);return t?u:new Ae(Math.ceil(u))}function tV(e,t,r){var n=1,o=new Ae(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new Ae(10).pow(fg.getDigitCount(e)-1),o=new Ae(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Ae(Math.floor(e)))}else e===0?o=new Ae(Math.floor((t-1)/2)):r||(o=new Ae(Math.floor(e)));var a=Math.floor((t-1)/2),l=UU(WU(function(u){return o.add(new Ae(u-a).mul(n)).toNumber()}),Mv);return l(0,t)}function kT(e,t,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ae(0),tickMin:new Ae(0),tickMax:new Ae(0)};var i=PT(new Ae(t).sub(e).div(r-1),n,o),a;e<=0&&t>=0?a=new Ae(0):(a=new Ae(e).add(t).div(2),a=a.sub(new Ae(a).mod(i)));var l=Math.ceil(a.sub(e).div(i).toNumber()),u=Math.ceil(new Ae(t).sub(a).div(i).toNumber()),s=l+u+1;return s>r?kT(e,t,r,n,o+1):(s0?u+(r-s):u,l=t>0?l:l+(r-s)),{step:i,tickMin:a.sub(new Ae(l).mul(i)),tickMax:a.add(new Ae(u).mul(i))})}function rV(e){var t=Uu(e,2),r=t[0],n=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),l=ET([r,n]),u=Uu(l,2),s=u[0],f=u[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(Bv(Mv(0,o-1).map(function(){return 1/0}))):[].concat(Bv(Mv(0,o-1).map(function(){return-1/0})),[f]);return r>n?jv(c):c}if(s===f)return tV(s,o,i);var d=kT(s,f,a,i),g=d.step,p=d.tickMin,v=d.tickMax,b=fg.rangeStep(p,v.add(new Ae(.1).mul(g)),g);return r>n?jv(b):b}function nV(e,t){var r=Uu(e,2),n=r[0],o=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=ET([n,o]),l=Uu(a,2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[n,o];if(u===s)return[u];var f=Math.max(t,2),c=PT(new Ae(s).sub(u).div(f-1),i,0),d=[].concat(Bv(fg.rangeStep(new Ae(u),new Ae(s).sub(new Ae(.99).mul(c)),c)),[s]);return n>o?jv(d):d}var oV=ST(rV),iV=ST(nV),aV=!0,Nh="Invariant failed";function vi(e,t){if(!e){if(aV)throw new Error(Nh);var r=typeof t=="function"?t():t,n=r?"".concat(Nh,": ").concat(r):Nh;throw new Error(n)}}var lV=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Aa(e){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Aa(e)}function Nf(){return Nf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C1(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var u=i.range,s=0;s0?o[s-1].coordinate:o[l-1].coordinate,c=o[s].coordinate,d=s>=l-1?o[0].coordinate:o[s+1].coordinate,g=void 0;if(Mt(c-f)!==Mt(d-c)){var p=[];if(Mt(d-c)===Mt(u[1]-u[0])){g=d;var v=c+u[1]-u[0];p[0]=Math.min(v,(v+f)/2),p[1]=Math.max(v,(v+f)/2)}else{g=f;var b=d+u[1]-u[0];p[0]=Math.min(c,(b+c)/2),p[1]=Math.max(c,(b+c)/2)}var m=[Math.min(c,(g+c)/2),Math.max(c,(g+c)/2)];if(t>m[0]&&t<=m[1]||t>=p[0]&&t<=p[1]){a=o[s].index;break}}else{var y=Math.min(f,d),x=Math.max(f,d);if(t>(y+c)/2&&t<=(x+c)/2){a=o[s].index;break}}}else for(var S=0;S0&&S(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){a=n[S].index;break}return a},Oy=function(t){var r,n=t,o=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Je(Je({},t.type.defaultProps),t.props):t.props,a=i.stroke,l=i.fill,u;switch(o){case"Line":u=a;break;case"Area":case"Radar":u=a&&a!=="none"?a:l;break;default:u=l;break}return u},RV=function(t){var r=t.barSize,n=t.totalSize,o=t.stackGroups,i=o===void 0?{}:o;if(!i)return{};for(var a={},l=Object.keys(i),u=0,s=l.length;u=0});if(m&&m.length){var y=m[0].type.defaultProps,x=y!==void 0?Je(Je({},y),m[0].props):m[0].props,S=x.barSize,C=x[b];a[C]||(a[C]=[]);var w=se(S)?r:S;a[C].push({item:m[0],stackList:m.slice(1),barSize:se(w)?void 0:jt(w,n,0)})}}return a},NV=function(t){var r=t.barGap,n=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=i===void 0?[]:i,l=t.maxBarSize,u=a.length;if(u<1)return null;var s=jt(r,o,0,!0),f,c=[];if(a[0].barSize===+a[0].barSize){var d=!1,g=o/u,p=a.reduce(function(S,C){return S+C.barSize||0},0);p+=(u-1)*s,p>=o&&(p-=(u-1)*s,s=0),p>=o&&g>0&&(d=!0,g*=.9,p=u*g);var v=(o-p)/2>>0,b={offset:v-s,size:0};f=a.reduce(function(S,C){var w={item:C.item,position:{offset:b.offset+b.size+s,size:d?g:C.barSize}},O=[].concat(S1(S),[w]);return b=O[O.length-1].position,C.stackList&&C.stackList.length&&C.stackList.forEach(function(E){O.push({item:E,position:b})}),O},c)}else{var m=jt(n,o,0,!0);o-2*m-(u-1)*s<=0&&(s=0);var y=(o-2*m-(u-1)*s)/u;y>1&&(y>>=0);var x=l===+l?Math.min(y,l):y;f=a.reduce(function(S,C,w){var O=[].concat(S1(S),[{item:C.item,position:{offset:m+(y+s)*w+(y-x)/2,size:x}}]);return C.stackList&&C.stackList.length&&C.stackList.forEach(function(E){O.push({item:E,position:O[O.length-1].position})}),O},c)}return f},MV=function(t,r,n,o){var i=n.children,a=n.width,l=n.margin,u=a-(l.left||0)-(l.right||0),s=$T({children:i,legendWidth:u});if(s){var f=o||{},c=f.width,d=f.height,g=s.align,p=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&p==="middle")&&g!=="center"&&K(t[g]))return Je(Je({},t),{},fa({},g,t[g]+(c||0)));if((v==="horizontal"||v==="vertical"&&g==="center")&&p!=="middle"&&K(t[p]))return Je(Je({},t),{},fa({},p,t[p]+(d||0)))}return t},jV=function(t,r,n){return se(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},RT=function(t,r,n,o,i){var a=r.props.children,l=ir(a,Ss).filter(function(s){return jV(o,i,s.props.direction)});if(l&&l.length){var u=l.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=tt(f,n);if(se(c))return s;var d=Array.isArray(c)?[sg(c),eo(c)]:[c,c],g=u.reduce(function(p,v){var b=tt(f,v,0),m=d[0]-Math.abs(Array.isArray(b)?b[0]:b),y=d[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(m,p[0]),Math.max(y,p[1])]},[1/0,-1/0]);return[Math.min(g[0],s[0]),Math.max(g[1],s[1])]},[1/0,-1/0])}return null},BV=function(t,r,n,o,i){var a=r.map(function(l){return RT(t,l,n,i,o)}).filter(function(l){return!se(l)});return a&&a.length?a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},NT=function(t,r,n,o,i){var a=r.map(function(u){var s=u.props.dataKey;return n==="number"&&s&&RT(t,u,s,o)||uu(t,s,n,i)});if(n==="number")return a.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]);var l={};return a.reduce(function(u,s){for(var f=0,c=s.length;f=2?Mt(l[0]-l[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=i?i.indexOf(c):c;return{coordinate:o(d)+s,value:c,offset:s}});return f.filter(function(c){return!il(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:o(c)+s,value:c,index:d,offset:s}}):o.ticks&&!n?o.ticks(t.tickCount).map(function(c){return{coordinate:o(c)+s,value:c,offset:s}}):o.domain().map(function(c,d){return{coordinate:o(c)+s,value:i?i[c]:c,index:d,offset:s}})},Mh=new WeakMap,oc=function(t,r){if(typeof r!="function")return t;Mh.has(t)||Mh.set(t,new WeakMap);var n=Mh.get(t);if(n.has(r))return n.get(r);var o=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,o),o},BT=function(t,r,n){var o=t.scale,i=t.type,a=t.layout,l=t.axisType;if(o==="auto")return a==="radial"&&l==="radiusAxis"?{scale:Du(),realScaleType:"band"}:a==="radial"&&l==="angleAxis"?{scale:Tf(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:lu(),realScaleType:"point"}:i==="category"?{scale:Du(),realScaleType:"band"}:{scale:Tf(),realScaleType:"linear"};if(ci(o)){var u="scale".concat(Gd(o));return{scale:(p1[u]||lu)(),realScaleType:p1[u]?u:"point"}}return ue(o)?{scale:o}:{scale:lu(),realScaleType:"point"}},E1=1e-4,DT=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,o=t.range(),i=Math.min(o[0],o[1])-E1,a=Math.max(o[0],o[1])+E1,l=t(r[0]),u=t(r[n-1]);(la||ua)&&t.domain([r[0],r[n-1]])}},DV=function(t,r){if(!t)return null;for(var n=0,o=t.length;no)&&(i[1]=o),i[0]>o&&(i[0]=o),i[1]=0?(t[l][n][0]=i,t[l][n][1]=i+u,i=t[l][n][1]):(t[l][n][0]=a,t[l][n][1]=a+u,a=t[l][n][1])}},zV=function(t){var r=t.length;if(!(r<=0))for(var n=0,o=t[0].length;n=0?(t[a][n][0]=i,t[a][n][1]=i+l,i=t[a][n][1]):(t[a][n][0]=0,t[a][n][1]=0)}},FV={sign:LV,expand:sD,none:Ca,silhouette:cD,wiggle:fD,positive:zV},WV=function(t,r,n){var o=r.map(function(l){return l.props.dataKey}),i=FV[n],a=uD().keys(o).value(function(l,u){return+tt(l,u,0)}).order(cv).offset(i);return a(t)},UV=function(t,r,n,o,i,a){if(!t)return null;var l=a?r.reverse():r,u={},s=l.reduce(function(c,d){var g,p=(g=d.type)!==null&&g!==void 0&&g.defaultProps?Je(Je({},d.type.defaultProps),d.props):d.props,v=p.stackId,b=p.hide;if(b)return c;var m=p[n],y=c[m]||{hasStack:!1,stackGroups:{}};if(gt(v)){var x=y.stackGroups[v]||{numericAxisId:n,cateAxisId:o,items:[]};x.items.push(d),y.hasStack=!0,y.stackGroups[v]=x}else y.stackGroups[Oi("_stackId_")]={numericAxisId:n,cateAxisId:o,items:[d]};return Je(Je({},c),{},fa({},m,y))},u),f={};return Object.keys(s).reduce(function(c,d){var g=s[d];if(g.hasStack){var p={};g.stackGroups=Object.keys(g.stackGroups).reduce(function(v,b){var m=g.stackGroups[b];return Je(Je({},v),{},fa({},b,{numericAxisId:n,cateAxisId:o,items:m.items,stackedData:WV(t,m.items,i)}))},p)}return Je(Je({},c),{},fa({},d,g))},f)},IT=function(t,r){var n=r.realScaleType,o=r.type,i=r.tickCount,a=r.originalDomain,l=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(i&&o==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=oV(s,i,l);return t.domain([sg(f),eo(f)]),{niceTicks:f}}if(i&&o==="number"){var c=t.domain(),d=iV(c,i,l);return{niceTicks:d}}return null};function jf(e){var t=e.axis,r=e.ticks,n=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!se(o[t.dataKey])){var l=lf(r,"value",o[t.dataKey]);if(l)return l.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=tt(o,se(a)?t.dataKey:a);return se(u)?null:t.scale(u)}var P1=function(t){var r=t.axis,n=t.ticks,o=t.offset,i=t.bandSize,a=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+o:null;var u=tt(a,r.dataKey,r.domain[l]);return se(u)?null:r.scale(u)-i/2+o},VV=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var o=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return o<=0&&i>=0?0:i<0?i:o}return n[0]},XV=function(t,r){var n,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Je(Je({},t.type.defaultProps),t.props):t.props,i=o.stackId;if(gt(i)){var a=r[i];if(a){var l=a.items.indexOf(t);return l>=0?a.stackedData[l]:null}}return null},HV=function(t){return t.reduce(function(r,n){return[sg(n.concat([r[0]]).filter(K)),eo(n.concat([r[1]]).filter(K))]},[1/0,-1/0])},LT=function(t,r,n){return Object.keys(t).reduce(function(o,i){var a=t[i],l=a.stackedData,u=l.reduce(function(s,f){var c=HV(f.slice(r,n+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],o[0]),Math.max(u[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},k1=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,T1=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zv=function(t,r,n){if(ue(t))return t(r,n);if(!Array.isArray(t))return r;var o=[];if(K(t[0]))o[0]=n?t[0]:Math.min(t[0],r[0]);else if(k1.test(t[0])){var i=+k1.exec(t[0])[1];o[0]=r[0]-i}else ue(t[0])?o[0]=t[0](r[0]):o[0]=r[0];if(K(t[1]))o[1]=n?t[1]:Math.max(t[1],r[1]);else if(T1.test(t[1])){var a=+T1.exec(t[1])[1];o[1]=r[1]+a}else ue(t[1])?o[1]=t[1](r[1]):o[1]=r[1];return o},Bf=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!n||o>0)return o}if(t&&r&&r.length>=2){for(var i=Qm(r,function(c){return c.coordinate}),a=1/0,l=1,u=i.length;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},tX=function(t,r,n,o,i){var a=t.width,l=t.height,u=t.startAngle,s=t.endAngle,f=jt(t.cx,a,a/2),c=jt(t.cy,l,l/2),d=WT(a,l,n),g=jt(t.innerRadius,d,0),p=jt(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(b,m){var y=r[m],x=y.domain,S=y.reversed,C;if(se(y.range))o==="angleAxis"?C=[u,s]:o==="radiusAxis"&&(C=[g,p]),S&&(C=[C[1],C[0]]);else{C=y.range;var w=C,O=KV(w,2);u=O[0],s=O[1]}var E=BT(y,i),P=E.realScaleType,k=E.scale;k.domain(x).range(C),DT(k);var $=IT(k,fn(fn({},y),{},{realScaleType:P})),_=fn(fn(fn({},y),$),{},{range:C,radius:p,realScaleType:P,scale:k,cx:f,cy:c,innerRadius:g,outerRadius:p,startAngle:u,endAngle:s});return fn(fn({},b),{},FT({},m,_))},{})},rX=function(t,r){var n=t.x,o=t.y,i=r.x,a=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(o-a,2))},nX=function(t,r){var n=t.x,o=t.y,i=r.cx,a=r.cy,l=rX({x:n,y:o},{x:i,y:a});if(l<=0)return{radius:l};var u=(n-i)/l,s=Math.acos(u);return o>a&&(s=2*Math.PI-s),{radius:l,angle:eX(s),angleInRadian:s}},oX=function(t){var r=t.startAngle,n=t.endAngle,o=Math.floor(r/360),i=Math.floor(n/360),a=Math.min(o,i);return{startAngle:r-a*360,endAngle:n-a*360}},iX=function(t,r){var n=r.startAngle,o=r.endAngle,i=Math.floor(n/360),a=Math.floor(o/360),l=Math.min(i,a);return t+l*360},R1=function(t,r){var n=t.x,o=t.y,i=nX({x:n,y:o},r),a=i.radius,l=i.angle,u=r.innerRadius,s=r.outerRadius;if(as)return!1;if(a===0)return!0;var f=oX(r),c=f.startAngle,d=f.endAngle,g=l,p;if(c<=d){for(;g>d;)g-=360;for(;g=c&&g<=d}else{for(;g>c;)g-=360;for(;g=d&&g<=c}return p?fn(fn({},r),{},{radius:a,angle:iX(g,r)}):null},UT=function(t){return!A.isValidElement(t)&&!ue(t)&&typeof t!="boolean"?t.className:""};function Yu(e){"@babel/helpers - typeof";return Yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yu(e)}var aX=["offset"];function lX(e){return fX(e)||cX(e)||sX(e)||uX()}function uX(){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 sX(e,t){if(e){if(typeof e=="string")return Fv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fv(e,t)}}function cX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fX(e){if(Array.isArray(e))return Fv(e)}function Fv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function N1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;t=0?1:-1,x,S;o==="insideStart"?(x=g+y*a,S=v):o==="insideEnd"?(x=p-y*a,S=!v):o==="end"&&(x=p+y*a,S=v),S=m<=0?S:!S;var C=Le(s,f,b,x),w=Le(s,f,b,x+(S?1:-1)*359),O="M".concat(C.x,",").concat(C.y,` A`).concat(b,",").concat(b,",0,1,").concat(S?0:1,`, `).concat(w.x,",").concat(w.y),E=se(t.id)?Oi("recharts-radial-line-"):t.id;return h.createElement("text",Gu({},n,{dominantBaseline:"central",className:ce("recharts-radial-bar-label",l)}),h.createElement("defs",null,h.createElement("path",{id:E,d:O})),h.createElement("textPath",{xlinkHref:"#".concat(E)},r))},xX=function(t){var r=t.viewBox,n=t.offset,o=t.position,i=r,a=i.cx,l=i.cy,u=i.innerRadius,s=i.outerRadius,f=i.startAngle,c=i.endAngle,d=(f+c)/2;if(o==="outside"){var g=Le(a,l,s+n,d),p=g.x,v=g.y;return{x:p,y:v,textAnchor:p>=a?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"end"};var b=(u+s)/2,m=Le(a,l,b,d),y=m.x,x=m.y;return{x:y,y:x,textAnchor:"middle",verticalAnchor:"middle"}},CX=function(t){var r=t.viewBox,n=t.parentViewBox,o=t.offset,i=t.position,a=r,l=a.x,u=a.y,s=a.width,f=a.height,c=f>=0?1:-1,d=c*o,g=c>0?"end":"start",p=c>0?"start":"end",v=s>=0?1:-1,b=v*o,m=v>0?"end":"start",y=v>0?"start":"end";if(i==="top"){var x={x:l+s/2,y:u-c*o,textAnchor:"middle",verticalAnchor:g};return st(st({},x),n?{height:Math.max(u-n.y,0),width:s}:{})}if(i==="bottom"){var S={x:l+s/2,y:u+f+d,textAnchor:"middle",verticalAnchor:p};return st(st({},S),n?{height:Math.max(n.y+n.height-(u+f),0),width:s}:{})}if(i==="left"){var C={x:l-b,y:u+f/2,textAnchor:m,verticalAnchor:"middle"};return st(st({},C),n?{width:Math.max(C.x-n.x,0),height:f}:{})}if(i==="right"){var w={x:l+s+b,y:u+f/2,textAnchor:y,verticalAnchor:"middle"};return st(st({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var O=n?{width:s,height:f}:{};return i==="insideLeft"?st({x:l+b,y:u+f/2,textAnchor:y,verticalAnchor:"middle"},O):i==="insideRight"?st({x:l+s-b,y:u+f/2,textAnchor:m,verticalAnchor:"middle"},O):i==="insideTop"?st({x:l+s/2,y:u+d,textAnchor:"middle",verticalAnchor:p},O):i==="insideBottom"?st({x:l+s/2,y:u+f-d,textAnchor:"middle",verticalAnchor:g},O):i==="insideTopLeft"?st({x:l+b,y:u+d,textAnchor:y,verticalAnchor:p},O):i==="insideTopRight"?st({x:l+s-b,y:u+d,textAnchor:m,verticalAnchor:p},O):i==="insideBottomLeft"?st({x:l+b,y:u+f-d,textAnchor:y,verticalAnchor:g},O):i==="insideBottomRight"?st({x:l+s-b,y:u+f-d,textAnchor:m,verticalAnchor:g},O):tl(i)&&(K(i.x)||Go(i.x))&&(K(i.y)||Go(i.y))?st({x:l+jt(i.x,s),y:u+jt(i.y,f),textAnchor:"end",verticalAnchor:"end"},O):st({x:l+s/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},wX=function(t){return"cx"in t&&K(t.cx)};function yt(e){var t=e.offset,r=t===void 0?5:t,n=dX(e,aX),o=st({offset:r},n),i=o.viewBox,a=o.position,l=o.value,u=o.children,s=o.content,f=o.className,c=f===void 0?"":f,d=o.textBreakAll;if(!i||se(l)&&se(u)&&!A.isValidElement(s)&&!ue(s))return null;if(A.isValidElement(s))return A.cloneElement(s,o);var g;if(ue(s)){if(g=A.createElement(s,o),A.isValidElement(g))return g}else g=mX(o);var p=wX(i),v=oe(o,!0);if(p&&(a==="insideStart"||a==="insideEnd"||a==="end"))return bX(o,g,v);var b=p?xX(o):CX(o);return h.createElement(di,Gu({className:ce("recharts-label",c)},v,b,{breakAll:d}),g)}yt.displayName="Label";var VT=function(t){var r=t.cx,n=t.cy,o=t.angle,i=t.startAngle,a=t.endAngle,l=t.r,u=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,g=t.top,p=t.left,v=t.width,b=t.height,m=t.clockWise,y=t.labelViewBox;if(y)return y;if(K(v)&&K(b)){if(K(c)&&K(d))return{x:c,y:d,width:v,height:b};if(K(g)&&K(p))return{x:g,y:p,width:v,height:b}}return K(c)&&K(d)?{x:c,y:d,width:0,height:0}:K(r)&&K(n)?{cx:r,cy:n,startAngle:i||o||0,endAngle:a||o||0,innerRadius:s||0,outerRadius:f||u||l||0,clockWise:m}:t.viewBox?t.viewBox:{}},SX=function(t,r){return t?t===!0?h.createElement(yt,{key:"label-implicit",viewBox:r}):gt(t)?h.createElement(yt,{key:"label-implicit",viewBox:r,value:t}):A.isValidElement(t)?t.type===yt?A.cloneElement(t,{key:"label-implicit",viewBox:r}):h.createElement(yt,{key:"label-implicit",content:t,viewBox:r}):ue(t)?h.createElement(yt,{key:"label-implicit",content:t,viewBox:r}):tl(t)?h.createElement(yt,Gu({viewBox:r},t,{key:"label-implicit"})):null:null},OX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var o=t.children,i=VT(t),a=ir(o,yt).map(function(u,s){return A.cloneElement(u,{viewBox:r||i,key:"label-".concat(s)})});if(!n)return a;var l=SX(t.label,r||i);return[l].concat(lX(a))};yt.parseViewBox=VT;yt.renderCallByParent=OX;function EX(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var PX=EX;const kX=Se(PX);function Ku(e){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ku(e)}var TX=["valueAccessor"],AX=["data","dataKey","clockWise","id","textBreakAll"];function _X(e){return MX(e)||NX(e)||RX(e)||$X()}function $X(){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 RX(e,t){if(e){if(typeof e=="string")return Wv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wv(e,t)}}function NX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MX(e){if(Array.isArray(e))return Wv(e)}function Wv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var LX=function(t){return Array.isArray(t.value)?kX(t.value):t.value};function Jr(e){var t=e.valueAccessor,r=t===void 0?LX:t,n=B1(e,TX),o=n.data,i=n.dataKey,a=n.clockWise,l=n.id,u=n.textBreakAll,s=B1(n,AX);return!o||!o.length?null:h.createElement(pe,{className:"recharts-label-list"},o.map(function(f,c){var d=se(i)?r(f,c):tt(f&&f.payload,i),g=se(l)?{}:{id:"".concat(l,"-").concat(c)};return h.createElement(yt,If({},oe(f,!0),s,g,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:yt.parseViewBox(se(a)?f:j1(j1({},f),{},{clockWise:a})),key:"label-".concat(c),index:c}))}))}Jr.displayName="LabelList";function zX(e,t){return e?e===!0?h.createElement(Jr,{key:"labelList-implicit",data:t}):h.isValidElement(e)||ue(e)?h.createElement(Jr,{key:"labelList-implicit",data:t,content:e}):tl(e)?h.createElement(Jr,If({data:t},e,{key:"labelList-implicit"})):null:null}function FX(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,o=ir(n,Jr).map(function(a,l){return A.cloneElement(a,{data:t,key:"labelList-".concat(l)})});if(!r)return o;var i=zX(e.label,t);return[i].concat(_X(o))}Jr.renderCallByParent=FX;function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(a>s),`, `).concat(c.x,",").concat(c.y,` `);if(o>0){var g=Le(r,n,o,a),p=Le(r,n,o,s);d+="L ".concat(p.x,",").concat(p.y,` A `).concat(o,",").concat(o,`,0, `).concat(+(Math.abs(u)>180),",").concat(+(a<=s),`, `).concat(g.x,",").concat(g.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},HX=function(t){var r=t.cx,n=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=Mt(f-s),d=ic({cx:r,cy:n,radius:i,angle:s,sign:c,cornerRadius:a,cornerIsExternal:u}),g=d.circleTangency,p=d.lineTangency,v=d.theta,b=ic({cx:r,cy:n,radius:i,angle:f,sign:-c,cornerRadius:a,cornerIsExternal:u}),m=b.circleTangency,y=b.lineTangency,x=b.theta,S=u?Math.abs(s-f):Math.abs(s-f)-v-x;if(S<0)return l?"M ".concat(p.x,",").concat(p.y,` a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 `):XT({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:s,endAngle:f});var C="M ".concat(p.x,",").concat(p.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(g.x,",").concat(g.y,` A`).concat(i,",").concat(i,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(y.x,",").concat(y.y,` `);if(o>0){var w=ic({cx:r,cy:n,radius:o,angle:s,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),O=w.circleTangency,E=w.lineTangency,P=w.theta,k=ic({cx:r,cy:n,radius:o,angle:f,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),$=k.circleTangency,_=k.lineTangency,B=k.theta,N=u?Math.abs(s-f):Math.abs(s-f)-P-B;if(N<0&&a===0)return"".concat(C,"L").concat(r,",").concat(n,"Z");C+="L".concat(_.x,",").concat(_.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,` A`).concat(o,",").concat(o,",0,").concat(+(N>180),",").concat(+(c>0),",").concat(O.x,",").concat(O.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(E.x,",").concat(E.y,"Z")}else C+="L".concat(r,",").concat(n,"Z");return C},YX={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},HT=function(t){var r=I1(I1({},YX),t),n=r.cx,o=r.cy,i=r.innerRadius,a=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(a0&&Math.abs(f-c)<360?b=HX({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,p/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:f,endAngle:c}):b=XT({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:f,endAngle:c}),h.createElement("path",Uv({},oe(r,!0),{className:g,d:b,role:"img"}))};function Qu(e){"@babel/helpers - typeof";return Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function gH(e,t){return ki(e.getTime(),t.getTime())}function hH(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function vH(e,t){return e===t}function H1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o=new Array(n),i=e.entries(),a,l,u=0;(a=i.next())&&!a.done;){for(var s=t.entries(),f=!1,c=0;(l=s.next())&&!l.done;){if(o[c]){c++;continue}var d=a.value,g=l.value;if(r.equals(d[0],g[0],u,c,e,t,r)&&r.equals(d[1],g[1],d[0],g[0],e,t,r)){f=o[c]=!0;break}c++}if(!f)return!1;u++}return!0}var pH=ki;function mH(e,t,r){var n=X1(e),o=n.length;if(X1(t).length!==o)return!1;for(;o-- >0;)if(!qT(e,t,r,n[o]))return!1;return!0}function jl(e,t,r){var n=U1(e),o=n.length;if(U1(t).length!==o)return!1;for(var i,a,l;o-- >0;)if(i=n[o],!qT(e,t,r,i)||(a=V1(e,i),l=V1(t,i),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function yH(e,t){return ki(e.valueOf(),t.valueOf())}function bH(e,t){return e.source===t.source&&e.flags===t.flags}function Y1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o=new Array(n),i=e.values(),a,l;(a=i.next())&&!a.done;){for(var u=t.values(),s=!1,f=0;(l=u.next())&&!l.done;){if(!o[f]&&r.equals(a.value,l.value,a.value,l.value,e,t,r)){s=o[f]=!0;break}f++}if(!s)return!1}return!0}function xH(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function CH(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function qT(e,t,r,n){return(n===fH||n===cH||n===sH)&&(e.$$typeof||t.$$typeof)?!0:uH(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var wH="[object Arguments]",SH="[object Boolean]",OH="[object Date]",EH="[object Error]",PH="[object Map]",kH="[object Number]",TH="[object Object]",AH="[object RegExp]",_H="[object Set]",$H="[object String]",RH="[object URL]",NH=Array.isArray,G1=typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView:null,K1=Object.assign,MH=Object.prototype.toString.call.bind(Object.prototype.toString);function jH(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,o=e.areFunctionsEqual,i=e.areMapsEqual,a=e.areNumbersEqual,l=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual,g=e.unknownTagComparators;return function(v,b,m){if(v===b)return!0;if(v==null||b==null)return!1;var y=typeof v;if(y!==typeof b)return!1;if(y!=="object")return y==="number"?a(v,b,m):y==="function"?o(v,b,m):!1;var x=v.constructor;if(x!==b.constructor)return!1;if(x===Object)return l(v,b,m);if(NH(v))return t(v,b,m);if(G1!=null&&G1(v))return c(v,b,m);if(x===Date)return r(v,b,m);if(x===RegExp)return s(v,b,m);if(x===Map)return i(v,b,m);if(x===Set)return f(v,b,m);var S=MH(v);if(S===OH)return r(v,b,m);if(S===AH)return s(v,b,m);if(S===PH)return i(v,b,m);if(S===_H)return f(v,b,m);if(S===TH)return typeof v.then!="function"&&typeof b.then!="function"&&l(v,b,m);if(S===RH)return d(v,b,m);if(S===EH)return n(v,b,m);if(S===wH)return l(v,b,m);if(S===SH||S===kH||S===$H)return u(v,b,m);if(g){var C=g[S];if(!C){var w=lH(v);w&&(C=g[w])}if(C)return C(v,b,m)}return!1}}function BH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?jl:dH,areDatesEqual:gH,areErrorsEqual:hH,areFunctionsEqual:vH,areMapsEqual:n?W1(H1,jl):H1,areNumbersEqual:pH,areObjectsEqual:n?jl:mH,arePrimitiveWrappersEqual:yH,areRegExpsEqual:bH,areSetsEqual:n?W1(Y1,jl):Y1,areTypedArraysEqual:n?jl:xH,areUrlsEqual:CH,unknownTagComparators:void 0};if(r&&(o=K1({},o,r(o))),t){var i=lc(o.areArraysEqual),a=lc(o.areMapsEqual),l=lc(o.areObjectsEqual),u=lc(o.areSetsEqual);o=K1({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:u})}return o}function DH(e){return function(t,r,n,o,i,a,l){return e(t,r,l)}}function IH(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,i=e.strict;if(n)return function(u,s){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,g=f.meta;return r(u,s,{cache:d,equals:o,meta:g,strict:i})};if(t)return function(u,s){return r(u,s,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(u,s){return r(u,s,a)}}var LH=Po();Po({strict:!0});Po({circular:!0});Po({circular:!0,strict:!0});Po({createInternalComparator:function(){return ki}});Po({strict:!0,createInternalComparator:function(){return ki}});Po({circular:!0,createInternalComparator:function(){return ki}});Po({circular:!0,createInternalComparator:function(){return ki},strict:!0});function Po(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,o=e.createState,i=e.strict,a=i===void 0?!1:i,l=BH(e),u=jH(l),s=n?n(u):DH(u);return IH({circular:r,comparator:u,createState:o,equals:s,strict:a})}function zH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function q1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function o(i){r<0&&(r=i),i-r>t?(e(i),r=-1):zH(o)};requestAnimationFrame(n)}function Xv(e){"@babel/helpers - typeof";return Xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xv(e)}function FH(e){return XH(e)||VH(e)||UH(e)||WH()}function WH(){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 UH(e,t){if(e){if(typeof e=="string")return Q1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q1(e,t)}}function Q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:m<0?0:m},v=function(m){for(var y=m>1?1:m,x=y,S=0;S<8;++S){var C=c(x)-y,w=g(x);if(Math.abs(C-y)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,o=t.damping,i=o===void 0?8:o,a=t.dt,l=a===void 0?17:a,u=function(f,c,d){var g=-(f-c)*n,p=d*i,v=d+(g-p)*l/1e3,b=d*l/1e3+f;return Math.abs(b-c)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wY(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}function jh(e){return PY(e)||EY(e)||OY(e)||SY()}function SY(){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 OY(e,t){if(e){if(typeof e=="string")return qv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qv(e,t)}}function EY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PY(e){if(Array.isArray(e))return qv(e)}function qv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"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}}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ff(e)}var dg=function(e){_Y(r,e);var t=$Y(r);function r(n,o){var i;kY(this,r),i=t.call(this,n,o);var a=i.props,l=a.isActive,u=a.attributeName,s=a.from,f=a.to,c=a.steps,d=a.children,g=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(Jv(i)),i.changeStyle=i.changeStyle.bind(Jv(i)),!l||g<=0)return i.state={style:{}},typeof d=="function"&&(i.state={style:f}),Zv(i);if(c&&c.length)i.state={style:c[0].style};else if(s){if(typeof d=="function")return i.state={style:s},Zv(i);i.state={style:u?Kl({},u,s):s}}else i.state={style:{}};return i}return TY(r,[{key:"componentDidMount",value:function(){var o=this.props,i=o.isActive,a=o.canBegin;this.mounted=!0,!(!i||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isActive,l=i.canBegin,u=i.attributeName,s=i.shouldReAnimate,f=i.to,c=i.from,d=this.state.style;if(l){if(!a){var g={style:u?Kl({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(g);return}if(!(LH(o.to,f)&&o.canBegin&&o.isActive)){var p=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=p||s?c:o.to;if(this.state&&d){var b={style:u?Kl({},u,v):v};(u&&d[u]!==v||!u&&d!==v)&&this.setState(b)}this.runAnimation(Tr(Tr({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var i=this,a=o.from,l=o.to,u=o.duration,s=o.easing,f=o.begin,c=o.onAnimationEnd,d=o.onAnimationStart,g=bY(a,l,uY(s),u,this.changeStyle),p=function(){i.stopJSAnimation=g()};this.manager.start([d,f,p,u,c])}},{key:"runStepAnimation",value:function(o){var i=this,a=o.steps,l=o.begin,u=o.onAnimationStart,s=a[0],f=s.style,c=s.duration,d=c===void 0?0:c,g=function(v,b,m){if(m===0)return v;var y=b.duration,x=b.easing,S=x===void 0?"ease":x,C=b.style,w=b.properties,O=b.onAnimationEnd,E=m>0?a[m-1]:b,P=w||Object.keys(C);if(typeof S=="function"||S==="spring")return[].concat(jh(v),[i.runJSAnimation.bind(i,{from:E.style,to:C,duration:y,easing:S}),y]);var k=ew(P,y,S),$=Tr(Tr(Tr({},E.style),C),{},{transition:k});return[].concat(jh(v),[$,y,O]).filter(qH)};return this.manager.start([u].concat(jh(a.reduce(g,[f,Math.max(d,l)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=HH());var i=o.begin,a=o.duration,l=o.attributeName,u=o.to,s=o.easing,f=o.onAnimationStart,c=o.onAnimationEnd,d=o.steps,g=o.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),typeof s=="function"||typeof g=="function"||s==="spring"){this.runJSAnimation(o);return}if(d.length>1){this.runStepAnimation(o);return}var v=l?Kl({},l,u):u,b=ew(Object.keys(v),a,s);p.start([f,i,Tr(Tr({},v),{},{transition:b}),a,c])}},{key:"render",value:function(){var o=this.props,i=o.children;o.begin;var a=o.duration;o.attributeName,o.easing;var l=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var u=CY(o,xY),s=A.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!l||s===0||a<=0)return i;var c=function(g){var p=g.props,v=p.style,b=v===void 0?{}:v,m=p.className,y=A.cloneElement(g,Tr(Tr({},u),{},{style:Tr(Tr({},b),f),className:m}));return y};return s===1?c(A.Children.only(i)):h.createElement("div",null,A.Children.map(i,function(d){return c(d)}))}}]),r}(A.PureComponent);dg.displayName="Animate";dg.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};dg.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};const mo=dg;function NY(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ep(e,t){return ep=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ep(e,t)}function MY(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ep(e,t)}const lw={disabled:!1},n2=h.createContext(null);var jY=function(t){return t.scrollTop},ql="unmounted",Lo="exited",zo="entering",Ii="entered",tp="exiting",Bn=function(e){MY(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,l=a&&!a.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?l?(u=Lo,i.appearStatus=zo):u=Ii:n.unmountOnExit||n.mountOnEnter?u=ql:u=Lo,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===ql?{status:Lo}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==zo&&a!==Ii&&(i=zo):(a===zo||a===Ii)&&(i=tp)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===zo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Gs.findDOMNode(this);a&&jY(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lo&&this.setState({status:ql})},r.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[Gs.findDOMNode(this),l],s=u[0],f=u[1],c=this.getTimeouts(),d=l?c.appear:c.enter;if(!o&&!a||lw.disabled){this.safeSetState({status:Ii},function(){i.props.onEntered(s)});return}this.props.onEnter(s,f),this.safeSetState({status:zo},function(){i.props.onEntering(s,f),i.onTransitionEnd(d,function(){i.safeSetState({status:Ii},function(){i.props.onEntered(s,f)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Gs.findDOMNode(this);if(!i||lw.disabled){this.safeSetState({status:Lo},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:tp},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Lo},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Gs.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],s=u[0],f=u[1];this.props.addEndListener(s,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===ql)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=NY(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(n2.Provider,{value:null},typeof a=="function"?a(o,l):h.cloneElement(h.Children.only(a),l))},t}(h.Component);Bn.contextType=n2;Bn.propTypes={};function Mi(){}Bn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mi,onEntering:Mi,onEntered:Mi,onExit:Mi,onExiting:Mi,onExited:Mi};Bn.UNMOUNTED=ql;Bn.EXITED=Lo;Bn.ENTERING=zo;Bn.ENTERED=Ii;Bn.EXITING=tp;const BY=Bn;function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,u=n>=0?1:-1,s=o>=0&&n>=0||o<0&&n<0?1:0,f;if(a>0&&i instanceof Array){for(var c=[0,0,0,0],d=0,g=4;da?a:i[d];f="M".concat(t,",").concat(r+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+u*c[0],",").concat(r)),f+="L ".concat(t+n-u*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`, `).concat(t+n,",").concat(r+l*c[1])),f+="L ".concat(t+n,",").concat(r+o-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`, `).concat(t+n-u*c[2],",").concat(r+o)),f+="L ".concat(t+u*c[3],",").concat(r+o),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`, `).concat(t,",").concat(r+o-l*c[3])),f+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);f="M ".concat(t,",").concat(r+l*p,` A `).concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+u*p,",").concat(r,` L `).concat(t+n-u*p,",").concat(r,` A `).concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+n,",").concat(r+l*p,` L `).concat(t+n,",").concat(r+o-l*p,` A `).concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+n-u*p,",").concat(r+o,` L `).concat(t+u*p,",").concat(r+o,` A `).concat(p,",").concat(p,",0,0,").concat(s,",").concat(t,",").concat(r+o-l*p," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(o," h ").concat(-n," Z");return f},XY=function(t,r){if(!t||!r)return!1;var n=t.x,o=t.y,i=r.x,a=r.y,l=r.width,u=r.height;if(Math.abs(l)>0&&Math.abs(u)>0){var s=Math.min(i,i+l),f=Math.max(i,i+l),c=Math.min(a,a+u),d=Math.max(a,a+u);return n>=s&&n<=f&&o>=c&&o<=d}return!1},HY={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ey=function(t){var r=cw(cw({},HY),t),n=A.useRef(),o=A.useState(-1),i=DY(o,2),a=i[0],l=i[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&l(S)}catch{}},[]);var u=r.x,s=r.y,f=r.width,c=r.height,d=r.radius,g=r.className,p=r.animationEasing,v=r.animationDuration,b=r.animationBegin,m=r.isAnimationActive,y=r.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var x=ce("recharts-rectangle",g);return y?h.createElement(mo,{canBegin:a>0,from:{width:f,height:c,x:u,y:s},to:{width:f,height:c,x:u,y:s},duration:v,animationEasing:p,isActive:y},function(S){var C=S.width,w=S.height,O=S.x,E=S.y;return h.createElement(mo,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,isActive:m,easing:p},h.createElement("path",Wf({},oe(r,!0),{className:x,d:fw(O,E,C,w,d),ref:n})))}):h.createElement("path",Wf({},oe(r,!0),{className:x,d:fw(u,s,f,c,d)}))},YY=["points","className","baseLinePoints","connectNulls"];function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dw(e){return JY(e)||ZY(e)||QY(e)||qY()}function qY(){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 QY(e,t){if(e){if(typeof e=="string")return rp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rp(e,t)}}function ZY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JY(e){if(Array.isArray(e))return rp(e)}function rp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){gw(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),gw(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},cu=function(t,r){var n=eG(t);r&&(n=[n.reduce(function(i,a){return[].concat(dw(i),dw(a))},[])]);var o=n.map(function(i){return i.reduce(function(a,l,u){return"".concat(a).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(o,"Z"):o},tG=function(t,r,n){var o=cu(t,n);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(cu(r.reverse(),n).slice(1))},rG=function(t){var r=t.points,n=t.className,o=t.baseLinePoints,i=t.connectNulls,a=GY(t,YY);if(!r||!r.length)return null;var l=ce("recharts-polygon",n);if(o&&o.length){var u=a.stroke&&a.stroke!=="none",s=tG(r,o,i);return h.createElement("g",{className:l},h.createElement("path",Ji({},oe(a,!0),{fill:s.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:s})),u?h.createElement("path",Ji({},oe(a,!0),{fill:"none",d:cu(r,i)})):null,u?h.createElement("path",Ji({},oe(a,!0),{fill:"none",d:cu(o,i)})):null)}var f=cu(r,i);return h.createElement("path",Ji({},oe(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:l,d:f}))};function np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var cG=function(t,r,n,o,i,a){return"M".concat(t,",").concat(i,"v").concat(o,"M").concat(a,",").concat(r,"h").concat(n)},fG=function(t){var r=t.x,n=r===void 0?0:r,o=t.y,i=o===void 0?0:o,a=t.top,l=a===void 0?0:a,u=t.left,s=u===void 0?0:u,f=t.width,c=f===void 0?0:f,d=t.height,g=d===void 0?0:d,p=t.className,v=uG(t,nG),b=oG({x:n,y:i,top:l,left:s,width:c,height:g},v);return!K(n)||!K(i)||!K(c)||!K(g)||!K(l)||!K(s)?null:h.createElement("path",op({},oe(b,!0),{className:ce("recharts-cross",p),d:cG(n,i,c,g,l,s)}))},dG=ug,gG=hT,hG=ln;function vG(e,t){return e&&e.length?dG(e,hG(t),gG):void 0}var pG=vG;const mG=Se(pG);var yG=ug,bG=ln,xG=vT;function CG(e,t){return e&&e.length?yG(e,bG(t),xG):void 0}var wG=CG;const SG=Se(wG);var OG=["cx","cy","angle","ticks","axisLine"],EG=["ticks","tick","angle","tickFormatter","stroke"];function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mw(e,t){for(var r=0;rxw?a=o==="outer"?"start":"end":i<-xw?a=o==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var n=this.props,o=n.cx,i=n.cy,a=n.radius,l=n.axisLine,u=n.axisLineType,s=No(No({},oe(this.props,!1)),{},{fill:"none"},oe(l,!1));if(u==="circle")return h.createElement(Os,Wo({className:"recharts-polar-angle-axis-line"},s,{cx:o,cy:i,r:a}));var f=this.props.ticks,c=f.map(function(d){return Le(o,i,a,d.coordinate)});return h.createElement(rG,Wo({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var n=this,o=this.props,i=o.ticks,a=o.tick,l=o.tickLine,u=o.tickFormatter,s=o.stroke,f=oe(this.props,!1),c=oe(a,!1),d=No(No({},f),{},{fill:"none"},oe(l,!1)),g=i.map(function(p,v){var b=n.getTickLineCoord(p),m=n.getTickTextAnchor(p),y=No(No(No({textAnchor:m},f),{},{stroke:"none",fill:s},c),{},{index:v,payload:p,x:b.x2,y:b.y2});return h.createElement(pe,Wo({className:ce("recharts-polar-angle-axis-tick",UT(a)),key:"tick-".concat(p.coordinate)},fi(n.props,p,v)),l&&h.createElement("line",Wo({className:"recharts-polar-angle-axis-tick-line"},d,b)),a&&t.renderTickItem(a,y,u?u(p.value,v):p.value))});return h.createElement(pe,{className:"recharts-polar-angle-axis-ticks"},g)}},{key:"render",value:function(){var n=this.props,o=n.ticks,i=n.radius,a=n.axisLine;return i<=0||!o||!o.length?null:h.createElement(pe,{className:ce("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,o,i){var a;return h.isValidElement(n)?a=h.cloneElement(n,o):ue(n)?a=n(o):a=h.createElement(di,Wo({},o,{className:"recharts-polar-angle-axis-tick-value"}),i),a}}])}(A.PureComponent);vg(pg,"displayName","PolarAngleAxis");vg(pg,"axisType","angleAxis");vg(pg,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var WG=ck,UG=WG(Object.getPrototypeOf,Object),VG=UG,XG=Nn,HG=VG,YG=Mn,GG="[object Object]",KG=Function.prototype,qG=Object.prototype,u2=KG.toString,QG=qG.hasOwnProperty,ZG=u2.call(Object);function JG(e){if(!YG(e)||XG(e)!=GG)return!1;var t=HG(e);if(t===null)return!0;var r=QG.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&u2.call(r)==ZG}var eK=JG;const tK=Se(eK);var rK=Nn,nK=Mn,oK="[object Boolean]";function iK(e){return e===!0||e===!1||nK(e)&&rK(e)==oK}var aK=iK;const lK=Se(aK);function rs(e){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rs(e)}function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:u,y:s},duration:v,animationEasing:p,isActive:m},function(x){var S=x.upperWidth,C=x.lowerWidth,w=x.height,O=x.x,E=x.y;return h.createElement(mo,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,easing:p},h.createElement("path",Xf({},oe(r,!0),{className:y,d:Ow(O,E,S,C,w),ref:n})))}):h.createElement("g",null,h.createElement("path",Xf({},oe(r,!0),{className:y,d:Ow(u,s,f,c,d)})))},yK=["option","shapeType","propTransformer","activeClassName","isActive"];function ns(e){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}function bK(e,t){if(e==null)return{};var r=xK(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hf(e){for(var t=1;t0?or(x,"paddingAngle",0):0;if(C){var O=ft(C.endAngle-C.startAngle,x.endAngle-x.startAngle),E=Me(Me({},x),{},{startAngle:y+w,endAngle:y+O(v)+w});b.push(E),y=E.endAngle}else{var P=x.endAngle,k=x.startAngle,$=ft(0,P-k),_=$(v),B=Me(Me({},x),{},{startAngle:y+w,endAngle:y+_+w});b.push(B),y=B.endAngle}}),h.createElement(pe,null,n.renderSectorsStatically(b))})}},{key:"attachKeyboardHandlers",value:function(n){var o=this;n.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var a=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[a].focus(),o.setState({sectorToFocus:a});break}case"ArrowRight":{var l=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[l].focus(),o.setState({sectorToFocus:l});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,o=n.sectors,i=n.isAnimationActive,a=this.state.prevSectors;return i&&o&&o.length&&(!a||!gi(a,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,o=this.props,i=o.hide,a=o.sectors,l=o.className,u=o.label,s=o.cx,f=o.cy,c=o.innerRadius,d=o.outerRadius,g=o.isAnimationActive,p=this.state.isAnimationFinished;if(i||!a||!a.length||!K(s)||!K(f)||!K(c)||!K(d))return null;var v=ce("recharts-pie",l);return h.createElement(pe,{tabIndex:this.props.rootTabIndex,className:v,ref:function(m){n.pieRef=m}},this.renderSectors(),u&&this.renderLabels(a),yt.renderCallByParent(this.props,null,!1),(!g||p)&&Jr.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return o.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==o.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:n.sectors!==o.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,o){return n>o?"start":n=360?y:y-1)*u,S=b-y*g-x,C=o.reduce(function(E,P){var k=tt(P,m,0);return E+(K(k)?k:0)},0),w;if(C>0){var O;w=o.map(function(E,P){var k=tt(E,m,0),$=tt(E,f,P),_=(K(k)?k:0)/C,B;P?B=O.endAngle+Mt(v)*u*(k!==0?1:0):B=a;var N=B+Mt(v)*((k!==0?g:0)+_*S),T=(B+N)/2,M=(p.innerRadius+p.outerRadius)/2,L=[{name:$,value:k,payload:E,dataKey:m,type:d}],R=Le(p.cx,p.cy,M,T);return O=Me(Me(Me({percent:_,cornerRadius:i,name:$,tooltipPayload:L,midAngle:T,middleRadius:M,tooltipPosition:R},E),p),{},{value:tt(E,m),startAngle:B,endAngle:N,payload:E,paddingAngle:Mt(v)*u}),O})}return Me(Me({},p),{},{sectors:w,data:o})});var FK=Math.ceil,WK=Math.max;function UK(e,t,r,n){for(var o=-1,i=WK(FK((t-e)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=e,e+=r;return a}var VK=UK,XK=Ak,Aw=1/0,HK=17976931348623157e292;function YK(e){if(!e)return e===0?e:0;if(e=XK(e),e===Aw||e===-Aw){var t=e<0?-1:1;return t*HK}return e===e?e:0}var d2=YK,GK=VK,KK=eg,Bh=d2;function qK(e){return function(t,r,n){return n&&typeof n!="number"&&KK(t,r,n)&&(r=n=void 0),t=Bh(t),r===void 0?(r=t,t=0):r=Bh(r),n=n===void 0?t0&&n.handleDrag(o.changedTouches[0])}),Qt(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=n.props,i=o.endIndex,a=o.onDragEnd,l=o.startIndex;a==null||a({endIndex:i,startIndex:l})}),n.detachDragEndListener()}),Qt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Qt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Qt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Qt(n,"handleSlideDragStart",function(o){var i=Mw(o)?o.changedTouches[0]:o;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return cq(t,e),aq(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var o=n.startX,i=n.endX,a=this.state.scaleValues,l=this.props,u=l.gap,s=l.data,f=s.length-1,c=Math.min(o,i),d=Math.max(o,i),g=t.getIndexInRange(a,c),p=t.getIndexInRange(a,d);return{startIndex:g-g%u,endIndex:p===f?f:p-p%u}}},{key:"getTextOfTick",value:function(n){var o=this.props,i=o.data,a=o.tickFormatter,l=o.dataKey,u=tt(i[n],l,n);return ue(a)?a(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var o=this.state,i=o.slideMoveStartX,a=o.startX,l=o.endX,u=this.props,s=u.x,f=u.width,c=u.travellerWidth,d=u.startIndex,g=u.endIndex,p=u.onChange,v=n.pageX-i;v>0?v=Math.min(v,s+f-c-l,s+f-c-a):v<0&&(v=Math.max(v,s-a,s-l));var b=this.getIndex({startX:a+v,endX:l+v});(b.startIndex!==d||b.endIndex!==g)&&p&&p(b),this.setState({startX:a+v,endX:l+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,o){var i=Mw(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var o=this.state,i=o.brushMoveStartX,a=o.movingTravellerId,l=o.endX,u=o.startX,s=this.state[a],f=this.props,c=f.x,d=f.width,g=f.travellerWidth,p=f.onChange,v=f.gap,b=f.data,m={startX:this.state.startX,endX:this.state.endX},y=n.pageX-i;y>0?y=Math.min(y,c+d-g-s):y<0&&(y=Math.max(y,c-s)),m[a]=s+y;var x=this.getIndex(m),S=x.startIndex,C=x.endIndex,w=function(){var E=b.length-1;return a==="startX"&&(l>u?S%v===0:C%v===0)||lu?C%v===0:S%v===0)||l>u&&C===E};this.setState(Qt(Qt({},a,s+y),"brushMoveStartX",n.pageX),function(){p&&w()&&p(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,o){var i=this,a=this.state,l=a.scaleValues,u=a.startX,s=a.endX,f=this.state[o],c=l.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=l.length)){var g=l[d];o==="startX"&&g>=s||o==="endX"&&g<=u||this.setState(Qt({},o,g),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,o=n.x,i=n.y,a=n.width,l=n.height,u=n.fill,s=n.stroke;return h.createElement("rect",{stroke:s,fill:u,x:o,y:i,width:a,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,o=n.x,i=n.y,a=n.width,l=n.height,u=n.data,s=n.children,f=n.padding,c=A.Children.only(s);return c?h.cloneElement(c,{x:o,y:i,width:a,height:l,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,o){var i,a,l=this,u=this.props,s=u.y,f=u.travellerWidth,c=u.height,d=u.traveller,g=u.ariaLabel,p=u.data,v=u.startIndex,b=u.endIndex,m=Math.max(n,this.props.x),y=Dh(Dh({},oe(this.props,!1)),{},{x:m,y:s,width:f,height:c}),x=g||"Min value: ".concat((i=p[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((a=p[b])===null||a===void 0?void 0:a.name);return h.createElement(pe,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(C){["ArrowLeft","ArrowRight"].includes(C.key)&&(C.preventDefault(),C.stopPropagation(),l.handleTravellerMoveKeyboard(C.key==="ArrowRight"?1:-1,o))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(n,o){var i=this.props,a=i.y,l=i.height,u=i.stroke,s=i.travellerWidth,f=Math.min(n,o)+s,c=Math.max(Math.abs(o-n)-s,0);return h.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:a,width:c,height:l})}},{key:"renderText",value:function(){var n=this.props,o=n.startIndex,i=n.endIndex,a=n.y,l=n.height,u=n.travellerWidth,s=n.stroke,f=this.state,c=f.startX,d=f.endX,g=5,p={pointerEvents:"none",fill:s};return h.createElement(pe,{className:"recharts-brush-texts"},h.createElement(di,Kf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-g,y:a+l/2},p),this.getTextOfTick(o)),h.createElement(di,Kf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+g,y:a+l/2},p),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,o=n.data,i=n.className,a=n.children,l=n.x,u=n.y,s=n.width,f=n.height,c=n.alwaysShowText,d=this.state,g=d.startX,p=d.endX,v=d.isTextActive,b=d.isSlideMoving,m=d.isTravellerMoving,y=d.isTravellerFocused;if(!o||!o.length||!K(l)||!K(u)||!K(s)||!K(f)||s<=0||f<=0)return null;var x=ce("recharts-brush",i),S=h.Children.count(a)===1,C=oq("userSelect","none");return h.createElement(pe,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:C},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(g,p),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(p,"endX"),(v||b||m||y||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var o=n.x,i=n.y,a=n.width,l=n.height,u=n.stroke,s=Math.floor(i+l/2)-1;return h.createElement(h.Fragment,null,h.createElement("rect",{x:o,y:i,width:a,height:l,fill:u,stroke:"none"}),h.createElement("line",{x1:o+1,y1:s,x2:o+a-1,y2:s,fill:"none",stroke:"#fff"}),h.createElement("line",{x1:o+1,y1:s+2,x2:o+a-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,o){var i;return h.isValidElement(n)?i=h.cloneElement(n,o):ue(n)?i=n(o):i=t.renderDefaultTraveller(o),i}},{key:"getDerivedStateFromProps",value:function(n,o){var i=n.data,a=n.width,l=n.x,u=n.travellerWidth,s=n.updateId,f=n.startIndex,c=n.endIndex;if(i!==o.prevData||s!==o.prevUpdateId)return Dh({prevData:i,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:a},i&&i.length?dq({data:i,width:a,x:l,travellerWidth:u,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(o.scale&&(a!==o.prevWidth||l!==o.prevX||u!==o.prevTravellerWidth)){o.scale.range([l,l+a-u]);var d=o.scale.domain().map(function(g){return o.scale(g)});return{prevData:i,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:a,startX:o.scale(n.startIndex),endX:o.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,o){for(var i=n.length,a=0,l=i-1;l-a>1;){var u=Math.floor((a+l)/2);n[u]>o?l=u:a=u}return o>=n[l]?l:a}}])}(A.PureComponent);Qt(ja,"displayName","Brush");Qt(ja,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var gq=qm;function hq(e,t){var r;return gq(e,function(n,o,i){return r=t(n,o,i),!r}),!!r}var vq=hq,pq=rk,mq=ln,yq=vq,bq=Gt,xq=eg;function Cq(e,t,r){var n=bq(e)?pq:yq;return r&&xq(e,t,r)&&(t=void 0),n(e,mq(t))}var wq=Cq;const Sq=Se(wq);var en=function(t,r){var n=t.alwaysShow,o=t.ifOverflow;return n&&(o="extendDomain"),o===r},jw=Ok;function Oq(e,t,r){t=="__proto__"&&jw?jw(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Eq=Oq,Pq=Eq,kq=wk,Tq=ln;function Aq(e,t){var r={};return t=Tq(t),kq(e,function(n,o,i){Pq(r,o,t(n,o,i))}),r}var _q=Aq;const $q=Se(_q);function Rq(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qq(e,t){var r=e.x,n=e.y,o=Gq(e,Vq),i="".concat(r),a=parseInt(i,10),l="".concat(n),u=parseInt(l,10),s="".concat(t.height||o.height),f=parseInt(s,10),c="".concat(t.width||o.width),d=parseInt(c,10);return Bl(Bl(Bl(Bl(Bl({},t),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Dw(e){return h.createElement(s2,sp({shapeType:"rectangle",propTransformer:qq,activeClassName:"recharts-active-bar"},e))}var Qq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,o){if(typeof t=="number")return t;var i=K(n)||w5(n);return i?t(n,o):(i||vi(!1),r)}},Zq=["value","background"],m2;function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function Jq(e,t){if(e==null)return{};var r=eQ(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(T)0&&Math.abs(N)0&&(B=Math.min((ie||0)-(N[Oe-1]||0),B))}),Number.isFinite(B)){var T=B/_,M=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(O=T*M/2),v.padding==="no-gap"){var L=jt(t.barCategoryGap,T*M),R=T*M/2;O=R-L-(R-L)/M*L}}}o==="xAxis"?E=[n.left+(x.left||0)+(O||0),n.left+n.width-(x.right||0)-(O||0)]:o==="yAxis"?E=u==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(O||0),n.top+n.height-(x.bottom||0)-(O||0)]:E=v.range,C&&(E=[E[1],E[0]]);var F=BT(v,i,d),V=F.scale,Q=F.realScaleType;V.domain(m).range(E),DT(V);var H=IT(V,$r($r({},v),{},{realScaleType:Q}));o==="xAxis"?($=b==="top"&&!S||b==="bottom"&&S,P=n.left,k=c[w]-$*v.height):o==="yAxis"&&($=b==="left"&&!S||b==="right"&&S,P=c[w]-$*v.width,k=n.top);var Z=$r($r($r({},v),H),{},{realScaleType:Q,x:P,y:k,scale:V,width:o==="xAxis"?n.width:v.width,height:o==="yAxis"?n.height:v.height});return Z.bandSize=Bf(Z,H),!v.hide&&o==="xAxis"?c[w]+=($?-1:1)*Z.height:v.hide||(c[w]+=($?-1:1)*Z.width),$r($r({},g),{},bg({},p,Z))},{})},C2=function(t,r){var n=t.x,o=t.y,i=r.x,a=r.y;return{x:Math.min(n,i),y:Math.min(o,a),width:Math.abs(i-n),height:Math.abs(a-o)}},fQ=function(t){var r=t.x1,n=t.y1,o=t.x2,i=t.y2;return C2({x:r,y:n},{x:o,y:i})},w2=function(){function e(t){uQ(this,e),this.scale=t}return sQ(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+a}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(o){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),o=n[0],i=n[n.length-1];return o<=i?r>=o&&r<=i:r>=i&&r<=o}}],[{key:"create",value:function(r){return new e(r)}}])}();bg(w2,"EPS",1e-4);var ky=function(t){var r=Object.keys(t).reduce(function(n,o){return $r($r({},n),{},bg({},o,w2.create(t[o])))},{});return $r($r({},r),{},{apply:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.bandAware,l=i.position;return $q(o,function(u,s){return r[s].apply(u,{bandAware:a,position:l})})},isInRange:function(o){return p2(o,function(i,a){return r[a].isInRange(i)})}})};function dQ(e){return(e%180+180)%180}var gQ=function(t){var r=t.width,n=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=dQ(o),a=i*Math.PI/180,l=Math.atan(n/r),u=a>l&&a-1?o[i?t[a]:a]:void 0}}var yQ=mQ,bQ=d2;function xQ(e){var t=bQ(e),r=t%1;return t===t?r?t-r:t:0}var CQ=xQ,wQ=pk,SQ=ln,OQ=CQ,EQ=Math.max;function PQ(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:OQ(r);return o<0&&(o=EQ(n+o,0)),wQ(e,SQ(t),o)}var kQ=PQ,TQ=yQ,AQ=kQ,_Q=TQ(AQ),$Q=_Q;const RQ=Se($Q);var NQ=Pj(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Ty=A.createContext(void 0),Ay=A.createContext(void 0),S2=A.createContext(void 0),O2=A.createContext({}),E2=A.createContext(void 0),P2=A.createContext(0),k2=A.createContext(0),Ww=function(t){var r=t.state,n=r.xAxisMap,o=r.yAxisMap,i=r.offset,a=t.clipPathId,l=t.children,u=t.width,s=t.height,f=NQ(i);return h.createElement(Ty.Provider,{value:n},h.createElement(Ay.Provider,{value:o},h.createElement(O2.Provider,{value:i},h.createElement(S2.Provider,{value:f},h.createElement(E2.Provider,{value:a},h.createElement(P2.Provider,{value:s},h.createElement(k2.Provider,{value:u},l)))))))},MQ=function(){return A.useContext(E2)},T2=function(t){var r=A.useContext(Ty);r==null&&vi(!1);var n=r[t];return n==null&&vi(!1),n},jQ=function(){var t=A.useContext(Ty);return Qn(t)},BQ=function(){var t=A.useContext(Ay),r=RQ(t,function(n){return p2(n.domain,Number.isFinite)});return r||Qn(t)},A2=function(t){var r=A.useContext(Ay);r==null&&vi(!1);var n=r[t];return n==null&&vi(!1),n},DQ=function(){var t=A.useContext(S2);return t},IQ=function(){return A.useContext(O2)},_y=function(){return A.useContext(k2)},$y=function(){return A.useContext(P2)};function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(e)}function LQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uw(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function yZ(e,t){return B2(e,t+1)}function bZ(e,t,r,n,o){for(var i=(n||[]).slice(),a=t.start,l=t.end,u=0,s=1,f=a,c=function(){var p=n==null?void 0:n[u];if(p===void 0)return{v:B2(n,s)};var v=u,b,m=function(){return b===void 0&&(b=r(p,v)),b},y=p.coordinate,x=u===0||rd(e,y,m,f,l);x||(u=0,f=a,s+=1),x&&(f=y+e*(m()/2+o),u+=s)},d;s<=i.length;)if(d=c(),d)return d.v;return[]}function us(e){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},us(e)}function Jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function At(e){for(var t=1;t0?g.coordinate-b*e:g.coordinate})}else i[d]=g=At(At({},g),{},{tickCoord:g.coordinate});var m=rd(e,g.tickCoord,v,l,u);m&&(u=g.tickCoord-e*(v()/2+o),i[d]=At(At({},g),{},{isShow:!0}))},f=a-1;f>=0;f--)s(f);return i}function OZ(e,t,r,n,o,i){var a=(n||[]).slice(),l=a.length,u=t.start,s=t.end;if(i){var f=n[l-1],c=r(f,l-1),d=e*(f.coordinate+e*c/2-s);a[l-1]=f=At(At({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var g=rd(e,f.tickCoord,function(){return c},u,s);g&&(s=f.tickCoord-e*(c/2+o),a[l-1]=At(At({},f),{},{isShow:!0}))}for(var p=i?l-1:l,v=function(y){var x=a[y],S,C=function(){return S===void 0&&(S=r(x,y)),S};if(y===0){var w=e*(x.coordinate-e*C()/2-u);a[y]=x=At(At({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else a[y]=x=At(At({},x),{},{tickCoord:x.coordinate});var O=rd(e,x.tickCoord,C,u,s);O&&(u=x.tickCoord+e*(C()/2+o),a[y]=At(At({},x),{},{isShow:!0}))},b=0;b=2?Mt(o[1].coordinate-o[0].coordinate):1,m=mZ(i,b,g);return u==="equidistantPreserveStart"?bZ(b,m,v,o,a):(u==="preserveStart"||u==="preserveStartEnd"?d=OZ(b,m,v,o,a,u==="preserveStartEnd"):d=SZ(b,m,v,o,a),d.filter(function(y){return y.isShow}))}var EZ=["viewBox"],PZ=["viewBox"],kZ=["ticks"];function za(e){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},za(e)}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tS(e,t){for(var r=0;r0?u(this.props):u(g)),a<=0||l<=0||!p||!p.length?null:h.createElement(pe,{className:ce("recharts-cartesian-axis",s),ref:function(b){n.layerReference=b}},i&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),yt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,o,i){var a,l=ce(o.className,"recharts-cartesian-axis-tick-value");return h.isValidElement(n)?a=h.cloneElement(n,ut(ut({},o),{},{className:l})):ue(n)?a=n(ut(ut({},o),{},{className:l})):a=h.createElement(di,ta({},o,{className:"recharts-cartesian-axis-tick-value"}),i),a}}])}(A.Component);jy(dl,"displayName","CartesianAxis");jy(dl,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var BZ=["x1","y1","x2","y2","key"],DZ=["offset"];function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function rS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function $t(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var WZ=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,o=t.x,i=t.y,a=t.width,l=t.height,u=t.ry;return h.createElement("rect",{x:o,y:i,ry:u,width:a,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function L2(e,t){var r;if(h.isValidElement(e))r=h.cloneElement(e,t);else if(ue(e))r=e(t);else{var n=t.x1,o=t.y1,i=t.x2,a=t.y2,l=t.key,u=nS(t,BZ),s=oe(u,!1);s.offset;var f=nS(s,DZ);r=h.createElement("line",Qo({},f,{x1:n,y1:o,x2:i,y2:a,fill:"none",key:l}))}return r}function UZ(e){var t=e.x,r=e.width,n=e.horizontal,o=n===void 0?!0:n,i=e.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(l,u){var s=$t($t({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(u),index:u});return L2(o,s)});return h.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function VZ(e){var t=e.y,r=e.height,n=e.vertical,o=n===void 0?!0:n,i=e.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(l,u){var s=$t($t({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(u),index:u});return L2(o,s)});return h.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function XZ(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,o=e.y,i=e.width,a=e.height,l=e.horizontalPoints,u=e.horizontal,s=u===void 0?!0:u;if(!s||!t||!t.length)return null;var f=l.map(function(d){return Math.round(d+o-o)}).sort(function(d,g){return d-g});o!==f[0]&&f.unshift(0);var c=f.map(function(d,g){var p=!f[g+1],v=p?o+a-d:f[g+1]-d;if(v<=0)return null;var b=g%t.length;return h.createElement("rect",{key:"react-".concat(g),y:d,x:n,height:v,width:i,stroke:"none",fill:t[b],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return h.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function HZ(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,l=e.width,u=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,g){return d-g});i!==f[0]&&f.unshift(0);var c=f.map(function(d,g){var p=!f[g+1],v=p?i+l-d:f[g+1]-d;if(v<=0)return null;var b=g%n.length;return h.createElement("rect",{key:"react-".concat(g),x:d,y:a,width:v,height:u,stroke:"none",fill:n[b],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return h.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var YZ=function(t,r){var n=t.xAxis,o=t.width,i=t.height,a=t.offset;return jT(My($t($t($t({},dl.defaultProps),n),{},{ticks:mn(n,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.left,a.left+a.width,r)},GZ=function(t,r){var n=t.yAxis,o=t.width,i=t.height,a=t.offset;return jT(My($t($t($t({},dl.defaultProps),n),{},{ticks:mn(n,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.top,a.top+a.height,r)},ji={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Og(e){var t,r,n,o,i,a,l=_y(),u=$y(),s=IQ(),f=$t($t({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ji.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:ji.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:ji.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:ji.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:ji.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:ji.verticalFill,x:K(e.x)?e.x:s.left,y:K(e.y)?e.y:s.top,width:K(e.width)?e.width:s.width,height:K(e.height)?e.height:s.height}),c=f.x,d=f.y,g=f.width,p=f.height,v=f.syncWithTicks,b=f.horizontalValues,m=f.verticalValues,y=jQ(),x=BQ();if(!K(g)||g<=0||!K(p)||p<=0||!K(c)||c!==+c||!K(d)||d!==+d)return null;var S=f.verticalCoordinatesGenerator||YZ,C=f.horizontalCoordinatesGenerator||GZ,w=f.horizontalPoints,O=f.verticalPoints;if((!w||!w.length)&&ue(C)){var E=b&&b.length,P=C({yAxis:x?$t($t({},x),{},{ticks:E?b:x.ticks}):void 0,width:l,height:u,offset:s},E?!0:v);Dr(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(pi(P),"]")),Array.isArray(P)&&(w=P)}if((!O||!O.length)&&ue(S)){var k=m&&m.length,$=S({xAxis:y?$t($t({},y),{},{ticks:k?m:y.ticks}):void 0,width:l,height:u,offset:s},k?!0:v);Dr(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(pi($),"]")),Array.isArray($)&&(O=$)}return h.createElement("g",{className:"recharts-cartesian-grid"},h.createElement(WZ,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),h.createElement(UZ,Qo({},f,{offset:s,horizontalPoints:w,xAxis:y,yAxis:x})),h.createElement(VZ,Qo({},f,{offset:s,verticalPoints:O,xAxis:y,yAxis:x})),h.createElement(XZ,Qo({},f,{horizontalPoints:w})),h.createElement(HZ,Qo({},f,{verticalPoints:O})))}Og.displayName="CartesianGrid";var KZ=["type","layout","connectNulls","ref"],qZ=["key"];function Fa(e){"@babel/helpers - typeof";return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fa(e)}function oS(e,t){if(e==null)return{};var r=QZ(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rc){g=[].concat(Bi(u.slice(0,p)),[c-v]);break}var b=g.length%2===0?[0,d]:[d];return[].concat(Bi(t.repeat(u,f)),Bi(g),b).map(function(m){return"".concat(m,"px")}).join(", ")}),Rr(r,"id",Oi("recharts-line-")),Rr(r,"pathRef",function(a){r.mainCurve=a}),Rr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Rr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return lJ(t,e),nJ(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,l=i.xAxis,u=i.yAxis,s=i.layout,f=i.children,c=ir(f,Ss);if(!c)return null;var d=function(v,b){return{x:v.x,y:v.y,value:v.value,errorVal:tt(v.payload,b)}},g={clipPath:n?"url(#clipPath-".concat(o,")"):null};return h.createElement(pe,g,c.map(function(p){return h.cloneElement(p,{key:"bar-".concat(p.props.dataKey),data:a,xAxis:l,yAxis:u,layout:s,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,o,i){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var l=this.props,u=l.dot,s=l.points,f=l.dataKey,c=oe(this.props,!1),d=oe(u,!0),g=s.map(function(v,b){var m=Kt(Kt(Kt({key:"dot-".concat(b),r:3},c),d),{},{index:b,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(u,m)}),p={clipPath:n?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return h.createElement(pe,du({className:"recharts-line-dots",key:"dots"},p),g)}},{key:"renderCurveStatically",value:function(n,o,i,a){var l=this.props,u=l.type,s=l.layout,f=l.connectNulls;l.ref;var c=oS(l,KZ),d=Kt(Kt(Kt({},oe(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:o?"url(#clipPath-".concat(i,")"):null,points:n},a),{},{type:u,layout:s,connectNulls:f});return h.createElement(ni,du({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,o){var i=this,a=this.props,l=a.points,u=a.strokeDasharray,s=a.isAnimationActive,f=a.animationBegin,c=a.animationDuration,d=a.animationEasing,g=a.animationId,p=a.animateNewValues,v=a.width,b=a.height,m=this.state,y=m.prevPoints,x=m.totalLength;return h.createElement(mo,{begin:f,duration:c,isActive:s,easing:d,from:{t:0},to:{t:1},key:"line-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var C=S.t;if(y){var w=y.length/l.length,O=l.map(function(_,B){var N=Math.floor(B*w);if(y[N]){var T=y[N],M=ft(T.x,_.x),L=ft(T.y,_.y);return Kt(Kt({},_),{},{x:M(C),y:L(C)})}if(p){var R=ft(v*2,_.x),F=ft(b/2,_.y);return Kt(Kt({},_),{},{x:R(C),y:F(C)})}return Kt(Kt({},_),{},{x:_.x,y:_.y})});return i.renderCurveStatically(O,n,o)}var E=ft(0,x),P=E(C),k;if(u){var $="".concat(u).split(/[,\s]+/gim).map(function(_){return parseFloat(_)});k=i.getStrokeDasharray(P,x,$)}else k=i.generateSimpleStrokeDasharray(x,P);return i.renderCurveStatically(l,n,o,{strokeDasharray:k})})}},{key:"renderCurve",value:function(n,o){var i=this.props,a=i.points,l=i.isAnimationActive,u=this.state,s=u.prevPoints,f=u.totalLength;return l&&a&&a.length&&(!s&&f>0||!gi(s,a))?this.renderCurveWithAnimation(n,o):this.renderCurveStatically(a,n,o)}},{key:"render",value:function(){var n,o=this.props,i=o.hide,a=o.dot,l=o.points,u=o.className,s=o.xAxis,f=o.yAxis,c=o.top,d=o.left,g=o.width,p=o.height,v=o.isAnimationActive,b=o.id;if(i||!l||!l.length)return null;var m=this.state.isAnimationFinished,y=l.length===1,x=ce("recharts-line",u),S=s&&s.allowDataOverflow,C=f&&f.allowDataOverflow,w=S||C,O=se(b)?this.id:b,E=(n=oe(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=E.r,k=P===void 0?3:P,$=E.strokeWidth,_=$===void 0?2:$,B=kP(a)?a:{},N=B.clipDot,T=N===void 0?!0:N,M=k*2+_;return h.createElement(pe,{className:x},S||C?h.createElement("defs",null,h.createElement("clipPath",{id:"clipPath-".concat(O)},h.createElement("rect",{x:S?d:d-g/2,y:C?c:c-p/2,width:S?g:g*2,height:C?p:p*2})),!T&&h.createElement("clipPath",{id:"clipPath-dots-".concat(O)},h.createElement("rect",{x:d-M/2,y:c-M/2,width:g+M,height:p+M}))):null,!y&&this.renderCurve(w,O),this.renderErrorBar(w,O),(y||a)&&this.renderDots(w,T,O),(!v||m)&&Jr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.animationId!==o.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:o.curPoints}:n.points!==o.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,o){for(var i=n.length%2!==0?[].concat(Bi(n),[0]):n,a=[],l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!gi(f,a)||!gi(c,l))?this.renderAreaWithAnimation(n,o):this.renderAreaStatically(a,l,n,o)}},{key:"render",value:function(){var n,o=this.props,i=o.hide,a=o.dot,l=o.points,u=o.className,s=o.top,f=o.left,c=o.xAxis,d=o.yAxis,g=o.width,p=o.height,v=o.isAnimationActive,b=o.id;if(i||!l||!l.length)return null;var m=this.state.isAnimationFinished,y=l.length===1,x=ce("recharts-area",u),S=c&&c.allowDataOverflow,C=d&&d.allowDataOverflow,w=S||C,O=se(b)?this.id:b,E=(n=oe(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=E.r,k=P===void 0?3:P,$=E.strokeWidth,_=$===void 0?2:$,B=kP(a)?a:{},N=B.clipDot,T=N===void 0?!0:N,M=k*2+_;return h.createElement(pe,{className:x},S||C?h.createElement("defs",null,h.createElement("clipPath",{id:"clipPath-".concat(O)},h.createElement("rect",{x:S?f:f-g/2,y:C?s:s-p/2,width:S?g:g*2,height:C?p:p*2})),!T&&h.createElement("clipPath",{id:"clipPath-dots-".concat(O)},h.createElement("rect",{x:f-M/2,y:s-M/2,width:g+M,height:p+M}))):null,y?null:this.renderArea(w,O),(a||y)&&this.renderDots(w,T,O),(!v||m)&&Jr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.animationId!==o.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:n.points!==o.curPoints||n.baseLine!==o.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(A.PureComponent);W2=ko;Gr(ko,"displayName","Area");Gr(ko,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ir.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Gr(ko,"getBaseValue",function(e,t,r,n){var o=e.layout,i=e.baseValue,a=t.props.baseValue,l=a??i;if(K(l)&&typeof l=="number")return l;var u=o==="horizontal"?n:r,s=u.scale.domain();if(u.type==="number"){var f=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return l==="dataMin"?c:l==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return l==="dataMin"?s[0]:l==="dataMax"?s[1]:s[0]});Gr(ko,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,l=e.bandSize,u=e.dataKey,s=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,g=t.layout,p=s&&s.length,v=W2.getBaseValue(t,r,n,o),b=g==="horizontal",m=!1,y=c.map(function(S,C){var w;p?w=s[f+C]:(w=tt(S,u),Array.isArray(w)?m=!0:w=[v,w]);var O=w[1]==null||p&&tt(S,u)==null;return b?{x:jf({axis:n,ticks:i,bandSize:l,entry:S,index:C}),y:O?null:o.scale(w[1]),value:w,payload:S}:{x:O?null:n.scale(w[1]),y:jf({axis:o,ticks:a,bandSize:l,entry:S,index:C}),value:w,payload:S}}),x;return p||m?x=y.map(function(S){var C=Array.isArray(S.value)?S.value[0]:null;return b?{x:S.x,y:C!=null&&S.y!=null?o.scale(C):null}:{x:C!=null?n.scale(C):null,y:S.y}}):x=b?o.scale(v):n.scale(v),Un({points:y,baseLine:x,layout:g,isRange:m},d)});Gr(ko,"renderDotItem",function(e,t){var r;if(h.isValidElement(e))r=h.cloneElement(e,t);else if(ue(e))r=e(t);else{var n=ce("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,i=U2(t,cJ);r=h.createElement(Os,Zo({},i,{key:o,className:n}))}return r});function Ua(e){"@babel/helpers - typeof";return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(e)}function bJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sS(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function oee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pS(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?a:t&&t.length&&K(o)&&K(i)?t.slice(o,i+1):[]};function iA(e){return e==="number"?[0,"auto"]:void 0}var Ap=function(t,r,n,o){var i=t.graphicalItems,a=t.tooltipAxis,l=Eg(r,t);return n<0||!i||!i.length||n>=l.length?null:i.reduce(function(u,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(a.dataKey&&!a.allowDuplicatedCategory){var g=c===void 0?l:c;d=lf(g,a.dataKey,o)}else d=c&&c[n]||l[n];return d?[].concat(Ha(u),[zT(s,d)]):u},[])},yS=function(t,r,n,o){var i=o||{x:t.chartX,y:t.chartY},a=pee(i,n),l=t.orderedTooltipTicks,u=t.tooltipAxis,s=t.tooltipTicks,f=$V(a,l,s,u);if(f>=0&&s){var c=s[f]&&s[f].value,d=Ap(t,r,f,c),g=mee(n,l,f,i);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:g}}return null},yee=function(t,r){var n=r.axes,o=r.graphicalItems,i=r.axisType,a=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,g=MT(f,i);return n.reduce(function(p,v){var b,m=v.type.defaultProps!==void 0?W(W({},v.type.defaultProps),v.props):v.props,y=m.type,x=m.dataKey,S=m.allowDataOverflow,C=m.allowDuplicatedCategory,w=m.scale,O=m.ticks,E=m.includeHidden,P=m[a];if(p[P])return p;var k=Eg(t.data,{graphicalItems:o.filter(function(H){var Z,ie=a in H.props?H.props[a]:(Z=H.type.defaultProps)===null||Z===void 0?void 0:Z[a];return ie===P}),dataStartIndex:u,dataEndIndex:s}),$=k.length,_,B,N;XJ(m.domain,S,y)&&(_=zv(m.domain,null,S),g&&(y==="number"||w!=="auto")&&(N=uu(k,x,"category")));var T=iA(y);if(!_||_.length===0){var M,L=(M=m.domain)!==null&&M!==void 0?M:T;if(x){if(_=uu(k,x,y),y==="category"&&g){var R=O5(_);C&&R?(B=_,_=Gf(0,$)):C||(_=A1(L,_,v).reduce(function(H,Z){return H.indexOf(Z)>=0?H:[].concat(Ha(H),[Z])},[]))}else if(y==="category")C?_=_.filter(function(H){return H!==""&&!se(H)}):_=A1(L,_,v).reduce(function(H,Z){return H.indexOf(Z)>=0||Z===""||se(Z)?H:[].concat(Ha(H),[Z])},[]);else if(y==="number"){var F=BV(k,o.filter(function(H){var Z,ie,Oe=a in H.props?H.props[a]:(Z=H.type.defaultProps)===null||Z===void 0?void 0:Z[a],ze="hide"in H.props?H.props.hide:(ie=H.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return Oe===P&&(E||!ze)}),x,i,f);F&&(_=F)}g&&(y==="number"||w!=="auto")&&(N=uu(k,x,"category"))}else g?_=Gf(0,$):l&&l[P]&&l[P].hasStack&&y==="number"?_=d==="expand"?[0,1]:LT(l[P].stackGroups,u,s):_=NT(k,o.filter(function(H){var Z=a in H.props?H.props[a]:H.type.defaultProps[a],ie="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return Z===P&&(E||!ie)}),y,f,!0);if(y==="number")_=Pp(c,_,P,i,O),L&&(_=zv(L,_,S));else if(y==="category"&&L){var V=L,Q=_.every(function(H){return V.indexOf(H)>=0});Q&&(_=V)}}return W(W({},p),{},le({},P,W(W({},m),{},{axisType:i,domain:_,categoricalDomain:N,duplicateDomain:B,originalDomain:(b=m.domain)!==null&&b!==void 0?b:T,isCategorical:g,layout:f})))},{})},bee=function(t,r){var n=r.graphicalItems,o=r.Axis,i=r.axisType,a=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=Eg(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),g=d.length,p=MT(f,i),v=-1;return n.reduce(function(b,m){var y=m.type.defaultProps!==void 0?W(W({},m.type.defaultProps),m.props):m.props,x=y[a],S=iA("number");if(!b[x]){v++;var C;return p?C=Gf(0,g):l&&l[x]&&l[x].hasStack?(C=LT(l[x].stackGroups,u,s),C=Pp(c,C,x,i)):(C=zv(S,NT(d,n.filter(function(w){var O,E,P=a in w.props?w.props[a]:(O=w.type.defaultProps)===null||O===void 0?void 0:O[a],k="hide"in w.props?w.props.hide:(E=w.type.defaultProps)===null||E===void 0?void 0:E.hide;return P===x&&!k}),"number",f),o.defaultProps.allowDataOverflow),C=Pp(c,C,x,i)),W(W({},b),{},le({},x,W(W({axisType:i},o.defaultProps),{},{hide:!0,orientation:or(hee,"".concat(i,".").concat(v%2),null),domain:C,originalDomain:S,isCategorical:p,layout:f})))}return b},{})},xee=function(t,r){var n=r.axisType,o=n===void 0?"xAxis":n,i=r.AxisComp,a=r.graphicalItems,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.children,c="".concat(o,"Id"),d=ir(f,i),g={};return d&&d.length?g=yee(t,{axes:d,graphicalItems:a,axisType:o,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s}):a&&a.length&&(g=bee(t,{Axis:i,graphicalItems:a,axisType:o,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s})),g},Cee=function(t){var r=Qn(t),n=mn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Qm(n,function(o){return o.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Bf(r,n)}},bS=function(t){var r=t.children,n=t.defaultShowTooltip,o=Jt(r,ja),i=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(i=o.props.startIndex),o.props.endIndex>=0&&(a=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},wee=function(t){return!t||!t.length?!1:t.some(function(r){var n=bn(r&&r.type);return n&&n.indexOf("Bar")>=0})},xS=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},See=function(t,r){var n=t.props,o=t.graphicalItems,i=t.xAxisMap,a=i===void 0?{}:i,l=t.yAxisMap,u=l===void 0?{}:l,s=n.width,f=n.height,c=n.children,d=n.margin||{},g=Jt(c,ja),p=Jt(c,xn),v=Object.keys(u).reduce(function(C,w){var O=u[w],E=O.orientation;return!O.mirror&&!O.hide?W(W({},C),{},le({},E,C[E]+O.width)):C},{left:d.left||0,right:d.right||0}),b=Object.keys(a).reduce(function(C,w){var O=a[w],E=O.orientation;return!O.mirror&&!O.hide?W(W({},C),{},le({},E,or(C,"".concat(E))+O.height)):C},{top:d.top||0,bottom:d.bottom||0}),m=W(W({},b),v),y=m.bottom;g&&(m.bottom+=g.props.height||ja.defaultProps.height),p&&r&&(m=MV(m,o,n,r));var x=s-m.left-m.right,S=f-m.top-m.bottom;return W(W({brushBottom:y},m),{},{width:Math.max(x,0),height:Math.max(S,0)})},Oee=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Pg=function(t){var r=t.chartName,n=t.GraphicalChild,o=t.defaultTooltipEventType,i=o===void 0?"axis":o,a=t.validateTooltipEventTypes,l=a===void 0?["axis"]:a,u=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(m,y){var x=y.graphicalItems,S=y.stackGroups,C=y.offset,w=y.updateId,O=y.dataStartIndex,E=y.dataEndIndex,P=m.barSize,k=m.layout,$=m.barGap,_=m.barCategoryGap,B=m.maxBarSize,N=xS(k),T=N.numericAxisName,M=N.cateAxisName,L=wee(x),R=[];return x.forEach(function(F,V){var Q=Eg(m.data,{graphicalItems:[F],dataStartIndex:O,dataEndIndex:E}),H=F.type.defaultProps!==void 0?W(W({},F.type.defaultProps),F.props):F.props,Z=H.dataKey,ie=H.maxBarSize,Oe=H["".concat(T,"Id")],ze=H["".concat(M,"Id")],cr={},zt=u.reduce(function(Ao,_o){var zg=y["".concat(_o.axisType,"Map")],Hy=H["".concat(_o.axisType,"Id")];zg&&zg[Hy]||_o.axisType==="zAxis"||vi(!1);var Yy=zg[Hy];return W(W({},Ao),{},le(le({},_o.axisType,Yy),"".concat(_o.axisType,"Ticks"),mn(Yy)))},cr),J=zt[M],de=zt["".concat(M,"Ticks")],he=S&&S[Oe]&&S[Oe].hasStack&&XV(F,S[Oe].stackGroups),G=bn(F.type).indexOf("Bar")>=0,Qe=Bf(J,de),be=[],at=L&&RV({barSize:P,stackGroups:S,totalSize:Oee(zt,M)});if(G){var lt,Ft,In=se(ie)?B:ie,_i=(lt=(Ft=Bf(J,de,!0))!==null&&Ft!==void 0?Ft:In)!==null&<!==void 0?lt:0;be=NV({barGap:$,barCategoryGap:_,bandSize:_i!==Qe?_i:Qe,sizeList:at[ze],maxBarSize:In}),_i!==Qe&&(be=be.map(function(Ao){return W(W({},Ao),{},{position:W(W({},Ao.position),{},{offset:Ao.position.offset-_i/2})})}))}var As=F&&F.type&&F.type.getComposedData;As&&R.push({props:W(W({},As(W(W({},zt),{},{displayedData:Q,props:m,dataKey:Z,item:F,bandSize:Qe,barPosition:be,offset:C,stackedData:he,layout:k,dataStartIndex:O,dataEndIndex:E}))),{},le(le(le({key:F.key||"item-".concat(V)},T,zt[T]),M,zt[M]),"animationId",w)),childIndex:B5(F,m.children),item:F})}),R},g=function(m,y){var x=m.props,S=m.dataStartIndex,C=m.dataEndIndex,w=m.updateId;if(!bx({props:x}))return null;var O=x.children,E=x.layout,P=x.stackOffset,k=x.data,$=x.reverseStackOrder,_=xS(E),B=_.numericAxisName,N=_.cateAxisName,T=ir(O,n),M=UV(k,T,"".concat(B,"Id"),"".concat(N,"Id"),P,$),L=u.reduce(function(H,Z){var ie="".concat(Z.axisType,"Map");return W(W({},H),{},le({},ie,xee(x,W(W({},Z),{},{graphicalItems:T,stackGroups:Z.axisType===B&&M,dataStartIndex:S,dataEndIndex:C}))))},{}),R=See(W(W({},L),{},{props:x,graphicalItems:T}),y==null?void 0:y.legendBBox);Object.keys(L).forEach(function(H){L[H]=f(x,L[H],R,H.replace("Map",""),r)});var F=L["".concat(N,"Map")],V=Cee(F),Q=d(x,W(W({},L),{},{dataStartIndex:S,dataEndIndex:C,updateId:w,graphicalItems:T,stackGroups:M,offset:R}));return W(W({formattedGraphicalItems:Q,graphicalItems:T,offset:R,stackGroups:M},V),L)},p=function(b){function m(y){var x,S,C;return oee(this,m),C=aee(this,m,[y]),le(C,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),le(C,"accessibilityManager",new VJ),le(C,"handleLegendBBoxUpdate",function(w){if(w){var O=C.state,E=O.dataStartIndex,P=O.dataEndIndex,k=O.updateId;C.setState(W({legendBBox:w},g({props:C.props,dataStartIndex:E,dataEndIndex:P,updateId:k},W(W({},C.state),{},{legendBBox:w}))))}}),le(C,"handleReceiveSyncEvent",function(w,O,E){if(C.props.syncId===w){if(E===C.eventEmitterSymbol&&typeof C.props.syncMethod!="function")return;C.applySyncEvent(O)}}),le(C,"handleBrushChange",function(w){var O=w.startIndex,E=w.endIndex;if(O!==C.state.dataStartIndex||E!==C.state.dataEndIndex){var P=C.state.updateId;C.setState(function(){return W({dataStartIndex:O,dataEndIndex:E},g({props:C.props,dataStartIndex:O,dataEndIndex:E,updateId:P},C.state))}),C.triggerSyncEvent({dataStartIndex:O,dataEndIndex:E})}}),le(C,"handleMouseEnter",function(w){var O=C.getMouseInfo(w);if(O){var E=W(W({},O),{},{isTooltipActive:!0});C.setState(E),C.triggerSyncEvent(E);var P=C.props.onMouseEnter;ue(P)&&P(E,w)}}),le(C,"triggeredAfterMouseMove",function(w){var O=C.getMouseInfo(w),E=O?W(W({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};C.setState(E),C.triggerSyncEvent(E);var P=C.props.onMouseMove;ue(P)&&P(E,w)}),le(C,"handleItemMouseEnter",function(w){C.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),le(C,"handleItemMouseLeave",function(){C.setState(function(){return{isTooltipActive:!1}})}),le(C,"handleMouseMove",function(w){w.persist(),C.throttleTriggeredAfterMouseMove(w)}),le(C,"handleMouseLeave",function(w){C.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};C.setState(O),C.triggerSyncEvent(O);var E=C.props.onMouseLeave;ue(E)&&E(O,w)}),le(C,"handleOuterEvent",function(w){var O=j5(w),E=or(C.props,"".concat(O));if(O&&ue(E)){var P,k;/.*touch.*/i.test(O)?k=C.getMouseInfo(w.changedTouches[0]):k=C.getMouseInfo(w),E((P=k)!==null&&P!==void 0?P:{},w)}}),le(C,"handleClick",function(w){var O=C.getMouseInfo(w);if(O){var E=W(W({},O),{},{isTooltipActive:!0});C.setState(E),C.triggerSyncEvent(E);var P=C.props.onClick;ue(P)&&P(E,w)}}),le(C,"handleMouseDown",function(w){var O=C.props.onMouseDown;if(ue(O)){var E=C.getMouseInfo(w);O(E,w)}}),le(C,"handleMouseUp",function(w){var O=C.props.onMouseUp;if(ue(O)){var E=C.getMouseInfo(w);O(E,w)}}),le(C,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&C.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),le(C,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&C.handleMouseDown(w.changedTouches[0])}),le(C,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&C.handleMouseUp(w.changedTouches[0])}),le(C,"handleDoubleClick",function(w){var O=C.props.onDoubleClick;if(ue(O)){var E=C.getMouseInfo(w);O(E,w)}}),le(C,"handleContextMenu",function(w){var O=C.props.onContextMenu;if(ue(O)){var E=C.getMouseInfo(w);O(E,w)}}),le(C,"triggerSyncEvent",function(w){C.props.syncId!==void 0&&Lh.emit(zh,C.props.syncId,w,C.eventEmitterSymbol)}),le(C,"applySyncEvent",function(w){var O=C.props,E=O.layout,P=O.syncMethod,k=C.state.updateId,$=w.dataStartIndex,_=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)C.setState(W({dataStartIndex:$,dataEndIndex:_},g({props:C.props,dataStartIndex:$,dataEndIndex:_,updateId:k},C.state)));else if(w.activeTooltipIndex!==void 0){var B=w.chartX,N=w.chartY,T=w.activeTooltipIndex,M=C.state,L=M.offset,R=M.tooltipTicks;if(!L)return;if(typeof P=="function")T=P(R,w);else if(P==="value"){T=-1;for(var F=0;F=0){var he,G;if(B.dataKey&&!B.allowDuplicatedCategory){var Qe=typeof B.dataKey=="function"?de:"payload.".concat(B.dataKey.toString());he=lf(F,Qe,T),G=V&&Q&&lf(Q,Qe,T)}else he=F==null?void 0:F[N],G=V&&Q&&Q[N];if(ze||Oe){var be=w.props.activeIndex!==void 0?w.props.activeIndex:N;return[A.cloneElement(w,W(W(W({},P.props),zt),{},{activeIndex:be})),null,null]}if(!se(he))return[J].concat(Ha(C.renderActivePoints({item:P,activePoint:he,basePoint:G,childIndex:N,isRange:V})))}else{var at,lt=(at=C.getItemByXY(C.state.activeCoordinate))!==null&&at!==void 0?at:{graphicalItem:J},Ft=lt.graphicalItem,In=Ft.item,_i=In===void 0?w:In,As=Ft.childIndex,Ao=W(W(W({},P.props),zt),{},{activeIndex:As});return[A.cloneElement(_i,Ao),null,null]}return V?[J,null,null]:[J,null]}),le(C,"renderCustomized",function(w,O,E){return A.cloneElement(w,W(W({key:"recharts-customized-".concat(E)},C.props),C.state))}),le(C,"renderMap",{CartesianGrid:{handler:sc,once:!0},ReferenceArea:{handler:C.renderReferenceElement},ReferenceLine:{handler:sc},ReferenceDot:{handler:C.renderReferenceElement},XAxis:{handler:sc},YAxis:{handler:sc},Brush:{handler:C.renderBrush,once:!0},Bar:{handler:C.renderGraphicChild},Line:{handler:C.renderGraphicChild},Area:{handler:C.renderGraphicChild},Radar:{handler:C.renderGraphicChild},RadialBar:{handler:C.renderGraphicChild},Scatter:{handler:C.renderGraphicChild},Pie:{handler:C.renderGraphicChild},Funnel:{handler:C.renderGraphicChild},Tooltip:{handler:C.renderCursor,once:!0},PolarGrid:{handler:C.renderPolarGrid,once:!0},PolarAngleAxis:{handler:C.renderPolarAxis},PolarRadiusAxis:{handler:C.renderPolarAxis},Customized:{handler:C.renderCustomized}}),C.clipPathId="".concat((x=y.id)!==null&&x!==void 0?x:Oi("recharts"),"-clip"),C.throttleTriggeredAfterMouseMove=_k(C.triggeredAfterMouseMove,(S=y.throttleDelay)!==null&&S!==void 0?S:1e3/60),C.state={},C}return see(m,b),iee(m,[{key:"componentDidMount",value:function(){var x,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,S=x.children,C=x.data,w=x.height,O=x.layout,E=Jt(S,er);if(E){var P=E.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var k=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=Ap(this.state,C,P,k),_=this.state.tooltipTicks[P].coordinate,B=(this.state.offset.top+w)/2,N=O==="horizontal",T=N?{x:_,y:B}:{y:_,x:B},M=this.state.formattedGraphicalItems.find(function(R){var F=R.item;return F.type.name==="Scatter"});M&&(T=W(W({},T),M.props.points[P].tooltipPosition),$=M.props.points[P].tooltipPayload);var L={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:k,activePayload:$,activeCoordinate:T};this.setState(L),this.renderCursor(E),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var C,w;this.accessibilityManager.setDetails({offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){tv([Jt(x.children,er)],[Jt(this.props.children,er)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Jt(this.props.children,er);if(x&&typeof x.props.shared=="boolean"){var S=x.props.shared?"axis":"item";return l.indexOf(S)>=0?S:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var S=this.container,C=S.getBoundingClientRect(),w=i9(C),O={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},E=C.width/S.offsetWidth||1,P=this.inRange(O.chartX,O.chartY,E);if(!P)return null;var k=this.state,$=k.xAxisMap,_=k.yAxisMap,B=this.getTooltipEventType(),N=yS(this.state,this.props.data,this.props.layout,P);if(B!=="axis"&&$&&_){var T=Qn($).scale,M=Qn(_).scale,L=T&&T.invert?T.invert(O.chartX):null,R=M&&M.invert?M.invert(O.chartY):null;return W(W({},O),{},{xValue:L,yValue:R},N)}return N?W(W({},O),N):null}},{key:"inRange",value:function(x,S){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,O=x/C,E=S/C;if(w==="horizontal"||w==="vertical"){var P=this.state.offset,k=O>=P.left&&O<=P.left+P.width&&E>=P.top&&E<=P.top+P.height;return k?{x:O,y:E}:null}var $=this.state,_=$.angleAxisMap,B=$.radiusAxisMap;if(_&&B){var N=Qn(_);return R1({x:O,y:E},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,S=this.getTooltipEventType(),C=Jt(x,er),w={};C&&S==="axis"&&(C.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=uf(this.props,this.handleOuterEvent);return W(W({},O),w)}},{key:"addListener",value:function(){Lh.on(zh,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Lh.removeListener(zh,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,S,C){for(var w=this.state.formattedGraphicalItems,O=0,E=w.length;O{const r=new Map;return e.forEach((n,o)=>{r.set(n,t[o])}),r},Dy=(e,t,r)=>[e?"auto":t??0,r??"auto"],aA=(e,t)=>{const[r,n]=A.useState(t);A.useEffect(()=>{const o=()=>{n(window.innerWidth),e()};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e,r])},U={none:{height:"h-0",width:"w-0"},threeXs:{height:"h-0.5",width:"w-0.5"},twoXs:{height:"h-1",width:"w-1"},xs:{height:"h-2",width:"w-2"},sm:{height:"h-3",width:"w-3"},md:{height:"h-4",width:"w-4"},lg:{height:"h-5",width:"w-5"},xl:{height:"h-6",width:"w-6"},twoXl:{height:"h-7",width:"w-7"},threeXl:{height:"h-9",width:"w-9"}},z={none:{paddingLeft:"pl-0",paddingTop:"pt-0",paddingRight:"pr-0",paddingBottom:"pb-0",paddingX:"px-0",paddingY:"py-0",paddingAll:"p-0",marginLeft:"ml-0",marginTop:"mt-0",marginRight:"mr-0",marginBottom:"mb-0",negativeMarginLeft:"-ml-0",negativeMarginRight:"-mr-0",negativeMarginTop:"-mt-0",negativeMarginBottom:"-mb-0",left:"left-0",right:"right-0",top:"top-0",bottom:"bottom-0",spaceX:"space-x-0"},px:{paddingLeft:"pl-px",paddingTop:"pt-px",paddingRight:"pr-px",paddingBottom:"pb-px",paddingX:"px-px",paddingY:"py-px",paddingAll:"p-px",marginLeft:"ml-px",marginTop:"mt-px",marginRight:"mr-px",marginBottom:"mb-px",negativeMarginLeft:"-ml-px",negativeMarginRight:"-mr-px",negativeMarginTop:"-mt-px",negativeMarginBottom:"-mb-px",left:"left-px",right:"right-px",top:"top-px",bottom:"bottom-px",spaceX:"space-x-px"},threeXs:{paddingLeft:"pl-0.5",paddingTop:"pt-0.5",paddingRight:"pr-0.5",paddingBottom:"pb-0.5",paddingX:"px-0.5",paddingY:"py-0.5",paddingAll:"p-0.5",marginLeft:"ml-0.5",marginTop:"mt-0.5",marginRight:"mr-0.5",marginBottom:"mb-0.5",negativeMarginLeft:"-ml-0.5",negativeMarginRight:"-mr-0.5",negativeMarginTop:"-mt-0.5",negativeMarginBottom:"-mb-0.5",left:"left-0.5",right:"right-0.5",top:"top-0.5",bottom:"bottom-0.5",spaceX:"space-x-0.5"},twoXs:{paddingLeft:"pl-1",paddingTop:"pt-1",paddingRight:"pr-1",paddingBottom:"pb-1",paddingX:"px-1",paddingY:"py-1",paddingAll:"p-1",marginLeft:"ml-1",marginTop:"mt-1",marginRight:"mr-1",marginBottom:"mb-1",negativeMarginLeft:"-ml-1",negativeMarginRight:"-mr-1",left:"left-1",right:"right-1",top:"top-1",bottom:"bottom-1",spaceX:"space-x-1"},xs:{paddingLeft:"pl-1.5",paddingTop:"pt-1.5",paddingRight:"pr-1.5",paddingBottom:"pb-1.5",paddingX:"px-1.5",paddingY:"py-1.5",paddingAll:"p-1.5",marginLeft:"ml-1.5",marginTop:"mt-1.5",marginRight:"mr-1.5",marginBottom:"mb-1.5",negativeMarginLeft:"-ml-1.5",negativeMarginRight:"-mr-1.5",negativeMarginTop:"-mt-1.5",negativeMarginBottom:"-mb-1.5",left:"left-1.5",right:"right-1.5",top:"top-1.5",bottom:"bottom-1.5",spaceX:"space-x-1.5"},sm:{paddingLeft:"pl-2",paddingTop:"pt-2",paddingRight:"pr-2",paddingBottom:"pb-2",paddingX:"px-2",paddingY:"py-2",paddingAll:"p-2",marginLeft:"ml-2",marginTop:"mt-2",marginRight:"mr-2",marginBottom:"mb-2",negativeMarginLeft:"-ml-2",negativeMarginRight:"-mr-2",negativeMarginTop:"-mt-2",negativeMarginBottom:"-mb-2",left:"left-2",right:"right-2",top:"left-2",bottom:"bottom-2",spaceX:"space-x-2"},md:{paddingLeft:"pl-2.5",paddingTop:"pt-2.5",paddingRight:"pr-2.5",paddingBottom:"pb-2.5",paddingX:"px-2.5",paddingY:"py-2.5",paddingAll:"p-2.5",marginLeft:"ml-2.5",marginTop:"mt-2.5",marginRight:"mr-2.5",marginBottom:"mb-2.5",negativeMarginLeft:"-ml-2.5",negativeMarginRight:"-mr-2.5",negativeMarginTop:"-mt-2.5",negativeMarginBottom:"-mb-2.5",left:"left-2.5",right:"right-2.5",top:"top-2.5",bottom:"bottom-2.5",spaceX:"space-x-2.5"},lg:{paddingLeft:"pl-3",paddingTop:"pt-3",paddingRight:"pr-3",paddingBottom:"pb-3",paddingX:"px-3",paddingY:"py-3",paddingAll:"p-3",marginLeft:"ml-3",marginTop:"mt-3",marginRight:"mr-3",marginBottom:"mb-3",negativeMarginLeft:"-ml-3",negativeMarginRight:"-mr-3",negativeMarginTop:"-mt-3",negativeMarginBottom:"-mb-3",left:"left-3",right:"right-3",top:"top-3",bottom:"bottom-3",spaceX:"space-x-3"},xl:{paddingLeft:"pl-3.5",paddingTop:"pt-3.5",paddingRight:"pr-3.5",paddingBottom:"pb-3.5",paddingX:"px-3.5",paddingY:"py-3.5",paddingAll:"p-3.5",marginLeft:"ml-3.5",marginTop:"mt-3.5",marginRight:"mr-3.5",marginBottom:"mb-3.5",negativeMarginLeft:"-ml-3.5",negativeMarginRight:"-mr-3.5",negativeMarginTop:"-mt-3.5",negativeMarginBottom:"-mb-3.5",left:"left-3.5",right:"right-3.5",top:"top-3.5",bottom:"bottom-3.5",spaceX:"space-x-3.5"},twoXl:{paddingLeft:"pl-4",paddingTop:"pt-4",paddingRight:"pr-4",paddingBottom:"pb-4",paddingX:"px-4",paddingY:"py-4",paddingAll:"p-4",marginLeft:"ml-4",marginTop:"mt-4",marginRight:"mr-4",marginBottom:"mb-4",negativeMarginLeft:"-ml-4",negativeMarginRight:"-mr-4",negativeMarginTop:"-mt-4",negativeMarginBottom:"-mb-4",left:"left-4",right:"right-4",top:"top-4",bottom:"bottom-4",spaceX:"space-x-4"},threeXl:{paddingLeft:"pl-6",paddingTop:"pt-6",paddingRight:"pr-6",paddingBottom:"pb-6",paddingX:"px-6",paddingY:"py-6",paddingAll:"p-6",marginLeft:"ml-6",marginTop:"mt-6",marginRight:"mr-6",marginBottom:"mb-6",negativeMarginLeft:"-ml-6",negativeMarginRight:"-mr-6",negativeMarginTop:"-mt-6",negativeMarginBottom:"-mb-6",left:"left-6",right:"right-6",top:"top-6",bottom:"bottom-6",spaceX:"space-x-6"},fourXl:{paddingLeft:"pl-8",paddingTop:"pt-8",paddingRight:"pr-8",paddingBottom:"pb-8",paddingX:"px-8",paddingY:"py-8",paddingAll:"p-8",marginLeft:"ml-8",marginTop:"mt-8",marginRight:"mr-8",marginBottom:"mb-8",negativeMarginLeft:"-ml-8",negativeMarginRight:"-mr-8",negativeMarginTop:"-mt-8",negativeMarginBottom:"-mb-8",left:"left-8",right:"right-8",top:"top-8",bottom:"bottom-8",spaceX:"space-x-8"}},ne={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl",threeXl:"text-3xl"},Pe={sm:"font-normal",md:"font-medium",lg:"font-semibold"},Re={Increase:"increase",ModerateIncrease:"moderateIncrease",Decrease:"decrease",ModerateDecrease:"moderateDecrease",Unchanged:"unchanged"},Y={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},kg={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},da={Left:"left",Right:"right"},CS={Top:"top",Bottom:"bottom"},X="gray",Aee="white",I={canvasBackground:50,lightBackground:100,background:500,darkBackground:600,darkestBackground:800,lightBorder:200,border:500,darkBorder:700,lightRing:200,ring:300,lightText:400,text:500,darkText:700,darkestText:900,icon:500},gl=[Y.Cyan,Y.Sky,Y.Blue,Y.Indigo,Y.Violet,Y.Purple,Y.Fuchsia,Y.Slate,Y.Gray,Y.Zinc,Y.Neutral,Y.Stone,Y.Red,Y.Orange,Y.Amber,Y.Yellow,Y.Lime,Y.Green,Y.Emerald,Y.Teal,Y.Pink,Y.Rose],$e={transparent:{500:{bgColor:"bg-transparent",hoverBgColor:"hover:bg-transparent",textColor:"text-transparent",hoverTextColor:"hover:text-transparent",borderColor:"border-transparent",hoverBorderColor:"hover:border-transparent",ringRolor:"ring-transparent",ringColor:"ring-transparent",hoverRingColor:"hover:ring-transparent",divideColor:"divide-transparent",outlineColor:"outline-transparent",focusRingColor:"focus:ring-transparent"}},white:{500:{bgColor:"bg-white",hoverBgColor:"hover:bg-white",textColor:"text-white",hoverTextColor:"hover:text-white",borderColor:"border-white",hoverBorderColor:"hover:border-white",ringRolor:"ring-white",ringColor:"ring-white",hoverRingColor:"hover:ring-white",divideColor:"divide-white",outlineColor:"outline-white",focusRingColor:"focus:ring-white"}},black:{500:{bgColor:"bg-black",hoverBgColor:"hover:bg-black",textColor:"text-black",hoverTextColor:"hover:text-black",borderColor:"border-black",hoverBorderColor:"hover:border-black",ringRolor:"ring-black",ringColor:"ring-black",hoverRingColor:"hover:ring-black",divideColor:"divide-black",outlineColor:"outline-black",focusRingColor:"focus:ring-black"}},slate:{50:{bgColor:"bg-slate-50",hoverBgColor:"hover:bg-slate-50",textColor:"text-slate-50",hoverTextColor:"hover:text-slate-50",borderColor:"border-slate-50",hoverBorderColor:"hover:border-slate-50",ringRolor:"ring-slate-50",ringColor:"ring-slate-50",hoverRingColor:"hover:ring-slate-50",divideColor:"divide-slate-50",outlineColor:"outline-slate-50",focusRingColor:"focus:ring-slate-50"},100:{bgColor:"bg-slate-100",hoverBgColor:"hover:bg-slate-100",textColor:"text-slate-100",hoverTextColor:"hover:text-slate-100",borderColor:"border-slate-100",hoverBorderColor:"hover:border-slate-100",ringRolor:"ring-slate-100",ringColor:"ring-slate-100",hoverRingColor:"hover:ring-slate-100",divideColor:"divide-slate-100",outlineColor:"outline-slate-100",focusRingColor:"focus:ring-slate-100"},200:{bgColor:"bg-slate-200",hoverBgColor:"hover:bg-slate-200",textColor:"text-slate-200",hoverTextColor:"hover:text-slate-200",borderColor:"border-slate-200",hoverBorderColor:"hover:border-slate-200",ringRolor:"ring-slate-200",ringColor:"ring-slate-200",hoverRingColor:"hover:ring-slate-200",divideColor:"divide-slate-200",outlineColor:"outline-slate-200",focusRingColor:"focus:ring-slate-200"},300:{bgColor:"bg-slate-300",hoverBgColor:"hover:bg-slate-300",textColor:"text-slate-300",hoverTextColor:"hover:text-slate-300",borderColor:"border-slate-300",hoverBorderColor:"hover:border-slate-300",ringRolor:"ring-slate-300",ringColor:"ring-slate-300",hoverRingColor:"hover:ring-slate-300",divideColor:"divide-slate-300",outlineColor:"outline-slate-300",focusRingColor:"focus:ring-slate-300"},400:{bgColor:"bg-slate-400",hoverBgColor:"hover:bg-slate-400",textColor:"text-slate-400",hoverTextColor:"hover:text-slate-400",borderColor:"border-slate-400",hoverBorderColor:"hover:border-slate-400",ringRolor:"ring-slate-400",ringColor:"ring-slate-400",hoverRingColor:"hover:ring-slate-400",divideColor:"divide-slate-400",outlineColor:"outline-slate-400",focusRingColor:"focus:ring-slate-400"},500:{bgColor:"bg-slate-500",hoverBgColor:"hover:bg-slate-500",textColor:"text-slate-500",hoverTextColor:"hover:text-slate-500",borderColor:"border-slate-500",hoverBorderColor:"hover:border-slate-500",ringRolor:"ring-slate-500",ringColor:"ring-slate-500",hoverRingColor:"hover:ring-slate-500",divideColor:"divide-slate-500",outlineColor:"outline-slate-500",focusRingColor:"focus:ring-slate-500"},600:{bgColor:"bg-slate-600",hoverBgColor:"hover:bg-slate-600",textColor:"text-slate-600",hoverTextColor:"hover:text-slate-600",borderColor:"border-slate-600",hoverBorderColor:"hover:border-slate-600",ringRolor:"ring-slate-600",ringColor:"ring-slate-600",hoverRingColor:"hover:ring-slate-600",divideColor:"divide-slate-600",outlineColor:"outline-slate-600",focusRingColor:"focus:ring-slate-600"},700:{bgColor:"bg-slate-700",hoverBgColor:"hover:bg-slate-700",textColor:"text-slate-700",hoverTextColor:"hover:text-slate-700",borderColor:"border-slate-700",hoverBorderColor:"hover:border-slate-700",ringRolor:"ring-slate-700",ringColor:"ring-slate-700",hoverRingColor:"hover:ring-slate-700",divideColor:"divide-slate-700",outlineColor:"outline-slate-700",focusRingColor:"focus:ring-slate-700"},800:{bgColor:"bg-slate-800",hoverBgColor:"hover:bg-slate-800",textColor:"text-slate-800",hoverTextColor:"hover:text-slate-800",borderColor:"border-slate-800",hoverBorderColor:"hover:border-slate-800",ringRolor:"ring-slate-800",ringColor:"ring-slate-800",hoverRingColor:"hover:ring-slate-800",divideColor:"divide-slate-800",outlineColor:"outline-slate-800",focusRingColor:"focus:ring-slate-800"},900:{bgColor:"bg-slate-900",hoverBgColor:"hover:bg-slate-900",textColor:"text-slate-900",hoverTextColor:"hover:text-slate-900",borderColor:"border-slate-900",hoverBorderColor:"hover:border-slate-900",ringRolor:"ring-slate-900",ringColor:"ring-slate-900",hoverRingColor:"hover:ring-slate-900",divideColor:"divide-slate-900",outlineColor:"outline-slate-900",focusRingColor:"focus:ring-slate-900"}},gray:{50:{bgColor:"bg-gray-50",hoverBgColor:"hover:bg-gray-50",textColor:"text-gray-50",hoverTextColor:"hover:text-gray-50",borderColor:"border-gray-50",hoverBorderColor:"hover:border-gray-50",ringRolor:"ring-gray-50",ringColor:"ring-gray-50",hoverRingColor:"hover:ring-gray-50",divideColor:"divide-gray-50",outlineColor:"outline-gray-50",focusRingColor:"focus:ring-gray-50"},100:{bgColor:"bg-gray-100",hoverBgColor:"hover:bg-gray-100",textColor:"text-gray-100",hoverTextColor:"hover:text-gray-100",borderColor:"border-gray-100",hoverBorderColor:"hover:border-gray-100",ringRolor:"ring-gray-100",ringColor:"ring-gray-100",hoverRingColor:"hover:ring-gray-100",divideColor:"divide-gray-100",outlineColor:"outline-gray-100",focusRingColor:"focus:ring-gray-100"},200:{bgColor:"bg-gray-200",hoverBgColor:"hover:bg-gray-200",textColor:"text-gray-200",hoverTextColor:"hover:text-gray-200",borderColor:"border-gray-200",hoverBorderColor:"hover:border-gray-200",ringRolor:"ring-gray-200",ringColor:"ring-gray-200",hoverRingColor:"hover:ring-gray-200",divideColor:"divide-gray-200",outlineColor:"outline-gray-200",focusRingColor:"focus:ring-gray-200"},300:{bgColor:"bg-gray-300",hoverBgColor:"hover:bg-gray-300",textColor:"text-gray-300",hoverTextColor:"hover:text-gray-300",borderColor:"border-gray-300",hoverBorderColor:"hover:border-gray-300",ringRolor:"ring-gray-300",ringColor:"ring-gray-300",hoverRingColor:"hover:ring-gray-300",divideColor:"divide-gray-300",outlineColor:"outline-gray-300",focusRingColor:"focus:ring-gray-300"},400:{bgColor:"bg-gray-400",hoverBgColor:"hover:bg-gray-400",textColor:"text-gray-400",hoverTextColor:"hover:text-gray-400",borderColor:"border-gray-400",hoverBorderColor:"hover:border-gray-400",ringRolor:"ring-gray-400",ringColor:"ring-gray-400",hoverRingColor:"hover:ring-gray-400",divideColor:"divide-gray-400",outlineColor:"outline-gray-400",focusRingColor:"focus:ring-gray-400"},500:{bgColor:"bg-gray-500",hoverBgColor:"hover:bg-gray-500",textColor:"text-gray-500",hoverTextColor:"hover:text-gray-500",borderColor:"border-gray-500",hoverBorderColor:"hover:border-gray-500",ringRolor:"ring-gray-500",ringColor:"ring-gray-500",hoverRingColor:"hover:ring-gray-500",divideColor:"divide-gray-500",outlineColor:"outline-gray-500",focusRingColor:"focus:ring-gray-500"},600:{bgColor:"bg-gray-600",hoverBgColor:"hover:bg-gray-600",textColor:"text-gray-600",hoverTextColor:"hover:text-gray-600",borderColor:"border-gray-600",hoverBorderColor:"hover:border-gray-600",ringRolor:"ring-gray-600",ringColor:"ring-gray-600",hoverRingColor:"hover:ring-gray-600",divideColor:"divide-gray-600",outlineColor:"outline-gray-600",focusRingColor:"focus:ring-gray-600"},700:{bgColor:"bg-gray-700",hoverBgColor:"hover:bg-gray-700",textColor:"text-gray-700",hoverTextColor:"hover:text-gray-700",borderColor:"border-gray-700",hoverBorderColor:"hover:border-gray-700",ringRolor:"ring-gray-700",ringColor:"ring-gray-700",hoverRingColor:"hover:ring-gray-700",divideColor:"divide-gray-700",outlineColor:"outline-gray-700",focusRingColor:"focus:ring-gray-700"},800:{bgColor:"bg-gray-800",hoverBgColor:"hover:bg-gray-800",textColor:"text-gray-800",hoverTextColor:"hover:text-gray-800",borderColor:"border-gray-800",hoverBorderColor:"hover:border-gray-800",ringRolor:"ring-gray-800",ringColor:"ring-gray-800",hoverRingColor:"hover:ring-gray-800",divideColor:"divide-gray-800",outlineColor:"outline-gray-800",focusRingColor:"focus:ring-gray-800"},900:{bgColor:"bg-gray-900",hoverBgColor:"hover:bg-gray-900",textColor:"text-gray-900",hoverTextColor:"hover:text-gray-900",borderColor:"border-gray-900",hoverBorderColor:"hover:border-gray-900",ringRolor:"ring-gray-900",ringColor:"ring-gray-900",hoverRingColor:"hover:ring-gray-900",divideColor:"divide-gray-900",outlineColor:"outline-gray-900",focusRingColor:"focus:ring-gray-900"}},zinc:{50:{bgColor:"bg-zinc-50",hoverBgColor:"hover:bg-zinc-50",textColor:"text-zinc-50",hoverTextColor:"hover:text-zinc-50",borderColor:"border-zinc-50",hoverBorderColor:"hover:border-zinc-50",ringRolor:"ring-zinc-50",ringColor:"ring-zinc-50",hoverRingColor:"hover:ring-zinc-50",divideColor:"divide-zinc-50",outlineColor:"outline-zinc-50",focusRingColor:"focus:ring-zinc-50"},100:{bgColor:"bg-zinc-100",hoverBgColor:"hover:bg-zinc-100",textColor:"text-zinc-100",hoverTextColor:"hover:text-zinc-100",borderColor:"border-zinc-100",hoverBorderColor:"hover:border-zinc-100",ringRolor:"ring-zinc-100",ringColor:"ring-zinc-100",hoverRingColor:"hover:ring-zinc-100",divideColor:"divide-zinc-100",outlineColor:"outline-zinc-100",focusRingColor:"focus:ring-zinc-100"},200:{bgColor:"bg-zinc-200",hoverBgColor:"hover:bg-zinc-200",textColor:"text-zinc-200",hoverTextColor:"hover:text-zinc-200",borderColor:"border-zinc-200",hoverBorderColor:"hover:border-zinc-200",ringRolor:"ring-zinc-200",ringColor:"ring-zinc-200",hoverRingColor:"hover:ring-zinc-200",divideColor:"divide-zinc-200",outlineColor:"outline-zinc-200",focusRingColor:"focus:ring-zinc-200"},300:{bgColor:"bg-zinc-300",hoverBgColor:"hover:bg-zinc-300",textColor:"text-zinc-300",hoverTextColor:"hover:text-zinc-300",borderColor:"border-zinc-300",hoverBorderColor:"hover:border-zinc-300",ringRolor:"ring-zinc-300",ringColor:"ring-zinc-300",hoverRingColor:"hover:ring-zinc-300",divideColor:"divide-zinc-300",outlineColor:"outline-zinc-300",focusRingColor:"focus:ring-zinc-300"},400:{bgColor:"bg-zinc-400",hoverBgColor:"hover:bg-zinc-400",textColor:"text-zinc-400",hoverTextColor:"hover:text-zinc-400",borderColor:"border-zinc-400",hoverBorderColor:"hover:border-zinc-400",ringRolor:"ring-zinc-400",ringColor:"ring-zinc-400",hoverRingColor:"hover:ring-zinc-400",divideColor:"divide-zinc-400",outlineColor:"outline-zinc-400",focusRingColor:"focus:ring-zinc-400"},500:{bgColor:"bg-zinc-500",hoverBgColor:"hover:bg-zinc-500",textColor:"text-zinc-500",hoverTextColor:"hover:text-zinc-500",borderColor:"border-zinc-500",hoverBorderColor:"hover:border-zinc-500",ringRolor:"ring-zinc-500",ringColor:"ring-zinc-500",hoverRingColor:"hover:ring-zinc-500",divideColor:"divide-zinc-500",outlineColor:"outline-zinc-500",focusRingColor:"focus:ring-zinc-500"},600:{bgColor:"bg-zinc-600",hoverBgColor:"hover:bg-zinc-600",textColor:"text-zinc-600",hoverTextColor:"hover:text-zinc-600",borderColor:"border-zinc-600",hoverBorderColor:"hover:border-zinc-600",ringRolor:"ring-zinc-600",ringColor:"ring-zinc-600",hoverRingColor:"hover:ring-zinc-600",divideColor:"divide-zinc-600",outlineColor:"outline-zinc-600",focusRingColor:"focus:ring-zinc-600"},700:{bgColor:"bg-zinc-700",hoverBgColor:"hover:bg-zinc-700",textColor:"text-zinc-700",hoverTextColor:"hover:text-zinc-700",borderColor:"border-zinc-700",hoverBorderColor:"hover:border-zinc-700",ringRolor:"ring-zinc-700",ringColor:"ring-zinc-700",hoverRingColor:"hover:ring-zinc-700",divideColor:"divide-zinc-700",outlineColor:"outline-zinc-700",focusRingColor:"focus:ring-zinc-700"},800:{bgColor:"bg-zinc-800",hoverBgColor:"hover:bg-zinc-800",textColor:"text-zinc-800",hoverTextColor:"hover:text-zinc-800",borderColor:"border-zinc-800",hoverBorderColor:"hover:border-zinc-800",ringRolor:"ring-zinc-800",ringColor:"ring-zinc-800",hoverRingColor:"hover:ring-zinc-800",divideColor:"divide-zinc-800",outlineColor:"outline-zinc-800",focusRingColor:"focus:ring-zinc-800"},900:{bgColor:"bg-zinc-900",hoverBgColor:"hover:bg-zinc-900",textColor:"text-zinc-900",hoverTextColor:"hover:text-zinc-900",borderColor:"border-zinc-900",hoverBorderColor:"hover:border-zinc-900",ringRolor:"ring-zinc-900",ringColor:"ring-zinc-900",hoverRingColor:"hover:ring-zinc-900",divideColor:"divide-zinc-900",outlineColor:"outline-zinc-900",focusRingColor:"focus:ring-zinc-900"}},neutral:{50:{bgColor:"bg-neutral-50",hoverBgColor:"hover:bg-neutral-50",textColor:"text-neutral-50",hoverTextColor:"hover:text-neutral-50",borderColor:"border-neutral-50",hoverBorderColor:"hover:border-neutral-50",ringRolor:"ring-neutral-50",ringColor:"ring-neutral-50",hoverRingColor:"hover:ring-neutral-50",divideColor:"divide-neutral-50",outlineColor:"outline-neutral-50",focusRingColor:"focus:ring-neutral-50"},100:{bgColor:"bg-neutral-100",hoverBgColor:"hover:bg-neutral-100",textColor:"text-neutral-100",hoverTextColor:"hover:text-neutral-100",borderColor:"border-neutral-100",hoverBorderColor:"hover:border-neutral-100",ringRolor:"ring-neutral-100",ringColor:"ring-neutral-100",hoverRingColor:"hover:ring-neutral-100",divideColor:"divide-neutral-100",outlineColor:"outline-neutral-100",focusRingColor:"focus:ring-neutral-100"},200:{bgColor:"bg-neutral-200",hoverBgColor:"hover:bg-neutral-200",textColor:"text-neutral-200",hoverTextColor:"hover:text-neutral-200",borderColor:"border-neutral-200",hoverBorderColor:"hover:border-neutral-200",ringRolor:"ring-neutral-200",ringColor:"ring-neutral-200",hoverRingColor:"hover:ring-neutral-200",divideColor:"divide-neutral-200",outlineColor:"outline-neutral-200",focusRingColor:"focus:ring-neutral-200"},300:{bgColor:"bg-neutral-300",hoverBgColor:"hover:bg-neutral-300",textColor:"text-neutral-300",hoverTextColor:"hover:text-neutral-300",borderColor:"border-neutral-300",hoverBorderColor:"hover:border-neutral-300",ringRolor:"ring-neutral-300",ringColor:"ring-neutral-300",hoverRingColor:"hover:ring-neutral-300",divideColor:"divide-neutral-300",outlineColor:"outline-neutral-300",focusRingColor:"focus:ring-neutral-300"},400:{bgColor:"bg-neutral-400",hoverBgColor:"hover:bg-neutral-400",textColor:"text-neutral-400",hoverTextColor:"hover:text-neutral-400",borderColor:"border-neutral-400",hoverBorderColor:"hover:border-neutral-400",ringRolor:"ring-neutral-400",ringColor:"ring-neutral-400",hoverRingColor:"hover:ring-neutral-400",divideColor:"divide-neutral-400",outlineColor:"outline-neutral-400",focusRingColor:"focus:ring-neutral-400"},500:{bgColor:"bg-neutral-500",hoverBgColor:"hover:bg-neutral-500",textColor:"text-neutral-500",hoverTextColor:"hover:text-neutral-500",borderColor:"border-neutral-500",hoverBorderColor:"hover:border-neutral-500",ringRolor:"ring-neutral-500",ringColor:"ring-neutral-500",hoverRingColor:"hover:ring-neutral-500",divideColor:"divide-neutral-500",outlineColor:"outline-neutral-500",focusRingColor:"focus:ring-neutral-500"},600:{bgColor:"bg-neutral-600",hoverBgColor:"hover:bg-neutral-600",textColor:"text-neutral-600",hoverTextColor:"hover:text-neutral-600",borderColor:"border-neutral-600",hoverBorderColor:"hover:border-neutral-600",ringRolor:"ring-neutral-600",ringColor:"ring-neutral-600",hoverRingColor:"hover:ring-neutral-600",divideColor:"divide-neutral-600",outlineColor:"outline-neutral-600",focusRingColor:"focus:ring-neutral-600"},700:{bgColor:"bg-neutral-700",hoverBgColor:"hover:bg-neutral-700",textColor:"text-neutral-700",hoverTextColor:"hover:text-neutral-700",borderColor:"border-neutral-700",hoverBorderColor:"hover:border-neutral-700",ringRolor:"ring-neutral-700",ringColor:"ring-neutral-700",hoverRingColor:"hover:ring-neutral-700",divideColor:"divide-neutral-700",outlineColor:"outline-neutral-700",focusRingColor:"focus:ring-neutral-700"},800:{bgColor:"bg-neutral-800",hoverBgColor:"hover:bg-neutral-800",textColor:"text-neutral-800",hoverTextColor:"hover:text-neutral-800",borderColor:"border-neutral-800",hoverBorderColor:"hover:border-neutral-800",ringRolor:"ring-neutral-800",ringColor:"ring-neutral-800",hoverRingColor:"hover:ring-neutral-800",divideColor:"divide-neutral-800",outlineColor:"outline-neutral-800",focusRingColor:"focus:ring-neutral-800"},900:{bgColor:"bg-neutral-900",hoverBgColor:"hover:bg-neutral-900",textColor:"text-neutral-900",hoverTextColor:"hover:text-neutral-900",borderColor:"border-neutral-900",hoverBorderColor:"hover:border-neutral-900",ringRolor:"ring-neutral-900",ringColor:"ring-neutral-900",hoverRingColor:"hover:ring-neutral-900",divideColor:"divide-neutral-900",outlineColor:"outline-neutral-900",focusRingColor:"focus:ring-neutral-900"}},stone:{50:{bgColor:"bg-stone-50",hoverBgColor:"hover:bg-stone-50",textColor:"text-stone-50",hoverTextColor:"hover:text-stone-50",borderColor:"border-stone-50",hoverBorderColor:"hover:border-stone-50",ringRolor:"ring-stone-50",ringColor:"ring-stone-50",hoverRingColor:"hover:ring-stone-50",divideColor:"divide-stone-50",outlineColor:"outline-stone-50",focusRingColor:"focus:ring-stone-50"},100:{bgColor:"bg-stone-100",hoverBgColor:"hover:bg-stone-100",textColor:"text-stone-100",hoverTextColor:"hover:text-stone-100",borderColor:"border-stone-100",hoverBorderColor:"hover:border-stone-100",ringRolor:"ring-stone-100",ringColor:"ring-stone-100",hoverRingColor:"hover:ring-stone-100",divideColor:"divide-stone-100",outlineColor:"outline-stone-100",focusRingColor:"focus:ring-stone-100"},200:{bgColor:"bg-stone-200",hoverBgColor:"hover:bg-stone-200",textColor:"text-stone-200",hoverTextColor:"hover:text-stone-200",borderColor:"border-stone-200",hoverBorderColor:"hover:border-stone-200",ringRolor:"ring-stone-200",ringColor:"ring-stone-200",hoverRingColor:"hover:ring-stone-200",divideColor:"divide-stone-200",outlineColor:"outline-stone-200",focusRingColor:"focus:ring-stone-200"},300:{bgColor:"bg-stone-300",hoverBgColor:"hover:bg-stone-300",textColor:"text-stone-300",hoverTextColor:"hover:text-stone-300",borderColor:"border-stone-300",hoverBorderColor:"hover:border-stone-300",ringRolor:"ring-stone-300",ringColor:"ring-stone-300",hoverRingColor:"hover:ring-stone-300",divideColor:"divide-stone-300",outlineColor:"outline-stone-300",focusRingColor:"focus:ring-stone-300"},400:{bgColor:"bg-stone-400",hoverBgColor:"hover:bg-stone-400",textColor:"text-stone-400",hoverTextColor:"hover:text-stone-400",borderColor:"border-stone-400",hoverBorderColor:"hover:border-stone-400",ringRolor:"ring-stone-400",ringColor:"ring-stone-400",hoverRingColor:"hover:ring-stone-400",divideColor:"divide-stone-400",outlineColor:"outline-stone-400",focusRingColor:"focus:ring-stone-400"},500:{bgColor:"bg-stone-500",hoverBgColor:"hover:bg-stone-500",textColor:"text-stone-500",hoverTextColor:"hover:text-stone-500",borderColor:"border-stone-500",hoverBorderColor:"hover:border-stone-500",ringRolor:"ring-stone-500",ringColor:"ring-stone-500",hoverRingColor:"hover:ring-stone-500",divideColor:"divide-stone-500",outlineColor:"outline-stone-500",focusRingColor:"focus:ring-stone-500"},600:{bgColor:"bg-stone-600",hoverBgColor:"hover:bg-stone-600",textColor:"text-stone-600",hoverTextColor:"hover:text-stone-600",borderColor:"border-stone-600",hoverBorderColor:"hover:border-stone-600",ringRolor:"ring-stone-600",ringColor:"ring-stone-600",hoverRingColor:"hover:ring-stone-600",divideColor:"divide-stone-600",outlineColor:"outline-stone-600",focusRingColor:"focus:ring-stone-600"},700:{bgColor:"bg-stone-700",hoverBgColor:"hover:bg-stone-700",textColor:"text-stone-700",hoverTextColor:"hover:text-stone-700",borderColor:"border-stone-700",hoverBorderColor:"hover:border-stone-700",ringRolor:"ring-stone-700",ringColor:"ring-stone-700",hoverRingColor:"hover:ring-stone-700",divideColor:"divide-stone-700",outlineColor:"outline-stone-700",focusRingColor:"focus:ring-stone-700"},800:{bgColor:"bg-stone-800",hoverBgColor:"hover:bg-stone-800",textColor:"text-stone-800",hoverTextColor:"hover:text-stone-800",borderColor:"border-stone-800",hoverBorderColor:"hover:border-stone-800",ringRolor:"ring-stone-800",ringColor:"ring-stone-800",hoverRingColor:"hover:ring-stone-800",divideColor:"divide-stone-800",outlineColor:"outline-stone-800",focusRingColor:"focus:ring-stone-800"},900:{bgColor:"bg-stone-900",hoverBgColor:"hover:bg-stone-900",textColor:"text-stone-900",hoverTextColor:"hover:text-stone-900",borderColor:"border-stone-900",hoverBorderColor:"hover:border-stone-900",ringRolor:"ring-stone-900",ringColor:"ring-stone-900",hoverRingColor:"hover:ring-stone-900",divideColor:"divide-stone-900",outlineColor:"outline-stone-900",focusRingColor:"focus:ring-stone-900"}},red:{50:{bgColor:"bg-red-50",hoverBgColor:"hover:bg-red-50",textColor:"text-red-50",hoverTextColor:"hover:text-red-50",borderColor:"border-red-50",hoverBorderColor:"hover:border-red-50",ringRolor:"ring-red-50",ringColor:"ring-red-50",hoverRingColor:"hover:ring-red-50",divideColor:"divide-red-50",outlineColor:"outline-red-50",focusRingColor:"focus:ring-red-50"},100:{bgColor:"bg-red-100",hoverBgColor:"hover:bg-red-100",textColor:"text-red-100",hoverTextColor:"hover:text-red-100",borderColor:"border-red-100",hoverBorderColor:"hover:border-red-100",ringRolor:"ring-red-100",ringColor:"ring-red-100",hoverRingColor:"hover:ring-red-100",divideColor:"divide-red-100",outlineColor:"outline-red-100",focusRingColor:"focus:ring-red-100"},200:{bgColor:"bg-red-200",hoverBgColor:"hover:bg-red-200",textColor:"text-red-200",hoverTextColor:"hover:text-red-200",borderColor:"border-red-200",hoverBorderColor:"hover:border-red-200",ringRolor:"ring-red-200",ringColor:"ring-red-200",hoverRingColor:"hover:ring-red-200",divideColor:"divide-red-200",outlineColor:"outline-red-200",focusRingColor:"focus:ring-red-200"},300:{bgColor:"bg-red-300",hoverBgColor:"hover:bg-red-300",textColor:"text-red-300",hoverTextColor:"hover:text-red-300",borderColor:"border-red-300",hoverBorderColor:"hover:border-red-300",ringRolor:"ring-red-300",ringColor:"ring-red-300",hoverRingColor:"hover:ring-red-300",divideColor:"divide-red-300",outlineColor:"outline-red-300",focusRingColor:"focus:ring-red-300"},400:{bgColor:"bg-red-400",hoverBgColor:"hover:bg-red-400",textColor:"text-red-400",hoverTextColor:"hover:text-red-400",borderColor:"border-red-400",hoverBorderColor:"hover:border-red-400",ringRolor:"ring-red-400",ringColor:"ring-red-400",hoverRingColor:"hover:ring-red-400",divideColor:"divide-red-400",outlineColor:"outline-red-400",focusRingColor:"focus:ring-red-400"},500:{bgColor:"bg-red-500",hoverBgColor:"hover:bg-red-500",textColor:"text-red-500",hoverTextColor:"hover:text-red-500",borderColor:"border-red-500",hoverBorderColor:"hover:border-red-500",ringRolor:"ring-red-500",ringColor:"ring-red-500",hoverRingColor:"hover:ring-red-500",divideColor:"divide-red-500",outlineColor:"outline-red-500",focusRingColor:"focus:ring-red-500"},600:{bgColor:"bg-red-600",hoverBgColor:"hover:bg-red-600",textColor:"text-red-600",hoverTextColor:"hover:text-red-600",borderColor:"border-red-600",hoverBorderColor:"hover:border-red-600",ringRolor:"ring-red-600",ringColor:"ring-red-600",hoverRingColor:"hover:ring-red-600",divideColor:"divide-red-600",outlineColor:"outline-red-600",focusRingColor:"focus:ring-red-600"},700:{bgColor:"bg-red-700",hoverBgColor:"hover:bg-red-700",textColor:"text-red-700",hoverTextColor:"hover:text-red-700",borderColor:"border-red-700",hoverBorderColor:"hover:border-red-700",ringRolor:"ring-red-700",ringColor:"ring-red-700",hoverRingColor:"hover:ring-red-700",divideColor:"divide-red-700",outlineColor:"outline-red-700",focusRingColor:"focus:ring-red-700"},800:{bgColor:"bg-red-800",hoverBgColor:"hover:bg-red-800",textColor:"text-red-800",hoverTextColor:"hover:text-red-800",borderColor:"border-red-800",hoverBorderColor:"hover:border-red-800",ringRolor:"ring-red-800",ringColor:"ring-red-800",hoverRingColor:"hover:ring-red-800",divideColor:"divide-red-800",outlineColor:"outline-red-800",focusRingColor:"focus:ring-red-800"},900:{bgColor:"bg-red-900",hoverBgColor:"hover:bg-red-900",textColor:"text-red-900",hoverTextColor:"hover:text-red-900",borderColor:"border-red-900",hoverBorderColor:"hover:border-red-900",ringRolor:"ring-red-900",ringColor:"ring-red-900",hoverRingColor:"hover:ring-red-900",divideColor:"divide-red-900",outlineColor:"outline-red-900",focusRingColor:"focus:ring-red-900"}},orange:{50:{bgColor:"bg-orange-50",hoverBgColor:"hover:bg-orange-50",textColor:"text-orange-50",hoverTextColor:"hover:text-orange-50",borderColor:"border-orange-50",hoverBorderColor:"hover:border-orange-50",ringRolor:"ring-orange-50",ringColor:"ring-orange-50",hoverRingColor:"hover:ring-orange-50",divideColor:"divide-orange-50",outlineColor:"outline-orange-50",focusRingColor:"focus:ring-orange-50"},100:{bgColor:"bg-orange-100",hoverBgColor:"hover:bg-orange-100",textColor:"text-orange-100",hoverTextColor:"hover:text-orange-100",borderColor:"border-orange-100",hoverBorderColor:"hover:border-orange-100",ringRolor:"ring-orange-100",ringColor:"ring-orange-100",hoverRingColor:"hover:ring-orange-100",divideColor:"divide-orange-100",outlineColor:"outline-orange-100",focusRingColor:"focus:ring-orange-100"},200:{bgColor:"bg-orange-200",hoverBgColor:"hover:bg-orange-200",textColor:"text-orange-200",hoverTextColor:"hover:text-orange-200",borderColor:"border-orange-200",hoverBorderColor:"hover:border-orange-200",ringRolor:"ring-orange-200",ringColor:"ring-orange-200",hoverRingColor:"hover:ring-orange-200",divideColor:"divide-orange-200",outlineColor:"outline-orange-200",focusRingColor:"focus:ring-orange-200"},300:{bgColor:"bg-orange-300",hoverBgColor:"hover:bg-orange-300",textColor:"text-orange-300",hoverTextColor:"hover:text-orange-300",borderColor:"border-orange-300",hoverBorderColor:"hover:border-orange-300",ringRolor:"ring-orange-300",ringColor:"ring-orange-300",hoverRingColor:"hover:ring-orange-300",divideColor:"divide-orange-300",outlineColor:"outline-orange-300",focusRingColor:"focus:ring-orange-300"},400:{bgColor:"bg-orange-400",hoverBgColor:"hover:bg-orange-400",textColor:"text-orange-400",hoverTextColor:"hover:text-orange-400",borderColor:"border-orange-400",hoverBorderColor:"hover:border-orange-400",ringRolor:"ring-orange-400",ringColor:"ring-orange-400",hoverRingColor:"hover:ring-orange-400",divideColor:"divide-orange-400",outlineColor:"outline-orange-400",focusRingColor:"focus:ring-orange-400"},500:{bgColor:"bg-orange-500",hoverBgColor:"hover:bg-orange-500",textColor:"text-orange-500",hoverTextColor:"hover:text-orange-500",borderColor:"border-orange-500",hoverBorderColor:"hover:border-orange-500",ringRolor:"ring-orange-500",ringColor:"ring-orange-500",hoverRingColor:"hover:ring-orange-500",divideColor:"divide-orange-500",outlineColor:"outline-orange-500",focusRingColor:"focus:ring-orange-500"},600:{bgColor:"bg-orange-600",hoverBgColor:"hover:bg-orange-600",textColor:"text-orange-600",hoverTextColor:"hover:text-orange-600",borderColor:"border-orange-600",hoverBorderColor:"hover:border-orange-600",ringRolor:"ring-orange-600",ringColor:"ring-orange-600",hoverRingColor:"hover:ring-orange-600",divideColor:"divide-orange-600",outlineColor:"outline-orange-600",focusRingColor:"focus:ring-orange-600"},700:{bgColor:"bg-orange-700",hoverBgColor:"hover:bg-orange-700",textColor:"text-orange-700",hoverTextColor:"hover:text-orange-700",borderColor:"border-orange-700",hoverBorderColor:"hover:border-orange-700",ringRolor:"ring-orange-700",ringColor:"ring-orange-700",hoverRingColor:"hover:ring-orange-700",divideColor:"divide-orange-700",outlineColor:"outline-orange-700",focusRingColor:"focus:ring-orange-700"},800:{bgColor:"bg-orange-800",hoverBgColor:"hover:bg-orange-800",textColor:"text-orange-800",hoverTextColor:"hover:text-orange-800",borderColor:"border-orange-800",hoverBorderColor:"hover:border-orange-800",ringRolor:"ring-orange-800",ringColor:"ring-orange-800",hoverRingColor:"hover:ring-orange-800",divideColor:"divide-orange-800",outlineColor:"outline-orange-800",focusRingColor:"focus:ring-orange-800"},900:{bgColor:"bg-orange-900",hoverBgColor:"hover:bg-orange-900",textColor:"text-orange-900",hoverTextColor:"hover:text-orange-900",borderColor:"border-orange-900",hoverBorderColor:"hover:border-orange-900",ringRolor:"ring-orange-900",ringColor:"ring-orange-900",hoverRingColor:"hover:ring-orange-900",divideColor:"divide-orange-900",outlineColor:"outline-orange-900",focusRingColor:"focus:ring-orange-900"}},amber:{50:{bgColor:"bg-amber-50",hoverBgColor:"hover:bg-amber-50",textColor:"text-amber-50",hoverTextColor:"hover:text-amber-50",borderColor:"border-amber-50",hoverBorderColor:"hover:border-amber-50",ringRolor:"ring-amber-50",ringColor:"ring-amber-50",hoverRingColor:"hover:ring-amber-50",divideColor:"divide-amber-50",outlineColor:"outline-amber-50",focusRingColor:"focus:ring-amber-50"},100:{bgColor:"bg-amber-100",hoverBgColor:"hover:bg-amber-100",textColor:"text-amber-100",hoverTextColor:"hover:text-amber-100",borderColor:"border-amber-100",hoverBorderColor:"hover:border-amber-100",ringRolor:"ring-amber-100",ringColor:"ring-amber-100",hoverRingColor:"hover:ring-amber-100",divideColor:"divide-amber-100",outlineColor:"outline-amber-100",focusRingColor:"focus:ring-amber-100"},200:{bgColor:"bg-amber-200",hoverBgColor:"hover:bg-amber-200",textColor:"text-amber-200",hoverTextColor:"hover:text-amber-200",borderColor:"border-amber-200",hoverBorderColor:"hover:border-amber-200",ringRolor:"ring-amber-200",ringColor:"ring-amber-200",hoverRingColor:"hover:ring-amber-200",divideColor:"divide-amber-200",outlineColor:"outline-amber-200",focusRingColor:"focus:ring-amber-200"},300:{bgColor:"bg-amber-300",hoverBgColor:"hover:bg-amber-300",textColor:"text-amber-300",hoverTextColor:"hover:text-amber-300",borderColor:"border-amber-300",hoverBorderColor:"hover:border-amber-300",ringRolor:"ring-amber-300",ringColor:"ring-amber-300",hoverRingColor:"hover:ring-amber-300",divideColor:"divide-amber-300",outlineColor:"outline-amber-300",focusRingColor:"focus:ring-amber-300"},400:{bgColor:"bg-amber-400",hoverBgColor:"hover:bg-amber-400",textColor:"text-amber-400",hoverTextColor:"hover:text-amber-400",borderColor:"border-amber-400",hoverBorderColor:"hover:border-amber-400",ringRolor:"ring-amber-400",ringColor:"ring-amber-400",hoverRingColor:"hover:ring-amber-400",divideColor:"divide-amber-400",outlineColor:"outline-amber-400",focusRingColor:"focus:ring-amber-400"},500:{bgColor:"bg-amber-500",hoverBgColor:"hover:bg-amber-500",textColor:"text-amber-500",hoverTextColor:"hover:text-amber-500",borderColor:"border-amber-500",hoverBorderColor:"hover:border-amber-500",ringRolor:"ring-amber-500",ringColor:"ring-amber-500",hoverRingColor:"hover:ring-amber-500",divideColor:"divide-amber-500",outlineColor:"outline-amber-500",focusRingColor:"focus:ring-amber-500"},600:{bgColor:"bg-amber-600",hoverBgColor:"hover:bg-amber-600",textColor:"text-amber-600",hoverTextColor:"hover:text-amber-600",borderColor:"border-amber-600",hoverBorderColor:"hover:border-amber-600",ringRolor:"ring-amber-600",ringColor:"ring-amber-600",hoverRingColor:"hover:ring-amber-600",divideColor:"divide-amber-600",outlineColor:"outline-amber-600",focusRingColor:"focus:ring-amber-600"},700:{bgColor:"bg-amber-700",hoverBgColor:"hover:bg-amber-700",textColor:"text-amber-700",hoverTextColor:"hover:text-amber-700",borderColor:"border-amber-700",hoverBorderColor:"hover:border-amber-700",ringRolor:"ring-amber-700",ringColor:"ring-amber-700",hoverRingColor:"hover:ring-amber-700",divideColor:"divide-amber-700",outlineColor:"outline-amber-700",focusRingColor:"focus:ring-amber-700"},800:{bgColor:"bg-amber-800",hoverBgColor:"hover:bg-amber-800",textColor:"text-amber-800",hoverTextColor:"hover:text-amber-800",borderColor:"border-amber-800",hoverBorderColor:"hover:border-amber-800",ringRolor:"ring-amber-800",ringColor:"ring-amber-800",hoverRingColor:"hover:ring-amber-800",divideColor:"divide-amber-800",outlineColor:"outline-amber-800",focusRingColor:"focus:ring-amber-800"},900:{bgColor:"bg-amber-900",hoverBgColor:"hover:bg-amber-900",textColor:"text-amber-900",hoverTextColor:"hover:text-amber-900",borderColor:"border-amber-900",hoverBorderColor:"hover:border-amber-900",ringRolor:"ring-amber-900",ringColor:"ring-amber-900",hoverRingColor:"hover:ring-amber-900",divideColor:"divide-amber-900",outlineColor:"outline-amber-900",focusRingColor:"focus:ring-amber-900"}},yellow:{50:{bgColor:"bg-yellow-50",hoverBgColor:"hover:bg-yellow-50",textColor:"text-yellow-50",hoverTextColor:"hover:text-yellow-50",borderColor:"border-yellow-50",hoverBorderColor:"hover:border-yellow-50",ringRolor:"ring-yellow-50",ringColor:"ring-yellow-50",hoverRingColor:"hover:ring-yellow-50",divideColor:"divide-yellow-50",outlineColor:"outline-yellow-50",focusRingColor:"focus:ring-yellow-50"},100:{bgColor:"bg-yellow-100",hoverBgColor:"hover:bg-yellow-100",textColor:"text-yellow-100",hoverTextColor:"hover:text-yellow-100",borderColor:"border-yellow-100",hoverBorderColor:"hover:border-yellow-100",ringRolor:"ring-yellow-100",ringColor:"ring-yellow-100",hoverRingColor:"hover:ring-yellow-100",divideColor:"divide-yellow-100",outlineColor:"outline-yellow-100",focusRingColor:"focus:ring-yellow-100"},200:{bgColor:"bg-yellow-200",hoverBgColor:"hover:bg-yellow-200",textColor:"text-yellow-200",hoverTextColor:"hover:text-yellow-200",borderColor:"border-yellow-200",hoverBorderColor:"hover:border-yellow-200",ringRolor:"ring-yellow-200",ringColor:"ring-yellow-200",hoverRingColor:"hover:ring-yellow-200",divideColor:"divide-yellow-200",outlineColor:"outline-yellow-200",focusRingColor:"focus:ring-yellow-200"},300:{bgColor:"bg-yellow-300",hoverBgColor:"hover:bg-yellow-300",textColor:"text-yellow-300",hoverTextColor:"hover:text-yellow-300",borderColor:"border-yellow-300",hoverBorderColor:"hover:border-yellow-300",ringRolor:"ring-yellow-300",ringColor:"ring-yellow-300",hoverRingColor:"hover:ring-yellow-300",divideColor:"divide-yellow-300",outlineColor:"outline-yellow-300",focusRingColor:"focus:ring-yellow-300"},400:{bgColor:"bg-yellow-400",hoverBgColor:"hover:bg-yellow-400",textColor:"text-yellow-400",hoverTextColor:"hover:text-yellow-400",borderColor:"border-yellow-400",hoverBorderColor:"hover:border-yellow-400",ringRolor:"ring-yellow-400",ringColor:"ring-yellow-400",hoverRingColor:"hover:ring-yellow-400",divideColor:"divide-yellow-400",outlineColor:"outline-yellow-400",focusRingColor:"focus:ring-yellow-400"},500:{bgColor:"bg-yellow-500",hoverBgColor:"hover:bg-yellow-500",textColor:"text-yellow-500",hoverTextColor:"hover:text-yellow-500",borderColor:"border-yellow-500",hoverBorderColor:"hover:border-yellow-500",ringRolor:"ring-yellow-500",ringColor:"ring-yellow-500",hoverRingColor:"hover:ring-yellow-500",divideColor:"divide-yellow-500",outlineColor:"outline-yellow-500",focusRingColor:"focus:ring-yellow-500"},600:{bgColor:"bg-yellow-600",hoverBgColor:"hover:bg-yellow-600",textColor:"text-yellow-600",hoverTextColor:"hover:text-yellow-600",borderColor:"border-yellow-600",hoverBorderColor:"hover:border-yellow-600",ringRolor:"ring-yellow-600",ringColor:"ring-yellow-600",hoverRingColor:"hover:ring-yellow-600",divideColor:"divide-yellow-600",outlineColor:"outline-yellow-600",focusRingColor:"focus:ring-yellow-600"},700:{bgColor:"bg-yellow-700",hoverBgColor:"hover:bg-yellow-700",textColor:"text-yellow-700",hoverTextColor:"hover:text-yellow-700",borderColor:"border-yellow-700",hoverBorderColor:"hover:border-yellow-700",ringRolor:"ring-yellow-700",ringColor:"ring-yellow-700",hoverRingColor:"hover:ring-yellow-700",divideColor:"divide-yellow-700",outlineColor:"outline-yellow-700",focusRingColor:"focus:ring-yellow-700"},800:{bgColor:"bg-yellow-800",hoverBgColor:"hover:bg-yellow-800",textColor:"text-yellow-800",hoverTextColor:"hover:text-yellow-800",borderColor:"border-yellow-800",hoverBorderColor:"hover:border-yellow-800",ringRolor:"ring-yellow-800",ringColor:"ring-yellow-800",hoverRingColor:"hover:ring-yellow-800",divideColor:"divide-yellow-800",outlineColor:"outline-yellow-800",focusRingColor:"focus:ring-yellow-800"},900:{bgColor:"bg-yellow-900",hoverBgColor:"hover:bg-yellow-900",textColor:"text-yellow-900",hoverTextColor:"hover:text-yellow-900",borderColor:"border-yellow-900",hoverBorderColor:"hover:border-yellow-900",ringRolor:"ring-yellow-900",ringColor:"ring-yellow-900",hoverRingColor:"hover:ring-yellow-900",divideColor:"divide-yellow-900",outlineColor:"outline-yellow-900",focusRingColor:"focus:ring-yellow-900"}},lime:{50:{bgColor:"bg-lime-50",hoverBgColor:"hover:bg-lime-50",textColor:"text-lime-50",hoverTextColor:"hover:text-lime-50",borderColor:"border-lime-50",hoverBorderColor:"hover:border-lime-50",ringRolor:"ring-lime-50",ringColor:"ring-lime-50",hoverRingColor:"hover:ring-lime-50",divideColor:"divide-lime-50",outlineColor:"outline-lime-50",focusRingColor:"focus:ring-lime-50"},100:{bgColor:"bg-lime-100",hoverBgColor:"hover:bg-lime-100",textColor:"text-lime-100",hoverTextColor:"hover:text-lime-100",borderColor:"border-lime-100",hoverBorderColor:"hover:border-lime-100",ringRolor:"ring-lime-100",ringColor:"ring-lime-100",hoverRingColor:"hover:ring-lime-100",divideColor:"divide-lime-100",outlineColor:"outline-lime-100",focusRingColor:"focus:ring-lime-100"},200:{bgColor:"bg-lime-200",hoverBgColor:"hover:bg-lime-200",textColor:"text-lime-200",hoverTextColor:"hover:text-lime-200",borderColor:"border-lime-200",hoverBorderColor:"hover:border-lime-200",ringRolor:"ring-lime-200",ringColor:"ring-lime-200",hoverRingColor:"hover:ring-lime-200",divideColor:"divide-lime-200",outlineColor:"outline-lime-200",focusRingColor:"focus:ring-lime-200"},300:{bgColor:"bg-lime-300",hoverBgColor:"hover:bg-lime-300",textColor:"text-lime-300",hoverTextColor:"hover:text-lime-300",borderColor:"border-lime-300",hoverBorderColor:"hover:border-lime-300",ringRolor:"ring-lime-300",ringColor:"ring-lime-300",hoverRingColor:"hover:ring-lime-300",divideColor:"divide-lime-300",outlineColor:"outline-lime-300",focusRingColor:"focus:ring-lime-300"},400:{bgColor:"bg-lime-400",hoverBgColor:"hover:bg-lime-400",textColor:"text-lime-400",hoverTextColor:"hover:text-lime-400",borderColor:"border-lime-400",hoverBorderColor:"hover:border-lime-400",ringRolor:"ring-lime-400",ringColor:"ring-lime-400",hoverRingColor:"hover:ring-lime-400",divideColor:"divide-lime-400",outlineColor:"outline-lime-400",focusRingColor:"focus:ring-lime-400"},500:{bgColor:"bg-lime-500",hoverBgColor:"hover:bg-lime-500",textColor:"text-lime-500",hoverTextColor:"hover:text-lime-500",borderColor:"border-lime-500",hoverBorderColor:"hover:border-lime-500",ringRolor:"ring-lime-500",ringColor:"ring-lime-500",hoverRingColor:"hover:ring-lime-500",divideColor:"divide-lime-500",outlineColor:"outline-lime-500",focusRingColor:"focus:ring-lime-500"},600:{bgColor:"bg-lime-600",hoverBgColor:"hover:bg-lime-600",textColor:"text-lime-600",hoverTextColor:"hover:text-lime-600",borderColor:"border-lime-600",hoverBorderColor:"hover:border-lime-600",ringRolor:"ring-lime-600",ringColor:"ring-lime-600",hoverRingColor:"hover:ring-lime-600",divideColor:"divide-lime-600",outlineColor:"outline-lime-600",focusRingColor:"focus:ring-lime-600"},700:{bgColor:"bg-lime-700",hoverBgColor:"hover:bg-lime-700",textColor:"text-lime-700",hoverTextColor:"hover:text-lime-700",borderColor:"border-lime-700",hoverBorderColor:"hover:border-lime-700",ringRolor:"ring-lime-700",ringColor:"ring-lime-700",hoverRingColor:"hover:ring-lime-700",divideColor:"divide-lime-700",outlineColor:"outline-lime-700",focusRingColor:"focus:ring-lime-700"},800:{bgColor:"bg-lime-800",hoverBgColor:"hover:bg-lime-800",textColor:"text-lime-800",hoverTextColor:"hover:text-lime-800",borderColor:"border-lime-800",hoverBorderColor:"hover:border-lime-800",ringRolor:"ring-lime-800",ringColor:"ring-lime-800",hoverRingColor:"hover:ring-lime-800",divideColor:"divide-lime-800",outlineColor:"outline-lime-800",focusRingColor:"focus:ring-lime-800"},900:{bgColor:"bg-lime-900",hoverBgColor:"hover:bg-lime-900",textColor:"text-lime-900",hoverTextColor:"hover:text-lime-900",borderColor:"border-lime-900",hoverBorderColor:"hover:border-lime-900",ringRolor:"ring-lime-900",ringColor:"ring-lime-900",hoverRingColor:"hover:ring-lime-900",divideColor:"divide-lime-900",outlineColor:"outline-lime-900",focusRingColor:"focus:ring-lime-900"}},green:{50:{bgColor:"bg-green-50",hoverBgColor:"hover:bg-green-50",textColor:"text-green-50",hoverTextColor:"hover:text-green-50",borderColor:"border-green-50",hoverBorderColor:"hover:border-green-50",ringRolor:"ring-green-50",ringColor:"ring-green-50",hoverRingColor:"hover:ring-green-50",divideColor:"divide-green-50",outlineColor:"outline-green-50",focusRingColor:"focus:ring-green-50"},100:{bgColor:"bg-green-100",hoverBgColor:"hover:bg-green-100",textColor:"text-green-100",hoverTextColor:"hover:text-green-100",borderColor:"border-green-100",hoverBorderColor:"hover:border-green-100",ringRolor:"ring-green-100",ringColor:"ring-green-100",hoverRingColor:"hover:ring-green-100",divideColor:"divide-green-100",outlineColor:"outline-green-100",focusRingColor:"focus:ring-green-100"},200:{bgColor:"bg-green-200",hoverBgColor:"hover:bg-green-200",textColor:"text-green-200",hoverTextColor:"hover:text-green-200",borderColor:"border-green-200",hoverBorderColor:"hover:border-green-200",ringRolor:"ring-green-200",ringColor:"ring-green-200",hoverRingColor:"hover:ring-green-200",divideColor:"divide-green-200",outlineColor:"outline-green-200",focusRingColor:"focus:ring-green-200"},300:{bgColor:"bg-green-300",hoverBgColor:"hover:bg-green-300",textColor:"text-green-300",hoverTextColor:"hover:text-green-300",borderColor:"border-green-300",hoverBorderColor:"hover:border-green-300",ringRolor:"ring-green-300",ringColor:"ring-green-300",hoverRingColor:"hover:ring-green-300",divideColor:"divide-green-300",outlineColor:"outline-green-300",focusRingColor:"focus:ring-green-300"},400:{bgColor:"bg-green-400",hoverBgColor:"hover:bg-green-400",textColor:"text-green-400",hoverTextColor:"hover:text-green-400",borderColor:"border-green-400",hoverBorderColor:"hover:border-green-400",ringRolor:"ring-green-400",ringColor:"ring-green-400",hoverRingColor:"hover:ring-green-400",divideColor:"divide-green-400",outlineColor:"outline-green-400",focusRingColor:"focus:ring-green-400"},500:{bgColor:"bg-green-500",hoverBgColor:"hover:bg-green-500",textColor:"text-green-500",hoverTextColor:"hover:text-green-500",borderColor:"border-green-500",hoverBorderColor:"hover:border-green-500",ringRolor:"ring-green-500",ringColor:"ring-green-500",hoverRingColor:"hover:ring-green-500",divideColor:"divide-green-500",outlineColor:"outline-green-500",focusRingColor:"focus:ring-green-500"},600:{bgColor:"bg-green-600",hoverBgColor:"hover:bg-green-600",textColor:"text-green-600",hoverTextColor:"hover:text-green-600",borderColor:"border-green-600",hoverBorderColor:"hover:border-green-600",ringRolor:"ring-green-600",ringColor:"ring-green-600",hoverRingColor:"hover:ring-green-600",divideColor:"divide-green-600",outlineColor:"outline-green-600",focusRingColor:"focus:ring-green-600"},700:{bgColor:"bg-green-700",hoverBgColor:"hover:bg-green-700",textColor:"text-green-700",hoverTextColor:"hover:text-green-700",borderColor:"border-green-700",hoverBorderColor:"hover:border-green-700",ringRolor:"ring-green-700",ringColor:"ring-green-700",hoverRingColor:"hover:ring-green-700",divideColor:"divide-green-700",outlineColor:"outline-green-700",focusRingColor:"focus:ring-green-700"},800:{bgColor:"bg-green-800",hoverBgColor:"hover:bg-green-800",textColor:"text-green-800",hoverTextColor:"hover:text-green-800",borderColor:"border-green-800",hoverBorderColor:"hover:border-green-800",ringRolor:"ring-green-800",ringColor:"ring-green-800",hoverRingColor:"hover:ring-green-800",divideColor:"divide-green-800",outlineColor:"outline-green-800",focusRingColor:"focus:ring-green-800"},900:{bgColor:"bg-green-900",hoverBgColor:"hover:bg-green-900",textColor:"text-green-900",hoverTextColor:"hover:text-green-900",borderColor:"border-green-900",hoverBorderColor:"hover:border-green-900",ringRolor:"ring-green-900",ringColor:"ring-green-900",hoverRingColor:"hover:ring-green-900",divideColor:"divide-green-900",outlineColor:"outline-green-900",focusRingColor:"focus:ring-green-900"}},emerald:{50:{bgColor:"bg-emerald-50",hoverBgColor:"hover:bg-emerald-50",textColor:"text-emerald-50",hoverTextColor:"hover:text-emerald-50",borderColor:"border-emerald-50",hoverBorderColor:"hover:border-emerald-50",ringRolor:"ring-emerald-50",ringColor:"ring-emerald-50",hoverRingColor:"hover:ring-emerald-50",divideColor:"divide-emerald-50",outlineColor:"outline-emerald-50",focusRingColor:"focus:ring-emerald-50"},100:{bgColor:"bg-emerald-100",hoverBgColor:"hover:bg-emerald-100",textColor:"text-emerald-100",hoverTextColor:"hover:text-emerald-100",borderColor:"border-emerald-100",hoverBorderColor:"hover:border-emerald-100",ringRolor:"ring-emerald-100",ringColor:"ring-emerald-100",hoverRingColor:"hover:ring-emerald-100",divideColor:"divide-emerald-100",outlineColor:"outline-emerald-100",focusRingColor:"focus:ring-emerald-100"},200:{bgColor:"bg-emerald-200",hoverBgColor:"hover:bg-emerald-200",textColor:"text-emerald-200",hoverTextColor:"hover:text-emerald-200",borderColor:"border-emerald-200",hoverBorderColor:"hover:border-emerald-200",ringRolor:"ring-emerald-200",ringColor:"ring-emerald-200",hoverRingColor:"hover:ring-emerald-200",divideColor:"divide-emerald-200",outlineColor:"outline-emerald-200",focusRingColor:"focus:ring-emerald-200"},300:{bgColor:"bg-emerald-300",hoverBgColor:"hover:bg-emerald-300",textColor:"text-emerald-300",hoverTextColor:"hover:text-emerald-300",borderColor:"border-emerald-300",hoverBorderColor:"hover:border-emerald-300",ringRolor:"ring-emerald-300",ringColor:"ring-emerald-300",hoverRingColor:"hover:ring-emerald-300",divideColor:"divide-emerald-300",outlineColor:"outline-emerald-300",focusRingColor:"focus:ring-emerald-300"},400:{bgColor:"bg-emerald-400",hoverBgColor:"hover:bg-emerald-400",textColor:"text-emerald-400",hoverTextColor:"hover:text-emerald-400",borderColor:"border-emerald-400",hoverBorderColor:"hover:border-emerald-400",ringRolor:"ring-emerald-400",ringColor:"ring-emerald-400",hoverRingColor:"hover:ring-emerald-400",divideColor:"divide-emerald-400",outlineColor:"outline-emerald-400",focusRingColor:"focus:ring-emerald-400"},500:{bgColor:"bg-emerald-500",hoverBgColor:"hover:bg-emerald-500",textColor:"text-emerald-500",hoverTextColor:"hover:text-emerald-500",borderColor:"border-emerald-500",hoverBorderColor:"hover:border-emerald-500",ringRolor:"ring-emerald-500",ringColor:"ring-emerald-500",hoverRingColor:"hover:ring-emerald-500",divideColor:"divide-emerald-500",outlineColor:"outline-emerald-500",focusRingColor:"focus:ring-emerald-500"},600:{bgColor:"bg-emerald-600",hoverBgColor:"hover:bg-emerald-600",textColor:"text-emerald-600",hoverTextColor:"hover:text-emerald-600",borderColor:"border-emerald-600",hoverBorderColor:"hover:border-emerald-600",ringRolor:"ring-emerald-600",ringColor:"ring-emerald-600",hoverRingColor:"hover:ring-emerald-600",divideColor:"divide-emerald-600",outlineColor:"outline-emerald-600",focusRingColor:"focus:ring-emerald-600"},700:{bgColor:"bg-emerald-700",hoverBgColor:"hover:bg-emerald-700",textColor:"text-emerald-700",hoverTextColor:"hover:text-emerald-700",borderColor:"border-emerald-700",hoverBorderColor:"hover:border-emerald-700",ringRolor:"ring-emerald-700",ringColor:"ring-emerald-700",hoverRingColor:"hover:ring-emerald-700",divideColor:"divide-emerald-700",outlineColor:"outline-emerald-700",focusRingColor:"focus:ring-emerald-700"},800:{bgColor:"bg-emerald-800",hoverBgColor:"hover:bg-emerald-800",textColor:"text-emerald-800",hoverTextColor:"hover:text-emerald-800",borderColor:"border-emerald-800",hoverBorderColor:"hover:border-emerald-800",ringRolor:"ring-emerald-800",ringColor:"ring-emerald-800",hoverRingColor:"hover:ring-emerald-800",divideColor:"divide-emerald-800",outlineColor:"outline-emerald-800",focusRingColor:"focus:ring-emerald-800"},900:{bgColor:"bg-emerald-900",hoverBgColor:"hover:bg-emerald-900",textColor:"text-emerald-900",hoverTextColor:"hover:text-emerald-900",borderColor:"border-emerald-900",hoverBorderColor:"hover:border-emerald-900",ringRolor:"ring-emerald-900",ringColor:"ring-emerald-900",hoverRingColor:"hover:ring-emerald-900",divideColor:"divide-emerald-900",outlineColor:"outline-emerald-900",focusRingColor:"focus:ring-emerald-900"}},teal:{50:{bgColor:"bg-teal-50",hoverBgColor:"hover:bg-teal-50",textColor:"text-teal-50",hoverTextColor:"hover:text-teal-50",borderColor:"border-teal-50",hoverBorderColor:"hover:border-teal-50",ringRolor:"ring-teal-50",ringColor:"ring-teal-50",hoverRingColor:"hover:ring-teal-50",divideColor:"divide-teal-50",outlineColor:"outline-teal-50",focusRingColor:"focus:ring-teal-50"},100:{bgColor:"bg-teal-100",hoverBgColor:"hover:bg-teal-100",textColor:"text-teal-100",hoverTextColor:"hover:text-teal-100",borderColor:"border-teal-100",hoverBorderColor:"hover:border-teal-100",ringRolor:"ring-teal-100",ringColor:"ring-teal-100",hoverRingColor:"hover:ring-teal-100",divideColor:"divide-teal-100",outlineColor:"outline-teal-100",focusRingColor:"focus:ring-teal-100"},200:{bgColor:"bg-teal-200",hoverBgColor:"hover:bg-teal-200",textColor:"text-teal-200",hoverTextColor:"hover:text-teal-200",borderColor:"border-teal-200",hoverBorderColor:"hover:border-teal-200",ringRolor:"ring-teal-200",ringColor:"ring-teal-200",hoverRingColor:"hover:ring-teal-200",divideColor:"divide-teal-200",outlineColor:"outline-teal-200",focusRingColor:"focus:ring-teal-200"},300:{bgColor:"bg-teal-300",hoverBgColor:"hover:bg-teal-300",textColor:"text-teal-300",hoverTextColor:"hover:text-teal-300",borderColor:"border-teal-300",hoverBorderColor:"hover:border-teal-300",ringRolor:"ring-teal-300",ringColor:"ring-teal-300",hoverRingColor:"hover:ring-teal-300",divideColor:"divide-teal-300",outlineColor:"outline-teal-300",focusRingColor:"focus:ring-teal-300"},400:{bgColor:"bg-teal-400",hoverBgColor:"hover:bg-teal-400",textColor:"text-teal-400",hoverTextColor:"hover:text-teal-400",borderColor:"border-teal-400",hoverBorderColor:"hover:border-teal-400",ringRolor:"ring-teal-400",ringColor:"ring-teal-400",hoverRingColor:"hover:ring-teal-400",divideColor:"divide-teal-400",outlineColor:"outline-teal-400",focusRingColor:"focus:ring-teal-400"},500:{bgColor:"bg-teal-500",hoverBgColor:"hover:bg-teal-500",textColor:"text-teal-500",hoverTextColor:"hover:text-teal-500",borderColor:"border-teal-500",hoverBorderColor:"hover:border-teal-500",ringRolor:"ring-teal-500",ringColor:"ring-teal-500",hoverRingColor:"hover:ring-teal-500",divideColor:"divide-teal-500",outlineColor:"outline-teal-500",focusRingColor:"focus:ring-teal-500"},600:{bgColor:"bg-teal-600",hoverBgColor:"hover:bg-teal-600",textColor:"text-teal-600",hoverTextColor:"hover:text-teal-600",borderColor:"border-teal-600",hoverBorderColor:"hover:border-teal-600",ringRolor:"ring-teal-600",ringColor:"ring-teal-600",hoverRingColor:"hover:ring-teal-600",divideColor:"divide-teal-600",outlineColor:"outline-teal-600",focusRingColor:"focus:ring-teal-600"},700:{bgColor:"bg-teal-700",hoverBgColor:"hover:bg-teal-700",textColor:"text-teal-700",hoverTextColor:"hover:text-teal-700",borderColor:"border-teal-700",hoverBorderColor:"hover:border-teal-700",ringRolor:"ring-teal-700",ringColor:"ring-teal-700",hoverRingColor:"hover:ring-teal-700",divideColor:"divide-teal-700",outlineColor:"outline-teal-700",focusRingColor:"focus:ring-teal-700"},800:{bgColor:"bg-teal-800",hoverBgColor:"hover:bg-teal-800",textColor:"text-teal-800",hoverTextColor:"hover:text-teal-800",borderColor:"border-teal-800",hoverBorderColor:"hover:border-teal-800",ringRolor:"ring-teal-800",ringColor:"ring-teal-800",hoverRingColor:"hover:ring-teal-800",divideColor:"divide-teal-800",outlineColor:"outline-teal-800",focusRingColor:"focus:ring-teal-800"},900:{bgColor:"bg-teal-900",hoverBgColor:"hover:bg-teal-900",textColor:"text-teal-900",hoverTextColor:"hover:text-teal-900",borderColor:"border-teal-900",hoverBorderColor:"hover:border-teal-900",ringRolor:"ring-teal-900",ringColor:"ring-teal-900",hoverRingColor:"hover:ring-teal-900",divideColor:"divide-teal-900",outlineColor:"outline-teal-900",focusRingColor:"focus:ring-teal-900"}},cyan:{50:{bgColor:"bg-cyan-50",hoverBgColor:"hover:bg-cyan-50",textColor:"text-cyan-50",hoverTextColor:"hover:text-cyan-50",borderColor:"border-cyan-50",hoverBorderColor:"hover:border-cyan-50",ringRolor:"ring-cyan-50",ringColor:"ring-cyan-50",hoverRingColor:"hover:ring-cyan-50",divideColor:"divide-cyan-50",outlineColor:"outline-cyan-50",focusRingColor:"focus:ring-cyan-50"},100:{bgColor:"bg-cyan-100",hoverBgColor:"hover:bg-cyan-100",textColor:"text-cyan-100",hoverTextColor:"hover:text-cyan-100",borderColor:"border-cyan-100",hoverBorderColor:"hover:border-cyan-100",ringRolor:"ring-cyan-100",ringColor:"ring-cyan-100",hoverRingColor:"hover:ring-cyan-100",divideColor:"divide-cyan-100",outlineColor:"outline-cyan-100",focusRingColor:"focus:ring-cyan-100"},200:{bgColor:"bg-cyan-200",hoverBgColor:"hover:bg-cyan-200",textColor:"text-cyan-200",hoverTextColor:"hover:text-cyan-200",borderColor:"border-cyan-200",hoverBorderColor:"hover:border-cyan-200",ringRolor:"ring-cyan-200",ringColor:"ring-cyan-200",hoverRingColor:"hover:ring-cyan-200",divideColor:"divide-cyan-200",outlineColor:"outline-cyan-200",focusRingColor:"focus:ring-cyan-200"},300:{bgColor:"bg-cyan-300",hoverBgColor:"hover:bg-cyan-300",textColor:"text-cyan-300",hoverTextColor:"hover:text-cyan-300",borderColor:"border-cyan-300",hoverBorderColor:"hover:border-cyan-300",ringRolor:"ring-cyan-300",ringColor:"ring-cyan-300",hoverRingColor:"hover:ring-cyan-300",divideColor:"divide-cyan-300",outlineColor:"outline-cyan-300",focusRingColor:"focus:ring-cyan-300"},400:{bgColor:"bg-cyan-400",hoverBgColor:"hover:bg-cyan-400",textColor:"text-cyan-400",hoverTextColor:"hover:text-cyan-400",borderColor:"border-cyan-400",hoverBorderColor:"hover:border-cyan-400",ringRolor:"ring-cyan-400",ringColor:"ring-cyan-400",hoverRingColor:"hover:ring-cyan-400",divideColor:"divide-cyan-400",outlineColor:"outline-cyan-400",focusRingColor:"focus:ring-cyan-400"},500:{bgColor:"bg-cyan-500",hoverBgColor:"hover:bg-cyan-500",textColor:"text-cyan-500",hoverTextColor:"hover:text-cyan-500",borderColor:"border-cyan-500",hoverBorderColor:"hover:border-cyan-500",ringRolor:"ring-cyan-500",ringColor:"ring-cyan-500",hoverRingColor:"hover:ring-cyan-500",divideColor:"divide-cyan-500",outlineColor:"outline-cyan-500",focusRingColor:"focus:ring-cyan-500"},600:{bgColor:"bg-cyan-600",hoverBgColor:"hover:bg-cyan-600",textColor:"text-cyan-600",hoverTextColor:"hover:text-cyan-600",borderColor:"border-cyan-600",hoverBorderColor:"hover:border-cyan-600",ringRolor:"ring-cyan-600",ringColor:"ring-cyan-600",hoverRingColor:"hover:ring-cyan-600",divideColor:"divide-cyan-600",outlineColor:"outline-cyan-600",focusRingColor:"focus:ring-cyan-600"},700:{bgColor:"bg-cyan-700",hoverBgColor:"hover:bg-cyan-700",textColor:"text-cyan-700",hoverTextColor:"hover:text-cyan-700",borderColor:"border-cyan-700",hoverBorderColor:"hover:border-cyan-700",ringRolor:"ring-cyan-700",ringColor:"ring-cyan-700",hoverRingColor:"hover:ring-cyan-700",divideColor:"divide-cyan-700",outlineColor:"outline-cyan-700",focusRingColor:"focus:ring-cyan-700"},800:{bgColor:"bg-cyan-800",hoverBgColor:"hover:bg-cyan-800",textColor:"text-cyan-800",hoverTextColor:"hover:text-cyan-800",borderColor:"border-cyan-800",hoverBorderColor:"hover:border-cyan-800",ringRolor:"ring-cyan-800",ringColor:"ring-cyan-800",hoverRingColor:"hover:ring-cyan-800",divideColor:"divide-cyan-800",outlineColor:"outline-cyan-800",focusRingColor:"focus:ring-cyan-800"},900:{bgColor:"bg-cyan-900",hoverBgColor:"hover:bg-cyan-900",textColor:"text-cyan-900",hoverTextColor:"hover:text-cyan-900",borderColor:"border-cyan-900",hoverBorderColor:"hover:border-cyan-900",ringRolor:"ring-cyan-900",ringColor:"ring-cyan-900",hoverRingColor:"hover:ring-cyan-900",divideColor:"divide-cyan-900",outlineColor:"outline-cyan-900",focusRingColor:"focus:ring-cyan-900"}},sky:{50:{bgColor:"bg-sky-50",hoverBgColor:"hover:bg-sky-50",textColor:"text-sky-50",hoverTextColor:"hover:text-sky-50",borderColor:"border-sky-50",hoverBorderColor:"hover:border-sky-50",ringRolor:"ring-sky-50",ringColor:"ring-sky-50",hoverRingColor:"hover:ring-sky-50",divideColor:"divide-sky-50",outlineColor:"outline-sky-50",focusRingColor:"focus:ring-sky-50"},100:{bgColor:"bg-sky-100",hoverBgColor:"hover:bg-sky-100",textColor:"text-sky-100",hoverTextColor:"hover:text-sky-100",borderColor:"border-sky-100",hoverBorderColor:"hover:border-sky-100",ringRolor:"ring-sky-100",ringColor:"ring-sky-100",hoverRingColor:"hover:ring-sky-100",divideColor:"divide-sky-100",outlineColor:"outline-sky-100",focusRingColor:"focus:ring-sky-100"},200:{bgColor:"bg-sky-200",hoverBgColor:"hover:bg-sky-200",textColor:"text-sky-200",hoverTextColor:"hover:text-sky-200",borderColor:"border-sky-200",hoverBorderColor:"hover:border-sky-200",ringRolor:"ring-sky-200",ringColor:"ring-sky-200",hoverRingColor:"hover:ring-sky-200",divideColor:"divide-sky-200",outlineColor:"outline-sky-200",focusRingColor:"focus:ring-sky-200"},300:{bgColor:"bg-sky-300",hoverBgColor:"hover:bg-sky-300",textColor:"text-sky-300",hoverTextColor:"hover:text-sky-300",borderColor:"border-sky-300",hoverBorderColor:"hover:border-sky-300",ringRolor:"ring-sky-300",ringColor:"ring-sky-300",hoverRingColor:"hover:ring-sky-300",divideColor:"divide-sky-300",outlineColor:"outline-sky-300",focusRingColor:"focus:ring-sky-300"},400:{bgColor:"bg-sky-400",hoverBgColor:"hover:bg-sky-400",textColor:"text-sky-400",hoverTextColor:"hover:text-sky-400",borderColor:"border-sky-400",hoverBorderColor:"hover:border-sky-400",ringRolor:"ring-sky-400",ringColor:"ring-sky-400",hoverRingColor:"hover:ring-sky-400",divideColor:"divide-sky-400",outlineColor:"outline-sky-400",focusRingColor:"focus:ring-sky-400"},500:{bgColor:"bg-sky-500",hoverBgColor:"hover:bg-sky-500",textColor:"text-sky-500",hoverTextColor:"hover:text-sky-500",borderColor:"border-sky-500",hoverBorderColor:"hover:border-sky-500",ringRolor:"ring-sky-500",ringColor:"ring-sky-500",hoverRingColor:"hover:ring-sky-500",divideColor:"divide-sky-500",outlineColor:"outline-sky-500",focusRingColor:"focus:ring-sky-500"},600:{bgColor:"bg-sky-600",hoverBgColor:"hover:bg-sky-600",textColor:"text-sky-600",hoverTextColor:"hover:text-sky-600",borderColor:"border-sky-600",hoverBorderColor:"hover:border-sky-600",ringRolor:"ring-sky-600",ringColor:"ring-sky-600",hoverRingColor:"hover:ring-sky-600",divideColor:"divide-sky-600",outlineColor:"outline-sky-600",focusRingColor:"focus:ring-sky-600"},700:{bgColor:"bg-sky-700",hoverBgColor:"hover:bg-sky-700",textColor:"text-sky-700",hoverTextColor:"hover:text-sky-700",borderColor:"border-sky-700",hoverBorderColor:"hover:border-sky-700",ringRolor:"ring-sky-700",ringColor:"ring-sky-700",hoverRingColor:"hover:ring-sky-700",divideColor:"divide-sky-700",outlineColor:"outline-sky-700",focusRingColor:"focus:ring-sky-700"},800:{bgColor:"bg-sky-800",hoverBgColor:"hover:bg-sky-800",textColor:"text-sky-800",hoverTextColor:"hover:text-sky-800",borderColor:"border-sky-800",hoverBorderColor:"hover:border-sky-800",ringRolor:"ring-sky-800",ringColor:"ring-sky-800",hoverRingColor:"hover:ring-sky-800",divideColor:"divide-sky-800",outlineColor:"outline-sky-800",focusRingColor:"focus:ring-sky-800"},900:{bgColor:"bg-sky-900",hoverBgColor:"hover:bg-sky-900",textColor:"text-sky-900",hoverTextColor:"hover:text-sky-900",borderColor:"border-sky-900",hoverBorderColor:"hover:border-sky-900",ringRolor:"ring-sky-900",ringColor:"ring-sky-900",hoverRingColor:"hover:ring-sky-900",divideColor:"divide-sky-900",outlineColor:"outline-sky-900",focusRingColor:"focus:ring-sky-900"}},blue:{50:{bgColor:"bg-blue-50",hoverBgColor:"hover:bg-blue-50",textColor:"text-blue-50",hoverTextColor:"hover:text-blue-50",borderColor:"border-blue-50",hoverBorderColor:"hover:border-blue-50",ringRolor:"ring-blue-50",ringColor:"ring-blue-50",hoverRingColor:"hover:ring-blue-50",divideColor:"divide-blue-50",outlineColor:"outline-blue-50",focusRingColor:"focus:ring-blue-50"},100:{bgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",textColor:"text-blue-100",hoverTextColor:"hover:text-blue-100",borderColor:"border-blue-100",hoverBorderColor:"hover:border-blue-100",ringRolor:"ring-blue-100",ringColor:"ring-blue-100",hoverRingColor:"hover:ring-blue-100",divideColor:"divide-blue-100",outlineColor:"outline-blue-100",focusRingColor:"focus:ring-blue-100"},200:{bgColor:"bg-blue-200",hoverBgColor:"hover:bg-blue-200",textColor:"text-blue-200",hoverTextColor:"hover:text-blue-200",borderColor:"border-blue-200",hoverBorderColor:"hover:border-blue-200",ringRolor:"ring-blue-200",ringColor:"ring-blue-200",hoverRingColor:"hover:ring-blue-200",divideColor:"divide-blue-200",outlineColor:"outline-blue-200",focusRingColor:"focus:ring-blue-200"},300:{bgColor:"bg-blue-300",hoverBgColor:"hover:bg-blue-300",textColor:"text-blue-300",hoverTextColor:"hover:text-blue-300",borderColor:"border-blue-300",hoverBorderColor:"hover:border-blue-300",ringRolor:"ring-blue-300",ringColor:"ring-blue-300",hoverRingColor:"hover:ring-blue-300",divideColor:"divide-blue-300",outlineColor:"outline-blue-300",focusRingColor:"focus:ring-blue-300"},400:{bgColor:"bg-blue-400",hoverBgColor:"hover:bg-blue-400",textColor:"text-blue-400",hoverTextColor:"hover:text-blue-400",borderColor:"border-blue-400",hoverBorderColor:"hover:border-blue-400",ringRolor:"ring-blue-400",ringColor:"ring-blue-400",hoverRingColor:"hover:ring-blue-400",divideColor:"divide-blue-400",outlineColor:"outline-blue-400",focusRingColor:"focus:ring-blue-400"},500:{bgColor:"bg-blue-500",hoverBgColor:"hover:bg-blue-500",textColor:"text-blue-500",hoverTextColor:"hover:text-blue-500",borderColor:"border-blue-500",hoverBorderColor:"hover:border-blue-500",ringRolor:"ring-blue-500",ringColor:"ring-blue-500",hoverRingColor:"hover:ring-blue-500",divideColor:"divide-blue-500",outlineColor:"outline-blue-500",focusRingColor:"focus:ring-blue-500"},600:{bgColor:"bg-blue-600",hoverBgColor:"hover:bg-blue-600",textColor:"text-blue-600",hoverTextColor:"hover:text-blue-600",borderColor:"border-blue-600",hoverBorderColor:"hover:border-blue-600",ringRolor:"ring-blue-600",ringColor:"ring-blue-600",hoverRingColor:"hover:ring-blue-600",divideColor:"divide-blue-600",outlineColor:"outline-blue-600",focusRingColor:"focus:ring-blue-600"},700:{bgColor:"bg-blue-700",hoverBgColor:"hover:bg-blue-700",textColor:"text-blue-700",hoverTextColor:"hover:text-blue-700",borderColor:"border-blue-700",hoverBorderColor:"hover:border-blue-700",ringRolor:"ring-blue-700",ringColor:"ring-blue-700",hoverRingColor:"hover:ring-blue-700",divideColor:"divide-blue-700",outlineColor:"outline-blue-700",focusRingColor:"focus:ring-blue-700"},800:{bgColor:"bg-blue-800",hoverBgColor:"hover:bg-blue-800",textColor:"text-blue-800",hoverTextColor:"hover:text-blue-800",borderColor:"border-blue-800",hoverBorderColor:"hover:border-blue-800",ringRolor:"ring-blue-800",ringColor:"ring-blue-800",hoverRingColor:"hover:ring-blue-800",divideColor:"divide-blue-800",outlineColor:"outline-blue-800",focusRingColor:"focus:ring-blue-800"},900:{bgColor:"bg-blue-900",hoverBgColor:"hover:bg-blue-900",textColor:"text-blue-900",hoverTextColor:"hover:text-blue-900",borderColor:"border-blue-900",hoverBorderColor:"hover:border-blue-900",ringRolor:"ring-blue-900",ringColor:"ring-blue-900",hoverRingColor:"hover:ring-blue-900",divideColor:"divide-blue-900",outlineColor:"outline-blue-900",focusRingColor:"focus:ring-blue-900"}},indigo:{50:{bgColor:"bg-indigo-50",hoverBgColor:"hover:bg-indigo-50",textColor:"text-indigo-50",hoverTextColor:"hover:text-indigo-50",borderColor:"border-indigo-50",hoverBorderColor:"hover:border-indigo-50",ringRolor:"ring-indigo-50",ringColor:"ring-indigo-50",hoverRingColor:"hover:ring-indigo-50",divideColor:"divide-indigo-50",outlineColor:"outline-indigo-50",focusRingColor:"focus:ring-indigo-50"},100:{bgColor:"bg-indigo-100",hoverBgColor:"hover:bg-indigo-100",textColor:"text-indigo-100",hoverTextColor:"hover:text-indigo-100",borderColor:"border-indigo-100",hoverBorderColor:"hover:border-indigo-100",ringRolor:"ring-indigo-100",ringColor:"ring-indigo-100",hoverRingColor:"hover:ring-indigo-100",divideColor:"divide-indigo-100",outlineColor:"outline-indigo-100",focusRingColor:"focus:ring-indigo-100"},200:{bgColor:"bg-indigo-200",hoverBgColor:"hover:bg-indigo-200",textColor:"text-indigo-200",hoverTextColor:"hover:text-indigo-200",borderColor:"border-indigo-200",hoverBorderColor:"hover:border-indigo-200",ringRolor:"ring-indigo-200",ringColor:"ring-indigo-200",hoverRingColor:"hover:ring-indigo-200",divideColor:"divide-indigo-200",outlineColor:"outline-indigo-200",focusRingColor:"focus:ring-indigo-200"},300:{bgColor:"bg-indigo-300",hoverBgColor:"hover:bg-indigo-300",textColor:"text-indigo-300",hoverTextColor:"hover:text-indigo-300",borderColor:"border-indigo-300",hoverBorderColor:"hover:border-indigo-300",ringRolor:"ring-indigo-300",ringColor:"ring-indigo-300",hoverRingColor:"hover:ring-indigo-300",divideColor:"divide-indigo-300",outlineColor:"outline-indigo-300",focusRingColor:"focus:ring-indigo-300"},400:{bgColor:"bg-indigo-400",hoverBgColor:"hover:bg-indigo-400",textColor:"text-indigo-400",hoverTextColor:"hover:text-indigo-400",borderColor:"border-indigo-400",hoverBorderColor:"hover:border-indigo-400",ringRolor:"ring-indigo-400",ringColor:"ring-indigo-400",hoverRingColor:"hover:ring-indigo-400",divideColor:"divide-indigo-400",outlineColor:"outline-indigo-400",focusRingColor:"focus:ring-indigo-400"},500:{bgColor:"bg-indigo-500",hoverBgColor:"hover:bg-indigo-500",textColor:"text-indigo-500",hoverTextColor:"hover:text-indigo-500",borderColor:"border-indigo-500",hoverBorderColor:"hover:border-indigo-500",ringRolor:"ring-indigo-500",ringColor:"ring-indigo-500",hoverRingColor:"hover:ring-indigo-500",divideColor:"divide-indigo-500",outlineColor:"outline-indigo-500",focusRingColor:"focus:ring-indigo-500"},600:{bgColor:"bg-indigo-600",hoverBgColor:"hover:bg-indigo-600",textColor:"text-indigo-600",hoverTextColor:"hover:text-indigo-600",borderColor:"border-indigo-600",hoverBorderColor:"hover:border-indigo-600",ringRolor:"ring-indigo-600",ringColor:"ring-indigo-600",hoverRingColor:"hover:ring-indigo-600",divideColor:"divide-indigo-600",outlineColor:"outline-indigo-600",focusRingColor:"focus:ring-indigo-600"},700:{bgColor:"bg-indigo-700",hoverBgColor:"hover:bg-indigo-700",textColor:"text-indigo-700",hoverTextColor:"hover:text-indigo-700",borderColor:"border-indigo-700",hoverBorderColor:"hover:border-indigo-700",ringRolor:"ring-indigo-700",ringColor:"ring-indigo-700",hoverRingColor:"hover:ring-indigo-700",divideColor:"divide-indigo-700",outlineColor:"outline-indigo-700",focusRingColor:"focus:ring-indigo-700"},800:{bgColor:"bg-indigo-800",hoverBgColor:"hover:bg-indigo-800",textColor:"text-indigo-800",hoverTextColor:"hover:text-indigo-800",borderColor:"border-indigo-800",hoverBorderColor:"hover:border-indigo-800",ringRolor:"ring-indigo-800",ringColor:"ring-indigo-800",hoverRingColor:"hover:ring-indigo-800",divideColor:"divide-indigo-800",outlineColor:"outline-indigo-800",focusRingColor:"focus:ring-indigo-800"},900:{bgColor:"bg-indigo-900",hoverBgColor:"hover:bg-indigo-900",textColor:"text-indigo-900",hoverTextColor:"hover:text-indigo-900",borderColor:"border-indigo-900",hoverBorderColor:"hover:border-indigo-900",ringRolor:"ring-indigo-900",ringColor:"ring-indigo-900",hoverRingColor:"hover:ring-indigo-900",divideColor:"divide-indigo-900",outlineColor:"outline-indigo-900",focusRingColor:"focus:ring-indigo-900"}},violet:{50:{bgColor:"bg-violet-50",hoverBgColor:"hover:bg-violet-50",textColor:"text-violet-50",hoverTextColor:"hover:text-violet-50",borderColor:"border-violet-50",hoverBorderColor:"hover:border-violet-50",ringRolor:"ring-violet-50",ringColor:"ring-violet-50",hoverRingColor:"hover:ring-violet-50",divideColor:"divide-violet-50",outlineColor:"outline-violet-50",focusRingColor:"focus:ring-violet-50"},100:{bgColor:"bg-violet-100",hoverBgColor:"hover:bg-violet-100",textColor:"text-violet-100",hoverTextColor:"hover:text-violet-100",borderColor:"border-violet-100",hoverBorderColor:"hover:border-violet-100",ringRolor:"ring-violet-100",ringColor:"ring-violet-100",hoverRingColor:"hover:ring-violet-100",divideColor:"divide-violet-100",outlineColor:"outline-violet-100",focusRingColor:"focus:ring-violet-100"},200:{bgColor:"bg-violet-200",hoverBgColor:"hover:bg-violet-200",textColor:"text-violet-200",hoverTextColor:"hover:text-violet-200",borderColor:"border-violet-200",hoverBorderColor:"hover:border-violet-200",ringRolor:"ring-violet-200",ringColor:"ring-violet-200",hoverRingColor:"hover:ring-violet-200",divideColor:"divide-violet-200",outlineColor:"outline-violet-200",focusRingColor:"focus:ring-violet-200"},300:{bgColor:"bg-violet-300",hoverBgColor:"hover:bg-violet-300",textColor:"text-violet-300",hoverTextColor:"hover:text-violet-300",borderColor:"border-violet-300",hoverBorderColor:"hover:border-violet-300",ringRolor:"ring-violet-300",ringColor:"ring-violet-300",hoverRingColor:"hover:ring-violet-300",divideColor:"divide-violet-300",outlineColor:"outline-violet-300",focusRingColor:"focus:ring-violet-300"},400:{bgColor:"bg-violet-400",hoverBgColor:"hover:bg-violet-400",textColor:"text-violet-400",hoverTextColor:"hover:text-violet-400",borderColor:"border-violet-400",hoverBorderColor:"hover:border-violet-400",ringRolor:"ring-violet-400",ringColor:"ring-violet-400",hoverRingColor:"hover:ring-violet-400",divideColor:"divide-violet-400",outlineColor:"outline-violet-400",focusRingColor:"focus:ring-violet-400"},500:{bgColor:"bg-violet-500",hoverBgColor:"hover:bg-violet-500",textColor:"text-violet-500",hoverTextColor:"hover:text-violet-500",borderColor:"border-violet-500",hoverBorderColor:"hover:border-violet-500",ringRolor:"ring-violet-500",ringColor:"ring-violet-500",hoverRingColor:"hover:ring-violet-500",divideColor:"divide-violet-500",outlineColor:"outline-violet-500",focusRingColor:"focus:ring-violet-500"},600:{bgColor:"bg-violet-600",hoverBgColor:"hover:bg-violet-600",textColor:"text-violet-600",hoverTextColor:"hover:text-violet-600",borderColor:"border-violet-600",hoverBorderColor:"hover:border-violet-600",ringRolor:"ring-violet-600",ringColor:"ring-violet-600",hoverRingColor:"hover:ring-violet-600",divideColor:"divide-violet-600",outlineColor:"outline-violet-600",focusRingColor:"focus:ring-violet-600"},700:{bgColor:"bg-violet-700",hoverBgColor:"hover:bg-violet-700",textColor:"text-violet-700",hoverTextColor:"hover:text-violet-700",borderColor:"border-violet-700",hoverBorderColor:"hover:border-violet-700",ringRolor:"ring-violet-700",ringColor:"ring-violet-700",hoverRingColor:"hover:ring-violet-700",divideColor:"divide-violet-700",outlineColor:"outline-violet-700",focusRingColor:"focus:ring-violet-700"},800:{bgColor:"bg-violet-800",hoverBgColor:"hover:bg-violet-800",textColor:"text-violet-800",hoverTextColor:"hover:text-violet-800",borderColor:"border-violet-800",hoverBorderColor:"hover:border-violet-800",ringRolor:"ring-violet-800",ringColor:"ring-violet-800",hoverRingColor:"hover:ring-violet-800",divideColor:"divide-violet-800",outlineColor:"outline-violet-800",focusRingColor:"focus:ring-violet-800"},900:{bgColor:"bg-violet-900",hoverBgColor:"hover:bg-violet-900",textColor:"text-violet-900",hoverTextColor:"hover:text-violet-900",borderColor:"border-violet-900",hoverBorderColor:"hover:border-violet-900",ringRolor:"ring-violet-900",ringColor:"ring-violet-900",hoverRingColor:"hover:ring-violet-900",divideColor:"divide-violet-900",outlineColor:"outline-violet-900",focusRingColor:"focus:ring-violet-900"}},purple:{50:{bgColor:"bg-purple-50",hoverBgColor:"hover:bg-purple-50",textColor:"text-purple-50",hoverTextColor:"hover:text-purple-50",borderColor:"border-purple-50",hoverBorderColor:"hover:border-purple-50",ringRolor:"ring-purple-50",ringColor:"ring-purple-50",hoverRingColor:"hover:ring-purple-50",divideColor:"divide-purple-50",outlineColor:"outline-purple-50",focusRingColor:"focus:ring-purple-50"},100:{bgColor:"bg-purple-100",hoverBgColor:"hover:bg-purple-100",textColor:"text-purple-100",hoverTextColor:"hover:text-purple-100",borderColor:"border-purple-100",hoverBorderColor:"hover:border-purple-100",ringRolor:"ring-purple-100",ringColor:"ring-purple-100",hoverRingColor:"hover:ring-purple-100",divideColor:"divide-purple-100",outlineColor:"outline-purple-100",focusRingColor:"focus:ring-purple-100"},200:{bgColor:"bg-purple-200",hoverBgColor:"hover:bg-purple-200",textColor:"text-purple-200",hoverTextColor:"hover:text-purple-200",borderColor:"border-purple-200",hoverBorderColor:"hover:border-purple-200",ringRolor:"ring-purple-200",ringColor:"ring-purple-200",hoverRingColor:"hover:ring-purple-200",divideColor:"divide-purple-200",outlineColor:"outline-purple-200",focusRingColor:"focus:ring-purple-200"},300:{bgColor:"bg-purple-300",hoverBgColor:"hover:bg-purple-300",textColor:"text-purple-300",hoverTextColor:"hover:text-purple-300",borderColor:"border-purple-300",hoverBorderColor:"hover:border-purple-300",ringRolor:"ring-purple-300",ringColor:"ring-purple-300",hoverRingColor:"hover:ring-purple-300",divideColor:"divide-purple-300",outlineColor:"outline-purple-300",focusRingColor:"focus:ring-purple-300"},400:{bgColor:"bg-purple-400",hoverBgColor:"hover:bg-purple-400",textColor:"text-purple-400",hoverTextColor:"hover:text-purple-400",borderColor:"border-purple-400",hoverBorderColor:"hover:border-purple-400",ringRolor:"ring-purple-400",ringColor:"ring-purple-400",hoverRingColor:"hover:ring-purple-400",divideColor:"divide-purple-400",outlineColor:"outline-purple-400",focusRingColor:"focus:ring-purple-400"},500:{bgColor:"bg-purple-500",hoverBgColor:"hover:bg-purple-500",textColor:"text-purple-500",hoverTextColor:"hover:text-purple-500",borderColor:"border-purple-500",hoverBorderColor:"hover:border-purple-500",ringRolor:"ring-purple-500",ringColor:"ring-purple-500",hoverRingColor:"hover:ring-purple-500",divideColor:"divide-purple-500",outlineColor:"outline-purple-500",focusRingColor:"focus:ring-purple-500"},600:{bgColor:"bg-purple-600",hoverBgColor:"hover:bg-purple-600",textColor:"text-purple-600",hoverTextColor:"hover:text-purple-600",borderColor:"border-purple-600",hoverBorderColor:"hover:border-purple-600",ringRolor:"ring-purple-600",ringColor:"ring-purple-600",hoverRingColor:"hover:ring-purple-600",divideColor:"divide-purple-600",outlineColor:"outline-purple-600",focusRingColor:"focus:ring-purple-600"},700:{bgColor:"bg-purple-700",hoverBgColor:"hover:bg-purple-700",textColor:"text-purple-700",hoverTextColor:"hover:text-purple-700",borderColor:"border-purple-700",hoverBorderColor:"hover:border-purple-700",ringRolor:"ring-purple-700",ringColor:"ring-purple-700",hoverRingColor:"hover:ring-purple-700",divideColor:"divide-purple-700",outlineColor:"outline-purple-700",focusRingColor:"focus:ring-purple-700"},800:{bgColor:"bg-purple-800",hoverBgColor:"hover:bg-purple-800",textColor:"text-purple-800",hoverTextColor:"hover:text-purple-800",borderColor:"border-purple-800",hoverBorderColor:"hover:border-purple-800",ringRolor:"ring-purple-800",ringColor:"ring-purple-800",hoverRingColor:"hover:ring-purple-800",divideColor:"divide-purple-800",outlineColor:"outline-purple-800",focusRingColor:"focus:ring-purple-800"},900:{bgColor:"bg-purple-900",hoverBgColor:"hover:bg-purple-900",textColor:"text-purple-900",hoverTextColor:"hover:text-purple-900",borderColor:"border-purple-900",hoverBorderColor:"hover:border-purple-900",ringRolor:"ring-purple-900",ringColor:"ring-purple-900",hoverRingColor:"hover:ring-purple-900",divideColor:"divide-purple-900",outlineColor:"outline-purple-900",focusRingColor:"focus:ring-purple-900"}},fuchsia:{50:{bgColor:"bg-fuchsia-50",hoverBgColor:"hover:bg-fuchsia-50",textColor:"text-fuchsia-50",hoverTextColor:"hover:text-fuchsia-50",borderColor:"border-fuchsia-50",hoverBorderColor:"hover:border-fuchsia-50",ringRolor:"ring-fuchsia-50",ringColor:"ring-fuchsia-50",hoverRingColor:"hover:ring-fuchsia-50",divideColor:"divide-fuchsia-50",outlineColor:"outline-fuchsia-50",focusRingColor:"focus:ring-fuchsia-50"},100:{bgColor:"bg-fuchsia-100",hoverBgColor:"hover:bg-fuchsia-100",textColor:"text-fuchsia-100",hoverTextColor:"hover:text-fuchsia-100",borderColor:"border-fuchsia-100",hoverBorderColor:"hover:border-fuchsia-100",ringRolor:"ring-fuchsia-100",ringColor:"ring-fuchsia-100",hoverRingColor:"hover:ring-fuchsia-100",divideColor:"divide-fuchsia-100",outlineColor:"outline-fuchsia-100",focusRingColor:"focus:ring-fuchsia-100"},200:{bgColor:"bg-fuchsia-200",hoverBgColor:"hover:bg-fuchsia-200",textColor:"text-fuchsia-200",hoverTextColor:"hover:text-fuchsia-200",borderColor:"border-fuchsia-200",hoverBorderColor:"hover:border-fuchsia-200",ringRolor:"ring-fuchsia-200",ringColor:"ring-fuchsia-200",hoverRingColor:"hover:ring-fuchsia-200",divideColor:"divide-fuchsia-200",outlineColor:"outline-fuchsia-200",focusRingColor:"focus:ring-fuchsia-200"},300:{bgColor:"bg-fuchsia-300",hoverBgColor:"hover:bg-fuchsia-300",textColor:"text-fuchsia-300",hoverTextColor:"hover:text-fuchsia-300",borderColor:"border-fuchsia-300",hoverBorderColor:"hover:border-fuchsia-300",ringRolor:"ring-fuchsia-300",ringColor:"ring-fuchsia-300",hoverRingColor:"hover:ring-fuchsia-300",divideColor:"divide-fuchsia-300",outlineColor:"outline-fuchsia-300",focusRingColor:"focus:ring-fuchsia-300"},400:{bgColor:"bg-fuchsia-400",hoverBgColor:"hover:bg-fuchsia-400",textColor:"text-fuchsia-400",hoverTextColor:"hover:text-fuchsia-400",borderColor:"border-fuchsia-400",hoverBorderColor:"hover:border-fuchsia-400",ringRolor:"ring-fuchsia-400",ringColor:"ring-fuchsia-400",hoverRingColor:"hover:ring-fuchsia-400",divideColor:"divide-fuchsia-400",outlineColor:"outline-fuchsia-400",focusRingColor:"focus:ring-fuchsia-400"},500:{bgColor:"bg-fuchsia-500",hoverBgColor:"hover:bg-fuchsia-500",textColor:"text-fuchsia-500",hoverTextColor:"hover:text-fuchsia-500",borderColor:"border-fuchsia-500",hoverBorderColor:"hover:border-fuchsia-500",ringRolor:"ring-fuchsia-500",ringColor:"ring-fuchsia-500",hoverRingColor:"hover:ring-fuchsia-500",divideColor:"divide-fuchsia-500",outlineColor:"outline-fuchsia-500",focusRingColor:"focus:ring-fuchsia-500"},600:{bgColor:"bg-fuchsia-600",hoverBgColor:"hover:bg-fuchsia-600",textColor:"text-fuchsia-600",hoverTextColor:"hover:text-fuchsia-600",borderColor:"border-fuchsia-600",hoverBorderColor:"hover:border-fuchsia-600",ringRolor:"ring-fuchsia-600",ringColor:"ring-fuchsia-600",hoverRingColor:"hover:ring-fuchsia-600",divideColor:"divide-fuchsia-600",outlineColor:"outline-fuchsia-600",focusRingColor:"focus:ring-fuchsia-600"},700:{bgColor:"bg-fuchsia-700",hoverBgColor:"hover:bg-fuchsia-700",textColor:"text-fuchsia-700",hoverTextColor:"hover:text-fuchsia-700",borderColor:"border-fuchsia-700",hoverBorderColor:"hover:border-fuchsia-700",ringRolor:"ring-fuchsia-700",ringColor:"ring-fuchsia-700",hoverRingColor:"hover:ring-fuchsia-700",divideColor:"divide-fuchsia-700",outlineColor:"outline-fuchsia-700",focusRingColor:"focus:ring-fuchsia-700"},800:{bgColor:"bg-fuchsia-800",hoverBgColor:"hover:bg-fuchsia-800",textColor:"text-fuchsia-800",hoverTextColor:"hover:text-fuchsia-800",borderColor:"border-fuchsia-800",hoverBorderColor:"hover:border-fuchsia-800",ringRolor:"ring-fuchsia-800",ringColor:"ring-fuchsia-800",hoverRingColor:"hover:ring-fuchsia-800",divideColor:"divide-fuchsia-800",outlineColor:"outline-fuchsia-800",focusRingColor:"focus:ring-fuchsia-800"},900:{bgColor:"bg-fuchsia-900",hoverBgColor:"hover:bg-fuchsia-900",textColor:"text-fuchsia-900",hoverTextColor:"hover:text-fuchsia-900",borderColor:"border-fuchsia-900",hoverBorderColor:"hover:border-fuchsia-900",ringRolor:"ring-fuchsia-900",ringColor:"ring-fuchsia-900",hoverRingColor:"hover:ring-fuchsia-900",divideColor:"divide-fuchsia-900",outlineColor:"outline-fuchsia-900",focusRingColor:"focus:ring-fuchsia-900"}},pink:{50:{bgColor:"bg-pink-50",hoverBgColor:"hover:bg-pink-50",textColor:"text-pink-50",hoverTextColor:"hover:text-pink-50",borderColor:"border-pink-50",hoverBorderColor:"hover:border-pink-50",ringRolor:"ring-pink-50",ringColor:"ring-pink-50",hoverRingColor:"hover:ring-pink-50",divideColor:"divide-pink-50",outlineColor:"outline-pink-50",focusRingColor:"focus:ring-pink-50"},100:{bgColor:"bg-pink-100",hoverBgColor:"hover:bg-pink-100",textColor:"text-pink-100",hoverTextColor:"hover:text-pink-100",borderColor:"border-pink-100",hoverBorderColor:"hover:border-pink-100",ringRolor:"ring-pink-100",ringColor:"ring-pink-100",hoverRingColor:"hover:ring-pink-100",divideColor:"divide-pink-100",outlineColor:"outline-pink-100",focusRingColor:"focus:ring-pink-100"},200:{bgColor:"bg-pink-200",hoverBgColor:"hover:bg-pink-200",textColor:"text-pink-200",hoverTextColor:"hover:text-pink-200",borderColor:"border-pink-200",hoverBorderColor:"hover:border-pink-200",ringRolor:"ring-pink-200",ringColor:"ring-pink-200",hoverRingColor:"hover:ring-pink-200",divideColor:"divide-pink-200",outlineColor:"outline-pink-200",focusRingColor:"focus:ring-pink-200"},300:{bgColor:"bg-pink-300",hoverBgColor:"hover:bg-pink-300",textColor:"text-pink-300",hoverTextColor:"hover:text-pink-300",borderColor:"border-pink-300",hoverBorderColor:"hover:border-pink-300",ringRolor:"ring-pink-300",ringColor:"ring-pink-300",hoverRingColor:"hover:ring-pink-300",divideColor:"divide-pink-300",outlineColor:"outline-pink-300",focusRingColor:"focus:ring-pink-300"},400:{bgColor:"bg-pink-400",hoverBgColor:"hover:bg-pink-400",textColor:"text-pink-400",hoverTextColor:"hover:text-pink-400",borderColor:"border-pink-400",hoverBorderColor:"hover:border-pink-400",ringRolor:"ring-pink-400",ringColor:"ring-pink-400",hoverRingColor:"hover:ring-pink-400",divideColor:"divide-pink-400",outlineColor:"outline-pink-400",focusRingColor:"focus:ring-pink-400"},500:{bgColor:"bg-pink-500",hoverBgColor:"hover:bg-pink-500",textColor:"text-pink-500",hoverTextColor:"hover:text-pink-500",borderColor:"border-pink-500",hoverBorderColor:"hover:border-pink-500",ringRolor:"ring-pink-500",ringColor:"ring-pink-500",hoverRingColor:"hover:ring-pink-500",divideColor:"divide-pink-500",outlineColor:"outline-pink-500",focusRingColor:"focus:ring-pink-500"},600:{bgColor:"bg-pink-600",hoverBgColor:"hover:bg-pink-600",textColor:"text-pink-600",hoverTextColor:"hover:text-pink-600",borderColor:"border-pink-600",hoverBorderColor:"hover:border-pink-600",ringRolor:"ring-pink-600",ringColor:"ring-pink-600",hoverRingColor:"hover:ring-pink-600",divideColor:"divide-pink-600",outlineColor:"outline-pink-600",focusRingColor:"focus:ring-pink-600"},700:{bgColor:"bg-pink-700",hoverBgColor:"hover:bg-pink-700",textColor:"text-pink-700",hoverTextColor:"hover:text-pink-700",borderColor:"border-pink-700",hoverBorderColor:"hover:border-pink-700",ringRolor:"ring-pink-700",ringColor:"ring-pink-700",hoverRingColor:"hover:ring-pink-700",divideColor:"divide-pink-700",outlineColor:"outline-pink-700",focusRingColor:"focus:ring-pink-700"},800:{bgColor:"bg-pink-700",hoverBgColor:"hover:bg-pink-700",textColor:"text-pink-700",hoverTextColor:"hover:text-pink-700",borderColor:"border-pink-700",hoverBorderColor:"hover:border-pink-700",ringRolor:"ring-pink-700",ringColor:"ring-pink-700",hoverRingColor:"hover:ring-pink-700",divideColor:"divide-pink-700",outlineColor:"outline-pink-700",focusRingColor:"focus:ring-pink-700"},900:{bgColor:"bg-pink-900",hoverBgColor:"hover:bg-pink-900",textColor:"text-pink-900",hoverTextColor:"hover:text-pink-900",borderColor:"border-pink-900",hoverBorderColor:"hover:border-pink-900",ringRolor:"ring-pink-900",ringColor:"ring-pink-900",hoverRingColor:"hover:ring-pink-900",divideColor:"divide-pink-900",outlineColor:"outline-pink-900",focusRingColor:"focus:ring-pink-900"}},rose:{50:{bgColor:"bg-rose-50",hoverBgColor:"hover:bg-rose-50",textColor:"text-rose-50",hoverTextColor:"hover:text-rose-50",borderColor:"border-rose-50",hoverBorderColor:"hover:border-rose-50",ringRolor:"ring-rose-50",ringColor:"ring-rose-50",hoverRingColor:"hover:ring-rose-50",divideColor:"divide-rose-50",outlineColor:"outline-rose-50",focusRingColor:"focus:ring-rose-50"},100:{bgColor:"bg-rose-100",hoverBgColor:"hover:bg-rose-100",textColor:"text-rose-100",hoverTextColor:"hover:text-rose-100",borderColor:"border-rose-100",hoverBorderColor:"hover:border-rose-100",ringRolor:"ring-rose-100",ringColor:"ring-rose-100",hoverRingColor:"hover:ring-rose-100",divideColor:"divide-rose-100",outlineColor:"outline-rose-100",focusRingColor:"focus:ring-rose-100"},200:{bgColor:"bg-rose-200",hoverBgColor:"hover:bg-rose-200",textColor:"text-rose-200",hoverTextColor:"hover:text-rose-200",borderColor:"border-rose-200",hoverBorderColor:"hover:border-rose-200",ringRolor:"ring-rose-200",ringColor:"ring-rose-200",hoverRingColor:"hover:ring-rose-200",divideColor:"divide-rose-200",outlineColor:"outline-rose-200",focusRingColor:"focus:ring-rose-200"},300:{bgColor:"bg-rose-300",hoverBgColor:"hover:bg-rose-300",textColor:"text-rose-300",hoverTextColor:"hover:text-rose-300",borderColor:"border-rose-300",hoverBorderColor:"hover:border-rose-300",ringRolor:"ring-rose-300",ringColor:"ring-rose-300",hoverRingColor:"hover:ring-rose-300",divideColor:"divide-rose-300",outlineColor:"outline-rose-300",focusRingColor:"focus:ring-rose-300"},400:{bgColor:"bg-rose-400",hoverBgColor:"hover:bg-rose-400",textColor:"text-rose-400",hoverTextColor:"hover:text-rose-400",borderColor:"border-rose-400",hoverBorderColor:"hover:border-rose-400",ringRolor:"ring-rose-400",ringColor:"ring-rose-400",hoverRingColor:"hover:ring-rose-400",divideColor:"divide-rose-400",outlineColor:"outline-rose-400",focusRingColor:"focus:ring-rose-400"},500:{bgColor:"bg-rose-500",hoverBgColor:"hover:bg-rose-500",textColor:"text-rose-500",hoverTextColor:"hover:text-rose-500",borderColor:"border-rose-500",hoverBorderColor:"hover:border-rose-500",ringRolor:"ring-rose-500",ringColor:"ring-rose-500",hoverRingColor:"hover:ring-rose-500",divideColor:"divide-rose-500",outlineColor:"outline-rose-500",focusRingColor:"focus:ring-rose-500"},600:{bgColor:"bg-rose-600",hoverBgColor:"hover:bg-rose-600",textColor:"text-rose-600",hoverTextColor:"hover:text-rose-600",borderColor:"border-rose-600",hoverBorderColor:"hover:border-rose-600",ringRolor:"ring-rose-600",ringColor:"ring-rose-600",hoverRingColor:"hover:ring-rose-600",divideColor:"divide-rose-600",outlineColor:"outline-rose-600",focusRingColor:"focus:ring-rose-600"},700:{bgColor:"bg-rose-700",hoverBgColor:"hover:bg-rose-700",textColor:"text-rose-700",hoverTextColor:"hover:text-rose-700",borderColor:"border-rose-700",hoverBorderColor:"hover:border-rose-700",ringRolor:"ring-rose-700",ringColor:"ring-rose-700",hoverRingColor:"hover:ring-rose-700",divideColor:"divide-rose-700",outlineColor:"outline-rose-700",focusRingColor:"focus:ring-rose-700"},800:{bgColor:"bg-rose-800",hoverBgColor:"hover:bg-rose-800",textColor:"text-rose-800",hoverTextColor:"hover:text-rose-800",borderColor:"border-rose-800",hoverBorderColor:"hover:border-rose-800",ringRolor:"ring-rose-800",ringColor:"ring-rose-800",hoverRingColor:"hover:ring-rose-800",divideColor:"divide-rose-800",outlineColor:"outline-rose-800",focusRingColor:"focus:ring-rose-800"},900:{bgColor:"bg-rose-900",hoverBgColor:"hover:bg-rose-900",textColor:"text-rose-900",hoverTextColor:"hover:text-rose-900",borderColor:"border-rose-900",hoverBorderColor:"hover:border-rose-900",ringRolor:"ring-rose-900",ringColor:"ring-rose-900",hoverRingColor:"hover:ring-rose-900",divideColor:"divide-rose-900",outlineColor:"outline-rose-900",focusRingColor:"focus:ring-rose-900"}}},lA=(e,t)=>{if(t||e===Re.Unchanged)return e;switch(e){case Re.Increase:return Re.Decrease;case Re.ModerateIncrease:return Re.ModerateDecrease;case Re.Decrease:return Re.Increase;case Re.ModerateDecrease:return Re.ModerateIncrease}return""},Ps=e=>e.toString(),uA=e=>e.reduce((t,r)=>t+r,0),_ee=(e,t)=>{const r=t.indexOf(e),n=[...t];return r>-1&&n.splice(r,1),n},sA=(e,t)=>{for(let r=0;r{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}function fe(e){return t=>`tremor-${e}-${t}`}function D(e,t){return $e[e]===void 0?$e.gray[500]:e!=="white"&&e!=="black"&&e!=="transparent"&&t?$e[e][t]:$e[e][500]}const cA=fe("Legend"),$ee=({name:e,color:t})=>h.createElement("li",{className:j(cA("legendItem"),"termor-elem inline-flex items-center truncate",D(X,I.text).textColor,z.md.marginRight)},h.createElement("svg",{className:j("termor-elem flex-none",D(t,I.text).textColor,U.xs.height,U.xs.width,z.xs.marginRight),fill:"currentColor",viewBox:"0 0 8 8"},h.createElement("circle",{cx:4,cy:4,r:4})),h.createElement("p",{className:j("termor-elem whitespace-nowrap truncate",ne.sm,Pe.sm)},e)),fA=h.forwardRef((e,t)=>{const{categories:r,colors:n=gl,className:o}=e,i=ee(e,["categories","colors","className"]);return h.createElement("ol",Object.assign({ref:t,className:j(cA("root"),"flex flex-wrap overflow-hidden truncate",o)},i),r.map((a,l)=>h.createElement($ee,{key:`item-${l}`,name:a,color:n[l]})))});fA.displayName="Legend";const Iy=({payload:e},t,r)=>{const n=A.useRef(null);return aA(()=>{var o,i;r((i=(o=n.current)===null||o===void 0?void 0:o.clientHeight)?Number(i)+20:60)}),h.createElement("div",{ref:n,className:"flex items-center justify-end"},h.createElement(fA,{categories:e.map(o=>o.value),colors:e.map(o=>t.get(o.value))}))},ae={none:{left:"rounded-l-none",top:"rounded-t-none",right:"rounded-r-none",bottom:"rounded-b-none",all:"rounded-none"},sm:{left:"rounded-l",top:"rounded-t",right:"rounded-r",bottom:"rounded-b",all:"rounded"},md:{left:"rounded-l-md",top:"rounded-t-md",right:"rounded-r-md",bottom:"rounded-b-md",all:"rounded-md"},lg:{left:"rounded-l-lg",top:"rounded-t-lg",right:"rounded-r-lg",bottom:"rounded-b-lg",all:"rounded-lg"},full:{left:"rounded-l-full",top:"rounded-t-full",right:"rounded-r-full",bottom:"rounded-b-full",all:"rounded-full"}},Ot={none:"shadow-none",sm:"shadow-sm",md:"shadow",lg:"shadow-lg"},ge={none:{left:"border-l-0",top:"border-t-0",right:"border-r-0",bottom:"border-b-0",all:"border-0"},sm:{left:"border-l",top:"border-t",right:"border-r",bottom:"border-b",all:"border"},md:{left:"border-l-2",top:"border-t-2",right:"border-r-2",bottom:"border-b-2",all:"border-2"},lg:{left:"border-l-4",top:"border-t-4",right:"border-r-4",bottom:"border-b-4",all:"border-4"}},dA=({children:e})=>h.createElement("div",{className:j(D("white").bgColor,ne.sm,ae.md.all,ge.sm.all,Ot.lg)},e),gA=({value:e,name:t,color:r})=>h.createElement("div",{className:"flex items-center justify-between space-x-8"},h.createElement("div",{className:"flex items-center space-x-2"},h.createElement("span",{className:j("shrink-0",D(r,I.background).bgColor,D("white").borderColor,U.sm.height,U.sm.width,ae.full.all,ge.md.all,Ot.md)}),h.createElement("p",{className:j("font-medium tabular-nums text-right whitespace-nowrap",D(X,I.darkText).textColor)},e)),h.createElement("p",{className:j("text-right whitespace-nowrap",D(X,I.text).textColor,Pe.sm)},t)),Ly=({active:e,payload:t,label:r,categoryColors:n,valueFormatter:o})=>e&&t?h.createElement(dA,null,h.createElement("div",{className:j(D(X,I.lightBorder).borderColor,z.twoXl.paddingX,z.sm.paddingY,ge.sm.bottom)},h.createElement("p",{className:j("text-elem",D(X,I.darkText).textColor,Pe.md)},r)),h.createElement("div",{className:j(z.twoXl.paddingX,z.sm.paddingY,"space-y-1")},t.map(({value:i,name:a},l)=>{var u;return h.createElement(gA,{key:`id-${l}`,value:o(i),name:a,color:(u=n.get(a))!==null&&u!==void 0?u:Y.Blue})}))):null,Ya={[Y.Slate]:"#64748b",[Y.Gray]:"#6b7280",[Y.Zinc]:"#71717a",[Y.Neutral]:"#737373",[Y.Stone]:"#78716c",[Y.Red]:"#ef4444",[Y.Orange]:"#f97316",[Y.Amber]:"#f59e0b",[Y.Yellow]:"#eab308",[Y.Lime]:"#84cc16",[Y.Green]:"#22c55e",[Y.Emerald]:"#10b981",[Y.Teal]:"#14b8a6",[Y.Cyan]:"#06b6d4",[Y.Sky]:"#0ea5e9",[Y.Blue]:"#3b82f6",[Y.Indigo]:"#6366f1",[Y.Violet]:"#8b5cf6",[Y.Purple]:"#a855f7",[Y.Fuchsia]:"#d946ef",[Y.Pink]:"#ec4899",[Y.Rose]:"#f43f5e",[Y.Black]:"#000000",[Y.White]:"#ffffff"},Ree=h.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,colors:i=gl,valueFormatter:a=Ps,layout:l="horizontal",stack:u=!1,relative:s=!1,startEndOnly:f=!1,animationDuration:c=1500,showAnimation:d=!0,showXAxis:g=!0,showYAxis:p=!0,yAxisWidth:v=56,showTooltip:b=!0,showLegend:m=!0,showGridLines:y=!0,autoMinValue:x=!1,minValue:S,maxValue:C,allowDecimals:w=!0,className:O,noDataText:E}=e,P=ee(e,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","className","noDataText"]),[k,$]=A.useState(60),_=By(n,i),B=Dy(x,S,C);return h.createElement("div",Object.assign({ref:t,className:j("w-full h-80",O)},P),h.createElement(tg,{width:"100%",height:"100%"},r!=null&&r.length?h.createElement(Pee,{data:r,stackOffset:s?"expand":"none",layout:l==="vertical"?"vertical":"horizontal"},y?h.createElement(Og,{strokeDasharray:"3 3",horizontal:l!=="vertical",vertical:l==="vertical"}):null,l!=="vertical"?h.createElement(An,{hide:!g,dataKey:o,interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},ticks:f?[r[0][o],r[r.length-1][o]]:void 0,style:{fontSize:"12px",fontFamily:"Inter; Helvetica",marginTop:"20px"},tickLine:!1,axisLine:!1}):h.createElement(An,{hide:!g,type:"number",tick:{transform:"translate(-3, 0)"},domain:B,style:{fontSize:"12px",fontFamily:"Inter; Helvetica"},tickLine:!1,axisLine:!1,tickFormatter:a,padding:{left:10,right:10},minTickGap:5,allowDecimals:w}),l!=="vertical"?h.createElement(_n,{width:v,hide:!p,axisLine:!1,tickLine:!1,type:"number",domain:B,tick:{transform:"translate(-3, 0)"},style:{fontSize:"12px",fontFamily:"Inter; Helvetica"},tickFormatter:s?N=>`${(100*N).toString()} %`:a,allowDecimals:w}):h.createElement(_n,{width:v,hide:!p,dataKey:o,axisLine:!1,tickLine:!1,ticks:f?[r[0][o],r[r.length-1][o]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},style:{fontSize:"12px",fontFamily:"Inter; Helvetica"}}),b?h.createElement(er,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:({active:N,payload:T,label:M})=>h.createElement(Ly,{active:N,payload:T,label:M,valueFormatter:a,categoryColors:_}),position:{y:0}}):null,m?h.createElement(xn,{verticalAlign:"top",height:k,content:({payload:N})=>Iy({payload:N},_,$)}):null,n.map(N=>{var T;return h.createElement(Ti,{key:N,name:N,type:"linear",stackId:u||s?"a":void 0,dataKey:N,fill:Ya[(T=_.get(N))!==null&&T!==void 0?T:Y.Gray],isAnimationActive:d,animationDuration:c})})):h.createElement(Lg,{noDataText:E})))});Ree.displayName="BarChart";const Nee=h.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,colors:i=gl,valueFormatter:a=Ps,startEndOnly:l=!1,showXAxis:u=!0,showYAxis:s=!0,yAxisWidth:f=56,animationDuration:c=1500,showAnimation:d=!0,showTooltip:g=!0,showLegend:p=!0,showGridLines:v=!0,autoMinValue:b=!1,curveType:m="linear",minValue:y,maxValue:x,connectNulls:S=!1,allowDecimals:C=!0,className:w,noDataText:O}=e,E=ee(e,["data","categories","index","colors","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","animationDuration","showAnimation","showTooltip","showLegend","showGridLines","autoMinValue","curveType","minValue","maxValue","connectNulls","allowDecimals","className","noDataText"]),[P,k]=A.useState(60),$=By(n,i),_=Dy(b,y,x);return h.createElement("div",Object.assign({ref:t,className:j("w-full h-80",w)},E),h.createElement(tg,{width:"100%",height:"100%"},r!=null&&r.length?h.createElement(Eee,{data:r},v?h.createElement(Og,{strokeDasharray:"3 3",horizontal:!0,vertical:!1}):null,h.createElement(An,{hide:!u,dataKey:o,interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},ticks:l?[r[0][o],r[r.length-1][o]]:void 0,style:{fontSize:"12px",fontFamily:"Inter; Helvetica"},tickLine:!1,axisLine:!1,padding:{left:10,right:10},minTickGap:5}),h.createElement(_n,{width:f,hide:!s,axisLine:!1,tickLine:!1,type:"number",domain:_,tick:{transform:"translate(-3, 0)"},style:{fontSize:"12px",fontFamily:"Inter; Helvetica"},tickFormatter:a,allowDecimals:C}),g?h.createElement(er,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:({active:B,payload:N,label:T})=>h.createElement(Ly,{active:B,payload:N,label:T,valueFormatter:a,categoryColors:$}),position:{y:0}}):null,p?h.createElement(xn,{verticalAlign:"top",height:P,content:({payload:B})=>Iy({payload:B},$,k)}):null,n.map(B=>{var N;return h.createElement(Es,{key:B,name:B,type:m,dataKey:B,stroke:Ya[(N=$.get(B))!==null&&N!==void 0?N:Y.Gray],strokeWidth:2,dot:!1,isAnimationActive:d,animationDuration:c,connectNulls:S})})):h.createElement(Lg,{noDataText:O})))});Nee.displayName="LineChart";const Mee=(e,t)=>e.map((r,n)=>{const o=ne||t(((o,i)=>uA(o.map(a=>a[i])))(r,n)),Bee=({active:e,payload:t,valueFormatter:r})=>{if(e&&t[0]){const n=t[0];return h.createElement(dA,null,h.createElement("div",{className:j(z.twoXl.paddingX,z.sm.paddingY)},h.createElement(gA,{value:r(n.value),name:n.name,color:n.payload.color})))}return null},Dee=h.forwardRef((e,t)=>{const{data:r=[],category:n="value",index:o="name",colors:i=gl,variant:a="donut",valueFormatter:l=Ps,label:u,showLabel:s=!0,animationDuration:f=1500,showAnimation:c=!0,showTooltip:d=!0,className:g,noDataText:p}=e,v=ee(e,["data","category","index","colors","variant","valueFormatter","label","showLabel","animationDuration","showAnimation","showTooltip","className","noDataText"]),b=a=="donut",m=jee(u,l,r,n);return h.createElement("div",Object.assign({ref:t,className:j("w-full h-44",g)},v),h.createElement(tg,{width:"100%",height:"100%"},r!=null&&r.length?h.createElement(kee,null,s&&b?h.createElement("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle",fill:Ya[X]},m):null,h.createElement(Dn,{data:Mee(r,i),cx:"50%",cy:"50%",startAngle:90,endAngle:-270,innerRadius:b?"75%":"0%",outerRadius:"100%",paddingAngle:0,dataKey:n,nameKey:o,isAnimationActive:c,animationDuration:f}),d?h.createElement(er,{wrapperStyle:{outline:"none"},content:({active:y,payload:x})=>h.createElement(Bee,{active:y,payload:x,valueFormatter:l})}):null):h.createElement(Lg,{noDataText:p})))});Dee.displayName="DonutChart";const Wh={xs:{paddingX:z.sm.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.xs},sm:{paddingX:z.md.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.sm},md:{paddingX:z.lg.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.md},lg:{paddingX:z.xl.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.lg},xl:{paddingX:z.twoXl.paddingX,paddingY:z.twoXs.paddingY,fontSize:ne.xl}},wS={xs:{height:U.md.height,width:U.md.width},sm:{height:U.md.height,width:U.md.width},md:{height:U.md.height,width:U.md.width},lg:{height:U.lg.height,width:U.lg.width},xl:{height:U.xl.height,width:U.xl.width}},sd=Math.min,oi=Math.max,cd=Math.round,cc=Math.floor,tn=e=>({x:e,y:e}),Iee={left:"right",right:"left",bottom:"top",top:"bottom"},Lee={start:"end",end:"start"};function SS(e,t,r){return oi(e,sd(t,r))}function Tg(e,t){return typeof e=="function"?e(t):e}function mi(e){return e.split("-")[0]}function Ag(e){return e.split("-")[1]}function hA(e){return e==="x"?"y":"x"}function vA(e){return e==="y"?"height":"width"}const zee=new Set(["top","bottom"]);function ro(e){return zee.has(mi(e))?"y":"x"}function pA(e){return hA(ro(e))}function Fee(e,t,r){r===void 0&&(r=!1);const n=Ag(e),o=pA(e),i=vA(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=fd(a)),[a,fd(a)]}function Wee(e){const t=fd(e);return[_p(e),t,_p(t)]}function _p(e){return e.replace(/start|end/g,t=>Lee[t])}const OS=["left","right"],ES=["right","left"],Uee=["top","bottom"],Vee=["bottom","top"];function Xee(e,t,r){switch(e){case"top":case"bottom":return r?t?ES:OS:t?OS:ES;case"left":case"right":return t?Uee:Vee;default:return[]}}function Hee(e,t,r,n){const o=Ag(e);let i=Xee(mi(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(_p)))),i}function fd(e){return e.replace(/left|right|bottom|top/g,t=>Iee[t])}function Yee(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gee(e){return typeof e!="number"?Yee(e):{top:e,right:e,bottom:e,left:e}}function dd(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function PS(e,t,r){let{reference:n,floating:o}=e;const i=ro(t),a=pA(t),l=vA(a),u=mi(t),s=i==="y",f=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,d=n[l]/2-o[l]/2;let g;switch(u){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:c};break;case"left":g={x:n.x-o.width,y:c};break;default:g={x:n.x,y:n.y}}switch(Ag(t)){case"start":g[a]-=d*(r&&s?-1:1);break;case"end":g[a]+=d*(r&&s?-1:1);break}return g}const Kee=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=PS(s,n,u),d=n,g={},p=0;for(let v=0;vN<=0)){var $,_;const N=((($=i.flip)==null?void 0:$.index)||0)+1,T=O[N];if(T&&(!(c==="alignment"?y!==ro(T):!1)||k.every(R=>ro(R.placement)===y?R.overflows[0]>0:!0)))return{data:{index:N,overflows:k},reset:{placement:T}};let M=(_=k.filter(L=>L.overflows[0]<=0).sort((L,R)=>L.overflows[1]-R.overflows[1])[0])==null?void 0:_.placement;if(!M)switch(g){case"bestFit":{var B;const L=(B=k.filter(R=>{if(w){const F=ro(R.placement);return F===y||F==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(F=>F>0).reduce((F,V)=>F+V,0)]).sort((R,F)=>R[1]-F[1])[0])==null?void 0:B[0];L&&(M=L);break}case"initialPlacement":M=l;break}if(o!==M)return{reset:{placement:M}}}return{}}}},Qee=new Set(["left","top"]);async function Zee(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=mi(r),l=Ag(r),u=ro(r)==="y",s=Qee.has(a)?-1:1,f=i&&u?-1:1,c=Tg(t,e);let{mainAxis:d,crossAxis:g,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof p=="number"&&(g=l==="end"?p*-1:p),u?{x:g*f,y:d*s}:{x:d*s,y:g*f}}const Jee=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,u=await Zee(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},ete=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:m,y}=b;return{x:m,y}}},...u}=Tg(e,t),s={x:r,y:n},f=await mA(t,u),c=ro(mi(o)),d=hA(c);let g=s[d],p=s[c];if(i){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=g+f[b],x=g-f[m];g=SS(y,g,x)}if(a){const b=c==="y"?"top":"left",m=c==="y"?"bottom":"right",y=p+f[b],x=p-f[m];p=SS(y,p,x)}const v=l.fn({...t,[d]:g,[c]:p});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[d]:i,[c]:a}}}}}};function _g(){return typeof window<"u"}function hl(e){return yA(e)?(e.nodeName||"").toLowerCase():"#document"}function ar(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(yA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yA(e){return _g()?e instanceof Node||e instanceof ar(e).Node:!1}function zr(e){return _g()?e instanceof Element||e instanceof ar(e).Element:!1}function nn(e){return _g()?e instanceof HTMLElement||e instanceof ar(e).HTMLElement:!1}function kS(e){return!_g()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ar(e).ShadowRoot}const tte=new Set(["inline","contents"]);function ks(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!tte.has(o)}const rte=new Set(["table","td","th"]);function nte(e){return rte.has(hl(e))}const ote=[":popover-open",":modal"];function $g(e){return ote.some(t=>{try{return e.matches(t)}catch{return!1}})}const ite=["transform","translate","scale","rotate","perspective"],ate=["transform","translate","scale","rotate","perspective","filter"],lte=["paint","layout","strict","content"];function zy(e){const t=Fy(),r=zr(e)?Fr(e):e;return ite.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||ate.some(n=>(r.willChange||"").includes(n))||lte.some(n=>(r.contain||"").includes(n))}function ute(e){let t=yo(e);for(;nn(t)&&!Ga(t);){if(zy(t))return t;if($g(t))return null;t=yo(t)}return null}function Fy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ste=new Set(["html","body","#document"]);function Ga(e){return ste.has(hl(e))}function Fr(e){return ar(e).getComputedStyle(e)}function Rg(e){return zr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yo(e){if(hl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kS(e)&&e.host||un(e);return kS(t)?t.host:t}function bA(e){const t=yo(e);return Ga(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&ks(t)?t:bA(t)}function ho(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=bA(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ar(o);if(i){const l=$p(a);return t.concat(a,a.visualViewport||[],ks(o)?o:[],l&&r?ho(l):[])}return t.concat(o,ho(o,[],r))}function $p(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xA(e){const t=Fr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=nn(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=cd(r)!==i||cd(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function Wy(e){return zr(e)?e:e.contextElement}function ga(e){const t=Wy(e);if(!nn(t))return tn(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=xA(t);let a=(i?cd(r.width):r.width)/n,l=(i?cd(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const cte=tn(0);function CA(e){const t=ar(e);return!Fy()||!t.visualViewport?cte:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fte(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ar(e)?!1:t}function yi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Wy(e);let a=tn(1);t&&(n?zr(n)&&(a=ga(n)):a=ga(e));const l=fte(i,r,n)?CA(i):tn(0);let u=(o.left+l.x)/a.x,s=(o.top+l.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const d=ar(i),g=n&&zr(n)?ar(n):n;let p=d,v=$p(p);for(;v&&n&&g!==p;){const b=ga(v),m=v.getBoundingClientRect(),y=Fr(v),x=m.left+(v.clientLeft+parseFloat(y.paddingLeft))*b.x,S=m.top+(v.clientTop+parseFloat(y.paddingTop))*b.y;u*=b.x,s*=b.y,f*=b.x,c*=b.y,u+=x,s+=S,p=ar(v),v=$p(p)}}return dd({width:f,height:c,x:u,y:s})}function Ng(e,t){const r=Rg(e).scrollLeft;return t?t.left+r:yi(un(e)).left+r}function wA(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ng(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function dte(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=un(n),l=t?$g(t.floating):!1;if(n===a||l&&i)return r;let u={scrollLeft:0,scrollTop:0},s=tn(1);const f=tn(0),c=nn(n);if((c||!c&&!i)&&((hl(n)!=="body"||ks(a))&&(u=Rg(n)),nn(n))){const g=yi(n);s=ga(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const d=a&&!c&&!i?wA(a,u):tn(0);return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-u.scrollLeft*s.x+f.x+d.x,y:r.y*s.y-u.scrollTop*s.y+f.y+d.y}}function gte(e){return Array.from(e.getClientRects())}function hte(e){const t=un(e),r=Rg(e),n=e.ownerDocument.body,o=oi(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=oi(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ng(e);const l=-r.scrollTop;return Fr(n).direction==="rtl"&&(a+=oi(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}const TS=25;function vte(e,t){const r=ar(e),n=un(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;const f=Fy();(!f||f&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const s=Ng(n);if(s<=0){const f=n.ownerDocument,c=f.body,d=getComputedStyle(c),g=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,p=Math.abs(n.clientWidth-c.clientWidth-g);p<=TS&&(i-=p)}else s<=TS&&(i+=s);return{width:i,height:a,x:l,y:u}}const pte=new Set(["absolute","fixed"]);function mte(e,t){const r=yi(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=nn(e)?ga(e):tn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,u=o*i.x,s=n*i.y;return{width:a,height:l,x:u,y:s}}function AS(e,t,r){let n;if(t==="viewport")n=vte(e,r);else if(t==="document")n=hte(un(e));else if(zr(t))n=mte(t,r);else{const o=CA(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return dd(n)}function SA(e,t){const r=yo(e);return r===t||!zr(r)||Ga(r)?!1:Fr(r).position==="fixed"||SA(r,t)}function yte(e,t){const r=t.get(e);if(r)return r;let n=ho(e,[],!1).filter(l=>zr(l)&&hl(l)!=="body"),o=null;const i=Fr(e).position==="fixed";let a=i?yo(e):e;for(;zr(a)&&!Ga(a);){const l=Fr(a),u=zy(a);!u&&l.position==="fixed"&&(o=null),(i?!u&&!o:!u&&l.position==="static"&&!!o&&pte.has(o.position)||ks(a)&&!u&&SA(e,a))?n=n.filter(f=>f!==a):o=l,a=yo(a)}return t.set(e,n),n}function bte(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?$g(t)?[]:yte(t,this._c):[].concat(r),n],l=a[0],u=a.reduce((s,f)=>{const c=AS(t,f,o);return s.top=oi(c.top,s.top),s.right=sd(c.right,s.right),s.bottom=sd(c.bottom,s.bottom),s.left=oi(c.left,s.left),s},AS(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function xte(e){const{width:t,height:r}=xA(e);return{width:t,height:r}}function Cte(e,t,r){const n=nn(t),o=un(t),i=r==="fixed",a=yi(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const u=tn(0);function s(){u.x=Ng(o)}if(n||!n&&!i)if((hl(t)!=="body"||ks(o))&&(l=Rg(t)),n){const g=yi(t,!0,i,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else o&&s();i&&!n&&o&&s();const f=o&&!n&&!i?wA(o,l):tn(0),c=a.left+l.scrollLeft-u.x-f.x,d=a.top+l.scrollTop-u.y-f.y;return{x:c,y:d,width:a.width,height:a.height}}function Uh(e){return Fr(e).position==="static"}function _S(e,t){if(!nn(e)||Fr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return un(e)===r&&(r=r.ownerDocument.body),r}function OA(e,t){const r=ar(e);if($g(e))return r;if(!nn(e)){let o=yo(e);for(;o&&!Ga(o);){if(zr(o)&&!Uh(o))return o;o=yo(o)}return r}let n=_S(e,t);for(;n&&nte(n)&&Uh(n);)n=_S(n,t);return n&&Ga(n)&&Uh(n)&&!zy(n)?r:n||ute(e)||r}const wte=async function(e){const t=this.getOffsetParent||OA,r=this.getDimensions,n=await r(e.floating);return{reference:Cte(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ste(e){return Fr(e).direction==="rtl"}const Ote={convertOffsetParentRelativeRectToViewportRelativeRect:dte,getDocumentElement:un,getClippingRect:bte,getOffsetParent:OA,getElementRects:wte,getClientRects:gte,getDimensions:xte,getScale:ga,isElement:zr,isRTL:Ste};function EA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ete(e,t){let r=null,n;const o=un(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),i();const s=e.getBoundingClientRect(),{left:f,top:c,width:d,height:g}=s;if(l||t(),!d||!g)return;const p=cc(c),v=cc(o.clientWidth-(f+d)),b=cc(o.clientHeight-(c+g)),m=cc(f),x={rootMargin:-p+"px "+-v+"px "+-b+"px "+-m+"px",threshold:oi(0,sd(1,u))||1};let S=!0;function C(w){const O=w[0].intersectionRatio;if(O!==u){if(!S)return a();O?a(!1,O):n=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!EA(s,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(C,x)}r.observe(e)}return a(!0),i}function Pte(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,s=Wy(e),f=o||i?[...s?ho(s):[],...ho(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",r,{passive:!0}),i&&m.addEventListener("resize",r)});const c=s&&l?Ete(s,r):null;let d=-1,g=null;a&&(g=new ResizeObserver(m=>{let[y]=m;y&&y.target===s&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),r()}),s&&!u&&g.observe(s),g.observe(t));let p,v=u?yi(e):null;u&&b();function b(){const m=yi(e);v&&!EA(v,m)&&r(),v=m,p=requestAnimationFrame(b)}return r(),()=>{var m;f.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),c==null||c(),(m=g)==null||m.disconnect(),g=null,u&&cancelAnimationFrame(p)}}const kte=Jee,Tte=ete,Ate=qee,_te=(e,t,r)=>{const n=new Map,o={platform:Ote,...r},i={...o.platform,_c:n};return Kee(e,t,{...o,platform:i})};var Nc=typeof document<"u"?A.useLayoutEffect:A.useEffect;function gd(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,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gd(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!gd(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $S(e){const t=A.useRef(e);return Nc(()=>{t.current=e}),t}function $te(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,u]=A.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[s,f]=A.useState(n);gd(s,n)||f(n);const c=A.useRef(null),d=A.useRef(null),g=A.useRef(l),p=$S(i),v=$S(o),[b,m]=A.useState(null),[y,x]=A.useState(null),S=A.useCallback(k=>{c.current!==k&&(c.current=k,m(k))},[]),C=A.useCallback(k=>{d.current!==k&&(d.current=k,x(k))},[]),w=A.useCallback(()=>{if(!c.current||!d.current)return;const k={placement:t,strategy:r,middleware:s};v.current&&(k.platform=v.current),_te(c.current,d.current,k).then($=>{const _={...$,isPositioned:!0};O.current&&!gd(g.current,_)&&(g.current=_,Pm.flushSync(()=>{u(_)}))})},[s,t,r,v]);Nc(()=>{a===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,u(k=>({...k,isPositioned:!1})))},[a]);const O=A.useRef(!1);Nc(()=>(O.current=!0,()=>{O.current=!1}),[]),Nc(()=>{if(b&&y){if(p.current)return p.current(b,y,w);w()}},[b,y,w,p]);const E=A.useMemo(()=>({reference:c,floating:d,setReference:S,setFloating:C}),[S,C]),P=A.useMemo(()=>({reference:b,floating:y}),[b,y]);return A.useMemo(()=>({...l,update:w,refs:E,elements:P,reference:S,floating:C}),[l,w,E,P,S,C])}var fs=typeof document<"u"?A.useLayoutEffect:A.useEffect;let Vh=!1,Rte=0;const RS=()=>"floating-ui-"+Rte++;function Nte(){const[e,t]=A.useState(()=>Vh?RS():void 0);return fs(()=>{e==null&&t(RS())},[]),A.useEffect(()=>{Vh||(Vh=!0)},[]),e}const Mte=lO["useId".toString()],NS=Mte||Nte;function jte(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const Bte=A.createContext(null),Dte=A.createContext(null),PA=()=>{var e;return((e=A.useContext(Bte))==null?void 0:e.id)||null},Uy=()=>A.useContext(Dte);function no(e){return(e==null?void 0:e.ownerDocument)||document}function Ite(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Lte(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function Vy(e){return no(e).defaultView||window}function Kr(e){return e?e instanceof Vy(e).Element:!1}function kA(e){return e?e instanceof Vy(e).HTMLElement:!1}function zte(e){if(typeof ShadowRoot>"u")return!1;const t=Vy(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fte(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(Ite())||t.test(Lte()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Wte(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 TA(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function MS(e){const t=A.useRef(e);return fs(()=>{t.current=e}),t}const jS="data-floating-ui-safe-polygon";function Xh(e,t,r){return r&&!TA(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const Ute=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:u,onOpenChange:s,dataRef:f,events:c,elements:{domReference:d,floating:g},refs:p}=e,v=Uy(),b=PA(),m=MS(o),y=MS(n),x=A.useRef(),S=A.useRef(),C=A.useRef(),w=A.useRef(),O=A.useRef(!0),E=A.useRef(!1),P=A.useRef(()=>{}),k=A.useCallback(()=>{var N;const T=(N=f.current.openEvent)==null?void 0:N.type;return(T==null?void 0:T.includes("mouse"))&&T!=="mousedown"},[f]);A.useEffect(()=>{if(!r)return;function N(){clearTimeout(S.current),clearTimeout(w.current),O.current=!0}return c.on("dismiss",N),()=>{c.off("dismiss",N)}},[r,c]),A.useEffect(()=>{if(!r||!m.current||!u)return;function N(){k()&&s(!1)}const T=no(g).documentElement;return T.addEventListener("mouseleave",N),()=>{T.removeEventListener("mouseleave",N)}},[g,u,s,r,m,f,k]);const $=A.useCallback(function(N){N===void 0&&(N=!0);const T=Xh(y.current,"close",x.current);T&&!C.current?(clearTimeout(S.current),S.current=setTimeout(()=>s(!1),T)):N&&(clearTimeout(S.current),s(!1))},[y,s]),_=A.useCallback(()=>{P.current(),C.current=void 0},[]),B=A.useCallback(()=>{if(E.current){const N=no(p.floating.current).body;N.style.pointerEvents="",N.removeAttribute(jS),E.current=!1}},[p]);return A.useEffect(()=>{if(!r)return;function N(){return f.current.openEvent?["click","mousedown"].includes(f.current.openEvent.type):!1}function T(R){if(clearTimeout(S.current),O.current=!1,i&&!TA(x.current)||a>0&&Xh(y.current,"open")===0)return;f.current.openEvent=R;const F=Xh(y.current,"open",x.current);F?S.current=setTimeout(()=>{s(!0)},F):s(!0)}function M(R){if(N())return;P.current();const F=no(g);if(clearTimeout(w.current),m.current){u||clearTimeout(S.current),C.current=m.current({...e,tree:v,x:R.clientX,y:R.clientY,onClose(){B(),_(),$()}});const V=C.current;F.addEventListener("mousemove",V),P.current=()=>{F.removeEventListener("mousemove",V)};return}$()}function L(R){N()||m.current==null||m.current({...e,tree:v,x:R.clientX,y:R.clientY,onClose(){B(),_(),$()}})(R)}if(Kr(d)){const R=d;return u&&R.addEventListener("mouseleave",L),g==null||g.addEventListener("mouseleave",L),l&&R.addEventListener("mousemove",T,{once:!0}),R.addEventListener("mouseenter",T),R.addEventListener("mouseleave",M),()=>{u&&R.removeEventListener("mouseleave",L),g==null||g.removeEventListener("mouseleave",L),l&&R.removeEventListener("mousemove",T),R.removeEventListener("mouseenter",T),R.removeEventListener("mouseleave",M)}}},[d,g,r,e,i,a,l,$,_,B,s,u,v,y,m,f]),fs(()=>{var N;if(r&&u&&(N=m.current)!=null&&N.__options.blockPointerEvents&&k()){const L=no(g).body;if(L.setAttribute(jS,""),L.style.pointerEvents="none",E.current=!0,Kr(d)&&g){var T,M;const R=d,F=v==null||(T=v.nodesRef.current.find(V=>V.id===b))==null||(M=T.context)==null?void 0:M.elements.floating;return F&&(F.style.pointerEvents=""),R.style.pointerEvents="auto",g.style.pointerEvents="auto",()=>{R.style.pointerEvents="",g.style.pointerEvents=""}}}},[r,u,b,g,d,v,m,f,k]),fs(()=>{u||(x.current=void 0,_(),B())},[u,_,B]),A.useEffect(()=>()=>{_(),clearTimeout(S.current),clearTimeout(w.current),B()},[r,_,B]),A.useMemo(()=>{if(!r)return{};function N(T){x.current=T.pointerType}return{reference:{onPointerDown:N,onPointerEnter:N,onMouseMove(){u||a===0||(clearTimeout(w.current),w.current=setTimeout(()=>{O.current||s(!0)},a))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(){c.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),$(!1)}}}},[c,r,a,u,s,$])};function Vte(e){let t=e.activeElement;for(;((r=t)==null||(n=r.shadowRoot)==null?void 0:n.activeElement)!=null;){var r,n;t=t.shadowRoot.activeElement}return t}function BS(e,t){if(!e||!t)return!1;const r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&zte(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Hh(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function Xte(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Hte=lO["useInsertionEffect".toString()],Yte=Hte||(e=>e());function AA(e){const t=A.useRef(()=>{});return Yte(()=>{t.current=e}),A.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o!1),C=typeof d=="function"?S:d,w=A.useRef(!1),{escapeKeyBubbles:O,outsidePressBubbles:E}=qte(m);return A.useEffect(()=>{if(!r||!f)return;s.current.__escapeKeyBubbles=O,s.current.__outsidePressBubbles=E;function P(N){if(N.key==="Escape"){const T=y?Hh(y.nodesRef.current,i):[];if(T.length>0){let M=!0;if(T.forEach(L=>{var R;if((R=L.context)!=null&&R.open&&!L.context.dataRef.current.__escapeKeyBubbles){M=!1;return}}),!M)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function k(N){const T=w.current;if(w.current=!1,T||typeof C=="function"&&!C(N))return;const M=Xte(N);if(kA(M)&&u){const F=u.ownerDocument.defaultView||window,V=M.scrollWidth>M.clientWidth,Q=M.scrollHeight>M.clientHeight;let H=Q&&N.offsetX>M.clientWidth;if(Q&&F.getComputedStyle(M).direction==="rtl"&&(H=N.offsetX<=M.offsetWidth-M.clientWidth),H||V&&N.offsetY>M.clientHeight)return}const L=y&&Hh(y.nodesRef.current,i).some(F=>{var V;return Mc(N,(V=F.context)==null?void 0:V.elements.floating)});if(Mc(N,u)||Mc(N,l)||L)return;const R=y?Hh(y.nodesRef.current,i):[];if(R.length>0){let F=!0;if(R.forEach(V=>{var Q;if((Q=V.context)!=null&&Q.open&&!V.context.dataRef.current.__outsidePressBubbles){F=!1;return}}),!F)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:x?{preventScroll:!0}:Fte(N)||Wte(N)}}),n(!1)}function $(){n(!1)}const _=no(u);c&&_.addEventListener("keydown",P),C&&_.addEventListener(g,k);let B=[];return b&&(Kr(l)&&(B=ho(l)),Kr(u)&&(B=B.concat(ho(u))),!Kr(a)&&a&&a.contextElement&&(B=B.concat(ho(a.contextElement)))),B=B.filter(N=>{var T;return N!==((T=_.defaultView)==null?void 0:T.visualViewport)}),B.forEach(N=>{N.addEventListener("scroll",$,{passive:!0})}),()=>{c&&_.removeEventListener("keydown",P),C&&_.removeEventListener(g,k),B.forEach(N=>{N.removeEventListener("scroll",$)})}},[s,u,l,a,c,C,g,o,y,i,r,n,b,f,O,E,x]),A.useEffect(()=>{w.current=!1},[C,g]),A.useMemo(()=>f?{reference:{[Gte[v]]:()=>{p&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[Kte[g]]:()=>{w.current=!0}}}:{},[f,o,p,g,v,n])},Zte=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:u}}=e,{enabled:s=!0,keyboardOnly:f=!0}=t===void 0?{}:t;const c=A.useRef(""),d=A.useRef(!1),g=A.useRef();return A.useEffect(()=>{if(!s)return;const v=no(l).defaultView||window;function b(){!r&&kA(u)&&u===Vte(no(u))&&(d.current=!0)}return v.addEventListener("blur",b),()=>{v.removeEventListener("blur",b)}},[l,u,r,s]),A.useEffect(()=>{if(!s)return;function p(v){(v.type==="referencePress"||v.type==="escapeKey")&&(d.current=!0)}return i.on("dismiss",p),()=>{i.off("dismiss",p)}},[i,s]),A.useEffect(()=>()=>{clearTimeout(g.current)},[]),A.useMemo(()=>s?{reference:{onPointerDown(p){let{pointerType:v}=p;c.current=v,d.current=!!(v&&f)},onMouseLeave(){d.current=!1},onFocus(p){var v;d.current||p.type==="focus"&&((v=o.current.openEvent)==null?void 0:v.type)==="mousedown"&&o.current.openEvent&&Mc(o.current.openEvent,u)||(o.current.openEvent=p.nativeEvent,n(!0))},onBlur(p){d.current=!1;const v=p.relatedTarget,b=Kr(v)&&v.hasAttribute("data-floating-ui-focus-guard")&&v.getAttribute("data-type")==="outside";g.current=setTimeout(()=>{BS(a.floating.current,v)||BS(u,v)||b||n(!1)})}}}:{},[s,f,u,a,o,n])},Jte=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=NS(),a=NS();return A.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])};function ere(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=$te(e),i=Uy(),a=A.useRef(null),l=A.useRef({}),u=A.useState(()=>jte())[0],[s,f]=A.useState(null),c=A.useCallback(m=>{const y=Kr(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(y)},[o.refs]),d=A.useCallback(m=>{(Kr(m)||m===null)&&(a.current=m,f(m)),(Kr(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!Kr(m))&&o.refs.setReference(m)},[o.refs]),g=A.useMemo(()=>({...o.refs,setReference:d,setPositionReference:c,domReference:a}),[o.refs,d,c]),p=A.useMemo(()=>({...o.elements,domReference:s}),[o.elements,s]),v=AA(r),b=A.useMemo(()=>({...o,refs:g,elements:p,dataRef:l,nodeId:n,events:u,open:t,onOpenChange:v}),[o,n,u,t,v,g,p]);return fs(()=>{const m=i==null?void 0:i.nodesRef.current.find(y=>y.id===n);m&&(m.context=b)}),A.useMemo(()=>({...o,context:b,refs:g,reference:d,positionReference:c}),[o,g,b,d,c])}function Yh(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,u]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof u=="function"){var s;(s=n.get(l))==null||s.push(u),o[l]=function(){for(var f,c=arguments.length,d=new Array(c),g=0;gp(...d))}}}else o[l]=u}),o),{})}}const tre=function(e){e===void 0&&(e=[]);const t=e,r=A.useCallback(i=>Yh(i,e,"reference"),t),n=A.useCallback(i=>Yh(i,e,"floating"),t),o=A.useCallback(i=>Yh(i,e,"item"),e.map(i=>i==null?void 0:i.item));return A.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},$n=()=>{const[e,t]=A.useState(!1),{x:r,y:n,refs:o,strategy:i,context:a}=ere({open:e,onOpenChange:t,placement:"top",whileElementsMounted:Pte,middleware:[kte(5),Ate({fallbackAxisSideDirection:"start"}),Tte()]}),l=Ute(a,{move:!1}),u=Zte(a),s=Qte(a),f=Jte(a,{role:"tooltip"}),{getReferenceProps:c,getFloatingProps:d}=tre([l,u,s,f]);return{tooltipProps:{open:e,x:r,y:n,refs:o,strategy:i,getFloatingProps:d},getReferenceProps:c}},on=({text:e,open:t,x:r,y:n,refs:o,strategy:i,getFloatingProps:a})=>t&&e?h.createElement("div",Object.assign({className:j("max-w-xs text-sm z-20",D(X,I.darkestBackground).bgColor,D("white").textColor,ae.md.all,z.md.paddingX,z.twoXs.paddingY),ref:o.setFloating,style:{position:i,top:n??0,left:r??0}},a()),e):null;on.displayName="Tooltip";const Gh=fe("Badge"),rre=h.forwardRef((e,t)=>{const{color:r=Y.Blue,icon:n,size:o=kg.SM,tooltip:i,className:a,children:l}=e,u=ee(e,["color","icon","size","tooltip","className","children"]),s=n||null,{tooltipProps:f,getReferenceProps:c}=$n();return h.createElement("span",Object.assign({ref:To([t,f.refs.setReference]),className:j(Gh("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default",D(r,I.darkText).textColor,D(r,I.lightBackground).bgColor,ae.full.all,Wh[o].paddingX,Wh[o].paddingY,Wh[o].fontSize,a)},c,u),h.createElement(on,Object.assign({text:i},f)),s?h.createElement(s,{className:j(Gh("icon"),z.twoXs.negativeMarginLeft,z.xs.marginRight,wS[o].height,wS[o].width)}):null,h.createElement("p",{className:j(Gh("text"),"text-sm whitespace-nowrap")},l))});rre.displayName="Badge";const nre=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{fill:"currentColor",d:"M14.59 16.004L5.982 7.397l1.414-1.414 8.607 8.606V7.004h2v11h-11v-2z"}))},ore=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{fill:"currentColor",d:"M13 16.172l5.364-5.364 1.414 1.414L12 20l-7.778-7.778 1.414-1.414L11 16.172V4h2v12.172z"}))},ire=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{fill:"currentColor",d:"M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"}))},are=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{fill:"currentColor",d:"M13 7.828V20h-2V7.828l-5.364 5.364-1.414-1.414L12 4l7.778 7.778-1.414 1.414L13 7.828z"}))},lre=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{fill:"currentColor",d:"M16.004 9.414l-8.607 8.607-1.414-1.414L14.589 8H7.004V6h11v11h-2V9.414z"}))},ure={xs:{paddingX:z.sm.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.xs},sm:{paddingX:z.md.paddingX,paddingY:z.twoXs.paddingY,fontSize:ne.sm},md:{paddingX:z.lg.paddingX,paddingY:z.xs.paddingY,fontSize:ne.md},lg:{paddingX:z.xl.paddingX,paddingY:z.xs.paddingY,fontSize:ne.lg},xl:{paddingX:z.xl.paddingX,paddingY:z.xs.paddingY,fontSize:ne.xl}},sre={xs:{paddingX:z.sm.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.xs},sm:{paddingX:z.md.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.sm},md:{paddingX:z.lg.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.md},lg:{paddingX:z.xl.paddingX,paddingY:z.threeXs.paddingY,fontSize:ne.lg},xl:{paddingX:z.twoXl.paddingX,paddingY:z.twoXs.paddingY,fontSize:ne.xl}},DS={xs:{height:U.md.height,width:U.md.width},sm:{height:U.md.height,width:U.md.width},md:{height:U.md.height,width:U.md.width},lg:{height:U.lg.height,width:U.lg.width},xl:{height:U.xl.height,width:U.xl.width}},IS={[Re.Increase]:{bgColor:$e[Y.Emerald][I.lightBackground].bgColor,textColor:$e[Y.Emerald][I.darkText].textColor},[Re.ModerateIncrease]:{bgColor:$e[Y.Emerald][I.lightBackground].bgColor,textColor:$e[Y.Emerald][I.darkText].textColor},[Re.Decrease]:{bgColor:$e[Y.Rose][I.lightBackground].bgColor,textColor:$e[Y.Rose][I.darkText].textColor},[Re.ModerateDecrease]:{bgColor:$e[Y.Rose][I.lightBackground].bgColor,textColor:$e[Y.Rose][I.darkText].textColor},[Re.Unchanged]:{bgColor:$e[Y.Orange][I.lightBackground].bgColor,textColor:$e[Y.Orange][I.darkText].textColor}},cre={[Re.Increase]:are,[Re.ModerateIncrease]:lre,[Re.Decrease]:ore,[Re.ModerateDecrease]:nre,[Re.Unchanged]:ire},Kh=fe("BadgeDelta"),fre=h.forwardRef((e,t)=>{const{deltaType:r=Re.Increase,isIncreasePositive:n=!0,size:o=kg.SM,children:i,className:a}=e,l=ee(e,["deltaType","isIncreasePositive","size","children","className"]),u=cre[r],s=lA(r,n),f=i?sre:ure;return h.createElement("span",Object.assign({ref:t,className:j(Kh("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default",ae.full.all,IS[s].bgColor,IS[s].textColor,f[o].paddingX,f[o].paddingY,f[o].fontSize,a)},l),h.createElement(u,{className:j(Kh("icon"),i?j(z.twoXs.negativeMarginLeft,z.xs.marginRight):DS[o].height,DS[o].width)}),i?h.createElement("p",{className:j(Kh("text"),"text-sm whitespace-nowrap")},i):null)});fre.displayName="BadgeDelta";const LS={xs:{paddingX:z.xs.paddingX,paddingY:z.xs.paddingY},sm:{paddingX:z.xs.paddingX,paddingY:z.xs.paddingY},md:{paddingX:z.sm.paddingX,paddingY:z.sm.paddingY},lg:{paddingX:z.sm.paddingX,paddingY:z.sm.paddingY},xl:{paddingX:z.md.paddingX,paddingY:z.md.paddingY}},zS={xs:{height:U.sm.height,width:U.sm.width},sm:{height:U.lg.height,width:U.lg.width},md:{height:U.lg.height,width:U.lg.width},lg:{height:U.twoXl.height,width:U.twoXl.width},xl:{height:U.threeXl.height,width:U.threeXl.width}},fc={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:ae.lg.all,border:"",ring:"",shadow:""},shadow:{rounded:ae.lg.all,border:ge.sm.all,ring:"",shadow:Ot.md},solid:{rounded:ae.lg.all,border:ge.md.all,ring:"ring-1",shadow:""},outlined:{rounded:ae.lg.all,border:ge.sm.all,ring:"ring-2",shadow:""}},dre=(e,t)=>{switch(e){case"simple":return{textColor:D(t,I.text).textColor,bgColor:"",borderColor:"",ringColor:""};case"light":return{textColor:D(t,I.text).textColor,bgColor:D(t,I.lightBackground).bgColor,borderColor:"",ringColor:""};case"shadow":return{textColor:D(t,I.text).textColor,bgColor:D("white").bgColor,borderColor:D(X,I.lightBorder).borderColor,ringColor:""};case"solid":return{textColor:D("white").textColor,bgColor:D(t,I.background).bgColor,borderColor:D("white").borderColor,ringColor:D(X,I.lightBorder).ringColor};case"outlined":return{textColor:D(t,I.text).textColor,bgColor:D("white").bgColor,borderColor:D(t,I.ring).borderColor,ringColor:D(t,I.lightRing).ringColor}}},FS=fe("Icon"),gre={Simple:"simple",Light:"light",Shadow:"shadow",Solid:"solid",Outlined:"outlined"},hre=h.forwardRef((e,t)=>{const{icon:r,variant:n=gre.Simple,tooltip:o,size:i=kg.SM,color:a=Y.Blue,className:l}=e,u=ee(e,["icon","variant","tooltip","size","color","className"]),s=r,f=dre(n,a),{tooltipProps:c,getReferenceProps:d}=$n();return h.createElement("span",Object.assign({ref:To([t,c.refs.setReference]),className:j(FS("root"),"inline-flex flex-shrink-0 items-center",f.bgColor,f.textColor,f.borderColor,f.ringColor,fc[n].rounded,fc[n].border,fc[n].shadow,fc[n].ring,LS[i].paddingX,LS[i].paddingY,l)},d,u),h.createElement(on,Object.assign({text:o},c)),h.createElement(s,{className:j(FS("icon"),zS[i].height,zS[i].width)}))});hre.displayName="Icon";const vl=A.createContext(Y.Blue),Ai=A.createContext({hoveredValue:void 0}),jc=A.createContext(void 0),Ur=A.createContext({selectedValue:void 0,handleValueChange:void 0}),vre=fe("Accordion"),_A=A.createContext({isExpanded:!1,setIsExpanded:void 0}),pre=h.forwardRef((e,t)=>{var r;const{expanded:n=!1,children:o,className:i}=e,a=ee(e,["expanded","children","className"]),[l,u]=A.useState(n),s=(r=A.useContext(jc))!==null&&r!==void 0?r:j(ge.sm.all,ae.lg.all);return h.createElement("div",Object.assign({ref:t,className:j(vre("root"),"overflow-hidden",D(X,I.lightRing).borderColor,D("white").bgColor,s,i)},a),h.Children.map(o,(f,c)=>c===0?h.createElement(_A.Provider,{value:{isExpanded:l,setIsExpanded:u}},h.cloneElement(f)):h.createElement("div",{className:l?"":"hidden"},f)))});pre.displayName="Accordion";const mre=fe("AccordionBody"),yre=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement("div",Object.assign({ref:t,className:j(mre("root"),"w-full",z.threeXl.paddingX,z.lg.paddingBottom,n)},o),r)});yre.displayName="AccordionBody";const bre=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{fill:"currentColor",d:"M12 10.828l-4.95 4.95-1.414-1.414L12 8l6.364 6.364-1.414 1.414z"}))},qh=fe("AccordionHeader"),xre=h.forwardRef((e,t)=>{const{children:r,className:n,onClick:o}=e,i=ee(e,["children","className","onClick"]),{isExpanded:a,setIsExpanded:l}=A.useContext(_A);return h.createElement("button",Object.assign({ref:t,className:j(qh("root"),"w-full flex items-center justify-between",z.threeXl.paddingX,z.lg.paddingY,n),onClick:u=>{l==null||l(!a),o==null||o(u)},type:"button"},i),h.createElement("div",{className:j(qh("children"),"flex flex-1",z.threeXl.marginRight)},r),h.createElement("div",null,h.createElement(bre,{className:j(qh("arrowIcon"),a?"transition-all":"transition-all -rotate-180",D(X,I.lightText).textColor,z.twoXs.negativeMarginRight,U.xl.height,U.xl.width)})))});xre.displayName="AccordionHeader";const Cre=fe("AccordionList"),wre=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]),i=h.Children.count(r);return h.createElement("div",Object.assign({ref:t,className:j(Cre("root"),ae.lg.all,Ot.md,n)},o),h.Children.map(r,(a,l)=>l===0?h.createElement(jc.Provider,{value:j(ae.lg.top,ge.sm.left,ge.sm.top,ge.sm.right,ge.sm.bottom)},h.cloneElement(a)):l===i-1?h.createElement(jc.Provider,{value:j(ae.lg.bottom,ge.sm.left,ge.sm.right,ge.sm.bottom)},h.cloneElement(a)):h.createElement(jc.Provider,{value:j(ge.sm.left,ge.sm.right,ge.sm.bottom)},h.cloneElement(a))))});wre.displayName="AccordionList";const Sre={0:"grid-cols-none",1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},Ore={0:"sm:grid-cols-none",1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12"},Ere={0:"md:grid-cols-none",1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},Pre={0:"lg:grid-cols-none",1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"},kre={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",13:"col-span-13"},Tre={1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",13:"sm:col-span-13"},Are={1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",13:"md:col-span-13"},_re={1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",13:"lg:col-span-13"},$re=fe("Col"),Rre=h.forwardRef((e,t)=>{const{numColSpan:r=1,numColSpanSm:n,numColSpanMd:o,numColSpanLg:i,children:a,className:l}=e,u=ee(e,["numColSpan","numColSpanSm","numColSpanMd","numColSpanLg","children","className"]),s=(f,c)=>f&&Object.keys(c).includes(String(f))?c[f]:"";return h.createElement("div",Object.assign({ref:t,className:j($re("root"),(()=>{const f=s(r,kre),c=s(n,Tre),d=s(o,Are),g=s(i,_re);return j(f,c,d,g)})(),l)},u),a)});Rre.displayName="Col";const Nre=fe("Grid"),Mre=h.forwardRef((e,t)=>{const{numCols:r=1,numColsSm:n,numColsMd:o,numColsLg:i,children:a,className:l}=e,u=ee(e,["numCols","numColsSm","numColsMd","numColsLg","children","className"]),s=(f,c)=>f&&Object.keys(c).includes(String(f))?c[f]:"";return h.createElement("div",Object.assign({ref:t,className:j(Nre("root"),"grid",(()=>{const f=s(r,Sre),c=s(n,Ore),d=s(o,Ere),g=s(i,Pre);return j(f,c,d,g)})(),l)},u),a)});Mre.displayName="Grid";const jre=fe("Card"),Bre=e=>{if(!e)return"";switch(e){case da.Left:return ge.lg.left;case CS.Top:return ge.lg.top;case da.Right:return ge.lg.right;case CS.Bottom:return ge.lg.bottom;default:return""}},Vn=h.forwardRef((e,t)=>{const{decoration:r="",decorationColor:n=Y.Blue,children:o,className:i}=e,a=ee(e,["decoration","decorationColor","children","className"]);return h.createElement("div",Object.assign({ref:t,className:j(jre("root"),"relative w-full text-left ring-1",D("white").bgColor,Ot.md,$e[n][I.border].borderColor,D(X,I.lightRing).ringColor,Bre(r),z.threeXl.paddingAll,ae.lg.all,i)},a),o)});Vn.displayName="Card";const Dre=fe("Divider"),Ire=h.forwardRef((e,t)=>{const{className:r}=e,n=ee(e,["className"]);return h.createElement("div",Object.assign({ref:t,className:j(Dre("root"),"w-full mx-auto",D(X,I.lightBorder).bgColor,U.threeXs.height,z.threeXl.marginTop,z.threeXl.marginBottom,ae.lg.all,r)},n))});Ire.displayName="Divider";const Lre=fe("Flex"),zre={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Fre={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},Wre={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},$A=h.forwardRef((e,t)=>{const{flexDirection:r="row",justifyContent:n="between",alignItems:o="center",children:i,className:a}=e,l=ee(e,["flexDirection","justifyContent","alignItems","children","className"]);return h.createElement("div",Object.assign({ref:t,className:j(Lre("root"),"flex w-full",Wre[r],zre[n],Fre[o],a)},l),i)});$A.displayName="Flex";const Ure=fe("List"),Vre=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement("ul",Object.assign({ref:t,className:j(Ure("root"),"w-full overflow-hidden divide-y",D(X,I.text).textColor,D(X,I.lightBorder).divideColor,n)},o),r)});Vre.displayName="List";const Xre=fe("ListItem"),Hre=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement(h.Fragment,null,h.createElement("li",Object.assign({ref:t,className:j(Xre("root"),"w-full flex justify-between items-center truncate tabular-nums",z.sm.paddingY,ne.sm,n)},o),r))});Hre.displayName="ListItem";const WS=fe("Table"),Yre=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement("div",{className:j(WS("root"),"overflow-auto",n)},h.createElement("table",Object.assign({ref:t,className:j(WS("table"),"w-full tabular-nums",D(X,I.text).textColor,ne.sm,Pe.sm)},o),r))});Yre.displayName="Table";const Gre=fe("TableBody"),Kre=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement(h.Fragment,null,h.createElement("tbody",Object.assign({ref:t,className:j(Gre("root"),"align-top overflow-x-auto divide-y",D(X,I.lightBorder).divideColor,n)},o),r))});Kre.displayName="TableBody";const qre=fe("TableCell"),Qre=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement(h.Fragment,null,h.createElement("td",Object.assign({ref:t,className:j(qre("root"),"align-middle whitespace-nowrap tabular-nums text-left",z.twoXl.paddingAll,n)},o),r))});Qre.displayName="TableCell";const Zre=fe("TableHead"),Jre=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement(h.Fragment,null,h.createElement("thead",Object.assign({ref:t,className:j(Zre("root"),"text-left",D(X,I.text).textColor,Pe.lg,n)},o),r))});Jre.displayName="TableHead";const ene=fe("TableHeaderCell"),tne=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement(h.Fragment,null,h.createElement("th",Object.assign({ref:t,className:j(ene("root"),"sticky whitespace-nowrap text-left",D(X,I.text).textColor,z.none.top,z.twoXl.paddingX,z.xl.paddingY,Pe.lg,n)},o),r))});tne.displayName="TableHeaderCell";const rne=fe("TableRow"),nne=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement(h.Fragment,null,h.createElement("tr",Object.assign({ref:t,className:j(rne("row"),n)},o),r))});nne.displayName="TableRow";const pl=(e,t)=>{const r=t!==void 0,[n,o]=A.useState(e);return[r?t:n,i=>{r||o(i)}]},Mg=(e,t,r,n,o)=>{const[i,a]=A.useState(-1);A.useEffect(()=>{a((()=>{if(r||a(-1),!o)return-1;const u=t.indexOf(o);return u===-1?-1:u})())},[o,r]);const l=((u,s)=>{if(!(u<0))return s[u]})(i,t);return[l,u=>{if(r)switch(u.key){case"ArrowUp":u.preventDefault(),a((()=>{const s=i-1;return Math.max(s,0)})());break;case"ArrowDown":u.preventDefault(),a((()=>{const s=i+1;return Math.min(s,t.length-1)})());break;case"Enter":u.preventDefault(),l&&e(l);break;case"Escape":u.preventDefault(),n(!1),a(-1)}}]},jg=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{fill:"currentColor",d:"M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z"}))};function RA(e){const t=new Map;return h.Children.map(e,r=>{var n;t.set(r.props.value,(n=r.props.text)!==null&&n!==void 0?n:r.props.value)}),t}function NA(e,t){return e===""?t:t.filter(r=>{var n;return((n=r.text)!==null&&n!==void 0?n:r.value).toLowerCase().includes(e.toLowerCase())})}const Ka=(e,t,r=!1)=>j(t?D(X,I.canvasBackground).bgColor:D(Aee,I.background).bgColor,!t&&D(X,I.canvasBackground).hoverBgColor,e?D(X,I.darkText).textColor:D(X,I.text).textColor,t&&D(X,I.lightText).textColor,r&&$e[Y.Rose][I.text].textColor,r?$e[Y.Rose][I.ring].borderColor:D(X,I.ring).borderColor),Bg=e=>e!=null&&e!=="",one=(e,t)=>{A.useEffect(()=>{const r=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])},qa=h.forwardRef((e,t)=>{const{showModal:r,setShowModal:n,parentRef:o,width:i,maxHeight:a="max-h-[228px]",children:l,className:u}=e,s=ee(e,["showModal","setShowModal","parentRef","width","maxHeight","children","className"]),[f,c]=A.useState(!1),d=A.useRef(null),g=A.useCallback((p,v)=>o.current?v-(o.current.getBoundingClientRect().left+p)<0:!1,[o]);return one(d,p=>{var v;o&&(!((v=o.current)===null||v===void 0)&&v.contains(p.target))||n(!1)}),A.useEffect(()=>{i&&c(g(i,window.innerWidth))},[g,o,i]),aA(()=>{i&&c(g(i,window.innerWidth))}),r?h.createElement("div",Object.assign({ref:To([d,t]),className:j("absolute z-10 divide-y overflow-y-auto",i?"":"w-full",f?z.none.right:z.none.left,a,D("white").bgColor,D(X,I.lightBorder).borderColor,D(X,I.lightBorder).divideColor,z.twoXs.marginTop,z.twoXs.marginBottom,ae.md.all,ge.sm.all,Ot.lg,u),style:{width:i}},s),l):null});qa.displayName="Modal";const Dl=fe("Dropdown"),ine=h.forwardRef((e,t)=>{const{defaultValue:r,value:n,onValueChange:o,placeholder:i="Select...",disabled:a=!1,icon:l,children:u,className:s}=e,f=ee(e,["defaultValue","value","onValueChange","placeholder","disabled","icon","children","className"]),[c,d]=pl(r,n),[g,p]=A.useState(!1),v=A.useRef(null),b=l,m=A.useMemo(()=>RA(u),[u]),y=h.Children.map(u,O=>O.props.value),x=O=>{d(O),p(!1),o==null||o(O)},[S,C]=Mg(x,y,g,p,c),w=Bg(c);return h.createElement("div",Object.assign({ref:To([v,t]),onKeyDown:C,className:j(Dl("root"),"relative w-full min-w-[10rem]",s)},f),h.createElement("button",{type:"button",className:j(Dl("button"),"flex justify-between items-center w-full focus:outline-none focus:ring-2",Ka(w,a),D(Y.Blue,I.lightRing).focusRingColor,b?z.xl.paddingLeft:z.twoXl.paddingLeft,z.twoXl.paddingRight,z.sm.paddingY,ae.md.all,ge.sm.all,Ot.sm),onClick:()=>p(!g),disabled:a},h.createElement("div",{className:"flex justify-start items-center truncate"},b?h.createElement(b,{className:j(Dl("icon"),"shrink-0",U.lg.height,U.lg.width,D(X,I.lightText).textColor,z.lg.marginRight),"aria-hidden":"true"}):null,h.createElement("p",{className:j(Dl("text"),"whitespace-nowrap truncate",ne.sm,Pe.md)},c?m.get(c):i)),h.createElement(jg,{className:j(Dl("arrowDownIcon"),"flex-none",U.lg.height,U.lg.width,z.twoXs.negativeMarginRight,D(X,I.lightText).textColor),"aria-hidden":"true"})),h.createElement(qa,{showModal:g,setShowModal:p,parentRef:v},h.createElement(Ur.Provider,{value:{selectedValue:c,handleValueChange:x}},h.createElement(Ai.Provider,{value:{hoveredValue:S}},h.Children.map(u,O=>h.cloneElement(O))))))});ine.displayName="Dropdown";const Qh=fe("DropdownItem"),MA=h.forwardRef((e,t)=>{const{value:r,text:n,icon:o,className:i}=e,a=ee(e,["value","text","icon","className"]),{selectedValue:l,handleValueChange:u}=A.useContext(Ur),{hoveredValue:s}=A.useContext(Ai),f=l===r,c=s===r,d=f?D(X,I.lightBackground).bgColor:c?D(X,I.canvasBackground).bgColor:D(X,I.canvasBackground).hoverBgColor,g=f?D(X,I.darkestText).textColor:D(X,I.darkText).textColor,p=o||null;return h.createElement("button",Object.assign({ref:t,type:"button",onClick:()=>u==null?void 0:u(r),className:j(Qh("root"),"flex items-center justify-start w-full truncate",z.twoXl.paddingX,z.md.paddingY,ne.sm,d,g,i)},a),p?h.createElement(p,{className:j(Qh("icon"),"flex-none",U.lg.height,U.lg.width,z.lg.marginRight,D(X,I.lightText).textColor),"aria-hidden":"true"}):null,h.createElement("p",{className:j(Qh("text"),"text-sm whitespace-nowrap truncate")},n??r))});MA.displayName="DropdownItem";const ane=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}),h.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))},jA=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}),h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))},Il=fe("MultiSelectBox"),lne=h.forwardRef((e,t)=>{const{defaultValue:r,value:n,onValueChange:o,placeholder:i="Select...",disabled:a=!1,icon:l,children:u,className:s,onKeyDown:f}=e,c=ee(e,["defaultValue","value","onValueChange","placeholder","disabled","icon","children","className","onKeyDown"]),d=l,g=A.useRef(null),[p,v]=A.useState(!1),[b,m]=pl(r,n),[y,x]=A.useState(""),S=b??[],C=S.length>0,w=C?`${S.length} Selected`:i,O=h.Children.map(u,T=>Object.assign({},T.props)),E=NA(y,O),P=new Set(E.map(T=>{var M;return(M=T.text)!==null&&M!==void 0?M:T.value})),k=E.map(T=>T.value),$=T=>{x(""),v(T)},_=T=>{let M=[];M=sA(T,S)?[..._ee(T,S)]:[...S,T],m(M),o==null||o(M)},[B,N]=Mg(_,k,p,v);return h.createElement("div",Object.assign({ref:To([g,t]),className:j(Il("root"),"relative w-full min-w-[10rem]",s),onKeyDown:T=>{N(T),f==null||f(T)}},c),h.createElement("button",{type:"button",className:j(Il("button"),"flex justify-between items-center w-full focus:outline-none focus:ring-2",Ka(C,a),D("blue",I.lightRing).focusRingColor,ae.md.all,ge.sm.all,Ot.sm,d?z.xl.paddingLeft:z.twoXl.paddingLeft,z.twoXl.paddingRight,z.sm.paddingY),onClick:()=>$(!p),disabled:a},h.createElement("div",{className:"flex justify-start items-center truncate"},d?h.createElement(d,{className:j(Il("icon"),"shrink-0",U.lg.height,U.lg.width,D(X,I.lightText).textColor,z.lg.marginRight),"aria-hidden":"true"}):null,h.createElement("p",{className:j(Il("text"),"whitespace-nowrap truncate",ne.sm,Pe.md)},w)),h.createElement("div",{className:"flex items-center"},C&&!a?h.createElement("div",{role:"button",className:j(Il("resetButton"),z.xs.marginRight),onClick:T=>{T.stopPropagation(),m([]),o==null||o([])}},h.createElement(jA,{className:j("flex-none",U.md.height,U.md.width,D(X,I.lightText).textColor),"aria-hidden":"true"})):null,h.createElement(jg,{className:j("flex-none",U.lg.height,U.lg.width,z.twoXs.negativeMarginRight,D(X,I.lightText).textColor),"aria-hidden":"true"}))),h.createElement(qa,{showModal:p,setShowModal:$,parentRef:g},h.createElement("div",{className:j("flex items-center w-full",D(X,I.canvasBackground).bgColor,z.twoXl.paddingX)},h.createElement("span",null,h.createElement(ane,{className:j("flex-none",D(X,I.lightText).textColor,z.threeXs.negativeMarginLeft,z.lg.marginRight,U.md.height,U.md.width),"aria-hidden":"true"})),h.createElement("input",{name:"search",type:"input",placeholder:"Search",className:j("w-full focus:outline-none focus:ring-none",D(X,I.darkText).textColor,D("transparent").bgColor,z.sm.paddingY,ne.sm,Pe.md),onChange:T=>x(T.target.value)})),h.createElement(Ur.Provider,{value:{selectedValue:S,handleValueChange:_}},h.createElement(Ai.Provider,{value:{hoveredValue:B}},h.Children.map(u,T=>{var M;const L=(M=T.props.text)!==null&&M!==void 0?M:T.props.value;if(P.has(String(L)))return h.cloneElement(T)})))))});lne.displayName="MultiSelectBox";const Zh=fe("MultiSelectBoxItem"),une=h.forwardRef((e,t)=>{const{value:r,text:n,className:o,onClick:i}=e,a=ee(e,["value","text","className","onClick"]),{selectedValue:l,handleValueChange:u}=A.useContext(Ur),{hoveredValue:s}=A.useContext(Ai),f=sA(r,l),c=s===r,d=f?D(X,I.lightBackground).bgColor:c?D(X,I.canvasBackground).bgColor:D(X,I.canvasBackground).hoverBgColor,g=f?D(X,I.darkestText).textColor:D(X,I.darkText).textColor;return h.createElement("button",Object.assign({ref:t,type:"button",onClick:p=>{u==null||u(r),i==null||i(p)},className:j(Zh("root"),"flex items-center justify-start w-full",z.twoXl.paddingX,z.md.paddingY,ne.sm,D(X,I.lightBackground).hoverBgColor,D(X,I.darkText).textColor,d,g,o)},a),h.createElement("input",{type:"checkbox",className:j(Zh("checkbox"),"flex-none focus:ring-none focus:outline-none cursor-pointer",D(X,I.lightRing).focusRingColor,$e[Y.Blue][I.text].textColor,D(X,I.ring).borderColor,z.lg.marginRight,ae.sm.all,ge.sm.all),checked:f,readOnly:!0}),h.createElement("p",{className:j(Zh("text"),"text-sm whitespace-nowrap truncate")},n??r))});une.displayName="MultiSelectBoxItem";const dc=fe("SelectBox"),sne=h.forwardRef((e,t)=>{const{defaultValue:r,value:n,onValueChange:o,placeholder:i="Select...",disabled:a=!1,icon:l,children:u,className:s,onKeyDown:f}=e,c=ee(e,["defaultValue","value","onValueChange","placeholder","disabled","icon","children","className","onKeyDown"]),d=A.useMemo(()=>RA(u),[u]),[g,p]=pl(r,n),[v,b]=A.useState(d.get(g||"")||""),[m,y]=A.useState(""),[x,S]=A.useState(!1),C=A.useRef(null),w=A.useRef(null),O=l,E=Bg(g);A.useEffect(()=>{g!==void 0&&b(d.get(g)||"")},[g,d]);const P=h.Children.map(u,L=>Object.assign({},L.props)),k=NA(m,P),$=new Set(k.map(L=>{var R;return(R=L.text)!==null&&R!==void 0?R:L.value})),_=k.map(L=>L.value),B=L=>{var R,F;L===!1?(R=w.current)===null||R===void 0||R.blur():((F=w.current)===null||F===void 0||F.focus(),w.current&&(w.current.selectionStart=w.current.value.length,w.current.selectionEnd=w.current.value.length)),S(L)},N=L=>{var R;y(""),L!==void 0&&b(d.get(L)||""),B(!1),p(L),(R=w.current)===null||R===void 0||R.blur(),o==null||o(L)},[T,M]=Mg(N,_,x,B,g);return h.createElement("div",Object.assign({ref:To([C,t]),onKeyDown:L=>{M(L),f==null||f(L)},className:j("relative w-full min-w-[10rem]",s)},c),h.createElement("button",{className:j(dc("root"),"flex w-full items-center overflow-hidden cursor-text focus:outline-none focus:ring-2",Ka(E,a),x&&j("ring-2",D(Y.Blue,I.ring).ringColor),D(Y.Blue,I.lightRing).focusRingColor,ae.md.all,ge.sm.all,Ot.sm),onClick:L=>{B(!x),L.preventDefault()},disabled:a},O?h.createElement(O,{className:j(dc("icon"),"shrink-0 bg-inherit",U.lg.height,U.lg.width,z.xl.marginLeft,D(X,I.lightText).textColor),"aria-hidden":"true"}):null,h.createElement("input",{ref:w,type:"text",className:j(dc("input"),"w-full focus:outline-none focus:ring-0 bg-inherit",O?z.lg.paddingLeft:z.twoXl.paddingLeft,z.sm.paddingY,ne.sm,Pe.md,ge.none.all,a?"placeholder:text-gray-400":"placeholder:text-gray-500"),placeholder:i,value:v,onChange:L=>{y(L.target.value),b(L.target.value)},onFocus:()=>B(!0),onMouseDown:L=>L.preventDefault()}),h.createElement(jg,{className:j(dc("arrowDownIcon"),"flex-none",U.lg.height,U.lg.width,z.lg.marginRight,D(X,I.lightText).textColor),"aria-hidden":"true"})),h.createElement(qa,{showModal:k.length!==0&&x,setShowModal:B,parentRef:C},h.createElement(Ur.Provider,{value:{selectedValue:g,handleValueChange:N}},h.createElement(Ai.Provider,{value:{hoveredValue:T}},h.Children.map(u,L=>{var R;const F=(R=L.props.text)!==null&&R!==void 0?R:L.props.value;return $.has(String(F))?h.cloneElement(L):null})))))});sne.displayName="SelectBox";const Jh=fe("SelectBoxItem"),cne=h.forwardRef((e,t)=>{const{value:r,text:n,icon:o,className:i,onClick:a}=e,l=ee(e,["value","text","icon","className","onClick"]),{selectedValue:u,handleValueChange:s}=A.useContext(Ur),{hoveredValue:f}=A.useContext(Ai),c=u===r,d=f===r,g=c?D(X,I.lightBackground).bgColor:d?D(X,I.canvasBackground).bgColor:D(X,I.canvasBackground).hoverBgColor,p=c?D(X,I.darkestText).textColor:D(X,I.darkText).textColor,v=o;return h.createElement("button",Object.assign({ref:t,type:"button",onClick:b=>{s==null||s(r),a==null||a(b)},className:j(Jh("root"),"flex items-center justify-start w-full truncate",z.twoXl.paddingX,z.md.paddingY,ne.sm,g,p,i)},l),v?h.createElement(v,{className:j(Jh("icon"),"flex-none",U.lg.height,U.lg.width,z.lg.marginRight,D(X,I.lightText).textColor),"aria-hidden":"true"}):null,h.createElement("p",{className:j(Jh("text"),"text-sm whitespace-nowrap truncate")},n??r))});cne.displayName="SelectBoxItem";const e0=fe("Tab"),fne=h.forwardRef((e,t)=>{const{value:r,text:n,icon:o,className:i,onClick:a}=e,l=ee(e,["value","text","icon","className","onClick"]),{selectedValue:u,handleValueChange:s}=A.useContext(Ur),f=A.useContext(vl),c=u===r,d=o,g=j(D(f,I.text).textColor,D(f,I.border).borderColor,ge.md.bottom),p=j(D("transparent").borderColor,D(X,I.lightText).textColor,D(X,I.text).hoverTextColor,D(X,I.border).hoverBorderColor,"hover:border-b-2");return h.createElement("button",Object.assign({ref:t,className:j(e0("root"),"flex whitespace-nowrap max-w-xs truncate","focus:outline-none focus:ring-0",z.twoXs.paddingX,z.sm.paddingY,z.px.negativeMarginBottom,ne.sm,Pe.md,c?g:p,i),value:r,onClick:v=>{s==null||s(r),a==null||a(v)}},l),d?h.createElement(d,{className:j(e0("icon"),"flex-none",U.lg.height,U.lg.width,z.sm.marginRight,c?D(f,I.text).textColor:D(X,I.lightText).textColor),"aria-hidden":"true"}):null,h.createElement("p",{className:j(e0("text"),"text-sm whitespace-nowrap")},n))});fne.displayName="Tab";const dne=fe("TabList"),gne=h.forwardRef((e,t)=>{const{defaultValue:r,value:n,onValueChange:o,color:i=Y.Blue,children:a,className:l}=e,u=ee(e,["defaultValue","value","onValueChange","color","children","className"]),[s,f]=pl(r,n);return h.createElement("div",Object.assign({ref:t,"aria-label":"Tabs",className:j(dne("root"),"flex justify-start overflow-x-clip",D(X,I.lightBorder).borderColor,z.twoXl.spaceX,ge.sm.bottom,l)},u),h.createElement(Ur.Provider,{value:{selectedValue:s,handleValueChange:c=>{o==null||o(c),f(c)}}},h.createElement(vl.Provider,{value:i},h.Children.map(a,c=>h.cloneElement(c)))))});gne.displayName="TabList";const hne=fe("Toggle"),vne=h.forwardRef((e,t)=>{const{defaultValue:r,value:n,onValueChange:o,color:i=Y.Blue,children:a,className:l}=e,u=ee(e,["defaultValue","value","onValueChange","color","children","className"]),[s,f]=pl(r,n);return h.createElement("div",Object.assign({ref:t,className:j(hne("root"),"flex-nowrap inline-flex justify-start",D(X,I.lightBackground).bgColor,z.twoXs.paddingAll,ae.lg.all,l)},u),h.createElement(Ur.Provider,{value:{selectedValue:s,handleValueChange:c=>{o==null||o(c),f(c)}}},h.createElement(vl.Provider,{value:i},h.Children.map(a,c=>h.cloneElement(c)))))});vne.displayName="Toggle";const t0=fe("ToggleItem"),pne=h.forwardRef((e,t)=>{const{value:r,text:n,icon:o,className:i,onClick:a}=e,l=ee(e,["value","text","icon","className","onClick"]),{selectedValue:u,handleValueChange:s}=A.useContext(Ur),f=A.useContext(vl),c=u===r,d=j(D("white").bgColor,D(f,I.text).textColor,D(X,I.lightBorder).ringColor,Ot.sm),g=j(D("transparent").bgColor,D(X,I.darkText).hoverTextColor,D(X,I.text).textColor,D("transparent").ringColor),p=o;return h.createElement("button",Object.assign({ref:t,type:"button",className:j(t0("root"),"flex items-center ring-1",z.lg.paddingX,z.xs.paddingY,ne.sm,ae.md.all,c?d:g,i),onClick:v=>{s==null||s(r),a==null||a(v)}},l),p?h.createElement(p,{className:j(t0("icon"),"opacity-70",n?z.xs.marginRight:"",U.lg.height,U.lg.width),"aria-hidden":"true"}):null,n?h.createElement("span",{className:j(t0(n),"text-sm whitespace-nowrap")},n):null)});pne.displayName="ToggleItem";const US={xs:{height:U.md.height,width:U.md.width},sm:{height:U.lg.height,width:U.lg.width},md:{height:U.lg.height,width:U.lg.width},lg:{height:U.xl.height,width:U.xl.width},xl:{height:U.xl.height,width:U.xl.width}},mne=e=>e!=="light"?{xs:{paddingX:z.md.paddingX,paddingY:z.xs.paddingY,fontSize:ne.xs},sm:{paddingX:z.twoXl.paddingX,paddingY:z.sm.paddingY,fontSize:ne.sm},md:{paddingX:z.twoXl.paddingX,paddingY:z.sm.paddingY,fontSize:ne.md},lg:{paddingX:z.twoXl.paddingX,paddingY:z.md.paddingY,fontSize:ne.lg},xl:{paddingX:z.twoXl.paddingX,paddingY:z.lg.paddingY,fontSize:ne.xl}}:{xs:{paddingX:"",paddingY:"",fontSize:ne.xs},sm:{paddingX:"",paddingY:"",fontSize:ne.sm},md:{paddingX:"",paddingY:"",fontSize:ne.md},lg:{paddingX:"",paddingY:"",fontSize:ne.lg},xl:{paddingX:"",paddingY:"",fontSize:ne.xl}},gc=(e,t)=>{switch(e){case"primary":return{textColor:D("white").textColor,hoverTextColor:D("white").textColor,bgColor:D(t,I.background).bgColor,hoverBgColor:D(t,I.darkBackground).hoverBgColor,borderColor:D(t,I.border).borderColor,focusRingColor:D(t,I.ring).focusRingColor};case"secondary":return{textColor:D(t,I.text).textColor,hoverTextColor:D(t,I.text).textColor,bgColor:D("transparent").bgColor,hoverBgColor:D(t,I.lightBackground).hoverBgColor,borderColor:D(t,I.border).borderColor,focusRingColor:D(t,I.ring).focusRingColor};case"light":return{textColor:D(t,I.text).textColor,hoverTextColor:D(t,I.darkText).hoverTextColor,bgColor:D("transparent").bgColor,borderColor:"",hoverBorderColor:"",focusRingColor:""}}},yne=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))},hd=fe("Button"),VS=({loading:e,iconSize:t,iconPosition:r,Icon:n,transitionState:o})=>{const i=r===da.Left?j(z.twoXs.negativeMarginLeft,z.xs.marginRight):j(z.twoXs.negativeMarginRight,z.xs.marginLeft),a=j(U.none.width,U.none.height),l={default:a,entering:a,entered:t,exiting:t,exited:a};return e?h.createElement(yne,{className:j(hd("icon"),"animate-spin",i,l.default,l[o]),style:{transition:"width 150ms"}}):h.createElement(n,{className:j(hd("icon"),t,i),"aria-hidden":"true"})},bne=h.forwardRef((e,t)=>{const{icon:r,iconPosition:n=da.Left,size:o=kg.SM,color:i=Y.Blue,variant:a="primary",disabled:l,loading:u=!1,loadingText:s,children:f,className:c}=e,d=ee(e,["icon","iconPosition","size","color","variant","disabled","loading","loadingText","children","className"]),g=r,p=u||l,v=g!==void 0||u,b=u&&s,m=j(US[o].height,US[o].width),y=a!=="light"?j(ae.md.all,ge.sm.all,Ot.sm):"",x=gc(a,i),S=mne(a)[o];return h.createElement(BY,{in:u,timeout:50},C=>h.createElement("button",Object.assign({ref:t,className:j(hd("root"),"flex-shrink-0 inline-flex justify-center items-center group","focus:outline-none focus:ring-2 focus:ring-offset-2",Pe.md,y,S.paddingX,S.paddingY,S.fontSize,x.textColor,x.bgColor,x.borderColor,x.focusRingColor,p?"opacity-50":j(gc(a,i).hoverTextColor,gc(a,i).hoverBgColor,gc(a,i).hoverBorderColor),c),disabled:p},d),v&&n!==da.Right?h.createElement(VS,{loading:u,iconSize:m,iconPosition:n,Icon:g,transitionState:C}):null,h.createElement("span",{className:j(hd("text"),"text-sm whitespace-nowrap")},b?s:f),v&&n===da.Right?h.createElement(VS,{loading:u,iconSize:m,iconPosition:n,Icon:g,transitionState:C}):null))});bne.displayName="Button";function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function De(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ve(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function _e(e){ve(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||bo(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Dg(e,t){ve(2,arguments);var r=_e(e),n=De(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function BA(e,t){ve(2,arguments);var r=_e(e),n=De(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function hc(e,t){if(ve(2,arguments),!t||bo(t)!=="object")return new Date(NaN);var r=t.years?De(t.years):0,n=t.months?De(t.months):0,o=t.weeks?De(t.weeks):0,i=t.days?De(t.days):0,a=t.hours?De(t.hours):0,l=t.minutes?De(t.minutes):0,u=t.seconds?De(t.seconds):0,s=_e(e),f=n||r?BA(s,n+r*12):s,c=i||o?Dg(f,i+o*7):f,d=l+a*60,g=u+d*60,p=g*1e3,v=new Date(c.getTime()+p);return v}function xne(e){return ve(1,arguments),_e(e).getDay()===0}function Cne(e){return ve(1,arguments),_e(e).getDay()===6}function wne(e,t){ve(2,arguments);var r=_e(e).getTime(),n=De(t);return new Date(r+n)}var Sne={};function Ts(){return Sne}function One(e,t){var r,n,o,i,a,l,u,s;ve(1,arguments);var f=Ts(),c=De((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(s=u.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=_e(e),g=d.getDay(),p=(go||isNaN(o.getDate()))&&(r=o)}),r||new Date(NaN)}function Tne(e,t){ve(2,arguments);var r=bi(e),n=bi(t);return r.getTime()===n.getTime()}function Ane(e){return ve(1,arguments),e instanceof Date||bo(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _ne(e){if(ve(1,arguments),!Ane(e)&&typeof e!="number")return!1;var t=_e(e);return!isNaN(Number(t))}function $ne(e){ve(1,arguments);var t=_e(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Rne(e,t){var r;ve(1,arguments);var n=e||{},o=_e(n.start),i=_e(n.end),a=i.getTime();if(!(o.getTime()<=a))throw new RangeError("Invalid interval");var l=[],u=o;u.setHours(0,0,0,0);var s=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=a;)l.push(_e(u)),u.setDate(u.getDate()+s),u.setHours(0,0,0,0);return l}function Ig(e){ve(1,arguments);var t=_e(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Nne(e){ve(1,arguments);var t=_e(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Mne(e,t){ve(2,arguments);var r=De(t);return wne(e,-r)}var jne=864e5;function Bne(e){ve(1,arguments);var t=_e(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/jne)+1}function vd(e){ve(1,arguments);var t=1,r=_e(e),n=r.getUTCDay(),o=(n=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function Dne(e){ve(1,arguments);var t=DA(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=vd(r);return n}var Ine=6048e5;function Lne(e){ve(1,arguments);var t=_e(e),r=vd(t).getTime()-Dne(t).getTime();return Math.round(r/Ine)+1}function pd(e,t){var r,n,o,i,a,l,u,s;ve(1,arguments);var f=Ts(),c=De((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(s=u.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=_e(e),g=d.getUTCDay(),p=(g=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(c+1,0,g),p.setUTCHours(0,0,0,0);var v=pd(p,t),b=new Date(0);b.setUTCFullYear(c,0,g),b.setUTCHours(0,0,0,0);var m=pd(b,t);return f.getTime()>=v.getTime()?c+1:f.getTime()>=m.getTime()?c:c-1}function zne(e,t){var r,n,o,i,a,l,u,s;ve(1,arguments);var f=Ts(),c=De((r=(n=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(s=u.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=IA(e,t),g=new Date(0);g.setUTCFullYear(d,0,c),g.setUTCHours(0,0,0,0);var p=pd(g,t);return p}var Fne=6048e5;function Wne(e,t){ve(1,arguments);var r=_e(e),n=pd(r,t).getTime()-zne(r,t).getTime();return Math.round(n/Fne)+1}function Ee(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return Ee(r==="yy"?o%100:o,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Ee(n+1,2)},d:function(t,r){return Ee(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Ee(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Ee(t.getUTCHours(),r.length)},m:function(t,r){return Ee(t.getUTCMinutes(),r.length)},s:function(t,r){return Ee(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,n-3));return Ee(i,r.length)}};const Fn=Une;var Di={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vne={G:function(t,r,n){var o=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return n.ordinalNumber(i,{unit:"year"})}return Fn.y(t,r)},Y:function(t,r,n,o){var i=IA(t,o),a=i>0?i:1-i;if(r==="YY"){var l=a%100;return Ee(l,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ee(a,r.length)},R:function(t,r){var n=DA(t);return Ee(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Ee(n,r.length)},Q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(o);case"QQ":return Ee(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(o);case"qq":return Ee(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,r,n){var o=t.getUTCMonth();switch(r){case"M":case"MM":return Fn.M(t,r);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(t,r,n){var o=t.getUTCMonth();switch(r){case"L":return String(o+1);case"LL":return Ee(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(t,r,n,o){var i=Wne(t,o);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):Ee(i,r.length)},I:function(t,r,n){var o=Lne(t);return r==="Io"?n.ordinalNumber(o,{unit:"week"}):Ee(o,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Fn.d(t,r)},D:function(t,r,n){var o=Bne(t);return r==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):Ee(o,r.length)},E:function(t,r,n){var o=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(t,r,n,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Ee(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Ee(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var o=t.getUTCDay(),i=o===0?7:o;switch(r){case"i":return String(i);case"ii":return Ee(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(t,r,n){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var o=t.getUTCHours(),i;switch(o===12?i=Di.noon:o===0?i=Di.midnight:i=o/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var o=t.getUTCHours(),i;switch(o>=17?i=Di.evening:o>=12?i=Di.afternoon:o>=4?i=Di.morning:i=Di.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Fn.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Fn.H(t,r)},K:function(t,r,n){var o=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(o,{unit:"hour"}):Ee(o,r.length)},k:function(t,r,n){var o=t.getUTCHours();return o===0&&(o=24),r==="ko"?n.ordinalNumber(o,{unit:"hour"}):Ee(o,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Fn.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Fn.s(t,r)},S:function(t,r){return Fn.S(t,r)},X:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return HS(a);case"XXXX":case"XX":return Fo(a);case"XXXXX":case"XXX":default:return Fo(a,":")}},x:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"x":return HS(a);case"xxxx":case"xx":return Fo(a);case"xxxxx":case"xxx":default:return Fo(a,":")}},O:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+XS(a,":");case"OOOO":default:return"GMT"+Fo(a,":")}},z:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+XS(a,":");case"zzzz":default:return"GMT"+Fo(a,":")}},t:function(t,r,n,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Ee(a,r.length)},T:function(t,r,n,o){var i=o._originalDate||t,a=i.getTime();return Ee(a,r.length)}};function XS(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),i=n%60;if(i===0)return r+String(o);var a=t||"";return r+String(o)+a+Ee(i,2)}function HS(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Ee(Math.abs(e)/60,2)}return Fo(e,t)}function Fo(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e),i=Ee(Math.floor(o/60),2),a=Ee(o%60,2);return n+i+r+a}const Xne=Vne;var YS=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},LA=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Hne=function(t,r){var n=t.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return YS(t,r);var a;switch(o){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",YS(o,r)).replace("{{time}}",LA(i,r))},Yne={p:LA,P:Hne};const Gne=Yne;var Kne=["D","DD"],qne=["YY","YYYY"];function Qne(e){return Kne.indexOf(e)!==-1}function Zne(e){return qne.indexOf(e)!==-1}function GS(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Jne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},eoe=function(t,r,n){var o,i=Jne[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const toe=eoe;function r0(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var roe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},noe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ooe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ioe={date:r0({formats:roe,defaultWidth:"full"}),time:r0({formats:noe,defaultWidth:"full"}),dateTime:r0({formats:ooe,defaultWidth:"full"})};const aoe=ioe;var loe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uoe=function(t,r,n,o){return loe[t]};const soe=uoe;function Ll(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var l=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[u]||e.values[l]}var s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}var coe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},foe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},doe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},goe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hoe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},voe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},poe=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},moe={ordinalNumber:poe,era:Ll({values:coe,defaultWidth:"wide"}),quarter:Ll({values:foe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ll({values:doe,defaultWidth:"wide"}),day:Ll({values:goe,defaultWidth:"wide"}),dayPeriod:Ll({values:hoe,defaultWidth:"wide",formattingValues:voe,defaultFormattingWidth:"wide"})};const yoe=moe;function zl(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?xoe(l,function(c){return c.test(a)}):boe(l,function(c){return c.test(a)}),s;s=e.valueCallback?e.valueCallback(u):u,s=r.valueCallback?r.valueCallback(s):s;var f=t.slice(a.length);return{value:s,rest:f}}}function boe(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function xoe(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var woe=/^(\d+)(th|st|nd|rd)?/i,Soe=/\d+/i,Ooe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Eoe={any:[/^b/i,/^(a|c)/i]},Poe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},koe={any:[/1/i,/2/i,/3/i,/4/i]},Toe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Aoe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_oe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$oe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Roe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Noe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Moe={ordinalNumber:Coe({matchPattern:woe,parsePattern:Soe,valueCallback:function(t){return parseInt(t,10)}}),era:zl({matchPatterns:Ooe,defaultMatchWidth:"wide",parsePatterns:Eoe,defaultParseWidth:"any"}),quarter:zl({matchPatterns:Poe,defaultMatchWidth:"wide",parsePatterns:koe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:zl({matchPatterns:Toe,defaultMatchWidth:"wide",parsePatterns:Aoe,defaultParseWidth:"any"}),day:zl({matchPatterns:_oe,defaultMatchWidth:"wide",parsePatterns:$oe,defaultParseWidth:"any"}),dayPeriod:zl({matchPatterns:Roe,defaultMatchWidth:"any",parsePatterns:Noe,defaultParseWidth:"any"})};const joe=Moe;var Boe={code:"en-US",formatDistance:toe,formatLong:aoe,formatRelative:soe,localize:yoe,match:joe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zA=Boe;var Doe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ioe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Loe=/^'([^]*?)'?$/,zoe=/''/g,Foe=/[a-zA-Z]/;function md(e,t,r){var n,o,i,a,l,u,s,f,c,d,g,p,v,b,m,y,x,S;ve(2,arguments);var C=String(t),w=Ts(),O=(n=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:w.locale)!==null&&n!==void 0?n:zA,E=De((i=(a=(l=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(s=r.locale)===null||s===void 0||(f=s.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:w.firstWeekContainsDate)!==null&&a!==void 0?a:(c=w.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=De((g=(p=(v=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b:r==null||(m=r.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&v!==void 0?v:w.weekStartsOn)!==null&&p!==void 0?p:(x=w.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&g!==void 0?g:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var k=_e(e);if(!_ne(k))throw new RangeError("Invalid time value");var $=Ene(k),_=Mne(k,$),B={firstWeekContainsDate:E,weekStartsOn:P,locale:O,_originalDate:k},N=C.match(Ioe).map(function(T){var M=T[0];if(M==="p"||M==="P"){var L=Gne[M];return L(T,O.formatLong)}return T}).join("").match(Doe).map(function(T){if(T==="''")return"'";var M=T[0];if(M==="'")return Woe(T);var L=Xne[M];if(L)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Zne(T)&&GS(T,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Qne(T)&&GS(T,t,String(e)),L(_,T,O.localize,B);if(M.match(Foe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return T}).join("");return N}function Woe(e){var t=e.match(Loe);return t?t[1].replace(zoe,"'"):e}function Xy(e){ve(1,arguments);var t=_e(e),r=t.getDay();return r}function St(e,t){ve(2,arguments);var r=_e(e),n=_e(t);return r.getTime()===n.getTime()}function Uoe(e){return ve(1,arguments),Tne(e,Date.now())}function FA(e,t){ve(2,arguments);var r=De(t);return Dg(e,-r)}function Voe(e,t){ve(2,arguments);var r=t-Xy(e);return r<=0&&(r+=7),Dg(e,r)}function Xoe(e){return ve(1,arguments),Voe(e,6)}function Hoe(e,t){ve(2,arguments);var r=Xy(e)-t;return r<=0&&(r+=7),FA(e,r)}function Yoe(e){return ve(1,arguments),Hoe(e,0)}function Uo(){return bi(Date.now())}function Goe(e,t){ve(2,arguments);var r=De(t);return BA(e,-r)}function KS(e,t){if(ve(2,arguments),!t||bo(t)!=="object")return new Date(NaN);var r=t.years?De(t.years):0,n=t.months?De(t.months):0,o=t.weeks?De(t.weeks):0,i=t.days?De(t.days):0,a=t.hours?De(t.hours):0,l=t.minutes?De(t.minutes):0,u=t.seconds?De(t.seconds):0,s=Goe(e,n+r*12),f=FA(s,i+o*7),c=l+a*60,d=u+c*60,g=d*1e3,p=new Date(f.getTime()-g);return p}const Be=fe("DateRangePicker"),Koe=e=>{const t=One(new Date);return Array.from(Array(7)).map((r,n)=>md(Dg(t,n),"EEEEEE",{locale:e}))},WA=(e,t)=>e.charAt(0).toLocaleUpperCase(t.code)+e.substring(1),UA=(e,t)=>{var r,n;const o=(n=(r=t.find(i=>i.value===e))===null||r===void 0?void 0:r.startDate)!==null&&n!==void 0?n:null;return o?bi(o):null},VA=(e,t)=>{var r,n;return bi((n=(r=t.find(o=>o.value===e))===null||r===void 0?void 0:r.endDate)!==null&&n!==void 0?n:Uo())},qoe=(e,t,r,n)=>(r&&(e=UA(r,n)),e?bi(e&&!t?e:Pne([e,t])):null),Qoe=(e,t,r,n)=>(r&&(e=VA(r,n)),e?bi(e&&!t?e:kne([e,t])):null),Zoe=[{value:"tdy",text:"Today",startDate:Uo()},{value:"w",text:"Last 7 days",startDate:KS(Uo(),{days:7})},{value:"t",text:"Last 30 days",startDate:KS(Uo(),{days:30})},{value:"m",text:"Month to Date",startDate:Ig(Uo())},{value:"y",text:"Year to Date",startDate:Nne(Uo())}],Joe=(e,t,r,n,o,i)=>j(tie(e,t,r,n,i,o),rie(e,t,r,n,i,o),nie(e,t,r,o),eie(e,t,r,n)),eie=(e,t,r,n)=>t||r?t&&r&&St(e,t)&&St(e,r)?ae.md.all:t&&r&&St(e,t)?ae.md.left:t&&!r&&!n&&St(e,t)||t&&!r&&n&&et?ae.md.left:t&&!r&&n&&e>t&&et&&ei?D("transparent").bgColor:t&&St(e,t)?D(o,I.background).bgColor:t&&!r&&n&&e>t&&et&&ei?D(X,I.lightText).textColor:Uoe(e)?t&&St(e,t)||r&&St(e,r)?D("white").textColor:j(D(o,I.text).textColor,Pe.lg):t&&St(e,t)?D("white").textColor:t&&!r&&n&&e>t&&et&&en||t&&St(e,t)||r&&St(e,r)?"":"hover:bg-gray-200",oie=(e,t,r)=>{const n=(r==null?void 0:r.code)||"en-US";if(!e&&!t)return"";if(e&&!t){const o={year:"numeric",month:"short",day:"numeric"};return e.toLocaleDateString(n,o)}if(e&&t){if(St(e,t)){const o={year:"numeric",month:"short",day:"numeric"};return e.toLocaleDateString(n,o)}if(e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()){const o={month:"short",day:"numeric"};return`${e.toLocaleDateString(n,o)} - ${t.getDate()}, ${t.getFullYear()}`}{const o={year:"numeric",month:"short",day:"numeric"};return`${e.toLocaleDateString(n,o)} - ${t.toLocaleDateString(n,o)}`}}return""},iie=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{d:"M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"}))},aie=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),h.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),h.createElement("path",{d:"M10.828 12l4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z"}))},lie=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),h.createElement("path",{id:"svg_1",d:"m0,0l24,0l0,24l-24,0l0,-24z",fill:"none"}),h.createElement("path",{id:"svg_2",d:"m14.1247,12l4.95,4.95l-1.414,1.414l-6.364,-6.364l6.364,-6.364l1.414,1.414l-4.95,4.95z"}),h.createElement("path",{id:"svg_3",d:"m7.31152,12l4.95,4.95l-1.414,1.414l-6.364,-6.364l6.364,-6.364l1.414,1.414l-4.95,4.95z"}))},uie=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),h.createElement("path",{id:"svg_1",d:"m0,0l24,0l0,24l-24,0l0,-24z",fill:"none"}),h.createElement("path",{transform:"rotate(180 15.1857 12)",id:"svg_2",d:"m14.1247,12l4.95,4.95l-1.414,1.414l-6.364,-6.364l6.364,-6.364l1.414,1.414l-4.95,4.95z"}),h.createElement("path",{transform:"rotate(180 8.37252 12)",id:"svg_3",d:"m7.31152,12l4.95,4.95l-1.414,1.414l-6.364,-6.364l6.364,-6.364l1.414,1.414l-4.95,4.95z"}))},sie=["","col-start-2","col-start-3","col-start-4","col-start-5","col-start-6","col-start-7"],cie=({enableYearPagination:e,anchorDate:t,setStartOfCurrMonth:r,locale:n})=>{const o=Ig(t),i=l=>{switch(l){case"nextMonth":r(hc(o,{months:1}));break;case"prevMonth":r(hc(o,{months:-1}));break;case"nextYear":r(hc(o,{years:1}));break;case"prevYear":r(hc(o,{years:-1}))}},a=WA(md(o,"MMMM yyyy",{locale:n}),n);return h.createElement("div",{className:j(Be("calendarHeader"),"flex justify-between items-center",z.twoXs.paddingX,z.sm.paddingY)},h.createElement("div",{className:j(Be("calendarHeaderPrevSelection"),"flex items-center space-x-1")},h.createElement("button",{type:"button",className:j(Be("calendarHeaderPrevYearButton"),"inline-flex focus:outline-none focus:ring-2",!e&&"hidden",D(X,I.canvasBackground).hoverBgColor,D(X,I.ring).borderColor,D("blue",I.lightRing).focusRingColor,z.twoXs.paddingAll,z.px.marginRight,ne.sm,Pe.md,ae.sm.all,ge.sm.all,Ot.sm),onClick:()=>i("prevYear")},h.createElement(lie,{className:j(Be("calendarHeaderPrevYearIcon"),D(X,I.darkText).textColor,U.lg.height,U.lg.width),"aria-hidden":"true"})),h.createElement("button",{type:"button",name:"prevMonth",className:j(Be("calendarHeaderPrevMonthButton"),"inline-flex focus:outline-none focus:ring-2",D(X,I.canvasBackground).hoverBgColor,D(X,I.ring).borderColor,D("blue",I.lightRing).focusRingColor,z.twoXs.paddingAll,ne.sm,Pe.md,ae.sm.all,ge.sm.all,Ot.sm),onClick:()=>i("prevMonth")},h.createElement(aie,{className:j(Be("calendarHeaderPrevMonthIcon"),D(X,I.darkText).textColor,U.lg.height,U.lg.width),"aria-hidden":"true"}))),h.createElement("h2",{className:j(Be("calendarHeaderText"),"text-elem",D(X,I.darkestText).textColor,ne.sm,Pe.lg)},a),h.createElement("div",{className:j(Be("calendarHeaderNextSelection"),"flex items-center space-x-1")},h.createElement("button",{type:"button",name:"nextMonth",className:j(Be("calendarHeaderNextMonthButton"),"inline-flex focus:outline-none focus:ring-2",D(X,I.canvasBackground).hoverBgColor,D(X,I.ring).borderColor,D("blue",I.lightRing).focusRingColor,z.twoXs.paddingAll,ne.sm,Pe.md,ae.sm.all,ge.sm.all,Ot.sm),onClick:()=>i("nextMonth")},h.createElement(iie,{className:j(Be("calendarHeaderNextMonthIcon"),D(X,I.darkText).textColor,U.lg.height,U.lg.width),"aria-hidden":"true"})),h.createElement("button",{type:"button",className:j(Be("calendarHeaderNextYearButton"),"inline-flex focus:outline-none focus:ring-2",!e&&"hidden",D(X,I.canvasBackground).hoverBgColor,D(X,I.ring).borderColor,D("blue",I.lightRing).focusRingColor,z.twoXs.paddingAll,z.px.marginLeft,ne.sm,Pe.md,ae.sm.all,ge.sm.all,Ot.sm),onClick:()=>i("nextYear")},h.createElement(uie,{className:j(Be("calendarHeaderNextYearIcon"),"shrink-0 flex-0",D(X,I.darkText).textColor,U.lg.height,U.lg.width),"aria-hidden":"true"}))))},fie=({anchorDate:e,selectedStartDate:t,selectedEndDate:r,onDateClick:n,minDate:o,maxDate:i,locale:a})=>{const[l,u]=A.useState(),s=A.useContext(vl),f=Ig(e),c=$ne(e),d=Koe(a).map(p=>WA(p,a)),g=Rne({start:xne(f)?f:Yoe(f),end:Cne(c)?c:Xoe(c)});return h.createElement(h.Fragment,null,h.createElement("div",{className:j(Be("calendarBodyWeekdays"),"grid grid-cols-7 text-center",D(X,I.ring).textColor,ne.xs,Pe.md)},d.map(p=>h.createElement("div",{key:p,className:"w-full flex justify-center"},h.createElement("div",{className:j("flex items-center justify-center w-full",U.threeXl.height)},p)))),h.createElement("div",{className:j(Be("calendarBodyDatesGrid"),"grid grid-cols-7")},g.map(p=>{const v=((b,m,y,x,S)=>m!==null&&by||!(b>=x&&b<=S))(p,o,i,f,c);return h.createElement("div",{key:p.toString(),className:j(Be("calendarBodyDate"),sie[Xy(p)],"w-full")},h.createElement("button",{type:"button",onClick:()=>n(p),onPointerEnter:()=>u==null?void 0:u(p),onPointerLeave:()=>u==null?void 0:u(void 0),className:j("w-full flex items-center justify-center",U.threeXl.height,ne.sm,Joe(p,t,r,l,v,s)),disabled:v},h.createElement("time",{dateTime:md(p,"yyyy-MM-dd",{locale:a})},md(p,"d",{locale:a}))))})))},die=({enableYearPagination:e,anchorDate:t,setStartOfCurrMonth:r,startDate:n,endDate:o,minDate:i,maxDate:a,onDateClick:l,locale:u})=>h.createElement("div",{className:j(z.lg.paddingX,z.twoXs.paddingY)},h.createElement(cie,{enableYearPagination:e,anchorDate:t,setStartOfCurrMonth:r,locale:u}),h.createElement(fie,{anchorDate:t,selectedStartDate:n,selectedEndDate:o,onDateClick:l,minDate:i,maxDate:a,locale:u})),gie=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}),h.createElement("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"}))},hie=({value:e,options:t,placeholder:r,disabled:n,calendarRef:o,showCalendar:i,setShowCalendar:a,onCalendarKeyDown:l,enableDropdown:u,dropdownRef:s,showDropdown:f,setShowDropdown:c,onDropdownKeyDown:d,locale:g,dropdownPlaceholder:p="Select",enableClear:v,onClear:b})=>{var m;const[y,x,S]=e,C=(y||x)!=null,w=Bg(S),O=C?oie(y,x,g):r,E=S?String((m=t.find(P=>P.value===S))===null||m===void 0?void 0:m.text):p;return h.createElement("div",{className:j(Be("button"),"flex items-center justify-between",D("white").bgColor,ae.md.all,Ot.sm)},h.createElement("button",{type:"button",ref:o,onClick:()=>a(!i),onKeyDown:l,className:j(Be("calendarButton"),"flex items-center w-full truncate focus:outline-none focus:ring-2",Ka(C,n),u?ge.none.right:j(ae.md.right,ge.sm.right),D(Y.Blue,I.lightRing).focusRingColor,z.twoXl.paddingX,z.sm.paddingY,ae.md.left,ge.sm.all),disabled:n},h.createElement(gie,{className:j(Be("calendarButtonIcon"),"flex-none",D(X,I.lightText).textColor,U.lg.height,U.lg.width,z.threeXs.negativeMarginLeft,z.lg.marginRight),"aria-hidden":"true"}),h.createElement("p",{className:j(Be("calendarButtonText"),"whitespace-nowrap truncate w-full text-start",ne.sm,Pe.md)},O),v&&C?h.createElement("div",{role:"button",className:j(Be("resetButton"),z.xs.marginRight),onClick:P=>{P.stopPropagation(),b()}},h.createElement(jA,{className:j("flex-none",U.md.height,U.md.width,D(X,I.lightText).textColor),"aria-hidden":"true"})):null),u?h.createElement("button",{type:"button",ref:s,onClick:()=>c(!f),className:j(Be("dropdownButton"),"inline-flex justify-between w-48 truncate focus:outline-none focus:ring-2",Ka(w,n),D(Y.Blue,I.lightRing).focusRingColor,z.twoXl.paddingX,z.sm.paddingY,z.px.negativeMarginLeft,ae.md.right,ge.sm.all),onKeyDown:d,disabled:n},h.createElement("p",{className:j(Be("dropdownButtonText"),"whitespace-nowrap truncate",ne.sm,Pe.md)},E),h.createElement(jg,{className:j(Be("dropdownButtonIcon"),"flex-none",U.lg.height,U.lg.width,z.twoXs.negativeMarginRight,D(X,I.lightText).textColor),"aria-hidden":"true"})):null)},vie=h.forwardRef((e,t)=>{var r,n,o;const{value:i,defaultValue:a,onValueChange:l,enableDropdown:u=!0,options:s,minDate:f=null,maxDate:c=null,placeholder:d="Select",dropdownPlaceholder:g="Select",disabled:p=!1,color:v=Y.Blue,enableYearPagination:b=!1,locale:m=zA,enableClear:y=!0,className:x}=e,S=ee(e,["value","defaultValue","onValueChange","enableDropdown","options","minDate","maxDate","placeholder","dropdownPlaceholder","disabled","color","enableYearPagination","locale","enableClear","className"]),C=Uo(),w=A.useRef(null),O=A.useRef(null),[E,P]=pl(a,i),[k,$]=A.useState(null),[_,B]=A.useState(!1),[N,T]=A.useState(!1),M=s??Zoe,L=E&&(r=E[2])!==null&&r!==void 0?r:null,R=E?qoe(E[0],f,L,M):null,F=E?Qoe(E[1],c,L,M):null,V=(o=(n=k??F)!==null&&n!==void 0?n:R)!==null&&o!==void 0?o:C,Q=ie=>{const Oe=UA(ie,M),ze=VA(ie,M);P([Oe,ze,ie]),l==null||l([Oe,ze,ie]),$(Ig(ze)),T(!1)},[H,Z]=Mg(Q,M.map(ie=>ie.value),N,T,L);return h.createElement(vl.Provider,{value:v},h.createElement("div",Object.assign({ref:t,className:j(Be("root"),"relative w-full",x)},S),h.createElement(hie,{value:[R,F,L],options:M,placeholder:d,disabled:p,calendarRef:w,showCalendar:_,setShowCalendar:B,onCalendarKeyDown:ie=>{ie.key==="Escape"&&(ie.preventDefault(),B(!1))},enableDropdown:u,dropdownRef:O,showDropdown:N,setShowDropdown:T,onDropdownKeyDown:Z,locale:m,dropdownPlaceholder:g,enableClear:y,onClear:()=>{P([null,null,null]),l==null||l([null,null,null])}}),h.createElement(qa,{className:Be("calendarModal"),showModal:_,setShowModal:B,parentRef:w,width:288,maxHeight:"max-h-fit"},h.createElement(die,{enableYearPagination:b,anchorDate:V,startDate:R,endDate:F,minDate:f,maxDate:c,onDateClick:ie=>{R?R&&!F?ieh.createElement(MA,{key:ie,value:ie,text:Oe})))))))});vie.displayName="DateRangePicker";const pie=e=>{var t=ee(e,[]);return h.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),h.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 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"}))},Fl=fe("TextInput"),mie=h.forwardRef((e,t)=>{const{type:r="text",placeholder:n="Type...",icon:o,error:i=!1,errorMessage:a,disabled:l=!1,className:u}=e,s=ee(e,["type","placeholder","icon","error","errorMessage","disabled","className"]),[f,c]=A.useState(!1),d=o,g=A.useRef(null),p=Bg(e.value||e.defaultValue),v=b=>{var m,y;b===!1?(m=g.current)===null||m===void 0||m.blur():(y=g.current)===null||y===void 0||y.focus(),c(b)};return h.createElement(h.Fragment,null,h.createElement("div",{className:j(Fl("root"),"relative w-full flex items-center min-w-[10rem] focus:outline-none focus:ring-2",Ka(p,l,i),D(Y.Blue,I.lightRing).focusRingColor,f&&j("ring-2",D(Y.Blue,I.ring).ringColor),ae.md.all,ge.sm.all,Ot.sm,u),onClick:()=>{l||v(!0)},onFocus:()=>{v(!0)},onBlur:()=>{v(!1)}},d?h.createElement(d,{className:j(Fl("icon"),"shrink-0",U.lg.height,U.lg.width,D(X,I.lightText).textColor,z.xl.marginLeft),"aria-hidden":"true"}):null,h.createElement("input",Object.assign({ref:To([t,g]),type:r,className:j(Fl("input"),"w-full focus:outline-none focus:ring-0",D("transparent").bgColor,d?z.lg.paddingLeft:z.twoXl.paddingLeft,i?z.lg.paddingRight:z.twoXl.paddingRight,z.sm.paddingY,ne.sm,Pe.md,ge.none.all,l?"placeholder:text-gray-400":"placeholder:text-gray-500"),placeholder:n,disabled:l},s)),i?h.createElement(pie,{className:j(Fl("errorIcon"),z.xl.marginRight,U.lg.height,U.lg.width,$e[Y.Rose][I.text].textColor),"aria-hidden":"true"}):null),a?h.createElement("p",{className:j(Fl("errorMessage"),"text-sm",$e[Y.Rose][I.text].textColor)},a):null)});mie.displayName="TextInput";const qt=h.forwardRef((e,t)=>{const{color:r=Y.Gray,className:n,children:o}=e;return h.createElement("p",{ref:t,className:j(D(r,I.text).textColor,ne.sm,Pe.sm,n)},o)});qt.displayName="Text";const yie=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement("b",Object.assign({ref:t,className:j("text-inherit",ne.sm,Pe.lg,n)},o),r)});yie.displayName="Bold";const bie=h.forwardRef((e,t)=>{const{children:r,className:n}=e,o=ee(e,["children","className"]);return h.createElement("i",Object.assign({ref:t,className:j("italic text-inherit",ne.sm,n)},o),r)});bie.displayName="Italic";const Xn=h.forwardRef((e,t)=>{const{color:r=Y.Gray,children:n,className:o}=e,i=ee(e,["color","children","className"]);return h.createElement("p",Object.assign({ref:t,className:j(D(r,I.darkText).textColor,ne.lg,Pe.md,o)},i),n)});Xn.displayName="Title";const xie=h.forwardRef((e,t)=>{const{color:r=Y.Gray,children:n,className:o}=e,i=ee(e,["color","children","className"]);return h.createElement("p",Object.assign({ref:t,className:j(D(r,I.lightText).textColor,ne.md,Pe.sm,o)},i),n)});xie.displayName="Subtitle";const Cie=h.forwardRef((e,t)=>{const{color:r=Y.Gray,children:n,className:o}=e,i=ee(e,["color","children","className"]);return h.createElement("p",Object.assign({ref:t,className:j(D(r,I.darkText).textColor,ne.threeXl,Pe.lg,o)},i),n)});Cie.displayName="Metric";const Wl=fe("Callout"),wie=h.forwardRef((e,t)=>{const{title:r,icon:n,color:o=Y.Blue,className:i,children:a}=e,l=ee(e,["title","icon","color","className","children"]),u=n;return h.createElement("div",Object.assign({ref:t,className:j(Wl("root"),"flex flex-col overflow-hidden",D(o,I.canvasBackground).bgColor,D(o,I.darkBorder).borderColor,z.lg.paddingY,z.lg.paddingRight,z.twoXl.paddingLeft,ne.sm,ae.md.all,ge.lg.left,i)},l),h.createElement("div",{className:j(Wl("header"),"flex items-start",D(o,I.darkText).textColor)},u?h.createElement(u,{className:j(Wl("icon"),"flex-none",U.lg.height,U.lg.width,z.xs.marginRight),"aria-hidden":"true"}):null,h.createElement("h4",{className:j(Wl("title"),"text-elem",Pe.lg)},r)),h.createElement("p",{className:j(Wl("body"),"overflow-y-auto",D(o,I.darkText).textColor,z.sm.marginTop)},a))});wie.displayName="Callout";const Li=fe("CategoryBar"),Sie=({categoryPercentageValues:e})=>{const t=uA(e);let r=0,n=0;return h.createElement("div",{className:j(Li("labels"),"relative flex w-full",D(X,I.text).textColor,z.sm.marginBottom,U.lg.height,ne.sm)},e.slice(0,e.length).map((o,i)=>{r+=o;const a=(o>=.1*t||n>=.09*t)&&t-r>=.15*t&&r>=.1*t;return n=a?0:n+=o,h.createElement("div",{key:`item-${i}`,className:"flex items-center justify-end",style:{width:`${o}%`}},h.createElement("span",{className:j(a?"block":"hidden","left-1/2 translate-x-1/2")},r))}),h.createElement("div",{className:j("absolute bottom-0 flex items-center",z.none.left)},"0"),h.createElement("div",{className:j("absolute bottom-0 flex items-center",z.none.right)},t))},Oie=h.forwardRef((e,t)=>{const{categoryPercentageValues:r=[],colors:n=gl,percentageValue:o,showLabels:i=!0,tooltip:a,showAnimation:l=!0,className:u}=e,s=ee(e,["categoryPercentageValues","colors","percentageValue","showLabels","tooltip","showAnimation","className"]),f=((g,p,v)=>{if(g===void 0)return"";let b=0;for(let m=0;m=g)return x}return""})(o,r,n),{tooltipProps:c,getReferenceProps:d}=$n();return h.createElement(h.Fragment,null,h.createElement(on,Object.assign({text:a},c)),h.createElement("div",Object.assign({ref:t,className:j(Li("root"),u)},s),i?h.createElement(Sie,{categoryPercentageValues:r}):null,h.createElement("div",{className:j(Li("barWrapper"),"relative w-full flex items-center",U.xs.height)},h.createElement("div",{className:j("flex-1 flex items-center h-full overflow-hidden",ae.md.all)},r.map((g,p)=>h.createElement("div",{key:`item-${p}`,className:j(Li("categoryBar"),"h-full",$e[n[p]][I.background].bgColor),style:{width:`${g}%`}}))),o!==void 0?h.createElement("div",Object.assign({ref:c.refs.setReference,className:j(Li("markerWrapper"),"absolute right-1/2 -translate-x-1/2",U.lg.width),style:{left:`${o}%`,transition:l?"all 2s":""}},d),h.createElement("div",{className:j(Li("marker"),"ring-2 mx-auto",f,D("white").ringColor,U.md.height,U.twoXs.width,ae.lg.all)})):null)))});Oie.displayName="CategoryBar";const qS={[Re.Increase]:{bgColor:$e[Y.Emerald][I.background].bgColor},[Re.ModerateIncrease]:{bgColor:$e[Y.Emerald][I.background].bgColor},[Re.Decrease]:{bgColor:$e[Y.Rose][I.background].bgColor},[Re.ModerateDecrease]:{bgColor:$e[Y.Rose][I.background].bgColor},[Re.Unchanged]:{bgColor:$e[Y.Orange][I.background].bgColor}},Ul=fe("DeltaBar"),Eie=h.forwardRef((e,t)=>{const{percentageValue:r,isIncreasePositive:n=!0,showAnimation:o=!0,className:i,tooltip:a}=e,l=ee(e,["percentageValue","isIncreasePositive","showAnimation","className","tooltip"]),u=lA(r>=0?Re.Increase:Re.Decrease,n),{tooltipProps:s,getReferenceProps:f}=$n();return h.createElement(h.Fragment,null,h.createElement(on,Object.assign({text:a},s)),h.createElement("div",Object.assign({ref:t,className:j(Ul("root"),"relative flex items-center w-full",D(X,I.lightBackground).bgColor,U.xs.height,ae.lg.all,i)},l),h.createElement("div",{className:"flex justify-end h-full w-1/2"},r<0?h.createElement("div",Object.assign({ref:s.refs.setReference,className:j(Ul("negativeDeltaBar"),qS[u].bgColor,ae.full.left),style:{width:`${Math.abs(r)}%`,transition:o?"all 2s":""}},f)):null),h.createElement("div",{className:j(Ul("separator"),"ring-2 z-10",D(X,I.background).bgColor,D("white").ringColor,U.md.height,U.twoXs.width,ae.lg.all)}),h.createElement("div",{className:j(Ul("positiveDeltaBarWrapper"),"flex justify-start h-full w-1/2")},r>=0?h.createElement("div",Object.assign({ref:s.refs.setReference,className:j(Ul("positiveDeltaBar"),qS[u].bgColor,ae.full.right),style:{width:`${Math.abs(r)}%`,transition:o?"all 2s":""}},f)):null)))});Eie.displayName="DeltaBar";const n0=fe("MarkerBar"),Pie=h.forwardRef((e,t)=>{const{percentageValue:r,color:n=Y.Blue,tooltip:o,showAnimation:i=!0,className:a}=e,l=ee(e,["percentageValue","color","tooltip","showAnimation","className"]),u=D(n,I.background).bgColor,s=D(n,I.lightBackground).bgColor,{tooltipProps:f,getReferenceProps:c}=$n();return h.createElement(h.Fragment,null,h.createElement(on,Object.assign({text:o},f)),h.createElement("div",Object.assign({ref:t,className:j(n0("root"),"relative flex items-center w-full",s,U.xs.height,ae.lg.all,a)},l),h.createElement("div",Object.assign({ref:f.refs.setReference,className:j(n0("markerWrapper"),"absolute right-1/2 -translate-x-1/2",U.lg.width),style:{left:`${r}%`,transition:i?"all 2s":""}},c),h.createElement("div",{className:j(n0("marker"),"ring-2 mx-auto",u,D("white").ringColor,U.md.height,U.twoXs.width,ae.lg.all)}))))});Pie.displayName="MarkerBar";const Vl=fe("ProgressBar"),kie=h.forwardRef((e,t)=>{const{percentageValue:r,label:n,color:o=Y.Blue,tooltip:i,showAnimation:a=!0,className:l}=e,u=ee(e,["percentageValue","label","color","tooltip","showAnimation","className"]),s=D(o,I.background).bgColor,f=D(o,I.lightBackground).bgColor,{tooltipProps:c,getReferenceProps:d}=$n();return h.createElement(h.Fragment,null,h.createElement(on,Object.assign({text:i},c)),h.createElement("div",Object.assign({ref:t,className:j(Vl("root"),"flex items-center w-full",l)},u),h.createElement("div",Object.assign({ref:c.refs.setReference,className:j(Vl("progressBarWrapper"),"relative flex items-center w-full",f,U.xs.height,ae.lg.all)},d),h.createElement("div",{className:j(Vl("progressBar"),s,"flex-col h-full",ae.lg.all),style:{width:`${r}%`,transition:a?"all 2s":""}})),n?h.createElement("div",{className:j(Vl("labelWrapper"),"w-16 truncate text-right",D(X,I.darkText).textColor,z.sm.marginLeft)},h.createElement("p",{className:j(Vl("label"),"shrink-0 whitespace-nowrap truncate",ne.sm,Pe.sm)},n)):null))});kie.displayName="ProgressBar";const vc=fe("RangeBar"),Tie=h.forwardRef((e,t)=>{const{percentageValue:r,minPercentageValue:n,maxPercentageValue:o,markerTooltip:i,rangeTooltip:a,showAnimation:l=!0,color:u=Y.Blue,className:s}=e,f=ee(e,["percentageValue","minPercentageValue","maxPercentageValue","markerTooltip","rangeTooltip","showAnimation","color","className"]),{tooltipProps:c,getReferenceProps:d}=$n(),{tooltipProps:g,getReferenceProps:p}=$n();return h.createElement("div",Object.assign({ref:t,className:j(vc("root"),"relative flex items-center w-full",D(X,I.lightBackground).bgColor,U.xs.height,ae.lg.all,s)},f),h.createElement(on,Object.assign({text:a},g)),h.createElement("div",Object.assign({ref:g.refs.setReference,className:j(vc("rangeBar"),"absolute h-full",D(X,I.background).bgColor,ae.lg.all),style:{left:`${n}%`,width:o-n+"%",transition:l?"all 2s":""}},p)),h.createElement(on,Object.assign({text:i},c)),h.createElement("div",Object.assign({ref:c.refs.setReference,className:j(vc("markerWrapper"),"absolute right-1/2 -translate-x-1/2",U.lg.width),style:{left:`${r}%`,transition:l?"all 2s":""}},d),h.createElement("div",{className:j(vc("marker"),"ring-2 mx-auto",D(u,I.background).bgColor,D("white").ringColor,U.md.height,U.twoXs.width,ae.lg.all)})))});Tie.displayName="RangeBar";const Wn=fe("BarList"),Aie=h.forwardRef((e,t)=>{const{data:r=[],color:n=Y.Blue,valueFormatter:o=Ps,showAnimation:i=!0,className:a}=e,l=ee(e,["data","color","valueFormatter","showAnimation","className"]),u=(f=>{let c=-1/0;return f.forEach(d=>{c=Math.max(c,d)}),f.map(d=>d===0?0:Math.max(d/c*100,1))})(r.map(f=>f.value)),s=U.threeXl.height;return h.createElement("div",Object.assign({ref:t,className:j(Wn("root"),"flex justify-between",z.threeXl.spaceX,a)},l),h.createElement("div",{className:j(Wn("bars"),"relative w-full")},r.map((f,c)=>{var d,g,p;const v=f.icon;return h.createElement("div",{key:(d=f.key)!==null&&d!==void 0?d:f.name,className:j(Wn("bar"),"flex items-center",s,D((g=f.color)!==null&&g!==void 0?g:n,I.lightBackground).bgColor,ae.sm.all,c===r.length-1?z.none.marginBottom:z.sm.marginBottom),style:{width:`${u[c]}%`,transition:i?"all 2s":""}},h.createElement("div",{className:j("absolute max-w-full flex",z.sm.left)},v?h.createElement(v,{className:j(Wn("barIcon"),"flex-none",U.lg.height,U.lg.width,z.md.marginRight,D(X,I.lightText).textColor),"aria-hidden":"true"}):null,f.href?h.createElement("a",{href:f.href,target:(p=f.target)!==null&&p!==void 0?p:"_blank",rel:"noreferrer",className:j(Wn("barLink"),"whitespace-nowrap truncate text-blue-500","no-underline hover:underline visited:text-blue-500",ne.sm)},f.name):h.createElement("p",{className:j(Wn("barText"),"whitespace-nowrap truncate",D(X,I.darkText).textColor,ne.sm)},f.name)))})),h.createElement("div",{className:"text-right min-w-min"},r.map((f,c)=>{var d;return h.createElement("div",{key:(d=f.key)!==null&&d!==void 0?d:f.name,className:j(Wn("labelWrapper"),"flex justify-end items-center",s,c===r.length-1?z.none.marginBottom:z.sm.marginBottom)},h.createElement("p",{className:j(Wn("labelText"),"whitespace-nowrap truncate",D(X,I.darkText).textColor,ne.sm)},o(f.value)))})))});Aie.displayName="BarList";const XA=fe("Tracker"),HA=h.forwardRef((e,t)=>{const{color:r,tooltip:n}=e,o=ee(e,["color","tooltip"]),{tooltipProps:i,getReferenceProps:a}=$n();return h.createElement("div",Object.assign({ref:To([t,i.refs.setReference]),className:j(XA("trackingBlock"),"w-full h-full",D(r??"gray",I.background).bgColor,ae.md.all)},o,a),h.createElement(on,Object.assign({text:n},i)))});HA.displayName="TrackerBlock";const _ie=h.forwardRef((e,t)=>{const{data:r=[],className:n}=e,o=ee(e,["data","className"]);return h.createElement("div",Object.assign({ref:t,className:j(XA("root"),"w-full flex items-center h-10",z.threeXs.spaceX,n)},o),r.map((i,a)=>{var l;return h.createElement(HA,{key:(l=i.key)!==null&&l!==void 0?l:a,color:i.color,tooltip:i.tooltip})}))});_ie.displayName="Tracker";const Lg=({noDataText:e="No data"})=>h.createElement($A,{alignItems:"center",justifyContent:"center",className:j("w-full h-full border border-dashed",D(X,I.lightBorder).borderColor)},h.createElement(qt,null,e)),YA=h.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,stack:i=!1,colors:a=gl,valueFormatter:l=Ps,startEndOnly:u=!1,showXAxis:s=!0,showYAxis:f=!0,yAxisWidth:c=56,showAnimation:d=!0,animationDuration:g=1500,showTooltip:p=!0,showLegend:v=!0,showGridLines:b=!0,showGradient:m=!0,autoMinValue:y=!1,curveType:x="linear",minValue:S,maxValue:C,connectNulls:w=!1,allowDecimals:O=!0,className:E,noDataText:P}=e,k=ee(e,["data","categories","index","stack","colors","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","showAnimation","animationDuration","showTooltip","showLegend","showGridLines","showGradient","autoMinValue","curveType","minValue","maxValue","connectNulls","allowDecimals","className","noDataText"]),[$,_]=A.useState(60),B=By(n,a),N=Dy(y,S,C);return h.createElement("div",Object.assign({ref:t,className:j("w-full h-80",E)},k),h.createElement(tg,{width:"100%",height:"100%"},r!=null&&r.length?h.createElement(Tee,{data:r},b?h.createElement(Og,{strokeDasharray:"3 3",horizontal:!0,vertical:!1}):null,h.createElement(An,{hide:!s,dataKey:o,tick:{transform:"translate(0, 6)"},ticks:u?[r[0][o],r[r.length-1][o]]:void 0,style:{fontSize:"12px",fontFamily:"Inter; Helvetica",color:"red"},interval:"preserveStartEnd",tickLine:!1,axisLine:!1,padding:{left:10,right:10},minTickGap:5}),h.createElement(_n,{width:c,hide:!f,axisLine:!1,tickLine:!1,type:"number",domain:N,tick:{transform:"translate(-3, 0)"},style:{fontSize:"12px",fontFamily:"Inter; Helvetica"},tickFormatter:l,allowDecimals:O}),p?h.createElement(er,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:({active:T,payload:M,label:L})=>h.createElement(Ly,{active:T,payload:M,label:L,valueFormatter:l,categoryColors:B}),position:{y:0}}):null,v?h.createElement(xn,{verticalAlign:"top",height:$,content:({payload:T})=>Iy({payload:T},B,_)}):null,n.map(T=>{var M;const L=Ya[(M=B.get(T))!==null&&M!==void 0?M:Y.Gray];return h.createElement("defs",{key:T},m?h.createElement("linearGradient",{id:B.get(T),x1:"0",y1:"0",x2:"0",y2:"1"},h.createElement("stop",{offset:"5%",stopColor:L,stopOpacity:.4}),h.createElement("stop",{offset:"95%",stopColor:L,stopOpacity:0})):h.createElement("linearGradient",{id:B.get(T),x1:"0",y1:"0",x2:"0",y2:"1"},h.createElement("stop",{stopColor:L,stopOpacity:.3})))}),n.map(T=>{var M;return h.createElement(ko,{key:T,name:T,type:x,dataKey:T,stroke:Ya[(M=B.get(T))!==null&&M!==void 0?M:Y.Gray],fill:`url(#${B.get(T)})`,strokeWidth:2,dot:!1,isAnimationActive:d,animationDuration:g,stackId:i?"a":void 0,connectNulls:w})})):h.createElement(Lg,{noDataText:P})))});YA.displayName="AreaChart";/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $ie=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rie=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),QS=e=>{const t=Rie(e);return t.charAt(0).toUpperCase()+t.slice(1)},GA=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Nie=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Mie={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jie=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},u)=>A.createElement("svg",{ref:u,...Mie,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:GA("lucide",o),...!i&&!Nie(l)&&{"aria-hidden":"true"},...l},[...a.map(([s,f])=>A.createElement(s,f)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Er=(e,t)=>{const r=A.forwardRef(({className:n,...o},i)=>A.createElement(jie,{ref:i,iconNode:t,className:GA(`lucide-${$ie(QS(e))}`,`lucide-${e}`,n),...o}));return r.displayName=QS(e),r};/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bie=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Die=Er("badge-check",Bie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Iie=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Lie=Er("chart-column",Iie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zie=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Fie=Er("dollar-sign",zie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wie=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Uie=Er("file-text",Wie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vie=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Xie=Er("gauge",Vie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hie=[["path",{d:"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17",key:"geh8rc"}],["path",{d:"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"1fto5m"}],["path",{d:"m2 16 6 6",key:"1pfhp9"}],["circle",{cx:"16",cy:"9",r:"2.9",key:"1n0dlu"}],["circle",{cx:"6",cy:"5",r:"3",key:"151irh"}]],KA=Er("hand-coins",Hie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yie=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],Gie=Er("newspaper",Yie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kie=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],qie=Er("package",Kie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qie=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],Zie=Er("receipt",Qie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jie=[["path",{d:"M12 10.189V14",key:"1p8cqu"}],["path",{d:"M12 2v3",key:"qbqxhf"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6",key:"qpkstq"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76",key:"7tigtc"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1924j5"}]],eae=Er("ship",Jie);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tae=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],rae=Er("shopping-cart",tae);/** * @license lucide-react v0.555.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nae=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],oae=Er("trending-up",nae);function iae(){return h.createElement("div",{className:"fixed inset-0 flex items-center justify-center bg-white dark:bg-gray-900 z-50"},h.createElement("div",{className:"animate-splash opacity-0 scale-75"},h.createElement("img",{src:pR,alt:"Logo",className:"h-32 object-contain"})))}function ht(e,t,r="tree",n){window.parent.postMessage({type:"open_tab",payload:{model:e,res_id:t,view_mode:r,domain:n}},"*")}const it=new URLSearchParams(window.location.search);it.get("sale_id");const aae=it.get("pnl_amount"),lae=it.get("exposure"),uae=it.get("topay"),sae=it.get("toreceive"),cae=it.get("draft_p"),fae=it.get("val_p"),dae=it.get("conf_p"),gae=it.get("draft_s"),hae=it.get("val_s"),vae=it.get("conf_s"),pae=it.get("shipment_d"),mae=it.get("shipment_s"),yae=it.get("shipment_r"),bae=it.get("lot_m"),xae=it.get("lot_a"),Cae=it.get("lot_al"),wae=it.get("inv_p"),Sae=it.get("inv_s"),Oae=it.get("move_cash"),Eae=[{date:"2025-01-01",value:12},{date:"2025-01-02",value:14},{date:"2025-01-03",value:10},{date:"2025-01-04",value:18},{date:"2025-01-05",value:22}],pc=[{status:"Draft",count:cae,color:"bg-teal-500",onClick:()=>ht("purchase.purchase",void 0,"tree")},{status:"Validated",count:fae,color:"bg-cyan-500",onClick:()=>ht("purchase.purchase",void 0,"tree")},{status:"Confirmed",count:dae,color:"bg-blue-500",onClick:()=>ht("purchase.purchase",void 0,"tree")}],mc=[{status:"Draft",count:gae,color:"bg-teal-500",onClick:()=>ht("sale.sale",void 0,"tree")},{status:"Validated",count:hae,color:"bg-cyan-500",onClick:()=>ht("sale.sale",void 0,"tree")},{status:"Confirmed",count:vae,color:"bg-blue-500",onClick:()=>ht("sale.sale",void 0,"tree")}],yc=[{status:"Draft",count:pae,color:"bg-teal-500",onClick:()=>ht("stock.shipment.in",void 0,"tree")},{status:"Started",count:mae,color:"bg-cyan-500",onClick:()=>ht("stock.shipment.in",void 0,"tree")},{status:"Received",count:yae,color:"bg-blue-500",onClick:()=>ht("stock.shipment.in",void 0,"tree")}],bc=[{status:"Matched",count:bae,color:"bg-teal-500",onClick:()=>ht("lot.report",void 0,"tree")},{status:"Available",count:xae,color:"bg-cyan-500",onClick:()=>ht("lot.report",void 0,"tree")},{status:"All",count:Cae,color:"bg-blue-500",onClick:()=>ht("lot.report",void 0,"tree")}],Pae=[{title:"PNL ($)",value:aae,trend:"+12% vs last month",trendValue:12,icon:Lie,action:()=>ht("pnl.bi",[1],"form")},{title:"Exposure (Mt)",value:lae,trend:"-3% this month",trendValue:-3,icon:Xie,action:()=>ht("open.position.report",void 0,"tree")},{title:"Amount to pay ($)",value:uae,trend:"+5% this month",trendValue:5,icon:Fie,action:()=>ht("account.invoice",void 0,"tree")},{title:"Amount to receive ($)",value:sae,trend:"-1% this month",trendValue:-1,icon:KA,action:()=>ht("account.invoice",void 0,"tree")}],kae=[{type:"Forex",label:"EUR/USD: 1.1400",trend:"+0.88%",color:"#1E3A8A",date:"30-11-2025",icon:oae},{type:"Logistic",label:"INTHIRA NAREE loaded",date:"08-10-2025",color:"#1E3A8A",icon:Gie}],Tae=[{id:"purchase_invoices",title:"Purchase Invoices",value:wae,trend:"-2% this week",icon:Zie,action:()=>ht("account.invoice",void 0,"tree")},{id:"sale_invoices",title:"Sale Invoices",value:Sae,trend:"+2% this week",icon:Uie,action:()=>ht("account.invoice",void 0,"tree")},{id:"payments_to_validate",title:"Payments To Validate",value:Oae,trend:"+12% this week",icon:KA,action:()=>ht("account.move",void 0,"tree")}];function Aae(){const[e,t]=A.useState(!0);if(A.useEffect(()=>{const a=setTimeout(()=>t(!1),1500);return()=>clearTimeout(a)},[]),e)return h.createElement(iae,null);const r=pc.reduce((a,l)=>a+Number(l.count),0),n=mc.reduce((a,l)=>a+Number(l.count),0),o=yc.reduce((a,l)=>a+Number(l.count),0),i=bc.reduce((a,l)=>a+Number(l.count),0);return h.createElement("div",{className:"flex min-h-screen bg-gray-50 dark:bg-gray-900 p-6"},h.createElement("main",{className:"flex-1"},h.createElement("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6"},Pae.map(a=>{const l=a.icon;return h.createElement(Vn,{key:a.title,onClick:a.action,className:"relative p-4 flex flex-col items-center gap-2 shadow-md rounded-xl bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 overflow-hidden"},h.createElement(l,{className:"absolute top-2 right-2 w-10 h-10 opacity-10"}),h.createElement(Xn,{className:"text-sm text-center"},a.title),h.createElement(qt,{className:"text-4xl font-bold text-center"},a.value),h.createElement("button",{onClick:a.action,className:"mt-4 text-xs text-teal-600 underline"},"View details"))})),h.createElement("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4"},h.createElement(Vn,{className:"p-4 rounded-xl border border-gray-200 dark:border-gray-700 shadow-md bg-white dark:bg-gray-800 hover:shadow-lg transition"},h.createElement("div",{className:"flex items-center justify-between mb-4"},h.createElement(Xn,{className:"text-base"},"Purchases"),h.createElement(rae,{className:"w-6 h-6"})),h.createElement(qt,{className:"text-3xl font-bold mb-1"},r),h.createElement(qt,{className:"text-xs text-gray-500 mb-4"},"Across all statuses"),h.createElement("div",{className:"w-full h-1 bg-gray-200 dark:bg-gray-600 mb-4"}),h.createElement("div",{className:"flex w-full h-3 rounded overflow-hidden mb-4 bg-gray-200 dark:bg-gray-600"},pc.map((a,l)=>h.createElement("div",{key:l,className:`${a.color} h-3`,style:{width:`${a.count/r*100}%`,marginRight:lh.createElement("div",{key:a.status,onClick:a.onClick,className:"flex items-center gap-2 cursor-pointer p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700"},h.createElement("span",{className:`w-3 h-3 rounded ${a.color}`}),h.createElement("span",{className:"flex-1"},a.status),h.createElement("span",{className:"text-gray-500"},"(",a.count," / ",(a.count/r*100).toFixed(1),"%)"))))),h.createElement(Vn,{className:"p-4 rounded-xl border border-gray-200 dark:border-gray-700 shadow-md bg-white dark:bg-gray-800 hover:shadow-lg transition"},h.createElement("div",{className:"flex items-center justify-between mb-4"},h.createElement(Xn,{className:"text-base"},"Sales"),h.createElement(Die,{className:"w-6 h-6"})),h.createElement(qt,{className:"text-3xl font-bold mb-1"},n),h.createElement(qt,{className:"text-xs text-gray-500 mb-4"},"Across all statuses"),h.createElement("div",{className:"w-full h-1 bg-gray-200 dark:bg-gray-600 mb-4"}),h.createElement("div",{className:"flex w-full h-3 rounded overflow-hidden mb-4 bg-gray-200 dark:bg-gray-600"},mc.map((a,l)=>h.createElement("div",{key:l,className:`${a.color} h-3`,style:{width:`${a.count/n*100}%`,marginRight:lh.createElement("div",{key:a.status,onClick:a.onClick,className:"flex items-center gap-2 cursor-pointer p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700"},h.createElement("span",{className:`w-3 h-3 rounded ${a.color}`}),h.createElement("span",{className:"flex-1"},a.status),h.createElement("span",{className:"text-gray-500"},"(",a.count," / ",(a.count/n*100).toFixed(1),"%)"))))),h.createElement(Vn,{className:"p-4 rounded-xl border border-gray-200 dark:border-gray-700 shadow-md bg-white dark:bg-gray-800 hover:shadow-lg transition"},h.createElement("div",{className:"flex items-center justify-between mb-4"},h.createElement(Xn,{className:"text-base"},"Shipments"),h.createElement(eae,{className:"w-6 h-6"})),h.createElement(qt,{className:"text-3xl font-bold mb-1"},o),h.createElement(qt,{className:"text-xs text-gray-500 mb-4"},"Across all statuses"),h.createElement("div",{className:"w-full h-1 bg-gray-200 dark:bg-gray-600 mb-4"}),h.createElement("div",{className:"flex w-full h-3 rounded overflow-hidden mb-4 bg-gray-200 dark:bg-gray-600"},yc.map((a,l)=>h.createElement("div",{key:l,className:`${a.color} h-3`,style:{width:`${a.count/o*100}%`,marginRight:lh.createElement("div",{key:a.status,onClick:a.onClick,className:"flex items-center gap-2 cursor-pointer p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700"},h.createElement("span",{className:`w-3 h-3 rounded ${a.color}`}),h.createElement("span",{className:"flex-1"},a.status),h.createElement("span",{className:"text-gray-500"},"(",a.count," / ",(a.count/o*100).toFixed(1),"%)"))))),h.createElement(Vn,{className:"p-4 rounded-xl border border-gray-200 dark:border-gray-700 shadow-md bg-white dark:bg-gray-800 hover:shadow-lg transition"},h.createElement("div",{className:"flex items-center justify-between mb-4"},h.createElement(Xn,{className:"text-base"},"Lots"),h.createElement(qie,{className:"w-6 h-6"})),h.createElement(qt,{className:"text-3xl font-bold mb-1"},i),h.createElement(qt,{className:"text-xs text-gray-500 mb-4"},"Across all statuses"),h.createElement("div",{className:"w-full h-1 bg-gray-200 dark:bg-gray-600 mb-4"}),h.createElement("div",{className:"flex w-full h-3 rounded overflow-hidden mb-4 bg-gray-200 dark:bg-gray-600"},bc.map((a,l)=>h.createElement("div",{key:l,className:`${a.color} h-3`,style:{width:`${a.count/i*100}%`,marginRight:lh.createElement("div",{key:a.status,onClick:a.onClick,className:"flex items-center gap-2 cursor-pointer p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-700"},h.createElement("span",{className:`w-3 h-3 rounded ${a.color}`}),h.createElement("span",{className:"flex-1"},a.status),h.createElement("span",{className:"text-gray-500"},"(",a.count," / ",(a.count/i*100).toFixed(1),"%)"))))),h.createElement(Vn,{className:"p-4 rounded-xl border border-gray-200 dark:border-gray-700 shadow-md bg-white dark:bg-gray-800 hover:shadow-lg transition"},h.createElement(Xn,{className:"text-base mb-4"},"Last News"),h.createElement("div",{className:"space-y-3 text-sm"},kae.map((a,l)=>{const u=a.icon;return h.createElement("div",{key:l,className:"flex justify-between items-center p-2 rounded hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer"},h.createElement("div",null,h.createElement("div",{className:"flex items-center gap-2"},h.createElement(u,{className:"w-4 h-4"}),h.createElement("span",{className:"font-semibold"},a.type)),h.createElement("div",{className:"ml-6"},h.createElement("span",{style:{color:a.color}},a.label),a.trend&&h.createElement("span",{className:"ml-2 text-green-600"},a.trend))),h.createElement("span",{className:"text-gray-500 text-xs"},a.date))}))),Tae.map(a=>{const l=a.icon;return h.createElement(Vn,{key:a.id,className:"p-4 rounded-xl border border-gray-200 dark:border-gray-700 shadow-md bg-white dark:bg-gray-800 hover:shadow-lg transition"},h.createElement("div",{className:"flex justify-between items-center mb-4"},h.createElement(Xn,{className:"text-base"},a.title),h.createElement(l,{className:"w-6 h-6"})),h.createElement(qt,{className:"text-3xl font-bold mb-1"},a.value),h.createElement(qt,{className:"text-xs text-gray-500 mb-4"},a.trend),h.createElement("div",{className:"w-full h-1 bg-gray-200 dark:bg-gray-600 mb-4"}),h.createElement(YA,{data:Eae,index:"date",categories:["value"],colors:["teal-300"],className:"h-16",showXAxis:!1,showYAxis:!1,showGridLines:!1,showLegend:!1,curve:"monotone"}),h.createElement("button",{onClick:a.action,className:"mt-4 text-xs text-teal-600 underline"},"View details"))}))))}o0.createRoot(document.getElementById("root")).render(h.createElement(Aae,null));