1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Footer-jNwmKyvo.js","assets/vendor-ui-DJvGTYJ6.js","assets/vendor-react-Bd92bGsU.js","assets/input-BMbStMnT.js","assets/index-IX6YitBI.js","assets/vendor-query-CKMvX0p9.js","assets/index-B86K3-4v.css","assets/logo-footer-Csd4iOMv.js","assets/social-instagram-fNbxGln6.js","assets/ConsentFields-qM9LUf8p.js"])))=>i.map(i=>d[i]); 2import{c as t,d as e,_ as r,u as n,H as o}from"./index-IX6YitBI.js";import{j as i}from"./vendor-ui-DJvGTYJ6.js";import{h as a,g as c,r as u,R as l,f as s}from"./vendor-react-Bd92bGsU.js";import{H as f}from"./Header-DB0Yt2DC.js";import{U as p,A as d}from"./UseCasesSection-DDVVlHzK.js";import{B as h}from"./button-Bo4j96kz.js";import{I as y}from"./input-BMbStMnT.js";import{P as v}from"./PhoneInput-9_vf5x00.js";import{T as m}from"./textarea-BsgOxUzM.js";import{C as b,b as g,c as x,d as w,a as j}from"./card-XM351wS1.js";import{A as O,a as S,b as P,c as A}from"./accordion-C1rQV3hw.js";import{g as E}from"./imageUtils-BF9cvato.js";import{C as k}from"./ConsentFields-qM9LUf8p.js";import{S as M}from"./smartphone-H60ay2H7.js";import{A as N}from"./arrow-left-right-B4xnowg5.js";import{S as _}from"./sliders-horizontal-CVrHw8Y9.js";import{T}from"./trending-up-DcDzn76s.js";import{D as C}from"./dollar-sign-3ZRg2MoQ.js";import{G as D}from"./graduation-cap-BU9NuFgf.js";import{U as I}from"./users-r_PIehCX.js";import{H as B}from"./headphones-BtvIMzo2.js";import{N as R}from"./network-DV-x-hVz.js";import{L}from"./laptop-zX78uXc4.js";import{P as z}from"./package-CU7qhlBu.js";import{C as $}from"./circle-check-big-C75GUSOq.js";import{A as U}from"./arrow-right-CtsvEJUR.js";import{C as F}from"./chart-column-EaUS1GcD.js";import{D as q}from"./download-BrSyyeXi.js";import{F as W}from"./file-text-piep_E54.js";import{P as H}from"./phone-DoE6JJMc.js";import{E as X}from"./external-link-BhjAFe_0.js";import{M as Y}from"./mail-n5Mr31Wq.js";import{M as G}from"./map-pin-CJjSnv6e.js";import"./vendor-query-CKMvX0p9.js";import"./logo-header-DOizFUbU.js";import"./icon-zoho-ujB-We8C.js";import"./chevron-down-Dguyh1By.js";import"./play-D-pV4poW.js";import"./chevron-left-D96LZU4i.js";import"./chevron-right-XHppJGh9.js"; 3/** 4 * @license lucide-react v0.462.0 - ISC 5 * 6 * This source code is licensed under the ISC license. 7 * See the LICENSE file in the root directory of this source tree. 8 */const V=t("DoorOpen",[["path",{d:"M13 4h3a2 2 0 0 1 2 2v14",key:"hrm0s9"}],["path",{d:"M2 20h3",key:"1gaodv"}],["path",{d:"M13 20h9",key:"s90cdi"}],["path",{d:"M10 12v.01",key:"vx6srw"}],["path",{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z",key:"199qr4"}]]),K=t("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]),Z=t("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]); 9/** 10 * @license lucide-react v0.462.0 - ISC 11 * 12 * This source code is licensed under the ISC license. 13 * See the LICENSE file in the root directory of this source tree. 14 */var J=Array.isArray,Q="object"==typeof a&&a&&a.Object===Object&&a,tt=Q,et="object"==typeof self&&self&&self.Object===Object&&self,rt=tt||et||Function("return this")(),nt=rt.Symbol,ot=nt,it=Object.prototype,at=it.hasOwnProperty,ct=it.toString,ut=ot?ot.toStringTag:void 0;var lt=function(t){var e=at.call(t,ut),r=t[ut];try{t[ut]=void 0;var n=!0}catch(i){}var o=ct.call(t);return n&&(e?t[ut]=r:delete t[ut]),o},st=Object.prototype.toString;var ft=lt,pt=function(t){return st.call(t)},dt=nt?nt.toStringTag:void 0;
vendor: 4,235 bytes, line 14
14var ht=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ft(t):pt(t)};var yt=function(t){return null!=t&&"object"==typeof t},vt=ht,mt=yt;var bt=function(t){return"symbol"==typeof t||mt(t)&&"[object Symbol]"==vt(t)},gt=J,xt=bt,wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jt=/^\w*$/;var Ot=function(t,e){if(gt(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!xt(t))||(jt.test(t)||!wt.test(t)||null!=e&&t in Object(e))};var St=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Pt=c(St);var At=ht,Et=St;var kt=function(t){if(!Et(t))return!1;var e=At(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const Mt=c(kt);var Nt,_t=rt["__core-js_shared__"],Tt=(Nt=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||""))?"Symbol(src)_1."+Nt:"";var Ct=function(t){return!!Tt&&Tt in t},Dt=Function.prototype.toString;var It=function(t){if(null!=t){try{return Dt.call(t)}catch(e){}try{return t+""}catch(e){}}return""},Bt=kt,Rt=Ct,Lt=St,zt=It,$t=/^\[object .+?Constructor\]$/,Ut=Function.prototype,Ft=Object.prototype,qt=Ut.toString,Wt=Ft.hasOwnProperty,Ht=RegExp("^"+qt.call(Wt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Xt=function(t){return!(!Lt(t)||Rt(t))&&(Bt(t)?Ht:$t).test(zt(t))},Yt=function(t,e){return null==t?void 0:t[e]};var Gt=function(t,e){var r=Yt(t,e);return Xt(r)?r:void 0},Vt=Gt(Object,"create"),Kt=Vt;var Zt=function(){this.__data__=Kt?Kt(null):{},this.size=0};var Jt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Qt=Vt,te=Object.prototype.hasOwnProperty;var ee=function(t){var e=this.__data__;if(Qt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return te.call(e,t)?e[t]:void 0},re=Vt,ne=Object.prototype.hasOwnProperty;var oe=Vt;var ie=Zt,ae=Jt,ce=ee,ue=function(t){var e=this.__data__;return re?void 0!==e[t]:ne.call(e,t)},le=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=oe&&void 0===e?"__lodash_hash_undefined__":e,this};function se(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}se.prototype.clear=ie,se.prototype.delete=ae,se.prototype.get=ce,se.prototype.has=ue,se.prototype.set=le;var fe=se;var pe=function(){this.__data__=[],this.size=0};var de=function(t,e){return t===e||t!=t&&e!=e},he=de;var ye=function(t,e){for(var r=t.length;r--;)if(he(t[r][0],e))return r;return-1},ve=ye,me=Array.prototype.splice;var be=ye;var ge=ye;var xe=ye;var we=pe,je=function(t){var e=this.__data__,r=ve(e,t);return!(r<0)&&(r==e.length-1?e.pop():me.call(e,r,1),--this.size,!0)},Oe=function(t){var e=this.__data__,r=be(e,t);return r<0?void 0:e[r][1]},Se=function(t){return ge(this.__data__,t)>-1},Pe=function(t,e){var r=this.__data__,n=xe(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Ae(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ae.prototype.clear=we,Ae.prototype.delete=je,Ae.prototype.get=Oe,Ae.prototype.has=Se,Ae.prototype.set=Pe;var Ee=Ae,ke=Gt(rt,"Map"),Me=fe,Ne=Ee,_e=ke;var Te=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ce=function(t,e){var r=t.__data__;return Te(e)?r["string"==typeof e?"string":"hash"]:r.map},De=Ce;var Ie=Ce;var Be=Ce;var Re=Ce;var Le=function(){this.size=0,this.__data__={hash:new Me,map:new(_e||Ne),string:new Me}},ze=function(t){var e=De(this,t).delete(t);return this.size-=e?1:0,e},$e=function(t){return Ie(this,t).get(t)},Ue=function(t){return Be(this,t).has(t)},Fe=function(t,e){var r=Re(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function qe(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}qe.prototype.clear=Le,qe.prototype.delete=ze,qe.prototype.get=$e,qe.prototype.has=Ue,qe.prototype.set=Fe;var We=qe,He=We;function Xe(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);
14var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Xe.Cache||He),r}Xe.Cache=He;var Ye=Xe;const Ge=c(Ye);var Ve=Ye;var Ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ze=/\\(\\)?/g,Je=function(t){var e=Ve(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ke,function(t,r,n,o){e.push(n?o.replace(Ze,"$1"):r||t)}),e});var Qe=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},tr=Qe,er=J,rr=bt,nr=nt?nt.prototype:void 0,or=nr?nr.toString:void 0;var ir=function t(e){if("string"==typeof e)return e;if(er(e))return tr(e,t)+"";if(rr(e))return or?or.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},ar=ir;var cr=function(t){return null==t?"":ar(t)},ur=J,lr=Ot,sr=Je,fr=cr;var pr=function(t,e){return ur(t)?t:lr(t,e)?[t]:sr(fr(t))},dr=bt;var hr=function(t){if("string"==typeof t||dr(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},yr=pr,vr=hr;var mr=function(t,e){for(var r=0,n=(e=yr(e,t)).length;null!=t&&r<n;)t=t[vr(e[r++])];return r&&r==n?t:void 0},br=mr;var gr=function(t,e,r){var n=null==t?void 0:br(t,e);return void 0===n?r:n};const xr=c(gr);const wr=c(function(t){return null==t});var jr=ht,Or=J,Sr=yt;const Pr=c(function(t){return"string"==typeof t||!Or(t)&&Sr(t)&&"[object String]"==jr(t)});var Ar,Er={exports:{}},kr={},Mr=Symbol.for("react.element"),Nr=Symbol.for("react.portal"),_r=Symbol.for("react.fragment"),Tr=Symbol.for("react.strict_mode"),Cr=Symbol.for("react.profiler"),Dr=Symbol.for("react.provider"),Ir=Symbol.for("react.context"),Br=Symbol.for("react.server_context"),Rr=Symbol.for("react.forward_ref"),Lr=Symbol.for("react.suspense"),zr=Symbol.for("react.suspense_list"),$r=Symbol.for("react.memo"),Ur=Symbol.for("react.lazy"),Fr=Symbol.for("react.offscreen");function qr(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case Mr:switch(t=t.type){case _r:case Cr:case Tr:case Lr:case zr:return t;default:switch(t=t&&t.$$typeof){case Br:case Ir:case Rr:case Ur:case $r:case Dr:return t;default:return e}}case Nr:return e}}}Ar=Symbol.for("react.module.reference"),kr.ContextConsumer=Ir,kr.ContextProvider=Dr,kr.Element=Mr,kr.ForwardRef=Rr,kr.Fragment=_r,kr.Lazy=Ur,kr.Memo=$r,kr.Portal=Nr,kr.Profiler=Cr,kr.StrictMode=Tr,kr.Suspense=Lr,kr.SuspenseList=zr,kr.isAsyncMode=function(){return!1},kr.isConcurrentMode=function(){return!1},kr.isContextConsumer=function(t){return qr(t)===Ir},kr.isContextProvider=function(t){return qr(t)===Dr},kr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===Mr},kr.isForwardRef=function(t){return qr(t)===Rr},kr.isFragment=function(t){return qr(t)===_r},kr.isLazy=function(t){return qr(t)===Ur},kr.isMemo=function(t){return qr(t)===$r},kr.isPortal=function(t){return qr(t)===Nr},kr.isProfiler=function(t){return qr(t)===Cr},kr.isStrictMode=function(t){return qr(t)===Tr},kr.isSuspense=function(t){return qr(t)===Lr},kr.isSuspenseList=function(t){return qr(t)===zr},kr.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===_r||t===Cr||t===Tr||t===Lr||t===zr||t===Fr||"object"==typeof t&&null!==t&&(t.$$typeof===Ur||t.$$typeof===$r||t.$$typeof===Dr||t.$$typeof===Ir||t.$$typeof===Rr||t.$$typeof===Ar||void 0!==t.getModuleId)},kr.typeOf=qr,Er.exports=kr;var Wr=Er.exports,Hr=ht,Xr=yt;var Yr=function(t){return"number"==typeof t||Xr(t)&&"[object Number]"==Hr(t)};const Gr=c(Yr);var Vr=Yr;const Kr=c(function(t){return Vr(t)&&t!=+t});var Zr=function(t){return 0===t?0:t>0?1:-1},Jr=function(t){return Pr(t)&&t.indexOf("%")===t.length-1},Qr=function(t){return Gr(t)&&!Kr(t)},tn=function(t){return Qr(t)||Pr(t)},en=0,rn=function(t){var e=++en;return"".concat(t||"").concat(e)},nn=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Qr(t)&&!Pr(t))return n;if(Jr(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return Kr(r)&&(r=n),o&&r>e&&(r=e),r},on=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},an=function(t,e){return Qr(t)&&Qr(e)?function(r){return t+r*(e-t)}:function(){return e}};function cn(t,e,r){return t&&t.length?t.find(function(t){return t&&("function"==typeof e?e(t):xr(t,e))===r}):null}function un(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function ln(t){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var sn=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
14dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],fn=["points","pathLength"],pn={svg:["viewBox","children"],polygon:fn,polyline:fn},dn=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
14Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],hn=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(u.isValidElement(t)&&(r=t.props),!Pt(r))return null;var n={};return Object.keys(r).forEach(function(t){dn.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})}),n},yn=function(t,e,r){if(!Pt(t)||"object"!==ln(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];dn.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))}),n},vn=["children"],mn=["children"];function bn(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var gn={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},xn=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},wn=null,jn=null,On=function t(e){if(e===wn&&Array.isArray(jn))return jn;var r=[];return u.Children.forEach(e,function(e){wr(e)||(Wr.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))}),jn=r,wn=e,r};function Sn(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return xn(t)}):[xn(e)],On(t).forEach(function(t){var e=xr(t,"type.displayName")||xr(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function Pn(t,e){var r=Sn(t,e);return r&&r[0]}var An=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!Qr(r)||r<=0||!Qr(n)||n<=0)},En=["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"],kn=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(u.isValidElement(t)&&(n=t.props),!Pt(n))return null;var o={};
14return Object.keys(n).forEach(function(t){var i;(function(t,e,r,n){var o,i=null!==(o=null==pn?void 0:pn[n])&&void 0!==o?o:[];return!Mt(t)&&(n&&i.includes(e)||sn.includes(e))||r&&dn.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])}),o},Mn=function t(e,r){if(e===r)return!0;var n=u.Children.count(e);if(n!==u.Children.count(r))return!1;if(0===n)return!0;if(1===n)return Nn(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var i=e[o],a=r[o];if(Array.isArray(i)||Array.isArray(a)){if(!t(i,a))return!1}else if(!Nn(i,a))return!1}return!0},Nn=function(t,e){if(wr(t)&&wr(e))return!0;if(!wr(t)&&!wr(e)){var r=t.props||{},n=r.children,o=bn(r,vn),i=e.props||{},a=i.children,c=bn(i,mn);return n&&a?un(o,c)&&Mn(n,a):!n&&!a&&un(o,c)}return!1},_n=function(t,e){var r=[],n={};return On(t).forEach(function(t,o){if(function(t){return t&&t.type&&Pr(t.type)&&En.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=xn(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}}),r},Tn=["children","width","height","viewBox","className","style","title","desc"];function Cn(){return Cn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cn.apply(this,arguments)}function Dn(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function In(t){var r=t.children,n=t.width,o=t.height,i=t.viewBox,a=t.className,c=t.style,u=t.title,s=t.desc,f=Dn(t,Tn),p=i||{width:n,height:o,x:0,y:0},d=e("recharts-surface",a);return l.createElement("svg",Cn({},kn(f,!0,"svg"),{className:d,width:n,height:o,style:c,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),l.createElement("title",null,u),l.createElement("desc",null,s),r)}var Bn=["children","className"];function Rn(){return Rn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Rn.apply(this,arguments)}function Ln(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var zn=l.forwardRef(function(t,r){var n=t.children,o=t.className,i=Ln(t,Bn),a=e("recharts-layer",o);return l.createElement("g",Rn({className:a},kn(i,!0),{ref:r}),n)}),$n=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]};var Un=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i};var Fn=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Un(t,e,r)},qn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Wn=function(t){return qn.test(t)};var Hn=function(t){return t.split("")},Xn="\\ud800-\\udfff",Yn="["+Xn+"]",Gn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Vn="\\ud83c[\\udffb-\\udfff]",Kn="[^"+Xn+"]",Zn="(?:\\ud83c[\\udde6-\\uddff]){2}",Jn="[\\ud800-\\udbff][\\udc00-\\udfff]",Qn="(?:"+Gn+"|"+Vn+")"+"?",to="[\\ufe0e\\ufe0f]?",eo=to+Qn+("(?:\\u200d(?:"+[Kn,Zn,Jn].join("|")+")"+to+Qn+")*"),ro="(?:"+[Kn+Gn+"?",Gn,Zn,Jn,Yn].join("|")+")",no=RegExp(Vn+"(?="+Vn+")|"+ro+eo,"g");var oo=Hn,io=Wn,ao=function(t){return t.match(no)||[]};var co=Fn,uo=Wn,lo=function(t){return io(t)?ao(t):oo(t)},so=cr;const fo=c(function(t){return function(e){e=so(e);var r=uo(e)?lo(e):void 0,n=r?r[0]:e.charAt(0),o=r?co(r,1).join(""):e.slice(1);return n[t]()+o}}("toUpperCase"));function po(t){return function(){return t}}const ho=Math.cos,yo=Math.sin,vo=Math.sqrt,mo=Math.PI,bo=2*mo,go=Math.PI,xo=2*go,wo=1e-6,jo=xo-wo;function Oo(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class So{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Oo:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Oo;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n}
14,${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>wo)if(Math.abs(s*c-u*l)>wo&&o){let p=r-i,d=n-a,h=c*c+u*u,y=p*p+d*d,v=Math.sqrt(h),m=Math.sqrt(f),b=o*Math.tan((go-Math.acos((h+f-y)/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>wo&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*d)},${this._x1=t+x*c},${this._y1=e+x*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>wo||Math.abs(this._y1-l)>wo)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%xo+xo),f>jo?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>wo&&this._append`A${r},${r},0,${+(f>=go)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Po(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new So(e)}function Ao(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Eo(t){this._context=t}function ko(t){return new Eo(t)}function Mo(t){return t[0]}function No(t){return t[1]}function _o(t,e){var r=po(!0),n=null,o=ko,i=null,a=Po(c);function c(c){var u,l,s,f=(c=Ao(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Mo:po(t),e="function"==typeof e?e:void 0===e?No:po(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:po(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:po(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:po(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function To(t,e,r){var n=null,o=po(!0),i=null,a=ko,c=null,u=Po(l);function l(l){var s,f,p,d,h,y=(l=Ao(l)).length,v=!1,m=new Array(y),b=new Array(y);for(null==i&&(c=a(h=u())),s=0;s<=y;++s){if(!(s<y&&o(d=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],b[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(d,s,l),b[s]=+e(d,s,l),c.point(n?+n(d,s,l):m[s],r?+r(d,s,l):b[s]))}if(h)return c=null,h+""||null}function s(){return _o().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Mo:po(+t),e="function"==typeof e?e:po(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?No:po(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:po(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:po(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:po(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:po(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:po(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:po(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:po(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}Eo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class Co{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}const Do={draw(t,e){const r=vo(e/mo);t.moveTo(r,0),t.arc(0,0,r,0,bo)}},Io={draw(t,e){const r=vo(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Bo=vo(1/3),Ro=2*Bo,Lo={draw(t,e){const r=vo(e/Ro),n=r*Bo;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},zo={draw(t,e){const r=vo(e),n=-r/2;t.rect(n,n,r,r)}},$o=yo(mo/10)/yo(7*mo/10),Uo=yo(bo/10)*$o,Fo=-ho(bo/10)*$o,qo={draw(t,e){const r=vo(.8908130915292852*e),n=Uo*r,o=Fo*r;t.moveTo(0,-r),t.lineTo(n,o);for(let i=1;i<5;++i){const e=bo*i/5,a=ho(e),c=yo(e);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}},Wo=vo(3),Ho={draw(t,e){const r=-vo(e/(3*Wo));t.moveTo(0,2*r),t.lineTo(-Wo*r,-r),t.lineTo(Wo*r,-r),t.closePath()}},Xo=-.5,Yo=vo(3)/2,Go=1/vo(12),Vo=3*(Go/2+1),Ko={draw(t,e){const r=vo(e/Vo),n=r/2,o=r*Go,i=n,a=r*Go+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(Xo*n-Yo*o,Yo*n+Xo*o),t.lineTo(Xo*i-Yo*a,Yo*i+Xo*a),t.lineTo(Xo*c-Yo*u,Yo*c+Xo*u),t.lineTo(Xo*n+Yo*o,Xo*o-Yo*n),t.lineTo(Xo*i+Yo*a,Xo*a-Yo*i),t.lineTo(Xo*c+Yo*u,Xo*u-Yo*c),t.closePath()}};function Zo(){}function Jo(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Qo(t){this._context=t}function ti(t){this._context=t}function ei(t){this._context=t}function ri(t){this._context=t}function ni(t){return t<0?-1:1}function oi(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(ni(i)+ni(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function ii(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ai(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function ci(t){this._context=t}function ui(t){this._context=new li(t)}function li(t){this._context=t}function si(t){this._context=t}function fi(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function pi(t,e){this._context=t,this._t=e}function di(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function hi(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function yi(t,e){return t[e]}function vi(t){const e=[];return e.key=t,e}function mi(t){return(mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Qo.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:Jo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Jo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ti.prototype={areaStart:Zo,areaEnd:Zo,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)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Jo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ei.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Jo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ri.prototype={areaStart:Zo,areaEnd:Zo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},ci.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:ai(this,this._t0,ii(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ai(this,ii(this,r=oi(this,t,e)),r);break;default:ai(this,this._t0,r=oi(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(ui.prototype=Object.create(ci.prototype)).point=function(t,e){ci.prototype.point.call(this,e,t)},li.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},si.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=fi(t),o=fi(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},pi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var bi=["type","size","sizeType"];function gi(){return gi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
14for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gi.apply(this,arguments)}function xi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function wi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xi(Object(r),!0).forEach(function(e){ji(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xi(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ji(t,e,r){var n;return n=function(t,e){if("object"!=mi(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==mi(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oi(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Si={symbolCircle:Do,symbolCross:Io,symbolDiamond:Lo,symbolSquare:zo,symbolStar:qo,symbolTriangle:Ho,symbolWye:Ko},Pi=Math.PI/180,Ai=function(t){var r,n,o=t.type,i=void 0===o?"circle":o,a=t.size,c=void 0===a?64:a,u=t.sizeType,s=void 0===u?"area":u,f=wi(wi({},Oi(t,bi)),{},{type:i,size:c,sizeType:s}),p=f.className,d=f.cx,h=f.cy,y=kn(f,!0);return d===+d&&h===+h&&c===+c?l.createElement("path",gi({}
14,y,{className:e("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(h,")"),d:(r=function(t){var e="symbol".concat(fo(t));return Si[e]||Do}(i),n=function(t,e){let r=null,n=Po(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:po(t||Do),e="function"==typeof e?e:po(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:po(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:po(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(r).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Pi;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),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}}(c,s,i)),n())})):null};function Ei(t){return(Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ki(){return ki=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ki.apply(this,arguments)}function Mi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ni(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bi(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _i(t,e,r){return e=Ci(e),function(t,e){if(e&&("object"===Ei(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ti()?Reflect.construct(e,r||[],Ci(t).constructor):e.apply(t,r))}function Ti(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ti=function(){return!!t})()}function Ci(t){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Di(t,e){return(Di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ii(t,e,r){return(e=Bi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bi(t){var e=function(t,e){if("object"!=Ei(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ei(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ei(e)?e:e+""}Ai.registerSymbol=function(t,e){Si["symbol".concat(fo(t))]=e};var Ri=32,Li=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),_i(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Di(t,e)}(t,u.PureComponent),Ni(t,[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Ri/6,o=Ri/3,i=t.inactive?e:t.color;if("plainline"===t.type)return l.createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Ri,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return l.createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n H").concat(Ri,"M").concat(2*o,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return l.createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(Ri,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(l.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
14e%2?Mi(Object(r),!0).forEach(function(e){Ii(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mi(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t);return delete a.legendIcon,l.cloneElement(t.legendIcon,a)}return l.createElement(Ai,{fill:i,cx:r,cy:r,size:Ri,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,r=this.props,n=r.payload,o=r.iconSize,i=r.layout,a=r.formatter,c=r.inactiveColor,u={x:0,y:0,width:Ri,height:Ri},s={display:"horizontal"===i?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(r,n){var i=r.formatter||a,p=e(Ii(Ii({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",r.inactive));if("none"===r.type)return null;var d=Mt(r.value)?null:r.value;$n(!Mt(r.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=r.inactive?c:r.color;return l.createElement("li",ki({className:p,style:s,key:"legend-item-".concat(n)},yn(t.props,r,n)),l.createElement(In,{width:o,height:o,viewBox:u,style:f},t.renderIcon(r)),l.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},i?i(d,r,n):d))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return l.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}();Ii(Li,"displayName","Legend"),Ii(Li,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var zi=Ee;var $i=Ee,Ui=ke,Fi=We;var qi=Ee,Wi=function(){this.__data__=new zi,this.size=0},Hi=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Xi=function(t){return this.__data__.get(t)},Yi=function(t){return this.__data__.has(t)},Gi=function(t,e){var r=this.__data__;if(r instanceof $i){var n=r.__data__;if(!Ui||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Fi(n)}return r.set(t,e),this.size=r.size,this};function Vi(t){var e=this.__data__=new qi(t);this.size=e.size}Vi.prototype.clear=Wi,Vi.prototype.delete=Hi,Vi.prototype.get=Xi,Vi.prototype.has=Yi,Vi.prototype.set=Gi;var Ki=Vi;var Zi=We,Ji=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Qi=function(t){return this.__data__.has(t)};function ta(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Zi;++e<r;)this.add(t[e])}ta.prototype.add=ta.prototype.push=Ji,ta.prototype.has=Qi;var ea=ta;var ra=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var na=function(t,e){return t.has(e)},oa=ea,ia=ra,aa=na;var ca=function(t,e,r,n,o,i){var a=1&r,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=i.get(t),s=i.get(e);if(l&&s)return l==e&&s==t;var f=-1,p=!0,d=2&r?new oa:void 0;for(i.set(t,e),i.set(e,t);++f<c;){var h=t[f],y=e[f];if(n)var v=a?n(y,h,f,e,t,i):n(h,y,f,t,e,i);if(void 0!==v){if(v)continue;p=!1;break}if(d){if(!ia(e,function(t,e){if(!aa(d,e)&&(h===t||o(h,t,r,n,i)))return d.push(e)})){p=!1;break}}else if(h!==y&&!o(h,y,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p};var ua=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r},la=rt.Uint8Array,sa=de,fa=ca,pa=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r},da=ua,ha=nt?nt.prototype:void 0,ya=ha?ha.valueOf:void 0;var va=function(t,e,r,n,o,i,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new la(t),new la(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return sa(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=pa;case"[object Set]":var u=1&n;if(c||(c=da),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=fa(c(t),c(e),n,o,i,a);return a.delete(t),s;case"[object Symbol]":if(ya)return ya.call(t)==ya.call(e)}return!1};var ma=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},ba=ma,ga=J;var xa=function(t,e,r){var n=e(t);return ga(t)?n:ba(n,r(t))};var wa=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i},ja=function(){return[]}
vendor: 4,515 bytes, line 14
14,Oa=Object.prototype.propertyIsEnumerable,Sa=Object.getOwnPropertySymbols,Pa=Sa?function(t){return null==t?[]:(t=Object(t),wa(Sa(t),function(e){return Oa.call(t,e)}))}:ja;var Aa=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Ea=ht,ka=yt;var Ma,Na,_a,Ta,Ca,Da,Ia,Ba,Ra=function(t){return ka(t)&&"[object Arguments]"==Ea(t)},La=yt,za=Object.prototype,$a=za.hasOwnProperty,Ua=za.propertyIsEnumerable,Fa=Ra(function(){return arguments}())?Ra:function(t){return La(t)&&$a.call(t,"callee")&&!Ua.call(t,"callee")},qa={exports:{}};Ma=qa,_a=rt,Ta=function(){return!1},Ca=(Na=qa.exports)&&!Na.nodeType&&Na,Da=Ca&&Ma&&!Ma.nodeType&&Ma,Ia=Da&&Da.exports===Ca?_a.Buffer:void 0,Ba=(Ia?Ia.isBuffer:void 0)||Ta,Ma.exports=Ba;var Wa=qa.exports,Ha=/^(?:0|[1-9]\d*)$/;var Xa=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Ha.test(t))&&t>-1&&t%1==0&&t<e};var Ya=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Ga=ht,Va=Ya,Ka=yt,Za={};Za["[object Float32Array]"]=Za["[object Float64Array]"]=Za["[object Int8Array]"]=Za["[object Int16Array]"]=Za["[object Int32Array]"]=Za["[object Uint8Array]"]=Za["[object Uint8ClampedArray]"]=Za["[object Uint16Array]"]=Za["[object Uint32Array]"]=!0,Za["[object Arguments]"]=Za["[object Array]"]=Za["[object ArrayBuffer]"]=Za["[object Boolean]"]=Za["[object DataView]"]=Za["[object Date]"]=Za["[object Error]"]=Za["[object Function]"]=Za["[object Map]"]=Za["[object Number]"]=Za["[object Object]"]=Za["[object RegExp]"]=Za["[object Set]"]=Za["[object String]"]=Za["[object WeakMap]"]=!1;var Ja=function(t){return Ka(t)&&Va(t.length)&&!!Za[Ga(t)]};var Qa=function(t){return function(e){return t(e)}},tc={exports:{}};!function(t,e){var r=Q,n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(e){}}();t.exports=a}(tc,tc.exports);var ec=tc.exports,rc=Ja,nc=Qa,oc=ec&&ec.isTypedArray,ic=oc?nc(oc):rc,ac=Aa,cc=Fa,uc=J,lc=Wa,sc=Xa,fc=ic,pc=Object.prototype.hasOwnProperty;var dc=function(t,e){var r=uc(t),n=!r&&cc(t),o=!r&&!n&&lc(t),i=!r&&!n&&!o&&fc(t),a=r||n||o||i,c=a?ac(t.length,String):[],u=c.length;for(var l in t)!e&&!pc.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||sc(l,u))||c.push(l);return c},hc=Object.prototype;var yc=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||hc)};var vc=function(t,e){return function(r){return t(e(r))}},mc=vc(Object.keys,Object),bc=yc,gc=mc,xc=Object.prototype.hasOwnProperty;var wc=kt,jc=Ya;var Oc=function(t){return null!=t&&jc(t.length)&&!wc(t)},Sc=dc,Pc=function(t){if(!bc(t))return gc(t);var e=[];for(var r in Object(t))xc.call(t,r)&&"constructor"!=r&&e.push(r);return e},Ac=Oc;var Ec=function(t){return Ac(t)?Sc(t):Pc(t)},kc=xa,Mc=Pa,Nc=Ec;var _c=function(t){return kc(t,Nc,Mc)},Tc=Object.prototype.hasOwnProperty;var Cc=function(t,e,r,n,o,i){var a=1&r,c=_c(t),u=c.length;if(u!=_c(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Tc.call(e,s)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var d=!0;i.set(t,e),i.set(e,t);for(var h=a;++l<u;){var y=t[s=c[l]],v=e[s];if(n)var m=a?n(v,y,s,e,t,i):n(y,v,s,t,e,i);if(!(void 0===m?y===v||o(y,v,r,n,i):m)){d=!1;break}h||(h="constructor"==s)}if(d&&!h){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(d=!1)}return i.delete(t),i.delete(e),d},Dc=Gt(rt,"DataView"),Ic=Gt(rt,"Promise"),Bc=Gt(rt,"Set"),Rc=Dc,Lc=ke,zc=Ic,$c=Bc,Uc=Gt(rt,"WeakMap"),Fc=ht,qc=It,Wc="[object Map]",Hc="[object Promise]",Xc="[object Set]",Yc="[object WeakMap]",Gc="[object DataView]",Vc=qc(Rc),Kc=qc(Lc),Zc=qc(zc),Jc=qc($c),Qc=qc(Uc),tu=Fc;(Rc&&tu(new Rc(new ArrayBuffer(1)))!=Gc||Lc&&tu(new Lc)!=Wc||zc&&tu(zc.resolve())!=Hc||$c&&tu(new $c)!=Xc||Uc&&tu(new Uc)!=Yc)&&(tu=function(t){var e=Fc(t),r="[object Object]"==e?t.constructor:void 0,n=r?qc(r):"";if(n)switch(n){case Vc:return Gc;case Kc:return Wc;case Zc:return Hc;case Jc:return Xc;case Qc:return Yc}return e});var eu=Ki,ru=ca,nu=va,ou=Cc,iu=tu,au=J,cu=Wa,uu=ic,lu="[object Arguments]",su="[object Array]",fu="[object Object]",pu=Object.prototype.hasOwnProperty;var du=function(t,e,r,n,o,i){var a=au(t),c=au(e),u=a?su:iu(t),l=c?su:iu(e),s=(u=u==lu?fu:u)==fu,f=(l=l==lu?fu:l)==fu,p=u==l;if(p&&cu(t)){if(!cu(e))return!1;a=!0,s=!1}
14if(p&&!s)return i||(i=new eu),a||uu(t)?ru(t,e,r,n,o,i):nu(t,e,u,r,n,o,i);if(!(1&r)){var d=s&&pu.call(t,"__wrapped__"),h=f&&pu.call(e,"__wrapped__");if(d||h){var y=d?t.value():t,v=h?e.value():e;return i||(i=new eu),o(y,v,r,n,i)}}return!!p&&(i||(i=new eu),ou(t,e,r,n,o,i))},hu=yt;var yu=function t(e,r,n,o,i){return e===r||(null==e||null==r||!hu(e)&&!hu(r)?e!=e&&r!=r:du(e,r,n,o,t,i))},vu=Ki,mu=yu;var bu=St;var gu=function(t){return t==t&&!bu(t)},xu=gu,wu=Ec;var ju=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Ou=function(t,e,r,n){var o=r.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var c=r[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=r[o])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new vu;if(n)var p=n(l,s,u,t,e,f);if(!(void 0===p?mu(s,l,3,n,f):p))return!1}}return!0},Su=function(t){for(var e=wu(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,xu(o)]}return e},Pu=ju;var Au=pr,Eu=Fa,ku=J,Mu=Xa,Nu=Ya,_u=hr;var Tu=function(t,e){return null!=t&&e in Object(t)},Cu=function(t,e,r){for(var n=-1,o=(e=Au(e,t)).length,i=!1;++n<o;){var a=_u(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Nu(o)&&Mu(a,o)&&(ku(t)||Eu(t))};var Du=yu,Iu=gr,Bu=function(t,e){return null!=t&&Cu(t,e,Tu)},Ru=Ot,Lu=gu,zu=ju,$u=hr;var Uu=function(t){return t};var Fu=mr;var qu=function(t){return function(e){return null==e?void 0:e[t]}},Wu=function(t){return function(e){return Fu(e,t)}},Hu=Ot,Xu=hr;var Yu=function(t){var e=Su(t);return 1==e.length&&e[0][2]?Pu(e[0][0],e[0][1]):function(r){return r===t||Ou(r,t,e)}},Gu=function(t,e){return Ru(t)&&Lu(e)?zu($u(t),e):function(r){var n=Iu(r,t);return void 0===n&&n===e?Bu(r,t):Du(e,n,3)}},Vu=Uu,Ku=J,Zu=function(t){return Hu(t)?qu(Xu(t)):Wu(t)};var Ju=function(t){return"function"==typeof t?t:null==t?Vu:"object"==typeof t?Ku(t)?Gu(t[0],t[1]):Yu(t):Zu(t)};var Qu=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var tl=Qu,el=function(t){return t!=t},rl=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1};var nl=function(t,e,r){return e==e?rl(t,e,r):tl(t,el,r)};var ol=function(t,e){return!!(null==t?0:t.length)&&nl(t,e,0)>-1};var il=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1};var al=Bc,cl=function(){},ul=al&&1/ua(new al([,-0]))[1]==1/0?function(t){return new al(t)}:cl,ll=ea,sl=ol,fl=il,pl=na,dl=ul,hl=ua;var yl=Ju,vl=function(t,e,r){var n=-1,o=sl,i=t.length,a=!0,c=[],u=c;if(r)a=!1,o=fl;else if(i>=200){var l=e?null:dl(t);if(l)return hl(l);a=!1,o=pl,u=new ll}else u=e?[]:c;t:for(;++n<i;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),c.push(s)}else o(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c};const ml=c(function(t,e){return t&&t.length?vl(t,yl(e)):[]});function bl(t,e,r){return!0===e?ml(t,r):Mt(e)?ml(t,e):t}function gl(t){return(gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var xl=["ref"];function wl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function jl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wl(Object(r),!0).forEach(function(e){kl(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wl(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ol(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ml(n.key),n)}}function Sl(t,e,r){return e=Al(e),function(t,e){if(e&&("object"===gl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Pl()?Reflect.construct(e,r||[],Al(t).constructor):e.apply(t,r))}function Pl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pl=function(){return!!t})()}function Al(t){return(Al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function El(t,e){return(El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function kl(t,e,r){return(e=Ml(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ml(t){var e=function(t,e){if("object"!=gl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
14(t,"string");return"symbol"==gl(e)?e:e+""}function Nl(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function _l(t){return t.value}var Tl=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return kl(e=Sl(this,t,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&El(t,e)}(t,u.PureComponent),e=t,n=[{key:"getWithHeight",value:function(t,e){var r=jl(jl({},this.defaultProps),t.props).layout;return"vertical"===r&&Qr(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?jl({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),jl(jl({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=jl(jl({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return l.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(l.isValidElement(t))return l.cloneElement(t,e);if("function"==typeof t)return l.createElement(t,e);e.ref;var r=Nl(e,xl);return l.createElement(Li,r)}(r,jl(jl({},this.props),{},{payload:bl(c,a,_l)})))}}])&&Ol(e.prototype,r),n&&Ol(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();kl(Tl,"displayName","Legend"),kl(Tl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Cl=Fa,Dl=J,Il=nt?nt.isConcatSpreadable:void 0;var Bl=ma,Rl=function(t){return Dl(t)||Cl(t)||!!(Il&&t&&t[Il])};var Ll=function t(e,r,n,o,i){var a=-1,c=e.length;for(n||(n=Rl),i||(i=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,o,i):Bl(i,u):o||(i[i.length]=u)}return i};var zl=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}(),$l=Ec;var Ul=function(t,e){return t&&zl(t,e,$l)},Fl=Oc;var ql=function(t,e){return function(r,n){if(null==r)return r;if(!Fl(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Object(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}(Ul),Wl=ql,Hl=Oc;var Xl=function(t,e){var r=-1,n=Hl(t)?Array(t.length):[];return Wl(t,function(t,o,i){n[++r]=e(t,o,i)}),n};var Yl=bt;var Gl=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,i=Yl(t),a=void 0!==e,c=null===e,u=e==e,l=Yl(e);
14if(!c&&!l&&!i&&t>e||i&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!o)return 1;if(!n&&!i&&!l&&t<e||l&&r&&o&&!n&&!i||c&&r&&o||!a&&o||!u)return-1}return 0};var Vl=Qe,Kl=mr,Zl=Ju,Jl=Xl,Ql=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},ts=Qa,es=function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,c=r.length;++n<a;){var u=Gl(o[n],i[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},rs=Uu,ns=J;var os=function(t,e,r){e=e.length?Vl(e,function(t){return ns(t)?function(e){return Kl(e,1===t.length?t[0]:t)}:t}):[rs];var n=-1;e=Vl(e,ts(Zl));var o=Jl(t,function(t,r,o){return{criteria:Vl(e,function(e){return e(t)}),index:++n,value:t}});return Ql(o,function(t,e){return es(t,e,r)})};var is=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},as=Math.max;var cs=function(t,e,r){return e=as(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=as(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(a),is(t,this,c)}};var us=function(t){return function(){return t}},ls=Gt,ss=function(){try{var t=ls(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),fs=us,ps=ss,ds=ps?function(t,e){return ps(t,"toString",{configurable:!0,enumerable:!1,value:fs(e),writable:!0})}:Uu,hs=Date.now;var ys=function(t){var e=0,r=0;return function(){var n=hs(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ds),vs=Uu,ms=cs,bs=ys;var gs=de,xs=Oc,ws=Xa,js=St;var Os=function(t,e,r){if(!js(r))return!1;var n=typeof e;return!!("number"==n?xs(r)&&ws(e,r.length):"string"==n&&e in r)&&gs(r[e],t)},Ss=Ll,Ps=os,As=Os;const Es=c(function(t,e){return bs(ms(t,e,vs),t+"")}(function(t,e){if(null==t)return[];var r=e.length;return r>1&&As(t,e[0],e[1])?e=[]:r>2&&As(e[0],e[1],e[2])&&(e=[e[0]]),Ps(t,Ss(e,1),[])}));function ks(t){return(ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ms(){return Ms=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ms.apply(this,arguments)}function Ns(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ts(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Cs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ts(Object(r),!0).forEach(function(e){Ds(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ts(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ds(t,e,r){var n;return n=function(t,e){if("object"!=ks(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ks(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ks(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Is(t){return Array.isArray(t)&&tn(t[0])&&tn(t[1])?t.join(" ~ "):t}var Bs=function(t){var r=t.separator,n=void 0===r?" : ":r,o=t.contentStyle,i=void 0===o?{}:o,a=t.itemStyle,c=void 0===a?{}:a,u=t.labelStyle,s=void 0===u?{}:u,f=t.payload,p=t.formatter,d=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,v=t.label,m=t.labelFormatter,b=t.accessibilityLayer,g=void 0!==b&&b,x=Cs({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=Cs({margin:0},s),j=!wr(v),O=j?v:"",S=e("recharts-default-tooltip",h),P=e("recharts-tooltip-label",y);j&&m&&null!=f&&(O=m(v,f));var A=g?{role:"status","aria-live":"assertive"}:{};return l.createElement("div",Ms({className:S,style:x},A),l.createElement("p",{className:P,style:w},l.isValidElement(O)?O:"".concat(O)),function(){if(f&&f.length){var t=(d?Es(f,d):f).map(function(t,e){if("none"===t.type)return null;var r=Cs({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},c),o=t.formatter||p||Is,i=t.value,a=t.name,u=i,s=a;if(o&&null!=u&&null!=s){var d=o(i,a,t,e,f);if(Array.isArray(d)){var h=Ns(d,2);u=h[0],s=h[1]}else u=d}return l.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:r},tn(s)?l.createElement("span",{className:"recharts-tooltip-item-name"},s):null,tn(s)?l.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,l.createElement("span",{className:"recharts-tooltip-item-value"},u),l.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return l.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Rs(t){return(Rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ls(t,e,r){var n;return n=function(t,e){if("object"!=Rs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Rs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Rs(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var zs="recharts-tooltip-wrapper",$s={visibility:"hidden"};function Us(t){var r=t.coordinate,n=t.translateX,o=t.translateY;return e(zs,Ls(Ls(Ls(Ls({},"".concat(zs,"-right"),Qr(n)&&r&&Qr(r.x)&&n>=r.x),"".concat(zs,"-left"),Qr(n)&&r&&Qr(r.x)&&n<r.x),"".concat(zs,"-bottom"),Qr(o)&&r&&Qr(r.y)&&o>=r.y),"".concat(zs,"-top"),Qr(o)&&r&&Qr(r.y)&&o<r.y))}function Fs(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&Qr(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function qs(t){return(qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ws(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Hs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
14e%2?Ws(Object(r),!0).forEach(function(e){Zs(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ws(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Xs(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Js(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ys(t,e,r){return e=Vs(e),function(t,e){if(e&&("object"===qs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Gs()?Reflect.construct(e,r||[],Vs(t).constructor):e.apply(t,r))}function Gs(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gs=function(){return!!t})()}function Vs(t){return(Vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ks(t,e){return(Ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Zs(t,e,r){return(e=Js(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Js(t){var e=function(t,e){if("object"!=qs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qs(e)?e:e+""}var Qs=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Zs(e=Ys(this,t,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Zs(e,"handleKeyDown",function(t){var r,n,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ks(t,e)}(t,u.PureComponent),Xs(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||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 t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.children,c=e.coordinate,u=e.hasPayload,s=e.isAnimationActive,f=e.offset,p=e.position,d=e.reverseDirection,h=e.useTranslate3d,y=e.viewBox,v=e.wrapperStyle,m=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=Fs({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=Fs({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.he
14ight,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):$s,cssClasses:Us({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:f,position:p,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:y}),b=m.cssClasses,g=m.cssProperties,x=Hs(Hs({transition:s&&r?"transform ".concat(o,"ms ").concat(i):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},v);return l.createElement("div",{tabIndex:-1,className:b,style:x,ref:function(e){t.wrapperNode=e}},a)}}])}(),tf={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return tf[t]},set:function(t,e){if("string"==typeof t)tf[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){tf[e]=t[e]})}}};function ef(t){return(ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function nf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rf(Object(r),!0).forEach(function(e){sf(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function of(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ff(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function af(t,e,r){return e=uf(e),function(t,e){if(e&&("object"===ef(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,cf()?Reflect.construct(e,r||[],uf(t).constructor):e.apply(t,r))}function cf(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cf=function(){return!!t})()}function uf(t){return(uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function lf(t,e){return(lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sf(t,e,r){return(e=ff(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ff(t){var e=function(t,e){if("object"!=ef(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ef(e)?e:e+""}function pf(t){return t.dataKey}var df=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),af(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lf(t,e)}(t,u.PureComponent),of(t,[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,s=e.isAnimationActive,f=e.offset,p=e.payload,d=e.payloadUniqBy,h=e.position,y=e.reverseDirection,v=e.useTranslate3d,m=e.viewBox,b=e.wrapperStyle,g=null!=p?p:[];u&&g.length&&(g=bl(p.filter(function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)}),d,pf));var x=g.length>0;return l.createElement(Qs,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:s,active:r,coordinate:c,hasPayload:x,offset:f,position:h,reverseDirection:y,useTranslate3d:v,viewBox:m,wrapperStyle:b},function(t,e){return l.isValidElement(t)?l.cloneElement(t,e):"function"==typeof t?l.createElement(t,e):l.createElement(Bs,e)}(a,nf(nf({},this.props),{},{payload:g})))}}])}();sf(df,"displayName","Tooltip"),sf(df,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!tf.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 hf=rt,yf=/\s/;var vf=function(t){for(var e=t.length;e--&&yf.test(t.charAt(e)););return e},mf=/^\s+/;var bf=function(t){return t?t.slice(0,vf(t)+1).replace(mf,""):t},gf=St,xf=bt,wf=/^[-+]0x[0-9a-f]+$/i,jf=/^0b[01]+$/i,Of=/^0o[0-7]+$/i,Sf=parseInt;var Pf=function(t){if("number"==typeof t)return t;if(xf(t))return NaN;if(gf(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=gf(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=bf(t);var r=jf.test(t);return r||Of.test(t)?Sf(t.slice(2),r?2:8):wf.test(t)?NaN:+t},Af=St,Ef=function(){return hf.Date.now()},kf=Pf,Mf=Math.max,Nf=Math.min;var _f=function(t,e,r){var n,o,i,a,c,u,l=0,s=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var r=n,i=o;return n=o=void 0,l=e,a=t.apply(i,r)}function h(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=i}function y(){var t=Ef();if(h(t))return v(t);c=setTimeout(y,function(t){var r=e-(t-u);return f?Nf(r,i-(t-l)):r}(t))}function v(t){return c=void 0,p&&n?d(t):(n=o=void 0,a)}function m(){var t=Ef(),r=h(t);if(n=arguments,o=this,u=t,r){if(void 0===c)return function(t){return l=t,c=setTimeout(y,e),s?d(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(y,e),d(u)}return void 0===c&&(c=setTimeout(y,e)),a}return e=kf(e)||0,Af(r)&&(s=!!r.leading,i=(f="maxWait"in r)?Mf(kf(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},m.flush=function(){return void 0===c?a:v(Ef())},m},Tf=St;const Cf=c(function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Tf(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),_f(t,e,{leading:n,maxWait:e,trailing:o})});function Df(t){return(Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function If(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Bf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
14e%2?If(Object(r),!0).forEach(function(e){Rf(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Rf(t,e,r){var n;return n=function(t,e){if("object"!=Df(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Df(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Df(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return zf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zf(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var $f=u.forwardRef(function(t,r){var n=t.aspect,o=t.initialDimension,i=void 0===o?{width:-1,height:-1}:o,a=t.width,c=void 0===a?"100%":a,s=t.height,f=void 0===s?"100%":s,p=t.minWidth,d=void 0===p?0:p,h=t.minHeight,y=t.maxHeight,v=t.children,m=t.debounce,b=void 0===m?0:m,g=t.id,x=t.className,w=t.onResize,j=t.style,O=void 0===j?{}:j,S=u.useRef(null),P=u.useRef();P.current=w,u.useImperativeHandle(r,function(){return Object.defineProperty(S.current,"current",{get:function(){return S.current},configurable:!0})});var A=Lf(u.useState({containerWidth:i.width,containerHeight:i.height}),2),E=A[0],k=A[1],M=u.useCallback(function(t,e){k(function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}})},[]);u.useEffect(function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;M(n,o),null===(e=P.current)||void 0===e||e.call(P,n,o)};b>0&&(t=Cf(t,b,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=S.current.getBoundingClientRect(),n=r.width,o=r.height;return M(n,o),e.observe(S.current),function(){e.disconnect()}},[M,b]);var N=u.useMemo(function(){var t=E.containerWidth,e=E.containerHeight;if(t<0||e<0)return null;$n(Jr(c)||Jr(f),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",c,f),$n(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Jr(c)?t:c,o=Jr(f)?e:f;n&&n>0&&(r?o=r/n:o&&(r=o*n),y&&o>y&&(o=y)),$n(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,o,c,f,d,h,n);var i=!Array.isArray(v)&&xn(v.type).endsWith("Chart");return l.Children.map(v,function(t){return Wr.isElement(t)?u.cloneElement(t,Bf({width:r,height:o},i?{style:Bf({height:"100%",width:"100%",maxHeight:o,maxWidth:r},t.props.style)}:{})):t})},[n,v,f,y,h,d,E,c]);return l.createElement("div",{id:g?"".concat(g):void 0,className:e("recharts-responsive-container",x),style:Bf(Bf({},O),{},{width:c,height:f,minWidth:d,minHeight:h,maxHeight:y}),ref:S},N)}),Uf=function(t){return null};function Ff(t){return(Ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Wf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
14e%2?qf(Object(r),!0).forEach(function(e){Hf(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Hf(t,e,r){var n;return n=function(t,e){if("object"!=Ff(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ff(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ff(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Uf.displayName="Cell";var Xf={widthCache:{},cacheCount:0},Yf={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gf="recharts_measurement_span";var Vf=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||tf.isSsr)return{width:0,height:0};var r,n=(r=Wf({},e),Object.keys(r).forEach(function(t){r[t]||delete r[t]}),r),o=JSON.stringify({text:t,copyStyle:n});if(Xf.widthCache[o])return Xf.widthCache[o];try{var i=document.getElementById(Gf);i||((i=document.createElement("span")).setAttribute("id",Gf),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Wf(Wf({},Yf),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return Xf.widthCache[o]=u,++Xf.cacheCount>2e3&&(Xf.cacheCount=0,Xf.widthCache={}),u}catch(l){return{width:0,height:0}}};function Kf(t){return(Kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Jf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jf(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tp(n.key),n)}}function tp(t){var e=function(t,e){if("object"!=Kf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Kf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Kf(e)?e:e+""}var ep=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rp=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,np=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,op=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ip={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},ap=Object.keys(ip),cp="NaN";var up=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||np.test(r)||(this.num=NaN,this.unit=""),ap.includes(r)&&(this.num=function(t,e){return t*ip[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=Zf(null!==(r=op.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Qf(e.prototype,r),n&&Qf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function lp(t){if(t.includes(cp))return cp;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Zf(null!==(r=ep.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=up.parse(null!=o?o:""),u=up.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return cp;e=e.replace(ep,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Zf(null!==(s=rp.exec(e))&&void 0!==s?s:[],4),p=f[1],d=f[2],h=f[3],y=up.parse(null!=p?p:""),v=up.parse(null!=h?h:""),m="+"===d?y.add(v):y.subtract(v);if(m.isNaN())return cp;e=e.replace(rp,m.toString())}return e}var sp=/\(([^()]*)\)/;function fp(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Zf(sp.exec(e),2)[1];e=e.replace(sp,lp(r))}return e}(e),e=lp(e)}function pp(t){var e=function(t){try{return fp(t)}catch(e){return cp}}(t.slice(5,-1));return e===cp?"":e}var dp=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],hp=["dx","dy","angle","className","breakAll"];function yp(){return yp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
14for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yp.apply(this,arguments)}function vp(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function mp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return bp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bp(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var gp=/[ \f\n\r\t\v\u2028\u2029]+/,xp=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return wr(e)||(o=r?e.toString().split(""):e.toString().split(gp)),{wordsWithComputedWidth:o.map(function(t){return{word:t,width:Vf(t,n).width}}),spaceWidth:r?0:Vf(" ",n).width}}catch(i){return null}},wp=function(t){return[{words:wr(t)?[]:t.toString().split(gp)}]},jp=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!tf.isSsr){var c=xp({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=Qr(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t},[])},p=f(e);if(!l)return p;for(var d,h=function(t){var e=s.slice(0,t),r=xp({breakAll:u,style:c,children:e+"â¦"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce(function(t,e){return t.width>e.width?t:e})}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var b=Math.floor((y+v)/2),g=mp(h(b-1),2),x=g[0],w=g[1],j=mp(h(b),1)[0];if(x||j||(y=b+1),x&&j&&(v=b-1),!x&&j){d=w;break}m++}return d||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):wp(n)}return wp(n)},Op="#808080",Sp=function(t){var r=t.x,n=void 0===r?0:r,o=t.y,i=void 0===o?0:o,a=t.lineHeight,c=void 0===a?"1em":a,s=t.capHeight,f=void 0===s?"0.71em":s,p=t.scaleToFit,d=void 0!==p&&p,h=t.textAnchor,y=void 0===h?"start":h,v=t.verticalAnchor,m=void 0===v?"end":v,b=t.fill,g=void 0===b?Op:b,x=vp(t,dp),w=u.useMemo(function(){return jp({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:d,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,d,x.style,x.width]),j=x.dx,O=x.dy,S=x.angle,P=x.className,A=x.breakAll,E=vp(x,hp);if(!tn(n)||!tn(i))return null;var k,M=n+(Qr(j)?j:0),N=i+(Qr(O)?O:0);switch(m){case"start":k=pp("calc(".concat(f,")"));break;case"middle":k=pp("calc(".concat((w.length-1)/2," * -").concat(c," + (").concat(f," / 2))"));break;default:k=pp("calc(".concat(w.length-1," * -").concat(c,")"))}var _=[];if(d){var T=w[0].width,C=x.width;_.push("scale(".concat((Qr(C)?C/T:1)/T,")"))}return S&&_.push("rotate(".concat(S,", ").concat(M,", ").concat(N,")")),_.length&&(E.transform=_.join(" ")),l.createElement("text",yp({},kn(E,!0),{x:M,y:N,className:e("recharts-text",P),textAnchor:y,fill:g.includes("url")?Op:g}),w.map(function(t,e){var r=t.words.join(A?"":" ");return l.createElement("tspan",{x:M,dy:0===e?k:c,key:"".concat(r,"-").concat(e)},r)}))};function Pp(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ap(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ep(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=Pp,r=(e,r)=>Pp(t(e),r),n=(e,r)=>t(e)-r):(e=t===Pp||t===Ap?t:kp,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function kp(){return 0}function Mp(t){return null===t?NaN:+t}const Np=Ep(Pp).right;Ep(Mp).center;class _p extends Map{constructor(t,e=Cp){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[r,n]of t)this.set(r,n)}get(t){return super.get(Tp(this,t))}has(t){return super.has(Tp(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function Tp({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function Cp(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Dp(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Ip=Math.sqrt(50),Bp=Math.sqrt(10),Rp=Math.sqrt(2);function Lp(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=Ip?10:i>=Bp?5:i>=Rp?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?Lp(t,e,2*r):[c,u,l]}function zp(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Lp(e,t,r):Lp(t,e,r);
vendor: 8,245 bytes, line 14
14if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let l=0;l<c;++l)u[l]=(i-l)/-a;else for(let l=0;l<c;++l)u[l]=(i-l)*a;else if(a<0)for(let l=0;l<c;++l)u[l]=(o+l)/-a;else for(let l=0;l<c;++l)u[l]=(o+l)*a;return u}function $p(t,e,r){return Lp(t=+t,e=+e,r=+r)[2]}function Up(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?$p(e,t,r):$p(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Fp(t,e){let r;for(const n of t)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);return r}function qp(t,e){let r;for(const n of t)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);return r}function Wp(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?Dp:function(t=Pp){if(t===Pp)return Dp;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);Wp(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(Hp(t,r,e),o(t[n],i)>0&&Hp(t,r,n);a<c;){for(Hp(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?Hp(t,r,c):(++c,Hp(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function Hp(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Xp(t,e,r=Mp){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function Yp(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Gp(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Vp=Symbol("implicit");function Kp(){var t=new _p,e=[],r=[],n=Vp;function o(o){let i=t.get(o);if(void 0===i){if(n!==Vp)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new _p;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return Kp(e,r).unknown(n)},Yp.apply(o,arguments),o}function Zp(){var t,e,r=Kp().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(d-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var h=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map(function(e){return p+t*e});return o(f?h.reverse():h)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Zp(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Yp.apply(f(),arguments)}function Jp(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Jp(e())},t}function Qp(){return Jp(Zp.apply(null,arguments).paddingInner(1))}function td(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function ed(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function rd(){}var nd=.7,od=1/nd,id="\\s*([+-]?\\d+)\\s*",ad="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ud=/^#([0-9a-f]{3,8})$/,ld=new RegExp(`^rgb\\(${id},${id},${id}\\)$`),sd=new RegExp(`^rgb\\(${cd},${cd},${cd}\\)$`),fd=new RegExp(`^rgba\\(${id},${id},${id},${ad}\\)$`),pd=new RegExp(`^rgba\\(${cd},${cd},${cd},${ad}\\)$`),dd=new RegExp(`^hsl\\(${ad},${cd},${cd}\\)$`),hd=new RegExp(`^hsla\\(${ad},${cd},${cd},${ad}\\)$`),yd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function vd(){return this.rgb().formatHex()}function md(){return this.rgb().formatRgb()}function bd(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=ud.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?gd(e):3===r?new jd(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?xd(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?xd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ld.exec(t))?new jd(e[1],e[2],e[3],1):(e=sd.exec(t))?new jd(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fd.exec(t))?xd(e[1],e[2],e[3],e[4]):(e=pd.exec(t))?xd(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=dd.exec(t))?kd(e[1],e[2]/100,e[3]/100,1):(e=hd.exec(t))?kd(e[1],e[2]/100,e[3]/100,e[4]):yd.hasOwnProperty(t)?gd(yd[t]):"transparent"===t?new jd(NaN,NaN,NaN,0):null}function gd(t){return new jd(t>>16&255,t>>8&255,255&t,1)}function xd(t,e,r,n){return n<=0&&(t=e=r=NaN),new jd(t,e,r,n)}function wd(t,e,r,n){return 1===arguments.length?((o=t)instanceof rd||(o=bd(o)),o?new jd((o=o.rgb()).r,o.g,o.b,o.opacity):new jd):new jd(t,e,r,null==n?1:n);var o}
vendor: 4,444 bytes, line 14
14function jd(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Od(){return`#${Ed(this.r)}${Ed(this.g)}${Ed(this.b)}`}function Sd(){const t=Pd(this.opacity);return`${1===t?"rgb(":"rgba("}${Ad(this.r)}, ${Ad(this.g)}, ${Ad(this.b)}${1===t?")":`, ${t})`}`}function Pd(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ad(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ed(t){return((t=Ad(t))<16?"0":"")+t.toString(16)}function kd(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Nd(t,e,r,n)}function Md(t){if(t instanceof Nd)return new Nd(t.h,t.s,t.l,t.opacity);if(t instanceof rd||(t=bd(t)),!t)return new Nd;if(t instanceof Nd)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new Nd(a,c,u,t.opacity)}function Nd(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function _d(t){return(t=(t||0)%360)<0?t+360:t}function Td(t){return Math.max(0,Math.min(1,t||0))}function Cd(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}td(rd,bd,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:vd,formatHex:vd,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Md(this).formatHsl()},formatRgb:md,toString:md}),td(jd,wd,ed(rd,{brighter(t){return t=null==t?od:Math.pow(od,t),new jd(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?nd:Math.pow(nd,t),new jd(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new jd(Ad(this.r),Ad(this.g),Ad(this.b),Pd(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:Od,formatHex:Od,formatHex8:function(){return`#${Ed(this.r)}${Ed(this.g)}${Ed(this.b)}${Ed(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Sd,toString:Sd})),td(Nd,function(t,e,r,n){return 1===arguments.length?Md(t):new Nd(t,e,r,null==n?1:n)},ed(rd,{brighter(t){return t=null==t?od:Math.pow(od,t),new Nd(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?nd:Math.pow(nd,t),new Nd(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new jd(Cd(t>=240?t-240:t+120,o,n),Cd(t,o,n),Cd(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new Nd(_d(this.h),Td(this.s),Td(this.l),Pd(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 t=Pd(this.opacity);return`${1===t?"hsl(":"hsla("}${_d(this.h)}, ${100*Td(this.s)}%, ${100*Td(this.l)}%${1===t?")":`, ${t})`}`}}));const Dd=t=>()=>t;function Id(t){return 1===(t=+t)?Bd:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):Dd(isNaN(e)?r:e)}}function Bd(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):Dd(isNaN(t)?e:t)}const Rd=function t(e){var r=Id(e);function n(t,e){var n=r((t=wd(t)).r,(e=wd(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=Bd(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Ld(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function zd(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Xd(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function $d(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Ud(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Fd(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Xd(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var qd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wd=new RegExp(qd.source,"g");function Hd(t,e){var r,n,o,i=qd.lastIndex=Wd.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=qd.exec(t))&&(n=Wd.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:Ud(r,n)}
vendor: 4,100 bytes, line 14
14)),i=Wd.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function Xd(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?Dd(e):("number"===o?Ud:"string"===o?(r=bd(e))?(e=r,Rd):Hd:e instanceof bd?Rd:e instanceof Date?$d:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?zd:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Fd:Ud:Ld))(t,e)}function Yd(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Gd(t){return+t}var Vd=[0,1];function Kd(t){return t}function Zd(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Jd(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=Zd(o,n),i=r(a,i)):(n=Zd(n,o),i=r(i,a)),function(t){return i(n(t))}}function Qd(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=Zd(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=Np(t,e,1,n)-1;return i[r](o[r](e))}}function th(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function eh(){var t,e,r,n,o,i,a=Vd,c=Vd,u=Xd,l=Kd;function s(){var t,e,r,u=Math.min(a.length,c.length);return l!==Kd&&(t=a[0],e=a[u-1],t>e&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=u>2?Qd:Jd,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),Ud)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Gd),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=Yd,s()},f.clamp=function(t){return arguments.length?(l=!!t||Kd,s()):l!==Kd},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function rh(){return eh()(Kd,Kd)}function nh(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function oh(t){return(t=nh(Math.abs(t)))?t[1]:NaN}var ih,ah=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ch(t){if(!(e=ah.exec(t)))throw new Error("invalid format: "+t);var e;return new uh({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function uh(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function lh(t,e){var r=nh(t,e);if(!r)return t+"";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")}ch.prototype=uh.prototype,uh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const sh={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>lh(100*t,e),r:lh,s:function(t,e){var r=nh(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(ih=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>
vendor: 13,856 bytes, line 14
140?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+nh(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function fh(t){return t}var ph,dh,hh,yh=Array.prototype.map,vh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function mh(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?fh:(e=yh.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?fh:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(yh.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"â":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=ch(t)).fill,r=t.align,f=t.sign,p=t.symbol,d=t.zero,h=t.width,y=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(y=!0,b="g"):sh[b]||(void 0===v&&(v=12),m=!0,b="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?i:/[%p]/.test(b)?u:"",w=sh[b],j=/[defgprs%]/.test(b);function O(t){var o,i,u,p=g,O=x;if("c"===b)O=w(t)+O,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:w(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,O=("s"===b?vh[8+ih/3]:"")+O+(S&&"("===f?")":""),j)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){O=(46===u?a+t.slice(o+1):t.slice(o))+O,t=t.slice(0,o);break}}y&&!d&&(t=n(t,1/0));var P=p.length+t.length+O.length,A=P<h?new Array(h-P+1).join(e):"";switch(y&&d&&(t=n(A+t,A.length?h-O.length:1/0),A=""),r){case"<":t=p+t+O+A;break;case"=":t=p+A+t+O;break;case"^":t=A.slice(0,P=A.length>>1)+p+t+O+A.slice(P);break;default:t=A+p+t+O}return c(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),O.toString=function(){return t+""},O}return{format:f,formatPrefix:function(t,e){var r=f(((t=ch(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(oh(e)/3))),o=Math.pow(10,-n),i=vh[8+n/3];return function(t){return r(o*t)+i}}}}function bh(t,e,r,n){var o,i=Up(t,e,r);switch((n=ch(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(oh(e)/3)))-oh(Math.abs(t)))}(i,a))||(n.precision=o),hh(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,oh(e)-oh(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-oh(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return dh(n)}function gh(t){var e=t.domain;return t.ticks=function(t){var r=e();return zp(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return bh(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=$p(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function xh(){var t=rh();return t.copy=function(){return th(t,xh())},Yp.apply(t,arguments),gh(t)}function wh(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function jh(t){return Math.log(t)}function Oh(t){return Math.exp(t)}function Sh(t){return-Math.log(-t)}function Ph(t){return-Math.exp(-t)}function Ah(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Eh(t){return(e,r)=>-t(-e,r)}function kh(t){const e=t(jh,Oh),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Ah:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=Eh(n),o=Eh(o),t(Sh,Ph)):t(jh,Oh),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const d=null==t?10:+t;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;h.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;h.push(s)}2*h.length<d&&(h=zp(a,c,d))}else h=zp(f,p,Math.min(p-f,d)).map(o);return u?h.reverse():h},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=ch(r)).precision||(r.trim=!0),r=dh(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(wh(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function Mh(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Nh(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function _h(t){var e=1,r=t(Mh(e),Nh(e));return r.constant=function(r){return arguments.length?t(Mh(e=+r),Nh(e)):e},gh(r)}function Th(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ch(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Dh(t){return t<0?-t*t:t*t}function Ih(t){var e=t(Kd,Kd),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Kd,Kd):.5===r?t(Ch,Dh):t(Th(r),Th(1/r)):r},gh(e)}function Bh(){var t=Ih(eh());return t.copy=function(){return th(t,Bh()).exponent(t.exponent())},Yp.apply(t,arguments),t}function Rh(t){return Math.sign(t)*t*t}ph=mh({thousands:",",grouping:[3],currency:["$",""]}),dh=ph.format,hh=ph.formatPrefix;const Lh=new Date,zh=new Date;function $h(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>$h(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(o.count=(e,n)=>(Lh.setTime(+e),zh.setTime(+n),t(Lh),t(zh),Math.floor(r(Lh,zh))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t===0:e=>o.count(0,e)%t===0):o:null)),o}const Uh=$h(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Uh.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?$h(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Uh:null),Uh.range;const Fh=1e3,qh=6e4,Wh=36e5,Hh=864e5,Xh=6048e5,Yh=2592e6,Gh=31536e6,Vh=$h(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Fh)},(t,e)=>(e-t)/Fh,t=>t.getUTCSeconds());Vh.range;const Kh=$h(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fh)},(t,e)=>{t.setTime(+t+e*qh)},(t,e)=>(e-t)/qh,t=>t.getMinutes());Kh.range;const Zh=$h(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*qh)},(t,e)=>(e-t)/qh,t=>t.getUTCMinutes());Zh.range;const Jh=$h(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fh-t.getMinutes()*qh)},(t,e)=>{t.setTime(+t+e*Wh)},(t,e)=>(e-t)/Wh,t=>t.getHours());Jh.range;const Qh=$h(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Wh)},(t,e)=>(e-t)/Wh,t=>t.getUTCHours());Qh.range;const ty=$h(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*qh)/Hh,t=>t.getDate()-1);ty.range;const ey=$h(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Hh,t=>t.getUTCDate()-1);ey.range;const ry=$h(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Hh,t=>Math.floor(t/Hh));function ny(t){return $h(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*qh)/Xh)}ry.range;const oy=ny(0),iy=ny(1),ay=ny(2),cy=ny(3),uy=ny(4),ly=ny(5),sy=ny(6);function fy(t){return $h(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/Xh)}oy.range,iy.range,ay.range,cy.range,uy.range,ly.range,sy.range;const py=fy(0),dy=fy(1),hy=fy(2),yy=fy(3),vy=fy(4),my=fy(5),by=fy(6);py.range,dy.range,hy.range,yy.range,vy.range,my.range,by.range;const gy=$h(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());gy.range;const xy=$h(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth());xy.range;const wy=$h(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());wy.every=t=>isFinite(t=Math.floor(t))&&t>0?$h(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,wy.range;const jy=$h(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function Oy(t,e,r,n,o,i){const a=[[Vh,1,Fh],[Vh,5,5e3],[Vh,15,15e3],[Vh,30,3e4],[i,1,qh],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Wh],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Hh],[n,2,1728e5],[r,1,Xh],[e,1,Yh],[e,3,7776e6],[t,1,Gh]];function c(e,r,n){const o=Math.abs(r-e)/n,i=Ep(([,,t])=>t).right(a,o);if(i===a.length)return t.every(Up(e/Gh,r/Gh,n));if(0===i)return Uh.every(Math.max(Up(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}jy.every=t=>isFinite(t=Math.floor(t))&&t>0?$h(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,jy.range;const[Sy,Py]=Oy(jy,xy,py,ry,Qh,Zh),[Ay,Ey]=Oy(wy,gy,oy,ty,Jh,Kh);function ky(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function My(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ny(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var _y,Ty,Cy,Dy={"-":"",_:" ",0:"0"},Iy=/^\s*\d+/,By=/^%/,Ry=/[\\^$*+?|[\]().{}]/g;function Ly(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function zy(t){return t.replace(Ry,"\\$&")}function $y(t){return new RegExp("^(?:"+t.map(zy).join("|")+")","i")}function Uy(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Fy(t,e,r){var n=Iy.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function qy(t,e,r){var n=Iy.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Wy(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Hy(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Xy(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Yy(t,e,r){var n=Iy.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Gy(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Vy(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Ky(t,e,r){var n=Iy.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Zy(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Jy(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Qy(t,e,r){var n=Iy.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function tv(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ev(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rv(t,e,r){var n=Iy.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nv(t,e,r){var n=Iy.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ov(t,e,r){var n=Iy.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function iv(t,e,r){var n=By.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function av(t,e,r){var n=Iy.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function cv(t,e,r){var n=Iy.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function uv(t,e){return Ly(t.getDate(),e,2)}function lv(t,e){return Ly(t.getHours(),e,2)}function sv(t,e){return Ly(t.getHours()%12||12,e,2)}function fv(t,e){return Ly(1+ty.count(wy(t),t),e,3)}function pv(t,e){return Ly(t.getMilliseconds(),e,3)}function dv(t,e){return pv(t,e)+"000"}function hv(t,e){return Ly(t.getMonth()+1,e,2)}function yv(t,e){return Ly(t.getMinutes(),e,2)}function vv(t,e){return Ly(t.getSeconds(),e,2)}function mv(t){var e=t.getDay();return 0===e?7:e}function bv(t,e){return Ly(oy.count(wy(t)-1,t),e,2)}
vendor: 6,629 bytes, line 14
14function gv(t){var e=t.getDay();return e>=4||0===e?uy(t):uy.ceil(t)}function xv(t,e){return t=gv(t),Ly(uy.count(wy(t),t)+(4===wy(t).getDay()),e,2)}function wv(t){return t.getDay()}function jv(t,e){return Ly(iy.count(wy(t)-1,t),e,2)}function Ov(t,e){return Ly(t.getFullYear()%100,e,2)}function Sv(t,e){return Ly((t=gv(t)).getFullYear()%100,e,2)}function Pv(t,e){return Ly(t.getFullYear()%1e4,e,4)}function Av(t,e){var r=t.getDay();return Ly((t=r>=4||0===r?uy(t):uy.ceil(t)).getFullYear()%1e4,e,4)}function Ev(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ly(e/60|0,"0",2)+Ly(e%60,"0",2)}function kv(t,e){return Ly(t.getUTCDate(),e,2)}function Mv(t,e){return Ly(t.getUTCHours(),e,2)}function Nv(t,e){return Ly(t.getUTCHours()%12||12,e,2)}function _v(t,e){return Ly(1+ey.count(jy(t),t),e,3)}function Tv(t,e){return Ly(t.getUTCMilliseconds(),e,3)}function Cv(t,e){return Tv(t,e)+"000"}function Dv(t,e){return Ly(t.getUTCMonth()+1,e,2)}function Iv(t,e){return Ly(t.getUTCMinutes(),e,2)}function Bv(t,e){return Ly(t.getUTCSeconds(),e,2)}function Rv(t){var e=t.getUTCDay();return 0===e?7:e}function Lv(t,e){return Ly(py.count(jy(t)-1,t),e,2)}function zv(t){var e=t.getUTCDay();return e>=4||0===e?vy(t):vy.ceil(t)}function $v(t,e){return t=zv(t),Ly(vy.count(jy(t),t)+(4===jy(t).getUTCDay()),e,2)}function Uv(t){return t.getUTCDay()}function Fv(t,e){return Ly(dy.count(jy(t)-1,t),e,2)}function qv(t,e){return Ly(t.getUTCFullYear()%100,e,2)}function Wv(t,e){return Ly((t=zv(t)).getUTCFullYear()%100,e,2)}function Hv(t,e){return Ly(t.getUTCFullYear()%1e4,e,4)}function Xv(t,e){var r=t.getUTCDay();return Ly((t=r>=4||0===r?vy(t):vy.ceil(t)).getUTCFullYear()%1e4,e,4)}function Yv(){return"+0000"}function Gv(){return"%"}function Vv(t){return+t}function Kv(t){return Math.floor(+t/1e3)}function Zv(t){return new Date(t)}function Jv(t){return t instanceof Date?+t:+new Date(+t)}function Qv(t,e,r,n,o,i,a,c,u,l){var s=rh(),f=s.invert,p=s.domain,d=l(".%L"),h=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function w(t){return(u(t)<t?d:c(t)<t?h:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Jv)):p().map(Zv)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(wh(r,t)):s},s.copy=function(){return th(s,Qv(t,e,r,n,o,i,a,c,u,l))},s}function tm(){var t,e,r,n,o,i=0,a=1,c=Kd,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(Xd),l.rangeRound=s(Yd),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function em(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function rm(){var t=Ih(tm());return t.copy=function(){return em(t,rm()).exponent(t.exponent())},Gp.apply(t,arguments)}function nm(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=Kd,p=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=Xd);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,d):[c,u,l]},d.clamp=function(t){return arguments.length?(p=!!t,d):p},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=h(Xd),d.rangeRound=h(Yd),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,d}}function om(){var t=Ih(nm());return t.copy=function(){return em(t,om()).exponent(t.exponent())},Gp.apply(t,arguments)}!function(t){_y=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=$y(o),s=Uy(o),f=$y(i),p=Uy(i),d=$y(a),h=Uy(a),y=$y(c),v=Uy(c),m=$y(u),b=Uy(u),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:uv,e:uv,f:dv,g:Sv,G:Av,H:lv,I:sv,j:fv,L:pv,m:hv,M:yv,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Vv,s:Kv,S:vv,u:mv,U:bv,V:xv,w:wv,W:jv,x:null,X:null,y:Ov,Y:Pv,Z:Ev,"%":Gv},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:kv,e:kv,f:Cv,g:Wv,G:Xv,H:Mv,I:Nv,j:_v,L:Tv,m:Dv,M:Iv,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Vv,s:Kv,S:Bv,u:Rv,U:Lv,V:$v,w:Uv,W:Fv,x:null,X:null,y:qv,Y:Hv,Z:Yv,"%":Gv},w={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:Jy,e:Jy,f:ov,g:Gy,G:Yy,H:tv,I:tv,j:Qy,L:nv,m:Zy,M:ev,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Ky,Q:av,s:cv,S:rv,u:qy,U:Wy,V:Hy,w:Fy,W:Xy,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:Gy,Y:Yy,Z:Vy,"%":iv};function j(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=Dy[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function O(t,e){return function(r){var n,o,i=Ny(1900,void 0,1);if(S(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);
vendor: 4,399 bytes, line 14
14if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=My(Ny(i.y,0,1))).getUTCDay(),n=o>4||0===o?dy.ceil(n):dy(n),n=ey.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=ky(Ny(i.y,0,1))).getDay(),n=o>4||0===o?iy.ceil(n):iy(n),n=ty.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?My(Ny(i.y,0,1)).getUTCDay():ky(Ny(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,My(i)):ky(i)}}function S(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in Dy?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=j(r,g),g.X=j(n,g),g.c=j(e,g),x.x=j(r,x),x.X=j(n,x),x.c=j(e,x),{format:function(t){var e=j(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=j(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}}}(t),Ty=_y.format,_y.parse,Cy=_y.utcFormat,_y.utcParse}({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"]});const im=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zp,scaleDiverging:function t(){var e=gh(nm()(Kd));return e.copy=function(){return em(e,t())},Gp.apply(e,arguments)},scaleDivergingLog:function t(){var e=kh(nm()).domain([.1,1,10]);return e.copy=function(){return em(e,t()).base(e.base())},Gp.apply(e,arguments)},scaleDivergingPow:om,scaleDivergingSqrt:function(){return om.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=_h(nm());return e.copy=function(){return em(e,t()).constant(e.constant())},Gp.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Gd),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,Gd):[0,1],gh(n)},scaleImplicit:Vp,scaleLinear:xh,scaleLog:function t(){const e=kh(eh()).domain([1,10]);return e.copy=()=>th(e,t()).base(e.base()),Yp.apply(e,arguments),e},scaleOrdinal:Kp,scalePoint:Qp,scalePow:Bh,scaleQuantile:function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=new Array(e-1);++t<e;)o[t-1]=Xp(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[Np(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],e<o.length?o[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(Pp),i()},a.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},Yp.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[Np(i,t,0,o)]:e}function u(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*n-(t-o)*r)/(o+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,i[0]]:e>=o?[i[o-1],n]:[i[e-1],i[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},Yp.apply(gh(c),arguments)},scaleRadial:function t(){var e,r=rh(),n=[0,1],o=!1;
14function i(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:o?Math.round(n):n}return i.invert=function(t){return r.invert(Rh(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,Gd)).map(Rh)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},Yp.apply(i,arguments),gh(i)},scaleSequential:function t(){var e=gh(tm()(Kd));return e.copy=function(){return em(e,t())},Gp.apply(e,arguments)},scaleSequentialLog:function t(){var e=kh(tm()).domain([1,10]);return e.copy=function(){return em(e,t()).base(e.base())},Gp.apply(e,arguments)},scaleSequentialPow:rm,scaleSequentialQuantile:function t(){var e=[],r=Kd;function n(t){if(null!=t&&!isNaN(t=+t))return r((Np(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Pp),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(r,n)=>function(t,e){if((r=(t=Float64Array.from(function*(t){for(let e of t)null!=e&&(e=+e)>=e&&(yield e)}(t))).length)&&!isNaN(e=+e)){if(e<=0||r<2)return qp(t);if(e>=1)return Fp(t);var r,n=(r-1)*e,o=Math.floor(n),i=Fp(Wp(t,o).subarray(0,o+1));return i+(qp(t.subarray(o+1))-i)*(n-o)}}(e,n/t))},n.copy=function(){return t(r).domain(e)},Gp.apply(n,arguments)},scaleSequentialSqrt:function(){return rm.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=_h(tm());return e.copy=function(){return em(e,t()).constant(e.constant())},Gp.apply(e,arguments)},scaleSqrt:function(){return Bh.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=_h(eh());return e.copy=function(){return th(e,t()).constant(e.constant())},Yp.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[Np(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(r=Array.from(t),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},Yp.apply(i,arguments)},scaleTime:function(){return Yp.apply(Qv(Ay,Ey,wy,gy,oy,ty,Jh,Kh,Vh,Ty).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Yp.apply(Qv(Sy,Py,jy,xy,py,ey,Qh,Zh,Vh,Cy).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:bh},Symbol.toStringTag,{value:"Module"}));var am=bt;var cm=function(t,e,r){for(var n=-1,o=t.length;++n<o;){var i=t[n],a=e(i);if(null!=a&&(void 0===c?a==a&&!am(a):r(a,c)))var c=a,u=i}return u};var um=cm,lm=function(t,e){return t>e},sm=Uu;const fm=c(function(t){return t&&t.length?um(t,sm,lm):void 0});var pm=cm,dm=function(t,e){return t<e},hm=Uu;const ym=c(function(t){return t&&t.length?pm(t,hm,dm):void 0});var vm=Qe,mm=Ju,bm=Xl,gm=J;var xm=Ll,wm=function(t,e){return(gm(t)?vm:bm)(t,mm(e))};const jm=c(function(t,e){return xm(wm(t,e),1)});var Om=yu;const Sm=c(function(t,e){return Om(t,e)});var Pm,Am=1e9,Em=!0,km="[DecimalError] ",Mm=km+"Invalid argument: ",Nm=km+"Exponent out of range: ",_m=Math.floor,Tm=Math.pow,Cm=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Dm=1e7,Im=9007199254740991,Bm=_m(1286742750677284.5),Rm={};function Lm(t,e){var r,n,o,i,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),Em?Gm(e,f):e;if(u=t.d,l=e.d,a=t.e,o=e.e,u=u.slice(),i=a-o){for(i<0?(n=u,i=-i,c=l.length):(n=l,o=a,c=u.length),i>(c=(a=Math.ceil(f/7))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=u.length)-(i=l.length)<0&&(i=c,n=l,l=u,u=n),r=0;i;
vendor: 13,414 bytes, line 14
14)r=(u[--i]=u[i]+l[i]+r)/Dm|0,u[i]%=Dm;for(r&&(u.unshift(r),++o),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=o,Em?Gm(e,f):e}function zm(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Mm+t)}function $m(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(r=7-(n=t[e]+"").length)&&(i+=Hm(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=Hm(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Rm.absoluteValue=Rm.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Rm.comparedTo=Rm.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},Rm.decimalPlaces=Rm.dp=function(){var t=this,e=t.d.length-1,r=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},Rm.dividedBy=Rm.div=function(t){return Um(this,new this.constructor(t))},Rm.dividedToIntegerBy=Rm.idiv=function(t){var e=this.constructor;return Gm(Um(this,new e(t),0,1),e.precision)},Rm.equals=Rm.eq=function(t){return!this.cmp(t)},Rm.exponent=function(){return qm(this)},Rm.greaterThan=Rm.gt=function(t){return this.cmp(t)>0},Rm.greaterThanOrEqualTo=Rm.gte=function(t){return this.cmp(t)>=0},Rm.isInteger=Rm.isint=function(){return this.e>this.d.length-2},Rm.isNegative=Rm.isneg=function(){return this.s<0},Rm.isPositive=Rm.ispos=function(){return this.s>0},Rm.isZero=function(){return 0===this.s},Rm.lessThan=Rm.lt=function(t){return this.cmp(t)<0},Rm.lessThanOrEqualTo=Rm.lte=function(t){return this.cmp(t)<1},Rm.logarithm=Rm.log=function(t){var e,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(Pm))throw Error(km+"NaN");if(r.s<1)throw Error(km+(r.s?"NaN":"-Infinity"));return r.eq(Pm)?new n(0):(Em=!1,e=Um(Xm(r,i),Xm(t,i),i),Em=!0,Gm(e,o))},Rm.minus=Rm.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Vm(e,t):Lm(e,(t.s=-t.s,t))},Rm.modulo=Rm.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(km+"NaN");return r.s?(Em=!1,e=Um(r,t,0,1).times(t),Em=!0,r.minus(e)):Gm(new n(r),o)},Rm.naturalExponential=Rm.exp=function(){return Fm(this)},Rm.naturalLogarithm=Rm.ln=function(){return Xm(this)},Rm.negated=Rm.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Rm.plus=Rm.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Lm(e,t):Vm(e,(t.s=-t.s,t))},Rm.precision=Rm.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Mm+t);if(e=qm(o)+1,r=7*(n=o.d.length-1)+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},Rm.squareRoot=Rm.sqrt=function(){var t,e,r,n,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(km+"NaN")}for(t=qm(c),Em=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=$m(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=_m((t+1)/2)-(t<0||t%2),n=new u(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(o.toString()),o=a=(r=u.precision)+3;;)if(n=(i=n).plus(Um(c,i,a+2)).times(.5),$m(i.d).slice(0,a)===(e=$m(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(Gm(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return Em=!0,Gm(n,r)},Rm.times=Rm.mul=function(t){var e,r,n,o,i,a,c,u,l,s=this,f=s.constructor,p=s.d,d=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=p.length)<(l=d.length)&&(i=p,p=d,d=i,a=u,u=l,l=a),i=[],n=a=u+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=u+n;o>n;)c=i[o]+d[n]*p[o-n-1]+e,i[o--]=c%Dm|0,e=c/Dm|0;i[o]=(i[o]+e)%Dm|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,Em?Gm(t,f.precision):t},Rm.toDecimalPlaces=Rm.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(zm(t,0,Am),void 0===e?e=n.rounding:zm(e,0,8),Gm(r,t+qm(r)+1,e))},Rm.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=Km(n,!0):(zm(t,0,Am),void 0===e?e=o.rounding:zm(e,0,8),r=Km(n=Gm(new o(n),t+1,e),!0,t+1)),r},Rm.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?Km(o):(zm(t,0,Am),void 0===e?e=i.rounding:zm(e,0,8),r=Km((n=Gm(new i(o),t+qm(o)+1,e)).abs(),!1,t+qm(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},Rm.toInteger=Rm.toint=function(){var t=this,e=t.constructor;return Gm(new e(t),qm(t)+1,e.rounding)},Rm.toNumber=function(){return+this},Rm.toPower=Rm.pow=function(t){var e,r,n,o,i,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(Pm);if(!(c=new u(c)).s){if(t.s<1)throw Error(km+"Infinity");return c}if(c.eq(Pm))return c;if(n=u.precision,t.eq(Pm))return Gm(c,n);if(a=(e=t.e)>=(r=t.d.length-1),i=c.s,a){if((r=l<0?-l:l)<=Im){for(o=new u(Pm),e=Math.ceil(n/7+4),Em=!1;r%2&&Zm((o=o.times(c)).d,e),0!==(r=_m(r/2));)Zm((c=c.times(c)).d,e);return Em=!0,t.s<0?new u(Pm).div(o):Gm(o,n)}}else if(i<0)throw Error(km+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,Em=!1,o=t.times(Xm(c,n+12)),Em=!0,(o=Fm(o)).s=i,o},Rm.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=Km(o,(r=qm(o))<=i.toExpNeg||r>=i.toExpPos):(zm(t,1,Am),void 0===e?e=i.rounding:zm(e,0,8),n=Km(o=Gm(new i(o),t,e),t<=(r=qm(o))||r<=i.toExpNeg,t)),n},Rm.toSignificantDigits=Rm.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(zm(t,1,Am),void 0===e?e=r.rounding:zm(e,0,8)),Gm(new r(this),t,e)},Rm.toString=Rm.valueOf=Rm.val=Rm.toJSON=Rm[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=qm(t),r=t.constructor;return Km(t,e<=r.toExpNeg||e>=r.toExpPos)};var Um=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%Dm|0,n=r/Dm|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*Dm+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,l,s,f,p,d,h,y,v,m,b,g,x,w,j,O,S,P=n.constructor,A=n.s==o.s?1:-1,E=n.d,k=o.d;if(!n.s)return new P(n);if(!o.s)throw Error(km+"Division by zero");for(u=n.e-o.e,O=k.length,w=E.length,h=(d=new P(A)).d=[],l=0;k[l]==(E[l]||0);)++l;if(k[l]>(E[l]||0)&&--u,(b=null==i?i=P.precision:a?i+(qm(n)-qm(o))+1:i)<0)return new P(0);if(b=b/7+2|0,l=0,1==O)for(s=0,k=k[0],b++;(l<w||s)&&b--;l++)g=s*Dm+(E[l]||0),h[l]=g/k|0,s=g%k|0;else{for((s=Dm/(k[0]+1)|0)>1&&(k=t(k,s),E=t(E,s),O=k.length,w=E.length),x=O,v=(y=E.slice(0,O)).length;v<O;)y[v++]=0;(S=k.slice()).unshift(0),j=k[0],k[1]>=Dm/2&&++j;do{s=0,(c=e(k,y,O,v))<0?(m=y[0],O!=v&&(m=m*Dm+(y[1]||0)),(s=m/j|0)>1?(s>=Dm&&(s=Dm-1),1==(c=e(f=t(k,s),y,p=f.length,v=y.length))&&(s--,r(f,O<p?S:k,p))):(0==s&&(c=s=1),f=k.slice()),(p=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(k,y,O,v=y.length))<1&&(s++,r(y,O<v?S:k,v)),v=y.length):0===c&&(s++,y=[0]),h[l++]=s,c&&y[0]?y[v++]=E[x]||0:(y=[E[x]],v=1)}while((x++<w||void 0!==y[0])&&b--)}return h[0]||h.shift(),d.e=u,Gm(d,a?i+qm(d)+1:i)}}();function Fm(t,e){var r,n,o,i,a,c=0,u=0,l=t.constructor,s=l.precision;if(qm(t)>16)throw Error(Nm+qm(t));if(!t.s)return new l(Pm);for(null==e?(Em=!1,a=s):a=e,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(Tm(2,u))/Math.LN10*2+5|0,r=n=o=new l(Pm),l.precision=a;;){if(n=Gm(n.times(t),a),r=r.times(++c),$m((i=o.plus(Um(n,r,a))).d).slice(0,a)===$m(o.d).slice(0,a)){for(;u--;)o=Gm(o.times(o),a);return l.precision=s,null==e?(Em=!0,Gm(o,s)):o}o=i}}function qm(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function Wm(t,e,r){if(e>t.LN10.sd())throw Em=!0,r&&(t.precision=r),Error(km+"LN10 precision limit exceeded");return Gm(new t(t.LN10),e)}function Hm(t){for(var e="";t--;)e+="0";return e}function Xm(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,d=p.d,h=p.constructor,y=h.precision;if(p.s<1)throw Error(km+(p.s?"NaN":"-Infinity"));if(p.eq(Pm))return new h(0);if(null==e?(Em=!1,l=y):l=e,p.eq(10))return null==e&&(Em=!0),Wm(h,l);if(l+=10,h.precision=l,n=(r=$m(d)).charAt(0),i=qm(p),!(Math.abs(i)<15e14))return u=Wm(h,l+2,y).times(i+""),p=Xm(new h(n+"."+r.slice(1)),l-10).plus(u),h.precision=y,null==e?(Em=!0,Gm(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=$m((p=p.times(t)).d)).charAt(0),f++;for(i=qm(p),n>1?(p=new h("0."+r),i++):p=new h(n+"."+r.slice(1)),c=a=p=Um(p.minus(Pm),p.plus(Pm),l),s=Gm(p.times(p),l),o=3;;){if(a=Gm(a.times(s),l),$m((u=c.plus(Um(a,new h(o),l))).d).slice(0,l)===$m(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(Wm(h,l+2,y).times(i+""))),c=Um(c,new h(f),l),h.precision=y,null==e?(Em=!0,Gm(c,y)):c;c=u,o+=2}}function Ym(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=_m(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=7;n<o;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),Em&&(t.e>Bm||t.e<-Bm))throw Error(Nm+r)}else t.s=0,t.e=0,t.d=[0];return t}function Gm(t,e,r){var n,o,i,a,c,u,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/7))>=(i=f.length))return t;for(l=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(c=l/(i=Tm(10,a-o-1))%10|0,u=e<0||void 0!==f[s+1]||l%i,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?o>0?l/Tm(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=qm(t),f.length=1,e=e-i-1,f[0]=Tm(10,(7-e%7)%7),t.e=_m(-e/7)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=Tm(10,7-n),f[s]=o>0?(l/Tm(10,a-o)%Tm(10,o)|0)*i:0),u)for(;;){if(0==s){(f[0]+=i)==Dm&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=Dm)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(Em&&(t.e>Bm||t.e<-Bm))throw Error(Nm+qm(t));return t}function Vm(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,d=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),Em?Gm(e,d):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(o=Math.max(Math.ceil(d/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=u.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(u[o]!=f[o]){s=u[o]<f[o];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,o=f.length-c;o>0;--o)u[c++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=Dm-1;--u[i],u[o]+=Dm}u[o]-=f[o]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,Em?Gm(e,d):e):new p(0)}function Km(t,e,r){var n,o=qm(t),i=$m(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Hm(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Hm(-o-1)+i,r&&(n=r-a)>0&&(i+=Hm(n))):o>=a?(i+=Hm(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Hm(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Hm(n))),t.s<0?"-"+i:i}function Zm(t,e){if(t.length>e)return t.length=e,!0}function Jm(t){if(!t||"object"!=typeof t)throw Error(km+"Object expected");var e,r,n,o=["precision",1,Am,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(_m(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(Mm+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(Mm+r+": "+n);this[r]=new this(n)}return this}var Qm=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(Mm+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):Ym(e,t.toString())}if("string"!=typeof t)throw Error(Mm+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Cm.test(t))throw Error(Mm+t);Ym(e,t)}if(i.prototype=Rm,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=Jm,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Pm=new Qm(1);const tb=Qm;function eb(t){return function(t){if(Array.isArray(t))return rb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return rb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rb(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var nb=function(t){return t},ob={"@@functional/placeholder":!0},ib=function(t){return t===ob},ab=function(t){return function e(){return 0===arguments.length||1===arguments.length&&ib(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}}
14,cb=function t(e,r){return 1===e?r:ab(function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter(function(t){return t!==ob}).length;return a>=e?r.apply(void 0,o):t(e-a,ab(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map(function(t){return ib(t)?e.shift():t});return r.apply(void 0,eb(i).concat(e))}))})},ub=function(t){return cb(t.length,t)},lb=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},sb=ub(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)}),fb=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},pb=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every(function(t,r){return t===e[r]})?r:(e=o,r=t.apply(void 0,o))}};const db={rangeStep:function(t,e,r){for(var n=new tb(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new tb(t).abs().log(10).toNumber())+1},interpolateNumber:ub(function(t,e,r){var n=+t;return n+r*(+e-n)}),uninterpolateNumber:ub(function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)}),uninterpolateTruncation:ub(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})};function hb(t){return function(t){if(Array.isArray(t))return mb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||vb(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(u){o=!0,i=u}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||vb(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vb(t,e){if(t){if("string"==typeof t)return mb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mb(t,e):void 0}}function mb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bb(t){var e=yb(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function gb(t,e,r){if(t.lte(0))return new tb(0);var n=db.getDigitCount(t.toNumber()),o=new tb(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new tb(Math.ceil(i.div(a
14).toNumber())).add(r).mul(a).mul(o);return e?c:new tb(Math.ceil(c))}function xb(t,e,r){var n=1,o=new tb(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new tb(10).pow(db.getDigitCount(t)-1),o=new tb(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new tb(Math.floor(t)))}else 0===t?o=new tb(Math.floor((e-1)/2)):r||(o=new tb(Math.floor(t)));var a=Math.floor((e-1)/2),c=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return nb;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce(function(t,e){return e(t)},o.apply(void 0,arguments))}}(sb(function(t){return o.add(new tb(t-a).mul(n)).toNumber()}),lb);return c(0,e)}function wb(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new tb(0),tickMin:new tb(0),tickMax:new tb(0)};var i,a=gb(new tb(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new tb(0):(i=new tb(t).add(e).div(2)).sub(new tb(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new tb(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?wb(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new tb(c).mul(a)),tickMax:i.add(new tb(u).mul(a))})}var jb=pb(function(t){var e=yb(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=yb(bb([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(hb(lb(0,o-1).map(function(){return 1/0}))):[].concat(hb(lb(0,o-1).map(function(){return-1/0})),[l]);return r>n?fb(s):s}if(u===l)return xb(u,o,i);var f=wb(u,l,a,i),p=f.step,d=f.tickMin,h=f.tickMax,y=db.rangeStep(d,h.add(new tb(.1).mul(p)),p);return r>n?fb(y):y}),Ob=pb(function(t,e){var r=yb(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=yb(bb([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=gb(new tb(u).sub(c).div(l-1),i,0),f=[].concat(hb(db.rangeStep(new tb(c),new tb(u).sub(new tb(.99).mul(s)),s)),[u]);return n>o?fb(f):f});function Sb(t,e){throw new Error("Invariant failed")}var Pb=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ab(t){return(Ab="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Eb(){return Eb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Eb.apply(this,arguments)}function kb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Mb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mb(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nb(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function _b(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rb(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tb(t,e,r){return e=Db(e),function(t,e){if(e&&("object"===Ab(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Cb()?Reflect.construct(e,r||[],Db(t).constructor):e.apply(t,r))}function Cb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cb=function(){return!!t})()}function Db(t){return(Db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ib(t,e){return(Ib=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Bb(t,e,r){return(e=Rb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rb(t){var e=function(t,e){if("object"!=Ab(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ab(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
14(t,"string");return"symbol"==Ab(e)?e:e+""}var Lb=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Tb(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ib(t,e)}(t,l.Component),_b(t,[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,s=Nb(t,Pb),f=kn(s,!1);"x"===this.props.direction&&"number"!==c.type&&Sb();var p=i.map(function(t){var i=a(t,o),s=i.x,p=i.y,d=i.value,h=i.errorVal;if(!h)return null;var y,v,m=[];if(Array.isArray(h)){var b=kb(h,2);y=b[0],v=b[1]}else y=v=h;if("vertical"===r){var g=c.scale,x=p+e,w=x+n,j=x-n,O=g(d-y),S=g(d+v);m.push({x1:S,y1:w,x2:S,y2:j}),m.push({x1:O,y1:x,x2:S,y2:x}),m.push({x1:O,y1:w,x2:O,y2:j})}else if("horizontal"===r){var P=u.scale,A=s+e,E=A-n,k=A+n,M=P(d-y),N=P(d+v);m.push({x1:E,y1:N,x2:k,y2:N}),m.push({x1:A,y1:M,x2:A,y2:N}),m.push({x1:E,y1:M,x2:k,y2:M})}return l.createElement(zn,Eb({className:"recharts-errorBar",key:"bar-".concat(m.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},f),m.map(function(t){return l.createElement("line",Eb({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return l.createElement(zn,{className:"recharts-errorBars"},p)}}])}();function zb(t){return(zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ub(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$b(Object(r),!0).forEach(function(e){Fb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Fb(t,e,r){var n;return n=function(t,e){if("object"!=zb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==zb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Bb(Lb,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Bb(Lb,"displayName","ErrorBar");var qb=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=Pn(e,Tl);if(!i)return null;var a,c=Tl.defaultProps,u=void 0!==c?Ub(Ub({},c),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce(function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map(function(t){return{type:i.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(r||[]).map(function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?Ub(Ub({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:u.iconType||a||"square",color:Jb(e),value:i||o,payload:n}}),Ub(Ub(Ub({},u),Tl.getWithHeight(i,n)),{},{payload:a,item:i})};function Wb(t){return(Wb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hb(t){return function(t){if(Array.isArray(t))return Xb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xb(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Gb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
14e%2?Yb(Object(r),!0).forEach(function(e){Vb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Vb(t,e,r){var n;return n=function(t,e){if("object"!=Wb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Wb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kb(t,e,r){return wr(t)||wr(e)?r:tn(e)?xr(t,e,r):Mt(e)?e(t):r}function Zb(t,e,r,n){var o=jm(t,function(t){return Kb(t,e)});if("number"===r){var i=o.filter(function(t){return Qr(t)||parseFloat(t)});return i.length?[ym(i),fm(i)]:[1/0,-1/0]}return(n?o.filter(function(t){return!wr(t)}):o).map(function(t){return tn(t)||t instanceof Date?t:""})}var Jb=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?Gb(Gb({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},Qb=function(t,e,r,n,o){var i=Sn(e.props.children,Lb).filter(function(t){return function(t,e,r){return!!wr(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)});if(i&&i.length){var a=i.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=Kb(e,r);if(wr(n))return t;var o=Array.isArray(n)?[ym(n),fm(n)]:[n,n],i=a.reduce(function(t,r){var n=Kb(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]},[1/0,-1/0])}return null},tg=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&Qb(t,e,i,n)||Zb(t,i,r,o)});if("number"===r)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return i.reduce(function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t},[])},eg=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},rg=function(t,e,r,n){if(n)return t.map(function(t){return t.coordinate});var o,i,a=t.map(function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate});return o||a.push(e),i||a.push(r),a},ng=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Zr(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map(function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}}).filter(function(t){return!Kr(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+u,value:t,offset:u}}):n.domain().map(function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}})},og=new WeakMap,ig=function(t,e){if("function"!=typeof e)return t;og.has(t)||og.set(t,new WeakMap);var r=og.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},ag=1e-4,cg={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=Kr(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}di(t,e)}},none:di,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}di(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,d=0;d<c;++d){var h=t[e[d]];
14p+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,di(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=Kr(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},ug=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=cg[r],i=function(){var t=po([]),e=hi,r=di,n=yi;function o(o){var i,a,c=Array.from(t.apply(this,arguments),vi),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=Ao(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:po(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:po(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?hi:"function"==typeof t?t:po(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?di:t,o):r},o}().keys(n).value(function(t,e){return+Kb(t,e,0)}).order(hi).offset(o);return i(t)},lg=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=Kb(i,e.dataKey,e.domain[a]);return wr(c)?null:e.scale(c)-o/2+n},sg=function(t,e,r){return Object.keys(t).reduce(function(n,o){var i=t[o].stackedData.reduce(function(t,n){var o=n.slice(e,r+1).reduce(function(t,e){return[ym(e.concat([t[0]]).filter(Qr)),fm(e.concat([t[1]]).filter(Qr))]},[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},fg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dg=function(t,e,r){if(Mt(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(Qr(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(fg.test(t[0])){var o=+fg.exec(t[0])[1];n[0]=e[0]-o}else Mt(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(Qr(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(pg.test(t[1])){var i=+pg.exec(t[1])[1];n[1]=e[1]+i}else Mt(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},hg=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=Es(e,function(t){return t.coordinate}),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},yg=function(t,e,r){return t&&t.length?Sm(t,xr(r,"type.defaultProps.domain"))?e:t:e},vg=function(t,e){var r=t.type.defaultProps?Gb(Gb({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return Gb(Gb({},kn(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Jb(t),value:Kb(e,n),type:c,payload:e,chartType:u,hide:l})};function mg(t){return(mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function gg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bg(Object(r),!0).forEach(function(e){xg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function xg(t,e,r){var n;return n=function(t,e){if("object"!=mg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==mg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wg=Math.PI/180,jg=function(t){return 180*t/Math.PI},Og=function(t,e,r,n){return{x:t+Math.cos(-wg*n)*r,y:e+Math.sin(-wg*n)*r}},Sg=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:jg(u),angleInRadian:u}},Pg=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},Ag=function(t,e){var r=t.x,n=t.y,o=Sg({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;l=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=f}return l?gg(gg({},e),{},{radius:i,angle:Pg(d,e)}):null};function Eg(t){return(Eg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var kg=["offset"];function Mg(t){return function(t){if(Array.isArray(t))return Ng(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ng(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ng(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ng(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _g(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Tg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Cg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
14e%2?Tg(Object(r),!0).forEach(function(e){Dg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Dg(t,e,r){var n;return n=function(t,e){if("object"!=Eg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Eg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Eg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ig(){return Ig=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ig.apply(this,arguments)}var Bg=function(t,r,n){var o,i,a=t.position,c=t.viewBox,u=t.offset,s=t.className,f=c,p=f.cx,d=f.cy,h=f.innerRadius,y=f.outerRadius,v=f.startAngle,m=f.endAngle,b=f.clockWise,g=(h+y)/2,x=function(t,e){return Zr(e-t)*Math.min(Math.abs(e-t),360)}(v,m),w=x>=0?1:-1;"insideStart"===a?(o=v+w*u,i=b):"insideEnd"===a?(o=m-w*u,i=!b):"end"===a&&(o=m+w*u,i=b),i=x<=0?i:!i;var j=Og(p,d,g,o),O=Og(p,d,g,o+359*(i?1:-1)),S="M".concat(j.x,",").concat(j.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(O.x,",").concat(O.y),P=wr(t.id)?rn("recharts-radial-line-"):t.id;return l.createElement("text",Ig({},n,{dominantBaseline:"central",className:e("recharts-radial-bar-label",s)}),l.createElement("defs",null,l.createElement("path",{id:P,d:S})),l.createElement("textPath",{xlinkHref:"#".concat(P)},r))};function Rg(t){var r,n=t.offset,o=Cg({offset:void 0===n?5:n},_g(t,kg)),i=o.viewBox,a=o.position,c=o.value,s=o.children,f=o.content,p=o.className,d=void 0===p?"":p,h=o.textBreakAll;if(!i||wr(c)&&wr(s)&&!u.isValidElement(f)&&!Mt(f))return null;if(u.isValidElement(f))return u.cloneElement(f,o);if(Mt(f)){if(r=u.createElement(f,o),u.isValidElement(r))return r}else r=function(t){var e=t.value,r=t.formatter,n=wr(t.children)?e:t.children;return Mt(r)?r(n):n}(o);var y=function(t){return"cx"in t&&Qr(t.cx)}(i),v=kn(o,!0);if(y&&("insideStart"===a||"insideEnd"===a||"end"===a))return Bg(o,r,v);var m=y?function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=Og(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=Og(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(o):function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",h=u>=0?1:-1,y=h*n,v=h>0?"end":"start",m=h>0?"start":"end";if("top"===o)return Cg(Cg({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return Cg(Cg({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var b={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return Cg(Cg({},b),r?{width:Math.max(b.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+u+y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return Cg(Cg({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var x=r?{width:u,height:l}:{};return"insideLeft"===o?Cg({x:a+y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?Cg({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?Cg({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:d},x):"insideBottom"===o?Cg({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?Cg({x:a+y,y:c+f,textAnchor:m,verticalAnchor:d},x):"insideTopRight"===o?Cg({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:d},x):"insideBottomLeft"===o?Cg({x:a+y,y:c+l-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===o?Cg({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:p},x):Pt(o)&&(Qr(o.x)||Jr(o.x))&&(Qr(o.y)||Jr(o.y))?Cg({x:a+nn(o.x,u),y:c+nn(o.y,l),textAnchor:"end",verticalAnchor:"end"},x):Cg({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)}(o);return l.createElement(Sp,Ig({className:e("recharts-label",d)},v,m,{breakAll:h}),r)}Rg.displayName="Label";var Lg=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,h=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(Qr(h)&&Qr(y)){if(Qr(s)&&Qr(f))return{x:s,y:f,width:h,height:y};if(Qr(p)&&Qr(d))return{x:p,y:d,width:h,height:y}}return Qr(s)&&Qr(f)?{x:s,y:f,width:0,height:0}:Qr(e)&&Qr(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Rg.parseViewBox=Lg,Rg.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,o=Lg(t),i=Sn(n,Rg).map(function(t,r){return u.cloneElement(t,{viewB
14ox:e||o,key:"label-".concat(r)})});if(!r)return i;var a=function(t,e){return t?!0===t?l.createElement(Rg,{key:"label-implicit",viewBox:e}):tn(t)?l.createElement(Rg,{key:"label-implicit",viewBox:e,value:t}):u.isValidElement(t)?t.type===Rg?u.cloneElement(t,{key:"label-implicit",viewBox:e}):l.createElement(Rg,{key:"label-implicit",content:t,viewBox:e}):Mt(t)?l.createElement(Rg,{key:"label-implicit",content:t,viewBox:e}):Pt(t)?l.createElement(Rg,Ig({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[a].concat(Mg(i))};const zg=c(function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0});function $g(t){return($g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ug=["valueAccessor"],Fg=["data","dataKey","clockWise","id","textBreakAll"];function qg(t){return function(t){if(Array.isArray(t))return Wg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Wg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wg(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Hg(){return Hg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hg.apply(this,arguments)}function Xg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Yg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xg(Object(r),!0).forEach(function(e){Gg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Gg(t,e,r){var n;return n=function(t,e){if("object"!=$g(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==$g(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Kg=function(t){return Array.isArray(t.value)?zg(t.value):t.value};function Zg(t){var e=t.valueAccessor,r=void 0===e?Kg:e,n=Vg(t,Ug),o=n.data,i=n.dataKey,a=n.clockWise,c=n.id,u=n.textBreakAll,s=Vg(n,Fg);return o&&o.length?l.createElement(zn,{className:"recharts-label-list"},o.map(function(t,e){var n=wr(i)?r(t,e):Kb(t&&t.payload,i),o=wr(c)?{}:{id:"".concat(c,"-").concat(e)};return l.createElement(Rg,Hg({},kn(t,!0),s,o,{parentViewBox:t.parentViewBox,value:n,textBreakAll:u,viewBox:Rg.parseViewBox(wr(a)?t:Yg(Yg({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))})):null}function Jg(t){return(Jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qg(){return Qg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
14for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qg.apply(this,arguments)}function tx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ex(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tx(Object(r),!0).forEach(function(e){rx(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function rx(t,e,r){var n;return n=function(t,e){if("object"!=Jg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Jg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Jg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Zg.displayName="LabelList",Zg.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=Sn(t.children,Zg).map(function(t,r){return u.cloneElement(t,{data:e,key:"labelList-".concat(r)})});return r?[function(t,e){return t?!0===t?l.createElement(Zg,{key:"labelList-implicit",data:e}):l.isValidElement(t)||Mt(t)?l.createElement(Zg,{key:"labelList-implicit",data:e,content:t}):Pt(t)?l.createElement(Zg,Hg({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(qg(n)):n};var nx=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/wg,f=u?o:o+i*s,p=u?o-i*s:o;return{center:Og(e,r,l,f),circleTangency:Og(e,r,n,f),lineTangency:Og(e,r,l*Math.cos(s*wg),p),theta:s}},ox=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return Zr(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=Og(e,r,o,i),l=Og(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=Og(e,r,n,i),p=Og(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},ix={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ax=function(t){var r=ex(ex({},ix),t),n=r.cx,o=r.cy,i=r.innerRadius,a=r.outerRadius,c=r.cornerRadius,u=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,p=r.endAngle,d=r.className;if(a<i||f===p)return null;var h,y=e("recharts-sector",d),v=a-i,m=nn(c,v,0,!0);return h=m>0&&Math.abs(f-p)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=Zr(l-u),f=nx({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,y=nx({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,b=y.theta,g=c?Math.abs(u-l):Math.abs(u-l)-h-b;if(g<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):ox({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var w=nx({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),j=w.circleTangency,O=w.lineTangency,S=w.theta,P=nx({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),A=P.circleTangency,E=P.lineTangency,k=P.theta,M=c?Math.abs(u-l):Math.abs(u-l)-S-k;if(M<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(A.x,",").concat(A.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(O.x,",").concat(O.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,v/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:f,endAngle:p}):ox({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:f,endAngle:p}),l.createElement("path",Qg({},kn(r,!0),{className:y,d:h,role:"img"}))};function cx(t){return(cx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ux(){return ux=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
14for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ux.apply(this,arguments)}function lx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function sx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lx(Object(r),!0).forEach(function(e){fx(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function fx(t,e,r){var n;return n=function(t,e){if("object"!=cx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==cx(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var px={curveBasisClosed:function(t){return new ti(t)},curveBasisOpen:function(t){return new ei(t)},curveBasis:function(t){return new Qo(t)},curveBumpX:function(t){return new Co(t,!0)},curveBumpY:function(t){return new Co(t,!1)},curveLinearClosed:function(t){return new ri(t)},curveLinear:ko,curveMonotoneX:function(t){return new ci(t)},curveMonotoneY:function(t){return new ui(t)},curveNatural:function(t){return new si(t)},curveStep:function(t){return new pi(t,.5)},curveStepAfter:function(t){return new pi(t,1)},curveStepBefore:function(t){return new pi(t,0)}},dx=function(t){return t.x===+t.x&&t.y===+t.y},hx=function(t){return t.x},yx=function(t){return t.y},vx=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(Mt(t))return t;var r="curve".concat(fo(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?px[r]||ko:px["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter(function(t){return dx(t)}):i;if(Array.isArray(a)){var p=l?a.filter(function(t){return dx(t)}):a,d=f.map(function(t,e){return sx(sx({},t),{},{base:p[e]})});return(e="vertical"===c?To().y(yx).x1(hx).x0(function(t){return t.base.x}):To().x(hx).y1(yx).y0(function(t){return t.base.y})).defined(dx).curve(s),e(d)}return(e="vertical"===c&&Qr(a)?To().y(yx).x1(hx).x0(a):Qr(a)?To().x(hx).y1(yx).y0(a):_o().x(hx).y(yx)).defined(dx).curve(s),e(f)},mx=function(t){var r=t.className,n=t.points,o=t.path,i=t.pathRef;if(!(n&&n.length||o))return null;var a=n&&n.length?vx(t):o;return l.createElement("path",ux({},kn(t,!1),hn(t),{className:e("recharts-curve",r),d:a,ref:i}))},bx={exports:{}};function gx(){}function xx(){}xx.resetWarningCache=gx;bx.exports=function(){function t(t,e,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:xx,resetWarningCache:gx};return r.PropTypes=r,r}();const wx=c(bx.exports);var jx=Object.getOwnPropertyNames,Ox=Object.getOwnPropertySymbols,Sx=Object.prototype.hasOwnProperty;function Px(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function Ax(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function Ex(t){return jx(t).concat(Ox(t))}var kx=Object.hasOwn||function(t,e){return Sx.call(t,e)};function Mx(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var Nx="_owner",_x=Object.getOwnPropertyDescriptor,Tx=Object.keys;function Cx(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function Dx(t,e){return Mx(t.getTime(),e.getTime())}function Ix(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],d=f[1],h=o.value,y=h[0],v=h[1];
14l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(d,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function Bx(t,e,r){var n,o=Tx(t),i=o.length;if(Tx(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===Nx&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!kx(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function Rx(t,e,r){var n,o,i,a=Ex(t),c=a.length;if(Ex(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===Nx&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!kx(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=_x(t,n),i=_x(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function Lx(t,e){return Mx(t.valueOf(),e.valueOf())}function zx(t,e){return t.source===e.source&&t.flags===e.flags}function $x(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function Ux(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var Fx=Array.isArray,qx="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Wx=Object.assign,Hx=Object.prototype.toString.call.bind(Object.prototype.toString);var Xx=Yx();function Yx(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?Rx:Cx,areDatesEqual:Dx,areMapsEqual:n?Px(Ix,Rx):Ix,areObjectsEqual:n?Rx:Bx,arePrimitiveWrappersEqual:Lx,areRegExpsEqual:zx,areSetsEqual:n?Px($x,Rx):$x,areTypedArraysEqual:n?Rx:Ux};if(r&&(o=Wx({},o,r(o))),e){var i=Ax(o.areArraysEqual),a=Ax(o.areMapsEqual),c=Ax(o.areObjectsEqual),u=Ax(o.areSetsEqual);o=Wx({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(Fx(t))return e(t,l,s);if(null!=qx&&qx(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=Hx(t);return"[object Date]"===p?r(t,l,s):"[object RegExp]"===p?a(t,l,s):"[object Map]"===p?n(t,l,s):"[object Set]"===p?c(t,l,s):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):"[object Arguments]"===p?o(t,l,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(t,l,s)}}(u);return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)}),strict:c})}function Gx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)})}function Vx(t){return(Vx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kx(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Zx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zx(t,e)}
14(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jx(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=Kx(n),i=o[0],a=o.slice(1);return"number"==typeof i?void Gx(r.bind(null,a),i):(r(i),void Gx(r.bind(null,a)))}"object"===Vx(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Qx(t){return(Qx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ew(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tw(Object(r),!0).forEach(function(e){rw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function rw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Qx(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qx(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Yx({strict:!0}),Yx({circular:!0}),Yx({circular:!0,strict:!0}),Yx({createInternalComparator:function(){return Mx}}),Yx({strict:!0,createInternalComparator:function(){return Mx}}),Yx({circular:!0,createInternalComparator:function(){return Mx}}),Yx({circular:!0,createInternalComparator:function(){return Mx},strict:!0});var nw=function(t){return t},ow=function(t,e){return Object.keys(e).reduce(function(r,n){return ew(ew({},r),{},rw({},n,t(n,e[n])))},{})},iw=function(t,e,r){return t.map(function(t){return"".concat((n=t,n.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())}))," ").concat(e,"ms ").concat(r);var n}).join(",")};function aw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||uw(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cw(t){return function(t){if(Array.isArray(t))return lw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||uw(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uw(t,e){if(t){if("string"==typeof t)return lw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lw(t,e):void 0}}function lw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var sw=1e-4,fw=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},pw=function(t,e){return t.map(function(t,r){return t*Math.pow(e,r)}).reduce(function(t,e){return t+e})},dw=function(t,e){return function(r){var n=fw(t,e);return pw(n,r)}},hw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];
14if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=aw(c[1].split(")")[0].split(",").map(function(t){return parseFloat(t)}),4);n=u[0],o=u[1],i=u[2],a=u[3]}}var l,s,f=dw(n,i),p=dw(o,a),d=(l=n,s=i,function(t){var e=fw(l,s),r=[].concat(cw(e.map(function(t,e){return t*e}).slice(1)),[0]);return pw(r,t)}),h=function(t){return t>1?1:t<0?0:t},y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=f(r)-e,i=d(r);if(Math.abs(o-e)<sw||i<sw)return p(r);r=h(r-o/i)}return p(r)};return y.isStepper=!1,y},yw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return hw(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<sw&&Math.abs(i)<sw?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return hw(n)}return"function"==typeof n?n:null};function vw(t){return(vw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mw(t){return function(t){if(Array.isArray(t))return Ow(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||jw(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function gw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bw(Object(r),!0).forEach(function(e){xw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function xw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==vw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==vw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===vw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ww(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||jw(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jw(t,e){if(t){if("string"==typeof t)return Ow(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ow(t,e):void 0}}function Ow(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Sw=function(t,e,r){return t+(e-t)*r},Pw=function(t){return t.from!==t.to},Aw=function t(e,r,n){var o=ow(function(t,r){if(Pw(r)){var n=ww(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return gw(gw({},r),{},{from:o,velocity:i})}return r},r);return n<1?ow(function(t,e){return Pw(e)?gw(gw({},e),{},{velocity:Sw(e.velocity,o[t].velocity,n),from:Sw(e.from,o[t].from,n)}):e},r):t(e,o,n-1)};const Ew=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce(function(t,e){return t.filter(function(t){return e.includes(t)})}
14)),s=l.reduce(function(r,n){return gw(gw({},r),{},xw({},n,[t[n],e[n]]))},{}),f=l.reduce(function(r,n){return gw(gw({},r),{},xw({},n,{from:t[n],velocity:0,to:e[n]}))},{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=Aw(r,f,i),o(gw(gw(gw({},t),e),ow(function(t,e){return e.from},f))),c=n,Object.values(f).filter(Pw).length&&(p=requestAnimationFrame(d))}:function(i){u||(u=i);var a=(i-u)/n,c=ow(function(t,e){return Sw.apply(void 0,mw(e).concat([r(a)]))},s);if(o(gw(gw(gw({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=ow(function(t,e){return Sw.apply(void 0,mw(e).concat([r(1)]))},s);o(gw(gw(gw({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function kw(t){return(kw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Mw=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Nw(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function _w(t){return function(t){if(Array.isArray(t))return Tw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Tw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tw(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Cw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Dw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cw(Object(r),!0).forEach(function(e){Iw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Iw(t,e,r){return(e=Rw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bw(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rw(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rw(t){var e=function(t,e){if("object"!==kw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==kw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===kw(e)?e:String(e)}function Lw(t,e){return(Lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function zw(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=Fw(t);if(e){var o=Fw(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $w(this,r)}}function $w(t,e){if(e&&("object"===kw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Uw(t)}function Uw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
14function Fw(t){return(Fw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var qw=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lw(t,e)}(e,u.PureComponent);var t=zw(e);function e(r,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=(o=t.call(this,r,n)).props,a=i.isActive,c=i.attributeName,u=i.from,l=i.to,s=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Uw(o)),o.changeStyle=o.changeStyle.bind(Uw(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:l}),$w(o);if(s&&s.length)o.state={style:s[0].style};else if(u){if("function"==typeof f)return o.state={style:u},$w(o);o.state={style:c?Iw({},c,u):u}}else o.state={style:{}};return o}return Bw(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(Xx(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?Iw({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(Dw(Dw({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?Iw({},o,a):a};
14this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=Ew(r,n,yw(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(_w(r.reduce(function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(_w(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var d=iw(p,i,c),h=Dw(Dw(Dw({},f.style),u),{},{transition:d});return[].concat(_w(t),[h,i,s]).filter(nw)},[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Jx());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?Iw({},n,o):o,p=iw(Object.keys(f),r,i);s.start([a,e,Dw(Dw({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var o=Nw(t,Mw),i=u.Children.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return u.cloneElement(t,Dw(Dw({},o),{},{style:Dw(Dw({},n),a),className:i}))};return 1===i?c(u.Children.only(e)):l.createElement("div",null,u.Children.map(e,function(t){return c(t)}))}}]),e}();function Ww(t){return(Ww="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hw(){return Hw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hw.apply(this,arguments)}function Xw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Yw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yw(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Vw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
14e%2?Gw(Object(r),!0).forEach(function(e){Kw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Kw(t,e,r){var n;return n=function(t,e){if("object"!=Ww(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ww(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ww(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}qw.displayName="Animate",qw.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},qw.propTypes={from:wx.oneOfType([wx.object,wx.string]),to:wx.oneOfType([wx.object,wx.string]),attributeName:wx.string,duration:wx.number,begin:wx.number,easing:wx.oneOfType([wx.string,wx.func]),steps:wx.arrayOf(wx.shape({duration:wx.number.isRequired,style:wx.object.isRequired,easing:wx.oneOfType([wx.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),wx.func]),properties:wx.arrayOf("string"),onAnimationEnd:wx.func})),children:wx.oneOfType([wx.node,wx.func]),isActive:wx.bool,canBegin:wx.bool,onAnimationEnd:wx.func,shouldReAnimate:wx.bool,onAnimationStart:wx.func,onAnimationReStart:wx.func},wx.object,wx.object,wx.object,wx.element,wx.object,wx.object,wx.object,wx.oneOfType([wx.array,wx.element]),wx.any;var Zw=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},Jw=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},Qw={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},tj=function(t){var r=Vw(Vw({},Qw),t),n=u.useRef(),o=Xw(u.useState(-1),2),i=o[0],a=o[1];u.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&a(t)}catch(e){}},[]);var c=r.x,s=r.y,f=r.width,p=r.height,d=r.radius,h=r.className,y=r.animationEasing,v=r.animationDuration,m=r.animationBegin,b=r.isAnimationActive,g=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||p!==+p||0===f||0===p)return null;var x=e("recharts-rectangle",h);return g?l.createElement(qw,{canBegin:i>0,from:{width:f,height:p,x:c,y:s},to:{width:f,height:p,x:c,y:s},duration:v,animationEasing:y,isActive:g},function(t){var e=t.width,o=t.height,a=t.x,c=t.y;return l.createElement(qw,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,isActive:b,easing:y},l.createElement("path",Hw({},kn(r,!0),{className:x,d:Zw(a,c,e,o,d),ref:n})))}):l.createElement("path",Hw({},kn(r,!0),{className:x,d:Zw(c,s,f,p,d)}))};function ej(){return ej=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
14for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ej.apply(this,arguments)}var rj=function(t){var r=t.cx,n=t.cy,o=t.r,i=t.className,a=e("recharts-dot",i);return r===+r&&n===+n&&o===+o?l.createElement("circle",ej({},kn(t,!1),hn(t),{className:a,cx:r,cy:n,r:o})):null};function nj(t){return(nj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var oj=["x","y","top","left","width","height","className"];function ij(){return ij=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ij.apply(this,arguments)}function aj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cj(t,e,r){var n;return n=function(t,e){if("object"!=nj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==nj(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uj(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var lj=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},sj=function(t){var r=t.x,n=void 0===r?0:r,o=t.y,i=void 0===o?0:o,a=t.top,c=void 0===a?0:a,u=t.left,s=void 0===u?0:u,f=t.width,p=void 0===f?0:f,d=t.height,h=void 0===d?0:d,y=t.className,v=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aj(Object(r),!0).forEach(function(e){cj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aj(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({x:n,y:i,top:c,left:s,width:p,height:h},uj(t,oj));return Qr(n)&&Qr(i)&&Qr(p)&&Qr(h)&&Qr(c)&&Qr(s)?l.createElement("path",ij({},kn(v,!0),{className:e("recharts-cross",y),d:lj(n,i,p,h,c,s)})):null},fj=vc(Object.getPrototypeOf,Object),pj=ht,dj=fj,hj=yt,yj=Function.prototype,vj=Object.prototype,mj=yj.toString,bj=vj.hasOwnProperty,gj=mj.call(Object);const xj=c(function(t){if(!hj(t)||"[object Object]"!=pj(t))return!1;var e=dj(t);if(null===e)return!0;var r=bj.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&mj.call(r)==gj});var wj=ht,jj=yt;const Oj=c(function(t){return!0===t||!1===t||jj(t)&&"[object Boolean]"==wj(t)});function Sj(t){return(Sj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pj(){return Pj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pj.apply(this,arguments)}function Aj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ej(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ej(t,e)}
14(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ej(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Mj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kj(Object(r),!0).forEach(function(e){Nj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kj(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Nj(t,e,r){var n;return n=function(t,e){if("object"!=Sj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Sj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Sj(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _j=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},Tj={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Cj=function(t){var r=Mj(Mj({},Tj),t),n=u.useRef(),o=Aj(u.useState(-1),2),i=o[0],a=o[1];u.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&a(t)}catch(e){}},[]);var c=r.x,s=r.y,f=r.upperWidth,p=r.lowerWidth,d=r.height,h=r.className,y=r.animationEasing,v=r.animationDuration,m=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||p!==+p||d!==+d||0===f&&0===p||0===d)return null;var g=e("recharts-trapezoid",h);return b?l.createElement(qw,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:d,x:c,y:s},to:{upperWidth:f,lowerWidth:p,height:d,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(t){var e=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return l.createElement(qw,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,easing:y},l.createElement("path",Pj({},kn(r,!0),{className:g,d:_j(c,u,e,o,a),ref:n})))}):l.createElement("g",null,l.createElement("path",Pj({},kn(r,!0),{className:g,d:_j(c,s,f,p,d)})))},Dj=["option","shapeType","propTransformer","activeClassName","isActive"];function Ij(t){return(Ij="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bj(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Rj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Lj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rj(Object(r),!0).forEach(function(e){zj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rj(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function zj(t,e,r){var n;return n=function(t,e){if("object"!=Ij(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ij(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ij(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $j(t,e){return Lj(Lj({},e),t)}function Uj(t){var e=t.shapeType,r=t.elementProps;
14switch(e){case"rectangle":return l.createElement(tj,r);case"trapezoid":return l.createElement(Cj,r);case"sector":return l.createElement(ax,r);case"symbols":if(function(t){return"symbols"===t}(e))return l.createElement(Ai,r);break;default:return null}}function Fj(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=void 0===o?$j:o,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,s=t.isActive,f=Bj(t,Dj);if(u.isValidElement(r))e=u.cloneElement(r,Lj(Lj({},f),function(t){return u.isValidElement(t)?t.props:t}(r)));else if(Mt(r))e=r(f);else if(xj(r)&&!Oj(r)){var p=i(r,f);e=l.createElement(Uj,{shapeType:n,elementProps:p})}else{var d=f;e=l.createElement(Uj,{shapeType:n,elementProps:d})}return s?l.createElement(zn,{className:c},e):e}function qj(t,e){return null!=e&&"trapezoids"in t.props}function Wj(t,e){return null!=e&&"sectors"in t.props}function Hj(t,e){return null!=e&&"points"in t.props}function Xj(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function Yj(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function Gj(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function Vj(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return qj(t,e)?r="trapezoids":Wj(t,e)?r="sectors":Hj(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return qj(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:Wj(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:Hj(t,e)?e.payload:{}}(r,e),a=n.filter(function(t,n){var a=Sm(i,t),c=r.props[o].filter(function(t){var n=function(t,e){var r;return qj(t,e)?r=Xj:Wj(t,e)?r=Yj:Hj(t,e)&&(r=Gj),r}(r,e);return n(t,e)}),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u});return n.indexOf(a[a.length-1])}var Kj=Math.ceil,Zj=Math.max;var Jj=Pf,Qj=1/0;var tO=function(t){return t?(t=Jj(t))===Qj||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},eO=function(t,e,r,n){for(var o=-1,i=Zj(Kj((e-t)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=t,t+=r;return a},rO=Os,nO=tO;const oO=c(function(t){return function(e,r,n){return n&&"number"!=typeof n&&rO(e,r,n)&&(r=n=void 0),e=nO(e),void 0===r?(r=e,e=0):r=nO(r),n=void 0===n?e<r?1:-1:nO(n),eO(e,r,n,t)}}());function iO(t){return(iO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function aO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aO(Object(r),!0).forEach(function(e){uO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function uO(t,e,r){var n;return n=function(t,e){if("object"!=iO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=iO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==iO(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lO=["Webkit","Moz","O","ms"];function sO(t){return(sO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fO(){return fO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
14for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fO.apply(this,arguments)}function pO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function dO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pO(Object(r),!0).forEach(function(e){gO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function hO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xO(n.key),n)}}function yO(t,e,r){return e=mO(e),function(t,e){if(e&&("object"===sO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,vO()?Reflect.construct(e,r||[],mO(t).constructor):e.apply(t,r))}function vO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vO=function(){return!!t})()}function mO(t){return(mO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function bO(t,e){return(bO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function gO(t,e,r){return(e=xO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xO(t){var e=function(t,e){if("object"!=sO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sO(e)?e:e+""}var wO=function(t){return t.changedTouches&&!!t.changedTouches.length},jO=function(){function t(e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),gO(r=yO(this,t,[e]),"handleDrag",function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)}),gO(r,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])}),gO(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})}),r.detachDragEndListener()}),gO(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),gO(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),gO(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),gO(r,"handleSlideDragStart",function(t){var e=wO(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bO(t,e)}(t,u.PureComponent),r=t,o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return l.createElement(l.Fragment,null,l.createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),l.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),l.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return l.isValidElement(e)?l.cloneElement(e,r):Mt(e)?e(r):t.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return dO({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Qp().domain(oO(0,c)).range([o,o+i-a]),l=u.domain().map(function(t){return u(t)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var r=e.startX,n=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=t.getIndexInRange(o,u),f=t.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=Kb(r[t],o,t);return Mt(n)?n(i,t):i}},{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(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=wO(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var v=this.getIndex(h),m=v.startIndex,b=v.endIndex;this.setState(gO(gO({},n,a+y),"brushMoveStartX",t.pageX),function(){var t;f&&(t=d.length-1,("startX"===n&&(o>i?m%p===0:b%p===0)||o<i&&b===t||"endX"===n&&(o>i?b%p===0:m%p===0)||o>i&&b===t)&&f(v))})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(gO({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.
14state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return l.createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,c=t.padding,s=u.Children.only(a);return s?l.cloneElement(s,{x:e,y:r,width:n,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,r){var n,o,i=this,a=this.props,c=a.y,u=a.travellerWidth,s=a.height,f=a.traveller,p=a.ariaLabel,d=a.data,h=a.startIndex,y=a.endIndex,v=Math.max(e,this.props.x),m=dO(dO({},kn(this.props,!1)),{},{x:v,y:c,width:u,height:s}),b=p||"Min value: ".concat(null===(n=d[h])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=d[y])||void 0===o?void 0:o.name);return l.createElement(zn,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return l.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:c,y:n,width:u,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,s=c.endX,f={pointerEvents:"none",fill:a};return l.createElement(zn,{className:"recharts-brush-texts"},l.createElement(Sp,fO({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,s)-5,y:n+o/2},f),this.getTextOfTick(e)),l.createElement(Sp,fO({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,s)+i+5,y:n+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,r=t.data,n=t.className,o=t.children,i=t.x,a=t.y,c=t.width,u=t.height,s=t.alwaysShowText,f=this.state,p=f.startX,d=f.endX,h=f.isTextActive,y=f.isSlideMoving,v=f.isTravellerMoving,m=f.isTravellerFocused;if(!r||!r.length||!Qr(i)||!Qr(a)||!Qr(c)||!Qr(u)||c<=0||u<=0)return null;var b,g,x,w,j=e("recharts-brush",n),O=1===l.Children.count(o),S=(g="none",x=(b="userSelect").replace(/(\w)/,function(t){return t.toUpperCase()}),(w=lO.reduce(function(t,e){return cO(cO({},t),{},uO({},e+x,g))},{}))[b]=g,w);return l.createElement(zn,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,d),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(d,"endX"),(h||y||v||m||s)&&this.renderText())}}])&&hO(r.prototype,n),o&&hO(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();gO(jO,"displayName","Brush"),gO(jO,"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 OO=ql;var SO=ra,PO=Ju,AO=function(t,e){var r;return OO(t,function(t,n,o){return!(r=e(t,n,o))}),!!r},EO=J,kO=Os;const MO=c(function(t,e,r){var n=EO(t)?SO:AO;return r&&kO(t,e,r)&&(e=void 0),n(t,PO(e))});var NO=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},_O=ss;var TO=function(t,e,r){"__proto__"==e&&_O?_O(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},CO=Ul,DO=Ju;const IO=c(function(t,e){var r={};return e=DO(e),CO(t,function(t,n,o){TO(r,n,e(t,n,o))}),r});var BO=ql;var RO=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},LO=function(t,e){var r=!0;return BO(t,function(t,n,o){return r=!!e(t,n,o)}),r},zO=Ju,$O=J,UO=Os;const FO=c(function(t,e,r){var n=$O(t)?RO:LO;return r&&UO(t,e,r)&&(e=void 0),n(t,zO(e))});var qO=["x","y"];function WO(t){return(WO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function HO(){return HO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
14for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HO.apply(this,arguments)}function XO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function YO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?XO(Object(r),!0).forEach(function(e){GO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function GO(t,e,r){var n;return n=function(t,e){if("object"!=WO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=WO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==WO(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function KO(t,e){var r=t.x,n=t.y,o=VO(t,qO),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return YO(YO(YO(YO(YO({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function ZO(t){return l.createElement(Fj,HO({shapeType:"rectangle",propTransformer:KO,activeClassName:"recharts-active-bar"},t))}var JO,QO=["value","background"];function tS(t){return(tS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function rS(){return rS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rS.apply(this,arguments)}function nS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function oS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nS(Object(r),!0).forEach(function(e){sS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function iS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fS(n.key),n)}}function aS(t,e,r){return e=uS(e),function(t,e){if(e&&("object"===tS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,cS()?Reflect.construct(e,r||[],uS(t).constructor):e.apply(t,r))}function cS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cS=function(){return!!t})()}
14function uS(t){return(uS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function lS(t,e){return(lS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sS(t,e,r){return(e=fS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fS(t){var e=function(t,e){if("object"!=tS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tS(e)?e:e+""}var pS=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return sS(e=aS(this,t,[].concat(n)),"state",{isAnimationFinished:!1}),sS(e,"id",rn("recharts-bar-")),sS(e,"handleAnimationEnd",function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()}),sS(e,"handleAnimationStart",function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lS(t,e)}(t,u.PureComponent),r=t,o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,c=kn(this.props,!1);return t&&t.map(function(t,r){var u=r===i,s=u?a:n,f=oS(oS(oS({},c),t),{},{isActive:u,option:s,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return l.createElement(zn,rS({className:"recharts-bar-rectangle"},yn(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),l.createElement(ZO,f))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,s=this.state.prevData;return l.createElement(qw,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var o=e.t,i=r.map(function(t,e){var r=s&&s[e];if(r){var i=an(r.x,t.x),a=an(r.y,t.y),c=an(r.width,t.width),u=an(r.height,t.height);return oS(oS({},t),{},{x:i(o),y:a(o),width:c(o),height:u(o)})}if("horizontal"===n){var l=an(0,t.height)(o);return oS(oS({},t),{},{y:t.y+t.height-l,height:l})}var f=an(0,t.width)(o);return oS(oS({},t),{},{width:f})});return l.createElement(zn,null,t.renderRectanglesStatically(i))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Sm(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=kn(this.props.background,!1);return r.map(function(e,r){e.value;var a=e.background,c=eS(e,QO);if(!a)return null;var u=oS(oS(oS(oS(oS({},c),{},{fill:"#eee"},a),i),yn(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return l.createElement(ZO,rS({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},u))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,c=Sn(r.children,Lb);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Kb(t,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return l.createElement(zn,f,c.map(function(t){return l.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:u,dataPointFormatter:s})}))}},{key:"render",value:function(){var t=this.props,r=t.hide,n=t.data,o=t.className,i=t.xAxis,a=t.yAxis,c=t.left,u=t.top,s=t.
14width,f=t.height,p=t.isAnimationActive,d=t.background,h=t.id;if(r||!n||!n.length)return null;var y=this.state.isAnimationFinished,v=e("recharts-bar",o),m=i&&i.allowDataOverflow,b=a&&a.allowDataOverflow,g=m||b,x=wr(h)?this.id:h;return l.createElement(zn,{className:v},m||b?l.createElement("defs",null,l.createElement("clipPath",{id:"clipPath-".concat(x)},l.createElement("rect",{x:m?c:c-s/2,y:b?u:u-f/2,width:m?s:2*s,height:b?f:2*f}))):null,l.createElement(zn,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(x,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,x),(!p||y)&&Zg.renderCallByParent(this.props,n))}}])&&iS(r.prototype,n),o&&iS(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function dS(t){return(dS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bS(n.key),n)}}function yS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function vS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yS(Object(r),!0).forEach(function(e){mS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function mS(t,e,r){return(e=bS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bS(t){var e=function(t,e){if("object"!=dS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dS(e)?e:e+""}JO=pS,sS(pS,"displayName","Bar"),sS(pS,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!tf.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),sS(pS,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,d=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!d)return null;var h=e.layout,y=r.type.defaultProps,v=void 0!==y?oS(oS({},y),r.props):r.props,m=v.dataKey,b=v.children,g=v.minPointSize,x="horizontal"===h?a:i,w=l?x.scale.domain():null,j=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:x}),O=Sn(b,Uf),S=f.map(function(t,e){var n,f,p,y,v,b;l?n=function(t,e){if(!e||2!==e.length||!Qr(e[0])||!Qr(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!Qr(t[0])||t[0]<r)&&(o[0]=r),(!Qr(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],w):(n=Kb(t,m),Array.isArray(n)||(n=[j,n]));var x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||Sb(),e)}}(g,JO.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var S,P=[a.scale(n[0]),a.scale(n[1])],A=P[0],E=P[1];f=lg({axis:i,ticks:c,bandSize:o,offset:d.offset,entry:t,index:e}),p=null!==(S=null!=E?E:A)&&void 0!==S?S:void 0,y=d.size;var k=A-E;if(v=Number.isNaN(k)?0:k,b={x:f,y:a.y,width:y,height:a.height},Math.abs(x)>0&&Math.abs(v)<Math.abs(x)){var M=Zr(v||x)*(Math.abs(x)-Math.abs(v));p-=M,v+=M}}else{var N=[i.scale(n[0]),i.scale(n[1])],_=N[0],T=N[1];if(f=_,p=lg({axis:a,ticks:u,bandSize:o,offset:d.offset,entry:t,index:e}),y=T-_,v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(x)>0&&Math.abs(y)<Math.abs(x))y+=Zr(y||x)*(Math.abs(x)-Math.abs(y))}return oS(oS(oS({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[vg(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})});return oS({data:S,layout:h},p)});var gS=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},xS=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{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(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&hS(e.prototype,r),n&&hS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();mS(xS,"EPS",1e-4);var wS=function(t){var e=Object.keys(t).reduce(function(e,r){return vS(vS({},e),{},mS({},r,xS.create(t[r])))},{});return vS(vS({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return IO(t,function(t,r){return e[r].apply(t,{bandAware:n,position:o})})},isInRange:function(t){return FO(t,function(t,r){return e[r].isInRange(t)}
14)}})};var jS=Ju,OS=Oc,SS=Ec;var PS=function(t){return function(e,r,n){var o=Object(e);if(!OS(e)){var i=jS(r);e=SS(e),r=function(t){return i(o[t],t,o)}}var a=t(e,r,n);return a>-1?o[i?e[a]:a]:void 0}},AS=tO;var ES=Qu,kS=Ju,MS=function(t){var e=AS(t),r=e%1;return e==e?r?e-r:e:0},NS=Math.max;const _S=c(PS(function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:MS(r);return o<0&&(o=NS(n+o,0)),ES(t,kS(e),o)}));var TS=Ge(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),CS=u.createContext(void 0),DS=u.createContext(void 0),IS=u.createContext(void 0),BS=u.createContext({}),RS=u.createContext(void 0),LS=u.createContext(0),zS=u.createContext(0),$S=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,a=t.children,c=t.width,u=t.height,s=TS(o);return l.createElement(CS.Provider,{value:r},l.createElement(DS.Provider,{value:n},l.createElement(BS.Provider,{value:o},l.createElement(IS.Provider,{value:s},l.createElement(RS.Provider,{value:i},l.createElement(LS.Provider,{value:u},l.createElement(zS.Provider,{value:c},a)))))))},US=function(t){var e=u.useContext(CS);null==e&&Sb();var r=e[t];return null==r&&Sb(),r},FS=function(t){var e=u.useContext(DS);null==e&&Sb();var r=e[t];return null==r&&Sb(),r},qS=function(){return u.useContext(zS)},WS=function(){return u.useContext(LS)};function HS(t){return(HS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function XS(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function YS(t,e,r){return e=VS(e),function(t,e){if(e&&("object"===HS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,GS()?Reflect.construct(e,r||[],VS(t).constructor):e.apply(t,r))}function GS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(GS=function(){return!!t})()}function VS(t){return(VS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function KS(t,e){return(KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ZS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function JS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ZS(Object(r),!0).forEach(function(e){QS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function QS(t,e,r){return(e=tP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tP(t){var e=function(t,e){if("object"!=HS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=HS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==HS(e)?e:e+""}function eP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}
14finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return rP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nP(){return nP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nP.apply(this,arguments)}function oP(t){var r=t.x,n=t.y,o=t.segment,i=t.xAxisId,a=t.yAxisId,c=t.shape,s=t.className,f=t.alwaysShow,p=u.useContext(RS),d=US(i),h=FS(a),y=u.useContext(IS);if(!p||!y)return null;$n(void 0===f,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var d=u.y,h=t.y.apply(d,{position:i});if(NO(u,"discard")&&!t.y.isInRange(h))return null;var y=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?y.reverse():y}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(NO(u,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=u.segment.map(function(e){return t.apply(e,{position:i})});return NO(u,"discard")&&MO(g,function(e){return!t.isInRange(e)})?null:g}return null}(wS({x:d.scale,y:h.scale}),tn(r),tn(n),o&&2===o.length,y,t.position,d.orientation,h.orientation,t);if(!v)return null;var m=eP(v,2),b=m[0],g=b.x,x=b.y,w=m[1],j=w.x,O=w.y,S=JS(JS({clipPath:NO(t,"hidden")?"url(#".concat(p,")"):void 0},kn(t,!0)),{},{x1:g,y1:x,x2:j,y2:O});return l.createElement(zn,{className:e("recharts-reference-line",s)},function(t,e){return l.isValidElement(t)?l.cloneElement(t,e):Mt(t)?t(e):l.createElement("line",nP({},e,{className:"recharts-reference-line-line"}))}(c,S),Rg.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return gS({x:e,y:r},{x:n,y:o})}({x1:g,y1:x,x2:j,y2:O})))}var iP=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),YS(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&KS(t,e)}(t,l.Component),XS(t,[{key:"render",value:function(){return l.createElement(oP,this.props)}}])}();function aP(){return aP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},aP.apply(this,arguments)}function cP(t){return(cP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function lP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uP(Object(r),!0).forEach(function(e){yP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function sP(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function fP(t,e,r){return e=dP(e),function(t,e){if(e&&("object"===cP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pP()?Reflect.construct(e,r||[],dP(t).constructor):e.apply(t,r))}function pP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pP=function(){return!!t})()}function dP(t){return(dP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
14function hP(t,e){return(hP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function yP(t,e,r){return(e=vP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vP(t){var e=function(t,e){if("object"!=cP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cP(e)?e:e+""}QS(iP,"displayName","ReferenceLine"),QS(iP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var mP=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),fP(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hP(t,e)}(t,l.Component),sP(t,[{key:"render",value:function(){var r=this.props,n=r.x,o=r.y,i=r.r,a=r.alwaysShow,c=r.clipPathId,u=tn(n),s=tn(o);if($n(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!s)return null;var f=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=wS({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return NO(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!f)return null;var p=f.x,d=f.y,h=this.props,y=h.shape,v=h.className,m=lP(lP({clipPath:NO(this.props,"hidden")?"url(#".concat(c,")"):void 0},kn(this.props,!0)),{},{cx:p,cy:d});return l.createElement(zn,{className:e("recharts-reference-dot",v)},t.renderDot(y,m),Rg.renderCallByParent(this.props,{x:p-i,y:d-i,width:2*i,height:2*i}))}}])}();function bP(){return bP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bP.apply(this,arguments)}function gP(t){return(gP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function wP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xP(Object(r),!0).forEach(function(e){EP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function jP(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function OP(t,e,r){return e=PP(e),function(t,e){if(e&&("object"===gP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,SP()?Reflect.construct(e,r||[],PP(t).constructor):e.apply(t,r))}function SP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(SP=function(){return!!t})()}function PP(t){return(PP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function AP(t,e){return(AP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function EP(t,e,r){return(e=kP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kP(t){var e=function(t,e){if("object"!=gP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
14(t,"string");return"symbol"==gP(e)?e:e+""}yP(mP,"displayName","ReferenceDot"),yP(mP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),yP(mP,"renderDot",function(t,e){return l.isValidElement(t)?l.cloneElement(t,e):Mt(t)?t(e):l.createElement(rj,aP({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))});var MP=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),OP(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&AP(t,e)}(t,l.Component),jP(t,[{key:"render",value:function(){var r=this.props,n=r.x1,o=r.x2,i=r.y1,a=r.y2,c=r.className,u=r.alwaysShow,s=r.clipPathId;$n(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=tn(n),p=tn(o),d=tn(i),h=tn(a),y=this.props.shape;if(!(f||p||d||h||y))return null;var v=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=wS({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!NO(o,"discard")||f.isInRange(p)&&f.isInRange(d)?gS(p,d):null}(f,p,d,h,this.props);if(!v&&!y)return null;var m=NO(this.props,"hidden")?"url(#".concat(s,")"):void 0;return l.createElement(zn,{className:e("recharts-reference-area",c)},t.renderRect(y,wP(wP({clipPath:m},kn(this.props,!0)),v)),Rg.renderCallByParent(this.props,v))}}])}();function NP(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e)n.push(t[o]);return n}function _P(t,e,r){return function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)}({width:t.width+e.width,height:t.height+e.height},r)}function TP(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function CP(t){return(CP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function DP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function IP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DP(Object(r),!0).forEach(function(e){BP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function BP(t,e,r){var n;return n=function(t,e){if("object"!=CP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=CP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==CP(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RP(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(Qr(u)||tf.isSsr)return function(t,e){return NP(t,e+1)}(o,"number"==typeof u&&Qr(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?Vf(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=Mt(l)?l(t.value,n):t.value;return"width"===d?_P(Vf(o,{fontSize:e,letterSpacing:r}),h,f):Vf(o,{fontSize:e,letterSpacing:r})[d]},v=o.length>
14=2?Zr(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,d);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:NP(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},d=e.coordinate,h=0===l||TP(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=IP(IP({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),TP(t,s.tickCoord,function(){return f},u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=IP(IP({},s),{},{isShow:!0}))}for(var d=i?c-1:c,h=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=IP(IP({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=IP(IP({},i),{},{tickCoord:i.coordinate});TP(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=IP(IP({},i),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,m,y,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=IP(IP({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=IP(IP({},l),{},{tickCoord:l.coordinate});TP(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=IP(IP({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,y,o,a),p.filter(function(t){return t.isShow}))}EP(MP,"displayName","ReferenceArea"),EP(MP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),EP(MP,"renderRect",function(t,e){return l.isValidElement(t)?l.cloneElement(t,e):Mt(t)?t(e):l.createElement(tj,bP({},e,{className:"recharts-reference-area-rect"}))});var LP=["viewBox"],zP=["viewBox"],$P=["ticks"];function UP(t){return(UP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function FP(){return FP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},FP.apply(this,arguments)}function qP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function WP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qP(Object(r),!0).forEach(function(e){ZP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function HP(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function XP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,JP(n.key),n)}}function YP(t,e,r){return e=VP(e),function(t,e){if(e&&("object"===UP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,GP()?Reflect.construct(e,r||[],VP(t).constructor):e.apply(t,r))}function GP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(GP=function(){return!!t})()}function VP(t){return(VP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function KP(t,e){return(KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ZP(t,e,r){return(e=JP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function JP(t){var e=function(t,e){if("object"!=UP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
14(t,"string");return"symbol"==UP(e)?e:e+""}var QP=function(){function t(e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(r=YP(this,t,[e])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&KP(t,e)}(t,u.Component),r=t,o=[{key:"renderTickItem",value:function(t,e,r){return l.isValidElement(t)?l.cloneElement(t,e):Mt(t)?t(e):l.createElement(Sp,FP({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],(n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=HP(t,LP),o=this.props,i=o.viewBox,a=HP(o,zP);return!un(r,i)||!un(n,a)||!un(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,m=t.tickSize||d,b=Qr(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!h*f)-v*m)-v*y,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!h*s)-v*m)-v*y,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +h*s)+v*m)+v*y,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +h*f)+v*m)+v*y,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,r=t.x,n=t.y,o=t.width,i=t.height,a=t.orientation,c=t.mirror,u=t.axisLine,s=WP(WP(WP({},kn(this.props,!1)),kn(u,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var f=+("top"===a&&!c||"bottom"===a&&c);s=WP(WP({},s),{},{x1:r,y1:n+f*i,x2:r+o,y2:n+f*i})}else{var p=+("left"===a&&!c||"right"===a&&c);s=WP(WP({},s),{},{x1:r+p*o,y1:n,x2:r+p*o,y2:n+i})}return l.createElement("line",FP({},s,{className:e("recharts-cartesian-axis-line",xr(u,"className"))}))}},{key:"renderTicks",value:function(r,n,o){var i=this,a=this.props,c=a.tickLine,u=a.stroke,s=a.tick,f=a.tickFormatter,p=a.unit,d=RP(WP(WP({},this.props),{},{ticks:r}),n,o),h=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=kn(this.props,!1),m=kn(s,!1),b=WP(WP({},v),{},{fill:"none"},kn(c,!1)),g=d.map(function(r,n){var o=i.getTickLineCoord(r),a=o.line,g=o.tick,x=WP(WP(WP(WP({textAnchor:h,verticalAnchor:y},v),{},{stroke:"none",fill:u},m),g),{},{index:n,payload:r,visibleTicksCount:d.length,tickFormatter:f});return l.createElement(zn,FP({className:"recharts-cartesian-axis-tick",key:"tick-".concat(r.value,"-").concat(r.coordinate,"-").concat(r.tickCoord)},yn(i.props,r,n)),c&&l.createElement("line",FP({},b,a,{className:e("recharts-cartesian-axis-tick-line",xr(c,"className"))})),s&&t.renderTickItem(s,x,"".concat(Mt(f)?f(r.value,n):r.value).concat(p||"")))});return l.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,r=this.props,n=r.axisLine,o=r.width,i=r.height,a=r.ticksGenerator,c=r.className;if(r.hide)return null;var u=this.props,s=u.ticks,f=HP(u,$P),p=s;return Mt(a)&&(p=s&&s.length>0?a(this.props):a(f)),o<=0||i<=0||!p||!p.length?null:l.createElement(zn,{className:e("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),Rg.renderCallByParent(this.props))}}])&&XP(r.prototype,n),o&&XP(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();ZP(QP,"displayName","CartesianAxis"),ZP(QP,"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
14:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var tA=["x1","y1","x2","y2","key"],eA=["offset"];function rA(t){return(rA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function oA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nA(Object(r),!0).forEach(function(e){iA(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function iA(t,e,r){var n;return n=function(t,e){if("object"!=rA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==rA(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aA(){return aA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},aA.apply(this,arguments)}function cA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var uA=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,o=t.y,i=t.width,a=t.height,c=t.ry;return l.createElement("rect",{x:n,y:o,ry:c,width:i,height:a,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function lA(t,e){var r;if(l.isValidElement(t))r=l.cloneElement(t,e);else if(Mt(t))r=t(e);else{var n=e.x1,o=e.y1,i=e.x2,a=e.y2,c=e.key,u=cA(e,tA),s=kn(u,!1);s.offset;var f=cA(s,eA);r=l.createElement("line",aA({},f,{x1:n,y1:o,x2:i,y2:a,fill:"none",key:c}))}return r}function sA(t){var e=t.x,r=t.width,n=t.horizontal,o=void 0===n||n,i=t.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(n,i){var a=oA(oA({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(i),index:i});return lA(o,a)});return l.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function fA(t){var e=t.y,r=t.height,n=t.vertical,o=void 0===n||n,i=t.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(n,i){var a=oA(oA({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(i),index:i});return lA(o,a)});return l.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function pA(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,o=t.y,i=t.width,a=t.height,c=t.horizontalPoints,u=t.horizontal;if(!(void 0===u||u)||!e||!e.length)return null;var s=c.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,c){var u=!s[c+1]?o+a-t:s[c+1]-t;if(u<=0)return null;var f=c%e.length;return l.createElement("rect",{key:"react-".concat(c),y:t,x:n,height:u,width:i,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return l.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function dA(t){var e=t.vertical,r=void 0===e||e,n=t.verticalFill,o=t.fillOpacity,i=t.x,a=t.y,c=t.width,u=t.height,s=t.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==f[0]&&f.unshift(0);var p=f.map(function(t,e){var r=!f[e+1]?i+c-t:f[e+1]-t;if(r<=0)return null;var s=e%n.length;return l.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:r,height:u,stroke:"none",fill:n[s],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return l.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var hA=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return rg(RP(oA(oA(oA({},QP.defaultProps),r),{}
14,{ticks:ng(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},yA=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return rg(RP(oA(oA(oA({},QP.defaultProps),r),{},{ticks:ng(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},vA={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function mA(t){var e,r,n,o,i,a,c,s,f=qS(),p=WS(),d=u.useContext(BS),h=oA(oA({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:vA.stroke,fill:null!==(r=t.fill)&&void 0!==r?r:vA.fill,horizontal:null!==(n=t.horizontal)&&void 0!==n?n:vA.horizontal,horizontalFill:null!==(o=t.horizontalFill)&&void 0!==o?o:vA.horizontalFill,vertical:null!==(i=t.vertical)&&void 0!==i?i:vA.vertical,verticalFill:null!==(a=t.verticalFill)&&void 0!==a?a:vA.verticalFill,x:Qr(t.x)?t.x:d.left,y:Qr(t.y)?t.y:d.top,width:Qr(t.width)?t.width:d.width,height:Qr(t.height)?t.height:d.height}),y=h.x,v=h.y,m=h.width,b=h.height,g=h.syncWithTicks,x=h.horizontalValues,w=h.verticalValues,j=(c=u.useContext(CS),on(c)),O=(s=u.useContext(DS),_S(s,function(t){return FO(t.domain,Number.isFinite)})||on(s));if(!Qr(m)||m<=0||!Qr(b)||b<=0||!Qr(y)||y!==+y||!Qr(v)||v!==+v)return null;var S=h.verticalCoordinatesGenerator||hA,P=h.horizontalCoordinatesGenerator||yA,A=h.horizontalPoints,E=h.verticalPoints;if((!A||!A.length)&&Mt(P)){var k=x&&x.length,M=P({yAxis:O?oA(oA({},O),{},{ticks:k?x:O.ticks}):void 0,width:f,height:p,offset:d},!!k||g);$n(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(rA(M),"]")),Array.isArray(M)&&(A=M)}if((!E||!E.length)&&Mt(S)){var N=w&&w.length,_=S({xAxis:j?oA(oA({},j),{},{ticks:N?w:j.ticks}):void 0,width:f,height:p,offset:d},!!N||g);$n(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(rA(_),"]")),Array.isArray(_)&&(E=_)}return l.createElement("g",{className:"recharts-cartesian-grid"},l.createElement(uA,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),l.createElement(sA,aA({},h,{offset:d,horizontalPoints:A,xAxis:j,yAxis:O})),l.createElement(fA,aA({},h,{offset:d,verticalPoints:E,xAxis:j,yAxis:O})),l.createElement(pA,aA({},h,{horizontalPoints:A})),l.createElement(dA,aA({},h,{verticalPoints:E})))}function bA(t){return(bA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gA(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,PA(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xA(t,e,r){return e=jA(e),function(t,e){if(e&&("object"===bA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,wA()?Reflect.construct(e,r||[],jA(t).constructor):e.apply(t,r))}function wA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wA=function(){return!!t})()}function jA(t){return(jA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function OA(t,e){return(OA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function SA(t,e,r){return(e=PA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function PA(t){var e=function(t,e){if("object"!=bA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bA(e)?e:e+""}function AA(){return AA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
14for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},AA.apply(this,arguments)}function EA(t){var r=t.xAxisId,n=qS(),o=WS(),i=US(r);return null==i?null:l.createElement(QP,AA({},i,{className:e("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(t){return ng(t,!0)}}))}mA.displayName="CartesianGrid";var kA=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xA(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OA(t,e)}(t,l.Component),gA(t,[{key:"render",value:function(){return l.createElement(EA,this.props)}}])}();function MA(t){return(MA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function NA(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,BA(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _A(t,e,r){return e=CA(e),function(t,e){if(e&&("object"===MA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,TA()?Reflect.construct(e,r||[],CA(t).constructor):e.apply(t,r))}function TA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(TA=function(){return!!t})()}function CA(t){return(CA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function DA(t,e){return(DA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function IA(t,e,r){return(e=BA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BA(t){var e=function(t,e){if("object"!=MA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=MA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==MA(e)?e:e+""}function RA(){return RA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},RA.apply(this,arguments)}SA(kA,"displayName","XAxis"),SA(kA,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var LA=function(t){var r=t.yAxisId,n=qS(),o=WS(),i=FS(r);return null==i?null:l.createElement(QP,RA({},i,{className:e("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(t){return ng(t,!0)}}))},zA=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),_A(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&DA(t,e)}(t,l.Component),NA(t,[{key:"render",value:function(){return l.createElement(LA,this.props)}}])}();function $A(t){return function(t){if(Array.isArray(t))return UA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return UA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return UA(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}IA(zA,"displayName","YAxis"),IA(zA,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var FA=function(t,e,r,n,o){var i=Sn(t,iP),a=Sn(t,mP),c=[].concat($A(i),$A(a)),u=Sn(t,MP),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce(function(t,e){if(e.props[l]===r&&NO(e.props,"extendDomain")&&Qr(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t},f)),u.length){var p="".concat(s,"1"),d="".concat(s,"2");f=u.reduce(function(t,e){if(e.props[l]===r&&NO(e.props,"extendDomain")&&Qr(e.props[p])&&Qr(e.props[d])){var n=e.props[p],o=e.props[d];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t},f)}return o&&o.length&&(f=o.reduce(function(t,e){return Qr(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f},qA={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0===--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,d=s.length;for(l=0;l<d;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];
14if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(qA);var WA=new(c(qA.exports)),HA="recharts.syncMouseEvents";function XA(t){return(XA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function YA(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,VA(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function GA(t,e,r){return(e=VA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VA(t){var e=function(t,e){if("object"!=XA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=XA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==XA(e)?e:e+""}var KA=function(){return YA(function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),GA(this,"activeIndex",0),GA(this,"coordinateList",[]),GA(this,"layout","horizontal")},[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])}();function ZA(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[Og(e,r,n,o),Og(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function JA(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return ZA(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=Og(c,u,l,f),d=Og(c,u,s,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}function QA(t){return(QA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function eE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
14e%2?tE(Object(r),!0).forEach(function(e){rE(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tE(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function rE(t,e,r){var n;return n=function(t,e){if("object"!=QA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=QA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==QA(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nE(t){var r,n,o,i=t.element,a=t.tooltipEventType,c=t.isActive,l=t.activeCoordinate,s=t.activePayload,f=t.offset,p=t.activeTooltipIndex,d=t.tooltipAxisBandSize,h=t.layout,y=t.chartName,v=null!==(r=i.props.cursor)&&void 0!==r?r:null===(n=i.type.defaultProps)||void 0===n?void 0:n.cursor;if(!i||!v||!c||!l||"ScatterChart"!==y&&"axis"!==a)return null;var m=mx;if("ScatterChart"===y)o=l,m=sj;else if("BarChart"===y)o=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(h,l,f,d),m=tj;else if("radial"===h){var b=ZA(l),g=b.cx,x=b.cy,w=b.radius;o={cx:g,cy:x,startAngle:b.startAngle,endAngle:b.endAngle,innerRadius:w,outerRadius:w},m=ax}else o={points:JA(h,l,f)},m=mx;var j=eE(eE(eE(eE({stroke:"#ccc",pointerEvents:"none"},f),o),kn(v,!1)),{},{payload:s,payloadIndex:p,className:e("recharts-tooltip-cursor",v.className)});return u.isValidElement(v)?u.cloneElement(v,j):u.createElement(m,j)}var oE=["item"],iE=["children","className","width","height","style","compact","title","desc"];function aE(t){return(aE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cE(){return cE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cE.apply(this,arguments)}function uE(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||vE(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function sE(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function fE(t,e,r){return e=dE(e),function(t,e){if(e&&("object"===aE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pE()?Reflect.construct(e,r||[],dE(t).constructor):e.apply(t,r))}function pE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pE=function(){return!!t})()}
14function dE(t){return(dE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function hE(t,e){return(hE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function yE(t){return function(t){if(Array.isArray(t))return mE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||vE(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vE(t,e){if(t){if("string"==typeof t)return mE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mE(t,e):void 0}}function mE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function gE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bE(Object(r),!0).forEach(function(e){xE(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bE(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function xE(t,e,r){return(e=wE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wE(t){var e=function(t,e){if("object"!=aE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=aE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==aE(e)?e:e+""}var jE={xAxis:["bottom","top"],yAxis:["left","right"]},OE={width:"100%",height:"100%"},SE={x:0,y:0};function PE(t){return t}var AE=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce(function(t,e){var r=e.props.data;return r&&r.length?[].concat(yE(t),yE(r)):t},[]);return i.length>0?i:t&&t.length&&Qr(n)&&Qr(o)?t.slice(n,o+1):[]};function EE(t){return"number"===t?[0,"auto"]:void 0}var kE,ME,NE,_E,TE,CE,DE,IE,BE,RE,LE,zE,$E,UE,FE=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=AE(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=cn(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(yE(o),[vg(c,l)]):o},[])},qE=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(Zr(s-l)!==Zr(f-s)){var d=[];if(Zr(f-s)===Zr(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){i=n[u].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=FE(t,e,l,s),p=function(t,e,r,n){var o=e.find(function(t){return t&&t.index===r});if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return gE(gE(gE({},n),Og(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return gE(gE(gE({},n),Og(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return SE}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},WE=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=eg(l,o);return r.reduce(function(e,r){var d,h=void 0!==r.type.defaultProps?gE(gE({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,m=h.allowDataOverflow,b=h.allowDuplicatedCategory,g=h.scale,x=h.ticks,w=h.includeHidden,j=h[i];if(e[j])return e;var O,S,P,A=AE(t.data,{graphicalItems:n.filter(function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===j}),dataStartIndex:c,dataEndIndex:u}),E=A.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&Qr(n)&&Qr(o))return!0}return!1})(h.domain,m,y)&&(O=dg(h.domain,null,m),!p||"number"!==y&&"auto"===g||(P=Zb(A,v,"category")));var k=EE(y);if(!O||0===O.length){var M,N=null!==(M=h.domain)&&void 0!==M?M:k;if(v){if(O=Zb(A,v,y),"category"===y&&p){var _=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(O);b&&_?(S=O,O=oO(0,E)):b||(O=yg(N,O,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(yE(t),[e])},[]))}else if("category"===y)O=b?O.filter(function(t){return""!==t&&!wr(t)}):yg(N,O,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||wr(e)?t:[].concat(yE(t),[e])},[]);else if("number"===y){var T=function(t,e,r,n,o){var i=e.map(function(e){return Qb(t,e,r,o,n)}).filter(function(t){return!wr(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null}(A,n.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===j&&(w||!o)}),v,o,l);T&&(O=T)}!p||"number"!==y&&"auto"===g||(P=Zb(A,v,"category"))}else O=p?oO(0,E):a&&a[j]&&a[j].hasStack&&"number"===y?"expand"===f?[0,1]:sg(a[j].stackGroups,c,u):tg(A,n.filter(function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===j&&(w||!r)}),y,l,!0);if("number"===y)O=FA(s,O,j,o,x),N&&(O=dg(N,O,m));else if("category"===y&&N){var C=N;O.every(function(t){return C.indexOf(t)>=0})&&(O=C)}}return gE(gE({},e),{},xE({},j,gE(gE({},h),{},{axisType:o,domain:O,categoricalDomain:P,duplicateDomain:S,originalDomain:null!==(d=h.domain)&&void 0!==d?d:k,isCategorical:p,layout:l})))},{})},HE=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Sn(l,o),p={};return f&&f.length?p=WE(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=AE(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=eg(l,o),h=-1;return r.reduce(function(t,e){var y,v=(void 0!==e.type.defaultProps?gE(gE({},e.type.defaultProps),e.props):e.props)[i],m=EE("number");return t[v]?t:(h++,d?y=oO(0,p):a&&a[v]&&a[v].hasStack?(y=sg(a[v].stackGroups,c,u),y=FA(s,y,v,o)):(y=dg(m,tg(f,r.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o}),"number",l),n.defaultProps.allowDataOverflow),y=FA(s,y,v,o)),gE(gE({},t),{},xE({},v,gE(gE({axisType:o},n.defaultProps),{},{hide:!0,orientation:xr(jE,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:m,isCategorical:d,layout:l}))))},{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},XE=function(t){var e=t.children,r=t.defaultShowTooltip,n=Pn(e,jO),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},YE=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},GE=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=Pn(l,jO),p=Pn(l,Tl),d=Object.keys(a).reduce(function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:gE(gE({},t),{},xE({},n,t[n]+r.width))},{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce(function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:gE(gE({},t),{},xE({},n,xr(t,"".concat(n))+r.height))},{top:s.top||0,bottom:s.bottom||0}),y=gE(gE({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||jO.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=qb({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&Qr(t[p]))return Gb(Gb({},t),{},Vb({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Qr(t[d]))return Gb(Gb({},t),{},Vb({},d,t[d]+(f||0)))}return t}(y,0,r,e));var m=c-y.left-y.right,b=u-y.top-y.bottom;return gE(gE({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(b,0)})},VE=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},KE=(kE={chartName:"BarChart",GraphicalChild:pS,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:kA},{axisType:"yAxis",AxisComp:zA}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Pn(u,pS);return l.reduce(function(i,a){var u,l,p,d,h,y=e[a],v=y.orientation,m=y.domain,b=y.padding,g=void 0===b?{}:b,x=y.mirror,w=y.reversed,j="".concat(v).concat(x?"Mirror":"");
14if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var O=m[1]-m[0],S=1/0,P=y.categoricalDomain.sort();if(P.forEach(function(t,e){e>0&&(S=Math.min((t||0)-(P[e-1]||0),S))}),Number.isFinite(S)){var A=S/O,E="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=A*E/2),"no-gap"===y.padding){var k=nn(t.barCategoryGap,A*E),M=A*E/2;u=M-k-(M-k)/E*k}}}l="xAxis"===n?[r.left+(g.left||0)+(u||0),r.left+r.width-(g.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(u||0),r.top+r.height-(g.bottom||0)-(u||0)]:y.range,w&&(l=[l[1],l[0]]);var N=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:Zp(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:xh(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Qp(),realScaleType:"point"}:"category"===o?{scale:Zp(),realScaleType:"band"}:{scale:xh(),realScaleType:"linear"};if(Pr(n)){var c="scale".concat(fo(n));return{scale:(im[c]||Qp)(),realScaleType:im[c]?c:"point"}}return Mt(n)?{scale:n}:{scale:Qp(),realScaleType:"point"}}(y,o,f),_=N.scale,T=N.realScaleType;_.domain(m).range(l),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-ag,i=Math.max(n[0],n[1])+ag,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}}(_);var C=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=jb(u,o,a);return t.domain([ym(l),fm(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Ob(s,o,a)}}return null}(_,vS(vS({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!x||"bottom"===v&&x,p=r.left,d=s[j]-h*y.height):"yAxis"===n&&(h="left"===v&&!x||"right"===v&&x,p=s[j]-h*y.width,d=r.top);var D=vS(vS(vS({},y),C),{},{realScaleType:T,x:p,y:d,scale:_,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return D.bandSize=hg(D,C),y.hide||"xAxis"!==n?y.hide||(s[j]+=(h?-1:1)*D.width):s[j]+=(h?-1:1)*D.height,vS(vS({},i),{},mS({},a,D))},{})}},ME=kE.chartName,NE=kE.GraphicalChild,_E=kE.defaultTooltipEventType,TE=void 0===_E?"axis":_E,CE=kE.validateTooltipEventTypes,DE=void 0===CE?["axis"]:CE,IE=kE.axisComponents,BE=kE.legendContent,RE=kE.formatAxisMap,LE=kE.defaultProps,zE=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,s=t.barGap,f=t.barCategoryGap,p=t.maxBarSize,d=YE(l),h=d.numericAxisName,y=d.cateAxisName,v=function(t){return!(!t||!t.length)&&t.some(function(t){var e=xn(t&&t.type);return e&&e.indexOf("Bar")>=0})}(r),m=[];return r.forEach(function(r,d){var b=AE(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),g=void 0!==r.type.defaultProps?gE(gE({},r.type.defaultProps),r.props):r.props,x=g.dataKey,w=g.maxBarSize,j=g["".concat(h,"Id")],O=g["".concat(y,"Id")],S=IE.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],o=g["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||Sb();var i=n[o];return gE(gE({},t),{},xE(xE({},r.axisType,i),"".concat(r.axisType,"Ticks"),ng(i)))},{}),P=S[y],A=S["".concat(y,"Ticks")],E=n&&n[j]&&n[j].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?Gb(Gb({},t.type.defaultProps),t.props):t.props).stackId;if(tn(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[j].stackGroups),k=xn(r.type).indexOf("Bar")>=0,M=hg(P,A),N=[],_=v&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,y=d.cateAxisId,v=h.filter(function(t){return xn(t.type).indexOf("Bar")>=0});if(v&&v.length){var m=v[0].type.defaultProps,b=void 0!==m?Gb(Gb({},m),v[0].props):v[0].props,g=b.barSize,x=b[y];i[x]||(i[x]=[]);var w=wr(g)?e:g;i[x].push({item:v[0],stackList:v.slice(1),barSize:wr(w)?void 0:nn(w,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:VE(S,y)});if(k){var T,C,D=wr(w)?p:w,I=null!==(T=null!==(C=hg(P,A,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;N=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=nn(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,d=i.reduce(function(t,e){return t+e.barSize||0}
14,0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=i.reduce(function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(Hb(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:h})}),n},s)}else{var y=nn(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=i.reduce(function(t,e,r){var n=[].concat(Hb(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},s)}return u}({barGap:s,barCategoryGap:f,bandSize:I!==M?I:M,sizeList:_[O],maxBarSize:D}),I!==M&&(N=N.map(function(t){return gE(gE({},t),{},{position:gE(gE({},t.position),{},{offset:t.position.offset-I/2})})}))}var B,R,L=r&&r.type&&r.type.getComposedData;L&&m.push({props:gE(gE({},L(gE(gE({},S),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:M,barPosition:N,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},xE(xE(xE({key:r.key||"item-".concat(d)},h,S[h]),y,S[y]),"animationId",i)),childIndex:(B=r,R=t.children,On(R).indexOf(B)),item:r})}),m},$E=function(t,e){var r=t.props,n=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;if(!An({props:r}))return null;var a=r.children,c=r.layout,u=r.stackOffset,l=r.data,s=r.reverseStackOrder,f=YE(c),p=f.numericAxisName,d=f.cateAxisName,h=Sn(a,NE),y=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce(function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?Gb(Gb({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var c=i[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(tn(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[rn("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Gb(Gb({},t),{},Vb({},c,u))},{});return Object.keys(a).reduce(function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce(function(e,i){var a=c.stackGroups[i];return Gb(Gb({},e),{},Vb({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:ug(t,a.items,o)}))},{})),Gb(Gb({},e),{},Vb({},i,c))},{})}(l,h,"".concat(p,"Id"),"".concat(d,"Id"),u,s),v=IE.reduce(function(t,e){var i="".concat(e.axisType,"Map");return gE(gE({},t),{},xE({},i,HE(r,gE(gE({},e),{},{graphicalItems:h,stackGroups:e.axisType===p&&y,dataStartIndex:n,dataEndIndex:o}))))},{}),m=GE(gE(gE({},v),{},{props:r,graphicalItems:h}),null==e?void 0:e.legendBBox);Object.keys(v).forEach(function(t){v[t]=RE(r,v[t],m,t.replace("Map",""),ME)});var b,g,x=v["".concat(d,"Map")],w=(b=on(x),{tooltipTicks:g=ng(b,!1,!0),orderedTooltipTicks:Es(g,function(t){return t.coordinate}),tooltipAxis:b,tooltipAxisBandSize:hg(b,g)}),j=zE(r,gE(gE({},v),{},{dataStartIndex:n,dataEndIndex:o,updateId:i,graphicalItems:h,stackGroups:y,offset:m}));return gE(gE({formattedGraphicalItems:j,graphicalItems:h,offset:m,stackGroups:y},w),v)},UE=function(){function t(r){var n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xE(i=fE(this,t,[r]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),xE(i,"accessibilityManager",new KA),xE(i,"handleLegendBBoxUpdate",function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;i.setState(gE({legendBBox:t},$E({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},gE(gE({},i.state),{},{legendBBox:t}))))}}),xE(i,"handleReceiveSyncEvent",function(t,e,r){if(i.props.syncId===t){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}}),xE(i,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState(function(){return gE({dataStartIndex:e,dataEndIndex:r},$E({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))}),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),xE(i,"handleMouseEnter",function(t){var e=i.getMouseInfo(t);if(e){var r=gE(gE({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;Mt(n)&&n(r,t)}}),xE(i,"triggeredAfterMouseMove",function(t){var e=i.getMouseInfo(t),r=e?gE(gE({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;Mt(n)&&n(r,t)}),xE(i,"handleItemMouseEnter",function(t){i.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),xE(i,"handleItemMouseLeave",function(){i.setState(function(){return{isTooltipActive:!1}})}),xE(i,"handleMouseMove",function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)}),xE(i,"handleMouseLeave",function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;Mt(r)&&r(e,t)}),xE(i,"handleOuterEvent",function(t){var e,r=function(t){var e=t&&t.type;return e&&gn[e]?gn[e]:null}(t),n=xr(i.props,"".concat(r));r&&Mt(n)&&n(null!==(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)}),xE(i,"handleClick",function(t){var e=i.getMouseInfo(t);if(e){var r=gE(gE({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;Mt(n)&&n(r,t)}}),xE(i,"handleMouseDown",function(t){var e=i.props.onMouseDown;Mt(e)&&e(i.getMouseInfo(t),t)}),xE(i,"handleMouseUp",function(t){var e=i.props.onMouseUp;Mt(e)&&e(i.getMouseInfo(t),t)}),xE(i,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),xE(i,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])}),xE(i,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])}),xE(i,"triggerSyncEvent",function(t){void 0!==i.props.syncId&&WA.emit(HA,i.props.syncId,t,i.eventEmitterSymbol)}),xE(i,"applySyncEvent",function(t){var e=i.props,r=e.layout,n=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(gE({dataStartIndex:a,dataEndIndex:c},$E({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var h=0;h<d.length;h++)if(d[h].value===t.activeLabel){s=h;break}}var y=gE(gE({},p),{},{x:p.left,y:p.top}),v=Math.min(u,y.x+y.width),m=Math.min(l,y.y+y.height),b=d[s]&&d[s].value,g=FE(i.state,i.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:v,y:"horizontal"===r?m:d[s].coordinate}:SE;i.setState(gE(gE({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:g,activeTooltipIndex:s}))}else i.setState(t)}),xE(i,"renderCursor",function(t){var e,r=i.state,n=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,c=r.offset,u=r.activeTooltipIndex,s=r.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(e=t.props.active)&&void 0!==e?e:n,d=i.props.layout,h=t.key||"_recharts-cursor";return l.createElement(nE,{key:h,activeCoordinate:o,activePayload:a,activeTooltipIndex:u,chartName:ME,element:t,isActive:p,layout:d,offset:c,tooltipAxisBandSize:s,tooltipEventType:f})}),xE(i,"renderPolarAxis",function(t,r,n){var o=xr(t,"type.axisType"),a=xr(i.state,"".concat(o,"Map")),c=t.type.defaultProps,l=void 0!==c?gE(gE({},c),t.props):t.props,s=a&&a[l["".concat(o,"Id")]];return u.cloneElement(t,gE(gE({},s),{},{className:e(o,s.className),key:t.key||"".concat(r,"-").concat(n),ticks:ng(s,!0)}))}),xE(i,"renderPolarGrid",function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=i.state,c=a.radiusAxisMap,l=a.angleAxisMap,s=on(c),f=on(l),p=f.cx,d=f.cy,h=f.innerRadius,y=f.outerRadius;return u.cloneElement(t,{polarAngles:Array.isArray(n)?n:ng(f,!0).map(function(t){return t.coordinate}),polarRadius:Array.isArray(o)?o:ng(s,!0).map(function(t){return t.coordinate}),cx:p,cy:d,innerRadius:h,outerRadius:y,key:t.key||"polar-grid",radialLines:r})}),xE(i,"renderLegend",function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,o=e.height,a=i.props.margin||{},c=n-(a.left||0)-(a.right||0),l=qb({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:BE});if(!l)return null;var s=l.item,f=lE(l,oE);return u.cloneElement(s,gE(gE({},f),{}
14,{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))}),xE(i,"renderTooltip",function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,o=Pn(r,df);if(!o)return null;var a=i.state,c=a.isTooltipActive,l=a.activeCoordinate,s=a.activePayload,f=a.activeLabel,p=a.offset,d=null!==(t=o.props.active)&&void 0!==t?t:c;return u.cloneElement(o,{viewBox:gE(gE({},p),{},{x:p.left,y:p.top}),active:d,label:f,payload:d?s:[],coordinate:l,accessibilityLayer:n})}),xE(i,"renderBrush",function(t){var e=i.props,r=e.margin,n=e.data,o=i.state,a=o.offset,c=o.dataStartIndex,l=o.dataEndIndex,s=o.updateId;return u.cloneElement(t,{key:t.key||"_recharts-brush",onChange:ig(i.handleBrushChange,t.props.onChange),data:n,x:Qr(t.props.x)?t.props.x:a.left,y:Qr(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Qr(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(s)})}),xE(i,"renderReferenceElement",function(t,e,r){if(!t)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,l=o.offset,s=t.type.defaultProps||{},f=t.props,p=f.xAxisId,d=void 0===p?s.xAxisId:p,h=f.yAxisId,y=void 0===h?s.yAxisId:h;return u.cloneElement(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[d],yAxis:c[y],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})}),xE(i,"renderActivePoints",function(e){var r=e.item,n=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,c=[],u=r.props.key,l=void 0!==r.item.type.defaultProps?gE(gE({},r.item.type.defaultProps),r.item.props):r.item.props,s=l.activeDot,f=gE(gE({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Jb(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},kn(s,!1)),hn(s));return c.push(t.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(i))),o?c.push(t.renderActiveDot(s,gE(gE({},f),{},{cx:o.x,cy:o.y}),"".concat(u,"-basePoint-").concat(i))):a&&c.push(null),c}),xE(i,"renderGraphicChild",function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,l=a.tooltipAxis,s=a.activeTooltipIndex,f=a.activeLabel,p=Pn(i.props.children,df),d=n.props,h=d.points,y=d.isRange,v=d.baseLine,m=void 0!==n.item.type.defaultProps?gE(gE({},n.item.type.defaultProps),n.item.props):n.item.props,b=m.activeDot,g=m.hide,x=m.activeBar,w=m.activeShape,j=Boolean(!g&&c&&p&&(b||x||w)),O={};"axis"!==o&&p&&"click"===p.props.trigger?O={onClick:ig(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:ig(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:ig(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=u.cloneElement(t,gE(gE({},n.props),O));if(j){if(!(s>=0)){var P,A=(null!==(P=i.getItemByXY(i.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:S}).graphicalItem,E=A.item,k=void 0===E?t:E,M=A.childIndex,N=gE(gE(gE({},n.props),O),{},{activeIndex:M});return[u.cloneElement(k,N),null,null]}var _,T;if(l.dataKey&&!l.allowDuplicatedCategory){var C="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());_=cn(h,C,f),T=y&&v&&cn(v,C,f)}else _=null==h?void 0:h[s],T=y&&v&&v[s];if(w||x){var D=void 0!==t.props.activeIndex?t.props.activeIndex:s;return[u.cloneElement(t,gE(gE(gE({},n.props),O),{},{activeIndex:D})),null,null]}if(!wr(_))return[S].concat(yE(i.renderActivePoints({item:n,activePoint:_,basePoint:T,childIndex:s,isRange:y})))}return y?[S,null,null]:[S,null]}),xE(i,"renderCustomized",function(t,e,r){return u.cloneElement(t,gE(gE({key:"recharts-customized-".concat(r)},i.props),i.state))}),xE(i,"renderMap",{CartesianGrid:{handler:PE,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:PE},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:PE},YAxis:{handler:PE},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=r.id)&&void 0!==n?n:rn("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=Cf(i.triggeredAfterMouseMove,null!==(o=r.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hE(t,e)}
14(t,u.Component),sE(t,[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=Pn(e,df);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=FE(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=gE(gE({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){Mn([Pn(t.children,df)],[Pn(this.props.children,df)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Pn(this.props.children,df);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return DE.indexOf(e)>=0?e:TE}return TE}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=on(l).scale,p=on(s).scale,d=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return gE(gE({},i),{},{xValue:d,yValue:h})}var y=qE(this.state,this.props.data,this.props.layout,c);return y?gE(gE({},i),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=on(u);return Ag({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Pn(t,df),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),gE(gE({},hn(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){WA.on(HA,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){WA.removeListener(HA,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===xn(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return l.createElement("defs",null,l.createElement("clipPath",{id:t},l.createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=uE(e,2),n=r[0],o=r[1];return gE(gE({},t),{},xE({},n,o.scale))},{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=uE(e,2),n=r[0],o=r[1];return gE(gE({},t),{},xE({},n,o.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=void 0!==u.type.defaultProps?gE(gE({},u.type.defaultProps),u.props):u.props,s=xn(u.type);if("Bar"===s){var f=(c.data||[]).find(function(e){return Jw(t,e)});if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find(function(e){return Ag(t,e)});if(p)return{graphicalItem:a,payload:p}}else if(qj(a,n)||Wj(a,n)||Hj(a,n)){var d=Vj({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:gE(gE({},a),{},{childIndex:h}),payload:Hj(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!An(this))return null;var r,n,o=this.props,i=o.children,a=o.className,c=o.width,u=o.height,s=o.style,f=o.compact,p=o.title,d=o.desc,h=lE(o,iE),y=kn(h,!1);if(f)return l.createElement($S,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},l.createElement(In,cE({},y,{width:c,height:u,title:p,desc:d}),this.renderClipPath(),_n(i,this.renderMap)));this.props.accessibilityLayer&&(y.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,y.role=null!==(n=this.props.role)&&void 0!==n?n:"application",y.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},y.onFocus=function(){t.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return l.createElement($S,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},l.createElement("div",cE({className:e("recharts-wrapper",a),style:gE({position:"relative",curs
14or:"default",width:c,height:u},s)},v,{ref:function(e){t.container=e}}),l.createElement(In,cE({},y,{width:c,height:u,title:p,desc:d,style:OE}),this.renderClipPath(),_n(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(),xE(UE,"displayName",ME),xE(UE,"defaultProps",gE({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},LE)),xE(UE,"getDerivedStateFromProps",function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=XE(t);return gE(gE(gE({},p),{},{updateId:0},$E(gE(gE({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!un(l,e.prevMargin)){var d=XE(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},y=gE(gE({},qE(e,n,c)),{},{updateId:e.updateId+1}),v=gE(gE(gE({},d),h),y);return gE(gE(gE({},v),$E(gE({props:t},v),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!Mn(o,e.prevChildren)){var m,b,g,x,w=Pn(o,jO),j=w&&null!==(m=null===(b=w.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,O=w&&null!==(g=null===(x=w.props)||void 0===x?void 0:x.endIndex)&&void 0!==g?g:f,S=j!==s||O!==f,P=wr(n)||S?e.updateId+1:e.updateId;return gE(gE({updateId:P},$E(gE(gE({props:t},e),{},{updateId:P,dataStartIndex:j,dataEndIndex:O}),e)),{},{prevChildren:o,dataStartIndex:j,dataEndIndex:O})}return null}),xE(UE,"renderActiveDot",function(t,e,r){var n;return n=u.isValidElement(t)?u.cloneElement(t,e):Mt(t)?t(e):l.createElement(rj,e),l.createElement(zn,{className:"recharts-active-dot",key:r},n)}),function(t){return l.createElement(UE,t)});const ZE=u.lazy(()=>r(()=>import("./Footer-jNwmKyvo.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),JE=[{label:"Before",revenue:29.3},{label:"After",revenue:51.7}],QE=()=>{const[t,e]=u.useState(!1);n();const r=s();return i.jsxs(i.Fragment,{children:[i.jsxs(o,{children:[i.jsx("title",{children:"Become a Cleverence Partner: Expand Your Services & Profit"}),i.jsx("meta",{name:"description",content:"Join the Cleverence partner program. Expand your IT, ERP, or consultancy business with our mobile warehouse automation software. Unlock new revenue streams and get full vendor support."}),i.jsx("meta",{property:"og:image",content:"https://www.cleverence.com/lovable-uploads/opengraph-image-cleverence.png"}),i.jsx("meta",{name:"twitter:image",content:"https://www.cleverence.com/lovable-uploads/opengraph-image-cleverence.png"}),i.jsx("link",{rel:"canonical",href:"/solutions/become-a-partner"}),i.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebPage",name:"Become a Cleverence Partner",description:"Join the Cleverence partner program. Expand your IT, ERP, or consultancy business with our mobile warehouse automation software.",url:"/solutions/become-a-partner"})})]}),i.jsx(f,{}),i.jsxs("main",{className:"bg-background text-foreground",children:[i.jsxs("section",{className:"relative overflow-hidden",children:[i.jsxs("div",{className:"absolute inset-0",children:[i.jsx("img",{src:E("/lovable-uploads/4d3c327f-deec-4378-8a56-9919d9af4b90.png"),alt:"Professional businessman in modern warehouse with digital analytics overlay - representing smart warehouse automation and business intelligence",className:"w-full h-full object-cover",loading:"eager"}),i.jsx("div",{className:"absolute inset-0 bg-black/40"})]}),i.jsx("div",{className:"relative container mx-auto px-4 py-24 md:py-32",children:i.jsxs("div",{className:"max-w-3xl text-white",children:[i.jsx("h1",{className:"text-3xl md:text-5xl font-bold mb-4",children:"Upsell with Cleverence: Become a Partner"}),i.jsx("p",{className:"text-lg md:text-xl text-white/90 mb-8",children:"Expand your client offerings and unlock new revenue streams by partnering with Cleverence. We provide a powerful, ready-to-deploy mobile automation solution that seamlessly integrates with your clients' existing ERP systems, allowing you to deliver exceptional value and drive mutual growth."}),i.jsxs("div",{className:"flex flex-wrap gap-4",children:[i.jsx("a",{href:"#partner-form",children:i.jsx(h,{size:"lg",variant:"cleverencePrimary","aria-label":"Become a Partner",children:"Become a Partner"})}),i.jsx(h,{size:"lg",variant:"cleverenceSecondary","aria-label":"Download partner PDF",onClick:()=>r("/solutions/quiz-for-partners"),children:"Download PDF"})]})]})})]}),i.jsx("section",{className:"py-12 bg-white border-b border-slate-100",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsx("div",{className:"text-center mb-8",children:i.jsx("p",{className:"text-sm text-slate-600 uppercase tracking-wider font-medium",children:"Trusted by industry leaders worldwide"})}),i.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-8 md:gap-16",children:[i.jsx("img",{src:E("/lovable-uploads/4ffcabfb-9d35-4df3-bd8c-def9f186b03d.png"),alt:"APMU Client Logo",className:"h-8 md:h-10 opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all duration-300"}),i.jsx("img",{src:E("/lovable-uploads/ee8c28e9-0d23-486c-8f0b-b3e66131c9a6.png"),alt:"Black Smith Client Logo",className:"h-8 md:h-10 opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all duration-300"}),i.jsx("img",{src:E("/lovable-uploads/88009cdb-ad52-499b-8990-f4fdb8b8cbbb.png"),alt:"Gumla Client Logo",className:"h-8 md:h-10 opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all duration-300"}),i.jsx("img",{alt:"TechManufacturing Corp",className:"h-8 md:h-10 opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all duration-300",src:E("/lovable-uploads/11615a73-b076-41ba-a5d1-c86ef45d74e7.png")}),i.jsx("img",{src:E("/lovable-uploads/0e1271ac-a122-4fda-88a6-c7b
146cb48811f.png"),alt:"NG Chemicals",className:"h-8 md:h-10 opacity-70 grayscale hover:opacity-100 hover:grayscale-0 transition-all duration-300"})]})]})}),i.jsx("section",{className:"container mx-auto px-4 py-16 md:py-24",children:i.jsxs("div",{className:"grid md:grid-cols-2 gap-10 items-center",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-4",children:"What is Cleverence Software?"}),i.jsx("p",{className:"text-muted-foreground mb-6",children:"Cleverence is the software for business process automation. We automate and enhance the efficiency of operations that deal with real assets by facilitating accurate data capture, tracking, and management through mobile devices, barcodes, and RFID. Our solutions reduce manual errors and increase operational speed."}),i.jsxs("ul",{className:"space-y-3",children:[i.jsxs("li",{className:"flex items-start",children:[i.jsx(M,{className:"mt-1 mr-2 h-5 w-5 cleverence-icon"}),i.jsx("span",{className:"text-foreground/90",children:"Mobile and Connected Devices: Support for smartphones, tablets, and rugged handhelds."})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(K,{className:"mt-1 mr-2 h-5 w-5 cleverence-icon"}),i.jsx("span",{className:"text-foreground/90",children:"Barcode and RFID Technology: Speed up tasks like inventory checks and asset tracking."})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(N,{className:"mt-1 mr-2 h-5 w-5 cleverence-icon"}),i.jsx("span",{className:"text-foreground/90",children:"Real-Time Data Integration: Seamlessly connect with ERP systems for up-to-date information."})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(_,{className:"mt-1 mr-2 h-5 w-5 cleverence-icon"}),i.jsx("span",{className:"text-foreground/90",children:"Customizable Workflows: A low-code platform to match specific business processes."})]})]})]}),i.jsx("div",{className:"relative",children:i.jsx("img",{src:E("/lovable-uploads/df69e49e-03eb-4504-ac26-b4b532a777af.png"),alt:"Cleverence business sectors overview â Distribution, Manufacturing, Retail, Construction, and SME with project counts and partner logos",className:"w-full rounded-lg shadow-xl",loading:"lazy"})})]})}),i.jsx("section",{className:"bg-muted/30 py-16 md:py-24",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"max-w-3xl mb-10",children:[i.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-4",children:"Partnership Benefits: Accelerate Your Business Growth"}),i.jsx("p",{className:"text-muted-foreground",children:"Join forces with Cleverence and unlock new opportunities for growth and success. Our partnership program provides the tools, training, and support to deliver exceptional value to your clients while expanding your business reach."})]}),i.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:[{icon:V,text:"Zero Entry Threshold: Start without signing a contract or wasting time on bureaucracy."},{icon:T,text:"Expand Your Services: Offer a leading mobile warehouse automation solution that complements existing ERP implementations."},{icon:C,text:"Unlock New Revenue Streams: Profit from licensing sales, implementation services, and ongoing client support."},{icon:D,text:"Access Expertise: Gain comprehensive training on our low-code platform and benefit from our 20+ years of Auto-ID experience."},{icon:I,text:"Mutual Growth: Leverage Cleverence's global brand and proven success stories to attract new business opportunities."},{icon:B,text:"Full Support from Vendor: Receive sales training, marketing materials, technical support, and assistance on pre-sale stages."}].map((t,e)=>i.jsx("div",{className:"p-5 rounded-lg bg-background shadow-sm border",children:i.jsxs("div",{className:"flex items-start",children:[i.jsx(t.icon,{className:"mt-1 mr-3 h-5 w-5 cleverence-icon flex-shrink-0"}),i.jsx("p",{className:"text-foreground/90",children:t.text})]})},e))})]})}),i.jsx("section",{className:"container mx-auto px-4 py-16 md:py-24",children:i.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 items-center",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-4",children:"Your Path to Profit: See the Numbers"}),i.jsx("p",{className:"text-muted-foreground mb-6",children:"We empower our partners to significantly increase their revenue with a minimal increase in effort. By adding Cleverence to your existing hardware sales, you can turn a single deal into a multi-faceted revenue stream."}),i.jsxs("div",{className:"grid sm:grid-cols-3 gap-4 mb-6",children:[i.jsxs("div",{className:"p-4 rounded-lg bg-muted/40",children:[i.jsx("div",{className:"text-sm text-muted-foreground",children:"2nd Year Avg."}),i.jsx("div",{className:"text-xl font-semibold",children:"$50K"})]}),i.jsxs("div",{className:"p-4 rounded-lg bg-muted/40",children:[i.jsx("div",{className:"text-sm text-muted-foreground",children:"Before â After"}),i.jsx("div",{className:"text-xl font-semibold",children:"$29.3K â $51.7K"})]}),i.jsxs("div",{className:"p-4 rounded-lg bg-muted/40",children:[i.jsx("div",{className:"text-sm text-muted-foreground",children:"Effort vs. Sales"}),i.jsx("div",{className:"text-xl font-semibold",children:"3x with +5%"})]})]})]}),i.jsx("div",{className:"h-64 md:h-80",children:i.jsx($f,{width:"100%",height:"100%",children:i.jsxs(KE,{data:JE,children:[i.jsx(mA,{strokeDasharray:"3 3"}),i.jsx(kA,{dataKey:"label"}),i.jsx(zA,{unit:"K"}),i.jsx(df,{formatter:t=>`$${t}K`,contentStyle:{color:"#FF7572"},itemStyle:{color:"#FF7572"}}),i.jsx(pS,{dataKey:"revenue",fill:"#FF7572",radius:[6,6,0,0]})]})})})]})}),i.jsx("section",{className:"bg-muted/30 py-16 md:py-24",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-8",children:"Our Ideal Partner"}),i.jsx("p",{className:"text-muted-foreground max-w-3xl mb-8",children:"We're looking for ambitious, client-focused IT professionals who want to offer more than just standard solutions. If you or your company fit one of these profiles, we want to talk to you."}),i.jsxs("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:[i.jsxs("div",{className:"p-6 rounded-lg bg-background shadow-sm border text-center",children:[i.jsx(Z,{className:"mx-auto h-8 w-8 cleverence-icon mb-2"}),i.jsx("div",{className:"font-medium",children:"IT Freelancers"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Independent technical specialists with deep expertise."})]}),i.jsxs("div",{className:"p-6 rounded-lg bg-background shadow-sm border text-center",children:[i.jsx(R,{className:"mx-auto h-8 w-8 cleverence-icon mb-2"}),i.jsx("div",{className:"font-medium",children:"IT Consultants"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Adv
14isory firms guiding clients on IT infrastructure."})]}),i.jsxs("div",{className:"p-6 rounded-lg bg-background shadow-sm border text-center",children:[i.jsx(L,{className:"mx-auto h-8 w-8 cleverence-icon mb-2"}),i.jsx("div",{className:"font-medium",children:"ERP Integrators & Implementers"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Experts in Odoo, SAP, Oracle, MS Dynamics, and more."})]}),i.jsxs("div",{className:"p-6 rounded-lg bg-background shadow-sm border text-center",children:[i.jsx(L,{className:"mx-auto h-8 w-8 cleverence-icon mb-2"}),i.jsx("div",{className:"font-medium",children:"Developers of Custom Solutions for Enterprise"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Bespoke solutions for large companies and complex needs."})]})]})]})}),i.jsx(p,{}),i.jsx("section",{className:"py-16 md:py-24 bg-gradient-to-br from-slate-50 via-white to-slate-50",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-slate-900 mb-6",children:"Instant Data Flow to Your Client's Backend"}),i.jsx("p",{className:"text-xl text-slate-600 max-w-4xl mx-auto leading-relaxed",children:"No more waiting for reports. Our sleek mobile and web interfaces show how barcode scanning instantly populates your backend, giving you a true, real-time picture of your inventory status."})]}),i.jsxs("div",{className:"relative max-w-7xl mx-auto",children:[i.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#fe3a44]/5 via-transparent to-blue-500/5 rounded-3xl"}),i.jsxs("div",{className:"relative flex flex-col lg:flex-row items-center justify-center gap-8 lg:gap-16 py-12",children:[i.jsx("div",{className:"relative z-10 lg:w-1/2 flex justify-center",children:i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"relative bg-slate-900 rounded-[2.5rem] p-3 shadow-2xl transform rotate-2 hover:rotate-0 transition-transform duration-500",children:i.jsxs("div",{className:"bg-white rounded-[2rem] overflow-hidden w-80 h-[600px] relative",children:[i.jsxs("div",{className:"bg-slate-100 h-8 flex items-center justify-between px-6 text-xs font-medium text-slate-600",children:[i.jsx("span",{children:"9:41 AM"}),i.jsxs("div",{className:"flex space-x-1",children:[i.jsx("div",{className:"w-4 h-2 bg-green-500 rounded-sm"}),i.jsx("div",{className:"w-4 h-2 bg-slate-300 rounded-sm"})]})]}),i.jsxs("div",{className:"bg-[#fe3a44] px-6 py-4 flex items-center justify-between",children:[i.jsx("h3",{className:"text-white font-bold text-lg",children:"Stocktaking"}),i.jsx("div",{className:"w-8 h-8 bg-white/20 rounded-full flex items-center justify-center",children:i.jsx(z,{className:"w-4 h-4 text-white"})})]}),i.jsxs("div",{className:"p-6 space-y-4",children:[i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsxs("div",{className:"bg-green-50 rounded-lg p-3 border border-green-200",children:[i.jsx("div",{className:"text-2xl font-bold text-green-700",children:"47"}),i.jsx("div",{className:"text-xs text-green-600",children:"Items Scanned"})]}),i.jsxs("div",{className:"bg-blue-50 rounded-lg p-3 border border-blue-200",children:[i.jsx("div",{className:"text-2xl font-bold text-blue-700",children:"12"}),i.jsx("div",{className:"text-xs text-blue-600",children:"Orders Active"})]})]}),i.jsxs("div",{className:"bg-slate-50 rounded-lg p-4 border border-slate-200",children:[i.jsxs("div",{className:"flex items-center justify-between mb-3",children:[i.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Current Task"}),i.jsx(d,{className:"w-4 h-4 text-[#fe3a44] animate-pulse"})]}),i.jsxs("div",{className:"bg-white rounded-lg p-3 shadow-sm",children:[i.jsx("div",{className:"font-medium text-slate-900",children:"PO-2024-001"}),i.jsx("div",{className:"text-sm text-slate-600",children:"Electronics - Aisle A3"}),i.jsxs("div",{className:"flex items-center mt-2",children:[i.jsx($,{className:"w-4 h-4 text-green-500 mr-2"}),i.jsx("span",{className:"text-sm text-green-600",children:"Ready to Process"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("div",{className:"text-sm font-medium text-slate-700 mb-2",children:"Recent Scans"}),[{code:"SKU-A001",name:"Wireless Mouse",qty:"5"},{code:"SKU-B002",name:"USB Cable",qty:"12"},{code:"SKU-C003",name:"Keyboard",qty:"8"}].map((t,e)=>i.jsxs("div",{className:"bg-white rounded-lg p-3 border border-slate-200 flex items-center justify-between",children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("div",{className:"font-medium text-sm text-slate-900",children:t.code}),i.jsx("div",{className:"text-xs text-slate-600",children:t.name})]}),i.jsx("div",{className:"text-right",children:i.jsxs("div",{className:"font-bold text-[#fe3a44]",children:["Ã",t.qty]})})]},e))]})]}),i.jsx("div",{className:"absolute bottom-6 left-6 right-6",children:i.jsx(h,{className:"w-full bg-[#fe3a44] hover:bg-[#ff8c89] text-white font-semibold py-3",onClick:()=>window.open("https://cleverence.com/auth-new/?register=yes","_self"),children:"Complete Stocktaking"})})]})}),i.jsx("div",{className:"absolute -top-4 -right-4 w-8 h-8 bg-[#fe3a44] rounded-full animate-pulse opacity-80"}),i.jsx("div",{className:"absolute -bottom-6 -left-6 w-6 h-6 bg-blue-500 rounded-full animate-pulse opacity-60"})]})}),i.jsx("div",{className:"hidden lg:flex absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 z-20",children:i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("div",{className:"w-3 h-3 bg-[#fe3a44] rounded-full animate-pulse"}),i.jsx(U,{className:"w-6 h-6 text-[#fe3a44] animate-pulse"}),i.jsx("div",{className:"w-3 h-3 bg-blue-500 rounded-full animate-pulse"})]})}),i.jsx("div",{className:"relative z-10 lg:w-1/2 flex justify-center",children:i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"bg-slate-900 rounded-xl p-2 shadow-2xl transform -rotate-1 hover:rotate-0 transition-transform duration-500",children:i.jsx("div",{className:"bg-slate-800 rounded-lg p-1",children:i.jsxs("div",{className:"bg-white rounded-lg overflow-hidden w-[500px] h-[320px] relative",children:[i.jsxs("div",{className:"bg-slate-100 h-10 flex items-center px-4 border-b border-slate-200",children:[i.jsxs("div",{className:"flex space-x-2 mr-4",children:[i.jsx("div",{className:"w-3 h-3 bg-red-400 rounded-full"}),i.jsx("div",{className:"w-3 h-3 bg-yellow-400 rounded-full"}),i.jsx("div",{className:"w-3 h-3 bg-green-400 rounded-full"})]}),i.jsx("div",{className:"flex-1 bg-white rounded px-3 py-1 text-xs text-slate-600",children:"cleverence.com/dashboard"})]}),i.jsxs("div",{className:"p-6 bg-slate-50 h-full",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsx("h3",{className:"text-xl font-bold text-slate-900",children:"Operations Dashboard"}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),i.jsx("span",{className:"text-sm text-slate-600",children:"Live Data"})]})]}),i.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[i.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm border border-slate-200",children:[i.jsx("div",{className:"text-2xl font-bold text-[#fe3a44] mb-1",children:"1,247"}),i.jsx("div",{className:"text-xs text-slate-600",children:"Total Items"}),i.jsxs("div",{className:"text-xs text-green-600 flex items-center mt-1",children:[i.jsx(U,{className:"w-3 h-3 mr-1 rotate-[-45deg]"}),"+5.2%"]})]}),i.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm border border-slate-200",children:[i.jsx("div",{className:"text-2xl font-bold text-blue-600 mb-1",children:"99.8%"}),i.jsx("div",{className:"text-xs text-slate-600",children:"Accuracy"}),i.jsx("div",{className:"text-xs text-green-600",children:"Excellent"})]}),i.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm border border-slate-200",children:[i.jsx("div",{className:"text-2xl font-bold text-purple-600 mb-1",children:"12"}),i.jsx("div",{className:"text-xs text-slate-600",children:"Active Orders"}),i.jsx("div",{className:"text-xs text-orange-600",children:"Processing"})]})]}),i.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm border border-slate-200",children:[i.jsxs("div",{className:"flex items-center justify-between mb-3",children:[i.jsx("h4",{className:"font-semibold text-slate-900",children:"Recent Activity"}),i.jsx(F,{className:"w-4 h-4 text-slate-400"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-slate-100",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full mr-3"}),i.jsx("span",{className:"text-sm text-slate-700",children:"PO-2024-001 Completed"})]}),i.jsx("span",{className:"text-xs text-slate-500",children:"2 min ago"})]}),i.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-slate-100",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full mr-3"}),i.jsx("span",{className:"text-sm text-slate-700",children:"Stock Count - Aisle A"})]}),i.jsx("span",{className:"text-xs text-slate-500",children:"5 min ago"})]}),i.jsxs("div",{className:"flex items-center justify-between py-2",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-2 h-2 bg-[#fe3a44] rounded-full mr-3"}),i.jsx("span",{className:"text-sm text-slate-700",children:"New Order Received"})]}),i.jsx("span",{className:"text-xs text-slate-500",children:"8 min ago"})]})]})]})]})]})})}),i.jsx("div",{className:"w-16 h-8 bg-slate-700 rounded-b-lg mx-auto -mt-2"}),i.jsx("div",{className:"w-24 h-3 bg-slate-600 rounded-full mx-auto"})]})})]})]}),i.jsxs("div",{className:"text-center mt-16",children:[i.jsxs("div",{className:"max-w-3xl mx-auto mb-8",children:[i.jsx("h3",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Ready to Transform Your Client's Inventory Operations?"}),i.jsx("p",{className:"text-lg text-slate-600",children:"Experience the power of our integrated platform firsthand. Download our demo or get our comprehensive implementation guide."})]}),i.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-6 mb-8",children:[i.jsxs(h,{size:"lg",className:"bg-[#fe3a44] hover:bg-[#ff8c89] text-white px-8 py-4 text-lg font-semibold shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-105",onClick:()=>window.open("https://cleverence.com/solutions/quiz-for-business/","_self"),children:[i.jsx(q,{className:"mr-3 h-6 w-6"}),"Download Demo",i.jsx(U,{className:"ml-3 h-5 w-5"})]}),i.jsxs(h,{size:"lg",variant:"outline",className:"border-2 border-[#fe3a44] text-[#fe3a44] bg-white hover:bg-[#fe3a44] hover:text-white px-8 py-4 text-lg font-semibold shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-105",onClick:()=>window.open("https://www.cleverence.com/solutions/quiz-for-business/","_self"),children:[i.jsx(W,{className:"mr-3 h-6 w-6"}),"Download PDF Guide"]})]}),i.jsx("p",{className:"text-sm text-slate-600 max-w-2xl mx-auto",children:"Join thousands of businesses worldwide who have streamlined their warehouse operations with Cleverence. No credit card required for demo access."})]})]})}),i.jsx("section",{className:"container mx-auto px-4 py-16 md:py-24",children:i.jsxs("div",{className:"max-w-4xl mx-auto",children:[i.jsxs("div",{className:"text-center mb-12",children:[i.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-4",children:"Frequently Asked Questions"}),i.jsx("p",{className:"text-muted-foreground",children:"Find answers to common questions about our partnership program and opportunities."})]}),i.jsxs(O,{type:"single",collapsible:!0,className:"space-y-4",children:[i.jsxs(S,{value:"item-1",className:"border border-border rounded-lg px-6",style:{backgroundColor:"#ffffff"},children:[i.jsx(P,{className:"text-left",children:"What are the requirements to become a Cleverence partner?"}),i.jsx(A,{className:"text-muted-foreground",style:{backgroundColor:"#ffffff"},children:"We welcome IT freelancers, consultants, ERP integrators, and developers with experience in enterprise solutions. You should have a client base that c
14ould benefit from mobile warehouse automation and be committed to delivering quality service."})]}),i.jsxs(S,{value:"item-2",className:"border border-border rounded-lg px-6",style:{backgroundColor:"#ffffff"},children:[i.jsx(P,{className:"text-left",children:"How much commission do partners earn?"}),i.jsx(A,{className:"text-muted-foreground",style:{backgroundColor:"#ffffff"},children:"Our commission structure is competitive and varies based on deal size and partnership level. Partners typically see revenue increases of 50-75% on projects that include Cleverence solutions. We'll discuss specific terms during our partnership onboarding process."})]}),i.jsxs(S,{value:"item-3",className:"border border-border rounded-lg px-6",style:{backgroundColor:"#ffffff"},children:[i.jsx(P,{className:"text-left",children:"What training and support do you provide to partners?"}),i.jsx(A,{className:"text-muted-foreground",style:{backgroundColor:"#ffffff"},children:"We provide comprehensive training on our platform, sales materials, technical documentation, and ongoing support. You'll have access to our technical team for pre-sales assistance and implementation guidance."})]}),i.jsxs(S,{value:"item-4",className:"border border-border rounded-lg px-6",style:{backgroundColor:"#ffffff"},children:[i.jsx(P,{className:"text-left",children:"Can I customize Cleverence solutions for my clients?"}),i.jsx(A,{className:"text-muted-foreground",style:{backgroundColor:"#ffffff"},children:"Yes! Our low-code platform allows for extensive customization. You can modify workflows, create custom operations, and integrate with virtually any ERP system to meet your clients' specific requirements."})]}),i.jsxs(S,{value:"item-5",className:"border border-border rounded-lg px-6",style:{backgroundColor:"#ffffff"},children:[i.jsx(P,{className:"text-left",children:"How long does it take to implement a Cleverence solution?"}),i.jsx(A,{className:"text-muted-foreground",style:{backgroundColor:"#ffffff"},children:"Typical implementation takes 4-8 weeks, depending on complexity and customization requirements. This includes configuration, testing, training, and go-live support."})]}),i.jsxs(S,{value:"item-6",className:"border border-border rounded-lg px-6",style:{backgroundColor:"#ffffff"},children:[i.jsx(P,{className:"text-left",children:"What ongoing revenue opportunities exist for partners?"}),i.jsx(A,{className:"text-muted-foreground",style:{backgroundColor:"#ffffff"},children:"Beyond initial licensing sales, partners can earn from implementation services, customization projects, training, ongoing support, and future expansion projects as clients grow their operations."})]})]})]})}),i.jsx("section",{id:"partner-form",className:"container mx-auto px-4 py-16 md:py-24",children:i.jsxs("div",{className:"max-w-5xl mx-auto",children:[i.jsxs("div",{className:"mb-8 text-center",children:[i.jsx("h2",{className:"text-2xl md:text-3xl font-semibold mb-4",children:"Ready to Partner with Cleverence?"}),i.jsx("p",{className:"text-muted-foreground",children:"Take the next step towards expanding your business and client offerings. Fill out the form below, and our team will be in touch to discuss how we can grow together."})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[i.jsx("div",{className:"lg:col-span-2",children:i.jsxs(b,{className:"bg-[#f1e1db]",children:[i.jsxs(g,{className:"bg-[#f1e1db]",children:[i.jsx(x,{children:"Become a Partner"}),i.jsx(w,{children:"Fill out the form and weâll contact you shortly."})]}),i.jsx(j,{className:"space-y-6 bg-[#f1e1db]",children:t?i.jsxs("div",{className:"text-center py-12 animate-fade-in",children:[i.jsx("div",{className:"mb-6",children:i.jsx($,{className:"h-16 w-16 text-[#fe3a44] mx-auto animate-scale-in"})}),i.jsx("h3",{className:"text-xl font-semibold text-foreground mb-4",children:"Thank you! Your partnership application has been successfully submitted."}),i.jsx("p",{className:"text-muted-foreground",children:"Our partnership team will review your application and contact you within 48 hours to discuss partnership opportunities and next steps."})]}):i.jsxs("form",{method:"post",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[i.jsxs("div",{children:[i.jsx("label",{htmlFor:"firstname",className:"text-sm font-medium",children:"First Name"}),i.jsx(y,{id:"firstname",name:"firstname",type:"text",required:!0,placeholder:"John","aria-label":"First Name"})]}),i.jsxs("div",{children:[i.jsx("label",{htmlFor:"lastname",className:"text-sm font-medium",children:"Last Name"}),i.jsx(y,{id:"lastname",name:"lastname",type:"text",required:!0,placeholder:"Doe","aria-label":"Last Name"})]}),i.jsxs("div",{children:[i.jsx("label",{htmlFor:"company",className:"text-sm font-medium",children:"Company Name"}),i.jsx(y,{id:"company",name:"company",type:"text",required:!0,placeholder:"Acme Corp","aria-label":"Company Name"})]}),i.jsxs("div",{children:[i.jsx("label",{htmlFor:"email",className:"text-sm font-medium",children:"Email Address"}),i.jsx(y,{id:"email",name:"email",type:"email",required:!0,placeholder:"[email protected]","aria-label":"Email Address"})]}),i.jsxs("div",{className:"md:col-span-2",children:[i.jsx("label",{htmlFor:"phone",className:"text-sm font-medium",children:"Phone Number"}),i.jsx(v,{id:"phone",name:"phone","aria-label":"Phone Number"})]}),i.jsxs("div",{className:"md:col-span-2",children:[i.jsx("label",{htmlFor:"message",className:"text-sm font-medium",children:"Message"}),i.jsx(m,{id:"message",name:"message",placeholder:"Describe your expertise or partnership interest","aria-label":"Message"})]}),i.jsx("div",{className:"md:col-span-2",children:i.jsx(k,{formName:"partner_inquiry"})}),i.jsx("div",{className:"md:col-span-2 flex justify-center",children:i.jsx("input",{type:"submit",value:"Become a Partner",className:"bg-[#fe3a44] hover:bg-[#ff8c89] text-white font-medium py-3 px-8 rounded-md cursor-pointer transition-colors",onClick:t=>{var n;t.preventDefault();try{null==(n=window.cleverenceAnalytics)||n.trackLead({form_name:"partner_inquiry",product_line:"inventory",page_path:window.location.pathname})}catch{}e(!0),r("/thank-you?form=partner_inquiry")}})})]})})]})}),i.jsxs("div",{className:"space-y-6",children:[i.jsxs(b,{className:"bg-[#f1e1db]",children:[i.jsx(g,{children:i.jsx(x,{children:"Contact Information"})}),i.jsxs(j,{className:"space-y-6 bg-[#f1e1db]",children:[i.jsxs("div",{className:"flex items-start space-x-3",children:[i.jsx(H,{className:"h-5 w-5 mt-1",style:{color:"#0F1729"}}),i.jsxs("div",{children:[i.jsx("div",{className:"font-medium",children:"Phone"}),i.jsx("div",{className:"text-muted-foreground",children:"+971 (4) 586-59-00"})]})]}),i.jsxs("div",{className:"flex items-start space-x-3",children:[i.jsx(H,{className:"h-5 w-5 mt-1",style:{color:"#0F1729"}}),i.jsxs("div",{children:[i.jsx("div",{className:"font-medium",children:"Contact us via WhatsApp"}),i.jsxs("a",{href:"https://wa.me/971506692793?text=Hi!%20I%20want%20to%20learn%20more%20about%20your%20software%20solutions",target:"_blank",rel:"noopener noreferrer",className:"text-[#FE3A44] hover:text-[#ff8c89] transition-colors flex items-center gap-1",children:["Click to open WhatsApp",i.jsx(X,{className:"h-4 w-4"})]})]})]}),i.jsxs("div",{className:"flex items-start space-x-3",children:[i.jsx(Y,{className:"h-5 w-5 mt-1",style:{color:"#0F1729"}}),i.jsxs("div",{children:[i.jsx("div",{className:"font-medium",children:"Email"}),i.jsx("div",{className:"text-muted-foreground",children:"[email protected]"})]})]}),i.jsxs("div",{className:"flex items-start space-x-3",children:[i.jsx(G,{className:"h-5 w-5 mt-1",style:{color:"#0F1729"}}),i.jsxs("div",{children:[i.jsx("div",{className:"font-medium",children:"Address"}),i.jsxs("div",{className:"text-muted-foreground",children:["UAE",i.jsx("br",{}),"Dubai",i.jsx("br",{}),"Dubai Digital Park, Dubai Silicon Oasis"]})]})]})]})]}),i.jsx(b,{className:"bg-cleverance-blue text-white",children:i.jsxs(j,{className:"p-6 bg-[#fff6f3]",children:[i.jsx("h3",{className:"text-lg font-semibold mb-2 text-gray-950",children:"Technical Support"}),i.jsx("p",{className:"text-sm mb-4 text-gray-500",children:"Need immediate assistance? Our 24/7 support team is always ready to help."}),i.jsx(h,{variant:"secondary",className:"w-full text-cleverence-blue bg-white/0 bg-[transporent] text-[#fe3a44] border border-[#fe3a44]",onClick:()=>window.open("https://chat.whatsapp.com/CYoe3AUxGjqCcEanv7kYo9?mode=ac_t","_blank"),children:"Contact Support"})]})})]})]})]})})]}),i.jsx(ZE,{})]})};export{QE as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.