import{j as S}from"./vendor-ui-CUslpDkL.js";import{L as pt,h as yi,d as fe,r as L,R as P,i as Am,j as Sm}from"./vendor-react-Dg0Tra3e.js";import{c as ks,u as Wp,s as at,A as Uc,S as Ii,U as ki,l as gn,m as Q,P as ne,H as zp,j as _m,B as Co,n as Pm,C as $m,b as jm,o as mi}from"./index-CJqEbhJN.js";import{a as Tm}from"./useShows-ZYYtFbPs.js";import{u as _n}from"./vendor-query-CN1EccJz.js";import{S as Em}from"./SEOBreadcrumbs-D0bs6Ngm.js";import{C as Wc,a as zc}from"./card-BSxrPlO5.js";import{T as Mm}from"./trophy-boV7oWzg.js";import{u as Cm}from"./useIndexNow-C3dRJY1T.js";import{R as Nm}from"./refresh-cw-CVvHhQZs.js";import{A as qc}from"./arrow-left-DtOv4JyO.js";import{F as Im}from"./film-B3I-fyoz.js";import{f as km}from"./format-BrSaXzvW.js";import"./vendor-supabase-yzuDJZPy.js";import"./vendor-motion-CiNtJfg1.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const No=ks("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dm=ks("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gi=ks("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);function Rm({genres:e,currentShowId:t,studioName:r}){const{t:n}=Wp(),{data:i=[]}=_n({queryKey:["related-by-genre",e?.[0],t],queryFn:async()=>{if(!e?.length)return[];const{data:o,error:u}=await at.from("shows").select("id, slug, title_english, title_romaji, poster_url, rating, genres").contains("genres",[e[0]]).neq("id",t).order("popularity",{ascending:!1}).limit(6);if(u)throw u;return o||[]},enabled:!!e?.length}),{data:a=[]}=_n({queryKey:["same-studio",r,t],queryFn:async()=>{if(!r)return[];const{data:o}=await at.from("studios").select("id").eq("name",r).single();if(!o)return[];const{data:u}=await at.from("show_studios").select("show_id").eq("studio_id",o.id).limit(10);if(!u?.length)return[];const s=u.map(f=>f.show_id).filter(f=>f!==t);if(!s.length)return[];const{data:c}=await at.from("shows").select("id, slug, title_english, title_romaji, poster_url, rating").in("id",s).limit(4);return c||[]},enabled:!!r});return i.length===0&&a.length===0?null:S.jsxs("section",{className:"mt-12 space-y-8",children:[i.length>0&&S.jsxs("div",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-4",children:[S.jsx("h2",{className:"text-2xl font-bold",children:n("shows.moreGenre",{genre:e[0]})||`More ${e[0]} Anime`}),S.jsxs(pt,{to:`/genre/${e[0].toLowerCase().replace(/\s+/g,"-")}`,className:"text-primary hover:underline flex items-center gap-1 text-sm",children:["View All ",S.jsx(Uc,{className:"w-4 h-4"})]})]}),S.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-4",children:i.map(o=>S.jsx(pt,{to:`/shows/${o.slug||o.id}`,children:S.jsxs(Wc,{className:"overflow-hidden hover:scale-105 transition-transform duration-300 border-0 bg-card/50",children:[S.jsxs("div",{className:"aspect-[2/3] relative",children:[S.jsx("img",{src:o.poster_url||"/placeholder.svg",alt:o.title_english||o.title_romaji||"Anime",className:"w-full h-full object-cover",loading:"lazy"}),o.rating&&S.jsxs("div",{className:"absolute top-2 right-2 bg-background/80 backdrop-blur-sm rounded-full px-2 py-1 flex items-center gap-1",children:[S.jsx(Ii,{className:"w-3 h-3 text-yellow-400 fill-yellow-400"}),S.jsx("span",{className:"text-xs font-semibold",children:o.rating.toFixed(1)})]})]}),S.jsx(zc,{className:"p-2",children:S.jsx("p",{className:"text-sm font-medium line-clamp-2 hover:text-primary transition-colors",children:o.title_english||o.title_romaji})})]})},o.id))})]}),a.length>0&&r&&S.jsxs("div",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-4",children:[S.jsx("h2",{className:"text-2xl font-bold",children:n("shows.moreFromStudio",{studio:r})||`More from ${r}`}),S.jsxs(pt,{to:`/studio/${r.toLowerCase().replace(/\s+/g,"-")}`,className:"text-primary hover:underline flex items-center gap-1 text-sm",children:["View All ",S.jsx(Uc,{className:"w-4 h-4"})]})]}),S.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:a.map(o=>S.jsx(pt,{to:`/shows/${o.slug||o.id}`,children:S.jsxs(Wc,{className:"overflow-hidden hover:scale-105 transition-transform duration-300 border-0 bg-card/50",children:[S.jsxs("div",{className:"aspect-[2/3] relative",children:[S.jsx("img",{src:o.poster_url||"/placeholder.svg",alt:o.title_english||o.title_romaji||"Anime",className:"w-full h-full object-cover",loading:"lazy"}),o.rating&&S.jsxs("div",{className:"absolute top-2 right-2 bg-background/80 backdrop-blur-sm rounded-full px-2 py-1 flex items-center gap-1",children:[S.jsx(Ii,{className:"w-3 h-3 text-yellow-400 fill-yellow-400"}),S.jsx("span",{className:"text-xs font-semibold",children:o.rating.toFixed(1)})]})]}),S.jsx(zc,{className:"p-2",children:S.jsx("p",{className:"text-sm font-medium line-clamp-2 hover:text-primary transition-colors",children:o.title_english||o.title_romaji})})]})},o.id))})]})]})}function Lm({showId:e}){const{data:t,isLoading:r}=_n({queryKey:["show-characters",e],queryFn:async()=>{const{data:o,error:u}=await at.from("show_characters").select(`
          role,
          voice_actor_name,
          voice_actor_image,
          characters (
            id,
            name_full,
            name_native,
            image_url,
            slug
          )
        `).eq("show_id",e).order("role",{ascending:!0});if(u)throw u;return o||[]},enabled:!!e});if(!r&&(!t||t.length===0))return null;const n=t?.filter(o=>o.role==="MAIN")||[],i=t?.filter(o=>o.role!=="MAIN")||[],a=[...n,...i].slice(0,8);return S.jsxs("section",{className:"mt-12",children:[S.jsxs("h2",{className:"text-2xl font-bold mb-6 flex items-center gap-3",children:[S.jsx(ki,{className:"w-6 h-6 text-primary"}),"Featured Characters"]}),r?S.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[...Array(4)].map((o,u)=>S.jsxs("div",{className:"glass-card p-3",children:[S.jsx(gn,{className:"w-full aspect-[3/4] rounded-lg mb-3"}),S.jsx(gn,{className:"h-4 w-3/4 mb-2"}),S.jsx(gn,{className:"h-3 w-1/2"})]},u))}):S.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:a.map(o=>S.jsxs(pt,{to:`/character/${o.characters.slug||o.characters.id}`,className:"glass-card-hover p-3 group",children:[S.jsxs("div",{className:"relative aspect-[3/4] overflow-hidden rounded-lg mb-3",children:[S.jsx("img",{src:o.characters.image_url||"https://via.placeholder.com/300x400?text=No+Image",alt:o.characters.name_full,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",loading:"lazy"}),o.role==="MAIN"&&S.jsx("span",{className:"absolute top-2 left-2 px-2 py-0.5 text-xs font-semibold rounded-full bg-primary text-primary-foreground",children:"Main"})]}),S.jsx("h3",{className:"font-semibold text-sm group-hover:text-primary transition-colors line-clamp-1",children:o.characters.name_full}),o.characters.name_native&&S.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1",children:o.characters.name_native}),o.voice_actor_name&&S.jsxs("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-1",children:["CV: ",o.voice_actor_name]})]},o.characters.id))}),t&&t.length>8&&S.jsx("div",{className:"mt-4 text-center",children:S.jsx(pt,{to:"/characters",className:"text-primary hover:underline text-sm",children:"View all characters →"})})]})}var Bm=Array.isArray,Be=Bm,Fm=typeof yi=="object"&&yi&&yi.Object===Object&&yi,qp=Fm,Um=qp,Wm=typeof self=="object"&&self&&self.Object===Object&&self,zm=Um||Wm||Function("return this")(),lt=zm,qm=lt,Hm=qm.Symbol,si=Hm,Hc=si,Hp=Object.prototype,Km=Hp.hasOwnProperty,Gm=Hp.toString,un=Hc?Hc.toStringTag:void 0;function Vm(e){var t=Km.call(e,un),r=e[un];try{e[un]=void 0;var n=!0}catch{}var i=Gm.call(e);return n&&(t?e[un]=r:delete e[un]),i}var Xm=Vm,Ym=Object.prototype,Zm=Ym.toString;function Jm(e){return Zm.call(e)}var Qm=Jm,Kc=si,eg=Xm,tg=Qm,rg="[object Null]",ng="[object Undefined]",Gc=Kc?Kc.toStringTag:void 0;function ig(e){return e==null?e===void 0?ng:rg:Gc&&Gc in Object(e)?eg(e):tg(e)}var St=ig;function ag(e){return e!=null&&typeof e=="object"}var _t=ag,og=St,ug=_t,sg="[object Symbol]";function cg(e){return typeof e=="symbol"||ug(e)&&og(e)==sg}var Xr=cg,lg=Be,fg=Xr,dg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pg=/^\w*$/;function hg(e,t){if(lg(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fg(e)?!0:pg.test(e)||!dg.test(e)||t!=null&&e in Object(t)}var Ds=hg;function vg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kt=vg;const Yr=fe(kt);var yg=St,mg=kt,gg="[object AsyncFunction]",bg="[object Function]",xg="[object GeneratorFunction]",wg="[object Proxy]";function Og(e){if(!mg(e))return!1;var t=yg(e);return t==bg||t==xg||t==gg||t==wg}var Rs=Og;const Y=fe(Rs);var Ag=lt,Sg=Ag["__core-js_shared__"],_g=Sg,Io=_g,Vc=function(){var e=/[^.]+$/.exec(Io&&Io.keys&&Io.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pg(e){return!!Vc&&Vc in e}var $g=Pg,jg=Function.prototype,Tg=jg.toString;function Eg(e){if(e!=null){try{return Tg.call(e)}catch{}try{return e+""}catch{}}return""}var Kp=Eg,Mg=Rs,Cg=$g,Ng=kt,Ig=Kp,kg=/[\\^$.*+?()[\]{}|]/g,Dg=/^\[object .+?Constructor\]$/,Rg=Function.prototype,Lg=Object.prototype,Bg=Rg.toString,Fg=Lg.hasOwnProperty,Ug=RegExp("^"+Bg.call(Fg).replace(kg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wg(e){if(!Ng(e)||Cg(e))return!1;var t=Mg(e)?Ug:Dg;return t.test(Ig(e))}var zg=Wg;function qg(e,t){return e?.[t]}var Hg=qg,Kg=zg,Gg=Hg;function Vg(e,t){var r=Gg(e,t);return Kg(r)?r:void 0}var ur=Vg,Xg=ur,Yg=Xg(Object,"create"),Ia=Yg,Xc=Ia;function Zg(){this.__data__=Xc?Xc(null):{},this.size=0}var Jg=Zg;function Qg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var eb=Qg,tb=Ia,rb="__lodash_hash_undefined__",nb=Object.prototype,ib=nb.hasOwnProperty;function ab(e){var t=this.__data__;if(tb){var r=t[e];return r===rb?void 0:r}return ib.call(t,e)?t[e]:void 0}var ob=ab,ub=Ia,sb=Object.prototype,cb=sb.hasOwnProperty;function lb(e){var t=this.__data__;return ub?t[e]!==void 0:cb.call(t,e)}var fb=lb,db=Ia,pb="__lodash_hash_undefined__";function hb(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=db&&t===void 0?pb:t,this}var vb=hb,yb=Jg,mb=eb,gb=ob,bb=fb,xb=vb;function Zr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zr.prototype.clear=yb;Zr.prototype.delete=mb;Zr.prototype.get=gb;Zr.prototype.has=bb;Zr.prototype.set=xb;var wb=Zr;function Ob(){this.__data__=[],this.size=0}var Ab=Ob;function Sb(e,t){return e===t||e!==e&&t!==t}var Ls=Sb,_b=Ls;function Pb(e,t){for(var r=e.length;r--;)if(_b(e[r][0],t))return r;return-1}var ka=Pb,$b=ka,jb=Array.prototype,Tb=jb.splice;function Eb(e){var t=this.__data__,r=$b(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Tb.call(t,r,1),--this.size,!0}var Mb=Eb,Cb=ka;function Nb(e){var t=this.__data__,r=Cb(t,e);return r<0?void 0:t[r][1]}var Ib=Nb,kb=ka;function Db(e){return kb(this.__data__,e)>-1}var Rb=Db,Lb=ka;function Bb(e,t){var r=this.__data__,n=Lb(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Fb=Bb,Ub=Ab,Wb=Mb,zb=Ib,qb=Rb,Hb=Fb;function Jr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Jr.prototype.clear=Ub;Jr.prototype.delete=Wb;Jr.prototype.get=zb;Jr.prototype.has=qb;Jr.prototype.set=Hb;var Da=Jr,Kb=ur,Gb=lt,Vb=Kb(Gb,"Map"),Bs=Vb,Yc=wb,Xb=Da,Yb=Bs;function Zb(){this.size=0,this.__data__={hash:new Yc,map:new(Yb||Xb),string:new Yc}}var Jb=Zb;function Qb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var e0=Qb,t0=e0;function r0(e,t){var r=e.__data__;return t0(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ra=r0,n0=Ra;function i0(e){var t=n0(this,e).delete(e);return this.size-=t?1:0,t}var a0=i0,o0=Ra;function u0(e){return o0(this,e).get(e)}var s0=u0,c0=Ra;function l0(e){return c0(this,e).has(e)}var f0=l0,d0=Ra;function p0(e,t){var r=d0(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var h0=p0,v0=Jb,y0=a0,m0=s0,g0=f0,b0=h0;function Qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qr.prototype.clear=v0;Qr.prototype.delete=y0;Qr.prototype.get=m0;Qr.prototype.has=g0;Qr.prototype.set=b0;var Fs=Qr,Gp=Fs,x0="Expected a function";function Us(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(x0);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Us.Cache||Gp),r}Us.Cache=Gp;var Vp=Us;const w0=fe(Vp);var O0=Vp,A0=500;function S0(e){var t=O0(e,function(n){return r.size===A0&&r.clear(),n}),r=t.cache;return t}var _0=S0,P0=_0,$0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j0=/\\(\\)?/g,T0=P0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($0,function(r,n,i,a){t.push(i?a.replace(j0,"$1"):n||r)}),t}),E0=T0;function M0(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ws=M0,Zc=si,C0=Ws,N0=Be,I0=Xr,k0=1/0,Jc=Zc?Zc.prototype:void 0,Qc=Jc?Jc.toString:void 0;function Xp(e){if(typeof e=="string")return e;if(N0(e))return C0(e,Xp)+"";if(I0(e))return Qc?Qc.call(e):"";var t=e+"";return t=="0"&&1/e==-k0?"-0":t}var D0=Xp,R0=D0;function L0(e){return e==null?"":R0(e)}var Yp=L0,B0=Be,F0=Ds,U0=E0,W0=Yp;function z0(e,t){return B0(e)?e:F0(e,t)?[e]:U0(W0(e))}var Zp=z0,q0=Xr,H0=1/0;function K0(e){if(typeof e=="string"||q0(e))return e;var t=e+"";return t=="0"&&1/e==-H0?"-0":t}var La=K0,G0=Zp,V0=La;function X0(e,t){t=G0(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[V0(t[r++])];return r&&r==n?e:void 0}var zs=X0,Y0=zs;function Z0(e,t,r){var n=e==null?void 0:Y0(e,t);return n===void 0?r:n}var Jp=Z0;const qe=fe(Jp);function J0(e){return e==null}var Q0=J0;const ee=fe(Q0);var ex=St,tx=Be,rx=_t,nx="[object String]";function ix(e){return typeof e=="string"||!tx(e)&&rx(e)&&ex(e)==nx}var ax=ix;const rr=fe(ax);var Qp={exports:{}},ae={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qs=Symbol.for("react.element"),Hs=Symbol.for("react.portal"),Ba=Symbol.for("react.fragment"),Fa=Symbol.for("react.strict_mode"),Ua=Symbol.for("react.profiler"),Wa=Symbol.for("react.provider"),za=Symbol.for("react.context"),ox=Symbol.for("react.server_context"),qa=Symbol.for("react.forward_ref"),Ha=Symbol.for("react.suspense"),Ka=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Va=Symbol.for("react.lazy"),ux=Symbol.for("react.offscreen"),eh;eh=Symbol.for("react.module.reference");function Je(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qs:switch(e=e.type,e){case Ba:case Ua:case Fa:case Ha:case Ka:return e;default:switch(e=e&&e.$$typeof,e){case ox:case za:case qa:case Va:case Ga:case Wa:return e;default:return t}}case Hs:return t}}}ae.ContextConsumer=za;ae.ContextProvider=Wa;ae.Element=qs;ae.ForwardRef=qa;ae.Fragment=Ba;ae.Lazy=Va;ae.Memo=Ga;ae.Portal=Hs;ae.Profiler=Ua;ae.StrictMode=Fa;ae.Suspense=Ha;ae.SuspenseList=Ka;ae.isAsyncMode=function(){return!1};ae.isConcurrentMode=function(){return!1};ae.isContextConsumer=function(e){return Je(e)===za};ae.isContextProvider=function(e){return Je(e)===Wa};ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qs};ae.isForwardRef=function(e){return Je(e)===qa};ae.isFragment=function(e){return Je(e)===Ba};ae.isLazy=function(e){return Je(e)===Va};ae.isMemo=function(e){return Je(e)===Ga};ae.isPortal=function(e){return Je(e)===Hs};ae.isProfiler=function(e){return Je(e)===Ua};ae.isStrictMode=function(e){return Je(e)===Fa};ae.isSuspense=function(e){return Je(e)===Ha};ae.isSuspenseList=function(e){return Je(e)===Ka};ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ba||e===Ua||e===Fa||e===Ha||e===Ka||e===ux||typeof e=="object"&&e!==null&&(e.$$typeof===Va||e.$$typeof===Ga||e.$$typeof===Wa||e.$$typeof===za||e.$$typeof===qa||e.$$typeof===eh||e.getModuleId!==void 0)};ae.typeOf=Je;Qp.exports=ae;var sx=Qp.exports,cx=St,lx=_t,fx="[object Number]";function dx(e){return typeof e=="number"||lx(e)&&cx(e)==fx}var th=dx;const px=fe(th);var hx=th;function vx(e){return hx(e)&&e!=+e}var yx=vx;const ci=fe(yx);var Ne=function(t){return t===0?0:t>0?1:-1},Yt=function(t){return rr(t)&&t.indexOf("%")===t.length-1},F=function(t){return px(t)&&!ci(t)},mx=function(t){return ee(t)},_e=function(t){return F(t)||rr(t)},gx=0,li=function(t){var r=++gx;return"".concat(t||"").concat(r)},Ie=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!F(t)&&!rr(t))return n;var a;if(Yt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return ci(a)&&(a=n),i&&a>r&&(a=r),a},vr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},bx=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Et=function(t,r){return F(t)&&F(r)?function(n){return t+n*(r-t)}:function(){return r}};function su(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):qe(n,t))===r})}var xx=function(t,r){return F(t)&&F(r)?t-r:rr(t)&&rr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function wr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}var wx=["viewBox","children"],Ox=["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"],el=["points","pathLength"],ko={svg:wx,polygon:el,polyline:el},Ks=["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"],Di=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(L.isValidElement(t)&&(n=t.props),!Yr(n))return null;var i={};return Object.keys(n).forEach(function(a){Ks.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Ax=function(t,r,n){return function(i){return t(r,n,i),null}},nr=function(t,r,n){if(!Yr(t)||cu(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Ks.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Ax(o,r,n))}),i},Sx=["children"],_x=["children"];function tl(e,t){if(e==null)return{};var r=Px(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Px(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var rl={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"},yt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},nl=null,Do=null,Gs=function e(t){if(t===nl&&Array.isArray(Do))return Do;var r=[];return L.Children.forEach(t,function(n){ee(n)||(sx.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Do=r,nl=t,r};function Ye(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return yt(i)}):n=[yt(t)],Gs(e).forEach(function(i){var a=qe(i,"type.displayName")||qe(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function We(e,t){var r=Ye(e,t);return r&&r[0]}var il=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!F(n)||n<=0||!F(i)||i<=0)},$x=["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"],jx=function(t){return t&&t.type&&rr(t.type)&&$x.indexOf(t.type)>=0},Tx=function(t,r,n,i){var a,o=(a=ko?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||Ox.includes(r))||n&&Ks.includes(r)},X=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(L.isValidElement(t)&&(i=t.props),!Yr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;Tx((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},lu=function e(t,r){if(t===r)return!0;var n=L.Children.count(t);if(n!==L.Children.count(r))return!1;if(n===0)return!0;if(n===1)return al(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!al(a,o))return!1}return!0},al=function(t,r){if(ee(t)&&ee(r))return!0;if(!ee(t)&&!ee(r)){var n=t.props||{},i=n.children,a=tl(n,Sx),o=r.props||{},u=o.children,s=tl(o,_x);return i&&u?wr(a,s)&&lu(i,u):!i&&!u?wr(a,s):!1}return!1},ol=function(t,r){var n=[],i={};return Gs(t).forEach(function(a,o){if(jx(a))n.push(a);else if(a){var u=yt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},Ex=function(t){var r=t&&t.type;return r&&rl[r]?rl[r]:null},Mx=function(t,r){return Gs(r).indexOf(t)},Cx=["children","width","height","viewBox","className","style","title","desc"];function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fu.apply(this,arguments)}function Nx(e,t){if(e==null)return{};var r=Ix(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ix(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function du(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=Nx(e,Cx),f=i||{width:r,height:n,x:0,y:0},l=Q("recharts-surface",a);return P.createElement("svg",fu({},X(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,s),t)}var kx=["children","className"];function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pu.apply(this,arguments)}function Dx(e,t){if(e==null)return{};var r=Rx(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ie=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=Dx(e,kx),a=Q("recharts-layer",n);return P.createElement("g",pu({className:a},X(i,!0),{ref:t}),r)}),mt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function Lx(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var Bx=Lx,Fx=Bx;function Ux(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Fx(e,t,r)}var Wx=Ux,zx="\\ud800-\\udfff",qx="\\u0300-\\u036f",Hx="\\ufe20-\\ufe2f",Kx="\\u20d0-\\u20ff",Gx=qx+Hx+Kx,Vx="\\ufe0e\\ufe0f",Xx="\\u200d",Yx=RegExp("["+Xx+zx+Gx+Vx+"]");function Zx(e){return Yx.test(e)}var rh=Zx;function Jx(e){return e.split("")}var Qx=Jx,nh="\\ud800-\\udfff",ew="\\u0300-\\u036f",tw="\\ufe20-\\ufe2f",rw="\\u20d0-\\u20ff",nw=ew+tw+rw,iw="\\ufe0e\\ufe0f",aw="["+nh+"]",hu="["+nw+"]",vu="\\ud83c[\\udffb-\\udfff]",ow="(?:"+hu+"|"+vu+")",ih="[^"+nh+"]",ah="(?:\\ud83c[\\udde6-\\uddff]){2}",oh="[\\ud800-\\udbff][\\udc00-\\udfff]",uw="\\u200d",uh=ow+"?",sh="["+iw+"]?",sw="(?:"+uw+"(?:"+[ih,ah,oh].join("|")+")"+sh+uh+")*",cw=sh+uh+sw,lw="(?:"+[ih+hu+"?",hu,ah,oh,aw].join("|")+")",fw=RegExp(vu+"(?="+vu+")|"+lw+cw,"g");function dw(e){return e.match(fw)||[]}var pw=dw,hw=Qx,vw=rh,yw=pw;function mw(e){return vw(e)?yw(e):hw(e)}var gw=mw,bw=Wx,xw=rh,ww=gw,Ow=Yp;function Aw(e){return function(t){t=Ow(t);var r=xw(t)?ww(t):void 0,n=r?r[0]:t.charAt(0),i=r?bw(r,1).join(""):t.slice(1);return n[e]()+i}}var Sw=Aw,_w=Sw,Pw=_w("toUpperCase"),$w=Pw;const Xa=fe($w);function ce(e){return function(){return e}}const ch=Math.cos,Ri=Math.sin,it=Math.sqrt,Li=Math.PI,Ya=2*Li,yu=Math.PI,mu=2*yu,Kt=1e-6,jw=mu-Kt;function lh(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Tw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lh;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Ew{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?lh:Tw(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Kt)if(!(Math.abs(l*s-c*f)>Kt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,h=s*s+c*c,v=p*p+y*y,x=Math.sqrt(h),w=Math.sqrt(d),b=a*Math.tan((yu-Math.acos((h+d-v)/(2*x*w)))/2),O=b/w,m=b/x;Math.abs(O-1)>Kt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Kt||Math.abs(this._y1-f)>Kt)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%mu+mu),d>jw?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>Kt&&this._append`A${n},${n},0,${+(d>=yu)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Vs(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Ew(t)}function Xs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function fh(e){this._context=e}fh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Za(e){return new fh(e)}function dh(e){return e[0]}function ph(e){return e[1]}function hh(e,t){var r=ce(!0),n=null,i=Za,a=null,o=Vs(u);e=typeof e=="function"?e:e===void 0?dh:ce(e),t=typeof t=="function"?t:t===void 0?ph:ce(t);function u(s){var c,f=(s=Xs(s)).length,l,d=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ce(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:ce(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:ce(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function bi(e,t,r){var n=null,i=ce(!0),a=null,o=Za,u=null,s=Vs(c);e=typeof e=="function"?e:e===void 0?dh:ce(+e),t=typeof t=="function"?t:ce(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ph:ce(+r);function c(l){var d,p,y,h=(l=Xs(l)).length,v,x=!1,w,b=new Array(h),O=new Array(h);for(a==null&&(u=o(w=s())),d=0;d<=h;++d){if(!(d<h&&i(v=l[d],d,l))===x)if(x=!x)p=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=p;--y)u.point(b[y],O[y]);u.lineEnd(),u.areaEnd()}x&&(b[d]=+e(v,d,l),O[d]=+t(v,d,l),u.point(n?+n(v,d,l):b[d],r?+r(v,d,l):O[d]))}if(w)return u=null,w+""||null}function f(){return hh().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:ce(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ce(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ce(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:ce(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ce(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ce(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ce(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class vh{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Mw(e){return new vh(e,!0)}function Cw(e){return new vh(e,!1)}const Ys={draw(e,t){const r=it(t/Li);e.moveTo(r,0),e.arc(0,0,r,0,Ya)}},Nw={draw(e,t){const r=it(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},yh=it(1/3),Iw=yh*2,kw={draw(e,t){const r=it(t/Iw),n=r*yh;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Dw={draw(e,t){const r=it(t),n=-r/2;e.rect(n,n,r,r)}},Rw=.8908130915292852,mh=Ri(Li/10)/Ri(7*Li/10),Lw=Ri(Ya/10)*mh,Bw=-ch(Ya/10)*mh,Fw={draw(e,t){const r=it(t*Rw),n=Lw*r,i=Bw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ya*a/5,u=ch(o),s=Ri(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},Ro=it(3),Uw={draw(e,t){const r=-it(t/(Ro*3));e.moveTo(0,r*2),e.lineTo(-Ro*r,-r),e.lineTo(Ro*r,-r),e.closePath()}},He=-.5,Ke=it(3)/2,gu=1/it(12),Ww=(gu/2+1)*3,zw={draw(e,t){const r=it(t/Ww),n=r/2,i=r*gu,a=n,o=r*gu+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(He*n-Ke*i,Ke*n+He*i),e.lineTo(He*a-Ke*o,Ke*a+He*o),e.lineTo(He*u-Ke*s,Ke*u+He*s),e.lineTo(He*n+Ke*i,He*i-Ke*n),e.lineTo(He*a+Ke*o,He*o-Ke*a),e.lineTo(He*u+Ke*s,He*s-Ke*u),e.closePath()}};function qw(e,t){let r=null,n=Vs(i);e=typeof e=="function"?e:ce(e||Ys),t=typeof t=="function"?t:ce(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ce(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ce(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Bi(){}function Fi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function gh(e){this._context=e}gh.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:Fi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Fi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hw(e){return new gh(e)}function bh(e){this._context=e}bh.prototype={areaStart:Bi,areaEnd:Bi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Fi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Kw(e){return new bh(e)}function xh(e){this._context=e}xh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Fi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gw(e){return new xh(e)}function wh(e){this._context=e}wh.prototype={areaStart:Bi,areaEnd:Bi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Vw(e){return new wh(e)}function ul(e){return e<0?-1:1}function sl(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(ul(a)+ul(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function cl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Lo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Ui(e){this._context=e}Ui.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:Lo(this,this._t0,cl(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Lo(this,cl(this,r=sl(this,e,t)),r);break;default:Lo(this,this._t0,r=sl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Oh(e){this._context=new Ah(e)}(Oh.prototype=Object.create(Ui.prototype)).point=function(e,t){Ui.prototype.point.call(this,t,e)};function Ah(e){this._context=e}Ah.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Xw(e){return new Ui(e)}function Yw(e){return new Oh(e)}function Sh(e){this._context=e}Sh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=ll(e),i=ll(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function ll(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Zw(e){return new Sh(e)}function Ja(e,t){this._context=e,this._t=t}Ja.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Jw(e){return new Ja(e,.5)}function Qw(e){return new Ja(e,0)}function e1(e){return new Ja(e,1)}function _r(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function bu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function t1(e,t){return e[t]}function r1(e){const t=[];return t.key=e,t}function n1(){var e=ce([]),t=bu,r=_r,n=t1;function i(a){var o=Array.from(e.apply(this,arguments),r1),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Xs(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ce(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ce(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?bu:typeof a=="function"?a:ce(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??_r,i):r},i}function i1(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}_r(e,t)}}function a1(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}_r(e,t)}}function o1(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,d=f[n-1][1]||0,p=(l-d)/2,y=0;y<u;++y){var h=e[t[y]],v=h[n][1]||0,x=h[n-1][1]||0;p+=v-x}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,_r(e,t)}}function Pn(e){"@babel/helpers - typeof";return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(e)}var u1=["type","size","sizeType"];function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xu.apply(this,arguments)}function fl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fl(Object(r),!0).forEach(function(n){s1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s1(e,t,r){return t=c1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c1(e){var t=l1(e,"string");return Pn(t)=="symbol"?t:t+""}function l1(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f1(e,t){if(e==null)return{};var r=d1(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _h={symbolCircle:Ys,symbolCross:Nw,symbolDiamond:kw,symbolSquare:Dw,symbolStar:Fw,symbolTriangle:Uw,symbolWye:zw},p1=Math.PI/180,h1=function(t){var r="symbol".concat(Xa(t));return _h[r]||Ys},v1=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*p1;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},y1=function(t,r){_h["symbol".concat(Xa(t))]=r},Zs=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=f1(t,u1),c=dl(dl({},s),{},{type:n,size:a,sizeType:u}),f=function(){var v=h1(n),x=qw().type(v).size(v1(a,u,n));return x()},l=c.className,d=c.cx,p=c.cy,y=X(c,!0);return d===+d&&p===+p&&a===+a?P.createElement("path",xu({},y,{className:Q("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};Zs.registerSymbol=y1;function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wu.apply(this,arguments)}function pl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function m1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pl(Object(r),!0).forEach(function(n){$n(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$h(n.key),n)}}function x1(e,t,r){return t&&b1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w1(e,t,r){return t=Wi(t),O1(e,Ph()?Reflect.construct(t,r||[],Wi(e).constructor):t.apply(e,r))}function O1(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A1(e)}function A1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ph(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ph=function(){return!!e})()}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wi(e)}function S1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ou(e,t)}function Ou(e,t){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ou(e,t)}function $n(e,t,r){return t=$h(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $h(e){var t=_1(e,"string");return Pr(t)=="symbol"?t:t+""}function _1(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ge=32,Js=function(e){function t(){return g1(this,t),w1(this,t,arguments)}return S1(t,e),x1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ge/2,o=Ge/6,u=Ge/3,s=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ge,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
            H`).concat(Ge,"M").concat(2*u,",").concat(a,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ge/8,"h").concat(Ge,"v").concat(Ge*3/4,"h").concat(-Ge,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var c=m1({},n);return delete c.legendIcon,P.cloneElement(n.legendIcon,c)}return P.createElement(Zs,{fill:s,cx:a,cy:a,size:Ge,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Ge,height:Ge},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var h=p.formatter||s,v=Q($n($n({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var x=Y(p.value)?null:p.value;mt(!Y(p.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 w=p.inactive?c:p.color;return P.createElement("li",wu({className:v,style:l,key:"legend-item-".concat(y)},nr(n.props,p,y)),P.createElement(du,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},h?h(x,p,y):x))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(L.PureComponent);$n(Js,"displayName","Legend");$n(Js,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var P1=Da;function $1(){this.__data__=new P1,this.size=0}var j1=$1;function T1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var E1=T1;function M1(e){return this.__data__.get(e)}var C1=M1;function N1(e){return this.__data__.has(e)}var I1=N1,k1=Da,D1=Bs,R1=Fs,L1=200;function B1(e,t){var r=this.__data__;if(r instanceof k1){var n=r.__data__;if(!D1||n.length<L1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new R1(n)}return r.set(e,t),this.size=r.size,this}var F1=B1,U1=Da,W1=j1,z1=E1,q1=C1,H1=I1,K1=F1;function en(e){var t=this.__data__=new U1(e);this.size=t.size}en.prototype.clear=W1;en.prototype.delete=z1;en.prototype.get=q1;en.prototype.has=H1;en.prototype.set=K1;var jh=en,G1="__lodash_hash_undefined__";function V1(e){return this.__data__.set(e,G1),this}var X1=V1;function Y1(e){return this.__data__.has(e)}var Z1=Y1,J1=Fs,Q1=X1,eO=Z1;function zi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new J1;++t<r;)this.add(e[t])}zi.prototype.add=zi.prototype.push=Q1;zi.prototype.has=eO;var Th=zi;function tO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Eh=tO;function rO(e,t){return e.has(t)}var Mh=rO,nO=Th,iO=Eh,aO=Mh,oO=1,uO=2;function sO(e,t,r,n,i,a){var o=r&oO,u=e.length,s=t.length;if(u!=s&&!(o&&s>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var l=-1,d=!0,p=r&uO?new nO:void 0;for(a.set(e,t),a.set(t,e);++l<u;){var y=e[l],h=t[l];if(n)var v=o?n(h,y,l,t,e,a):n(y,h,l,e,t,a);if(v!==void 0){if(v)continue;d=!1;break}if(p){if(!iO(t,function(x,w){if(!aO(p,w)&&(y===x||i(y,x,r,n,a)))return p.push(w)})){d=!1;break}}else if(!(y===h||i(y,h,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var Ch=sO,cO=lt,lO=cO.Uint8Array,fO=lO;function dO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var pO=dO;function hO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Qs=hO,hl=si,vl=fO,vO=Ls,yO=Ch,mO=pO,gO=Qs,bO=1,xO=2,wO="[object Boolean]",OO="[object Date]",AO="[object Error]",SO="[object Map]",_O="[object Number]",PO="[object RegExp]",$O="[object Set]",jO="[object String]",TO="[object Symbol]",EO="[object ArrayBuffer]",MO="[object DataView]",yl=hl?hl.prototype:void 0,Bo=yl?yl.valueOf:void 0;function CO(e,t,r,n,i,a,o){switch(r){case MO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case EO:return!(e.byteLength!=t.byteLength||!a(new vl(e),new vl(t)));case wO:case OO:case _O:return vO(+e,+t);case AO:return e.name==t.name&&e.message==t.message;case PO:case jO:return e==t+"";case SO:var u=mO;case $O:var s=n&bO;if(u||(u=gO),e.size!=t.size&&!s)return!1;var c=o.get(e);if(c)return c==t;n|=xO,o.set(e,t);var f=yO(u(e),u(t),n,i,a,o);return o.delete(e),f;case TO:if(Bo)return Bo.call(e)==Bo.call(t)}return!1}var NO=CO;function IO(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Nh=IO,kO=Nh,DO=Be;function RO(e,t,r){var n=t(e);return DO(e)?n:kO(n,r(e))}var LO=RO;function BO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var FO=BO;function UO(){return[]}var WO=UO,zO=FO,qO=WO,HO=Object.prototype,KO=HO.propertyIsEnumerable,ml=Object.getOwnPropertySymbols,GO=ml?function(e){return e==null?[]:(e=Object(e),zO(ml(e),function(t){return KO.call(e,t)}))}:qO,VO=GO;function XO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var YO=XO,ZO=St,JO=_t,QO="[object Arguments]";function eA(e){return JO(e)&&ZO(e)==QO}var tA=eA,gl=tA,rA=_t,Ih=Object.prototype,nA=Ih.hasOwnProperty,iA=Ih.propertyIsEnumerable,aA=gl(function(){return arguments}())?gl:function(e){return rA(e)&&nA.call(e,"callee")&&!iA.call(e,"callee")},ec=aA,qi={exports:{}};function oA(){return!1}var uA=oA;qi.exports;(function(e,t){var r=lt,n=uA,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(qi,qi.exports);var kh=qi.exports,sA=9007199254740991,cA=/^(?:0|[1-9]\d*)$/;function lA(e,t){var r=typeof e;return t=t??sA,!!t&&(r=="number"||r!="symbol"&&cA.test(e))&&e>-1&&e%1==0&&e<t}var tc=lA,fA=9007199254740991;function dA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fA}var rc=dA,pA=St,hA=rc,vA=_t,yA="[object Arguments]",mA="[object Array]",gA="[object Boolean]",bA="[object Date]",xA="[object Error]",wA="[object Function]",OA="[object Map]",AA="[object Number]",SA="[object Object]",_A="[object RegExp]",PA="[object Set]",$A="[object String]",jA="[object WeakMap]",TA="[object ArrayBuffer]",EA="[object DataView]",MA="[object Float32Array]",CA="[object Float64Array]",NA="[object Int8Array]",IA="[object Int16Array]",kA="[object Int32Array]",DA="[object Uint8Array]",RA="[object Uint8ClampedArray]",LA="[object Uint16Array]",BA="[object Uint32Array]",pe={};pe[MA]=pe[CA]=pe[NA]=pe[IA]=pe[kA]=pe[DA]=pe[RA]=pe[LA]=pe[BA]=!0;pe[yA]=pe[mA]=pe[TA]=pe[gA]=pe[EA]=pe[bA]=pe[xA]=pe[wA]=pe[OA]=pe[AA]=pe[SA]=pe[_A]=pe[PA]=pe[$A]=pe[jA]=!1;function FA(e){return vA(e)&&hA(e.length)&&!!pe[pA(e)]}var UA=FA;function WA(e){return function(t){return e(t)}}var Dh=WA,Hi={exports:{}};Hi.exports;(function(e,t){var r=qp,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(Hi,Hi.exports);var zA=Hi.exports,qA=UA,HA=Dh,bl=zA,xl=bl&&bl.isTypedArray,KA=xl?HA(xl):qA,Rh=KA,GA=YO,VA=ec,XA=Be,YA=kh,ZA=tc,JA=Rh,QA=Object.prototype,eS=QA.hasOwnProperty;function tS(e,t){var r=XA(e),n=!r&&VA(e),i=!r&&!n&&YA(e),a=!r&&!n&&!i&&JA(e),o=r||n||i||a,u=o?GA(e.length,String):[],s=u.length;for(var c in e)(t||eS.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ZA(c,s)))&&u.push(c);return u}var rS=tS,nS=Object.prototype;function iS(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nS;return e===r}var aS=iS;function oS(e,t){return function(r){return e(t(r))}}var Lh=oS,uS=Lh,sS=uS(Object.keys,Object),cS=sS,lS=aS,fS=cS,dS=Object.prototype,pS=dS.hasOwnProperty;function hS(e){if(!lS(e))return fS(e);var t=[];for(var r in Object(e))pS.call(e,r)&&r!="constructor"&&t.push(r);return t}var vS=hS,yS=Rs,mS=rc;function gS(e){return e!=null&&mS(e.length)&&!yS(e)}var Qa=gS,bS=rS,xS=vS,wS=Qa;function OS(e){return wS(e)?bS(e):xS(e)}var nc=OS,AS=LO,SS=VO,_S=nc;function PS(e){return AS(e,_S,SS)}var $S=PS,wl=$S,jS=1,TS=Object.prototype,ES=TS.hasOwnProperty;function MS(e,t,r,n,i,a){var o=r&jS,u=wl(e),s=u.length,c=wl(t),f=c.length;if(s!=f&&!o)return!1;for(var l=s;l--;){var d=u[l];if(!(o?d in t:ES.call(t,d)))return!1}var p=a.get(e),y=a.get(t);if(p&&y)return p==t&&y==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=o;++l<s;){d=u[l];var x=e[d],w=t[d];if(n)var b=o?n(w,x,d,t,e,a):n(x,w,d,e,t,a);if(!(b===void 0?x===w||i(x,w,r,n,a):b)){h=!1;break}v||(v=d=="constructor")}if(h&&!v){var O=e.constructor,m=t.constructor;O!=m&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof m=="function"&&m instanceof m)&&(h=!1)}return a.delete(e),a.delete(t),h}var CS=MS,NS=ur,IS=lt,kS=NS(IS,"DataView"),DS=kS,RS=ur,LS=lt,BS=RS(LS,"Promise"),FS=BS,US=ur,WS=lt,zS=US(WS,"Set"),Bh=zS,qS=ur,HS=lt,KS=qS(HS,"WeakMap"),GS=KS,Au=DS,Su=Bs,_u=FS,Pu=Bh,$u=GS,Fh=St,tn=Kp,Ol="[object Map]",VS="[object Object]",Al="[object Promise]",Sl="[object Set]",_l="[object WeakMap]",Pl="[object DataView]",XS=tn(Au),YS=tn(Su),ZS=tn(_u),JS=tn(Pu),QS=tn($u),Gt=Fh;(Au&&Gt(new Au(new ArrayBuffer(1)))!=Pl||Su&&Gt(new Su)!=Ol||_u&&Gt(_u.resolve())!=Al||Pu&&Gt(new Pu)!=Sl||$u&&Gt(new $u)!=_l)&&(Gt=function(e){var t=Fh(e),r=t==VS?e.constructor:void 0,n=r?tn(r):"";if(n)switch(n){case XS:return Pl;case YS:return Ol;case ZS:return Al;case JS:return Sl;case QS:return _l}return t});var e_=Gt,Fo=jh,t_=Ch,r_=NO,n_=CS,$l=e_,jl=Be,Tl=kh,i_=Rh,a_=1,El="[object Arguments]",Ml="[object Array]",xi="[object Object]",o_=Object.prototype,Cl=o_.hasOwnProperty;function u_(e,t,r,n,i,a){var o=jl(e),u=jl(t),s=o?Ml:$l(e),c=u?Ml:$l(t);s=s==El?xi:s,c=c==El?xi:c;var f=s==xi,l=c==xi,d=s==c;if(d&&Tl(e)){if(!Tl(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new Fo),o||i_(e)?t_(e,t,r,n,i,a):r_(e,t,s,r,n,i,a);if(!(r&a_)){var p=f&&Cl.call(e,"__wrapped__"),y=l&&Cl.call(t,"__wrapped__");if(p||y){var h=p?e.value():e,v=y?t.value():t;return a||(a=new Fo),i(h,v,r,n,a)}}return d?(a||(a=new Fo),n_(e,t,r,n,i,a)):!1}var s_=u_,c_=s_,Nl=_t;function Uh(e,t,r,n,i){return e===t?!0:e==null||t==null||!Nl(e)&&!Nl(t)?e!==e&&t!==t:c_(e,t,r,n,Uh,i)}var ic=Uh,l_=jh,f_=ic,d_=1,p_=2;function h_(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var u=r[i];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=r[i];var s=u[0],c=e[s],f=u[1];if(o&&u[2]){if(c===void 0&&!(s in e))return!1}else{var l=new l_;if(n)var d=n(c,f,s,e,t,l);if(!(d===void 0?f_(f,c,d_|p_,n,l):d))return!1}}return!0}var v_=h_,y_=kt;function m_(e){return e===e&&!y_(e)}var Wh=m_,g_=Wh,b_=nc;function x_(e){for(var t=b_(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,g_(i)]}return t}var w_=x_;function O_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var zh=O_,A_=v_,S_=w_,__=zh;function P_(e){var t=S_(e);return t.length==1&&t[0][2]?__(t[0][0],t[0][1]):function(r){return r===e||A_(r,e,t)}}var $_=P_;function j_(e,t){return e!=null&&t in Object(e)}var T_=j_,E_=Zp,M_=ec,C_=Be,N_=tc,I_=rc,k_=La;function D_(e,t,r){t=E_(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=k_(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&I_(i)&&N_(o,i)&&(C_(e)||M_(e)))}var R_=D_,L_=T_,B_=R_;function F_(e,t){return e!=null&&B_(e,t,L_)}var U_=F_,W_=ic,z_=Jp,q_=U_,H_=Ds,K_=Wh,G_=zh,V_=La,X_=1,Y_=2;function Z_(e,t){return H_(e)&&K_(t)?G_(V_(e),t):function(r){var n=z_(r,e);return n===void 0&&n===t?q_(r,e):W_(t,n,X_|Y_)}}var J_=Z_;function Q_(e){return e}var rn=Q_;function eP(e){return function(t){return t?.[e]}}var tP=eP,rP=zs;function nP(e){return function(t){return rP(t,e)}}var iP=nP,aP=tP,oP=iP,uP=Ds,sP=La;function cP(e){return uP(e)?aP(sP(e)):oP(e)}var lP=cP,fP=$_,dP=J_,pP=rn,hP=Be,vP=lP;function yP(e){return typeof e=="function"?e:e==null?pP:typeof e=="object"?hP(e)?dP(e[0],e[1]):fP(e):vP(e)}var Dt=yP;function mP(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var gP=mP;function bP(e){return e!==e}var xP=bP;function wP(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var OP=wP,AP=gP,SP=xP,_P=OP;function PP(e,t,r){return t===t?_P(e,t,r):AP(e,SP,r)}var $P=PP,jP=$P;function TP(e,t){var r=e==null?0:e.length;return!!r&&jP(e,t,0)>-1}var EP=TP;function MP(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var CP=MP;function NP(){}var IP=NP,Uo=Bh,kP=IP,DP=Qs,RP=1/0,LP=Uo&&1/DP(new Uo([,-0]))[1]==RP?function(e){return new Uo(e)}:kP,BP=LP,FP=Th,UP=EP,WP=CP,zP=Mh,qP=BP,HP=Qs,KP=200;function GP(e,t,r){var n=-1,i=UP,a=e.length,o=!0,u=[],s=u;if(r)o=!1,i=WP;else if(a>=KP){var c=t?null:qP(e);if(c)return HP(c);o=!1,i=zP,s=new FP}else s=t?[]:u;e:for(;++n<a;){var f=e[n],l=t?t(f):f;if(f=r||f!==0?f:0,o&&l===l){for(var d=s.length;d--;)if(s[d]===l)continue e;t&&s.push(l),u.push(f)}else i(s,l,r)||(s!==u&&s.push(l),u.push(f))}return u}var VP=GP,XP=Dt,YP=VP;function ZP(e,t){return e&&e.length?YP(e,XP(t)):[]}var JP=ZP;const Il=fe(JP);function qh(e,t,r){return t===!0?Il(e,r):Y(t)?Il(e,t):e}function $r(e){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}var QP=["ref"];function kl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kl(Object(r),!0).forEach(function(n){eo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kh(n.key),n)}}function t$(e,t,r){return t&&Dl(e.prototype,t),r&&Dl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r$(e,t,r){return t=Ki(t),n$(e,Hh()?Reflect.construct(t,r||[],Ki(e).constructor):t.apply(e,r))}function n$(e,t){if(t&&($r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i$(e)}function i$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hh=function(){return!!e})()}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}function a$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ju(e,t)}function ju(e,t){return ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ju(e,t)}function eo(e,t,r){return t=Kh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kh(e){var t=o$(e,"string");return $r(t)=="symbol"?t:t+""}function o$(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u$(e,t){if(e==null)return{};var r=s$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function c$(e){return e.value}function l$(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=u$(t,QP);return P.createElement(Js,r)}var Rl=1,Or=function(e){function t(){var r;e$(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=r$(this,t,[].concat(i)),eo(r,"lastBoundingBox",{width:-1,height:-1}),r}return a$(t,e),t$(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Rl||Math.abs(i.height-this.lastBoundingBox.height)>Rl)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ft({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return ft(ft({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=ft(ft({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},l$(a,ft(ft({},this.props),{},{payload:qh(f,c,c$)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ft(ft({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&F(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(L.PureComponent);eo(Or,"displayName","Legend");eo(Or,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ll=si,f$=ec,d$=Be,Bl=Ll?Ll.isConcatSpreadable:void 0;function p$(e){return d$(e)||f$(e)||!!(Bl&&e&&e[Bl])}var h$=p$,v$=Nh,y$=h$;function Gh(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=y$),i||(i=[]);++a<o;){var u=e[a];t>0&&r(u)?t>1?Gh(u,t-1,r,n,i):v$(i,u):n||(i[i.length]=u)}return i}var Vh=Gh;function m$(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),u=o.length;u--;){var s=o[e?u:++i];if(r(a[s],s,a)===!1)break}return t}}var g$=m$,b$=g$,x$=b$(),w$=x$,O$=w$,A$=nc;function S$(e,t){return e&&O$(e,t,A$)}var Xh=S$,_$=Qa;function P$(e,t){return function(r,n){if(r==null)return r;if(!_$(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var $$=P$,j$=Xh,T$=$$,E$=T$(j$),ac=E$,M$=ac,C$=Qa;function N$(e,t){var r=-1,n=C$(e)?Array(e.length):[];return M$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var Yh=N$;function I$(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var k$=I$,Fl=Xr;function D$(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Fl(e),o=t!==void 0,u=t===null,s=t===t,c=Fl(t);if(!u&&!c&&!a&&e>t||a&&o&&s&&!u&&!c||n&&o&&s||!r&&s||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||u&&r&&i||!o&&i||!s)return-1}return 0}var R$=D$,L$=R$;function B$(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,u=r.length;++n<o;){var s=L$(i[n],a[n]);if(s){if(n>=u)return s;var c=r[n];return s*(c=="desc"?-1:1)}}return e.index-t.index}var F$=B$,Wo=Ws,U$=zs,W$=Dt,z$=Yh,q$=k$,H$=Dh,K$=F$,G$=rn,V$=Be;function X$(e,t,r){t.length?t=Wo(t,function(a){return V$(a)?function(o){return U$(o,a.length===1?a[0]:a)}:a}):t=[G$];var n=-1;t=Wo(t,H$(W$));var i=z$(e,function(a,o,u){var s=Wo(t,function(c){return c(a)});return{criteria:s,index:++n,value:a}});return q$(i,function(a,o){return K$(a,o,r)})}var Y$=X$;function Z$(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var J$=Z$,Q$=J$,Ul=Math.max;function ej(e,t,r){return t=Ul(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Ul(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(o),Q$(e,this,u)}}var tj=ej;function rj(e){return function(){return e}}var nj=rj,ij=ur,aj=function(){try{var e=ij(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Zh=aj,oj=nj,Wl=Zh,uj=rn,sj=Wl?function(e,t){return Wl(e,"toString",{configurable:!0,enumerable:!1,value:oj(t),writable:!0})}:uj,cj=sj,lj=800,fj=16,dj=Date.now;function pj(e){var t=0,r=0;return function(){var n=dj(),i=fj-(n-r);if(r=n,i>0){if(++t>=lj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hj=pj,vj=cj,yj=hj,mj=yj(vj),gj=mj,bj=rn,xj=tj,wj=gj;function Oj(e,t){return wj(xj(e,t,bj),e+"")}var Aj=Oj,Sj=Ls,_j=Qa,Pj=tc,$j=kt;function jj(e,t,r){if(!$j(r))return!1;var n=typeof t;return(n=="number"?_j(r)&&Pj(t,r.length):n=="string"&&t in r)?Sj(r[t],e):!1}var to=jj,Tj=Vh,Ej=Y$,Mj=Aj,zl=to,Cj=Mj(function(e,t){if(e==null)return[];var r=t.length;return r>1&&zl(e,t[0],t[1])?t=[]:r>2&&zl(t[0],t[1],t[2])&&(t=[t[0]]),Ej(e,Tj(t,1),[])}),Nj=Cj;const oc=fe(Nj);function jn(e){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tu.apply(this,arguments)}function Ij(e,t){return Lj(e)||Rj(e,t)||Dj(e,t)||kj()}function kj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dj(e,t){if(e){if(typeof e=="string")return ql(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ql(e,t)}}function ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Lj(e){if(Array.isArray(e))return e}function Hl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hl(Object(r),!0).forEach(function(n){Bj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bj(e,t,r){return t=Fj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fj(e){var t=Uj(e,"string");return jn(t)=="symbol"?t:t+""}function Uj(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wj(e){return Array.isArray(e)&&_e(e[0])&&_e(e[1])?e.join(" ~ "):e}var zj=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,h=t.label,v=t.labelFormatter,x=t.accessibilityLayer,w=x===void 0?!1:x,b=function(){if(f&&f.length){var T={padding:0,margin:0},N=(d?oc(f,d):f).map(function(I,C){if(I.type==="none")return null;var k=zo({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),D=I.formatter||l||Wj,B=I.value,U=I.name,H=B,G=U;if(D&&H!=null&&G!=null){var z=D(B,U,I,C,f);if(Array.isArray(z)){var V=Ij(z,2);H=V[0],G=V[1]}else H=z}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:k},_e(G)?P.createElement("span",{className:"recharts-tooltip-item-name"},G):null,_e(G)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},H),P.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:T},N)}return null},O=zo({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=zo({margin:0},c),g=!ee(h),A=g?h:"",_=Q("recharts-default-tooltip",p),$=Q("recharts-tooltip-label",y);g&&v&&f!==void 0&&f!==null&&(A=v(h,f));var E=w?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",Tu({className:_,style:O},E),P.createElement("p",{className:$,style:m},P.isValidElement(A)?A:"".concat(A)),b())};function Tn(e){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}function wi(e,t,r){return t=qj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qj(e){var t=Hj(e,"string");return Tn(t)=="symbol"?t:t+""}function Hj(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sn="recharts-tooltip-wrapper",Kj={visibility:"hidden"};function Gj(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Q(sn,wi(wi(wi(wi({},"".concat(sn,"-right"),F(r)&&t&&F(t.x)&&r>=t.x),"".concat(sn,"-left"),F(r)&&t&&F(t.x)&&r<t.x),"".concat(sn,"-bottom"),F(n)&&t&&F(t.y)&&n>=t.y),"".concat(sn,"-top"),F(n)&&t&&F(t.y)&&n<t.y))}function Kl(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&F(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,p=s[n];return d<p?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,h=s[n]+c;return y>h?Math.max(f,s[n]):Math.max(l,s[n])}function Vj(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Xj(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=Kl({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Kl({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=Vj({translateX:f,translateY:l,useTranslate3d:u})):c=Kj,{cssProperties:c,cssClasses:Gj({translateX:f,translateY:l,coordinate:r})}}function jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function Gl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gl(Object(r),!0).forEach(function(n){Mu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qh(n.key),n)}}function Jj(e,t,r){return t&&Zj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qj(e,t,r){return t=Gi(t),eT(e,Jh()?Reflect.construct(t,r||[],Gi(e).constructor):t.apply(e,r))}function eT(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tT(e)}function tT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jh=function(){return!!e})()}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(e)}function rT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eu(e,t)}function Eu(e,t){return Eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Eu(e,t)}function Mu(e,t,r){return t=Qh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qh(e){var t=nT(e,"string");return jr(t)=="symbol"?t:t+""}function nT(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xl=1,iT=function(e){function t(){var r;Yj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Qj(this,t,[].concat(i)),Mu(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Mu(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return rT(t,e),Jj(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Xl||Math.abs(n.height-this.state.lastBoundingBox.height)>Xl)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,p=i.offset,y=i.position,h=i.reverseDirection,v=i.useTranslate3d,x=i.viewBox,w=i.wrapperStyle,b=Xj({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:x}),O=b.cssClasses,m=b.cssProperties,g=Vl(Vl({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},w);return P.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(_){n.wrapperNode=_}},c)}}])}(L.PureComponent),aT=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},gt={isSsr:aT(),get:function(t){return gt[t]},set:function(t,r){if(typeof t=="string")gt[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){gt[i]=t[i]})}}};function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}function Yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(r),!0).forEach(function(n){uc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tv(n.key),n)}}function sT(e,t,r){return t&&uT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cT(e,t,r){return t=Vi(t),lT(e,ev()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function lT(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fT(e)}function fT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ev(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ev=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function dT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cu(e,t)}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cu(e,t)}function uc(e,t,r){return t=tv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tv(e){var t=pT(e,"string");return Tr(t)=="symbol"?t:t+""}function pT(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hT(e){return e.dataKey}function vT(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(zj,t)}var tt=function(e){function t(){return oT(this,t),cT(this,t,arguments)}return dT(t,e),sT(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,p=i.offset,y=i.payload,h=i.payloadUniqBy,v=i.position,x=i.reverseDirection,w=i.useTranslate3d,b=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=qh(y.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),h,hT));var g=m.length>0;return P.createElement(iT,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:g,offset:p,position:v,reverseDirection:x,useTranslate3d:w,viewBox:b,wrapperStyle:O},vT(c,Zl(Zl({},this.props),{},{payload:m})))}}])}(L.PureComponent);uc(tt,"displayName","Tooltip");uc(tt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!gt.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var yT=lt,mT=function(){return yT.Date.now()},gT=mT,bT=/\s/;function xT(e){for(var t=e.length;t--&&bT.test(e.charAt(t)););return t}var wT=xT,OT=wT,AT=/^\s+/;function ST(e){return e&&e.slice(0,OT(e)+1).replace(AT,"")}var _T=ST,PT=_T,Jl=kt,$T=Xr,Ql=NaN,jT=/^[-+]0x[0-9a-f]+$/i,TT=/^0b[01]+$/i,ET=/^0o[0-7]+$/i,MT=parseInt;function CT(e){if(typeof e=="number")return e;if($T(e))return Ql;if(Jl(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Jl(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=PT(e);var r=TT.test(e);return r||ET.test(e)?MT(e.slice(2),r?2:8):jT.test(e)?Ql:+e}var rv=CT,NT=kt,qo=gT,ef=rv,IT="Expected a function",kT=Math.max,DT=Math.min;function RT(e,t,r){var n,i,a,o,u,s,c=0,f=!1,l=!1,d=!0;if(typeof e!="function")throw new TypeError(IT);t=ef(t)||0,NT(r)&&(f=!!r.leading,l="maxWait"in r,a=l?kT(ef(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(g){var A=n,_=i;return n=i=void 0,c=g,o=e.apply(_,A),o}function y(g){return c=g,u=setTimeout(x,t),f?p(g):o}function h(g){var A=g-s,_=g-c,$=t-A;return l?DT($,a-_):$}function v(g){var A=g-s,_=g-c;return s===void 0||A>=t||A<0||l&&_>=a}function x(){var g=qo();if(v(g))return w(g);u=setTimeout(x,h(g))}function w(g){return u=void 0,d&&n?p(g):(n=i=void 0,o)}function b(){u!==void 0&&clearTimeout(u),c=0,n=s=i=u=void 0}function O(){return u===void 0?o:w(qo())}function m(){var g=qo(),A=v(g);if(n=arguments,i=this,s=g,A){if(u===void 0)return y(s);if(l)return clearTimeout(u),u=setTimeout(x,t),p(s)}return u===void 0&&(u=setTimeout(x,t)),o}return m.cancel=b,m.flush=O,m}var LT=RT,BT=LT,FT=kt,UT="Expected a function";function WT(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(UT);return FT(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),BT(e,t,{leading:n,maxWait:t,trailing:i})}var zT=WT;const nv=fe(zT);function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function tf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tf(Object(r),!0).forEach(function(n){qT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qT(e,t,r){return t=HT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HT(e){var t=KT(e,"string");return En(t)=="symbol"?t:t+""}function KT(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GT(e,t){return ZT(e)||YT(e,t)||XT(e,t)||VT()}function VT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XT(e,t){if(e){if(typeof e=="string")return rf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rf(e,t)}}function rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function ZT(e){if(Array.isArray(e))return e}var nf=L.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,p=e.children,y=e.debounce,h=y===void 0?0:y,v=e.id,x=e.className,w=e.onResize,b=e.style,O=b===void 0?{}:b,m=L.useRef(null),g=L.useRef();g.current=w,L.useImperativeHandle(t,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 A=L.useState({containerWidth:i.width,containerHeight:i.height}),_=GT(A,2),$=_[0],E=_[1],j=L.useCallback(function(N,I){E(function(C){var k=Math.round(N),D=Math.round(I);return C.containerWidth===k&&C.containerHeight===D?C:{containerWidth:k,containerHeight:D}})},[]);L.useEffect(function(){var N=function(U){var H,G=U[0].contentRect,z=G.width,V=G.height;j(z,V),(H=g.current)===null||H===void 0||H.call(g,z,V)};h>0&&(N=nv(N,h,{trailing:!0,leading:!1}));var I=new ResizeObserver(N),C=m.current.getBoundingClientRect(),k=C.width,D=C.height;return j(k,D),I.observe(m.current),function(){I.disconnect()}},[j,h]);var T=L.useMemo(function(){var N=$.containerWidth,I=$.containerHeight;if(N<0||I<0)return null;mt(Yt(o)||Yt(s),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,s),mt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Yt(o)?N:o,k=Yt(s)?I:s;r&&r>0&&(C?k=C/r:k&&(C=k*r),d&&k>d&&(k=d)),mt(C>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,C,k,o,s,f,l,r);var D=!Array.isArray(p)&&yt(p.type).endsWith("Chart");return P.Children.map(p,function(B){return P.isValidElement(B)?L.cloneElement(B,Oi({width:C,height:k},D?{style:Oi({height:"100%",width:"100%",maxHeight:k,maxWidth:C},B.props.style)}:{})):B})},[r,p,s,d,l,f,$,o]);return P.createElement("div",{id:v?"".concat(v):void 0,className:Q("recharts-responsive-container",x),style:Oi(Oi({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:m},T)}),Mn=function(t){return null};Mn.displayName="Cell";function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function af(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?af(Object(r),!0).forEach(function(n){JT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):af(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JT(e,t,r){return t=QT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QT(e){var t=eE(e,"string");return Cn(t)=="symbol"?t:t+""}function eE(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pr={widthCache:{},cacheCount:0},tE=2e3,rE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},of="recharts_measurement_span";function nE(e){var t=Nu({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var bn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||gt.isSsr)return{width:0,height:0};var n=nE(r),i=JSON.stringify({text:t,copyStyle:n});if(pr.widthCache[i])return pr.widthCache[i];try{var a=document.getElementById(of);a||(a=document.createElement("span"),a.setAttribute("id",of),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Nu(Nu({},rE),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return pr.widthCache[i]=s,++pr.cacheCount>tE&&(pr.cacheCount=0,pr.widthCache={}),s}catch{return{width:0,height:0}}},iE=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Nn(e){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(e)}function Xi(e,t){return sE(e)||uE(e,t)||oE(e,t)||aE()}function aE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oE(e,t){if(e){if(typeof e=="string")return uf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uf(e,t)}}function uf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function sE(e){if(Array.isArray(e))return e}function cE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fE(n.key),n)}}function lE(e,t,r){return t&&sf(e.prototype,t),r&&sf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fE(e){var t=dE(e,"string");return Nn(t)=="symbol"?t:t+""}function dE(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pE=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,hE=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,iv={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},vE=Object.keys(iv),yr="NaN";function yE(e,t){return e*iv[t]}var Ai=function(){function e(t,r){cE(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!pE.test(r)&&(this.num=NaN,this.unit=""),vE.includes(r)&&(this.num=yE(t,r),this.unit="px")}return lE(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=hE.exec(r))!==null&&n!==void 0?n:[],a=Xi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])}();function av(e){if(e.includes(yr))return yr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=cf.exec(t))!==null&&r!==void 0?r:[],i=Xi(n,4),a=i[1],o=i[2],u=i[3],s=Ai.parse(a??""),c=Ai.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return yr;t=t.replace(cf,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=lf.exec(t))!==null&&l!==void 0?l:[],p=Xi(d,4),y=p[1],h=p[2],v=p[3],x=Ai.parse(y??""),w=Ai.parse(v??""),b=h==="+"?x.add(w):x.subtract(w);if(b.isNaN())return yr;t=t.replace(lf,b.toString())}return t}var ff=/\(([^()]*)\)/;function mE(e){for(var t=e;t.includes("(");){var r=ff.exec(t),n=Xi(r,2),i=n[1];t=t.replace(ff,av(i))}return t}function gE(e){var t=e.replace(/\s+/g,"");return t=mE(t),t=av(t),t}function bE(e){try{return gE(e)}catch{return yr}}function Ho(e){var t=bE(e.slice(5,-1));return t===yr?"":t}var xE=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],wE=["dx","dy","angle","className","breakAll"];function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iu.apply(this,arguments)}function df(e,t){if(e==null)return{};var r=OE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pf(e,t){return PE(e)||_E(e,t)||SE(e,t)||AE()}function AE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SE(e,t){if(e){if(typeof e=="string")return hf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hf(e,t)}}function hf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _E(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function PE(e){if(Array.isArray(e))return e}var ov=/[ \f\n\r\t\v\u2028\u2029]+/,uv=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ee(r)||(n?a=r.toString().split(""):a=r.toString().split(ov));var o=a.map(function(s){return{word:s,width:bn(s,i).width}}),u=n?0:bn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},$E=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=F(o),l=u,d=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(k,D){var B=D.word,U=D.width,H=k[k.length-1];if(H&&(i==null||a||H.width+U+n<Number(i)))H.words.push(B),H.width+=U+n;else{var G={words:[B],width:U};k.push(G)}return k},[])},p=d(r),y=function(C){return C.reduce(function(k,D){return k.width>D.width?k:D})};if(!f)return p;for(var h="…",v=function(C){var k=l.slice(0,C),D=uv({breakAll:c,style:s,children:k+h}).wordsWithComputedWidth,B=d(D),U=B.length>o||y(B).width>Number(i);return[U,B]},x=0,w=l.length-1,b=0,O;x<=w&&b<=l.length-1;){var m=Math.floor((x+w)/2),g=m-1,A=v(g),_=pf(A,2),$=_[0],E=_[1],j=v(m),T=pf(j,1),N=T[0];if(!$&&!N&&(x=m+1),$&&N&&(w=m-1),!$&&N){O=E;break}b++}return O||p},vf=function(t){var r=ee(t)?[]:t.toString().split(ov);return[{words:r}]},jE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!gt.isSsr){var s,c,f=uv({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return vf(i);return $E({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return vf(i)},yf="#808080",ir=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,h=y===void 0?"end":y,v=t.fill,x=v===void 0?yf:v,w=df(t,xE),b=L.useMemo(function(){return jE({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:l,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,l,w.style,w.width]),O=w.dx,m=w.dy,g=w.angle,A=w.className,_=w.breakAll,$=df(w,wE);if(!_e(n)||!_e(a))return null;var E=n+(F(O)?O:0),j=a+(F(m)?m:0),T;switch(h){case"start":T=Ho("calc(".concat(c,")"));break;case"middle":T=Ho("calc(".concat((b.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=Ho("calc(".concat(b.length-1," * -").concat(u,")"));break}var N=[];if(l){var I=b[0].width,C=w.width;N.push("scale(".concat((F(C)?C/I:1)/I,")"))}return g&&N.push("rotate(".concat(g,", ").concat(E,", ").concat(j,")")),N.length&&($.transform=N.join(" ")),P.createElement("text",Iu({},X($,!0),{x:E,y:j,className:Q("recharts-text",A),textAnchor:p,fill:x.includes("url")?yf:x}),b.map(function(k,D){var B=k.words.join(_?"":" ");return P.createElement("tspan",{x:E,dy:D===0?T:u,key:"".concat(B,"-").concat(D)},B)}))};function Nt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function TE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function sc(e){let t,r,n;e.length!==2?(t=Nt,r=(u,s)=>Nt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Nt||e===TE?e:EE,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function EE(){return 0}function sv(e){return e===null?NaN:+e}function*ME(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const CE=sc(Nt),fi=CE.right;sc(sv).center;class mf extends Map{constructor(t,r=kE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(gf(this,t))}has(t){return super.has(gf(this,t))}set(t,r){return super.set(NE(this,t),r)}delete(t){return super.delete(IE(this,t))}}function gf({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function NE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function IE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function kE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function DE(e=Nt){if(e===Nt)return cv;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function cv(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const RE=Math.sqrt(50),LE=Math.sqrt(10),BE=Math.sqrt(2);function Yi(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=RE?10:a>=LE?5:a>=BE?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Yi(e,t,r*2):[u,s,c]}function ku(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Yi(t,e,r):Yi(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function Du(e,t,r){return t=+t,e=+e,r=+r,Yi(e,t,r)[2]}function Ru(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Du(t,e,r):Du(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function bf(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function xf(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function lv(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?cv:DE(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+d)),y=Math.min(n,Math.floor(t+(s-c)*l/s+d));lv(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(cn(e,r,t),i(e[n],a)>0&&cn(e,r,n);o<u;){for(cn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?cn(e,r,u):(++u,cn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function cn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function FE(e,t,r){if(e=Float64Array.from(ME(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return xf(e);if(t>=1)return bf(e);var n,i=(n-1)*t,a=Math.floor(i),o=bf(lv(e,a).subarray(0,a+1)),u=xf(e.subarray(a+1));return o+(u-o)*(i-a)}}function UE(e,t,r=sv){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function WE(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Qe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Pt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Lu=Symbol("implicit");function cc(){var e=new mf,t=[],r=[],n=Lu;function i(a){let o=e.get(a);if(o===void 0){if(n!==Lu)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new mf;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return cc(t,r).unknown(n)},Qe.apply(i,arguments),i}function In(){var e=cc().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,p=i<n,y=p?i:n,h=p?n:i;a=(h-y)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),y+=(h-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var v=WE(d).map(function(x){return y+a*x});return r(p?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return In(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},Qe.apply(l(),arguments)}function fv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return fv(t())},e}function xn(){return fv(In.apply(null,arguments).paddingInner(1))}function lc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function di(){}var kn=.7,Zi=1/kn,Ar="\\s*([+-]?\\d+)\\s*",Dn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zE=/^#([0-9a-f]{3,8})$/,qE=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),HE=new RegExp(`^rgb\\(${ut},${ut},${ut}\\)$`),KE=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Dn}\\)$`),GE=new RegExp(`^rgba\\(${ut},${ut},${ut},${Dn}\\)$`),VE=new RegExp(`^hsl\\(${Dn},${ut},${ut}\\)$`),XE=new RegExp(`^hsla\\(${Dn},${ut},${ut},${Dn}\\)$`),wf={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};lc(di,Rn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Of,formatHex:Of,formatHex8:YE,formatHsl:ZE,formatRgb:Af,toString:Af});function Of(){return this.rgb().formatHex()}function YE(){return this.rgb().formatHex8()}function ZE(){return pv(this).formatHsl()}function Af(){return this.rgb().formatRgb()}function Rn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=zE.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Sf(t):r===3?new Le(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Si(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Si(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=qE.exec(e))?new Le(t[1],t[2],t[3],1):(t=HE.exec(e))?new Le(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KE.exec(e))?Si(t[1],t[2],t[3],t[4]):(t=GE.exec(e))?Si(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VE.exec(e))?$f(t[1],t[2]/100,t[3]/100,1):(t=XE.exec(e))?$f(t[1],t[2]/100,t[3]/100,t[4]):wf.hasOwnProperty(e)?Sf(wf[e]):e==="transparent"?new Le(NaN,NaN,NaN,0):null}function Sf(e){return new Le(e>>16&255,e>>8&255,e&255,1)}function Si(e,t,r,n){return n<=0&&(e=t=r=NaN),new Le(e,t,r,n)}function JE(e){return e instanceof di||(e=Rn(e)),e?(e=e.rgb(),new Le(e.r,e.g,e.b,e.opacity)):new Le}function Bu(e,t,r,n){return arguments.length===1?JE(e):new Le(e,t,r,n??1)}function Le(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}lc(Le,Bu,dv(di,{brighter(e){return e=e==null?Zi:Math.pow(Zi,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?kn:Math.pow(kn,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(er(this.r),er(this.g),er(this.b),Ji(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:_f,formatHex:_f,formatHex8:QE,formatRgb:Pf,toString:Pf}));function _f(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}`}function QE(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}${Zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pf(){const e=Ji(this.opacity);return`${e===1?"rgb(":"rgba("}${er(this.r)}, ${er(this.g)}, ${er(this.b)}${e===1?")":`, ${e})`}`}function Ji(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function er(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zt(e){return e=er(e),(e<16?"0":"")+e.toString(16)}function $f(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new nt(e,t,r,n)}function pv(e){if(e instanceof nt)return new nt(e.h,e.s,e.l,e.opacity);if(e instanceof di||(e=Rn(e)),!e)return new nt;if(e instanceof nt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new nt(o,u,s,e.opacity)}function eM(e,t,r,n){return arguments.length===1?pv(e):new nt(e,t,r,n??1)}function nt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}lc(nt,eM,dv(di,{brighter(e){return e=e==null?Zi:Math.pow(Zi,e),new nt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?kn:Math.pow(kn,e),new nt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Le(Ko(e>=240?e-240:e+120,i,n),Ko(e,i,n),Ko(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new nt(jf(this.h),_i(this.s),_i(this.l),Ji(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ji(this.opacity);return`${e===1?"hsl(":"hsla("}${jf(this.h)}, ${_i(this.s)*100}%, ${_i(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jf(e){return e=(e||0)%360,e<0?e+360:e}function _i(e){return Math.max(0,Math.min(1,e||0))}function Ko(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const fc=e=>()=>e;function tM(e,t){return function(r){return e+r*t}}function rM(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function nM(e){return(e=+e)==1?hv:function(t,r){return r-t?rM(t,r,e):fc(isNaN(t)?r:t)}}function hv(e,t){var r=t-e;return r?tM(e,r):fc(isNaN(e)?t:e)}const Tf=function e(t){var r=nM(t);function n(i,a){var o=r((i=Bu(i)).r,(a=Bu(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=hv(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n}(1);function iM(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function aM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oM(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=nn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function uM(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function sM(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=nn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Fu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Go=new RegExp(Fu.source,"g");function cM(e){return function(){return e}}function lM(e){return function(t){return e(t)+""}}function fM(e,t){var r=Fu.lastIndex=Go.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Fu.exec(e))&&(i=Go.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Qi(n,i)})),r=Go.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?lM(s[0].x):cM(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function nn(e,t){var r=typeof t,n;return t==null||r==="boolean"?fc(t):(r==="number"?Qi:r==="string"?(n=Rn(t))?(t=n,Tf):fM:t instanceof Rn?Tf:t instanceof Date?uM:aM(t)?iM:Array.isArray(t)?oM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?sM:Qi)(e,t)}function dc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function dM(e,t){t===void 0&&(t=e,e=nn);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function pM(e){return function(){return e}}function ea(e){return+e}var Ef=[0,1];function ke(e){return e}function Uu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:pM(isNaN(t)?NaN:.5)}function hM(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function vM(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Uu(i,n),a=r(o,a)):(n=Uu(n,i),a=r(a,o)),function(u){return a(n(u))}}function yM(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Uu(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=fi(e,u,1,n)-1;return a[s](i[s](u))}}function pi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ro(){var e=Ef,t=Ef,r=nn,n,i,a,o=ke,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==ke&&(o=hM(e[0],e[d-1])),u=d>2?yM:vM,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=u(t,e.map(n),Qi)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,ea),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=dc,f()},l.clamp=function(d){return arguments.length?(o=d?!0:ke,f()):o!==ke},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,p){return n=d,i=p,f()}}function pc(){return ro()(ke,ke)}function mM(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ta(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Er(e){return e=ta(Math.abs(e)),e?e[1]:NaN}function gM(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function bM(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var xM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ln(e){if(!(t=xM.exec(e)))throw new Error("invalid format: "+e);var t;return new hc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ln.prototype=hc.prototype;function hc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function wM(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var vv;function OM(e,t){var r=ta(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(vv=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ta(e,Math.max(0,t+a-1))[0]}function Mf(e,t){var r=ta(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Cf={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:mM,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Mf(e*100,t),r:Mf,s:OM,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Nf(e){return e}var If=Array.prototype.map,kf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function AM(e){var t=e.grouping===void 0||e.thousands===void 0?Nf:gM(If.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Nf:bM(If.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l){l=Ln(l);var d=l.fill,p=l.align,y=l.sign,h=l.symbol,v=l.zero,x=l.width,w=l.comma,b=l.precision,O=l.trim,m=l.type;m==="n"?(w=!0,m="g"):Cf[m]||(b===void 0&&(b=12),O=!0,m="g"),(v||d==="0"&&p==="=")&&(v=!0,d="0",p="=");var g=h==="$"?r:h==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",A=h==="$"?n:/[%p]/.test(m)?o:"",_=Cf[m],$=/[defgprs%]/.test(m);b=b===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function E(j){var T=g,N=A,I,C,k;if(m==="c")N=_(j)+N,j="";else{j=+j;var D=j<0||1/j<0;if(j=isNaN(j)?s:_(Math.abs(j),b),O&&(j=wM(j)),D&&+j==0&&y!=="+"&&(D=!1),T=(D?y==="("?y:u:y==="-"||y==="("?"":y)+T,N=(m==="s"?kf[8+vv/3]:"")+N+(D&&y==="("?")":""),$){for(I=-1,C=j.length;++I<C;)if(k=j.charCodeAt(I),48>k||k>57){N=(k===46?i+j.slice(I+1):j.slice(I))+N,j=j.slice(0,I);break}}}w&&!v&&(j=t(j,1/0));var B=T.length+j.length+N.length,U=B<x?new Array(x-B+1).join(d):"";switch(w&&v&&(j=t(U+j,U.length?x-N.length:1/0),U=""),p){case"<":j=T+j+N+U;break;case"=":j=T+U+j+N;break;case"^":j=U.slice(0,B=U.length>>1)+T+j+N+U.slice(B);break;default:j=U+T+j+N;break}return a(j)}return E.toString=function(){return l+""},E}function f(l,d){var p=c((l=Ln(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(Er(d)/3)))*3,h=Math.pow(10,-y),v=kf[8+y/3];return function(x){return p(h*x)+v}}return{format:c,formatPrefix:f}}var Pi,vc,yv;SM({thousands:",",grouping:[3],currency:["$",""]});function SM(e){return Pi=AM(e),vc=Pi.format,yv=Pi.formatPrefix,Pi}function _M(e){return Math.max(0,-Er(Math.abs(e)))}function PM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Er(t)/3)))*3-Er(Math.abs(e)))}function $M(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Er(t)-Er(e))+1}function mv(e,t,r,n){var i=Ru(e,t,r),a;switch(n=Ln(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=PM(i,o))&&(n.precision=a),yv(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=$M(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=_M(i))&&(n.precision=a-(n.type==="%")*2);break}}return vc(n)}function Rt(e){var t=e.domain;return e.ticks=function(r){var n=t();return ku(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return mv(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=Du(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function ra(){var e=pc();return e.copy=function(){return pi(e,ra())},Qe.apply(e,arguments),Rt(e)}function gv(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ea),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return gv(e).unknown(t)},e=arguments.length?Array.from(e,ea):[0,1],Rt(r)}function bv(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Df(e){return Math.log(e)}function Rf(e){return Math.exp(e)}function jM(e){return-Math.log(-e)}function TM(e){return-Math.exp(-e)}function EM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MM(e){return e===10?EM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function CM(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Lf(e){return(t,r)=>-e(-t,r)}function yc(e){const t=e(Df,Rf),r=t.domain;let n=10,i,a;function o(){return i=CM(n),a=MM(n),r()[0]<0?(i=Lf(i),a=Lf(a),e(jM,TM)):e(Df,Rf),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),p=i(f),y,h;const v=u==null?10:+u;let x=[];if(!(n%1)&&p-d<v){if(d=Math.floor(d),p=Math.ceil(p),c>0){for(;d<=p;++d)for(y=1;y<n;++y)if(h=d<0?y/a(-d):y*a(d),!(h<c)){if(h>f)break;x.push(h)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(h=d>0?y/a(-d):y*a(d),!(h<c)){if(h>f)break;x.push(h)}x.length*2<v&&(x=ku(c,f,v))}else x=ku(d,p,Math.min(p-d,v)).map(a);return l?x.reverse():x},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=Ln(s)).precision==null&&(s.trim=!0),s=vc(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(bv(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function xv(){const e=yc(ro()).domain([1,10]);return e.copy=()=>pi(e,xv()).base(e.base()),Qe.apply(e,arguments),e}function Bf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ff(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function mc(e){var t=1,r=e(Bf(t),Ff(t));return r.constant=function(n){return arguments.length?e(Bf(t=+n),Ff(t)):t},Rt(r)}function wv(){var e=mc(ro());return e.copy=function(){return pi(e,wv()).constant(e.constant())},Qe.apply(e,arguments)}function Uf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function NM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function IM(e){return e<0?-e*e:e*e}function gc(e){var t=e(ke,ke),r=1;function n(){return r===1?e(ke,ke):r===.5?e(NM,IM):e(Uf(r),Uf(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Rt(t)}function bc(){var e=gc(ro());return e.copy=function(){return pi(e,bc()).exponent(e.exponent())},Qe.apply(e,arguments),e}function kM(){return bc.apply(null,arguments).exponent(.5)}function Wf(e){return Math.sign(e)*e*e}function DM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Ov(){var e=pc(),t=[0,1],r=!1,n;function i(a){var o=DM(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Wf(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,ea)).map(Wf)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Ov(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qe.apply(i,arguments),Rt(i)}function Av(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=UE(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[fi(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Nt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Av().domain(e).range(t).unknown(n)},Qe.apply(a,arguments)}function Sv(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[fi(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Sv().domain([e,t]).range(i).unknown(a)},Qe.apply(Rt(o),arguments)}function _v(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[fi(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return _v().domain(e).range(t).unknown(r)},Qe.apply(i,arguments)}const Vo=new Date,Xo=new Date;function Pe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Pe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Vo.setTime(+a),Xo.setTime(+o),e(Vo),e(Xo),Math.floor(r(Vo,Xo))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const na=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);na.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):na);na.range;const ht=1e3,Xe=ht*60,vt=Xe*60,xt=vt*24,xc=xt*7,zf=xt*30,Yo=xt*365,Jt=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getUTCSeconds());Jt.range;const wc=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ht)},(e,t)=>{e.setTime(+e+t*Xe)},(e,t)=>(t-e)/Xe,e=>e.getMinutes());wc.range;const Oc=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xe)},(e,t)=>(t-e)/Xe,e=>e.getUTCMinutes());Oc.range;const Ac=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ht-e.getMinutes()*Xe)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getHours());Ac.range;const Sc=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getUTCHours());Sc.range;const hi=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xe)/xt,e=>e.getDate()-1);hi.range;const no=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xt,e=>e.getUTCDate()-1);no.range;const Pv=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xt,e=>Math.floor(e/xt));Pv.range;function sr(e){return Pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Xe)/xc)}const io=sr(0),ia=sr(1),RM=sr(2),LM=sr(3),Mr=sr(4),BM=sr(5),FM=sr(6);io.range;ia.range;RM.range;LM.range;Mr.range;BM.range;FM.range;function cr(e){return Pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/xc)}const ao=cr(0),aa=cr(1),UM=cr(2),WM=cr(3),Cr=cr(4),zM=cr(5),qM=cr(6);ao.range;aa.range;UM.range;WM.range;Cr.range;zM.range;qM.range;const _c=Pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());_c.range;const Pc=Pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Pc.range;const wt=Pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});wt.range;const Ot=Pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ot.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Ot.range;function $v(e,t,r,n,i,a){const o=[[Jt,1,ht],[Jt,5,5*ht],[Jt,15,15*ht],[Jt,30,30*ht],[a,1,Xe],[a,5,5*Xe],[a,15,15*Xe],[a,30,30*Xe],[i,1,vt],[i,3,3*vt],[i,6,6*vt],[i,12,12*vt],[n,1,xt],[n,2,2*xt],[r,1,xc],[t,1,zf],[t,3,3*zf],[e,1,Yo]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),y=p?p.range(c,+f+1):[];return d?y.reverse():y}function s(c,f,l){const d=Math.abs(f-c)/l,p=sc(([,,v])=>v).right(o,d);if(p===o.length)return e.every(Ru(c/Yo,f/Yo,l));if(p===0)return na.every(Math.max(Ru(c,f,l),1));const[y,h]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return y.every(h)}return[u,s]}const[HM,KM]=$v(Ot,Pc,ao,Pv,Sc,Oc),[GM,VM]=$v(wt,_c,io,hi,Ac,wc);function Zo(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Jo(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ln(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function XM(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=fn(i),f=dn(i),l=fn(a),d=dn(a),p=fn(o),y=dn(o),h=fn(u),v=dn(u),x=fn(s),w=dn(s),b={a:D,A:B,b:U,B:H,c:null,d:Xf,e:Xf,f:gC,g:jC,G:EC,H:vC,I:yC,j:mC,L:jv,m:bC,M:xC,p:G,q:z,Q:Jf,s:Qf,S:wC,u:OC,U:AC,V:SC,w:_C,W:PC,x:null,X:null,y:$C,Y:TC,Z:MC,"%":Zf},O={a:V,A:de,b:ge,B:Fe,c:null,d:Yf,e:Yf,f:kC,g:HC,G:GC,H:CC,I:NC,j:IC,L:Ev,m:DC,M:RC,p:Ft,q:De,Q:Jf,s:Qf,S:LC,u:BC,U:FC,V:UC,w:WC,W:zC,x:null,X:null,y:qC,Y:KC,Z:VC,"%":Zf},m={a:E,A:j,b:T,B:N,c:I,d:Gf,e:Gf,f:fC,g:Kf,G:Hf,H:Vf,I:Vf,j:uC,L:lC,m:oC,M:sC,p:$,q:aC,Q:pC,s:hC,S:cC,u:eC,U:tC,V:rC,w:QM,W:nC,x:C,X:k,y:Kf,Y:Hf,Z:iC,"%":dC};b.x=g(r,b),b.X=g(n,b),b.c=g(t,b),O.x=g(r,O),O.X=g(n,O),O.c=g(t,O);function g(W,Z){return function(J){var R=[],ye=-1,te=0,we=W.length,Oe,Re,jt;for(J instanceof Date||(J=new Date(+J));++ye<we;)W.charCodeAt(ye)===37&&(R.push(W.slice(te,ye)),(Re=qf[Oe=W.charAt(++ye)])!=null?Oe=W.charAt(++ye):Re=Oe==="e"?" ":"0",(jt=Z[Oe])&&(Oe=jt(J,Re)),R.push(Oe),te=ye+1);return R.push(W.slice(te,ye)),R.join("")}}function A(W,Z){return function(J){var R=ln(1900,void 0,1),ye=_(R,W,J+="",0),te,we;if(ye!=J.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(Z&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(te=Jo(ln(R.y,0,1)),we=te.getUTCDay(),te=we>4||we===0?aa.ceil(te):aa(te),te=no.offset(te,(R.V-1)*7),R.y=te.getUTCFullYear(),R.m=te.getUTCMonth(),R.d=te.getUTCDate()+(R.w+6)%7):(te=Zo(ln(R.y,0,1)),we=te.getDay(),te=we>4||we===0?ia.ceil(te):ia(te),te=hi.offset(te,(R.V-1)*7),R.y=te.getFullYear(),R.m=te.getMonth(),R.d=te.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),we="Z"in R?Jo(ln(R.y,0,1)).getUTCDay():Zo(ln(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(we+5)%7:R.w+R.U*7-(we+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,Jo(R)):Zo(R)}}function _(W,Z,J,R){for(var ye=0,te=Z.length,we=J.length,Oe,Re;ye<te;){if(R>=we)return-1;if(Oe=Z.charCodeAt(ye++),Oe===37){if(Oe=Z.charAt(ye++),Re=m[Oe in qf?Z.charAt(ye++):Oe],!Re||(R=Re(W,J,R))<0)return-1}else if(Oe!=J.charCodeAt(R++))return-1}return R}function $(W,Z,J){var R=c.exec(Z.slice(J));return R?(W.p=f.get(R[0].toLowerCase()),J+R[0].length):-1}function E(W,Z,J){var R=p.exec(Z.slice(J));return R?(W.w=y.get(R[0].toLowerCase()),J+R[0].length):-1}function j(W,Z,J){var R=l.exec(Z.slice(J));return R?(W.w=d.get(R[0].toLowerCase()),J+R[0].length):-1}function T(W,Z,J){var R=x.exec(Z.slice(J));return R?(W.m=w.get(R[0].toLowerCase()),J+R[0].length):-1}function N(W,Z,J){var R=h.exec(Z.slice(J));return R?(W.m=v.get(R[0].toLowerCase()),J+R[0].length):-1}function I(W,Z,J){return _(W,t,Z,J)}function C(W,Z,J){return _(W,r,Z,J)}function k(W,Z,J){return _(W,n,Z,J)}function D(W){return o[W.getDay()]}function B(W){return a[W.getDay()]}function U(W){return s[W.getMonth()]}function H(W){return u[W.getMonth()]}function G(W){return i[+(W.getHours()>=12)]}function z(W){return 1+~~(W.getMonth()/3)}function V(W){return o[W.getUTCDay()]}function de(W){return a[W.getUTCDay()]}function ge(W){return s[W.getUTCMonth()]}function Fe(W){return u[W.getUTCMonth()]}function Ft(W){return i[+(W.getUTCHours()>=12)]}function De(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Z=g(W+="",b);return Z.toString=function(){return W},Z},parse:function(W){var Z=A(W+="",!1);return Z.toString=function(){return W},Z},utcFormat:function(W){var Z=g(W+="",O);return Z.toString=function(){return W},Z},utcParse:function(W){var Z=A(W+="",!0);return Z.toString=function(){return W},Z}}}var qf={"-":"",_:" ",0:"0"},Te=/^\s*\d+/,YM=/^%/,ZM=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function JM(e){return e.replace(ZM,"\\$&")}function fn(e){return new RegExp("^(?:"+e.map(JM).join("|")+")","i")}function dn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function QM(e,t,r){var n=Te.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function eC(e,t,r){var n=Te.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tC(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function rC(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function nC(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Hf(e,t,r){var n=Te.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Kf(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function iC(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function aC(e,t,r){var n=Te.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function oC(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Gf(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function uC(e,t,r){var n=Te.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Vf(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sC(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function cC(e,t,r){var n=Te.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function lC(e,t,r){var n=Te.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function fC(e,t,r){var n=Te.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dC(e,t,r){var n=YM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function pC(e,t,r){var n=Te.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function hC(e,t,r){var n=Te.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Xf(e,t){return re(e.getDate(),t,2)}function vC(e,t){return re(e.getHours(),t,2)}function yC(e,t){return re(e.getHours()%12||12,t,2)}function mC(e,t){return re(1+hi.count(wt(e),e),t,3)}function jv(e,t){return re(e.getMilliseconds(),t,3)}function gC(e,t){return jv(e,t)+"000"}function bC(e,t){return re(e.getMonth()+1,t,2)}function xC(e,t){return re(e.getMinutes(),t,2)}function wC(e,t){return re(e.getSeconds(),t,2)}function OC(e){var t=e.getDay();return t===0?7:t}function AC(e,t){return re(io.count(wt(e)-1,e),t,2)}function Tv(e){var t=e.getDay();return t>=4||t===0?Mr(e):Mr.ceil(e)}function SC(e,t){return e=Tv(e),re(Mr.count(wt(e),e)+(wt(e).getDay()===4),t,2)}function _C(e){return e.getDay()}function PC(e,t){return re(ia.count(wt(e)-1,e),t,2)}function $C(e,t){return re(e.getFullYear()%100,t,2)}function jC(e,t){return e=Tv(e),re(e.getFullYear()%100,t,2)}function TC(e,t){return re(e.getFullYear()%1e4,t,4)}function EC(e,t){var r=e.getDay();return e=r>=4||r===0?Mr(e):Mr.ceil(e),re(e.getFullYear()%1e4,t,4)}function MC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function Yf(e,t){return re(e.getUTCDate(),t,2)}function CC(e,t){return re(e.getUTCHours(),t,2)}function NC(e,t){return re(e.getUTCHours()%12||12,t,2)}function IC(e,t){return re(1+no.count(Ot(e),e),t,3)}function Ev(e,t){return re(e.getUTCMilliseconds(),t,3)}function kC(e,t){return Ev(e,t)+"000"}function DC(e,t){return re(e.getUTCMonth()+1,t,2)}function RC(e,t){return re(e.getUTCMinutes(),t,2)}function LC(e,t){return re(e.getUTCSeconds(),t,2)}function BC(e){var t=e.getUTCDay();return t===0?7:t}function FC(e,t){return re(ao.count(Ot(e)-1,e),t,2)}function Mv(e){var t=e.getUTCDay();return t>=4||t===0?Cr(e):Cr.ceil(e)}function UC(e,t){return e=Mv(e),re(Cr.count(Ot(e),e)+(Ot(e).getUTCDay()===4),t,2)}function WC(e){return e.getUTCDay()}function zC(e,t){return re(aa.count(Ot(e)-1,e),t,2)}function qC(e,t){return re(e.getUTCFullYear()%100,t,2)}function HC(e,t){return e=Mv(e),re(e.getUTCFullYear()%100,t,2)}function KC(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function GC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Cr(e):Cr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function VC(){return"+0000"}function Zf(){return"%"}function Jf(e){return+e}function Qf(e){return Math.floor(+e/1e3)}var hr,Cv,Nv;XC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function XC(e){return hr=XM(e),Cv=hr.format,hr.parse,Nv=hr.utcFormat,hr.utcParse,hr}function YC(e){return new Date(e)}function ZC(e){return e instanceof Date?+e:+new Date(+e)}function $c(e,t,r,n,i,a,o,u,s,c){var f=pc(),l=f.invert,d=f.domain,p=c(".%L"),y=c(":%S"),h=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),w=c("%b %d"),b=c("%B"),O=c("%Y");function m(g){return(s(g)<g?p:u(g)<g?y:o(g)<g?h:a(g)<g?v:n(g)<g?i(g)<g?x:w:r(g)<g?b:O)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?d(Array.from(g,ZC)):d().map(YC)},f.ticks=function(g){var A=d();return e(A[0],A[A.length-1],g??10)},f.tickFormat=function(g,A){return A==null?m:c(A)},f.nice=function(g){var A=d();return(!g||typeof g.range!="function")&&(g=t(A[0],A[A.length-1],g??10)),g?d(bv(A,g)):f},f.copy=function(){return pi(f,$c(e,t,r,n,i,a,o,u,s,c))},f}function JC(){return Qe.apply($c(GM,VM,wt,_c,io,hi,Ac,wc,Jt,Cv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function QC(){return Qe.apply($c(HM,KM,Ot,Pc,ao,no,Sc,Oc,Jt,Nv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function oo(){var e=0,t=1,r,n,i,a,o=ke,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var p,y;return arguments.length?([p,y]=d,o=l(p,y),c):[o(0),o(1)]}}return c.range=f(nn),c.rangeRound=f(dc),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Lt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Iv(){var e=Rt(oo()(ke));return e.copy=function(){return Lt(e,Iv())},Pt.apply(e,arguments)}function kv(){var e=yc(oo()).domain([1,10]);return e.copy=function(){return Lt(e,kv()).base(e.base())},Pt.apply(e,arguments)}function Dv(){var e=mc(oo());return e.copy=function(){return Lt(e,Dv()).constant(e.constant())},Pt.apply(e,arguments)}function jc(){var e=gc(oo());return e.copy=function(){return Lt(e,jc()).exponent(e.exponent())},Pt.apply(e,arguments)}function eN(){return jc.apply(null,arguments).exponent(.5)}function Rv(){var e=[],t=ke;function r(n){if(n!=null&&!isNaN(n=+n))return t((fi(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Nt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>FE(e,a/n))},r.copy=function(){return Rv(t).domain(e)},Pt.apply(r,arguments)}function uo(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=ke,f,l=!1,d;function p(h){return isNaN(h=+h)?d:(h=.5+((h=+f(h))-a)*(n*h<n*a?u:s),c(l?Math.max(0,Math.min(1,h)):h))}p.domain=function(h){return arguments.length?([e,t,r]=h,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(h){return arguments.length?(l=!!h,p):l},p.interpolator=function(h){return arguments.length?(c=h,p):c};function y(h){return function(v){var x,w,b;return arguments.length?([x,w,b]=v,c=dM(h,[x,w,b]),p):[c(0),c(.5),c(1)]}}return p.range=y(nn),p.rangeRound=y(dc),p.unknown=function(h){return arguments.length?(d=h,p):d},function(h){return f=h,i=h(e),a=h(t),o=h(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function Lv(){var e=Rt(uo()(ke));return e.copy=function(){return Lt(e,Lv())},Pt.apply(e,arguments)}function Bv(){var e=yc(uo()).domain([.1,1,10]);return e.copy=function(){return Lt(e,Bv()).base(e.base())},Pt.apply(e,arguments)}function Fv(){var e=mc(uo());return e.copy=function(){return Lt(e,Fv()).constant(e.constant())},Pt.apply(e,arguments)}function Tc(){var e=gc(uo());return e.copy=function(){return Lt(e,Tc()).exponent(e.exponent())},Pt.apply(e,arguments)}function tN(){return Tc.apply(null,arguments).exponent(.5)}const ed=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:In,scaleDiverging:Lv,scaleDivergingLog:Bv,scaleDivergingPow:Tc,scaleDivergingSqrt:tN,scaleDivergingSymlog:Fv,scaleIdentity:gv,scaleImplicit:Lu,scaleLinear:ra,scaleLog:xv,scaleOrdinal:cc,scalePoint:xn,scalePow:bc,scaleQuantile:Av,scaleQuantize:Sv,scaleRadial:Ov,scaleSequential:Iv,scaleSequentialLog:kv,scaleSequentialPow:jc,scaleSequentialQuantile:Rv,scaleSequentialSqrt:eN,scaleSequentialSymlog:Dv,scaleSqrt:kM,scaleSymlog:wv,scaleThreshold:_v,scaleTime:JC,scaleUtc:QC,tickFormat:mv},Symbol.toStringTag,{value:"Module"}));var rN=Xr;function nN(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(u===void 0?o===o&&!rN(o):r(o,u)))var u=o,s=a}return s}var so=nN;function iN(e,t){return e>t}var Uv=iN,aN=so,oN=Uv,uN=rn;function sN(e){return e&&e.length?aN(e,uN,oN):void 0}var cN=sN;const co=fe(cN);function lN(e,t){return e<t}var Wv=lN,fN=so,dN=Wv,pN=rn;function hN(e){return e&&e.length?fN(e,pN,dN):void 0}var vN=hN;const lo=fe(vN);var yN=Ws,mN=Dt,gN=Yh,bN=Be;function xN(e,t){var r=bN(e)?yN:gN;return r(e,mN(t))}var wN=xN,ON=Vh,AN=wN;function SN(e,t){return ON(AN(e,t),1)}var _N=SN;const PN=fe(_N);var $N=ic;function jN(e,t){return $N(e,t)}var TN=jN;const fo=fe(TN);var an=1e9,EN={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Mc,ve=!0,Ze="[DecimalError] ",tr=Ze+"Invalid argument: ",Ec=Ze+"Exponent out of range: ",on=Math.floor,Vt=Math.pow,MN=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ze,$e=1e7,he=7,zv=9007199254740991,oa=on(zv/he),q={};q.absoluteValue=q.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};q.comparedTo=q.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};q.decimalPlaces=q.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*he;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};q.dividedBy=q.div=function(e){return bt(this,new this.constructor(e))};q.dividedToIntegerBy=q.idiv=function(e){var t=this,r=t.constructor;return ue(bt(t,new r(e),0,1),r.precision)};q.equals=q.eq=function(e){return!this.cmp(e)};q.exponent=function(){return xe(this)};q.greaterThan=q.gt=function(e){return this.cmp(e)>0};q.greaterThanOrEqualTo=q.gte=function(e){return this.cmp(e)>=0};q.isInteger=q.isint=function(){return this.e>this.d.length-2};q.isNegative=q.isneg=function(){return this.s<0};q.isPositive=q.ispos=function(){return this.s>0};q.isZero=function(){return this.s===0};q.lessThan=q.lt=function(e){return this.cmp(e)<0};q.lessThanOrEqualTo=q.lte=function(e){return this.cmp(e)<1};q.logarithm=q.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ze))throw Error(Ze+"NaN");if(r.s<1)throw Error(Ze+(r.s?"NaN":"-Infinity"));return r.eq(ze)?new n(0):(ve=!1,t=bt(Bn(r,a),Bn(e,a),a),ve=!0,ue(t,i))};q.minus=q.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Kv(t,e):qv(t,(e.s=-e.s,e))};q.modulo=q.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ze+"NaN");return r.s?(ve=!1,t=bt(r,e,0,1).times(e),ve=!0,r.minus(t)):ue(new n(r),i)};q.naturalExponential=q.exp=function(){return Hv(this)};q.naturalLogarithm=q.ln=function(){return Bn(this)};q.negated=q.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};q.plus=q.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?qv(t,e):Kv(t,(e.s=-e.s,e))};q.precision=q.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(tr+e);if(t=xe(i)+1,n=i.d.length-1,r=n*he+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};q.squareRoot=q.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(Ze+"NaN")}for(e=xe(u),ve=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ot(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=on((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(bt(u,a,o+2)).times(.5),ot(a.d).slice(0,o)===(t=ot(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ue(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ve=!0,ue(n,r)};q.times=q.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,c=p.length,s<c&&(a=d,d=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*d[i-n-1]+t,a[i--]=u%$e|0,t=u/$e|0;a[i]=(a[i]+t)%$e|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ve?ue(e,l.precision):e};q.toDecimalPlaces=q.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ct(e,0,an),t===void 0?t=n.rounding:ct(t,0,8),ue(r,e+xe(r)+1,t))};q.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ar(n,!0):(ct(e,0,an),t===void 0?t=i.rounding:ct(t,0,8),n=ue(new i(n),e+1,t),r=ar(n,!0,e+1)),r};q.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ar(i):(ct(e,0,an),t===void 0?t=a.rounding:ct(t,0,8),n=ue(new a(i),e+xe(i)+1,t),r=ar(n.abs(),!1,e+xe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};q.toInteger=q.toint=function(){var e=this,t=e.constructor;return ue(new t(e),xe(e)+1,t.rounding)};q.toNumber=function(){return+this};q.toPower=q.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(ze);if(u=new s(u),!u.s){if(e.s<1)throw Error(Ze+"Infinity");return u}if(u.eq(ze))return u;if(n=s.precision,e.eq(ze))return ue(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=zv){for(i=new s(ze),t=Math.ceil(n/he+4),ve=!1;r%2&&(i=i.times(u),rd(i.d,t)),r=on(r/2),r!==0;)u=u.times(u),rd(u.d,t);return ve=!0,e.s<0?new s(ze).div(i):ue(i,n)}}else if(a<0)throw Error(Ze+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ve=!1,i=e.times(Bn(u,n+c)),ve=!0,i=Hv(i),i.s=a,i};q.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=xe(i),n=ar(i,r<=a.toExpNeg||r>=a.toExpPos)):(ct(e,1,an),t===void 0?t=a.rounding:ct(t,0,8),i=ue(new a(i),e,t),r=xe(i),n=ar(i,e<=r||r<=a.toExpNeg,e)),n};q.toSignificantDigits=q.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ct(e,1,an),t===void 0?t=n.rounding:ct(t,0,8)),ue(new n(r),e,t)};q.toString=q.valueOf=q.val=q.toJSON=q[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=xe(e),r=e.constructor;return ar(e,t<=r.toExpNeg||t>=r.toExpPos)};function qv(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ve?ue(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/he),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/$e|0,s[a]%=$e;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,ve?ue(t,l):t}function ct(e,t,r){if(e!==~~e||e<t||e>r)throw Error(tr+e)}function ot(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=he-n.length,r&&(a+=Mt(r)),a+=n;o=e[t],n=o+"",r=he-n.length,r&&(a+=Mt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var bt=function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%$e|0,o=a/$e|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*$e+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,d,p,y,h,v,x,w,b,O,m,g,A,_,$=n.constructor,E=n.s==i.s?1:-1,j=n.d,T=i.d;if(!n.s)return new $(n);if(!i.s)throw Error(Ze+"Division by zero");for(s=n.e-i.e,A=T.length,m=j.length,p=new $(E),y=p.d=[],c=0;T[c]==(j[c]||0);)++c;if(T[c]>(j[c]||0)&&--s,a==null?w=a=$.precision:o?w=a+(xe(n)-xe(i))+1:w=a,w<0)return new $(0);if(w=w/he+2|0,c=0,A==1)for(f=0,T=T[0],w++;(c<m||f)&&w--;c++)b=f*$e+(j[c]||0),y[c]=b/T|0,f=b%T|0;else{for(f=$e/(T[0]+1)|0,f>1&&(T=e(T,f),j=e(j,f),A=T.length,m=j.length),O=A,h=j.slice(0,A),v=h.length;v<A;)h[v++]=0;_=T.slice(),_.unshift(0),g=T[0],T[1]>=$e/2&&++g;do f=0,u=t(T,h,A,v),u<0?(x=h[0],A!=v&&(x=x*$e+(h[1]||0)),f=x/g|0,f>1?(f>=$e&&(f=$e-1),l=e(T,f),d=l.length,v=h.length,u=t(l,h,d,v),u==1&&(f--,r(l,A<d?_:T,d))):(f==0&&(u=f=1),l=T.slice()),d=l.length,d<v&&l.unshift(0),r(h,l,v),u==-1&&(v=h.length,u=t(T,h,A,v),u<1&&(f++,r(h,A<v?_:T,v))),v=h.length):u===0&&(f++,h=[0]),y[c++]=f,u&&h[0]?h[v++]=j[O]||0:(h=[j[O]],v=1);while((O++<m||h[0]!==void 0)&&w--)}return y[0]||y.shift(),p.e=s,ue(p,o?a+xe(p)+1:a)}}();function Hv(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(xe(e)>16)throw Error(Ec+xe(e));if(!e.s)return new f(ze);for(t==null?(ve=!1,u=l):u=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Vt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(ze),f.precision=u;;){if(i=ue(i.times(e),u),r=r.times(++s),o=a.plus(bt(i,r,u)),ot(o.d).slice(0,u)===ot(a.d).slice(0,u)){for(;c--;)a=ue(a.times(a),u);return f.precision=l,t==null?(ve=!0,ue(a,l)):a}a=o}}function xe(e){for(var t=e.e*he,r=e.d[0];r>=10;r/=10)t++;return t}function Qo(e,t,r){if(t>e.LN10.sd())throw ve=!0,r&&(e.precision=r),Error(Ze+"LN10 precision limit exceeded");return ue(new e(e.LN10),t)}function Mt(e){for(var t="";e--;)t+="0";return t}function Bn(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,p=e,y=p.d,h=p.constructor,v=h.precision;if(p.s<1)throw Error(Ze+(p.s?"NaN":"-Infinity"));if(p.eq(ze))return new h(0);if(t==null?(ve=!1,c=v):c=t,p.eq(10))return t==null&&(ve=!0),Qo(h,c);if(c+=d,h.precision=c,r=ot(y),n=r.charAt(0),a=xe(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=ot(p.d),n=r.charAt(0),l++;a=xe(p),n>1?(p=new h("0."+r),a++):p=new h(n+"."+r.slice(1))}else return s=Qo(h,c+2,v).times(a+""),p=Bn(new h(n+"."+r.slice(1)),c-d).plus(s),h.precision=v,t==null?(ve=!0,ue(p,v)):p;for(u=o=p=bt(p.minus(ze),p.plus(ze),c),f=ue(p.times(p),c),i=3;;){if(o=ue(o.times(f),c),s=u.plus(bt(o,new h(i),c)),ot(s.d).slice(0,c)===ot(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(Qo(h,c+2,v).times(a+""))),u=bt(u,new h(l),c),h.precision=v,t==null?(ve=!0,ue(u,v)):u;u=s,i+=2}}function td(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=on(r/he),e.d=[],n=(r+1)%he,r<0&&(n+=he),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=he;n<i;)e.d.push(+t.slice(n,n+=he));t=t.slice(n),n=he-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ve&&(e.e>oa||e.e<-oa))throw Error(Ec+r)}else e.s=0,e.e=0,e.d=[0];return e}function ue(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=he,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/he),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=he,i=n-he+o}if(r!==void 0&&(a=Vt(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/Vt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=xe(e),l.length=1,t=t-a-1,l[0]=Vt(10,(he-t%he)%he),e.e=on(-t/he)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Vt(10,he-n),l[f]=i>0?(c/Vt(10,o-i)%Vt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==$e&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=$e)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ve&&(e.e>oa||e.e<-oa))throw Error(Ec+xe(e));return e}function Kv(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ve?ue(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/he),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=$e-1;--s[a],s[i]+=$e}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,ve?ue(t,p):t):new d(0)}function ar(e,t,r){var n,i=xe(e),a=ot(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Mt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Mt(-i-1)+a,r&&(n=r-o)>0&&(a+=Mt(n))):i>=o?(a+=Mt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Mt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Mt(n))),e.s<0?"-"+a:a}function rd(e,t){if(e.length>t)return e.length=t,!0}function Gv(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(tr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return td(o,a.toString())}else if(typeof a!="string")throw Error(tr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,MN.test(a))td(o,a);else throw Error(tr+a)}if(i.prototype=q,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=Gv,i.config=i.set=CN,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function CN(e){if(!e||typeof e!="object")throw Error(Ze+"Object expected");var t,r,n,i=["precision",1,an,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(on(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(tr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(tr+r+": "+n);return this}var Mc=Gv(EN);ze=new Mc(1);const oe=Mc;function NN(e){return RN(e)||DN(e)||kN(e)||IN()}function IN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kN(e,t){if(e){if(typeof e=="string")return Wu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wu(e,t)}}function DN(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function RN(e){if(Array.isArray(e))return Wu(e)}function Wu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var LN=function(t){return t},Vv={"@@functional/placeholder":!0},Xv=function(t){return t===Vv},nd=function(t){return function r(){return arguments.length===0||arguments.length===1&&Xv(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},BN=function e(t,r){return t===1?r:nd(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==Vv}).length;return o>=t?r.apply(void 0,i):e(t-o,nd(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return Xv(l)?s.shift():l});return r.apply(void 0,NN(f).concat(s))}))})},po=function(t){return BN(t.length,t)},zu=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},FN=po(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),UN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return LN;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},qu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Yv=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function WN(e){var t;return e===0?t=1:t=Math.floor(new oe(e).abs().log(10).toNumber())+1,t}function zN(e,t,r){for(var n=new oe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var qN=po(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),HN=po(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),KN=po(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const ho={rangeStep:zN,getDigitCount:WN,interpolateNumber:qN,uninterpolateNumber:HN,uninterpolateTruncation:KN};function Hu(e){return XN(e)||VN(e)||Zv(e)||GN()}function GN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VN(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function XN(e){if(Array.isArray(e))return Ku(e)}function Fn(e,t){return JN(e)||ZN(e,t)||Zv(e,t)||YN()}function YN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zv(e,t){if(e){if(typeof e=="string")return Ku(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ku(e,t)}}function Ku(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZN(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function JN(e){if(Array.isArray(e))return e}function Jv(e){var t=Fn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Qv(e,t,r){if(e.lte(0))return new oe(0);var n=ho.getDigitCount(e.toNumber()),i=new oe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new oe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new oe(Math.ceil(s))}function QN(e,t,r){var n=1,i=new oe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new oe(10).pow(ho.getDigitCount(e)-1),i=new oe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new oe(Math.floor(e)))}else e===0?i=new oe(Math.floor((t-1)/2)):r||(i=new oe(Math.floor(e)));var o=Math.floor((t-1)/2),u=UN(FN(function(s){return i.add(new oe(s-o).mul(n)).toNumber()}),zu);return u(0,t)}function ey(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new oe(0),tickMin:new oe(0),tickMax:new oe(0)};var a=Qv(new oe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new oe(0):(o=new oe(e).add(t).div(2),o=o.sub(new oe(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new oe(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?ey(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new oe(u).mul(a)),tickMax:o.add(new oe(s).mul(a))})}function e2(e){var t=Fn(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=Jv([r,n]),s=Fn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(Hu(zu(0,i-1).map(function(){return 1/0}))):[].concat(Hu(zu(0,i-1).map(function(){return-1/0})),[f]);return r>n?qu(l):l}if(c===f)return QN(c,i,a);var d=ey(c,f,o,a),p=d.step,y=d.tickMin,h=d.tickMax,v=ho.rangeStep(y,h.add(new oe(.1).mul(p)),p);return r>n?qu(v):v}function t2(e,t){var r=Fn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Jv([n,i]),u=Fn(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=Qv(new oe(c).sub(s).div(f-1),a,0),d=[].concat(Hu(ho.rangeStep(new oe(s),new oe(c).sub(new oe(.99).mul(l)),l)),[c]);return n>i?qu(d):d}var r2=Yv(e2),n2=Yv(t2),i2="Invariant failed";function or(e,t){throw new Error(i2)}var a2=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(this,arguments)}function o2(e,t){return l2(e)||c2(e,t)||s2(e,t)||u2()}function u2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s2(e,t){if(e){if(typeof e=="string")return id(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return id(e,t)}}function id(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function l2(e){if(Array.isArray(e))return e}function f2(e,t){if(e==null)return{};var r=d2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function p2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ny(n.key),n)}}function v2(e,t,r){return t&&h2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function y2(e,t,r){return t=sa(t),m2(e,ty()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function m2(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g2(e)}function g2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ty(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ty=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function b2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gu(e,t)}function Gu(e,t){return Gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gu(e,t)}function ry(e,t,r){return t=ny(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ny(e){var t=x2(e,"string");return Nr(t)=="symbol"?t:t+""}function x2(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vo=function(e){function t(){return p2(this,t),y2(this,t,arguments)}return b2(t,e),v2(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=f2(n,a2),p=X(d,!1);this.props.direction==="x"&&f.type!=="number"&&or();var y=s.map(function(h){var v=c(h,u),x=v.x,w=v.y,b=v.value,O=v.errorVal;if(!O)return null;var m=[],g,A;if(Array.isArray(O)){var _=o2(O,2);g=_[0],A=_[1]}else g=A=O;if(a==="vertical"){var $=f.scale,E=w+i,j=E+o,T=E-o,N=$(b-g),I=$(b+A);m.push({x1:I,y1:j,x2:I,y2:T}),m.push({x1:N,y1:E,x2:I,y2:E}),m.push({x1:N,y1:j,x2:N,y2:T})}else if(a==="horizontal"){var C=l.scale,k=x+i,D=k-o,B=k+o,U=C(b-g),H=C(b+A);m.push({x1:D,y1:H,x2:B,y2:H}),m.push({x1:k,y1:U,x2:k,y2:H}),m.push({x1:D,y1:U,x2:B,y2:U})}return P.createElement(ie,ua({className:"recharts-errorBar",key:"bar-".concat(m.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},p),m.map(function(G){return P.createElement("line",ua({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return P.createElement(ie,{className:"recharts-errorBars"},y)}}])}(P.Component);ry(vo,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});ry(vo,"displayName","ErrorBar");function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}function ad(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ad(Object(r),!0).forEach(function(n){w2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ad(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w2(e,t,r){return t=O2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O2(e){var t=A2(e,"string");return Un(t)=="symbol"?t:t+""}function A2(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iy=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=We(r,Or);if(!o)return null;var u=Or.defaultProps,s=u!==void 0?zt(zt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(h){return{type:o.props.iconType||d.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,p=d!==void 0?zt(zt({},d),l.props):{},y=p.dataKey,h=p.name,v=p.legendType,x=p.hide;return{inactive:x,dataKey:y,type:s.iconType||v||"square",color:Cc(l),value:h||y,payload:p}}),zt(zt(zt({},s),Or.getWithHeight(o,i)),{},{payload:c,item:o})};function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function od(e){return $2(e)||P2(e)||_2(e)||S2()}function S2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _2(e,t){if(e){if(typeof e=="string")return Vu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vu(e,t)}}function P2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $2(e){if(Array.isArray(e))return Vu(e)}function Vu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ud(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ud(Object(r),!0).forEach(function(n){Sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ud(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sr(e,t,r){return t=j2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j2(e){var t=T2(e,"string");return Wn(t)=="symbol"?t:t+""}function T2(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ce(e,t,r){return ee(e)||ee(t)?r:_e(t)?qe(e,t,r):Y(t)?t(e):r}function wn(e,t,r,n){var i=PN(e,function(u){return Ce(u,t)});if(r==="number"){var a=i.filter(function(u){return F(u)||parseFloat(u)});return a.length?[lo(a),co(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!ee(u)}):i;return o.map(function(u){return _e(u)||u instanceof Date?u:""})}var E2=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(Ne(l-f)!==Ne(d-l)){var y=[];if(Ne(d-l)===Ne(s[1]-s[0])){p=d;var h=l+s[1]-s[0];y[0]=Math.min(h,(h+f)/2),y[1]=Math.max(h,(h+f)/2)}else{p=f;var v=d+s[1]-s[0];y[0]=Math.min(l,(v+l)/2),y[1]=Math.max(l,(v+l)/2)}var x=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>x[0]&&t<=x[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var w=Math.min(f,d),b=Math.max(f,d);if(t>(w+l)/2&&t<=(b+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Cc=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?me(me({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},M2=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),d=0,p=l.length;d<p;d++){var y=f[l[d]],h=y.items,v=y.cateAxisId,x=h.filter(function(A){return yt(A.type).indexOf("Bar")>=0});if(x&&x.length){var w=x[0].type.defaultProps,b=w!==void 0?me(me({},w),x[0].props):x[0].props,O=b.barSize,m=b[v];o[m]||(o[m]=[]);var g=ee(O)?r:O;o[m].push({item:x[0],stackList:x.slice(1),barSize:ee(g)?void 0:Ie(g,n,0)})}}return o},C2=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Ie(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&p>0&&(d=!0,p*=.9,y=s*p);var h=(i-y)/2>>0,v={offset:h-c,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:v.offset+v.size+c,size:d?p:m.barSize}},A=[].concat(od(O),[g]);return v=A[A.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){A.push({item:_,position:v})}),A},l)}else{var x=Ie(n,i,0,!0);i-2*x-(s-1)*c<=0&&(c=0);var w=(i-2*x-(s-1)*c)/s;w>1&&(w>>=0);var b=u===+u?Math.min(w,u):w;f=o.reduce(function(O,m,g){var A=[].concat(od(O),[{item:m.item,position:{offset:x+(w+c)*g+(w-b)/2,size:b}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){A.push({item:_,position:A[A.length-1].position})}),A},l)}return f},N2=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=iy({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,p=c.align,y=c.verticalAlign,h=c.layout;if((h==="vertical"||h==="horizontal"&&y==="middle")&&p!=="center"&&F(t[p]))return me(me({},t),{},Sr({},p,t[p]+(l||0)));if((h==="horizontal"||h==="vertical"&&p==="center")&&y!=="middle"&&F(t[y]))return me(me({},t),{},Sr({},y,t[y]+(d||0)))}return t},I2=function(t,r,n){return ee(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ay=function(t,r,n,i,a){var o=r.props.children,u=Ye(o,vo).filter(function(c){return I2(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Ce(f,n);if(ee(l))return c;var d=Array.isArray(l)?[lo(l),co(l)]:[l,l],p=s.reduce(function(y,h){var v=Ce(f,h,0),x=d[0]-Math.abs(Array.isArray(v)?v[0]:v),w=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(x,y[0]),Math.max(w,y[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},k2=function(t,r,n,i,a){var o=r.map(function(u){return ay(t,u,n,a,i)}).filter(function(u){return!ee(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},oy=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&ay(t,s,c,i)||wn(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},uy=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Qt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?Ne(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!ci(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},eu=new WeakMap,$i=function(t,r){if(typeof r!="function")return t;eu.has(t)||eu.set(t,new WeakMap);var n=eu.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},sy=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:In(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:ra(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:xn(),realScaleType:"point"}:a==="category"?{scale:In(),realScaleType:"band"}:{scale:ra(),realScaleType:"linear"};if(rr(i)){var s="scale".concat(Xa(i));return{scale:(ed[s]||xn)(),realScaleType:ed[s]?s:"point"}}return Y(i)?{scale:i}:{scale:xn(),realScaleType:"point"}},sd=1e-4,cy=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-sd,o=Math.max(i[0],i[1])+sd,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},D2=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},R2=function(t,r){if(!r||r.length!==2||!F(r[0])||!F(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!F(t[0])||t[0]<n)&&(a[0]=n),(!F(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},L2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=ci(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},B2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=ci(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},F2={sign:L2,expand:i1,none:_r,silhouette:a1,wiggle:o1,positive:B2},U2=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=F2[n],o=n1().keys(i).value(function(u,s){return+Ce(u,s,0)}).order(bu).offset(a);return o(t)},W2=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?me(me({},d.type.defaultProps),d.props):d.props,h=y.stackId,v=y.hide;if(v)return l;var x=y[n],w=l[x]||{hasStack:!1,stackGroups:{}};if(_e(h)){var b=w.stackGroups[h]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(d),w.hasStack=!0,w.stackGroups[h]=b}else w.stackGroups[li("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return me(me({},l),{},Sr({},x,w))},s),f={};return Object.keys(c).reduce(function(l,d){var p=c[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(h,v){var x=p.stackGroups[v];return me(me({},h),{},Sr({},v,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:U2(t,x.items,a)}))},y)}return me(me({},l),{},Sr({},d,p))},f)},ly=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=r2(c,a,u);return t.domain([lo(f),co(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=n2(l,a,u);return{niceTicks:d}}return null},cd=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Ce(o,r.dataKey,r.domain[u]);return ee(s)?null:r.scale(s)-a/2+i},z2=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},q2=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?me(me({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(_e(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},H2=function(t){return t.reduce(function(r,n){return[lo(n.concat([r[0]]).filter(F)),co(n.concat([r[1]]).filter(F))]},[1/0,-1/0])},fy=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=H2(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},ld=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xu=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(F(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(ld.test(t[0])){var a=+ld.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(F(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(fd.test(t[1])){var o=+fd.exec(t[1])[1];i[1]=r[1]+o}else Y(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ca=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=oc(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},dd=function(t,r,n){return!t||!t.length||fo(t,qe(n,"type.defaultProps.domain"))?r:t},dy=function(t,r){var n=t.type.defaultProps?me(me({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return me(me({},X(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Cc(t),value:Ce(r,i),type:s,payload:r,chartType:c,hide:f})};function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function pd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pd(Object(r),!0).forEach(function(n){py(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function py(e,t,r){return t=K2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K2(e){var t=G2(e,"string");return zn(t)=="symbol"?t:t+""}function G2(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V2(e,t){return J2(e)||Z2(e,t)||Y2(e,t)||X2()}function X2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y2(e,t){if(e){if(typeof e=="string")return hd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hd(e,t)}}function hd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function J2(e){if(Array.isArray(e))return e}var la=Math.PI/180,Q2=function(t){return t*180/Math.PI},le=function(t,r,n,i){return{x:t+Math.cos(-la*i)*n,y:r+Math.sin(-la*i)*n}},hy=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},eI=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=Ie(t.cx,o,o/2),l=Ie(t.cy,u,u/2),d=hy(o,u,n),p=Ie(t.innerRadius,d,0),y=Ie(t.outerRadius,d,d*.8),h=Object.keys(r);return h.reduce(function(v,x){var w=r[x],b=w.domain,O=w.reversed,m;if(ee(w.range))i==="angleAxis"?m=[s,c]:i==="radiusAxis"&&(m=[p,y]),O&&(m=[m[1],m[0]]);else{m=w.range;var g=m,A=V2(g,2);s=A[0],c=A[1]}var _=sy(w,a),$=_.realScaleType,E=_.scale;E.domain(b).range(m),cy(E);var j=ly(E,dt(dt({},w),{},{realScaleType:$})),T=dt(dt(dt({},w),j),{},{range:m,radius:y,realScaleType:$,scale:E,cx:f,cy:l,innerRadius:p,outerRadius:y,startAngle:s,endAngle:c});return dt(dt({},v),{},py({},x,T))},{})},tI=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},rI=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=tI({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:Q2(c),angleInRadian:c}},nI=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},iI=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},vd=function(t,r){var n=t.x,i=t.y,a=rI({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=nI(r),l=f.startAngle,d=f.endAngle,p=u,y;if(l<=d){for(;p>d;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=d}else{for(;p>l;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=l}return y?dt(dt({},r),{},{radius:o,angle:iI(p,r)}):null},vy=function(t){return!L.isValidElement(t)&&!Y(t)&&typeof t!="boolean"?t.className:""};function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}var aI=["offset"];function oI(e){return lI(e)||cI(e)||sI(e)||uI()}function uI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sI(e,t){if(e){if(typeof e=="string")return Yu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yu(e,t)}}function cI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lI(e){if(Array.isArray(e))return Yu(e)}function Yu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fI(e,t){if(e==null)return{};var r=dI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yd(Object(r),!0).forEach(function(n){pI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pI(e,t,r){return t=hI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hI(e){var t=vI(e,"string");return qn(t)=="symbol"?t:t+""}function vI(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hn.apply(this,arguments)}var yI=function(t){var r=t.value,n=t.formatter,i=ee(t.children)?r:t.children;return Y(n)?n(i):i},mI=function(t,r){var n=Ne(r-t),i=Math.min(Math.abs(r-t),360);return n*i},gI=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,p=s.startAngle,y=s.endAngle,h=s.clockWise,v=(l+d)/2,x=mI(p,y),w=x>=0?1:-1,b,O;i==="insideStart"?(b=p+w*o,O=h):i==="insideEnd"?(b=y-w*o,O=!h):i==="end"&&(b=y+w*o,O=h),O=x<=0?O:!O;var m=le(c,f,v,b),g=le(c,f,v,b+(O?1:-1)*359),A="M".concat(m.x,",").concat(m.y,`
    A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`,
    `).concat(g.x,",").concat(g.y),_=ee(t.id)?li("recharts-radial-line-"):t.id;return P.createElement("text",Hn({},n,{dominantBaseline:"central",className:Q("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:_,d:A})),P.createElement("textPath",{xlinkHref:"#".concat(_)},r))},bI=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var p=le(o,u,c+n,d),y=p.x,h=p.y;return{x:y,y:h,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var v=(s+c)/2,x=le(o,u,v,d),w=x.x,b=x.y;return{x:w,y:b,textAnchor:"middle",verticalAnchor:"middle"}},xI=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*i,p=l>0?"end":"start",y=l>0?"start":"end",h=c>=0?1:-1,v=h*i,x=h>0?"end":"start",w=h>0?"start":"end";if(a==="top"){var b={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return Se(Se({},b),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:y};return Se(Se({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-v,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return Se(Se({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+c+v,y:s+f/2,textAnchor:w,verticalAnchor:"middle"};return Se(Se({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var A=n?{width:c,height:f}:{};return a==="insideLeft"?Se({x:u+v,y:s+f/2,textAnchor:w,verticalAnchor:"middle"},A):a==="insideRight"?Se({x:u+c-v,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},A):a==="insideTop"?Se({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:y},A):a==="insideBottom"?Se({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:p},A):a==="insideTopLeft"?Se({x:u+v,y:s+d,textAnchor:w,verticalAnchor:y},A):a==="insideTopRight"?Se({x:u+c-v,y:s+d,textAnchor:x,verticalAnchor:y},A):a==="insideBottomLeft"?Se({x:u+v,y:s+f-d,textAnchor:w,verticalAnchor:p},A):a==="insideBottomRight"?Se({x:u+c-v,y:s+f-d,textAnchor:x,verticalAnchor:p},A):Yr(a)&&(F(a.x)||Yt(a.x))&&(F(a.y)||Yt(a.y))?Se({x:u+Ie(a.x,c),y:s+Ie(a.y,f),textAnchor:"end",verticalAnchor:"end"},A):Se({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},wI=function(t){return"cx"in t&&F(t.cx)};function je(e){var t=e.offset,r=t===void 0?5:t,n=fI(e,aI),i=Se({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||ee(u)&&ee(s)&&!L.isValidElement(c)&&!Y(c))return null;if(L.isValidElement(c))return L.cloneElement(c,i);var p;if(Y(c)){if(p=L.createElement(c,i),L.isValidElement(p))return p}else p=yI(i);var y=wI(a),h=X(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return gI(i,p,h);var v=y?bI(i):xI(i);return P.createElement(ir,Hn({className:Q("recharts-label",l)},h,v,{breakAll:d}),p)}je.displayName="Label";var yy=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,p=t.top,y=t.left,h=t.width,v=t.height,x=t.clockWise,w=t.labelViewBox;if(w)return w;if(F(h)&&F(v)){if(F(l)&&F(d))return{x:l,y:d,width:h,height:v};if(F(p)&&F(y))return{x:p,y,width:h,height:v}}return F(l)&&F(d)?{x:l,y:d,width:0,height:0}:F(r)&&F(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:x}:t.viewBox?t.viewBox:{}},OI=function(t,r){return t?t===!0?P.createElement(je,{key:"label-implicit",viewBox:r}):_e(t)?P.createElement(je,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===je?L.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement(je,{key:"label-implicit",content:t,viewBox:r}):Y(t)?P.createElement(je,{key:"label-implicit",content:t,viewBox:r}):Yr(t)?P.createElement(je,Hn({viewBox:r},t,{key:"label-implicit"})):null:null},AI=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=yy(t),o=Ye(i,je).map(function(s,c){return L.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=OI(t.label,r||a);return[u].concat(oI(o))};je.parseViewBox=yy;je.renderCallByParent=AI;function SI(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var _I=SI;const PI=fe(_I);function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}var $I=["valueAccessor"],jI=["data","dataKey","clockWise","id","textBreakAll"];function TI(e){return NI(e)||CI(e)||MI(e)||EI()}function EI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MI(e,t){if(e){if(typeof e=="string")return Zu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zu(e,t)}}function CI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NI(e){if(Array.isArray(e))return Zu(e)}function Zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fa.apply(this,arguments)}function md(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?md(Object(r),!0).forEach(function(n){II(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function II(e,t,r){return t=kI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kI(e){var t=DI(e,"string");return Kn(t)=="symbol"?t:t+""}function DI(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bd(e,t){if(e==null)return{};var r=RI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var LI=function(t){return Array.isArray(t.value)?PI(t.value):t.value};function It(e){var t=e.valueAccessor,r=t===void 0?LI:t,n=bd(e,$I),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=bd(n,jI);return!i||!i.length?null:P.createElement(ie,{className:"recharts-label-list"},i.map(function(f,l){var d=ee(a)?r(f,l):Ce(f&&f.payload,a),p=ee(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement(je,fa({},X(f,!0),c,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:je.parseViewBox(ee(o)?f:gd(gd({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}It.displayName="LabelList";function BI(e,t){return e?e===!0?P.createElement(It,{key:"labelList-implicit",data:t}):P.isValidElement(e)||Y(e)?P.createElement(It,{key:"labelList-implicit",data:t,content:e}):Yr(e)?P.createElement(It,fa({data:t},e,{key:"labelList-implicit"})):null:null}function FI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ye(n,It).map(function(o,u){return L.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=BI(e.label,t);return[a].concat(TI(i))}It.renderCallByParent=FI;function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ju.apply(this,arguments)}function xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xd(Object(r),!0).forEach(function(n){UI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UI(e,t,r){return t=WI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WI(e){var t=zI(e,"string");return Gn(t)=="symbol"?t:t+""}function zI(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qI=function(t,r){var n=Ne(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ji=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/la,d=c?a:a+o*l,p=le(r,n,f,d),y=le(r,n,i,d),h=c?a-o*l:a,v=le(r,n,f*Math.cos(l*la),h);return{center:p,circleTangency:y,lineTangency:v,theta:l}},my=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=qI(o,u),c=o+s,f=le(r,n,a,o),l=le(r,n,a,c),d="M ".concat(f.x,",").concat(f.y,`
    A `).concat(a,",").concat(a,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
    `).concat(l.x,",").concat(l.y,`
  `);if(i>0){var p=le(r,n,i,o),y=le(r,n,i,c);d+="L ".concat(y.x,",").concat(y.y,`
            A `).concat(i,",").concat(i,`,0,
            `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
            `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},HI=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Ne(f-c),d=ji({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,y=d.lineTangency,h=d.theta,v=ji({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),x=v.circleTangency,w=v.lineTangency,b=v.theta,O=s?Math.abs(c-f):Math.abs(c-f)-h-b;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):my({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(w.x,",").concat(w.y,`
  `);if(i>0){var g=ji({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=g.circleTangency,_=g.lineTangency,$=g.theta,E=ji({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),j=E.circleTangency,T=E.lineTangency,N=E.theta,I=s?Math.abs(c-f):Math.abs(c-f)-$-N;if(I<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,`
      A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},KI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},gy=function(t){var r=wd(wd({},KI),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var p=Q("recharts-sector",d),y=o-a,h=Ie(u,y,0,!0),v;return h>0&&Math.abs(f-l)<360?v=HI({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(h,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):v=my({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",Ju({},X(r,!0),{className:p,d:v,role:"img"}))};function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qu.apply(this,arguments)}function Od(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ad(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Od(Object(r),!0).forEach(function(n){GI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Od(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GI(e,t,r){return t=VI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VI(e){var t=XI(e,"string");return Vn(t)=="symbol"?t:t+""}function XI(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sd={curveBasisClosed:Kw,curveBasisOpen:Gw,curveBasis:Hw,curveBumpX:Mw,curveBumpY:Cw,curveLinearClosed:Vw,curveLinear:Za,curveMonotoneX:Xw,curveMonotoneY:Yw,curveNatural:Zw,curveStep:Jw,curveStepAfter:e1,curveStepBefore:Qw},Ti=function(t){return t.x===+t.x&&t.y===+t.y},pn=function(t){return t.x},hn=function(t){return t.y},YI=function(t,r){if(Y(t))return t;var n="curve".concat(Xa(t));return(n==="curveMonotone"||n==="curveBump")&&r?Sd["".concat(n).concat(r==="vertical"?"Y":"X")]:Sd[n]||Za},ZI=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=YI(n,u),l=c?a.filter(function(h){return Ti(h)}):a,d;if(Array.isArray(o)){var p=c?o.filter(function(h){return Ti(h)}):o,y=l.map(function(h,v){return Ad(Ad({},h),{},{base:p[v]})});return u==="vertical"?d=bi().y(hn).x1(pn).x0(function(h){return h.base.x}):d=bi().x(pn).y1(hn).y0(function(h){return h.base.y}),d.defined(Ti).curve(f),d(y)}return u==="vertical"&&F(o)?d=bi().y(hn).x1(pn).x0(o):F(o)?d=bi().x(pn).y1(hn).y0(o):d=hh().x(pn).y(hn),d.defined(Ti).curve(f),d(l)},es=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?ZI(t):i;return L.createElement("path",Qu({},X(t,!1),Di(t),{className:Q("recharts-curve",r),d:o,ref:a}))},JI=Object.getOwnPropertyNames,QI=Object.getOwnPropertySymbols,ek=Object.prototype.hasOwnProperty;function _d(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ei(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function Pd(e){return JI(e).concat(QI(e))}var tk=Object.hasOwn||function(e,t){return ek.call(e,t)};function lr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var rk="__v",nk="__o",ik="_owner",$d=Object.getOwnPropertyDescriptor,jd=Object.keys;function ak(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function ok(e,t){return lr(e.getTime(),t.getTime())}function uk(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function sk(e,t){return e===t}function Td(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,u,s=0;(o=a.next())&&!o.done;){for(var c=t.entries(),f=!1,l=0;(u=c.next())&&!u.done;){if(i[l]){l++;continue}var d=o.value,p=u.value;if(r.equals(d[0],p[0],s,l,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}var ck=lr;function lk(e,t,r){var n=jd(e),i=n.length;if(jd(t).length!==i)return!1;for(;i-- >0;)if(!by(e,t,r,n[i]))return!1;return!0}function vn(e,t,r){var n=Pd(e),i=n.length;if(Pd(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!by(e,t,r,a)||(o=$d(e,a),u=$d(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function fk(e,t){return lr(e.valueOf(),t.valueOf())}function dk(e,t){return e.source===t.source&&e.flags===t.flags}function Ed(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,u;(o=a.next())&&!o.done;){for(var s=t.values(),c=!1,f=0;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function pk(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function hk(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function by(e,t,r,n){return(n===ik||n===nk||n===rk)&&(e.$$typeof||t.$$typeof)?!0:tk(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var vk="[object Arguments]",yk="[object Boolean]",mk="[object Date]",gk="[object Error]",bk="[object Map]",xk="[object Number]",wk="[object Object]",Ok="[object RegExp]",Ak="[object Set]",Sk="[object String]",_k="[object URL]",Pk=Array.isArray,Md=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Cd=Object.assign,$k=Object.prototype.toString.call.bind(Object.prototype.toString);function jk(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(y,h,v){if(y===h)return!0;if(y==null||h==null)return!1;var x=typeof y;if(x!==typeof h)return!1;if(x!=="object")return x==="number"?o(y,h,v):x==="function"?i(y,h,v):!1;var w=y.constructor;if(w!==h.constructor)return!1;if(w===Object)return u(y,h,v);if(Pk(y))return t(y,h,v);if(Md!=null&&Md(y))return l(y,h,v);if(w===Date)return r(y,h,v);if(w===RegExp)return c(y,h,v);if(w===Map)return a(y,h,v);if(w===Set)return f(y,h,v);var b=$k(y);return b===mk?r(y,h,v):b===Ok?c(y,h,v):b===bk?a(y,h,v):b===Ak?f(y,h,v):b===wk?typeof y.then!="function"&&typeof h.then!="function"&&u(y,h,v):b===_k?d(y,h,v):b===gk?n(y,h,v):b===vk?u(y,h,v):b===yk||b===xk||b===Sk?s(y,h,v):!1}}function Tk(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?vn:ak,areDatesEqual:ok,areErrorsEqual:uk,areFunctionsEqual:sk,areMapsEqual:n?_d(Td,vn):Td,areNumbersEqual:ck,areObjectsEqual:n?vn:lk,arePrimitiveWrappersEqual:fk,areRegExpsEqual:dk,areSetsEqual:n?_d(Ed,vn):Ed,areTypedArraysEqual:n?vn:pk,areUrlsEqual:hk};if(r&&(i=Cd({},i,r(i))),t){var a=Ei(i.areArraysEqual),o=Ei(i.areMapsEqual),u=Ei(i.areObjectsEqual),s=Ei(i.areSetsEqual);i=Cd({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function Ek(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function Mk(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,c){var f=n(),l=f.cache,d=l===void 0?t?new WeakMap:void 0:l,p=f.meta;return r(s,c,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(s,c){return r(s,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,c){return r(s,c,o)}}var Ck=Bt();Bt({strict:!0});Bt({circular:!0});Bt({circular:!0,strict:!0});Bt({createInternalComparator:function(){return lr}});Bt({strict:!0,createInternalComparator:function(){return lr}});Bt({circular:!0,createInternalComparator:function(){return lr}});Bt({circular:!0,createInternalComparator:function(){return lr},strict:!0});function Bt(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=Tk(e),s=jk(u),c=n?n(s):Ek(s);return Mk({circular:r,comparator:s,createState:i,equals:c,strict:o})}function Nk(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Nd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):Nk(i)};requestAnimationFrame(n)}function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(e)}function Ik(e){return Lk(e)||Rk(e)||Dk(e)||kk()}function kk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dk(e,t){if(e){if(typeof e=="string")return Id(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Id(e,t)}}function Id(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lk(e){if(Array.isArray(e))return e}function Bk(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=Ik(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Nd(i.bind(null,c),s);return}i(s),Nd(i.bind(null,c));return}ts(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function kd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kd(Object(r),!0).forEach(function(n){xy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xy(e,t,r){return t=Fk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fk(e){var t=Uk(e,"string");return Xn(t)==="symbol"?t:String(t)}function Uk(e,t){if(Xn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wk=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},zk=function(t){return t},qk=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},On=function(t,r){return Object.keys(r).reduce(function(n,i){return Dd(Dd({},n),{},xy({},i,t(i,r[i])))},{})},Rd=function(t,r,n){return t.map(function(i){return"".concat(qk(i)," ").concat(r,"ms ").concat(n)}).join(",")};function Hk(e,t){return Vk(e)||Gk(e,t)||wy(e,t)||Kk()}function Kk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Vk(e){if(Array.isArray(e))return e}function Xk(e){return Jk(e)||Zk(e)||wy(e)||Yk()}function Yk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wy(e,t){if(e){if(typeof e=="string")return rs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rs(e,t)}}function Zk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jk(e){if(Array.isArray(e))return rs(e)}function rs(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var da=1e-4,Oy=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Ay=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Ld=function(t,r){return function(n){var i=Oy(t,r);return Ay(i,n)}},Qk=function(t,r){return function(n){var i=Oy(t,r),a=[].concat(Xk(i.map(function(o,u){return o*u}).slice(1)),[0]);return Ay(a,n)}},Bd=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=Hk(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Ld(i,o),d=Ld(a,u),p=Qk(i,o),y=function(x){return x>1?1:x<0?0:x},h=function(x){for(var w=x>1?1:x,b=w,O=0;O<8;++O){var m=l(b)-w,g=p(b);if(Math.abs(m-w)<da||g<da)return d(b);b=y(b-m/g)}return d(b)};return h.isStepper=!1,h},eD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,d){var p=-(f-l)*n,y=d*a,h=d+(p-y)*u/1e3,v=d*u/1e3+f;return Math.abs(v-l)<da&&Math.abs(h)<da?[l,0]:[v,h]};return s.isStepper=!0,s.dt=u,s},tD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Bd(i);case"spring":return eD();default:if(i.split("(")[0]==="cubic-bezier")return Bd(i)}return typeof i=="function"?i:null};function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function Fd(e){return iD(e)||nD(e)||Sy(e)||rD()}function rD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iD(e){if(Array.isArray(e))return is(e)}function Ud(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ud(Object(r),!0).forEach(function(n){ns(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ud(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ns(e,t,r){return t=aD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aD(e){var t=oD(e,"string");return Yn(t)==="symbol"?t:String(t)}function oD(e,t){if(Yn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uD(e,t){return lD(e)||cD(e,t)||Sy(e,t)||sD()}function sD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sy(e,t){if(e){if(typeof e=="string")return is(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return is(e,t)}}function is(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function lD(e){if(Array.isArray(e))return e}var pa=function(t,r,n){return t+(r-t)*n},as=function(t){var r=t.from,n=t.to;return r!==n},fD=function e(t,r,n){var i=On(function(a,o){if(as(o)){var u=t(o.from,o.to,o.velocity),s=uD(u,2),c=s[0],f=s[1];return Ee(Ee({},o),{},{from:c,velocity:f})}return o},r);return n<1?On(function(a,o){return as(o)?Ee(Ee({},o),{},{velocity:pa(o.velocity,i[a].velocity,n),from:pa(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const dD=function(e,t,r,n,i){var a=Wk(e,t),o=a.reduce(function(v,x){return Ee(Ee({},v),{},ns({},x,[e[x],t[x]]))},{}),u=a.reduce(function(v,x){return Ee(Ee({},v),{},ns({},x,{from:e[x],velocity:0,to:t[x]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return On(function(x,w){return w.from},u)},p=function(){return!Object.values(u).filter(as).length},y=function(x){c||(c=x);var w=x-c,b=w/r.dt;u=fD(r,u,b),i(Ee(Ee(Ee({},e),t),d())),c=x,p()||(s=requestAnimationFrame(l))},h=function(x){f||(f=x);var w=(x-f)/n,b=On(function(m,g){return pa.apply(void 0,Fd(g).concat([r(w)]))},o);if(i(Ee(Ee(Ee({},e),t),b)),w<1)s=requestAnimationFrame(l);else{var O=On(function(m,g){return pa.apply(void 0,Fd(g).concat([r(1)]))},o);i(Ee(Ee(Ee({},e),t),O))}};return l=r.isStepper?y:h,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}};function Ir(e){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(e)}var pD=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function hD(e,t){if(e==null)return{};var r=vD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vD(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function tu(e){return bD(e)||gD(e)||mD(e)||yD()}function yD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mD(e,t){if(e){if(typeof e=="string")return os(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return os(e,t)}}function gD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bD(e){if(Array.isArray(e))return os(e)}function os(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wd(Object(r),!0).forEach(function(n){mn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mn(e,t,r){return t=_y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_y(n.key),n)}}function OD(e,t,r){return t&&wD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _y(e){var t=AD(e,"string");return Ir(t)==="symbol"?t:String(t)}function AD(e,t){if(Ir(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ir(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&us(e,t)}function us(e,t){return us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},us(e,t)}function _D(e){var t=PD();return function(){var n=ha(e),i;if(t){var a=ha(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ss(this,i)}}function ss(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cs(e)}function cs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ha(e)}var At=function(e){SD(r,e);var t=_D(r);function r(n,i){var a;xD(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(cs(a)),a.changeStyle=a.changeStyle.bind(cs(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),ss(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},ss(a);a.state={style:s?mn({},s,c):c}}else a.state={style:{}};return a}return OD(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(u){if(!o){var p={style:s?mn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(p);return}if(!(Ck(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=y||c?l:i.to;if(this.state&&d){var v={style:s?mn({},s,h):h};(s&&d[s]!==h||!s&&d!==h)&&this.setState(v)}this.runAnimation(et(et({},this.props),{},{from:h,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,p=dD(o,u,tD(c),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,d=l===void 0?0:l,p=function(h,v,x){if(x===0)return h;var w=v.duration,b=v.easing,O=b===void 0?"ease":b,m=v.style,g=v.properties,A=v.onAnimationEnd,_=x>0?o[x-1]:v,$=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(tu(h),[a.runJSAnimation.bind(a,{from:_.style,to:m,duration:w,easing:O}),w]);var E=Rd($,w,O),j=et(et(et({},_.style),m),{},{transition:E});return[].concat(tu(h),[j,w,A]).filter(zk)};return this.manager.start([s].concat(tu(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Bk());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var h=u?mn({},u,s):s,v=Rd(Object.keys(h),o,c);y.start([f,a,et(et({},h),{},{transition:v}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=hD(i,pD),c=L.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var y=p.props,h=y.style,v=h===void 0?{}:h,x=y.className,w=L.cloneElement(p,et(et({},s),{},{style:et(et({},v),f),className:x}));return w};return c===1?l(L.Children.only(a)):P.createElement("div",null,L.Children.map(a,function(d){return l(d)}))}}]),r}(L.PureComponent);At.displayName="Animate";At.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};At.propTypes={from:ne.oneOfType([ne.object,ne.string]),to:ne.oneOfType([ne.object,ne.string]),attributeName:ne.string,duration:ne.number,begin:ne.number,easing:ne.oneOfType([ne.string,ne.func]),steps:ne.arrayOf(ne.shape({duration:ne.number.isRequired,style:ne.object.isRequired,easing:ne.oneOfType([ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ne.func]),properties:ne.arrayOf("string"),onAnimationEnd:ne.func})),children:ne.oneOfType([ne.node,ne.func]),isActive:ne.bool,canBegin:ne.bool,onAnimationEnd:ne.func,shouldReAnimate:ne.bool,onAnimationStart:ne.func,onAnimationReStart:ne.func};function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},va.apply(this,arguments)}function $D(e,t){return MD(e)||ED(e,t)||TD(e,t)||jD()}function jD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TD(e,t){if(e){if(typeof e=="string")return zd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zd(e,t)}}function zd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ED(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function MD(e){if(Array.isArray(e))return e}function qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qd(Object(r),!0).forEach(function(n){CD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CD(e,t,r){return t=ND(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ND(e){var t=ID(e,"string");return Zn(t)=="symbol"?t:t+""}function ID(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kd=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],d=0,p=4;d<p;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
        `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`,
        `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
        `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,`
            L `).concat(t+n-s*y,",").concat(r,`
            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,`
            L `).concat(t+n,",").concat(r+i-u*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,`
            L `).concat(t+s*y,",").concat(r+i,`
            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},kD=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=d}return!1},DD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Nc=function(t){var r=Hd(Hd({},DD),t),n=L.useRef(),i=L.useState(-1),a=$D(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,p=r.className,y=r.animationEasing,h=r.animationDuration,v=r.animationBegin,x=r.isAnimationActive,w=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var b=Q("recharts-rectangle",p);return w?P.createElement(At,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:h,animationEasing:y,isActive:w},function(O){var m=O.width,g=O.height,A=O.x,_=O.y;return P.createElement(At,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,isActive:x,easing:y},P.createElement("path",va({},X(r,!0),{className:b,d:Kd(A,_,m,g,d),ref:n})))}):P.createElement("path",va({},X(r,!0),{className:b,d:Kd(s,c,f,l,d)}))},RD=["points","className","baseLinePoints","connectNulls"];function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mr.apply(this,arguments)}function LD(e,t){if(e==null)return{};var r=BD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gd(e){return zD(e)||WD(e)||UD(e)||FD()}function FD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UD(e,t){if(e){if(typeof e=="string")return ls(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ls(e,t)}}function WD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zD(e){if(Array.isArray(e))return ls(e)}function ls(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Vd=function(t){return t&&t.x===+t.x&&t.y===+t.y},qD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Vd(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Vd(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},An=function(t,r){var n=qD(t);r&&(n=[n.reduce(function(a,o){return[].concat(Gd(a),Gd(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},HD=function(t,r,n){var i=An(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(An(r.reverse(),n).slice(1))},KD=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=LD(t,RD);if(!r||!r.length)return null;var u=Q("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=HD(r,i,a);return P.createElement("g",{className:u},P.createElement("path",mr({},X(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?P.createElement("path",mr({},X(o,!0),{fill:"none",d:An(r,a)})):null,s?P.createElement("path",mr({},X(o,!0),{fill:"none",d:An(i,a)})):null)}var f=An(r,a);return P.createElement("path",mr({},X(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fs.apply(this,arguments)}var Ic=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Q("recharts-dot",a);return r===+r&&n===+n&&i===+i?L.createElement("circle",fs({},X(t,!1),Di(t),{className:o,cx:r,cy:n,r:i})):null};function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}var GD=["x","y","top","left","width","height","className"];function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ds.apply(this,arguments)}function Xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(r),!0).forEach(function(n){XD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XD(e,t,r){return t=YD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YD(e){var t=ZD(e,"string");return Jn(t)=="symbol"?t:t+""}function ZD(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JD(e,t){if(e==null)return{};var r=QD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var eR=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},tR=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,h=JD(t,GD),v=VD({x:n,y:a,top:u,left:c,width:l,height:p},h);return!F(n)||!F(a)||!F(l)||!F(p)||!F(u)||!F(c)?null:P.createElement("path",ds({},X(v,!0),{className:Q("recharts-cross",y),d:eR(n,a,l,p,u,c)}))},rR=so,nR=Uv,iR=Dt;function aR(e,t){return e&&e.length?rR(e,iR(t),nR):void 0}var oR=aR;const uR=fe(oR);var sR=so,cR=Dt,lR=Wv;function fR(e,t){return e&&e.length?sR(e,cR(t),lR):void 0}var dR=fR;const pR=fe(dR);var hR=["cx","cy","angle","ticks","axisLine"],vR=["ticks","tick","angle","tickFormatter","stroke"];function kr(e){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(e)}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(this,arguments)}function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yd(Object(r),!0).forEach(function(n){yo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zd(e,t){if(e==null)return{};var r=yR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$y(n.key),n)}}function gR(e,t,r){return t&&Jd(e.prototype,t),r&&Jd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bR(e,t,r){return t=ya(t),xR(e,Py()?Reflect.construct(t,r||[],ya(e).constructor):t.apply(e,r))}function xR(e,t){if(t&&(kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wR(e)}function wR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Py(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Py=function(){return!!e})()}function ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(e)}function OR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ps(e,t)}function ps(e,t){return ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ps(e,t)}function yo(e,t,r){return t=$y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $y(e){var t=AR(e,"string");return kr(t)=="symbol"?t:t+""}function AR(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mo=function(e){function t(){return mR(this,t),bR(this,t,arguments)}return OR(t,e),gR(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return le(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=uR(u,function(f){return f.coordinate||0}),c=pR(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=Zd(n,hR),f=u.reduce(function(y,h){return[Math.min(y[0],h.coordinate),Math.max(y[1],h.coordinate)]},[1/0,-1/0]),l=le(i,a,f[0],o),d=le(i,a,f[1],o),p=qt(qt(qt({},X(c,!1)),{},{fill:"none"},X(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return P.createElement("line",Sn({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,f=Zd(i,vR),l=this.getTickTextAnchor(),d=X(f,!1),p=X(o,!1),y=a.map(function(h,v){var x=n.getTickValueCoord(h),w=qt(qt(qt(qt({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(x.x,", ").concat(x.y,")")},d),{},{stroke:"none",fill:c},p),{},{index:v},x),{},{payload:h});return P.createElement(ie,Sn({className:Q("recharts-polar-radius-axis-tick",vy(o)),key:"tick-".concat(h.coordinate)},nr(n.props,h,v)),t.renderTickItem(o,w,s?s(h.value,v):h.value))});return P.createElement(ie,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(ie,{className:Q("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),je.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):Y(n)?o=n(i):o=P.createElement(ir,Sn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(L.PureComponent);yo(mo,"displayName","PolarRadiusAxis");yo(mo,"axisType","radiusAxis");yo(mo,"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});function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xt.apply(this,arguments)}function Qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qd(Object(r),!0).forEach(function(n){go(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ep(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ty(n.key),n)}}function _R(e,t,r){return t&&ep(e.prototype,t),r&&ep(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PR(e,t,r){return t=ma(t),$R(e,jy()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function $R(e,t){if(t&&(Dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jR(e)}function jR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jy=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function TR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hs(e,t)}function hs(e,t){return hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hs(e,t)}function go(e,t,r){return t=Ty(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ty(e){var t=ER(e,"string");return Dr(t)=="symbol"?t:t+""}function ER(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MR=Math.PI/180,tp=1e-5,bo=function(e){function t(){return SR(this,t),PR(this,t,arguments)}return TR(t,e),_R(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,f=c||8,l=le(a,o,u,n.coordinate),d=le(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*MR),o;return a>tp?o=i==="outer"?"start":"end":a<-tp?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=Ht(Ht({},X(this.props,!1)),{},{fill:"none"},X(u,!1));if(s==="circle")return P.createElement(Ic,Xt({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(d){return le(i,a,o,d.coordinate)});return P.createElement(KD,Xt({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,f=X(this.props,!1),l=X(o,!1),d=Ht(Ht({},f),{},{fill:"none"},X(u,!1)),p=a.map(function(y,h){var v=n.getTickLineCoord(y),x=n.getTickTextAnchor(y),w=Ht(Ht(Ht({textAnchor:x},f),{},{stroke:"none",fill:c},l),{},{index:h,payload:y,x:v.x2,y:v.y2});return P.createElement(ie,Xt({className:Q("recharts-polar-angle-axis-tick",vy(o)),key:"tick-".concat(y.coordinate)},nr(n.props,y,h)),u&&P.createElement("line",Xt({className:"recharts-polar-angle-axis-tick-line"},d,v)),o&&t.renderTickItem(o,w,s?s(y.value,h):y.value))});return P.createElement(ie,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:P.createElement(ie,{className:Q("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):Y(n)?o=n(i):o=P.createElement(ir,Xt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(L.PureComponent);go(bo,"displayName","PolarAngleAxis");go(bo,"axisType","angleAxis");go(bo,"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 CR=Lh,NR=CR(Object.getPrototypeOf,Object),IR=NR,kR=St,DR=IR,RR=_t,LR="[object Object]",BR=Function.prototype,FR=Object.prototype,Ey=BR.toString,UR=FR.hasOwnProperty,WR=Ey.call(Object);function zR(e){if(!RR(e)||kR(e)!=LR)return!1;var t=DR(e);if(t===null)return!0;var r=UR.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ey.call(r)==WR}var qR=zR;const HR=fe(qR);var KR=St,GR=_t,VR="[object Boolean]";function XR(e){return e===!0||e===!1||GR(e)&&KR(e)==VR}var YR=XR;const ZR=fe(YR);function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ga.apply(this,arguments)}function JR(e,t){return rL(e)||tL(e,t)||eL(e,t)||QR()}function QR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eL(e,t){if(e){if(typeof e=="string")return rp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rp(e,t)}}function rp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function rL(e){if(Array.isArray(e))return e}function np(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ip(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?np(Object(r),!0).forEach(function(n){nL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):np(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nL(e,t,r){return t=iL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iL(e){var t=aL(e,"string");return Qn(t)=="symbol"?t:t+""}function aL(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ap=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},oL={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uL=function(t){var r=ip(ip({},oL),t),n=L.useRef(),i=L.useState(-1),a=JR(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&u(b)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,p=r.className,y=r.animationEasing,h=r.animationDuration,v=r.animationBegin,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var w=Q("recharts-trapezoid",p);return x?P.createElement(At,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:h,animationEasing:y,isActive:x},function(b){var O=b.upperWidth,m=b.lowerWidth,g=b.height,A=b.x,_=b.y;return P.createElement(At,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,easing:y},P.createElement("path",ga({},X(r,!0),{className:w,d:ap(A,_,O,m,g),ref:n})))}):P.createElement("g",null,P.createElement("path",ga({},X(r,!0),{className:w,d:ap(s,c,f,l,d)})))},sL=["option","shapeType","propTransformer","activeClassName","isActive"];function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function cL(e,t){if(e==null)return{};var r=lL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function op(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ba(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?op(Object(r),!0).forEach(function(n){fL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):op(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fL(e,t,r){return t=dL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dL(e){var t=pL(e,"string");return ei(t)=="symbol"?t:t+""}function pL(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hL(e,t){return ba(ba({},t),e)}function vL(e,t){return e==="symbols"}function up(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(Nc,r);case"trapezoid":return P.createElement(uL,r);case"sector":return P.createElement(gy,r);case"symbols":if(vL(t))return P.createElement(Zs,r);break;default:return null}}function yL(e){return L.isValidElement(e)?e.props:e}function My(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?hL:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=cL(e,sL),c;if(L.isValidElement(t))c=L.cloneElement(t,ba(ba({},s),yL(t)));else if(Y(t))c=t(s);else if(HR(t)&&!ZR(t)){var f=i(t,s);c=P.createElement(up,{shapeType:r,elementProps:f})}else{var l=s;c=P.createElement(up,{shapeType:r,elementProps:l})}return u?P.createElement(ie,{className:o},c):c}function xo(e,t){return t!=null&&"trapezoids"in e.props}function wo(e,t){return t!=null&&"sectors"in e.props}function ti(e,t){return t!=null&&"points"in e.props}function mL(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function gL(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function bL(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function xL(e,t){var r;return xo(e,t)?r=mL:wo(e,t)?r=gL:ti(e,t)&&(r=bL),r}function wL(e,t){var r;return xo(e,t)?r="trapezoids":wo(e,t)?r="sectors":ti(e,t)&&(r="points"),r}function OL(e,t){if(xo(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(wo(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return ti(e,t)?t.payload:{}}function AL(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=wL(r,t),a=OL(r,t),o=n.filter(function(s,c){var f=fo(a,s),l=r.props[i].filter(function(y){var h=xL(r,t);return h(y,t)}),d=r.props[i].indexOf(l[l.length-1]),p=c===d;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var Ni;function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function gr(){return gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gr.apply(this,arguments)}function sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(r),!0).forEach(function(n){Ve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ny(n.key),n)}}function _L(e,t,r){return t&&cp(e.prototype,t),r&&cp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PL(e,t,r){return t=xa(t),$L(e,Cy()?Reflect.construct(t,r||[],xa(e).constructor):t.apply(e,r))}function $L(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jL(e)}function jL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cy=function(){return!!e})()}function xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}function TL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vs(e,t)}function vs(e,t){return vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vs(e,t)}function Ve(e,t,r){return t=Ny(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ny(e){var t=EL(e,"string");return Rr(t)=="symbol"?t:t+""}function EL(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $t=function(e){function t(r){var n;return SL(this,t),n=PL(this,t,[r]),Ve(n,"pieRef",null),Ve(n,"sectorRefs",[]),Ve(n,"id",li("recharts-pie-")),Ve(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Y(i)&&i()}),Ve(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Y(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return TL(t,e),_L(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,f=X(this.props,!1),l=X(o,!1),d=X(u,!1),p=o&&o.offsetRadius||20,y=n.map(function(h,v){var x=(h.startAngle+h.endAngle)/2,w=le(h.cx,h.cy,h.outerRadius+p,x),b=se(se(se(se({},f),h),{},{stroke:"none"},l),{},{index:v,textAnchor:t.getTextAnchor(w.x,h.cx)},w),O=se(se(se(se({},f),h),{},{fill:"none",stroke:h.fill},d),{},{index:v,points:[le(h.cx,h.cy,h.outerRadius,x),w]}),m=s;return ee(s)&&ee(c)?m="value":ee(s)&&(m=c),P.createElement(ie,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(v)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,b,Ce(h,m)))});return P.createElement(ie,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,f){if(c?.startAngle===0&&c?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),d=s&&i.hasActiveIndex()?s:null,p=l?o:d,y=se(se({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return P.createElement(ie,gr({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},nr(i.props,c,f),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(f)}),P.createElement(My,gr({option:p,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state,d=l.prevSectors,p=l.prevIsAnimationActive;return P.createElement(At,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var h=y.t,v=[],x=a&&a[0],w=x.startAngle;return a.forEach(function(b,O){var m=d&&d[O],g=O>0?qe(b,"paddingAngle",0):0;if(m){var A=Et(m.endAngle-m.startAngle,b.endAngle-b.startAngle),_=se(se({},b),{},{startAngle:w+g,endAngle:w+A(h)+g});v.push(_),w=_.endAngle}else{var $=b.endAngle,E=b.startAngle,j=Et(0,$-E),T=j(h),N=se(se({},b),{},{startAngle:w+g,endAngle:w+T+g});v.push(N),w=N.endAngle}}),P.createElement(ie,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!fo(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,s=i.label,c=i.cx,f=i.cy,l=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!F(c)||!F(f)||!F(l)||!F(d))return null;var h=Q("recharts-pie",u);return P.createElement(ie,{tabIndex:this.props.rootTabIndex,className:h,ref:function(x){n.pieRef=x}},this.renderSectors(),s&&this.renderLabels(o),je.renderCallByParent(this.props,null,!1),(!p||y)&&It.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);if(Y(n))return n(i);var o=Q("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(es,gr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(Y(n)&&(o=n(i),P.isValidElement(o)))return o;var u=Q("recharts-pie-label-text",typeof n!="boolean"&&!Y(n)?n.className:"");return P.createElement(ir,gr({},i,{alignmentBaseline:"middle",className:u}),o)}}])}(L.PureComponent);Ni=$t;Ve($t,"displayName","Pie");Ve($t,"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:!gt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ve($t,"parseDeltaAngle",function(e,t){var r=Ne(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Ve($t,"getRealPieData",function(e){var t=e.data,r=e.children,n=X(e,!1),i=Ye(r,Mn);return t&&t.length?t.map(function(a,o){return se(se(se({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return se(se({},n),a.props)}):[]});Ve($t,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=hy(i,a),u=n+Ie(e.cx,i,i/2),s=r+Ie(e.cy,a,a/2),c=Ie(e.innerRadius,o,0),f=Ie(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});Ve($t,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?se(se({},t.type.defaultProps),t.props):t.props,i=Ni.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,d=n.tooltipType,p=Math.abs(n.minAngle),y=Ni.parseCoordinateOfPie(n,r),h=Ni.parseDeltaAngle(o,u),v=Math.abs(h),x=c;ee(c)&&ee(l)?(mt(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),x="value"):ee(c)&&(mt(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),x=l);var w=i.filter(function(_){return Ce(_,x,0)!==0}).length,b=(v>=360?w:w-1)*s,O=v-w*p-b,m=i.reduce(function(_,$){var E=Ce($,x,0);return _+(F(E)?E:0)},0),g;if(m>0){var A;g=i.map(function(_,$){var E=Ce(_,x,0),j=Ce(_,f,$),T=(F(E)?E:0)/m,N;$?N=A.endAngle+Ne(h)*s*(E!==0?1:0):N=o;var I=N+Ne(h)*((E!==0?p:0)+T*O),C=(N+I)/2,k=(y.innerRadius+y.outerRadius)/2,D=[{name:j,value:E,payload:_,dataKey:x,type:d}],B=le(y.cx,y.cy,k,C);return A=se(se(se({percent:T,cornerRadius:a,name:j,tooltipPayload:D,midAngle:C,middleRadius:k,tooltipPosition:B},_),y),{},{value:Ce(_,x),startAngle:N,endAngle:I,payload:_,paddingAngle:Ne(h)*s}),A})}return se(se({},y),{},{sectors:g,data:i})});var ML=Math.ceil,CL=Math.max;function NL(e,t,r,n){for(var i=-1,a=CL(ML((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var IL=NL,kL=rv,lp=1/0,DL=17976931348623157e292;function RL(e){if(!e)return e===0?e:0;if(e=kL(e),e===lp||e===-lp){var t=e<0?-1:1;return t*DL}return e===e?e:0}var LL=RL,BL=IL,FL=to,ru=LL;function UL(e){return function(t,r,n){return n&&typeof n!="number"&&FL(t,r,n)&&(r=n=void 0),t=ru(t),r===void 0?(r=t,t=0):r=ru(r),n=n===void 0?t<r?1:-1:ru(n),BL(t,r,n,e)}}var WL=UL,zL=WL,qL=zL(),HL=qL;const wa=fe(HL);function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function fp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fp(Object(r),!0).forEach(function(n){Iy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iy(e,t,r){return t=KL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e){var t=GL(e,"string");return ri(t)=="symbol"?t:t+""}function GL(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VL=["Webkit","Moz","O","ms"],XL=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=VL.reduce(function(a,o){return dp(dp({},a),{},Iy({},o+n,r))},{});return i[t]=r,i};function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oa.apply(this,arguments)}function pp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pp(Object(r),!0).forEach(function(n){Ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dy(n.key),n)}}function ZL(e,t,r){return t&&hp(e.prototype,t),r&&hp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function JL(e,t,r){return t=Aa(t),QL(e,ky()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function QL(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eB(e)}function eB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ky(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ky=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function tB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ys(e,t)}function ys(e,t){return ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ys(e,t)}function Ue(e,t,r){return t=Dy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dy(e){var t=rB(e,"string");return Lr(t)=="symbol"?t:t+""}function rB(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nB=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=xn().domain(wa(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},vp=function(t){return t.changedTouches&&!!t.changedTouches.length},Br=function(e){function t(r){var n;return YL(this,t),n=JL(this,t,[r]),Ue(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ue(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ue(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ue(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ue(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ue(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ue(n,"handleSlideDragStart",function(i){var a=vp(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return tB(t,e),ZL(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Ce(a[n],u,n);return Y(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,p=s.endIndex,y=s.onChange,h=n.pageX-a;h>0?h=Math.min(h,c+f-l-u,c+f-l-o):h<0&&(h=Math.max(h,c-o,c-u));var v=this.getIndex({startX:o+h,endX:u+h});(v.startIndex!==d||v.endIndex!==p)&&y&&y(v),this.setState({startX:o+h,endX:u+h,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=vp(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,h=f.gap,v=f.data,x={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,l+d-p-c):w<0&&(w=Math.max(w,l-c)),x[o]=c+w;var b=this.getIndex(x),O=b.startIndex,m=b.endIndex,g=function(){var _=v.length-1;return o==="startX"&&(u>s?O%h===0:m%h===0)||u<s&&m===_||o==="endX"&&(u>s?m%h===0:O%h===0)||u>s&&m===_};this.setState(Ue(Ue({},o,c+w),"brushMoveStartX",n.pageX),function(){y&&g()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=c||i==="endX"&&p<=s||this.setState(Ue({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return P.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=L.Children.only(c);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,p=s.ariaLabel,y=s.data,h=s.startIndex,v=s.endIndex,x=Math.max(n,this.props.x),w=nu(nu({},X(this.props,!1)),{},{x,y:c,width:f,height:l}),b=p||"Min value: ".concat((a=y[h])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[v])===null||o===void 0?void 0:o.name);return P.createElement(ie,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,w))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:c};return P.createElement(ie,{className:"recharts-brush-texts"},P.createElement(ir,Oa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-p,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(ir,Oa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,p=d.startX,y=d.endX,h=d.isTextActive,v=d.isSlideMoving,x=d.isTravellerMoving,w=d.isTravellerFocused;if(!i||!i.length||!F(u)||!F(s)||!F(c)||!F(f)||c<=0||f<=0)return null;var b=Q("recharts-brush",a),O=P.Children.count(o)===1,m=XL("userSelect","none");return P.createElement(ie,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(h||v||x||w||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),P.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):Y(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return nu({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?nB({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])}(L.PureComponent);Ue(Br,"displayName","Brush");Ue(Br,"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 iB=ac;function aB(e,t){var r;return iB(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var oB=aB,uB=Eh,sB=Dt,cB=oB,lB=Be,fB=to;function dB(e,t,r){var n=lB(e)?uB:cB;return r&&fB(e,t,r)&&(t=void 0),n(e,sB(t))}var pB=dB;const hB=fe(pB);var st=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},yp=Zh;function vB(e,t,r){t=="__proto__"&&yp?yp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var yB=vB,mB=yB,gB=Xh,bB=Dt;function xB(e,t){var r={};return t=bB(t),gB(e,function(n,i,a){mB(r,i,t(n,i,a))}),r}var wB=xB;const OB=fe(wB);function AB(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var SB=AB,_B=ac;function PB(e,t){var r=!0;return _B(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var $B=PB,jB=SB,TB=$B,EB=Dt,MB=Be,CB=to;function NB(e,t,r){var n=MB(e)?jB:TB;return r&&CB(e,t,r)&&(t=void 0),n(e,EB(t))}var IB=NB;const kB=fe(IB);var DB=["x","y"];function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ms.apply(this,arguments)}function mp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mp(Object(r),!0).forEach(function(n){RB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RB(e,t,r){return t=LB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LB(e){var t=BB(e,"string");return ni(t)=="symbol"?t:t+""}function BB(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FB(e,t){if(e==null)return{};var r=UB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function WB(e,t){var r=e.x,n=e.y,i=FB(e,DB),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return yn(yn(yn(yn(yn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function gp(e){return P.createElement(My,ms({shapeType:"rectangle",propTransformer:WB,activeClassName:"recharts-active-bar"},e))}var zB=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=F(n)||mx(n);return a?t(n,i):(a||or(),r)}},qB=["value","background"],Ry;function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function HB(e,t){if(e==null)return{};var r=KB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sa.apply(this,arguments)}function bp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bp(Object(r),!0).forEach(function(n){Ct(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,By(n.key),n)}}function VB(e,t,r){return t&&xp(e.prototype,t),r&&xp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function XB(e,t,r){return t=_a(t),YB(e,Ly()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function YB(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZB(e)}function ZB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ly(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ly=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function JB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gs(e,t)}function gs(e,t){return gs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gs(e,t)}function Ct(e,t,r){return t=By(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function By(e){var t=QB(e,"string");return Fr(t)=="symbol"?t:t+""}function QB(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fr=function(e){function t(){var r;GB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=XB(this,t,[].concat(i)),Ct(r,"state",{isAnimationFinished:!1}),Ct(r,"id",li("recharts-bar-")),Ct(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Ct(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return JB(t,e),VB(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=X(this.props,!1);return n&&n.map(function(l,d){var p=d===s,y=p?c:o,h=be(be(be({},f),l),{},{isActive:p,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(ie,Sa({className:"recharts-bar-rectangle"},nr(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),P.createElement(gp,h))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return P.createElement(At,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,h=a.map(function(v,x){var w=d&&d[x];if(w){var b=Et(w.x,v.x),O=Et(w.y,v.y),m=Et(w.width,v.width),g=Et(w.height,v.height);return be(be({},v),{},{x:b(y),y:O(y),width:m(y),height:g(y)})}if(o==="horizontal"){var A=Et(0,v.height),_=A(y);return be(be({},v),{},{y:v.y+v.height-_,height:_})}var $=Et(0,v.width),E=$(y);return be(be({},v),{},{width:E})});return P.createElement(ie,null,n.renderRectanglesStatically(h))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!fo(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=X(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=HB(c,qB);if(!l)return null;var p=be(be(be(be(be({},d),{},{fill:"#eee"},l),s),nr(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(gp,Sa({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Ye(f,vo);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,p=function(v,x){var w=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:w,errorVal:Ce(v,x)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(ie,y,l.map(function(h){return P.cloneElement(h,{key:"error-bar-".concat(i,"-").concat(h.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,p=n.isAnimationActive,y=n.background,h=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=Q("recharts-bar",o),w=u&&u.allowDataOverflow,b=s&&s.allowDataOverflow,O=w||b,m=ee(h)?this.id:h;return P.createElement(ie,{className:x},w||b?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:w?c:c-l/2,y:b?f:f-d/2,width:w?l:l*2,height:b?d:d*2}))):null,P.createElement(ie,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||v)&&It.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(L.PureComponent);Ry=fr;Ct(fr,"displayName","Bar");Ct(fr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!gt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ct(fr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=D2(n,r);if(!p)return null;var y=t.layout,h=r.type.defaultProps,v=h!==void 0?be(be({},h),r.props):r.props,x=v.dataKey,w=v.children,b=v.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,g=z2({numericAxis:O}),A=Ye(w,Mn),_=l.map(function($,E){var j,T,N,I,C,k;c?j=R2(c[f+E],m):(j=Ce($,x),Array.isArray(j)||(j=[g,j]));var D=zB(b,Ry.defaultProps.minPointSize)(j[1],E);if(y==="horizontal"){var B,U=[o.scale(j[0]),o.scale(j[1])],H=U[0],G=U[1];T=cd({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:$,index:E}),N=(B=G??H)!==null&&B!==void 0?B:void 0,I=p.size;var z=H-G;if(C=Number.isNaN(z)?0:z,k={x:T,y:o.y,width:I,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var V=Ne(C||D)*(Math.abs(D)-Math.abs(C));N-=V,C+=V}}else{var de=[a.scale(j[0]),a.scale(j[1])],ge=de[0],Fe=de[1];if(T=ge,N=cd({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:$,index:E}),I=Fe-ge,C=p.size,k={x:a.x,y:N,width:a.width,height:C},Math.abs(D)>0&&Math.abs(I)<Math.abs(D)){var Ft=Ne(I||D)*(Math.abs(D)-Math.abs(I));I+=Ft}}return be(be(be({},$),{},{x:T,y:N,width:I,height:C,value:c?j:j[1],payload:$,background:k},A&&A[E]&&A[E].props),{},{tooltipPayload:[dy(r,$)],tooltipPosition:{x:T+I/2,y:N+C/2}})});return be({data:_,layout:y},d)});function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function e3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fy(n.key),n)}}function t3(e,t,r){return t&&wp(e.prototype,t),r&&wp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Op(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Op(Object(r),!0).forEach(function(n){Oo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Op(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oo(e,t,r){return t=Fy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fy(e){var t=r3(e,"string");return ii(t)=="symbol"?t:t+""}function r3(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n3=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!We(c,fr);return f.reduce(function(p,y){var h=r[y],v=h.orientation,x=h.domain,w=h.padding,b=w===void 0?{}:w,O=h.mirror,m=h.reversed,g="".concat(v).concat(O?"Mirror":""),A,_,$,E,j;if(h.type==="number"&&(h.padding==="gap"||h.padding==="no-gap")){var T=x[1]-x[0],N=1/0,I=h.categoricalDomain.sort(xx);if(I.forEach(function(de,ge){ge>0&&(N=Math.min((de||0)-(I[ge-1]||0),N))}),Number.isFinite(N)){var C=N/T,k=h.layout==="vertical"?n.height:n.width;if(h.padding==="gap"&&(A=C*k/2),h.padding==="no-gap"){var D=Ie(t.barCategoryGap,C*k),B=C*k/2;A=B-D-(B-D)/k*D}}}i==="xAxis"?_=[n.left+(b.left||0)+(A||0),n.left+n.width-(b.right||0)-(A||0)]:i==="yAxis"?_=s==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(A||0),n.top+n.height-(b.bottom||0)-(A||0)]:_=h.range,m&&(_=[_[1],_[0]]);var U=sy(h,a,d),H=U.scale,G=U.realScaleType;H.domain(x).range(_),cy(H);var z=ly(H,rt(rt({},h),{},{realScaleType:G}));i==="xAxis"?(j=v==="top"&&!O||v==="bottom"&&O,$=n.left,E=l[g]-j*h.height):i==="yAxis"&&(j=v==="left"&&!O||v==="right"&&O,$=l[g]-j*h.width,E=n.top);var V=rt(rt(rt({},h),z),{},{realScaleType:G,x:$,y:E,scale:H,width:i==="xAxis"?n.width:h.width,height:i==="yAxis"?n.height:h.height});return V.bandSize=ca(V,z),!h.hide&&i==="xAxis"?l[g]+=(j?-1:1)*V.height:h.hide||(l[g]+=(j?-1:1)*V.width),rt(rt({},p),{},Oo({},y,V))},{})},Uy=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},i3=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Uy({x:r,y:n},{x:i,y:a})},Wy=function(){function e(t){e3(this,e),this.scale=t}return t3(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Oo(Wy,"EPS",1e-4);var kc=function(t){var r=Object.keys(t).reduce(function(n,i){return rt(rt({},n),{},Oo({},i,Wy.create(t[i])))},{});return rt(rt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return OB(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return kB(i,function(a,o){return r[o].isInRange(a)})}})};function a3(e){return(e%180+180)%180}var o3=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=a3(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},u3=w0(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),zy=L.createContext(void 0),qy=L.createContext(void 0),Hy=L.createContext(void 0),s3=L.createContext({}),Ky=L.createContext(void 0),Gy=L.createContext(0),Vy=L.createContext(0),Ap=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=u3(a);return P.createElement(zy.Provider,{value:n},P.createElement(qy.Provider,{value:i},P.createElement(s3.Provider,{value:a},P.createElement(Hy.Provider,{value:f},P.createElement(Ky.Provider,{value:o},P.createElement(Gy.Provider,{value:c},P.createElement(Vy.Provider,{value:s},u)))))))},c3=function(){return L.useContext(Ky)},Xy=function(t){var r=L.useContext(zy);r==null&&or();var n=r[t];return n==null&&or(),n},Yy=function(t){var r=L.useContext(qy);r==null&&or();var n=r[t];return n==null&&or(),n},l3=function(){var t=L.useContext(Hy);return t},Zy=function(){return L.useContext(Vy)},Jy=function(){return L.useContext(Gy)};function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}function f3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,em(n.key),n)}}function p3(e,t,r){return t&&d3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h3(e,t,r){return t=Pa(t),v3(e,Qy()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function v3(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y3(e)}function y3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qy=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function m3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bs(e,t)}function bs(e,t){return bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bs(e,t)}function Sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _p(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sp(Object(r),!0).forEach(function(n){Dc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dc(e,t,r){return t=em(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function em(e){var t=g3(e,"string");return Ur(t)=="symbol"?t:t+""}function g3(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b3(e,t){return A3(e)||O3(e,t)||w3(e,t)||x3()}function x3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w3(e,t){if(e){if(typeof e=="string")return Pp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pp(e,t)}}function Pp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function A3(e){if(Array.isArray(e))return e}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xs.apply(this,arguments)}var S3=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):Y(t)?n=t(r):n=P.createElement("line",xs({},r,{className:"recharts-reference-line-line"})),n},_3=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,p=a.height;if(n){var y=c.y,h=t.y.apply(y,{position:o});if(st(c,"discard")&&!t.y.isInRange(h))return null;var v=[{x:f+d,y:h},{x:f,y:h}];return s==="left"?v.reverse():v}if(r){var x=c.x,w=t.x.apply(x,{position:o});if(st(c,"discard")&&!t.x.isInRange(w))return null;var b=[{x:w,y:l+p},{x:w,y:l}];return u==="top"?b.reverse():b}if(i){var O=c.segment,m=O.map(function(g){return t.apply(g,{position:o})});return st(c,"discard")&&hB(m,function(g){return!t.isInRange(g)})?null:m}return null};function P3(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=c3(),f=Xy(i),l=Yy(a),d=l3();if(!c||!d)return null;mt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=kc({x:f.scale,y:l.scale}),y=_e(t),h=_e(r),v=n&&n.length===2,x=_3(p,y,h,v,d,e.position,f.orientation,l.orientation,e);if(!x)return null;var w=b3(x,2),b=w[0],O=b.x,m=b.y,g=w[1],A=g.x,_=g.y,$=st(e,"hidden")?"url(#".concat(c,")"):void 0,E=_p(_p({clipPath:$},X(e,!0)),{},{x1:O,y1:m,x2:A,y2:_});return P.createElement(ie,{className:Q("recharts-reference-line",u)},S3(o,E),je.renderCallByParent(e,i3({x1:O,y1:m,x2:A,y2:_})))}var Rc=function(e){function t(){return f3(this,t),h3(this,t,arguments)}return m3(t,e),p3(t,[{key:"render",value:function(){return P.createElement(P3,this.props)}}])}(P.Component);Dc(Rc,"displayName","ReferenceLine");Dc(Rc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ws.apply(this,arguments)}function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function $p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$p(Object(r),!0).forEach(function(n){Ao(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rm(n.key),n)}}function T3(e,t,r){return t&&j3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E3(e,t,r){return t=$a(t),M3(e,tm()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function M3(e,t){if(t&&(Wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C3(e)}function C3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tm=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function N3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Os(e,t)}function Os(e,t){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Os(e,t)}function Ao(e,t,r){return t=rm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rm(e){var t=I3(e,"string");return Wr(t)=="symbol"?t:t+""}function I3(e,t){if(Wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k3=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=kc({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return st(t,"discard")&&!o.isInRange(u)?null:u},So=function(e){function t(){return $3(this,t),E3(this,t,arguments)}return N3(t,e),T3(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=_e(i),f=_e(a);if(mt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=k3(this.props);if(!l)return null;var d=l.x,p=l.y,y=this.props,h=y.shape,v=y.className,x=st(this.props,"hidden")?"url(#".concat(s,")"):void 0,w=jp(jp({clipPath:x},X(this.props,!0)),{},{cx:d,cy:p});return P.createElement(ie,{className:Q("recharts-reference-dot",v)},t.renderDot(h,w),je.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])}(P.Component);Ao(So,"displayName","ReferenceDot");Ao(So,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ao(So,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Y(e)?r=e(t):r=P.createElement(Ic,ws({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function Tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tp(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,im(n.key),n)}}function L3(e,t,r){return t&&R3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function B3(e,t,r){return t=ja(t),F3(e,nm()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function F3(e,t){if(t&&(zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U3(e)}function U3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nm=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function W3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ss(e,t)}function Ss(e,t){return Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ss(e,t)}function _o(e,t,r){return t=im(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function im(e){var t=z3(e,"string");return zr(t)=="symbol"?t:t+""}function z3(e,t){if(zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q3=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=kc({x:f.scale,y:l.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return st(a,"discard")&&(!d.isInRange(p)||!d.isInRange(y))?null:Uy(p,y)},Po=function(e){function t(){return D3(this,t),B3(this,t,arguments)}return W3(t,e),L3(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;mt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=_e(i),d=_e(a),p=_e(o),y=_e(u),h=this.props.shape;if(!l&&!d&&!p&&!y&&!h)return null;var v=q3(l,d,p,y,this.props);if(!v&&!h)return null;var x=st(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(ie,{className:Q("recharts-reference-area",s)},t.renderRect(h,Ep(Ep({clipPath:x},X(this.props,!0)),v)),je.renderCallByParent(this.props,v))}}])}(P.Component);_o(Po,"displayName","ReferenceArea");_o(Po,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});_o(Po,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Y(e)?r=e(t):r=P.createElement(Nc,As({},t,{className:"recharts-reference-area-rect"})),r});function am(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function H3(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return o3(n,r)}function K3(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Ta(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function G3(e,t){return am(e,t+1)}function V3(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n?.[s];if(y===void 0)return{v:am(n,c)};var h=s,v,x=function(){return v===void 0&&(v=r(y,h)),v},w=y.coordinate,b=s===0||Ta(e,w,x,f,u);b||(s=0,f=o,c+=1),b&&(f=w+e*(x()/2+i),s+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function Mp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mp(Object(r),!0).forEach(function(n){X3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X3(e,t,r){return t=Y3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y3(e){var t=Z3(e,"string");return ai(t)=="symbol"?t:t+""}function Z3(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J3(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var p=a[d],y,h=function(){return y===void 0&&(y=r(p,d)),y};if(d===o-1){var v=e*(p.coordinate+e*h()/2-s);a[d]=p=Me(Me({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else a[d]=p=Me(Me({},p),{},{tickCoord:p.coordinate});var x=Ta(e,p.tickCoord,h,u,s);x&&(s=p.tickCoord-e*(h()/2+i),a[d]=Me(Me({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function Q3(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),d=e*(f.coordinate+e*l/2-c);o[u-1]=f=Me(Me({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Ta(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Me(Me({},f),{},{isShow:!0}))}for(var y=a?u-1:u,h=function(w){var b=o[w],O,m=function(){return O===void 0&&(O=r(b,w)),O};if(w===0){var g=e*(b.coordinate-e*m()/2-s);o[w]=b=Me(Me({},b),{},{tickCoord:g<0?b.coordinate-g*e:b.coordinate})}else o[w]=b=Me(Me({},b),{},{tickCoord:b.coordinate});var A=Ta(e,b.tickCoord,m,s,c);A&&(s=b.tickCoord+e*(m()/2+i),o[w]=Me(Me({},b),{},{isShow:!0}))},v=0;v<y;v++)h(v);return o}function eF(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(F(s)||gt.isSsr)return G3(i,typeof s=="number"&&F(s)?s:0);var d=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?bn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=function(b,O){var m=Y(c)?c(b.value,O):b.value;return p==="width"?H3(bn(m,{fontSize:t,letterSpacing:r}),y,l):bn(m,{fontSize:t,letterSpacing:r})[p]},v=i.length>=2?Ne(i[1].coordinate-i[0].coordinate):1,x=K3(a,v,p);return s==="equidistantPreserveStart"?V3(v,x,h,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=Q3(v,x,h,i,o,s==="preserveStartEnd"):d=J3(v,x,h,i,o),d.filter(function(w){return w.isShow}))}var tF=["viewBox"],rF=["viewBox"],nF=["ticks"];function qr(e){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(e)}function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},br.apply(this,arguments)}function Cp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cp(Object(r),!0).forEach(function(n){Lc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iu(e,t){if(e==null)return{};var r=iF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function aF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Np(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,um(n.key),n)}}function oF(e,t,r){return t&&Np(e.prototype,t),r&&Np(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uF(e,t,r){return t=Ea(t),sF(e,om()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function sF(e,t){if(t&&(qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cF(e)}function cF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function om(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(om=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function lF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_s(e,t)}function _s(e,t){return _s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_s(e,t)}function Lc(e,t,r){return t=um(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function um(e){var t=fF(e,"string");return qr(t)=="symbol"?t:t+""}function fF(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $o=function(e){function t(r){var n;return aF(this,t),n=uF(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return lF(t,e),oF(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=iu(n,tF),u=this.props,s=u.viewBox,c=iu(u,rF);return!wr(a,s)||!wr(o,c)||!wr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,p,y,h,v,x,w,b=l?-1:1,O=n.tickSize||f,m=F(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,v=o+ +!l*s,h=v-b*O,w=h-b*d,x=m;break;case"left":h=v=n.coordinate,y=a+ +!l*u,p=y-b*O,x=p-b*d,w=m;break;case"right":h=v=n.coordinate,y=a+ +l*u,p=y+b*O,x=p+b*d,w=m;break;default:p=y=n.coordinate,v=o+ +l*s,h=v+b*O,w=h+b*d,x=m;break}return{line:{x1:p,y1:h,x2:y,y2:v},tick:{x,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Ae(Ae(Ae({},X(this.props,!1)),X(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);l=Ae(Ae({},l),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=Ae(Ae({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return P.createElement("line",br({},l,{className:Q("recharts-cartesian-axis-line",qe(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,d=u.unit,p=eF(Ae(Ae({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),v=X(this.props,!1),x=X(f,!1),w=Ae(Ae({},v),{},{fill:"none"},X(s,!1)),b=p.map(function(O,m){var g=o.getTickLineCoord(O),A=g.line,_=g.tick,$=Ae(Ae(Ae(Ae({textAnchor:y,verticalAnchor:h},v),{},{stroke:"none",fill:c},x),_),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return P.createElement(ie,br({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},nr(o.props,O,m)),s&&P.createElement("line",br({},w,A,{className:Q("recharts-cartesian-axis-tick-line",qe(s,"className"))})),f&&t.renderTickItem(f,$,"".concat(Y(l)?l(O.value,m):O.value).concat(d||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,p=iu(l,nF),y=d;return Y(s)&&(y=d&&d.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:P.createElement(ie,{className:Q("recharts-cartesian-axis",c),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),je.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=Q(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,Ae(Ae({},i),{},{className:u})):Y(n)?o=n(Ae(Ae({},i),{},{className:u})):o=P.createElement(ir,br({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(L.Component);Lc($o,"displayName","CartesianAxis");Lc($o,"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"});function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}function dF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lm(n.key),n)}}function hF(e,t,r){return t&&pF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vF(e,t,r){return t=Ma(t),yF(e,sm()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function yF(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mF(e)}function mF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sm=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function gF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ps(e,t)}function Ps(e,t){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ps(e,t)}function cm(e,t,r){return t=lm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lm(e){var t=bF(e,"string");return Hr(t)=="symbol"?t:t+""}function bF(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(this,arguments)}function xF(e){var t=e.xAxisId,r=Zy(),n=Jy(),i=Xy(t);return i==null?null:L.createElement($o,$s({},i,{className:Q("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Qt(o,!0)}}))}var jo=function(e){function t(){return dF(this,t),vF(this,t,arguments)}return gF(t,e),hF(t,[{key:"render",value:function(){return L.createElement(xF,this.props)}}])}(L.Component);cm(jo,"displayName","XAxis");cm(jo,"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});function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function wF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pm(n.key),n)}}function AF(e,t,r){return t&&OF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SF(e,t,r){return t=Ca(t),_F(e,fm()?Reflect.construct(t,r||[],Ca(e).constructor):t.apply(e,r))}function _F(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PF(e)}function PF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fm=function(){return!!e})()}function Ca(e){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ca(e)}function $F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&js(e,t)}function js(e,t){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},js(e,t)}function dm(e,t,r){return t=pm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pm(e){var t=jF(e,"string");return Kr(t)=="symbol"?t:t+""}function jF(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ts.apply(this,arguments)}var TF=function(t){var r=t.yAxisId,n=Zy(),i=Jy(),a=Yy(r);return a==null?null:L.createElement($o,Ts({},a,{className:Q("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Qt(u,!0)}}))},To=function(e){function t(){return wF(this,t),SF(this,t,arguments)}return $F(t,e),AF(t,[{key:"render",value:function(){return L.createElement(TF,this.props)}}])}(L.Component);dm(To,"displayName","YAxis");dm(To,"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});function Ip(e){return NF(e)||CF(e)||MF(e)||EF()}function EF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MF(e,t){if(e){if(typeof e=="string")return Es(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Es(e,t)}}function CF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NF(e){if(Array.isArray(e))return Es(e)}function Es(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ms=function(t,r,n,i,a){var o=Ye(t,Rc),u=Ye(t,So),s=[].concat(Ip(o),Ip(u)),c=Ye(t,Po),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(h,v){if(v.props[f]===n&&st(v.props,"extendDomain")&&F(v.props[l])){var x=v.props[l];return[Math.min(h[0],x),Math.max(h[1],x)]}return h},d)),c.length){var p="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(h,v){if(v.props[f]===n&&st(v.props,"extendDomain")&&F(v.props[p])&&F(v.props[y])){var x=v.props[p],w=v.props[y];return[Math.min(h[0],x,w),Math.max(h[1],x,w)]}return h},d)}return a&&a.length&&(d=a.reduce(function(h,v){return F(v)?[Math.min(h[0],v),Math.max(h[1],v)]:h},d)),d},hm={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,d),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,p=l.length,y=new Array(p);d<p;d++)y[d]=l[d].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,d,p,y){var h=r?r+c:c;if(!this._events[h])return!1;var v=this._events[h],x=arguments.length,w,b;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),x){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,l),!0;case 4:return v.fn.call(v.context,f,l,d),!0;case 5:return v.fn.call(v.context,f,l,d,p),!0;case 6:return v.fn.call(v.context,f,l,d,p,y),!0}for(b=1,w=new Array(x-1);b<x;b++)w[b-1]=arguments[b];v.fn.apply(v.context,w)}else{var O=v.length,m;for(b=0;b<O;b++)switch(v[b].once&&this.removeListener(c,v[b].fn,void 0,!0),x){case 1:v[b].fn.call(v[b].context);break;case 2:v[b].fn.call(v[b].context,f);break;case 3:v[b].fn.call(v[b].context,f,l);break;case 4:v[b].fn.call(v[b].context,f,l,d);break;default:if(!w)for(m=1,w=new Array(x-1);m<x;m++)w[m-1]=arguments[m];v[b].fn.apply(v[b].context,w)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var h=0,v=[],x=y.length;h<x;h++)(y[h].fn!==f||d&&!y[h].once||l&&y[h].context!==l)&&v.push(y[h]);v.length?this._events[p]=v.length===1?v[0]:v:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(hm);var IF=hm.exports;const kF=fe(IF);var au=new kF,ou="recharts.syncMouseEvents";function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function DF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vm(n.key),n)}}function LF(e,t,r){return t&&RF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uu(e,t,r){return t=vm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vm(e){var t=BF(e,"string");return oi(t)=="symbol"?t:t+""}function BF(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var FF=function(){function e(){DF(this,e),uu(this,"activeIndex",0),uu(this,"coordinateList",[]),uu(this,"layout","horizontal")}return LF(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??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(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])}();function UF(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&F(n)&&F(i))return!0}return!1}function WF(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function ym(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=le(t,r,n,i),u=le(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function zF(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=le(u,s,c,l),p=le(u,s,f,l);n=d.x,i=d.y,a=p.x,o=p.y}else return ym(t);return[{x:n,y:i},{x:a,y:o}]}function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function kp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kp(Object(r),!0).forEach(function(n){qF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qF(e,t,r){return t=HF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HF(e){var t=KF(e,"string");return ui(t)=="symbol"?t:t+""}function KF(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GF(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,h=es;if(d==="ScatterChart")y=o,h=tR;else if(d==="BarChart")y=WF(l,o,s,f),h=Nc;else if(l==="radial"){var v=ym(o),x=v.cx,w=v.cy,b=v.radius,O=v.startAngle,m=v.endAngle;y={cx:x,cy:w,startAngle:O,endAngle:m,innerRadius:b,outerRadius:b},h=gy}else y={points:zF(l,o,s)},h=es;var g=Mi(Mi(Mi(Mi({stroke:"#ccc",pointerEvents:"none"},s),y),X(p,!1)),{},{payload:u,payloadIndex:c,className:Q("recharts-tooltip-cursor",p.className)});return L.isValidElement(p)?L.cloneElement(p,g):L.createElement(h,g)}var VF=["item"],XF=["children","className","width","height","style","compact","title","desc"];function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xr.apply(this,arguments)}function Dp(e,t){return JF(e)||ZF(e,t)||gm(e,t)||YF()}function YF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function JF(e){if(Array.isArray(e))return e}function Rp(e,t){if(e==null)return{};var r=QF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function e5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bm(n.key),n)}}function r5(e,t,r){return t&&t5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n5(e,t,r){return t=Na(t),i5(e,mm()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function i5(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a5(e)}function a5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mm=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function o5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cs(e,t)}function Cs(e,t){return Cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cs(e,t)}function Vr(e){return c5(e)||s5(e)||gm(e)||u5()}function u5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gm(e,t){if(e){if(typeof e=="string")return Ns(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ns(e,t)}}function s5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c5(e){if(Array.isArray(e))return Ns(e)}function Ns(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lp(Object(r),!0).forEach(function(n){K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e,t,r){return t=bm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e){var t=l5(e,"string");return Gr(t)=="symbol"?t:t+""}function l5(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f5={xAxis:["bottom","top"],yAxis:["left","right"]},d5={width:"100%",height:"100%"},xm={x:0,y:0};function Ci(e){return e}var p5=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},h5=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return M(M(M({},i),le(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return M(M(M({},i),le(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return xm},Eo=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Vr(u),Vr(c)):u},[]);return o.length>0?o:t&&t.length&&F(i)&&F(a)?t.slice(i,a+1):[]};function wm(e){return e==="number"?[0,"auto"]:void 0}var Is=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Eo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;d=su(p,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(Vr(s),[dy(c,d)]):s},[])},Bp=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=p5(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=E2(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=Is(t,r,f,l),p=h5(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:p}}return null},v5=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,p=uy(f,a);return n.reduce(function(y,h){var v,x=h.type.defaultProps!==void 0?M(M({},h.type.defaultProps),h.props):h.props,w=x.type,b=x.dataKey,O=x.allowDataOverflow,m=x.allowDuplicatedCategory,g=x.scale,A=x.ticks,_=x.includeHidden,$=x[o];if(y[$])return y;var E=Eo(t.data,{graphicalItems:i.filter(function(z){var V,de=o in z.props?z.props[o]:(V=z.type.defaultProps)===null||V===void 0?void 0:V[o];return de===$}),dataStartIndex:s,dataEndIndex:c}),j=E.length,T,N,I;UF(x.domain,O,w)&&(T=Xu(x.domain,null,O),p&&(w==="number"||g!=="auto")&&(I=wn(E,b,"category")));var C=wm(w);if(!T||T.length===0){var k,D=(k=x.domain)!==null&&k!==void 0?k:C;if(b){if(T=wn(E,b,w),w==="category"&&p){var B=bx(T);m&&B?(N=T,T=wa(0,j)):m||(T=dd(D,T,h).reduce(function(z,V){return z.indexOf(V)>=0?z:[].concat(Vr(z),[V])},[]))}else if(w==="category")m?T=T.filter(function(z){return z!==""&&!ee(z)}):T=dd(D,T,h).reduce(function(z,V){return z.indexOf(V)>=0||V===""||ee(V)?z:[].concat(Vr(z),[V])},[]);else if(w==="number"){var U=k2(E,i.filter(function(z){var V,de,ge=o in z.props?z.props[o]:(V=z.type.defaultProps)===null||V===void 0?void 0:V[o],Fe="hide"in z.props?z.props.hide:(de=z.type.defaultProps)===null||de===void 0?void 0:de.hide;return ge===$&&(_||!Fe)}),b,a,f);U&&(T=U)}p&&(w==="number"||g!=="auto")&&(I=wn(E,b,"category"))}else p?T=wa(0,j):u&&u[$]&&u[$].hasStack&&w==="number"?T=d==="expand"?[0,1]:fy(u[$].stackGroups,s,c):T=oy(E,i.filter(function(z){var V=o in z.props?z.props[o]:z.type.defaultProps[o],de="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return V===$&&(_||!de)}),w,f,!0);if(w==="number")T=Ms(l,T,$,a,A),D&&(T=Xu(D,T,O));else if(w==="category"&&D){var H=D,G=T.every(function(z){return H.indexOf(z)>=0});G&&(T=H)}}return M(M({},y),{},K({},$,M(M({},x),{},{axisType:a,domain:T,categoricalDomain:I,duplicateDomain:N,originalDomain:(v=x.domain)!==null&&v!==void 0?v:C,isCategorical:p,layout:f})))},{})},y5=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Eo(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=d.length,y=uy(f,a),h=-1;return n.reduce(function(v,x){var w=x.type.defaultProps!==void 0?M(M({},x.type.defaultProps),x.props):x.props,b=w[o],O=wm("number");if(!v[b]){h++;var m;return y?m=wa(0,p):u&&u[b]&&u[b].hasStack?(m=fy(u[b].stackGroups,s,c),m=Ms(l,m,b,a)):(m=Xu(O,oy(d,n.filter(function(g){var A,_,$=o in g.props?g.props[o]:(A=g.type.defaultProps)===null||A===void 0?void 0:A[o],E="hide"in g.props?g.props.hide:(_=g.type.defaultProps)===null||_===void 0?void 0:_.hide;return $===b&&!E}),"number",f),i.defaultProps.allowDataOverflow),m=Ms(l,m,b,a)),M(M({},v),{},K({},b,M(M({axisType:a},i.defaultProps),{},{hide:!0,orientation:qe(f5,"".concat(a,".").concat(h%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return v},{})},m5=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=Ye(f,a),p={};return d&&d.length?p=v5(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=y5(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},g5=function(t){var r=vr(t),n=Qt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:oc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ca(r,n)}},Fp=function(t){var r=t.children,n=t.defaultShowTooltip,i=We(r,Br),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},b5=function(t){return!t||!t.length?!1:t.some(function(r){var n=yt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Up=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},x5=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},p=We(l,Br),y=We(l,Or),h=Object.keys(s).reduce(function(m,g){var A=s[g],_=A.orientation;return!A.mirror&&!A.hide?M(M({},m),{},K({},_,m[_]+A.width)):m},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(m,g){var A=o[g],_=A.orientation;return!A.mirror&&!A.hide?M(M({},m),{},K({},_,qe(m,"".concat(_))+A.height)):m},{top:d.top||0,bottom:d.bottom||0}),x=M(M({},v),h),w=x.bottom;p&&(x.bottom+=p.props.height||Br.defaultProps.height),y&&r&&(x=N2(x,i,n,r));var b=c-x.left-x.right,O=f-x.top-x.bottom;return M(M({brushBottom:w},x),{},{width:Math.max(b,0),height:Math.max(O,0)})},w5=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Om=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(x,w){var b=w.graphicalItems,O=w.stackGroups,m=w.offset,g=w.updateId,A=w.dataStartIndex,_=w.dataEndIndex,$=x.barSize,E=x.layout,j=x.barGap,T=x.barCategoryGap,N=x.maxBarSize,I=Up(E),C=I.numericAxisName,k=I.cateAxisName,D=b5(b),B=[];return b.forEach(function(U,H){var G=Eo(x.data,{graphicalItems:[U],dataStartIndex:A,dataEndIndex:_}),z=U.type.defaultProps!==void 0?M(M({},U.type.defaultProps),U.props):U.props,V=z.dataKey,de=z.maxBarSize,ge=z["".concat(C,"Id")],Fe=z["".concat(k,"Id")],Ft={},De=s.reduce(function(Ut,Wt){var Mo=w["".concat(Wt.axisType,"Map")],Bc=z["".concat(Wt.axisType,"Id")];Mo&&Mo[Bc]||Wt.axisType==="zAxis"||or();var Fc=Mo[Bc];return M(M({},Ut),{},K(K({},Wt.axisType,Fc),"".concat(Wt.axisType,"Ticks"),Qt(Fc)))},Ft),W=De[k],Z=De["".concat(k,"Ticks")],J=O&&O[ge]&&O[ge].hasStack&&q2(U,O[ge].stackGroups),R=yt(U.type).indexOf("Bar")>=0,ye=ca(W,Z),te=[],we=D&&M2({barSize:$,stackGroups:O,totalSize:w5(De,k)});if(R){var Oe,Re,jt=ee(de)?N:de,dr=(Oe=(Re=ca(W,Z,!0))!==null&&Re!==void 0?Re:jt)!==null&&Oe!==void 0?Oe:0;te=C2({barGap:j,barCategoryGap:T,bandSize:dr!==ye?dr:ye,sizeList:we[Fe],maxBarSize:jt}),dr!==ye&&(te=te.map(function(Ut){return M(M({},Ut),{},{position:M(M({},Ut.position),{},{offset:Ut.position.offset-dr/2})})}))}var vi=U&&U.type&&U.type.getComposedData;vi&&B.push({props:M(M({},vi(M(M({},De),{},{displayedData:G,props:x,dataKey:V,item:U,bandSize:ye,barPosition:te,offset:m,stackedData:J,layout:E,dataStartIndex:A,dataEndIndex:_}))),{},K(K(K({key:U.key||"item-".concat(H)},C,De[C]),k,De[k]),"animationId",g)),childIndex:Mx(U,x.children),item:U})}),B},p=function(x,w){var b=x.props,O=x.dataStartIndex,m=x.dataEndIndex,g=x.updateId;if(!il({props:b}))return null;var A=b.children,_=b.layout,$=b.stackOffset,E=b.data,j=b.reverseStackOrder,T=Up(_),N=T.numericAxisName,I=T.cateAxisName,C=Ye(A,n),k=W2(E,C,"".concat(N,"Id"),"".concat(I,"Id"),$,j),D=s.reduce(function(z,V){var de="".concat(V.axisType,"Map");return M(M({},z),{},K({},de,m5(b,M(M({},V),{},{graphicalItems:C,stackGroups:V.axisType===N&&k,dataStartIndex:O,dataEndIndex:m}))))},{}),B=x5(M(M({},D),{},{props:b,graphicalItems:C}),w?.legendBBox);Object.keys(D).forEach(function(z){D[z]=f(b,D[z],B,z.replace("Map",""),r)});var U=D["".concat(I,"Map")],H=g5(U),G=d(b,M(M({},D),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:C,stackGroups:k,offset:B}));return M(M({formattedGraphicalItems:G,graphicalItems:C,offset:B,stackGroups:k},H),D)},y=function(v){function x(w){var b,O,m;return e5(this,x),m=n5(this,x,[w]),K(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(m,"accessibilityManager",new FF),K(m,"handleLegendBBoxUpdate",function(g){if(g){var A=m.state,_=A.dataStartIndex,$=A.dataEndIndex,E=A.updateId;m.setState(M({legendBBox:g},p({props:m.props,dataStartIndex:_,dataEndIndex:$,updateId:E},M(M({},m.state),{},{legendBBox:g}))))}}),K(m,"handleReceiveSyncEvent",function(g,A,_){if(m.props.syncId===g){if(_===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(A)}}),K(m,"handleBrushChange",function(g){var A=g.startIndex,_=g.endIndex;if(A!==m.state.dataStartIndex||_!==m.state.dataEndIndex){var $=m.state.updateId;m.setState(function(){return M({dataStartIndex:A,dataEndIndex:_},p({props:m.props,dataStartIndex:A,dataEndIndex:_,updateId:$},m.state))}),m.triggerSyncEvent({dataStartIndex:A,dataEndIndex:_})}}),K(m,"handleMouseEnter",function(g){var A=m.getMouseInfo(g);if(A){var _=M(M({},A),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var $=m.props.onMouseEnter;Y($)&&$(_,g)}}),K(m,"triggeredAfterMouseMove",function(g){var A=m.getMouseInfo(g),_=A?M(M({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var $=m.props.onMouseMove;Y($)&&$(_,g)}),K(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),K(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),K(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),K(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var _=m.props.onMouseLeave;Y(_)&&_(A,g)}),K(m,"handleOuterEvent",function(g){var A=Ex(g),_=qe(m.props,"".concat(A));if(A&&Y(_)){var $,E;/.*touch.*/i.test(A)?E=m.getMouseInfo(g.changedTouches[0]):E=m.getMouseInfo(g),_(($=E)!==null&&$!==void 0?$:{},g)}}),K(m,"handleClick",function(g){var A=m.getMouseInfo(g);if(A){var _=M(M({},A),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var $=m.props.onClick;Y($)&&$(_,g)}}),K(m,"handleMouseDown",function(g){var A=m.props.onMouseDown;if(Y(A)){var _=m.getMouseInfo(g);A(_,g)}}),K(m,"handleMouseUp",function(g){var A=m.props.onMouseUp;if(Y(A)){var _=m.getMouseInfo(g);A(_,g)}}),K(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),K(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),K(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),K(m,"handleDoubleClick",function(g){var A=m.props.onDoubleClick;if(Y(A)){var _=m.getMouseInfo(g);A(_,g)}}),K(m,"handleContextMenu",function(g){var A=m.props.onContextMenu;if(Y(A)){var _=m.getMouseInfo(g);A(_,g)}}),K(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&au.emit(ou,m.props.syncId,g,m.eventEmitterSymbol)}),K(m,"applySyncEvent",function(g){var A=m.props,_=A.layout,$=A.syncMethod,E=m.state.updateId,j=g.dataStartIndex,T=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(M({dataStartIndex:j,dataEndIndex:T},p({props:m.props,dataStartIndex:j,dataEndIndex:T,updateId:E},m.state)));else if(g.activeTooltipIndex!==void 0){var N=g.chartX,I=g.chartY,C=g.activeTooltipIndex,k=m.state,D=k.offset,B=k.tooltipTicks;if(!D)return;if(typeof $=="function")C=$(B,g);else if($==="value"){C=-1;for(var U=0;U<B.length;U++)if(B[U].value===g.activeLabel){C=U;break}}var H=M(M({},D),{},{x:D.left,y:D.top}),G=Math.min(N,H.x+H.width),z=Math.min(I,H.y+H.height),V=B[C]&&B[C].value,de=Is(m.state,m.props.data,C),ge=B[C]?{x:_==="horizontal"?B[C].coordinate:G,y:_==="horizontal"?z:B[C].coordinate}:xm;m.setState(M(M({},g),{},{activeLabel:V,activeCoordinate:ge,activePayload:de,activeTooltipIndex:C}))}else m.setState(g)}),K(m,"renderCursor",function(g){var A,_=m.state,$=_.isTooltipActive,E=_.activeCoordinate,j=_.activePayload,T=_.offset,N=_.activeTooltipIndex,I=_.tooltipAxisBandSize,C=m.getTooltipEventType(),k=(A=g.props.active)!==null&&A!==void 0?A:$,D=m.props.layout,B=g.key||"_recharts-cursor";return P.createElement(GF,{key:B,activeCoordinate:E,activePayload:j,activeTooltipIndex:N,chartName:r,element:g,isActive:k,layout:D,offset:T,tooltipAxisBandSize:I,tooltipEventType:C})}),K(m,"renderPolarAxis",function(g,A,_){var $=qe(g,"type.axisType"),E=qe(m.state,"".concat($,"Map")),j=g.type.defaultProps,T=j!==void 0?M(M({},j),g.props):g.props,N=E&&E[T["".concat($,"Id")]];return L.cloneElement(g,M(M({},N),{},{className:Q($,N.className),key:g.key||"".concat(A,"-").concat(_),ticks:Qt(N,!0)}))}),K(m,"renderPolarGrid",function(g){var A=g.props,_=A.radialLines,$=A.polarAngles,E=A.polarRadius,j=m.state,T=j.radiusAxisMap,N=j.angleAxisMap,I=vr(T),C=vr(N),k=C.cx,D=C.cy,B=C.innerRadius,U=C.outerRadius;return L.cloneElement(g,{polarAngles:Array.isArray($)?$:Qt(C,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(E)?E:Qt(I,!0).map(function(H){return H.coordinate}),cx:k,cy:D,innerRadius:B,outerRadius:U,key:g.key||"polar-grid",radialLines:_})}),K(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,A=m.props,_=A.children,$=A.width,E=A.height,j=m.props.margin||{},T=$-(j.left||0)-(j.right||0),N=iy({children:_,formattedGraphicalItems:g,legendWidth:T,legendContent:c});if(!N)return null;var I=N.item,C=Rp(N,VF);return L.cloneElement(I,M(M({},C),{},{chartWidth:$,chartHeight:E,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),K(m,"renderTooltip",function(){var g,A=m.props,_=A.children,$=A.accessibilityLayer,E=We(_,tt);if(!E)return null;var j=m.state,T=j.isTooltipActive,N=j.activeCoordinate,I=j.activePayload,C=j.activeLabel,k=j.offset,D=(g=E.props.active)!==null&&g!==void 0?g:T;return L.cloneElement(E,{viewBox:M(M({},k),{},{x:k.left,y:k.top}),active:D,label:C,payload:D?I:[],coordinate:N,accessibilityLayer:$})}),K(m,"renderBrush",function(g){var A=m.props,_=A.margin,$=A.data,E=m.state,j=E.offset,T=E.dataStartIndex,N=E.dataEndIndex,I=E.updateId;return L.cloneElement(g,{key:g.key||"_recharts-brush",onChange:$i(m.handleBrushChange,g.props.onChange),data:$,x:F(g.props.x)?g.props.x:j.left,y:F(g.props.y)?g.props.y:j.top+j.height+j.brushBottom-(_.bottom||0),width:F(g.props.width)?g.props.width:j.width,startIndex:T,endIndex:N,updateId:"brush-".concat(I)})}),K(m,"renderReferenceElement",function(g,A,_){if(!g)return null;var $=m,E=$.clipPathId,j=m.state,T=j.xAxisMap,N=j.yAxisMap,I=j.offset,C=g.type.defaultProps||{},k=g.props,D=k.xAxisId,B=D===void 0?C.xAxisId:D,U=k.yAxisId,H=U===void 0?C.yAxisId:U;return L.cloneElement(g,{key:g.key||"".concat(A,"-").concat(_),xAxis:T[B],yAxis:N[H],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:E})}),K(m,"renderActivePoints",function(g){var A=g.item,_=g.activePoint,$=g.basePoint,E=g.childIndex,j=g.isRange,T=[],N=A.props.key,I=A.item.type.defaultProps!==void 0?M(M({},A.item.type.defaultProps),A.item.props):A.item.props,C=I.activeDot,k=I.dataKey,D=M(M({index:E,dataKey:k,cx:_.x,cy:_.y,r:4,fill:Cc(A.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},X(C,!1)),Di(C));return T.push(x.renderActiveDot(C,D,"".concat(N,"-activePoint-").concat(E))),$?T.push(x.renderActiveDot(C,M(M({},D),{},{cx:$.x,cy:$.y}),"".concat(N,"-basePoint-").concat(E))):j&&T.push(null),T}),K(m,"renderGraphicChild",function(g,A,_){var $=m.filterFormatItem(g,A,_);if(!$)return null;var E=m.getTooltipEventType(),j=m.state,T=j.isTooltipActive,N=j.tooltipAxis,I=j.activeTooltipIndex,C=j.activeLabel,k=m.props.children,D=We(k,tt),B=$.props,U=B.points,H=B.isRange,G=B.baseLine,z=$.item.type.defaultProps!==void 0?M(M({},$.item.type.defaultProps),$.item.props):$.item.props,V=z.activeDot,de=z.hide,ge=z.activeBar,Fe=z.activeShape,Ft=!!(!de&&T&&D&&(V||ge||Fe)),De={};E!=="axis"&&D&&D.props.trigger==="click"?De={onClick:$i(m.handleItemMouseEnter,g.props.onClick)}:E!=="axis"&&(De={onMouseLeave:$i(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:$i(m.handleItemMouseEnter,g.props.onMouseEnter)});var W=L.cloneElement(g,M(M({},$.props),De));function Z(Wt){return typeof N.dataKey=="function"?N.dataKey(Wt.payload):null}if(Ft)if(I>=0){var J,R;if(N.dataKey&&!N.allowDuplicatedCategory){var ye=typeof N.dataKey=="function"?Z:"payload.".concat(N.dataKey.toString());J=su(U,ye,C),R=H&&G&&su(G,ye,C)}else J=U?.[I],R=H&&G&&G[I];if(Fe||ge){var te=g.props.activeIndex!==void 0?g.props.activeIndex:I;return[L.cloneElement(g,M(M(M({},$.props),De),{},{activeIndex:te})),null,null]}if(!ee(J))return[W].concat(Vr(m.renderActivePoints({item:$,activePoint:J,basePoint:R,childIndex:I,isRange:H})))}else{var we,Oe=(we=m.getItemByXY(m.state.activeCoordinate))!==null&&we!==void 0?we:{graphicalItem:W},Re=Oe.graphicalItem,jt=Re.item,dr=jt===void 0?g:jt,vi=Re.childIndex,Ut=M(M(M({},$.props),De),{},{activeIndex:vi});return[L.cloneElement(dr,Ut),null,null]}return H?[W,null,null]:[W,null]}),K(m,"renderCustomized",function(g,A,_){return L.cloneElement(g,M(M({key:"recharts-customized-".concat(_)},m.props),m.state))}),K(m,"renderMap",{CartesianGrid:{handler:Ci,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Ci},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Ci},YAxis:{handler:Ci},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((b=w.id)!==null&&b!==void 0?b:li("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=nv(m.triggeredAfterMouseMove,(O=w.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return o5(x,v),r5(x,[{key:"componentDidMount",value:function(){var b,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,O=b.children,m=b.data,g=b.height,A=b.layout,_=We(O,tt);if(_){var $=_.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var E=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,j=Is(this.state,m,$,E),T=this.state.tooltipTicks[$].coordinate,N=(this.state.offset.top+g)/2,I=A==="horizontal",C=I?{x:T,y:N}:{y:T,x:N},k=this.state.formattedGraphicalItems.find(function(B){var U=B.item;return U.type.name==="Scatter"});k&&(C=M(M({},C),k.props.points[$].tooltipPosition),j=k.props.points[$].tooltipPayload);var D={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:E,activePayload:j,activeCoordinate:C};this.setState(D),this.renderCursor(_),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(b){lu([We(b.children,tt)],[We(this.props.children,tt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=We(this.props.children,tt);if(b&&typeof b.props.shared=="boolean"){var O=b.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=iE(m),A={chartX:Math.round(b.pageX-g.left),chartY:Math.round(b.pageY-g.top)},_=m.width/O.offsetWidth||1,$=this.inRange(A.chartX,A.chartY,_);if(!$)return null;var E=this.state,j=E.xAxisMap,T=E.yAxisMap,N=this.getTooltipEventType(),I=Bp(this.state,this.props.data,this.props.layout,$);if(N!=="axis"&&j&&T){var C=vr(j).scale,k=vr(T).scale,D=C&&C.invert?C.invert(A.chartX):null,B=k&&k.invert?k.invert(A.chartY):null;return M(M({},A),{},{xValue:D,yValue:B},I)}return I?M(M({},A),I):null}},{key:"inRange",value:function(b,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,A=b/m,_=O/m;if(g==="horizontal"||g==="vertical"){var $=this.state.offset,E=A>=$.left&&A<=$.left+$.width&&_>=$.top&&_<=$.top+$.height;return E?{x:A,y:_}:null}var j=this.state,T=j.angleAxisMap,N=j.radiusAxisMap;if(T&&N){var I=vr(T);return vd({x:A,y:_},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,O=this.getTooltipEventType(),m=We(b,tt),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=Di(this.props,this.handleOuterEvent);return M(M({},A),g)}},{key:"addListener",value:function(){au.on(ou,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){au.removeListener(ou,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,O,m){for(var g=this.state.formattedGraphicalItems,A=0,_=g.length;A<_;A++){var $=g[A];if($.item===b||$.props.key===b.key||O===yt($.item.type)&&m===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,A=O.height,_=O.width;return P.createElement("defs",null,P.createElement("clipPath",{id:b},P.createElement("rect",{x:m,y:g,height:A,width:_})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(O,m){var g=Dp(m,2),A=g[0],_=g[1];return M(M({},O),{},K({},A,_.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(O,m){var g=Dp(m,2),A=g[0],_=g[1];return M(M({},O),{},K({},A,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[b])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(b){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[b])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(b){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var A=0,_=m.length;A<_;A++){var $=m[A],E=$.props,j=$.item,T=j.type.defaultProps!==void 0?M(M({},j.type.defaultProps),j.props):j.props,N=yt(j.type);if(N==="Bar"){var I=(E.data||[]).find(function(B){return kD(b,B)});if(I)return{graphicalItem:$,payload:I}}else if(N==="RadialBar"){var C=(E.data||[]).find(function(B){return vd(b,B)});if(C)return{graphicalItem:$,payload:C}}else if(xo($,g)||wo($,g)||ti($,g)){var k=AL({graphicalItem:$,activeTooltipItem:g,itemData:T.data}),D=T.activeIndex===void 0?k:T.activeIndex;return{graphicalItem:M(M({},$),{},{childIndex:D}),payload:ti($,g)?T.data[k]:$.props.data[k]}}}return null}},{key:"render",value:function(){var b=this;if(!il(this))return null;var O=this.props,m=O.children,g=O.className,A=O.width,_=O.height,$=O.style,E=O.compact,j=O.title,T=O.desc,N=Rp(O,XF),I=X(N,!1);if(E)return P.createElement(Ap,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(du,xr({},I,{width:A,height:_,title:j,desc:T}),this.renderClipPath(),ol(m,this.renderMap)));if(this.props.accessibilityLayer){var C,k;I.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,I.role=(k=this.props.role)!==null&&k!==void 0?k:"application",I.onKeyDown=function(B){b.accessibilityManager.keyboardEvent(B)},I.onFocus=function(){b.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return P.createElement(Ap,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",xr({className:Q("recharts-wrapper",g),style:M({position:"relative",cursor:"default",width:A,height:_},$)},D,{ref:function(U){b.container=U}}),P.createElement(du,xr({},I,{width:A,height:_,title:j,desc:T,style:d5}),this.renderClipPath(),ol(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(L.Component);K(y,"displayName",r),K(y,"defaultProps",M({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),K(y,"getDerivedStateFromProps",function(v,x){var w=v.dataKey,b=v.data,O=v.children,m=v.width,g=v.height,A=v.layout,_=v.stackOffset,$=v.margin,E=x.dataStartIndex,j=x.dataEndIndex;if(x.updateId===void 0){var T=Fp(v);return M(M(M({},T),{},{updateId:0},p(M(M({props:v},T),{},{updateId:0}),x)),{},{prevDataKey:w,prevData:b,prevWidth:m,prevHeight:g,prevLayout:A,prevStackOffset:_,prevMargin:$,prevChildren:O})}if(w!==x.prevDataKey||b!==x.prevData||m!==x.prevWidth||g!==x.prevHeight||A!==x.prevLayout||_!==x.prevStackOffset||!wr($,x.prevMargin)){var N=Fp(v),I={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},C=M(M({},Bp(x,b,A)),{},{updateId:x.updateId+1}),k=M(M(M({},N),I),C);return M(M(M({},k),p(M({props:v},k),x)),{},{prevDataKey:w,prevData:b,prevWidth:m,prevHeight:g,prevLayout:A,prevStackOffset:_,prevMargin:$,prevChildren:O})}if(!lu(O,x.prevChildren)){var D,B,U,H,G=We(O,Br),z=G&&(D=(B=G.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:E,V=G&&(U=(H=G.props)===null||H===void 0?void 0:H.endIndex)!==null&&U!==void 0?U:j,de=z!==E||V!==j,ge=!ee(b),Fe=ge&&!de?x.updateId:x.updateId+1;return M(M({updateId:Fe},p(M(M({props:v},x),{},{updateId:Fe,dataStartIndex:z,dataEndIndex:V}),x)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:V})}return null}),K(y,"renderActiveDot",function(v,x,w){var b;return L.isValidElement(v)?b=L.cloneElement(v,x):Y(v)?b=v(x):b=P.createElement(Ic,x),P.createElement(ie,{className:"recharts-active-dot",key:w},b)});var h=L.forwardRef(function(x,w){return P.createElement(y,xr({},x,{ref:w}))});return h.displayName=y.displayName,h},O5=Om({chartName:"BarChart",GraphicalChild:fr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:jo},{axisType:"yAxis",AxisComp:To}],formatAxisMap:n3}),A5=Om({chartName:"PieChart",GraphicalChild:$t,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:bo},{axisType:"radiusAxis",AxisComp:mo}],formatAxisMap:eI,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const S5=`
query AnimeStats($id: Int) {
  Media(id: $id, type: ANIME) {
    id
    title {
      romaji
      english
    }
    meanScore
    averageScore
    popularity
    favourites
    trending
    rankings {
      id
      rank
      type
      format
      year
      season
      allTime
      context
    }
    stats {
      scoreDistribution {
        score
        amount
      }
      statusDistribution {
        status
        amount
      }
    }
    trends(sort: TRENDING_DESC, releasing: true) {
      nodes {
        date
        trending
        averageScore
        popularity
        inProgress
        releasing
        episode
        mediaId
      }
    }
  }
}
`;function _5(e){return _n({queryKey:["anime-stats",e],queryFn:async()=>{if(!e)return null;const t=await fetch("https://graphql.anilist.co",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:S5,variables:{id:e}})});if(!t.ok)throw new Error("Failed to fetch anime stats");const r=await t.json();if(r.errors?.length)throw new Error(r.errors[0].message);return r.data.Media},enabled:!!e,staleTime:1e3*60*60,retry:2})}const P5={CURRENT:"hsl(var(--primary))",PLANNING:"hsl(var(--secondary))",COMPLETED:"hsl(142 76% 36%)",DROPPED:"hsl(0 84% 60%)",PAUSED:"hsl(45 93% 47%)"},$5=["hsl(0 84% 45%)","hsl(15 84% 50%)","hsl(30 84% 55%)","hsl(45 84% 50%)","hsl(60 70% 45%)","hsl(80 60% 45%)","hsl(100 60% 40%)","hsl(130 60% 40%)","hsl(150 70% 40%)","hsl(160 84% 39%)"],j5={CURRENT:"Watching",PLANNING:"Planning",COMPLETED:"Completed",DROPPED:"Dropped",PAUSED:"Paused"};function Tt(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e.toString()}function T5({ranking:e}){const t=e.rank<=10,r=e.allTime;return S.jsxs("div",{className:`
      flex items-center gap-2 px-3 py-2 rounded-lg border
      ${t?"border-yellow-500/50 bg-yellow-500/10":"border-border bg-muted/30"}
    `,children:[S.jsx(Mm,{className:`w-4 h-4 ${t?"text-yellow-500":"text-muted-foreground"}`}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsxs("div",{className:"font-semibold text-sm",children:["#",e.rank]}),S.jsx("div",{className:"text-xs text-muted-foreground line-clamp-1",children:e.context})]}),r&&S.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-primary/20 text-primary font-medium",children:"All Time"})]})}function E5({anilistId:e}){const{data:t,isLoading:r,error:n}=_5(e);if(!e)return S.jsxs("section",{className:"mt-12",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx(gi,{className:"w-6 h-6 text-primary"}),S.jsx("h2",{className:"text-2xl font-bold",children:"Statistics"})]}),S.jsxs("div",{className:"glass-card p-8 text-center",children:[S.jsx(No,{className:"w-12 h-12 mx-auto mb-4 text-muted-foreground/50"}),S.jsx("p",{className:"text-muted-foreground",children:"Statistics are not available for this anime yet."}),S.jsx("p",{className:"text-sm text-muted-foreground/70 mt-2",children:"We're working on adding more data sources."})]})]});if(r)return S.jsxs("section",{className:"mt-12",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx(gi,{className:"w-6 h-6 text-primary"}),S.jsx("h2",{className:"text-2xl font-bold",children:"Statistics"})]}),S.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[S.jsx(gn,{className:"h-64 rounded-xl"}),S.jsx(gn,{className:"h-64 rounded-xl"})]})]});if(n||!t)return S.jsxs("section",{className:"mt-12",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx(gi,{className:"w-6 h-6 text-primary"}),S.jsx("h2",{className:"text-2xl font-bold",children:"Statistics"})]}),S.jsxs("div",{className:"glass-card p-8 text-center",children:[S.jsx(No,{className:"w-12 h-12 mx-auto mb-4 text-muted-foreground/50"}),S.jsx("p",{className:"text-muted-foreground",children:"Unable to load statistics at this time."})]})]});const i=t.stats.scoreDistribution.map((s,c)=>({score:s.score.toString(),amount:s.amount,fill:$5[c]||"hsl(var(--primary))"})),a=t.stats.statusDistribution.filter(s=>s.amount>0).map(s=>({name:j5[s.status]||s.status,value:s.amount,fill:P5[s.status]||"hsl(var(--muted))"})),o=a.reduce((s,c)=>s+c.value,0),u=t.rankings.slice(0,6);return S.jsxs("section",{className:"mt-12",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx(gi,{className:"w-6 h-6 text-primary"}),S.jsx("h2",{className:"text-2xl font-bold",children:"Statistics"})]}),S.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:[S.jsxs("div",{className:"glass-card p-4 text-center",children:[S.jsx(Ii,{className:"w-5 h-5 mx-auto mb-2 text-yellow-500"}),S.jsx("div",{className:"text-2xl font-bold",children:t.meanScore||t.averageScore||"N/A"}),S.jsx("div",{className:"text-xs text-muted-foreground",children:"Mean Score"})]}),S.jsxs("div",{className:"glass-card p-4 text-center",children:[S.jsx(ki,{className:"w-5 h-5 mx-auto mb-2 text-secondary"}),S.jsx("div",{className:"text-2xl font-bold",children:Tt(t.popularity)}),S.jsx("div",{className:"text-xs text-muted-foreground",children:"Popularity"})]}),S.jsxs("div",{className:"glass-card p-4 text-center",children:[S.jsx(zp,{className:"w-5 h-5 mx-auto mb-2 text-primary"}),S.jsx("div",{className:"text-2xl font-bold",children:Tt(t.favourites)}),S.jsx("div",{className:"text-xs text-muted-foreground",children:"Favorites"})]}),S.jsxs("div",{className:"glass-card p-4 text-center",children:[S.jsx(_m,{className:"w-5 h-5 mx-auto mb-2 text-green-500"}),S.jsx("div",{className:"text-2xl font-bold",children:Tt(t.trending)}),S.jsx("div",{className:"text-xs text-muted-foreground",children:"Trending"})]})]}),S.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[S.jsxs("div",{className:"glass-card p-6",children:[S.jsxs("h3",{className:"font-semibold mb-4 flex items-center gap-2",children:[S.jsx(No,{className:"w-4 h-4 text-primary"}),"Score Distribution"]}),S.jsx("div",{className:"h-48",children:S.jsx(nf,{width:"100%",height:"100%",children:S.jsxs(O5,{data:i,margin:{top:5,right:5,bottom:20,left:0},children:[S.jsx(jo,{dataKey:"score",tick:{fill:"hsl(var(--muted-foreground))",fontSize:11},axisLine:{stroke:"hsl(var(--border))"}}),S.jsx(To,{tick:{fill:"hsl(var(--muted-foreground))",fontSize:11},axisLine:{stroke:"hsl(var(--border))"},tickFormatter:s=>Tt(s)}),S.jsx(tt,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"},labelStyle:{color:"hsl(var(--foreground))"},formatter:s=>[Tt(s),"Users"],labelFormatter:s=>`Score: ${s}`}),S.jsx(fr,{dataKey:"amount",radius:[4,4,0,0],children:i.map((s,c)=>S.jsx(Mn,{fill:s.fill},`cell-${c}`))})]})})})]}),S.jsxs("div",{className:"glass-card p-6",children:[S.jsxs("h3",{className:"font-semibold mb-4 flex items-center gap-2",children:[S.jsx(ki,{className:"w-4 h-4 text-secondary"}),"List Status (",Tt(o)," users)"]}),S.jsxs("div",{className:"flex items-center gap-6",children:[S.jsx("div",{className:"h-40 w-40 flex-shrink-0",children:S.jsx(nf,{width:"100%",height:"100%",children:S.jsxs(A5,{children:[S.jsx($t,{data:a,cx:"50%",cy:"50%",innerRadius:35,outerRadius:65,paddingAngle:2,dataKey:"value",children:a.map((s,c)=>S.jsx(Mn,{fill:s.fill},`cell-${c}`))}),S.jsx(tt,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"8px"},formatter:s=>[Tt(s),"Users"]})]})})}),S.jsx("div",{className:"flex-1 space-y-2",children:a.map(s=>S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0",style:{background:s.fill}}),S.jsx("span",{className:"flex-1",children:s.name}),S.jsx("span",{className:"text-muted-foreground font-mono",children:Tt(s.value)})]},s.name))})]})]})]}),u.length>0&&S.jsxs("div",{className:"mt-6",children:[S.jsxs("h3",{className:"font-semibold mb-4 flex items-center gap-2",children:[S.jsx(Dm,{className:"w-4 h-4 text-yellow-500"}),"Rankings"]}),S.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:u.map(s=>S.jsx(T5,{ranking:s},s.id))})]})]})}function K5(){const{id:e}=Am(),t=Sm(),{t:r}=Wp(),{data:n,isLoading:i}=Tm(e||""),[a,o]=L.useState(!1),[u,s]=L.useState(!1),[c,f]=L.useState(null),{pingIndexNow:l}=Cm(),d=L.useRef(!1),{data:p}=_n({queryKey:["show-studio",e],queryFn:async()=>{if(!e)return null;const{data:b}=await at.from("show_studios").select("studios(name, slug)").eq("show_id",e).eq("is_main_studio",!0).maybeSingle();return b?.studios},enabled:!!e&&!!n});L.useEffect(()=>{n&&!d.current&&(d.current=!0,l([`/shows/${n.slug||e}`]))},[n,e,l]),L.useEffect(()=>{y()},[e]);const y=async()=>{const{data:{user:b}}=await at.auth.getUser();if(f(b),b&&e){const{data:O,error:m}=await at.from("user_follows").select("*").eq("user_id",b.id).eq("show_id",e).maybeSingle();!m&&O&&o(!0)}},h=async()=>{if(!c){mi.error("Please sign in to follow shows"),t("/auth");return}if(e){s(!0);try{if(a){const{error:b}=await at.from("user_follows").delete().eq("user_id",c.id).eq("show_id",e);if(b)throw b;o(!1),mi.success("Unfollowed successfully")}else{const{error:b}=await at.from("user_follows").insert({user_id:c.id,show_id:e,notify_new_ep:!0,notify_news:!0});if(b)throw b;o(!0),mi.success("Following! You'll see this in your favorites")}}catch(b){console.error("Error toggling follow:",b.message),mi.error("Failed to update follow status")}finally{s(!1)}}};if(i)return S.jsx("div",{className:"min-h-screen flex items-center justify-center",children:S.jsxs("div",{className:"text-center",children:[S.jsx(Nm,{className:"w-12 h-12 mx-auto mb-4 animate-spin text-primary"}),S.jsx("p",{className:"text-muted-foreground",children:"Loading show details..."})]})});if(!n)return S.jsx("div",{className:"min-h-screen flex items-center justify-center",children:S.jsxs("div",{className:"text-center",children:[S.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Show Not Found"}),S.jsx(pt,{to:"/shows",children:S.jsxs(Co,{className:"rounded-full",children:[S.jsx(qc,{className:"w-4 h-4 mr-2"}),"Back to Shows"]})})]})});const v=n.title_english||n.title_romaji||"Anime",x=n.synopsis?n.synopsis.slice(0,155)+"...":`Watch ${v} - ${n.genres?.slice(0,3).join(", ")||"anime"}. ${n.episodes_count?`${n.episodes_count} episodes`:""}`,w={"@context":"https://schema.org","@type":"TVSeries",name:v,alternateName:n.title_romaji!==v?n.title_romaji:void 0,description:n.synopsis,image:n.poster_url,genre:n.genres,numberOfEpisodes:n.episodes_count,aggregateRating:n.rating?{"@type":"AggregateRating",ratingValue:n.rating,bestRating:10,worstRating:0}:void 0,productionCompany:p?{"@type":"Organization",name:p.name}:void 0,url:`https://www.what-anime.com/shows/${n.slug||e}`};return S.jsxs(S.Fragment,{children:[S.jsxs(Pm,{children:[S.jsx("title",{children:`${v} - Watch Info, Episodes & Details | What-Anime`}),S.jsx("meta",{name:"description",content:x}),S.jsx("meta",{property:"og:title",content:`${v} - Anime Info & Details | What-Anime`}),S.jsx("meta",{property:"og:description",content:x}),S.jsx("meta",{property:"og:image",content:n.banner_url||n.poster_url||""}),S.jsx("meta",{property:"og:type",content:"video.tv_show"}),S.jsx("meta",{property:"og:url",content:`https://www.what-anime.com/shows/${n.slug||e}`}),S.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),S.jsx("meta",{name:"twitter:title",content:`${v} | What-Anime`}),S.jsx("meta",{name:"twitter:description",content:x}),S.jsx("meta",{name:"twitter:image",content:n.banner_url||n.poster_url||""}),S.jsx("link",{rel:"canonical",href:`https://www.what-anime.com/shows/${n.slug||e}`}),S.jsx("script",{type:"application/ld+json",children:JSON.stringify(w)})]}),S.jsxs("div",{className:"min-h-screen",children:[S.jsxs("div",{className:"relative h-80 overflow-hidden",children:[S.jsx("img",{src:n.banner_url||n.poster_url||"https://images.unsplash.com/photo-1578632767115-351597cf2477?w=1200&h=400&fit=crop",alt:v,className:"w-full h-full object-cover"}),S.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/80 to-background/40"})]}),S.jsx("div",{className:"px-4 -mt-32 relative z-10",children:S.jsxs("div",{className:"mx-auto max-w-6xl",children:[S.jsxs(Co,{variant:"ghost",onClick:()=>t(-1),className:"mb-4 group",children:[S.jsx(qc,{className:"mr-2 h-4 w-4 transition-transform group-hover:-translate-x-1"}),r("common.back")]}),S.jsx(Em,{items:[{label:"Shows",href:"/shows"},...n.genres?.[0]?[{label:n.genres[0],href:`/genre/${n.genres[0].toLowerCase().replace(/\s+/g,"-")}`}]:[],{label:v}]}),S.jsxs("div",{className:"grid gap-8 md:grid-cols-[300px_1fr]",children:[S.jsxs("div",{className:"relative",children:[S.jsx("div",{className:"glass-card overflow-hidden group",children:S.jsx("img",{src:n.poster_url||"https://images.unsplash.com/photo-1578632767115-351597cf2477?w=400&h=600&fit=crop",alt:v,className:"w-full rounded-lg"})}),S.jsxs(Co,{onClick:h,disabled:u,className:`w-full mt-4 rounded-full ${a?"neon-glow-pink bg-gradient-to-r from-primary to-secondary":"glass-card border-primary/30"}`,children:[S.jsx(zp,{className:`w-4 h-4 mr-2 ${a?"fill-current":""}`}),u?"...":a?"Following":"Follow"]}),S.jsxs("div",{className:"mt-4 glass-card p-4 space-y-3",children:[n.episodes_count&&S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx(Im,{className:"w-4 h-4 text-muted-foreground"}),S.jsxs("span",{children:[n.episodes_count," Episodes"]})]}),p&&S.jsxs(pt,{to:`/studio/${p.slug}`,className:"flex items-center gap-2 text-sm hover:text-primary transition-colors",children:[S.jsx(ki,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("span",{children:p.name})]}),n.status&&S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx($m,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("span",{children:n.status})]}),n.updated_at&&S.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground border-t border-border/50 pt-3 mt-1",children:[S.jsx(jm,{className:"w-3 h-3"}),S.jsxs("span",{children:["Updated ",km(new Date(n.updated_at),"MMM d, yyyy")]})]})]})]}),S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{children:[S.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-2",children:v}),n.title_native&&S.jsx("p",{className:"text-xl text-muted-foreground mb-3",children:n.title_native}),S.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[n.rating&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Ii,{className:"w-5 h-5 text-secondary fill-secondary"}),S.jsx("span",{className:"text-lg font-semibold",children:n.rating})]}),n.status&&S.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-semibold ${n.status==="Ongoing"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:n.status}),n.episodes_count&&S.jsxs("span",{className:"text-muted-foreground",children:[n.episodes_count," Episodes"]})]})]}),n.genres&&n.genres.length>0&&S.jsx("div",{className:"flex flex-wrap gap-2",children:n.genres.map(b=>S.jsx(pt,{to:`/genre/${b.toLowerCase().replace(/\s+/g,"-")}`,className:"px-3 py-1 rounded-full glass-card text-sm hover:bg-primary/20 transition-colors",children:b},b))}),n.synopsis&&S.jsxs("div",{children:[S.jsx("h2",{className:"text-2xl font-bold mb-3",children:"Synopsis"}),S.jsx("p",{className:"text-muted-foreground leading-relaxed whitespace-pre-line",children:n.synopsis})]}),n.mal_id&&S.jsx("div",{children:S.jsx("a",{href:`https://myanimelist.net/anime/${n.mal_id}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary hover:underline",children:"View on MyAnimeList →"})})]})]}),S.jsx(E5,{anilistId:n.anilist_id}),S.jsx(Lm,{showId:n.id}),S.jsx(Rm,{genres:n.genres||[],currentShowId:e||"",studioName:p?.name})]})})]})]})}export{K5 as default};