import{g as Se,r as Z,j as N,m as ua,i as ri,c as L,n as ox,u as f0}from"./vendor-CIGJ9g2q.js";import{c as or,i as Xa,e as Od,B as Ke,a as ux}from"./button-DVA8JUsJ.js";import{P as sx}from"./page-transition-BW0vKBw7.js";import{c as ur,t as Sd,u as cx,d as lx}from"./index-C-2a0Dur.js";import{R as fx,T as dx,C as hx,g as px,h as vx,P as yx,O as gx,i as ge}from"./ui-BeEpfTFY.js";import{X as mx}from"./x-BTIcV1Z9.js";import{C as sa,b as ca,c as la,a as xf}from"./card-nJeJbIly.js";import{u as bx,C as Ht,a as xx,R as wx}from"./use-copy-CVXJQEWW.js";import{U as _x}from"./user-mg4Hsar6.js";import{C as Ox}from"./chevron-left-Drh8ieR2.js";/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sx=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ax=ur("download",Sx);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Px=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Tx=ur("external-link",Px);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jx=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ex=ur("eye-off",jx);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mx=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Cx=ur("eye",Mx);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $x=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Ix=ur("file",$x);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kx=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Nx=ur("key",kx);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rx=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],Va=ur("qr-code",Rx);var gi={exports:{}},Dx=gi.exports,Ad;function qx(){return Ad||(Ad=1,function(e,t){(function(r,n){e.exports=n()})(Dx,()=>(()=>{var r={873:(o,u)=>{var s,c,f=function(){var l=function($,C){var M=$,g=w[C],y=null,S=0,E=null,A=[],I={},H=function(T,B){y=function(R){for(var z=new Array(R),K=0;K<R;K+=1){z[K]=new Array(R);for(var re=0;re<R;re+=1)z[K][re]=null}return z}(S=4*M+17),V(0,0),V(S-7,0),V(0,S-7),Q(),te(),J(T,B),M>=7&&ae(T),E==null&&(E=ee(M,g,A)),X(E,B)},V=function(T,B){for(var R=-1;R<=7;R+=1)if(!(T+R<=-1||S<=T+R))for(var z=-1;z<=7;z+=1)B+z<=-1||S<=B+z||(y[T+R][B+z]=0<=R&&R<=6&&(z==0||z==6)||0<=z&&z<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=z&&z<=4)},te=function(){for(var T=8;T<S-8;T+=1)y[T][6]==null&&(y[T][6]=T%2==0);for(var B=8;B<S-8;B+=1)y[6][B]==null&&(y[6][B]=B%2==0)},Q=function(){for(var T=_.getPatternPosition(M),B=0;B<T.length;B+=1)for(var R=0;R<T.length;R+=1){var z=T[B],K=T[R];if(y[z][K]==null)for(var re=-2;re<=2;re+=1)for(var oe=-2;oe<=2;oe+=1)y[z+re][K+oe]=re==-2||re==2||oe==-2||oe==2||re==0&&oe==0}},ae=function(T){for(var B=_.getBCHTypeNumber(M),R=0;R<18;R+=1){var z=!T&&(B>>R&1)==1;y[Math.floor(R/3)][R%3+S-8-3]=z}for(R=0;R<18;R+=1)z=!T&&(B>>R&1)==1,y[R%3+S-8-3][Math.floor(R/3)]=z},J=function(T,B){for(var R=g<<3|B,z=_.getBCHTypeInfo(R),K=0;K<15;K+=1){var re=!T&&(z>>K&1)==1;K<6?y[K][8]=re:K<8?y[K+1][8]=re:y[S-15+K][8]=re}for(K=0;K<15;K+=1)re=!T&&(z>>K&1)==1,K<8?y[8][S-K-1]=re:K<9?y[8][15-K-1+1]=re:y[8][15-K-1]=re;y[S-8][8]=!T},X=function(T,B){for(var R=-1,z=S-1,K=7,re=0,oe=_.getMaskFunction(B),se=S-1;se>0;se-=2)for(se==6&&(se-=1);;){for(var pe=0;pe<2;pe+=1)if(y[z][se-pe]==null){var de=!1;re<T.length&&(de=(T[re]>>>K&1)==1),oe(z,se-pe)&&(de=!de),y[z][se-pe]=de,(K-=1)==-1&&(re+=1,K=7)}if((z+=R)<0||S<=z){z-=R,R=-R;break}}},ee=function(T,B,R){for(var z=b.getRSBlocks(T,B),K=x(),re=0;re<R.length;re+=1){var oe=R[re];K.put(oe.getMode(),4),K.put(oe.getLength(),_.getLengthInBits(oe.getMode(),T)),oe.write(K)}var se=0;for(re=0;re<z.length;re+=1)se+=z[re].dataCount;if(K.getLengthInBits()>8*se)throw"code length overflow. ("+K.getLengthInBits()+">"+8*se+")";for(K.getLengthInBits()+4<=8*se&&K.put(0,4);K.getLengthInBits()%8!=0;)K.putBit(!1);for(;!(K.getLengthInBits()>=8*se||(K.put(236,8),K.getLengthInBits()>=8*se));)K.put(17,8);return function(pe,de){for(var ve=0,Ne=0,Me=0,xe=new Array(de.length),be=new Array(de.length),ce=0;ce<de.length;ce+=1){var $e=de[ce].dataCount,De=de[ce].totalCount-$e;Ne=Math.max(Ne,$e),Me=Math.max(Me,De),xe[ce]=new Array($e);for(var le=0;le<xe[ce].length;le+=1)xe[ce][le]=255&pe.getBuffer()[le+ve];ve+=$e;var Ve=_.getErrorCorrectPolynomial(De),Ge=j(xe[ce],Ve.getLength()-1).mod(Ve);for(be[ce]=new Array(Ve.getLength()-1),le=0;le<be[ce].length;le+=1){var He=le+Ge.getLength()-be[ce].length;be[ce][le]=He>=0?Ge.getAt(He):0}}var ti=0;for(le=0;le<de.length;le+=1)ti+=de[le].totalCount;var Vr=new Array(ti),lt=0;for(le=0;le<Ne;le+=1)for(ce=0;ce<de.length;ce+=1)le<xe[ce].length&&(Vr[lt]=xe[ce][le],lt+=1);for(le=0;le<Me;le+=1)for(ce=0;ce<de.length;ce+=1)le<be[ce].length&&(Vr[lt]=be[ce][le],lt+=1);return Vr}(K,z)};I.addData=function(T,B){var R=null;switch(B=B||"Byte"){case"Numeric":R=P(T);break;case"Alphanumeric":R=k(T);break;case"Byte":R=D(T);break;case"Kanji":R=W(T);break;default:throw"mode:"+B}A.push(R),E=null},I.isDark=function(T,B){if(T<0||S<=T||B<0||S<=B)throw T+","+B;return y[T][B]},I.getModuleCount=function(){return S},I.make=function(){if(M<1){for(var T=1;T<40;T++){for(var B=b.getRSBlocks(T,g),R=x(),z=0;z<A.length;z++){var K=A[z];R.put(K.getMode(),4),R.put(K.getLength(),_.getLengthInBits(K.getMode(),T)),K.write(R)}var re=0;for(z=0;z<B.length;z++)re+=B[z].dataCount;if(R.getLengthInBits()<=8*re)break}M=T}H(!1,function(){for(var oe=0,se=0,pe=0;pe<8;pe+=1){H(!0,pe);var de=_.getLostPoint(I);(pe==0||oe>de)&&(oe=de,se=pe)}return se}())},I.createTableTag=function(T,B){T=T||2;var R="";R+='<table style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: "+(B=B===void 0?4*T:B)+"px;",R+='">',R+="<tbody>";for(var z=0;z<I.getModuleCount();z+=1){R+="<tr>";for(var K=0;K<I.getModuleCount();K+=1)R+='<td style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: 0px;",R+=" width: "+T+"px;",R+=" height: "+T+"px;",R+=" background-color: ",R+=I.isDark(z,K)?"#000000":"#ffffff",R+=";",R+='"/>';R+="</tr>"}return(R+="</tbody>")+"</table>"},I.createSvgTag=function(T,B,R,z){var K={};typeof arguments[0]=="object"&&(T=(K=arguments[0]).cellSize,B=K.margin,R=K.alt,z=K.title),T=T||2,B=B===void 0?4*T:B,(R=typeof R=="string"?{text:R}:R||{}).text=R.text||null,R.id=R.text?R.id||"qrcode-description":null,(z=typeof z=="string"?{text:z}:z||{}).text=z.text||null,z.id=z.text?z.id||"qrcode-title":null;var re,oe,se,pe,de=I.getModuleCount()*T+2*B,ve="";for(pe="l"+T+",0 0,"+T+" -"+T+",0 0,-"+T+"z ",ve+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',ve+=K.scalable?"":' width="'+de+'px" height="'+de+'px"',ve+=' viewBox="0 0 '+de+" "+de+'" ',ve+=' preserveAspectRatio="xMinYMin meet"',ve+=z.text||R.text?' role="img" aria-labelledby="'+Y([z.id,R.id].join(" ").trim())+'"':"",ve+=">",ve+=z.text?'<title id="'+Y(z.id)+'">'+Y(z.text)+"</title>":"",ve+=R.text?'<description id="'+Y(R.id)+'">'+Y(R.text)+"</description>":"",ve+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',ve+='<path d="',oe=0;oe<I.getModuleCount();oe+=1)for(se=oe*T+B,re=0;re<I.getModuleCount();re+=1)I.isDark(oe,re)&&(ve+="M"+(re*T+B)+","+se+pe);return(ve+='" stroke="transparent" fill="black"/>')+"</svg>"},I.createDataURL=function(T,B){T=T||2,B=B===void 0?4*T:B;var R=I.getModuleCount()*T+2*B,z=B,K=R-B;return U(R,R,function(re,oe){if(z<=re&&re<K&&z<=oe&&oe<K){var se=Math.floor((re-z)/T),pe=Math.floor((oe-z)/T);return I.isDark(pe,se)?0:1}return 1})},I.createImgTag=function(T,B,R){T=T||2,B=B===void 0?4*T:B;var z=I.getModuleCount()*T+2*B,K="";return K+="<img",K+=' src="',K+=I.createDataURL(T,B),K+='"',K+=' width="',K+=z,K+='"',K+=' height="',K+=z,K+='"',R&&(K+=' alt="',K+=Y(R),K+='"'),K+"/>"};var Y=function(T){for(var B="",R=0;R<T.length;R+=1){var z=T.charAt(R);switch(z){case"<":B+="&lt;";break;case">":B+="&gt;";break;case"&":B+="&amp;";break;case'"':B+="&quot;";break;default:B+=z}}return B};return I.createASCII=function(T,B){if((T=T||1)<2)return function(xe){xe=xe===void 0?2:xe;var be,ce,$e,De,le,Ve=1*I.getModuleCount()+2*xe,Ge=xe,He=Ve-xe,ti={"██":"█","█ ":"▀"," █":"▄","  ":" "},Vr={"██":"▀","█ ":"▀"," █":" ","  ":" "},lt="";for(be=0;be<Ve;be+=2){for($e=Math.floor((be-Ge)/1),De=Math.floor((be+1-Ge)/1),ce=0;ce<Ve;ce+=1)le="█",Ge<=ce&&ce<He&&Ge<=be&&be<He&&I.isDark($e,Math.floor((ce-Ge)/1))&&(le=" "),Ge<=ce&&ce<He&&Ge<=be+1&&be+1<He&&I.isDark(De,Math.floor((ce-Ge)/1))?le+=" ":le+="█",lt+=xe<1&&be+1>=He?Vr[le]:ti[le];lt+=`
`}return Ve%2&&xe>0?lt.substring(0,lt.length-Ve-1)+Array(Ve+1).join("▀"):lt.substring(0,lt.length-1)}(B);T-=1,B=B===void 0?2*T:B;var R,z,K,re,oe=I.getModuleCount()*T+2*B,se=B,pe=oe-B,de=Array(T+1).join("██"),ve=Array(T+1).join("  "),Ne="",Me="";for(R=0;R<oe;R+=1){for(K=Math.floor((R-se)/T),Me="",z=0;z<oe;z+=1)re=1,se<=z&&z<pe&&se<=R&&R<pe&&I.isDark(K,Math.floor((z-se)/T))&&(re=0),Me+=re?de:ve;for(K=0;K<T;K+=1)Ne+=Me+`
`}return Ne.substring(0,Ne.length-1)},I.renderTo2dContext=function(T,B){B=B||2;for(var R=I.getModuleCount(),z=0;z<R;z++)for(var K=0;K<R;K++)T.fillStyle=I.isDark(z,K)?"black":"white",T.fillRect(z*B,K*B,B,B)},I};l.stringToBytes=(l.stringToBytesFuncs={default:function($){for(var C=[],M=0;M<$.length;M+=1){var g=$.charCodeAt(M);C.push(255&g)}return C}}).default,l.createStringToBytes=function($,C){var M=function(){for(var y=F($),S=function(){var te=y.read();if(te==-1)throw"eof";return te},E=0,A={};;){var I=y.read();if(I==-1)break;var H=S(),V=S()<<8|S();A[String.fromCharCode(I<<8|H)]=V,E+=1}if(E!=C)throw E+" != "+C;return A}(),g=63;return function(y){for(var S=[],E=0;E<y.length;E+=1){var A=y.charCodeAt(E);if(A<128)S.push(A);else{var I=M[y.charAt(E)];typeof I=="number"?(255&I)==I?S.push(I):(S.push(I>>>8),S.push(255&I)):S.push(g)}}return S}};var d,v,m,p,h,w={L:1,M:0,Q:3,H:2},_=(d=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],v=1335,m=7973,h=function($){for(var C=0;$!=0;)C+=1,$>>>=1;return C},(p={}).getBCHTypeInfo=function($){for(var C=$<<10;h(C)-h(v)>=0;)C^=v<<h(C)-h(v);return 21522^($<<10|C)},p.getBCHTypeNumber=function($){for(var C=$<<12;h(C)-h(m)>=0;)C^=m<<h(C)-h(m);return $<<12|C},p.getPatternPosition=function($){return d[$-1]},p.getMaskFunction=function($){switch($){case 0:return function(C,M){return(C+M)%2==0};case 1:return function(C,M){return C%2==0};case 2:return function(C,M){return M%3==0};case 3:return function(C,M){return(C+M)%3==0};case 4:return function(C,M){return(Math.floor(C/2)+Math.floor(M/3))%2==0};case 5:return function(C,M){return C*M%2+C*M%3==0};case 6:return function(C,M){return(C*M%2+C*M%3)%2==0};case 7:return function(C,M){return(C*M%3+(C+M)%2)%2==0};default:throw"bad maskPattern:"+$}},p.getErrorCorrectPolynomial=function($){for(var C=j([1],0),M=0;M<$;M+=1)C=C.multiply(j([1,O.gexp(M)],0));return C},p.getLengthInBits=function($,C){if(1<=C&&C<10)switch($){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+$}else if(C<27)switch($){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+$}else{if(!(C<41))throw"type:"+C;switch($){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+$}}},p.getLostPoint=function($){for(var C=$.getModuleCount(),M=0,g=0;g<C;g+=1)for(var y=0;y<C;y+=1){for(var S=0,E=$.isDark(g,y),A=-1;A<=1;A+=1)if(!(g+A<0||C<=g+A))for(var I=-1;I<=1;I+=1)y+I<0||C<=y+I||A==0&&I==0||E==$.isDark(g+A,y+I)&&(S+=1);S>5&&(M+=3+S-5)}for(g=0;g<C-1;g+=1)for(y=0;y<C-1;y+=1){var H=0;$.isDark(g,y)&&(H+=1),$.isDark(g+1,y)&&(H+=1),$.isDark(g,y+1)&&(H+=1),$.isDark(g+1,y+1)&&(H+=1),H!=0&&H!=4||(M+=3)}for(g=0;g<C;g+=1)for(y=0;y<C-6;y+=1)$.isDark(g,y)&&!$.isDark(g,y+1)&&$.isDark(g,y+2)&&$.isDark(g,y+3)&&$.isDark(g,y+4)&&!$.isDark(g,y+5)&&$.isDark(g,y+6)&&(M+=40);for(y=0;y<C;y+=1)for(g=0;g<C-6;g+=1)$.isDark(g,y)&&!$.isDark(g+1,y)&&$.isDark(g+2,y)&&$.isDark(g+3,y)&&$.isDark(g+4,y)&&!$.isDark(g+5,y)&&$.isDark(g+6,y)&&(M+=40);var V=0;for(y=0;y<C;y+=1)for(g=0;g<C;g+=1)$.isDark(g,y)&&(V+=1);return M+Math.abs(100*V/C/C-50)/5*10},p),O=function(){for(var $=new Array(256),C=new Array(256),M=0;M<8;M+=1)$[M]=1<<M;for(M=8;M<256;M+=1)$[M]=$[M-4]^$[M-5]^$[M-6]^$[M-8];for(M=0;M<255;M+=1)C[$[M]]=M;return{glog:function(g){if(g<1)throw"glog("+g+")";return C[g]},gexp:function(g){for(;g<0;)g+=255;for(;g>=256;)g-=255;return $[g]}}}();function j($,C){if($.length===void 0)throw $.length+"/"+C;var M=function(){for(var y=0;y<$.length&&$[y]==0;)y+=1;for(var S=new Array($.length-y+C),E=0;E<$.length-y;E+=1)S[E]=$[E+y];return S}(),g={getAt:function(y){return M[y]},getLength:function(){return M.length},multiply:function(y){for(var S=new Array(g.getLength()+y.getLength()-1),E=0;E<g.getLength();E+=1)for(var A=0;A<y.getLength();A+=1)S[E+A]^=O.gexp(O.glog(g.getAt(E))+O.glog(y.getAt(A)));return j(S,0)},mod:function(y){if(g.getLength()-y.getLength()<0)return g;for(var S=O.glog(g.getAt(0))-O.glog(y.getAt(0)),E=new Array(g.getLength()),A=0;A<g.getLength();A+=1)E[A]=g.getAt(A);for(A=0;A<y.getLength();A+=1)E[A]^=O.gexp(O.glog(y.getAt(A))+S);return j(E,0).mod(y)}};return g}var b=function(){var $=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],C=function(g,y){var S={};return S.totalCount=g,S.dataCount=y,S},M={getRSBlocks:function(g,y){var S=function(ae,J){switch(J){case w.L:return $[4*(ae-1)+0];case w.M:return $[4*(ae-1)+1];case w.Q:return $[4*(ae-1)+2];case w.H:return $[4*(ae-1)+3];default:return}}(g,y);if(S===void 0)throw"bad rs block @ typeNumber:"+g+"/errorCorrectionLevel:"+y;for(var E=S.length/3,A=[],I=0;I<E;I+=1)for(var H=S[3*I+0],V=S[3*I+1],te=S[3*I+2],Q=0;Q<H;Q+=1)A.push(C(V,te));return A}};return M}(),x=function(){var $=[],C=0,M={getBuffer:function(){return $},getAt:function(g){var y=Math.floor(g/8);return($[y]>>>7-g%8&1)==1},put:function(g,y){for(var S=0;S<y;S+=1)M.putBit((g>>>y-S-1&1)==1)},getLengthInBits:function(){return C},putBit:function(g){var y=Math.floor(C/8);$.length<=y&&$.push(0),g&&($[y]|=128>>>C%8),C+=1}};return M},P=function($){var C=$,M={getMode:function(){return 1},getLength:function(S){return C.length},write:function(S){for(var E=C,A=0;A+2<E.length;)S.put(g(E.substring(A,A+3)),10),A+=3;A<E.length&&(E.length-A==1?S.put(g(E.substring(A,A+1)),4):E.length-A==2&&S.put(g(E.substring(A,A+2)),7))}},g=function(S){for(var E=0,A=0;A<S.length;A+=1)E=10*E+y(S.charAt(A));return E},y=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;throw"illegal char :"+S};return M},k=function($){var C=$,M={getMode:function(){return 2},getLength:function(y){return C.length},write:function(y){for(var S=C,E=0;E+1<S.length;)y.put(45*g(S.charAt(E))+g(S.charAt(E+1)),11),E+=2;E<S.length&&y.put(g(S.charAt(E)),6)}},g=function(y){if("0"<=y&&y<="9")return y.charCodeAt(0)-48;if("A"<=y&&y<="Z")return y.charCodeAt(0)-65+10;switch(y){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+y}};return M},D=function($){var C=l.stringToBytes($);return{getMode:function(){return 4},getLength:function(M){return C.length},write:function(M){for(var g=0;g<C.length;g+=1)M.put(C[g],8)}}},W=function($){var C=l.stringToBytesFuncs.SJIS;if(!C)throw"sjis not supported.";(function(){var y=C("友");if(y.length!=2||(y[0]<<8|y[1])!=38726)throw"sjis not supported."})();var M=C($),g={getMode:function(){return 8},getLength:function(y){return~~(M.length/2)},write:function(y){for(var S=M,E=0;E+1<S.length;){var A=(255&S[E])<<8|255&S[E+1];if(33088<=A&&A<=40956)A-=33088;else{if(!(57408<=A&&A<=60351))throw"illegal char at "+(E+1)+"/"+A;A-=49472}A=192*(A>>>8&255)+(255&A),y.put(A,13),E+=2}if(E<S.length)throw"illegal char at "+(E+1)}};return g},q=function(){var $=[],C={writeByte:function(M){$.push(255&M)},writeShort:function(M){C.writeByte(M),C.writeByte(M>>>8)},writeBytes:function(M,g,y){g=g||0,y=y||M.length;for(var S=0;S<y;S+=1)C.writeByte(M[S+g])},writeString:function(M){for(var g=0;g<M.length;g+=1)C.writeByte(M.charCodeAt(g))},toByteArray:function(){return $},toString:function(){var M="";M+="[";for(var g=0;g<$.length;g+=1)g>0&&(M+=","),M+=$[g];return M+"]"}};return C},F=function($){var C=$,M=0,g=0,y=0,S={read:function(){for(;y<8;){if(M>=C.length){if(y==0)return-1;throw"unexpected end of file./"+y}var A=C.charAt(M);if(M+=1,A=="=")return y=0,-1;A.match(/^\s$/)||(g=g<<6|E(A.charCodeAt(0)),y+=6)}var I=g>>>y-8&255;return y-=8,I}},E=function(A){if(65<=A&&A<=90)return A-65;if(97<=A&&A<=122)return A-97+26;if(48<=A&&A<=57)return A-48+52;if(A==43)return 62;if(A==47)return 63;throw"c:"+A};return S},U=function($,C,M){for(var g=function(V,te){var Q=V,ae=te,J=new Array(V*te),X={setPixel:function(T,B,R){J[B*Q+T]=R},write:function(T){T.writeString("GIF87a"),T.writeShort(Q),T.writeShort(ae),T.writeByte(128),T.writeByte(0),T.writeByte(0),T.writeByte(0),T.writeByte(0),T.writeByte(0),T.writeByte(255),T.writeByte(255),T.writeByte(255),T.writeString(","),T.writeShort(0),T.writeShort(0),T.writeShort(Q),T.writeShort(ae),T.writeByte(0);var B=ee(2);T.writeByte(2);for(var R=0;B.length-R>255;)T.writeByte(255),T.writeBytes(B,R,255),R+=255;T.writeByte(B.length-R),T.writeBytes(B,R,B.length-R),T.writeByte(0),T.writeString(";")}},ee=function(T){for(var B=1<<T,R=1+(1<<T),z=T+1,K=Y(),re=0;re<B;re+=1)K.add(String.fromCharCode(re));K.add(String.fromCharCode(B)),K.add(String.fromCharCode(R));var oe,se,pe,de=q(),ve=(oe=de,se=0,pe=0,{write:function(be,ce){if(be>>>ce)throw"length over";for(;se+ce>=8;)oe.writeByte(255&(be<<se|pe)),ce-=8-se,be>>>=8-se,pe=0,se=0;pe|=be<<se,se+=ce},flush:function(){se>0&&oe.writeByte(pe)}});ve.write(B,z);var Ne=0,Me=String.fromCharCode(J[Ne]);for(Ne+=1;Ne<J.length;){var xe=String.fromCharCode(J[Ne]);Ne+=1,K.contains(Me+xe)?Me+=xe:(ve.write(K.indexOf(Me),z),K.size()<4095&&(K.size()==1<<z&&(z+=1),K.add(Me+xe)),Me=xe)}return ve.write(K.indexOf(Me),z),ve.write(R,z),ve.flush(),de.toByteArray()},Y=function(){var T={},B=0,R={add:function(z){if(R.contains(z))throw"dup key:"+z;T[z]=B,B+=1},size:function(){return B},indexOf:function(z){return T[z]},contains:function(z){return T[z]!==void 0}};return R};return X}($,C),y=0;y<C;y+=1)for(var S=0;S<$;S+=1)g.setPixel(S,y,M(S,y));var E=q();g.write(E);for(var A=function(){var V=0,te=0,Q=0,ae="",J={},X=function(Y){ae+=String.fromCharCode(ee(63&Y))},ee=function(Y){if(!(Y<0)){if(Y<26)return 65+Y;if(Y<52)return Y-26+97;if(Y<62)return Y-52+48;if(Y==62)return 43;if(Y==63)return 47}throw"n:"+Y};return J.writeByte=function(Y){for(V=V<<8|255&Y,te+=8,Q+=1;te>=6;)X(V>>>te-6),te-=6},J.flush=function(){if(te>0&&(X(V<<6-te),V=0,te=0),Q%3!=0)for(var Y=3-Q%3,T=0;T<Y;T+=1)ae+="="},J.toString=function(){return ae},J}(),I=E.toByteArray(),H=0;H<I.length;H+=1)A.writeByte(I[H]);return A.flush(),"data:image/gif;base64,"+A};return l}();f.stringToBytesFuncs["UTF-8"]=function(l){return function(d){for(var v=[],m=0;m<d.length;m++){var p=d.charCodeAt(m);p<128?v.push(p):p<2048?v.push(192|p>>6,128|63&p):p<55296||p>=57344?v.push(224|p>>12,128|p>>6&63,128|63&p):(m++,p=65536+((1023&p)<<10|1023&d.charCodeAt(m)),v.push(240|p>>18,128|p>>12&63,128|p>>6&63,128|63&p))}return v}(l)},(c=typeof(s=function(){return f})=="function"?s.apply(u,[]):s)===void 0||(o.exports=c)}},n={};function i(o){var u=n[o];if(u!==void 0)return u.exports;var s=n[o]={exports:{}};return r[o](s,s.exports,i),s.exports}i.n=o=>{var u=o&&o.__esModule?()=>o.default:()=>o;return i.d(u,{a:u}),u},i.d=(o,u)=>{for(var s in u)i.o(u,s)&&!i.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:u[s]})},i.o=(o,u)=>Object.prototype.hasOwnProperty.call(o,u);var a={};return(()=>{i.d(a,{default:()=>C});const o=M=>!!M&&typeof M=="object"&&!Array.isArray(M);function u(M,...g){if(!g.length)return M;const y=g.shift();return y!==void 0&&o(M)&&o(y)?(M=Object.assign({},M),Object.keys(y).forEach(S=>{const E=M[S],A=y[S];Array.isArray(E)&&Array.isArray(A)?M[S]=A:o(E)&&o(A)?M[S]=u(Object.assign({},E),A):M[S]=A}),u(M,...g)):M}function s(M,g){const y=document.createElement("a");y.download=g,y.href=M,document.body.appendChild(y),y.click(),document.body.removeChild(y)}const c={L:.07,M:.15,Q:.25,H:.3};class f{constructor({svg:g,type:y,window:S}){this._svg=g,this._type=y,this._window=S}draw(g,y,S,E){let A;switch(this._type){case"dots":A=this._drawDot;break;case"classy":A=this._drawClassy;break;case"classy-rounded":A=this._drawClassyRounded;break;case"rounded":A=this._drawRounded;break;case"extra-rounded":A=this._drawExtraRounded;break;default:A=this._drawSquare}A.call(this,{x:g,y,size:S,getNeighbor:E})}_rotateFigure({x:g,y,size:S,rotation:E=0,draw:A}){var I;const H=g+S/2,V=y+S/2;A(),(I=this._element)===null||I===void 0||I.setAttribute("transform",`rotate(${180*E/Math.PI},${H},${V})`)}_basicDot(g){const{size:y,x:S,y:E}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(S+y/2)),this._element.setAttribute("cy",String(E+y/2)),this._element.setAttribute("r",String(y/2))}}))}_basicSquare(g){const{size:y,x:S,y:E}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(S)),this._element.setAttribute("y",String(E)),this._element.setAttribute("width",String(y)),this._element.setAttribute("height",String(y))}}))}_basicSideRounded(g){const{size:y,x:S,y:E}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${S} ${E}v ${y}h `+y/2+`a ${y/2} ${y/2}, 0, 0, 0, 0 ${-y}`)}}))}_basicCornerRounded(g){const{size:y,x:S,y:E}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${S} ${E}v ${y}h ${y}v `+-y/2+`a ${y/2} ${y/2}, 0, 0, 0, ${-y/2} ${-y/2}`)}}))}_basicCornerExtraRounded(g){const{size:y,x:S,y:E}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${S} ${E}v ${y}h ${y}a ${y} ${y}, 0, 0, 0, ${-y} ${-y}`)}}))}_basicCornersRounded(g){const{size:y,x:S,y:E}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${S} ${E}v `+y/2+`a ${y/2} ${y/2}, 0, 0, 0, ${y/2} ${y/2}h `+y/2+"v "+-y/2+`a ${y/2} ${y/2}, 0, 0, 0, ${-y/2} ${-y/2}`)}}))}_drawDot({x:g,y,size:S}){this._basicDot({x:g,y,size:S,rotation:0})}_drawSquare({x:g,y,size:S}){this._basicSquare({x:g,y,size:S,rotation:0})}_drawRounded({x:g,y,size:S,getNeighbor:E}){const A=E?+E(-1,0):0,I=E?+E(1,0):0,H=E?+E(0,-1):0,V=E?+E(0,1):0,te=A+I+H+V;if(te!==0)if(te>2||A&&I||H&&V)this._basicSquare({x:g,y,size:S,rotation:0});else{if(te===2){let Q=0;return A&&H?Q=Math.PI/2:H&&I?Q=Math.PI:I&&V&&(Q=-Math.PI/2),void this._basicCornerRounded({x:g,y,size:S,rotation:Q})}if(te===1){let Q=0;return H?Q=Math.PI/2:I?Q=Math.PI:V&&(Q=-Math.PI/2),void this._basicSideRounded({x:g,y,size:S,rotation:Q})}}else this._basicDot({x:g,y,size:S,rotation:0})}_drawExtraRounded({x:g,y,size:S,getNeighbor:E}){const A=E?+E(-1,0):0,I=E?+E(1,0):0,H=E?+E(0,-1):0,V=E?+E(0,1):0,te=A+I+H+V;if(te!==0)if(te>2||A&&I||H&&V)this._basicSquare({x:g,y,size:S,rotation:0});else{if(te===2){let Q=0;return A&&H?Q=Math.PI/2:H&&I?Q=Math.PI:I&&V&&(Q=-Math.PI/2),void this._basicCornerExtraRounded({x:g,y,size:S,rotation:Q})}if(te===1){let Q=0;return H?Q=Math.PI/2:I?Q=Math.PI:V&&(Q=-Math.PI/2),void this._basicSideRounded({x:g,y,size:S,rotation:Q})}}else this._basicDot({x:g,y,size:S,rotation:0})}_drawClassy({x:g,y,size:S,getNeighbor:E}){const A=E?+E(-1,0):0,I=E?+E(1,0):0,H=E?+E(0,-1):0,V=E?+E(0,1):0;A+I+H+V!==0?A||H?I||V?this._basicSquare({x:g,y,size:S,rotation:0}):this._basicCornerRounded({x:g,y,size:S,rotation:Math.PI/2}):this._basicCornerRounded({x:g,y,size:S,rotation:-Math.PI/2}):this._basicCornersRounded({x:g,y,size:S,rotation:Math.PI/2})}_drawClassyRounded({x:g,y,size:S,getNeighbor:E}){const A=E?+E(-1,0):0,I=E?+E(1,0):0,H=E?+E(0,-1):0,V=E?+E(0,1):0;A+I+H+V!==0?A||H?I||V?this._basicSquare({x:g,y,size:S,rotation:0}):this._basicCornerExtraRounded({x:g,y,size:S,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:g,y,size:S,rotation:-Math.PI/2}):this._basicCornersRounded({x:g,y,size:S,rotation:Math.PI/2})}}const l={dot:"dot",square:"square",extraRounded:"extra-rounded"},d=Object.values(l);class v{constructor({svg:g,type:y,window:S}){this._svg=g,this._type=y,this._window=S}draw(g,y,S,E){let A;switch(this._type){case l.square:A=this._drawSquare;break;case l.extraRounded:A=this._drawExtraRounded;break;default:A=this._drawDot}A.call(this,{x:g,y,size:S,rotation:E})}_rotateFigure({x:g,y,size:S,rotation:E=0,draw:A}){var I;const H=g+S/2,V=y+S/2;A(),(I=this._element)===null||I===void 0||I.setAttribute("transform",`rotate(${180*E/Math.PI},${H},${V})`)}_basicDot(g){const{size:y,x:S,y:E}=g,A=y/7;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${S+y/2} ${E}a ${y/2} ${y/2} 0 1 0 0.1 0zm 0 ${A}a ${y/2-A} ${y/2-A} 0 1 1 -0.1 0Z`)}}))}_basicSquare(g){const{size:y,x:S,y:E}=g,A=y/7;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${S} ${E}v ${y}h ${y}v `+-y+`zM ${S+A} ${E+A}h `+(y-2*A)+"v "+(y-2*A)+"h "+(2*A-y)+"z")}}))}_basicExtraRounded(g){const{size:y,x:S,y:E}=g,A=y/7;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${S} ${E+2.5*A}v `+2*A+`a ${2.5*A} ${2.5*A}, 0, 0, 0, ${2.5*A} ${2.5*A}h `+2*A+`a ${2.5*A} ${2.5*A}, 0, 0, 0, ${2.5*A} ${2.5*-A}v `+-2*A+`a ${2.5*A} ${2.5*A}, 0, 0, 0, ${2.5*-A} ${2.5*-A}h `+-2*A+`a ${2.5*A} ${2.5*A}, 0, 0, 0, ${2.5*-A} ${2.5*A}M ${S+2.5*A} ${E+A}h `+2*A+`a ${1.5*A} ${1.5*A}, 0, 0, 1, ${1.5*A} ${1.5*A}v `+2*A+`a ${1.5*A} ${1.5*A}, 0, 0, 1, ${1.5*-A} ${1.5*A}h `+-2*A+`a ${1.5*A} ${1.5*A}, 0, 0, 1, ${1.5*-A} ${1.5*-A}v `+-2*A+`a ${1.5*A} ${1.5*A}, 0, 0, 1, ${1.5*A} ${1.5*-A}`)}}))}_drawDot({x:g,y,size:S,rotation:E}){this._basicDot({x:g,y,size:S,rotation:E})}_drawSquare({x:g,y,size:S,rotation:E}){this._basicSquare({x:g,y,size:S,rotation:E})}_drawExtraRounded({x:g,y,size:S,rotation:E}){this._basicExtraRounded({x:g,y,size:S,rotation:E})}}const m={dot:"dot",square:"square"},p=Object.values(m);class h{constructor({svg:g,type:y,window:S}){this._svg=g,this._type=y,this._window=S}draw(g,y,S,E){let A;A=this._type===m.square?this._drawSquare:this._drawDot,A.call(this,{x:g,y,size:S,rotation:E})}_rotateFigure({x:g,y,size:S,rotation:E=0,draw:A}){var I;const H=g+S/2,V=y+S/2;A(),(I=this._element)===null||I===void 0||I.setAttribute("transform",`rotate(${180*E/Math.PI},${H},${V})`)}_basicDot(g){const{size:y,x:S,y:E}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(S+y/2)),this._element.setAttribute("cy",String(E+y/2)),this._element.setAttribute("r",String(y/2))}}))}_basicSquare(g){const{size:y,x:S,y:E}=g;this._rotateFigure(Object.assign(Object.assign({},g),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(S)),this._element.setAttribute("y",String(E)),this._element.setAttribute("width",String(y)),this._element.setAttribute("height",String(y))}}))}_drawDot({x:g,y,size:S,rotation:E}){this._basicDot({x:g,y,size:S,rotation:E})}_drawSquare({x:g,y,size:S,rotation:E}){this._basicSquare({x:g,y,size:S,rotation:E})}}const w="circle",_=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],O=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class j{constructor(g,y){this._roundSize=S=>this._options.dotsOptions.roundSize?Math.floor(S):S,this._window=y,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(g.width)),this._element.setAttribute("height",String(g.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),g.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${g.width} ${g.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=g.image,this._instanceId=j.instanceCount++,this._options=g}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(g){const y=g.getModuleCount(),S=Math.min(this._options.width,this._options.height)-2*this._options.margin,E=this._options.shape===w?S/Math.sqrt(2):S,A=this._roundSize(E/y);let I={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=g,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:H,qrOptions:V}=this._options,te=H.imageSize*c[V.errorCorrectionLevel],Q=Math.floor(te*y*y);I=function({originalHeight:ae,originalWidth:J,maxHiddenDots:X,maxHiddenAxisDots:ee,dotSize:Y}){const T={x:0,y:0},B={x:0,y:0};if(ae<=0||J<=0||X<=0||Y<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const R=ae/J;return T.x=Math.floor(Math.sqrt(X/R)),T.x<=0&&(T.x=1),ee&&ee<T.x&&(T.x=ee),T.x%2==0&&T.x--,B.x=T.x*Y,T.y=1+2*Math.ceil((T.x*R-1)/2),B.y=Math.round(B.x*R),(T.y*T.x>X||ee&&ee<T.y)&&(ee&&ee<T.y?(T.y=ee,T.y%2==0&&T.x--):T.y-=2,B.y=T.y*Y,T.x=1+2*Math.ceil((T.y/R-1)/2),B.x=Math.round(B.y/R)),{height:B.y,width:B.x,hideYDots:T.y,hideXDots:T.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Q,maxHiddenAxisDots:y-14,dotSize:A})}this.drawBackground(),this.drawDots((H,V)=>{var te,Q,ae,J,X,ee;return!(this._options.imageOptions.hideBackgroundDots&&H>=(y-I.hideYDots)/2&&H<(y+I.hideYDots)/2&&V>=(y-I.hideXDots)/2&&V<(y+I.hideXDots)/2||!((te=_[H])===null||te===void 0)&&te[V]||!((Q=_[H-y+7])===null||Q===void 0)&&Q[V]||!((ae=_[H])===null||ae===void 0)&&ae[V-y+7]||!((J=O[H])===null||J===void 0)&&J[V]||!((X=O[H-y+7])===null||X===void 0)&&X[V]||!((ee=O[H])===null||ee===void 0)&&ee[V-y+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:I.width,height:I.height,count:y,dotSize:A})}drawBackground(){var g,y,S;const E=this._element,A=this._options;if(E){const I=(g=A.backgroundOptions)===null||g===void 0?void 0:g.gradient,H=(y=A.backgroundOptions)===null||y===void 0?void 0:y.color;let V=A.height,te=A.width;if(I||H){const Q=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((S=A.backgroundOptions)===null||S===void 0)&&S.round&&(V=te=Math.min(A.width,A.height),Q.setAttribute("rx",String(V/2*A.backgroundOptions.round))),Q.setAttribute("x",String(this._roundSize((A.width-te)/2))),Q.setAttribute("y",String(this._roundSize((A.height-V)/2))),Q.setAttribute("width",String(te)),Q.setAttribute("height",String(V)),this._backgroundClipPath.appendChild(Q),this._createColor({options:I,color:H,additionalRotation:0,x:0,y:0,height:A.height,width:A.width,name:`background-color-${this._instanceId}`})}}}drawDots(g){var y,S;if(!this._qr)throw"QR code is not defined";const E=this._options,A=this._qr.getModuleCount();if(A>E.width||A>E.height)throw"The canvas is too small.";const I=Math.min(E.width,E.height)-2*E.margin,H=E.shape===w?I/Math.sqrt(2):I,V=this._roundSize(H/A),te=this._roundSize((E.width-A*V)/2),Q=this._roundSize((E.height-A*V)/2),ae=new f({svg:this._element,type:E.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(y=E.dotsOptions)===null||y===void 0?void 0:y.gradient,color:E.dotsOptions.color,additionalRotation:0,x:0,y:0,height:E.height,width:E.width,name:`dot-color-${this._instanceId}`});for(let J=0;J<A;J++)for(let X=0;X<A;X++)g&&!g(J,X)||!((S=this._qr)===null||S===void 0)&&S.isDark(J,X)&&(ae.draw(te+X*V,Q+J*V,V,(ee,Y)=>!(X+ee<0||J+Y<0||X+ee>=A||J+Y>=A)&&!(g&&!g(J+Y,X+ee))&&!!this._qr&&this._qr.isDark(J+Y,X+ee)),ae._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ae._element));if(E.shape===w){const J=this._roundSize((I/V-A)/2),X=A+2*J,ee=te-J*V,Y=Q-J*V,T=[],B=this._roundSize(X/2);for(let R=0;R<X;R++){T[R]=[];for(let z=0;z<X;z++)R>=J-1&&R<=X-J&&z>=J-1&&z<=X-J||Math.sqrt((R-B)*(R-B)+(z-B)*(z-B))>B?T[R][z]=0:T[R][z]=this._qr.isDark(z-2*J<0?z:z>=A?z-2*J:z-J,R-2*J<0?R:R>=A?R-2*J:R-J)?1:0}for(let R=0;R<X;R++)for(let z=0;z<X;z++)T[R][z]&&(ae.draw(ee+z*V,Y+R*V,V,(K,re)=>{var oe;return!!(!((oe=T[R+re])===null||oe===void 0)&&oe[z+K])}),ae._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ae._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const g=this._element,y=this._options;if(!g)throw"Element code is not defined";const S=this._qr.getModuleCount(),E=Math.min(y.width,y.height)-2*y.margin,A=y.shape===w?E/Math.sqrt(2):E,I=this._roundSize(A/S),H=7*I,V=3*I,te=this._roundSize((y.width-S*I)/2),Q=this._roundSize((y.height-S*I)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([ae,J,X])=>{var ee,Y,T,B,R,z,K,re,oe,se,pe,de,ve,Ne;const Me=te+ae*I*(S-7),xe=Q+J*I*(S-7);let be=this._dotsClipPath,ce=this._dotsClipPath;if((!((ee=y.cornersSquareOptions)===null||ee===void 0)&&ee.gradient||!((Y=y.cornersSquareOptions)===null||Y===void 0)&&Y.color)&&(be=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),be.setAttribute("id",`clip-path-corners-square-color-${ae}-${J}-${this._instanceId}`),this._defs.appendChild(be),this._cornersSquareClipPath=this._cornersDotClipPath=ce=be,this._createColor({options:(T=y.cornersSquareOptions)===null||T===void 0?void 0:T.gradient,color:(B=y.cornersSquareOptions)===null||B===void 0?void 0:B.color,additionalRotation:X,x:Me,y:xe,height:H,width:H,name:`corners-square-color-${ae}-${J}-${this._instanceId}`})),((R=y.cornersSquareOptions)===null||R===void 0?void 0:R.type)&&d.includes(y.cornersSquareOptions.type)){const $e=new v({svg:this._element,type:y.cornersSquareOptions.type,window:this._window});$e.draw(Me,xe,H,X),$e._element&&be&&be.appendChild($e._element)}else{const $e=new f({svg:this._element,type:((z=y.cornersSquareOptions)===null||z===void 0?void 0:z.type)||y.dotsOptions.type,window:this._window});for(let De=0;De<_.length;De++)for(let le=0;le<_[De].length;le++)!((K=_[De])===null||K===void 0)&&K[le]&&($e.draw(Me+le*I,xe+De*I,I,(Ve,Ge)=>{var He;return!!(!((He=_[De+Ge])===null||He===void 0)&&He[le+Ve])}),$e._element&&be&&be.appendChild($e._element))}if((!((re=y.cornersDotOptions)===null||re===void 0)&&re.gradient||!((oe=y.cornersDotOptions)===null||oe===void 0)&&oe.color)&&(ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),ce.setAttribute("id",`clip-path-corners-dot-color-${ae}-${J}-${this._instanceId}`),this._defs.appendChild(ce),this._cornersDotClipPath=ce,this._createColor({options:(se=y.cornersDotOptions)===null||se===void 0?void 0:se.gradient,color:(pe=y.cornersDotOptions)===null||pe===void 0?void 0:pe.color,additionalRotation:X,x:Me+2*I,y:xe+2*I,height:V,width:V,name:`corners-dot-color-${ae}-${J}-${this._instanceId}`})),((de=y.cornersDotOptions)===null||de===void 0?void 0:de.type)&&p.includes(y.cornersDotOptions.type)){const $e=new h({svg:this._element,type:y.cornersDotOptions.type,window:this._window});$e.draw(Me+2*I,xe+2*I,V,X),$e._element&&ce&&ce.appendChild($e._element)}else{const $e=new f({svg:this._element,type:((ve=y.cornersDotOptions)===null||ve===void 0?void 0:ve.type)||y.dotsOptions.type,window:this._window});for(let De=0;De<O.length;De++)for(let le=0;le<O[De].length;le++)!((Ne=O[De])===null||Ne===void 0)&&Ne[le]&&($e.draw(Me+le*I,xe+De*I,I,(Ve,Ge)=>{var He;return!!(!((He=O[De+Ge])===null||He===void 0)&&He[le+Ve])}),$e._element&&ce&&ce.appendChild($e._element))}})}loadImage(){return new Promise((g,y)=>{var S;const E=this._options;if(!E.image)return y("Image is not defined");if(!((S=E.nodeCanvas)===null||S===void 0)&&S.loadImage)E.nodeCanvas.loadImage(E.image).then(A=>{var I,H;if(this._image=A,this._options.imageOptions.saveAsBlob){const V=(I=E.nodeCanvas)===null||I===void 0?void 0:I.createCanvas(this._image.width,this._image.height);(H=V==null?void 0:V.getContext("2d"))===null||H===void 0||H.drawImage(A,0,0),this._imageUri=V==null?void 0:V.toDataURL()}g()}).catch(y);else{const A=new this._window.Image;typeof E.imageOptions.crossOrigin=="string"&&(A.crossOrigin=E.imageOptions.crossOrigin),this._image=A,A.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(I,H){return new Promise(V=>{const te=new H.XMLHttpRequest;te.onload=function(){const Q=new H.FileReader;Q.onloadend=function(){V(Q.result)},Q.readAsDataURL(te.response)},te.open("GET",I),te.responseType="blob",te.send()})}(E.image||"",this._window)),g()},A.src=E.image}})}async drawImage({width:g,height:y,count:S,dotSize:E}){const A=this._options,I=this._roundSize((A.width-S*E)/2),H=this._roundSize((A.height-S*E)/2),V=I+this._roundSize(A.imageOptions.margin+(S*E-g)/2),te=H+this._roundSize(A.imageOptions.margin+(S*E-y)/2),Q=g-2*A.imageOptions.margin,ae=y-2*A.imageOptions.margin,J=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");J.setAttribute("href",this._imageUri||""),J.setAttribute("xlink:href",this._imageUri||""),J.setAttribute("x",String(V)),J.setAttribute("y",String(te)),J.setAttribute("width",`${Q}px`),J.setAttribute("height",`${ae}px`),this._element.appendChild(J)}_createColor({options:g,color:y,additionalRotation:S,x:E,y:A,height:I,width:H,name:V}){const te=H>I?H:I,Q=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(Q.setAttribute("x",String(E)),Q.setAttribute("y",String(A)),Q.setAttribute("height",String(I)),Q.setAttribute("width",String(H)),Q.setAttribute("clip-path",`url('#clip-path-${V}')`),g){let ae;if(g.type==="radial")ae=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),ae.setAttribute("id",V),ae.setAttribute("gradientUnits","userSpaceOnUse"),ae.setAttribute("fx",String(E+H/2)),ae.setAttribute("fy",String(A+I/2)),ae.setAttribute("cx",String(E+H/2)),ae.setAttribute("cy",String(A+I/2)),ae.setAttribute("r",String(te/2));else{const J=((g.rotation||0)+S)%(2*Math.PI),X=(J+2*Math.PI)%(2*Math.PI);let ee=E+H/2,Y=A+I/2,T=E+H/2,B=A+I/2;X>=0&&X<=.25*Math.PI||X>1.75*Math.PI&&X<=2*Math.PI?(ee-=H/2,Y-=I/2*Math.tan(J),T+=H/2,B+=I/2*Math.tan(J)):X>.25*Math.PI&&X<=.75*Math.PI?(Y-=I/2,ee-=H/2/Math.tan(J),B+=I/2,T+=H/2/Math.tan(J)):X>.75*Math.PI&&X<=1.25*Math.PI?(ee+=H/2,Y+=I/2*Math.tan(J),T-=H/2,B-=I/2*Math.tan(J)):X>1.25*Math.PI&&X<=1.75*Math.PI&&(Y+=I/2,ee+=H/2/Math.tan(J),B-=I/2,T-=H/2/Math.tan(J)),ae=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),ae.setAttribute("id",V),ae.setAttribute("gradientUnits","userSpaceOnUse"),ae.setAttribute("x1",String(Math.round(ee))),ae.setAttribute("y1",String(Math.round(Y))),ae.setAttribute("x2",String(Math.round(T))),ae.setAttribute("y2",String(Math.round(B)))}g.colorStops.forEach(({offset:J,color:X})=>{const ee=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");ee.setAttribute("offset",100*J+"%"),ee.setAttribute("stop-color",X),ae.appendChild(ee)}),Q.setAttribute("fill",`url('#${V}')`),this._defs.appendChild(ae)}else y&&Q.setAttribute("fill",y);this._element.appendChild(Q)}}j.instanceCount=0;const b=j,x="canvas",P={};for(let M=0;M<=40;M++)P[M]=M;const k={type:x,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:P[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function D(M){const g=Object.assign({},M);if(!g.colorStops||!g.colorStops.length)throw"Field 'colorStops' is required in gradient";return g.rotation?g.rotation=Number(g.rotation):g.rotation=0,g.colorStops=g.colorStops.map(y=>Object.assign(Object.assign({},y),{offset:Number(y.offset)})),g}function W(M){const g=Object.assign({},M);return g.width=Number(g.width),g.height=Number(g.height),g.margin=Number(g.margin),g.imageOptions=Object.assign(Object.assign({},g.imageOptions),{hideBackgroundDots:!!g.imageOptions.hideBackgroundDots,imageSize:Number(g.imageOptions.imageSize),margin:Number(g.imageOptions.margin)}),g.margin>Math.min(g.width,g.height)&&(g.margin=Math.min(g.width,g.height)),g.dotsOptions=Object.assign({},g.dotsOptions),g.dotsOptions.gradient&&(g.dotsOptions.gradient=D(g.dotsOptions.gradient)),g.cornersSquareOptions&&(g.cornersSquareOptions=Object.assign({},g.cornersSquareOptions),g.cornersSquareOptions.gradient&&(g.cornersSquareOptions.gradient=D(g.cornersSquareOptions.gradient))),g.cornersDotOptions&&(g.cornersDotOptions=Object.assign({},g.cornersDotOptions),g.cornersDotOptions.gradient&&(g.cornersDotOptions.gradient=D(g.cornersDotOptions.gradient))),g.backgroundOptions&&(g.backgroundOptions=Object.assign({},g.backgroundOptions),g.backgroundOptions.gradient&&(g.backgroundOptions.gradient=D(g.backgroundOptions.gradient))),g}var q=i(873),F=i.n(q);function U(M){if(!M)throw new Error("Extension must be defined");M[0]==="."&&(M=M.substring(1));const g={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[M.toLowerCase()];if(!g)throw new Error(`Extension "${M}" is not supported`);return g}class ${constructor(g){g!=null&&g.jsdom?this._window=new g.jsdom("",{resources:"usable"}).window:this._window=window,this._options=g?W(u(k,g)):k,this.update()}static _clearContainer(g){g&&(g.innerHTML="")}_setupSvg(){if(!this._qr)return;const g=new b(this._options,this._window);this._svg=g.getElement(),this._svgDrawingPromise=g.drawQR(this._qr).then(()=>{var y;this._svg&&((y=this._extension)===null||y===void 0||y.call(this,g.getElement(),this._options))})}_setupCanvas(){var g,y;this._qr&&(!((g=this._options.nodeCanvas)===null||g===void 0)&&g.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(y=this._svgDrawingPromise)===null||y===void 0?void 0:y.then(()=>{var S;if(!this._svg)return;const E=this._svg,A=new this._window.XMLSerializer().serializeToString(E),I=btoa(A),H=`data:${U("svg")};base64,${I}`;if(!((S=this._options.nodeCanvas)===null||S===void 0)&&S.loadImage)return this._options.nodeCanvas.loadImage(H).then(V=>{var te,Q;V.width=this._options.width,V.height=this._options.height,(Q=(te=this._nodeCanvas)===null||te===void 0?void 0:te.getContext("2d"))===null||Q===void 0||Q.drawImage(V,0,0)});{const V=new this._window.Image;return new Promise(te=>{V.onload=()=>{var Q,ae;(ae=(Q=this._domCanvas)===null||Q===void 0?void 0:Q.getContext("2d"))===null||ae===void 0||ae.drawImage(V,0,0),te()},V.src=H})}}))}async _getElement(g="png"){if(!this._qr)throw"QR code is empty";return g.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(g){$._clearContainer(this._container),this._options=g?W(u(this._options,g)):this._options,this._options.data&&(this._qr=F()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(y){switch(!0){case/^[0-9]*$/.test(y):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(y):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===x?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(g){if(g){if(typeof g.appendChild!="function")throw"Container should be a single DOM node";this._options.type===x?this._domCanvas&&g.appendChild(this._domCanvas):this._svg&&g.appendChild(this._svg),this._container=g}}applyExtension(g){if(!g)throw"Extension function should be defined.";this._extension=g,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(g="png"){if(!this._qr)throw"QR code is empty";const y=await this._getElement(g),S=U(g);if(!y)return null;if(g.toLowerCase()==="svg"){const E=`<?xml version="1.0" standalone="no"?>\r
${new this._window.XMLSerializer().serializeToString(y)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(E):new Blob([E],{type:S})}return new Promise(E=>{const A=y;if("toBuffer"in A)if(S==="image/png")E(A.toBuffer(S));else if(S==="image/jpeg")E(A.toBuffer(S));else{if(S!=="application/pdf")throw Error("Unsupported extension");E(A.toBuffer(S))}else"toBlob"in A&&A.toBlob(E,S,1)})}async download(g){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let y="png",S="qr";typeof g=="string"?(y=g,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof g=="object"&&g!==null&&(g.name&&(S=g.name),g.extension&&(y=g.extension));const E=await this._getElement(y);if(E)if(y.toLowerCase()==="svg"){let A=new XMLSerializer().serializeToString(E);A=`<?xml version="1.0" standalone="no"?>\r
`+A,s(`data:${U(y)};charset=utf-8,${encodeURIComponent(A)}`,`${S}.svg`)}else s(E.toDataURL(U(y)),`${S}.${y}`)}}const C=$})(),a.default})())}(gi)),gi.exports}var Lx=qx();const Bx=Se(Lx);function Ya({data:e,size:t=200,className:r,dotColor:n="#000000",backgroundColor:i="#ffffff",cornerColor:a="#000000",cornerSquareType:o="extra-rounded",cornerDotType:u="dot",imageUrl:s,imageSize:c=40}){const f=Z.useRef(null),l=Z.useRef(null);return Z.useEffect(()=>{f.current&&(l.current?l.current.update({data:e,dotsOptions:{color:n},cornersSquareOptions:{color:a},cornersDotOptions:{color:a},backgroundOptions:{color:i}}):(l.current=new Bx({width:t,height:t,data:e,dotsOptions:{color:n,type:"rounded"},cornersSquareOptions:{color:a,type:o},cornersDotOptions:{color:a,type:u},backgroundOptions:{color:i,round:.1},imageOptions:{crossOrigin:"anonymous",margin:10}}),l.current.append(f.current)),s&&l.current.update({image:s,imageOptions:{crossOrigin:"anonymous",margin:10,imageSize:c/100}}))},[e,t,n,i,a,o,u,s,c]),N.jsx("div",{ref:f,className:or("flex justify-center items-center",r)})}function Za({...e}){return N.jsx(fx,{"data-slot":"dialog",...e})}function Qa({...e}){return N.jsx(dx,{"data-slot":"dialog-trigger",...e})}function Fx({...e}){return N.jsx(yx,{"data-slot":"dialog-portal",...e})}function zx({className:e,...t}){return N.jsx(gx,{"data-slot":"dialog-overlay",className:or("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Ja({className:e,children:t,...r}){return N.jsxs(Fx,{children:[N.jsx(zx,{}),N.jsxs(hx,{"data-slot":"dialog-content",className:or("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-center data-[state=open]:slide-in-from-center fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...r,children:[t,N.jsxs(px,{"data-slot":"dialog-close",className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[N.jsx(mx,{className:"h-4 w-4"}),N.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function eo({className:e,...t}){return N.jsx("div",{"data-slot":"dialog-header",className:or("flex flex-col space-y-1.5 text-center sm:text-left",e),...t})}function to({className:e,...t}){return N.jsx(vx,{"data-slot":"dialog-title",className:or("text-lg font-semibold leading-none tracking-tight",e),...t})}const Ux=({service_output:e})=>{const{copyToClipboard:t}=bx(),[r,n]=Z.useState({}),i=c=>{n(f=>({...f,[c]:!f[c]}))},[a,o]=Z.useState({dotColor:"#000000",backgroundColor:"#ffffff",cornerColor:"#000000"});Z.useEffect(()=>{const c=document.documentElement.classList.contains("dark");o(c?{dotColor:"#ffffff",backgroundColor:"#1f2937",cornerColor:"#ffffff"}:{dotColor:"#000000",backgroundColor:"#ffffff",cornerColor:"#000000"})},[]);const u=async(c,f)=>{await t(c),Sd.success(f)},s=(c,f)=>{const l=document.createElement("a"),d=new Blob([c],{type:"text/plain"});l.href=URL.createObjectURL(d),l.download=f,document.body.appendChild(l),l.click(),document.body.removeChild(l),Sd("دانلود فایل",{description:`فایل ${f} با موفقیت دانلود شد`})};return N.jsx(ua.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.3},children:N.jsxs(sa,{children:[N.jsx(ca,{children:N.jsx(la,{className:"text-xl text-right",children:"اطلاعات اتصال"})}),N.jsx(xf,{children:N.jsx("div",{className:"space-y-4",children:e==null?void 0:e.map((c,f)=>{if(c.type==="config"){if(Array.isArray(c.value))return c.value.filter(l=>Xa(l)).map((l,d)=>{const v=Od(l);return N.jsx("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-4 rounded-lg",children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsx("div",{className:"truncate flex-1 text-right",dir:"ltr",children:N.jsx("div",{className:"font-medium",children:v})}),N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(l,"پیکربندی با موفقیت کپی شد"),children:N.jsx(Ht,{className:"h-4 w-4"})}),N.jsxs(Za,{children:[N.jsx(Qa,{asChild:!0,children:N.jsx(Ke,{variant:"outline",size:"sm",className:"h-8 w-8 p-0",children:N.jsx(Va,{className:"h-4 w-4"})})}),N.jsxs(Ja,{"aria-describedby":void 0,children:[N.jsx(eo,{children:N.jsx(to,{className:"text-center mb-4",children:"کد QR پیکربندی"})}),N.jsxs("div",{className:"flex flex-col items-center justify-center",children:[N.jsx(Ya,{data:l,size:250,dotColor:a.dotColor,backgroundColor:a.backgroundColor,cornerColor:a.cornerColor}),N.jsx("p",{className:"mt-4 text-sm text-center",children:v})]})]})]})]})]})},d)});if(typeof c.value=="string"&&Xa(c.value)){const l=Od(c.value);return N.jsx("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-4 rounded-lg",children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsx("div",{className:"truncate flex-1 text-right",children:N.jsx("div",{className:"font-medium",children:l})}),N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(c.value,"پیکربندی با موفقیت کپی شد"),children:N.jsx(Ht,{className:"h-4 w-4"})}),N.jsxs(Za,{children:[N.jsx(Qa,{asChild:!0,children:N.jsx(Ke,{variant:"outline",size:"sm",className:"h-8 w-8 p-0",children:N.jsx(Va,{className:"h-4 w-4"})})}),N.jsxs(Ja,{"aria-describedby":void 0,children:[N.jsx(eo,{children:N.jsx(to,{className:"text-center mb-4",children:"کد QR پیکربندی"})}),N.jsxs("div",{className:"flex flex-col items-center justify-center",children:[N.jsx(Ya,{data:c.value,size:250,dotColor:a.dotColor,backgroundColor:a.backgroundColor,cornerColor:a.cornerColor}),N.jsx("p",{className:"mt-4 text-sm text-center",children:l})]})]})]})]})]})},f)}}if(c.type==="link"&&typeof c.value=="string")return N.jsx("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-4 rounded-lg",children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsx("div",{className:"truncate flex-1 text-right",children:N.jsx("div",{className:"font-medium",children:"لینک اشتراک"})}),N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(Ke,{variant:"ghost",size:"sm",asChild:!0,children:N.jsx("a",{href:c.value,target:"_blank",rel:"noopener noreferrer",children:N.jsx(Tx,{className:"h-4 w-4"})})}),N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(c.value,"لینک اشتراک با موفقیت کپی شد"),children:N.jsx(Ht,{className:"h-4 w-4"})}),N.jsxs(Za,{children:[N.jsx(Qa,{asChild:!0,children:N.jsx(Ke,{variant:"outline",size:"sm",className:"h-8 w-8 p-0",children:N.jsx(Va,{className:"h-4 w-4"})})}),N.jsxs(Ja,{"aria-describedby":void 0,children:[N.jsx(eo,{children:N.jsx(to,{className:"text-center mb-4",children:"کد QR اشتراک"})}),N.jsxs("div",{className:"flex flex-col items-center justify-center",children:[N.jsx(Ya,{data:c.value,size:250,dotColor:a.dotColor,backgroundColor:a.backgroundColor,cornerColor:a.cornerColor}),N.jsx("p",{className:"mt-4 text-sm text-center",children:"لینک اشتراک"})]})]})]})]})]})},f);if(c.type==="text"&&typeof c.value=="string"&&!Xa(c.value))return N.jsx("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-4 rounded-lg",children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsx("div",{className:"truncate flex-1 text-right",children:c.value}),N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(c.value,"متن با موفقیت کپی شد"),children:N.jsx(Ht,{className:"h-4 w-4"})})]})},f);if(c.type==="file"&&typeof c.value=="string")return N.jsx("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-4 rounded-lg",children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsxs("div",{className:"truncate flex-1 text-right flex items-center gap-2 justify-start",children:[N.jsx(Ix,{className:"h-4 w-4 text-muted-foreground"}),N.jsx("span",{className:"font-medium",children:c==null?void 0:c.filename})]}),N.jsxs("div",{className:"flex gap-2",children:[N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(c.value,"محتوای فایل با موفقیت کپی شد"),children:N.jsx(Ht,{className:"h-4 w-4"})}),N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>s(c.value,c.filename),children:N.jsx(Ax,{className:"h-4 w-4"})})]})]})},f);if(c.type==="password"&&typeof c.value=="string"){const{username:l,password:d}=ux(c.value);return N.jsx("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-4 rounded-lg",children:N.jsxs("div",{className:"space-y-3",children:[N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsxs("div",{className:"truncate flex-1 text-right flex items-center gap-2 justify-start",children:[N.jsx(_x,{className:"h-4 w-4 text-muted-foreground"}),N.jsxs("span",{className:"font-medium",children:["نام کاربری: ",l]})]}),N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(l,"نام کاربری با موفقیت کپی شد"),children:N.jsx(Ht,{className:"h-4 w-4"})})]}),N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsxs("div",{className:"truncate flex-1 text-right flex items-center gap-2 justify-start",children:[N.jsx(Nx,{className:"h-4 w-4 text-muted-foreground"}),N.jsxs("span",{className:"font-medium",children:["رمز عبور:"," ",r[f]?d:"••••••••••"]})]}),N.jsxs("div",{className:"flex gap-2",children:[N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>i(f),children:r[f]?N.jsx(Ex,{className:"h-4 w-4"}):N.jsx(Cx,{className:"h-4 w-4"})}),N.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(d,"رمز عبور با موفقیت کپی شد"),children:N.jsx(Ht,{className:"h-4 w-4"})})]})]})]})},f)}return null})})})]})})},ro=e=>!e||typeof e!="string"?"bg-gray-500":{active:"bg-green-500",on_hold:"bg-purple-500",limited:"bg-red-500",expired:"bg-yellow-500",disabled:"bg-gray-500",unsuccessful:"bg-red-500"}[e.toLowerCase()]||"bg-gray-500",Wx=e=>{if(!e||typeof e!="string")return"نامشخص";const t=e.toLowerCase();return{active:"فعال",on_hold:"در انتظار",limited:"محدود شده",expired:"منقضی شده",disabled:"غیرفعال",unsuccessful:"ناموفق"}[t]||e},Hx=({service:e})=>{const t=typeof e.username=="string"?e.username:"unknown",r=typeof e.status=="string"?e.status:"unknown";return N.jsx(ua.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:N.jsx(sa,{className:"mb-6",children:N.jsx(ca,{className:"pb-2",children:N.jsxs("div",{className:"flex items-center justify-between",dir:"rtl",children:[N.jsxs("div",{className:"flex items-center gap-3",children:[N.jsxs("div",{className:"relative h-12 w-12 flex items-center justify-center bg-neutral-100 dark:bg-neutral-800 rounded-full",children:[N.jsx("div",{className:`absolute -top-1 -left-1 h-3 w-3 rounded-full ${ro(r)}`,children:N.jsx("span",{className:`absolute inset-0 rounded-full ${ro(r)} animate-ping opacity-75`})}),N.jsx("span",{className:"text-xl font-semibold",children:t.charAt(0).toUpperCase()})]}),N.jsxs("div",{children:[N.jsx(la,{className:"text-md",children:t}),N.jsx("p",{className:"text-muted-foreground",children:e.product_name})]})]}),N.jsx("div",{className:`px-3 py-1 rounded-full text-sm font-medium ${ro(r)} bg-opacity-20 dark:bg-opacity-30 text-background dark:text-foreground`,children:Wx(r)})]})})})})};var no,Pd;function Qe(){if(Pd)return no;Pd=1;var e=Array.isArray;return no=e,no}var io,Td;function d0(){if(Td)return io;Td=1;var e=typeof ri=="object"&&ri&&ri.Object===Object&&ri;return io=e,io}var ao,jd;function _t(){if(jd)return ao;jd=1;var e=d0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ao=r,ao}var oo,Ed;function Kn(){if(Ed)return oo;Ed=1;var e=_t(),t=e.Symbol;return oo=t,oo}var uo,Md;function Gx(){if(Md)return uo;Md=1;var e=Kn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return uo=a,uo}var so,Cd;function Kx(){if(Cd)return so;Cd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return so=r,so}var co,$d;function kt(){if($d)return co;$d=1;var e=Kn(),t=Gx(),r=Kx(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return co=o,co}var lo,Id;function Nt(){if(Id)return lo;Id=1;function e(t){return t!=null&&typeof t=="object"}return lo=e,lo}var fo,kd;function Ur(){if(kd)return fo;kd=1;var e=kt(),t=Nt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return fo=n,fo}var ho,Nd;function wf(){if(Nd)return ho;Nd=1;var e=Qe(),t=Ur(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return ho=i,ho}var po,Rd;function Ft(){if(Rd)return po;Rd=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return po=e,po}var vo,Dd;function _f(){if(Dd)return vo;Dd=1;var e=kt(),t=Ft(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return vo=o,vo}var yo,qd;function Xx(){if(qd)return yo;qd=1;var e=_t(),t=e["__core-js_shared__"];return yo=t,yo}var go,Ld;function Vx(){if(Ld)return go;Ld=1;var e=Xx(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return go=r,go}var mo,Bd;function h0(){if(Bd)return mo;Bd=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return mo=r,mo}var bo,Fd;function Yx(){if(Fd)return bo;Fd=1;var e=_f(),t=Vx(),r=Ft(),n=h0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var v=e(d)?f:a;return v.test(n(d))}return bo=l,bo}var xo,zd;function Zx(){if(zd)return xo;zd=1;function e(t,r){return t==null?void 0:t[r]}return xo=e,xo}var wo,Ud;function sr(){if(Ud)return wo;Ud=1;var e=Yx(),t=Zx();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return wo=r,wo}var _o,Wd;function fa(){if(Wd)return _o;Wd=1;var e=sr(),t=e(Object,"create");return _o=t,_o}var Oo,Hd;function Qx(){if(Hd)return Oo;Hd=1;var e=fa();function t(){this.__data__=e?e(null):{},this.size=0}return Oo=t,Oo}var So,Gd;function Jx(){if(Gd)return So;Gd=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return So=e,So}var Ao,Kd;function ew(){if(Kd)return Ao;Kd=1;var e=fa(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Ao=i,Ao}var Po,Xd;function tw(){if(Xd)return Po;Xd=1;var e=fa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Po=n,Po}var To,Vd;function rw(){if(Vd)return To;Vd=1;var e=fa(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return To=r,To}var jo,Yd;function nw(){if(Yd)return jo;Yd=1;var e=Qx(),t=Jx(),r=ew(),n=tw(),i=rw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,jo=a,jo}var Eo,Zd;function iw(){if(Zd)return Eo;Zd=1;function e(){this.__data__=[],this.size=0}return Eo=e,Eo}var Mo,Qd;function Of(){if(Qd)return Mo;Qd=1;function e(t,r){return t===r||t!==t&&r!==r}return Mo=e,Mo}var Co,Jd;function da(){if(Jd)return Co;Jd=1;var e=Of();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Co=t,Co}var $o,eh;function aw(){if(eh)return $o;eh=1;var e=da(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return $o=n,$o}var Io,th;function ow(){if(th)return Io;th=1;var e=da();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Io=t,Io}var ko,rh;function uw(){if(rh)return ko;rh=1;var e=da();function t(r){return e(this.__data__,r)>-1}return ko=t,ko}var No,nh;function sw(){if(nh)return No;nh=1;var e=da();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return No=t,No}var Ro,ih;function ha(){if(ih)return Ro;ih=1;var e=iw(),t=aw(),r=ow(),n=uw(),i=sw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ro=a,Ro}var Do,ah;function Sf(){if(ah)return Do;ah=1;var e=sr(),t=_t(),r=e(t,"Map");return Do=r,Do}var qo,oh;function cw(){if(oh)return qo;oh=1;var e=nw(),t=ha(),r=Sf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return qo=n,qo}var Lo,uh;function lw(){if(uh)return Lo;uh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Lo=e,Lo}var Bo,sh;function pa(){if(sh)return Bo;sh=1;var e=lw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Bo=t,Bo}var Fo,ch;function fw(){if(ch)return Fo;ch=1;var e=pa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Fo=t,Fo}var zo,lh;function dw(){if(lh)return zo;lh=1;var e=pa();function t(r){return e(this,r).get(r)}return zo=t,zo}var Uo,fh;function hw(){if(fh)return Uo;fh=1;var e=pa();function t(r){return e(this,r).has(r)}return Uo=t,Uo}var Wo,dh;function pw(){if(dh)return Wo;dh=1;var e=pa();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Wo=t,Wo}var Ho,hh;function Af(){if(hh)return Ho;hh=1;var e=cw(),t=fw(),r=dw(),n=hw(),i=pw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ho=a,Ho}var Go,ph;function p0(){if(ph)return Go;ph=1;var e=Af(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Go=r,Go}var Ko,vh;function vw(){if(vh)return Ko;vh=1;var e=p0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Ko=r,Ko}var Xo,yh;function yw(){if(yh)return Xo;yh=1;var e=vw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Xo=n,Xo}var Vo,gh;function Pf(){if(gh)return Vo;gh=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Vo=e,Vo}var Yo,mh;function gw(){if(mh)return Yo;mh=1;var e=Kn(),t=Pf(),r=Qe(),n=Ur(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Yo=o,Yo}var Zo,bh;function v0(){if(bh)return Zo;bh=1;var e=gw();function t(r){return r==null?"":e(r)}return Zo=t,Zo}var Qo,xh;function y0(){if(xh)return Qo;xh=1;var e=Qe(),t=wf(),r=yw(),n=v0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Qo=i,Qo}var Jo,wh;function va(){if(wh)return Jo;wh=1;var e=Ur();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Jo=t,Jo}var eu,_h;function Tf(){if(_h)return eu;_h=1;var e=y0(),t=va();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return eu=r,eu}var tu,Oh;function g0(){if(Oh)return tu;Oh=1;var e=Tf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return tu=t,tu}var mw=g0();const pt=Se(mw);var ru,Sh;function bw(){if(Sh)return ru;Sh=1;function e(t){return t==null}return ru=e,ru}var xw=bw();const ye=Se(xw);var nu,Ah;function ww(){if(Ah)return nu;Ah=1;var e=kt(),t=Qe(),r=Nt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return nu=i,nu}var _w=ww();const Xn=Se(_w);var Ow=_f();const he=Se(Ow);var Sw=Ft();const Wr=Se(Sw);var iu={exports:{}},we={};/**
 * @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 Ph;function Aw(){if(Ph)return we;Ph=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function p(h){if(typeof h=="object"&&h!==null){var w=h.$$typeof;switch(w){case e:switch(h=h.type,h){case r:case i:case n:case c:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case d:case l:case a:return h;default:return w}}case t:return w}}}return we.ContextConsumer=o,we.ContextProvider=a,we.Element=e,we.ForwardRef=s,we.Fragment=r,we.Lazy=d,we.Memo=l,we.Portal=t,we.Profiler=i,we.StrictMode=n,we.Suspense=c,we.SuspenseList=f,we.isAsyncMode=function(){return!1},we.isConcurrentMode=function(){return!1},we.isContextConsumer=function(h){return p(h)===o},we.isContextProvider=function(h){return p(h)===a},we.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},we.isForwardRef=function(h){return p(h)===s},we.isFragment=function(h){return p(h)===r},we.isLazy=function(h){return p(h)===d},we.isMemo=function(h){return p(h)===l},we.isPortal=function(h){return p(h)===t},we.isProfiler=function(h){return p(h)===i},we.isStrictMode=function(h){return p(h)===n},we.isSuspense=function(h){return p(h)===c},we.isSuspenseList=function(h){return p(h)===f},we.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===c||h===f||h===v||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===l||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===m||h.getModuleId!==void 0)},we.typeOf=p,we}var Th;function Pw(){return Th||(Th=1,iu.exports=Aw()),iu.exports}var Tw=Pw(),au,jh;function m0(){if(jh)return au;jh=1;var e=kt(),t=Nt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return au=n,au}var ou,Eh;function jw(){if(Eh)return ou;Eh=1;var e=m0();function t(r){return e(r)&&r!=+r}return ou=t,ou}var Ew=jw();const Vn=Se(Ew);var Mw=m0();const Cw=Se(Mw);var ot=function(t){return t===0?0:t>0?1:-1},Qt=function(t){return Xn(t)&&t.indexOf("%")===t.length-1},ne=function(t){return Cw(t)&&!Vn(t)},Le=function(t){return ne(t)||Xn(t)},$w=0,ya=function(t){var r=++$w;return"".concat(t||"").concat(r)},Ye=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(!ne(t)&&!Xn(t))return n;var a;if(Qt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Vn(a)&&(a=n),i&&a>r&&(a=r),a},pr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Iw=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},Mh=function(t,r){return ne(t)&&ne(r)?function(n){return t+n*(r-t)}:function(){return r}};function il(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):pt(n,t))===r})}function al(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 ol(e){"@babel/helpers - typeof";return ol=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},ol(e)}var kw=["viewBox","children"],Nw=["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"],Ch=["points","pathLength"],uu={svg:kw,polygon:Ch,polyline:Ch},jf=["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"],bi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(Z.isValidElement(t)&&(n=t.props),!Wr(n))return null;var i={};return Object.keys(n).forEach(function(a){jf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Rw=function(t,r,n){return function(i){return t(r,n,i),null}},ga=function(t,r,n){if(!Wr(t)||ol(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];jf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Rw(o,r,n))}),i},Dw=["children"],qw=["children"];function $h(e,t){if(e==null)return{};var r=Lw(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 Lw(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 Ih={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"},jt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},kh=null,su=null,Ef=function e(t){if(t===kh&&Array.isArray(su))return su;var r=[];return Z.Children.forEach(t,function(n){ye(n)||(Tw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),su=r,kh=t,r};function mt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return jt(i)}):n=[jt(t)],Ef(e).forEach(function(i){var a=pt(i,"type.displayName")||pt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function it(e,t){var r=mt(e,t);return r&&r[0]}var Nh=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!ne(n)||n<=0||!ne(i)||i<=0)},Bw=["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"],Fw=function(t){return t&&t.type&&Xn(t.type)&&Bw.indexOf(t.type)>=0},zw=function(t,r,n,i){var a,o=(a=uu==null?void 0:uu[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!he(t)&&(i&&o.includes(r)||Nw.includes(r))||n&&jf.includes(r)},fe=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(Z.isValidElement(t)&&(i=t.props),!Wr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;zw((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},ul=function e(t,r){if(t===r)return!0;var n=Z.Children.count(t);if(n!==Z.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Rh(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(!Rh(a,o))return!1}return!0},Rh=function(t,r){if(ye(t)&&ye(r))return!0;if(!ye(t)&&!ye(r)){var n=t.props||{},i=n.children,a=$h(n,Dw),o=r.props||{},u=o.children,s=$h(o,qw);return i&&u?al(a,s)&&ul(i,u):!i&&!u?al(a,s):!1}return!1},Dh=function(t,r){var n=[],i={};return Ef(t).forEach(function(a,o){if(Fw(a))n.push(a);else if(a){var u=jt(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},Uw=function(t){var r=t&&t.type;return r&&Ih[r]?Ih[r]:null},Ww=function(t,r){return Ef(r).indexOf(t)},Hw=["children","width","height","viewBox","className","style","title","desc"];function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sl.apply(this,arguments)}function Gw(e,t){if(e==null)return{};var r=Kw(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 Kw(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 cl(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=Gw(e,Hw),f=i||{width:r,height:n,x:0,y:0},l=ge("recharts-surface",a);return L.createElement("svg",sl({},fe(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),L.createElement("title",null,u),L.createElement("desc",null,s),t)}var Xw=["children","className"];function ll(){return ll=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},ll.apply(this,arguments)}function Vw(e,t){if(e==null)return{};var r=Yw(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 Yw(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 ke=L.forwardRef(function(e,t){var r=e.children,n=e.className,i=Vw(e,Xw),a=ge("recharts-layer",n);return L.createElement("g",ll({className:a},fe(i,!0),{ref:t}),r)}),Et=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]},cu,qh;function Zw(){if(qh)return cu;qh=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return cu=e,cu}var lu,Lh;function Qw(){if(Lh)return lu;Lh=1;var e=Zw();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return lu=t,lu}var fu,Bh;function b0(){if(Bh)return fu;Bh=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return fu=s,fu}var du,Fh;function Jw(){if(Fh)return du;Fh=1;function e(t){return t.split("")}return du=e,du}var hu,zh;function e_(){if(zh)return hu;zh=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",m=c+"?",p="["+a+"]?",h="(?:"+v+"(?:"+[f,l,d].join("|")+")"+p+m+")*",w=p+m+h,_="(?:"+[f+u+"?",u,l,d,o].join("|")+")",O=RegExp(s+"(?="+s+")|"+_+w,"g");function j(b){return b.match(O)||[]}return hu=j,hu}var pu,Uh;function t_(){if(Uh)return pu;Uh=1;var e=Jw(),t=b0(),r=e_();function n(i){return t(i)?r(i):e(i)}return pu=n,pu}var vu,Wh;function r_(){if(Wh)return vu;Wh=1;var e=Qw(),t=b0(),r=t_(),n=v0();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return vu=i,vu}var yu,Hh;function n_(){if(Hh)return yu;Hh=1;var e=r_(),t=e("toUpperCase");return yu=t,yu}var i_=n_();const ma=Se(i_);function Te(e){return function(){return e}}const x0=Math.cos,xi=Math.sin,vt=Math.sqrt,wi=Math.PI,ba=2*wi,fl=Math.PI,dl=2*fl,Vt=1e-6,a_=dl-Vt;function w0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function o_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return w0;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 u_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?w0:o_(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>Vt)if(!(Math.abs(l*s-c*f)>Vt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,m=i-u,p=s*s+c*c,h=v*v+m*m,w=Math.sqrt(p),_=Math.sqrt(d),O=a*Math.tan((fl-Math.acos((p+d-h)/(2*w*_)))/2),j=O/_,b=O/w;Math.abs(j-1)>Vt&&this._append`L${t+j*f},${r+j*l}`,this._append`A${a},${a},0,0,${+(l*v>f*m)},${this._x1=t+b*s},${this._y1=r+b*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)>Vt||Math.abs(this._y1-f)>Vt)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%dl+dl),d>a_?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>Vt&&this._append`A${n},${n},0,${+(d>=fl)},${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 Mf(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 u_(t)}function Cf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _0(e){this._context=e}_0.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 xa(e){return new _0(e)}function O0(e){return e[0]}function S0(e){return e[1]}function A0(e,t){var r=Te(!0),n=null,i=xa,a=null,o=Mf(u);e=typeof e=="function"?e:e===void 0?O0:Te(e),t=typeof t=="function"?t:t===void 0?S0:Te(t);function u(s){var c,f=(s=Cf(s)).length,l,d=!1,v;for(n==null&&(a=i(v=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(v)return a=null,v+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:Te(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:Te(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:Te(!!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 ni(e,t,r){var n=null,i=Te(!0),a=null,o=xa,u=null,s=Mf(c);e=typeof e=="function"?e:e===void 0?O0:Te(+e),t=typeof t=="function"?t:Te(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?S0:Te(+r);function c(l){var d,v,m,p=(l=Cf(l)).length,h,w=!1,_,O=new Array(p),j=new Array(p);for(a==null&&(u=o(_=s())),d=0;d<=p;++d){if(!(d<p&&i(h=l[d],d,l))===w)if(w=!w)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),m=d-1;m>=v;--m)u.point(O[m],j[m]);u.lineEnd(),u.areaEnd()}w&&(O[d]=+e(h,d,l),j[d]=+t(h,d,l),u.point(n?+n(h,d,l):O[d],r?+r(h,d,l):j[d]))}if(_)return u=null,_+""||null}function f(){return A0().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:Te(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:Te(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:Te(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:Te(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:Te(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:Te(+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:Te(!!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 P0{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 s_(e){return new P0(e,!0)}function c_(e){return new P0(e,!1)}const $f={draw(e,t){const r=vt(t/wi);e.moveTo(r,0),e.arc(0,0,r,0,ba)}},l_={draw(e,t){const r=vt(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()}},T0=vt(1/3),f_=T0*2,d_={draw(e,t){const r=vt(t/f_),n=r*T0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},h_={draw(e,t){const r=vt(t),n=-r/2;e.rect(n,n,r,r)}},p_=.8908130915292852,j0=xi(wi/10)/xi(7*wi/10),v_=xi(ba/10)*j0,y_=-x0(ba/10)*j0,g_={draw(e,t){const r=vt(t*p_),n=v_*r,i=y_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ba*a/5,u=x0(o),s=xi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},gu=vt(3),m_={draw(e,t){const r=-vt(t/(gu*3));e.moveTo(0,r*2),e.lineTo(-gu*r,-r),e.lineTo(gu*r,-r),e.closePath()}},rt=-.5,nt=vt(3)/2,hl=1/vt(12),b_=(hl/2+1)*3,x_={draw(e,t){const r=vt(t/b_),n=r/2,i=r*hl,a=n,o=r*hl+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(rt*n-nt*i,nt*n+rt*i),e.lineTo(rt*a-nt*o,nt*a+rt*o),e.lineTo(rt*u-nt*s,nt*u+rt*s),e.lineTo(rt*n+nt*i,rt*i-nt*n),e.lineTo(rt*a+nt*o,rt*o-nt*a),e.lineTo(rt*u+nt*s,rt*s-nt*u),e.closePath()}};function w_(e,t){let r=null,n=Mf(i);e=typeof e=="function"?e:Te(e||$f),t=typeof t=="function"?t:Te(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:Te(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Te(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function _i(){}function Oi(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 E0(e){this._context=e}E0.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:Oi(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:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function __(e){return new E0(e)}function M0(e){this._context=e}M0.prototype={areaStart:_i,areaEnd:_i,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:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function O_(e){return new M0(e)}function C0(e){this._context=e}C0.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:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S_(e){return new C0(e)}function $0(e){this._context=e}$0.prototype={areaStart:_i,areaEnd:_i,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 A_(e){return new $0(e)}function Gh(e){return e<0?-1:1}function Kh(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(Gh(a)+Gh(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Xh(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function mu(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 Si(e){this._context=e}Si.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:mu(this,this._t0,Xh(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,mu(this,Xh(this,r=Kh(this,e,t)),r);break;default:mu(this,this._t0,r=Kh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function I0(e){this._context=new k0(e)}(I0.prototype=Object.create(Si.prototype)).point=function(e,t){Si.prototype.point.call(this,t,e)};function k0(e){this._context=e}k0.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 P_(e){return new Si(e)}function T_(e){return new I0(e)}function N0(e){this._context=e}N0.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=Vh(e),i=Vh(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 Vh(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 j_(e){return new N0(e)}function wa(e,t){this._context=e,this._t=t}wa.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 E_(e){return new wa(e,.5)}function M_(e){return new wa(e,0)}function C_(e){return new wa(e,1)}function wr(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 pl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function $_(e,t){return e[t]}function I_(e){const t=[];return t.key=e,t}function k_(){var e=Te([]),t=pl,r=wr,n=$_;function i(a){var o=Array.from(e.apply(this,arguments),I_),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=Cf(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:Te(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Te(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?pl:typeof a=="function"?a:Te(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??wr,i):r},i}function N_(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}wr(e,t)}}function R_(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}wr(e,t)}}function D_(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,v=(l-d)/2,m=0;m<u;++m){var p=e[t[m]],h=p[n][1]||0,w=p[n-1][1]||0;v+=h-w}s+=l,c+=v*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,wr(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 q_=["type","size","sizeType"];function vl(){return vl=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},vl.apply(this,arguments)}function Yh(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 Zh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yh(Object(r),!0).forEach(function(n){L_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L_(e,t,r){return t=B_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B_(e){var t=F_(e,"string");return pn(t)=="symbol"?t:t+""}function F_(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z_(e,t){if(e==null)return{};var r=U_(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 U_(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 R0={symbolCircle:$f,symbolCross:l_,symbolDiamond:d_,symbolSquare:h_,symbolStar:g_,symbolTriangle:m_,symbolWye:x_},W_=Math.PI/180,H_=function(t){var r="symbol".concat(ma(t));return R0[r]||$f},G_=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*W_;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}},K_=function(t,r){R0["symbol".concat(ma(t))]=r},If=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=z_(t,q_),c=Zh(Zh({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=H_(n),w=w_().type(h).size(G_(a,u,n));return w()},l=c.className,d=c.cx,v=c.cy,m=fe(c,!0);return d===+d&&v===+v&&a===+a?L.createElement("path",vl({},m,{className:ge("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(v,")"),d:f()})):null};If.registerSymbol=K_;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)}function yl(){return yl=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},yl.apply(this,arguments)}function Qh(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 X_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qh(Object(r),!0).forEach(function(n){vn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y_(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,q0(n.key),n)}}function Z_(e,t,r){return t&&Y_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_(e,t,r){return t=Ai(t),J_(e,D0()?Reflect.construct(t,r||[],Ai(e).constructor):t.apply(e,r))}function J_(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 eO(e)}function eO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D0=function(){return!!e})()}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ai(e)}function tO(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&&gl(e,t)}function gl(e,t){return gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gl(e,t)}function vn(e,t,r){return t=q0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q0(e){var t=rO(e,"string");return _r(t)=="symbol"?t:t+""}function rO(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ft=32,kf=function(e){function t(){return V_(this,t),Q_(this,t,arguments)}return tO(t,e),Z_(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=ft/2,o=ft/6,u=ft/3,s=n.inactive?i:n.color;if(n.type==="plainline")return L.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:ft,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return L.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(ft,"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 L.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(ft/8,"h").concat(ft,"v").concat(ft*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(L.isValidElement(n.legendIcon)){var c=X_({},n);return delete c.legendIcon,L.cloneElement(n.legendIcon,c)}return L.createElement(If,{fill:s,cx:a,cy:a,size:ft,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:ft,height:ft},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(v,m){var p=v.formatter||s,h=ge(vn(vn({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",v.inactive));if(v.type==="none")return null;var w=he(v.value)?null:v.value;Et(!he(v.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 _=v.inactive?c:v.color;return L.createElement("li",yl({className:h,style:l,key:"legend-item-".concat(m)},ga(n.props,v,m)),L.createElement(cl,{width:o,height:o,viewBox:f,style:d},n.renderIcon(v)),L.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},p?p(w,v,m):w))})}},{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 L.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(Z.PureComponent);vn(kf,"displayName","Legend");vn(kf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var bu,Jh;function nO(){if(Jh)return bu;Jh=1;var e=ha();function t(){this.__data__=new e,this.size=0}return bu=t,bu}var xu,ep;function iO(){if(ep)return xu;ep=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return xu=e,xu}var wu,tp;function aO(){if(tp)return wu;tp=1;function e(t){return this.__data__.get(t)}return wu=e,wu}var _u,rp;function oO(){if(rp)return _u;rp=1;function e(t){return this.__data__.has(t)}return _u=e,_u}var Ou,np;function uO(){if(np)return Ou;np=1;var e=ha(),t=Sf(),r=Af(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return Ou=i,Ou}var Su,ip;function L0(){if(ip)return Su;ip=1;var e=ha(),t=nO(),r=iO(),n=aO(),i=oO(),a=uO();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Su=o,Su}var Au,ap;function sO(){if(ap)return Au;ap=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Au=t,Au}var Pu,op;function cO(){if(op)return Pu;op=1;function e(t){return this.__data__.has(t)}return Pu=e,Pu}var Tu,up;function B0(){if(up)return Tu;up=1;var e=Af(),t=sO(),r=cO();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Tu=n,Tu}var ju,sp;function F0(){if(sp)return ju;sp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return ju=e,ju}var Eu,cp;function z0(){if(cp)return Eu;cp=1;function e(t,r){return t.has(r)}return Eu=e,Eu}var Mu,lp;function U0(){if(lp)return Mu;lp=1;var e=B0(),t=F0(),r=z0(),n=1,i=2;function a(o,u,s,c,f,l){var d=s&n,v=o.length,m=u.length;if(v!=m&&!(d&&m>v))return!1;var p=l.get(o),h=l.get(u);if(p&&h)return p==u&&h==o;var w=-1,_=!0,O=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++w<v;){var j=o[w],b=u[w];if(c)var x=d?c(b,j,w,u,o,l):c(j,b,w,o,u,l);if(x!==void 0){if(x)continue;_=!1;break}if(O){if(!t(u,function(P,k){if(!r(O,k)&&(j===P||f(j,P,s,c,l)))return O.push(k)})){_=!1;break}}else if(!(j===b||f(j,b,s,c,l))){_=!1;break}}return l.delete(o),l.delete(u),_}return Mu=a,Mu}var Cu,fp;function lO(){if(fp)return Cu;fp=1;var e=_t(),t=e.Uint8Array;return Cu=t,Cu}var $u,dp;function fO(){if(dp)return $u;dp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return $u=e,$u}var Iu,hp;function Nf(){if(hp)return Iu;hp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Iu=e,Iu}var ku,pp;function dO(){if(pp)return ku;pp=1;var e=Kn(),t=lO(),r=Of(),n=U0(),i=fO(),a=Nf(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",v="[object RegExp]",m="[object Set]",p="[object String]",h="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",O=e?e.prototype:void 0,j=O?O.valueOf:void 0;function b(x,P,k,D,W,q,F){switch(k){case _:if(x.byteLength!=P.byteLength||x.byteOffset!=P.byteOffset)return!1;x=x.buffer,P=P.buffer;case w:return!(x.byteLength!=P.byteLength||!q(new t(x),new t(P)));case s:case c:case d:return r(+x,+P);case f:return x.name==P.name&&x.message==P.message;case v:case p:return x==P+"";case l:var U=i;case m:var $=D&o;if(U||(U=a),x.size!=P.size&&!$)return!1;var C=F.get(x);if(C)return C==P;D|=u,F.set(x,P);var M=n(U(x),U(P),D,W,q,F);return F.delete(x),M;case h:if(j)return j.call(x)==j.call(P)}return!1}return ku=b,ku}var Nu,vp;function W0(){if(vp)return Nu;vp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Nu=e,Nu}var Ru,yp;function hO(){if(yp)return Ru;yp=1;var e=W0(),t=Qe();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Ru=r,Ru}var Du,gp;function pO(){if(gp)return Du;gp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Du=e,Du}var qu,mp;function vO(){if(mp)return qu;mp=1;function e(){return[]}return qu=e,qu}var Lu,bp;function yO(){if(bp)return Lu;bp=1;var e=pO(),t=vO(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Lu=a,Lu}var Bu,xp;function gO(){if(xp)return Bu;xp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Bu=e,Bu}var Fu,wp;function mO(){if(wp)return Fu;wp=1;var e=kt(),t=Nt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Fu=n,Fu}var zu,_p;function Rf(){if(_p)return zu;_p=1;var e=mO(),t=Nt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return zu=a,zu}var an={exports:{}},Uu,Op;function bO(){if(Op)return Uu;Op=1;function e(){return!1}return Uu=e,Uu}an.exports;var Sp;function H0(){return Sp||(Sp=1,function(e,t){var r=_t(),n=bO(),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}(an,an.exports)),an.exports}var Wu,Ap;function Df(){if(Ap)return Wu;Ap=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Wu=r,Wu}var Hu,Pp;function qf(){if(Pp)return Hu;Pp=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Hu=t,Hu}var Gu,Tp;function xO(){if(Tp)return Gu;Tp=1;var e=kt(),t=qf(),r=Nt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",v="[object Set]",m="[object String]",p="[object WeakMap]",h="[object ArrayBuffer]",w="[object DataView]",_="[object Float32Array]",O="[object Float64Array]",j="[object Int8Array]",b="[object Int16Array]",x="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",D="[object Uint16Array]",W="[object Uint32Array]",q={};q[_]=q[O]=q[j]=q[b]=q[x]=q[P]=q[k]=q[D]=q[W]=!0,q[n]=q[i]=q[h]=q[a]=q[w]=q[o]=q[u]=q[s]=q[c]=q[f]=q[l]=q[d]=q[v]=q[m]=q[p]=!1;function F(U){return r(U)&&t(U.length)&&!!q[e(U)]}return Gu=F,Gu}var Ku,jp;function G0(){if(jp)return Ku;jp=1;function e(t){return function(r){return t(r)}}return Ku=e,Ku}var on={exports:{}};on.exports;var Ep;function wO(){return Ep||(Ep=1,function(e,t){var r=d0(),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}(on,on.exports)),on.exports}var Xu,Mp;function K0(){if(Mp)return Xu;Mp=1;var e=xO(),t=G0(),r=wO(),n=r&&r.isTypedArray,i=n?t(n):e;return Xu=i,Xu}var Vu,Cp;function _O(){if(Cp)return Vu;Cp=1;var e=gO(),t=Rf(),r=Qe(),n=H0(),i=Df(),a=K0(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),d=!l&&t(c),v=!l&&!d&&n(c),m=!l&&!d&&!v&&a(c),p=l||d||v||m,h=p?e(c.length,String):[],w=h.length;for(var _ in c)(f||u.call(c,_))&&!(p&&(_=="length"||v&&(_=="offset"||_=="parent")||m&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,w)))&&h.push(_);return h}return Vu=s,Vu}var Yu,$p;function OO(){if($p)return Yu;$p=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Yu=t,Yu}var Zu,Ip;function X0(){if(Ip)return Zu;Ip=1;function e(t,r){return function(n){return t(r(n))}}return Zu=e,Zu}var Qu,kp;function SO(){if(kp)return Qu;kp=1;var e=X0(),t=e(Object.keys,Object);return Qu=t,Qu}var Ju,Np;function AO(){if(Np)return Ju;Np=1;var e=OO(),t=SO(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Ju=i,Ju}var es,Rp;function Yn(){if(Rp)return es;Rp=1;var e=_f(),t=qf();function r(n){return n!=null&&t(n.length)&&!e(n)}return es=r,es}var ts,Dp;function _a(){if(Dp)return ts;Dp=1;var e=_O(),t=AO(),r=Yn();function n(i){return r(i)?e(i):t(i)}return ts=n,ts}var rs,qp;function PO(){if(qp)return rs;qp=1;var e=hO(),t=yO(),r=_a();function n(i){return e(i,r,t)}return rs=n,rs}var ns,Lp;function TO(){if(Lp)return ns;Lp=1;var e=PO(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,d=e(a),v=d.length,m=e(o),p=m.length;if(v!=p&&!l)return!1;for(var h=v;h--;){var w=d[h];if(!(l?w in o:n.call(o,w)))return!1}var _=f.get(a),O=f.get(o);if(_&&O)return _==o&&O==a;var j=!0;f.set(a,o),f.set(o,a);for(var b=l;++h<v;){w=d[h];var x=a[w],P=o[w];if(s)var k=l?s(P,x,w,o,a,f):s(x,P,w,a,o,f);if(!(k===void 0?x===P||c(x,P,u,s,f):k)){j=!1;break}b||(b=w=="constructor")}if(j&&!b){var D=a.constructor,W=o.constructor;D!=W&&"constructor"in a&&"constructor"in o&&!(typeof D=="function"&&D instanceof D&&typeof W=="function"&&W instanceof W)&&(j=!1)}return f.delete(a),f.delete(o),j}return ns=i,ns}var is,Bp;function jO(){if(Bp)return is;Bp=1;var e=sr(),t=_t(),r=e(t,"DataView");return is=r,is}var as,Fp;function EO(){if(Fp)return as;Fp=1;var e=sr(),t=_t(),r=e(t,"Promise");return as=r,as}var os,zp;function V0(){if(zp)return os;zp=1;var e=sr(),t=_t(),r=e(t,"Set");return os=r,os}var us,Up;function MO(){if(Up)return us;Up=1;var e=sr(),t=_t(),r=e(t,"WeakMap");return us=r,us}var ss,Wp;function CO(){if(Wp)return ss;Wp=1;var e=jO(),t=Sf(),r=EO(),n=V0(),i=MO(),a=kt(),o=h0(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",v=o(e),m=o(t),p=o(r),h=o(n),w=o(i),_=a;return(e&&_(new e(new ArrayBuffer(1)))!=d||t&&_(new t)!=u||r&&_(r.resolve())!=c||n&&_(new n)!=f||i&&_(new i)!=l)&&(_=function(O){var j=a(O),b=j==s?O.constructor:void 0,x=b?o(b):"";if(x)switch(x){case v:return d;case m:return u;case p:return c;case h:return f;case w:return l}return j}),ss=_,ss}var cs,Hp;function $O(){if(Hp)return cs;Hp=1;var e=L0(),t=U0(),r=dO(),n=TO(),i=CO(),a=Qe(),o=H0(),u=K0(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,v=d.hasOwnProperty;function m(p,h,w,_,O,j){var b=a(p),x=a(h),P=b?f:i(p),k=x?f:i(h);P=P==c?l:P,k=k==c?l:k;var D=P==l,W=k==l,q=P==k;if(q&&o(p)){if(!o(h))return!1;b=!0,D=!1}if(q&&!D)return j||(j=new e),b||u(p)?t(p,h,w,_,O,j):r(p,h,P,w,_,O,j);if(!(w&s)){var F=D&&v.call(p,"__wrapped__"),U=W&&v.call(h,"__wrapped__");if(F||U){var $=F?p.value():p,C=U?h.value():h;return j||(j=new e),O($,C,w,_,j)}}return q?(j||(j=new e),n(p,h,w,_,O,j)):!1}return cs=m,cs}var ls,Gp;function Lf(){if(Gp)return ls;Gp=1;var e=$O(),t=Nt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return ls=r,ls}var fs,Kp;function IO(){if(Kp)return fs;Kp=1;var e=L0(),t=Lf(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var d=u[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=u[c];var v=d[0],m=a[v],p=d[1];if(l&&d[2]){if(m===void 0&&!(v in a))return!1}else{var h=new e;if(s)var w=s(m,p,v,a,o,h);if(!(w===void 0?t(p,m,r|n,s,h):w))return!1}}return!0}return fs=i,fs}var ds,Xp;function Y0(){if(Xp)return ds;Xp=1;var e=Ft();function t(r){return r===r&&!e(r)}return ds=t,ds}var hs,Vp;function kO(){if(Vp)return hs;Vp=1;var e=Y0(),t=_a();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return hs=r,hs}var ps,Yp;function Z0(){if(Yp)return ps;Yp=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return ps=e,ps}var vs,Zp;function NO(){if(Zp)return vs;Zp=1;var e=IO(),t=kO(),r=Z0();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return vs=n,vs}var ys,Qp;function RO(){if(Qp)return ys;Qp=1;function e(t,r){return t!=null&&r in Object(t)}return ys=e,ys}var gs,Jp;function DO(){if(Jp)return gs;Jp=1;var e=y0(),t=Rf(),r=Qe(),n=Df(),i=qf(),a=va();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,d=!1;++f<l;){var v=a(s[f]);if(!(d=u!=null&&c(u,v)))break;u=u[v]}return d||++f!=l?d:(l=u==null?0:u.length,!!l&&i(l)&&n(v,l)&&(r(u)||t(u)))}return gs=o,gs}var ms,ev;function qO(){if(ev)return ms;ev=1;var e=RO(),t=DO();function r(n,i){return n!=null&&t(n,i,e)}return ms=r,ms}var bs,tv;function LO(){if(tv)return bs;tv=1;var e=Lf(),t=g0(),r=qO(),n=wf(),i=Y0(),a=Z0(),o=va(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var v=t(d,f);return v===void 0&&v===l?r(d,f):e(l,v,u|s)}}return bs=c,bs}var xs,rv;function Hr(){if(rv)return xs;rv=1;function e(t){return t}return xs=e,xs}var ws,nv;function BO(){if(nv)return ws;nv=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ws=e,ws}var _s,iv;function FO(){if(iv)return _s;iv=1;var e=Tf();function t(r){return function(n){return e(n,r)}}return _s=t,_s}var Os,av;function zO(){if(av)return Os;av=1;var e=BO(),t=FO(),r=wf(),n=va();function i(a){return r(a)?e(n(a)):t(a)}return Os=i,Os}var Ss,ov;function Ot(){if(ov)return Ss;ov=1;var e=NO(),t=LO(),r=Hr(),n=Qe(),i=zO();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return Ss=a,Ss}var As,uv;function Q0(){if(uv)return As;uv=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return As=e,As}var Ps,sv;function UO(){if(sv)return Ps;sv=1;function e(t){return t!==t}return Ps=e,Ps}var Ts,cv;function WO(){if(cv)return Ts;cv=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return Ts=e,Ts}var js,lv;function HO(){if(lv)return js;lv=1;var e=Q0(),t=UO(),r=WO();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return js=n,js}var Es,fv;function GO(){if(fv)return Es;fv=1;var e=HO();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Es=t,Es}var Ms,dv;function KO(){if(dv)return Ms;dv=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Ms=e,Ms}var Cs,hv;function XO(){if(hv)return Cs;hv=1;function e(){}return Cs=e,Cs}var $s,pv;function VO(){if(pv)return $s;pv=1;var e=V0(),t=XO(),r=Nf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return $s=i,$s}var Is,vv;function YO(){if(vv)return Is;vv=1;var e=B0(),t=GO(),r=KO(),n=z0(),i=VO(),a=Nf(),o=200;function u(s,c,f){var l=-1,d=t,v=s.length,m=!0,p=[],h=p;if(f)m=!1,d=r;else if(v>=o){var w=c?null:i(s);if(w)return a(w);m=!1,d=n,h=new e}else h=c?[]:p;e:for(;++l<v;){var _=s[l],O=c?c(_):_;if(_=f||_!==0?_:0,m&&O===O){for(var j=h.length;j--;)if(h[j]===O)continue e;c&&h.push(O),p.push(_)}else d(h,O,f)||(h!==p&&h.push(O),p.push(_))}return p}return Is=u,Is}var ks,yv;function ZO(){if(yv)return ks;yv=1;var e=Ot(),t=YO();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return ks=r,ks}var QO=ZO();const gv=Se(QO);function J0(e,t,r){return t===!0?gv(e,r):he(t)?gv(e,t):e}function Or(e){"@babel/helpers - typeof";return Or=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},Or(e)}var JO=["ref"];function mv(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 St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mv(Object(r),!0).forEach(function(n){Oa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bv(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,tb(n.key),n)}}function tS(e,t,r){return t&&bv(e.prototype,t),r&&bv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rS(e,t,r){return t=Pi(t),nS(e,eb()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}function nS(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iS(e)}function iS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eb=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pi(e)}function aS(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&&ml(e,t)}function ml(e,t){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ml(e,t)}function Oa(e,t,r){return t=tb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tb(e){var t=oS(e,"string");return Or(t)=="symbol"?t:t+""}function oS(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function uS(e,t){if(e==null)return{};var r=sS(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 sS(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 cS(e){return e.value}function lS(e,t){if(L.isValidElement(e))return L.cloneElement(e,t);if(typeof e=="function")return L.createElement(e,t);t.ref;var r=uS(t,JO);return L.createElement(kf,r)}var xv=1,tr=function(e){function t(){var r;eS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=rS(this,t,[].concat(i)),Oa(r,"lastBoundingBox",{width:-1,height:-1}),r}return aS(t,e),tS(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)>xv||Math.abs(i.height-this.lastBoundingBox.height)>xv)&&(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?St({},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 v=this.getBBoxSnapshot();l={left:((c||0)-v.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 m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return St(St({},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=St(St({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return L.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(v){n.wrapperNode=v}},lS(a,St(St({},this.props),{},{payload:J0(f,c,cS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=St(St({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&ne(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(Z.PureComponent);Oa(tr,"displayName","Legend");Oa(tr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ns,wv;function fS(){if(wv)return Ns;wv=1;var e=Kn(),t=Rf(),r=Qe(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Ns=i,Ns}var Rs,_v;function rb(){if(_v)return Rs;_v=1;var e=W0(),t=fS();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Rs=r,Rs}var Ds,Ov;function dS(){if(Ov)return Ds;Ov=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Ds=e,Ds}var qs,Sv;function hS(){if(Sv)return qs;Sv=1;var e=dS(),t=e();return qs=t,qs}var Ls,Av;function nb(){if(Av)return Ls;Av=1;var e=hS(),t=_a();function r(n,i){return n&&e(n,i,t)}return Ls=r,Ls}var Bs,Pv;function pS(){if(Pv)return Bs;Pv=1;var e=Yn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return Bs=t,Bs}var Fs,Tv;function Bf(){if(Tv)return Fs;Tv=1;var e=nb(),t=pS(),r=t(e);return Fs=r,Fs}var zs,jv;function ib(){if(jv)return zs;jv=1;var e=Bf(),t=Yn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return zs=r,zs}var Us,Ev;function vS(){if(Ev)return Us;Ev=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Us=e,Us}var Ws,Mv;function yS(){if(Mv)return Ws;Mv=1;var e=Ur();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Ws=t,Ws}var Hs,Cv;function gS(){if(Cv)return Hs;Cv=1;var e=yS();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Hs=t,Hs}var Gs,$v;function mS(){if($v)return Gs;$v=1;var e=Pf(),t=Tf(),r=Ot(),n=ib(),i=vS(),a=G0(),o=gS(),u=Hr(),s=Qe();function c(f,l,d){l.length?l=e(l,function(p){return s(p)?function(h){return t(h,p.length===1?p[0]:p)}:p}):l=[u];var v=-1;l=e(l,a(r));var m=n(f,function(p,h,w){var _=e(l,function(O){return O(p)});return{criteria:_,index:++v,value:p}});return i(m,function(p,h){return o(p,h,d)})}return Gs=c,Gs}var Ks,Iv;function bS(){if(Iv)return Ks;Iv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ks=e,Ks}var Xs,kv;function xS(){if(kv)return Xs;kv=1;var e=bS(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Xs=r,Xs}var Vs,Nv;function wS(){if(Nv)return Vs;Nv=1;function e(t){return function(){return t}}return Vs=e,Vs}var Ys,Rv;function ab(){if(Rv)return Ys;Rv=1;var e=sr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Ys=t,Ys}var Zs,Dv;function _S(){if(Dv)return Zs;Dv=1;var e=wS(),t=ab(),r=Hr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Zs=n,Zs}var Qs,qv;function OS(){if(qv)return Qs;qv=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Qs=n,Qs}var Js,Lv;function SS(){if(Lv)return Js;Lv=1;var e=_S(),t=OS(),r=t(e);return Js=r,Js}var ec,Bv;function AS(){if(Bv)return ec;Bv=1;var e=Hr(),t=xS(),r=SS();function n(i,a){return r(t(i,a,e),i+"")}return ec=n,ec}var tc,Fv;function Sa(){if(Fv)return tc;Fv=1;var e=Of(),t=Yn(),r=Df(),n=Ft();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return tc=i,tc}var rc,zv;function PS(){if(zv)return rc;zv=1;var e=rb(),t=mS(),r=AS(),n=Sa(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return rc=i,rc}var TS=PS();const Ff=Se(TS);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 bl(){return bl=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},bl.apply(this,arguments)}function jS(e,t){return $S(e)||CS(e,t)||MS(e,t)||ES()}function ES(){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 MS(e,t){if(e){if(typeof e=="string")return Uv(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 Uv(e,t)}}function Uv(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 CS(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 $S(e){if(Array.isArray(e))return e}function Wv(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 nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wv(Object(r),!0).forEach(function(n){IS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IS(e,t,r){return t=kS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kS(e){var t=NS(e,"string");return yn(t)=="symbol"?t:t+""}function NS(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RS(e){return Array.isArray(e)&&Le(e[0])&&Le(e[1])?e.join(" ~ "):e}var DS=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,v=t.wrapperClassName,m=t.labelClassName,p=t.label,h=t.labelFormatter,w=t.accessibilityLayer,_=w===void 0?!1:w,O=function(){if(f&&f.length){var F={padding:0,margin:0},U=(d?Ff(f,d):f).map(function($,C){if($.type==="none")return null;var M=nc({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),g=$.formatter||l||RS,y=$.value,S=$.name,E=y,A=S;if(g&&E!=null&&A!=null){var I=g(y,S,$,C,f);if(Array.isArray(I)){var H=jS(I,2);E=H[0],A=H[1]}else E=I}return L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:M},Le(A)?L.createElement("span",{className:"recharts-tooltip-item-name"},A):null,Le(A)?L.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,L.createElement("span",{className:"recharts-tooltip-item-value"},E),L.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return L.createElement("ul",{className:"recharts-tooltip-item-list",style:F},U)}return null},j=nc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),b=nc({margin:0},c),x=!ye(p),P=x?p:"",k=ge("recharts-default-tooltip",v),D=ge("recharts-tooltip-label",m);x&&h&&f!==void 0&&f!==null&&(P=h(p,f));var W=_?{role:"status","aria-live":"assertive"}:{};return L.createElement("div",bl({className:k,style:j},W),L.createElement("p",{className:D,style:b},L.isValidElement(P)?P:"".concat(P)),O())};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 ii(e,t,r){return t=qS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qS(e){var t=LS(e,"string");return gn(t)=="symbol"?t:t+""}function LS(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yr="recharts-tooltip-wrapper",BS={visibility:"hidden"};function FS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ge(Yr,ii(ii(ii(ii({},"".concat(Yr,"-right"),ne(r)&&t&&ne(t.x)&&r>=t.x),"".concat(Yr,"-left"),ne(r)&&t&&ne(t.x)&&r<t.x),"".concat(Yr,"-bottom"),ne(n)&&t&&ne(t.y)&&n>=t.y),"".concat(Yr,"-top"),ne(n)&&t&&ne(t.y)&&n<t.y))}function Hv(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&&ne(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,v=s[n];return d<v?Math.max(l,s[n]):Math.max(f,s[n])}var m=l+u,p=s[n]+c;return m>p?Math.max(f,s[n]):Math.max(l,s[n])}function zS(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 US(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=Hv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Hv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=zS({translateX:f,translateY:l,useTranslate3d:u})):c=BS,{cssProperties:c,cssClasses:FS({translateX:f,translateY:l,coordinate:r})}}function Sr(e){"@babel/helpers - typeof";return Sr=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},Sr(e)}function Gv(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 Kv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(r),!0).forEach(function(n){wl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HS(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,ub(n.key),n)}}function GS(e,t,r){return t&&HS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KS(e,t,r){return t=Ti(t),XS(e,ob()?Reflect.construct(t,r||[],Ti(e).constructor):t.apply(e,r))}function XS(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VS(e)}function VS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ob(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ob=function(){return!!e})()}function Ti(e){return Ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ti(e)}function YS(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&&xl(e,t)}function xl(e,t){return xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xl(e,t)}function wl(e,t,r){return t=ub(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ub(e){var t=ZS(e,"string");return Sr(t)=="symbol"?t:t+""}function ZS(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xv=1,QS=function(e){function t(){var r;WS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=KS(this,t,[].concat(i)),wl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),wl(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 YS(t,e),GS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Xv||Math.abs(n.height-this.state.lastBoundingBox.height)>Xv)&&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,v=i.offset,m=i.position,p=i.reverseDirection,h=i.useTranslate3d,w=i.viewBox,_=i.wrapperStyle,O=US({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:v,position:m,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:w}),j=O.cssClasses,b=O.cssProperties,x=Kv(Kv({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},_);return L.createElement("div",{tabIndex:-1,className:j,style:x,ref:function(k){n.wrapperNode=k}},c)}}])}(Z.PureComponent),JS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Aa={isSsr:JS()};function Ar(e){"@babel/helpers - typeof";return Ar=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},Ar(e)}function Vv(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 Yv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vv(Object(r),!0).forEach(function(n){zf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tA(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,cb(n.key),n)}}function rA(e,t,r){return t&&tA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nA(e,t,r){return t=ji(t),iA(e,sb()?Reflect.construct(t,r||[],ji(e).constructor):t.apply(e,r))}function iA(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aA(e)}function aA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sb=function(){return!!e})()}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ji(e)}function oA(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&&_l(e,t)}function _l(e,t){return _l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_l(e,t)}function zf(e,t,r){return t=cb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cb(e){var t=uA(e,"string");return Ar(t)=="symbol"?t:t+""}function uA(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sA(e){return e.dataKey}function cA(e,t){return L.isValidElement(e)?L.cloneElement(e,t):typeof e=="function"?L.createElement(e,t):L.createElement(DS,t)}var yt=function(e){function t(){return eA(this,t),nA(this,t,arguments)}return oA(t,e),rA(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,v=i.offset,m=i.payload,p=i.payloadUniqBy,h=i.position,w=i.reverseDirection,_=i.useTranslate3d,O=i.viewBox,j=i.wrapperStyle,b=m??[];l&&b.length&&(b=J0(m.filter(function(P){return P.value!=null&&(P.hide!==!0||n.props.includeHidden)}),p,sA));var x=b.length>0;return L.createElement(QS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:x,offset:v,position:h,reverseDirection:w,useTranslate3d:_,viewBox:O,wrapperStyle:j},cA(c,Yv(Yv({},this.props),{},{payload:b})))}}])}(Z.PureComponent);zf(yt,"displayName","Tooltip");zf(yt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Aa.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 ic,Zv;function lA(){if(Zv)return ic;Zv=1;var e=_t(),t=function(){return e.Date.now()};return ic=t,ic}var ac,Qv;function fA(){if(Qv)return ac;Qv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return ac=t,ac}var oc,Jv;function dA(){if(Jv)return oc;Jv=1;var e=fA(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return oc=r,oc}var uc,ey;function lb(){if(ey)return uc;ey=1;var e=dA(),t=Ft(),r=Ur(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return uc=s,uc}var sc,ty;function hA(){if(ty)return sc;ty=1;var e=Ft(),t=lA(),r=lb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,d,v,m,p,h=0,w=!1,_=!1,O=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(w=!!c.leading,_="maxWait"in c,d=_?i(r(c.maxWait)||0,s):d,O="trailing"in c?!!c.trailing:O);function j(U){var $=f,C=l;return f=l=void 0,h=U,v=u.apply(C,$),v}function b(U){return h=U,m=setTimeout(k,s),w?j(U):v}function x(U){var $=U-p,C=U-h,M=s-$;return _?a(M,d-C):M}function P(U){var $=U-p,C=U-h;return p===void 0||$>=s||$<0||_&&C>=d}function k(){var U=t();if(P(U))return D(U);m=setTimeout(k,x(U))}function D(U){return m=void 0,O&&f?j(U):(f=l=void 0,v)}function W(){m!==void 0&&clearTimeout(m),h=0,f=p=l=m=void 0}function q(){return m===void 0?v:D(t())}function F(){var U=t(),$=P(U);if(f=arguments,l=this,p=U,$){if(m===void 0)return b(p);if(_)return clearTimeout(m),m=setTimeout(k,s),j(p)}return m===void 0&&(m=setTimeout(k,s)),v}return F.cancel=W,F.flush=q,F}return sc=o,sc}var cc,ry;function pA(){if(ry)return cc;ry=1;var e=hA(),t=Ft(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return cc=n,cc}var vA=pA();const fb=Se(vA);function mn(e){"@babel/helpers - typeof";return mn=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},mn(e)}function ny(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 ai(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach(function(n){yA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yA(e,t,r){return t=gA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gA(e){var t=mA(e,"string");return mn(t)=="symbol"?t:t+""}function mA(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bA(e,t){return OA(e)||_A(e,t)||wA(e,t)||xA()}function xA(){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 wA(e,t){if(e){if(typeof e=="string")return iy(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 iy(e,t)}}function iy(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 _A(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 OA(e){if(Array.isArray(e))return e}var SA=Z.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,v=e.children,m=e.debounce,p=m===void 0?0:m,h=e.id,w=e.className,_=e.onResize,O=e.style,j=O===void 0?{}:O,b=Z.useRef(null),x=Z.useRef();x.current=_,Z.useImperativeHandle(t,function(){return Object.defineProperty(b.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),b.current},configurable:!0})});var P=Z.useState({containerWidth:i.width,containerHeight:i.height}),k=bA(P,2),D=k[0],W=k[1],q=Z.useCallback(function(U,$){W(function(C){var M=Math.round(U),g=Math.round($);return C.containerWidth===M&&C.containerHeight===g?C:{containerWidth:M,containerHeight:g}})},[]);Z.useEffect(function(){var U=function(S){var E,A=S[0].contentRect,I=A.width,H=A.height;q(I,H),(E=x.current)===null||E===void 0||E.call(x,I,H)};p>0&&(U=fb(U,p,{trailing:!0,leading:!1}));var $=new ResizeObserver(U),C=b.current.getBoundingClientRect(),M=C.width,g=C.height;return q(M,g),$.observe(b.current),function(){$.disconnect()}},[q,p]);var F=Z.useMemo(function(){var U=D.containerWidth,$=D.containerHeight;if(U<0||$<0)return null;Et(Qt(o)||Qt(s),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,s),Et(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Qt(o)?U:o,M=Qt(s)?$:s;r&&r>0&&(C?M=C/r:M&&(C=M*r),d&&M>d&&(M=d)),Et(C>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,C,M,o,s,f,l,r);var g=!Array.isArray(v)&&jt(v.type).endsWith("Chart");return L.Children.map(v,function(y){return L.isValidElement(y)?Z.cloneElement(y,ai({width:C,height:M},g?{style:ai({height:"100%",width:"100%",maxHeight:M,maxWidth:C},y.props.style)}:{})):y})},[r,v,s,d,l,f,D,o]);return L.createElement("div",{id:h?"".concat(h):void 0,className:ge("recharts-responsive-container",w),style:ai(ai({},j),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:b},F)}),Uf=function(t){return null};Uf.displayName="Cell";function bn(e){"@babel/helpers - typeof";return bn=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},bn(e)}function ay(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 Ol(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ay(Object(r),!0).forEach(function(n){AA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ay(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AA(e,t,r){return t=PA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PA(e){var t=TA(e,"string");return bn(t)=="symbol"?t:t+""}function TA(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dr={widthCache:{},cacheCount:0},jA=2e3,EA={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},oy="recharts_measurement_span";function MA(e){var t=Ol({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var uy=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Aa.isSsr)return{width:0,height:0};var n=MA(r),i=JSON.stringify({text:t,copyStyle:n});if(dr.widthCache[i])return dr.widthCache[i];try{var a=document.getElementById(oy);a||(a=document.createElement("span"),a.setAttribute("id",oy),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Ol(Ol({},EA),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return dr.widthCache[i]=s,++dr.cacheCount>jA&&(dr.cacheCount=0,dr.widthCache={}),s}catch{return{width:0,height:0}}},CA=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ei(e,t){return NA(e)||kA(e,t)||IA(e,t)||$A()}function $A(){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 IA(e,t){if(e){if(typeof e=="string")return sy(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 sy(e,t)}}function sy(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 kA(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 NA(e){if(Array.isArray(e))return e}function RA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cy(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,qA(n.key),n)}}function DA(e,t,r){return t&&cy(e.prototype,t),r&&cy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qA(e){var t=LA(e,"string");return xn(t)=="symbol"?t:t+""}function LA(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ly=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,BA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,FA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,db={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},zA=Object.keys(db),vr="NaN";function UA(e,t){return e*db[t]}var oi=function(){function e(t,r){RA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!BA.test(r)&&(this.num=NaN,this.unit=""),zA.includes(r)&&(this.num=UA(t,r),this.unit="px")}return DA(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=FA.exec(r))!==null&&n!==void 0?n:[],a=Ei(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])}();function hb(e){if(e.includes(vr))return vr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=ly.exec(t))!==null&&r!==void 0?r:[],i=Ei(n,4),a=i[1],o=i[2],u=i[3],s=oi.parse(a??""),c=oi.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return vr;t=t.replace(ly,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=fy.exec(t))!==null&&l!==void 0?l:[],v=Ei(d,4),m=v[1],p=v[2],h=v[3],w=oi.parse(m??""),_=oi.parse(h??""),O=p==="+"?w.add(_):w.subtract(_);if(O.isNaN())return vr;t=t.replace(fy,O.toString())}return t}var dy=/\(([^()]*)\)/;function WA(e){for(var t=e;t.includes("(");){var r=dy.exec(t),n=Ei(r,2),i=n[1];t=t.replace(dy,hb(i))}return t}function HA(e){var t=e.replace(/\s+/g,"");return t=WA(t),t=hb(t),t}function GA(e){try{return HA(e)}catch{return vr}}function lc(e){var t=GA(e.slice(5,-1));return t===vr?"":t}var KA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],XA=["dx","dy","angle","className","breakAll"];function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sl.apply(this,arguments)}function hy(e,t){if(e==null)return{};var r=VA(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 VA(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 py(e,t){return JA(e)||QA(e,t)||ZA(e,t)||YA()}function YA(){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 ZA(e,t){if(e){if(typeof e=="string")return vy(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 vy(e,t)}}function vy(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 QA(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 JA(e){if(Array.isArray(e))return e}var pb=/[ \f\n\r\t\v\u2028\u2029]+/,vb=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ye(r)||(n?a=r.toString().split(""):a=r.toString().split(pb));var o=a.map(function(s){return{word:s,width:uy(s,i).width}}),u=n?0:uy(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},eP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=ne(o),l=u,d=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(M,g){var y=g.word,S=g.width,E=M[M.length-1];if(E&&(i==null||a||E.width+S+n<Number(i)))E.words.push(y),E.width+=S+n;else{var A={words:[y],width:S};M.push(A)}return M},[])},v=d(r),m=function(C){return C.reduce(function(M,g){return M.width>g.width?M:g})};if(!f)return v;for(var p="…",h=function(C){var M=l.slice(0,C),g=vb({breakAll:c,style:s,children:M+p}).wordsWithComputedWidth,y=d(g),S=y.length>o||m(y).width>Number(i);return[S,y]},w=0,_=l.length-1,O=0,j;w<=_&&O<=l.length-1;){var b=Math.floor((w+_)/2),x=b-1,P=h(x),k=py(P,2),D=k[0],W=k[1],q=h(b),F=py(q,1),U=F[0];if(!D&&!U&&(w=b+1),D&&U&&(_=b-1),!D&&U){j=W;break}O++}return j||v},yy=function(t){var r=ye(t)?[]:t.toString().split(pb);return[{words:r}]},tP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Aa.isSsr){var s,c,f=vb({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return yy(i);return eP({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return yy(i)},gy="#808080",Pr=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,v=d===void 0?"start":d,m=t.verticalAnchor,p=m===void 0?"end":m,h=t.fill,w=h===void 0?gy:h,_=hy(t,KA),O=Z.useMemo(function(){return tP({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:l,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,l,_.style,_.width]),j=_.dx,b=_.dy,x=_.angle,P=_.className,k=_.breakAll,D=hy(_,XA);if(!Le(n)||!Le(a))return null;var W=n+(ne(j)?j:0),q=a+(ne(b)?b:0),F;switch(p){case"start":F=lc("calc(".concat(c,")"));break;case"middle":F=lc("calc(".concat((O.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:F=lc("calc(".concat(O.length-1," * -").concat(u,")"));break}var U=[];if(l){var $=O[0].width,C=_.width;U.push("scale(".concat((ne(C)?C/$:1)/$,")"))}return x&&U.push("rotate(".concat(x,", ").concat(W,", ").concat(q,")")),U.length&&(D.transform=U.join(" ")),L.createElement("text",Sl({},fe(D,!0),{x:W,y:q,className:ge("recharts-text",P),textAnchor:v,fill:w.includes("url")?gy:w}),O.map(function(M,g){var y=M.words.join(k?"":" ");return L.createElement("tspan",{x:W,dy:g===0?F:u,key:"".concat(y,"-").concat(g)},y)}))};function Lt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Wf(e){let t,r,n;e.length!==2?(t=Lt,r=(u,s)=>Lt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Lt||e===rP?e:nP,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 nP(){return 0}function yb(e){return e===null?NaN:+e}function*iP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const aP=Wf(Lt),Zn=aP.right;Wf(yb).center;class my extends Map{constructor(t,r=sP){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(by(this,t))}has(t){return super.has(by(this,t))}set(t,r){return super.set(oP(this,t),r)}delete(t){return super.delete(uP(this,t))}}function by({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function oP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function uP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function sP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function cP(e=Lt){if(e===Lt)return gb;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 gb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const lP=Math.sqrt(50),fP=Math.sqrt(10),dP=Math.sqrt(2);function Mi(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>=lP?10:a>=fP?5:a>=dP?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?Mi(e,t,r*2):[u,s,c]}function Al(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?Mi(t,e,r):Mi(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 Pl(e,t,r){return t=+t,e=+e,r=+r,Mi(e,t,r)[2]}function Tl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Pl(t,e,r):Pl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function xy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function wy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function mb(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?gb:cP(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),v=Math.max(r,Math.floor(t-c*l/s+d)),m=Math.min(n,Math.floor(t+(s-c)*l/s+d));mb(e,t,v,m,i)}const a=e[t];let o=r,u=n;for(Zr(e,r,t),i(e[n],a)>0&&Zr(e,r,n);o<u;){for(Zr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Zr(e,r,u):(++u,Zr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Zr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function hP(e,t,r){if(e=Float64Array.from(iP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wy(e);if(t>=1)return xy(e);var n,i=(n-1)*t,a=Math.floor(i),o=xy(mb(e,a).subarray(0,a+1)),u=wy(e.subarray(a+1));return o+(u-o)*(i-a)}}function pP(e,t,r=yb){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 vP(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 ct(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Rt(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 jl=Symbol("implicit");function Hf(){var e=new my,t=[],r=[],n=jl;function i(a){let o=e.get(a);if(o===void 0){if(n!==jl)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 my;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 Hf(t,r).unknown(n)},ct.apply(i,arguments),i}function wn(){var e=Hf().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,v=i<n,m=v?i:n,p=v?n:i;a=(p-m)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),m+=(p-m-a*(d-s))*f,o=a*(1-s),u&&(m=Math.round(m),o=Math.round(o));var h=vP(d).map(function(w){return m+a*w});return r(v?h.reverse():h)}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 wn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},ct.apply(l(),arguments)}function bb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bb(t())},e}function cn(){return bb(wn.apply(null,arguments).paddingInner(1))}function Gf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function xb(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qn(){}var _n=.7,Ci=1/_n,br="\\s*([+-]?\\d+)\\s*",On="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yP=/^#([0-9a-f]{3,8})$/,gP=new RegExp(`^rgb\\(${br},${br},${br}\\)$`),mP=new RegExp(`^rgb\\(${bt},${bt},${bt}\\)$`),bP=new RegExp(`^rgba\\(${br},${br},${br},${On}\\)$`),xP=new RegExp(`^rgba\\(${bt},${bt},${bt},${On}\\)$`),wP=new RegExp(`^hsl\\(${On},${bt},${bt}\\)$`),_P=new RegExp(`^hsla\\(${On},${bt},${bt},${On}\\)$`),_y={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};Gf(Qn,Sn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Oy,formatHex:Oy,formatHex8:OP,formatHsl:SP,formatRgb:Sy,toString:Sy});function Oy(){return this.rgb().formatHex()}function OP(){return this.rgb().formatHex8()}function SP(){return wb(this).formatHsl()}function Sy(){return this.rgb().formatRgb()}function Sn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=yP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ay(t):r===3?new Ze(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ui(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ui(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=gP.exec(e))?new Ze(t[1],t[2],t[3],1):(t=mP.exec(e))?new Ze(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bP.exec(e))?ui(t[1],t[2],t[3],t[4]):(t=xP.exec(e))?ui(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wP.exec(e))?jy(t[1],t[2]/100,t[3]/100,1):(t=_P.exec(e))?jy(t[1],t[2]/100,t[3]/100,t[4]):_y.hasOwnProperty(e)?Ay(_y[e]):e==="transparent"?new Ze(NaN,NaN,NaN,0):null}function Ay(e){return new Ze(e>>16&255,e>>8&255,e&255,1)}function ui(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ze(e,t,r,n)}function AP(e){return e instanceof Qn||(e=Sn(e)),e?(e=e.rgb(),new Ze(e.r,e.g,e.b,e.opacity)):new Ze}function El(e,t,r,n){return arguments.length===1?AP(e):new Ze(e,t,r,n??1)}function Ze(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Gf(Ze,El,xb(Qn,{brighter(e){return e=e==null?Ci:Math.pow(Ci,e),new Ze(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_n:Math.pow(_n,e),new Ze(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ze(rr(this.r),rr(this.g),rr(this.b),$i(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:Py,formatHex:Py,formatHex8:PP,formatRgb:Ty,toString:Ty}));function Py(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}`}function PP(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}${Jt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ty(){const e=$i(this.opacity);return`${e===1?"rgb(":"rgba("}${rr(this.r)}, ${rr(this.g)}, ${rr(this.b)}${e===1?")":`, ${e})`}`}function $i(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jt(e){return e=rr(e),(e<16?"0":"")+e.toString(16)}function jy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ht(e,t,r,n)}function wb(e){if(e instanceof ht)return new ht(e.h,e.s,e.l,e.opacity);if(e instanceof Qn||(e=Sn(e)),!e)return new ht;if(e instanceof ht)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 ht(o,u,s,e.opacity)}function TP(e,t,r,n){return arguments.length===1?wb(e):new ht(e,t,r,n??1)}function ht(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Gf(ht,TP,xb(Qn,{brighter(e){return e=e==null?Ci:Math.pow(Ci,e),new ht(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_n:Math.pow(_n,e),new ht(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 Ze(fc(e>=240?e-240:e+120,i,n),fc(e,i,n),fc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ht(Ey(this.h),si(this.s),si(this.l),$i(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=$i(this.opacity);return`${e===1?"hsl(":"hsla("}${Ey(this.h)}, ${si(this.s)*100}%, ${si(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ey(e){return e=(e||0)%360,e<0?e+360:e}function si(e){return Math.max(0,Math.min(1,e||0))}function fc(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 Kf=e=>()=>e;function jP(e,t){return function(r){return e+r*t}}function EP(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 MP(e){return(e=+e)==1?_b:function(t,r){return r-t?EP(t,r,e):Kf(isNaN(t)?r:t)}}function _b(e,t){var r=t-e;return r?jP(e,r):Kf(isNaN(e)?t:e)}const My=function e(t){var r=MP(t);function n(i,a){var o=r((i=El(i)).r,(a=El(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=_b(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 CP(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 $P(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function IP(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]=Gr(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 kP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ii(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function NP(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]=Gr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ml=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dc=new RegExp(Ml.source,"g");function RP(e){return function(){return e}}function DP(e){return function(t){return e(t)+""}}function qP(e,t){var r=Ml.lastIndex=dc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Ml.exec(e))&&(i=dc.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:Ii(n,i)})),r=dc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?DP(s[0].x):RP(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 Gr(e,t){var r=typeof t,n;return t==null||r==="boolean"?Kf(t):(r==="number"?Ii:r==="string"?(n=Sn(t))?(t=n,My):qP:t instanceof Sn?My:t instanceof Date?kP:$P(t)?CP:Array.isArray(t)?IP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?NP:Ii)(e,t)}function Xf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function LP(e,t){t===void 0&&(t=e,e=Gr);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 BP(e){return function(){return e}}function ki(e){return+e}var Cy=[0,1];function Xe(e){return e}function Cl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:BP(isNaN(t)?NaN:.5)}function FP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function zP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Cl(i,n),a=r(o,a)):(n=Cl(n,i),a=r(a,o)),function(u){return a(n(u))}}function UP(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]=Cl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Zn(e,u,1,n)-1;return a[s](i[s](u))}}function Jn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Pa(){var e=Cy,t=Cy,r=Gr,n,i,a,o=Xe,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==Xe&&(o=FP(e[0],e[d-1])),u=d>2?UP:zP,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),Ii)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,ki),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=Xf,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Xe,f()):o!==Xe},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,v){return n=d,i=v,f()}}function Vf(){return Pa()(Xe,Xe)}function WP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ni(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 Tr(e){return e=Ni(Math.abs(e)),e?e[1]:NaN}function HP(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 GP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var KP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function An(e){if(!(t=KP.exec(e)))throw new Error("invalid format: "+e);var t;return new Yf({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]})}An.prototype=Yf.prototype;function Yf(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+""}Yf.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 XP(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 Ob;function VP(e,t){var r=Ni(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Ob=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")+Ni(e,Math.max(0,t+a-1))[0]}function $y(e,t){var r=Ni(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 Iy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:WP,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)=>$y(e*100,t),r:$y,s:VP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ky(e){return e}var Ny=Array.prototype.map,Ry=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function YP(e){var t=e.grouping===void 0||e.thousands===void 0?ky:HP(Ny.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?ky:GP(Ny.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=An(l);var d=l.fill,v=l.align,m=l.sign,p=l.symbol,h=l.zero,w=l.width,_=l.comma,O=l.precision,j=l.trim,b=l.type;b==="n"?(_=!0,b="g"):Iy[b]||(O===void 0&&(O=12),j=!0,b="g"),(h||d==="0"&&v==="=")&&(h=!0,d="0",v="=");var x=p==="$"?r:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",P=p==="$"?n:/[%p]/.test(b)?o:"",k=Iy[b],D=/[defgprs%]/.test(b);O=O===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function W(q){var F=x,U=P,$,C,M;if(b==="c")U=k(q)+U,q="";else{q=+q;var g=q<0||1/q<0;if(q=isNaN(q)?s:k(Math.abs(q),O),j&&(q=XP(q)),g&&+q==0&&m!=="+"&&(g=!1),F=(g?m==="("?m:u:m==="-"||m==="("?"":m)+F,U=(b==="s"?Ry[8+Ob/3]:"")+U+(g&&m==="("?")":""),D){for($=-1,C=q.length;++$<C;)if(M=q.charCodeAt($),48>M||M>57){U=(M===46?i+q.slice($+1):q.slice($))+U,q=q.slice(0,$);break}}}_&&!h&&(q=t(q,1/0));var y=F.length+q.length+U.length,S=y<w?new Array(w-y+1).join(d):"";switch(_&&h&&(q=t(S+q,S.length?w-U.length:1/0),S=""),v){case"<":q=F+q+U+S;break;case"=":q=F+S+q+U;break;case"^":q=S.slice(0,y=S.length>>1)+F+q+U+S.slice(y);break;default:q=S+F+q+U;break}return a(q)}return W.toString=function(){return l+""},W}function f(l,d){var v=c((l=An(l),l.type="f",l)),m=Math.max(-8,Math.min(8,Math.floor(Tr(d)/3)))*3,p=Math.pow(10,-m),h=Ry[8+m/3];return function(w){return v(p*w)+h}}return{format:c,formatPrefix:f}}var ci,Zf,Sb;ZP({thousands:",",grouping:[3],currency:["$",""]});function ZP(e){return ci=YP(e),Zf=ci.format,Sb=ci.formatPrefix,ci}function QP(e){return Math.max(0,-Tr(Math.abs(e)))}function JP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Tr(t)/3)))*3-Tr(Math.abs(e)))}function e2(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Tr(t)-Tr(e))+1}function Ab(e,t,r,n){var i=Tl(e,t,r),a;switch(n=An(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=JP(i,o))&&(n.precision=a),Sb(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=e2(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=QP(i))&&(n.precision=a-(n.type==="%")*2);break}}return Zf(n)}function zt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Al(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Ab(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=Pl(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 Ri(){var e=Vf();return e.copy=function(){return Jn(e,Ri())},ct.apply(e,arguments),zt(e)}function Pb(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,ki),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Pb(e).unknown(t)},e=arguments.length?Array.from(e,ki):[0,1],zt(r)}function Tb(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 Dy(e){return Math.log(e)}function qy(e){return Math.exp(e)}function t2(e){return-Math.log(-e)}function r2(e){return-Math.exp(-e)}function n2(e){return isFinite(e)?+("1e"+e):e<0?0:e}function i2(e){return e===10?n2:e===Math.E?Math.exp:t=>Math.pow(e,t)}function a2(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 Ly(e){return(t,r)=>-e(-t,r)}function Qf(e){const t=e(Dy,qy),r=t.domain;let n=10,i,a;function o(){return i=a2(n),a=i2(n),r()[0]<0?(i=Ly(i),a=Ly(a),e(t2,r2)):e(Dy,qy),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),v=i(f),m,p;const h=u==null?10:+u;let w=[];if(!(n%1)&&v-d<h){if(d=Math.floor(d),v=Math.ceil(v),c>0){for(;d<=v;++d)for(m=1;m<n;++m)if(p=d<0?m/a(-d):m*a(d),!(p<c)){if(p>f)break;w.push(p)}}else for(;d<=v;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/a(-d):m*a(d),!(p<c)){if(p>f)break;w.push(p)}w.length*2<h&&(w=Al(c,f,h))}else w=Al(d,v,Math.min(v-d,h)).map(a);return l?w.reverse():w},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=An(s)).precision==null&&(s.trim=!0),s=Zf(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(Tb(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function jb(){const e=Qf(Pa()).domain([1,10]);return e.copy=()=>Jn(e,jb()).base(e.base()),ct.apply(e,arguments),e}function By(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Fy(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Jf(e){var t=1,r=e(By(t),Fy(t));return r.constant=function(n){return arguments.length?e(By(t=+n),Fy(t)):t},zt(r)}function Eb(){var e=Jf(Pa());return e.copy=function(){return Jn(e,Eb()).constant(e.constant())},ct.apply(e,arguments)}function zy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function o2(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function u2(e){return e<0?-e*e:e*e}function ed(e){var t=e(Xe,Xe),r=1;function n(){return r===1?e(Xe,Xe):r===.5?e(o2,u2):e(zy(r),zy(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},zt(t)}function td(){var e=ed(Pa());return e.copy=function(){return Jn(e,td()).exponent(e.exponent())},ct.apply(e,arguments),e}function s2(){return td.apply(null,arguments).exponent(.5)}function Uy(e){return Math.sign(e)*e*e}function c2(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Mb(){var e=Vf(),t=[0,1],r=!1,n;function i(a){var o=c2(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Uy(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,ki)).map(Uy)),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 Mb(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ct.apply(i,arguments),zt(i)}function Cb(){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]=pP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Zn(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(Lt),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 Cb().domain(e).range(t).unknown(n)},ct.apply(a,arguments)}function $b(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Zn(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 $b().domain([e,t]).range(i).unknown(a)},ct.apply(zt(o),arguments)}function Ib(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Zn(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 Ib().domain(e).range(t).unknown(r)},ct.apply(i,arguments)}const hc=new Date,pc=new Date;function Be(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=>Be(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)=>(hc.setTime(+a),pc.setTime(+o),e(hc),e(pc),Math.floor(r(hc,pc))),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 Di=Be(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Di.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Be(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Di);Di.range;const Pt=1e3,ut=Pt*60,Tt=ut*60,Ct=Tt*24,rd=Ct*7,Wy=Ct*30,vc=Ct*365,er=Be(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Pt)},(e,t)=>(t-e)/Pt,e=>e.getUTCSeconds());er.range;const nd=Be(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pt)},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getMinutes());nd.range;const id=Be(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getUTCMinutes());id.range;const ad=Be(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pt-e.getMinutes()*ut)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getHours());ad.range;const od=Be(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCHours());od.range;const ei=Be(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ut)/Ct,e=>e.getDate()-1);ei.range;const Ta=Be(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>e.getUTCDate()-1);Ta.range;const kb=Be(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>Math.floor(e/Ct));kb.range;function cr(e){return Be(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())*ut)/rd)}const ja=cr(0),qi=cr(1),l2=cr(2),f2=cr(3),jr=cr(4),d2=cr(5),h2=cr(6);ja.range;qi.range;l2.range;f2.range;jr.range;d2.range;h2.range;function lr(e){return Be(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)/rd)}const Ea=lr(0),Li=lr(1),p2=lr(2),v2=lr(3),Er=lr(4),y2=lr(5),g2=lr(6);Ea.range;Li.range;p2.range;v2.range;Er.range;y2.range;g2.range;const ud=Be(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());ud.range;const sd=Be(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());sd.range;const $t=Be(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());$t.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Be(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)});$t.range;const It=Be(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());It.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Be(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)});It.range;function Nb(e,t,r,n,i,a){const o=[[er,1,Pt],[er,5,5*Pt],[er,15,15*Pt],[er,30,30*Pt],[a,1,ut],[a,5,5*ut],[a,15,15*ut],[a,30,30*ut],[i,1,Tt],[i,3,3*Tt],[i,6,6*Tt],[i,12,12*Tt],[n,1,Ct],[n,2,2*Ct],[r,1,rd],[t,1,Wy],[t,3,3*Wy],[e,1,vc]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const v=l&&typeof l.range=="function"?l:s(c,f,l),m=v?v.range(c,+f+1):[];return d?m.reverse():m}function s(c,f,l){const d=Math.abs(f-c)/l,v=Wf(([,,h])=>h).right(o,d);if(v===o.length)return e.every(Tl(c/vc,f/vc,l));if(v===0)return Di.every(Math.max(Tl(c,f,l),1));const[m,p]=o[d/o[v-1][2]<o[v][2]/d?v-1:v];return m.every(p)}return[u,s]}const[m2,b2]=Nb(It,sd,Ea,kb,od,id),[x2,w2]=Nb($t,ud,ja,ei,ad,nd);function yc(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 gc(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 Qr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function _2(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=Jr(i),f=en(i),l=Jr(a),d=en(a),v=Jr(o),m=en(o),p=Jr(u),h=en(u),w=Jr(s),_=en(s),O={a:g,A:y,b:S,B:E,c:null,d:Yy,e:Yy,f:H2,g:tT,G:nT,H:z2,I:U2,j:W2,L:Rb,m:G2,M:K2,p:A,q:I,Q:Jy,s:eg,S:X2,u:V2,U:Y2,V:Z2,w:Q2,W:J2,x:null,X:null,y:eT,Y:rT,Z:iT,"%":Qy},j={a:H,A:V,b:te,B:Q,c:null,d:Zy,e:Zy,f:sT,g:mT,G:xT,H:aT,I:oT,j:uT,L:qb,m:cT,M:lT,p:ae,q:J,Q:Jy,s:eg,S:fT,u:dT,U:hT,V:pT,w:vT,W:yT,x:null,X:null,y:gT,Y:bT,Z:wT,"%":Qy},b={a:W,A:q,b:F,B:U,c:$,d:Xy,e:Xy,f:q2,g:Ky,G:Gy,H:Vy,I:Vy,j:k2,L:D2,m:I2,M:N2,p:D,q:$2,Q:B2,s:F2,S:R2,u:T2,U:j2,V:E2,w:P2,W:M2,x:C,X:M,y:Ky,Y:Gy,Z:C2,"%":L2};O.x=x(r,O),O.X=x(n,O),O.c=x(t,O),j.x=x(r,j),j.X=x(n,j),j.c=x(t,j);function x(X,ee){return function(Y){var T=[],B=-1,R=0,z=X.length,K,re,oe;for(Y instanceof Date||(Y=new Date(+Y));++B<z;)X.charCodeAt(B)===37&&(T.push(X.slice(R,B)),(re=Hy[K=X.charAt(++B)])!=null?K=X.charAt(++B):re=K==="e"?" ":"0",(oe=ee[K])&&(K=oe(Y,re)),T.push(K),R=B+1);return T.push(X.slice(R,B)),T.join("")}}function P(X,ee){return function(Y){var T=Qr(1900,void 0,1),B=k(T,X,Y+="",0),R,z;if(B!=Y.length)return null;if("Q"in T)return new Date(T.Q);if("s"in T)return new Date(T.s*1e3+("L"in T?T.L:0));if(ee&&!("Z"in T)&&(T.Z=0),"p"in T&&(T.H=T.H%12+T.p*12),T.m===void 0&&(T.m="q"in T?T.q:0),"V"in T){if(T.V<1||T.V>53)return null;"w"in T||(T.w=1),"Z"in T?(R=gc(Qr(T.y,0,1)),z=R.getUTCDay(),R=z>4||z===0?Li.ceil(R):Li(R),R=Ta.offset(R,(T.V-1)*7),T.y=R.getUTCFullYear(),T.m=R.getUTCMonth(),T.d=R.getUTCDate()+(T.w+6)%7):(R=yc(Qr(T.y,0,1)),z=R.getDay(),R=z>4||z===0?qi.ceil(R):qi(R),R=ei.offset(R,(T.V-1)*7),T.y=R.getFullYear(),T.m=R.getMonth(),T.d=R.getDate()+(T.w+6)%7)}else("W"in T||"U"in T)&&("w"in T||(T.w="u"in T?T.u%7:"W"in T?1:0),z="Z"in T?gc(Qr(T.y,0,1)).getUTCDay():yc(Qr(T.y,0,1)).getDay(),T.m=0,T.d="W"in T?(T.w+6)%7+T.W*7-(z+5)%7:T.w+T.U*7-(z+6)%7);return"Z"in T?(T.H+=T.Z/100|0,T.M+=T.Z%100,gc(T)):yc(T)}}function k(X,ee,Y,T){for(var B=0,R=ee.length,z=Y.length,K,re;B<R;){if(T>=z)return-1;if(K=ee.charCodeAt(B++),K===37){if(K=ee.charAt(B++),re=b[K in Hy?ee.charAt(B++):K],!re||(T=re(X,Y,T))<0)return-1}else if(K!=Y.charCodeAt(T++))return-1}return T}function D(X,ee,Y){var T=c.exec(ee.slice(Y));return T?(X.p=f.get(T[0].toLowerCase()),Y+T[0].length):-1}function W(X,ee,Y){var T=v.exec(ee.slice(Y));return T?(X.w=m.get(T[0].toLowerCase()),Y+T[0].length):-1}function q(X,ee,Y){var T=l.exec(ee.slice(Y));return T?(X.w=d.get(T[0].toLowerCase()),Y+T[0].length):-1}function F(X,ee,Y){var T=w.exec(ee.slice(Y));return T?(X.m=_.get(T[0].toLowerCase()),Y+T[0].length):-1}function U(X,ee,Y){var T=p.exec(ee.slice(Y));return T?(X.m=h.get(T[0].toLowerCase()),Y+T[0].length):-1}function $(X,ee,Y){return k(X,t,ee,Y)}function C(X,ee,Y){return k(X,r,ee,Y)}function M(X,ee,Y){return k(X,n,ee,Y)}function g(X){return o[X.getDay()]}function y(X){return a[X.getDay()]}function S(X){return s[X.getMonth()]}function E(X){return u[X.getMonth()]}function A(X){return i[+(X.getHours()>=12)]}function I(X){return 1+~~(X.getMonth()/3)}function H(X){return o[X.getUTCDay()]}function V(X){return a[X.getUTCDay()]}function te(X){return s[X.getUTCMonth()]}function Q(X){return u[X.getUTCMonth()]}function ae(X){return i[+(X.getUTCHours()>=12)]}function J(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var ee=x(X+="",O);return ee.toString=function(){return X},ee},parse:function(X){var ee=P(X+="",!1);return ee.toString=function(){return X},ee},utcFormat:function(X){var ee=x(X+="",j);return ee.toString=function(){return X},ee},utcParse:function(X){var ee=P(X+="",!0);return ee.toString=function(){return X},ee}}}var Hy={"-":"",_:" ",0:"0"},ze=/^\s*\d+/,O2=/^%/,S2=/[\\^$*+?|[\]().{}]/g;function me(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 A2(e){return e.replace(S2,"\\$&")}function Jr(e){return new RegExp("^(?:"+e.map(A2).join("|")+")","i")}function en(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function P2(e,t,r){var n=ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function T2(e,t,r){var n=ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function j2(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function E2(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function M2(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Gy(e,t,r){var n=ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Ky(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function C2(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 $2(e,t,r){var n=ze.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function I2(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Xy(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function k2(e,t,r){var n=ze.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Vy(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function N2(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function R2(e,t,r){var n=ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function D2(e,t,r){var n=ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function q2(e,t,r){var n=ze.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function L2(e,t,r){var n=O2.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function B2(e,t,r){var n=ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function F2(e,t,r){var n=ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Yy(e,t){return me(e.getDate(),t,2)}function z2(e,t){return me(e.getHours(),t,2)}function U2(e,t){return me(e.getHours()%12||12,t,2)}function W2(e,t){return me(1+ei.count($t(e),e),t,3)}function Rb(e,t){return me(e.getMilliseconds(),t,3)}function H2(e,t){return Rb(e,t)+"000"}function G2(e,t){return me(e.getMonth()+1,t,2)}function K2(e,t){return me(e.getMinutes(),t,2)}function X2(e,t){return me(e.getSeconds(),t,2)}function V2(e){var t=e.getDay();return t===0?7:t}function Y2(e,t){return me(ja.count($t(e)-1,e),t,2)}function Db(e){var t=e.getDay();return t>=4||t===0?jr(e):jr.ceil(e)}function Z2(e,t){return e=Db(e),me(jr.count($t(e),e)+($t(e).getDay()===4),t,2)}function Q2(e){return e.getDay()}function J2(e,t){return me(qi.count($t(e)-1,e),t,2)}function eT(e,t){return me(e.getFullYear()%100,t,2)}function tT(e,t){return e=Db(e),me(e.getFullYear()%100,t,2)}function rT(e,t){return me(e.getFullYear()%1e4,t,4)}function nT(e,t){var r=e.getDay();return e=r>=4||r===0?jr(e):jr.ceil(e),me(e.getFullYear()%1e4,t,4)}function iT(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+me(t/60|0,"0",2)+me(t%60,"0",2)}function Zy(e,t){return me(e.getUTCDate(),t,2)}function aT(e,t){return me(e.getUTCHours(),t,2)}function oT(e,t){return me(e.getUTCHours()%12||12,t,2)}function uT(e,t){return me(1+Ta.count(It(e),e),t,3)}function qb(e,t){return me(e.getUTCMilliseconds(),t,3)}function sT(e,t){return qb(e,t)+"000"}function cT(e,t){return me(e.getUTCMonth()+1,t,2)}function lT(e,t){return me(e.getUTCMinutes(),t,2)}function fT(e,t){return me(e.getUTCSeconds(),t,2)}function dT(e){var t=e.getUTCDay();return t===0?7:t}function hT(e,t){return me(Ea.count(It(e)-1,e),t,2)}function Lb(e){var t=e.getUTCDay();return t>=4||t===0?Er(e):Er.ceil(e)}function pT(e,t){return e=Lb(e),me(Er.count(It(e),e)+(It(e).getUTCDay()===4),t,2)}function vT(e){return e.getUTCDay()}function yT(e,t){return me(Li.count(It(e)-1,e),t,2)}function gT(e,t){return me(e.getUTCFullYear()%100,t,2)}function mT(e,t){return e=Lb(e),me(e.getUTCFullYear()%100,t,2)}function bT(e,t){return me(e.getUTCFullYear()%1e4,t,4)}function xT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Er(e):Er.ceil(e),me(e.getUTCFullYear()%1e4,t,4)}function wT(){return"+0000"}function Qy(){return"%"}function Jy(e){return+e}function eg(e){return Math.floor(+e/1e3)}var hr,Bb,Fb;_T({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 _T(e){return hr=_2(e),Bb=hr.format,hr.parse,Fb=hr.utcFormat,hr.utcParse,hr}function OT(e){return new Date(e)}function ST(e){return e instanceof Date?+e:+new Date(+e)}function cd(e,t,r,n,i,a,o,u,s,c){var f=Vf(),l=f.invert,d=f.domain,v=c(".%L"),m=c(":%S"),p=c("%I:%M"),h=c("%I %p"),w=c("%a %d"),_=c("%b %d"),O=c("%B"),j=c("%Y");function b(x){return(s(x)<x?v:u(x)<x?m:o(x)<x?p:a(x)<x?h:n(x)<x?i(x)<x?w:_:r(x)<x?O:j)(x)}return f.invert=function(x){return new Date(l(x))},f.domain=function(x){return arguments.length?d(Array.from(x,ST)):d().map(OT)},f.ticks=function(x){var P=d();return e(P[0],P[P.length-1],x??10)},f.tickFormat=function(x,P){return P==null?b:c(P)},f.nice=function(x){var P=d();return(!x||typeof x.range!="function")&&(x=t(P[0],P[P.length-1],x??10)),x?d(Tb(P,x)):f},f.copy=function(){return Jn(f,cd(e,t,r,n,i,a,o,u,s,c))},f}function AT(){return ct.apply(cd(x2,w2,$t,ud,ja,ei,ad,nd,er,Bb).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function PT(){return ct.apply(cd(m2,b2,It,sd,Ea,Ta,od,id,er,Fb).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ma(){var e=0,t=1,r,n,i,a,o=Xe,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 v,m;return arguments.length?([v,m]=d,o=l(v,m),c):[o(0),o(1)]}}return c.range=f(Gr),c.rangeRound=f(Xf),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 Ut(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function zb(){var e=zt(Ma()(Xe));return e.copy=function(){return Ut(e,zb())},Rt.apply(e,arguments)}function Ub(){var e=Qf(Ma()).domain([1,10]);return e.copy=function(){return Ut(e,Ub()).base(e.base())},Rt.apply(e,arguments)}function Wb(){var e=Jf(Ma());return e.copy=function(){return Ut(e,Wb()).constant(e.constant())},Rt.apply(e,arguments)}function ld(){var e=ed(Ma());return e.copy=function(){return Ut(e,ld()).exponent(e.exponent())},Rt.apply(e,arguments)}function TT(){return ld.apply(null,arguments).exponent(.5)}function Hb(){var e=[],t=Xe;function r(n){if(n!=null&&!isNaN(n=+n))return t((Zn(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(Lt),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)=>hP(e,a/n))},r.copy=function(){return Hb(t).domain(e)},Rt.apply(r,arguments)}function Ca(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Xe,f,l=!1,d;function v(p){return isNaN(p=+p)?d:(p=.5+((p=+f(p))-a)*(n*p<n*a?u:s),c(l?Math.max(0,Math.min(1,p)):p))}v.domain=function(p){return arguments.length?([e,t,r]=p,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,v):[e,t,r]},v.clamp=function(p){return arguments.length?(l=!!p,v):l},v.interpolator=function(p){return arguments.length?(c=p,v):c};function m(p){return function(h){var w,_,O;return arguments.length?([w,_,O]=h,c=LP(p,[w,_,O]),v):[c(0),c(.5),c(1)]}}return v.range=m(Gr),v.rangeRound=m(Xf),v.unknown=function(p){return arguments.length?(d=p,v):d},function(p){return f=p,i=p(e),a=p(t),o=p(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function Gb(){var e=zt(Ca()(Xe));return e.copy=function(){return Ut(e,Gb())},Rt.apply(e,arguments)}function Kb(){var e=Qf(Ca()).domain([.1,1,10]);return e.copy=function(){return Ut(e,Kb()).base(e.base())},Rt.apply(e,arguments)}function Xb(){var e=Jf(Ca());return e.copy=function(){return Ut(e,Xb()).constant(e.constant())},Rt.apply(e,arguments)}function fd(){var e=ed(Ca());return e.copy=function(){return Ut(e,fd()).exponent(e.exponent())},Rt.apply(e,arguments)}function jT(){return fd.apply(null,arguments).exponent(.5)}const tg=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:wn,scaleDiverging:Gb,scaleDivergingLog:Kb,scaleDivergingPow:fd,scaleDivergingSqrt:jT,scaleDivergingSymlog:Xb,scaleIdentity:Pb,scaleImplicit:jl,scaleLinear:Ri,scaleLog:jb,scaleOrdinal:Hf,scalePoint:cn,scalePow:td,scaleQuantile:Cb,scaleQuantize:$b,scaleRadial:Mb,scaleSequential:zb,scaleSequentialLog:Ub,scaleSequentialPow:ld,scaleSequentialQuantile:Hb,scaleSequentialSqrt:TT,scaleSequentialSymlog:Wb,scaleSqrt:s2,scaleSymlog:Eb,scaleThreshold:Ib,scaleTime:AT,scaleUtc:PT,tickFormat:Ab},Symbol.toStringTag,{value:"Module"}));var mc,rg;function $a(){if(rg)return mc;rg=1;var e=Ur();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return mc=t,mc}var bc,ng;function Vb(){if(ng)return bc;ng=1;function e(t,r){return t>r}return bc=e,bc}var xc,ig;function ET(){if(ig)return xc;ig=1;var e=$a(),t=Vb(),r=Hr();function n(i){return i&&i.length?e(i,r,t):void 0}return xc=n,xc}var MT=ET();const Ia=Se(MT);var wc,ag;function Yb(){if(ag)return wc;ag=1;function e(t,r){return t<r}return wc=e,wc}var _c,og;function CT(){if(og)return _c;og=1;var e=$a(),t=Yb(),r=Hr();function n(i){return i&&i.length?e(i,r,t):void 0}return _c=n,_c}var $T=CT();const ka=Se($T);var Oc,ug;function IT(){if(ug)return Oc;ug=1;var e=Pf(),t=Ot(),r=ib(),n=Qe();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Oc=i,Oc}var Sc,sg;function kT(){if(sg)return Sc;sg=1;var e=rb(),t=IT();function r(n,i){return e(t(n,i),1)}return Sc=r,Sc}var NT=kT();const RT=Se(NT);var Ac,cg;function DT(){if(cg)return Ac;cg=1;var e=Lf();function t(r,n){return e(r,n)}return Ac=t,Ac}var qT=DT();const dd=Se(qT);var Kr=1e9,LT={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},pd,Ce=!0,st="[DecimalError] ",nr=st+"Invalid argument: ",hd=st+"Exponent out of range: ",Xr=Math.floor,Yt=Math.pow,BT=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,et,Fe=1e7,Ee=7,Zb=9007199254740991,Bi=Xr(Zb/Ee),ie={};ie.absoluteValue=ie.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ie.comparedTo=ie.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};ie.decimalPlaces=ie.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ee;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ie.dividedBy=ie.div=function(e){return Mt(this,new this.constructor(e))};ie.dividedToIntegerBy=ie.idiv=function(e){var t=this,r=t.constructor;return Ae(Mt(t,new r(e),0,1),r.precision)};ie.equals=ie.eq=function(e){return!this.cmp(e)};ie.exponent=function(){return Re(this)};ie.greaterThan=ie.gt=function(e){return this.cmp(e)>0};ie.greaterThanOrEqualTo=ie.gte=function(e){return this.cmp(e)>=0};ie.isInteger=ie.isint=function(){return this.e>this.d.length-2};ie.isNegative=ie.isneg=function(){return this.s<0};ie.isPositive=ie.ispos=function(){return this.s>0};ie.isZero=function(){return this.s===0};ie.lessThan=ie.lt=function(e){return this.cmp(e)<0};ie.lessThanOrEqualTo=ie.lte=function(e){return this.cmp(e)<1};ie.logarithm=ie.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(et))throw Error(st+"NaN");if(r.s<1)throw Error(st+(r.s?"NaN":"-Infinity"));return r.eq(et)?new n(0):(Ce=!1,t=Mt(Pn(r,a),Pn(e,a),a),Ce=!0,Ae(t,i))};ie.minus=ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?e1(t,e):Qb(t,(e.s=-e.s,e))};ie.modulo=ie.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(st+"NaN");return r.s?(Ce=!1,t=Mt(r,e,0,1).times(e),Ce=!0,r.minus(t)):Ae(new n(r),i)};ie.naturalExponential=ie.exp=function(){return Jb(this)};ie.naturalLogarithm=ie.ln=function(){return Pn(this)};ie.negated=ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ie.plus=ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qb(t,e):e1(t,(e.s=-e.s,e))};ie.precision=ie.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(nr+e);if(t=Re(i)+1,n=i.d.length-1,r=n*Ee+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};ie.squareRoot=ie.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(st+"NaN")}for(e=Re(u),Ce=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=gt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Xr((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(Mt(u,a,o+2)).times(.5),gt(a.d).slice(0,o)===(t=gt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return Ce=!0,Ae(n,r)};ie.times=ie.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,v=(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=v.length,s<c&&(a=d,d=v,v=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]+v[n]*d[i-n-1]+t,a[i--]=u%Fe|0,t=u/Fe|0;a[i]=(a[i]+t)%Fe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ce?Ae(e,l.precision):e};ie.toDecimalPlaces=ie.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(wt(e,0,Kr),t===void 0?t=n.rounding:wt(t,0,8),Ae(r,e+Re(r)+1,t))};ie.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ar(n,!0):(wt(e,0,Kr),t===void 0?t=i.rounding:wt(t,0,8),n=Ae(new i(n),e+1,t),r=ar(n,!0,e+1)),r};ie.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ar(i):(wt(e,0,Kr),t===void 0?t=a.rounding:wt(t,0,8),n=Ae(new a(i),e+Re(i)+1,t),r=ar(n.abs(),!1,e+Re(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ie.toInteger=ie.toint=function(){var e=this,t=e.constructor;return Ae(new t(e),Re(e)+1,t.rounding)};ie.toNumber=function(){return+this};ie.toPower=ie.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(et);if(u=new s(u),!u.s){if(e.s<1)throw Error(st+"Infinity");return u}if(u.eq(et))return u;if(n=s.precision,e.eq(et))return Ae(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=Zb){for(i=new s(et),t=Math.ceil(n/Ee+4),Ce=!1;r%2&&(i=i.times(u),fg(i.d,t)),r=Xr(r/2),r!==0;)u=u.times(u),fg(u.d,t);return Ce=!0,e.s<0?new s(et).div(i):Ae(i,n)}}else if(a<0)throw Error(st+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,Ce=!1,i=e.times(Pn(u,n+c)),Ce=!0,i=Jb(i),i.s=a,i};ie.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Re(i),n=ar(i,r<=a.toExpNeg||r>=a.toExpPos)):(wt(e,1,Kr),t===void 0?t=a.rounding:wt(t,0,8),i=Ae(new a(i),e,t),r=Re(i),n=ar(i,e<=r||r<=a.toExpNeg,e)),n};ie.toSignificantDigits=ie.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(wt(e,1,Kr),t===void 0?t=n.rounding:wt(t,0,8)),Ae(new n(r),e,t)};ie.toString=ie.valueOf=ie.val=ie.toJSON=ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Re(e),r=e.constructor;return ar(e,t<=r.toExpNeg||t>=r.toExpPos)};function Qb(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)),Ce?Ae(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/Ee),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)/Fe|0,s[a]%=Fe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,Ce?Ae(t,l):t}function wt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(nr+e)}function gt(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=Ee-n.length,r&&(a+=qt(r)),a+=n;o=e[t],n=o+"",r=Ee-n.length,r&&(a+=qt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Mt=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%Fe|0,o=a/Fe|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*Fe+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,v,m,p,h,w,_,O,j,b,x,P,k,D=n.constructor,W=n.s==i.s?1:-1,q=n.d,F=i.d;if(!n.s)return new D(n);if(!i.s)throw Error(st+"Division by zero");for(s=n.e-i.e,P=F.length,b=q.length,v=new D(W),m=v.d=[],c=0;F[c]==(q[c]||0);)++c;if(F[c]>(q[c]||0)&&--s,a==null?_=a=D.precision:o?_=a+(Re(n)-Re(i))+1:_=a,_<0)return new D(0);if(_=_/Ee+2|0,c=0,P==1)for(f=0,F=F[0],_++;(c<b||f)&&_--;c++)O=f*Fe+(q[c]||0),m[c]=O/F|0,f=O%F|0;else{for(f=Fe/(F[0]+1)|0,f>1&&(F=e(F,f),q=e(q,f),P=F.length,b=q.length),j=P,p=q.slice(0,P),h=p.length;h<P;)p[h++]=0;k=F.slice(),k.unshift(0),x=F[0],F[1]>=Fe/2&&++x;do f=0,u=t(F,p,P,h),u<0?(w=p[0],P!=h&&(w=w*Fe+(p[1]||0)),f=w/x|0,f>1?(f>=Fe&&(f=Fe-1),l=e(F,f),d=l.length,h=p.length,u=t(l,p,d,h),u==1&&(f--,r(l,P<d?k:F,d))):(f==0&&(u=f=1),l=F.slice()),d=l.length,d<h&&l.unshift(0),r(p,l,h),u==-1&&(h=p.length,u=t(F,p,P,h),u<1&&(f++,r(p,P<h?k:F,h))),h=p.length):u===0&&(f++,p=[0]),m[c++]=f,u&&p[0]?p[h++]=q[j]||0:(p=[q[j]],h=1);while((j++<b||p[0]!==void 0)&&_--)}return m[0]||m.shift(),v.e=s,Ae(v,o?a+Re(v)+1:a)}}();function Jb(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(Re(e)>16)throw Error(hd+Re(e));if(!e.s)return new f(et);for(Ce=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Yt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(et),f.precision=u;;){if(i=Ae(i.times(e),u),r=r.times(++s),o=a.plus(Mt(i,r,u)),gt(o.d).slice(0,u)===gt(a.d).slice(0,u)){for(;c--;)a=Ae(a.times(a),u);return f.precision=l,t==null?(Ce=!0,Ae(a,l)):a}a=o}}function Re(e){for(var t=e.e*Ee,r=e.d[0];r>=10;r/=10)t++;return t}function Pc(e,t,r){if(t>e.LN10.sd())throw Ce=!0,r&&(e.precision=r),Error(st+"LN10 precision limit exceeded");return Ae(new e(e.LN10),t)}function qt(e){for(var t="";e--;)t+="0";return t}function Pn(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,v=e,m=v.d,p=v.constructor,h=p.precision;if(v.s<1)throw Error(st+(v.s?"NaN":"-Infinity"));if(v.eq(et))return new p(0);if(t==null?(Ce=!1,c=h):c=t,v.eq(10))return t==null&&(Ce=!0),Pc(p,c);if(c+=d,p.precision=c,r=gt(m),n=r.charAt(0),a=Re(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=gt(v.d),n=r.charAt(0),l++;a=Re(v),n>1?(v=new p("0."+r),a++):v=new p(n+"."+r.slice(1))}else return s=Pc(p,c+2,h).times(a+""),v=Pn(new p(n+"."+r.slice(1)),c-d).plus(s),p.precision=h,t==null?(Ce=!0,Ae(v,h)):v;for(u=o=v=Mt(v.minus(et),v.plus(et),c),f=Ae(v.times(v),c),i=3;;){if(o=Ae(o.times(f),c),s=u.plus(Mt(o,new p(i),c)),gt(s.d).slice(0,c)===gt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(Pc(p,c+2,h).times(a+""))),u=Mt(u,new p(l),c),p.precision=h,t==null?(Ce=!0,Ae(u,h)):u;u=s,i+=2}}function lg(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=Xr(r/Ee),e.d=[],n=(r+1)%Ee,r<0&&(n+=Ee),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ee;n<i;)e.d.push(+t.slice(n,n+=Ee));t=t.slice(n),n=Ee-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Ce&&(e.e>Bi||e.e<-Bi))throw Error(hd+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ae(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+=Ee,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/Ee),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=Ee,i=n-Ee+o}if(r!==void 0&&(a=Yt(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/Yt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=Re(e),l.length=1,t=t-a-1,l[0]=Yt(10,(Ee-t%Ee)%Ee),e.e=Xr(-t/Ee)||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=Yt(10,Ee-n),l[f]=i>0?(c/Yt(10,o-i)%Yt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Fe&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Fe)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(Ce&&(e.e>Bi||e.e<-Bi))throw Error(hd+Re(e));return e}function e1(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ce?Ae(t,v):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(v/Ee),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]=Fe-1;--s[a],s[i]+=Fe}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,Ce?Ae(t,v):t):new d(0)}function ar(e,t,r){var n,i=Re(e),a=gt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+qt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+qt(-i-1)+a,r&&(n=r-o)>0&&(a+=qt(n))):i>=o?(a+=qt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+qt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=qt(n))),e.s<0?"-"+a:a}function fg(e,t){if(e.length>t)return e.length=t,!0}function t1(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(nr+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 lg(o,a.toString())}else if(typeof a!="string")throw Error(nr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,BT.test(a))lg(o,a);else throw Error(nr+a)}if(i.prototype=ie,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=t1,i.config=i.set=FT,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 FT(e){if(!e||typeof e!="object")throw Error(st+"Object expected");var t,r,n,i=["precision",1,Kr,"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(Xr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(nr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(nr+r+": "+n);return this}var pd=t1(LT);et=new pd(1);const Oe=pd;function zT(e){return GT(e)||HT(e)||WT(e)||UT()}function UT(){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 WT(e,t){if(e){if(typeof e=="string")return $l(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 $l(e,t)}}function HT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function GT(e){if(Array.isArray(e))return $l(e)}function $l(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 KT=function(t){return t},r1={},n1=function(t){return t===r1},dg=function(t){return function r(){return arguments.length===0||arguments.length===1&&n1(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},XT=function e(t,r){return t===1?r:dg(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!==r1}).length;return o>=t?r.apply(void 0,i):e(t-o,dg(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 n1(l)?s.shift():l});return r.apply(void 0,zT(f).concat(s))}))})},Na=function(t){return XT(t.length,t)},Il=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},VT=Na(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),YT=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return KT;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))}},kl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},i1=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 ZT(e){var t;return e===0?t=1:t=Math.floor(new Oe(e).abs().log(10).toNumber())+1,t}function QT(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 JT=Na(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),ej=Na(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),tj=Na(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ra={rangeStep:QT,getDigitCount:ZT,interpolateNumber:JT,uninterpolateNumber:ej,uninterpolateTruncation:tj};function Nl(e){return ij(e)||nj(e)||a1(e)||rj()}function rj(){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 nj(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ij(e){if(Array.isArray(e))return Rl(e)}function Tn(e,t){return uj(e)||oj(e,t)||a1(e,t)||aj()}function aj(){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 a1(e,t){if(e){if(typeof e=="string")return Rl(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 Rl(e,t)}}function Rl(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 oj(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 uj(e){if(Array.isArray(e))return e}function o1(e){var t=Tn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function u1(e,t,r){if(e.lte(0))return new Oe(0);var n=Ra.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 sj(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(Ra.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=YT(VT(function(s){return i.add(new Oe(s-o).mul(n)).toNumber()}),Il);return u(0,t)}function s1(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=u1(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?s1(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 cj(e){var t=Tn(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=o1([r,n]),s=Tn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(Nl(Il(0,i-1).map(function(){return 1/0}))):[].concat(Nl(Il(0,i-1).map(function(){return-1/0})),[f]);return r>n?kl(l):l}if(c===f)return sj(c,i,a);var d=s1(c,f,o,a),v=d.step,m=d.tickMin,p=d.tickMax,h=Ra.rangeStep(m,p.add(new Oe(.1).mul(v)),v);return r>n?kl(h):h}function lj(e,t){var r=Tn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=o1([n,i]),u=Tn(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=u1(new Oe(c).sub(s).div(f-1),a,0),d=[].concat(Nl(Ra.rangeStep(new Oe(s),new Oe(c).sub(new Oe(.99).mul(l)),l)),[c]);return n>i?kl(d):d}var fj=i1(cj),dj=i1(lj),hj="Invariant failed";function Mr(e,t){throw new Error(hj)}var pj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Cr(e){"@babel/helpers - typeof";return Cr=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},Cr(e)}function Fi(){return Fi=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},Fi.apply(this,arguments)}function vj(e,t){return bj(e)||mj(e,t)||gj(e,t)||yj()}function yj(){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 gj(e,t){if(e){if(typeof e=="string")return hg(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 hg(e,t)}}function hg(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 mj(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 bj(e){if(Array.isArray(e))return e}function xj(e,t){if(e==null)return{};var r=wj(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 wj(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 _j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oj(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,f1(n.key),n)}}function Sj(e,t,r){return t&&Oj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aj(e,t,r){return t=zi(t),Pj(e,c1()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function Pj(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tj(e)}function Tj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c1=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(e)}function jj(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&&Dl(e,t)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dl(e,t)}function l1(e,t,r){return t=f1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1(e){var t=Ej(e,"string");return Cr(t)=="symbol"?t:t+""}function Ej(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vd=function(e){function t(){return _j(this,t),Aj(this,t,arguments)}return jj(t,e),Sj(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=xj(n,pj),v=fe(d,!1);this.props.direction==="x"&&f.type!=="number"&&Mr();var m=s.map(function(p){var h=c(p,u),w=h.x,_=h.y,O=h.value,j=h.errorVal;if(!j)return null;var b=[],x,P;if(Array.isArray(j)){var k=vj(j,2);x=k[0],P=k[1]}else x=P=j;if(a==="vertical"){var D=f.scale,W=_+i,q=W+o,F=W-o,U=D(O-x),$=D(O+P);b.push({x1:$,y1:q,x2:$,y2:F}),b.push({x1:U,y1:W,x2:$,y2:W}),b.push({x1:U,y1:q,x2:U,y2:F})}else if(a==="horizontal"){var C=l.scale,M=w+i,g=M-o,y=M+o,S=C(O-x),E=C(O+P);b.push({x1:g,y1:E,x2:y,y2:E}),b.push({x1:M,y1:S,x2:M,y2:E}),b.push({x1:g,y1:S,x2:y,y2:S})}return L.createElement(ke,Fi({className:"recharts-errorBar",key:"bar-".concat(b.map(function(A){return"".concat(A.x1,"-").concat(A.x2,"-").concat(A.y1,"-").concat(A.y2)}))},v),b.map(function(A){return L.createElement("line",Fi({},A,{key:"line-".concat(A.x1,"-").concat(A.x2,"-").concat(A.y1,"-").concat(A.y2)}))}))});return L.createElement(ke,{className:"recharts-errorBars"},m)}}])}(L.Component);l1(vd,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});l1(vd,"displayName","ErrorBar");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 pg(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 Gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(r),!0).forEach(function(n){Mj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mj(e,t,r){return t=Cj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cj(e){var t=$j(e,"string");return jn(t)=="symbol"?t:t+""}function $j(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d1=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=it(r,tr);if(!o)return null;var u=tr.defaultProps,s=u!==void 0?Gt(Gt({},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,v=l.props,m=v.sectors||v.data||[];return f.concat(m.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,v=d!==void 0?Gt(Gt({},d),l.props):{},m=v.dataKey,p=v.name,h=v.legendType,w=v.hide;return{inactive:w,dataKey:m,type:s.iconType||h||"square",color:yd(l),value:p||m,payload:v}}),Gt(Gt(Gt({},s),tr.getWithHeight(o,i)),{},{payload:c,item:o})};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 vg(e){return Rj(e)||Nj(e)||kj(e)||Ij()}function Ij(){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 kj(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 Nj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rj(e){if(Array.isArray(e))return ql(e)}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 yg(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 Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yg(Object(r),!0).forEach(function(n){xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xr(e,t,r){return t=Dj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dj(e){var t=qj(e,"string");return En(t)=="symbol"?t:t+""}function qj(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tt(e,t,r){return ye(e)||ye(t)?r:Le(t)?pt(e,t,r):he(t)?t(e):r}function ln(e,t,r,n){var i=RT(e,function(u){return tt(u,t)});if(r==="number"){var a=i.filter(function(u){return ne(u)||parseFloat(u)});return a.length?[ka(a),Ia(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!ye(u)}):i;return o.map(function(u){return Le(u)||u instanceof Date?u:""})}var Lj=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==null?void 0: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,v=void 0;if(ot(l-f)!==ot(d-l)){var m=[];if(ot(d-l)===ot(s[1]-s[0])){v=d;var p=l+s[1]-s[0];m[0]=Math.min(p,(p+f)/2),m[1]=Math.max(p,(p+f)/2)}else{v=f;var h=d+s[1]-s[0];m[0]=Math.min(l,(h+l)/2),m[1]=Math.max(l,(h+l)/2)}var w=[Math.min(l,(v+l)/2),Math.max(l,(v+l)/2)];if(t>w[0]&&t<=w[1]||t>=m[0]&&t<=m[1]){o=i[c].index;break}}else{var _=Math.min(f,d),O=Math.max(f,d);if(t>(_+l)/2&&t<=(O+l)/2){o=i[c].index;break}}}else for(var j=0;j<u;j++)if(j===0&&t<=(n[j].coordinate+n[j+1].coordinate)/2||j>0&&j<u-1&&t>(n[j].coordinate+n[j-1].coordinate)/2&&t<=(n[j].coordinate+n[j+1].coordinate)/2||j===u-1&&t>(n[j].coordinate+n[j-1].coordinate)/2){o=n[j].index;break}return o},yd=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ie(Ie({},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},Bj=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,v=l.length;d<v;d++){var m=f[l[d]],p=m.items,h=m.cateAxisId,w=p.filter(function(P){return jt(P.type).indexOf("Bar")>=0});if(w&&w.length){var _=w[0].type.defaultProps,O=_!==void 0?Ie(Ie({},_),w[0].props):w[0].props,j=O.barSize,b=O[h];o[b]||(o[b]=[]);var x=ye(j)?r:j;o[b].push({item:w[0],stackList:w.slice(1),barSize:ye(x)?void 0:Ye(x,n,0)})}}return o},Fj=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=Ye(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,v=i/s,m=o.reduce(function(j,b){return j+b.barSize||0},0);m+=(s-1)*c,m>=i&&(m-=(s-1)*c,c=0),m>=i&&v>0&&(d=!0,v*=.9,m=s*v);var p=(i-m)/2>>0,h={offset:p-c,size:0};f=o.reduce(function(j,b){var x={item:b.item,position:{offset:h.offset+h.size+c,size:d?v:b.barSize}},P=[].concat(vg(j),[x]);return h=P[P.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(k){P.push({item:k,position:h})}),P},l)}else{var w=Ye(n,i,0,!0);i-2*w-(s-1)*c<=0&&(c=0);var _=(i-2*w-(s-1)*c)/s;_>1&&(_>>=0);var O=u===+u?Math.min(_,u):_;f=o.reduce(function(j,b,x){var P=[].concat(vg(j),[{item:b.item,position:{offset:w+(_+c)*x+(_-O)/2,size:O}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(k){P.push({item:k,position:P[P.length-1].position})}),P},l)}return f},zj=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=d1({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,v=c.align,m=c.verticalAlign,p=c.layout;if((p==="vertical"||p==="horizontal"&&m==="middle")&&v!=="center"&&ne(t[v]))return Ie(Ie({},t),{},xr({},v,t[v]+(l||0)));if((p==="horizontal"||p==="vertical"&&v==="center")&&m!=="middle"&&ne(t[m]))return Ie(Ie({},t),{},xr({},m,t[m]+(d||0)))}return t},Uj=function(t,r,n){return ye(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},h1=function(t,r,n,i,a){var o=r.props.children,u=mt(o,vd).filter(function(c){return Uj(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=tt(f,n);if(ye(l))return c;var d=Array.isArray(l)?[ka(l),Ia(l)]:[l,l],v=s.reduce(function(m,p){var h=tt(f,p,0),w=d[0]-Math.abs(Array.isArray(h)?h[0]:h),_=d[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(w,m[0]),Math.max(_,m[1])]},[1/0,-1/0]);return[Math.min(v[0],c[0]),Math.max(v[1],c[1])]},[1/0,-1/0])}return null},Wj=function(t,r,n,i,a){var o=r.map(function(u){return h1(t,u,n,a,i)}).filter(function(u){return!ye(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},p1=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&h1(t,s,c,i)||ln(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},[])},v1=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},un=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==null?void 0:u.length)>=2?ot(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!Vn(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}})},Tc=new WeakMap,li=function(t,r){if(typeof r!="function")return t;Tc.has(t)||Tc.set(t,new WeakMap);var n=Tc.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},Hj=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:wn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Ri(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0)?{scale:cn(),realScaleType:"point"}:a==="category"?{scale:wn(),realScaleType:"band"}:{scale:Ri(),realScaleType:"linear"};if(Xn(i)){var s="scale".concat(ma(i));return{scale:(tg[s]||cn)(),realScaleType:tg[s]?s:"point"}}return he(i)?{scale:i}:{scale:cn(),realScaleType:"point"}},gg=1e-4,Gj=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])-gg,o=Math.max(i[0],i[1])+gg,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},Kj=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=Vn(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])}},Xj=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=Vn(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)}},Vj={sign:Kj,expand:N_,none:wr,silhouette:R_,wiggle:D_,positive:Xj},Yj=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=Vj[n],o=k_().keys(i).value(function(u,s){return+tt(u,s,0)}).order(pl).offset(a);return o(t)},Zj=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 v,m=(v=d.type)!==null&&v!==void 0&&v.defaultProps?Ie(Ie({},d.type.defaultProps),d.props):d.props,p=m.stackId,h=m.hide;if(h)return l;var w=m[n],_=l[w]||{hasStack:!1,stackGroups:{}};if(Le(p)){var O=_.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};O.items.push(d),_.hasStack=!0,_.stackGroups[p]=O}else _.stackGroups[ya("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ie(Ie({},l),{},xr({},w,_))},s),f={};return Object.keys(c).reduce(function(l,d){var v=c[d];if(v.hasStack){var m={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(p,h){var w=v.stackGroups[h];return Ie(Ie({},p),{},xr({},h,{numericAxisId:n,cateAxisId:i,items:w.items,stackedData:Yj(t,w.items,a)}))},m)}return Ie(Ie({},l),{},xr({},d,v))},f)},Qj=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=fj(c,a,u);return t.domain([ka(f),Ia(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=dj(l,a,u);return{niceTicks:d}}return null},Jj=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ie(Ie({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Le(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},eE=function(t){return t.reduce(function(r,n){return[ka(n.concat([r[0]]).filter(ne)),Ia(n.concat([r[1]]).filter(ne))]},[1/0,-1/0])},y1=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=eE(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})},mg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ll=function(t,r,n){if(he(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(ne(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(mg.test(t[0])){var a=+mg.exec(t[0])[1];i[0]=r[0]-a}else he(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(ne(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(bg.test(t[1])){var o=+bg.exec(t[1])[1];i[1]=r[1]+o}else he(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Bl=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=Ff(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},xg=function(t,r,n){return!t||!t.length||dd(t,pt(n,"type.defaultProps.domain"))?r:t},tE=function(t,r){var n=t.type.defaultProps?Ie(Ie({},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 Ie(Ie({},fe(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:yd(t),value:tt(r,i),type:s,payload:r,chartType:c,hide:f})};function Mn(e){"@babel/helpers - typeof";return Mn=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},Mn(e)}function wg(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 At(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){g1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g1(e,t,r){return t=rE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rE(e){var t=nE(e,"string");return Mn(t)=="symbol"?t:t+""}function nE(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iE(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 _g(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 _g(e,t)}}function _g(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)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}var Ui=Math.PI/180,cE=function(t){return t*180/Math.PI},je=function(t,r,n,i){return{x:t+Math.cos(-Ui*i)*n,y:r+Math.sin(-Ui*i)*n}},m1=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},lE=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=Ye(t.cx,o,o/2),l=Ye(t.cy,u,u/2),d=m1(o,u,n),v=Ye(t.innerRadius,d,0),m=Ye(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(h,w){var _=r[w],O=_.domain,j=_.reversed,b;if(ye(_.range))i==="angleAxis"?b=[s,c]:i==="radiusAxis"&&(b=[v,m]),j&&(b=[b[1],b[0]]);else{b=_.range;var x=b,P=iE(x,2);s=P[0],c=P[1]}var k=Hj(_,a),D=k.realScaleType,W=k.scale;W.domain(O).range(b),Gj(W);var q=Qj(W,At(At({},_),{},{realScaleType:D})),F=At(At(At({},_),q),{},{range:b,radius:m,realScaleType:D,scale:W,cx:f,cy:l,innerRadius:v,outerRadius:m,startAngle:s,endAngle:c});return At(At({},h),{},g1({},w,F))},{})},fE=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))},dE=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=fE({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:cE(c),angleInRadian:c}},hE=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}},pE=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},Og=function(t,r){var n=t.x,i=t.y,a=dE({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=hE(r),l=f.startAngle,d=f.endAngle,v=u,m;if(l<=d){for(;v>d;)v-=360;for(;v<l;)v+=360;m=v>=l&&v<=d}else{for(;v>l;)v-=360;for(;v<d;)v+=360;m=v>=d&&v<=l}return m?At(At({},r),{},{radius:o,angle:pE(v,r)}):null},b1=function(t){return!Z.isValidElement(t)&&!he(t)&&typeof t!="boolean"?t.className:""};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)}var vE=["offset"];function yE(e){return xE(e)||bE(e)||mE(e)||gE()}function gE(){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 mE(e,t){if(e){if(typeof e=="string")return Fl(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 Fl(e,t)}}function bE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xE(e){if(Array.isArray(e))return Fl(e)}function Fl(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 wE(e,t){if(e==null)return{};var r=_E(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 _E(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 Sg(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 qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sg(Object(r),!0).forEach(function(n){OE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OE(e,t,r){return t=SE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SE(e){var t=AE(e,"string");return Cn(t)=="symbol"?t:t+""}function AE(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $n(){return $n=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},$n.apply(this,arguments)}var PE=function(t){var r=t.value,n=t.formatter,i=ye(t.children)?r:t.children;return he(n)?n(i):i},TE=function(t,r){var n=ot(r-t),i=Math.min(Math.abs(r-t),360);return n*i},jE=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,v=s.startAngle,m=s.endAngle,p=s.clockWise,h=(l+d)/2,w=TE(v,m),_=w>=0?1:-1,O,j;i==="insideStart"?(O=v+_*o,j=p):i==="insideEnd"?(O=m-_*o,j=!p):i==="end"&&(O=m+_*o,j=p),j=w<=0?j:!j;var b=je(c,f,h,O),x=je(c,f,h,O+(j?1:-1)*359),P="M".concat(b.x,",").concat(b.y,`
    A`).concat(h,",").concat(h,",0,1,").concat(j?0:1,`,
    `).concat(x.x,",").concat(x.y),k=ye(t.id)?ya("recharts-radial-line-"):t.id;return L.createElement("text",$n({},n,{dominantBaseline:"central",className:ge("recharts-radial-bar-label",u)}),L.createElement("defs",null,L.createElement("path",{id:k,d:P})),L.createElement("textPath",{xlinkHref:"#".concat(k)},r))},EE=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 v=je(o,u,c+n,d),m=v.x,p=v.y;return{x:m,y:p,textAnchor:m>=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 h=(s+c)/2,w=je(o,u,h,d),_=w.x,O=w.y;return{x:_,y:O,textAnchor:"middle",verticalAnchor:"middle"}},ME=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,v=l>0?"end":"start",m=l>0?"start":"end",p=c>=0?1:-1,h=p*i,w=p>0?"end":"start",_=p>0?"start":"end";if(a==="top"){var O={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:v};return qe(qe({},O),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var j={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:m};return qe(qe({},j),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var b={x:u-h,y:s+f/2,textAnchor:w,verticalAnchor:"middle"};return qe(qe({},b),n?{width:Math.max(b.x-n.x,0),height:f}:{})}if(a==="right"){var x={x:u+c+h,y:s+f/2,textAnchor:_,verticalAnchor:"middle"};return qe(qe({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:f}:{})}var P=n?{width:c,height:f}:{};return a==="insideLeft"?qe({x:u+h,y:s+f/2,textAnchor:_,verticalAnchor:"middle"},P):a==="insideRight"?qe({x:u+c-h,y:s+f/2,textAnchor:w,verticalAnchor:"middle"},P):a==="insideTop"?qe({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:m},P):a==="insideBottom"?qe({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:v},P):a==="insideTopLeft"?qe({x:u+h,y:s+d,textAnchor:_,verticalAnchor:m},P):a==="insideTopRight"?qe({x:u+c-h,y:s+d,textAnchor:w,verticalAnchor:m},P):a==="insideBottomLeft"?qe({x:u+h,y:s+f-d,textAnchor:_,verticalAnchor:v},P):a==="insideBottomRight"?qe({x:u+c-h,y:s+f-d,textAnchor:w,verticalAnchor:v},P):Wr(a)&&(ne(a.x)||Qt(a.x))&&(ne(a.y)||Qt(a.y))?qe({x:u+Ye(a.x,c),y:s+Ye(a.y,f),textAnchor:"end",verticalAnchor:"end"},P):qe({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},P)},CE=function(t){return"cx"in t&&ne(t.cx)};function We(e){var t=e.offset,r=t===void 0?5:t,n=wE(e,vE),i=qe({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||ye(u)&&ye(s)&&!Z.isValidElement(c)&&!he(c))return null;if(Z.isValidElement(c))return Z.cloneElement(c,i);var v;if(he(c)){if(v=Z.createElement(c,i),Z.isValidElement(v))return v}else v=PE(i);var m=CE(a),p=fe(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return jE(i,v,p);var h=m?EE(i):ME(i);return L.createElement(Pr,$n({className:ge("recharts-label",l)},p,h,{breakAll:d}),v)}We.displayName="Label";var x1=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,v=t.top,m=t.left,p=t.width,h=t.height,w=t.clockWise,_=t.labelViewBox;if(_)return _;if(ne(p)&&ne(h)){if(ne(l)&&ne(d))return{x:l,y:d,width:p,height:h};if(ne(v)&&ne(m))return{x:v,y:m,width:p,height:h}}return ne(l)&&ne(d)?{x:l,y:d,width:0,height:0}:ne(r)&&ne(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:w}:t.viewBox?t.viewBox:{}},$E=function(t,r){return t?t===!0?L.createElement(We,{key:"label-implicit",viewBox:r}):Le(t)?L.createElement(We,{key:"label-implicit",viewBox:r,value:t}):Z.isValidElement(t)?t.type===We?Z.cloneElement(t,{key:"label-implicit",viewBox:r}):L.createElement(We,{key:"label-implicit",content:t,viewBox:r}):he(t)?L.createElement(We,{key:"label-implicit",content:t,viewBox:r}):Wr(t)?L.createElement(We,$n({viewBox:r},t,{key:"label-implicit"})):null:null},IE=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=x1(t),o=mt(i,We).map(function(s,c){return Z.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=$E(t.label,r||a);return[u].concat(yE(o))};We.parseViewBox=x1;We.renderCallByParent=IE;var jc,Ag;function kE(){if(Ag)return jc;Ag=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return jc=e,jc}var NE=kE();const RE=Se(NE);function In(e){"@babel/helpers - typeof";return In=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},In(e)}var DE=["valueAccessor"],qE=["data","dataKey","clockWise","id","textBreakAll"];function LE(e){return UE(e)||zE(e)||FE(e)||BE()}function BE(){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 FE(e,t){if(e){if(typeof e=="string")return zl(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 zl(e,t)}}function zE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UE(e){if(Array.isArray(e))return zl(e)}function zl(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 Wi(){return Wi=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},Wi.apply(this,arguments)}function Pg(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 Tg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pg(Object(r),!0).forEach(function(n){WE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WE(e,t,r){return t=HE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HE(e){var t=GE(e,"string");return In(t)=="symbol"?t:t+""}function GE(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jg(e,t){if(e==null)return{};var r=KE(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 KE(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 XE=function(t){return Array.isArray(t.value)?RE(t.value):t.value};function ir(e){var t=e.valueAccessor,r=t===void 0?XE:t,n=jg(e,DE),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=jg(n,qE);return!i||!i.length?null:L.createElement(ke,{className:"recharts-label-list"},i.map(function(f,l){var d=ye(a)?r(f,l):tt(f&&f.payload,a),v=ye(u)?{}:{id:"".concat(u,"-").concat(l)};return L.createElement(We,Wi({},fe(f,!0),c,v,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:We.parseViewBox(ye(o)?f:Tg(Tg({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}ir.displayName="LabelList";function VE(e,t){return e?e===!0?L.createElement(ir,{key:"labelList-implicit",data:t}):L.isValidElement(e)||he(e)?L.createElement(ir,{key:"labelList-implicit",data:t,content:e}):Wr(e)?L.createElement(ir,Wi({data:t},e,{key:"labelList-implicit"})):null:null}function YE(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=mt(n,ir).map(function(o,u){return Z.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=VE(e.label,t);return[a].concat(LE(i))}ir.renderCallByParent=YE;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)}function Ul(){return Ul=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},Ul.apply(this,arguments)}function Eg(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 Mg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eg(Object(r),!0).forEach(function(n){ZE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZE(e,t,r){return t=QE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QE(e){var t=JE(e,"string");return kn(t)=="symbol"?t:t+""}function JE(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eM=function(t,r){var n=ot(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},fi=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)/Ui,d=c?a:a+o*l,v=je(r,n,f,d),m=je(r,n,i,d),p=c?a-o*l:a,h=je(r,n,f*Math.cos(l*Ui),p);return{center:v,circleTangency:m,lineTangency:h,theta:l}},w1=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=eM(o,u),c=o+s,f=je(r,n,a,o),l=je(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 v=je(r,n,i,o),m=je(r,n,i,c);d+="L ".concat(m.x,",").concat(m.y,`
            A `).concat(i,",").concat(i,`,0,
            `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
            `).concat(v.x,",").concat(v.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},tM=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=ot(f-c),d=fi({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),v=d.circleTangency,m=d.lineTangency,p=d.theta,h=fi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),w=h.circleTangency,_=h.lineTangency,O=h.theta,j=s?Math.abs(c-f):Math.abs(c-f)-p-O;if(j<0)return u?"M ".concat(m.x,",").concat(m.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
      `):w1({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var b="M ".concat(m.x,",").concat(m.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,`
    A`).concat(a,",").concat(a,",0,").concat(+(j>180),",").concat(+(l<0),",").concat(w.x,",").concat(w.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,`
  `);if(i>0){var x=fi({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),P=x.circleTangency,k=x.lineTangency,D=x.theta,W=fi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),q=W.circleTangency,F=W.lineTangency,U=W.theta,$=s?Math.abs(c-f):Math.abs(c-f)-D-U;if($<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="L".concat(F.x,",").concat(F.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(q.x,",").concat(q.y,`
      A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(l>0),",").concat(P.x,",").concat(P.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},rM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},_1=function(t){var r=Mg(Mg({},rM),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 v=ge("recharts-sector",d),m=o-a,p=Ye(u,m,0,!0),h;return p>0&&Math.abs(f-l)<360?h=tM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):h=w1({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),L.createElement("path",Ul({},fe(r,!0),{className:v,d:h,role:"img"}))};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 Wl(){return Wl=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},Wl.apply(this,arguments)}function Cg(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 $g(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(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=aM(e,"string");return Nn(t)=="symbol"?t:t+""}function aM(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(t==="string"?String:Number)(e)}var Ig={curveBasisClosed:O_,curveBasisOpen:S_,curveBasis:__,curveBumpX:s_,curveBumpY:c_,curveLinearClosed:A_,curveLinear:xa,curveMonotoneX:P_,curveMonotoneY:T_,curveNatural:j_,curveStep:E_,curveStepAfter:C_,curveStepBefore:M_},di=function(t){return t.x===+t.x&&t.y===+t.y},tn=function(t){return t.x},rn=function(t){return t.y},oM=function(t,r){if(he(t))return t;var n="curve".concat(ma(t));return(n==="curveMonotone"||n==="curveBump")&&r?Ig["".concat(n).concat(r==="vertical"?"Y":"X")]:Ig[n]||xa},uM=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=oM(n,u),l=c?a.filter(function(p){return di(p)}):a,d;if(Array.isArray(o)){var v=c?o.filter(function(p){return di(p)}):o,m=l.map(function(p,h){return $g($g({},p),{},{base:v[h]})});return u==="vertical"?d=ni().y(rn).x1(tn).x0(function(p){return p.base.x}):d=ni().x(tn).y1(rn).y0(function(p){return p.base.y}),d.defined(di).curve(f),d(m)}return u==="vertical"&&ne(o)?d=ni().y(rn).x1(tn).x0(o):ne(o)?d=ni().x(tn).y1(rn).y0(o):d=A0().x(tn).y(rn),d.defined(di).curve(f),d(l)},Hl=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?uM(t):i;return L.createElement("path",Wl({},fe(t,!1),bi(t),{className:ge("recharts-curve",r),d:o,ref:a}))},Ec={exports:{}},Mc,kg;function sM(){if(kg)return Mc;kg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Mc=e,Mc}var Cc,Ng;function cM(){if(Ng)return Cc;Ng=1;var e=sM();function t(){}function r(){}return r.resetWarningCache=t,Cc=function(){function n(o,u,s,c,f,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Cc}var Rg;function lM(){return Rg||(Rg=1,Ec.exports=cM()()),Ec.exports}var fM=lM();const _e=Se(fM);var dM=Object.getOwnPropertyNames,hM=Object.getOwnPropertySymbols,pM=Object.prototype.hasOwnProperty;function Dg(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function hi(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 qg(e){return dM(e).concat(hM(e))}var vM=Object.hasOwn||function(e,t){return pM.call(e,t)};function fr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var yM="__v",gM="__o",mM="_owner",Lg=Object.getOwnPropertyDescriptor,Bg=Object.keys;function bM(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 xM(e,t){return fr(e.getTime(),t.getTime())}function wM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function _M(e,t){return e===t}function Fg(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,v=u.value;if(r.equals(d[0],v[0],s,l,e,t,r)&&r.equals(d[1],v[1],d[0],v[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}var OM=fr;function SM(e,t,r){var n=Bg(e),i=n.length;if(Bg(t).length!==i)return!1;for(;i-- >0;)if(!O1(e,t,r,n[i]))return!1;return!0}function nn(e,t,r){var n=qg(e),i=n.length;if(qg(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!O1(e,t,r,a)||(o=Lg(e,a),u=Lg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function AM(e,t){return fr(e.valueOf(),t.valueOf())}function PM(e,t){return e.source===t.source&&e.flags===t.flags}function zg(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 TM(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 jM(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 O1(e,t,r,n){return(n===mM||n===gM||n===yM)&&(e.$$typeof||t.$$typeof)?!0:vM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var EM="[object Arguments]",MM="[object Boolean]",CM="[object Date]",$M="[object Error]",IM="[object Map]",kM="[object Number]",NM="[object Object]",RM="[object RegExp]",DM="[object Set]",qM="[object String]",LM="[object URL]",BM=Array.isArray,Ug=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Wg=Object.assign,FM=Object.prototype.toString.call.bind(Object.prototype.toString);function zM(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(m,p,h){if(m===p)return!0;if(m==null||p==null)return!1;var w=typeof m;if(w!==typeof p)return!1;if(w!=="object")return w==="number"?o(m,p,h):w==="function"?i(m,p,h):!1;var _=m.constructor;if(_!==p.constructor)return!1;if(_===Object)return u(m,p,h);if(BM(m))return t(m,p,h);if(Ug!=null&&Ug(m))return l(m,p,h);if(_===Date)return r(m,p,h);if(_===RegExp)return c(m,p,h);if(_===Map)return a(m,p,h);if(_===Set)return f(m,p,h);var O=FM(m);return O===CM?r(m,p,h):O===RM?c(m,p,h):O===IM?a(m,p,h):O===DM?f(m,p,h):O===NM?typeof m.then!="function"&&typeof p.then!="function"&&u(m,p,h):O===LM?d(m,p,h):O===$M?n(m,p,h):O===EM?u(m,p,h):O===MM||O===kM||O===qM?s(m,p,h):!1}}function UM(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?nn:bM,areDatesEqual:xM,areErrorsEqual:wM,areFunctionsEqual:_M,areMapsEqual:n?Dg(Fg,nn):Fg,areNumbersEqual:OM,areObjectsEqual:n?nn:SM,arePrimitiveWrappersEqual:AM,areRegExpsEqual:PM,areSetsEqual:n?Dg(zg,nn):zg,areTypedArraysEqual:n?nn:TM,areUrlsEqual:jM};if(r&&(i=Wg({},i,r(i))),t){var a=hi(i.areArraysEqual),o=hi(i.areMapsEqual),u=hi(i.areObjectsEqual),s=hi(i.areSetsEqual);i=Wg({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function WM(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function HM(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,v=f.meta;return r(s,c,{cache:d,equals:i,meta:v,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 GM=Wt();Wt({strict:!0});Wt({circular:!0});Wt({circular:!0,strict:!0});Wt({createInternalComparator:function(){return fr}});Wt({strict:!0,createInternalComparator:function(){return fr}});Wt({circular:!0,createInternalComparator:function(){return fr}});Wt({circular:!0,createInternalComparator:function(){return fr},strict:!0});function Wt(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=UM(e),s=zM(u),c=n?n(s):WM(s);return HM({circular:r,comparator:s,createState:i,equals:c,strict:o})}function KM(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Hg(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):KM(i)};requestAnimationFrame(n)}function Gl(e){"@babel/helpers - typeof";return Gl=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},Gl(e)}function XM(e){return QM(e)||ZM(e)||YM(e)||VM()}function VM(){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 YM(e,t){if(e){if(typeof e=="string")return Gg(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 Gg(e,t)}}function Gg(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 ZM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QM(e){if(Array.isArray(e))return e}function JM(){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=XM(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Hg(i.bind(null,c),s);return}i(s),Hg(i.bind(null,c));return}Gl(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 Rn(e){"@babel/helpers - typeof";return Rn=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},Rn(e)}function Kg(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 Xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){S1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S1(e,t,r){return t=eC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eC(e){var t=tC(e,"string");return Rn(t)==="symbol"?t:String(t)}function tC(e,t){if(Rn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},nC=function(t){return t},iC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},fn=function(t,r){return Object.keys(r).reduce(function(n,i){return Xg(Xg({},n),{},S1({},i,t(i,r[i])))},{})},Vg=function(t,r,n){return t.map(function(i){return"".concat(iC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function aC(e,t){return sC(e)||uC(e,t)||A1(e,t)||oC()}function oC(){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 uC(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 sC(e){if(Array.isArray(e))return e}function cC(e){return dC(e)||fC(e)||A1(e)||lC()}function lC(){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 A1(e,t){if(e){if(typeof e=="string")return Kl(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 Kl(e,t)}}function fC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dC(e){if(Array.isArray(e))return Kl(e)}function Kl(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 Hi=1e-4,P1=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},T1=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Yg=function(t,r){return function(n){var i=P1(t,r);return T1(i,n)}},hC=function(t,r){return function(n){var i=P1(t,r),a=[].concat(cC(i.map(function(o,u){return o*u}).slice(1)),[0]);return T1(a,n)}},Zg=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(h){return parseFloat(h)}),f=aC(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Yg(i,o),d=Yg(a,u),v=hC(i,o),m=function(w){return w>1?1:w<0?0:w},p=function(w){for(var _=w>1?1:w,O=_,j=0;j<8;++j){var b=l(O)-_,x=v(O);if(Math.abs(b-_)<Hi||x<Hi)return d(O);O=m(O-b/x)}return d(O)};return p.isStepper=!1,p},pC=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 v=-(f-l)*n,m=d*a,p=d+(v-m)*u/1e3,h=d*u/1e3+f;return Math.abs(h-l)<Hi&&Math.abs(p)<Hi?[l,0]:[h,p]};return s.isStepper=!0,s.dt=u,s},vC=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 Zg(i);case"spring":return pC();default:if(i.split("(")[0]==="cubic-bezier")return Zg(i)}return typeof i=="function"?i:null};function Dn(e){"@babel/helpers - typeof";return Dn=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},Dn(e)}function Qg(e){return mC(e)||gC(e)||j1(e)||yC()}function yC(){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 gC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mC(e){if(Array.isArray(e))return Vl(e)}function Jg(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 Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(r),!0).forEach(function(n){Xl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xl(e,t,r){return t=bC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bC(e){var t=xC(e,"string");return Dn(t)==="symbol"?t:String(t)}function xC(e,t){if(Dn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wC(e,t){return SC(e)||OC(e,t)||j1(e,t)||_C()}function _C(){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 j1(e,t){if(e){if(typeof e=="string")return Vl(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 Vl(e,t)}}function Vl(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 OC(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 SC(e){if(Array.isArray(e))return e}var Gi=function(t,r,n){return t+(r-t)*n},Yl=function(t){var r=t.from,n=t.to;return r!==n},AC=function e(t,r,n){var i=fn(function(a,o){if(Yl(o)){var u=t(o.from,o.to,o.velocity),s=wC(u,2),c=s[0],f=s[1];return Ue(Ue({},o),{},{from:c,velocity:f})}return o},r);return n<1?fn(function(a,o){return Yl(o)?Ue(Ue({},o),{},{velocity:Gi(o.velocity,i[a].velocity,n),from:Gi(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const PC=function(e,t,r,n,i){var a=rC(e,t),o=a.reduce(function(h,w){return Ue(Ue({},h),{},Xl({},w,[e[w],t[w]]))},{}),u=a.reduce(function(h,w){return Ue(Ue({},h),{},Xl({},w,{from:e[w],velocity:0,to:t[w]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return fn(function(w,_){return _.from},u)},v=function(){return!Object.values(u).filter(Yl).length},m=function(w){c||(c=w);var _=w-c,O=_/r.dt;u=AC(r,u,O),i(Ue(Ue(Ue({},e),t),d())),c=w,v()||(s=requestAnimationFrame(l))},p=function(w){f||(f=w);var _=(w-f)/n,O=fn(function(b,x){return Gi.apply(void 0,Qg(x).concat([r(_)]))},o);if(i(Ue(Ue(Ue({},e),t),O)),_<1)s=requestAnimationFrame(l);else{var j=fn(function(b,x){return Gi.apply(void 0,Qg(x).concat([r(1)]))},o);i(Ue(Ue(Ue({},e),t),j))}};return l=r.isStepper?m:p,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}};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 TC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function jC(e,t){if(e==null)return{};var r=EC(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 EC(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 $c(e){return IC(e)||$C(e)||CC(e)||MC()}function MC(){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 CC(e,t){if(e){if(typeof e=="string")return Zl(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 Zl(e,t)}}function $C(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IC(e){if(Array.isArray(e))return Zl(e)}function Zl(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 em(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?em(Object(r),!0).forEach(function(n){sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sn(e,t,r){return t=E1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NC(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,E1(n.key),n)}}function RC(e,t,r){return t&&NC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E1(e){var t=DC(e,"string");return $r(t)==="symbol"?t:String(t)}function DC(e,t){if($r(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($r(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qC(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&&Ql(e,t)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,t)}function LC(e){var t=BC();return function(){var n=Ki(e),i;if(t){var a=Ki(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Jl(this,i)}}function Jl(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 ef(e)}function ef(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BC(){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 Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}var Bt=function(e){qC(r,e);var t=LC(r);function r(n,i){var a;kC(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,v=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ef(a)),a.changeStyle=a.changeStyle.bind(ef(a)),!u||v<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Jl(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},Jl(a);a.state={style:s?sn({},s,c):c}}else a.state={style:{}};return a}return RC(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 v={style:s?sn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(v);return}if(!(GM(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=m||c?l:i.to;if(this.state&&d){var h={style:s?sn({},s,p):p};(s&&d[s]!==p||!s&&d!==p)&&this.setState(h)}this.runAnimation(dt(dt({},this.props),{},{from:p,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,v=PC(o,u,vC(c),s,this.changeStyle),m=function(){a.stopJSAnimation=v()};this.manager.start([d,f,m,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,v=function(p,h,w){if(w===0)return p;var _=h.duration,O=h.easing,j=O===void 0?"ease":O,b=h.style,x=h.properties,P=h.onAnimationEnd,k=w>0?o[w-1]:h,D=x||Object.keys(b);if(typeof j=="function"||j==="spring")return[].concat($c(p),[a.runJSAnimation.bind(a,{from:k.style,to:b,duration:_,easing:j}),_]);var W=Vg(D,_,j),q=dt(dt(dt({},k.style),b),{},{transition:W});return[].concat($c(p),[q,_,P]).filter(nC)};return this.manager.start([s].concat($c(o.reduce(v,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=JM());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,v=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof v=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=u?sn({},u,s):s,h=Vg(Object.keys(p),o,c);m.start([f,a,dt(dt({},p),{},{transition:h}),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=jC(i,TC),c=Z.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(v){var m=v.props,p=m.style,h=p===void 0?{}:p,w=m.className,_=Z.cloneElement(v,dt(dt({},s),{},{style:dt(dt({},h),f),className:w}));return _};return c===1?l(Z.Children.only(a)):L.createElement("div",null,Z.Children.map(a,function(d){return l(d)}))}}]),r}(Z.PureComponent);Bt.displayName="Animate";Bt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Bt.propTypes={from:_e.oneOfType([_e.object,_e.string]),to:_e.oneOfType([_e.object,_e.string]),attributeName:_e.string,duration:_e.number,begin:_e.number,easing:_e.oneOfType([_e.string,_e.func]),steps:_e.arrayOf(_e.shape({duration:_e.number.isRequired,style:_e.object.isRequired,easing:_e.oneOfType([_e.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),_e.func]),properties:_e.arrayOf("string"),onAnimationEnd:_e.func})),children:_e.oneOfType([_e.node,_e.func]),isActive:_e.bool,canBegin:_e.bool,onAnimationEnd:_e.func,shouldReAnimate:_e.bool,onAnimationStart:_e.func,onAnimationReStart:_e.func};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 Xi(){return Xi=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},Xi.apply(this,arguments)}function FC(e,t){return HC(e)||WC(e,t)||UC(e,t)||zC()}function zC(){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 UC(e,t){if(e){if(typeof e=="string")return tm(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 tm(e,t)}}function tm(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 WC(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 HC(e){if(Array.isArray(e))return e}function rm(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 nm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rm(Object(r),!0).forEach(function(n){GC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GC(e,t,r){return t=KC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KC(e){var t=XC(e,"string");return qn(t)=="symbol"?t:t+""}function XC(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var im=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,v=4;d<v;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 m=Math.min(o,a);f="M ".concat(t,",").concat(r+u*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+s*m,",").concat(r,`
            L `).concat(t+n-s*m,",").concat(r,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*m,`
            L `).concat(t+n,",").concat(r+i-u*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n-s*m,",").concat(r+i,`
            L `).concat(t+s*m,",").concat(r+i,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},VC=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},YC={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gd=function(t){var r=nm(nm({},YC),t),n=Z.useRef(),i=Z.useState(-1),a=FC(i,2),o=a[0],u=a[1];Z.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var j=n.current.getTotalLength();j&&u(j)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,v=r.className,m=r.animationEasing,p=r.animationDuration,h=r.animationBegin,w=r.isAnimationActive,_=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var O=ge("recharts-rectangle",v);return _?L.createElement(Bt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:p,animationEasing:m,isActive:_},function(j){var b=j.width,x=j.height,P=j.x,k=j.y;return L.createElement(Bt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,isActive:w,easing:m},L.createElement("path",Xi({},fe(r,!0),{className:O,d:im(P,k,b,x,d),ref:n})))}):L.createElement("path",Xi({},fe(r,!0),{className:O,d:im(s,c,f,l,d)}))},ZC=["points","className","baseLinePoints","connectNulls"];function yr(){return yr=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},yr.apply(this,arguments)}function QC(e,t){if(e==null)return{};var r=JC(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 JC(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 am(e){return n$(e)||r$(e)||t$(e)||e$()}function e$(){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 t$(e,t){if(e){if(typeof e=="string")return tf(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 tf(e,t)}}function r$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n$(e){if(Array.isArray(e))return tf(e)}function tf(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 om=function(t){return t&&t.x===+t.x&&t.y===+t.y},i$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){om(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),om(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},dn=function(t,r){var n=i$(t);r&&(n=[n.reduce(function(a,o){return[].concat(am(a),am(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},a$=function(t,r,n){var i=dn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(dn(r.reverse(),n).slice(1))},o$=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=QC(t,ZC);if(!r||!r.length)return null;var u=ge("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=a$(r,i,a);return L.createElement("g",{className:u},L.createElement("path",yr({},fe(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?L.createElement("path",yr({},fe(o,!0),{fill:"none",d:dn(r,a)})):null,s?L.createElement("path",yr({},fe(o,!0),{fill:"none",d:dn(i,a)})):null)}var f=dn(r,a);return L.createElement("path",yr({},fe(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function rf(){return rf=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},rf.apply(this,arguments)}var md=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ge("recharts-dot",a);return r===+r&&n===+n&&i===+i?L.createElement("circle",rf({},fe(t,!1),bi(t),{className:o,cx:r,cy:n,r:i})):null};function Ln(e){"@babel/helpers - typeof";return Ln=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},Ln(e)}var u$=["x","y","top","left","width","height","className"];function nf(){return nf=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},nf.apply(this,arguments)}function um(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 s$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?um(Object(r),!0).forEach(function(n){c$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c$(e,t,r){return t=l$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l$(e){var t=f$(e,"string");return Ln(t)=="symbol"?t:t+""}function f$(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e,t){if(e==null)return{};var r=h$(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 h$(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 p$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},v$=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,v=d===void 0?0:d,m=t.className,p=d$(t,u$),h=s$({x:n,y:a,top:u,left:c,width:l,height:v},p);return!ne(n)||!ne(a)||!ne(l)||!ne(v)||!ne(u)||!ne(c)?null:L.createElement("path",nf({},fe(h,!0),{className:ge("recharts-cross",m),d:p$(n,a,l,v,u,c)}))},Ic,sm;function y$(){if(sm)return Ic;sm=1;var e=$a(),t=Vb(),r=Ot();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Ic=n,Ic}var g$=y$();const m$=Se(g$);var kc,cm;function b$(){if(cm)return kc;cm=1;var e=$a(),t=Ot(),r=Yb();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return kc=n,kc}var x$=b$();const w$=Se(x$);var _$=["cx","cy","angle","ticks","axisLine"],O$=["ticks","tick","angle","tickFormatter","stroke"];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)}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)}function lm(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 Kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(n){Da(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fm(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 A$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dm(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,C1(n.key),n)}}function P$(e,t,r){return t&&dm(e.prototype,t),r&&dm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function T$(e,t,r){return t=Vi(t),j$(e,M1()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function j$(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 E$(e)}function E$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M1=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function M$(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&&af(e,t)}function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},af(e,t)}function Da(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=C$(e,"string");return Ir(t)=="symbol"?t:t+""}function C$(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qa=function(e){function t(){return A$(this,t),T$(this,t,arguments)}return M$(t,e),P$(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return je(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=m$(u,function(f){return f.coordinate||0}),c=w$(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=fm(n,_$),f=u.reduce(function(m,p){return[Math.min(m[0],p.coordinate),Math.max(m[1],p.coordinate)]},[1/0,-1/0]),l=je(i,a,f[0],o),d=je(i,a,f[1],o),v=Kt(Kt(Kt({},fe(c,!1)),{},{fill:"none"},fe(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return L.createElement("line",hn({className:"recharts-polar-radius-axis-line"},v))}},{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=fm(i,O$),l=this.getTickTextAnchor(),d=fe(f,!1),v=fe(o,!1),m=a.map(function(p,h){var w=n.getTickValueCoord(p),_=Kt(Kt(Kt(Kt({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(w.x,", ").concat(w.y,")")},d),{},{stroke:"none",fill:c},v),{},{index:h},w),{},{payload:p});return L.createElement(ke,hn({className:ge("recharts-polar-radius-axis-tick",b1(o)),key:"tick-".concat(p.coordinate)},ga(n.props,p,h)),t.renderTickItem(o,_,s?s(p.value,h):p.value))});return L.createElement(ke,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:L.createElement(ke,{className:ge("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),We.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return L.isValidElement(n)?o=L.cloneElement(n,i):he(n)?o=n(i):o=L.createElement(Pr,hn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(Z.PureComponent);Da(qa,"displayName","PolarRadiusAxis");Da(qa,"axisType","radiusAxis");Da(qa,"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 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 Zt(){return Zt=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},Zt.apply(this,arguments)}function hm(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 Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){La(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pm(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,I1(n.key),n)}}function I$(e,t,r){return t&&pm(e.prototype,t),r&&pm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k$(e,t,r){return t=Yi(t),N$(e,$1()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function N$(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 R$(e)}function R$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($1=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function D$(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&&of(e,t)}function of(e,t){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},of(e,t)}function La(e,t,r){return t=I1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I1(e){var t=q$(e,"string");return kr(t)=="symbol"?t:t+""}function q$(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L$=Math.PI/180,B$=1e-5,Ba=function(e){function t(){return $$(this,t),k$(this,t,arguments)}return D$(t,e),I$(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=je(a,o,u,n.coordinate),d=je(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*L$),o;return a>B$?o=i==="outer"?"start":"end":a<-1e-5?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=Xt(Xt({},fe(this.props,!1)),{},{fill:"none"},fe(u,!1));if(s==="circle")return L.createElement(md,Zt({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(d){return je(i,a,o,d.coordinate)});return L.createElement(o$,Zt({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=fe(this.props,!1),l=fe(o,!1),d=Xt(Xt({},f),{},{fill:"none"},fe(u,!1)),v=a.map(function(m,p){var h=n.getTickLineCoord(m),w=n.getTickTextAnchor(m),_=Xt(Xt(Xt({textAnchor:w},f),{},{stroke:"none",fill:c},l),{},{index:p,payload:m,x:h.x2,y:h.y2});return L.createElement(ke,Zt({className:ge("recharts-polar-angle-axis-tick",b1(o)),key:"tick-".concat(m.coordinate)},ga(n.props,m,p)),u&&L.createElement("line",Zt({className:"recharts-polar-angle-axis-tick-line"},d,h)),o&&t.renderTickItem(o,_,s?s(m.value,p):m.value))});return L.createElement(ke,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:L.createElement(ke,{className:ge("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return L.isValidElement(n)?o=L.cloneElement(n,i):he(n)?o=n(i):o=L.createElement(Pr,Zt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(Z.PureComponent);La(Ba,"displayName","PolarAngleAxis");La(Ba,"axisType","angleAxis");La(Ba,"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 Nc,vm;function F$(){if(vm)return Nc;vm=1;var e=X0(),t=e(Object.getPrototypeOf,Object);return Nc=t,Nc}var Rc,ym;function z$(){if(ym)return Rc;ym=1;var e=kt(),t=F$(),r=Nt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=u.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return Rc=c,Rc}var U$=z$();const W$=Se(U$);var Dc,gm;function H$(){if(gm)return Dc;gm=1;var e=kt(),t=Nt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Dc=n,Dc}var G$=H$();const K$=Se(G$);function Bn(e){"@babel/helpers - typeof";return Bn=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},Bn(e)}function Zi(){return Zi=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},Zi.apply(this,arguments)}function X$(e,t){return Q$(e)||Z$(e,t)||Y$(e,t)||V$()}function V$(){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 Y$(e,t){if(e){if(typeof e=="string")return mm(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 mm(e,t)}}function mm(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 Z$(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 Q$(e){if(Array.isArray(e))return e}function bm(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 xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){J$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J$(e,t,r){return t=eI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eI(e){var t=tI(e,"string");return Bn(t)=="symbol"?t:t+""}function tI(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wm=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},rI={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nI=function(t){var r=xm(xm({},rI),t),n=Z.useRef(),i=Z.useState(-1),a=X$(i,2),o=a[0],u=a[1];Z.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.upperWidth,l=r.lowerWidth,d=r.height,v=r.className,m=r.animationEasing,p=r.animationDuration,h=r.animationBegin,w=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var _=ge("recharts-trapezoid",v);return w?L.createElement(Bt,{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:p,animationEasing:m,isActive:w},function(O){var j=O.upperWidth,b=O.lowerWidth,x=O.height,P=O.x,k=O.y;return L.createElement(Bt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,easing:m},L.createElement("path",Zi({},fe(r,!0),{className:_,d:wm(P,k,j,b,x),ref:n})))}):L.createElement("g",null,L.createElement("path",Zi({},fe(r,!0),{className:_,d:wm(s,c,f,l,d)})))},iI=["option","shapeType","propTransformer","activeClassName","isActive"];function Fn(e){"@babel/helpers - typeof";return Fn=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},Fn(e)}function aI(e,t){if(e==null)return{};var r=oI(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 oI(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 _m(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 Qi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(r),!0).forEach(function(n){uI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uI(e,t,r){return t=sI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sI(e){var t=cI(e,"string");return Fn(t)=="symbol"?t:t+""}function cI(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lI(e,t){return Qi(Qi({},t),e)}function fI(e,t){return e==="symbols"}function Om(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return L.createElement(gd,r);case"trapezoid":return L.createElement(nI,r);case"sector":return L.createElement(_1,r);case"symbols":if(fI(t))return L.createElement(If,r);break;default:return null}}function dI(e){return Z.isValidElement(e)?e.props:e}function hI(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?lI:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=aI(e,iI),c;if(Z.isValidElement(t))c=Z.cloneElement(t,Qi(Qi({},s),dI(t)));else if(he(t))c=t(s);else if(W$(t)&&!K$(t)){var f=i(t,s);c=L.createElement(Om,{shapeType:r,elementProps:f})}else{var l=s;c=L.createElement(Om,{shapeType:r,elementProps:l})}return u?L.createElement(ke,{className:o},c):c}function Fa(e,t){return t!=null&&"trapezoids"in e.props}function za(e,t){return t!=null&&"sectors"in e.props}function zn(e,t){return t!=null&&"points"in e.props}function pI(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 vI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function yI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function gI(e,t){var r;return Fa(e,t)?r=pI:za(e,t)?r=vI:zn(e,t)&&(r=yI),r}function mI(e,t){var r;return Fa(e,t)?r="trapezoids":za(e,t)?r="sectors":zn(e,t)&&(r="points"),r}function bI(e,t){if(Fa(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(za(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 zn(e,t)?t.payload:{}}function xI(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=mI(r,t),a=bI(r,t),o=n.filter(function(s,c){var f=dd(a,s),l=r.props[i].filter(function(m){var p=gI(r,t);return p(m,t)}),d=r.props[i].indexOf(l[l.length-1]),v=c===d;return f&&v}),u=n.indexOf(o[o.length-1]);return u}var mi;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 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 Sm(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 Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sm(Object(r),!0).forEach(function(n){at(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Am(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,N1(n.key),n)}}function _I(e,t,r){return t&&Am(e.prototype,t),r&&Am(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OI(e,t,r){return t=Ji(t),SI(e,k1()?Reflect.construct(t,r||[],Ji(e).constructor):t.apply(e,r))}function SI(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 AI(e)}function AI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k1=function(){return!!e})()}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ji(e)}function PI(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&&uf(e,t)}function uf(e,t){return uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uf(e,t)}function at(e,t,r){return t=N1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N1(e){var t=TI(e,"string");return Nr(t)=="symbol"?t:t+""}function TI(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dt=function(e){function t(r){var n;return wI(this,t),n=OI(this,t,[r]),at(n,"pieRef",null),at(n,"sectorRefs",[]),at(n,"id",ya("recharts-pie-")),at(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),he(i)&&i()}),at(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),he(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return PI(t,e),_I(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=fe(this.props,!1),l=fe(o,!1),d=fe(u,!1),v=o&&o.offsetRadius||20,m=n.map(function(p,h){var w=(p.startAngle+p.endAngle)/2,_=je(p.cx,p.cy,p.outerRadius+v,w),O=Pe(Pe(Pe(Pe({},f),p),{},{stroke:"none"},l),{},{index:h,textAnchor:t.getTextAnchor(_.x,p.cx)},_),j=Pe(Pe(Pe(Pe({},f),p),{},{fill:"none",stroke:p.fill},d),{},{index:h,points:[je(p.cx,p.cy,p.outerRadius,w),_]}),b=s;return ye(s)&&ye(c)?b="value":ye(s)&&(b=c),L.createElement(ke,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(h)},u&&t.renderLabelLineItem(u,j,"line"),t.renderLabelItem(o,O,tt(p,b)))});return L.createElement(ke,{className:"recharts-pie-labels"},m)}},{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==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),d=s&&i.hasActiveIndex()?s:null,v=l?o:d,m=Pe(Pe({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return L.createElement(ke,gr({ref:function(h){h&&!i.sectorRefs.includes(h)&&i.sectorRefs.push(h)},tabIndex:-1,className:"recharts-pie-sector"},ga(i.props,c,f),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(f)}),L.createElement(hI,gr({option:v,isActive:l,shapeType:"sector"},m)))})}},{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,v=l.prevIsAnimationActive;return L.createElement(Bt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var p=m.t,h=[],w=a&&a[0],_=w.startAngle;return a.forEach(function(O,j){var b=d&&d[j],x=j>0?pt(O,"paddingAngle",0):0;if(b){var P=Mh(b.endAngle-b.startAngle,O.endAngle-O.startAngle),k=Pe(Pe({},O),{},{startAngle:_+x,endAngle:_+P(p)+x});h.push(k),_=k.endAngle}else{var D=O.endAngle,W=O.startAngle,q=Mh(0,D-W),F=q(p),U=Pe(Pe({},O),{},{startAngle:_+x,endAngle:_+F+x});h.push(U),_=U.endAngle}}),L.createElement(ke,null,n.renderSectorsStatically(h))})}},{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||!dd(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,v=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!ne(c)||!ne(f)||!ne(l)||!ne(d))return null;var p=ge("recharts-pie",u);return L.createElement(ke,{tabIndex:this.props.rootTabIndex,className:p,ref:function(w){n.pieRef=w}},this.renderSectors(),s&&this.renderLabels(o),We.renderCallByParent(this.props,null,!1),(!v||m)&&ir.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(L.isValidElement(n))return L.cloneElement(n,i);if(he(n))return n(i);var o=ge("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return L.createElement(Hl,gr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(L.isValidElement(n))return L.cloneElement(n,i);var o=a;if(he(n)&&(o=n(i),L.isValidElement(o)))return o;var u=ge("recharts-pie-label-text",typeof n!="boolean"&&!he(n)?n.className:"");return L.createElement(Pr,gr({},i,{alignmentBaseline:"middle",className:u}),o)}}])}(Z.PureComponent);mi=Dt;at(Dt,"displayName","Pie");at(Dt,"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:!Aa.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});at(Dt,"parseDeltaAngle",function(e,t){var r=ot(t-e),n=Math.min(Math.abs(t-e),360);return r*n});at(Dt,"getRealPieData",function(e){var t=e.data,r=e.children,n=fe(e,!1),i=mt(r,Uf);return t&&t.length?t.map(function(a,o){return Pe(Pe(Pe({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Pe(Pe({},n),a.props)}):[]});at(Dt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=m1(i,a),u=n+Ye(e.cx,i,i/2),s=r+Ye(e.cy,a,a/2),c=Ye(e.innerRadius,o,0),f=Ye(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}});at(Dt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Pe(Pe({},t.type.defaultProps),t.props):t.props,i=mi.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,v=Math.abs(n.minAngle),m=mi.parseCoordinateOfPie(n,r),p=mi.parseDeltaAngle(o,u),h=Math.abs(p),w=c;ye(c)&&ye(l)?(Et(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),w="value"):ye(c)&&(Et(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),w=l);var _=i.filter(function(k){return tt(k,w,0)!==0}).length,O=(h>=360?_:_-1)*s,j=h-_*v-O,b=i.reduce(function(k,D){var W=tt(D,w,0);return k+(ne(W)?W:0)},0),x;if(b>0){var P;x=i.map(function(k,D){var W=tt(k,w,0),q=tt(k,f,D),F=(ne(W)?W:0)/b,U;D?U=P.endAngle+ot(p)*s*(W!==0?1:0):U=o;var $=U+ot(p)*((W!==0?v:0)+F*j),C=(U+$)/2,M=(m.innerRadius+m.outerRadius)/2,g=[{name:q,value:W,payload:k,dataKey:w,type:d}],y=je(m.cx,m.cy,M,C);return P=Pe(Pe(Pe({percent:F,cornerRadius:a,name:q,tooltipPayload:g,midAngle:C,middleRadius:M,tooltipPosition:y},k),m),{},{value:tt(k,w),startAngle:U,endAngle:$,payload:k,paddingAngle:ot(p)*s}),P})}return Pe(Pe({},m),{},{sectors:x,data:i})});var qc,Pm;function jI(){if(Pm)return qc;Pm=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return qc=r,qc}var Lc,Tm;function R1(){if(Tm)return Lc;Tm=1;var e=lb(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var a=i<0?-1:1;return a*r}return i===i?i:0}return Lc=n,Lc}var Bc,jm;function EI(){if(jm)return Bc;jm=1;var e=jI(),t=Sa(),r=R1();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return Bc=n,Bc}var Fc,Em;function MI(){if(Em)return Fc;Em=1;var e=EI(),t=e();return Fc=t,Fc}var CI=MI();const ea=Se(CI);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 Mm(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 Cm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mm(Object(r),!0).forEach(function(n){D1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D1(e,t,r){return t=$I(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $I(e){var t=II(e,"string");return Un(t)=="symbol"?t:t+""}function II(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kI=["Webkit","Moz","O","ms"],NI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=kI.reduce(function(a,o){return Cm(Cm({},a),{},D1({},o+n,r))},{});return i[t]=r,i};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 ta(){return ta=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},ta.apply(this,arguments)}function $m(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 zc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$m(Object(r),!0).forEach(function(n){Je(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Im(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,L1(n.key),n)}}function DI(e,t,r){return t&&Im(e.prototype,t),r&&Im(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qI(e,t,r){return t=ra(t),LI(e,q1()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function LI(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 BI(e)}function BI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q1=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function FI(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&&sf(e,t)}function sf(e,t){return sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sf(e,t)}function Je(e,t,r){return t=L1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L1(e){var t=zI(e,"string");return Rr(t)=="symbol"?t:t+""}function zI(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var UI=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=cn().domain(ea(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}},km=function(t){return t.changedTouches&&!!t.changedTouches.length},Dr=function(e){function t(r){var n;return RI(this,t),n=qI(this,t,[r]),Je(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Je(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Je(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Je(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Je(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Je(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Je(n,"handleSlideDragStart",function(i){var a=km(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 FI(t,e),DI(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),v=t.getIndexInRange(o,l),m=t.getIndexInRange(o,d);return{startIndex:v-v%s,endIndex:m===f?f:m-m%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=tt(a[n],u,n);return he(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,v=s.endIndex,m=s.onChange,p=n.pageX-a;p>0?p=Math.min(p,c+f-l-u,c+f-l-o):p<0&&(p=Math.max(p,c-o,c-u));var h=this.getIndex({startX:o+p,endX:u+p});(h.startIndex!==d||h.endIndex!==v)&&m&&m(h),this.setState({startX:o+p,endX:u+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=km(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,v=f.travellerWidth,m=f.onChange,p=f.gap,h=f.data,w={startX:this.state.startX,endX:this.state.endX},_=n.pageX-a;_>0?_=Math.min(_,l+d-v-c):_<0&&(_=Math.max(_,l-c)),w[o]=c+_;var O=this.getIndex(w),j=O.startIndex,b=O.endIndex,x=function(){var k=h.length-1;return o==="startX"&&(u>s?j%p===0:b%p===0)||u<s&&b===k||o==="endX"&&(u>s?b%p===0:j%p===0)||u>s&&b===k};this.setState(Je(Je({},o,c+_),"brushMoveStartX",n.pageX),function(){m&&x()&&m(O)})}},{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 v=u[d];i==="startX"&&v>=c||i==="endX"&&v<=s||this.setState(Je({},i,v),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 L.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=Z.Children.only(c);return l?L.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,v=s.ariaLabel,m=s.data,p=s.startIndex,h=s.endIndex,w=Math.max(n,this.props.x),_=zc(zc({},fe(this.props,!1)),{},{x:w,y:c,width:f,height:l}),O=v||"Min value: ".concat((a=m[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[h])===null||o===void 0?void 0:o.name);return L.createElement(ke,{tabIndex:0,role:"slider","aria-label":O,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),u.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,_))}},{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 L.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill: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,v=5,m={pointerEvents:"none",fill:c};return L.createElement(ke,{className:"recharts-brush-texts"},L.createElement(Pr,ta({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-v,y:o+u/2},m),this.getTextOfTick(i)),L.createElement(Pr,ta({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+v,y:o+u/2},m),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,v=d.startX,m=d.endX,p=d.isTextActive,h=d.isSlideMoving,w=d.isTravellerMoving,_=d.isTravellerFocused;if(!i||!i.length||!ne(u)||!ne(s)||!ne(c)||!ne(f)||c<=0||f<=0)return null;var O=ge("recharts-brush",a),j=L.Children.count(o)===1,b=NI("userSelect","none");return L.createElement(ke,{className:O,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),j&&this.renderPanorama(),this.renderSlide(v,m),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(m,"endX"),(p||h||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 L.createElement(L.Fragment,null,L.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),L.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),L.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 L.isValidElement(n)?a=L.cloneElement(n,i):he(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 zc({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?UI({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(v){return i.scale(v)});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}}])}(Z.PureComponent);Je(Dr,"displayName","Brush");Je(Dr,"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 Uc,Nm;function WI(){if(Nm)return Uc;Nm=1;var e=Bf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Uc=t,Uc}var Wc,Rm;function HI(){if(Rm)return Wc;Rm=1;var e=F0(),t=Ot(),r=WI(),n=Qe(),i=Sa();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Wc=a,Wc}var GI=HI();const KI=Se(GI);var xt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Hc,Dm;function XI(){if(Dm)return Hc;Dm=1;var e=ab();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Hc=t,Hc}var Gc,qm;function VI(){if(qm)return Gc;qm=1;var e=XI(),t=nb(),r=Ot();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Gc=n,Gc}var YI=VI();const ZI=Se(YI);var Kc,Lm;function QI(){if(Lm)return Kc;Lm=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Kc=e,Kc}var Xc,Bm;function JI(){if(Bm)return Xc;Bm=1;var e=Bf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Xc=t,Xc}var Vc,Fm;function ek(){if(Fm)return Vc;Fm=1;var e=QI(),t=JI(),r=Ot(),n=Qe(),i=Sa();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return Vc=a,Vc}var tk=ek();const rk=Se(tk);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 nk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zm(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,B1(n.key),n)}}function ik(e,t,r){return t&&zm(e.prototype,t),r&&zm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Um(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 pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Um(Object(r),!0).forEach(function(n){bd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bd(e,t,r){return t=B1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B1(e){var t=ak(e,"string");return Wn(t)=="symbol"?t:t+""}function ak(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F1=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)}},ok=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return F1({x:r,y:n},{x:i,y:a})},z1=function(){function e(t){nk(this,e),this.scale=t}return ik(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)}}])}();bd(z1,"EPS",1e-4);var xd=function(t){var r=Object.keys(t).reduce(function(n,i){return pi(pi({},n),{},bd({},i,z1.create(t[i])))},{});return pi(pi({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return ZI(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return rk(i,function(a,o){return r[o].isInRange(a)})}})},Yc,Wm;function uk(){if(Wm)return Yc;Wm=1;var e=Ot(),t=Yn(),r=_a();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return Yc=n,Yc}var Zc,Hm;function sk(){if(Hm)return Zc;Hm=1;var e=R1();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Zc=t,Zc}var Qc,Gm;function ck(){if(Gm)return Qc;Gm=1;var e=Q0(),t=Ot(),r=sk(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return Qc=i,Qc}var Jc,Km;function lk(){if(Km)return Jc;Km=1;var e=uk(),t=ck(),r=e(t);return Jc=r,Jc}lk();var fk=p0();const dk=Se(fk);var hk=dk(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("")}),U1=Z.createContext(void 0),W1=Z.createContext(void 0),H1=Z.createContext(void 0),pk=Z.createContext({}),G1=Z.createContext(void 0),vk=Z.createContext(0),yk=Z.createContext(0),Xm=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=hk(a);return L.createElement(U1.Provider,{value:n},L.createElement(W1.Provider,{value:i},L.createElement(pk.Provider,{value:a},L.createElement(H1.Provider,{value:f},L.createElement(G1.Provider,{value:o},L.createElement(vk.Provider,{value:c},L.createElement(yk.Provider,{value:s},u)))))))},gk=function(){return Z.useContext(G1)},mk=function(t){var r=Z.useContext(U1);r==null&&Mr();var n=r[t];return n==null&&Mr(),n},bk=function(t){var r=Z.useContext(W1);r==null&&Mr();var n=r[t];return n==null&&Mr(),n},xk=function(){var t=Z.useContext(H1);return t};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 wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _k(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,X1(n.key),n)}}function Ok(e,t,r){return t&&_k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sk(e,t,r){return t=na(t),Ak(e,K1()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function Ak(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 Pk(e)}function Pk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K1=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function Tk(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&&cf(e,t)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cf(e,t)}function Vm(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 Ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(r),!0).forEach(function(n){wd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wd(e,t,r){return t=X1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X1(e){var t=jk(e,"string");return qr(t)=="symbol"?t:t+""}function jk(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ek(e,t){return Ik(e)||$k(e,t)||Ck(e,t)||Mk()}function Mk(){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 Ck(e,t){if(e){if(typeof e=="string")return Zm(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 Zm(e,t)}}function Zm(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 $k(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 Ik(e){if(Array.isArray(e))return e}function lf(){return lf=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},lf.apply(this,arguments)}var kk=function(t,r){var n;return L.isValidElement(t)?n=L.cloneElement(t,r):he(t)?n=t(r):n=L.createElement("line",lf({},r,{className:"recharts-reference-line-line"})),n},Nk=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,v=a.height;if(n){var m=c.y,p=t.y.apply(m,{position:o});if(xt(c,"discard")&&!t.y.isInRange(p))return null;var h=[{x:f+d,y:p},{x:f,y:p}];return s==="left"?h.reverse():h}if(r){var w=c.x,_=t.x.apply(w,{position:o});if(xt(c,"discard")&&!t.x.isInRange(_))return null;var O=[{x:_,y:l+v},{x:_,y:l}];return u==="top"?O.reverse():O}if(i){var j=c.segment,b=j.map(function(x){return t.apply(x,{position:o})});return xt(c,"discard")&&KI(b,function(x){return!t.isInRange(x)})?null:b}return null};function Rk(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=gk(),f=mk(i),l=bk(a),d=xk();if(!c||!d)return null;Et(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=xd({x:f.scale,y:l.scale}),m=Le(t),p=Le(r),h=n&&n.length===2,w=Nk(v,m,p,h,d,e.position,f.orientation,l.orientation,e);if(!w)return null;var _=Ek(w,2),O=_[0],j=O.x,b=O.y,x=_[1],P=x.x,k=x.y,D=xt(e,"hidden")?"url(#".concat(c,")"):void 0,W=Ym(Ym({clipPath:D},fe(e,!0)),{},{x1:j,y1:b,x2:P,y2:k});return L.createElement(ke,{className:ge("recharts-reference-line",u)},kk(o,W),We.renderCallByParent(e,ok({x1:j,y1:b,x2:P,y2:k})))}var _d=function(e){function t(){return wk(this,t),Sk(this,t,arguments)}return Tk(t,e),Ok(t,[{key:"render",value:function(){return L.createElement(Rk,this.props)}}])}(L.Component);wd(_d,"displayName","ReferenceLine");wd(_d,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ff(){return ff=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},ff.apply(this,arguments)}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 Qm(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 Jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(r),!0).forEach(function(n){Ua(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qk(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,Y1(n.key),n)}}function Lk(e,t,r){return t&&qk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bk(e,t,r){return t=ia(t),Fk(e,V1()?Reflect.construct(t,r||[],ia(e).constructor):t.apply(e,r))}function Fk(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 zk(e)}function zk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V1=function(){return!!e})()}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ia(e)}function Uk(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&&df(e,t)}function df(e,t){return df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},df(e,t)}function Ua(e,t,r){return t=Y1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y1(e){var t=Wk(e,"string");return Lr(t)=="symbol"?t:t+""}function Wk(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hk=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=xd({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return xt(t,"discard")&&!o.isInRange(u)?null:u},Wa=function(e){function t(){return Dk(this,t),Bk(this,t,arguments)}return Uk(t,e),Lk(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=Le(i),f=Le(a);if(Et(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=Hk(this.props);if(!l)return null;var d=l.x,v=l.y,m=this.props,p=m.shape,h=m.className,w=xt(this.props,"hidden")?"url(#".concat(s,")"):void 0,_=Jm(Jm({clipPath:w},fe(this.props,!0)),{},{cx:d,cy:v});return L.createElement(ke,{className:ge("recharts-reference-dot",h)},t.renderDot(p,_),We.renderCallByParent(this.props,{x:d-o,y:v-o,width:2*o,height:2*o}))}}])}(L.Component);Ua(Wa,"displayName","ReferenceDot");Ua(Wa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ua(Wa,"renderDot",function(e,t){var r;return L.isValidElement(e)?r=L.cloneElement(e,t):he(e)?r=e(t):r=L.createElement(md,ff({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function hf(){return hf=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},hf.apply(this,arguments)}function Br(e){"@babel/helpers - typeof";return Br=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},Br(e)}function e0(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 t0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(n){Ha(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kk(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,Q1(n.key),n)}}function Xk(e,t,r){return t&&Kk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vk(e,t,r){return t=aa(t),Yk(e,Z1()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function Yk(e,t){if(t&&(Br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zk(e)}function Zk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z1=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function Qk(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&&pf(e,t)}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pf(e,t)}function Ha(e,t,r){return t=Q1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q1(e){var t=Jk(e,"string");return Br(t)=="symbol"?t:t+""}function Jk(e,t){if(Br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eN=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=xd({x:f.scale,y:l.scale}),v={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return xt(a,"discard")&&(!d.isInRange(v)||!d.isInRange(m))?null:F1(v,m)},Ga=function(e){function t(){return Gk(this,t),Vk(this,t,arguments)}return Qk(t,e),Xk(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;Et(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Le(i),d=Le(a),v=Le(o),m=Le(u),p=this.props.shape;if(!l&&!d&&!v&&!m&&!p)return null;var h=eN(l,d,v,m,this.props);if(!h&&!p)return null;var w=xt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return L.createElement(ke,{className:ge("recharts-reference-area",s)},t.renderRect(p,t0(t0({clipPath:w},fe(this.props,!0)),h)),We.renderCallByParent(this.props,h))}}])}(L.Component);Ha(Ga,"displayName","ReferenceArea");Ha(Ga,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ha(Ga,"renderRect",function(e,t){var r;return L.isValidElement(e)?r=L.cloneElement(e,t):he(e)?r=e(t):r=L.createElement(gd,hf({},t,{className:"recharts-reference-area-rect"})),r});function r0(e){return iN(e)||nN(e)||rN(e)||tN()}function tN(){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 rN(e,t){if(e){if(typeof e=="string")return vf(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 vf(e,t)}}function nN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iN(e){if(Array.isArray(e))return vf(e)}function vf(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 yf=function(t,r,n,i,a){var o=mt(t,_d),u=mt(t,Wa),s=[].concat(r0(o),r0(u)),c=mt(t,Ga),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(p,h){if(h.props[f]===n&&xt(h.props,"extendDomain")&&ne(h.props[l])){var w=h.props[l];return[Math.min(p[0],w),Math.max(p[1],w)]}return p},d)),c.length){var v="".concat(l,"1"),m="".concat(l,"2");d=c.reduce(function(p,h){if(h.props[f]===n&&xt(h.props,"extendDomain")&&ne(h.props[v])&&ne(h.props[m])){var w=h.props[v],_=h.props[m];return[Math.min(p[0],w,_),Math.max(p[1],w,_)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,h){return ne(h)?[Math.min(p[0],h),Math.max(p[1],h)]:p},d)),d},el={exports:{}},n0;function aN(){return n0||(n0=1,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 v=new i(f,l||s,d),m=r?r+c:c;return s._events[m]?s._events[m].fn?s._events[m]=[s._events[m],v]:s._events[m].push(v):(s._events[m]=v,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,v=l.length,m=new Array(v);d<v;d++)m[d]=l[d].fn;return m},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,v,m){var p=r?r+c:c;if(!this._events[p])return!1;var h=this._events[p],w=arguments.length,_,O;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),w){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,l),!0;case 4:return h.fn.call(h.context,f,l,d),!0;case 5:return h.fn.call(h.context,f,l,d,v),!0;case 6:return h.fn.call(h.context,f,l,d,v,m),!0}for(O=1,_=new Array(w-1);O<w;O++)_[O-1]=arguments[O];h.fn.apply(h.context,_)}else{var j=h.length,b;for(O=0;O<j;O++)switch(h[O].once&&this.removeListener(c,h[O].fn,void 0,!0),w){case 1:h[O].fn.call(h[O].context);break;case 2:h[O].fn.call(h[O].context,f);break;case 3:h[O].fn.call(h[O].context,f,l);break;case 4:h[O].fn.call(h[O].context,f,l,d);break;default:if(!_)for(b=1,_=new Array(w-1);b<w;b++)_[b-1]=arguments[b];h[O].fn.apply(h[O].context,_)}}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 v=r?r+c:c;if(!this._events[v])return this;if(!f)return o(this,v),this;var m=this._events[v];if(m.fn)m.fn===f&&(!d||m.once)&&(!l||m.context===l)&&o(this,v);else{for(var p=0,h=[],w=m.length;p<w;p++)(m[p].fn!==f||d&&!m[p].once||l&&m[p].context!==l)&&h.push(m[p]);h.length?this._events[v]=h.length===1?h[0]:h:o(this,v)}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}(el)),el.exports}var oN=aN();const uN=Se(oN);var tl=new uN,rl="recharts.syncMouseEvents";function Hn(e){"@babel/helpers - typeof";return Hn=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},Hn(e)}function sN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cN(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,J1(n.key),n)}}function lN(e,t,r){return t&&cN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nl(e,t,r){return t=J1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J1(e){var t=fN(e,"string");return Hn(t)=="symbol"?t:t+""}function fN(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dN=function(){function e(){sN(this,e),nl(this,"activeIndex",0),nl(this,"coordinateList",[]),nl(this,"layout","horizontal")}return lN(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,v=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=v??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 hN(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&ne(n)&&ne(i))return!0}return!1}function pN(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 ex(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=je(t,r,n,i),u=je(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function vN(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=je(u,s,c,l),v=je(u,s,f,l);n=d.x,i=d.y,a=v.x,o=v.y}else return ex(t);return[{x:n,y:i},{x:a,y:o}]}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 i0(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 vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i0(Object(r),!0).forEach(function(n){yN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yN(e,t,r){return t=gN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gN(e){var t=mN(e,"string");return Gn(t)=="symbol"?t:t+""}function mN(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bN(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,v=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!v||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,p=Hl;if(d==="ScatterChart")m=o,p=v$;else if(d==="BarChart")m=pN(l,o,s,f),p=gd;else if(l==="radial"){var h=ex(o),w=h.cx,_=h.cy,O=h.radius,j=h.startAngle,b=h.endAngle;m={cx:w,cy:_,startAngle:j,endAngle:b,innerRadius:O,outerRadius:O},p=_1}else m={points:vN(l,o,s)},p=Hl;var x=vi(vi(vi(vi({stroke:"#ccc",pointerEvents:"none"},s),m),fe(v,!1)),{},{payload:u,payloadIndex:c,className:ge("recharts-tooltip-cursor",v.className)});return Z.isValidElement(v)?Z.cloneElement(v,x):Z.createElement(p,x)}var xN=["item"],wN=["children","className","width","height","style","compact","title","desc"];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 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 a0(e,t){return SN(e)||ON(e,t)||rx(e,t)||_N()}function _N(){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 ON(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 SN(e){if(Array.isArray(e))return e}function o0(e,t){if(e==null)return{};var r=AN(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 AN(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 PN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TN(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,nx(n.key),n)}}function jN(e,t,r){return t&&TN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EN(e,t,r){return t=oa(t),MN(e,tx()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function MN(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 CN(e)}function CN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tx=function(){return!!e})()}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}function $N(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&&gf(e,t)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function zr(e){return NN(e)||kN(e)||rx(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 rx(e,t){if(e){if(typeof e=="string")return mf(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 mf(e,t)}}function kN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NN(e){if(Array.isArray(e))return mf(e)}function mf(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 u0(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 G(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u0(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ue(e,t,r){return t=nx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nx(e){var t=RN(e,"string");return Fr(t)=="symbol"?t:t+""}function RN(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DN={xAxis:["bottom","top"],yAxis:["left","right"]},qN={width:"100%",height:"100%"},ix={x:0,y:0};function yi(e){return e}var LN=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},BN=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 G(G(G({},i),je(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return G(G(G({},i),je(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return ix},Ka=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(zr(u),zr(c)):u},[]);return o.length>0?o:t&&t.length&&ne(i)&&ne(a)?t.slice(i,a+1):[]};function ax(e){return e==="number"?[0,"auto"]:void 0}var bf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ka(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 v=l===void 0?u:l;d=il(v,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(zr(s),[tE(c,d)]):s},[])},s0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=LN(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=Lj(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=bf(t,r,f,l),v=BN(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:v}}return null},FN=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,v=v1(f,a);return n.reduce(function(m,p){var h,w=p.type.defaultProps!==void 0?G(G({},p.type.defaultProps),p.props):p.props,_=w.type,O=w.dataKey,j=w.allowDataOverflow,b=w.allowDuplicatedCategory,x=w.scale,P=w.ticks,k=w.includeHidden,D=w[o];if(m[D])return m;var W=Ka(t.data,{graphicalItems:i.filter(function(I){var H,V=o in I.props?I.props[o]:(H=I.type.defaultProps)===null||H===void 0?void 0:H[o];return V===D}),dataStartIndex:s,dataEndIndex:c}),q=W.length,F,U,$;hN(w.domain,j,_)&&(F=Ll(w.domain,null,j),v&&(_==="number"||x!=="auto")&&($=ln(W,O,"category")));var C=ax(_);if(!F||F.length===0){var M,g=(M=w.domain)!==null&&M!==void 0?M:C;if(O){if(F=ln(W,O,_),_==="category"&&v){var y=Iw(F);b&&y?(U=F,F=ea(0,q)):b||(F=xg(g,F,p).reduce(function(I,H){return I.indexOf(H)>=0?I:[].concat(zr(I),[H])},[]))}else if(_==="category")b?F=F.filter(function(I){return I!==""&&!ye(I)}):F=xg(g,F,p).reduce(function(I,H){return I.indexOf(H)>=0||H===""||ye(H)?I:[].concat(zr(I),[H])},[]);else if(_==="number"){var S=Wj(W,i.filter(function(I){var H,V,te=o in I.props?I.props[o]:(H=I.type.defaultProps)===null||H===void 0?void 0:H[o],Q="hide"in I.props?I.props.hide:(V=I.type.defaultProps)===null||V===void 0?void 0:V.hide;return te===D&&(k||!Q)}),O,a,f);S&&(F=S)}v&&(_==="number"||x!=="auto")&&($=ln(W,O,"category"))}else v?F=ea(0,q):u&&u[D]&&u[D].hasStack&&_==="number"?F=d==="expand"?[0,1]:y1(u[D].stackGroups,s,c):F=p1(W,i.filter(function(I){var H=o in I.props?I.props[o]:I.type.defaultProps[o],V="hide"in I.props?I.props.hide:I.type.defaultProps.hide;return H===D&&(k||!V)}),_,f,!0);if(_==="number")F=yf(l,F,D,a,P),g&&(F=Ll(g,F,j));else if(_==="category"&&g){var E=g,A=F.every(function(I){return E.indexOf(I)>=0});A&&(F=E)}}return G(G({},m),{},ue({},D,G(G({},w),{},{axisType:a,domain:F,categoricalDomain:$,duplicateDomain:U,originalDomain:(h=w.domain)!==null&&h!==void 0?h:C,isCategorical:v,layout:f})))},{})},zN=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=Ka(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),v=d.length,m=v1(f,a),p=-1;return n.reduce(function(h,w){var _=w.type.defaultProps!==void 0?G(G({},w.type.defaultProps),w.props):w.props,O=_[o],j=ax("number");if(!h[O]){p++;var b;return m?b=ea(0,v):u&&u[O]&&u[O].hasStack?(b=y1(u[O].stackGroups,s,c),b=yf(l,b,O,a)):(b=Ll(j,p1(d,n.filter(function(x){var P,k,D=o in x.props?x.props[o]:(P=x.type.defaultProps)===null||P===void 0?void 0:P[o],W="hide"in x.props?x.props.hide:(k=x.type.defaultProps)===null||k===void 0?void 0:k.hide;return D===O&&!W}),"number",f),i.defaultProps.allowDataOverflow),b=yf(l,b,O,a)),G(G({},h),{},ue({},O,G(G({axisType:a},i.defaultProps),{},{hide:!0,orientation:pt(DN,"".concat(a,".").concat(p%2),null),domain:b,originalDomain:j,isCategorical:m,layout:f})))}return h},{})},UN=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=mt(f,a),v={};return d&&d.length?v=FN(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(v=zN(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),v},WN=function(t){var r=pr(t),n=un(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ff(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Bl(r,n)}},c0=function(t){var r=t.children,n=t.defaultShowTooltip,i=it(r,Dr),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}},HN=function(t){return!t||!t.length?!1:t.some(function(r){var n=jt(r&&r.type);return n&&n.indexOf("Bar")>=0})},l0=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"}},GN=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||{},v=it(l,Dr),m=it(l,tr),p=Object.keys(s).reduce(function(b,x){var P=s[x],k=P.orientation;return!P.mirror&&!P.hide?G(G({},b),{},ue({},k,b[k]+P.width)):b},{left:d.left||0,right:d.right||0}),h=Object.keys(o).reduce(function(b,x){var P=o[x],k=P.orientation;return!P.mirror&&!P.hide?G(G({},b),{},ue({},k,pt(b,"".concat(k))+P.height)):b},{top:d.top||0,bottom:d.bottom||0}),w=G(G({},h),p),_=w.bottom;v&&(w.bottom+=v.props.height||Dr.defaultProps.height),m&&r&&(w=zj(w,i,n,r));var O=c-w.left-w.right,j=f-w.top-w.bottom;return G(G({brushBottom:_},w),{},{width:Math.max(O,0),height:Math.max(j,0)})},KN=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},XN=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(w,_){var O=_.graphicalItems,j=_.stackGroups,b=_.offset,x=_.updateId,P=_.dataStartIndex,k=_.dataEndIndex,D=w.barSize,W=w.layout,q=w.barGap,F=w.barCategoryGap,U=w.maxBarSize,$=l0(W),C=$.numericAxisName,M=$.cateAxisName,g=HN(O),y=[];return O.forEach(function(S,E){var A=Ka(w.data,{graphicalItems:[S],dataStartIndex:P,dataEndIndex:k}),I=S.type.defaultProps!==void 0?G(G({},S.type.defaultProps),S.props):S.props,H=I.dataKey,V=I.maxBarSize,te=I["".concat(C,"Id")],Q=I["".concat(M,"Id")],ae={},J=s.reduce(function(de,ve){var Ne=_["".concat(ve.axisType,"Map")],Me=I["".concat(ve.axisType,"Id")];Ne&&Ne[Me]||ve.axisType==="zAxis"||Mr();var xe=Ne[Me];return G(G({},de),{},ue(ue({},ve.axisType,xe),"".concat(ve.axisType,"Ticks"),un(xe)))},ae),X=J[M],ee=J["".concat(M,"Ticks")],Y=j&&j[te]&&j[te].hasStack&&Jj(S,j[te].stackGroups),T=jt(S.type).indexOf("Bar")>=0,B=Bl(X,ee),R=[],z=g&&Bj({barSize:D,stackGroups:j,totalSize:KN(J,M)});if(T){var K,re,oe=ye(V)?U:V,se=(K=(re=Bl(X,ee,!0))!==null&&re!==void 0?re:oe)!==null&&K!==void 0?K:0;R=Fj({barGap:q,barCategoryGap:F,bandSize:se!==B?se:B,sizeList:z[Q],maxBarSize:oe}),se!==B&&(R=R.map(function(de){return G(G({},de),{},{position:G(G({},de.position),{},{offset:de.position.offset-se/2})})}))}var pe=S&&S.type&&S.type.getComposedData;pe&&y.push({props:G(G({},pe(G(G({},J),{},{displayedData:A,props:w,dataKey:H,item:S,bandSize:B,barPosition:R,offset:b,stackedData:Y,layout:W,dataStartIndex:P,dataEndIndex:k}))),{},ue(ue(ue({key:S.key||"item-".concat(E)},C,J[C]),M,J[M]),"animationId",x)),childIndex:Ww(S,w.children),item:S})}),y},v=function(w,_){var O=w.props,j=w.dataStartIndex,b=w.dataEndIndex,x=w.updateId;if(!Nh({props:O}))return null;var P=O.children,k=O.layout,D=O.stackOffset,W=O.data,q=O.reverseStackOrder,F=l0(k),U=F.numericAxisName,$=F.cateAxisName,C=mt(P,n),M=Zj(W,C,"".concat(U,"Id"),"".concat($,"Id"),D,q),g=s.reduce(function(I,H){var V="".concat(H.axisType,"Map");return G(G({},I),{},ue({},V,UN(O,G(G({},H),{},{graphicalItems:C,stackGroups:H.axisType===U&&M,dataStartIndex:j,dataEndIndex:b}))))},{}),y=GN(G(G({},g),{},{props:O,graphicalItems:C}),_==null?void 0:_.legendBBox);Object.keys(g).forEach(function(I){g[I]=f(O,g[I],y,I.replace("Map",""),r)});var S=g["".concat($,"Map")],E=WN(S),A=d(O,G(G({},g),{},{dataStartIndex:j,dataEndIndex:b,updateId:x,graphicalItems:C,stackGroups:M,offset:y}));return G(G({formattedGraphicalItems:A,graphicalItems:C,offset:y,stackGroups:M},E),g)},m=function(h){function w(_){var O,j,b;return PN(this,w),b=EN(this,w,[_]),ue(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(b,"accessibilityManager",new dN),ue(b,"handleLegendBBoxUpdate",function(x){if(x){var P=b.state,k=P.dataStartIndex,D=P.dataEndIndex,W=P.updateId;b.setState(G({legendBBox:x},v({props:b.props,dataStartIndex:k,dataEndIndex:D,updateId:W},G(G({},b.state),{},{legendBBox:x}))))}}),ue(b,"handleReceiveSyncEvent",function(x,P,k){if(b.props.syncId===x){if(k===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(P)}}),ue(b,"handleBrushChange",function(x){var P=x.startIndex,k=x.endIndex;if(P!==b.state.dataStartIndex||k!==b.state.dataEndIndex){var D=b.state.updateId;b.setState(function(){return G({dataStartIndex:P,dataEndIndex:k},v({props:b.props,dataStartIndex:P,dataEndIndex:k,updateId:D},b.state))}),b.triggerSyncEvent({dataStartIndex:P,dataEndIndex:k})}}),ue(b,"handleMouseEnter",function(x){var P=b.getMouseInfo(x);if(P){var k=G(G({},P),{},{isTooltipActive:!0});b.setState(k),b.triggerSyncEvent(k);var D=b.props.onMouseEnter;he(D)&&D(k,x)}}),ue(b,"triggeredAfterMouseMove",function(x){var P=b.getMouseInfo(x),k=P?G(G({},P),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(k),b.triggerSyncEvent(k);var D=b.props.onMouseMove;he(D)&&D(k,x)}),ue(b,"handleItemMouseEnter",function(x){b.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),ue(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),ue(b,"handleMouseMove",function(x){x.persist(),b.throttleTriggeredAfterMouseMove(x)}),ue(b,"handleMouseLeave",function(x){b.throttleTriggeredAfterMouseMove.cancel();var P={isTooltipActive:!1};b.setState(P),b.triggerSyncEvent(P);var k=b.props.onMouseLeave;he(k)&&k(P,x)}),ue(b,"handleOuterEvent",function(x){var P=Uw(x),k=pt(b.props,"".concat(P));if(P&&he(k)){var D,W;/.*touch.*/i.test(P)?W=b.getMouseInfo(x.changedTouches[0]):W=b.getMouseInfo(x),k((D=W)!==null&&D!==void 0?D:{},x)}}),ue(b,"handleClick",function(x){var P=b.getMouseInfo(x);if(P){var k=G(G({},P),{},{isTooltipActive:!0});b.setState(k),b.triggerSyncEvent(k);var D=b.props.onClick;he(D)&&D(k,x)}}),ue(b,"handleMouseDown",function(x){var P=b.props.onMouseDown;if(he(P)){var k=b.getMouseInfo(x);P(k,x)}}),ue(b,"handleMouseUp",function(x){var P=b.props.onMouseUp;if(he(P)){var k=b.getMouseInfo(x);P(k,x)}}),ue(b,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),ue(b,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&b.handleMouseDown(x.changedTouches[0])}),ue(b,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&b.handleMouseUp(x.changedTouches[0])}),ue(b,"handleDoubleClick",function(x){var P=b.props.onDoubleClick;if(he(P)){var k=b.getMouseInfo(x);P(k,x)}}),ue(b,"handleContextMenu",function(x){var P=b.props.onContextMenu;if(he(P)){var k=b.getMouseInfo(x);P(k,x)}}),ue(b,"triggerSyncEvent",function(x){b.props.syncId!==void 0&&tl.emit(rl,b.props.syncId,x,b.eventEmitterSymbol)}),ue(b,"applySyncEvent",function(x){var P=b.props,k=P.layout,D=P.syncMethod,W=b.state.updateId,q=x.dataStartIndex,F=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)b.setState(G({dataStartIndex:q,dataEndIndex:F},v({props:b.props,dataStartIndex:q,dataEndIndex:F,updateId:W},b.state)));else if(x.activeTooltipIndex!==void 0){var U=x.chartX,$=x.chartY,C=x.activeTooltipIndex,M=b.state,g=M.offset,y=M.tooltipTicks;if(!g)return;if(typeof D=="function")C=D(y,x);else if(D==="value"){C=-1;for(var S=0;S<y.length;S++)if(y[S].value===x.activeLabel){C=S;break}}var E=G(G({},g),{},{x:g.left,y:g.top}),A=Math.min(U,E.x+E.width),I=Math.min($,E.y+E.height),H=y[C]&&y[C].value,V=bf(b.state,b.props.data,C),te=y[C]?{x:k==="horizontal"?y[C].coordinate:A,y:k==="horizontal"?I:y[C].coordinate}:ix;b.setState(G(G({},x),{},{activeLabel:H,activeCoordinate:te,activePayload:V,activeTooltipIndex:C}))}else b.setState(x)}),ue(b,"renderCursor",function(x){var P,k=b.state,D=k.isTooltipActive,W=k.activeCoordinate,q=k.activePayload,F=k.offset,U=k.activeTooltipIndex,$=k.tooltipAxisBandSize,C=b.getTooltipEventType(),M=(P=x.props.active)!==null&&P!==void 0?P:D,g=b.props.layout,y=x.key||"_recharts-cursor";return L.createElement(bN,{key:y,activeCoordinate:W,activePayload:q,activeTooltipIndex:U,chartName:r,element:x,isActive:M,layout:g,offset:F,tooltipAxisBandSize:$,tooltipEventType:C})}),ue(b,"renderPolarAxis",function(x,P,k){var D=pt(x,"type.axisType"),W=pt(b.state,"".concat(D,"Map")),q=x.type.defaultProps,F=q!==void 0?G(G({},q),x.props):x.props,U=W&&W[F["".concat(D,"Id")]];return Z.cloneElement(x,G(G({},U),{},{className:ge(D,U.className),key:x.key||"".concat(P,"-").concat(k),ticks:un(U,!0)}))}),ue(b,"renderPolarGrid",function(x){var P=x.props,k=P.radialLines,D=P.polarAngles,W=P.polarRadius,q=b.state,F=q.radiusAxisMap,U=q.angleAxisMap,$=pr(F),C=pr(U),M=C.cx,g=C.cy,y=C.innerRadius,S=C.outerRadius;return Z.cloneElement(x,{polarAngles:Array.isArray(D)?D:un(C,!0).map(function(E){return E.coordinate}),polarRadius:Array.isArray(W)?W:un($,!0).map(function(E){return E.coordinate}),cx:M,cy:g,innerRadius:y,outerRadius:S,key:x.key||"polar-grid",radialLines:k})}),ue(b,"renderLegend",function(){var x=b.state.formattedGraphicalItems,P=b.props,k=P.children,D=P.width,W=P.height,q=b.props.margin||{},F=D-(q.left||0)-(q.right||0),U=d1({children:k,formattedGraphicalItems:x,legendWidth:F,legendContent:c});if(!U)return null;var $=U.item,C=o0(U,xN);return Z.cloneElement($,G(G({},C),{},{chartWidth:D,chartHeight:W,margin:q,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),ue(b,"renderTooltip",function(){var x,P=b.props,k=P.children,D=P.accessibilityLayer,W=it(k,yt);if(!W)return null;var q=b.state,F=q.isTooltipActive,U=q.activeCoordinate,$=q.activePayload,C=q.activeLabel,M=q.offset,g=(x=W.props.active)!==null&&x!==void 0?x:F;return Z.cloneElement(W,{viewBox:G(G({},M),{},{x:M.left,y:M.top}),active:g,label:C,payload:g?$:[],coordinate:U,accessibilityLayer:D})}),ue(b,"renderBrush",function(x){var P=b.props,k=P.margin,D=P.data,W=b.state,q=W.offset,F=W.dataStartIndex,U=W.dataEndIndex,$=W.updateId;return Z.cloneElement(x,{key:x.key||"_recharts-brush",onChange:li(b.handleBrushChange,x.props.onChange),data:D,x:ne(x.props.x)?x.props.x:q.left,y:ne(x.props.y)?x.props.y:q.top+q.height+q.brushBottom-(k.bottom||0),width:ne(x.props.width)?x.props.width:q.width,startIndex:F,endIndex:U,updateId:"brush-".concat($)})}),ue(b,"renderReferenceElement",function(x,P,k){if(!x)return null;var D=b,W=D.clipPathId,q=b.state,F=q.xAxisMap,U=q.yAxisMap,$=q.offset,C=x.type.defaultProps||{},M=x.props,g=M.xAxisId,y=g===void 0?C.xAxisId:g,S=M.yAxisId,E=S===void 0?C.yAxisId:S;return Z.cloneElement(x,{key:x.key||"".concat(P,"-").concat(k),xAxis:F[y],yAxis:U[E],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:W})}),ue(b,"renderActivePoints",function(x){var P=x.item,k=x.activePoint,D=x.basePoint,W=x.childIndex,q=x.isRange,F=[],U=P.props.key,$=P.item.type.defaultProps!==void 0?G(G({},P.item.type.defaultProps),P.item.props):P.item.props,C=$.activeDot,M=$.dataKey,g=G(G({index:W,dataKey:M,cx:k.x,cy:k.y,r:4,fill:yd(P.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},fe(C,!1)),bi(C));return F.push(w.renderActiveDot(C,g,"".concat(U,"-activePoint-").concat(W))),D?F.push(w.renderActiveDot(C,G(G({},g),{},{cx:D.x,cy:D.y}),"".concat(U,"-basePoint-").concat(W))):q&&F.push(null),F}),ue(b,"renderGraphicChild",function(x,P,k){var D=b.filterFormatItem(x,P,k);if(!D)return null;var W=b.getTooltipEventType(),q=b.state,F=q.isTooltipActive,U=q.tooltipAxis,$=q.activeTooltipIndex,C=q.activeLabel,M=b.props.children,g=it(M,yt),y=D.props,S=y.points,E=y.isRange,A=y.baseLine,I=D.item.type.defaultProps!==void 0?G(G({},D.item.type.defaultProps),D.item.props):D.item.props,H=I.activeDot,V=I.hide,te=I.activeBar,Q=I.activeShape,ae=!!(!V&&F&&g&&(H||te||Q)),J={};W!=="axis"&&g&&g.props.trigger==="click"?J={onClick:li(b.handleItemMouseEnter,x.props.onClick)}:W!=="axis"&&(J={onMouseLeave:li(b.handleItemMouseLeave,x.props.onMouseLeave),onMouseEnter:li(b.handleItemMouseEnter,x.props.onMouseEnter)});var X=Z.cloneElement(x,G(G({},D.props),J));function ee(ve){return typeof U.dataKey=="function"?U.dataKey(ve.payload):null}if(ae)if($>=0){var Y,T;if(U.dataKey&&!U.allowDuplicatedCategory){var B=typeof U.dataKey=="function"?ee:"payload.".concat(U.dataKey.toString());Y=il(S,B,C),T=E&&A&&il(A,B,C)}else Y=S==null?void 0:S[$],T=E&&A&&A[$];if(Q||te){var R=x.props.activeIndex!==void 0?x.props.activeIndex:$;return[Z.cloneElement(x,G(G(G({},D.props),J),{},{activeIndex:R})),null,null]}if(!ye(Y))return[X].concat(zr(b.renderActivePoints({item:D,activePoint:Y,basePoint:T,childIndex:$,isRange:E})))}else{var z,K=(z=b.getItemByXY(b.state.activeCoordinate))!==null&&z!==void 0?z:{graphicalItem:X},re=K.graphicalItem,oe=re.item,se=oe===void 0?x:oe,pe=re.childIndex,de=G(G(G({},D.props),J),{},{activeIndex:pe});return[Z.cloneElement(se,de),null,null]}return E?[X,null,null]:[X,null]}),ue(b,"renderCustomized",function(x,P,k){return Z.cloneElement(x,G(G({key:"recharts-customized-".concat(k)},b.props),b.state))}),ue(b,"renderMap",{CartesianGrid:{handler:yi,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:yi},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:yi},YAxis:{handler:yi},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((O=_.id)!==null&&O!==void 0?O:ya("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=fb(b.triggeredAfterMouseMove,(j=_.throttleDelay)!==null&&j!==void 0?j:1e3/60),b.state={},b}return $N(w,h),jN(w,[{key:"componentDidMount",value:function(){var O,j;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var O=this.props,j=O.children,b=O.data,x=O.height,P=O.layout,k=it(j,yt);if(k){var D=k.props.defaultIndex;if(!(typeof D!="number"||D<0||D>this.state.tooltipTicks.length-1)){var W=this.state.tooltipTicks[D]&&this.state.tooltipTicks[D].value,q=bf(this.state,b,D,W),F=this.state.tooltipTicks[D].coordinate,U=(this.state.offset.top+x)/2,$=P==="horizontal",C=$?{x:F,y:U}:{y:F,x:U},M=this.state.formattedGraphicalItems.find(function(y){var S=y.item;return S.type.name==="Scatter"});M&&(C=G(G({},C),M.props.points[D].tooltipPosition),q=M.props.points[D].tooltipPayload);var g={activeTooltipIndex:D,isTooltipActive:!0,activeLabel:W,activePayload:q,activeCoordinate:C};this.setState(g),this.renderCursor(k),this.accessibilityManager.setIndex(D)}}}},{key:"getSnapshotBeforeUpdate",value:function(O,j){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==j.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==O.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==O.margin){var b,x;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(O){ul([it(O.children,yt)],[it(this.props.children,yt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var O=it(this.props.children,yt);if(O&&typeof O.props.shared=="boolean"){var j=O.props.shared?"axis":"item";return u.indexOf(j)>=0?j:a}return a}},{key:"getMouseInfo",value:function(O){if(!this.container)return null;var j=this.container,b=j.getBoundingClientRect(),x=CA(b),P={chartX:Math.round(O.pageX-x.left),chartY:Math.round(O.pageY-x.top)},k=b.width/j.offsetWidth||1,D=this.inRange(P.chartX,P.chartY,k);if(!D)return null;var W=this.state,q=W.xAxisMap,F=W.yAxisMap,U=this.getTooltipEventType(),$=s0(this.state,this.props.data,this.props.layout,D);if(U!=="axis"&&q&&F){var C=pr(q).scale,M=pr(F).scale,g=C&&C.invert?C.invert(P.chartX):null,y=M&&M.invert?M.invert(P.chartY):null;return G(G({},P),{},{xValue:g,yValue:y},$)}return $?G(G({},P),$):null}},{key:"inRange",value:function(O,j){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,P=O/b,k=j/b;if(x==="horizontal"||x==="vertical"){var D=this.state.offset,W=P>=D.left&&P<=D.left+D.width&&k>=D.top&&k<=D.top+D.height;return W?{x:P,y:k}:null}var q=this.state,F=q.angleAxisMap,U=q.radiusAxisMap;if(F&&U){var $=pr(F);return Og({x:P,y:k},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var O=this.props.children,j=this.getTooltipEventType(),b=it(O,yt),x={};b&&j==="axis"&&(b.props.trigger==="click"?x={onClick:this.handleClick}:x={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 P=bi(this.props,this.handleOuterEvent);return G(G({},P),x)}},{key:"addListener",value:function(){tl.on(rl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tl.removeListener(rl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(O,j,b){for(var x=this.state.formattedGraphicalItems,P=0,k=x.length;P<k;P++){var D=x[P];if(D.item===O||D.props.key===O.key||j===jt(D.item.type)&&b===D.childIndex)return D}return null}},{key:"renderClipPath",value:function(){var O=this.clipPathId,j=this.state.offset,b=j.left,x=j.top,P=j.height,k=j.width;return L.createElement("defs",null,L.createElement("clipPath",{id:O},L.createElement("rect",{x:b,y:x,height:P,width:k})))}},{key:"getXScales",value:function(){var O=this.state.xAxisMap;return O?Object.entries(O).reduce(function(j,b){var x=a0(b,2),P=x[0],k=x[1];return G(G({},j),{},ue({},P,k.scale))},{}):null}},{key:"getYScales",value:function(){var O=this.state.yAxisMap;return O?Object.entries(O).reduce(function(j,b){var x=a0(b,2),P=x[0],k=x[1];return G(G({},j),{},ue({},P,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(O){var j;return(j=this.state.xAxisMap)===null||j===void 0||(j=j[O])===null||j===void 0?void 0:j.scale}},{key:"getYScaleByAxisId",value:function(O){var j;return(j=this.state.yAxisMap)===null||j===void 0||(j=j[O])===null||j===void 0?void 0:j.scale}},{key:"getItemByXY",value:function(O){var j=this.state,b=j.formattedGraphicalItems,x=j.activeItem;if(b&&b.length)for(var P=0,k=b.length;P<k;P++){var D=b[P],W=D.props,q=D.item,F=q.type.defaultProps!==void 0?G(G({},q.type.defaultProps),q.props):q.props,U=jt(q.type);if(U==="Bar"){var $=(W.data||[]).find(function(y){return VC(O,y)});if($)return{graphicalItem:D,payload:$}}else if(U==="RadialBar"){var C=(W.data||[]).find(function(y){return Og(O,y)});if(C)return{graphicalItem:D,payload:C}}else if(Fa(D,x)||za(D,x)||zn(D,x)){var M=xI({graphicalItem:D,activeTooltipItem:x,itemData:F.data}),g=F.activeIndex===void 0?M:F.activeIndex;return{graphicalItem:G(G({},D),{},{childIndex:g}),payload:zn(D,x)?F.data[M]:D.props.data[M]}}}return null}},{key:"render",value:function(){var O=this;if(!Nh(this))return null;var j=this.props,b=j.children,x=j.className,P=j.width,k=j.height,D=j.style,W=j.compact,q=j.title,F=j.desc,U=o0(j,wN),$=fe(U,!1);if(W)return L.createElement(Xm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(cl,mr({},$,{width:P,height:k,title:q,desc:F}),this.renderClipPath(),Dh(b,this.renderMap)));if(this.props.accessibilityLayer){var C,M;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(M=this.props.role)!==null&&M!==void 0?M:"application",$.onKeyDown=function(y){O.accessibilityManager.keyboardEvent(y)},$.onFocus=function(){O.accessibilityManager.focus()}}var g=this.parseEventsOfWrapper();return L.createElement(Xm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement("div",mr({className:ge("recharts-wrapper",x),style:G({position:"relative",cursor:"default",width:P,height:k},D)},g,{ref:function(S){O.container=S}}),L.createElement(cl,mr({},$,{width:P,height:k,title:q,desc:F,style:qN}),this.renderClipPath(),Dh(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(Z.Component);ue(m,"displayName",r),ue(m,"defaultProps",G({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),ue(m,"getDerivedStateFromProps",function(h,w){var _=h.dataKey,O=h.data,j=h.children,b=h.width,x=h.height,P=h.layout,k=h.stackOffset,D=h.margin,W=w.dataStartIndex,q=w.dataEndIndex;if(w.updateId===void 0){var F=c0(h);return G(G(G({},F),{},{updateId:0},v(G(G({props:h},F),{},{updateId:0}),w)),{},{prevDataKey:_,prevData:O,prevWidth:b,prevHeight:x,prevLayout:P,prevStackOffset:k,prevMargin:D,prevChildren:j})}if(_!==w.prevDataKey||O!==w.prevData||b!==w.prevWidth||x!==w.prevHeight||P!==w.prevLayout||k!==w.prevStackOffset||!al(D,w.prevMargin)){var U=c0(h),$={chartX:w.chartX,chartY:w.chartY,isTooltipActive:w.isTooltipActive},C=G(G({},s0(w,O,P)),{},{updateId:w.updateId+1}),M=G(G(G({},U),$),C);return G(G(G({},M),v(G({props:h},M),w)),{},{prevDataKey:_,prevData:O,prevWidth:b,prevHeight:x,prevLayout:P,prevStackOffset:k,prevMargin:D,prevChildren:j})}if(!ul(j,w.prevChildren)){var g,y,S,E,A=it(j,Dr),I=A&&(g=(y=A.props)===null||y===void 0?void 0:y.startIndex)!==null&&g!==void 0?g:W,H=A&&(S=(E=A.props)===null||E===void 0?void 0:E.endIndex)!==null&&S!==void 0?S:q,V=I!==W||H!==q,te=!ye(O),Q=te&&!V?w.updateId:w.updateId+1;return G(G({updateId:Q},v(G(G({props:h},w),{},{updateId:Q,dataStartIndex:I,dataEndIndex:H}),w)),{},{prevChildren:j,dataStartIndex:I,dataEndIndex:H})}return null}),ue(m,"renderActiveDot",function(h,w,_){var O;return Z.isValidElement(h)?O=Z.cloneElement(h,w):he(h)?O=h(w):O=L.createElement(md,w),L.createElement(ke,{className:"recharts-active-dot",key:_},O)});var p=Z.forwardRef(function(w,_){return L.createElement(m,mr({},w,{ref:_}))});return p.displayName=m.displayName,p},VN=XN({chartName:"PieChart",GraphicalChild:Dt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ba},{axisType:"radiusAxis",AxisComp:qa}],formatAxisMap:lE,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function YN({className:e,active:t,payload:r}){return!t||!(r!=null&&r.length)?null:N.jsx("div",{className:or("rounded-lg border bg-background p-2 shadow-sm",e),children:N.jsx("div",{className:"grid grid-cols-2 gap-2",children:r.map(n=>N.jsxs("div",{className:"flex flex-col",children:[N.jsx("span",{className:"text-sm font-medium",children:n.name}),N.jsxs("span",{className:"text-sm font-bold",style:{color:n.color},children:[n.value," GB"]})]},n.name))})})}function ZN({data:e,colors:t,innerRadius:r=60,outerRadius:n=80,paddingAngle:i=2,label:a,labelProps:o,className:u}){const c=t||["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"];return N.jsx("div",{className:or("w-full h-full",u),children:N.jsx(SA,{width:"100%",height:"100%",children:N.jsxs(VN,{children:[N.jsx(Dt,{data:e,cx:"50%",cy:"50%",innerRadius:r,outerRadius:n,paddingAngle:i,dataKey:"value",startAngle:90,endAngle:-270,children:e.map((f,l)=>N.jsx(Uf,{stroke:"none",fill:c[l%c.length]},`cell-${l}`))}),a&&N.jsx("text",{x:"50%",y:"40%",textAnchor:"middle",dominantBaseline:"middle",alignmentBaseline:"middle",fontSize:(o==null?void 0:o.fontSize)||20,fontWeight:(o==null?void 0:o.fontWeight)||"bold",fill:"currentColor",...o,children:a}),N.jsx(yt,{content:N.jsx(YN,{})}),N.jsx(tr,{layout:"horizontal",verticalAlign:"bottom",align:"center",wrapperStyle:{paddingTop:"20px"},formatter:f=>N.jsx("span",{style:{color:"var(--foreground)",margin:5},children:f})})]})})})}const QN=({service:e})=>{const t=e.total_traffic_gb===0?0:Math.round(e.used_traffic_gb/e.total_traffic_gb*100);return N.jsx(ua.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.1},children:N.jsxs(sa,{className:"mb-6",children:[N.jsx(ca,{children:N.jsx(la,{className:"text-xl text-right",children:"مصرف ترافیک"})}),N.jsx(xf,{children:N.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[N.jsx("div",{className:"w-48 h-70",children:N.jsx(ZN,{data:[{name:"مصرف شده",value:e.used_traffic_gb},{name:"باقی‌مانده",value:e.total_traffic_gb===0?100:e.remaining_traffic_gb}],colors:["var(--color-red-500)","var(--color-green-500)"],label:`${100-t}%`,labelProps:{fontSize:28,fontWeight:"bold"}})}),N.jsx("div",{className:"flex-1 w-full space-y-4 text-right",children:N.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[N.jsxs("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-3 rounded-lg",children:[N.jsx("p",{className:"text-muted-foreground text-sm",children:"کل ترافیک"}),N.jsxs("p",{className:"text-lg font-bold text-center",children:[e.total_traffic_gb," گیگابایت"]})]}),N.jsxs("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-3 rounded-lg",children:[N.jsx("p",{className:"text-muted-foreground text-sm",children:"مصرف شده"}),N.jsxs("p",{className:"text-lg font-bold text-red-500 text-center",children:[e.used_traffic_gb," گیگابایت"]})]}),N.jsxs("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-3 rounded-lg",children:[N.jsx("p",{className:"text-muted-foreground text-sm",children:"باقی‌مانده"}),N.jsxs("p",{className:"text-lg font-bold text-green-500 text-center",children:[e.remaining_traffic_gb," گیگابایت"]})]}),N.jsxs("div",{className:"bg-neutral-100 dark:bg-neutral-800 p-3 rounded-lg",children:[N.jsx("p",{className:"text-muted-foreground text-sm",children:"درصد مصرف"}),N.jsxs("p",{className:"text-lg font-bold text-center",children:[t,"%"]})]})]})})]})})]})})},JN=({service:e})=>N.jsx(ua.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.2},children:N.jsxs(sa,{className:"mb-6",children:[N.jsx(ca,{children:N.jsx(la,{className:"text-xl text-right",children:"اطلاعات سرویس"})}),N.jsx(xf,{children:N.jsxs("div",{className:"space-y-4 text-right",children:[N.jsxs("div",{className:"flex items-center justify-between border-b pb-2",children:[N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(xx,{className:"h-4 w-4 text-muted-foreground"}),N.jsx("span",{className:"text-muted-foreground",children:"تاریخ انقضا:"})]}),N.jsx("span",{children:e.expiration_time})]}),e.last_subscription_update&&N.jsxs("div",{className:"flex items-center justify-between border-b pb-2",children:[N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(wx,{className:"h-4 w-4 text-muted-foreground"}),N.jsx("span",{className:"text-muted-foreground",children:"آخرین بروزرسانی:"})]}),N.jsx("span",{children:e.last_subscription_update})]}),N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx("div",{className:`h-2 w-2 rounded-full ${e.online_at==="online"?"bg-green-500":"bg-neutral-500"}`}),N.jsx("span",{className:"text-muted-foreground",children:"وضعیت اتصال:"})]}),N.jsx("span",{children:e.online_at==="online"?"آنلاین":`${e.online_at}`})]})]})})]})}),eR=()=>{const e=f0();return N.jsx("div",{className:"flex justify-center mb-6",children:N.jsxs(Ke,{variant:"outline",size:"sm",onClick:()=>e("/services"),className:"flex items-center gap-1 rounded-full",children:[N.jsx(Ox,{className:"h-4 w-4"}),N.jsx("span",{children:"بازگشت به سرویس‌ها"})]})})},tR=({children:e})=>N.jsx("div",{className:"container mx-auto px-4 py-8 font-vazir",children:e});function dR(){const{username:e}=ox(),{user:t}=cx(),[r,n]=Z.useState(),[i,a]=Z.useState(!0),[o,u]=Z.useState(null),s=f0(),c=typeof(r==null?void 0:r.status)=="string"?r==null?void 0:r.status:"unknown";return Z.useEffect(()=>{(async()=>{try{a(!0);const l=await lx(t==null?void 0:t.id,e);n(l)}catch(l){console.error("Error fetching service details:",l),u("خطا در دریافت اطلاعات سرویس")}finally{a(!1)}})()},[e,t==null?void 0:t.id]),N.jsx(sx,{children:N.jsxs(tR,{children:[N.jsx(eR,{}),i&&N.jsx("div",{className:"flex justify-center items-center min-h-[60vh]",children:N.jsxs("div",{className:"animate-pulse flex flex-col items-center",children:[N.jsx("div",{className:"h-8 w-48 bg-neutral-200 dark:bg-neutral-700 rounded mb-4"}),N.jsx("div",{className:"h-4 w-32 bg-neutral-200 dark:bg-neutral-700 rounded"})]})}),!i&&(o||!r||c.toLowerCase()==="unsuccessful")&&N.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh]",children:[N.jsx("div",{className:"text-destructive text-xl mb-4",children:o||"اطلاعات سرویس یافت نشد"}),N.jsx(Ke,{onClick:()=>s("/services"),children:"بازگشت به لیست سرویس‌ها"})]}),!i&&r&&c.toLowerCase()!=="unsuccessful"&&N.jsxs("div",{className:"max-w-2xl mx-auto mb-16",children:[N.jsx(Hx,{service:r}),N.jsx(QN,{service:r}),N.jsx(JN,{service:r}),N.jsx(Ux,{service_output:r==null?void 0:r.service_output})]})]})})}export{dR as default};
