@gyramais/gyra-design 0.2.35 → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Chart/index.js +29 -0
- package/dist/components/Chart/index.js.map +1 -0
- package/dist/components/ChatWidget/index.js +45 -0
- package/dist/components/ChatWidget/index.js.map +1 -0
- package/dist/components/Checkbox/index.js +45 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Col/index.js +7 -0
- package/dist/components/Col/index.js.map +1 -0
- package/dist/components/Collapse/index.js +45 -0
- package/dist/components/Collapse/index.js.map +1 -0
- package/dist/components/ContextMenu/index.js +7 -0
- package/dist/components/ContextMenu/index.js.map +1 -0
- package/dist/components/DistributionBar/index.js +7 -0
- package/dist/components/DistributionBar/index.js.map +1 -0
- package/dist/components/Divider/index.js +7 -0
- package/dist/components/Divider/index.js.map +1 -0
- package/dist/components/Drawer/index.js +45 -0
- package/dist/components/Drawer/index.js.map +1 -0
- package/dist/components/DropdownMenu/index.js +7 -0
- package/dist/components/DropdownMenu/index.js.map +1 -0
- package/dist/components/Email/index.js +2 -0
- package/dist/components/Email/index.js.map +1 -0
- package/dist/components/Empty/index.js +45 -0
- package/dist/components/Empty/index.js.map +1 -0
- package/dist/components/Filter/index.js +50 -0
- package/dist/components/Filter/index.js.map +1 -0
- package/dist/components/FloatingCard/index.js +45 -0
- package/dist/components/FloatingCard/index.js.map +1 -0
- package/dist/components/Form/index.js +2 -0
- package/dist/components/Form/index.js.map +1 -0
- package/dist/components/Gauge/index.js +7 -0
- package/dist/components/Gauge/index.js.map +1 -0
- package/dist/components/HoverCard/index.js +7 -0
- package/dist/components/HoverCard/index.js.map +1 -0
- package/dist/components/Icon/index.js +7 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/IconDisplay/index.js +7 -0
- package/dist/components/IconDisplay/index.js.map +1 -0
- package/dist/components/Information/index.js +7 -0
- package/dist/components/Information/index.js.map +1 -0
- package/dist/components/Input/index.js +25 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/Label/index.js +2 -0
- package/dist/components/Label/index.js.map +1 -0
- package/dist/components/Layout/index.js +7 -0
- package/dist/components/Layout/index.js.map +1 -0
- package/dist/components/List/index.js +45 -0
- package/dist/components/List/index.js.map +1 -0
- package/dist/components/Loading/index.js +7 -0
- package/dist/components/Loading/index.js.map +1 -0
- package/dist/components/Logo/index.js +7 -0
- package/dist/components/Logo/index.js.map +1 -0
- package/dist/components/Menubar/index.js +7 -0
- package/dist/components/Menubar/index.js.map +1 -0
- package/dist/components/Modal/index.js +63 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/MultiSelectPicker/index.js +45 -0
- package/dist/components/MultiSelectPicker/index.js.map +1 -0
- package/dist/components/OperatorPicker/index.js +45 -0
- package/dist/components/OperatorPicker/index.js.map +1 -0
- package/dist/components/PickerPopover/index.js +45 -0
- package/dist/components/PickerPopover/index.js.map +1 -0
- package/dist/components/Popover/index.js +7 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/ProcessingChip/index.js +7 -0
- package/dist/components/ProcessingChip/index.js.map +1 -0
- package/dist/components/Progress/index.js +7 -0
- package/dist/components/Progress/index.js.map +1 -0
- package/dist/components/RadioGroup/index.js +7 -0
- package/dist/components/RadioGroup/index.js.map +1 -0
- package/dist/components/RichInput/index.js +12 -0
- package/dist/components/RichInput/index.js.map +1 -0
- package/dist/components/Row/index.js +7 -0
- package/dist/components/Row/index.js.map +1 -0
- package/dist/components/RuleSearchPicker/index.js +45 -0
- package/dist/components/RuleSearchPicker/index.js.map +1 -0
- package/dist/components/ScoreBar/index.js +7 -0
- package/dist/components/ScoreBar/index.js.map +1 -0
- package/dist/components/SegmentedPicker/index.js +45 -0
- package/dist/components/SegmentedPicker/index.js.map +1 -0
- package/dist/components/SegmentedToggle/index.js +7 -0
- package/dist/components/SegmentedToggle/index.js.map +1 -0
- package/dist/components/Select/index.js +45 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/SelectTree/index.js +50 -0
- package/dist/components/SelectTree/index.js.map +1 -0
- package/dist/components/Selector/index.js +7 -0
- package/dist/components/Selector/index.js.map +1 -0
- package/dist/components/StatusTag/index.js +7 -0
- package/dist/components/StatusTag/index.js.map +1 -0
- package/dist/components/Stepper/index.js +7 -0
- package/dist/components/Stepper/index.js.map +1 -0
- package/dist/components/Switch/index.js +7 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/SyncChip/index.js +45 -0
- package/dist/components/SyncChip/index.js.map +1 -0
- package/dist/components/Table/index.js +45 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Tabs/index.js +7 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Tag/index.js +7 -0
- package/dist/components/Tag/index.js.map +1 -0
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Tooltip/index.js +7 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/TourGuide/index.js +7 -0
- package/dist/components/TourGuide/index.js.map +1 -0
- package/dist/components/Waypoint/index.js +24 -0
- package/dist/components/Waypoint/index.js.map +1 -0
- package/dist/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-400-latin.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
- package/dist/fonts/IBMPlexMono-500-latin.woff2 +0 -0
- package/dist/fonts/Inter-Variable-latin-ext.woff2 +0 -0
- package/dist/fonts/Inter-Variable-latin.woff2 +0 -0
- package/dist/fonts/Lexend-Variable-latin-ext.woff2 +0 -0
- package/dist/fonts/Lexend-Variable-latin.woff2 +0 -0
- package/package.json +2 -2
- package/dist/emails/balance-sheet-finalized/email-layout.d.ts +0 -46
- package/dist/emails/balance-sheet-finalized/email-layout.js +0 -180
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";import*as t from"react";import e,{isValidElement as r,Children as n,PureComponent as o,forwardRef as i,useRef as a,useImperativeHandle as c,useState as u,useCallback as l,useEffect as s,useMemo as f,cloneElement as p,createElement as h,useContext as y,createContext as d,Component as v}from"react";var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var g,w={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/g=w,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];o&&(t=n(t,r(o)))}return t}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)t.call(r,i)&&r[i]&&(o=n(o,i));return o}function n(t,e){return e?t?t+" "+e:t+e:t}g.exports?(e.default=e,g.exports=e):window.classNames=e}();var x=m(w.exports);function O(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=O(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function j(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=O(t))&&(n&&(n+=" "),n+=e);return n}var S=Array.isArray,P="object"==typeof b&&b&&b.Object===Object&&b,A=P,E="object"==typeof self&&self&&self.Object===Object&&self,k=A||E||Function("return this")(),T=k.Symbol,M=T,_=Object.prototype,C=_.hasOwnProperty,I=_.toString,D=M?M.toStringTag:void 0;var N=function(t){var e=C.call(t,D),r=t[D];try{t[D]=void 0;var n=!0}catch(t){}var o=I.call(t);return n&&(e?t[D]=r:delete t[D]),o},R=Object.prototype.toString;var B=N,L=function(t){return R.call(t)},$=T?T.toStringTag:void 0;var z=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":$&&$ in Object(t)?B(t):L(t)};var F=function(t){return null!=t&&"object"==typeof t},U=z,q=F;var W=function(t){return"symbol"==typeof t||q(t)&&"[object Symbol]"==U(t)},V=S,X=W,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/;var G=function(t,e){if(V(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!X(t))||(K.test(t)||!H.test(t)||null!=e&&t in Object(e))};var Y=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Z=m(Y),J=z,Q=Y;var tt,et=function(t){if(!Q(t))return!1;var e=J(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},rt=m(et),nt=k["__core-js_shared__"],ot=(tt=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||""))?"Symbol(src)_1."+tt:"";var it=function(t){return!!ot&&ot in t},at=Function.prototype.toString;var ct=function(t){if(null!=t){try{return at.call(t)}catch(t){}try{return t+""}catch(t){}}return""},ut=et,lt=it,st=Y,ft=ct,pt=/^\[object .+?Constructor\]$/,ht=Function.prototype,yt=Object.prototype,dt=ht.toString,vt=yt.hasOwnProperty,bt=RegExp("^"+dt.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var mt=function(t,e){return null==t?void 0:t[e]},gt=function(t){return!(!st(t)||lt(t))&&(ut(t)?bt:pt).test(ft(t))},wt=mt;var xt=function(t,e){var r=wt(t,e);return gt(r)?r:void 0},Ot=xt(Object,"create"),jt=Ot;var St=function(){this.__data__=jt?jt(null):{},this.size=0};var Pt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},At=Ot,Et=Object.prototype.hasOwnProperty;var kt=function(t){var e=this.__data__;if(At){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Et.call(e,t)?e[t]:void 0},Tt=Ot,Mt=Object.prototype.hasOwnProperty;var _t=Ot;var Ct=St,It=Pt,Dt=kt,Nt=function(t){var e=this.__data__;return Tt?void 0!==e[t]:Mt.call(e,t)},Rt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_t&&void 0===e?"__lodash_hash_undefined__":e,this};function Bt(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])}}Bt.prototype.clear=Ct,Bt.prototype.delete=It,Bt.prototype.get=Dt,Bt.prototype.has=Nt,Bt.prototype.set=Rt;var Lt=Bt;var $t=function(){this.__data__=[],this.size=0};var zt=function(t,e){return t===e||t!=t&&e!=e},Ft=zt;var Ut=function(t,e){for(var r=t.length;r--;)if(Ft(t[r][0],e))return r;return-1},qt=Ut,Wt=Array.prototype.splice;var Vt=Ut;var Xt=Ut;var Ht=Ut;var Kt=$t,Gt=function(t){var e=this.__data__,r=qt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Wt.call(e,r,1),--this.size,!0)},Yt=function(t){var e=this.__data__,r=Vt(e,t);return r<0?void 0:e[r][1]},Zt=function(t){return Xt(this.__data__,t)>-1},Jt=function(t,e){var r=this.__data__,n=Ht(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Qt(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])}}Qt.prototype.clear=Kt,Qt.prototype.delete=Gt,Qt.prototype.get=Yt,Qt.prototype.has=Zt,Qt.prototype.set=Jt;var te=Qt,ee=xt(k,"Map"),re=Lt,ne=te,oe=ee;var ie=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ae=function(t,e){var r=t.__data__;return ie(e)?r["string"==typeof e?"string":"hash"]:r.map},ce=ae;var ue=ae;var le=ae;var se=ae;var fe=function(){this.size=0,this.__data__={hash:new re,map:new(oe||ne),string:new re}},pe=function(t){var e=ce(this,t).delete(t);return this.size-=e?1:0,e},he=function(t){return ue(this,t).get(t)},ye=function(t){return le(this,t).has(t)},de=function(t,e){var r=se(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ve(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])}}ve.prototype.clear=fe,ve.prototype.delete=pe,ve.prototype.get=he,ve.prototype.has=ye,ve.prototype.set=de;var be=ve,me=be;function ge(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);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(ge.Cache||me),r}ge.Cache=me;var we=ge,xe=m(we),Oe=we;var je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Se=/\\(\\)?/g,Pe=function(t){var e=Oe(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(je,function(t,r,n,o){e.push(n?o.replace(Se,"$1"):r||t)}),e}),Ae=Pe;var Ee=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},ke=Ee,Te=S,Me=W,_e=T?T.prototype:void 0,Ce=_e?_e.toString:void 0;var Ie=function t(e){if("string"==typeof e)return e;if(Te(e))return ke(e,t)+"";if(Me(e))return Ce?Ce.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},De=Ie;var Ne=function(t){return null==t?"":De(t)},Re=S,Be=G,Le=Ae,$e=Ne;var ze=function(t,e){return Re(t)?t:Be(t,e)?[t]:Le($e(t))},Fe=W;var Ue=function(t){if("string"==typeof t||Fe(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},qe=ze,We=Ue;var Ve=function(t,e){for(var r=0,n=(e=qe(e,t)).length;null!=t&&r<n;)t=t[We(e[r++])];return r&&r==n?t:void 0},Xe=Ve;var He=function(t,e,r){var n=null==t?void 0:Xe(t,e);return void 0===n?r:n},Ke=m(He);var Ge=m(function(t){return null==t}),Ye=z,Ze=S,Je=F;var Qe,tr=m(function(t){return"string"==typeof t||!Ze(t)&&Je(t)&&"[object String]"==Ye(t)}),er={exports:{}},rr={};var nr,or={};
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/"production"===process.env.NODE_ENV?er.exports=function(){if(Qe)return rr;Qe=1;var t,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function d(t){if("object"==typeof t&&null!==t){var y=t.$$typeof;switch(y){case e:switch(t=t.type){case n:case i:case o:case s:case f:return t;default:switch(t=t&&t.$$typeof){case u:case c:case l:case h:case p:case a:return t;default:return y}}case r:return y}}}return t=Symbol.for("react.module.reference"),rr.ContextConsumer=c,rr.ContextProvider=a,rr.Element=e,rr.ForwardRef=l,rr.Fragment=n,rr.Lazy=h,rr.Memo=p,rr.Portal=r,rr.Profiler=i,rr.StrictMode=o,rr.Suspense=s,rr.SuspenseList=f,rr.isAsyncMode=function(){return!1},rr.isConcurrentMode=function(){return!1},rr.isContextConsumer=function(t){return d(t)===c},rr.isContextProvider=function(t){return d(t)===a},rr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},rr.isForwardRef=function(t){return d(t)===l},rr.isFragment=function(t){return d(t)===n},rr.isLazy=function(t){return d(t)===h},rr.isMemo=function(t){return d(t)===p},rr.isPortal=function(t){return d(t)===r},rr.isProfiler=function(t){return d(t)===i},rr.isStrictMode=function(t){return d(t)===o},rr.isSuspense=function(t){return d(t)===s},rr.isSuspenseList=function(t){return d(t)===f},rr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===o||e===s||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===t||void 0!==e.getModuleId)},rr.typeOf=d,rr}():er.exports=(nr||(nr=1,"production"!==process.env.NODE_ENV&&function(){var t,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function d(t){if("object"==typeof t&&null!==t){var y=t.$$typeof;switch(y){case e:var d=t.type;switch(d){case n:case i:case o:case s:case f:return d;default:var v=d&&d.$$typeof;switch(v){case u:case c:case l:case h:case p:case a:return v;default:return y}}case r:return y}}}t=Symbol.for("react.module.reference");var v=c,b=a,m=e,g=l,w=n,x=h,O=p,j=r,S=i,P=o,A=s,E=f,k=!1,T=!1;or.ContextConsumer=v,or.ContextProvider=b,or.Element=m,or.ForwardRef=g,or.Fragment=w,or.Lazy=x,or.Memo=O,or.Portal=j,or.Profiler=S,or.StrictMode=P,or.Suspense=A,or.SuspenseList=E,or.isAsyncMode=function(t){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},or.isConcurrentMode=function(t){return T||(T=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},or.isContextConsumer=function(t){return d(t)===c},or.isContextProvider=function(t){return d(t)===a},or.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},or.isForwardRef=function(t){return d(t)===l},or.isFragment=function(t){return d(t)===n},or.isLazy=function(t){return d(t)===h},or.isMemo=function(t){return d(t)===p},or.isPortal=function(t){return d(t)===r},or.isProfiler=function(t){return d(t)===i},or.isStrictMode=function(t){return d(t)===o},or.isSuspense=function(t){return d(t)===s},or.isSuspenseList=function(t){return d(t)===f},or.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===o||e===s||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===t||void 0!==e.getModuleId)},or.typeOf=d}()),or);var ir=er.exports,ar=z,cr=F;var ur=function(t){return"number"==typeof t||cr(t)&&"[object Number]"==ar(t)},lr=m(ur),sr=ur;var fr=m(function(t){return sr(t)&&t!=+t}),pr=function(t){return 0===t?0:t>0?1:-1},hr=function(t){return tr(t)&&t.indexOf("%")===t.length-1},yr=function(t){return lr(t)&&!fr(t)},dr=function(t){return yr(t)||tr(t)},vr=0,br=function(t){var e=++vr;return"".concat(t||"").concat(e)},mr=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(!yr(t)&&!tr(t))return n;if(hr(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return fr(r)&&(r=n),o&&r>e&&(r=e),r},gr=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},wr=function(t,e){return yr(t)&&yr(e)?function(r){return t+r*(e-t)}:function(){return e}};function xr(t,e,r){return t&&t.length?t.find(function(t){return t&&("function"==typeof e?e(t):Ke(t,e))===r}):null}var Or=function(t,e){return yr(t)&&yr(e)?t-e:tr(t)&&tr(e)?t.localeCompare(e):t instanceof Date&&e instanceof Date?t.getTime()-e.getTime():String(t).localeCompare(String(e))};function jr(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 Sr(t){"@babel/helpers - typeof";return Sr="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},Sr(t)}var Pr=["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","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","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"],Ar=["points","pathLength"],Er={svg:["viewBox","children"],polygon:Ar,polyline:Ar},kr=["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","onDragCapture","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"],Tr=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(r(t)&&(n=t.props),!Z(n))return null;var o={};return Object.keys(n).forEach(function(t){kr.includes(t)&&(o[t]=e||function(e){return n[t](n,e)})}),o},Mr=function(t,e,r){if(!Z(t)||"object"!==Sr(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];kr.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},_r=["children"],Cr=["children"];function Ir(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 Dr(t){"@babel/helpers - typeof";return Dr="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},Dr(t)}var Nr={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Rr=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Br=null,Lr=null,$r=function t(e){if(e===Br&&Array.isArray(Lr))return Lr;var r=[];return n.forEach(e,function(e){Ge(e)||(ir.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))}),Lr=r,Br=e,r};function zr(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return Rr(t)}):[Rr(e)],$r(t).forEach(function(t){var e=Ke(t,"type.displayName")||Ke(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function Fr(t,e){var r=zr(t,e);return r&&r[0]}var Ur=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!yr(r)||r<=0||!yr(n)||n<=0)},qr=["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"],Wr=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var o=t;if(r(t)&&(o=t.props),!Z(o))return null;var i={};return Object.keys(o).forEach(function(t){var r;(function(t,e,r,n){var o,i=null!==(o=null==Er?void 0:Er[n])&&void 0!==o?o:[];return e.startsWith("data-")||!rt(t)&&(n&&i.includes(e)||Pr.includes(e))||r&&kr.includes(e)})(null===(r=o)||void 0===r?void 0:r[t],t,e,n)&&(i[t]=o[t])}),i},Vr=function t(e,r){if(e===r)return!0;var o=n.count(e);if(o!==n.count(r))return!1;if(0===o)return!0;if(1===o)return Xr(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<o;i++){var a=e[i],c=r[i];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!Xr(a,c))return!1}return!0},Xr=function(t,e){if(Ge(t)&&Ge(e))return!0;if(!Ge(t)&&!Ge(e)){var r=t.props||{},n=r.children,o=Ir(r,_r),i=e.props||{},a=i.children,c=Ir(i,Cr);return n&&a?jr(o,c)&&Vr(n,a):!n&&!a&&jr(o,c)}return!1},Hr=function(t,e){var r=[],n={};return $r(t).forEach(function(t,o){if(function(t){return t&&t.type&&tr(t.type)&&qr.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=Rr(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},Kr=["children","width","height","viewBox","className","style","title","desc"];function Gr(){return Gr=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},Gr.apply(this,arguments)}function Yr(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 Zr(t){var r=t.children,n=t.width,o=t.height,i=t.viewBox,a=t.className,c=t.style,u=t.title,l=t.desc,s=Yr(t,Kr),f=i||{width:n,height:o,x:0,y:0},p=j("recharts-surface",a);return e.createElement("svg",Gr({},Wr(s,!0,"svg"),{className:p,width:n,height:o,style:c,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),e.createElement("title",null,u),e.createElement("desc",null,l),r)}var Jr=["children","className"];function Qr(){return Qr=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},Qr.apply(this,arguments)}function tn(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 en=e.forwardRef(function(t,r){var n=t.children,o=t.className,i=tn(t,Jr),a=j("recharts-layer",o);return e.createElement("g",Qr({className:a},Wr(i,!0),{ref:r}),n)}),rn="production"!==process.env.NODE_ENV,nn=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];if(rn&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(e.replace(/%s/g,function(){return n[i++]}))}};var on=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},an=on;var cn=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:an(t,e,r)},un=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var ln=function(t){return un.test(t)};var sn=function(t){return t.split("")},fn="\\ud800-\\udfff",pn="["+fn+"]",hn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",yn="\\ud83c[\\udffb-\\udfff]",dn="[^"+fn+"]",vn="(?:\\ud83c[\\udde6-\\uddff]){2}",bn="[\\ud800-\\udbff][\\udc00-\\udfff]",mn="(?:"+hn+"|"+yn+")"+"?",gn="[\\ufe0e\\ufe0f]?",wn=gn+mn+("(?:\\u200d(?:"+[dn,vn,bn].join("|")+")"+gn+mn+")*"),xn="(?:"+[dn+hn+"?",hn,vn,bn,pn].join("|")+")",On=RegExp(yn+"(?="+yn+")|"+xn+wn,"g");var jn=function(t){return t.match(On)||[]},Sn=sn,Pn=ln,An=jn;var En=function(t){return Pn(t)?An(t):Sn(t)},kn=cn,Tn=ln,Mn=En,_n=Ne;var Cn=function(t){return function(e){e=_n(e);var r=Tn(e)?Mn(e):void 0,n=r?r[0]:e.charAt(0),o=r?kn(r,1).join(""):e.slice(1);return n[t]()+o}},In=m(Cn("toUpperCase"));function Dn(t){return function(){return t}}const Nn=Math.cos,Rn=Math.sin,Bn=Math.sqrt,Ln=Math.PI,$n=2*Ln,zn=Math.PI,Fn=2*zn,Un=1e-6,qn=Fn-Un;function Wn(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Vn{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Wn:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Wn;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},${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>Un)if(Math.abs(s*c-u*l)>Un&&o){let p=r-i,h=n-a,y=c*c+u*u,d=p*p+h*h,v=Math.sqrt(y),b=Math.sqrt(f),m=o*Math.tan((zn-Math.acos((y+f-d)/(2*v*b)))/2),g=m/b,w=m/v;Math.abs(g-1)>Un&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+w*c},${this._y1=e+w*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)>Un||Math.abs(this._y1-l)>Un)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Fn+Fn),f>qn?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>Un&&this._append`A${r},${r},0,${+(f>=zn)},${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 Xn(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 Vn(e)}function Hn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Kn(t){this._context=t}function Gn(t){return new Kn(t)}function Yn(t){return t[0]}function Zn(t){return t[1]}function Jn(t,e){var r=Dn(!0),n=null,o=Gn,i=null,a=Xn(c);function c(c){var u,l,s,f=(c=Hn(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?Yn:Dn(t),e="function"==typeof e?e:void 0===e?Zn:Dn(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Dn(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Dn(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:Dn(!!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 Qn(t,e,r){var n=null,o=Dn(!0),i=null,a=Gn,c=null,u=Xn(l);function l(l){var s,f,p,h,y,d=(l=Hn(l)).length,v=!1,b=new Array(d),m=new Array(d);for(null==i&&(c=a(y=u())),s=0;s<=d;++s){if(!(s<d&&o(h=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(b[p],m[p]);c.lineEnd(),c.areaEnd()}v&&(b[s]=+t(h,s,l),m[s]=+e(h,s,l),c.point(n?+n(h,s,l):b[s],r?+r(h,s,l):m[s]))}if(y)return c=null,y+""||null}function s(){return Jn().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Yn:Dn(+t),e="function"==typeof e?e:Dn(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Zn:Dn(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Dn(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Dn(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Dn(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Dn(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Dn(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Dn(+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:Dn(!!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}Kn.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 to{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}}var eo={draw(t,e){const r=Bn(e/Ln);t.moveTo(r,0),t.arc(0,0,r,0,$n)}},ro={draw(t,e){const r=Bn(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()}};const no=Bn(1/3),oo=2*no;var io={draw(t,e){const r=Bn(e/oo),n=r*no;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},ao={draw(t,e){const r=Bn(e),n=-r/2;t.rect(n,n,r,r)}};const co=Rn(Ln/10)/Rn(7*Ln/10),uo=Rn($n/10)*co,lo=-Nn($n/10)*co;var so={draw(t,e){const r=Bn(.8908130915292852*e),n=uo*r,o=lo*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=$n*e/5,a=Nn(i),c=Rn(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}};const fo=Bn(3);var po={draw(t,e){const r=-Bn(e/(3*fo));t.moveTo(0,2*r),t.lineTo(-fo*r,-r),t.lineTo(fo*r,-r),t.closePath()}};const ho=-.5,yo=Bn(3)/2,vo=1/Bn(12),bo=3*(vo/2+1);var mo={draw(t,e){const r=Bn(e/bo),n=r/2,o=r*vo,i=n,a=r*vo+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(ho*n-yo*o,yo*n+ho*o),t.lineTo(ho*i-yo*a,yo*i+ho*a),t.lineTo(ho*c-yo*u,yo*c+ho*u),t.lineTo(ho*n+yo*o,ho*o-yo*n),t.lineTo(ho*i+yo*a,ho*a-yo*i),t.lineTo(ho*c+yo*u,ho*u-yo*c),t.closePath()}};function go(){}function wo(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 xo(t){this._context=t}function Oo(t){this._context=t}function jo(t){this._context=t}function So(t){this._context=t}function Po(t){return t<0?-1:1}function Ao(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(Po(i)+Po(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function Eo(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ko(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 To(t){this._context=t}function Mo(t){this._context=new _o(t)}function _o(t){this._context=t}function Co(t){this._context=t}function Io(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 Do(t,e){this._context=t,this._t=e}function No(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 Ro(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Bo(t,e){return t[e]}function Lo(t){const e=[];return e.key=t,e}function $o(t){"@babel/helpers - typeof";return $o="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},$o(t)}xo.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:wo(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:wo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Oo.prototype={areaStart:go,areaEnd:go,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:wo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},jo.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:wo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},So.prototype={areaStart:go,areaEnd:go,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))}},To.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:ko(this,this._t0,Eo(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,ko(this,Eo(this,r=Ao(this,t,e)),r);break;default:ko(this,this._t0,r=Ao(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Mo.prototype=Object.create(To.prototype)).point=function(t,e){To.prototype.point.call(this,e,t)},_o.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)}},Co.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=Io(t),o=Io(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)}},Do.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 zo=["type","size","sizeType"];function Fo(){return Fo=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},Fo.apply(this,arguments)}function Uo(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 qo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uo(Object(r),!0).forEach(function(e){Wo(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uo(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Wo(t,e,r){var n;return n=function(t,e){if("object"!=$o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=$o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==$o(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}var Xo={symbolCircle:eo,symbolCross:ro,symbolDiamond:io,symbolSquare:ao,symbolStar:so,symbolTriangle:po,symbolWye:mo},Ho=Math.PI/180,Ko=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,l=void 0===u?"area":u,s=qo(qo({},Vo(t,zo)),{},{type:i,size:c,sizeType:l}),f=s.className,p=s.cx,h=s.cy,y=Wr(s,!0);return p===+p&&h===+h&&c===+c?e.createElement("path",Fo({},y,{className:j("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(r=function(t){var e="symbol".concat(In(t));return Xo[e]||eo}(i),n=function(t,e){let r=null,n=Xn(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:Dn(t||eo),e="function"==typeof e?e:Dn(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Dn(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Dn(+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*Ho;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,l,i)),n())})):null};function Go(t){"@babel/helpers - typeof";return Go="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},Go(t)}function Yo(){return Yo=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},Yo.apply(this,arguments)}function Zo(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 Jo(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,oi(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qo(t,e,r){return e=ei(e),function(t,e){if(e&&("object"===Go(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||[],ei(t).constructor):e.apply(t,r))}function ti(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ti=function(){return!!t})()}function ei(t){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ei(t)}function ri(t,e){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ri(t,e)}function ni(t,e,r){return(e=oi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oi(t){var e=function(t,e){if("object"!=Go(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Go(e)?e:e+""}Ko.registerSymbol=function(t,e){Xo["symbol".concat(In(t))]=e};var ii=32,ai=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Qo(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&&ri(t,e)}(t,o),Jo(t,[{key:"renderIcon",value:function(t){var r=this.props.inactiveColor,n=16,o=ii/6,i=ii/3,a=t.inactive?r:t.color;if("plainline"===t.type)return e.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:ii,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return e.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(ii,"M").concat(2*i,",").concat(n,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return e.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(ii,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(e.isValidElement(t.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zo(Object(r),!0).forEach(function(e){ni(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zo(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t);return delete c.legendIcon,e.cloneElement(t.legendIcon,c)}return e.createElement(Ko,{fill:a,cx:n,cy:n,size:ii,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:ii,height:ii},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(r,n){var i=r.formatter||a,f=j(ni(ni({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",r.inactive));if("none"===r.type)return null;var p=rt(r.value)?null:r.value;nn(!rt(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 e.createElement("li",Yo({className:f,style:l,key:"legend-item-".concat(n)},Mr(t.props,r,n)),e.createElement(Zr,{width:o,height:o,viewBox:u,style:s},t.renderIcon(r)),e.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},i?i(p,r,n):p))})}},{key:"render",value:function(){var t=this.props,r=t.payload,n=t.layout,o=t.align;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?o:"left"};return e.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}])}();ni(ai,"displayName","Legend"),ni(ai,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ci=te;var ui=te,li=ee,si=be;var fi=te,pi=function(){this.__data__=new ci,this.size=0},hi=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},yi=function(t){return this.__data__.get(t)},di=function(t){return this.__data__.has(t)},vi=function(t,e){var r=this.__data__;if(r instanceof ui){var n=r.__data__;if(!li||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new si(n)}return r.set(t,e),this.size=r.size,this};function bi(t){var e=this.__data__=new fi(t);this.size=e.size}bi.prototype.clear=pi,bi.prototype.delete=hi,bi.prototype.get=yi,bi.prototype.has=di,bi.prototype.set=vi;var mi=bi;var gi=be,wi=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},xi=function(t){return this.__data__.has(t)};function Oi(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new gi;++e<r;)this.add(t[e])}Oi.prototype.add=Oi.prototype.push=wi,Oi.prototype.has=xi;var ji=Oi;var Si=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 Pi=function(t,e){return t.has(e)},Ai=ji,Ei=Si,ki=Pi;var Ti=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,h=2&r?new Ai:void 0;for(i.set(t,e),i.set(e,t);++f<c;){var y=t[f],d=e[f];if(n)var v=a?n(d,y,f,e,t,i):n(y,d,f,t,e,i);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!Ei(e,function(t,e){if(!ki(h,e)&&(y===t||o(y,t,r,n,i)))return h.push(e)})){p=!1;break}}else if(y!==d&&!o(y,d,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p};var Mi=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r};var _i=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r},Ci=k.Uint8Array,Ii=zt,Di=Ti,Ni=Mi,Ri=_i,Bi=T?T.prototype:void 0,Li=Bi?Bi.valueOf:void 0;var $i=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 Ci(t),new Ci(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ii(+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=Ni;case"[object Set]":var u=1&n;if(c||(c=Ri),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=Di(c(t),c(e),n,o,i,a);return a.delete(t),s;case"[object Symbol]":if(Li)return Li.call(t)==Li.call(e)}return!1};var zi=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},Fi=zi,Ui=S;var qi=function(t,e,r){var n=e(t);return Ui(t)?n:Fi(n,r(t))};var Wi=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};var Vi=Wi,Xi=function(){return[]},Hi=Object.prototype.propertyIsEnumerable,Ki=Object.getOwnPropertySymbols,Gi=Ki?function(t){return null==t?[]:(t=Object(t),Vi(Ki(t),function(e){return Hi.call(t,e)}))}:Xi,Yi=Gi;var Zi=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Ji=z,Qi=F;var ta=function(t){return Qi(t)&&"[object Arguments]"==Ji(t)},ea=F,ra=Object.prototype,na=ra.hasOwnProperty,oa=ra.propertyIsEnumerable,ia=ta(function(){return arguments}())?ta:function(t){return ea(t)&&na.call(t,"callee")&&!oa.call(t,"callee")},aa={exports:{}};var ca=function(){return!1};!function(t,e){var r=k,n=ca,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(aa,aa.exports);var ua=aa.exports,la=/^(?:0|[1-9]\d*)$/;var sa=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&la.test(t))&&t>-1&&t%1==0&&t<e};var fa=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},pa=z,ha=fa,ya=F,da={};da["[object Float32Array]"]=da["[object Float64Array]"]=da["[object Int8Array]"]=da["[object Int16Array]"]=da["[object Int32Array]"]=da["[object Uint8Array]"]=da["[object Uint8ClampedArray]"]=da["[object Uint16Array]"]=da["[object Uint32Array]"]=!0,da["[object Arguments]"]=da["[object Array]"]=da["[object ArrayBuffer]"]=da["[object Boolean]"]=da["[object DataView]"]=da["[object Date]"]=da["[object Error]"]=da["[object Function]"]=da["[object Map]"]=da["[object Number]"]=da["[object Object]"]=da["[object RegExp]"]=da["[object Set]"]=da["[object String]"]=da["[object WeakMap]"]=!1;var va=function(t){return ya(t)&&ha(t.length)&&!!da[pa(t)]};var ba=function(t){return function(e){return t(e)}},ma={exports:{}};!function(t,e){var r=P,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(t){}}();t.exports=a}(ma,ma.exports);var ga=ma.exports,wa=va,xa=ba,Oa=ga&&ga.isTypedArray,ja=Oa?xa(Oa):wa,Sa=Zi,Pa=ia,Aa=S,Ea=ua,ka=sa,Ta=ja,Ma=Object.prototype.hasOwnProperty;var _a=function(t,e){var r=Aa(t),n=!r&&Pa(t),o=!r&&!n&&Ea(t),i=!r&&!n&&!o&&Ta(t),a=r||n||o||i,c=a?Sa(t.length,String):[],u=c.length;for(var l in t)!e&&!Ma.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ka(l,u))||c.push(l);return c},Ca=Object.prototype;var Ia=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ca)};var Da=function(t,e){return function(r){return t(e(r))}},Na=Da(Object.keys,Object),Ra=Ia,Ba=Na,La=Object.prototype.hasOwnProperty;var $a=function(t){if(!Ra(t))return Ba(t);var e=[];for(var r in Object(t))La.call(t,r)&&"constructor"!=r&&e.push(r);return e},za=et,Fa=fa;var Ua=function(t){return null!=t&&Fa(t.length)&&!za(t)},qa=_a,Wa=$a,Va=Ua;var Xa=function(t){return Va(t)?qa(t):Wa(t)},Ha=qi,Ka=Yi,Ga=Xa;var Ya=function(t){return Ha(t,Ga,Ka)},Za=Ya,Ja=Object.prototype.hasOwnProperty;var Qa=function(t,e,r,n,o,i){var a=1&r,c=Za(t),u=c.length;if(u!=Za(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Ja.call(e,s)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var h=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<u;){var d=t[s=c[l]],v=e[s];if(n)var b=a?n(v,d,s,e,t,i):n(d,v,s,t,e,i);if(!(void 0===b?d===v||o(d,v,r,n,i):b)){h=!1;break}y||(y="constructor"==s)}if(h&&!y){var m=t.constructor,g=e.constructor;m==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(t),i.delete(e),h},tc=xt(k,"DataView"),ec=xt(k,"Promise"),rc=xt(k,"Set"),nc=tc,oc=ee,ic=ec,ac=rc,cc=xt(k,"WeakMap"),uc=z,lc=ct,sc="[object Map]",fc="[object Promise]",pc="[object Set]",hc="[object WeakMap]",yc="[object DataView]",dc=lc(nc),vc=lc(oc),bc=lc(ic),mc=lc(ac),gc=lc(cc),wc=uc;(nc&&wc(new nc(new ArrayBuffer(1)))!=yc||oc&&wc(new oc)!=sc||ic&&wc(ic.resolve())!=fc||ac&&wc(new ac)!=pc||cc&&wc(new cc)!=hc)&&(wc=function(t){var e=uc(t),r="[object Object]"==e?t.constructor:void 0,n=r?lc(r):"";if(n)switch(n){case dc:return yc;case vc:return sc;case bc:return fc;case mc:return pc;case gc:return hc}return e});var xc=mi,Oc=Ti,jc=$i,Sc=Qa,Pc=wc,Ac=S,Ec=ua,kc=ja,Tc="[object Arguments]",Mc="[object Array]",_c="[object Object]",Cc=Object.prototype.hasOwnProperty;var Ic=function(t,e,r,n,o,i){var a=Ac(t),c=Ac(e),u=a?Mc:Pc(t),l=c?Mc:Pc(e),s=(u=u==Tc?_c:u)==_c,f=(l=l==Tc?_c:l)==_c,p=u==l;if(p&&Ec(t)){if(!Ec(e))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new xc),a||kc(t)?Oc(t,e,r,n,o,i):jc(t,e,u,r,n,o,i);if(!(1&r)){var h=s&&Cc.call(t,"__wrapped__"),y=f&&Cc.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,v=y?e.value():e;return i||(i=new xc),o(d,v,r,n,i)}}return!!p&&(i||(i=new xc),Sc(t,e,r,n,o,i))},Dc=Ic,Nc=F;var Rc=function t(e,r,n,o,i){return e===r||(null==e||null==r||!Nc(e)&&!Nc(r)?e!=e&&r!=r:Dc(e,r,n,o,t,i))},Bc=mi,Lc=Rc;var $c=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 Bc;if(n)var p=n(l,s,u,t,e,f);if(!(void 0===p?Lc(s,l,3,n,f):p))return!1}}return!0},zc=Y;var Fc=function(t){return t==t&&!zc(t)},Uc=Fc,qc=Xa;var Wc=function(t){for(var e=qc(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,Uc(o)]}return e};var Vc=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Xc=$c,Hc=Wc,Kc=Vc;var Gc=function(t){var e=Hc(t);return 1==e.length&&e[0][2]?Kc(e[0][0],e[0][1]):function(r){return r===t||Xc(r,t,e)}};var Yc=function(t,e){return null!=t&&e in Object(t)},Zc=ze,Jc=ia,Qc=S,tu=sa,eu=fa,ru=Ue;var nu=function(t,e,r){for(var n=-1,o=(e=Zc(e,t)).length,i=!1;++n<o;){var a=ru(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&eu(o)&&tu(a,o)&&(Qc(t)||Jc(t))},ou=Yc,iu=nu;var au=function(t,e){return null!=t&&iu(t,e,ou)},cu=Rc,uu=He,lu=au,su=G,fu=Fc,pu=Vc,hu=Ue;var yu=function(t,e){return su(t)&&fu(e)?pu(hu(t),e):function(r){var n=uu(r,t);return void 0===n&&n===e?lu(r,t):cu(e,n,3)}};var du=function(t){return t};var vu=function(t){return function(e){return null==e?void 0:e[t]}},bu=Ve;var mu=function(t){return function(e){return bu(e,t)}},gu=vu,wu=mu,xu=G,Ou=Ue;var ju=Gc,Su=yu,Pu=du,Au=S,Eu=function(t){return xu(t)?gu(Ou(t)):wu(t)};var ku=function(t){return"function"==typeof t?t:null==t?Pu:"object"==typeof t?Au(t)?Su(t[0],t[1]):ju(t):Eu(t)};var Tu=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 Mu=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1},_u=Tu,Cu=function(t){return t!=t},Iu=Mu;var Du=function(t,e,r){return e==e?Iu(t,e,r):_u(t,Cu,r)},Nu=Du;var Ru=function(t,e){return!!(null==t?0:t.length)&&Nu(t,e,0)>-1};var Bu=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 Lu=rc,$u=function(){},zu=Lu&&1/_i(new Lu([,-0]))[1]==1/0?function(t){return new Lu(t)}:$u,Fu=ji,Uu=Ru,qu=Bu,Wu=Pi,Vu=zu,Xu=_i;var Hu=function(t,e,r){var n=-1,o=Uu,i=t.length,a=!0,c=[],u=c;if(r)a=!1,o=qu;else if(i>=200){var l=e?null:Vu(t);if(l)return Xu(l);a=!1,o=Wu,u=new Fu}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},Ku=ku,Gu=Hu;var Yu=function(t,e){return t&&t.length?Gu(t,Ku(e)):[]},Zu=m(Yu);function Ju(t,e,r){return!0===e?Zu(t,r):rt(e)?Zu(t,e):t}function Qu(t){"@babel/helpers - typeof";return Qu="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},Qu(t)}var tl=["ref"];function el(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 rl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?el(Object(r),!0).forEach(function(e){ul(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):el(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function nl(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,ll(n.key),n)}}function ol(t,e,r){return e=al(e),function(t,e){if(e&&("object"===Qu(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,il()?Reflect.construct(e,r||[],al(t).constructor):e.apply(t,r))}function il(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(il=function(){return!!t})()}function al(t){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},al(t)}function cl(t,e){return cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cl(t,e)}function ul(t,e,r){return(e=ll(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ll(t){var e=function(t,e){if("object"!=Qu(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Qu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Qu(e)?e:e+""}function sl(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 fl(t){return t.value}var pl=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 ul(e=ol(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&&cl(t,e)}(t,o),r=t,i=[{key:"getWithHeight",value:function(t,e){var r=rl(rl({},this.defaultProps),t.props).layout;return"vertical"===r&&yr(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{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?rl({},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}),rl(rl({},e),r)}},{key:"render",value:function(){var t=this,r=this.props,n=r.content,o=r.width,i=r.height,a=r.wrapperStyle,c=r.payloadUniqBy,u=r.payload,l=rl(rl({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return e.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,r){if(e.isValidElement(t))return e.cloneElement(t,r);if("function"==typeof t)return e.createElement(t,r);r.ref;var n=sl(r,tl);return e.createElement(ai,n)}(n,rl(rl({},this.props),{},{payload:Ju(u,c,fl)})))}}])&&nl(r.prototype,n),i&&nl(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();ul(pl,"displayName","Legend"),ul(pl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var hl=ia,yl=S,dl=T?T.isConcatSpreadable:void 0;var vl=zi,bl=function(t){return yl(t)||hl(t)||!!(dl&&t&&t[dl])};var ml=function t(e,r,n,o,i){var a=-1,c=e.length;for(n||(n=bl),i||(i=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,o,i):vl(i,u):o||(i[i.length]=u)}return i};var gl=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}},wl=gl(),xl=Xa;var Ol=function(t,e){return t&&wl(t,e,xl)},jl=Ua;var Sl=function(t,e){return function(r,n){if(null==r)return r;if(!jl(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}}(Ol),Pl=Sl,Al=Ua;var El=function(t,e){var r=-1,n=Al(t)?Array(t.length):[];return Pl(t,function(t,o,i){n[++r]=e(t,o,i)}),n};var kl=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},Tl=W;var Ml=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,i=Tl(t),a=void 0!==e,c=null===e,u=e==e,l=Tl(e);if(!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 _l=function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,c=r.length;++n<a;){var u=Ml(o[n],i[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},Cl=Ee,Il=Ve,Dl=ku,Nl=El,Rl=kl,Bl=ba,Ll=_l,$l=du,zl=S;var Fl=function(t,e,r){e=e.length?Cl(e,function(t){return zl(t)?function(e){return Il(e,1===t.length?t[0]:t)}:t}):[$l];var n=-1;e=Cl(e,Bl(Dl));var o=Nl(t,function(t,r,o){return{criteria:Cl(e,function(e){return e(t)}),index:++n,value:t}});return Rl(o,function(t,e){return Ll(t,e,r)})};var Ul=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)},ql=Math.max;var Wl=function(t,e,r){return e=ql(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=ql(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),Ul(t,this,c)}};var Vl=function(t){return function(){return t}},Xl=xt,Hl=function(){try{var t=Xl(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Kl=Vl,Gl=Hl,Yl=Gl?function(t,e){return Gl(t,"toString",{configurable:!0,enumerable:!1,value:Kl(e),writable:!0})}:du,Zl=Yl,Jl=Date.now;var Ql=function(t){var e=0,r=0;return function(){var n=Jl(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Zl),ts=du,es=Wl,rs=Ql;var ns=zt,os=Ua,is=sa,as=Y;var cs=function(t,e,r){if(!as(r))return!1;var n=typeof e;return!!("number"==n?os(r)&&is(e,r.length):"string"==n&&e in r)&&ns(r[e],t)},us=ml,ls=Fl,ss=cs,fs=m(function(t,e){return rs(es(t,e,ts),t+"")}(function(t,e){if(null==t)return[];var r=e.length;return r>1&&ss(t,e[0],e[1])?e=[]:r>2&&ss(e[0],e[1],e[2])&&(e=[e[0]]),ls(t,us(e,1),[])}));function ps(t){"@babel/helpers - typeof";return ps="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},ps(t)}function hs(){return hs=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},hs.apply(this,arguments)}function ys(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(t){l=!0,o=t}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 ds(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 ds(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 ds(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 vs(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 bs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vs(Object(r),!0).forEach(function(e){ms(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vs(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ms(t,e,r){var n;return n=function(t,e){if("object"!=ps(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ps(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ps(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gs(t){return Array.isArray(t)&&dr(t[0])&&dr(t[1])?t.join(" ~ "):t}var ws=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,l=void 0===u?{}:u,s=t.payload,f=t.formatter,p=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,d=t.label,v=t.labelFormatter,b=t.accessibilityLayer,m=void 0!==b&&b,g=bs({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=bs({margin:0},l),x=!Ge(d),O=x?d:"",S=j("recharts-default-tooltip",h),P=j("recharts-tooltip-label",y);x&&v&&null!=s&&(O=v(d,s));var A=m?{role:"status","aria-live":"assertive"}:{};return e.createElement("div",hs({className:S,style:g},A),e.createElement("p",{className:P,style:w},e.isValidElement(O)?O:"".concat(O)),function(){if(s&&s.length){var t=(p?fs(s,p):s).map(function(t,r){if("none"===t.type)return null;var o=bs({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},c),i=t.formatter||f||gs,a=t.value,u=t.name,l=a,p=u;if(i&&null!=l&&null!=p){var h=i(a,u,t,r,s);if(Array.isArray(h)){var y=ys(h,2);l=y[0],p=y[1]}else l=h}return e.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:o},dr(p)?e.createElement("span",{className:"recharts-tooltip-item-name"},p):null,dr(p)?e.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,e.createElement("span",{className:"recharts-tooltip-item-value"},l),e.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return e.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function xs(t){"@babel/helpers - typeof";return xs="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},xs(t)}function Os(t,e,r){var n;return n=function(t,e){if("object"!=xs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==xs(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var js="recharts-tooltip-wrapper",Ss={visibility:"hidden"};function Ps(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return j(js,Os(Os(Os(Os({},"".concat(js,"-right"),yr(r)&&e&&yr(e.x)&&r>=e.x),"".concat(js,"-left"),yr(r)&&e&&yr(e.x)&&r<e.x),"".concat(js,"-bottom"),yr(n)&&e&&yr(e.y)&&n>=e.y),"".concat(js,"-top"),yr(n)&&e&&yr(e.y)&&n<e.y))}function As(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&&yr(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 Es(t){"@babel/helpers - typeof";return Es="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},Es(t)}function ks(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 Ts(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ks(Object(r),!0).forEach(function(e){Ns(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ks(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ms(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,Rs(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _s(t,e,r){return e=Is(e),function(t,e){if(e&&("object"===Es(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||[],Is(t).constructor):e.apply(t,r))}function Cs(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Cs=function(){return!!t})()}function Is(t){return Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Is(t)}function Ds(t,e){return Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ds(t,e)}function Ns(t,e,r){return(e=Rs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rs(t){var e=function(t,e){if("object"!=Es(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Es(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Es(e)?e:e+""}var Bs=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 Ns(e=_s(this,t,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ns(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&&Ds(t,e)}(t,o),Ms(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,r=this.props,n=r.active,o=r.allowEscapeViewBox,i=r.animationDuration,a=r.animationEasing,c=r.children,u=r.coordinate,l=r.hasPayload,s=r.isAnimationActive,f=r.offset,p=r.position,h=r.reverseDirection,y=r.useTranslate3d,d=r.viewBox,v=r.wrapperStyle,b=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=As({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=As({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):Ss,cssClasses:Ps({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:d}),m=b.cssClasses,g=b.cssProperties,w=Ts(Ts({transition:s&&n?"transform ".concat(i,"ms ").concat(a):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return e.createElement("div",{tabIndex:-1,className:m,style:w,ref:function(e){t.wrapperNode=e}},c)}}])}(),Ls=!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout);function $s(t){"@babel/helpers - typeof";return $s="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},$s(t)}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 Fs(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){Hs(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 Us(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,Ks(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qs(t,e,r){return e=Vs(e),function(t,e){if(e&&("object"===$s(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,Ws()?Reflect.construct(e,r||[],Vs(t).constructor):e.apply(t,r))}function Ws(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ws=function(){return!!t})()}function Vs(t){return Vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vs(t)}function Xs(t,e){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xs(t,e)}function Hs(t,e,r){return(e=Ks(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ks(t){var e=function(t,e){if("object"!=$s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=$s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==$s(e)?e:e+""}function Gs(t){return t.dataKey}var Ys=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qs(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&&Xs(t,e)}(t,o),Us(t,[{key:"render",value:function(){var t=this,r=this.props,n=r.active,o=r.allowEscapeViewBox,i=r.animationDuration,a=r.animationEasing,c=r.content,u=r.coordinate,l=r.filterNull,s=r.isAnimationActive,f=r.offset,p=r.payload,h=r.payloadUniqBy,y=r.position,d=r.reverseDirection,v=r.useTranslate3d,b=r.viewBox,m=r.wrapperStyle,g=null!=p?p:[];l&&g.length&&(g=Ju(p.filter(function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)}),h,Gs));var w=g.length>0;return e.createElement(Bs,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:s,active:n,coordinate:u,hasPayload:w,offset:f,position:y,reverseDirection:d,useTranslate3d:v,viewBox:b,wrapperStyle:m},function(t,r){return e.isValidElement(t)?e.cloneElement(t,r):"function"==typeof t?e.createElement(t,r):e.createElement(ws,r)}(c,Fs(Fs({},this.props),{},{payload:g})))}}])}();Hs(Ys,"displayName","Tooltip"),Hs(Ys,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ls,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 Zs=k,Js=/\s/;var Qs=function(t){for(var e=t.length;e--&&Js.test(t.charAt(e)););return e},tf=Qs,ef=/^\s+/;var rf=function(t){return t?t.slice(0,tf(t)+1).replace(ef,""):t},nf=rf,of=Y,af=W,cf=/^[-+]0x[0-9a-f]+$/i,uf=/^0b[01]+$/i,lf=/^0o[0-7]+$/i,sf=parseInt;var ff=function(t){if("number"==typeof t)return t;if(af(t))return NaN;if(of(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=of(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=nf(t);var r=uf.test(t);return r||lf.test(t)?sf(t.slice(2),r?2:8):cf.test(t)?NaN:+t},pf=Y,hf=function(){return Zs.Date.now()},yf=ff,df=Math.max,vf=Math.min;var bf=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 h(e){var r=n,i=o;return n=o=void 0,l=e,a=t.apply(i,r)}function y(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=i}function d(){var t=hf();if(y(t))return v(t);c=setTimeout(d,function(t){var r=e-(t-u);return f?vf(r,i-(t-l)):r}(t))}function v(t){return c=void 0,p&&n?h(t):(n=o=void 0,a)}function b(){var t=hf(),r=y(t);if(n=arguments,o=this,u=t,r){if(void 0===c)return function(t){return l=t,c=setTimeout(d,e),s?h(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(d,e),h(u)}return void 0===c&&(c=setTimeout(d,e)),a}return e=yf(e)||0,pf(r)&&(s=!!r.leading,i=(f="maxWait"in r)?df(yf(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},b.flush=function(){return void 0===c?a:v(hf())},b},mf=bf,gf=Y;var wf=m(function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return gf(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),mf(t,e,{leading:n,maxWait:e,trailing:o})});function xf(t){"@babel/helpers - typeof";return xf="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},xf(t)}function Of(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 jf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Of(Object(r),!0).forEach(function(e){Sf(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Of(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Sf(t,e,r){var n;return n=function(t,e){if("object"!=xf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=xf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==xf(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pf(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(t){l=!0,o=t}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 Af(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 Af(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 Af(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 Ef=i(function(t,r){var n=t.aspect,o=t.initialDimension,i=void 0===o?{width:-1,height:-1}:o,h=t.width,y=void 0===h?"100%":h,d=t.height,v=void 0===d?"100%":d,b=t.minWidth,m=void 0===b?0:b,g=t.minHeight,w=t.maxHeight,x=t.children,O=t.debounce,S=void 0===O?0:O,P=t.id,A=t.className,E=t.onResize,k=t.style,T=void 0===k?{}:k,M=a(null),_=a();_.current=E,c(r,function(){return Object.defineProperty(M.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),M.current},configurable:!0})});var C=Pf(u({containerWidth:i.width,containerHeight:i.height}),2),I=C[0],D=C[1],N=l(function(t,e){D(function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}})},[]);s(function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;N(n,o),null===(e=_.current)||void 0===e||e.call(_,n,o)};S>0&&(t=wf(t,S,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=M.current.getBoundingClientRect(),n=r.width,o=r.height;return N(n,o),e.observe(M.current),function(){e.disconnect()}},[N,S]);var R=f(function(){var t=I.containerWidth,r=I.containerHeight;if(t<0||r<0)return null;nn(hr(y)||hr(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),nn(!n||n>0,"The aspect(%s) must be greater than zero.",n);var o=hr(y)?t:y,i=hr(v)?r:v;n&&n>0&&(o?i=o/n:i&&(o=i*n),w&&i>w&&(i=w)),nn(o>0||i>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.",o,i,y,v,m,g,n);var a=!Array.isArray(x)&&Rr(x.type).endsWith("Chart");return e.Children.map(x,function(t){return e.isValidElement(t)?p(t,jf({width:o,height:i},a?{style:jf({height:"100%",width:"100%",maxHeight:i,maxWidth:o},t.props.style)}:{})):t})},[n,x,v,w,g,m,I,y]);return e.createElement("div",{id:P?"".concat(P):void 0,className:j("recharts-responsive-container",A),style:jf(jf({},T),{},{width:y,height:v,minWidth:m,minHeight:g,maxHeight:w}),ref:M},R)}),kf=function(t){return null};function Tf(t){"@babel/helpers - typeof";return Tf="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},Tf(t)}function Mf(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 _f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mf(Object(r),!0).forEach(function(e){Cf(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mf(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Cf(t,e,r){var n;return n=function(t,e){if("object"!=Tf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Tf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Tf(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}kf.displayName="Cell";var If={widthCache:{},cacheCount:0},Df={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Nf="recharts_measurement_span";var Rf=function(t){if(null==t||Ls)return{width:0,height:0};var e,r=(e=_f({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),Object.keys(e).forEach(function(t){e[t]||delete e[t]}),e),n=JSON.stringify({text:t,copyStyle:r});if(If.widthCache[n])return If.widthCache[n];try{var o=document.getElementById(Nf);o||((o=document.createElement("span")).setAttribute("id",Nf),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var i=_f(_f({},Df),r);Object.assign(o.style,i),o.textContent="".concat(t);var a=o.getBoundingClientRect(),c={width:a.width,height:a.height};return If.widthCache[n]=c,++If.cacheCount>2e3&&(If.cacheCount=0,If.widthCache={}),c}catch(t){return{width:0,height:0}}};function Bf(t){"@babel/helpers - typeof";return Bf="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},Bf(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){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(t){l=!0,o=t}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 $f(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 $f(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 $f(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 zf(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)}}function Ff(t){var e=function(t,e){if("object"!=Bf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Bf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Bf(e)?e:e+""}var Uf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Wf=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Vf=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Xf={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Hf=Object.keys(Xf),Kf="NaN";var Gf=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||Wf.test(r)||(this.num=NaN,this.unit=""),Hf.includes(r)&&(this.num=function(t,e){return t*Xf[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=Lf(null!==(r=Vf.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)}}])&&zf(e.prototype,r),n&&zf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function Yf(t){if(t.includes(Kf))return Kf;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Lf(null!==(r=Uf.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Gf.parse(null!=o?o:""),u=Gf.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Kf;e=e.replace(Uf,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Lf(null!==(s=qf.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],y=f[3],d=Gf.parse(null!=p?p:""),v=Gf.parse(null!=y?y:""),b="+"===h?d.add(v):d.subtract(v);if(b.isNaN())return Kf;e=e.replace(qf,b.toString())}return e}var Zf=/\(([^()]*)\)/;function Jf(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Lf(Zf.exec(e),2)[1];e=e.replace(Zf,Yf(r))}return e}(e),e=Yf(e)}function Qf(t){var e=function(t){try{return Jf(t)}catch(t){return Kf}}(t.slice(5,-1));return e===Kf?"":e}var tp=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ep=["dx","dy","angle","className","breakAll"];function rp(){return rp=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},rp.apply(this,arguments)}function np(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 op(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(t){l=!0,o=t}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 ip(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 ip(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 ip(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 ap=/[ \f\n\r\t\v\u2028\u2029]+/,cp=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return Ge(e)||(o=r?e.toString().split(""):e.toString().split(ap)),{wordsWithComputedWidth:o.map(function(t){return{word:t,width:Rf(t,n).width}}),spaceWidth:r?0:Rf(" ",n).width}}catch(t){return null}},up=function(t){return[{words:Ge(t)?[]:t.toString().split(ap)}]},lp=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!Ls){var c=cp({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=yr(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 h,y=function(t){var e=s.slice(0,t),r=cp({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]},d=0,v=s.length-1,b=0;d<=v&&b<=s.length-1;){var m=Math.floor((d+v)/2),g=op(y(m-1),2),w=g[0],x=g[1],O=op(y(m),1)[0];if(w||O||(d=m+1),w&&O&&(v=m-1),!w&&O){h=x;break}b++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):up(n)}return up(n)},sp="#808080",fp=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,u=t.capHeight,l=void 0===u?"0.71em":u,s=t.scaleToFit,p=void 0!==s&&s,h=t.textAnchor,y=void 0===h?"start":h,d=t.verticalAnchor,v=void 0===d?"end":d,b=t.fill,m=void 0===b?sp:b,g=np(t,tp),w=f(function(){return lp({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:p,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,p,g.style,g.width]),x=g.dx,O=g.dy,S=g.angle,P=g.className,A=g.breakAll,E=np(g,ep);if(!dr(n)||!dr(i))return null;var k,T=n+(yr(x)?x:0),M=i+(yr(O)?O:0);switch(v){case"start":k=Qf("calc(".concat(l,")"));break;case"middle":k=Qf("calc(".concat((w.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:k=Qf("calc(".concat(w.length-1," * -").concat(c,")"))}var _=[];if(p){var C=w[0].width,I=g.width;_.push("scale(".concat((yr(I)?I/C:1)/C,")"))}return S&&_.push("rotate(".concat(S,", ").concat(T,", ").concat(M,")")),_.length&&(E.transform=_.join(" ")),e.createElement("text",rp({},Wr(E,!0),{x:T,y:M,className:j("recharts-text",P),textAnchor:y,fill:m.includes("url")?sp:m}),w.map(function(t,r){var n=t.words.join(A?"":" ");return e.createElement("tspan",{x:T,dy:0===r?k:c,key:"".concat(n,"-").concat(r)},n)}))};function pp(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hp(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function yp(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===hp?t:dp,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 dp(){return 0}function vp(t){return null===t?NaN:+t}const bp=yp(pp).right;yp(vp).center;class mp extends Map{constructor(t,e=wp){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(gp(this,t))}has(t){return super.has(gp(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 gp({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function wp(t){return null!==t&&"object"==typeof t?t.valueOf():t}function xp(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Op=Math.sqrt(50),jp=Math.sqrt(10),Sp=Math.sqrt(2);function Pp(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>=Op?10:i>=jp?5:i>=Sp?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?Pp(t,e,2*r):[c,u,l]}function Ap(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Pp(e,t,r):Pp(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function Ep(t,e,r){return Pp(t=+t,e=+e,r=+r)[2]}function kp(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Ep(e,t,r):Ep(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Tp(t,e){let r;for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);return r}function Mp(t,e){let r;for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);return r}function _p(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?xp:function(t=pp){if(t===pp)return xp;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);_p(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(Cp(t,r,e),o(t[n],i)>0&&Cp(t,r,n);a<c;){for(Cp(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?Cp(t,r,c):(++c,Cp(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function Cp(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Ip(t,e,r=vp){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 Dp(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Np(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 Rp=Symbol("implicit");function Bp(){var t=new mp,e=[],r=[],n=Rp;function o(o){let i=t.get(o);if(void 0===i){if(n!==Rp)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 mp;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 Bp(e,r).unknown(n)},Dp.apply(o,arguments),o}function Lp(){var t,e,r=Bp().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,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var y=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?y.reverse():y)}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 Lp(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Dp.apply(f(),arguments)}function $p(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return $p(e())},t}function zp(){return $p(Lp.apply(null,arguments).paddingInner(1))}function Fp(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Up(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function qp(){}var Wp=.7,Vp=1/Wp,Xp="\\s*([+-]?\\d+)\\s*",Hp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gp=/^#([0-9a-f]{3,8})$/,Yp=new RegExp(`^rgb\\(${Xp},${Xp},${Xp}\\)$`),Zp=new RegExp(`^rgb\\(${Kp},${Kp},${Kp}\\)$`),Jp=new RegExp(`^rgba\\(${Xp},${Xp},${Xp},${Hp}\\)$`),Qp=new RegExp(`^rgba\\(${Kp},${Kp},${Kp},${Hp}\\)$`),th=new RegExp(`^hsl\\(${Hp},${Kp},${Kp}\\)$`),eh=new RegExp(`^hsla\\(${Hp},${Kp},${Kp},${Hp}\\)$`),rh={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 nh(){return this.rgb().formatHex()}function oh(){return this.rgb().formatRgb()}function ih(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Gp.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?ah(e):3===r?new lh(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?ch(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?ch(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=Yp.exec(t))?new lh(e[1],e[2],e[3],1):(e=Zp.exec(t))?new lh(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Jp.exec(t))?ch(e[1],e[2],e[3],e[4]):(e=Qp.exec(t))?ch(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=th.exec(t))?dh(e[1],e[2]/100,e[3]/100,1):(e=eh.exec(t))?dh(e[1],e[2]/100,e[3]/100,e[4]):rh.hasOwnProperty(t)?ah(rh[t]):"transparent"===t?new lh(NaN,NaN,NaN,0):null}function ah(t){return new lh(t>>16&255,t>>8&255,255&t,1)}function ch(t,e,r,n){return n<=0&&(t=e=r=NaN),new lh(t,e,r,n)}function uh(t,e,r,n){return 1===arguments.length?((o=t)instanceof qp||(o=ih(o)),o?new lh((o=o.rgb()).r,o.g,o.b,o.opacity):new lh):new lh(t,e,r,null==n?1:n);var o}function lh(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function sh(){return`#${yh(this.r)}${yh(this.g)}${yh(this.b)}`}function fh(){const t=ph(this.opacity);return`${1===t?"rgb(":"rgba("}${hh(this.r)}, ${hh(this.g)}, ${hh(this.b)}${1===t?")":`, ${t})`}`}function ph(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function hh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function yh(t){return((t=hh(t))<16?"0":"")+t.toString(16)}function dh(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new bh(t,e,r,n)}function vh(t){if(t instanceof bh)return new bh(t.h,t.s,t.l,t.opacity);if(t instanceof qp||(t=ih(t)),!t)return new bh;if(t instanceof bh)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 bh(a,c,u,t.opacity)}function bh(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function mh(t){return(t=(t||0)%360)<0?t+360:t}function gh(t){return Math.max(0,Math.min(1,t||0))}function wh(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Fp(qp,ih,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:nh,formatHex:nh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vh(this).formatHsl()},formatRgb:oh,toString:oh}),Fp(lh,uh,Up(qp,{brighter(t){return t=null==t?Vp:Math.pow(Vp,t),new lh(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Wp:Math.pow(Wp,t),new lh(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new lh(hh(this.r),hh(this.g),hh(this.b),ph(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:sh,formatHex:sh,formatHex8:function(){return`#${yh(this.r)}${yh(this.g)}${yh(this.b)}${yh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fh,toString:fh})),Fp(bh,function(t,e,r,n){return 1===arguments.length?vh(t):new bh(t,e,r,null==n?1:n)},Up(qp,{brighter(t){return t=null==t?Vp:Math.pow(Vp,t),new bh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Wp:Math.pow(Wp,t),new bh(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 lh(wh(t>=240?t-240:t+120,o,n),wh(t,o,n),wh(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new bh(mh(this.h),gh(this.s),gh(this.l),ph(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=ph(this.opacity);return`${1===t?"hsl(":"hsla("}${mh(this.h)}, ${100*gh(this.s)}%, ${100*gh(this.l)}%${1===t?")":`, ${t})`}`}}));var xh=t=>()=>t;function Oh(t){return 1===(t=+t)?jh: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):xh(isNaN(e)?r:e)}}function jh(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):xh(isNaN(t)?e:t)}var Sh=function t(e){var r=Oh(e);function n(t,e){var n=r((t=uh(t)).r,(e=uh(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=jh(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 Ph(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 Ah(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]=Ih(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 Eh(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function kh(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Th(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]=Ih(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Mh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_h=new RegExp(Mh.source,"g");function Ch(t,e){var r,n,o,i=Mh.lastIndex=_h.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=Mh.exec(t))&&(n=_h.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:kh(r,n)})),i=_h.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 Ih(t,e){var r,n=typeof e;return null==e||"boolean"===n?xh(e):("number"===n?kh:"string"===n?(r=ih(e))?(e=r,Sh):Ch:e instanceof ih?Sh:e instanceof Date?Eh:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Ph:Array.isArray(e)?Ah:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Th:kh)(t,e)}function Dh(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Nh(t,e){void 0===e&&(e=t,t=Ih);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)}}function Rh(t){return+t}var Bh=[0,1];function Lh(t){return t}function $h(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function zh(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=$h(o,n),i=r(a,i)):(n=$h(n,o),i=r(i,a)),function(t){return i(n(t))}}function Fh(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]=$h(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=bp(t,e,1,n)-1;return i[r](o[r](e))}}function Uh(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function qh(){var t,e,r,n,o,i,a=Bh,c=Bh,u=Ih,l=Lh;function s(){var t=Math.min(a.length,c.length);return l!==Lh&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?Fh:zh,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),kh)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Rh),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=Dh,s()},f.clamp=function(t){return arguments.length?(l=!!t||Lh,s()):l!==Lh},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 Wh(){return qh()(Lh,Lh)}function Vh(t,e){if(!isFinite(t)||0===t)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Xh(t){return(t=Vh(Math.abs(t)))?t[1]:NaN}var Hh,Kh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gh(t){if(!(e=Kh.exec(t)))throw new Error("invalid format: "+t);var e;return new Yh({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 Yh(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 Zh(t,e){var r=Vh(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")}Gh.prototype=Yh.prototype,Yh.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};var Jh={"%":(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)=>Zh(100*t,e),r:Zh,s:function(t,e){var r=Vh(t,e);if(!r)return Hh=void 0,t.toPrecision(e);var n=r[0],o=r[1],i=o-(Hh=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>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Vh(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Qh(t){return t}var ty,ey,ry,ny=Array.prototype.map,oy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function iy(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Qh:(e=ny.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?Qh:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(ny.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,e){var r=(t=Gh(t)).fill,f=t.align,p=t.sign,h=t.symbol,y=t.zero,d=t.width,v=t.comma,b=t.precision,m=t.trim,g=t.type;"n"===g?(v=!0,g="g"):Jh[g]||(void 0===b&&(b=12),m=!0,g="g"),(y||"0"===r&&"="===f)&&(y=!0,r="0",f="=");var w=(e&&void 0!==e.prefix?e.prefix:"")+("$"===h?o:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),x=("$"===h?i:/[%p]/.test(g)?u:"")+(e&&void 0!==e.suffix?e.suffix:""),O=Jh[g],j=/[defgprs%]/.test(g);function S(t){var e,o,i,u=w,h=x;if("c"===g)h=O(t)+h,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),b),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&&"+"!==p&&(S=!1),u=(S?"("===p?p:l:"-"===p||"("===p?"":p)+u,h=("s"!==g||isNaN(t)||void 0===Hh?"":oy[8+Hh/3])+h+(S&&"("===p?")":""),j)for(e=-1,o=t.length;++e<o;)if(48>(i=t.charCodeAt(e))||i>57){h=(46===i?a+t.slice(e+1):t.slice(e))+h,t=t.slice(0,e);break}}v&&!y&&(t=n(t,1/0));var P=u.length+t.length+h.length,A=P<d?new Array(d-P+1).join(r):"";switch(v&&y&&(t=n(A+t,A.length?d-h.length:1/0),A=""),f){case"<":t=u+t+h+A;break;case"=":t=u+A+t+h;break;case"^":t=A.slice(0,P=A.length>>1)+u+t+h+A.slice(P);break;default:t=A+u+t+h}return c(t)}return b=void 0===b?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=3*Math.max(-8,Math.min(8,Math.floor(Xh(e)/3))),n=Math.pow(10,-r),o=f(((t=Gh(t)).type="f",t),{suffix:oy[8+r/3]});return function(t){return o(n*t)}}}}function ay(t,e,r,n){var o,i=kp(t,e,r);switch((n=Gh(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(Xh(e)/3)))-Xh(Math.abs(t)))}(i,a))||(n.precision=o),ry(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,Xh(e)-Xh(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,-Xh(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return ey(n)}function cy(t){var e=t.domain;return t.ticks=function(t){var r=e();return Ap(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return ay(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=Ep(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 uy(){var t=Wh();return t.copy=function(){return Uh(t,uy())},Dp.apply(t,arguments),cy(t)}function ly(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 sy(t){return Math.log(t)}function fy(t){return Math.exp(t)}function py(t){return-Math.log(-t)}function hy(t){return-Math.exp(-t)}function yy(t){return isFinite(t)?+("1e"+t):t<0?0:t}function dy(t){return(e,r)=>-t(-e,r)}function vy(t){const e=t(sy,fy),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?yy:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=dy(n),o=dy(o),t(py,hy)):t(sy,fy),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 h=null==t?10:+t;let y=[];if(!(i%1)&&p-f<h){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;y.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;y.push(s)}2*y.length<h&&(y=Ap(a,c,h))}else y=Ap(f,p,Math.min(p-f,h)).map(o);return u?y.reverse():y},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Gh(r)).precision||(r.trim=!0),r=ey(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(ly(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function by(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function my(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function gy(t){var e=1,r=t(by(e),my(e));return r.constant=function(r){return arguments.length?t(by(e=+r),my(e)):e},cy(r)}function wy(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function xy(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Oy(t){return t<0?-t*t:t*t}function jy(t){var e=t(Lh,Lh),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Lh,Lh):.5===r?t(xy,Oy):t(wy(r),wy(1/r)):r},cy(e)}function Sy(){var t=jy(qh());return t.copy=function(){return Uh(t,Sy()).exponent(t.exponent())},Dp.apply(t,arguments),t}function Py(t){return Math.sign(t)*t*t}ty=iy({thousands:",",grouping:[3],currency:["$",""]}),ey=ty.format,ry=ty.formatPrefix;const Ay=new Date,Ey=new Date;function ky(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=>ky(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)=>(Ay.setTime(+e),Ey.setTime(+n),t(Ay),t(Ey),Math.floor(r(Ay,Ey))),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 Ty=ky(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ty.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ky(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Ty:null),Ty.range;const My=1e3,_y=6e4,Cy=36e5,Iy=864e5,Dy=6048e5,Ny=2592e6,Ry=31536e6,By=ky(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*My)},(t,e)=>(e-t)/My,t=>t.getUTCSeconds());By.range;const Ly=ky(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*My)},(t,e)=>{t.setTime(+t+e*_y)},(t,e)=>(e-t)/_y,t=>t.getMinutes());Ly.range;const $y=ky(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*_y)},(t,e)=>(e-t)/_y,t=>t.getUTCMinutes());$y.range;const zy=ky(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*My-t.getMinutes()*_y)},(t,e)=>{t.setTime(+t+e*Cy)},(t,e)=>(e-t)/Cy,t=>t.getHours());zy.range;const Fy=ky(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Cy)},(t,e)=>(e-t)/Cy,t=>t.getUTCHours());Fy.range;const Uy=ky(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_y)/Iy,t=>t.getDate()-1);Uy.range;const qy=ky(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Iy,t=>t.getUTCDate()-1);qy.range;const Wy=ky(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Iy,t=>Math.floor(t/Iy));function Vy(t){return ky(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())*_y)/Dy)}Wy.range;const Xy=Vy(0),Hy=Vy(1),Ky=Vy(2),Gy=Vy(3),Yy=Vy(4),Zy=Vy(5),Jy=Vy(6);function Qy(t){return ky(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)/Dy)}Xy.range,Hy.range,Ky.range,Gy.range,Yy.range,Zy.range,Jy.range;const td=Qy(0),ed=Qy(1),rd=Qy(2),nd=Qy(3),od=Qy(4),id=Qy(5),ad=Qy(6);td.range,ed.range,rd.range,nd.range,od.range,id.range,ad.range;const cd=ky(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());cd.range;const ud=ky(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());ud.range;const ld=ky(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());ld.every=t=>isFinite(t=Math.floor(t))&&t>0?ky(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,ld.range;const sd=ky(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 fd(t,e,r,n,o,i){const a=[[By,1,My],[By,5,5e3],[By,15,15e3],[By,30,3e4],[i,1,_y],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Cy],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Iy],[n,2,1728e5],[r,1,Dy],[e,1,Ny],[e,3,7776e6],[t,1,Ry]];function c(e,r,n){const o=Math.abs(r-e)/n,i=yp(([,,t])=>t).right(a,o);if(i===a.length)return t.every(kp(e/Ry,r/Ry,n));if(0===i)return Ty.every(Math.max(kp(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]}sd.every=t=>isFinite(t=Math.floor(t))&&t>0?ky(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,sd.range;const[pd,hd]=fd(sd,ud,td,Wy,Fy,$y),[yd,dd]=fd(ld,cd,Xy,Uy,zy,Ly);function vd(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 bd(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 md(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var gd,wd,xd,Od={"-":"",_:" ",0:"0"},jd=/^\s*\d+/,Sd=/^%/,Pd=/[\\^$*+?|[\]().{}]/g;function Ad(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 Ed(t){return t.replace(Pd,"\\$&")}function kd(t){return new RegExp("^(?:"+t.map(Ed).join("|")+")","i")}function Td(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Md(t,e,r){var n=jd.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function _d(t,e,r){var n=jd.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Cd(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Id(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Dd(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Nd(t,e,r){var n=jd.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Rd(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Bd(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 Ld(t,e,r){var n=jd.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function $d(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function zd(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Fd(t,e,r){var n=jd.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Ud(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function qd(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Wd(t,e,r){var n=jd.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Vd(t,e,r){var n=jd.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Xd(t,e,r){var n=jd.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Hd(t,e,r){var n=Sd.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Kd(t,e,r){var n=jd.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Gd(t,e,r){var n=jd.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Yd(t,e){return Ad(t.getDate(),e,2)}function Zd(t,e){return Ad(t.getHours(),e,2)}function Jd(t,e){return Ad(t.getHours()%12||12,e,2)}function Qd(t,e){return Ad(1+Uy.count(ld(t),t),e,3)}function tv(t,e){return Ad(t.getMilliseconds(),e,3)}function ev(t,e){return tv(t,e)+"000"}function rv(t,e){return Ad(t.getMonth()+1,e,2)}function nv(t,e){return Ad(t.getMinutes(),e,2)}function ov(t,e){return Ad(t.getSeconds(),e,2)}function iv(t){var e=t.getDay();return 0===e?7:e}function av(t,e){return Ad(Xy.count(ld(t)-1,t),e,2)}function cv(t){var e=t.getDay();return e>=4||0===e?Yy(t):Yy.ceil(t)}function uv(t,e){return t=cv(t),Ad(Yy.count(ld(t),t)+(4===ld(t).getDay()),e,2)}function lv(t){return t.getDay()}function sv(t,e){return Ad(Hy.count(ld(t)-1,t),e,2)}function fv(t,e){return Ad(t.getFullYear()%100,e,2)}function pv(t,e){return Ad((t=cv(t)).getFullYear()%100,e,2)}function hv(t,e){return Ad(t.getFullYear()%1e4,e,4)}function yv(t,e){var r=t.getDay();return Ad((t=r>=4||0===r?Yy(t):Yy.ceil(t)).getFullYear()%1e4,e,4)}function dv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ad(e/60|0,"0",2)+Ad(e%60,"0",2)}function vv(t,e){return Ad(t.getUTCDate(),e,2)}function bv(t,e){return Ad(t.getUTCHours(),e,2)}function mv(t,e){return Ad(t.getUTCHours()%12||12,e,2)}function gv(t,e){return Ad(1+qy.count(sd(t),t),e,3)}function wv(t,e){return Ad(t.getUTCMilliseconds(),e,3)}function xv(t,e){return wv(t,e)+"000"}function Ov(t,e){return Ad(t.getUTCMonth()+1,e,2)}function jv(t,e){return Ad(t.getUTCMinutes(),e,2)}function Sv(t,e){return Ad(t.getUTCSeconds(),e,2)}function Pv(t){var e=t.getUTCDay();return 0===e?7:e}function Av(t,e){return Ad(td.count(sd(t)-1,t),e,2)}function Ev(t){var e=t.getUTCDay();return e>=4||0===e?od(t):od.ceil(t)}function kv(t,e){return t=Ev(t),Ad(od.count(sd(t),t)+(4===sd(t).getUTCDay()),e,2)}function Tv(t){return t.getUTCDay()}function Mv(t,e){return Ad(ed.count(sd(t)-1,t),e,2)}function _v(t,e){return Ad(t.getUTCFullYear()%100,e,2)}function Cv(t,e){return Ad((t=Ev(t)).getUTCFullYear()%100,e,2)}function Iv(t,e){return Ad(t.getUTCFullYear()%1e4,e,4)}function Dv(t,e){var r=t.getUTCDay();return Ad((t=r>=4||0===r?od(t):od.ceil(t)).getUTCFullYear()%1e4,e,4)}function Nv(){return"+0000"}function Rv(){return"%"}function Bv(t){return+t}function Lv(t){return Math.floor(+t/1e3)}function $v(t){return new Date(t)}function zv(t){return t instanceof Date?+t:+new Date(+t)}function Fv(t,e,r,n,o,i,a,c,u,l){var s=Wh(),f=s.invert,p=s.domain,h=l(".%L"),y=l(":%S"),d=l("%I:%M"),v=l("%I %p"),b=l("%a %d"),m=l("%b %d"),g=l("%B"),w=l("%Y");function x(t){return(u(t)<t?h:c(t)<t?y:a(t)<t?d:i(t)<t?v:n(t)<t?o(t)<t?b:m:r(t)<t?g:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,zv)):p().map($v)},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?x: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(ly(r,t)):s},s.copy=function(){return Uh(s,Fv(t,e,r,n,o,i,a,c,u,l))},s}function Uv(){var t,e,r,n,o,i=0,a=1,c=Lh,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(Ih),l.rangeRound=s(Dh),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 qv(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Wv(){var t=jy(Uv());return t.copy=function(){return qv(t,Wv()).exponent(t.exponent())},Np.apply(t,arguments)}function Vv(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=Lh,p=!1;function h(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 y(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=Nh(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.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,h):[c,u,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=y(Ih),h.rangeRound=y(Dh),h.unknown=function(t){return arguments.length?(a=t,h):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,h}}function Xv(){var t=jy(Vv());return t.copy=function(){return qv(t,Xv()).exponent(t.exponent())},Np.apply(t,arguments)}!function(t){gd=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=kd(o),s=Td(o),f=kd(i),p=Td(i),h=kd(a),y=Td(a),d=kd(c),v=Td(c),b=kd(u),m=Td(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:Yd,e:Yd,f:ev,g:pv,G:yv,H:Zd,I:Jd,j:Qd,L:tv,m:rv,M:nv,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Bv,s:Lv,S:ov,u:iv,U:av,V:uv,w:lv,W:sv,x:null,X:null,y:fv,Y:hv,Z:dv,"%":Rv},w={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:vv,e:vv,f:xv,g:Cv,G:Dv,H:bv,I:mv,j:gv,L:wv,m:Ov,M:jv,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Bv,s:Lv,S:Sv,u:Pv,U:Av,V:kv,w:Tv,W:Mv,x:null,X:null,y:_v,Y:Iv,Z:Nv,"%":Rv},x={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=y.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=b.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=d.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:zd,e:zd,f:Xd,g:Rd,G:Nd,H:Ud,I:Ud,j:Fd,L:Vd,m:$d,M:qd,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:Ld,Q:Kd,s:Gd,S:Wd,u:_d,U:Cd,V:Id,w:Md,W:Dd,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:Rd,Y:Nd,Z:Bd,"%":Hd};function O(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=Od[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 j(t,e){return function(r){var n,o,i=md(1900,void 0,1);if(S(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("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=bd(md(i.y,0,1))).getUTCDay(),n=o>4||0===o?ed.ceil(n):ed(n),n=qy.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=vd(md(i.y,0,1))).getDay(),n=o>4||0===o?Hy.ceil(n):Hy(n),n=Uy.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?bd(md(i.y,0,1)).getUTCDay():vd(md(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,bd(i)):vd(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=x[o in Od?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=O(r,g),g.X=O(n,g),g.c=O(e,g),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}(t),wd=gd.format,gd.parse,xd=gd.utcFormat,gd.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"]});var Hv=Object.freeze({__proto__:null,scaleBand:Lp,scaleDiverging:function t(){var e=cy(Vv()(Lh));return e.copy=function(){return qv(e,t())},Np.apply(e,arguments)},scaleDivergingLog:function t(){var e=vy(Vv()).domain([.1,1,10]);return e.copy=function(){return qv(e,t()).base(e.base())},Np.apply(e,arguments)},scaleDivergingPow:Xv,scaleDivergingSqrt:function(){return Xv.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=gy(Vv());return e.copy=function(){return qv(e,t()).constant(e.constant())},Np.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,Rh),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,Rh):[0,1],cy(n)},scaleImplicit:Rp,scaleLinear:uy,scaleLog:function t(){const e=vy(qh()).domain([1,10]);return e.copy=()=>Uh(e,t()).base(e.base()),Dp.apply(e,arguments),e},scaleOrdinal:Bp,scalePoint:zp,scalePow:Sy,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]=Ip(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[bp(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)},Dp.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[bp(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)},Dp.apply(cy(c),arguments)},scaleRadial:function t(){var e,r=Wh(),n=[0,1],o=!1;function 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(Py(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,Rh)).map(Py)),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)},Dp.apply(i,arguments),cy(i)},scaleSequential:function t(){var e=cy(Uv()(Lh));return e.copy=function(){return qv(e,t())},Np.apply(e,arguments)},scaleSequentialLog:function t(){var e=vy(Uv()).domain([1,10]);return e.copy=function(){return qv(e,t()).base(e.base())},Np.apply(e,arguments)},scaleSequentialPow:Wv,scaleSequentialQuantile:function t(){var e=[],r=Lh;function n(t){if(null!=t&&!isNaN(t=+t))return r((bp(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 Mp(t);if(e>=1)return Tp(t);var r,n=(r-1)*e,o=Math.floor(n),i=Tp(_p(t,o).subarray(0,o+1));return i+(Mp(t.subarray(o+1))-i)*(n-o)}}(e,n/t))},n.copy=function(){return t(r).domain(e)},Np.apply(n,arguments)},scaleSequentialSqrt:function(){return Wv.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=gy(Uv());return e.copy=function(){return qv(e,t()).constant(e.constant())},Np.apply(e,arguments)},scaleSqrt:function(){return Sy.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=gy(qh());return e.copy=function(){return Uh(e,t()).constant(e.constant())},Dp.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[bp(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)},Dp.apply(i,arguments)},scaleTime:function(){return Dp.apply(Fv(yd,dd,ld,cd,Xy,Uy,zy,Ly,By,wd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Dp.apply(Fv(pd,hd,sd,ud,td,qy,Fy,$y,By,xd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:ay}),Kv=W;var Gv=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&&!Kv(a):r(a,c)))var c=a,u=i}return u};var Yv=function(t,e){return t>e},Zv=Gv,Jv=Yv,Qv=du;var tb=function(t){return t&&t.length?Zv(t,Qv,Jv):void 0},eb=m(tb);var rb=function(t,e){return t<e},nb=Gv,ob=rb,ib=du;var ab=function(t){return t&&t.length?nb(t,ib,ob):void 0},cb=m(ab),ub=Ee,lb=ku,sb=El,fb=S;var pb=ml,hb=function(t,e){return(fb(t)?ub:sb)(t,lb(e))};var yb=m(function(t,e){return pb(hb(t,e),1)}),db=Rc;var vb,bb=m(function(t,e){return db(t,e)}),mb=1e9,gb=!0,wb="[DecimalError] ",xb=wb+"Invalid argument: ",Ob=wb+"Exponent out of range: ",jb=Math.floor,Sb=Math.pow,Pb=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ab=1e7,Eb=9007199254740991,kb=jb(1286742750677284.5),Tb={};function Mb(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)),gb?zb(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;)r=(u[--i]=u[i]+l[i]+r)/Ab|0,u[i]%=Ab;for(r&&(u.unshift(r),++o),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=o,gb?zb(e,f):e}function _b(t,e,r){if(t!==~~t||t<e||t>r)throw Error(xb+t)}function Cb(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+=Bb(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=Bb(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Tb.absoluteValue=Tb.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Tb.comparedTo=Tb.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},Tb.decimalPlaces=Tb.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},Tb.dividedBy=Tb.div=function(t){return Ib(this,new this.constructor(t))},Tb.dividedToIntegerBy=Tb.idiv=function(t){var e=this.constructor;return zb(Ib(this,new e(t),0,1),e.precision)},Tb.equals=Tb.eq=function(t){return!this.cmp(t)},Tb.exponent=function(){return Nb(this)},Tb.greaterThan=Tb.gt=function(t){return this.cmp(t)>0},Tb.greaterThanOrEqualTo=Tb.gte=function(t){return this.cmp(t)>=0},Tb.isInteger=Tb.isint=function(){return this.e>this.d.length-2},Tb.isNegative=Tb.isneg=function(){return this.s<0},Tb.isPositive=Tb.ispos=function(){return this.s>0},Tb.isZero=function(){return 0===this.s},Tb.lessThan=Tb.lt=function(t){return this.cmp(t)<0},Tb.lessThanOrEqualTo=Tb.lte=function(t){return this.cmp(t)<1},Tb.logarithm=Tb.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(vb))throw Error(wb+"NaN");if(r.s<1)throw Error(wb+(r.s?"NaN":"-Infinity"));return r.eq(vb)?new n(0):(gb=!1,e=Ib(Lb(r,i),Lb(t,i),i),gb=!0,zb(e,o))},Tb.minus=Tb.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Fb(e,t):Mb(e,(t.s=-t.s,t))},Tb.modulo=Tb.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(wb+"NaN");return r.s?(gb=!1,e=Ib(r,t,0,1).times(t),gb=!0,r.minus(e)):zb(new n(r),o)},Tb.naturalExponential=Tb.exp=function(){return Db(this)},Tb.naturalLogarithm=Tb.ln=function(){return Lb(this)},Tb.negated=Tb.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Tb.plus=Tb.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Mb(e,t):Fb(e,(t.s=-t.s,t))},Tb.precision=Tb.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(xb+t);if(e=Nb(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},Tb.squareRoot=Tb.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(wb+"NaN")}for(t=Nb(c),gb=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=Cb(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=jb((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(Ib(c,i,a+2)).times(.5),Cb(i.d).slice(0,a)===(e=Cb(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(zb(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return gb=!0,zb(n,r)},Tb.times=Tb.mul=function(t){var e,r,n,o,i,a,c,u,l,s=this,f=s.constructor,p=s.d,h=(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=h.length)&&(i=p,p=h,h=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]+h[n]*p[o-n-1]+e,i[o--]=c%Ab|0,e=c/Ab|0;i[o]=(i[o]+e)%Ab|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,gb?zb(t,f.precision):t},Tb.toDecimalPlaces=Tb.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(_b(t,0,mb),void 0===e?e=n.rounding:_b(e,0,8),zb(r,t+Nb(r)+1,e))},Tb.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=Ub(n,!0):(_b(t,0,mb),void 0===e?e=o.rounding:_b(e,0,8),r=Ub(n=zb(new o(n),t+1,e),!0,t+1)),r},Tb.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?Ub(o):(_b(t,0,mb),void 0===e?e=i.rounding:_b(e,0,8),r=Ub((n=zb(new i(o),t+Nb(o)+1,e)).abs(),!1,t+Nb(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},Tb.toInteger=Tb.toint=function(){var t=this,e=t.constructor;return zb(new e(t),Nb(t)+1,e.rounding)},Tb.toNumber=function(){return+this},Tb.toPower=Tb.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(vb);if(!(c=new u(c)).s){if(t.s<1)throw Error(wb+"Infinity");return c}if(c.eq(vb))return c;if(n=u.precision,t.eq(vb))return zb(c,n);if(a=(e=t.e)>=(r=t.d.length-1),i=c.s,a){if((r=l<0?-l:l)<=Eb){for(o=new u(vb),e=Math.ceil(n/7+4),gb=!1;r%2&&qb((o=o.times(c)).d,e),0!==(r=jb(r/2));)qb((c=c.times(c)).d,e);return gb=!0,t.s<0?new u(vb).div(o):zb(o,n)}}else if(i<0)throw Error(wb+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,gb=!1,o=t.times(Lb(c,n+12)),gb=!0,(o=Db(o)).s=i,o},Tb.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=Ub(o,(r=Nb(o))<=i.toExpNeg||r>=i.toExpPos):(_b(t,1,mb),void 0===e?e=i.rounding:_b(e,0,8),n=Ub(o=zb(new i(o),t,e),t<=(r=Nb(o))||r<=i.toExpNeg,t)),n},Tb.toSignificantDigits=Tb.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(_b(t,1,mb),void 0===e?e=r.rounding:_b(e,0,8)),zb(new r(this),t,e)},Tb.toString=Tb.valueOf=Tb.val=Tb.toJSON=Tb[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Nb(t),r=t.constructor;return Ub(t,e<=r.toExpNeg||e>=r.toExpPos)};var Ib=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%Ab|0,n=r/Ab|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*Ab+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,h,y,d,v,b,m,g,w,x,O,j,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(wb+"Division by zero");for(u=n.e-o.e,j=k.length,x=E.length,y=(h=new P(A)).d=[],l=0;k[l]==(E[l]||0);)++l;if(k[l]>(E[l]||0)&&--u,(m=null==i?i=P.precision:a?i+(Nb(n)-Nb(o))+1:i)<0)return new P(0);if(m=m/7+2|0,l=0,1==j)for(s=0,k=k[0],m++;(l<x||s)&&m--;l++)g=s*Ab+(E[l]||0),y[l]=g/k|0,s=g%k|0;else{for((s=Ab/(k[0]+1)|0)>1&&(k=t(k,s),E=t(E,s),j=k.length,x=E.length),w=j,v=(d=E.slice(0,j)).length;v<j;)d[v++]=0;(S=k.slice()).unshift(0),O=k[0],k[1]>=Ab/2&&++O;do{s=0,(c=e(k,d,j,v))<0?(b=d[0],j!=v&&(b=b*Ab+(d[1]||0)),(s=b/O|0)>1?(s>=Ab&&(s=Ab-1),1==(c=e(f=t(k,s),d,p=f.length,v=d.length))&&(s--,r(f,j<p?S:k,p))):(0==s&&(c=s=1),f=k.slice()),(p=f.length)<v&&f.unshift(0),r(d,f,v),-1==c&&(c=e(k,d,j,v=d.length))<1&&(s++,r(d,j<v?S:k,v)),v=d.length):0===c&&(s++,d=[0]),y[l++]=s,c&&d[0]?d[v++]=E[w]||0:(d=[E[w]],v=1)}while((w++<x||void 0!==d[0])&&m--)}return y[0]||y.shift(),h.e=u,zb(h,a?i+Nb(h)+1:i)}}();function Db(t,e){var r,n,o,i,a,c=0,u=0,l=t.constructor,s=l.precision;if(Nb(t)>16)throw Error(Ob+Nb(t));if(!t.s)return new l(vb);for(gb=!1,a=s,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(Sb(2,u))/Math.LN10*2+5|0,r=n=o=new l(vb),l.precision=a;;){if(n=zb(n.times(t),a),r=r.times(++c),Cb((i=o.plus(Ib(n,r,a))).d).slice(0,a)===Cb(o.d).slice(0,a)){for(;u--;)o=zb(o.times(o),a);return l.precision=s,null==e?(gb=!0,zb(o,s)):o}o=i}}function Nb(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function Rb(t,e,r){if(e>t.LN10.sd())throw gb=!0,r&&(t.precision=r),Error(wb+"LN10 precision limit exceeded");return zb(new t(t.LN10),e)}function Bb(t){for(var e="";t--;)e+="0";return e}function Lb(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,h=p.d,y=p.constructor,d=y.precision;if(p.s<1)throw Error(wb+(p.s?"NaN":"-Infinity"));if(p.eq(vb))return new y(0);if(null==e?(gb=!1,l=d):l=e,p.eq(10))return null==e&&(gb=!0),Rb(y,l);if(l+=10,y.precision=l,n=(r=Cb(h)).charAt(0),i=Nb(p),!(Math.abs(i)<15e14))return u=Rb(y,l+2,d).times(i+""),p=Lb(new y(n+"."+r.slice(1)),l-10).plus(u),y.precision=d,null==e?(gb=!0,zb(p,d)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Cb((p=p.times(t)).d)).charAt(0),f++;for(i=Nb(p),n>1?(p=new y("0."+r),i++):p=new y(n+"."+r.slice(1)),c=a=p=Ib(p.minus(vb),p.plus(vb),l),s=zb(p.times(p),l),o=3;;){if(a=zb(a.times(s),l),Cb((u=c.plus(Ib(a,new y(o),l))).d).slice(0,l)===Cb(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(Rb(y,l+2,d).times(i+""))),c=Ib(c,new y(f),l),y.precision=d,null==e?(gb=!0,zb(c,d)):c;c=u,o+=2}}function $b(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=jb(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),gb&&(t.e>kb||t.e<-kb))throw Error(Ob+r)}else t.s=0,t.e=0,t.d=[0];return t}function zb(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=Sb(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/Sb(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=Nb(t),f.length=1,e=e-i-1,f[0]=Sb(10,(7-e%7)%7),t.e=jb(-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=Sb(10,7-n),f[s]=o>0?(l/Sb(10,a-o)%Sb(10,o)|0)*i:0),u)for(;;){if(0==s){(f[0]+=i)==Ab&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=Ab)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(gb&&(t.e>kb||t.e<-kb))throw Error(Ob+Nb(t));return t}function Fb(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),gb?zb(e,h):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(h/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]=Ab-1;--u[i],u[o]+=Ab}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,gb?zb(e,h):e):new p(0)}function Ub(t,e,r){var n,o=Nb(t),i=Cb(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Bb(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Bb(-o-1)+i,r&&(n=r-a)>0&&(i+=Bb(n))):o>=a?(i+=Bb(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Bb(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Bb(n))),t.s<0?"-"+i:i}function qb(t,e){if(t.length>e)return t.length=e,!0}function Wb(t){if(!t||"object"!=typeof t)throw Error(wb+"Object expected");var e,r,n,o=["precision",1,mb,"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(!(jb(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(xb+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(xb+r+": "+n);this[r]=new this(n)}return this}var Vb=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(xb+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])):$b(e,t.toString())}if("string"!=typeof t)throw Error(xb+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Pb.test(t))throw Error(xb+t);$b(e,t)}if(i.prototype=Tb,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=Wb,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"});vb=new Vb(1);var Xb=Vb;function Hb(t){return function(t){if(Array.isArray(t))return Kb(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 Kb(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 Kb(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 Kb(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 Gb=function(t){return t},Yb={},Zb=function(t){return t===Yb},Jb=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Zb(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},Qb=function t(e,r){return 1===e?r:Jb(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!==Yb}).length;return a>=e?r.apply(void 0,o):t(e-a,Jb(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 Zb(t)?e.shift():t});return r.apply(void 0,Hb(i).concat(e))}))})},tm=function(t){return Qb(t.length,t)},em=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},rm=tm(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)}),nm=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},om=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))}};var im=tm(function(t,e,r){var n=+t;return n+r*(+e-n)}),am=tm(function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)}),cm=tm(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}),um={rangeStep:function(t,e,r){for(var n=new Xb(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 Xb(t).abs().log(10).toNumber())+1},interpolateNumber:im,uninterpolateNumber:am,uninterpolateTruncation:cm};function lm(t){return function(t){if(Array.isArray(t))return pm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||fm(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 sm(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(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||fm(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 fm(t,e){if(t){if("string"==typeof t)return pm(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)?pm(t,e):void 0}}function pm(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 hm(t){var e=sm(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function ym(t,e,r){if(t.lte(0))return new Xb(0);var n=um.getDigitCount(t.toNumber()),o=new Xb(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new Xb(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new Xb(Math.ceil(c))}function dm(t,e,r){var n=1,o=new Xb(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new Xb(10).pow(um.getDigitCount(t)-1),o=new Xb(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Xb(Math.floor(t)))}else 0===t?o=new Xb(Math.floor((e-1)/2)):r||(o=new Xb(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 Gb;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))}}(rm(function(t){return o.add(new Xb(t-a).mul(n)).toNumber()}),em);return c(0,e)}function vm(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 Xb(0),tickMin:new Xb(0),tickMax:new Xb(0)};var i,a=ym(new Xb(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new Xb(0):(i=new Xb(t).add(e).div(2)).sub(new Xb(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new Xb(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?vm(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 Xb(c).mul(a)),tickMax:i.add(new Xb(u).mul(a))})}var bm=om(function(t){var e=sm(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=sm(hm([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(lm(em(0,o-1).map(function(){return 1/0}))):[].concat(lm(em(0,o-1).map(function(){return-1/0})),[l]);return r>n?nm(s):s}if(u===l)return dm(u,o,i);var f=vm(u,l,a,i),p=f.step,h=f.tickMin,y=f.tickMax,d=um.rangeStep(h,y.add(new Xb(.1).mul(p)),p);return r>n?nm(d):d}),mm=om(function(t,e){var r=sm(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=sm(hm([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=ym(new Xb(u).sub(c).div(l-1),i,0),f=[].concat(lm(um.rangeStep(new Xb(c),new Xb(u).sub(new Xb(.99).mul(s)),s)),[u]);return n>o?nm(f):f}),gm="production"===process.env.NODE_ENV,wm="Invariant failed";function xm(t,e){if(gm)throw new Error(wm);var r="function"==typeof e?e():e,n=r?"".concat(wm,": ").concat(r):wm;throw new Error(n)}var Om=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function jm(t){"@babel/helpers - typeof";return jm="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},jm(t)}function Sm(){return Sm=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},Sm.apply(this,arguments)}function Pm(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(t){l=!0,o=t}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 Am(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 Am(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 Am(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 Em(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 km(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,Dm(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tm(t,e,r){return e=_m(e),function(t,e){if(e&&("object"===jm(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,Mm()?Reflect.construct(e,r||[],_m(t).constructor):e.apply(t,r))}function Mm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Mm=function(){return!!t})()}function _m(t){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_m(t)}function Cm(t,e){return Cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cm(t,e)}function Im(t,e,r){return(e=Dm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dm(t){var e=function(t,e){if("object"!=jm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=jm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==jm(e)?e:e+""}var Nm=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Tm(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&&Cm(t,e)}(t,e.Component),km(t,[{key:"render",value:function(){var t=this.props,r=t.offset,n=t.layout,o=t.width,i=t.dataKey,a=t.data,c=t.dataPointFormatter,u=t.xAxis,l=t.yAxis,s=Em(t,Om),f=Wr(s,!1);"x"===this.props.direction&&"number"!==u.type&&("production"!==process.env.NODE_ENV?xm(0,'ErrorBar requires Axis type property to be "number".'):xm());var p=a.map(function(t){var a=c(t,i),s=a.x,p=a.y,h=a.value,y=a.errorVal;if(!y)return null;var d,v,b=[];if(Array.isArray(y)){var m=Pm(y,2);d=m[0],v=m[1]}else d=v=y;if("vertical"===n){var g=u.scale,w=p+r,x=w+o,O=w-o,j=g(h-d),S=g(h+v);b.push({x1:S,y1:x,x2:S,y2:O}),b.push({x1:j,y1:w,x2:S,y2:w}),b.push({x1:j,y1:x,x2:j,y2:O})}else if("horizontal"===n){var P=l.scale,A=s+r,E=A-o,k=A+o,T=P(h-d),M=P(h+v);b.push({x1:E,y1:M,x2:k,y2:M}),b.push({x1:A,y1:T,x2:A,y2:M}),b.push({x1:E,y1:T,x2:k,y2:T})}return e.createElement(en,Sm({className:"recharts-errorBar",key:"bar-".concat(b.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},f),b.map(function(t){return e.createElement("line",Sm({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return e.createElement(en,{className:"recharts-errorBars"},p)}}])}();function Rm(t){"@babel/helpers - typeof";return Rm="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},Rm(t)}function Bm(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 Lm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bm(Object(r),!0).forEach(function(e){$m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function $m(t,e,r){var n;return n=function(t,e){if("object"!=Rm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Rm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Rm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Im(Nm,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Im(Nm,"displayName","ErrorBar");var zm=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=Fr(e,pl);if(!i)return null;var a,c=pl.defaultProps,u=void 0!==c?Lm(Lm({},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?Lm(Lm({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:u.iconType||a||"square",color:Gm(e),value:i||o,payload:n}}),Lm(Lm(Lm({},u),pl.getWithHeight(i,n)),{},{payload:a,item:i})};function Fm(t){"@babel/helpers - typeof";return Fm="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},Fm(t)}function Um(t){return function(t){if(Array.isArray(t))return qm(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 qm(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 qm(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 qm(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 Wm(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 Vm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wm(Object(r),!0).forEach(function(e){Xm(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Xm(t,e,r){var n;return n=function(t,e){if("object"!=Fm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Fm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Fm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hm(t,e,r){return Ge(t)||Ge(e)?r:dr(e)?Ke(t,e,r):rt(e)?e(t):r}function Km(t,e,r,n){var o=yb(t,function(t){return Hm(t,e)});if("number"===r){var i=o.filter(function(t){return yr(t)||parseFloat(t)});return i.length?[cb(i),eb(i)]:[1/0,-1/0]}return(n?o.filter(function(t){return!Ge(t)}):o).map(function(t){return dr(t)||t instanceof Date?t:""})}var Gm=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?Vm(Vm({},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},Ym=function(t,e,r,n,o){var i=zr(e.props.children,Nm).filter(function(t){return function(t,e,r){return!!Ge(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=Hm(e,r);if(Ge(n))return t;var o=Array.isArray(n)?[cb(n),eb(n)]:[n,n],i=a.reduce(function(t,r){var n=Hm(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},Zm=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&Ym(t,e,i,n)||Km(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},[])},Jm=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Qm=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},tg=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*pr(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!fr(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}})},eg=new WeakMap,rg=function(t,e){if("function"!=typeof e)return t;eg.has(t)||eg.set(t,new WeakMap);var r=eg.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},ng=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:Lp(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:uy(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:zp(),realScaleType:"point"}:"category"===o?{scale:Lp(),realScaleType:"band"}:{scale:uy(),realScaleType:"linear"};if(tr(n)){var c="scale".concat(In(n));return{scale:(Hv[c]||zp)(),realScaleType:Hv[c]?c:"point"}}return rt(n)?{scale:n}:{scale:zp(),realScaleType:"point"}},og=1e-4,ig=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])-og,i=Math.max(n[0],n[1])+og,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},ag={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=fr(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}No(t,e)}},none:No,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}No(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,h=0;h<c;++h){var y=t[e[h]];p+=(y[a][1]||0)-(y[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,No(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=fr(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)}}},cg=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=ag[r],i=function(){var t=Dn([]),e=Ro,r=No,n=Bo;function o(o){var i,a,c=Array.from(t.apply(this,arguments),Lo),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=Hn(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:Dn(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Dn(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?Ro:"function"==typeof t?t:Dn(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?No:t,o):r},o}().keys(n).value(function(t,e){return+Hm(t,e,0)}).order(Ro).offset(o);return i(t)},ug=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=bm(u,o,a);return t.domain([cb(l),eb(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:mm(s,o,a)}}return null};function lg(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!Ge(o[e.dataKey])){var c=xr(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Hm(o,Ge(a)?e.dataKey:a);return Ge(u)?null:e.scale(u)}var sg=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=Hm(i,e.dataKey,e.domain[a]);return Ge(c)?null:e.scale(c)-o/2+n},fg=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[cb(e.concat([t[0]]).filter(yr)),eb(e.concat([t[1]]).filter(yr))]},[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})},pg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yg=function(t,e,r){if(rt(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(yr(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(pg.test(t[0])){var o=+pg.exec(t[0])[1];n[0]=e[0]-o}else rt(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(yr(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(hg.test(t[1])){var i=+hg.exec(t[1])[1];n[1]=e[1]+i}else rt(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},dg=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=fs(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},vg=function(t,e,r){return t&&t.length?bb(t,Ke(r,"type.defaultProps.domain"))?e:t:e},bg=function(t,e){var r=t.type.defaultProps?Vm(Vm({},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 Vm(Vm({},Wr(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Gm(t),value:Hm(e,n),type:c,payload:e,chartType:u,hide:l})};function mg(t){"@babel/helpers - typeof";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},mg(t)}function gg(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 wg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gg(Object(r),!0).forEach(function(e){xg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gg(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);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}function Og(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(t){l=!0,o=t}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 jg(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 jg(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 jg(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 Sg=Math.PI/180,Pg=function(t){return 180*t/Math.PI},Ag=function(t,e,r,n){return{x:t+Math.cos(-Sg*n)*r,y:e+Math.sin(-Sg*n)*r}},Eg=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},kg=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:Pg(u),angleInRadian:u}},Tg=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)},Mg=function(t,e){var r=t.x,n=t.y,o=kg({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,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?wg(wg({},e),{},{radius:i,angle:Tg(h,e)}):null},_g=function(t){return r(t)||rt(t)||"boolean"==typeof t?"":t.className};function Cg(t){"@babel/helpers - typeof";return Cg="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},Cg(t)}var Ig=["offset"];function Dg(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 Rg(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 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 Lg(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){$g(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 $g(t,e,r){var n;return n=function(t,e){if("object"!=Cg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Cg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Cg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zg(){return zg=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},zg.apply(this,arguments)}var Fg=function(t,r,n){var o,i,a=t.position,c=t.viewBox,u=t.offset,l=t.className,s=c,f=s.cx,p=s.cy,h=s.innerRadius,y=s.outerRadius,d=s.startAngle,v=s.endAngle,b=s.clockWise,m=(h+y)/2,g=function(t,e){return pr(e-t)*Math.min(Math.abs(e-t),360)}(d,v),w=g>=0?1:-1;"insideStart"===a?(o=d+w*u,i=b):"insideEnd"===a?(o=v-w*u,i=!b):"end"===a&&(o=v+w*u,i=b),i=g<=0?i:!i;var x=Ag(f,p,m,o),O=Ag(f,p,m,o+359*(i?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(O.x,",").concat(O.y),P=Ge(t.id)?br("recharts-radial-line-"):t.id;return e.createElement("text",zg({},n,{dominantBaseline:"central",className:j("recharts-radial-bar-label",l)}),e.createElement("defs",null,e.createElement("path",{id:P,d:S})),e.createElement("textPath",{xlinkHref:"#".concat(P)},r))};function Ug(t){var n,o=t.offset,i=Lg({offset:void 0===o?5:o},Rg(t,Ig)),a=i.viewBox,c=i.position,u=i.value,l=i.children,s=i.content,f=i.className,y=void 0===f?"":f,d=i.textBreakAll;if(!a||Ge(u)&&Ge(l)&&!r(s)&&!rt(s))return null;if(r(s))return p(s,i);if(rt(s)){if(r(n=h(s,i)))return n}else n=function(t){var e=t.value,r=t.formatter,n=Ge(t.children)?e:t.children;return rt(r)?r(n):n}(i);var v=function(t){return"cx"in t&&yr(t.cx)}(a),b=Wr(i,!0);if(v&&("insideStart"===c||"insideEnd"===c||"end"===c))return Fg(i,n,b);var m=v?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=Ag(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=Ag(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(i):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",h=s>0?"start":"end",y=u>=0?1:-1,d=y*n,v=y>0?"end":"start",b=y>0?"start":"end";if("top"===o)return Lg(Lg({},{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 Lg(Lg({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var m={x:a-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return Lg(Lg({},m),r?{width:Math.max(m.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+u+d,y:c+l/2,textAnchor:b,verticalAnchor:"middle"};return Lg(Lg({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var w=r?{width:u,height:l}:{};return"insideLeft"===o?Lg({x:a+d,y:c+l/2,textAnchor:b,verticalAnchor:"middle"},w):"insideRight"===o?Lg({x:a+u-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?Lg({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},w):"insideBottom"===o?Lg({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?Lg({x:a+d,y:c+f,textAnchor:b,verticalAnchor:h},w):"insideTopRight"===o?Lg({x:a+u-d,y:c+f,textAnchor:v,verticalAnchor:h},w):"insideBottomLeft"===o?Lg({x:a+d,y:c+l-f,textAnchor:b,verticalAnchor:p},w):"insideBottomRight"===o?Lg({x:a+u-d,y:c+l-f,textAnchor:v,verticalAnchor:p},w):Z(o)&&(yr(o.x)||hr(o.x))&&(yr(o.y)||hr(o.y))?Lg({x:a+mr(o.x,u),y:c+mr(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):Lg({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(i);return e.createElement(fp,zg({className:j("recharts-label",y)},b,m,{breakAll:d}),n)}Ug.displayName="Label";var qg=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,h=t.left,y=t.width,d=t.height,v=t.clockWise,b=t.labelViewBox;if(b)return b;if(yr(y)&&yr(d)){if(yr(s)&&yr(f))return{x:s,y:f,width:y,height:d};if(yr(p)&&yr(h))return{x:p,y:h,width:y,height:d}}return yr(s)&&yr(f)?{x:s,y:f,width:0,height:0}:yr(e)&&yr(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:{}};Ug.parseViewBox=qg,Ug.renderCallByParent=function(t,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=qg(t),c=zr(i,Ug).map(function(t,e){return p(t,{viewBox:n||a,key:"label-".concat(e)})});if(!o)return c;var u=function(t,n){return t?!0===t?e.createElement(Ug,{key:"label-implicit",viewBox:n}):dr(t)?e.createElement(Ug,{key:"label-implicit",viewBox:n,value:t}):r(t)?t.type===Ug?p(t,{key:"label-implicit",viewBox:n}):e.createElement(Ug,{key:"label-implicit",content:t,viewBox:n}):rt(t)?e.createElement(Ug,{key:"label-implicit",content:t,viewBox:n}):Z(t)?e.createElement(Ug,zg({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||a);return[u].concat(Dg(c))};var Wg=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},Vg=m(Wg);function Xg(t){"@babel/helpers - typeof";return Xg="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},Xg(t)}var Hg=["valueAccessor"],Kg=["data","dataKey","clockWise","id","textBreakAll"];function Gg(t){return function(t){if(Array.isArray(t))return Yg(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 Yg(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 Yg(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 Yg(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 Zg(){return Zg=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},Zg.apply(this,arguments)}function Jg(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 Qg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jg(Object(r),!0).forEach(function(e){tw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tw(t,e,r){var n;return n=function(t,e){if("object"!=Xg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Xg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Xg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ew(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 rw=function(t){return Array.isArray(t.value)?Vg(t.value):t.value};function nw(t){var r=t.valueAccessor,n=void 0===r?rw:r,o=ew(t,Hg),i=o.data,a=o.dataKey,c=o.clockWise,u=o.id,l=o.textBreakAll,s=ew(o,Kg);return i&&i.length?e.createElement(en,{className:"recharts-label-list"},i.map(function(t,r){var o=Ge(a)?n(t,r):Hm(t&&t.payload,a),i=Ge(u)?{}:{id:"".concat(u,"-").concat(r)};return e.createElement(Ug,Zg({},Wr(t,!0),s,i,{parentViewBox:t.parentViewBox,value:o,textBreakAll:l,viewBox:Ug.parseViewBox(Ge(c)?t:Qg(Qg({},t),{},{clockWise:c})),key:"label-".concat(r),index:r}))})):null}function ow(t){"@babel/helpers - typeof";return ow="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},ow(t)}function iw(){return iw=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},iw.apply(this,arguments)}function aw(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 cw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aw(Object(r),!0).forEach(function(e){uw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function uw(t,e,r){var n;return n=function(t,e){if("object"!=ow(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ow(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ow(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}nw.displayName="LabelList",nw.renderCallByParent=function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var o=zr(t.children,nw).map(function(t,e){return p(t,{data:r,key:"labelList-".concat(e)})});return n?[function(t,r){return t?!0===t?e.createElement(nw,{key:"labelList-implicit",data:r}):e.isValidElement(t)||rt(t)?e.createElement(nw,{key:"labelList-implicit",data:r,content:t}):Z(t)?e.createElement(nw,Zg({data:r},t,{key:"labelList-implicit"})):null:null}(t.label,r)].concat(Gg(o)):o};var lw=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)/Sg,f=u?o:o+i*s,p=u?o-i*s:o;return{center:Ag(e,r,l,f),circleTangency:Ag(e,r,n,f),lineTangency:Ag(e,r,l*Math.cos(s*Sg),p),theta:s}},sw=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return pr(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=Ag(e,r,o,i),l=Ag(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=Ag(e,r,n,i),p=Ag(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},fw={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},pw=function(t){var r=cw(cw({},fw),t),n=r.cx,o=r.cy,i=r.innerRadius,a=r.outerRadius,c=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,s=r.startAngle,f=r.endAngle,p=r.className;if(a<i||s===f)return null;var h,y=j("recharts-sector",p),d=a-i,v=mr(c,d,0,!0);return h=v>0&&Math.abs(s-f)<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=pr(l-u),f=lw({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,y=f.theta,d=lw({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=d.circleTangency,b=d.lineTangency,m=d.theta,g=c?Math.abs(u-l):Math.abs(u-l)-y-m;if(g<0)return a?"M ".concat(h.x,",").concat(h.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 "):sw({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var w="M ".concat(h.x,",").concat(h.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(b.x,",").concat(b.y,"\n ");if(n>0){var x=lw({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=x.circleTangency,j=x.lineTangency,S=x.theta,P=lw({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,T=c?Math.abs(u-l):Math.abs(u-l)-S-k;if(T<0&&0===i)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="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(+(T>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(j.x,",").concat(j.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,d/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):sw({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f}),e.createElement("path",iw({},Wr(r,!0),{className:y,d:h,role:"img"}))};function hw(t){"@babel/helpers - typeof";return hw="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},hw(t)}function yw(){return yw=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},yw.apply(this,arguments)}function dw(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]:{};e%2?dw(Object(r),!0).forEach(function(e){bw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function bw(t,e,r){var n;return n=function(t,e){if("object"!=hw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=hw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==hw(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mw,gw={curveBasisClosed:function(t){return new Oo(t)},curveBasisOpen:function(t){return new jo(t)},curveBasis:function(t){return new xo(t)},curveBumpX:function(t){return new to(t,!0)},curveBumpY:function(t){return new to(t,!1)},curveLinearClosed:function(t){return new So(t)},curveLinear:Gn,curveMonotoneX:function(t){return new To(t)},curveMonotoneY:function(t){return new Mo(t)},curveNatural:function(t){return new Co(t)},curveStep:function(t){return new Do(t,.5)},curveStepAfter:function(t){return new Do(t,1)},curveStepBefore:function(t){return new Do(t,0)}},ww=function(t){return t.x===+t.x&&t.y===+t.y},xw=function(t){return t.x},Ow=function(t){return t.y},jw=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(rt(t))return t;var r="curve".concat(In(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?gw[r]||Gn:gw["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter(function(t){return ww(t)}):i;if(Array.isArray(a)){var p=l?a.filter(function(t){return ww(t)}):a,h=f.map(function(t,e){return vw(vw({},t),{},{base:p[e]})});return(e="vertical"===c?Qn().y(Ow).x1(xw).x0(function(t){return t.base.x}):Qn().x(xw).y1(Ow).y0(function(t){return t.base.y})).defined(ww).curve(s),e(h)}return(e="vertical"===c&&yr(a)?Qn().y(Ow).x1(xw).x0(a):yr(a)?Qn().x(xw).y1(Ow).y0(a):Jn().x(xw).y(Ow)).defined(ww).curve(s),e(f)},Sw=function(e){var r=e.className,n=e.points,o=e.path,i=e.pathRef;if(!(n&&n.length||o))return null;var a=n&&n.length?jw(e):o;return t.createElement("path",yw({},Wr(e,!1),Tr(e),{className:j("recharts-curve",r),d:a,ref:i}))},Pw={exports:{}},Aw={exports:{}},Ew={};var kw,Tw,Mw,_w,Cw,Iw,Dw,Nw,Rw,Bw,Lw,$w,zw,Fw,Uw={};
|
|
16
|
+
/** @license React v16.13.1
|
|
17
|
+
* react-is.development.js
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/function qw(){return Tw||(Tw=1,"production"===process.env.NODE_ENV?Aw.exports=function(){if(mw)return Ew;mw=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case u:case l:case n:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case y:case h:case a:return t;default:return p}}case r:return p}}}function w(t){return g(t)===l}return Ew.AsyncMode=u,Ew.ConcurrentMode=l,Ew.ContextConsumer=c,Ew.ContextProvider=a,Ew.Element=e,Ew.ForwardRef=s,Ew.Fragment=n,Ew.Lazy=y,Ew.Memo=h,Ew.Portal=r,Ew.Profiler=i,Ew.StrictMode=o,Ew.Suspense=f,Ew.isAsyncMode=function(t){return w(t)||g(t)===u},Ew.isConcurrentMode=w,Ew.isContextConsumer=function(t){return g(t)===c},Ew.isContextProvider=function(t){return g(t)===a},Ew.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ew.isForwardRef=function(t){return g(t)===s},Ew.isFragment=function(t){return g(t)===n},Ew.isLazy=function(t){return g(t)===y},Ew.isMemo=function(t){return g(t)===h},Ew.isPortal=function(t){return g(t)===r},Ew.isProfiler=function(t){return g(t)===i},Ew.isStrictMode=function(t){return g(t)===o},Ew.isSuspense=function(t){return g(t)===f},Ew.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===b||t.$$typeof===m||t.$$typeof===d)},Ew.typeOf=g,Ew}():Aw.exports=(kw||(kw=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var d=t.type;switch(d){case u:case l:case n:case i:case o:case f:return d;default:var v=d&&d.$$typeof;switch(v){case c:case s:case y:case h:case a:return v;default:return p}}case r:return p}}}var w=u,x=l,O=c,j=a,S=e,P=s,A=n,E=y,k=h,T=r,M=i,_=o,C=f,I=!1;function D(t){return g(t)===l}Uw.AsyncMode=w,Uw.ConcurrentMode=x,Uw.ContextConsumer=O,Uw.ContextProvider=j,Uw.Element=S,Uw.ForwardRef=P,Uw.Fragment=A,Uw.Lazy=E,Uw.Memo=k,Uw.Portal=T,Uw.Profiler=M,Uw.StrictMode=_,Uw.Suspense=C,Uw.isAsyncMode=function(t){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(t)||g(t)===u},Uw.isConcurrentMode=D,Uw.isContextConsumer=function(t){return g(t)===c},Uw.isContextProvider=function(t){return g(t)===a},Uw.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Uw.isForwardRef=function(t){return g(t)===s},Uw.isFragment=function(t){return g(t)===n},Uw.isLazy=function(t){return g(t)===y},Uw.isMemo=function(t){return g(t)===h},Uw.isPortal=function(t){return g(t)===r},Uw.isProfiler=function(t){return g(t)===i},Uw.isStrictMode=function(t){return g(t)===o},Uw.isSuspense=function(t){return g(t)===f},Uw.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===b||t.$$typeof===m||t.$$typeof===d)},Uw.typeOf=g}()),Uw)),Aw.exports}
|
|
24
|
+
/*
|
|
25
|
+
object-assign
|
|
26
|
+
(c) Sindre Sorhus
|
|
27
|
+
@license MIT
|
|
28
|
+
*/function Ww(){if(_w)return Mw;_w=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return Mw=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))e.call(i,l)&&(c[l]=i[l]);if(t){a=t(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},Mw}function Vw(){if(Iw)return Cw;Iw=1;return Cw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Xw(){return Nw?Dw:(Nw=1,Dw=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Hw=qw();Pw.exports=function(){if($w)return Lw;$w=1;var t=qw(),e=Ww(),r=Vw(),n=Xw(),o=function(){if(Bw)return Rw;Bw=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Vw(),r={},n=Xw();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in o)if(n(o,l)){var s;try{if("function"!=typeof o[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=o[l](i,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},Rw=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Lw=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="<<anonymous>>",f={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:y(a),arrayOf:function(t){return y(function(e,n,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+i+" `"+a+"` of type `"+m(c)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,o,i,a+"["+u+"]",r);if(l instanceof Error)return l}return null})},element:y(function(t,e,r,n,o){var i=t[e];return c(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+m(i)+"` supplied to `"+r+"`, expected a single ReactElement.")}),elementType:y(function(e,r,n,o,i){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(t){return y(function(e,r,n,o,i){if(!(e[r]instanceof t)){var a=t.name||s;return new h("Invalid "+o+" `"+i+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:s)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null})},node:y(function(t,e,r,n,o){return b(t[e])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")}),objectOf:function(t){return y(function(e,o,i,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=e[o],l=m(u);if("object"!==l)return new h("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,i,a,c+"."+s,r);if(f instanceof Error)return f}return null})},oneOf:function(t){return Array.isArray(t)?y(function(e,r,n,o,i){for(var a=e[r],c=0;c<t.length;c++)if(p(a,t[c]))return null;var u=JSON.stringify(t,function(t,e){return"symbol"===g(e)?String(e):e});return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+e+"."),a}return y(function(e,o,i,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")})},shape:function(t){return y(function(e,n,o,i,a){var c=e[n],u=m(c);if("object"!==u)return new h("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return v(o,i,a,l,g(s));var f=s(c,l,o,i,a+"."+l,r);if(f)return f}return null})},exact:function(t){return y(function(o,i,a,c,u){var l=o[i],s=m(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},o[i],t);for(var p in f){var y=t[p];if(n(t,p)&&"function"!=typeof y)return v(a,c,u,p,g(y));if(!y)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=y(l,p,a,c,u+"."+p,r);if(d)return d}return null})}};function p(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function o(o,a,c,l,f,p,y){if(l=l||s,p=p||c,y!==r){if(u){var d=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 d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?o?null===a[c]?new h("The "+f+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+f+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,f,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function d(t){return y(function(e,r,n,o,i,a){var c=e[r];return m(c)!==t?new h("Invalid "+o+" `"+i+"` of type `"+g(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null})}function v(t,e,r,n,o){return new h((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(b);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!b(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function g(t){if(null==t)return""+t;var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function w(t){var e=g(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},Lw}()(Hw.isElement,!0)}else Pw.exports=function(){if(Fw)return zw;Fw=1;var t=Vw();function e(){}function r(){}return r.resetWarningCache=e,zw=function(){function n(e,r,n,o,i,a){if(a!==t){var c=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 c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:e};return i.PropTypes=i,i}}()();var Kw=m(Pw.exports);const{getOwnPropertyNames:Gw,getOwnPropertySymbols:Yw}=Object,{hasOwnProperty:Zw}=Object.prototype;function Jw(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function Qw(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);const{cache:o}=n,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);const c=t(e,r,n);return o.delete(e),o.delete(r),c}}function tx(t){return Gw(t).concat(Yw(t))}const ex=Object.hasOwn||((t,e)=>Zw.call(t,e));function rx(t,e){return t===e||!t&&!e&&t!=t&&e!=e}const{getOwnPropertyDescriptor:nx,keys:ox}=Object;function ix(t,e){return t.byteLength===e.byteLength&&mx(new Uint8Array(t),new Uint8Array(e))}function ax(t,e,r){let 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 cx(t,e){return t.byteLength===e.byteLength&&mx(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function ux(t,e){return rx(t.getTime(),e.getTime())}function lx(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function sx(t,e){return t===e}function fx(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const o=new Array(n),i=t.entries();let a,c,u=0;for(;(a=i.next())&&!a.done;){const n=e.entries();let i=!1,l=0;for(;(c=n.next())&&!c.done;){if(o[l]){l++;continue}const n=a.value,s=c.value;if(r.equals(n[0],s[0],u,l,t,e,r)&&r.equals(n[1],s[1],n[0],s[0],t,e,r)){i=o[l]=!0;break}l++}if(!i)return!1;u++}return!0}const px=rx;function hx(t,e,r){const n=ox(t);let o=n.length;if(ox(e).length!==o)return!1;for(;o-- >0;)if(!wx(t,e,r,n[o]))return!1;return!0}function yx(t,e,r){const n=tx(t);let o,i,a,c=n.length;if(tx(e).length!==c)return!1;for(;c-- >0;){if(o=n[c],!wx(t,e,r,o))return!1;if(i=nx(t,o),a=nx(e,o),(i||a)&&(!i||!a||i.configurable!==a.configurable||i.enumerable!==a.enumerable||i.writable!==a.writable))return!1}return!0}function dx(t,e){return rx(t.valueOf(),e.valueOf())}function vx(t,e){return t.source===e.source&&t.flags===e.flags}function bx(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const o=new Array(n),i=t.values();let a,c;for(;(a=i.next())&&!a.done;){const n=e.values();let i=!1,u=0;for(;(c=n.next())&&!c.done;){if(!o[u]&&r.equals(a.value,c.value,a.value,c.value,t,e,r)){i=o[u]=!0;break}u++}if(!i)return!1}return!0}function mx(t,e){let r=t.byteLength;if(e.byteLength!==r||t.byteOffset!==e.byteOffset)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function gx(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function wx(t,e,r,n){return!("_owner"!==n&&"__o"!==n&&"__v"!==n||!t.$$typeof&&!e.$$typeof)||ex(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}const xx={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Ox=Object.prototype.toString;function jx({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:c,areObjectsEqual:u,arePrimitiveWrappersEqual:l,areRegExpsEqual:s,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:h,unknownTagComparators:y}){return function(d,v,b){if(d===v)return!0;if(null==d||null==v)return!1;const m=typeof d;if(m!==typeof v)return!1;if("object"!==m)return"number"===m?c(d,v,b):"function"===m&&i(d,v,b);const g=d.constructor;if(g!==v.constructor)return!1;if(g===Object)return u(d,v,b);if(Array.isArray(d))return e(d,v,b);if(g===Date)return n(d,v,b);if(g===RegExp)return s(d,v,b);if(g===Map)return a(d,v,b);if(g===Set)return f(d,v,b);const w=Ox.call(d);if("[object Date]"===w)return n(d,v,b);if("[object RegExp]"===w)return s(d,v,b);if("[object Map]"===w)return a(d,v,b);if("[object Set]"===w)return f(d,v,b);if("[object Object]"===w)return"function"!=typeof d.then&&"function"!=typeof v.then&&u(d,v,b);if("[object URL]"===w)return h(d,v,b);if("[object Error]"===w)return o(d,v,b);if("[object Arguments]"===w)return u(d,v,b);if(xx[w])return p(d,v,b);if("[object ArrayBuffer]"===w)return t(d,v,b);if("[object DataView]"===w)return r(d,v,b);if("[object Boolean]"===w||"[object Number]"===w||"[object String]"===w)return l(d,v,b);if(y){let t=y[w];if(!t){const e=null!=(x=d)?x[Symbol.toStringTag]:void 0;e&&(t=y[e])}if(t)return t(d,v,b)}var x;return!1}}const Sx=Px();function Px(t={}){const{circular:e=!1,createInternalComparator:r,createState:n,strict:o=!1}=t,i=function({circular:t,createCustomConfig:e,strict:r}){let n={areArrayBuffersEqual:ix,areArraysEqual:r?yx:ax,areDataViewsEqual:cx,areDatesEqual:ux,areErrorsEqual:lx,areFunctionsEqual:sx,areMapsEqual:r?Jw(fx,yx):fx,areNumbersEqual:px,areObjectsEqual:r?yx:hx,arePrimitiveWrappersEqual:dx,areRegExpsEqual:vx,areSetsEqual:r?Jw(bx,yx):bx,areTypedArraysEqual:r?Jw(mx,yx):mx,areUrlsEqual:gx,unknownTagComparators:void 0};if(e&&(n=Object.assign({},n,e(n))),t){const t=Qw(n.areArraysEqual),e=Qw(n.areMapsEqual),r=Qw(n.areObjectsEqual),o=Qw(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:t,areMapsEqual:e,areObjectsEqual:r,areSetsEqual:o})}return n}(t),a=jx(i),c=r?r(a):(u=a,function(t,e,r,n,o,i,a){return u(t,e,a)});var u;return function({circular:t,comparator:e,createState:r,equals:n,strict:o}){if(r)return function(i,a){const{cache:c=(t?new WeakMap:void 0),meta:u}=r();return e(i,a,{cache:c,equals:n,meta:u,strict:o})};if(t)return function(t,r){return e(t,r,{cache:new WeakMap,equals:n,meta:void 0,strict:o})};const i={cache:void 0,equals:n,meta:void 0,strict:o};return function(t,r){return e(t,r,i)}}({circular:e,comparator:a,createState:n,equals:c,strict:o})}function Ax(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 Ex(t){"@babel/helpers - typeof";return Ex="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},Ex(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 Tx(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 Tx(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tx(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 Mx(){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 Ax(r.bind(null,a),i):(r(i),void Ax(r.bind(null,a)))}"object"===Ex(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 _x(t){"@babel/helpers - typeof";return _x="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},_x(t)}function Cx(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 Ix(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cx(Object(r),!0).forEach(function(e){Dx(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Dx(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==_x(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==_x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_x(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Px({strict:!0}),Px({circular:!0}),Px({circular:!0,strict:!0}),Px({createInternalComparator:()=>rx}),Px({strict:!0,createInternalComparator:()=>rx}),Px({circular:!0,createInternalComparator:()=>rx}),Px({circular:!0,createInternalComparator:()=>rx,strict:!0});var Nx=function(t){return t},Rx=function(t,e){return Object.keys(e).reduce(function(r,n){return Ix(Ix({},r),{},Dx({},n,t(n,e[n])))},{})},Bx=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(",")},Lx="production"!==process.env.NODE_ENV,$x=function(t,e,r,n,o,i,a,c){if(Lx&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,c],l=0;console.warn(e.replace(/%s/g,function(){return u[l++]}))}};function zx(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(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Ux(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 Fx(t){return function(t){if(Array.isArray(t))return qx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ux(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 Ux(t,e){if(t){if("string"==typeof t)return qx(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)?qx(t,e):void 0}}function qx(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 Wx=1e-4,Vx=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Xx=function(t,e){return t.map(function(t,r){return t*Math.pow(e,r)}).reduce(function(t,e){return t+e})},Hx=function(t,e){return function(r){var n=Vx(t,e);return Xx(n,r)}},Kx=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];if(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=c[1].split(")")[0].split(",").map(function(t){return parseFloat(t)}),l=zx(u,4);n=l[0],o=l[1],i=l[2],a=l[3]}else $x(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}$x([n,i,o,a].every(function(t){return"number"==typeof t&&t>=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Hx(n,i),h=Hx(o,a),y=(s=n,f=i,function(t){var e=Vx(s,f),r=[].concat(Fx(e.map(function(t,e){return t*e}).slice(1)),[0]);return Xx(r,t)}),d=function(t){return t>1?1:t<0?0:t},v=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=p(r)-e,i=y(r);if(Math.abs(o-e)<Wx||i<Wx)return h(r);r=d(r-o/i)}return h(r)};return v.isStepper=!1,v},Gx=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 Kx(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)<Wx&&Math.abs(i)<Wx?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Kx(n);$x(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:($x(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Yx(t){"@babel/helpers - typeof";return Yx="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},Yx(t)}function Zx(t){return function(t){if(Array.isArray(t))return nO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||rO(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 Jx(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 Qx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jx(Object(r),!0).forEach(function(e){tO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tO(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Yx(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Yx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yx(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eO(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(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||rO(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 rO(t,e){if(t){if("string"==typeof t)return nO(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)?nO(t,e):void 0}}function nO(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 oO=function(t,e,r){return t+(e-t)*r},iO=function(t){return t.from!==t.to},aO=function t(e,r,n){var o=Rx(function(t,r){if(iO(r)){var n=eO(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Qx(Qx({},r),{},{from:o,velocity:i})}return r},r);return n<1?Rx(function(t,e){return iO(e)?Qx(Qx({},e),{},{velocity:oO(e.velocity,o[t].velocity,n),from:oO(e.from,o[t].from,n)}):e},r):t(e,o,n-1)},cO=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)})})),s=l.reduce(function(r,n){return Qx(Qx({},r),{},tO({},n,[t[n],e[n]]))},{}),f=l.reduce(function(r,n){return Qx(Qx({},r),{},tO({},n,{from:t[n],velocity:0,to:e[n]}))},{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=aO(r,f,i),o(Qx(Qx(Qx({},t),e),Rx(function(t,e){return e.from},f))),c=n,Object.values(f).filter(iO).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=Rx(function(t,e){return oO.apply(void 0,Zx(e).concat([r(a)]))},s);if(o(Qx(Qx(Qx({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=Rx(function(t,e){return oO.apply(void 0,Zx(e).concat([r(1)]))},s);o(Qx(Qx(Qx({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function uO(t){"@babel/helpers - typeof";return uO="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},uO(t)}var lO=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function sO(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 fO(t){return function(t){if(Array.isArray(t))return pO(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 pO(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 pO(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 pO(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 hO(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?hO(Object(r),!0).forEach(function(e){dO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function dO(t,e,r){return(e=bO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vO(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,bO(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function bO(t){var e=function(t,e){if("object"!==uO(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==uO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===uO(e)?e:String(e)}function mO(t,e){return mO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mO(t,e)}function gO(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=OO(t);if(e){var o=OO(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return wO(this,r)}}function wO(t,e){if(e&&("object"===uO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xO(t)}function xO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OO(t){return OO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},OO(t)}var jO=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&&mO(t,e)}(r,o);var t=gO(r);function r(e,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var i=(o=t.call(this,e,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(xO(o)),o.changeStyle=o.changeStyle.bind(xO(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:l}),wO(o);if(s&&s.length)o.state={style:s[0].style};else if(u){if("function"==typeof f)return o.state={style:u},wO(o);o.state={style:c?dO({},c,u):u}}else o.state={style:{}};return o}return vO(r,[{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(!(Sx(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?dO({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(yO(yO({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?dO({},o,a):a};this.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=cO(r,n,Gx(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(fO(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(fO(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=Bx(p,i,c),y=yO(yO(yO({},f.style),u),{},{transition:h});return[].concat(fO(t),[y,i,s]).filter(Nx)},[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Mx());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?dO({},n,o):o,p=Bx(Object.keys(f),r,i);s.start([a,e,yO(yO({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,r=t.children;t.begin;var o=t.duration;t.attributeName,t.easing;var i=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var a=sO(t,lO),c=n.count(r),u=this.state.style;if("function"==typeof r)return r(u);if(!i||0===c||o<=0)return r;var l=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return p(t,yO(yO({},a),{},{style:yO(yO({},n),u),className:o}))};return 1===c?l(n.only(r)):e.createElement("div",null,n.map(r,function(t){return l(t)}))}}]),r}();function SO(t){"@babel/helpers - typeof";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},SO(t)}function PO(){return PO=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},PO.apply(this,arguments)}function AO(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(t){l=!0,o=t}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 EO(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 EO(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 EO(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 kO(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 TO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kO(Object(r),!0).forEach(function(e){MO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function MO(t,e,r){var n;return n=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);if("object"!=SO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==SO(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}jO.displayName="Animate",jO.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},jO.propTypes={from:Kw.oneOfType([Kw.object,Kw.string]),to:Kw.oneOfType([Kw.object,Kw.string]),attributeName:Kw.string,duration:Kw.number,begin:Kw.number,easing:Kw.oneOfType([Kw.string,Kw.func]),steps:Kw.arrayOf(Kw.shape({duration:Kw.number.isRequired,style:Kw.object.isRequired,easing:Kw.oneOfType([Kw.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Kw.func]),properties:Kw.arrayOf("string"),onAnimationEnd:Kw.func})),children:Kw.oneOfType([Kw.node,Kw.func]),isActive:Kw.bool,canBegin:Kw.bool,onAnimationEnd:Kw.func,shouldReAnimate:Kw.bool,onAnimationStart:Kw.func,onAnimationReStart:Kw.func};var _O=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},CO=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},IO={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DO=function(t){var r=TO(TO({},IO),t),n=a(),o=AO(u(-1),2),i=o[0],c=o[1];s(function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&c(t)}catch(t){}},[]);var l=r.x,f=r.y,p=r.width,h=r.height,y=r.radius,d=r.className,v=r.animationEasing,b=r.animationDuration,m=r.animationBegin,g=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||f!==+f||p!==+p||h!==+h||0===p||0===h)return null;var x=j("recharts-rectangle",d);return w?e.createElement(jO,{canBegin:i>0,from:{width:p,height:h,x:l,y:f},to:{width:p,height:h,x:l,y:f},duration:b,animationEasing:v,isActive:w},function(t){var o=t.width,a=t.height,c=t.x,u=t.y;return e.createElement(jO,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:b,isActive:g,easing:v},e.createElement("path",PO({},Wr(r,!0),{className:x,d:_O(c,u,o,a,y),ref:n})))}):e.createElement("path",PO({},Wr(r,!0),{className:x,d:_O(l,f,p,h,y)}))},NO=["points","className","baseLinePoints","connectNulls"];function RO(){return RO=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},RO.apply(this,arguments)}function BO(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 LO(t){return function(t){if(Array.isArray(t))return $O(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 $O(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 $O(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 $O(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 zO=function(t){return t&&t.x===+t.x&&t.y===+t.y},FO=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach(function(t){zO(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])}),zO(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce(function(t,e){return[].concat(LO(t),LO(e))},[])]);var n=r.map(function(t){return t.reduce(function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)},"")}).join("");return 1===r.length?"".concat(n,"Z"):n},UO=function(t){var r=t.points,n=t.className,o=t.baseLinePoints,i=t.connectNulls,a=BO(t,NO);if(!r||!r.length)return null;var c=j("recharts-polygon",n);if(o&&o.length){var u=a.stroke&&"none"!==a.stroke,l=function(t,e,r){var n=FO(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(FO(e.reverse(),r).slice(1))}(r,o,i);return e.createElement("g",{className:c},e.createElement("path",RO({},Wr(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),u?e.createElement("path",RO({},Wr(a,!0),{fill:"none",d:FO(r,i)})):null,u?e.createElement("path",RO({},Wr(a,!0),{fill:"none",d:FO(o,i)})):null)}var s=FO(r,i);return e.createElement("path",RO({},Wr(a,!0),{fill:"Z"===s.slice(-1)?a.fill:"none",className:c,d:s}))};function qO(){return qO=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},qO.apply(this,arguments)}var WO=function(e){var r=e.cx,n=e.cy,o=e.r,i=j("recharts-dot",e.className);return r===+r&&n===+n&&o===+o?t.createElement("circle",qO({},Wr(e,!1),Tr(e),{className:i,cx:r,cy:n,r:o})):null};function VO(t){"@babel/helpers - typeof";return VO="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},VO(t)}var XO=["x","y","top","left","width","height","className"];function HO(){return HO=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},HO.apply(this,arguments)}function KO(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 GO(t,e,r){var n;return n=function(t,e){if("object"!=VO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=VO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==VO(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YO(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 ZO=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},JO=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,l=void 0===u?0:u,s=t.width,f=void 0===s?0:s,p=t.height,h=void 0===p?0:p,y=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?KO(Object(r),!0).forEach(function(e){GO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({x:n,y:i,top:c,left:l,width:f,height:h},YO(t,XO));return yr(n)&&yr(i)&&yr(f)&&yr(h)&&yr(c)&&yr(l)?e.createElement("path",HO({},Wr(d,!0),{className:j("recharts-cross",y),d:ZO(n,i,f,h,c,l)})):null},QO=Gv,tj=Yv,ej=ku;var rj=function(t,e){return t&&t.length?QO(t,ej(e),tj):void 0},nj=m(rj),oj=Gv,ij=ku,aj=rb;var cj=function(t,e){return t&&t.length?oj(t,ij(e),aj):void 0},uj=m(cj),lj=["cx","cy","angle","ticks","axisLine"],sj=["ticks","tick","angle","tickFormatter","stroke"];function fj(t){"@babel/helpers - typeof";return fj="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},fj(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 hj(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 yj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hj(Object(r),!0).forEach(function(e){xj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hj(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function dj(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 vj(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,Oj(n.key),n)}}function bj(t,e,r){return e=gj(e),function(t,e){if(e&&("object"===fj(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,mj()?Reflect.construct(e,r||[],gj(t).constructor):e.apply(t,r))}function mj(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(mj=function(){return!!t})()}function gj(t){return gj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gj(t)}function wj(t,e){return wj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wj(t,e)}function xj(t,e,r){return(e=Oj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oj(t){var e=function(t,e){if("object"!=fj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=fj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fj(e)?e:e+""}var jj=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bj(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&&wj(t,e)}(t,o),r=t,n=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return Ag(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=nj(o,function(t){return t.coordinate||0});return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:uj(o,function(t){return t.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,r=t.cx,n=t.cy,o=t.angle,i=t.ticks,a=t.axisLine,c=dj(t,lj),u=i.reduce(function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]},[1/0,-1/0]),l=Ag(r,n,u[0],o),s=Ag(r,n,u[1],o),f=yj(yj(yj({},Wr(c,!1)),{},{fill:"none"},Wr(a,!1)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return e.createElement("line",pj({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var r=this,n=this.props,o=n.ticks,i=n.tick,a=n.angle,c=n.tickFormatter,u=n.stroke,l=dj(n,sj),s=this.getTickTextAnchor(),f=Wr(l,!1),p=Wr(i,!1),h=o.map(function(n,o){var l=r.getTickValueCoord(n),h=yj(yj(yj(yj({textAnchor:s,transform:"rotate(".concat(90-a,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:u},p),{},{index:o},l),{},{payload:n});return e.createElement(en,pj({className:j("recharts-polar-radius-axis-tick",_g(i)),key:"tick-".concat(n.coordinate)},Mr(r.props,n,o)),t.renderTickItem(i,h,c?c(n.value,o):n.value))});return e.createElement(en,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var t=this.props,r=t.ticks,n=t.axisLine,o=t.tick;return r&&r.length?e.createElement(en,{className:j("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),o&&this.renderTicks(),Ug.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(t,r,n){return e.isValidElement(t)?e.cloneElement(t,r):rt(t)?t(r):e.createElement(fp,pj({},r,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&vj(r.prototype,n),i&&vj(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function Sj(t){"@babel/helpers - typeof";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},Sj(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){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 Ej(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){Ij(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}function kj(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,Dj(n.key),n)}}function Tj(t,e,r){return e=_j(e),function(t,e){if(e&&("object"===Sj(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,Mj()?Reflect.construct(e,r||[],_j(t).constructor):e.apply(t,r))}function Mj(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Mj=function(){return!!t})()}function _j(t){return _j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_j(t)}function Cj(t,e){return Cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cj(t,e)}function Ij(t,e,r){return(e=Dj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dj(t){var e=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);if("object"!=Sj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Sj(e)?e:e+""}xj(jj,"displayName","PolarRadiusAxis"),xj(jj,"axisType","radiusAxis"),xj(jj,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var Nj=Math.PI/180,Rj=1e-5,Bj=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Tj(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&&Cj(t,e)}(t,o),r=t,n=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=Ag(r,n,o,t.coordinate),u=Ag(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*Nj);return r>Rj?"outer"===e?"start":"end":r<-Rj?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,r=t.cx,n=t.cy,o=t.radius,i=t.axisLine,a=t.axisLineType,c=Ej(Ej({},Wr(this.props,!1)),{},{fill:"none"},Wr(i,!1));if("circle"===a)return e.createElement(WO,Pj({className:"recharts-polar-angle-axis-line"},c,{cx:r,cy:n,r:o}));var u=this.props.ticks.map(function(t){return Ag(r,n,o,t.coordinate)});return e.createElement(UO,Pj({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var r=this,n=this.props,o=n.ticks,i=n.tick,a=n.tickLine,c=n.tickFormatter,u=n.stroke,l=Wr(this.props,!1),s=Wr(i,!1),f=Ej(Ej({},l),{},{fill:"none"},Wr(a,!1)),p=o.map(function(n,o){var p=r.getTickLineCoord(n),h=Ej(Ej(Ej({textAnchor:r.getTickTextAnchor(n)},l),{},{stroke:"none",fill:u},s),{},{index:o,payload:n,x:p.x2,y:p.y2});return e.createElement(en,Pj({className:j("recharts-polar-angle-axis-tick",_g(i)),key:"tick-".concat(n.coordinate)},Mr(r.props,n,o)),a&&e.createElement("line",Pj({className:"recharts-polar-angle-axis-tick-line"},f,p)),i&&t.renderTickItem(i,h,c?c(n.value,o):n.value))});return e.createElement(en,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,r=t.ticks,n=t.radius,o=t.axisLine;return n<=0||!r||!r.length?null:e.createElement(en,{className:j("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(t,r,n){return e.isValidElement(t)?e.cloneElement(t,r):rt(t)?t(r):e.createElement(fp,Pj({},r,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&kj(r.prototype,n),i&&kj(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();Ij(Bj,"displayName","PolarAngleAxis"),Ij(Bj,"axisType","angleAxis"),Ij(Bj,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Lj=Da(Object.getPrototypeOf,Object),$j=z,zj=Lj,Fj=F,Uj=Function.prototype,qj=Object.prototype,Wj=Uj.toString,Vj=qj.hasOwnProperty,Xj=Wj.call(Object);var Hj=m(function(t){if(!Fj(t)||"[object Object]"!=$j(t))return!1;var e=zj(t);if(null===e)return!0;var r=Vj.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Wj.call(r)==Xj}),Kj=z,Gj=F;var Yj=m(function(t){return!0===t||!1===t||Gj(t)&&"[object Boolean]"==Kj(t)});function Zj(t){"@babel/helpers - typeof";return Zj="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},Zj(t)}function Jj(){return Jj=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},Jj.apply(this,arguments)}function Qj(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(t){l=!0,o=t}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 tS(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 tS(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 tS(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 eS(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 rS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?eS(Object(r),!0).forEach(function(e){nS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function nS(t,e,r){var n;return n=function(t,e){if("object"!=Zj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Zj(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oS,iS=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")},aS={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cS=function(t){var r=rS(rS({},aS),t),n=a(),o=Qj(u(-1),2),i=o[0],c=o[1];s(function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&c(t)}catch(t){}},[]);var l=r.x,f=r.y,p=r.upperWidth,h=r.lowerWidth,y=r.height,d=r.className,v=r.animationEasing,b=r.animationDuration,m=r.animationBegin,g=r.isUpdateAnimationActive;if(l!==+l||f!==+f||p!==+p||h!==+h||y!==+y||0===p&&0===h||0===y)return null;var w=j("recharts-trapezoid",d);return g?e.createElement(jO,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:y,x:l,y:f},to:{upperWidth:p,lowerWidth:h,height:y,x:l,y:f},duration:b,animationEasing:v,isActive:g},function(t){var o=t.upperWidth,a=t.lowerWidth,c=t.height,u=t.x,l=t.y;return e.createElement(jO,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:b,easing:v},e.createElement("path",Jj({},Wr(r,!0),{className:w,d:iS(u,l,o,a,c),ref:n})))}):e.createElement("g",null,e.createElement("path",Jj({},Wr(r,!0),{className:w,d:iS(l,f,p,h,y)})))},uS=["option","shapeType","propTransformer","activeClassName","isActive"];function lS(t){"@babel/helpers - typeof";return lS="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},lS(t)}function sS(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 fS(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 pS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fS(Object(r),!0).forEach(function(e){hS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function hS(t,e,r){var n;return n=function(t,e){if("object"!=lS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=lS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lS(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yS(t,e){return pS(pS({},e),t)}function dS(t){var r=t.shapeType,n=t.elementProps;switch(r){case"rectangle":return e.createElement(DO,n);case"trapezoid":return e.createElement(cS,n);case"sector":return e.createElement(pw,n);case"symbols":if(function(t){return"symbols"===t}(r))return e.createElement(Ko,n);break;default:return null}}function vS(t){var n,o=t.option,i=t.shapeType,a=t.propTransformer,c=void 0===a?yS:a,u=t.activeClassName,l=void 0===u?"recharts-active-shape":u,s=t.isActive,f=sS(t,uS);if(r(o))n=p(o,pS(pS({},f),function(t){return r(t)?t.props:t}(o)));else if(rt(o))n=o(f);else if(Hj(o)&&!Yj(o)){var h=c(o,f);n=e.createElement(dS,{shapeType:i,elementProps:h})}else{var y=f;n=e.createElement(dS,{shapeType:i,elementProps:y})}return s?e.createElement(en,{className:l},n):n}function bS(t,e){return null!=e&&"trapezoids"in t.props}function mS(t,e){return null!=e&&"sectors"in t.props}function gS(t,e){return null!=e&&"points"in t.props}function wS(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 xS(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function OS(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function jS(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return bS(t,e)?r="trapezoids":mS(t,e)?r="sectors":gS(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return bS(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:mS(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:gS(t,e)?e.payload:{}}(r,e),a=n.filter(function(t,n){var a=bb(i,t),c=r.props[o].filter(function(t){var n=function(t,e){var r;return bS(t,e)?r=wS:mS(t,e)?r=xS:gS(t,e)&&(r=OS),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])}function SS(t){"@babel/helpers - typeof";return SS="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},SS(t)}function PS(){return PS=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},PS.apply(this,arguments)}function AS(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 ES(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?AS(Object(r),!0).forEach(function(e){IS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function kS(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,DS(n.key),n)}}function TS(t,e,r){return e=_S(e),function(t,e){if(e&&("object"===SS(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,MS()?Reflect.construct(e,r||[],_S(t).constructor):e.apply(t,r))}function MS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(MS=function(){return!!t})()}function _S(t){return _S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_S(t)}function CS(t,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},CS(t,e)}function IS(t,e,r){return(e=DS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DS(t){var e=function(t,e){if("object"!=SS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=SS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==SS(e)?e:e+""}var NS=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),IS(r=TS(this,t,[e]),"pieRef",null),IS(r,"sectorRefs",[]),IS(r,"id",br("recharts-pie-")),IS(r,"handleAnimationEnd",function(){var t=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),rt(t)&&t()}),IS(r,"handleAnimationStart",function(){var t=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),rt(t)&&t()}),r.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},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&&CS(t,e)}(t,o),r=t,i=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,r,n){if(e.isValidElement(t))return e.cloneElement(t,r);if(rt(t))return t(r);var o=j("recharts-pie-label-line","boolean"!=typeof t?t.className:"");return e.createElement(Sw,PS({},r,{key:n,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(t,r,n){if(e.isValidElement(t))return e.cloneElement(t,r);var o=n;if(rt(t)&&(o=t(r),e.isValidElement(o)))return o;var i=j("recharts-pie-label-text","boolean"==typeof t||rt(t)?"":t.className);return e.createElement(fp,PS({},r,{alignmentBaseline:"middle",className:i}),o)}}],(n=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.label,i=n.labelLine,a=n.dataKey,c=n.valueKey,u=Wr(this.props,!1),l=Wr(o,!1),s=Wr(i,!1),f=o&&o.offsetRadius||20,p=r.map(function(r,n){var p=(r.startAngle+r.endAngle)/2,h=Ag(r.cx,r.cy,r.outerRadius+f,p),y=ES(ES(ES(ES({},u),r),{},{stroke:"none"},l),{},{index:n,textAnchor:t.getTextAnchor(h.x,r.cx)},h),d=ES(ES(ES(ES({},u),r),{},{fill:"none",stroke:r.fill},s),{},{index:n,points:[Ag(r.cx,r.cy,r.outerRadius,p),h]}),v=a;return Ge(a)&&Ge(c)?v="value":Ge(a)&&(v=c),e.createElement(en,{key:"label-".concat(r.startAngle,"-").concat(r.endAngle,"-").concat(r.midAngle,"-").concat(n)},i&&t.renderLabelLineItem(i,d,"line"),t.renderLabelItem(o,y,Hm(r,v)))});return e.createElement(en,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var r=this,n=this.props,o=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return t.map(function(n,c){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==t.length)return null;var u=r.isActiveIndex(c),l=a&&r.hasActiveIndex()?a:null,s=u?o:l,f=ES(ES({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return e.createElement(en,PS({ref:function(t){t&&!r.sectorRefs.includes(t)&&r.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},Mr(r.props,n,c),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(c)}),e.createElement(vS,PS({option:s,isActive:u,shapeType:"sector"},f)))})}},{key:"renderSectorsWithAnimation",value:function(){var t=this,r=this.props,n=r.sectors,o=r.isAnimationActive,i=r.animationBegin,a=r.animationDuration,c=r.animationEasing,u=r.animationId,l=this.state,s=l.prevSectors,f=l.prevIsAnimationActive;return e.createElement(jO,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(r){var o=r.t,i=[],a=(n&&n[0]).startAngle;return n.forEach(function(t,e){var r=s&&s[e],n=e>0?Ke(t,"paddingAngle",0):0;if(r){var c=wr(r.endAngle-r.startAngle,t.endAngle-t.startAngle),u=ES(ES({},t),{},{startAngle:a+n,endAngle:a+c(o)+n});i.push(u),a=u.endAngle}else{var l=t.endAngle,f=t.startAngle,p=wr(0,l-f)(o),h=ES(ES({},t),{},{startAngle:a+n,endAngle:a+p+n});i.push(h),a=h.endAngle}}),e.createElement(en,null,t.renderSectorsStatically(i))})}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&bb(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,r=this.props,n=r.hide,o=r.sectors,i=r.className,a=r.label,c=r.cx,u=r.cy,l=r.innerRadius,s=r.outerRadius,f=r.isAnimationActive,p=this.state.isAnimationFinished;if(n||!o||!o.length||!yr(c)||!yr(u)||!yr(l)||!yr(s))return null;var h=j("recharts-pie",i);return e.createElement(en,{tabIndex:this.props.rootTabIndex,className:h,ref:function(e){t.pieRef=e}},this.renderSectors(),a&&this.renderLabels(o),Ug.renderCallByParent(this.props,null,!1),(!f||p)&&nw.renderCallByParent(this.props,o,!1))}}])&&kS(r.prototype,n),i&&kS(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();oS=NS,IS(NS,"displayName","Pie"),IS(NS,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ls,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),IS(NS,"parseDeltaAngle",function(t,e){return pr(e-t)*Math.min(Math.abs(e-t),360)}),IS(NS,"getRealPieData",function(t){var e=t.data,r=t.children,n=Wr(t,!1),o=zr(r,kf);return e&&e.length?e.map(function(t,e){return ES(ES(ES({payload:t},n),t),o&&o[e]&&o[e].props)}):o&&o.length?o.map(function(t){return ES(ES({},n),t.props)}):[]}),IS(NS,"parseCoordinateOfPie",function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=Eg(o,i);return{cx:n+mr(t.cx,o,o/2),cy:r+mr(t.cy,i,i/2),innerRadius:mr(t.innerRadius,a,0),outerRadius:mr(t.outerRadius,a,.8*a),maxRadius:t.maxRadius||Math.sqrt(o*o+i*i)/2}}),IS(NS,"getComposedData",function(t){var e=t.item,r=t.offset,n=void 0!==e.type.defaultProps?ES(ES({},e.type.defaultProps),e.props):e.props,o=oS.getRealPieData(n);if(!o||!o.length)return null;var i=n.cornerRadius,a=n.startAngle,c=n.endAngle,u=n.paddingAngle,l=n.dataKey,s=n.nameKey,f=n.valueKey,p=n.tooltipType,h=Math.abs(n.minAngle),y=oS.parseCoordinateOfPie(n,r),d=oS.parseDeltaAngle(a,c),v=Math.abs(d),b=l;Ge(l)&&Ge(f)?(nn(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b="value"):Ge(l)&&(nn(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b=f);var m,g,w=o.filter(function(t){return 0!==Hm(t,b,0)}).length,x=v-w*h-(v>=360?w:w-1)*u,O=o.reduce(function(t,e){var r=Hm(e,b,0);return t+(yr(r)?r:0)},0);O>0&&(m=o.map(function(t,e){var r,n=Hm(t,b,0),o=Hm(t,s,e),c=(yr(n)?n:0)/O,l=(r=e?g.endAngle+pr(d)*u*(0!==n?1:0):a)+pr(d)*((0!==n?h:0)+c*x),f=(r+l)/2,v=(y.innerRadius+y.outerRadius)/2,m=[{name:o,value:n,payload:t,dataKey:b,type:p}],w=Ag(y.cx,y.cy,v,f);return g=ES(ES(ES({percent:c,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:v,tooltipPosition:w},t),y),{},{value:Hm(t,b),startAngle:r,endAngle:l,payload:t,paddingAngle:pr(d)*u})}));return ES(ES({},y),{},{sectors:m,data:o})});var RS=Math.ceil,BS=Math.max;var LS=ff,$S=1/0;var zS=function(t){return t?(t=LS(t))===$S||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},FS=function(t,e,r,n){for(var o=-1,i=BS(RS((e-t)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=t,t+=r;return a},US=cs,qS=zS;var WS=m(function(t){return function(e,r,n){return n&&"number"!=typeof n&&US(e,r,n)&&(r=n=void 0),e=qS(e),void 0===r?(r=e,e=0):r=qS(r),n=void 0===n?e<r?1:-1:qS(n),FS(e,r,n,t)}}());function VS(t){"@babel/helpers - typeof";return VS="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},VS(t)}function XS(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]:{};e%2?XS(Object(r),!0).forEach(function(e){KS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function KS(t,e,r){var n;return n=function(t,e){if("object"!=VS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=VS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==VS(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var GS=["Webkit","Moz","O","ms"];function YS(t){"@babel/helpers - typeof";return YS="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},YS(t)}function ZS(){return ZS=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},ZS.apply(this,arguments)}function JS(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 QS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JS(Object(r),!0).forEach(function(e){iP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tP(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,aP(n.key),n)}}function eP(t,e,r){return e=nP(e),function(t,e){if(e&&("object"===YS(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,rP()?Reflect.construct(e,r||[],nP(t).constructor):e.apply(t,r))}function rP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(rP=function(){return!!t})()}function nP(t){return nP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nP(t)}function oP(t,e){return oP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oP(t,e)}function iP(t,e,r){return(e=aP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aP(t){var e=function(t,e){if("object"!=YS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=YS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==YS(e)?e:e+""}var cP=function(t){return t.changedTouches&&!!t.changedTouches.length},uP=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),iP(r=eP(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)}),iP(r,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])}),iP(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()}),iP(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),iP(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),iP(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),iP(r,"handleSlideDragStart",function(t){var e=cP(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&&oP(t,e)}(t,o),r=t,i=[{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=Hm(r[t],o,t);return rt(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 h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=cP(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,h=c.data,y={startX:this.state.startX,endX:this.state.endX},d=t.pageX-r;d>0?d=Math.min(d,u+l-s-a):d<0&&(d=Math.max(d,u-a)),y[n]=a+d;var v=this.getIndex(y),b=v.startIndex,m=v.endIndex;this.setState(iP(iP({},n,a+d),"brushMoveStartX",t.pageX),function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?b%p===0:m%p===0)||o<i&&m===t||"endX"===n&&(o>i?m%p===0:b%p===0)||o>i&&m===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(iP({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,r=t.x,n=t.y,o=t.width,i=t.height,a=t.fill,c=t.stroke;return e.createElement("rect",{stroke:c,fill:a,x:r,y:n,width:o,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,r=t.x,o=t.y,i=t.width,a=t.height,c=t.data,u=t.children,l=t.padding,s=n.only(u);return s?e.cloneElement(s,{x:r,y:o,width:i,height:a,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,n){var o,i,a=this,c=this.props,u=c.y,l=c.travellerWidth,s=c.height,f=c.traveller,p=c.ariaLabel,h=c.data,y=c.startIndex,d=c.endIndex,v=Math.max(r,this.props.x),b=QS(QS({},Wr(this.props,!1)),{},{x:v,y:u,width:l,height:s}),m=p||"Min value: ".concat(null===(o=h[y])||void 0===o?void 0:o.name,", Max value: ").concat(null===(i=h[d])||void 0===i?void 0:i.name);return e.createElement(en,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,n))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,b))}},{key:"renderSlide",value:function(t,r){var n=this.props,o=n.y,i=n.height,a=n.stroke,c=n.travellerWidth,u=Math.min(t,r)+c,l=Math.max(Math.abs(r-t)-c,0);return e.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:o,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,r=t.startIndex,n=t.endIndex,o=t.y,i=t.height,a=t.travellerWidth,c=t.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return e.createElement(en,{className:"recharts-brush-texts"},e.createElement(fp,ZS({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(r)),e.createElement(fp,ZS({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(n)))}},{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,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,y=s.isSlideMoving,d=s.isTravellerMoving,v=s.isTravellerFocused;if(!r||!r.length||!yr(i)||!yr(a)||!yr(c)||!yr(u)||c<=0||u<=0)return null;var b,m,g,w,x=j("recharts-brush",n),O=1===e.Children.count(o),S=(m="none",g=(b="userSelect").replace(/(\w)/,function(t){return t.toUpperCase()}),(w=GS.reduce(function(t,e){return HS(HS({},t),{},KS({},e+g,m))},{}))[b]=m,w);return e.createElement(en,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||y||d||v||l)&&this.renderText())}}],a=[{key:"renderDefaultTraveller",value:function(t){var r=t.x,n=t.y,o=t.width,i=t.height,a=t.stroke,c=Math.floor(n+i/2)-1;return e.createElement(e.Fragment,null,e.createElement("rect",{x:r,y:n,width:o,height:i,fill:a,stroke:"none"}),e.createElement("line",{x1:r+1,y1:c,x2:r+o-1,y2:c,fill:"none",stroke:"#fff"}),e.createElement("line",{x1:r+1,y1:c+2,x2:r+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,n){return e.isValidElement(r)?e.cloneElement(r,n):rt(r)?r(n):t.renderDefaultTraveller(n)}},{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 QS({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=zp().domain(WS(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}}],i&&tP(r.prototype,i),a&&tP(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();iP(uP,"displayName","Brush"),iP(uP,"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 lP=Sl;var sP=Si,fP=ku,pP=function(t,e){var r;return lP(t,function(t,n,o){return!(r=e(t,n,o))}),!!r},hP=S,yP=cs;var dP=m(function(t,e,r){var n=hP(t)?sP:pP;return r&&yP(t,e,r)&&(e=void 0),n(t,fP(e))}),vP=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},bP=Hl;var mP=function(t,e,r){"__proto__"==e&&bP?bP(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},gP=mP,wP=Ol,xP=ku;var OP=function(t,e){var r={};return e=xP(e),wP(t,function(t,n,o){gP(r,n,e(t,n,o))}),r},jP=m(OP);var SP=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},PP=Sl;var AP=SP,EP=function(t,e){var r=!0;return PP(t,function(t,n,o){return r=!!e(t,n,o)}),r},kP=ku,TP=S,MP=cs;var _P=m(function(t,e,r){var n=TP(t)?AP:EP;return r&&MP(t,e,r)&&(e=void 0),n(t,kP(e))}),CP=["x","y"];function IP(t){"@babel/helpers - typeof";return IP="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},IP(t)}function DP(){return DP=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},DP.apply(this,arguments)}function NP(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 RP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NP(Object(r),!0).forEach(function(e){BP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NP(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"!=IP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=IP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==IP(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function LP(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 $P(t,e){var r=t.x,n=t.y,o=LP(t,CP),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 RP(RP(RP(RP(RP({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function zP(t){return e.createElement(vS,DP({shapeType:"rectangle",propTransformer:$P,activeClassName:"recharts-active-bar"},t))}var FP,UP=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=yr(r)||function(t){return Ge(t)}(r);return o?t(r,n):(o||("production"!==process.env.NODE_ENV?xm(0,"minPointSize callback function received a value with type of ".concat(IP(r),". Currently only numbers or null/undefined are supported.")):xm()),e)}},qP=["value","background"];function WP(t){"@babel/helpers - typeof";return WP="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},WP(t)}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 XP(){return XP=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},XP.apply(this,arguments)}function HP(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 KP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?HP(Object(r),!0).forEach(function(e){tA(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function GP(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,eA(n.key),n)}}function YP(t,e,r){return e=JP(e),function(t,e){if(e&&("object"===WP(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,ZP()?Reflect.construct(e,r||[],JP(t).constructor):e.apply(t,r))}function ZP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ZP=function(){return!!t})()}function JP(t){return JP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},JP(t)}function QP(t,e){return QP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},QP(t,e)}function tA(t,e,r){return(e=eA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eA(t){var e=function(t,e){if("object"!=WP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=WP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==WP(e)?e:e+""}var rA=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 tA(e=YP(this,t,[].concat(n)),"state",{isAnimationFinished:!1}),tA(e,"id",br("recharts-bar-")),tA(e,"handleAnimationEnd",function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()}),tA(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&&QP(t,e)}(t,o),r=t,i=[{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 r=this,n=this.props,o=n.shape,i=n.dataKey,a=n.activeIndex,c=n.activeBar,u=Wr(this.props,!1);return t&&t.map(function(t,n){var l=n===a,s=l?c:o,f=KP(KP(KP({},u),t),{},{isActive:l,option:s,index:n,dataKey:i,onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd});return e.createElement(en,XP({className:"recharts-bar-rectangle"},Mr(r.props,t,n),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(n)}),e.createElement(zP,f))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,r=this.props,n=r.data,o=r.layout,i=r.isAnimationActive,a=r.animationBegin,c=r.animationDuration,u=r.animationEasing,l=r.animationId,s=this.state.prevData;return e.createElement(jO,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var i=r.t,a=n.map(function(t,e){var r=s&&s[e];if(r){var n=wr(r.x,t.x),a=wr(r.y,t.y),c=wr(r.width,t.width),u=wr(r.height,t.height);return KP(KP({},t),{},{x:n(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===o){var l=wr(0,t.height)(i);return KP(KP({},t),{},{y:t.y+t.height-l,height:l})}var f=wr(0,t.width)(i);return KP(KP({},t),{},{width:f})});return e.createElement(en,null,t.renderRectanglesStatically(a))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&bb(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,r=this.props,n=r.data,o=r.dataKey,i=r.activeIndex,a=Wr(this.props.background,!1);return n.map(function(r,n){r.value;var c=r.background,u=VP(r,qP);if(!c)return null;var l=KP(KP(KP(KP(KP({},u),{},{fill:"#eee"},c),a),Mr(t.props,r,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:o,index:n,className:"recharts-bar-background-rectangle"});return e.createElement(zP,XP({key:"background-bar-".concat(n),option:t.props.background,isActive:n===i},l))})}},{key:"renderErrorBar",value:function(t,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,c=n.layout,u=zr(n.children,Nm);if(!u)return null;var l="vertical"===c?o[0].height/2:o[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:Hm(t,e)}},f={clipPath:t?"url(#clipPath-".concat(r,")"):null};return e.createElement(en,f,u.map(function(t){return e.cloneElement(t,{key:"error-bar-".concat(r,"-").concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,offset:l,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,l=t.width,s=t.height,f=t.isAnimationActive,p=t.background,h=t.id;if(r||!n||!n.length)return null;var y=this.state.isAnimationFinished,d=j("recharts-bar",o),v=i&&i.allowDataOverflow,b=a&&a.allowDataOverflow,m=v||b,g=Ge(h)?this.id:h;return e.createElement(en,{className:d},v||b?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:v?c:c-l/2,y:b?u:u-s/2,width:v?l:2*l,height:b?s:2*s}))):null,e.createElement(en,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!f||y)&&nw.renderCallByParent(this.props,n))}}])&&GP(r.prototype,n),i&&GP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function nA(t){"@babel/helpers - typeof";return nA="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},nA(t)}function oA(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,uA(n.key),n)}}function iA(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 aA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iA(Object(r),!0).forEach(function(e){cA(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cA(t,e,r){return(e=uA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uA(t){var e=function(t,e){if("object"!=nA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=nA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nA(e)?e:e+""}FP=rA,tA(rA,"displayName","Bar"),tA(rA,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ls,animationBegin:0,animationDuration:400,animationEasing:"ease"}),tA(rA,"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,h=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(!h)return null;var y=e.layout,d=r.type.defaultProps,v=void 0!==d?KP(KP({},d),r.props):r.props,b=v.dataKey,m=v.children,g=v.minPointSize,w="horizontal"===y?a:i,x=l?w.scale.domain():null,O=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:w}),j=zr(m,kf),S=f.map(function(t,e){var n,f,p,d,v,m;l?n=function(t,e){if(!e||2!==e.length||!yr(e[0])||!yr(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(!yr(t[0])||t[0]<r)&&(o[0]=r),(!yr(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=Hm(t,b),Array.isArray(n)||(n=[O,n]));var w=UP(g,FP.defaultProps.minPointSize)(n[1],e);if("horizontal"===y){var S,P=[a.scale(n[0]),a.scale(n[1])],A=P[0],E=P[1];f=sg({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(S=null!=E?E:A)&&void 0!==S?S:void 0,d=h.size;var k=A-E;if(v=Number.isNaN(k)?0:k,m={x:f,y:a.y,width:d,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var T=pr(v||w)*(Math.abs(w)-Math.abs(v));p-=T,v+=T}}else{var M=[i.scale(n[0]),i.scale(n[1])],_=M[0],C=M[1];if(f=_,p=sg({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),d=C-_,v=h.size,m={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(d)<Math.abs(w))d+=pr(d||w)*(Math.abs(w)-Math.abs(d))}return KP(KP(KP({},t),{},{x:f,y:p,width:d,height:v,value:l?n:n[1],payload:t,background:m},j&&j[e]&&j[e].props),{},{tooltipPayload:[bg(r,t)],tooltipPosition:{x:f+d/2,y:p+v/2}})});return KP({data:S,layout:y},p)});var lA=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=!!Fr(u,rA);return l.reduce(function(i,a){var u,l,p,h,y,d=e[a],v=d.orientation,b=d.domain,m=d.padding,g=void 0===m?{}:m,w=d.mirror,x=d.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===d.type&&("gap"===d.padding||"no-gap"===d.padding)){var j=b[1]-b[0],S=1/0,P=d.categoricalDomain.sort(Or);if(P.forEach(function(t,e){e>0&&(S=Math.min((t||0)-(P[e-1]||0),S))}),Number.isFinite(S)){var A=S/j,E="vertical"===d.layout?r.height:r.width;if("gap"===d.padding&&(u=A*E/2),"no-gap"===d.padding){var k=mr(t.barCategoryGap,A*E),T=A*E/2;u=T-k-(T-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)]:d.range,x&&(l=[l[1],l[0]]);var M=ng(d,o,f),_=M.scale,C=M.realScaleType;_.domain(b).range(l),ig(_);var I=ug(_,aA(aA({},d),{},{realScaleType:C}));"xAxis"===n?(y="top"===v&&!w||"bottom"===v&&w,p=r.left,h=s[O]-y*d.height):"yAxis"===n&&(y="left"===v&&!w||"right"===v&&w,p=s[O]-y*d.width,h=r.top);var D=aA(aA(aA({},d),I),{},{realScaleType:C,x:p,y:h,scale:_,width:"xAxis"===n?r.width:d.width,height:"yAxis"===n?r.height:d.height});return D.bandSize=dg(D,I),d.hide||"xAxis"!==n?d.hide||(s[O]+=(y?-1:1)*D.width):s[O]+=(y?-1:1)*D.height,aA(aA({},i),{},cA({},a,D))},{})},sA=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)}},fA=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&&oA(e.prototype,r),n&&oA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();cA(fA,"EPS",1e-4);var pA=function(t){var e=Object.keys(t).reduce(function(e,r){return aA(aA({},e),{},cA({},r,fA.create(t[r])))},{});return aA(aA({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return jP(t,function(t,r){return e[r].apply(t,{bandAware:n,position:o})})},isInRange:function(t){return _P(t,function(t,r){return e[r].isInRange(t)})}})};var hA=ku,yA=Ua,dA=Xa;var vA=function(t){return function(e,r,n){var o=Object(e);if(!yA(e)){var i=hA(r);e=dA(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}},bA=zS;var mA=Tu,gA=ku,wA=function(t){var e=bA(t),r=e%1;return e==e?r?e-r:e:0},xA=Math.max;var OA=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:wA(r);return o<0&&(o=xA(n+o,0)),mA(t,gA(e),o)},jA=m(vA(OA)),SA=xe(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("")});function PA(t){"@babel/helpers - typeof";return PA="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},PA(t)}var AA=d(void 0),EA=d(void 0),kA=d(void 0),TA=d({}),MA=d(void 0),_A=d(0),CA=d(0),IA=function(t){var r=t.state,n=r.xAxisMap,o=r.yAxisMap,i=r.offset,a=t.clipPathId,c=t.children,u=t.width,l=t.height,s=SA(i);return e.createElement(AA.Provider,{value:n},e.createElement(EA.Provider,{value:o},e.createElement(TA.Provider,{value:i},e.createElement(kA.Provider,{value:s},e.createElement(MA.Provider,{value:a},e.createElement(_A.Provider,{value:l},e.createElement(CA.Provider,{value:u},c)))))))};function DA(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var NA=function(t){var e=y(AA);null==e&&("production"!==process.env.NODE_ENV?xm(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):xm());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?xm(0,'Could not find xAxis by id "'.concat(t,'" [').concat(PA(t),"]. ").concat(DA(e))):xm()),r},RA=function(t){var e=y(EA);null==e&&("production"!==process.env.NODE_ENV?xm(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):xm());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?xm(0,'Could not find yAxis by id "'.concat(t,'" [').concat(PA(t),"]. ").concat(DA(e))):xm()),r},BA=function(){return y(CA)},LA=function(){return y(_A)};function $A(t){"@babel/helpers - typeof";return $A="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},$A(t)}function zA(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,KA(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function FA(t,e,r){return e=qA(e),function(t,e){if(e&&("object"===$A(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,UA()?Reflect.construct(e,r||[],qA(t).constructor):e.apply(t,r))}function UA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(UA=function(){return!!t})()}function qA(t){return qA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qA(t)}function WA(t,e){return WA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},WA(t,e)}function VA(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 XA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VA(Object(r),!0).forEach(function(e){HA(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function HA(t,e,r){return(e=KA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KA(t){var e=function(t,e){if("object"!=$A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=$A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==$A(e)?e:e+""}function GA(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(t){l=!0,o=t}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 YA(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 YA(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 YA(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 ZA(){return ZA=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},ZA.apply(this,arguments)}function JA(t){var r=t.x,n=t.y,o=t.segment,i=t.xAxisId,a=t.yAxisId,c=t.shape,u=t.className,l=t.alwaysShow,s=y(MA),f=NA(i),p=RA(a),h=y(kA);if(!s||!h)return null;nn(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=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 h=u.y,y=t.y.apply(h,{position:i});if(vP(u,"discard")&&!t.y.isInRange(y))return null;var d=[{x:l+f,y:y},{x:l,y:y}];return"left"===c?d.reverse():d}if(e){var v=u.x,b=t.x.apply(v,{position:i});if(vP(u,"discard")&&!t.x.isInRange(b))return null;var m=[{x:b,y:s+p},{x:b,y:s}];return"top"===a?m.reverse():m}if(n){var g=u.segment.map(function(e){return t.apply(e,{position:i})});return vP(u,"discard")&&dP(g,function(e){return!t.isInRange(e)})?null:g}return null}(pA({x:f.scale,y:p.scale}),dr(r),dr(n),o&&2===o.length,h,t.position,f.orientation,p.orientation,t);if(!d)return null;var v=GA(d,2),b=v[0],m=b.x,g=b.y,w=v[1],x=w.x,O=w.y,S=XA(XA({clipPath:vP(t,"hidden")?"url(#".concat(s,")"):void 0},Wr(t,!0)),{},{x1:m,y1:g,x2:x,y2:O});return e.createElement(en,{className:j("recharts-reference-line",u)},function(t,r){return e.isValidElement(t)?e.cloneElement(t,r):rt(t)?t(r):e.createElement("line",ZA({},r,{className:"recharts-reference-line-line"}))}(c,S),Ug.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return sA({x:e,y:r},{x:n,y:o})}({x1:m,y1:g,x2:x,y2:O})))}var QA=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),FA(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&&WA(t,e)}(t,e.Component),zA(t,[{key:"render",value:function(){return e.createElement(JA,this.props)}}])}();function tE(){return tE=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},tE.apply(this,arguments)}function eE(t){"@babel/helpers - typeof";return eE="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},eE(t)}function rE(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 nE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rE(Object(r),!0).forEach(function(e){lE(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rE(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function oE(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,sE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function iE(t,e,r){return e=cE(e),function(t,e){if(e&&("object"===eE(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,aE()?Reflect.construct(e,r||[],cE(t).constructor):e.apply(t,r))}function aE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(aE=function(){return!!t})()}function cE(t){return cE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cE(t)}function uE(t,e){return uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},uE(t,e)}function lE(t,e,r){return(e=sE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sE(t){var e=function(t,e){if("object"!=eE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=eE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==eE(e)?e:e+""}HA(QA,"displayName","ReferenceLine"),HA(QA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var fE=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),iE(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&&uE(t,e)}(t,e.Component),oE(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=dr(n),l=dr(o);if(nn(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!l)return null;var s=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=pA({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return vP(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!s)return null;var f=s.x,p=s.y,h=this.props,y=h.shape,d=h.className,v=nE(nE({clipPath:vP(this.props,"hidden")?"url(#".concat(c,")"):void 0},Wr(this.props,!0)),{},{cx:f,cy:p});return e.createElement(en,{className:j("recharts-reference-dot",d)},t.renderDot(y,v),Ug.renderCallByParent(this.props,{x:f-i,y:p-i,width:2*i,height:2*i}))}}])}();function pE(){return pE=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},pE.apply(this,arguments)}function hE(t){"@babel/helpers - typeof";return hE="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},hE(t)}function yE(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 dE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yE(Object(r),!0).forEach(function(e){xE(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yE(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function vE(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,OE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function bE(t,e,r){return e=gE(e),function(t,e){if(e&&("object"===hE(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,mE()?Reflect.construct(e,r||[],gE(t).constructor):e.apply(t,r))}function mE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(mE=function(){return!!t})()}function gE(t){return gE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gE(t)}function wE(t,e){return wE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wE(t,e)}function xE(t,e,r){return(e=OE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OE(t){var e=function(t,e){if("object"!=hE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=hE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==hE(e)?e:e+""}lE(fE,"displayName","ReferenceDot"),lE(fE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),lE(fE,"renderDot",function(t,r){return e.isValidElement(t)?e.cloneElement(t,r):rt(t)?t(r):e.createElement(WO,tE({},r,{cx:r.cx,cy:r.cy,className:"recharts-reference-dot-dot"}))});var jE=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bE(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&&wE(t,e)}(t,e.Component),vE(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,l=r.clipPathId;nn(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=dr(n),f=dr(o),p=dr(i),h=dr(a),y=this.props.shape;if(!(s||f||p||h||y))return null;var d=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=pA({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},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!vP(o,"discard")||f.isInRange(p)&&f.isInRange(h)?sA(p,h):null}(s,f,p,h,this.props);if(!d&&!y)return null;var v=vP(this.props,"hidden")?"url(#".concat(l,")"):void 0;return e.createElement(en,{className:j("recharts-reference-area",c)},t.renderRect(y,dE(dE({clipPath:v},Wr(this.props,!0)),d)),Ug.renderCallByParent(this.props,d))}}])}();function SE(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 PE(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 AE(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 EE(t){"@babel/helpers - typeof";return EE="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},EE(t)}function kE(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 TE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kE(Object(r),!0).forEach(function(e){ME(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kE(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ME(t,e,r){var n;return n=function(t,e){if("object"!=EE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=EE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==EE(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _E(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(yr(u)||Ls)return function(t,e){return SE(t,e+1)}(o,"number"==typeof u&&yr(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",y=s&&"width"===h?Rf(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},d=function(t,n){var o=rt(l)?l(t.value,n):t.value;return"width"===h?PE(Rf(o,{fontSize:e,letterSpacing:r}),y,f):Rf(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?pr(o[1].coordinate-o[0].coordinate):1,b=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,h);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:SE(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,y=0===l||AE(t,h,p,f,u);y||(l=0,f=c,s+=1),y&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,b,d,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=TE(TE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),AE(t,s.tickCoord,function(){return f},u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=TE(TE({},s),{},{isShow:!0}))}for(var h=i?c-1:c,y=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=TE(TE({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=TE(TE({},i),{},{tickCoord:i.coordinate});AE(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=TE(TE({},i),{},{isShow:!0}))},d=0;d<h;d++)y(d);return a}(v,b,d,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=TE(TE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=TE(TE({},l),{},{tickCoord:l.coordinate});AE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=TE(TE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,b,d,o,a),p.filter(function(t){return t.isShow}))}xE(jE,"displayName","ReferenceArea"),xE(jE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),xE(jE,"renderRect",function(t,r){return e.isValidElement(t)?e.cloneElement(t,r):rt(t)?t(r):e.createElement(DO,pE({},r,{className:"recharts-reference-area-rect"}))});var CE=["viewBox"],IE=["viewBox"],DE=["ticks"];function NE(t){"@babel/helpers - typeof";return NE="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},NE(t)}function RE(){return RE=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},RE.apply(this,arguments)}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 LE(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){VE(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 $E(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 zE(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,XE(n.key),n)}}function FE(t,e,r){return e=qE(e),function(t,e){if(e&&("object"===NE(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,UE()?Reflect.construct(e,r||[],qE(t).constructor):e.apply(t,r))}function UE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(UE=function(){return!!t})()}function qE(t){return qE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qE(t)}function WE(t,e){return WE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},WE(t,e)}function VE(t,e,r){return(e=XE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XE(t){var e=function(t,e){if("object"!=NE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=NE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==NE(e)?e:e+""}var HE=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=FE(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&&WE(t,e)}(t,v),r=t,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=$E(t,CE),o=this.props,i=o.viewBox,a=$E(o,IE);return!jr(r,i)||!jr(n,a)||!jr(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,h=c.tickSize,y=c.mirror,d=c.tickMargin,v=y?-1:1,b=t.tickSize||h,m=yr(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!y*f)-v*b)-v*d,i=m;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!y*s)-v*b)-v*d,a=m;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +y*s)+v*b)+v*d,a=m;break;default:e=r=t.coordinate,a=(n=(o=l+ +y*f)+v*b)+v*d,i=m}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,l=LE(LE(LE({},Wr(this.props,!1)),Wr(u,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var s=+("top"===a&&!c||"bottom"===a&&c);l=LE(LE({},l),{},{x1:r,y1:n+s*i,x2:r+o,y2:n+s*i})}else{var f=+("left"===a&&!c||"right"===a&&c);l=LE(LE({},l),{},{x1:r+f*o,y1:n,x2:r+f*o,y2:n+i})}return e.createElement("line",RE({},l,{className:j("recharts-cartesian-axis-line",Ke(u,"className"))}))}},{key:"renderTicks",value:function(r,n,o){var i=this,a=this.props,c=a.tickLine,u=a.stroke,l=a.tick,s=a.tickFormatter,f=a.unit,p=_E(LE(LE({},this.props),{},{ticks:r}),n,o),h=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),d=Wr(this.props,!1),v=Wr(l,!1),b=LE(LE({},d),{},{fill:"none"},Wr(c,!1)),m=p.map(function(r,n){var o=i.getTickLineCoord(r),a=o.line,m=o.tick,g=LE(LE(LE(LE({textAnchor:h,verticalAnchor:y},d),{},{stroke:"none",fill:u},v),m),{},{index:n,payload:r,visibleTicksCount:p.length,tickFormatter:s});return e.createElement(en,RE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(r.value,"-").concat(r.coordinate,"-").concat(r.tickCoord)},Mr(i.props,r,n)),c&&e.createElement("line",RE({},b,a,{className:j("recharts-cartesian-axis-tick-line",Ke(c,"className"))})),l&&t.renderTickItem(l,g,"".concat(rt(s)?s(r.value,n):r.value).concat(f||"")))});return e.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{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,l=u.ticks,s=$E(u,DE),f=l;return rt(a)&&(f=l&&l.length>0?a(this.props):a(s)),o<=0||i<=0||!f||!f.length?null:e.createElement(en,{className:j("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),Ug.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,r,n){var o=j(r.className,"recharts-cartesian-axis-tick-value");return e.isValidElement(t)?e.cloneElement(t,LE(LE({},r),{},{className:o})):rt(t)?t(LE(LE({},r),{},{className:o})):e.createElement(fp,RE({},r,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&zE(r.prototype,n),o&&zE(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();VE(HE,"displayName","CartesianAxis"),VE(HE,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var KE=["x1","y1","x2","y2","key"],GE=["offset"];function YE(t){"@babel/helpers - typeof";return YE="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},YE(t)}function ZE(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 JE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ZE(Object(r),!0).forEach(function(e){QE(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZE(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function QE(t,e,r){var n;return n=function(t,e){if("object"!=YE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=YE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==YE(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tk(){return tk=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},tk.apply(this,arguments)}function ek(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 rk=function(t){var r=t.fill;if(!r||"none"===r)return null;var n=t.fillOpacity,o=t.x,i=t.y,a=t.width,c=t.height,u=t.ry;return e.createElement("rect",{x:o,y:i,ry:u,width:a,height:c,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function nk(t,r){var n;if(e.isValidElement(t))n=e.cloneElement(t,r);else if(rt(t))n=t(r);else{var o=r.x1,i=r.y1,a=r.x2,c=r.y2,u=r.key,l=ek(r,KE),s=Wr(l,!1);s.offset;var f=ek(s,GE);n=e.createElement("line",tk({},f,{x1:o,y1:i,x2:a,y2:c,fill:"none",key:u}))}return n}function ok(t){var r=t.x,n=t.width,o=t.horizontal,i=void 0===o||o,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var c=a.map(function(e,o){var a=JE(JE({},t),{},{x1:r,y1:e,x2:r+n,y2:e,key:"line-".concat(o),index:o});return nk(i,a)});return e.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function ik(t){var r=t.y,n=t.height,o=t.vertical,i=void 0===o||o,a=t.verticalPoints;if(!i||!a||!a.length)return null;var c=a.map(function(e,o){var a=JE(JE({},t),{},{x1:e,y1:r,x2:e,y2:r+n,key:"line-".concat(o),index:o});return nk(i,a)});return e.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function ak(t){var r=t.horizontalFill,n=t.fillOpacity,o=t.x,i=t.y,a=t.width,c=t.height,u=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!r||!r.length)return null;var s=u.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var f=s.map(function(t,u){var l=!s[u+1]?i+c-t:s[u+1]-t;if(l<=0)return null;var f=u%r.length;return e.createElement("rect",{key:"react-".concat(u),y:t,x:o,height:l,width:a,stroke:"none",fill:r[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return e.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function ck(t){var r=t.vertical,n=void 0===r||r,o=t.verticalFill,i=t.fillOpacity,a=t.x,c=t.y,u=t.width,l=t.height,s=t.verticalPoints;if(!n||!o||!o.length)return null;var f=s.map(function(t){return Math.round(t+a-a)}).sort(function(t,e){return t-e});a!==f[0]&&f.unshift(0);var p=f.map(function(t,r){var n=!f[r+1]?a+u-t:f[r+1]-t;if(n<=0)return null;var s=r%o.length;return e.createElement("rect",{key:"react-".concat(r),x:t,y:c,width:n,height:l,stroke:"none",fill:o[s],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return e.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var uk=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return Qm(_E(JE(JE(JE({},HE.defaultProps),r),{},{ticks:tg(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},lk=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return Qm(_E(JE(JE(JE({},HE.defaultProps),r),{},{ticks:tg(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},sk={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function fk(t){var r,n,o,i,a,c,u,l,s=BA(),f=LA(),p=y(TA),h=JE(JE({},t),{},{stroke:null!==(r=t.stroke)&&void 0!==r?r:sk.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:sk.fill,horizontal:null!==(o=t.horizontal)&&void 0!==o?o:sk.horizontal,horizontalFill:null!==(i=t.horizontalFill)&&void 0!==i?i:sk.horizontalFill,vertical:null!==(a=t.vertical)&&void 0!==a?a:sk.vertical,verticalFill:null!==(c=t.verticalFill)&&void 0!==c?c:sk.verticalFill,x:yr(t.x)?t.x:p.left,y:yr(t.y)?t.y:p.top,width:yr(t.width)?t.width:p.width,height:yr(t.height)?t.height:p.height}),d=h.x,v=h.y,b=h.width,m=h.height,g=h.syncWithTicks,w=h.horizontalValues,x=h.verticalValues,O=(u=y(AA),gr(u)),j=(l=y(EA),jA(l,function(t){return _P(t.domain,Number.isFinite)})||gr(l));if(!yr(b)||b<=0||!yr(m)||m<=0||!yr(d)||d!==+d||!yr(v)||v!==+v)return null;var S=h.verticalCoordinatesGenerator||uk,P=h.horizontalCoordinatesGenerator||lk,A=h.horizontalPoints,E=h.verticalPoints;if((!A||!A.length)&&rt(P)){var k=w&&w.length,T=P({yAxis:j?JE(JE({},j),{},{ticks:k?w:j.ticks}):void 0,width:s,height:f,offset:p},!!k||g);nn(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(YE(T),"]")),Array.isArray(T)&&(A=T)}if((!E||!E.length)&&rt(S)){var M=x&&x.length,_=S({xAxis:O?JE(JE({},O),{},{ticks:M?x:O.ticks}):void 0,width:s,height:f,offset:p},!!M||g);nn(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(YE(_),"]")),Array.isArray(_)&&(E=_)}return e.createElement("g",{className:"recharts-cartesian-grid"},e.createElement(rk,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),e.createElement(ok,tk({},h,{offset:p,horizontalPoints:A,xAxis:O,yAxis:j})),e.createElement(ik,tk({},h,{offset:p,verticalPoints:E,xAxis:O,yAxis:j})),e.createElement(ak,tk({},h,{horizontalPoints:A})),e.createElement(ck,tk({},h,{verticalPoints:E})))}fk.displayName="CartesianGrid";var pk=["type","layout","connectNulls","ref"],hk=["key"];function yk(t){"@babel/helpers - typeof";return yk="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},yk(t)}function dk(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 vk(){return vk=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},vk.apply(this,arguments)}function bk(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 mk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bk(Object(r),!0).forEach(function(e){Ak(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bk(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function gk(t){return function(t){if(Array.isArray(t))return wk(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 wk(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 wk(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 wk(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 xk(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,Ek(n.key),n)}}function Ok(t,e,r){return e=Sk(e),function(t,e){if(e&&("object"===yk(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,jk()?Reflect.construct(e,r||[],Sk(t).constructor):e.apply(t,r))}function jk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(jk=function(){return!!t})()}function Sk(t){return Sk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sk(t)}function Pk(t,e){return Pk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pk(t,e)}function Ak(t,e,r){return(e=Ek(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ek(t){var e=function(t,e){if("object"!=yk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=yk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==yk(e)?e:e+""}var kk=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 Ak(e=Ok(this,t,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),Ak(e,"generateSimpleStrokeDasharray",function(t,e){return"".concat(e,"px ").concat(t-e,"px")}),Ak(e,"getStrokeDasharray",function(r,n,o){var i=o.reduce(function(t,e){return t+e});if(!i)return e.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(gk(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(gk(t.repeat(o,a)),gk(l),p).map(function(t){return"".concat(t,"px")}).join(", ")}),Ak(e,"id",br("recharts-line-")),Ak(e,"pathRef",function(t){e.mainCurve=t}),Ak(e,"handleAnimationEnd",function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()}),Ak(e,"handleAnimationStart",function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()}),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&&Pk(t,e)}(t,o),r=t,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.points,i=n.xAxis,a=n.yAxis,c=n.layout,u=zr(n.children,Nm);if(!u)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Hm(t.payload,e)}},s={clipPath:t?"url(#clipPath-".concat(r,")"):null};return e.createElement(en,s,u.map(function(t){return e.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,dataPointFormatter:l})}))}},{key:"renderDots",value:function(r,n,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,c=i.points,u=i.dataKey,l=Wr(this.props,!1),s=Wr(a,!0),f=c.map(function(e,r){var n=mk(mk(mk({key:"dot-".concat(r),r:3},l),s),{},{index:r,cx:e.x,cy:e.y,value:e.value,dataKey:u,payload:e.payload,points:c});return t.renderDotItem(a,n)}),p={clipPath:r?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return e.createElement(en,vk({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,r,n,o){var i=this.props,a=i.type,c=i.layout,u=i.connectNulls;i.ref;var l=dk(i,pk),s=mk(mk(mk({},Wr(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:r?"url(#clipPath-".concat(n,")"):null,points:t},o),{},{type:a,layout:c,connectNulls:u});return e.createElement(Sw,vk({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,r){var n=this,o=this.props,i=o.points,a=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,l=o.animationDuration,s=o.animationEasing,f=o.animationId,p=o.animateNewValues,h=o.width,y=o.height,d=this.state,v=d.prevPoints,b=d.totalLength;return e.createElement(jO,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var o=e.t;if(v){var c=v.length/i.length,u=i.map(function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=wr(n.x,t.x),a=wr(n.y,t.y);return mk(mk({},t),{},{x:i(o),y:a(o)})}if(p){var u=wr(2*h,t.x),l=wr(y/2,t.y);return mk(mk({},t),{},{x:u(o),y:l(o)})}return mk(mk({},t),{},{x:t.x,y:t.y})});return n.renderCurveStatically(u,t,r)}var l,s=wr(0,b)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});l=n.getStrokeDasharray(s,b,f)}else l=n.generateSimpleStrokeDasharray(b,s);return n.renderCurveStatically(i,t,r,{strokeDasharray:l})})}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!bb(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,r=this.props,n=r.hide,o=r.dot,i=r.points,a=r.className,c=r.xAxis,u=r.yAxis,l=r.top,s=r.left,f=r.width,p=r.height,h=r.isAnimationActive,y=r.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,v=1===i.length,b=j("recharts-line",a),m=c&&c.allowDataOverflow,g=u&&u.allowDataOverflow,w=m||g,x=Ge(y)?this.id:y,O=null!==(t=Wr(o,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=O.r,P=void 0===S?3:S,A=O.strokeWidth,E=void 0===A?2:A,k=(function(t){return t&&"object"===Dr(t)&&"clipDot"in t}(o)?o:{}).clipDot,T=void 0===k||k,M=2*P+E;return e.createElement(en,{className:b},m||g?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(x)},e.createElement("rect",{x:m?s:s-f/2,y:g?l:l-p/2,width:m?f:2*f,height:g?p:2*p})),!T&&e.createElement("clipPath",{id:"clipPath-dots-".concat(x)},e.createElement("rect",{x:s-M/2,y:l-M/2,width:f+M,height:p+M}))):null,!v&&this.renderCurve(w,x),this.renderErrorBar(w,x),(v||o)&&this.renderDots(w,T,x),(!h||d)&&nw.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(gk(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(gk(n),gk(r));return n}},{key:"renderDotItem",value:function(t,r){var n;if(e.isValidElement(t))n=e.cloneElement(t,r);else if(rt(t))n=t(r);else{var o=r.key,i=dk(r,hk),a=j("recharts-line-dot","boolean"!=typeof t?t.className:"");n=e.createElement(WO,vk({key:o},i,{className:a}))}return n}}],n&&xk(r.prototype,n),i&&xk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function Tk(t){"@babel/helpers - typeof";return Tk="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},Tk(t)}function Mk(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,Rk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _k(t,e,r){return e=Ik(e),function(t,e){if(e&&("object"===Tk(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,Ck()?Reflect.construct(e,r||[],Ik(t).constructor):e.apply(t,r))}function Ck(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ck=function(){return!!t})()}function Ik(t){return Ik=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ik(t)}function Dk(t,e){return Dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dk(t,e)}function Nk(t,e,r){return(e=Rk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rk(t){var e=function(t,e){if("object"!=Tk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Tk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Tk(e)?e:e+""}function Bk(){return Bk=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},Bk.apply(this,arguments)}function Lk(e){var r=e.xAxisId,n=BA(),o=LA(),i=NA(r);return null==i?null:t.createElement(HE,Bk({},i,{className:j("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(t){return tg(t,!0)}}))}Ak(kk,"displayName","Line"),Ak(kk,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ls,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Ak(kk,"getComposedData",function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return mk({points:u.map(function(t,e){var u=Hm(t,a);return"horizontal"===s?{x:lg({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:Ge(u)?null:n.scale(u),value:u,payload:t}:{x:Ge(u)?null:r.scale(u),y:lg({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}}),layout:s},l)});var $k=function(){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_k(this,e,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&&Dk(t,e)}(e,t.Component),Mk(e,[{key:"render",value:function(){return t.createElement(Lk,this.props)}}])}();function zk(t){"@babel/helpers - typeof";return zk="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},zk(t)}function Fk(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,Hk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uk(t,e,r){return e=Wk(e),function(t,e){if(e&&("object"===zk(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,qk()?Reflect.construct(e,r||[],Wk(t).constructor):e.apply(t,r))}function qk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(qk=function(){return!!t})()}function Wk(t){return Wk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wk(t)}function Vk(t,e){return Vk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vk(t,e)}function Xk(t,e,r){return(e=Hk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hk(t){var e=function(t,e){if("object"!=zk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=zk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==zk(e)?e:e+""}function Kk(){return Kk=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},Kk.apply(this,arguments)}Nk($k,"displayName","XAxis"),Nk($k,"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 Gk=function(e){var r=e.yAxisId,n=BA(),o=LA(),i=RA(r);return null==i?null:t.createElement(HE,Kk({},i,{className:j("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(t){return tg(t,!0)}}))},Yk=function(){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Uk(this,e,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&&Vk(t,e)}(e,t.Component),Fk(e,[{key:"render",value:function(){return t.createElement(Gk,this.props)}}])}();function Zk(t){return function(t){if(Array.isArray(t))return Jk(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 Jk(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 Jk(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 Jk(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}Xk(Yk,"displayName","YAxis"),Xk(Yk,"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 Qk=function(t,e,r,n,o){var i=zr(t,QA),a=zr(t,fE),c=[].concat(Zk(i),Zk(a)),u=zr(t,jE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce(function(t,e){if(e.props[l]===r&&vP(e.props,"extendDomain")&&yr(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"),h="".concat(s,"2");f=u.reduce(function(t,e){if(e.props[l]===r&&vP(e.props,"extendDomain")&&yr(e.props[p])&&yr(e.props[h])){var n=e.props[p],o=e.props[h];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 yr(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f},tT={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,h=s.length;for(l=0;l<h;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];if(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}(tT);var eT=new(m(tT.exports)),rT="recharts.syncMouseEvents";function nT(t){"@babel/helpers - typeof";return nT="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},nT(t)}function oT(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,aT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function iT(t,e,r){return(e=aT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aT(t){var e=function(t,e){if("object"!=nT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=nT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==nT(e)?e:e+""}var cT=function(){return oT(function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),iT(this,"activeIndex",0),iT(this,"coordinateList",[]),iT(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 uT(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[Ag(e,r,n,o),Ag(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function lT(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 uT(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=Ag(c,u,l,f),h=Ag(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function sT(t){"@babel/helpers - typeof";return sT="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},sT(t)}function fT(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 pT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fT(Object(r),!0).forEach(function(e){hT(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fT(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function hT(t,e,r){var n;return n=function(t,e){if("object"!=sT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==sT(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yT(t){var e,n,o,i=t.element,a=t.tooltipEventType,c=t.isActive,u=t.activeCoordinate,l=t.activePayload,s=t.offset,f=t.activeTooltipIndex,y=t.tooltipAxisBandSize,d=t.layout,v=t.chartName,b=null!==(e=i.props.cursor)&&void 0!==e?e:null===(n=i.type.defaultProps)||void 0===n?void 0:n.cursor;if(!i||!b||!c||!u||"ScatterChart"!==v&&"axis"!==a)return null;var m=Sw;if("ScatterChart"===v)o=u,m=JO;else if("BarChart"===v)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}}(d,u,s,y),m=DO;else if("radial"===d){var g=uT(u),w=g.cx,x=g.cy,O=g.radius;o={cx:w,cy:x,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:O,outerRadius:O},m=pw}else o={points:lT(d,u,s)},m=Sw;var S=pT(pT(pT(pT({stroke:"#ccc",pointerEvents:"none"},s),o),Wr(b,!1)),{},{payload:l,payloadIndex:f,className:j("recharts-tooltip-cursor",b.className)});return r(b)?p(b,S):h(m,S)}var dT=["item"],vT=["children","className","width","height","style","compact","title","desc"];function bT(t){"@babel/helpers - typeof";return bT="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},bT(t)}function mT(){return mT=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},mT.apply(this,arguments)}function gT(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(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||ET(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 wT(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 xT(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,CT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function OT(t,e,r){return e=ST(e),function(t,e){if(e&&("object"===bT(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,jT()?Reflect.construct(e,r||[],ST(t).constructor):e.apply(t,r))}function jT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(jT=function(){return!!t})()}function ST(t){return ST=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ST(t)}function PT(t,e){return PT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},PT(t,e)}function AT(t){return function(t){if(Array.isArray(t))return kT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ET(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 ET(t,e){if(t){if("string"==typeof t)return kT(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)?kT(t,e):void 0}}function kT(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 TT(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 MT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?TT(Object(r),!0).forEach(function(e){_T(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TT(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _T(t,e,r){return(e=CT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CT(t){var e=function(t,e){if("object"!=bT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=bT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bT(e)?e:e+""}var IT={xAxis:["bottom","top"],yAxis:["left","right"]},DT={width:"100%",height:"100%"},NT={x:0,y:0};function RT(t){return t}var BT=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(AT(t),AT(r)):t},[]);return i.length>0?i:t&&t.length&&yr(n)&&yr(o)?t.slice(n,o+1):[]};function LT(t){return"number"===t?[0,"auto"]:void 0}var $T=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=BT(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=xr(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(AT(o),[bg(c,l)]):o},[])},zT=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(pr(s-l)!==pr(f-s)){var h=[];if(pr(f-s)===pr(c[1]-c[0])){p=f;var y=s+c[1]-c[0];h[0]=Math.min(y,(y+l)/2),h[1]=Math.max(y,(y+l)/2)}else{p=l;var d=f+c[1]-c[0];h[0]=Math.min(s,(d+s)/2),h[1]=Math.max(s,(d+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var b=Math.min(l,f),m=Math.max(l,f);if(t>(b+s)/2&&t<=(m+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=$T(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 MT(MT(MT({},n),Ag(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return MT(MT(MT({},n),Ag(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return NT}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},FT=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=Jm(l,o);return r.reduce(function(e,r){var h,y=void 0!==r.type.defaultProps?MT(MT({},r.type.defaultProps),r.props):r.props,d=y.type,v=y.dataKey,b=y.allowDataOverflow,m=y.allowDuplicatedCategory,g=y.scale,w=y.ticks,x=y.includeHidden,O=y[i];if(e[O])return e;var j,S,P,A=BT(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])===O}),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&&yr(n)&&yr(o))return!0}return!1})(y.domain,b,d)&&(j=yg(y.domain,null,b),!p||"number"!==d&&"auto"===g||(P=Km(A,v,"category")));var k=LT(d);if(!j||0===j.length){var T,M=null!==(T=y.domain)&&void 0!==T?T:k;if(v){if(j=Km(A,v,d),"category"===d&&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}(j);m&&_?(S=j,j=WS(0,E)):m||(j=vg(M,j,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(AT(t),[e])},[]))}else if("category"===d)j=m?j.filter(function(t){return""!==t&&!Ge(t)}):vg(M,j,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||Ge(e)?t:[].concat(AT(t),[e])},[]);else if("number"===d){var C=function(t,e,r,n,o){var i=e.map(function(e){return Ym(t,e,r,o,n)}).filter(function(t){return!Ge(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===O&&(x||!o)}),v,o,l);C&&(j=C)}!p||"number"!==d&&"auto"===g||(P=Km(A,v,"category"))}else j=p?WS(0,E):a&&a[O]&&a[O].hasStack&&"number"===d?"expand"===f?[0,1]:fg(a[O].stackGroups,c,u):Zm(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===O&&(x||!r)}),d,l,!0);if("number"===d)j=Qk(s,j,O,o,w),M&&(j=yg(M,j,b));else if("category"===d&&M){var I=M;j.every(function(t){return I.indexOf(t)>=0})&&(j=I)}}return MT(MT({},e),{},_T({},O,MT(MT({},y),{},{axisType:o,domain:j,categoricalDomain:P,duplicateDomain:S,originalDomain:null!==(h=y.domain)&&void 0!==h?h:k,isCategorical:p,layout:l})))},{})},UT=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=zr(l,o),p={};return f&&f.length?p=FT(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=BT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=Jm(l,o),y=-1;return r.reduce(function(t,e){var d,v=(void 0!==e.type.defaultProps?MT(MT({},e.type.defaultProps),e.props):e.props)[i],b=LT("number");return t[v]?t:(y++,h?d=WS(0,p):a&&a[v]&&a[v].hasStack?(d=fg(a[v].stackGroups,c,u),d=Qk(s,d,v,o)):(d=yg(b,Zm(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),d=Qk(s,d,v,o)),MT(MT({},t),{},_T({},v,MT(MT({axisType:o},n.defaultProps),{},{hide:!0,orientation:Ke(IT,"".concat(o,".").concat(y%2),null),domain:d,originalDomain:b,isCategorical:h,layout:l}))))},{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},qT=function(t){var e=t.children,r=t.defaultShowTooltip,n=Fr(e,uP),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)}},WT=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"}},VT=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=Fr(l,uP),p=Fr(l,pl),h=Object.keys(a).reduce(function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:MT(MT({},t),{},_T({},n,t[n]+r.width))},{left:s.left||0,right:s.right||0}),y=Object.keys(o).reduce(function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:MT(MT({},t),{},_T({},n,Ke(t,"".concat(n))+r.height))},{top:s.top||0,bottom:s.bottom||0}),d=MT(MT({},y),h),v=d.bottom;f&&(d.bottom+=f.props.height||uP.defaultProps.height),p&&e&&(d=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=zm({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,y=u.layout;if(("vertical"===y||"horizontal"===y&&"middle"===h)&&"center"!==p&&yr(t[p]))return Vm(Vm({},t),{},Xm({},p,t[p]+(s||0)));if(("horizontal"===y||"vertical"===y&&"center"===p)&&"middle"!==h&&yr(t[h]))return Vm(Vm({},t),{},Xm({},h,t[h]+(f||0)))}return t}(d,0,r,e));var b=c-d.left-d.right,m=u-d.top-d.bottom;return MT(MT({brushBottom:v},d),{},{width:Math.max(b,0),height:Math.max(m,0)})},XT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},HT=function(t){var n=t.chartName,o=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,u=t.validateTooltipEventTypes,l=void 0===u?["axis"]:u,s=t.axisComponents,f=t.legendContent,h=t.formatAxisMap,y=t.defaultProps,d=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,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,y=WT(l),d=y.numericAxisName,v=y.cateAxisName,b=function(t){return!(!t||!t.length)&&t.some(function(t){var e=Rr(t&&t.type);return e&&e.indexOf("Bar")>=0})}(r),m=[];return r.forEach(function(r,y){var g=BT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),w=void 0!==r.type.defaultProps?MT(MT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,j=w["".concat(d,"Id")],S=w["".concat(v,"Id")],P=s.reduce(function(t,n){var o,i,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?xm(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==r||null===(i=r.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):xm());var u=a[c];return MT(MT({},t),{},_T(_T({},n.axisType,u),"".concat(n.axisType,"Ticks"),tg(u)))},{}),A=P[v],E=P["".concat(v,"Ticks")],k=n&&n[j]&&n[j].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?Vm(Vm({},t.type.defaultProps),t.props):t.props).stackId;if(dr(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),T=Rr(r.type).indexOf("Bar")>=0,M=dg(A,E),_=[],C=b&&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 h=l[s[f]],y=h.items,d=h.cateAxisId,v=y.filter(function(t){return Rr(t.type).indexOf("Bar")>=0});if(v&&v.length){var b=v[0].type.defaultProps,m=void 0!==b?Vm(Vm({},b),v[0].props):v[0].props,g=m.barSize,w=m[d];i[w]||(i[w]=[]);var x=Ge(g)?e:g;i[w].push({item:v[0],stackList:v.slice(1),barSize:Ge(x)?void 0:mr(x,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:XT(P,v)});if(T){var I,D,N=Ge(O)?h:O,R=null!==(I=null!==(D=dg(A,E,!0))&&void 0!==D?D:N)&&void 0!==I?I:0;_=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=mr(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce(function(t,e){return t+e.barSize||0},0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var y={offset:((n-h)/2|0)-l,size:0};u=i.reduce(function(t,e){var r={item:e.item,position:{offset:y.offset+y.size+l,size:f?p:e.barSize}},n=[].concat(Um(t),[r]);return y=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:y})}),n},s)}else{var d=mr(r,n,0,!0);n-2*d-(c-1)*l<=0&&(l=0);var v=(n-2*d-(c-1)*l)/c;v>1&&(v>>=0);var b=a===+a?Math.min(v,a):v;u=i.reduce(function(t,e,r){var n=[].concat(Um(t),[{item:e.item,position:{offset:d+(v+l)*r+(v-b)/2,size:b}}]);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:f,barCategoryGap:p,bandSize:R!==M?R:M,sizeList:C[S],maxBarSize:N}),R!==M&&(_=_.map(function(t){return MT(MT({},t),{},{position:MT(MT({},t.position),{},{offset:t.position.offset-R/2})})}))}var B,L,$=r&&r.type&&r.type.getComposedData;$&&m.push({props:MT(MT({},$(MT(MT({},P),{},{displayedData:g,props:t,dataKey:x,item:r,bandSize:M,barPosition:_,offset:o,stackedData:k,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},_T(_T(_T({key:r.key||"item-".concat(y)},d,P[d]),v,P[v]),"animationId",i)),childIndex:(B=r,L=t.children,$r(L).indexOf(B)),item:r})}),m},b=function(t,e){var r=t.props,i=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Ur({props:r}))return null;var u=r.children,l=r.layout,f=r.stackOffset,p=r.data,y=r.reverseStackOrder,v=WT(l),b=v.numericAxisName,m=v.cateAxisName,g=zr(u,o),w=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?Vm(Vm({},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(dr(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[br("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Vm(Vm({},t),{},Xm({},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 Vm(Vm({},e),{},Xm({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:cg(t,a.items,o)}))},{})),Vm(Vm({},e),{},Xm({},i,c))},{})}(p,g,"".concat(b,"Id"),"".concat(m,"Id"),f,y),x=s.reduce(function(t,e){var n="".concat(e.axisType,"Map");return MT(MT({},t),{},_T({},n,UT(r,MT(MT({},e),{},{graphicalItems:g,stackGroups:e.axisType===b&&w,dataStartIndex:i,dataEndIndex:a}))))},{}),O=VT(MT(MT({},x),{},{props:r,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(x).forEach(function(t){x[t]=h(r,x[t],O,t.replace("Map",""),n)});var j,S,P=x["".concat(m,"Map")],A=(j=gr(P),{tooltipTicks:S=tg(j,!1,!0),orderedTooltipTicks:fs(S,function(t){return t.coordinate}),tooltipAxis:j,tooltipAxisBandSize:dg(j,S)}),E=d(r,MT(MT({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:c,graphicalItems:g,stackGroups:w,offset:O}));return MT(MT({formattedGraphicalItems:E,graphicalItems:g,offset:O,stackGroups:w},A),x)},m=function(){function t(r){var o,i,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),_T(a=OT(this,t,[r]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_T(a,"accessibilityManager",new cT),_T(a,"handleLegendBBoxUpdate",function(t){if(t){var e=a.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;a.setState(MT({legendBBox:t},b({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:o},MT(MT({},a.state),{},{legendBBox:t}))))}}),_T(a,"handleReceiveSyncEvent",function(t,e,r){if(a.props.syncId===t){if(r===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(e)}}),_T(a,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState(function(){return MT({dataStartIndex:e,dataEndIndex:r},b({props:a.props,dataStartIndex:e,dataEndIndex:r,updateId:n},a.state))}),a.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),_T(a,"handleMouseEnter",function(t){var e=a.getMouseInfo(t);if(e){var r=MT(MT({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;rt(n)&&n(r,t)}}),_T(a,"triggeredAfterMouseMove",function(t){var e=a.getMouseInfo(t),r=e?MT(MT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;rt(n)&&n(r,t)}),_T(a,"handleItemMouseEnter",function(t){a.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),_T(a,"handleItemMouseLeave",function(){a.setState(function(){return{isTooltipActive:!1}})}),_T(a,"handleMouseMove",function(t){t.persist(),a.throttleTriggeredAfterMouseMove(t)}),_T(a,"handleMouseLeave",function(t){a.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};a.setState(e),a.triggerSyncEvent(e);var r=a.props.onMouseLeave;rt(r)&&r(e,t)}),_T(a,"handleOuterEvent",function(t){var e,r=function(t){var e=t&&t.type;return e&&Nr[e]?Nr[e]:null}(t),n=Ke(a.props,"".concat(r));r&&rt(n)&&n(null!==(e=/.*touch.*/i.test(r)?a.getMouseInfo(t.changedTouches[0]):a.getMouseInfo(t))&&void 0!==e?e:{},t)}),_T(a,"handleClick",function(t){var e=a.getMouseInfo(t);if(e){var r=MT(MT({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;rt(n)&&n(r,t)}}),_T(a,"handleMouseDown",function(t){var e=a.props.onMouseDown;rt(e)&&e(a.getMouseInfo(t),t)}),_T(a,"handleMouseUp",function(t){var e=a.props.onMouseUp;rt(e)&&e(a.getMouseInfo(t),t)}),_T(a,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),_T(a,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseDown(t.changedTouches[0])}),_T(a,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseUp(t.changedTouches[0])}),_T(a,"handleDoubleClick",function(t){var e=a.props.onDoubleClick;rt(e)&&e(a.getMouseInfo(t),t)}),_T(a,"handleContextMenu",function(t){var e=a.props.onContextMenu;rt(e)&&e(a.getMouseInfo(t),t)}),_T(a,"triggerSyncEvent",function(t){void 0!==a.props.syncId&&eT.emit(rT,a.props.syncId,t,a.eventEmitterSymbol)}),_T(a,"applySyncEvent",function(t){var e=a.props,r=e.layout,n=e.syncMethod,o=a.state.updateId,i=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)a.setState(MT({dataStartIndex:i,dataEndIndex:c},b({props:a.props,dataStartIndex:i,dataEndIndex:c,updateId:o},a.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=a.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var d=MT(MT({},p),{},{x:p.left,y:p.top}),v=Math.min(u,d.x+d.width),m=Math.min(l,d.y+d.height),g=h[s]&&h[s].value,w=$T(a.state,a.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:v,y:"horizontal"===r?m:h[s].coordinate}:NT;a.setState(MT(MT({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else a.setState(t)}),_T(a,"renderCursor",function(t){var r,o=a.state,i=o.isTooltipActive,c=o.activeCoordinate,u=o.activePayload,l=o.offset,s=o.activeTooltipIndex,f=o.tooltipAxisBandSize,p=a.getTooltipEventType(),h=null!==(r=t.props.active)&&void 0!==r?r:i,y=a.props.layout,d=t.key||"_recharts-cursor";return e.createElement(yT,{key:d,activeCoordinate:c,activePayload:u,activeTooltipIndex:s,chartName:n,element:t,isActive:h,layout:y,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})}),_T(a,"renderPolarAxis",function(t,e,r){var n=Ke(t,"type.axisType"),o=Ke(a.state,"".concat(n,"Map")),i=t.type.defaultProps,c=void 0!==i?MT(MT({},i),t.props):t.props,u=o&&o[c["".concat(n,"Id")]];return p(t,MT(MT({},u),{},{className:j(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:tg(u,!0)}))}),_T(a,"renderPolarGrid",function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,i=a.state,c=i.radiusAxisMap,u=i.angleAxisMap,l=gr(c),s=gr(u),f=s.cx,h=s.cy,y=s.innerRadius,d=s.outerRadius;return p(t,{polarAngles:Array.isArray(n)?n:tg(s,!0).map(function(t){return t.coordinate}),polarRadius:Array.isArray(o)?o:tg(l,!0).map(function(t){return t.coordinate}),cx:f,cy:h,innerRadius:y,outerRadius:d,key:t.key||"polar-grid",radialLines:r})}),_T(a,"renderLegend",function(){var t=a.state.formattedGraphicalItems,e=a.props,r=e.children,n=e.width,o=e.height,i=a.props.margin||{},c=n-(i.left||0)-(i.right||0),u=zm({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:f});if(!u)return null;var l=u.item,s=wT(u,dT);return p(l,MT(MT({},s),{},{chartWidth:n,chartHeight:o,margin:i,onBBoxUpdate:a.handleLegendBBoxUpdate}))}),_T(a,"renderTooltip",function(){var t,e=a.props,r=e.children,n=e.accessibilityLayer,o=Fr(r,Ys);if(!o)return null;var i=a.state,c=i.isTooltipActive,u=i.activeCoordinate,l=i.activePayload,s=i.activeLabel,f=i.offset,h=null!==(t=o.props.active)&&void 0!==t?t:c;return p(o,{viewBox:MT(MT({},f),{},{x:f.left,y:f.top}),active:h,label:s,payload:h?l:[],coordinate:u,accessibilityLayer:n})}),_T(a,"renderBrush",function(t){var e=a.props,r=e.margin,n=e.data,o=a.state,i=o.offset,c=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return p(t,{key:t.key||"_recharts-brush",onChange:rg(a.handleBrushChange,t.props.onChange),data:n,x:yr(t.props.x)?t.props.x:i.left,y:yr(t.props.y)?t.props.y:i.top+i.height+i.brushBottom-(r.bottom||0),width:yr(t.props.width)?t.props.width:i.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})}),_T(a,"renderReferenceElement",function(t,e,r){if(!t)return null;var n=a.clipPathId,o=a.state,i=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,h=void 0===f?l.xAxisId:f,y=s.yAxisId,d=void 0===y?l.yAxisId:y;return p(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:i[h],yAxis:c[d],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})}),_T(a,"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?MT(MT({},r.item.type.defaultProps),r.item.props):r.item.props,s=l.activeDot,f=MT(MT({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Gm(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Wr(s,!1)),Tr(s));return c.push(t.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(i))),o?c.push(t.renderActiveDot(s,MT(MT({},f),{},{cx:o.x,cy:o.y}),"".concat(u,"-basePoint-").concat(i))):a&&c.push(null),c}),_T(a,"renderGraphicChild",function(t,e,r){var n=a.filterFormatItem(t,e,r);if(!n)return null;var o=a.getTooltipEventType(),i=a.state,c=i.isTooltipActive,u=i.tooltipAxis,l=i.activeTooltipIndex,s=i.activeLabel,f=Fr(a.props.children,Ys),h=n.props,y=h.points,d=h.isRange,v=h.baseLine,b=void 0!==n.item.type.defaultProps?MT(MT({},n.item.type.defaultProps),n.item.props):n.item.props,m=b.activeDot,g=b.hide,w=b.activeBar,x=b.activeShape,O=Boolean(!g&&c&&f&&(m||w||x)),j={};"axis"!==o&&f&&"click"===f.props.trigger?j={onClick:rg(a.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(j={onMouseLeave:rg(a.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:rg(a.handleItemMouseEnter,t.props.onMouseEnter)});var S=p(t,MT(MT({},n.props),j));if(O){if(!(l>=0)){var P,A=(null!==(P=a.getItemByXY(a.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:S}).graphicalItem,E=A.item,k=void 0===E?t:E,T=A.childIndex,M=MT(MT(MT({},n.props),j),{},{activeIndex:T});return[p(k,M),null,null]}var _,C;if(u.dataKey&&!u.allowDuplicatedCategory){var I="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());_=xr(y,I,s),C=d&&v&&xr(v,I,s)}else _=null==y?void 0:y[l],C=d&&v&&v[l];if(x||w){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[p(t,MT(MT(MT({},n.props),j),{},{activeIndex:D})),null,null]}if(!Ge(_))return[S].concat(AT(a.renderActivePoints({item:n,activePoint:_,basePoint:C,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]}),_T(a,"renderCustomized",function(t,e,r){return p(t,MT(MT({key:"recharts-customized-".concat(r)},a.props),a.state))}),_T(a,"renderMap",{CartesianGrid:{handler:RT,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:RT},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:RT},YAxis:{handler:RT},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(o=r.id)&&void 0!==o?o:br("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=wf(a.triggeredAfterMouseMove,null!==(i=r.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}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&&PT(t,e)}(t,v),xT(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=Fr(e,Ys);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=$T(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=MT(MT({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(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}});return null}},{key:"componentDidUpdate",value:function(t){Vr([Fr(t.children,Ys)],[Fr(this.props.children,Ys)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Fr(this.props.children,Ys);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:c}return c}},{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,f=this.getTooltipEventType(),p=zT(this.state,this.props.data,this.props.layout,c);if("axis"!==f&&l&&s){var h=gr(l).scale,y=gr(s).scale,d=h&&h.invert?h.invert(i.chartX):null,v=y&&y.invert?y.invert(i.chartY):null;return MT(MT({},i),{},{xValue:d,yValue:v},p)}return p?MT(MT({},i),p):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=gr(u);return Mg({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Fr(t,Ys),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),MT(MT({},Tr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){eT.on(rT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){eT.removeListener(rT,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===Rr(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,r=this.state.offset,n=r.left,o=r.top,i=r.height,a=r.width;return e.createElement("defs",null,e.createElement("clipPath",{id:t},e.createElement("rect",{x:n,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=gT(e,2),n=r[0],o=r[1];return MT(MT({},t),{},_T({},n,o.scale))},{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=gT(e,2),n=r[0],o=r[1];return MT(MT({},t),{},_T({},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?MT(MT({},u.type.defaultProps),u.props):u.props,s=Rr(u.type);if("Bar"===s){var f=(c.data||[]).find(function(e){return CO(t,e)});if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find(function(e){return Mg(t,e)});if(p)return{graphicalItem:a,payload:p}}else if(bS(a,n)||mS(a,n)||gS(a,n)){var h=jS({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),y=void 0===l.activeIndex?h:l.activeIndex;return{graphicalItem:MT(MT({},a),{},{childIndex:y}),payload:gS(a,n)?l.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Ur(this))return null;var r,n,o=this.props,i=o.children,a=o.className,c=o.width,u=o.height,l=o.style,s=o.compact,f=o.title,p=o.desc,h=wT(o,vT),y=Wr(h,!1);if(s)return e.createElement(IA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},e.createElement(Zr,mT({},y,{width:c,height:u,title:f,desc:p}),this.renderClipPath(),Hr(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 d=this.parseEventsOfWrapper();return e.createElement(IA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},e.createElement("div",mT({className:j("recharts-wrapper",a),style:MT({position:"relative",cursor:"default",width:c,height:u},l)},d,{ref:function(e){t.container=e}}),e.createElement(Zr,mT({},y,{width:c,height:u,title:f,desc:p,style:DT}),this.renderClipPath(),Hr(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();_T(m,"displayName",n),_T(m,"defaultProps",MT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},y)),_T(m,"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=qT(t);return MT(MT(MT({},p),{},{updateId:0},b(MT(MT({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||!jr(l,e.prevMargin)){var h=qT(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=MT(MT({},zT(e,n,c)),{},{updateId:e.updateId+1}),v=MT(MT(MT({},h),y),d);return MT(MT(MT({},v),b(MT({props:t},v),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!Vr(o,e.prevChildren)){var m,g,w,x,O=Fr(o,uP),j=O&&null!==(m=null===(g=O.props)||void 0===g?void 0:g.startIndex)&&void 0!==m?m:s,S=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,P=j!==s||S!==f,A=!Ge(n)&&!P?e.updateId:e.updateId+1;return MT(MT({updateId:A},b(MT(MT({props:t},e),{},{updateId:A,dataStartIndex:j,dataEndIndex:S}),e)),{},{prevChildren:o,dataStartIndex:j,dataEndIndex:S})}return null}),_T(m,"renderActiveDot",function(t,n,o){var i;return i=r(t)?p(t,n):rt(t)?t(n):e.createElement(WO,n),e.createElement(en,{className:"recharts-active-dot",key:o},i)});var g=i(function(t,r){return e.createElement(m,mT({},t,{ref:r}))});return g.displayName=m.displayName,g},KT=HT({chartName:"LineChart",GraphicalChild:kk,axisComponents:[{axisType:"xAxis",AxisComp:$k},{axisType:"yAxis",AxisComp:Yk}],formatAxisMap:lA}),GT=HT({chartName:"BarChart",GraphicalChild:rA,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:$k},{axisType:"yAxis",AxisComp:Yk}],formatAxisMap:lA}),YT=HT({chartName:"PieChart",GraphicalChild:NS,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Bj},{axisType:"radiusAxis",AxisComp:jj}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=mr(t.cx,i,i/2),s=mr(t.cy,a,a/2),f=Eg(i,a,r),p=mr(t.innerRadius,f,0),h=mr(t.outerRadius,f,.8*f);return Object.keys(e).reduce(function(t,r){var i,a=e[r],f=a.domain,y=a.reversed;if(Ge(a.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[p,h]),y&&(i=[i[1],i[0]]);else{var d=Og(i=a.range,2);c=d[0],u=d[1]}var v=ng(a,o),b=v.realScaleType,m=v.scale;m.domain(f).range(i),ig(m);var g=ug(m,wg(wg({},a),{},{realScaleType:b})),w=wg(wg(wg({},a),g),{},{range:i,radius:h,realScaleType:b,scale:m,cx:l,cy:s,innerRadius:p,outerRadius:h,startAngle:c,endAngle:u});return wg(wg({},t),{},xg({},r,w))},{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const ZT=t=>{const r=Math.PI/180,{cx:n,cy:o,midAngle:i,innerRadius:a,outerRadius:c,startAngle:u,endAngle:l,fill:s,payload:f,percent:p,value:h}=t,y=Math.sin(-r*i),d=Math.cos(-r*i),v=n+(c+10)*d,b=o+(c+10)*y,m=n+(c+30)*d,g=o+(c+30)*y,w=m+22*(d>=0?1:-1),x=g,O=d>=0?"start":"end";return e.createElement("g",null,e.createElement("text",{x:n,y:o,dy:8,textAnchor:"middle",fill:s},f.name),e.createElement(pw,{cx:n,cy:o,innerRadius:a,outerRadius:c,startAngle:u,endAngle:l,fill:s}),e.createElement(pw,{cx:n,cy:o,startAngle:u,endAngle:l,innerRadius:c+6,outerRadius:c+10,fill:s}),e.createElement("path",{d:`M${v},${b}L${m},${g}L${w},${x}`,stroke:s,fill:"none"}),e.createElement("circle",{cx:w,cy:x,r:2,fill:s,stroke:"none"}),e.createElement("text",{x:w+12*(d>=0?1:-1),y:x,textAnchor:O,fill:"#333"},`${h}`),e.createElement("text",{x:w+12*(d>=0?1:-1),y:x,dy:18,textAnchor:O,fill:"var(--dark-button-color)"},`(${(100*p).toFixed(2)}%)`))},JT=({id:t,className:r,type:n="bar",layout:o="vertical",barSize:i=24,barGap:a=16,barMaxValue:c,indexes:l=[],x:s,y:f,data:p=[],tooltipFormatter:h})=>{const[y,d]=u(0);return e.createElement(Ef,{id:t,className:x("gyramais-chart",`gyramais-chart-${n}`,r),width:"100%",height:"100%"},"bar"===n?e.createElement(GT,{barSize:i,barGap:a,layout:o,data:p},e.createElement(fk,null),e.createElement($k,{fontSize:12,hide:"horizontal"===o,type:"horizontal"===o?"category":"number",domain:c&&"horizontal"===o?void 0:[0,c||"auto"]}),e.createElement(Yk,{fontSize:12,hide:"vertical"===o,type:"vertical"===o?"category":"number",domain:c&&"vertical"===o?void 0:[0,c||"auto"]}),e.createElement(Ys,{contentStyle:{borderRadius:12},labelStyle:{display:"none"},cursor:{fill:"#00000011"},formatter:h}),e.createElement(pl,{align:"vertical"===o?"left":"right",verticalAlign:"top",iconType:"square",iconSize:12,wrapperStyle:{paddingBottom:16}}),l.map((t,r)=>e.createElement(rA,{key:`${t}-${r}`,name:t.name,dataKey:t.key,stackId:t.stackId,fill:`var(--primary-button-color-${r}00)`,radius:"vertical"===o?[0,4,4,0]:[4,4,0,0]}))):"pie"===n?e.createElement(YT,null,e.createElement(NS,{activeIndex:y,activeShape:ZT,onMouseEnter:(t,e)=>d(e),data:p,dataKey:"value",cx:"50%",cy:"50%",outerRadius:90,innerRadius:70,fill:"var(--primary-button-color)"})):"line"===n?e.createElement(KT,{data:p},s&&e.createElement($k,{fontSize:12,dataKey:s.key,tickFormatter:s.formatter}),f?.indexes?.[0]&&e.createElement(Yk,{fontSize:12,dataKey:f.indexes[0].key,tickFormatter:f.formatter}),e.createElement(Ys,{contentStyle:{borderRadius:12},labelStyle:{display:"none"},cursor:{fill:"#00000011"},formatter:h}),(f?.indexes||[]).map(({key:t,name:r,color:n},o)=>e.createElement(kk,{key:`${t}-${o}`,type:"linear",dataKey:t,name:r,stroke:n||`var(--primary-button-color-${o}00)`,strokeWidth:2}))):e.createElement("div",null))};export{JT as Chart};
|
|
29
|
+
//# sourceMappingURL=index.js.map
|