Plugin Directory

Changeset 3161792


Ignore:
Timestamp:
10/02/2024 11:57:42 PM (16 months ago)
Author:
iyzico
Message:

+new version 3.5.6

Location:
iyzico-woocommerce
Files:
544 added
1 deleted
24 edited

Legend:

Unmodified
Added
Removed
  • iyzico-woocommerce/trunk/assets/admin/index.asset.php

    r3161557 r3161792  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => 'cc82192b744b7557d31f');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '5389b489ae44e8cc38da');
  • iyzico-woocommerce/trunk/assets/admin/index.js

    r3161557 r3161792  
    1 (()=>{var t={8351:function(t,e,r){var n;!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c=!0,u="[DecimalError] ",l=u+"Invalid argument: ",s=u+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=1e7,y=f(1286742750677284.5),v={};function m(t,e){var r,n,o,i,a,u,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),c?k(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,u=s.length):(n=s,o=a,u=l.length),i>(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=l.length)-(i=s.length)<0&&(i=u,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/d|0,l[i]%=d;for(r&&(l.unshift(r),++o),u=l.length;0==l[--u];)l.pop();return e.d=l,e.e=o,c?k(e,p):e}function g(t,e,r){if(t!==~~t||t<e||t>r)throw Error(l+t)}function b(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(r=7-(n=t[e]+"").length)&&(i+=j(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=j(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}v.absoluteValue=v.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},v.comparedTo=v.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},v.decimalPlaces=v.dp=function(){var t=this,e=t.d.length-1,r=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},v.dividedBy=v.div=function(t){return x(this,new this.constructor(t))},v.dividedToIntegerBy=v.idiv=function(t){var e=this.constructor;return k(x(this,new e(t),0,1),e.precision)},v.equals=v.eq=function(t){return!this.cmp(t)},v.exponent=function(){return O(this)},v.greaterThan=v.gt=function(t){return this.cmp(t)>0},v.greaterThanOrEqualTo=v.gte=function(t){return this.cmp(t)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(t){return this.cmp(t)<0},v.lessThanOrEqualTo=v.lte=function(t){return this.cmp(t)<1},v.logarithm=v.log=function(t){var e,r=this,n=r.constructor,i=n.precision,a=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(o))throw Error(u+"NaN");if(r.s<1)throw Error(u+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(c=!1,e=x(E(r,a),E(t,a),a),c=!0,k(e,i))},v.minus=v.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?P(e,t):m(e,(t.s=-t.s,t))},v.modulo=v.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(u+"NaN");return r.s?(c=!1,e=x(r,t,0,1).times(t),c=!0,r.minus(e)):k(new n(r),o)},v.naturalExponential=v.exp=function(){return w(this)},v.naturalLogarithm=v.ln=function(){return E(this)},v.negated=v.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},v.plus=v.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?m(e,t):P(e,(t.s=-t.s,t))},v.precision=v.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=O(o)+1,r=7*(n=o.d.length-1)+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},v.squareRoot=v.sqrt=function(){var t,e,r,n,o,i,a,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(u+"NaN")}for(t=O(l),c=!1,0==(o=Math.sqrt(+l))||o==1/0?(((e=b(l.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new s(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new s(o.toString()),o=a=(r=s.precision)+3;;)if(n=(i=n).plus(x(l,i,a+2)).times(.5),b(i.d).slice(0,a)===(e=b(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(k(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if("9999"!=e)break;a+=4}return c=!0,k(n,r)},v.times=v.mul=function(t){var e,r,n,o,i,a,u,l,s,f=this,p=f.constructor,h=f.d,y=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,r=f.e+t.e,(l=h.length)<(s=y.length)&&(i=h,h=y,y=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)u=i[o]+y[n]*h[o-n-1]+e,i[o--]=u%d|0,e=u/d|0;i[o]=(i[o]+e)%d|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,c?k(t,p.precision):t},v.toDecimalPlaces=v.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(g(t,0,i),void 0===e?e=n.rounding:g(e,0,8),k(r,t+O(r)+1,e))},v.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=_(n,!0):(g(t,0,i),void 0===e?e=o.rounding:g(e,0,8),r=_(n=k(new o(n),t+1,e),!0,t+1)),r},v.toFixed=function(t,e){var r,n,o=this,a=o.constructor;return void 0===t?_(o):(g(t,0,i),void 0===e?e=a.rounding:g(e,0,8),r=_((n=k(new a(o),t+O(o)+1,e)).abs(),!1,t+O(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},v.toInteger=v.toint=function(){var t=this,e=t.constructor;return k(new e(t),O(t)+1,e.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(t){var e,r,n,i,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(o);if(!(s=new p(s)).s){if(t.s<1)throw Error(u+"Infinity");return s}if(s.eq(o))return s;if(n=p.precision,t.eq(o))return k(s,n);if(l=(e=t.e)>=(r=t.d.length-1),a=s.s,l){if((r=h<0?-h:h)<=9007199254740991){for(i=new p(o),e=Math.ceil(n/7+4),c=!1;r%2&&T((i=i.times(s)).d,e),0!==(r=f(r/2));)T((s=s.times(s)).d,e);return c=!0,t.s<0?new p(o).div(i):k(i,n)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,c=!1,i=t.times(E(s,n+12)),c=!0,(i=w(i)).s=a,i},v.toPrecision=function(t,e){var r,n,o=this,a=o.constructor;return void 0===t?n=_(o,(r=O(o))<=a.toExpNeg||r>=a.toExpPos):(g(t,1,i),void 0===e?e=a.rounding:g(e,0,8),n=_(o=k(new a(o),t,e),t<=(r=O(o))||r<=a.toExpNeg,t)),n},v.toSignificantDigits=v.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(g(t,1,i),void 0===e?e=r.rounding:g(e,0,8)),k(new r(this),t,e)},v.toString=v.valueOf=v.val=v.toJSON=function(){var t=this,e=O(t),r=t.constructor;return _(t,e<=r.toExpNeg||e>=r.toExpPos)};var x=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%d|0,n=r/d|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*d+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,l,s,f,p,h,y,v,m,g,b,x,w,S,j,E,A,P,_=n.constructor,T=n.s==o.s?1:-1,M=n.d,C=o.d;if(!n.s)return new _(n);if(!o.s)throw Error(u+"Division by zero");for(l=n.e-o.e,A=C.length,j=M.length,v=(y=new _(T)).d=[],s=0;C[s]==(M[s]||0);)++s;if(C[s]>(M[s]||0)&&--l,(x=null==i?i=_.precision:a?i+(O(n)-O(o))+1:i)<0)return new _(0);if(x=x/7+2|0,s=0,1==A)for(f=0,C=C[0],x++;(s<j||f)&&x--;s++)w=f*d+(M[s]||0),v[s]=w/C|0,f=w%C|0;else{for((f=d/(C[0]+1)|0)>1&&(C=t(C,f),M=t(M,f),A=C.length,j=M.length),S=A,g=(m=M.slice(0,A)).length;g<A;)m[g++]=0;(P=C.slice()).unshift(0),E=C[0],C[1]>=d/2&&++E;do{f=0,(c=e(C,m,A,g))<0?(b=m[0],A!=g&&(b=b*d+(m[1]||0)),(f=b/E|0)>1?(f>=d&&(f=d-1),1==(c=e(p=t(C,f),m,h=p.length,g=m.length))&&(f--,r(p,A<h?P:C,h))):(0==f&&(c=f=1),p=C.slice()),(h=p.length)<g&&p.unshift(0),r(m,p,g),-1==c&&(c=e(C,m,A,g=m.length))<1&&(f++,r(m,A<g?P:C,g)),g=m.length):0===c&&(f++,m=[0]),v[s++]=f,c&&m[0]?m[g++]=M[S]||0:(m=[M[S]],g=1)}while((S++<j||void 0!==m[0])&&x--)}return v[0]||v.shift(),y.e=l,k(y,a?i+O(y)+1:i)}}();function w(t,e){var r,n,i,a,u,l=0,f=0,h=t.constructor,d=h.precision;if(O(t)>16)throw Error(s+O(t));if(!t.s)return new h(o);for(null==e?(c=!1,u=d):u=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=i=new h(o),h.precision=u;;){if(n=k(n.times(t),u),r=r.times(++l),b((a=i.plus(x(n,r,u))).d).slice(0,u)===b(i.d).slice(0,u)){for(;f--;)i=k(i.times(i),u);return h.precision=d,null==e?(c=!0,k(i,d)):i}i=a}}function O(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function S(t,e,r){if(e>t.LN10.sd())throw c=!0,r&&(t.precision=r),Error(u+"LN10 precision limit exceeded");return k(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function E(t,e){var r,n,i,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,g=m.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(c=!1,p=g):p=e,y.eq(10))return null==e&&(c=!0),S(m,p);if(p+=10,m.precision=p,n=(r=b(v)).charAt(0),a=O(y),!(Math.abs(a)<15e14))return f=S(m,p+2,g).times(a+""),y=E(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=g,null==e?(c=!0,k(y,g)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=b((y=y.times(t)).d)).charAt(0),d++;for(a=O(y),n>1?(y=new m("0."+r),a++):y=new m(n+"."+r.slice(1)),s=l=y=x(y.minus(o),y.plus(o),p),h=k(y.times(y),p),i=3;;){if(l=k(l.times(h),p),b((f=s.plus(x(l,new m(i),p))).d).slice(0,p)===b(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(S(m,p+2,g).times(a+""))),s=x(s,new m(d),p),m.precision=g,null==e?(c=!0,k(s,g)):s;s=f,i+=2}}function A(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=f(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=7;n<o;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),c&&(t.e>y||t.e<-y))throw Error(s+r)}else t.s=0,t.e=0,t.d=[0];return t}function k(t,e,r){var n,o,i,a,u,l,h,v,m=t.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,h=m[v=0];else{if((v=Math.ceil((n+1)/7))>=(i=m.length))return t;for(h=i=m[v],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(u=h/(i=p(10,a-o-1))%10|0,l=e<0||void 0!==m[v+1]||h%i,l=r<4?(u||l)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||l||6==r&&(n>0?o>0?h/p(10,a-o):0:m[v-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return l?(i=O(t),m.length=1,e=e-i-1,m[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==n?(m.length=v,i=1,v--):(m.length=v+1,i=p(10,7-n),m[v]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==v){(m[0]+=i)==d&&(m[0]=1,++t.e);break}if(m[v]+=i,m[v]!=d)break;m[v--]=0,i=1}for(n=m.length;0===m[--n];)m.pop();if(c&&(t.e>y||t.e<-y))throw Error(s+O(t));return t}function P(t,e){var r,n,o,i,a,u,l,s,f,p,h=t.constructor,y=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),c?k(e,y):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,u=p.length):(r=p,n=s,u=l.length),a>(o=Math.max(Math.ceil(y/7),u)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(u=p.length))&&(u=o),o=0;o<u;o++)if(l[o]!=p[o]){f=l[o]<p[o];break}a=0}for(f&&(r=l,l=p,p=r,e.s=-e.s),u=l.length,o=p.length-u;o>0;--o)l[u++]=0;for(o=p.length;o>a;){if(l[--o]<p[o]){for(i=o;i&&0===l[--i];)l[i]=d-1;--l[i],l[o]+=d}l[o]-=p[o]}for(;0===l[--u];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,c?k(e,y):e):new h(0)}function _(t,e,r){var n,o=O(t),i=b(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+j(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,r&&(n=r-a)>0&&(i+=j(n))):o>=a?(i+=j(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+j(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=j(n))),t.s<0?"-"+i:i}function T(t,e){if(t.length>e)return t.length=e,!0}function M(t){if(!t||"object"!=typeof t)throw Error(u+"Object expected");var e,r,n,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(f(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(l+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(l+r+": "+n);this[r]=new this(n)}return this}(a=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):A(e,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!h.test(t))throw Error(l+t);A(e,t)}if(i.prototype=v,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=M,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}(a)).default=a.Decimal=a,o=new a(1),void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},228:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c},5580:(t,e,r)=>{var n=r(6110)(r(9325),"DataView");t.exports=n},1549:(t,e,r)=>{var n=r(2032),o=r(3862),i=r(6721),a=r(2749),c=r(5749);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},79:(t,e,r)=>{var n=r(3702),o=r(80),i=r(4739),a=r(8655),c=r(1175);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8223:(t,e,r)=>{var n=r(6110)(r(9325),"Map");t.exports=n},3661:(t,e,r)=>{var n=r(3040),o=r(7670),i=r(289),a=r(4509),c=r(2949);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},2804:(t,e,r)=>{var n=r(6110)(r(9325),"Promise");t.exports=n},6545:(t,e,r)=>{var n=r(6110)(r(9325),"Set");t.exports=n},8859:(t,e,r)=>{var n=r(3661),o=r(1380),i=r(1459);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},7217:(t,e,r)=>{var n=r(79),o=r(1420),i=r(938),a=r(3605),c=r(9817),u=r(945);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=c,l.prototype.set=u,t.exports=l},1873:(t,e,r)=>{var n=r(9325).Symbol;t.exports=n},7828:(t,e,r)=>{var n=r(9325).Uint8Array;t.exports=n},8303:(t,e,r)=>{var n=r(6110)(r(9325),"WeakMap");t.exports=n},1033:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7277:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},9770:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},5325:(t,e,r)=>{var n=r(6131);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9905:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},695:(t,e,r)=>{var n=r(8096),o=r(2428),i=r(6449),a=r(3656),c=r(361),u=r(7167),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&u(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)!e&&!l.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,y))||d.push(v);return d}},4932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},4528:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4248:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},1074:t=>{t.exports=function(t){return t.split("")}},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},3360:(t,e,r)=>{var n=r(3243);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},909:(t,e,r)=>{var n=r(641),o=r(8329)(n);t.exports=o},3777:(t,e,r)=>{var n=r(909);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,o){return r=!!e(t,n,o)})),r}},3599:(t,e,r)=>{var n=r(4394);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(void 0===u?c==c&&!n(c):r(c,u)))var u=c,l=a}return l}},2523:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},3120:(t,e,r)=>{var n=r(4528),o=r(5891);t.exports=function t(e,r,i,a,c){var u=-1,l=e.length;for(i||(i=o),c||(c=[]);++u<l;){var s=e[u];r>0&&i(s)?r>1?t(s,r-1,i,a,c):n(c,s):a||(c[c.length]=s)}return c}},6649:(t,e,r)=>{var n=r(3221)();t.exports=n},641:(t,e,r)=>{var n=r(6649),o=r(5950);t.exports=function(t,e){return t&&n(t,e,o)}},7422:(t,e,r)=>{var n=r(1769),o=r(7797);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4580:(t,e,r)=>{var n=r(4528),o=r(6449);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},2552:(t,e,r)=>{var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},3335:t=>{t.exports=function(t,e){return t>e}},8077:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6131:(t,e,r)=>{var n=r(2523),o=r(5463),i=r(6959);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},7534:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270:(t,e,r)=>{var n=r(7068),o=r(346);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},7068:(t,e,r)=>{var n=r(7217),o=r(5911),i=r(1986),a=r(689),c=r(5861),u=r(6449),l=r(3656),s=r(7167),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,m){var g=u(t),b=u(e),x=g?p:c(t),w=b?p:c(e),O=(x=x==f?h:x)==h,S=(w=w==f?h:w)==h,j=x==w;if(j&&l(t)){if(!l(e))return!1;g=!0,O=!1}if(j&&!O)return m||(m=new n),g||s(t)?o(t,e,r,y,v,m):i(t,e,x,r,y,v,m);if(!(1&r)){var E=O&&d.call(t,"__wrapped__"),A=S&&d.call(e,"__wrapped__");if(E||A){var k=E?t.value():t,P=A?e.value():e;return m||(m=new n),v(k,P,r,y,m)}}return!!j&&(m||(m=new n),a(t,e,r,y,v,m))}},1799:(t,e,r)=>{var n=r(7217),o=r(270);t.exports=function(t,e,r,i){var a=r.length,c=a,u=!i;if(null==t)return!c;for(t=Object(t);a--;){var l=r[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<c;){var s=(l=r[a])[0],f=t[s],p=l[1];if(u&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new n;if(i)var d=i(f,p,s,t,e,h);if(!(void 0===d?o(p,f,3,i,h):d))return!1}}return!0}},5463:t=>{t.exports=function(t){return t!=t}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),i=r(3805),a=r(7473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,s=u.toString,f=l.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:c).test(a(t))}},4901:(t,e,r)=>{var n=r(2552),o=r(294),i=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},5389:(t,e,r)=>{var n=r(3663),o=r(7978),i=r(3488),a=r(6449),c=r(583);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):c(t)}},8984:(t,e,r)=>{var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6176:t=>{t.exports=function(t,e){return t<e}},5128:(t,e,r)=>{var n=r(909),o=r(4894);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},3663:(t,e,r)=>{var n=r(1799),o=r(776),i=r(7197);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},7978:(t,e,r)=>{var n=r(270),o=r(8156),i=r(631),a=r(8586),c=r(756),u=r(7197),l=r(7797);t.exports=function(t,e){return a(t)&&c(e)?u(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},6155:(t,e,r)=>{var n=r(4932),o=r(7422),i=r(5389),a=r(5128),c=r(3937),u=r(7301),l=r(3714),s=r(3488),f=r(6449);t.exports=function(t,e,r){e=e.length?n(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=n(e,u(i));var h=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++p,value:t}}));return c(h,(function(t,e){return l(t,e,r)}))}},7237:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},7255:(t,e,r)=>{var n=r(7422);t.exports=function(t){return function(e){return n(e,t)}}},6151:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,c=r(e((n-t)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=t,t+=o;return u}},9302:(t,e,r)=>{var n=r(3488),o=r(6757),i=r(2865);t.exports=function(t,e){return i(o(t,e,n),t+"")}},9570:(t,e,r)=>{var n=r(7334),o=r(3243),i=r(3488),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},5160:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},916:(t,e,r)=>{var n=r(909);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},3937:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},8096:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7556:(t,e,r)=>{var n=r(1873),o=r(4932),i=r(6449),a=r(4394),c=n?n.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},4128:(t,e,r)=>{var n=r(1800),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},7301:t=>{t.exports=function(t){return function(e){return t(e)}}},5765:(t,e,r)=>{var n=r(8859),o=r(5325),i=r(9905),a=r(9219),c=r(4517),u=r(4247);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:c(t);if(y)return u(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l<f;){var v=t[l],m=e?e(v):v;if(v=r||0!==v?v:0,p&&m==m){for(var g=d.length;g--;)if(d[g]===m)continue t;e&&d.push(m),h.push(v)}else s(d,m,r)||(d!==h&&d.push(m),h.push(v))}return h}},9219:t=>{t.exports=function(t,e){return t.has(e)}},1769:(t,e,r)=>{var n=r(6449),o=r(8586),i=r(1802),a=r(3222);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},8754:(t,e,r)=>{var n=r(5160);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},3730:(t,e,r)=>{var n=r(4394);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),c=void 0!==e,u=null===e,l=e==e,s=n(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||o&&c&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&r&&i&&!o&&!a||u&&r&&i||!c&&i||!l)return-1}return 0}},3714:(t,e,r)=>{var n=r(3730);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,c=i.length,u=r.length;++o<c;){var l=n(i[o],a[o]);if(l)return o>=u?l:l*("desc"==r[o]?-1:1)}return t.index-e.index}},5481:(t,e,r)=>{var n=r(9325)["__core-js_shared__"];t.exports=n},8329:(t,e,r)=>{var n=r(4894);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,c=Object(r);(e?a--:++a<i)&&!1!==o(c[a],a,c););return r}}},3221:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}},2507:(t,e,r)=>{var n=r(8754),o=r(9698),i=r(3912),a=r(3222);t.exports=function(t){return function(e){e=a(e);var r=o(e)?i(e):void 0,c=r?r[0]:e.charAt(0),u=r?n(r,1).join(""):e.slice(1);return c[t]()+u}}},2006:(t,e,r)=>{var n=r(5389),o=r(4894),i=r(5950);t.exports=function(t){return function(e,r,a){var c=Object(e);if(!o(e)){var u=n(r,3);e=i(e),r=function(t){return u(c[t],t,c)}}var l=t(e,r,a);return l>-1?c[u?e[l]:l]:void 0}}},5508:(t,e,r)=>{var n=r(6151),o=r(6800),i=r(7400);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},4517:(t,e,r)=>{var n=r(6545),o=r(3950),i=r(4247),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},3243:(t,e,r)=>{var n=r(6110),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},5911:(t,e,r)=>{var n=r(8859),o=r(4248),i=r(9219);t.exports=function(t,e,r,a,c,u){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=u.get(t),h=u.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++d<s;){var m=t[d],g=e[d];if(a)var b=l?a(g,m,d,e,t,u):a(m,g,d,t,e,u);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||c(m,t,r,a,u)))return v.push(e)}))){y=!1;break}}else if(m!==g&&!c(m,g,r,a,u)){y=!1;break}}return u.delete(t),u.delete(e),y}},1986:(t,e,r)=>{var n=r(1873),o=r(7828),i=r(5288),a=r(5911),c=r(317),u=r(4247),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=c;case"[object Set]":var d=1&n;if(h||(h=u),t.size!=e.size&&!d)return!1;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},689:(t,e,r)=>{var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,c){var u=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!u)return!1;for(var f=s;f--;){var p=l[f];if(!(u?p in e:o.call(e,p)))return!1}var h=c.get(t),d=c.get(e);if(h&&d)return h==e&&d==t;var y=!0;c.set(t,e),c.set(e,t);for(var v=u;++f<s;){var m=t[p=l[f]],g=e[p];if(i)var b=u?i(g,m,p,e,t,c):i(m,g,p,t,e,c);if(!(void 0===b?m===g||a(m,g,r,i,c):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return c.delete(t),c.delete(e),y}},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2:(t,e,r)=>{var n=r(4580),o=r(4664),i=r(5950);t.exports=function(t){return n(t,i,o)}},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},776:(t,e,r)=>{var n=r(756),o=r(5950);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},8879:(t,e,r)=>{var n=r(4335)(Object.getPrototypeOf,Object);t.exports=n},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},4664:(t,e,r)=>{var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},5861:(t,e,r)=>{var n=r(5580),o=r(8223),i=r(2804),a=r(6545),c=r(8303),u=r(2552),l=r(7473),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),g=l(a),b=l(c),x=u;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||c&&x(new c)!=h)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case m:return f;case g:return p;case b:return h}return e}),t.exports=x},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9326:(t,e,r)=>{var n=r(1769),o=r(2428),i=r(6449),a=r(361),c=r(294),u=r(7797);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=u(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&c(s)&&a(p,s)&&(i(t)||o(t))}},9698:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5891:(t,e,r)=>{var n=r(1873),o=r(2428),i=r(6449),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},6800:(t,e,r)=>{var n=r(5288),o=r(4894),i=r(361),a=r(3805);t.exports=function(t,e,r){if(!a(r))return!1;var c=typeof e;return!!("number"==c?o(r)&&i(e,r.length):"string"==c&&e in r)&&n(r[e],t)}},8586:(t,e,r)=>{var n=r(6449),o=r(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296:(t,e,r)=>{var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5527:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},756:(t,e,r)=>{var n=r(3805);t.exports=function(t){return t==t&&!n(t)}},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},3040:(t,e,r)=>{var n=r(1549),o=r(79),i=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},317:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},7197:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2224:(t,e,r)=>{var n=r(104);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},3650:(t,e,r)=>{var n=r(4335)(Object.keys,Object);t.exports=n},6009:(t,e,r)=>{t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},6757:(t,e,r)=>{var n=r(1033),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(u),n(t,this,l)}}},9325:(t,e,r)=>{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},4247:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},2865:(t,e,r)=>{var n=r(9570),o=r(1811)(n);t.exports=o},1811:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},1420:(t,e,r)=>{var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},938:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},945:(t,e,r)=>{var n=r(79),o=r(8223),i=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},6959:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},3912:(t,e,r)=>{var n=r(1074),o=r(9698),i=r(2054);t.exports=function(t){return o(t)?i(t):n(t)}},1802:(t,e,r)=>{var n=r(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},7797:(t,e,r)=>{var n=r(4394);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1800:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},2054:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+o+")?",l="[\\ufe0e\\ufe0f]?",s=l+u+"(?:\\u200d(?:"+[i,a,c].join("|")+")"+l+u+")*",f="(?:"+[i+n+"?",n,a,c,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+s,"g");t.exports=function(t){return t.match(p)||[]}},7334:t=>{t.exports=function(t){return function(){return t}}},8221:(t,e,r)=>{var n=r(3805),o=r(124),i=r(9374),a=Math.max,c=Math.min;t.exports=function(t,e,r){var u,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var r=u,n=l;return u=l=void 0,d=e,f=t.apply(n,r)}function b(t){var r=t-h;return void 0===h||r>=e||r<0||v&&t-d>=s}function x(){var t=o();if(b(t))return w(t);p=setTimeout(x,function(t){var r=e-(t-h);return v?c(r,s-(t-d)):r}(t))}function w(t){return p=void 0,m&&u?g(t):(u=l=void 0,f)}function O(){var t=o(),r=b(t);if(u=arguments,l=this,h=t,r){if(void 0===p)return function(t){return d=t,p=setTimeout(x,e),y?g(t):f}(h);if(v)return clearTimeout(p),p=setTimeout(x,e),g(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=l=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9747:(t,e,r)=>{var n=r(7277),o=r(3777),i=r(5389),a=r(6449),c=r(6800);t.exports=function(t,e,r){var u=a(t)?n:o;return r&&c(t,e,r)&&(e=void 0),u(t,i(e,3))}},7309:(t,e,r)=>{var n=r(2006)(r(4713));t.exports=n},4713:(t,e,r)=>{var n=r(2523),o=r(5389),i=r(1489),a=Math.max;t.exports=function(t,e,r){var c=null==t?0:t.length;if(!c)return-1;var u=null==r?0:i(r);return u<0&&(u=a(c+u,0)),n(t,o(e,3),u)}},7307:(t,e,r)=>{var n=r(3120),o=r(5378);t.exports=function(t,e){return n(o(t,e),1)}},8156:(t,e,r)=>{var n=r(7422);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},631:(t,e,r)=>{var n=r(8077),o=r(9326);t.exports=function(t,e){return null!=t&&o(t,e,n)}},3488:t=>{t.exports=function(t){return t}},2428:(t,e,r)=>{var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},6449:t=>{var e=Array.isArray;t.exports=e},4894:(t,e,r)=>{var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3812:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},3656:(t,e,r)=>{t=r.nmd(t);var n=r(9325),o=r(9935),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},2404:(t,e,r)=>{var n=r(270);t.exports=function(t,e){return n(t,e)}},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},1741:(t,e,r)=>{var n=r(8023);t.exports=function(t){return n(t)&&t!=+t}},9843:t=>{t.exports=function(t){return null==t}},8023:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},1331:(t,e,r)=>{var n=r(2552),o=r(8879),i=r(346),a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,s=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==s}},5015:(t,e,r)=>{var n=r(2552),o=r(6449),i=r(346);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},4394:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},7167:(t,e,r)=>{var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},5950:(t,e,r)=>{var n=r(695),o=r(8984),i=r(4894);t.exports=function(t){return i(t)?n(t):o(t)}},8090:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5378:(t,e,r)=>{var n=r(4932),o=r(5389),i=r(5128),a=r(6449);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},3916:(t,e,r)=>{var n=r(3360),o=r(641),i=r(5389);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},4506:(t,e,r)=>{var n=r(3599),o=r(3335),i=r(3488);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},7551:(t,e,r)=>{var n=r(3599),o=r(3335),i=r(5389);t.exports=function(t,e){return t&&t.length?n(t,i(e,2),o):void 0}},104:(t,e,r)=>{var n=r(3661);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},1684:(t,e,r)=>{var n=r(3599),o=r(6176),i=r(3488);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},6533:(t,e,r)=>{var n=r(3599),o=r(5389),i=r(6176);t.exports=function(t,e){return t&&t.length?n(t,o(e,2),i):void 0}},3950:t=>{t.exports=function(){}},124:(t,e,r)=>{var n=r(9325);t.exports=function(){return n.Date.now()}},583:(t,e,r)=>{var n=r(7237),o=r(7255),i=r(8586),a=r(7797);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3181:(t,e,r)=>{var n=r(5508)();t.exports=n},2426:(t,e,r)=>{var n=r(4248),o=r(5389),i=r(916),a=r(6449),c=r(6800);t.exports=function(t,e,r){var u=a(t)?n:i;return r&&c(t,e,r)&&(e=void 0),u(t,o(e,3))}},3031:(t,e,r)=>{var n=r(3120),o=r(6155),i=r(9302),a=r(6800),c=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=c},3345:t=>{t.exports=function(){return[]}},9935:t=>{t.exports=function(){return!1}},7350:(t,e,r)=>{var n=r(8221),o=r(3805);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},7400:(t,e,r)=>{var n=r(9374),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},1489:(t,e,r)=>{var n=r(7400);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},9374:(t,e,r)=>{var n=r(4128),o=r(3805),i=r(4394),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=c.test(t);return r||u.test(t)?l(t.slice(2),r?2:8):a.test(t)?NaN:+t}},3222:(t,e,r)=>{var n=r(7556);t.exports=function(t){return null==t?"":n(t)}},14:(t,e,r)=>{var n=r(5389),o=r(5765);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},5808:(t,e,r)=>{var n=r(2507)("toUpperCase");t.exports=n},2694:(t,e,r)=>{"use strict";var n=r(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5556:(t,e,r)=>{t.exports=r(2694)()},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8867:(t,e)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=(r&&Symbol.for("react.suspense_list"),r?Symbol.for("react.memo"):60115),y=r?Symbol.for("react.lazy"):60116;r&&Symbol.for("react.block"),r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope");function v(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case s:case f:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case l:case p:case y:case d:case u:return t;default:return e}}case o:return e}}}e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isFragment=function(t){return v(t)===i}},2199:(t,e,r)=>{"use strict";t.exports=r(8867)}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t={};r.r(t),r.d(t,{scaleBand:()=>Oi,scaleDiverging:()=>qs,scaleDivergingLog:()=>Vs,scaleDivergingPow:()=>Hs,scaleDivergingSqrt:()=>Ks,scaleDivergingSymlog:()=>Xs,scaleIdentity:()=>$c,scaleImplicit:()=>xi,scaleLinear:()=>Uc,scaleLog:()=>Zc,scaleOrdinal:()=>wi,scalePoint:()=>ji,scalePow:()=>au,scaleQuantile:()=>vu,scaleQuantize:()=>mu,scaleRadial:()=>lu,scaleSequential:()=>Bs,scaleSequentialLog:()=>zs,scaleSequentialPow:()=>Us,scaleSequentialQuantile:()=>Ws,scaleSequentialSqrt:()=>$s,scaleSequentialSymlog:()=>Fs,scaleSqrt:()=>cu,scaleSymlog:()=>eu,scaleThreshold:()=>gu,scaleTime:()=>Ds,scaleUtc:()=>Ns,tickFormat:()=>zc});const e=window.wp.domReady;var n=r.n(e);const o=window.wp.element,i=window.React;var a=r.n(i);const c=window.wp.components,u=window.wp.apiFetch;var l=r.n(u);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:P(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function x(){}function w(){}var O={};l(O,a,(function(){return this}));var S=Object.getPrototypeOf,j=S&&S(S(I([])));j&&j!==r&&n.call(j,a)&&(O=j);var E=w.prototype=b.prototype=Object.create(O);function A(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(s(e)+" is not iterable")}return x.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:x,configurable:!0}),x.displayName=l(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},A(k.prototype),l(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){p(i,n,o,a,c,"next",t)}function c(t){p(i,n,o,a,c,"throw",t)}a(void 0)}))}}var d={"X-WP-Nonce":iyzicoRestApi.nonce},y=function(){var t=h(f().mark((function t(e){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l()({url:e,method:"GET",headers:d});case 3:return r=t.sent,t.abrupt("return",r);case 7:throw t.prev=7,t.t0=t.catch(0),console.error("Error: ",t.t0),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(_x){return t.apply(this,arguments)}}(),v=function(){var t=h(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",y(iyzicoRestApi.SettingsUrl));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=h(f().mark((function t(){var e,r,n=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:null,t.prev=1,t.next=4,l()({url:iyzicoRestApi.SaveSettingsUrl,method:"POST",headers:d,body:e});case 4:return r=t.sent,t.abrupt("return",r);case 8:return t.prev=8,t.t0=t.catch(1),console.error("Error saving settings:",t.t0),t.abrupt("return",null);case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(){return t.apply(this,arguments)}}(),g=function(){var t=h(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",y(iyzicoRestApi.SettingsDashboardWidgetsUrl));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),b=function(){var t=h(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",y(iyzicoRestApi.SettingsDashboardChartsUrl));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:P(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var O={};l(O,a,(function(){return this}));var S=Object.getPrototypeOf,j=S&&S(S(I([])));j&&j!==r&&n.call(j,a)&&(O=j);var E=b.prototype=m.prototype=Object.create(O);function A(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==x(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(x(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},A(k.prototype),l(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function O(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function S(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var E={},A=function(){var t=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||S(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(!1),2),e=t[0],r=t[1];return(0,o.useEffect)((function(){var t=function(){var t,e=(t=w().mark((function t(){var e;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,y(iyzicoRestApi.LocalizationsUrl);case 3:e=t.sent,E=e,r(!0),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.error("Error fetching localizations:",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){O(i,n,o,a,c,"next",t)}function c(t){O(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();0===Object.keys(E).length?t():r(!0)}),[]),e},k=function(t){var e,r=t.split("."),n=E,o=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=S(t))){e&&(t=e);var _n=0,r=function(){};return{s:r,n:function(){return _n>=t.length?{done:!0}:{done:!1,value:t[_n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){i=!0,n=t},f:function(){try{o||null==e.return||e.return()}finally{if(i)throw n}}}}(r);try{for(o.s();!(e=o.n()).done;){var i=e.value;if(void 0===n[i])return console.warn("Localization key not found: ".concat(t)),t;n=n[i]}}catch(t){o.e(t)}finally{o.f()}return"string"==typeof n?n:(console.warn("Unexpected structure for key: ".concat(t)),t)};const P=function(t){var e=t.iyzicoWebhookUrlKey,r=t.environment,n=t.setEnvironment,o=t.apiKey,i=t.setApiKey,u=t.secretKey,l=t.setSecretKey,s=t.title,f=t.setTitle,p=t.description,h=t.setDescription,d=t.formClass,y=t.setFormClass,v=t.paymentCheckoutValue,m=t.setPaymentCheckoutValue,g=t.orderStatus,b=t.setOrderStatus,x=t.overlayScript,w=t.setOverlayScript,O=t.formLanguage,S=t.setFormLanguage,j=t.affiliateNetwork,E=t.setAffiliateNetwork,P=t.enabled,_=t.setEnabled,T=t.pwiEnabled,M=t.setPwiEnabled;return A()?a().createElement("div",{className:"border-b border-gray-900/10 pb-12"},a().createElement("h2",{className:"text-base font-semibold leading-7 text-gray-900"},k("settings.title")),a().createElement("p",{className:"mt-1 text-sm leading-6 text-gray-600"},k("settings.description")),a().createElement("div",{className:"settings-form mt-5 space-y-4"},a().createElement(c.TextControl,{value:e,label:k("settings.fields.webhook.label"),disabled:!0}),a().createElement(c.SelectControl,{label:k("settings.fields.environment.title"),value:r,options:[{label:k("settings.fields.environment.values.live"),value:"https://api.iyzipay.com"},{label:k("settings.fields.environment.values.sandbox"),value:"https://sandbox-api.iyzipay.com"}],onChange:function(t){return n(t)}}),a().createElement(c.TextControl,{value:o,label:k("settings.fields.api_key.title"),onChange:function(t){return i(t)}}),a().createElement(c.TextControl,{value:u,label:k("settings.fields.secret_key.title"),onChange:function(t){return l(t)}}),a().createElement("div",{className:"flex flex-row space-x-4"},a().createElement(c.CheckboxControl,{label:k("settings.fields.enabled.title"),checked:P,onChange:function(t){return _(t)}}),a().createElement(c.CheckboxControl,{label:k("settings.fields.enabled.title_pwi"),checked:T,onChange:function(t){return M(t)}})),a().createElement(c.TextControl,{value:s,label:k("settings.fields.title.title"),onChange:function(t){return f(t)}}),a().createElement(c.TextControl,{value:p,label:k("settings.fields.description.title"),onChange:function(t){return h(t)}}),a().createElement(c.SelectControl,{label:k("settings.fields.form_class.title"),value:d,options:[{label:k("settings.fields.form_class.values.responsive"),value:"responsive"},{label:k("settings.fields.form_class.values.popup"),value:"popup"},{label:k("settings.fields.form_class.values.redirect"),value:"redirect"}],onChange:function(t){return y(t)}}),a().createElement(c.TextControl,{value:v,label:k("settings.fields.payment_checkout_value.title"),onChange:function(t){return m(t)}}),a().createElement(c.SelectControl,{label:k("settings.fields.order_status.title"),value:g,options:[{label:k("settings.fields.order_status.values.default"),value:"default"},{label:k("settings.fields.order_status.values.pending"),value:"pending"},{label:k("settings.fields.order_status.values.processing"),value:"processing"},{label:k("settings.fields.order_status.values.on-hold"),value:"on-hold"},{label:k("settings.fields.order_status.values.completed"),value:"completed"},{label:k("settings.fields.order_status.values.cancelled"),value:"cancelled"},{label:k("settings.fields.order_status.values.refunded"),value:"refunded"},{label:k("settings.fields.order_status.values.failed"),value:"failed"}],onChange:function(t){return b(t)}}),a().createElement(c.SelectControl,{label:k("settings.fields.overlay_script.title"),value:x,options:[{label:k("settings.fields.overlay_script.values.left"),value:"bottomLeft"},{label:k("settings.fields.overlay_script.values.right"),value:"bottomRight"},{label:k("settings.fields.overlay_script.values.hide"),value:"hide"}],onChange:function(t){return w(t)}}),a().createElement(c.SelectControl,{label:k("settings.fields.form_language.title"),value:O,options:[{label:k("settings.fields.form_language.values.automatic"),value:""},{label:k("settings.fields.form_language.values.turkish"),value:"TR"},{label:k("settings.fields.form_language.values.english"),value:"EN"}],onChange:function(t){return S(t)}}),a().createElement(c.TextControl,{value:j,label:k("settings.fields.affiliate_network.title"),onChange:function(t){return E(t)},maxLength:14}))):null};function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function T(){T=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:A(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var x={};l(x,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(I([])));O&&O!==r&&n.call(O,a)&&(x=O);var S=b.prototype=m.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==_(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(_(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),l(S,u,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function M(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function C(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){M(i,n,o,a,c,"next",t)}function c(t){M(i,n,o,a,c,"throw",t)}a(void 0)}))}}function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return D(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const N=function(){var t=I((0,o.useState)(null),2),e=t[0],r=t[1],n=I((0,o.useState)(null),2),i=n[0],a=n[1],c=I((0,o.useState)(null),2),u=c[0],l=c[1],s=I((0,o.useState)(null),2),f=s[0],p=s[1],h=I((0,o.useState)(null),2),d=h[0],y=h[1],g=I((0,o.useState)(null),2),b=g[0],x=g[1],w=I((0,o.useState)(null),2),O=w[0],S=w[1],j=I((0,o.useState)(null),2),E=j[0],_=j[1],M=I((0,o.useState)(null),2),D=M[0],N=M[1],R=I((0,o.useState)(null),2),L=R[0],B=R[1],z=I((0,o.useState)(null),2),F=z[0],U=z[1],$=I((0,o.useState)(null),2),W=$[0],G=$[1],q=I((0,o.useState)(null),2),V=q[0],X=q[1],H=I((0,o.useState)(null),2),K=H[0],Y=H[1],Z=I((0,o.useState)(null),2),J=Z[0],Q=Z[1],tt=I((0,o.useState)(null),2),et=tt[0],rt=tt[1],nt=I((0,o.useState)(null),2),ot=nt[0],it=nt[1];if((0,o.useEffect)((function(){var t=function(){var t=C(T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Y(!0),t.next=3,v().then((function(t){r(t.checkout.api_type),a(t.checkout.api_key),l(t.checkout.secret_key),p(t.checkout.title),y(t.checkout.description),x(t.checkout.form_class),S(t.checkout.payment_checkout_value),_(t.checkout.order_status),N(t.checkout.overlay_script),B(t.checkout.form_language),U(t.checkout.affiliate_network),G("no"!==t.checkout.enabled),X("no"!==t.pwi.enabled),rt(t.iyzicoWebhookUrlKey),Y(!1)}));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()}),[]),!A())return null;var at=function(){var t=C(T().mark((function t(r){var n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),it(null),Q(!1),!0!==W&&!0!==V||i&&u){t.next=6;break}return it(k("settings.api_key_secret_key_required")),t.abrupt("return");case 6:(n=new FormData).append("api_type",e),n.append("api_key",i),n.append("secret_key",u),n.append("title",f),n.append("description",d),n.append("form_class",b),n.append("payment_checkout_value",O),n.append("order_status",E),n.append("overlay_script",D),n.append("form_language",L),n.append("affiliate_network",F),n.append("enabled",!0===W?"yes":"no"),n.append("pwi_enabled",!0===V?"yes":"no"),m(n).then((function(t){Q(t.success)}));case 21:case"end":return t.stop()}}),t)})));return function(_x){return t.apply(this,arguments)}}();return React.createElement("form",{onSubmit:at},React.createElement("div",{className:"space-y-12"},J&&React.createElement("div",{className:"bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative",role:"alert"},React.createElement("strong",{className:"font-bold"},k("settings.success")),React.createElement("span",{className:"block sm:inline ms-2"},k("settings.success_message"))),ot&&React.createElement("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative",role:"alert"},React.createElement("strong",{className:"font-bold"},k("settings.error")),React.createElement("span",{className:"block sm:inline ms-2"},ot)),K?React.createElement("p",null,k("orders.loading")):React.createElement(P,{iyzicoWebhookUrlKey:et,environment:e,setEnvironment:r,apiKey:i,setApiKey:a,secretKey:u,setSecretKey:l,title:f,setTitle:p,description:d,setDescription:y,formClass:b,setFormClass:x,paymentCheckoutValue:O,setPaymentCheckoutValue:S,orderStatus:E,setOrderStatus:_,overlayScript:D,setOverlayScript:N,formLanguage:L,setFormLanguage:B,affiliateNetwork:F,setAffiliateNetwork:U,enabled:W,setEnabled:G,pwiEnabled:V,setPwiEnabled:X})),React.createElement("div",{className:"mt-6 flex items-center justify-end gap-x-6"},React.createElement("button",{type:"submit",className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},k("buttons.save"))))},R=function(t){switch(t.icon){case"DollarSign":return i.createElement("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"32px",height:"32px",viewBox:"0 0 64 64",enableBackground:"new 0 0 64 64",xmlSpace:"preserve"},i.createElement("circle",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,cx:44,cy:38,r:19}),i.createElement("circle",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,cx:44,cy:38,r:13}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"30,51 1,51 1,57 38,57 38,56 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"27,45 3,45 3,51 30,51 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"26,39 5,39 5,45 27,45 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"26,33 1,33 1,39 26,39 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"29,27 3,27 3,33 26,33 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"35,21 1,21 1,27 29,27 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"40,20 40,15 3,15 3,21 35,21 "}),i.createElement("rect",{x:1,y:9,fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,width:37,height:6}));case"TrendingUp":return i.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("path",{fill:"#444",d:"M16 2h-4l1.29 1.29-4.29 4.3-3-3-6 6v2.82l6-6 3 3 5.71-5.7 1.28 1.29 0.010-4z"}));case"ShoppingCart":return i.createElement("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 52 52",enableBackground:"new 0 0 52 52",xmlSpace:"preserve"},i.createElement("g",null,i.createElement("path",{d:"M20.1,26H44c0.7,0,1.4-0.5,1.5-1.2l4.4-15.4c0.3-1.1-0.5-2-1.5-2H11.5l-0.6-2.3c-0.3-1.1-1.3-1.8-2.3-1.8 H4.6c-1.3,0-2.5,1-2.6,2.3C1.9,7,3.1,8.2,4.4,8.2h2.3l7.6,25.7c0.3,1.1,1.2,1.8,2.3,1.8h28.2c1.3,0,2.5-1,2.6-2.3 c0.1-1.4-1.1-2.6-2.4-2.6H20.2c-1.1,0-2-0.7-2.3-1.7v-0.1C17.4,27.5,18.6,26,20.1,26z"}),i.createElement("circle",{cx:20.6,cy:44.6,r:4}),i.createElement("circle",{cx:40.1,cy:44.6,r:4})));default:return null}};window.wp.i18n;const L=function(t){var e=t.title,r=t.value,n=t.icon,o=t.color;return React.createElement("div",{className:"bg-white rounded-lg shadow p-6 flex items-center space-x-4"},React.createElement("div",{className:"p-3 rounded-full ".concat(o)},React.createElement(R,{icon:n})),React.createElement("div",null,React.createElement("p",{className:"text-sm font-medium text-gray-500"},e),React.createElement("p",{className:"text-2xl font-semibold text-gray-900"},r)))},B=function(t){var e=t.stats,r=A();return e&&r?React.createElement("div",{className:"border-b border-gray-900/10 pb-12"},React.createElement("h2",{className:"text-base font-semibold leading-7 text-gray-900"},k("dashboard.widget.title")),React.createElement("p",{className:"mt-1 text-sm leading-6 text-gray-600"},k("dashboard.widget.description")),React.createElement("div",{className:"mt-10 space-y-10"},React.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},e.map((function(t,e){return React.createElement(L,{key:e,title:t.title,value:t.value,icon:t.icon})}))))):null};function z(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=z(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}const F=function(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=z(t))&&(n&&(n+=" "),n+=e);return n};var U=r(7350),$=r.n(U),W=r(2199),G=r(5015),q=r.n(G),V=r(1741),X=r.n(V),H=r(8156),K=r.n(H),Y=r(8023),Z=r.n(Y),J=function(t){return 0===t?0:t>0?1:-1},Q=function(t){return q()(t)&&t.indexOf("%")===t.length-1},tt=function(t){return Z()(t)&&!X()(t)},et=function(t){return tt(t)||q()(t)},rt=0,nt=function(t){var e=++rt;return"".concat(t||"").concat(e)},ot=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!tt(t)&&!q()(t))return n;if(Q(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return X()(r)&&(r=n),o&&r>e&&(r=e),r},it=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},at=function(t,e){return tt(t)&&tt(e)?function(r){return t+r*(e-t)}:function(){return e}};function ct(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):K()(t,e))===r})):null}var ut=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]},lt=r(9843),st=r.n(lt),ft=r(1882),pt=r.n(ft),ht=r(3805),dt=r.n(ht);function yt(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function vt(t){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(t)}var mt=["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"],gt=["points","pathLength"],bt={svg:["viewBox","children"],polygon:gt,polyline:gt},xt=["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"],wt=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,i.isValidElement)(t)&&(r=t.props),!dt()(r))return null;var n={};return Object.keys(r).forEach((function(t){xt.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},Ot=function(t,e,r){if(!dt()(t)||"object"!==vt(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];xt.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},St=["children"],jt=["children"];function Et(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function At(t){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(t)}var kt={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Pt=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},_t=null,Tt=null,Mt=function t(e){if(e===_t&&Array.isArray(Tt))return Tt;var r=[];return i.Children.forEach(e,(function(e){st()(e)||((0,W.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))})),Tt=r,_t=e,r};function Ct(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return Pt(t)})):[Pt(e)],Mt(t).forEach((function(t){var e=K()(t,"type.displayName")||K()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function It(t,e){var r=Ct(t,e);return r&&r[0]}var Dt=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!tt(r)||r<=0||!tt(n)||n<=0)},Nt=["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"],Rt=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,i.isValidElement)(t)&&(n=t.props),!dt()(n))return null;var o={};return Object.keys(n).forEach((function(t){var i;(function(t,e,r,n){var o,i=null!==(o=null==bt?void 0:bt[n])&&void 0!==o?o:[];return!pt()(t)&&(n&&i.includes(e)||mt.includes(e))||r&&xt.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])})),o},Lt=function t(e,r){if(e===r)return!0;var n=i.Children.count(e);if(n!==i.Children.count(r))return!1;if(0===n)return!0;if(1===n)return Bt(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var a=e[o],c=r[o];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!Bt(a,c))return!1}return!0},Bt=function(t,e){if(st()(t)&&st()(e))return!0;if(!st()(t)&&!st()(e)){var r=t.props||{},n=r.children,o=Et(r,St),i=e.props||{},a=i.children,c=Et(i,jt);return n&&a?yt(o,c)&&Lt(n,a):!n&&!a&&yt(o,c)}return!1},zt=function(t,e){var r=[],n={};return Mt(t).forEach((function(t,o){if(function(t){return t&&t.type&&q()(t.type)&&Nt.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=Pt(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r};function Ft(t){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(t)}function Ut(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(r),!0).forEach((function(e){Wt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wt(t,e,r){var n;return n=function(t){if("object"!=Ft(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Ft(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var qt=(0,i.forwardRef)((function(t,e){var r=t.aspect,n=t.initialDimension,o=void 0===n?{width:-1,height:-1}:n,c=t.width,u=void 0===c?"100%":c,l=t.height,s=void 0===l?"100%":l,f=t.minWidth,p=void 0===f?0:f,h=t.minHeight,d=t.maxHeight,y=t.children,v=t.debounce,m=void 0===v?0:v,g=t.id,b=t.className,x=t.onResize,w=t.style,O=void 0===w?{}:w,S=(0,i.useRef)(null),j=(0,i.useRef)();j.current=x,(0,i.useImperativeHandle)(e,(function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})}));var E,A,k=(E=(0,i.useState)({containerWidth:o.width,containerHeight:o.height}),A=2,function(t){if(Array.isArray(t))return t}(E)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(E,A)||function(t,e){if(t){if("string"==typeof t)return Gt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gt(t,e):void 0}}(E,A)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),P=k[0],_=k[1],T=(0,i.useCallback)((function(t,e){_((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);(0,i.useEffect)((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;T(n,o),null===(e=j.current)||void 0===e||e.call(j,n,o)};m>0&&(t=$()(t,m,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=S.current.getBoundingClientRect(),n=r.width,o=r.height;return T(n,o),e.observe(S.current),function(){e.disconnect()}}),[T,m]);var M=(0,i.useMemo)((function(){var t=P.containerWidth,e=P.containerHeight;if(t<0||e<0)return null;ut(Q(u)||Q(s),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",u,s),ut(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Q(u)?t:u,o=Q(s)?e:s;r&&r>0&&(n?o=n/r:o&&(n=o*r),d&&o>d&&(o=d)),ut(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",n,o,u,s,p,h,r);var c=!Array.isArray(y)&&(0,W.isElement)(y)&&Pt(y.type).endsWith("Chart");return a().Children.map(y,(function(t){return(0,W.isElement)(t)?(0,i.cloneElement)(t,$t({width:n,height:o},c?{style:$t({height:"100%",width:"100%",maxHeight:o,maxWidth:n},t.props.style)}:{})):t}))}),[r,y,s,d,h,p,P,u]);return a().createElement("div",{id:g?"".concat(g):void 0,className:F("recharts-responsive-container",b),style:$t($t({},O),{},{width:u,height:s,minWidth:p,minHeight:h,maxHeight:d}),ref:S},M)})),Vt=r(3181),Xt=r.n(Vt),Ht=r(3031),Kt=r.n(Ht);function Yt(t,e){if(!t)throw new Error("Invariant failed")}var Zt=["children","width","height","viewBox","className","style","title","desc"];function Jt(){return Jt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Jt.apply(this,arguments)}function Qt(t){var e=t.children,r=t.width,n=t.height,o=t.viewBox,i=t.className,c=t.style,u=t.title,l=t.desc,s=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Zt),f=o||{width:r,height:n,x:0,y:0},p=F("recharts-surface",i);return a().createElement("svg",Jt({},Rt(s,!0,"svg"),{className:p,width:r,height:n,style:c,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),a().createElement("title",null,u),a().createElement("desc",null,l),e)}var te=["children","className"];function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ee.apply(this,arguments)}var re=a().forwardRef((function(t,e){var r=t.children,n=t.className,o=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,te),i=F("recharts-layer",n);return a().createElement("g",ee({className:i},Rt(o,!0),{ref:e}),r)}));function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}function oe(){return oe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oe.apply(this,arguments)}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ae(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ce(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(r),!0).forEach((function(e){ue(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ue(t,e,r){var n;return n=function(t){if("object"!=ne(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==ne(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function le(t){return Array.isArray(t)&&et(t[0])&&et(t[1])?t.join(" ~ "):t}var se=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,o=void 0===n?{}:n,i=t.itemStyle,c=void 0===i?{}:i,u=t.labelStyle,l=void 0===u?{}:u,s=t.payload,f=t.formatter,p=t.itemSorter,h=t.wrapperClassName,d=t.labelClassName,y=t.label,v=t.labelFormatter,m=t.accessibilityLayer,g=void 0!==m&&m,b=ce({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),x=ce({margin:0},l),w=!st()(y),O=w?y:"",S=F("recharts-default-tooltip",h),j=F("recharts-tooltip-label",d);w&&v&&null!=s&&(O=v(y,s));var E=g?{role:"status","aria-live":"assertive"}:{};return a().createElement("div",oe({className:S,style:b},E),a().createElement("p",{className:j,style:x},a().isValidElement(O)?O:"".concat(O)),function(){if(s&&s.length){var t=(p?Kt()(s,p):s).map((function(t,e){if("none"===t.type)return null;var n=ce({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},c),o=t.formatter||f||le,i=t.value,u=t.name,l=i,p=u;if(o&&null!=l&&null!=p){var h=o(i,u,t,e,s);if(Array.isArray(h)){var d=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h,2);l=d[0],p=d[1]}else l=h}return a().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},et(p)?a().createElement("span",{className:"recharts-tooltip-item-name"},p):null,et(p)?a().createElement("span",{className:"recharts-tooltip-item-separator"},r):null,a().createElement("span",{className:"recharts-tooltip-item-value"},l),a().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return a().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function fe(t){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(t)}function pe(t,e,r){var n;return n=function(t){if("object"!=fe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==fe(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var he="recharts-tooltip-wrapper",de={visibility:"hidden"};function ye(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return F(he,pe(pe(pe(pe({},"".concat(he,"-right"),tt(r)&&e&&tt(e.x)&&r>=e.x),"".concat(he,"-left"),tt(r)&&e&&tt(e.x)&&r<e.x),"".concat(he,"-bottom"),tt(n)&&e&&tt(e.y)&&n>=e.y),"".concat(he,"-top"),tt(n)&&e&&tt(e.y)&&n<e.y))}function ve(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&tt(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function me(t){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},me(t)}function ge(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function be(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(r),!0).forEach((function(e){Ee(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ae(n.key),n)}}function we(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(we=function(){return!!t})()}function Oe(t){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oe(t)}function Se(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function je(t,e){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},je(t,e)}function Ee(t,e,r){return(e=Ae(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ae(t){var e=function(t){if("object"!=me(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==me(e)?e:String(e)}var ke=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return Ee(Se((r=this,n=e,o=[].concat(a),n=Oe(n),t=function(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Se(t)}(r,we()?Reflect.construct(n,o||[],Oe(r).constructor):n.apply(r,o)))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ee(Se(t),"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}var r,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&je(t,e)}(e,t),r=e,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,c=e.children,u=e.coordinate,l=e.hasPayload,s=e.isAnimationActive,f=e.offset,p=e.position,h=e.reverseDirection,d=e.useTranslate3d,y=e.viewBox,v=e.wrapperStyle,m=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=ve({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=ve({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):de,cssClasses:ye({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:y}),g=m.cssClasses,b=m.cssProperties,x=be(be({transition:s&&r?"transform ".concat(o,"ms ").concat(i):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return a().createElement("div",{tabIndex:-1,className:g,style:x,ref:function(e){t.wrapperNode=e}},c)}}])&&xe(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent),Pe={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Pe[t]},set:function(t,e){if("string"==typeof t)Pe[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){Pe[e]=t[e]}))}}},_e=r(14),Te=r.n(_e);function Me(t,e,r){return!0===e?Te()(t,r):pt()(e)?Te()(t,e):t}function Ce(t){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(t)}function Ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function De(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(r),!0).forEach((function(e){ze(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fe(n.key),n)}}function Re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Re=function(){return!!t})()}function Le(t){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Le(t)}function Be(t,e){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Be(t,e)}function ze(t,e,r){return(e=Fe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fe(t){var e=function(t){if("object"!=Ce(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ce(e)?e:String(e)}function Ue(t){return t.dataKey}var $e=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=Le(r=e),function(t,e){if(e&&("object"===Ce(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Re()?Reflect.construct(r,n||[],Le(t).constructor):r.apply(t,n));var t,r,n}var r,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Be(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,c=e.content,u=e.coordinate,l=e.filterNull,s=e.isAnimationActive,f=e.offset,p=e.payload,h=e.payloadUniqBy,d=e.position,y=e.reverseDirection,v=e.useTranslate3d,m=e.viewBox,g=e.wrapperStyle,b=null!=p?p:[];l&&b.length&&(b=Me(p.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,Ue));var x=b.length>0;return a().createElement(ke,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:s,active:r,coordinate:u,hasPayload:x,offset:f,position:d,reverseDirection:y,useTranslate3d:v,viewBox:m,wrapperStyle:g},function(t,e){return a().isValidElement(t)?a().cloneElement(t,e):"function"==typeof t?a().createElement(t,e):a().createElement(se,e)}(c,De(De({},this.props),{},{payload:b})))}}])&&Ne(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);ze($e,"displayName","Tooltip"),ze($e,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Pe.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 We=r(5808),Ge=r.n(We);Math.abs,Math.atan2;const qe=Math.cos,Ve=(Math.max,Math.min,Math.sin),Xe=Math.sqrt,He=Math.PI,Ke=2*He,Ye={draw(t,e){const r=Xe(e/He);t.moveTo(r,0),t.arc(0,0,r,0,Ke)}},Ze={draw(t,e){const r=Xe(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Je=Xe(1/3),Qe=2*Je,tr={draw(t,e){const r=Xe(e/Qe),n=r*Je;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},er={draw(t,e){const r=Xe(e),n=-r/2;t.rect(n,n,r,r)}},rr=Ve(He/10)/Ve(7*He/10),nr=Ve(Ke/10)*rr,or=-qe(Ke/10)*rr,ir={draw(t,e){const r=Xe(.8908130915292852*e),n=nr*r,o=or*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Ke*e/5,a=qe(i),c=Ve(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}},ar=Xe(3),cr={draw(t,e){const r=-Xe(e/(3*ar));t.moveTo(0,2*r),t.lineTo(-ar*r,-r),t.lineTo(ar*r,-r),t.closePath()}},ur=-.5,lr=Xe(3)/2,sr=1/Xe(12),fr=3*(sr/2+1),pr={draw(t,e){const r=Xe(e/fr),n=r/2,o=r*sr,i=n,a=r*sr+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(ur*n-lr*o,lr*n+ur*o),t.lineTo(ur*i-lr*a,lr*i+ur*a),t.lineTo(ur*c-lr*u,lr*c+ur*u),t.lineTo(ur*n+lr*o,ur*o-lr*n),t.lineTo(ur*i+lr*a,ur*a-lr*i),t.lineTo(ur*c+lr*u,ur*u-lr*c),t.closePath()}};function hr(t){return function(){return t}}const dr=Math.PI,yr=2*dr,vr=1e-6,mr=yr-vr;function gr(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class br{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?gr:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return gr;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>vr)if(Math.abs(s*c-u*l)>vr&&o){let p=r-i,h=n-a,d=c*c+u*u,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((dr-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>vr&&this._append`L${t+b*l},${e+b*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+x*c},${this._y1=e+x*u}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>vr||Math.abs(this._y1-l)>vr)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%yr+yr),f>mr?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>vr&&this._append`A${r},${r},0,${+(f>=dr)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function xr(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new br(e)}function wr(t){return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(t)}Xe(3),Xe(3);var Or=["type","size","sizeType"];function Sr(){return Sr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sr.apply(this,arguments)}function jr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Er(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jr(Object(r),!0).forEach((function(e){Ar(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ar(t,e,r){var n;return n=function(t){if("object"!=wr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==wr(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var kr={symbolCircle:Ye,symbolCross:Ze,symbolDiamond:tr,symbolSquare:er,symbolStar:ir,symbolTriangle:cr,symbolWye:pr},Pr=Math.PI/180,_r=function(t){var e,r,n=t.type,o=void 0===n?"circle":n,i=t.size,c=void 0===i?64:i,u=t.sizeType,l=void 0===u?"area":u,s=Er(Er({},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Or)),{},{type:o,size:c,sizeType:l}),f=s.className,p=s.cx,h=s.cy,d=Rt(s,!0);return p===+p&&h===+h&&c===+c?a().createElement("path",Sr({},d,{className:F("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(Ge()(t));return kr[e]||Ye}(o),r=function(t,e){let r=null,n=xr(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:hr(t||Ye),e="function"==typeof e?e:hr(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:hr(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Pr;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(c,l,o)),r())})):null};function Tr(t){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(t)}function Mr(){return Mr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mr.apply(this,arguments)}function Cr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ir(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Br(n.key),n)}}function Dr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Dr=function(){return!!t})()}function Nr(t){return Nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nr(t)}function Rr(t,e){return Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Rr(t,e)}function Lr(t,e,r){return(e=Br(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Br(t){var e=function(t){if("object"!=Tr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Tr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Tr(e)?e:String(e)}_r.registerSymbol=function(t,e){kr["symbol".concat(Ge()(t))]=e};var zr=32,Fr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=Nr(r=e),function(t,e){if(e&&("object"===Tr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Dr()?Reflect.construct(r,n||[],Nr(t).constructor):r.apply(t,n));var t,r,n}var r,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rr(t,e)}(e,t),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=zr/6,o=zr/3,i=t.inactive?e:t.color;if("plainline"===t.type)return a().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:zr,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return a().createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n            A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n            H").concat(zr,"M").concat(2*o,",").concat(r,"\n            A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return a().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(zr,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(a().isValidElement(t.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cr(Object(r),!0).forEach((function(e){Lr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete c.legendIcon,a().cloneElement(t.legendIcon,c)}return a().createElement(_r,{fill:i,cx:r,cy:r,size:zr,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,o=e.layout,i=e.formatter,c=e.inactiveColor,u={x:0,y:0,width:zr,height:zr},l={display:"horizontal"===o?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var o=e.formatter||i,f=F(Lr(Lr({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var p=pt()(e.value)?null:e.value;ut(!pt()(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=e.inactive?c:e.color;return a().createElement("li",Mr({className:f,style:l,key:"legend-item-".concat(r)},Ot(t.props,e,r)),a().createElement(Qt,{width:n,height:n,viewBox:u,style:s},t.renderIcon(e)),a().createElement("span",{className:"recharts-legend-item-text",style:{color:h}},o?o(p,e,r):p))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return a().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],n&&Ir(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function Ur(t){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(t)}Lr(Fr,"displayName","Legend"),Lr(Fr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var $r=["ref"];function Wr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wr(Object(r),!0).forEach((function(e){Yr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zr(n.key),n)}}function Vr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vr=function(){return!!t})()}function Xr(t){return Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xr(t)}function Hr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kr(t,e){return Kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kr(t,e)}function Yr(t,e,r){return(e=Zr(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zr(t){var e=function(t){if("object"!=Ur(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ur(e)?e:String(e)}function Jr(t){return t.value}var Qr=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return Yr(Hr((r=this,n=e,o=[].concat(a),n=Xr(n),t=function(t,e){if(e&&("object"===Ur(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hr(t)}(r,Vr()?Reflect.construct(n,o||[],Xr(r).constructor):n.apply(r,o)))),"lastBoundingBox",{width:-1,height:-1}),t}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kr(t,e)}(e,t),r=e,o=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&tt(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Gr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Gr(Gr({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,c=e.payloadUniqBy,u=e.payload,l=Gr(Gr({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return a().createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(a().isValidElement(t))return a().cloneElement(t,e);if("function"==typeof t)return a().createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,$r);return a().createElement(Fr,r)}(r,Gr(Gr({},this.props),{},{payload:Me(u,c,Jr)})))}}])&&qr(r.prototype,n),o&&qr(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function tn(){return tn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tn.apply(this,arguments)}Yr(Qr,"displayName","Legend"),Yr(Qr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var en=function(t){var e=t.cx,r=t.cy,n=t.r,o=t.className,i=F("recharts-dot",o);return e===+e&&r===+r&&n===+n?a().createElement("circle",tn({},Rt(t,!1),wt(t),{className:i,cx:e,cy:r,r:n})):null},rn=r(5556),nn=r.n(rn),on=Object.getOwnPropertyNames,an=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty;function un(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function ln(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function sn(t){return on(t).concat(an(t))}var fn=Object.hasOwn||function(t,e){return cn.call(t,e)};function pn(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var hn="_owner",dn=Object.getOwnPropertyDescriptor,yn=Object.keys;function vn(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function mn(t,e){return pn(t.getTime(),e.getTime())}function gn(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],d=o.value,y=d[0],v=d[1];l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function bn(t,e,r){var n,o=yn(t),i=o.length;if(yn(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===hn&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!fn(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function xn(t,e,r){var n,o,i,a=sn(t),c=a.length;if(sn(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===hn&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!fn(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=dn(t,n),i=dn(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function wn(t,e){return pn(t.valueOf(),e.valueOf())}function On(t,e){return t.source===e.source&&t.flags===e.flags}function Sn(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function jn(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var En=Array.isArray,An="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,kn=Object.assign,Pn=Object.prototype.toString.call.bind(Object.prototype.toString),Tn=Mn();function Mn(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?xn:vn,areDatesEqual:mn,areMapsEqual:n?un(gn,xn):gn,areObjectsEqual:n?xn:bn,arePrimitiveWrappersEqual:wn,areRegExpsEqual:On,areSetsEqual:n?un(Sn,xn):Sn,areTypedArraysEqual:n?xn:jn};if(r&&(o=kn({},o,r(o))),e){var i=ln(o.areArraysEqual),a=ln(o.areMapsEqual),c=ln(o.areObjectsEqual),u=ln(o.areSetsEqual);o=kn({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(En(t))return e(t,l,s);if(null!=An&&An(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=Pn(t);return"[object Date]"===p?r(t,l,s):"[object RegExp]"===p?a(t,l,s):"[object Map]"===p?n(t,l,s):"[object Set]"===p?c(t,l,s):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):"[object Arguments]"===p?o(t,l,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(t,l,s)}}(u),s=o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:c})}function Cn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function In(t){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(t)}function Dn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nn(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=function(t){if(Array.isArray(t))return t}(c=n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(c)||function(t,e){if(t){if("string"==typeof t)return Dn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dn(t,e):void 0}}(c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void Cn(r.bind(null,a),i):(r(i),void Cn(r.bind(null,a)))}"object"===In(n)&&t(n),"function"==typeof n&&n()}var c};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Rn(t){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function Ln(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ln(Object(r),!0).forEach((function(e){zn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ln(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zn(t,e,r){return(e=function(t){var e=function(t){if("object"!==Rn(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Rn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Mn({strict:!0}),Mn({circular:!0}),Mn({circular:!0,strict:!0}),Mn({createInternalComparator:function(){return pn}}),Mn({strict:!0,createInternalComparator:function(){return pn}}),Mn({circular:!0,createInternalComparator:function(){return pn}}),Mn({circular:!0,createInternalComparator:function(){return pn},strict:!0});var Fn=function(t){return t},Un=function(t,e){return Object.keys(e).reduce((function(r,n){return Bn(Bn({},r),{},zn({},n,t(n,e[n])))}),{})},$n=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")};function Wn(t,e){if(t){if("string"==typeof t)return Gn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gn(t,e):void 0}}function Gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var qn=1e-4,Vn=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Xn=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Hn=function(t,e){return function(r){var n=Vn(t,e);return Xn(n,r)}},Kn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,o,i=e[0],a=e[1],c=e[2],u=e[3];if(1===e.length)switch(e[0]){case"linear":i=0,a=0,c=1,u=1;break;case"ease":i=.25,a=.1,c=.25,u=1;break;case"ease-in":i=.42,a=0,c=1,u=1;break;case"ease-out":i=.42,a=0,c=.58,u=1;break;case"ease-in-out":i=0,a=0,c=.58,u=1;break;default:var l=e[0].split("(");if("cubic-bezier"===l[0]&&4===l[1].split(")")[0].split(",").length){var s=(n=l[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),o=4,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,o)||Wn(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i=s[0],a=s[1],c=s[2],u=s[3]}}[i,c,a,u].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var f,p,h=Hn(i,c),d=Hn(a,u),y=(f=i,p=c,function(t){var e=Vn(f,p),r=[].concat(function(t){return function(t){if(Array.isArray(t))return Gn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Wn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.map((function(t,e){return t*e})).slice(1)),[0]);return Xn(r,t)}),v=function(t){return t>1?1:t<0?0:t},m=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=h(r)-e,i=y(r);if(Math.abs(o-e)<qn||i<qn)return d(r);r=v(r-o/i)}return d(r)};return m.isStepper=!1,m};function Yn(t){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(t)}function Zn(t){return function(t){if(Array.isArray(t))return ro(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||eo(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jn(Object(r),!0).forEach((function(e){to(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function to(t,e,r){return(e=function(t){var e=function(t){if("object"!==Yn(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Yn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eo(t,e){if(t){if("string"==typeof t)return ro(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ro(t,e):void 0}}function ro(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var no=function(t,e,r){return t+(e-t)*r},oo=function(t){return t.from!==t.to},io=function t(e,r,n){var o=Un((function(t,r){if(oo(r)){var n=(a=e(r.from,r.to,r.velocity),c=2,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(a,c)||eo(a,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1];return Qn(Qn({},r),{},{from:o,velocity:i})}var a,c;return r}),r);return n<1?Un((function(t,e){return oo(e)?Qn(Qn({},e),{},{velocity:no(e.velocity,o[t].velocity,n),from:no(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)};function ao(t){return ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(t)}var co=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function uo(t){return function(t){if(Array.isArray(t))return lo(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return lo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function so(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?so(Object(r),!0).forEach((function(e){po(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function po(t,e,r){return(e=yo(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ho(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yo(n.key),n)}}function yo(t){var e=function(t){if("object"!==ao(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ao(e)?e:String(e)}function vo(t,e){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vo(t,e)}function mo(t,e){if(e&&("object"===ao(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return go(t)}function go(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bo(t){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bo(t)}var xo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vo(t,e)}(u,t);var e,r,n,o,c=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=bo(n);if(o){var r=bo(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return mo(this,t)});function u(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var n=(r=c.call(this,t,e)).props,o=n.isActive,i=n.attributeName,a=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(go(r)),r.changeStyle=r.changeStyle.bind(go(r)),!o||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),mo(r);if(s&&s.length)r.state={style:s[0].style};else if(a){if("function"==typeof f)return r.state={style:a},mo(r);r.state={style:i?po({},i,a):a}}else r.state={style:{}};return r}return e=u,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(Tn(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?po({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(fo(fo({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?po({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Qn(Qn({},r),{},to({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Qn(Qn({},r),{},to({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=io(r,f,i),o(Qn(Qn(Qn({},t),e),Un((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(oo).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=Un((function(t,e){return no.apply(void 0,Zn(e).concat([r(a)]))}),s);if(o(Qn(Qn(Qn({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=Un((function(t,e){return no.apply(void 0,Zn(e).concat([r(1)]))}),s);o(Qn(Qn(Qn({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}}(r,n,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Kn(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<qn&&Math.abs(i)<qn?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Kn(n)}return"function"==typeof n?n:null}(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(uo(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(uo(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=$n(p,i,c),d=fo(fo(fo({},f.style),u),{},{transition:h});return[].concat(uo(t),[d,i,s]).filter(Fn)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Nn());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?po({},n,o):o,p=$n(Object.keys(f),r,i);s.start([a,e,fo(fo({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),n=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,co)),c=i.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!n||0===c||r<=0)return e;var l=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,a=e.className;return(0,i.cloneElement)(t,fo(fo({},o),{},{style:fo(fo({},n),u),className:a}))};return 1===c?l(i.Children.only(e)):a().createElement("div",null,i.Children.map(e,(function(t){return l(t)})))}}])&&ho(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.PureComponent);xo.displayName="Animate",xo.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},xo.propTypes={from:nn().oneOfType([nn().object,nn().string]),to:nn().oneOfType([nn().object,nn().string]),attributeName:nn().string,duration:nn().number,begin:nn().number,easing:nn().oneOfType([nn().string,nn().func]),steps:nn().arrayOf(nn().shape({duration:nn().number.isRequired,style:nn().object.isRequired,easing:nn().oneOfType([nn().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),nn().func]),properties:nn().arrayOf("string"),onAnimationEnd:nn().func})),children:nn().oneOfType([nn().node,nn().func]),isActive:nn().bool,canBegin:nn().bool,onAnimationEnd:nn().func,shouldReAnimate:nn().bool,onAnimationStart:nn().func,onAnimationReStart:nn().func};const wo=xo;function Oo(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}function So(){return So=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},So.apply(null,arguments)}function jo(t,e){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jo(t,e)}function Eo(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jo(t,e)}const Ao=a().createContext(null);function ko(t,e){var r=Object.create(null);return t&&i.Children.map(t,(function(t){return t})).forEach((function(t){r[t.key]=function(t){return e&&(0,i.isValidElement)(t)?e(t):t}(t)})),r}function Po(t,e,r){return null!=r[e]?r[e]:t.props[e]}function _o(t,e,r){var n=ko(t.children),o=function(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in e){if(o[u])for(n=0;n<o[u].length;n++){var l=o[u][n];c[o[u][n]]=r(l)}c[u]=r(u)}for(n=0;n<i.length;n++)c[i[n]]=r(i[n]);return c}(e,n);return Object.keys(o).forEach((function(a){var c=o[a];if((0,i.isValidElement)(c)){var u=a in e,l=a in n,s=e[a],f=(0,i.isValidElement)(s)&&!s.props.in;!l||u&&!f?l||!u||f?l&&u&&(0,i.isValidElement)(s)&&(o[a]=(0,i.cloneElement)(c,{onExited:r.bind(null,c),in:s.props.in,exit:Po(c,"exit",t),enter:Po(c,"enter",t)})):o[a]=(0,i.cloneElement)(c,{in:!1}):o[a]=(0,i.cloneElement)(c,{onExited:r.bind(null,c),in:!0,exit:Po(c,"exit",t),enter:Po(c,"enter",t)})}})),o}var To=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},Mo=function(t){function e(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Eo(e,t);var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var r,n,o=e.children,a=e.handleExited;return{children:e.firstRender?(r=t,n=a,ko(r.children,(function(t){return(0,i.cloneElement)(t,{onExited:n.bind(null,t),in:!0,appear:Po(t,"appear",r),enter:Po(t,"enter",r),exit:Po(t,"exit",r)})}))):_o(t,o,a),firstRender:!1}},r.handleExited=function(t,e){var r=ko(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var r=So({},e.children);return delete r[t.key],{children:r}})))},r.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=Oo(t,["component","childFactory"]),o=this.state.contextValue,i=To(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===e?a().createElement(Ao.Provider,{value:o},i):a().createElement(Ao.Provider,{value:o},a().createElement(e,n,i))},e}(a().Component);Mo.propTypes={},Mo.defaultProps={component:"div",childFactory:function(t){return t}};const Co=Mo,Io=window.ReactDOM;var Do=r.n(Io);var No="unmounted",Ro="exited",Lo="entering",Bo="entered",zo="exiting",Fo=function(t){function e(e,r){var n;n=t.call(this,e,r)||this;var o,i=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?i?(o=Ro,n.appearStatus=Lo):o=Bo:o=e.unmountOnExit||e.mountOnEnter?No:Ro,n.state={status:o},n.nextCallback=null,n}Eo(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===No?{status:Ro}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==Lo&&r!==Bo&&(e=Lo):r!==Lo&&r!==Bo||(e=zo)}this.updateStatus(!1,e)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},r.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Lo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Do().findDOMNode(this);r&&function(t){t.scrollTop}(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ro&&this.setState({status:No})},r.performEnter=function(t){var e=this,r=this.props.enter,n=this.context?this.context.isMounting:t,o=this.props.nodeRef?[n]:[Do().findDOMNode(this),n],i=o[0],a=o[1],c=this.getTimeouts(),u=n?c.appear:c.enter;t||r?(this.props.onEnter(i,a),this.safeSetState({status:Lo},(function(){e.props.onEntering(i,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:Bo},(function(){e.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Bo},(function(){e.props.onEntered(i)}))},r.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Do().findDOMNode(this);e?(this.props.onExit(n),this.safeSetState({status:zo},(function(){t.props.onExiting(n),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:Ro},(function(){t.props.onExited(n)}))}))}))):this.safeSetState({status:Ro},(function(){t.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},r.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:Do().findDOMNode(this),n=null==t&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===No)return null;var e=this.props,r=e.children,n=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Oo(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(Ao.Provider,{value:null},"function"==typeof r?r(t,n):a().cloneElement(a().Children.only(r),n))},e}(a().Component);function Uo(){}Fo.contextType=Ao,Fo.propTypes={},Fo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uo,onEntering:Uo,onEntered:Uo,onExit:Uo,onExiting:Uo,onExited:Uo},Fo.UNMOUNTED=No,Fo.EXITED=Ro,Fo.ENTERING=Lo,Fo.ENTERED=Bo,Fo.EXITING=zo;const $o=Fo;var Wo=["children","appearOptions","enterOptions","leaveOptions"];function Go(t){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(t)}function qo(){return qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qo.apply(this,arguments)}function Vo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vo(Object(r),!0).forEach((function(e){Jo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ho(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qo(n.key),n)}}function Ko(t,e){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ko(t,e)}function Yo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zo(t){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zo(t)}function Jo(t,e,r){return(e=Qo(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qo(t){var e=function(t){if("object"!==Go(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Go(e)?e:String(e)}var ti=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(r)?r:0},ei=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ko(t,e)}(u,t);var e,r,n,o,c=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Zo(n);if(o){var r=Zo(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Go(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Yo(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),Jo(Yo(t=c.call(this)),"handleEnter",(function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)})),Jo(Yo(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=u,(r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(Xo(Xo({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return ti(e)+ti(r)+ti(n)}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,n=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,Wo));return a().createElement($o,qo({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return a().createElement(wo,t.state,i.Children.only(r))}))}}])&&Ho(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.Component);ei.propTypes={appearOptions:nn().object,enterOptions:nn().object,leaveOptions:nn().object,children:nn().element};const ri=ei;function ni(t){var e=t.component,r=t.children,n=t.appear,o=t.enter,c=t.leave;return a().createElement(Co,{component:e},i.Children.map(r,(function(t,e){return a().createElement(ri,{appearOptions:n,enterOptions:o,leaveOptions:c,key:"child-".concat(e)},t)})))}ni.propTypes={appear:nn().object,enter:nn().object,leave:nn().object,children:nn().oneOfType([nn().array,nn().element]),component:nn().any},ni.defaultProps={component:"span"};const oi=wo;function ii(t){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(t)}function ai(){return ai=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ai.apply(this,arguments)}function ci(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ui(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function li(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ui(Object(r),!0).forEach((function(e){si(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function si(t,e,r){var n;return n=function(t){if("object"!=ii(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==ii(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fi=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n        ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n        ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n        ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n            L ").concat(t+r-u*p,",").concat(e,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n            L ").concat(t+r,",").concat(e+n-c*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n            L ").concat(t+u*p,",").concat(e+n,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},pi=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},hi={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},di=function(t){var e,r,n=li(li({},hi),t),o=(0,i.useRef)(),c=(e=(0,i.useState)(-1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return ci(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ci(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,i.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var t=o.current.getTotalLength();t&&l(t)}catch(t){}}),[]);var s=n.x,f=n.y,p=n.width,h=n.height,d=n.radius,y=n.className,v=n.animationEasing,m=n.animationDuration,g=n.animationBegin,b=n.isAnimationActive,x=n.isUpdateAnimationActive;if(s!==+s||f!==+f||p!==+p||h!==+h||0===p||0===h)return null;var w=F("recharts-rectangle",y);return x?a().createElement(oi,{canBegin:u>0,from:{width:p,height:h,x:s,y:f},to:{width:p,height:h,x:s,y:f},duration:m,animationEasing:v,isActive:x},(function(t){var e=t.width,r=t.height,i=t.x,c=t.y;return a().createElement(oi,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:b,easing:v},a().createElement("path",ai({},Rt(n,!0),{className:w,d:fi(i,c,e,r,d),ref:o})))})):a().createElement("path",ai({},Rt(n,!0),{className:w,d:fi(s,f,p,h,d)}))};function yi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function vi(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}class mi extends Map{constructor(t,e=bi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(gi(this,t))}has(t){return super.has(gi(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function gi({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function bi(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const xi=Symbol("implicit");function wi(){var t=new mi,e=[],r=[],n=xi;function o(o){let i=t.get(o);if(void 0===i){if(n!==xi)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new mi;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return wi(e,r).unknown(n)},yi.apply(o,arguments),o}function Oi(){var t,e,r=wi().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Oi(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},yi.apply(f(),arguments)}function Si(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Si(e())},t}function ji(){return Si(Oi.apply(null,arguments).paddingInner(1))}function Ei(t){return Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(t)}function Ai(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ki(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ai(Object(r),!0).forEach((function(e){Pi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ai(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pi(t,e,r){var n;return n=function(t){if("object"!=Ei(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Ei(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _i={widthCache:{},cacheCount:0},Ti={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Mi="recharts_measurement_span",Ci=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Pe.isSsr)return{width:0,height:0};var r,n=(r=ki({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(_i.widthCache[o])return _i.widthCache[o];try{var i=document.getElementById(Mi);i||((i=document.createElement("span")).setAttribute("id",Mi),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=ki(ki({},Ti),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return _i.widthCache[o]=u,++_i.cacheCount>2e3&&(_i.cacheCount=0,_i.widthCache={}),u}catch(t){return{width:0,height:0}}};function Ii(t){return Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(t)}function Di(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ni(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ni(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ni(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ri(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Li(n.key),n)}}function Li(t){var e=function(t){if("object"!=Ii(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ii(e)?e:String(e)}var Bi=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zi=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Fi=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ui=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$i={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Wi=Object.keys($i),Gi="NaN",qi=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Fi.test(r)||(this.num=NaN,this.unit=""),Wi.includes(r)&&(this.num=function(t,e){return t*$i[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=Di(null!==(r=Ui.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Ri(e.prototype,r),n&&Ri(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Vi(t){if(t.includes(Gi))return Gi;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Di(null!==(r=Bi.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=qi.parse(null!=o?o:""),u=qi.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Gi;e=e.replace(Bi,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Di(null!==(s=zi.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=qi.parse(null!=p?p:""),v=qi.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return Gi;e=e.replace(zi,m.toString())}return e}var Xi=/\(([^()]*)\)/;function Hi(t){var e=function(t){try{return function(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Di(Xi.exec(e),2)[1];e=e.replace(Xi,Vi(r))}return e}(e),Vi(e)}(t)}catch(t){return Gi}}(t.slice(5,-1));return e===Gi?"":e}var Ki=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Yi=["dx","dy","angle","className","breakAll"];function Zi(){return Zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zi.apply(this,arguments)}function Ji(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Qi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ta(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ta(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ta(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ea=/[ \f\n\r\t\v\u2028\u2029]+/,ra=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return st()(e)||(o=r?e.toString().split(""):e.toString().split(ea)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:Ci(t,n).width}})),spaceWidth:r?0:Ci(" ",n).width}}catch(t){return null}},na=function(t){return[{words:st()(t)?[]:t.toString().split(ea)}]},oa="#808080",ia=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,c=t.lineHeight,u=void 0===c?"1em":c,l=t.capHeight,s=void 0===l?"0.71em":l,f=t.scaleToFit,p=void 0!==f&&f,h=t.textAnchor,d=void 0===h?"start":h,y=t.verticalAnchor,v=void 0===y?"end":y,m=t.fill,g=void 0===m?oa:m,b=Ji(t,Ki),x=(0,i.useMemo)((function(){return function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!Pe.isSsr){var c=ra({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=tt(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var h,d=function(t){var e=s.slice(0,t),r=ra({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var g=Math.floor((y+v)/2),b=Qi(d(g-1),2),x=b[0],w=b[1],O=Qi(d(g),1)[0];if(x||O||(y=g+1),x&&O&&(v=g-1),!x&&O){h=w;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):na(n)}return na(n)}({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:p,style:b.style,width:b.width})}),[b.breakAll,b.children,b.maxLines,p,b.style,b.width]),w=b.dx,O=b.dy,S=b.angle,j=b.className,E=b.breakAll,A=Ji(b,Yi);if(!et(r)||!et(o))return null;var k,P=r+(tt(w)?w:0),_=o+(tt(O)?O:0);switch(v){case"start":k=Hi("calc(".concat(s,")"));break;case"middle":k=Hi("calc(".concat((x.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:k=Hi("calc(".concat(x.length-1," * -").concat(u,")"))}var T=[];if(p){var M=x[0].width,C=b.width;T.push("scale(".concat((tt(C)?C/M:1)/M,")"))}return S&&T.push("rotate(".concat(S,", ").concat(P,", ").concat(_,")")),T.length&&(A.transform=T.join(" ")),a().createElement("text",Zi({},Rt(A,!0),{x:P,y:_,className:F("recharts-text",j),textAnchor:d,fill:g.includes("url")?oa:g}),x.map((function(t,e){var r=t.words.join(E?"":" ");return a().createElement("tspan",{x:P,dy:0===e?k:u,key:r},r)})))};const aa=Math.sqrt(50),ca=Math.sqrt(10),ua=Math.sqrt(2);function la(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=aa?10:i>=ca?5:i>=ua?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?la(t,e,2*r):[c,u,l]}function sa(t,e,r){if(!((r=+r)>0))return[];if((t=+t)==(e=+e))return[t];const n=e<t,[o,i,a]=n?la(e,t,r):la(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function fa(t,e,r){return la(t=+t,e=+e,r=+r)[2]}function pa(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?fa(e,t,r):fa(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function ha(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function da(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ya(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=ha,r=(e,r)=>ha(t(e),r),n=(e,r)=>t(e)-r):(e=t===ha||t===da?t:va,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function va(){return 0}function ma(t){return null===t?NaN:+t}const ga=ya(ha),ba=ga.right,xa=(ga.left,ya(ma).center,ba);function wa(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Oa(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Sa(){}var ja=.7,Ea=1/ja,Aa="\\s*([+-]?\\d+)\\s*",ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_a=/^#([0-9a-f]{3,8})$/,Ta=new RegExp(`^rgb\\(${Aa},${Aa},${Aa}\\)$`),Ma=new RegExp(`^rgb\\(${Pa},${Pa},${Pa}\\)$`),Ca=new RegExp(`^rgba\\(${Aa},${Aa},${Aa},${ka}\\)$`),Ia=new RegExp(`^rgba\\(${Pa},${Pa},${Pa},${ka}\\)$`),Da=new RegExp(`^hsl\\(${ka},${Pa},${Pa}\\)$`),Na=new RegExp(`^hsla\\(${ka},${Pa},${Pa},${ka}\\)$`),Ra={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function La(){return this.rgb().formatHex()}function Ba(){return this.rgb().formatRgb()}function za(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=_a.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Fa(e):3===r?new Wa(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Ua(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Ua(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ta.exec(t))?new Wa(e[1],e[2],e[3],1):(e=Ma.exec(t))?new Wa(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ca.exec(t))?Ua(e[1],e[2],e[3],e[4]):(e=Ia.exec(t))?Ua(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Da.exec(t))?Ka(e[1],e[2]/100,e[3]/100,1):(e=Na.exec(t))?Ka(e[1],e[2]/100,e[3]/100,e[4]):Ra.hasOwnProperty(t)?Fa(Ra[t]):"transparent"===t?new Wa(NaN,NaN,NaN,0):null}function Fa(t){return new Wa(t>>16&255,t>>8&255,255&t,1)}function Ua(t,e,r,n){return n<=0&&(t=e=r=NaN),new Wa(t,e,r,n)}function $a(t,e,r,n){return 1===arguments.length?((o=t)instanceof Sa||(o=za(o)),o?new Wa((o=o.rgb()).r,o.g,o.b,o.opacity):new Wa):new Wa(t,e,r,null==n?1:n);var o}function Wa(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Ga(){return`#${Ha(this.r)}${Ha(this.g)}${Ha(this.b)}`}function qa(){const t=Va(this.opacity);return`${1===t?"rgb(":"rgba("}${Xa(this.r)}, ${Xa(this.g)}, ${Xa(this.b)}${1===t?")":`, ${t})`}`}function Va(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Xa(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ha(t){return((t=Xa(t))<16?"0":"")+t.toString(16)}function Ka(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Za(t,e,r,n)}function Ya(t){if(t instanceof Za)return new Za(t.h,t.s,t.l,t.opacity);if(t instanceof Sa||(t=za(t)),!t)return new Za;if(t instanceof Za)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new Za(a,c,u,t.opacity)}function Za(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Ja(t){return(t=(t||0)%360)<0?t+360:t}function Qa(t){return Math.max(0,Math.min(1,t||0))}function tc(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function ec(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}wa(Sa,za,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:La,formatHex:La,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ya(this).formatHsl()},formatRgb:Ba,toString:Ba}),wa(Wa,$a,Oa(Sa,{brighter(t){return t=null==t?Ea:Math.pow(Ea,t),new Wa(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ja:Math.pow(ja,t),new Wa(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Wa(Xa(this.r),Xa(this.g),Xa(this.b),Va(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:Ga,formatHex:Ga,formatHex8:function(){return`#${Ha(this.r)}${Ha(this.g)}${Ha(this.b)}${Ha(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:qa,toString:qa})),wa(Za,(function(t,e,r,n){return 1===arguments.length?Ya(t):new Za(t,e,r,null==n?1:n)}),Oa(Sa,{brighter(t){return t=null==t?Ea:Math.pow(Ea,t),new Za(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ja:Math.pow(ja,t),new Za(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new Wa(tc(t>=240?t-240:t+120,o,n),tc(t,o,n),tc(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new Za(Ja(this.h),Qa(this.s),Qa(this.l),Va(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Va(this.opacity);return`${1===t?"hsl(":"hsla("}${Ja(this.h)}, ${100*Qa(this.s)}%, ${100*Qa(this.l)}%${1===t?")":`, ${t})`}`}}));const rc=t=>()=>t;function nc(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):rc(isNaN(t)?e:t)}const oc=function t(e){var r=function(t){return 1==(t=+t)?nc:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):rc(isNaN(e)?r:e)}}(e);function n(t,e){var n=r((t=$a(t)).r,(e=$a(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=nc(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function ic(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),c=new Array(o);for(r=0;r<o;++r)n=$a(e[r]),i[r]=n.r||0,a[r]=n.g||0,c[r]=n.b||0;return i=t(i),a=t(a),c=t(c),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=c(t),n+""}}}function ac(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=dc(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function cc(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function uc(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function lc(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=dc(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}ic((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,c=n<e-1?t[n+2]:2*i-o;return ec((r-n/e)*e,a,o,i,c)}})),ic((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],c=t[(n+2)%e];return ec((r-n/e)*e,o,i,a,c)}}));var sc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fc=new RegExp(sc.source,"g");function pc(t,e){var r,n,o,i=sc.lastIndex=fc.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=sc.exec(t))&&(n=fc.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:uc(r,n)})),i=fc.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function hc(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function dc(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?rc(e):("number"===o?uc:"string"===o?(r=za(e))?(e=r,oc):pc:e instanceof za?oc:e instanceof Date?cc:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?ac:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?lc:uc:hc))(t,e)}function yc(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function vc(t){return+t}var mc=[0,1];function gc(t){return t}function bc(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function xc(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=bc(o,n),i=r(a,i)):(n=bc(n,o),i=r(i,a)),function(t){return i(n(t))}}function wc(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=bc(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=xa(t,e,1,n)-1;return i[r](o[r](e))}}function Oc(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Sc(){var t,e,r,n,o,i,a=mc,c=mc,u=dc,l=gc;function s(){var t=Math.min(a.length,c.length);return l!==gc&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?wc:xc,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),uc)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,vc),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=yc,s()},f.clamp=function(t){return arguments.length?(l=!!t||gc,s()):l!==gc},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function jc(){return Sc()(gc,gc)}var Ec,Ac=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kc(t){if(!(e=Ac.exec(t)))throw new Error("invalid format: "+t);var e;return new Pc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Pc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function _c(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Tc(t){return(t=_c(Math.abs(t)))?t[1]:NaN}function Mc(t,e){var r=_c(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}kc.prototype=Pc.prototype,Pc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Cc={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Mc(100*t,e),r:Mc,s:function(t,e){var r=_c(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Ec=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+_c(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ic(t){return t}var Dc,Nc,Rc,Lc=Array.prototype.map,Bc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zc(t,e,r,n){var o,i=pa(t,e,r);switch((n=kc(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Tc(e)/3)))-Tc(Math.abs(t)))}(i,a))||(n.precision=o),Rc(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Tc(e)-Tc(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-Tc(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return Nc(n)}function Fc(t){var e=t.domain;return t.ticks=function(t){var r=e();return sa(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return zc(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=fa(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function Uc(){var t=jc();return t.copy=function(){return Oc(t,Uc())},yi.apply(t,arguments),Fc(t)}function $c(t){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,vc),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return $c(t).unknown(e)},t=arguments.length?Array.from(t,vc):[0,1],Fc(r)}function Wc(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function Gc(t){return Math.log(t)}function qc(t){return Math.exp(t)}function Vc(t){return-Math.log(-t)}function Xc(t){return-Math.exp(-t)}function Hc(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Kc(t){return(e,r)=>-t(-e,r)}function Yc(t){const e=t(Gc,qc),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Hc:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=Kc(n),o=Kc(o),t(Vc,Xc)):t(Gc,qc),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const h=null==t?10:+t;let d=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<h&&(d=sa(a,c,h))}else d=sa(f,p,Math.min(p-f,h)).map(o);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=kc(r)).precision||(r.trim=!0),r=Nc(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(Wc(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function Zc(){const t=Yc(Sc()).domain([1,10]);return t.copy=()=>Oc(t,Zc()).base(t.base()),yi.apply(t,arguments),t}function Jc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Qc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tu(t){var e=1,r=t(Jc(e),Qc(e));return r.constant=function(r){return arguments.length?t(Jc(e=+r),Qc(e)):e},Fc(r)}function eu(){var t=tu(Sc());return t.copy=function(){return Oc(t,eu()).constant(t.constant())},yi.apply(t,arguments)}function ru(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function nu(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ou(t){return t<0?-t*t:t*t}function iu(t){var e=t(gc,gc),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(gc,gc):.5===r?t(nu,ou):t(ru(r),ru(1/r)):r},Fc(e)}function au(){var t=iu(Sc());return t.copy=function(){return Oc(t,au()).exponent(t.exponent())},yi.apply(t,arguments),t}function cu(){return au.apply(null,arguments).exponent(.5)}function uu(t){return Math.sign(t)*t*t}function lu(){var t,e=jc(),r=[0,1],n=!1;function o(r){var o=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(r));return isNaN(o)?t:n?Math.round(o):o}return o.invert=function(t){return e.invert(uu(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,vc)).map(uu)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(n=!!t,o):n},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return lu(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},yi.apply(o,arguments),Fc(o)}function su(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function fu(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function pu(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function hu(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?pu:function(t=ha){if(t===ha)return pu;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);hu(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(du(t,r,e),o(t[n],i)>0&&du(t,r,n);a<c;){for(du(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?du(t,r,c):(++c,du(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function du(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function yu(t,e,r=ma){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function vu(){var t,e=[],r=[],n=[];function o(){var t=0,o=Math.max(1,r.length);for(n=new Array(o-1);++t<o;)n[t-1]=yu(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[xa(n,e)]}return i.invertExtent=function(t){var o=r.indexOf(t);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(ha),o()},i.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return n.slice()},i.copy=function(){return vu().domain(e).range(r).unknown(t)},yi.apply(i,arguments)}function mu(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[xa(o,e,0,n)]:t}function c(){var t=-1;for(o=new Array(n);++t<n;)o[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e=+e,r=+r,c()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,c()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return mu().domain([e,r]).range(i).unknown(t)},yi.apply(Fc(a),arguments)}function gu(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[xa(e,o,0,n)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),n=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return gu().domain(e).range(r).unknown(t)},yi.apply(o,arguments)}Dc=function(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Ic:(e=Lc.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Ic:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Lc.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=kc(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(y=!0,g="g"):Cc[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?u:"",w=Cc[g],O=/[defgprs%]/.test(g);function S(t){var o,i,u,p=b,S=x;if("c"===g)S=w(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:w(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,S=("s"===g?Bc[8+Ec/3]:"")+S+(j&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){S=(46===u?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}y&&!h&&(t=n(t,1/0));var E=p.length+t.length+S.length,A=E<d?new Array(d-E+1).join(e):"";switch(y&&h&&(t=n(A+t,A.length?d-S.length:1/0),A=""),r){case"<":t=p+t+S+A;break;case"=":t=p+A+t+S;break;case"^":t=A.slice(0,E=A.length>>1)+p+t+S+A.slice(E);break;default:t=A+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=kc(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Tc(e)/3))),o=Math.pow(10,-n),i=Bc[8+n/3];return function(t){return r(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),Nc=Dc.format,Rc=Dc.formatPrefix;const bu=1e3,xu=6e4,wu=36e5,Ou=864e5,Su=6048e5,ju=31536e6,Eu=new Date,Au=new Date;function ku(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>ku((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(Eu.setTime(+e),Au.setTime(+n),t(Eu),t(Au),Math.floor(r(Eu,Au))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const Pu=ku((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Pu.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ku((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):Pu:null),Pu.range;const _u=ku((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*bu)}),((t,e)=>(e-t)/bu),(t=>t.getUTCSeconds())),Tu=(_u.range,ku((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*bu)}),((t,e)=>{t.setTime(+t+e*xu)}),((t,e)=>(e-t)/xu),(t=>t.getMinutes()))),Mu=(Tu.range,ku((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*xu)}),((t,e)=>(e-t)/xu),(t=>t.getUTCMinutes()))),Cu=(Mu.range,ku((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*bu-t.getMinutes()*xu)}),((t,e)=>{t.setTime(+t+e*wu)}),((t,e)=>(e-t)/wu),(t=>t.getHours()))),Iu=(Cu.range,ku((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*wu)}),((t,e)=>(e-t)/wu),(t=>t.getUTCHours()))),Du=(Iu.range,ku((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xu)/Ou),(t=>t.getDate()-1))),Nu=(Du.range,ku((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Ou),(t=>t.getUTCDate()-1))),Ru=(Nu.range,ku((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Ou),(t=>Math.floor(t/Ou))));function Lu(t){return ku((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xu)/Su))}Ru.range;const Bu=Lu(0),zu=Lu(1),Fu=Lu(2),Uu=Lu(3),$u=Lu(4),Wu=Lu(5),Gu=Lu(6);function qu(t){return ku((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Su))}Bu.range,zu.range,Fu.range,Uu.range,$u.range,Wu.range,Gu.range;const Vu=qu(0),Xu=qu(1),Hu=qu(2),Ku=qu(3),Yu=qu(4),Zu=qu(5),Ju=qu(6),Qu=(Vu.range,Xu.range,Hu.range,Ku.range,Yu.range,Zu.range,Ju.range,ku((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),tl=(Qu.range,ku((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),el=(tl.range,ku((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));el.every=t=>isFinite(t=Math.floor(t))&&t>0?ku((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,el.range;const rl=ku((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function nl(t,e,r,n,o,i){const a=[[_u,1,bu],[_u,5,5e3],[_u,15,15e3],[_u,30,3e4],[i,1,xu],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,wu],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Ou],[n,2,1728e5],[r,1,Su],[e,1,2592e6],[e,3,7776e6],[t,1,ju]];function c(e,r,n){const o=Math.abs(r-e)/n,i=ya((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(pa(e/ju,r/ju,n));if(0===i)return Pu.every(Math.max(pa(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}rl.every=t=>isFinite(t=Math.floor(t))&&t>0?ku((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,rl.range;const[ol,il]=nl(rl,tl,Vu,Ru,Iu,Mu),[al,cl]=nl(el,Qu,Bu,Du,Cu,Tu);function ul(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ll(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function sl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var fl,pl,hl,dl={"-":"",_:" ",0:"0"},yl=/^\s*\d+/,vl=/^%/,ml=/[\\^$*+?|[\]().{}]/g;function gl(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function bl(t){return t.replace(ml,"\\$&")}function xl(t){return new RegExp("^(?:"+t.map(bl).join("|")+")","i")}function wl(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Ol(t,e,r){var n=yl.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Sl(t,e,r){var n=yl.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function jl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function El(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Al(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function kl(t,e,r){var n=yl.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Pl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _l(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Tl(t,e,r){var n=yl.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Ml(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Cl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Il(t,e,r){var n=yl.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Dl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Nl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Rl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Ll(t,e,r){var n=yl.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Bl(t,e,r){var n=yl.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function zl(t,e,r){var n=vl.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Fl(t,e,r){var n=yl.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Ul(t,e,r){var n=yl.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function $l(t,e){return gl(t.getDate(),e,2)}function Wl(t,e){return gl(t.getHours(),e,2)}function Gl(t,e){return gl(t.getHours()%12||12,e,2)}function ql(t,e){return gl(1+Du.count(el(t),t),e,3)}function Vl(t,e){return gl(t.getMilliseconds(),e,3)}function Xl(t,e){return Vl(t,e)+"000"}function Hl(t,e){return gl(t.getMonth()+1,e,2)}function Kl(t,e){return gl(t.getMinutes(),e,2)}function Yl(t,e){return gl(t.getSeconds(),e,2)}function Zl(t){var e=t.getDay();return 0===e?7:e}function Jl(t,e){return gl(Bu.count(el(t)-1,t),e,2)}function Ql(t){var e=t.getDay();return e>=4||0===e?$u(t):$u.ceil(t)}function ts(t,e){return t=Ql(t),gl($u.count(el(t),t)+(4===el(t).getDay()),e,2)}function es(t){return t.getDay()}function rs(t,e){return gl(zu.count(el(t)-1,t),e,2)}function ns(t,e){return gl(t.getFullYear()%100,e,2)}function os(t,e){return gl((t=Ql(t)).getFullYear()%100,e,2)}function is(t,e){return gl(t.getFullYear()%1e4,e,4)}function as(t,e){var r=t.getDay();return gl((t=r>=4||0===r?$u(t):$u.ceil(t)).getFullYear()%1e4,e,4)}function cs(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+gl(e/60|0,"0",2)+gl(e%60,"0",2)}function us(t,e){return gl(t.getUTCDate(),e,2)}function ls(t,e){return gl(t.getUTCHours(),e,2)}function ss(t,e){return gl(t.getUTCHours()%12||12,e,2)}function fs(t,e){return gl(1+Nu.count(rl(t),t),e,3)}function ps(t,e){return gl(t.getUTCMilliseconds(),e,3)}function hs(t,e){return ps(t,e)+"000"}function ds(t,e){return gl(t.getUTCMonth()+1,e,2)}function ys(t,e){return gl(t.getUTCMinutes(),e,2)}function vs(t,e){return gl(t.getUTCSeconds(),e,2)}function ms(t){var e=t.getUTCDay();return 0===e?7:e}function gs(t,e){return gl(Vu.count(rl(t)-1,t),e,2)}function bs(t){var e=t.getUTCDay();return e>=4||0===e?Yu(t):Yu.ceil(t)}function xs(t,e){return t=bs(t),gl(Yu.count(rl(t),t)+(4===rl(t).getUTCDay()),e,2)}function ws(t){return t.getUTCDay()}function Os(t,e){return gl(Xu.count(rl(t)-1,t),e,2)}function Ss(t,e){return gl(t.getUTCFullYear()%100,e,2)}function js(t,e){return gl((t=bs(t)).getUTCFullYear()%100,e,2)}function Es(t,e){return gl(t.getUTCFullYear()%1e4,e,4)}function As(t,e){var r=t.getUTCDay();return gl((t=r>=4||0===r?Yu(t):Yu.ceil(t)).getUTCFullYear()%1e4,e,4)}function ks(){return"+0000"}function Ps(){return"%"}function _s(t){return+t}function Ts(t){return Math.floor(+t/1e3)}function Ms(t){return new Date(t)}function Cs(t){return t instanceof Date?+t:+new Date(+t)}function Is(t,e,r,n,o,i,a,c,u,l){var s=jc(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(u(t)<t?h:c(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:g:r(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Cs)):p().map(Ms)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(Wc(r,t)):s},s.copy=function(){return Oc(s,Is(t,e,r,n,o,i,a,c,u,l))},s}function Ds(){return yi.apply(Is(al,cl,el,Qu,Bu,Du,Cu,Tu,_u,pl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ns(){return yi.apply(Is(ol,il,rl,tl,Vu,Nu,Iu,Mu,_u,hl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Rs(){var t,e,r,n,o,i=0,a=1,c=gc,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(dc),l.rangeRound=s(yc),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function Ls(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Bs(){var t=Fc(Rs()(gc));return t.copy=function(){return Ls(t,Bs())},vi.apply(t,arguments)}function zs(){var t=Yc(Rs()).domain([1,10]);return t.copy=function(){return Ls(t,zs()).base(t.base())},vi.apply(t,arguments)}function Fs(){var t=tu(Rs());return t.copy=function(){return Ls(t,Fs()).constant(t.constant())},vi.apply(t,arguments)}function Us(){var t=iu(Rs());return t.copy=function(){return Ls(t,Us()).exponent(t.exponent())},vi.apply(t,arguments)}function $s(){return Us.apply(null,arguments).exponent(.5)}function Ws(){var t=[],e=gc;function r(r){if(null!=r&&!isNaN(r=+r))return e((xa(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(ha),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map(((r,n)=>e(n/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((r,n)=>function(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return fu(t);if(e>=1)return su(t);var n,o=(n-1)*e,i=Math.floor(o),a=su(hu(t,i).subarray(0,i+1));return a+(fu(t.subarray(i+1))-a)*(o-i)}}(t,n/e)))},r.copy=function(){return Ws(e).domain(t)},vi.apply(r,arguments)}function Gs(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=gc,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=dc);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,u,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=d(dc),h.rangeRound=d(yc),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function qs(){var t=Fc(Gs()(gc));return t.copy=function(){return Ls(t,qs())},vi.apply(t,arguments)}function Vs(){var t=Yc(Gs()).domain([.1,1,10]);return t.copy=function(){return Ls(t,Vs()).base(t.base())},vi.apply(t,arguments)}function Xs(){var t=tu(Gs());return t.copy=function(){return Ls(t,Xs()).constant(t.constant())},vi.apply(t,arguments)}function Hs(){var t=iu(Gs());return t.copy=function(){return Ls(t,Hs()).exponent(t.exponent())},vi.apply(t,arguments)}function Ks(){return Hs.apply(null,arguments).exponent(.5)}function Ys(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Zs(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Js(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Qs(t,e){return t[e]}function tf(t){const e=[];return e.key=t,e}fl=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=xl(o),s=wl(o),f=xl(i),p=wl(i),h=xl(a),d=wl(a),y=xl(c),v=wl(c),m=xl(u),g=wl(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:$l,e:$l,f:Xl,g:os,G:as,H:Wl,I:Gl,j:ql,L:Vl,m:Hl,M:Kl,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:_s,s:Ts,S:Yl,u:Zl,U:Jl,V:ts,w:es,W:rs,x:null,X:null,y:ns,Y:is,Z:cs,"%":Ps},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:us,e:us,f:hs,g:js,G:As,H:ls,I:ss,j:fs,L:ps,m:ds,M:ys,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:_s,s:Ts,S:vs,u:ms,U:gs,V:xs,w:ws,W:Os,x:null,X:null,y:Ss,Y:Es,Z:ks,"%":Ps},w={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:Cl,e:Cl,f:Bl,g:Pl,G:kl,H:Dl,I:Dl,j:Il,L:Ll,m:Ml,M:Nl,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Tl,Q:Fl,s:Ul,S:Rl,u:Sl,U:jl,V:El,w:Ol,W:Al,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Pl,Y:kl,Z:_l,"%":zl};function O(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=dl[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,o,i=sl(1900,void 0,1);if(j(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=ll(sl(i.y,0,1))).getUTCDay(),n=o>4||0===o?Xu.ceil(n):Xu(n),n=Nu.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=ul(sl(i.y,0,1))).getDay(),n=o>4||0===o?zu.ceil(n):zu(n),n=Du.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?ll(sl(i.y,0,1)).getUTCDay():ul(sl(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,ll(i)):ul(i)}}function j(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in dl?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),x.x=O(r,x),x.X=O(n,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),pl=fl.format,fl.parse,hl=fl.utcFormat,fl.utcParse,Array.prototype.slice;var ef=r(4506),rf=r.n(ef),nf=r(1684),of=r.n(nf),af=r(7307),cf=r.n(af),uf=r(2404),lf=r.n(uf),sf=r(8351),ff=r.n(sf);function pf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var hf=function(t){return t},df={"@@functional/placeholder":!0},yf=function(t){return t===df},vf=function(t){return function e(){return 0===arguments.length||1===arguments.length&&yf(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},mf=function t(e,r){return 1===e?r:vf((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==df})).length;return a>=e?r.apply(void 0,o):t(e-a,vf((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i,a=o.map((function(t){return yf(t)?e.shift():t}));return r.apply(void 0,(i=a,function(t){if(Array.isArray(t))return pf(t)}(i)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return pf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pf(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(e))})))}))},gf=function(t){return mf(t.length,t)},bf=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},xf=gf((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),wf=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return hf;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},Of=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Sf=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};gf((function(t,e,r){var n=+t;return n+r*(+e-n)})),gf((function(t,e,r){var n=e-+t;return(r-t)/(n||1/0)})),gf((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}));const jf=function(t,e,r){for(var n=new(ff())(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},Ef=function(t){return 0===t?1:Math.floor(new(ff())(t).abs().log(10).toNumber())+1};function Af(t){return function(t){if(Array.isArray(t))return _f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Pf(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],_n=!0,n=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(_n=(i=a.next()).done)&&(r.push(i.value),!e||r.length!==e);_n=!0);}catch(t){n=!0,o=t}finally{try{_n||null==a.return||a.return()}finally{if(n)throw o}}return r}}(t,e)||Pf(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pf(t,e){if(t){if("string"==typeof t)return _f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_f(t,e):void 0}}function _f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tf(t){var e=kf(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function Mf(t,e,r){if(t.lte(0))return new(ff())(0);var n=Ef(t.toNumber()),o=new(ff())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new(ff())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new(ff())(Math.ceil(c))}function Cf(t,e,r){var n=1,o=new(ff())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(ff())(10).pow(Ef(t)-1),o=new(ff())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(ff())(Math.floor(t)))}else 0===t?o=new(ff())(Math.floor((e-1)/2)):r||(o=new(ff())(Math.floor(t)));var a=Math.floor((e-1)/2);return wf(xf((function(t){return o.add(new(ff())(t-a).mul(n)).toNumber()})),bf)(0,e)}function If(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new(ff())(0),tickMin:new(ff())(0),tickMax:new(ff())(0)};var i,a=Mf(new(ff())(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new(ff())(0):(i=new(ff())(t).add(e).div(2)).sub(new(ff())(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new(ff())(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?If(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new(ff())(c).mul(a)),tickMax:i.add(new(ff())(u).mul(a))})}var Df=Sf((function(t){var e=kf(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=kf(Tf([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(Af(bf(0,o-1).map((function(){return 1/0})))):[].concat(Af(bf(0,o-1).map((function(){return-1/0}))),[l]);return r>n?Of(s):s}if(u===l)return Cf(u,o,i);var f=If(u,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=jf(h,d.add(new(ff())(.1).mul(p)),p);return r>n?Of(y):y})),Nf=(Sf((function(t){var e=kf(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=kf(Tf([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[r,n];if(u===l)return Cf(u,o,i);var s=Mf(new(ff())(l).sub(u).div(a-1),i,0),f=wf(xf((function(t){return new(ff())(u).add(new(ff())(t).mul(s)).toNumber()})),bf)(0,a).filter((function(t){return t>=u&&t<=l}));return r>n?Of(f):f})),Sf((function(t,e){var r=kf(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=kf(Tf([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=Mf(new(ff())(u).sub(c).div(l-1),i,0),f=[].concat(Af(jf(new(ff())(c),new(ff())(u).sub(new(ff())(.99).mul(s)),s)),[u]);return n>o?Of(f):f}))),Rf=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Lf(){return Lf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lf.apply(this,arguments)}function Bf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zf(t){var e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,c=t.dataPointFormatter,u=t.xAxis,l=t.yAxis,s=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Rf),f=Rt(s,!1);"x"===t.direction&&"number"!==u.type&&Yt(!1);var p=i.map((function(t){var i=c(t,o),s=i.x,p=i.y,h=i.value,d=i.errorVal;if(!d)return null;var y,v,m,g,b=[];if(Array.isArray(d)){var x=(g=2,function(t){if(Array.isArray(t))return t}(m=d)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(m,g)||function(t,e){if(t){if("string"==typeof t)return Bf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bf(t,e):void 0}}(m,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());y=x[0],v=x[1]}else y=v=d;if("vertical"===r){var w=u.scale,O=p+e,S=O+n,j=O-n,E=w(h-y),A=w(h+v);b.push({x1:A,y1:S,x2:A,y2:j}),b.push({x1:E,y1:O,x2:A,y2:O}),b.push({x1:E,y1:S,x2:E,y2:j})}else if("horizontal"===r){var k=l.scale,P=s+e,_=P-n,T=P+n,M=k(h-y),C=k(h+v);b.push({x1:_,y1:C,x2:T,y2:C}),b.push({x1:P,y1:M,x2:P,y2:C}),b.push({x1:_,y1:M,x2:T,y2:M})}return a().createElement(re,Lf({className:"recharts-errorBar",key:"bar-".concat(b.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},f),b.map((function(t){return a().createElement("line",Lf({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return a().createElement(re,{className:"recharts-errorBars"},p)}function Ff(t){return Ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(t)}function Uf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uf(Object(r),!0).forEach((function(e){Wf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wf(t,e,r){var n;return n=function(t){if("object"!=Ff(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ff(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Ff(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}zf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},zf.displayName="ErrorBar";var Gf=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=It(r,Qr);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,o=r.name,i=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||i||"square",color:Qf(e),value:o||n,payload:e.props}})),$f($f($f({},a.props),Qr.getWithHeight(a,o)),{},{payload:e,item:a})):null};function qf(t){return qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(t)}function Vf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vf(Object(r),!0).forEach((function(e){Hf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hf(t,e,r){var n;return n=function(t){if("object"!=qf(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=qf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==qf(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kf(t){return function(t){if(Array.isArray(t))return Yf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Yf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yf(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zf(t,e,r){return st()(t)||st()(e)?r:et(e)?K()(t,e,r):pt()(e)?e(t):r}function Jf(t,e,r,n){var o=cf()(t,(function(t){return Zf(t,e)}));if("number"===r){var i=o.filter((function(t){return tt(t)||parseFloat(t)}));return i.length?[of()(i),rf()(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!st()(t)})):o).map((function(t){return et(t)||t instanceof Date?t:""}))}var Qf=function(t){var e,r=t.type.displayName,n=t.props,o=n.stroke,i=n.fill;switch(r){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},tp=function(t,e,r,n,o){var i=Ct(e.props.children,zf).filter((function(t){return function(t,e,r){return!!st()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Zf(e,r);if(st()(n))return t;var o=Array.isArray(n)?[of()(n),rf()(n)]:[n,n],i=a.reduce((function(t,r){var n=Zf(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},ep=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&tp(t,e,i,n)||Jf(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},rp=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},np=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},op=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*J(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!X()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},ip=new WeakMap,ap=function(t,e){if("function"!=typeof e)return t;ip.has(t)||ip.set(t,new WeakMap);var r=ip.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},cp=function(e,r,n){var o=e.scale,i=e.type,a=e.layout,c=e.axisType;if("auto"===o)return"radial"===a&&"radiusAxis"===c?{scale:Oi(),realScaleType:"band"}:"radial"===a&&"angleAxis"===c?{scale:Uc(),realScaleType:"linear"}:"category"===i&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ji(),realScaleType:"point"}:"category"===i?{scale:Oi(),realScaleType:"band"}:{scale:Uc(),realScaleType:"linear"};if(q()(o)){var u="scale".concat(Ge()(o));return{scale:(t[u]||ji)(),realScaleType:t[u]?u:"point"}}return pt()(o)?{scale:o}:{scale:ji(),realScaleType:"point"}},up=1e-4,lp=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-up,i=Math.max(n[0],n[1])+up,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},sp={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=X()(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Ys(t,e)}},none:Ys,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Ys(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,Ys(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=X()(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},fp=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=sp[r],i=function(){var t=hr([]),e=Js,r=Ys,n=Qs;function o(o){var i,a,c=Array.from(t.apply(this,arguments),tf),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=Zs(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:hr(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:hr(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?Js:"function"==typeof t?t:hr(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Ys:t,o):r},o}().keys(n).value((function(t,e){return+Zf(t,e,0)})).order(Js).offset(o);return i(t)},pp=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=Df(u,o,a);return t.domain([of()(l),rf()(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Nf(s,o,a)}}return null};function hp(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!st()(o[e.dataKey])){var c=ct(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Zf(o,st()(a)?e.dataKey:a);return st()(u)?null:e.scale(u)}var dp=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=Zf(i,e.dataKey,e.domain[a]);return st()(c)?null:e.scale(c)-o/2+n},yp=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[of()(e.concat([t[0]]).filter(tt)),rf()(e.concat([t[1]]).filter(tt))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},vp=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mp=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gp=function(t,e,r){if(pt()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(tt(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(vp.test(t[0])){var o=+vp.exec(t[0])[1];n[0]=e[0]-o}else pt()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(tt(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(mp.test(t[1])){var i=+mp.exec(t[1])[1];n[1]=e[1]+i}else pt()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},bp=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=Kt()(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},xp=function(t,e,r){return t&&t.length?lf()(t,K()(r,"type.defaultProps.domain"))?e:t:e},wp=function(t,e){var r=t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return Xf(Xf({},Rt(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Qf(t),value:Zf(e,n),type:c,payload:e,chartType:u,hide:l})};function Op(t){return Op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Op(t)}function Sp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sp(Object(r),!0).forEach((function(e){Ep(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ep(t,e,r){var n;return n=function(t){if("object"!=Op(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Op(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ap=["Webkit","Moz","O","ms"];function kp(t){return kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kp(t)}function Pp(){return Pp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pp.apply(this,arguments)}function _p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_p(Object(r),!0).forEach((function(e){Rp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Lp(n.key),n)}}function Cp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Cp=function(){return!!t})()}function Ip(t){return Ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ip(t)}function Dp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Np(t,e){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Np(t,e)}function Rp(t,e,r){return(e=Lp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lp(t){var e=function(t){if("object"!=kp(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=kp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==kp(e)?e:String(e)}var Bp=function(t){return t.changedTouches&&!!t.changedTouches.length},zp=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Rp(Dp((n=this,i=[t],o=Ip(o=e),r=function(t,e){if(e&&("object"===kp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Dp(t)}(n,Cp()?Reflect.construct(o,i||[],Ip(n).constructor):o.apply(n,i)))),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),Rp(Dp(r),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),Rp(Dp(r),"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})})),r.detachDragEndListener()})),Rp(Dp(r),"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),Rp(Dp(r),"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),Rp(Dp(r),"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),Rp(Dp(r),"handleSlideDragStart",(function(t){var e=Bp(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(Dp(r),"startX"),endX:r.handleTravellerDragStart.bind(Dp(r),"endX")},r.state={},r}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Np(t,e)}(e,t),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,u),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=Zf(r[t],o,t);return pt()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Bp(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,g=v.endIndex;this.setState(Rp(Rp({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p==0:g%p==0)||o<i&&g===t||"endX"===n&&(o>i?g%p==0:m%p==0)||o>i&&g===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(Rp({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,c=t.stroke;return a().createElement("rect",{stroke:c,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,c=t.data,u=t.children,l=t.padding,s=i.Children.only(u);return s?a().cloneElement(s,{x:e,y:r,width:n,height:o,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,o,i=this,c=this.props,u=c.y,l=c.travellerWidth,s=c.height,f=c.traveller,p=c.ariaLabel,h=c.data,d=c.startIndex,y=c.endIndex,v=Math.max(t,this.props.x),m=Tp(Tp({},Rt(this.props,!1)),{},{x:v,y:u,width:l,height:s}),g=p||"Min value: ".concat(null===(n=h[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=h[y])||void 0===o?void 0:o.name);return a().createElement(re,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,c=r.travellerWidth,u=Math.min(t,e)+c,l=Math.max(Math.abs(e-t)-c,0);return a().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:u,y:n,width:l,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,c=t.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return a().createElement(re,{className:"recharts-brush-texts"},a().createElement(ia,Pp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:n+o/2},f),this.getTextOfTick(e)),a().createElement(ia,Pp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+i+5,y:n+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,c=t.width,u=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,d=s.isSlideMoving,y=s.isTravellerMoving,v=s.isTravellerFocused;if(!e||!e.length||!tt(o)||!tt(i)||!tt(c)||!tt(u)||c<=0||u<=0)return null;var m=F("recharts-brush",r),g=1===a().Children.count(n),b=function(t,e){var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=Ap.reduce((function(t,n){return jp(jp({},t),{},Ep({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return a().createElement(re,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||y||v||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,c=Math.floor(r+o/2)-1;return a().createElement(a().Fragment,null,a().createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),a().createElement("line",{x1:e+1,y1:c,x2:e+n-1,y2:c,fill:"none",stroke:"#fff"}),a().createElement("line",{x1:e+1,y1:c+2,x2:e+n-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return a().isValidElement(t)?a().cloneElement(t,r):pt()(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return Tp({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=ji().domain(Xt()(0,c)).range([o,o+i-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],n&&Mp(r.prototype,n),o&&Mp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function Fp(t){return Fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(t)}function Up(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Up(Object(r),!0).forEach((function(e){Wp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wp(t,e,r){var n;return n=function(t){if("object"!=Fp(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Fp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Fp(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Rp(zp,"displayName","Brush"),Rp(zp,"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 qp=Math.PI/180,Vp=function(t){return 180*t/Math.PI},Xp=function(t,e,r,n){return{x:t+Math.cos(-qp*n)*r,y:e+Math.sin(-qp*n)*r}},Hp=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},Kp=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},Yp=function(t,e){var r=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:Vp(u),angleInRadian:u}}({x:t.x,y:t.y},e),n=r.radius,o=r.angle,i=e.innerRadius,a=e.outerRadius;if(n<i||n>a)return!1;if(0===n)return!0;var c,u=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),l=u.startAngle,s=u.endAngle,f=o;if(l<=s){for(;f>s;)f-=360;for(;f<l;)f+=360;c=f>=l&&f<=s}else{for(;f>l;)f-=360;for(;f<s;)f+=360;c=f>=s&&f<=l}return c?$p($p({},e),{},{radius:n,angle:Kp(f,e)}):null},Zp=function(t){return(0,i.isValidElement)(t)||pt()(t)||"boolean"==typeof t?"":t.className};function Jp(t){return Jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jp(t)}var Qp=["offset"];function th(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function eh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?eh(Object(r),!0).forEach((function(e){nh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nh(t,e,r){var n;return n=function(t){if("object"!=Jp(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Jp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Jp(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oh(){return oh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oh.apply(this,arguments)}function ih(t){var e,r=t.offset,n=rh({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Qp)),o=n.viewBox,c=n.position,u=n.value,l=n.children,s=n.content,f=n.className,p=void 0===f?"":f,h=n.textBreakAll;if(!o||st()(u)&&st()(l)&&!(0,i.isValidElement)(s)&&!pt()(s))return null;if((0,i.isValidElement)(s))return(0,i.cloneElement)(s,n);if(pt()(s)){if(e=(0,i.createElement)(s,n),(0,i.isValidElement)(e))return e}else e=function(t){var e=t.value,r=t.formatter,n=st()(t.children)?e:t.children;return pt()(r)?r(n):n}(n);var d=function(t){return"cx"in t&&tt(t.cx)}(o),y=Rt(n,!0);if(d&&("insideStart"===c||"insideEnd"===c||"end"===c))return function(t,e,r){var n,o,i=t.position,c=t.viewBox,u=t.offset,l=t.className,s=c,f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius,y=s.startAngle,v=s.endAngle,m=s.clockWise,g=(h+d)/2,b=function(t,e){return J(e-t)*Math.min(Math.abs(e-t),360)}(y,v),x=b>=0?1:-1;"insideStart"===i?(n=y+x*u,o=m):"insideEnd"===i?(n=v-x*u,o=!m):"end"===i&&(n=v+x*u,o=m),o=b<=0?o:!o;var w=Xp(f,p,g,n),O=Xp(f,p,g,n+359*(o?1:-1)),S="M".concat(w.x,",").concat(w.y,"\n    A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n    ").concat(O.x,",").concat(O.y),j=st()(t.id)?nt("recharts-radial-line-"):t.id;return a().createElement("text",oh({},r,{dominantBaseline:"central",className:F("recharts-radial-bar-label",l)}),a().createElement("defs",null,a().createElement("path",{id:j,d:S})),a().createElement("textPath",{xlinkHref:"#".concat(j)},e))}(n,e,y);var v=d?function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=Xp(i,a,u+r,l),_x=s.x;return{x:_x,y:s.y,textAnchor:_x>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=Xp(i,a,(c+u)/2,l);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(n):function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=u>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===o)return rh(rh({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return rh(rh({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var g={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return rh(rh({},g),r?{width:Math.max(g.x-r.x,0),height:l}:{})}if("right"===o){var b={x:a+u+y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return rh(rh({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var x=r?{width:u,height:l}:{};return"insideLeft"===o?rh({x:a+y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?rh({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?rh({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===o?rh({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?rh({x:a+y,y:c+f,textAnchor:m,verticalAnchor:h},x):"insideTopRight"===o?rh({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===o?rh({x:a+y,y:c+l-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===o?rh({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:p},x):dt()(o)&&(tt(o.x)||Q(o.x))&&(tt(o.y)||Q(o.y))?rh({x:a+ot(o.x,u),y:c+ot(o.y,l),textAnchor:"end",verticalAnchor:"end"},x):rh({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)}(n);return a().createElement(ia,oh({className:F("recharts-label",p)},y,v,{breakAll:h}),e)}ih.displayName="Label";var ah=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(tt(d)&&tt(y)){if(tt(s)&&tt(f))return{x:s,y:f,width:d,height:y};if(tt(p)&&tt(h))return{x:p,y:h,width:d,height:y}}return tt(s)&&tt(f)?{x:s,y:f,width:0,height:0}:tt(e)&&tt(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};ih.parseViewBox=ah,ih.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,o=ah(t),c=Ct(n,ih).map((function(t,r){return(0,i.cloneElement)(t,{viewBox:e||o,key:"label-".concat(r)})}));if(!r)return c;var u,l=function(t,e){return t?!0===t?a().createElement(ih,{key:"label-implicit",viewBox:e}):et(t)?a().createElement(ih,{key:"label-implicit",viewBox:e,value:t}):(0,i.isValidElement)(t)?t.type===ih?(0,i.cloneElement)(t,{key:"label-implicit",viewBox:e}):a().createElement(ih,{key:"label-implicit",content:t,viewBox:e}):pt()(t)?a().createElement(ih,{key:"label-implicit",content:t,viewBox:e}):dt()(t)?a().createElement(ih,oh({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[l].concat(function(t){if(Array.isArray(t))return th(t)}(u=c)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(u)||function(t,e){if(t){if("string"==typeof t)return th(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?th(t,e):void 0}}(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var ch=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},uh=r(3916),lh=r.n(uh),sh=r(9747),fh=r.n(sh),ph=function(t){return null};ph.displayName="Cell";var hh=r(8090),dh=r.n(hh);function yh(t){return yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(t)}var vh=["valueAccessor"],mh=["data","dataKey","clockWise","id","textBreakAll"];function gh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bh(){return bh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bh.apply(this,arguments)}function xh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xh(Object(r),!0).forEach((function(e){Oh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Oh(t,e,r){var n;return n=function(t){if("object"!=yh(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=yh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==yh(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var jh=function(t){return Array.isArray(t.value)?dh()(t.value):t.value};function Eh(t){var e=t.valueAccessor,r=void 0===e?jh:e,n=Sh(t,vh),o=n.data,i=n.dataKey,c=n.clockWise,u=n.id,l=n.textBreakAll,s=Sh(n,mh);return o&&o.length?a().createElement(re,{className:"recharts-label-list"},o.map((function(t,e){var n=st()(i)?r(t,e):Zf(t&&t.payload,i),o=st()(u)?{}:{id:"".concat(u,"-").concat(e)};return a().createElement(ih,bh({},Rt(t,!0),s,o,{parentViewBox:t.parentViewBox,value:n,textBreakAll:l,viewBox:ih.parseViewBox(st()(c)?t:wh(wh({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))}))):null}Eh.displayName="LabelList",Eh.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n,o=Ct(t.children,Eh).map((function(t,r){return(0,i.cloneElement)(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?a().createElement(Eh,{key:"labelList-implicit",data:e}):a().isValidElement(t)||pt()(t)?a().createElement(Eh,{key:"labelList-implicit",data:e,content:t}):dt()(t)?a().createElement(Eh,bh({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(function(t){if(Array.isArray(t))return gh(t)}(n=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return gh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gh(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o};var Ah=r(1331),kh=r.n(Ah),Ph=r(3812),_h=r.n(Ph);function Th(t){return Th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Th(t)}function Mh(){return Mh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mh.apply(this,arguments)}function Ch(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ih(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ih(Object(r),!0).forEach((function(e){Nh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nh(t,e,r){var n;return n=function(t){if("object"!=Th(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Th(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Th(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rh=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),(i+="L ".concat(t+r-a/2-n,",").concat(e+o))+"L ".concat(t,",").concat(e," Z")},Lh={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Bh=function(t){var e,r,n=Dh(Dh({},Lh),t),o=(0,i.useRef)(),c=(e=(0,i.useState)(-1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Ch(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ch(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,i.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var t=o.current.getTotalLength();t&&l(t)}catch(t){}}),[]);var s=n.x,f=n.y,p=n.upperWidth,h=n.lowerWidth,d=n.height,y=n.className,v=n.animationEasing,m=n.animationDuration,g=n.animationBegin,b=n.isUpdateAnimationActive;if(s!==+s||f!==+f||p!==+p||h!==+h||d!==+d||0===p&&0===h||0===d)return null;var x=F("recharts-trapezoid",y);return b?a().createElement(oi,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:f},to:{upperWidth:p,lowerWidth:h,height:d,x:s,y:f},duration:m,animationEasing:v,isActive:b},(function(t){var e=t.upperWidth,r=t.lowerWidth,i=t.height,c=t.x,l=t.y;return a().createElement(oi,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:v},a().createElement("path",Mh({},Rt(n,!0),{className:x,d:Rh(c,l,e,r,i),ref:o})))})):a().createElement("g",null,a().createElement("path",Mh({},Rt(n,!0),{className:x,d:Rh(s,f,p,h,d)})))};function zh(t){return zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zh(t)}function Fh(){return Fh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fh.apply(this,arguments)}function Uh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uh(Object(r),!0).forEach((function(e){Wh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wh(t,e,r){var n;return n=function(t){if("object"!=zh(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=zh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==zh(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gh=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/qp,f=u?o:o+i*s,p=u?o-i*s:o;return{center:Xp(e,r,l,f),circleTangency:Xp(e,r,n,f),lineTangency:Xp(e,r,l*Math.cos(s*qp),p),theta:s}},qh=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return J(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=Xp(e,r,o,i),l=Xp(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n    ").concat(l.x,",").concat(l.y,"\n  ");if(n>0){var f=Xp(e,r,n,i),p=Xp(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n            A ").concat(n,",").concat(n,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n            ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},Vh={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Xh=function(t){var e=$h($h({},Vh),t),r=e.cx,n=e.cy,o=e.innerRadius,i=e.outerRadius,c=e.cornerRadius,u=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,f=e.endAngle,p=e.className;if(i<o||s===f)return null;var h,d=F("recharts-sector",p),y=i-o,v=ot(c,y,0,!0);return h=v>0&&Math.abs(s-f)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=J(l-u),f=Gh({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=Gh({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n      "):qh({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n  ");if(n>0){var w=Gh({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,j=w.theta,E=Gh({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),A=E.circleTangency,k=E.lineTangency,P=E.theta,_=c?Math.abs(u-l):Math.abs(u-l)-j-P;if(_<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(k.x,",").concat(k.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(A.x,",").concat(A.y,"\n      A").concat(n,",").concat(n,",0,").concat(+(_>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(v,y/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):qh({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:s,endAngle:f}),a().createElement("path",Fh({},Rt(e,!0),{className:d,d:h,role:"img"}))},Hh=["option","shapeType","propTransformer","activeClassName","isActive"];function Kh(t){return Kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kh(t)}function Yh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yh(Object(r),!0).forEach((function(e){Jh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jh(t,e,r){var n;return n=function(t){if("object"!=Kh(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Kh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Kh(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qh(t,e){return Zh(Zh({},e),t)}function td(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return a().createElement(di,r);case"trapezoid":return a().createElement(Bh,r);case"sector":return a().createElement(Xh,r);case"symbols":if(function(t){return"symbols"===t}(e))return a().createElement(_r,r);break;default:return null}}function ed(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,c=void 0===o?Qh:o,u=t.activeClassName,l=void 0===u?"recharts-active-shape":u,s=t.isActive,f=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Hh);if((0,i.isValidElement)(r))e=(0,i.cloneElement)(r,Zh(Zh({},f),function(t){return(0,i.isValidElement)(t)?t.props:t}(r)));else if(pt()(r))e=r(f);else if(kh()(r)&&!_h()(r)){var p=c(r,f);e=a().createElement(td,{shapeType:n,elementProps:p})}else{var h=f;e=a().createElement(td,{shapeType:n,elementProps:h})}return s?a().createElement(re,{className:l},e):e}function rd(t,e){return null!=e&&"trapezoids"in t.props}function nd(t,e){return null!=e&&"sectors"in t.props}function od(t,e){return null!=e&&"points"in t.props}function id(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function ad(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function cd(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function ud(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return rd(t,e)?r="trapezoids":nd(t,e)?r="sectors":od(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return rd(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:nd(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:od(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=lf()(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return rd(t,e)?r=id:nd(t,e)?r=ad:od(t,e)&&(r=cd),r}(r,e);return n(t,e)})),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}var ld=["x","y"];function sd(t){return sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sd(t)}function fd(){return fd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fd.apply(this,arguments)}function pd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pd(Object(r),!0).forEach((function(e){dd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dd(t,e,r){var n;return n=function(t){if("object"!=sd(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=sd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==sd(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yd(t,e){var r=t.x,n=t.y,o=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,ld),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return hd(hd(hd(hd(hd({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function vd(t){return a().createElement(ed,fd({shapeType:"rectangle",propTransformer:yd,activeClassName:"recharts-active-bar"},t))}var md,gd=["value","background"];function bd(t){return bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bd(t)}function xd(){return xd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xd.apply(this,arguments)}function wd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Od(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wd(Object(r),!0).forEach((function(e){Pd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_d(n.key),n)}}function jd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jd=function(){return!!t})()}function Ed(t){return Ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ed(t)}function Ad(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kd(t,e){return kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kd(t,e)}function Pd(t,e,r){return(e=_d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _d(t){var e=function(t){if("object"!=bd(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=bd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==bd(e)?e:String(e)}var Td=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return Pd(Ad((r=this,n=e,o=[].concat(a),n=Ed(n),t=function(t,e){if(e&&("object"===bd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ad(t)}(r,jd()?Reflect.construct(n,o||[],Ed(r).constructor):n.apply(r,o)))),"state",{isAnimationFinished:!1}),Pd(Ad(t),"id",nt("recharts-bar-")),Pd(Ad(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),Pd(Ad(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kd(t,e)}(e,t),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,c=r.activeBar,u=Rt(this.props,!1);return t&&t.map((function(t,r){var l=r===i,s=l?c:n,f=Od(Od(Od({},u),t),{},{isActive:l,option:s,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return a().createElement(re,xd({className:"recharts-bar-rectangle"},Ot(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),a().createElement(vd,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,c=e.animationDuration,u=e.animationEasing,l=e.animationId,s=this.state.prevData;return a().createElement(oi,{begin:i,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=s&&s[e];if(r){var i=at(r.x,t.x),a=at(r.y,t.y),c=at(r.width,t.width),u=at(r.height,t.height);return Od(Od({},t),{},{x:i(o),y:a(o),width:c(o),height:u(o)})}if("horizontal"===n){var l=at(0,t.height)(o);return Od(Od({},t),{},{y:t.y+t.height-l,height:l})}var f=at(0,t.width)(o);return Od(Od({},t),{},{width:f})}));return a().createElement(re,null,t.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&lf()(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=Rt(this.props.background,!1);return r.map((function(e,r){e.value;var c=e.background,u=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,gd);if(!c)return null;var l=Od(Od(Od(Od(Od({},u),{},{fill:"#eee"},c),i),Ot(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a().createElement(vd,xd({option:t.props.background,isActive:r===o},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,c=r.layout,u=Ct(r.children,zf);if(!u)return null;var l="vertical"===c?n[0].height/2:n[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Zf(t,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return a().createElement(re,f,u.map((function(t){return a().cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:c,offset:l,dataPointFormatter:s})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,c=t.left,u=t.top,l=t.width,s=t.height,f=t.isAnimationActive,p=t.background,h=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,y=F("recharts-bar",n),v=o&&o.allowDataOverflow,m=i&&i.allowDataOverflow,g=v||m,b=st()(h)?this.id:h;return a().createElement(re,{className:y},v||m?a().createElement("defs",null,a().createElement("clipPath",{id:"clipPath-".concat(b)},a().createElement("rect",{x:v?c:c-l/2,y:m?u:u-s/2,width:v?l:2*l,height:m?s:2*s}))):null,a().createElement(re,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(b,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,b),(!f||d)&&Eh.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&Sd(r.prototype,n),o&&Sd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function Md(t){return Md="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Md(t)}function Cd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rd(n.key),n)}}function Id(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Id(Object(r),!0).forEach((function(e){Nd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Id(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nd(t,e,r){return(e=Rd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rd(t){var e=function(t){if("object"!=Md(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Md(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Md(e)?e:String(e)}md=Td,Pd(Td,"displayName","Bar"),Pd(Td,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Pe.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Pd(Td,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var d=e.layout,y=r.props,v=y.dataKey,m=y.children,g=y.minPointSize,b="horizontal"===d?a:i,x=l?b.scale.domain():null,w=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:b}),O=Ct(m,ph),S=f.map((function(t,e){var n,f,p,y,m,b;l?n=function(t,e){if(!e||2!==e.length||!tt(e[0])||!tt(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!tt(t[0])||t[0]<r)&&(o[0]=r),(!tt(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=Zf(t,v),Array.isArray(n)||(n=[w,n]));var S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||Yt(!1),e)}}(g,md.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,E=[a.scale(n[0]),a.scale(n[1])],A=E[0],k=E[1];f=dp({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(j=null!=k?k:A)&&void 0!==j?j:void 0,y=h.size;var P=A-k;if(m=Number.isNaN(P)?0:P,b={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(m)<Math.abs(S)){var _=J(m||S)*(Math.abs(S)-Math.abs(m));p-=_,m+=_}}else{var T=[i.scale(n[0]),i.scale(n[1])],M=T[0],C=T[1];f=M,p=dp({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),y=C-M,m=h.size,b={x:i.x,y:p,width:i.width,height:m},Math.abs(S)>0&&Math.abs(y)<Math.abs(S)&&(y+=J(y||S)*(Math.abs(S)-Math.abs(y)))}return Od(Od(Od({},t),{},{x:f,y:p,width:y,height:m,value:l?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[wp(r,t)],tooltipPosition:{x:f+y/2,y:p+m/2}})}));return Od({data:S,layout:d},p)}));var Ld=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},Bd=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&Cd(e.prototype,r),n&&Cd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();Nd(Bd,"EPS",1e-4);var zd=function(t){var e=Object.keys(t).reduce((function(e,r){return Dd(Dd({},e),{},Nd({},r,Bd.create(t[r])))}),{});return Dd(Dd({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return lh()(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return fh()(t,(function(t,r){return e[r].isInRange(t)}))}})};function Fd(t){return Fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fd(t)}function Ud(){return Ud=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ud.apply(this,arguments)}function $d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$d(Object(r),!0).forEach((function(e){Gd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Gd(t,e,r){var n;return n=function(t){if("object"!=Fd(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Fd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Fd(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qd(t){var e=t.x,r=t.y,n=t.r,o=t.alwaysShow,i=t.clipPathId,c=et(e),u=et(r);if(ut(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=zd({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return ch(t,"discard")&&!i.isInRange(a)?null:a}(t);if(!l)return null;var s=l.x,f=l.y,p=t.shape,h=t.className,d=Wd(Wd({clipPath:ch(t,"hidden")?"url(#".concat(i,")"):void 0},Rt(t,!0)),{},{cx:s,cy:f});return a().createElement(re,{className:F("recharts-reference-dot",h)},qd.renderDot(p,d),ih.renderCallByParent(t,{x:s-n,y:f-n,width:2*n,height:2*n}))}qd.displayName="ReferenceDot",qd.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},qd.renderDot=function(t,e){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(en,Ud({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var Vd=r(2426),Xd=r.n(Vd),Hd=r(7309),Kd=r.n(Hd),Yd=r(104),Zd=r.n(Yd)()((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")})),Jd=(0,i.createContext)(void 0),Qd=(0,i.createContext)(void 0),ty=(0,i.createContext)(void 0),ey=(0,i.createContext)({}),ry=(0,i.createContext)(void 0),ny=(0,i.createContext)(0),oy=(0,i.createContext)(0),iy=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,c=t.children,u=t.width,l=t.height,s=Zd(o);return a().createElement(Jd.Provider,{value:r},a().createElement(Qd.Provider,{value:n},a().createElement(ey.Provider,{value:o},a().createElement(ty.Provider,{value:s},a().createElement(ry.Provider,{value:i},a().createElement(ny.Provider,{value:l},a().createElement(oy.Provider,{value:u},c)))))))},ay=function(t){var e=(0,i.useContext)(Jd);null==e&&Yt(!1);var r=e[t];return null==r&&Yt(!1),r},cy=function(t){var e=(0,i.useContext)(Qd);null==e&&Yt(!1);var r=e[t];return null==r&&Yt(!1),r},uy=function(){return(0,i.useContext)(oy)},ly=function(){return(0,i.useContext)(ny)};function sy(t){return sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sy(t)}function fy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function py(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fy(Object(r),!0).forEach((function(e){hy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hy(t,e,r){var n;return n=function(t){if("object"!=sy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=sy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==sy(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yy(){return yy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yy.apply(this,arguments)}function vy(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,c=t.yAxisId,u=t.shape,l=t.className,s=t.alwaysShow,f=(0,i.useContext)(ry),p=ay(o),h=cy(c),d=(0,i.useContext)(ty);if(!f||!d)return null;ut(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var h=u.y,d=t.y.apply(h,{position:i});if(ch(u,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===c?y.reverse():y}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(ch(u,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:i})}));return ch(u,"discard")&&Xd()(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(zd({x:p.scale,y:h.scale}),et(e),et(r),n&&2===n.length,d,t.position,p.orientation,h.orientation,t);if(!y)return null;var v,m,g,b=(m=2,function(t){if(Array.isArray(t))return t}(v=y)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(v,m)||function(t,e){if(t){if("string"==typeof t)return dy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dy(t,e):void 0}}(v,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=x.x,O=x.y,S=b[1],j=S.x,E=S.y,A=py(py({clipPath:ch(t,"hidden")?"url(#".concat(f,")"):void 0},Rt(t,!0)),{},{x1:w,y1:O,x2:j,y2:E});return a().createElement(re,{className:F("recharts-reference-line",l)},function(t,e){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement("line",yy({},e,{className:"recharts-reference-line-line"}))}(u,A),ih.renderCallByParent(t,Ld({x:(g={x1:w,y1:O,x2:j,y2:E}).x1,y:g.y1},{x:g.x2,y:g.y2})))}function my(t){return my="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},my(t)}function gy(){return gy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gy.apply(this,arguments)}function by(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?by(Object(r),!0).forEach((function(e){wy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):by(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wy(t,e,r){var n;return n=function(t){if("object"!=my(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=my(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==my(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oy(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.className,c=t.alwaysShow,u=t.clipPathId;ut(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=et(e),s=et(r),f=et(n),p=et(o),h=t.shape;if(!(l||s||f||p||h))return null;var d=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=zd({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!ch(o,"discard")||f.isInRange(p)&&f.isInRange(h)?Ld(p,h):null}(l,s,f,p,t);if(!d&&!h)return null;var y=ch(t,"hidden")?"url(#".concat(u,")"):void 0;return a().createElement(re,{className:F("recharts-reference-area",i)},Oy.renderRect(h,xy(xy({clipPath:y},Rt(t,!0)),d)),ih.renderCallByParent(t,d))}function Sy(t){return function(t){if(Array.isArray(t))return jy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return jy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jy(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}vy.displayName="ReferenceLine",vy.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"},Oy.displayName="ReferenceArea",Oy.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Oy.renderRect=function(t,e){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(di,gy({},e,{className:"recharts-reference-area-rect"}))};var Ey=function(t,e,r,n,o){var i=Ct(t,vy),a=Ct(t,qd),c=[].concat(Sy(i),Sy(a)),u=Ct(t,Oy),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&ch(e.props,"extendDomain")&&tt(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),h="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&ch(e.props,"extendDomain")&&tt(e.props[p])&&tt(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return tt(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},Ay=r(228),ky=new(r.n(Ay)()),Py="recharts.syncMouseEvents";function _y(t){return _y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_y(t)}function Ty(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Cy(n.key),n)}}function My(t,e,r){return(e=Cy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cy(t){var e=function(t){if("object"!=_y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_y(e)?e:String(e)}var Iy=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),My(this,"activeIndex",0),My(this,"coordinateList",[]),My(this,"layout","horizontal")}var e,r;return e=t,(r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])&&Ty(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Dy(){}function Ny(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Ry(t){this._context=t}function Ly(t){this._context=t}function By(t){this._context=t}Ry.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:Ny(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ny(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ly.prototype={areaStart:Dy,areaEnd:Dy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ny(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},By.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ny(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class zy{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function Fy(t){this._context=t}function Uy(t){this._context=t}function $y(t){return new Uy(t)}function Wy(t){return t<0?-1:1}function Gy(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(Wy(i)+Wy(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function qy(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Vy(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function Xy(t){this._context=t}function Hy(t){this._context=new Ky(t)}function Ky(t){this._context=t}function Yy(t){this._context=t}function Zy(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Jy(t,e){this._context=t,this._t=e}function Qy(t){return t[0]}function tv(t){return t[1]}function ev(t,e){var r=hr(!0),n=null,o=$y,i=null,a=xr(c);function c(c){var u,l,s,f=(c=Zs(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Qy:hr(t),e="function"==typeof e?e:void 0===e?tv:hr(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:hr(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:hr(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function rv(t,e,r){var n=null,o=hr(!0),i=null,a=$y,c=null,u=xr(l);function l(l){var s,f,p,h,d,y=(l=Zs(l)).length,v=!1,m=new Array(y),g=new Array(y);for(null==i&&(c=a(d=u())),s=0;s<=y;++s){if(!(s<y&&o(h=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],g[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,l),g[s]=+e(h,s,l),c.point(n?+n(h,s,l):m[s],r?+r(h,s,l):g[s]))}if(d)return c=null,d+""||null}function s(){return ev().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Qy:hr(+t),e="function"==typeof e?e:hr(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?tv:hr(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:hr(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:hr(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:hr(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:hr(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:hr(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}function nv(t){return nv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nv(t)}function ov(){return ov=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ov.apply(this,arguments)}function iv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function av(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iv(Object(r),!0).forEach((function(e){cv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cv(t,e,r){var n;return n=function(t){if("object"!=nv(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=nv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==nv(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Fy.prototype={areaStart:Dy,areaEnd:Dy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Uy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Xy.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:Vy(this,this._t0,qy(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Vy(this,qy(this,r=Gy(this,t,e)),r);break;default:Vy(this,this._t0,r=Gy(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Hy.prototype=Object.create(Xy.prototype)).point=function(t,e){Xy.prototype.point.call(this,e,t)},Ky.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},Yy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Zy(t),o=Zy(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Jy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var uv={curveBasisClosed:function(t){return new Ly(t)},curveBasisOpen:function(t){return new By(t)},curveBasis:function(t){return new Ry(t)},curveBumpX:function(t){return new zy(t,!0)},curveBumpY:function(t){return new zy(t,!1)},curveLinearClosed:function(t){return new Fy(t)},curveLinear:$y,curveMonotoneX:function(t){return new Xy(t)},curveMonotoneY:function(t){return new Hy(t)},curveNatural:function(t){return new Yy(t)},curveStep:function(t){return new Jy(t,.5)},curveStepAfter:function(t){return new Jy(t,1)},curveStepBefore:function(t){return new Jy(t,0)}},lv=function(t){return t.x===+t.x&&t.y===+t.y},sv=function(t){return t.x},fv=function(t){return t.y},pv=function(t){var e=t.className,r=t.points,n=t.path,o=t.pathRef;if(!(r&&r.length||n))return null;var i=r&&r.length?function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(pt()(t))return t;var r="curve".concat(Ge()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?uv[r]||$y:uv["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return lv(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return lv(t)})):a,h=f.map((function(t,e){return av(av({},t),{},{base:p[e]})}));return(e="vertical"===c?rv().y(fv).x1(sv).x0((function(t){return t.base.x})):rv().x(sv).y1(fv).y0((function(t){return t.base.y}))).defined(lv).curve(s),e(h)}return(e="vertical"===c&&tt(a)?rv().y(fv).x1(sv).x0(a):tt(a)?rv().x(sv).y1(fv).y0(a):ev().x(sv).y(fv)).defined(lv).curve(s),e(f)}(t):n;return a().createElement("path",ov({},Rt(t,!1),wt(t),{className:F("recharts-curve",e),d:i,ref:o}))};function hv(t){return hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hv(t)}var dv=["x","y","top","left","width","height","className"];function yv(){return yv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yv.apply(this,arguments)}function vv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mv(t,e,r){var n;return n=function(t){if("object"!=hv(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=hv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==hv(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var gv=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},bv=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,c=void 0===i?0:i,u=t.left,l=void 0===u?0:u,s=t.width,f=void 0===s?0:s,p=t.height,h=void 0===p?0:p,d=t.className,y=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vv(Object(r),!0).forEach((function(e){mv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:o,top:c,left:l,width:f,height:h},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,dv));return tt(r)&&tt(o)&&tt(f)&&tt(h)&&tt(c)&&tt(l)?a().createElement("path",yv({},Rt(y,!0),{className:F("recharts-cross",d),d:gv(r,o,f,h,c,l)})):null};function xv(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[Xp(e,r,n,o),Xp(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function wv(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return xv(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=Xp(c,u,l,f),h=Xp(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function Ov(t){return Ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ov(t)}function Sv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sv(Object(r),!0).forEach((function(e){Ev(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ev(t,e,r){var n;return n=function(t){if("object"!=Ov(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ov(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Ov(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Av(t){var e,r=t.element,n=t.tooltipEventType,o=t.isActive,a=t.activeCoordinate,c=t.activePayload,u=t.offset,l=t.activeTooltipIndex,s=t.tooltipAxisBandSize,f=t.layout,p=t.chartName;if(!r||!r.props.cursor||!o||!a||"ScatterChart"!==p&&"axis"!==n)return null;var h=pv;if("ScatterChart"===p)e=a,h=bv;else if("BarChart"===p)e=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(f,a,u,s),h=di;else if("radial"===f){var d=xv(a),y=d.cx,v=d.cy,m=d.radius;e={cx:y,cy:v,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:m,outerRadius:m},h=Xh}else e={points:wv(f,a,u)},h=pv;var g=jv(jv(jv(jv({stroke:"#ccc",pointerEvents:"none"},u),e),Rt(r.props.cursor,!1)),{},{payload:c,payloadIndex:l,className:F("recharts-tooltip-cursor",r.props.cursor.className)});return(0,i.isValidElement)(r.props.cursor)?(0,i.cloneElement)(r.props.cursor,g):(0,i.createElement)(h,g)}var kv=["item"],Pv=["children","className","width","height","style","compact","title","desc"];function _v(t){return _v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_v(t)}function Tv(){return Tv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tv.apply(this,arguments)}function Mv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||zv(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cv(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Iv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Gv(n.key),n)}}function Dv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Dv=function(){return!!t})()}function Nv(t){return Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nv(t)}function Rv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lv(t,e){return Lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lv(t,e)}function Bv(t){return function(t){if(Array.isArray(t))return Fv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||zv(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zv(t,e){if(t){if("string"==typeof t)return Fv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fv(t,e):void 0}}function Fv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Uv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uv(Object(r),!0).forEach((function(e){Wv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wv(t,e,r){return(e=Gv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gv(t){var e=function(t){if("object"!=_v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_v(e)?e:String(e)}var qv={xAxis:["bottom","top"],yAxis:["left","right"]},Vv={width:"100%",height:"100%"},Xv={x:0,y:0};function Hv(t){return t}var Kv=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(Bv(t),Bv(r)):t}),[]);return i.length>0?i:t&&t.length&&tt(n)&&tt(o)?t.slice(n,o+1):[]};function Yv(t){return"number"===t?[0,"auto"]:void 0}var Zv=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=Kv(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;return s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),(l=i.dataKey&&!i.allowDuplicatedCategory?ct(void 0===s?a:s,i.dataKey,n):s&&s[r]||a[r])?[].concat(Bv(o),[wp(c,l)]):o}),[])},Jv=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(J(s-l)!==J(f-s)){var h=[];if(J(f-s)===J(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+c[1]-c[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(t>(m+s)/2&&t<=(g+s)/2){i=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=Zv(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return $v($v($v({},n),Xp(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return $v($v($v({},n),Xp(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return Xv}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Qv=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Ct(l,o),p={};return f&&f.length?p=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=rp(l,o);return r.reduce((function(e,r){var h,d=r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,b=d.scale,x=d.ticks,w=d.includeHidden,O=r.props[i];if(e[O])return e;var S,j,E,A=Kv(t.data,{graphicalItems:n.filter((function(t){return t.props[i]===O})),dataStartIndex:c,dataEndIndex:u}),k=A.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&tt(n)&&tt(o))return!0}return!1})(r.props.domain,m,y)&&(S=gp(r.props.domain,null,m),!p||"number"!==y&&"auto"===b||(E=Jf(A,v,"category")));var P=Yv(y);if(!S||0===S.length){var _,T=null!==(_=r.props.domain)&&void 0!==_?_:P;if(v){if(S=Jf(A,v,y),"category"===y&&p){var M=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);g&&M?(j=S,S=Xt()(0,k)):g||(S=xp(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(Bv(t),[e])}),[]))}else if("category"===y)S=g?S.filter((function(t){return""!==t&&!st()(t)})):xp(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||st()(e)?t:[].concat(Bv(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,o){var i=e.map((function(e){return tp(t,e,r,o,n)})).filter((function(t){return!st()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(A,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),v,o,l);C&&(S=C)}!p||"number"!==y&&"auto"===b||(E=Jf(A,v,"category"))}else S=p?Xt()(0,k):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:yp(a[O].stackGroups,c,u):ep(A,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),y,l,!0);if("number"===y)S=Ey(s,S,O,o,x),T&&(S=gp(T,S,m));else if("category"===y&&T){var I=T;S.every((function(t){return I.indexOf(t)>=0}))&&(S=I)}}return $v($v({},e),{},Wv({},O,$v($v({},r.props),{},{axisType:o,domain:S,categoricalDomain:E,duplicateDomain:j,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:P,isCategorical:p,layout:l})))}),{})}(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=Kv(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=rp(l,o),d=-1;return r.reduce((function(t,e){var y,v=e.props[i],m=Yv("number");return t[v]?t:(d++,h?y=Xt()(0,p):a&&a[v]&&a[v].hasStack?(y=yp(a[v].stackGroups,c,u),y=Ey(s,y,v,o)):(y=gp(m,ep(f,r.filter((function(t){return t.props[i]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),y=Ey(s,y,v,o)),$v($v({},t),{},Wv({},v,$v($v({axisType:o},n.defaultProps),{},{hide:!0,orientation:K()(qv,"".concat(o,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},tm=function(t){var e=t.children,r=t.defaultShowTooltip,n=It(e,zp),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},em=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},rm=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},nm=function(t){var e,r=t.chartName,n=t.GraphicalChild,o=t.defaultTooltipEventType,c=void 0===o?"axis":o,u=t.validateTooltipEventTypes,l=void 0===u?["axis"]:u,s=t.axisComponents,f=t.legendContent,p=t.formatAxisMap,h=t.defaultProps,d=function(t,e){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Dt({props:o}))return null;var u=o.children,l=o.layout,f=o.stackOffset,h=o.data,d=o.reverseStackOrder,y=em(l),v=y.numericAxisName,m=y.cateAxisName,g=Ct(u,n),b=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(et(i)){var u=c.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[nt("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Xf(Xf({},t),{},Hf({},a,c))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return Xf(Xf({},e),{},Hf({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:fp(t,a.items,o)}))}),{})),Xf(Xf({},e),{},Hf({},i,c))}),{})}(h,g,"".concat(v,"Id"),"".concat(m,"Id"),f,d),x=s.reduce((function(t,e){var r="".concat(e.axisType,"Map");return $v($v({},t),{},Wv({},r,Qv(o,$v($v({},e),{},{graphicalItems:g,stackGroups:e.axisType===v&&b,dataStartIndex:i,dataEndIndex:a}))))}),{}),w=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=It(l,zp),p=It(l,Qr),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:$v($v({},t),{},Wv({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:$v($v({},t),{},Wv({},n,K()(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=$v($v({},d),h),v=y.bottom;f&&(y.bottom+=f.props.height||zp.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=Gf({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&tt(t[p]))return Xf(Xf({},t),{},Hf({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&tt(t[h]))return Xf(Xf({},t),{},Hf({},h,t[h]+(f||0)))}return t}(y,0,r,e));var m=c-y.left-y.right,g=u-y.top-y.bottom;return $v($v({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})}($v($v({},x),{},{props:o,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=p(o,x[t],w,t.replace("Map",""),r)}));var O,S,j=x["".concat(m,"Map")],E=(O=it(j),{tooltipTicks:S=op(O,!1,!0),orderedTooltipTicks:Kt()(S,(function(t){return t.coordinate})),tooltipAxis:O,tooltipAxisBandSize:bp(O,S)}),A=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=em(l),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Pt(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=[];return r.forEach((function(r,d){var b=Kv(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),x=r.props,w=x.dataKey,O=x.maxBarSize,S=r.props["".concat(y,"Id")],j=r.props["".concat(v,"Id")],E=s.reduce((function(t,n){var o=e["".concat(n.axisType,"Map")],i=r.props["".concat(n.axisType,"Id")];o&&o[i]||"zAxis"===n.axisType||Yt(!1);var a=o[i];return $v($v({},t),{},Wv(Wv({},n.axisType,a),"".concat(n.axisType,"Ticks"),op(a)))}),{}),A=E[v],k=E["".concat(v,"Ticks")],P=n&&n[S]&&n[S].hasStack&&function(t,e){var r=t.props.stackId;if(et(r)){var n=e[r];if(n){var o=n.items.indexOf(t);return o>=0?n.stackedData[o]:null}}return null}(r,n[S].stackGroups),_=Pt(r.type).indexOf("Bar")>=0,T=bp(A,k),M=[],C=m&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var h=l[s[f]],d=h.items,y=h.cateAxisId,v=d.filter((function(t){return Pt(t.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].props.barSize,g=v[0].props[y];i[g]||(i[g]=[]);var b=st()(m)?e:m;i[g].push({item:v[0],stackList:v.slice(1),barSize:st()(b)?void 0:ot(b,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:rm(E,v)});if(_){var I,D,N=st()(O)?h:O,R=null!==(I=null!==(D=bp(A,k,!0))&&void 0!==D?D:N)&&void 0!==I?I:0;M=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=ot(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var d={offset:((n-h)/2|0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(Kf(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=ot(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,r){var n=[].concat(Kf(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:p,bandSize:R!==T?R:T,sizeList:C[j],maxBarSize:N}),R!==T&&(M=M.map((function(t){return $v($v({},t),{},{position:$v($v({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&g.push({props:$v($v({},z($v($v({},E),{},{displayedData:b,props:t,dataKey:w,item:r,bandSize:T,barPosition:M,offset:o,stackedData:P,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},Wv(Wv(Wv({key:r.key||"item-".concat(d)},y,E[y]),v,E[v]),"animationId",i)),childIndex:(L=r,B=t.children,Mt(B).indexOf(L)),item:r})})),g}(o,$v($v({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:c,graphicalItems:g,stackGroups:b,offset:w}));return $v($v({formattedGraphicalItems:A,graphicalItems:g,offset:w,stackGroups:b},E),x)};return e=function(t){function e(t){var n,o,c,u,l,s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Wv(Rv((u=this,s=[t],l=Nv(l=e),c=function(t,e){if(e&&("object"===_v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Rv(t)}(u,Dv()?Reflect.construct(l,s||[],Nv(u).constructor):l.apply(u,s)))),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Wv(Rv(c),"accessibilityManager",new Iy),Wv(Rv(c),"handleLegendBBoxUpdate",(function(t){if(t){var e=c.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;c.setState($v({legendBBox:t},d({props:c.props,dataStartIndex:r,dataEndIndex:n,updateId:o},$v($v({},c.state),{},{legendBBox:t}))))}})),Wv(Rv(c),"handleReceiveSyncEvent",(function(t,e,r){if(c.props.syncId===t){if(r===c.eventEmitterSymbol&&"function"!=typeof c.props.syncMethod)return;c.applySyncEvent(e)}})),Wv(Rv(c),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==c.state.dataStartIndex||r!==c.state.dataEndIndex){var n=c.state.updateId;c.setState((function(){return $v({dataStartIndex:e,dataEndIndex:r},d({props:c.props,dataStartIndex:e,dataEndIndex:r,updateId:n},c.state))})),c.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),Wv(Rv(c),"handleMouseEnter",(function(t){var e=c.getMouseInfo(t);if(e){var r=$v($v({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseEnter;pt()(n)&&n(r,t)}})),Wv(Rv(c),"triggeredAfterMouseMove",(function(t){var e=c.getMouseInfo(t),r=e?$v($v({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseMove;pt()(n)&&n(r,t)})),Wv(Rv(c),"handleItemMouseEnter",(function(t){c.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),Wv(Rv(c),"handleItemMouseLeave",(function(){c.setState((function(){return{isTooltipActive:!1}}))})),Wv(Rv(c),"handleMouseMove",(function(t){t.persist(),c.throttleTriggeredAfterMouseMove(t)})),Wv(Rv(c),"handleMouseLeave",(function(t){c.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};c.setState(e),c.triggerSyncEvent(e);var r=c.props.onMouseLeave;pt()(r)&&r(e,t)})),Wv(Rv(c),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&kt[e]?kt[e]:null}(t),n=K()(c.props,"".concat(r));r&&pt()(n)&&n(null!==(e=/.*touch.*/i.test(r)?c.getMouseInfo(t.changedTouches[0]):c.getMouseInfo(t))&&void 0!==e?e:{},t)})),Wv(Rv(c),"handleClick",(function(t){var e=c.getMouseInfo(t);if(e){var r=$v($v({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onClick;pt()(n)&&n(r,t)}})),Wv(Rv(c),"handleMouseDown",(function(t){var e=c.props.onMouseDown;pt()(e)&&e(c.getMouseInfo(t),t)})),Wv(Rv(c),"handleMouseUp",(function(t){var e=c.props.onMouseUp;pt()(e)&&e(c.getMouseInfo(t),t)})),Wv(Rv(c),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),Wv(Rv(c),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseDown(t.changedTouches[0])})),Wv(Rv(c),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseUp(t.changedTouches[0])})),Wv(Rv(c),"triggerSyncEvent",(function(t){void 0!==c.props.syncId&&ky.emit(Py,c.props.syncId,t,c.eventEmitterSymbol)})),Wv(Rv(c),"applySyncEvent",(function(t){var e=c.props,r=e.layout,n=e.syncMethod,o=c.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)c.setState($v({dataStartIndex:i,dataEndIndex:a},d({props:c.props,dataStartIndex:i,dataEndIndex:a,updateId:o},c.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=c.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var v=$v($v({},p),{},{x:p.left,y:p.top}),m=Math.min(u,v.x+v.width),g=Math.min(l,v.y+v.height),b=h[s]&&h[s].value,x=Zv(c.state,c.props.data,s),w=h[s]?{x:"horizontal"===r?h[s].coordinate:m,y:"horizontal"===r?g:h[s].coordinate}:Xv;c.setState($v($v({},t),{},{activeLabel:b,activeCoordinate:w,activePayload:x,activeTooltipIndex:s}))}else c.setState(t)})),Wv(Rv(c),"renderCursor",(function(t){var e,n=c.state,o=n.isTooltipActive,i=n.activeCoordinate,u=n.activePayload,l=n.offset,s=n.activeTooltipIndex,f=n.tooltipAxisBandSize,p=c.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:o,d=c.props.layout,y=t.key||"_recharts-cursor";return a().createElement(Av,{key:y,activeCoordinate:i,activePayload:u,activeTooltipIndex:s,chartName:r,element:t,isActive:h,layout:d,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})})),Wv(Rv(c),"renderPolarAxis",(function(t,e,r){var n=K()(t,"type.axisType"),o=K()(c.state,"".concat(n,"Map")),a=o&&o[t.props["".concat(n,"Id")]];return(0,i.cloneElement)(t,$v($v({},a),{},{className:F(n,a.className),key:t.key||"".concat(e,"-").concat(r),ticks:op(a,!0)}))})),Wv(Rv(c),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=c.state,u=a.radiusAxisMap,l=a.angleAxisMap,s=it(u),f=it(l),p=f.cx,h=f.cy,d=f.innerRadius,y=f.outerRadius;return(0,i.cloneElement)(t,{polarAngles:Array.isArray(n)?n:op(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:op(s,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:d,outerRadius:y,key:t.key||"polar-grid",radialLines:r})})),Wv(Rv(c),"renderLegend",(function(){var t=c.state.formattedGraphicalItems,e=c.props,r=e.children,n=e.width,o=e.height,a=c.props.margin||{},u=n-(a.left||0)-(a.right||0),l=Gf({children:r,formattedGraphicalItems:t,legendWidth:u,legendContent:f});if(!l)return null;var s=l.item,p=Cv(l,kv);return(0,i.cloneElement)(s,$v($v({},p),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:c.handleLegendBBoxUpdate}))})),Wv(Rv(c),"renderTooltip",(function(){var t,e=c.props,r=e.children,n=e.accessibilityLayer,o=It(r,$e);if(!o)return null;var a=c.state,u=a.isTooltipActive,l=a.activeCoordinate,s=a.activePayload,f=a.activeLabel,p=a.offset,h=null!==(t=o.props.active)&&void 0!==t?t:u;return(0,i.cloneElement)(o,{viewBox:$v($v({},p),{},{x:p.left,y:p.top}),active:h,label:f,payload:h?s:[],coordinate:l,accessibilityLayer:n})})),Wv(Rv(c),"renderBrush",(function(t){var e=c.props,r=e.margin,n=e.data,o=c.state,a=o.offset,u=o.dataStartIndex,l=o.dataEndIndex,s=o.updateId;return(0,i.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:ap(c.handleBrushChange,t.props.onChange),data:n,x:tt(t.props.x)?t.props.x:a.left,y:tt(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:tt(t.props.width)?t.props.width:a.width,startIndex:u,endIndex:l,updateId:"brush-".concat(s)})})),Wv(Rv(c),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=Rv(c).clipPathId,o=c.state,a=o.xAxisMap,u=o.yAxisMap,l=o.offset,s=t.props,f=s.xAxisId,p=s.yAxisId;return(0,i.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[f],yAxis:u[p],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),Wv(Rv(c),"renderActivePoints",(function(t){var r=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=r.props.key,l=r.item.props,s=l.activeDot,f=$v($v({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Qf(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(i)},Rt(s,!1)),wt(s));return c.push(e.renderActiveDot(s,f)),o?c.push(e.renderActiveDot(s,$v($v({},f),{},{cx:o.x,cy:o.y,key:"".concat(u,"-basePoint-").concat(i)}))):a&&c.push(null),c})),Wv(Rv(c),"renderGraphicChild",(function(t,e,r){var n=c.filterFormatItem(t,e,r);if(!n)return null;var o=c.getTooltipEventType(),a=c.state,u=a.isTooltipActive,l=a.tooltipAxis,s=a.activeTooltipIndex,f=a.activeLabel,p=It(c.props.children,$e),h=n.props,d=h.points,y=h.isRange,v=h.baseLine,m=n.item.props,g=m.activeDot,b=m.hide,x=m.activeBar,w=m.activeShape,O=Boolean(!b&&u&&p&&(g||x||w)),S={};"axis"!==o&&p&&"click"===p.props.trigger?S={onClick:ap(c.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(S={onMouseLeave:ap(c.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:ap(c.handleItemMouseEnter,t.props.onMouseEnter)});var j=(0,i.cloneElement)(t,$v($v({},n.props),S));if(O){if(!(s>=0)){var E,A=(null!==(E=c.getItemByXY(c.state.activeCoordinate))&&void 0!==E?E:{graphicalItem:j}).graphicalItem,k=A.item,P=void 0===k?t:k,_=A.childIndex,T=$v($v($v({},n.props),S),{},{activeIndex:_});return[(0,i.cloneElement)(P,T),null,null]}var M,C;if(l.dataKey&&!l.allowDuplicatedCategory){var I="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());M=ct(d,I,f),C=y&&v&&ct(v,I,f)}else M=null==d?void 0:d[s],C=y&&v&&v[s];if(w||x){var D=void 0!==t.props.activeIndex?t.props.activeIndex:s;return[(0,i.cloneElement)(t,$v($v($v({},n.props),S),{},{activeIndex:D})),null,null]}if(!st()(M))return[j].concat(Bv(c.renderActivePoints({item:n,activePoint:M,basePoint:C,childIndex:s,isRange:y})))}return y?[j,null,null]:[j,null]})),Wv(Rv(c),"renderCustomized",(function(t,e,r){return(0,i.cloneElement)(t,$v($v({key:"recharts-customized-".concat(r)},c.props),c.state))})),Wv(Rv(c),"renderMap",{CartesianGrid:{handler:Hv,once:!0},ReferenceArea:{handler:c.renderReferenceElement},ReferenceLine:{handler:Hv},ReferenceDot:{handler:c.renderReferenceElement},XAxis:{handler:Hv},YAxis:{handler:Hv},Brush:{handler:c.renderBrush,once:!0},Bar:{handler:c.renderGraphicChild},Line:{handler:c.renderGraphicChild},Area:{handler:c.renderGraphicChild},Radar:{handler:c.renderGraphicChild},RadialBar:{handler:c.renderGraphicChild},Scatter:{handler:c.renderGraphicChild},Pie:{handler:c.renderGraphicChild},Funnel:{handler:c.renderGraphicChild},Tooltip:{handler:c.renderCursor,once:!0},PolarGrid:{handler:c.renderPolarGrid,once:!0},PolarAngleAxis:{handler:c.renderPolarAxis},PolarRadiusAxis:{handler:c.renderPolarAxis},Customized:{handler:c.renderCustomized}}),c.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:nt("recharts"),"-clip"),c.throttleTriggeredAfterMouseMove=$()(c.triggeredAfterMouseMove,null!==(o=t.throttleDelay)&&void 0!==o?o:1e3/60),c.state={},c}var n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lv(t,e)}(e,t),n=e,o=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=It(e,$e);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=Zv(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=$v($v({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){Lt([It(t.children,$e)],[It(this.props.children,$e)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=It(this.props.children,$e);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:c}return c}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o=(e=n).top+window.scrollY-document.documentElement.clientTop,i=e.left+window.scrollX-document.documentElement.clientLeft,a={chartX:Math.round(t.pageX-i),chartY:Math.round(t.pageY-o)},c=n.width/r.offsetWidth||1,u=this.inRange(a.chartX,a.chartY,c);if(!u)return null;var l=this.state,s=l.xAxisMap,f=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&f){var p=it(s).scale,h=it(f).scale,d=p&&p.invert?p.invert(a.chartX):null,y=h&&h.invert?h.invert(a.chartY):null;return $v($v({},a),{},{xValue:d,yValue:y})}var v=Jv(this.state,this.props.data,this.props.layout,u);return v?$v($v({},a),v):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=it(u);return Yp({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=It(t,$e),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),$v($v({},wt(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){ky.on(Py,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ky.removeListener(Py,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===Pt(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return a().createElement("defs",null,a().createElement("clipPath",{id:t},a().createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=Mv(e,2),n=r[0],o=r[1];return $v($v({},t),{},Wv({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=Mv(e,2),n=r[0],o=r[1];return $v($v({},t),{},Wv({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=Pt(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return pi(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return Yp(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(rd(a,n)||nd(a,n)||od(a,n)){var p=ud({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),h=void 0===u.props.activeIndex?p:u.props.activeIndex;return{graphicalItem:$v($v({},a),{},{childIndex:h}),payload:od(a,n)?u.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var t=this;if(!Dt(this))return null;var e,r,n=this.props,o=n.children,i=n.className,c=n.width,u=n.height,l=n.style,s=n.compact,f=n.title,p=n.desc,h=Cv(n,Pv),d=Rt(h,!1);if(s)return a().createElement(iy,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},a().createElement(Qt,Tv({},d,{width:c,height:u,title:f,desc:p}),this.renderClipPath(),zt(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return a().createElement(iy,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},a().createElement("div",Tv({className:F("recharts-wrapper",i),style:$v({position:"relative",cursor:"default",width:c,height:u},l)},y,{ref:function(e){t.container=e}}),a().createElement(Qt,Tv({},d,{width:c,height:u,title:f,desc:p,style:Vv}),this.renderClipPath(),zt(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],o&&Iv(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),e}(i.Component),Wv(e,"displayName",r),Wv(e,"defaultProps",$v({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Wv(e,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=tm(t);return $v($v($v({},p),{},{updateId:0},d($v($v({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!yt(l,e.prevMargin)){var h=tm(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=$v($v({},Jv(e,n,c)),{},{updateId:e.updateId+1}),m=$v($v($v({},h),y),v);return $v($v($v({},m),d($v({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!Lt(o,e.prevChildren)){var g,b,x,w,O=It(o,zp),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(x=null===(w=O.props)||void 0===w?void 0:w.endIndex)&&void 0!==x?x:f,E=S!==s||j!==f,A=st()(n)||E?e.updateId+1:e.updateId;return $v($v({updateId:A},d($v($v({props:t},e),{},{updateId:A,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),Wv(e,"renderActiveDot",(function(t,e){var r;return r=(0,i.isValidElement)(t)?(0,i.cloneElement)(t,e):pt()(t)?t(e):a().createElement(en,e),a().createElement(re,{className:"recharts-active-dot",key:e.key},r)})),e},om=["type","layout","connectNulls","ref"];function im(t){return im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},im(t)}function am(){return am=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},am.apply(this,arguments)}function cm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function um(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cm(Object(r),!0).forEach((function(e){vm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lm(t){return function(t){if(Array.isArray(t))return sm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return sm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sm(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mm(n.key),n)}}function pm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pm=function(){return!!t})()}function hm(t){return hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hm(t)}function dm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ym(t,e){return ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ym(t,e)}function vm(t,e,r){return(e=mm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mm(t){var e=function(t){if("object"!=im(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=im(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==im(e)?e:String(e)}var gm=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return vm(dm((r=this,n=e,o=[].concat(a),n=hm(n),t=function(t,e){if(e&&("object"===im(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return dm(t)}(r,pm()?Reflect.construct(n,o||[],hm(r).constructor):n.apply(r,o)))),"state",{isAnimationFinished:!0,totalLength:0}),vm(dm(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),vm(dm(t),"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(lm(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(lm(e.repeat(o,a)),lm(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),vm(dm(t),"id",nt("recharts-line-")),vm(dm(t),"pathRef",(function(e){t.mainCurve=e})),vm(dm(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),vm(dm(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ym(t,e)}(e,t),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,o=r.xAxis,i=r.yAxis,c=r.layout,u=Ct(r.children,zf);if(!u)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Zf(t.payload,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return a().createElement(re,s,u.map((function(t){return a().cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,c=o.points,u=o.dataKey,l=Rt(this.props,!1),s=Rt(i,!0),f=c.map((function(t,r){var n=um(um(um({key:"dot-".concat(r),r:3},l),s),{},{value:t.value,dataKey:u,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(i,n)})),p={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return a().createElement(re,am({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,r,n){var o=this.props,i=o.type,c=o.layout,u=o.connectNulls,l=(o.ref,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(o,om)),s=um(um(um({},Rt(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:i,layout:c,connectNulls:u});return a().createElement(pv,am({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.strokeDasharray,c=n.isAnimationActive,u=n.animationBegin,l=n.animationDuration,s=n.animationEasing,f=n.animationId,p=n.animateNewValues,h=n.width,d=n.height,y=this.state,v=y.prevPoints,m=y.totalLength;return a().createElement(oi,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(v){var c=v.length/o.length,u=o.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],o=at(n.x,t.x),i=at(n.y,t.y);return um(um({},t),{},{x:o(a),y:i(a)})}if(p){var u=at(2*h,t.x),l=at(d/2,t.y);return um(um({},t),{},{x:u(a),y:l(a)})}return um(um({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=at(0,m)(a);if(i){var f="".concat(i).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,m,f)}else l=r.generateSimpleStrokeDasharray(m,s);return r.renderCurveStatically(o,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!lf()(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,c=e.xAxis,u=e.yAxis,l=e.top,s=e.left,f=e.width,p=e.height,h=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var y=this.state.isAnimationFinished,v=1===o.length,m=F("recharts-line",i),g=c&&c.allowDataOverflow,b=u&&u.allowDataOverflow,x=g||b,w=st()(d)?this.id:d,O=null!==(t=Rt(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=O.r,j=void 0===S?3:S,E=O.strokeWidth,A=void 0===E?2:E,k=(function(t){return t&&"object"===At(t)&&"cx"in t&&"cy"in t&&"r"in t}(n)?n:{}).clipDot,P=void 0===k||k,_=2*j+A;return a().createElement(re,{className:m},g||b?a().createElement("defs",null,a().createElement("clipPath",{id:"clipPath-".concat(w)},a().createElement("rect",{x:g?s:s-f/2,y:b?l:l-p/2,width:g?f:2*f,height:b?p:2*p})),!P&&a().createElement("clipPath",{id:"clipPath-dots-".concat(w)},a().createElement("rect",{x:s-_/2,y:l-_/2,width:f+_,height:p+_}))):null,!v&&this.renderCurve(x,w),this.renderErrorBar(x,w),(v||n)&&this.renderDots(x,P,w),(!h||y)&&Eh.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(lm(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(lm(n),lm(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(a().isValidElement(t))r=a().cloneElement(t,e);else if(pt()(t))r=t(e);else{var n=F("recharts-line-dot","boolean"!=typeof t?t.className:"");r=a().createElement(en,am({},e,{className:n}))}return r}}],n&&fm(r.prototype,n),o&&fm(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function bm(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function xm(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function wm(t){return wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wm(t)}function Om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Om(Object(r),!0).forEach((function(e){jm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jm(t,e,r){var n;return n=function(t){if("object"!=wm(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=wm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==wm(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Em(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(tt(u)||Pe.isSsr)return function(t,e){return bm(t,e+1)}(o,"number"==typeof u&&tt(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",d=s&&"width"===h?Ci(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=pt()(l)?l(t.value,n):t.value;return"width"===h?function(t,e,r){return function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)}({width:t.width+e.width,height:t.height+e.height},r)}(Ci(o,{fontSize:e,letterSpacing:r}),d,f):Ci(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?J(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:bm(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,d=0===l||xm(t,h,p,f,u);d||(l=0,f=c,s+=1),d&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=Sm(Sm({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),xm(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=Sm(Sm({},s),{},{isShow:!0}))}for(var h=i?c-1:c,d=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=Sm(Sm({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=Sm(Sm({},i),{},{tickCoord:i.coordinate});xm(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=Sm(Sm({},i),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(v,m,y,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=Sm(Sm({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=Sm(Sm({},l),{},{tickCoord:l.coordinate});xm(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=Sm(Sm({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,y,o,a),p.filter((function(t){return t.isShow})))}vm(gm,"displayName","Line"),vm(gm,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Pe.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),vm(gm,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout,f=u.map((function(t,e){var u=Zf(t,a);return"horizontal"===s?{x:hp({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:st()(u)?null:n.scale(u),value:u,payload:t}:{x:st()(u)?null:r.scale(u),y:hp({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}}));return um({points:f,layout:s},l)}));var Am=["viewBox"],km=["viewBox"],Pm=["ticks"];function _m(t){return _m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_m(t)}function Tm(){return Tm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tm.apply(this,arguments)}function Mm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mm(Object(r),!0).forEach((function(e){Bm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Im(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Dm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zm(n.key),n)}}function Nm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nm=function(){return!!t})()}function Rm(t){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rm(t)}function Lm(t,e){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lm(t,e)}function Bm(t,e,r){return(e=zm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zm(t){var e=function(t){if("object"!=_m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_m(e)?e:String(e)}var Fm=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=this,o=e,i=[t],o=Rm(o),r=function(t,e){if(e&&("object"===_m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(n,Nm()?Reflect.construct(o,i||[],Rm(n).constructor):o.apply(n,i))).state={fontSize:"",letterSpacing:""},r}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lm(t,e)}(e,t),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=Im(t,Am),o=this.props,i=o.viewBox,a=Im(o,km);return!yt(r,i)||!yt(n,a)||!yt(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,m=t.tickSize||h,g=tt(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!d*f)-v*m)-v*y,i=g;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!d*s)-v*m)-v*y,a=g;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +d*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(o=l+ +d*f)+v*m)+v*y,i=g}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,c=t.mirror,u=t.axisLine,l=Cm(Cm(Cm({},Rt(this.props,!1)),Rt(u,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var s=+("top"===i&&!c||"bottom"===i&&c);l=Cm(Cm({},l),{},{x1:e,y1:r+s*o,x2:e+n,y2:r+s*o})}else{var f=+("left"===i&&!c||"right"===i&&c);l=Cm(Cm({},l),{},{x1:e+f*n,y1:r,x2:e+f*n,y2:r+o})}return a().createElement("line",Tm({},l,{className:F("recharts-cartesian-axis-line",K()(u,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var o=this,i=this.props,c=i.tickLine,u=i.stroke,l=i.tick,s=i.tickFormatter,f=i.unit,p=Em(Cm(Cm({},this.props),{},{ticks:t}),r,n),h=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),y=Rt(this.props,!1),v=Rt(l,!1),m=Cm(Cm({},y),{},{fill:"none"},Rt(c,!1)),g=p.map((function(t,r){var n=o.getTickLineCoord(t),i=n.line,g=n.tick,b=Cm(Cm(Cm(Cm({textAnchor:h,verticalAnchor:d},y),{},{stroke:"none",fill:u},v),g),{},{index:r,payload:t,visibleTicksCount:p.length,tickFormatter:s});return a().createElement(re,Tm({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Ot(o.props,t,r)),c&&a().createElement("line",Tm({},m,i,{className:F("recharts-cartesian-axis-tick-line",K()(c,"className"))})),l&&e.renderTickItem(l,b,"".concat(pt()(s)?s(t.value,r):t.value).concat(f||"")))}));return a().createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,c=e.className;if(e.hide)return null;var u=this.props,l=u.ticks,s=Im(u,Pm),f=l;return pt()(i)&&(f=l&&l.length>0?i(this.props):i(s)),n<=0||o<=0||!f||!f.length?null:a().createElement(re,{className:F("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),ih.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,e,r){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(ia,Tm({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&Dm(r.prototype,n),o&&Dm(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.Component);function Um(){return Um=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Um.apply(this,arguments)}Bm(Fm,"displayName","CartesianAxis"),Bm(Fm,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var $m=function(t){var e=t.xAxisId,r=uy(),n=ly(),o=ay(e);return null==o?null:a().createElement(Fm,Um({},o,{className:F("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return op(t,!0)}}))};function Wm(){return Wm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wm.apply(this,arguments)}$m.displayName="XAxis",$m.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var Gm=function(t){var e=t.yAxisId,r=uy(),n=ly(),o=cy(e);return null==o?null:a().createElement(Fm,Wm({},o,{className:F("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return op(t,!0)}}))};Gm.displayName="YAxis",Gm.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var qm=nm({chartName:"LineChart",GraphicalChild:gm,axisComponents:[{axisType:"xAxis",AxisComp:$m},{axisType:"yAxis",AxisComp:Gm}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!It(u,Td);return l.reduce((function(i,a){var u,l,p,h,d,y=e[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,x=y.mirror,w=y.reversed,O="".concat(v).concat(x?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,E=y.categoricalDomain.sort();if(E.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(E[e-1]||0),j))})),Number.isFinite(j)){var A=j/S,k="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=A*k/2),"no-gap"===y.padding){var P=ot(t.barCategoryGap,A*k),_=A*k/2;u=_-P-(_-P)/k*P}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,w&&(l=[l[1],l[0]]);var T=cp(y,o,f),M=T.scale,C=T.realScaleType;M.domain(m).range(l),lp(M);var I=pp(M,Dd(Dd({},y),{},{realScaleType:C}));"xAxis"===n?(d="top"===v&&!x||"bottom"===v&&x,p=r.left,h=s[O]-d*y.height):"yAxis"===n&&(d="left"===v&&!x||"right"===v&&x,p=s[O]-d*y.width,h=r.top);var D=Dd(Dd(Dd({},y),I),{},{realScaleType:C,x:p,y:h,scale:M,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return D.bandSize=bp(D,I),y.hide||"xAxis"!==n?y.hide||(s[O]+=(d?-1:1)*D.width):s[O]+=(d?-1:1)*D.height,Dd(Dd({},i),{},Nd({},a,D))}),{})}}),Vm=["x1","y1","x2","y2","key"],Xm=["offset"];function Hm(t){return Hm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hm(t)}function Km(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ym(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Km(Object(r),!0).forEach((function(e){Zm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Km(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zm(t,e,r){var n;return n=function(t){if("object"!=Hm(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Hm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Hm(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jm(){return Jm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Jm.apply(this,arguments)}function Qm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var tg=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,o=t.y,i=t.width,c=t.height;return a().createElement("rect",{x:n,y:o,width:i,height:c,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function eg(t,e){var r;if(a().isValidElement(t))r=a().cloneElement(t,e);else if(pt()(t))r=t(e);else{var n=e.x1,o=e.y1,i=e.x2,c=e.y2,u=e.key,l=Qm(e,Vm),s=Rt(l,!1),f=(s.offset,Qm(s,Xm));r=a().createElement("line",Jm({},f,{x1:n,y1:o,x2:i,y2:c,fill:"none",key:u}))}return r}function rg(t){var e=t.x,r=t.width,n=t.horizontal,o=void 0===n||n,i=t.horizontalPoints;if(!o||!i||!i.length)return null;var c=i.map((function(n,i){var a=Ym(Ym({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(i),index:i});return eg(o,a)}));return a().createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function ng(t){var e=t.y,r=t.height,n=t.vertical,o=void 0===n||n,i=t.verticalPoints;if(!o||!i||!i.length)return null;var c=i.map((function(n,i){var a=Ym(Ym({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(i),index:i});return eg(o,a)}));return a().createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function og(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,o=t.y,i=t.width,c=t.height,u=t.horizontalPoints,l=t.horizontal;if(void 0!==l&&!l||!e||!e.length)return null;var s=u.map((function(t){return Math.round(t+o-o)})).sort((function(t,e){return t-e}));o!==s[0]&&s.unshift(0);var f=s.map((function(t,u){var l=s[u+1]?s[u+1]-t:o+c-t;if(l<=0)return null;var f=u%e.length;return a().createElement("rect",{key:"react-".concat(u),y:t,x:n,height:l,width:i,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return a().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function ig(t){var e=t.vertical,r=void 0===e||e,n=t.verticalFill,o=t.fillOpacity,i=t.x,c=t.y,u=t.width,l=t.height,s=t.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==f[0]&&f.unshift(0);var p=f.map((function(t,e){var r=f[e+1]?f[e+1]-t:i+u-t;if(r<=0)return null;var s=e%n.length;return a().createElement("rect",{key:"react-".concat(e),x:t,y:c,width:r,height:l,stroke:"none",fill:n[s],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return a().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var ag=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return np(Em(Ym(Ym(Ym({},Fm.defaultProps),r),{},{ticks:op(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},cg=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return np(Em(Ym(Ym(Ym({},Fm.defaultProps),r),{},{ticks:op(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},ug={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function lg(t){var e,r,n,o,c,u,l,s,f=uy(),p=ly(),h=(0,i.useContext)(ey),d=Ym(Ym({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:ug.stroke,fill:null!==(r=t.fill)&&void 0!==r?r:ug.fill,horizontal:null!==(n=t.horizontal)&&void 0!==n?n:ug.horizontal,horizontalFill:null!==(o=t.horizontalFill)&&void 0!==o?o:ug.horizontalFill,vertical:null!==(c=t.vertical)&&void 0!==c?c:ug.vertical,verticalFill:null!==(u=t.verticalFill)&&void 0!==u?u:ug.verticalFill,x:tt(t.x)?t.x:h.left,y:tt(t.y)?t.y:h.top,width:tt(t.width)?t.width:h.width,height:tt(t.height)?t.height:h.height}),y=d.x,v=d.y,m=d.width,g=d.height,b=d.syncWithTicks,x=d.horizontalValues,w=d.verticalValues,O=(l=(0,i.useContext)(Jd),it(l)),S=(s=(0,i.useContext)(Qd),Kd()(s,(function(t){return fh()(t.domain,Number.isFinite)}))||it(s));if(!tt(m)||m<=0||!tt(g)||g<=0||!tt(y)||y!==+y||!tt(v)||v!==+v)return null;var j=d.verticalCoordinatesGenerator||ag,E=d.horizontalCoordinatesGenerator||cg,A=d.horizontalPoints,k=d.verticalPoints;if((!A||!A.length)&&pt()(E)){var P=x&&x.length,_=E({yAxis:S?Ym(Ym({},S),{},{ticks:P?x:S.ticks}):void 0,width:f,height:p,offset:h},!!P||b);ut(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Hm(_),"]")),Array.isArray(_)&&(A=_)}if((!k||!k.length)&&pt()(j)){var T=w&&w.length,M=j({xAxis:O?Ym(Ym({},O),{},{ticks:T?w:O.ticks}):void 0,width:f,height:p,offset:h},!!T||b);ut(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Hm(M),"]")),Array.isArray(M)&&(k=M)}return a().createElement("g",{className:"recharts-cartesian-grid"},a().createElement(tg,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height}),a().createElement(rg,Jm({},d,{offset:h,horizontalPoints:A,xAxis:O,yAxis:S})),a().createElement(ng,Jm({},d,{offset:h,verticalPoints:k,xAxis:O,yAxis:S})),a().createElement(og,Jm({},d,{horizontalPoints:A})),a().createElement(ig,Jm({},d,{verticalPoints:k})))}lg.displayName="CartesianGrid";var sg=["points","className","baseLinePoints","connectNulls"];function fg(){return fg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fg.apply(this,arguments)}function pg(t){return function(t){if(Array.isArray(t))return hg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return hg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hg(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var dg=function(t){return t&&t.x===+t.x&&t.y===+t.y},yg=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach((function(t){dg(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])})),dg(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce((function(t,e){return[].concat(pg(t),pg(e))}),[])]);var n=r.map((function(t){return t.reduce((function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},vg=function(t){var e=t.points,r=t.className,n=t.baseLinePoints,o=t.connectNulls,i=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,sg);if(!e||!e.length)return null;var c=F("recharts-polygon",r);if(n&&n.length){var u=i.stroke&&"none"!==i.stroke,l=function(t,e,r){var n=yg(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(yg(e.reverse(),r).slice(1))}(e,n,o);return a().createElement("g",{className:c},a().createElement("path",fg({},Rt(i,!0),{fill:"Z"===l.slice(-1)?i.fill:"none",stroke:"none",d:l})),u?a().createElement("path",fg({},Rt(i,!0),{fill:"none",d:yg(e,o)})):null,u?a().createElement("path",fg({},Rt(i,!0),{fill:"none",d:yg(n,o)})):null)}var s=yg(e,o);return a().createElement("path",fg({},Rt(i,!0),{fill:"Z"===s.slice(-1)?i.fill:"none",className:c,d:s}))};function mg(t){return mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mg(t)}function gg(){return gg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gg.apply(this,arguments)}function bg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bg(Object(r),!0).forEach((function(e){Eg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ag(n.key),n)}}function Og(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Og=function(){return!!t})()}function Sg(t){return Sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sg(t)}function jg(t,e){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jg(t,e)}function Eg(t,e,r){return(e=Ag(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ag(t){var e=function(t){if("object"!=mg(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=mg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==mg(e)?e:String(e)}var kg=Math.PI/180,Pg=1e-5,_g=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=Sg(r=e),function(t,e){if(e&&("object"===mg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Og()?Reflect.construct(r,n||[],Sg(t).constructor):r.apply(t,n));var t,r,n}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jg(t,e)}(e,t),r=e,n=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=Xp(r,n,o,t.coordinate),u=Xp(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*kg);return r>Pg?"outer"===e?"start":"end":r<-Pg?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.radius,o=t.axisLine,i=t.axisLineType,c=xg(xg({},Rt(this.props,!1)),{},{fill:"none"},Rt(o,!1));if("circle"===i)return a().createElement(en,gg({className:"recharts-polar-angle-axis-line"},c,{cx:e,cy:r,r:n}));var u=this.props.ticks.map((function(t){return Xp(e,r,n,t.coordinate)}));return a().createElement(vg,gg({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var t=this,r=this.props,n=r.ticks,o=r.tick,i=r.tickLine,c=r.tickFormatter,u=r.stroke,l=Rt(this.props,!1),s=Rt(o,!1),f=xg(xg({},l),{},{fill:"none"},Rt(i,!1)),p=n.map((function(r,n){var p=t.getTickLineCoord(r),h=xg(xg(xg({textAnchor:t.getTickTextAnchor(r)},l),{},{stroke:"none",fill:u},s),{},{index:n,payload:r,x:p.x2,y:p.y2});return a().createElement(re,gg({className:F("recharts-polar-angle-axis-tick",Zp(o)),key:"tick-".concat(r.coordinate)},Ot(t.props,r,n)),i&&a().createElement("line",gg({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&e.renderTickItem(o,h,c?c(r.value,n):r.value))}));return a().createElement(re,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,e=t.ticks,r=t.radius,n=t.axisLine;return r<=0||!e||!e.length?null:a().createElement(re,{className:F("recharts-polar-angle-axis",this.props.className)},n&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(t,e,r){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(ia,gg({},e,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],n&&wg(r.prototype,n),o&&wg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);Eg(_g,"displayName","PolarAngleAxis"),Eg(_g,"axisType","angleAxis"),Eg(_g,"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 Tg=r(7551),Mg=r.n(Tg),Cg=r(6533),Ig=r.n(Cg),Dg=["cx","cy","angle","ticks","axisLine"],Ng=["ticks","tick","angle","tickFormatter","stroke"];function Rg(t){return Rg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rg(t)}function Lg(){return Lg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lg.apply(this,arguments)}function Bg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bg(Object(r),!0).forEach((function(e){qg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ug(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Vg(n.key),n)}}function $g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($g=function(){return!!t})()}function Wg(t){return Wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wg(t)}function Gg(t,e){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gg(t,e)}function qg(t,e,r){return(e=Vg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vg(t){var e=function(t){if("object"!=Rg(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Rg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rg(e)?e:String(e)}var Xg,Hg=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=Wg(r=e),function(t,e){if(e&&("object"===Rg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$g()?Reflect.construct(r,n||[],Wg(t).constructor):r.apply(t,n));var t,r,n}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gg(t,e)}(e,t),r=e,n=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return Xp(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=Mg()(o,(function(t){return t.coordinate||0}));return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:Ig()(o,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=t.axisLine,c=Fg(t,Dg),u=o.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),l=Xp(e,r,u[0],n),s=Xp(e,r,u[1],n),f=zg(zg(zg({},Rt(c,!1)),{},{fill:"none"},Rt(i,!1)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return a().createElement("line",Lg({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,r=this.props,n=r.ticks,o=r.tick,i=r.angle,c=r.tickFormatter,u=r.stroke,l=Fg(r,Ng),s=this.getTickTextAnchor(),f=Rt(l,!1),p=Rt(o,!1),h=n.map((function(r,n){var l=t.getTickValueCoord(r),h=zg(zg(zg(zg({textAnchor:s,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:u},p),{},{index:n},l),{},{payload:r});return a().createElement(re,Lg({className:F("recharts-polar-radius-axis-tick",Zp(o)),key:"tick-".concat(r.coordinate)},Ot(t.props,r,n)),e.renderTickItem(o,h,c?c(r.value,n):r.value))}));return a().createElement(re,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var t=this.props,e=t.ticks,r=t.axisLine,n=t.tick;return e&&e.length?a().createElement(re,{className:F("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),n&&this.renderTicks(),ih.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(t,e,r){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(ia,Lg({},e,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],n&&Ug(r.prototype,n),o&&Ug(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function Kg(t){return Kg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kg(t)}function Yg(){return Yg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yg.apply(this,arguments)}function Zg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zg(Object(r),!0).forEach((function(e){ob(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ib(n.key),n)}}function tb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tb=function(){return!!t})()}function eb(t){return eb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eb(t)}function rb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nb(t,e){return nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nb(t,e)}function ob(t,e,r){return(e=ib(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ib(t){var e=function(t){if("object"!=Kg(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Kg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Kg(e)?e:String(e)}qg(Hg,"displayName","PolarRadiusAxis"),qg(Hg,"axisType","radiusAxis"),qg(Hg,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var ab=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ob(rb((n=this,i=[t],o=eb(o=e),r=function(t,e){if(e&&("object"===Kg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rb(t)}(n,tb()?Reflect.construct(o,i||[],eb(n).constructor):o.apply(n,i)))),"pieRef",null),ob(rb(r),"sectorRefs",[]),ob(rb(r),"id",nt("recharts-pie-")),ob(rb(r),"handleAnimationEnd",(function(){var t=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),pt()(t)&&t()})),ob(rb(r),"handleAnimationStart",(function(){var t=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),pt()(t)&&t()})),r.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},r}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nb(t,e)}(e,t),r=e,o=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,e){if(a().isValidElement(t))return a().cloneElement(t,e);if(pt()(t))return t(e);var r=F("recharts-pie-label-line","boolean"!=typeof t?t.className:"");return a().createElement(pv,Yg({},e,{type:"linear",className:r}))}},{key:"renderLabelItem",value:function(t,e,r){if(a().isValidElement(t))return a().cloneElement(t,e);var n=r;if(pt()(t)&&(n=t(e),a().isValidElement(n)))return n;var o=F("recharts-pie-label-text","boolean"==typeof t||pt()(t)?"":t.className);return a().createElement(ia,Yg({},e,{alignmentBaseline:"middle",className:o}),n)}}],(n=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.label,o=r.labelLine,i=r.dataKey,c=r.valueKey,u=Rt(this.props,!1),l=Rt(n,!1),s=Rt(o,!1),f=n&&n.offsetRadius||20,p=t.map((function(t,r){var p=(t.startAngle+t.endAngle)/2,h=Xp(t.cx,t.cy,t.outerRadius+f,p),d=Jg(Jg(Jg(Jg({},u),t),{},{stroke:"none"},l),{},{index:r,textAnchor:e.getTextAnchor(h.x,t.cx)},h),y=Jg(Jg(Jg(Jg({},u),t),{},{fill:"none",stroke:t.fill},s),{},{index:r,points:[Xp(t.cx,t.cy,t.outerRadius,p),h],key:"line"}),v=i;return st()(i)&&st()(c)?v="value":st()(i)&&(v=c),a().createElement(re,{key:"label-".concat(t.startAngle,"-").concat(t.endAngle,"-").concat(t.midAngle,"-").concat(r)},o&&e.renderLabelLineItem(o,y),e.renderLabelItem(n,d,Zf(t,v)))}));return a().createElement(re,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var e=this,r=this.props,n=r.activeShape,o=r.blendStroke,i=r.inactiveShape;return t.map((function(r,c){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==t.length)return null;var u=e.isActiveIndex(c),l=i&&e.hasActiveIndex()?i:null,s=u?n:l,f=Jg(Jg({},r),{},{stroke:o?r.fill:r.stroke,tabIndex:-1});return a().createElement(re,Yg({ref:function(t){t&&!e.sectorRefs.includes(t)&&e.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},Ot(e.props,r,c),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(c)}),a().createElement(ed,Yg({option:s,isActive:u,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,r=e.sectors,n=e.isAnimationActive,o=e.animationBegin,i=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state,s=l.prevSectors,f=l.prevIsAnimationActive;return a().createElement(oi,{begin:o,duration:i,isActive:n,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var n=e.t,o=[],i=(r&&r[0]).startAngle;return r.forEach((function(t,e){var r=s&&s[e],a=e>0?K()(t,"paddingAngle",0):0;if(r){var c=at(r.endAngle-r.startAngle,t.endAngle-t.startAngle),u=Jg(Jg({},t),{},{startAngle:i+a,endAngle:i+c(n)+a});o.push(u),i=u.endAngle}else{var l=t.endAngle,f=t.startAngle,p=at(0,l-f)(n),h=Jg(Jg({},t),{},{startAngle:i+a,endAngle:i+p+a});o.push(h),i=h.endAngle}})),a().createElement(re,null,t.renderSectorsStatically(o))}))}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&lf()(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,e=this.props,r=e.hide,n=e.sectors,o=e.className,i=e.label,c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.isAnimationActive,p=this.state.isAnimationFinished;if(r||!n||!n.length||!tt(c)||!tt(u)||!tt(l)||!tt(s))return null;var h=F("recharts-pie",o);return a().createElement(re,{tabIndex:this.props.rootTabIndex,className:h,ref:function(e){t.pieRef=e}},this.renderSectors(),i&&this.renderLabels(n),ih.renderCallByParent(this.props,null,!1),(!f||p)&&Eh.renderCallByParent(this.props,n,!1))}}])&&Qg(r.prototype,n),o&&Qg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);Xg=ab,ob(ab,"displayName","Pie"),ob(ab,"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:!Pe.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),ob(ab,"parseDeltaAngle",(function(t,e){return J(e-t)*Math.min(Math.abs(e-t),360)})),ob(ab,"getRealPieData",(function(t){var e=t.props,r=e.data,n=e.children,o=Rt(t.props,!1),i=Ct(n,ph);return r&&r.length?r.map((function(t,e){return Jg(Jg(Jg({payload:t},o),t),i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return Jg(Jg({},o),t.props)})):[]})),ob(ab,"parseCoordinateOfPie",(function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=Hp(o,i);return{cx:n+ot(t.props.cx,o,o/2),cy:r+ot(t.props.cy,i,i/2),innerRadius:ot(t.props.innerRadius,a,0),outerRadius:ot(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),ob(ab,"getComposedData",(function(t){var e=t.item,r=t.offset,n=Xg.getRealPieData(e);if(!n||!n.length)return null;var o=e.props,i=o.cornerRadius,a=o.startAngle,c=o.endAngle,u=o.paddingAngle,l=o.dataKey,s=o.nameKey,f=o.valueKey,p=o.tooltipType,h=Math.abs(e.props.minAngle),d=Xg.parseCoordinateOfPie(e,r),y=Xg.parseDeltaAngle(a,c),v=Math.abs(y),m=l;st()(l)&&st()(f)?(ut(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),m="value"):st()(l)&&(ut(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),m=f);var g,b,x=n.filter((function(t){return 0!==Zf(t,m,0)})).length,w=v-x*h-(v>=360?x:x-1)*u,O=n.reduce((function(t,e){var r=Zf(e,m,0);return t+(tt(r)?r:0)}),0);return O>0&&(g=n.map((function(t,e){var r,n=Zf(t,m,0),o=Zf(t,s,e),c=(tt(n)?n:0)/O,l=(r=e?b.endAngle+J(y)*u*(0!==n?1:0):a)+J(y)*((0!==n?h:0)+c*w),f=(r+l)/2,v=(d.innerRadius+d.outerRadius)/2,g=[{name:o,value:n,payload:t,dataKey:m,type:p}],x=Xp(d.cx,d.cy,v,f);return b=Jg(Jg(Jg({percent:c,cornerRadius:i,name:o,tooltipPayload:g,midAngle:f,middleRadius:v,tooltipPosition:x},t),d),{},{value:Zf(t,m),startAngle:r,endAngle:l,payload:t,paddingAngle:J(y)*u})}))),Jg(Jg({},d),{},{sectors:g,data:n})}));var cb=nm({chartName:"PieChart",GraphicalChild:ab,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:_g},{axisType:"radiusAxis",AxisComp:Hg}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=ot(t.cx,i,i/2),s=ot(t.cy,a,a/2),f=Hp(i,a,r),p=ot(t.innerRadius,f,0),h=ot(t.outerRadius,f,.8*f);return Object.keys(e).reduce((function(t,r){var i,a,f,d=e[r],y=d.domain,v=d.reversed;if(st()(d.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[p,h]),v&&(i=[i[1],i[0]]);else{var m=(a=i=d.range,f=2,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(a,f)||function(t,e){if(t){if("string"==typeof t)return Gp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gp(t,e):void 0}}(a,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());c=m[0],u=m[1]}var g=cp(d,o),b=g.realScaleType,x=g.scale;x.domain(y).range(i),lp(x);var w=pp(x,$p($p({},d),{},{realScaleType:b})),O=$p($p($p({},d),w),{},{range:i,radius:h,realScaleType:b,scale:x,cx:l,cy:s,innerRadius:p,outerRadius:h,startAngle:c,endAngle:u});return $p($p({},t),{},Wp({},r,O))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ub=function(t){var e=t.children,r=t.className;return React.createElement("div",{className:"bg-white shadow rounded-lg p-4 ".concat(r)},e)},lb=function(t){var e=t.children,r=t.className;return React.createElement("div",{className:"font-bold text-lg mb-2 ".concat(r)},e)},sb=function(t){var e=t.children,r=t.className;return React.createElement("h3",{className:"text-2xl font-semibold leading-none tracking-tight text-center ".concat(r)},e)},fb=function(t){var e=t.children,r=t.className;return React.createElement("div",{className:r},e)},pb=["#0088FE","#00C49F","#FFBB28","#FF8042","#AF19FF"];const hb=function(t){var e=t.lastMonthOrders,r=A();if(!e||!r)return null;var n=e.ordersData,o=e.topProductsData,i=e.topCategoriesData;return React.createElement("div",{className:"border-b border-gray-900/10 pb-12"},React.createElement("h2",{className:"text-base font-semibold leading-7 text-gray-900"},k("dashboard.chart.title")),React.createElement("p",{className:"mt-1 text-sm leading-6 text-gray-600"},k("dashboard.chart.description")),React.createElement("div",{className:"mt-10 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-1 lg:grid-cols-2"},React.createElement(ub,null,React.createElement(lb,null,React.createElement(sb,null,k("dashboard.charts.title_1"))),React.createElement(fb,null,React.createElement("div",{style:{width:"100%",height:300}},React.createElement(qt,null,React.createElement(qm,{data:n},React.createElement(lg,{strokeDasharray:"3 3"}),React.createElement($m,{dataKey:"day"}),React.createElement(Gm,null),React.createElement($e,null),React.createElement(Qr,null),React.createElement(gm,{type:"monotone",dataKey:"total",name:k("dashboard.chart.keys.total"),stroke:"#8884d8"}),React.createElement(gm,{type:"monotone",dataKey:"completed",name:k("dashboard.chart.keys.completed"),stroke:"#82ca9d"}),React.createElement(gm,{type:"monotone",dataKey:"processing",name:k("dashboard.chart.keys.processing"),stroke:"#ffc658"}),React.createElement(gm,{type:"monotone",dataKey:"pending",name:k("dashboard.chart.keys.pending"),stroke:"#ff0000"}),React.createElement(gm,{type:"monotone",dataKey:"failed",name:k("dashboard.chart.keys.failed"),stroke:"#000000"})))))),React.createElement(ub,null,React.createElement(lb,null,React.createElement(sb,null,k("dashboard.charts.title_3"))),React.createElement(fb,null,React.createElement("div",{style:{width:"100%",height:300}},React.createElement(qt,null,React.createElement(cb,null,React.createElement(ab,{data:o,cx:"50%",cy:"50%",outerRadius:100,fill:"#8884d8",dataKey:"value",label:!0},o.map((function(t,e){return React.createElement(ph,{key:"cell-".concat(e),fill:pb[e%pb.length]})}))),React.createElement($e,null),React.createElement(Qr,null)))))),React.createElement(ub,null,React.createElement(lb,null,React.createElement(sb,null,k("dashboard.charts.title_4"))),React.createElement(fb,null,React.createElement("div",{style:{width:"100%",height:300}},React.createElement(qt,null,React.createElement(cb,null,React.createElement(ab,{data:i,cx:"50%",cy:"50%",outerRadius:100,fill:"#82ca9d",dataKey:"value",label:!0},i.map((function(t,e){return React.createElement(ph,{key:"cell-".concat(e),fill:pb[e%pb.length]})}))),React.createElement($e,null),React.createElement(Qr,null))))))))};function db(t){return db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},db(t)}function yb(){yb=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:A(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var x={};l(x,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(M([])));O&&O!==r&&n.call(O,a)&&(x=O);var S=b.prototype=m.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==db(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(db(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),l(S,u,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function vb(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function mb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return gb(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gb(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const bb=function(){var t=mb((0,o.useState)(null),2),e=t[0],r=t[1],n=mb((0,o.useState)(null),2),i=n[0],a=n[1];return(0,o.useEffect)((function(){var t=function(){var t,e=(t=yb().mark((function t(){var e,n;return yb().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g();case 3:return e=t.sent,r(e),t.next=7,b();case 7:n=t.sent,a(n),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Veri çekme işlemi sırasında hata oluştu:",t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){vb(i,n,o,a,c,"next",t)}function c(t){vb(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();t()}),[]),React.createElement("div",{className:"space-y-12"},React.createElement(B,{stats:e}),React.createElement(hb,{lastMonthOrders:i}))},xb=function(t){var e=t.activeMenuItem;return React.createElement(React.Fragment,null,React.createElement("div",{className:"bg-white p-6 rounded shadow"},function(){switch(e){case"dashboard":return React.createElement(bb,null);case"settings":return React.createElement(N,null);default:return React.createElement("h1",null,"404")}}()),React.createElement("span",{className:"mt-1"},"v3.5.0"))},wb=function(){return React.createElement("svg",{height:"32px",viewBox:"0 0 70 48",version:"1.1"},React.createElement("defs",null,React.createElement("linearGradient",{x1:"90.2554899%",y1:"50%",x2:"0%",y2:"50%",id:"linearGradient-1"},React.createElement("stop",{"stop-color":"#ffffff",offset:"0%"}),React.createElement("stop",{"stop-color":"#ffffff","stop-opacity":"0",offset:"100%"}))),React.createElement("g",{id:"00---Home",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},React.createElement("g",{id:"000.0.0-Ortak-Anasayfa",transform:"translate(-135.000000, -1339.000000)",fill:"url(#linearGradient-1)"},React.createElement("g",{id:"Group-7",transform:"translate(0.000000, 1249.000000)"},React.createElement("g",{id:"Body/Text",transform:"translate(135.000000, 80.000000)"},React.createElement("g",{id:"Group-3",transform:"translate(0.000000, 10.000000)"},React.createElement("path",{d:"M6.3,0 C2.82072,0 0,2.68586667 0,6 L0,42 C0,45.3141333 2.82072,48 6.3,48 L53.86192,48 C56.21112,48 58.36488,46.7557333 59.4496,44.7706667 L69.2888,26.7712 C69.75472,25.9178667 69.9916,24.9850667 70,24.0512 L70,23.9488 C69.9916,23.0149333 69.75472,22.0821333 69.2888,21.2293333 L59.4496,3.22933333 C58.36488,1.2448 56.21112,0 53.86192,0 L6.3,0 Z",id:"Fill-1"})))))))};function Ob(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const Sb=function(t){var e=t.setActiveMenuItem,r=t.activeMenuItem,n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ob(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ob(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(!1),2),i=n[0],a=n[1];if(!A())return null;var c=[{name:k("header.menu.dashboard"),key:"dashboard"},{name:k("header.menu.settings"),key:"settings"}];return React.createElement("header",{className:"mb-4 shadow"},React.createElement("nav",{className:"bg-iyzico-blue rounded-md"},React.createElement("div",{className:"px-4 sm:px-6 lg:px-8"},React.createElement("div",{className:"relative flex h-16 items-center"},React.createElement("div",{className:"absolute inset-y-0 left-0 flex items-center sm:hidden"},React.createElement("button",{type:"button",className:"relative inline-flex items-center justify-start rounded-md p-2 text-gray-400 hover:bg-gray-700 hover:text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:function(){return a(!i)}})),React.createElement("div",{className:"flex items-center"},React.createElement("div",{className:"flex-shrink-0"},React.createElement(wb,null)),React.createElement("div",{className:"hidden sm:ml-6 sm:block"},React.createElement("div",{className:"flex space-x-4"},c.map((function(t){return React.createElement("button",{key:t.key,className:(n=t.key,"".concat("rounded-md px-3 py-2 text-sm font-medium",n===r?" bg-white text-iyzico-blue focus:outline-none focus:ring-0":" text-white hover:bg-white hover:text-iyzico-blue")),onClick:function(){return function(t){e(t),a(!1)}(t.key)}},t.name);var n})))))))))};function jb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const Eb=function(){var t=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return jb(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jb(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)("dashboard"),2),e=t[0],r=t[1];return React.createElement(React.Fragment,null,React.createElement(Sb,{setActiveMenuItem:r,activeMenuItem:e}),React.createElement("div",{className:"min-h-screen flex flex-col"},React.createElement(xb,{activeMenuItem:e})))};n()((function(){(0,o.createRoot)(document.getElementById("iyzico-app")).render(React.createElement(Eb,null))}))})()})();
     1(()=>{var t={8351:function(t,e,r){var n;!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c=!0,u="[DecimalError] ",l=u+"Invalid argument: ",s=u+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=1e7,y=f(1286742750677284.5),v={};function m(t,e){var r,n,o,i,a,u,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),c?k(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,u=s.length):(n=s,o=a,u=l.length),i>(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=l.length)-(i=s.length)<0&&(i=u,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/d|0,l[i]%=d;for(r&&(l.unshift(r),++o),u=l.length;0==l[--u];)l.pop();return e.d=l,e.e=o,c?k(e,p):e}function g(t,e,r){if(t!==~~t||t<e||t>r)throw Error(l+t)}function b(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(r=7-(n=t[e]+"").length)&&(i+=j(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=j(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}v.absoluteValue=v.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},v.comparedTo=v.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},v.decimalPlaces=v.dp=function(){var t=this,e=t.d.length-1,r=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},v.dividedBy=v.div=function(t){return x(this,new this.constructor(t))},v.dividedToIntegerBy=v.idiv=function(t){var e=this.constructor;return k(x(this,new e(t),0,1),e.precision)},v.equals=v.eq=function(t){return!this.cmp(t)},v.exponent=function(){return O(this)},v.greaterThan=v.gt=function(t){return this.cmp(t)>0},v.greaterThanOrEqualTo=v.gte=function(t){return this.cmp(t)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(t){return this.cmp(t)<0},v.lessThanOrEqualTo=v.lte=function(t){return this.cmp(t)<1},v.logarithm=v.log=function(t){var e,r=this,n=r.constructor,i=n.precision,a=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(o))throw Error(u+"NaN");if(r.s<1)throw Error(u+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(c=!1,e=x(E(r,a),E(t,a),a),c=!0,k(e,i))},v.minus=v.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?P(e,t):m(e,(t.s=-t.s,t))},v.modulo=v.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(u+"NaN");return r.s?(c=!1,e=x(r,t,0,1).times(t),c=!0,r.minus(e)):k(new n(r),o)},v.naturalExponential=v.exp=function(){return w(this)},v.naturalLogarithm=v.ln=function(){return E(this)},v.negated=v.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},v.plus=v.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?m(e,t):P(e,(t.s=-t.s,t))},v.precision=v.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=O(o)+1,r=7*(n=o.d.length-1)+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},v.squareRoot=v.sqrt=function(){var t,e,r,n,o,i,a,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(u+"NaN")}for(t=O(l),c=!1,0==(o=Math.sqrt(+l))||o==1/0?(((e=b(l.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new s(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new s(o.toString()),o=a=(r=s.precision)+3;;)if(n=(i=n).plus(x(l,i,a+2)).times(.5),b(i.d).slice(0,a)===(e=b(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(k(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if("9999"!=e)break;a+=4}return c=!0,k(n,r)},v.times=v.mul=function(t){var e,r,n,o,i,a,u,l,s,f=this,p=f.constructor,h=f.d,y=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,r=f.e+t.e,(l=h.length)<(s=y.length)&&(i=h,h=y,y=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)u=i[o]+y[n]*h[o-n-1]+e,i[o--]=u%d|0,e=u/d|0;i[o]=(i[o]+e)%d|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,c?k(t,p.precision):t},v.toDecimalPlaces=v.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(g(t,0,i),void 0===e?e=n.rounding:g(e,0,8),k(r,t+O(r)+1,e))},v.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=_(n,!0):(g(t,0,i),void 0===e?e=o.rounding:g(e,0,8),r=_(n=k(new o(n),t+1,e),!0,t+1)),r},v.toFixed=function(t,e){var r,n,o=this,a=o.constructor;return void 0===t?_(o):(g(t,0,i),void 0===e?e=a.rounding:g(e,0,8),r=_((n=k(new a(o),t+O(o)+1,e)).abs(),!1,t+O(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},v.toInteger=v.toint=function(){var t=this,e=t.constructor;return k(new e(t),O(t)+1,e.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(t){var e,r,n,i,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(o);if(!(s=new p(s)).s){if(t.s<1)throw Error(u+"Infinity");return s}if(s.eq(o))return s;if(n=p.precision,t.eq(o))return k(s,n);if(l=(e=t.e)>=(r=t.d.length-1),a=s.s,l){if((r=h<0?-h:h)<=9007199254740991){for(i=new p(o),e=Math.ceil(n/7+4),c=!1;r%2&&T((i=i.times(s)).d,e),0!==(r=f(r/2));)T((s=s.times(s)).d,e);return c=!0,t.s<0?new p(o).div(i):k(i,n)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,c=!1,i=t.times(E(s,n+12)),c=!0,(i=w(i)).s=a,i},v.toPrecision=function(t,e){var r,n,o=this,a=o.constructor;return void 0===t?n=_(o,(r=O(o))<=a.toExpNeg||r>=a.toExpPos):(g(t,1,i),void 0===e?e=a.rounding:g(e,0,8),n=_(o=k(new a(o),t,e),t<=(r=O(o))||r<=a.toExpNeg,t)),n},v.toSignificantDigits=v.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(g(t,1,i),void 0===e?e=r.rounding:g(e,0,8)),k(new r(this),t,e)},v.toString=v.valueOf=v.val=v.toJSON=function(){var t=this,e=O(t),r=t.constructor;return _(t,e<=r.toExpNeg||e>=r.toExpPos)};var x=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%d|0,n=r/d|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*d+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,l,s,f,p,h,y,v,m,g,b,x,w,S,j,E,A,P,_=n.constructor,T=n.s==o.s?1:-1,M=n.d,C=o.d;if(!n.s)return new _(n);if(!o.s)throw Error(u+"Division by zero");for(l=n.e-o.e,A=C.length,j=M.length,v=(y=new _(T)).d=[],s=0;C[s]==(M[s]||0);)++s;if(C[s]>(M[s]||0)&&--l,(x=null==i?i=_.precision:a?i+(O(n)-O(o))+1:i)<0)return new _(0);if(x=x/7+2|0,s=0,1==A)for(f=0,C=C[0],x++;(s<j||f)&&x--;s++)w=f*d+(M[s]||0),v[s]=w/C|0,f=w%C|0;else{for((f=d/(C[0]+1)|0)>1&&(C=t(C,f),M=t(M,f),A=C.length,j=M.length),S=A,g=(m=M.slice(0,A)).length;g<A;)m[g++]=0;(P=C.slice()).unshift(0),E=C[0],C[1]>=d/2&&++E;do{f=0,(c=e(C,m,A,g))<0?(b=m[0],A!=g&&(b=b*d+(m[1]||0)),(f=b/E|0)>1?(f>=d&&(f=d-1),1==(c=e(p=t(C,f),m,h=p.length,g=m.length))&&(f--,r(p,A<h?P:C,h))):(0==f&&(c=f=1),p=C.slice()),(h=p.length)<g&&p.unshift(0),r(m,p,g),-1==c&&(c=e(C,m,A,g=m.length))<1&&(f++,r(m,A<g?P:C,g)),g=m.length):0===c&&(f++,m=[0]),v[s++]=f,c&&m[0]?m[g++]=M[S]||0:(m=[M[S]],g=1)}while((S++<j||void 0!==m[0])&&x--)}return v[0]||v.shift(),y.e=l,k(y,a?i+O(y)+1:i)}}();function w(t,e){var r,n,i,a,u,l=0,f=0,h=t.constructor,d=h.precision;if(O(t)>16)throw Error(s+O(t));if(!t.s)return new h(o);for(null==e?(c=!1,u=d):u=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=i=new h(o),h.precision=u;;){if(n=k(n.times(t),u),r=r.times(++l),b((a=i.plus(x(n,r,u))).d).slice(0,u)===b(i.d).slice(0,u)){for(;f--;)i=k(i.times(i),u);return h.precision=d,null==e?(c=!0,k(i,d)):i}i=a}}function O(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function S(t,e,r){if(e>t.LN10.sd())throw c=!0,r&&(t.precision=r),Error(u+"LN10 precision limit exceeded");return k(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function E(t,e){var r,n,i,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,g=m.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(c=!1,p=g):p=e,y.eq(10))return null==e&&(c=!0),S(m,p);if(p+=10,m.precision=p,n=(r=b(v)).charAt(0),a=O(y),!(Math.abs(a)<15e14))return f=S(m,p+2,g).times(a+""),y=E(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=g,null==e?(c=!0,k(y,g)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=b((y=y.times(t)).d)).charAt(0),d++;for(a=O(y),n>1?(y=new m("0."+r),a++):y=new m(n+"."+r.slice(1)),s=l=y=x(y.minus(o),y.plus(o),p),h=k(y.times(y),p),i=3;;){if(l=k(l.times(h),p),b((f=s.plus(x(l,new m(i),p))).d).slice(0,p)===b(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(S(m,p+2,g).times(a+""))),s=x(s,new m(d),p),m.precision=g,null==e?(c=!0,k(s,g)):s;s=f,i+=2}}function A(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=f(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=7;n<o;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),c&&(t.e>y||t.e<-y))throw Error(s+r)}else t.s=0,t.e=0,t.d=[0];return t}function k(t,e,r){var n,o,i,a,u,l,h,v,m=t.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,h=m[v=0];else{if((v=Math.ceil((n+1)/7))>=(i=m.length))return t;for(h=i=m[v],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(u=h/(i=p(10,a-o-1))%10|0,l=e<0||void 0!==m[v+1]||h%i,l=r<4?(u||l)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||l||6==r&&(n>0?o>0?h/p(10,a-o):0:m[v-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return l?(i=O(t),m.length=1,e=e-i-1,m[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==n?(m.length=v,i=1,v--):(m.length=v+1,i=p(10,7-n),m[v]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==v){(m[0]+=i)==d&&(m[0]=1,++t.e);break}if(m[v]+=i,m[v]!=d)break;m[v--]=0,i=1}for(n=m.length;0===m[--n];)m.pop();if(c&&(t.e>y||t.e<-y))throw Error(s+O(t));return t}function P(t,e){var r,n,o,i,a,u,l,s,f,p,h=t.constructor,y=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),c?k(e,y):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,u=p.length):(r=p,n=s,u=l.length),a>(o=Math.max(Math.ceil(y/7),u)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(u=p.length))&&(u=o),o=0;o<u;o++)if(l[o]!=p[o]){f=l[o]<p[o];break}a=0}for(f&&(r=l,l=p,p=r,e.s=-e.s),u=l.length,o=p.length-u;o>0;--o)l[u++]=0;for(o=p.length;o>a;){if(l[--o]<p[o]){for(i=o;i&&0===l[--i];)l[i]=d-1;--l[i],l[o]+=d}l[o]-=p[o]}for(;0===l[--u];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,c?k(e,y):e):new h(0)}function _(t,e,r){var n,o=O(t),i=b(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+j(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,r&&(n=r-a)>0&&(i+=j(n))):o>=a?(i+=j(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+j(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=j(n))),t.s<0?"-"+i:i}function T(t,e){if(t.length>e)return t.length=e,!0}function M(t){if(!t||"object"!=typeof t)throw Error(u+"Object expected");var e,r,n,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(f(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(l+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(l+r+": "+n);this[r]=new this(n)}return this}(a=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):A(e,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!h.test(t))throw Error(l+t);A(e,t)}if(i.prototype=v,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=M,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}(a)).default=a.Decimal=a,o=new a(1),void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},228:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c},5580:(t,e,r)=>{var n=r(6110)(r(9325),"DataView");t.exports=n},1549:(t,e,r)=>{var n=r(2032),o=r(3862),i=r(6721),a=r(2749),c=r(5749);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},79:(t,e,r)=>{var n=r(3702),o=r(80),i=r(4739),a=r(8655),c=r(1175);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8223:(t,e,r)=>{var n=r(6110)(r(9325),"Map");t.exports=n},3661:(t,e,r)=>{var n=r(3040),o=r(7670),i=r(289),a=r(4509),c=r(2949);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},2804:(t,e,r)=>{var n=r(6110)(r(9325),"Promise");t.exports=n},6545:(t,e,r)=>{var n=r(6110)(r(9325),"Set");t.exports=n},8859:(t,e,r)=>{var n=r(3661),o=r(1380),i=r(1459);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},7217:(t,e,r)=>{var n=r(79),o=r(1420),i=r(938),a=r(3605),c=r(9817),u=r(945);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=c,l.prototype.set=u,t.exports=l},1873:(t,e,r)=>{var n=r(9325).Symbol;t.exports=n},7828:(t,e,r)=>{var n=r(9325).Uint8Array;t.exports=n},8303:(t,e,r)=>{var n=r(6110)(r(9325),"WeakMap");t.exports=n},1033:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7277:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},9770:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},5325:(t,e,r)=>{var n=r(6131);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9905:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},695:(t,e,r)=>{var n=r(8096),o=r(2428),i=r(6449),a=r(3656),c=r(361),u=r(7167),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&u(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)!e&&!l.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,y))||d.push(v);return d}},4932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},4528:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4248:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},1074:t=>{t.exports=function(t){return t.split("")}},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},3360:(t,e,r)=>{var n=r(3243);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},909:(t,e,r)=>{var n=r(641),o=r(8329)(n);t.exports=o},3777:(t,e,r)=>{var n=r(909);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,o){return r=!!e(t,n,o)})),r}},3599:(t,e,r)=>{var n=r(4394);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(void 0===u?c==c&&!n(c):r(c,u)))var u=c,l=a}return l}},2523:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},3120:(t,e,r)=>{var n=r(4528),o=r(5891);t.exports=function t(e,r,i,a,c){var u=-1,l=e.length;for(i||(i=o),c||(c=[]);++u<l;){var s=e[u];r>0&&i(s)?r>1?t(s,r-1,i,a,c):n(c,s):a||(c[c.length]=s)}return c}},6649:(t,e,r)=>{var n=r(3221)();t.exports=n},641:(t,e,r)=>{var n=r(6649),o=r(5950);t.exports=function(t,e){return t&&n(t,e,o)}},7422:(t,e,r)=>{var n=r(1769),o=r(7797);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4580:(t,e,r)=>{var n=r(4528),o=r(6449);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},2552:(t,e,r)=>{var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},3335:t=>{t.exports=function(t,e){return t>e}},8077:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6131:(t,e,r)=>{var n=r(2523),o=r(5463),i=r(6959);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},7534:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270:(t,e,r)=>{var n=r(7068),o=r(346);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},7068:(t,e,r)=>{var n=r(7217),o=r(5911),i=r(1986),a=r(689),c=r(5861),u=r(6449),l=r(3656),s=r(7167),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,m){var g=u(t),b=u(e),x=g?p:c(t),w=b?p:c(e),O=(x=x==f?h:x)==h,S=(w=w==f?h:w)==h,j=x==w;if(j&&l(t)){if(!l(e))return!1;g=!0,O=!1}if(j&&!O)return m||(m=new n),g||s(t)?o(t,e,r,y,v,m):i(t,e,x,r,y,v,m);if(!(1&r)){var E=O&&d.call(t,"__wrapped__"),A=S&&d.call(e,"__wrapped__");if(E||A){var k=E?t.value():t,P=A?e.value():e;return m||(m=new n),v(k,P,r,y,m)}}return!!j&&(m||(m=new n),a(t,e,r,y,v,m))}},1799:(t,e,r)=>{var n=r(7217),o=r(270);t.exports=function(t,e,r,i){var a=r.length,c=a,u=!i;if(null==t)return!c;for(t=Object(t);a--;){var l=r[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<c;){var s=(l=r[a])[0],f=t[s],p=l[1];if(u&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new n;if(i)var d=i(f,p,s,t,e,h);if(!(void 0===d?o(p,f,3,i,h):d))return!1}}return!0}},5463:t=>{t.exports=function(t){return t!=t}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),i=r(3805),a=r(7473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,s=u.toString,f=l.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:c).test(a(t))}},4901:(t,e,r)=>{var n=r(2552),o=r(294),i=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},5389:(t,e,r)=>{var n=r(3663),o=r(7978),i=r(3488),a=r(6449),c=r(583);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):c(t)}},8984:(t,e,r)=>{var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6176:t=>{t.exports=function(t,e){return t<e}},5128:(t,e,r)=>{var n=r(909),o=r(4894);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},3663:(t,e,r)=>{var n=r(1799),o=r(776),i=r(7197);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},7978:(t,e,r)=>{var n=r(270),o=r(8156),i=r(631),a=r(8586),c=r(756),u=r(7197),l=r(7797);t.exports=function(t,e){return a(t)&&c(e)?u(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},6155:(t,e,r)=>{var n=r(4932),o=r(7422),i=r(5389),a=r(5128),c=r(3937),u=r(7301),l=r(3714),s=r(3488),f=r(6449);t.exports=function(t,e,r){e=e.length?n(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=n(e,u(i));var h=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++p,value:t}}));return c(h,(function(t,e){return l(t,e,r)}))}},7237:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},7255:(t,e,r)=>{var n=r(7422);t.exports=function(t){return function(e){return n(e,t)}}},6151:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,c=r(e((n-t)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=t,t+=o;return u}},9302:(t,e,r)=>{var n=r(3488),o=r(6757),i=r(2865);t.exports=function(t,e){return i(o(t,e,n),t+"")}},9570:(t,e,r)=>{var n=r(7334),o=r(3243),i=r(3488),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},5160:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},916:(t,e,r)=>{var n=r(909);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},3937:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},8096:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7556:(t,e,r)=>{var n=r(1873),o=r(4932),i=r(6449),a=r(4394),c=n?n.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},4128:(t,e,r)=>{var n=r(1800),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},7301:t=>{t.exports=function(t){return function(e){return t(e)}}},5765:(t,e,r)=>{var n=r(8859),o=r(5325),i=r(9905),a=r(9219),c=r(4517),u=r(4247);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:c(t);if(y)return u(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l<f;){var v=t[l],m=e?e(v):v;if(v=r||0!==v?v:0,p&&m==m){for(var g=d.length;g--;)if(d[g]===m)continue t;e&&d.push(m),h.push(v)}else s(d,m,r)||(d!==h&&d.push(m),h.push(v))}return h}},9219:t=>{t.exports=function(t,e){return t.has(e)}},1769:(t,e,r)=>{var n=r(6449),o=r(8586),i=r(1802),a=r(3222);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},8754:(t,e,r)=>{var n=r(5160);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},3730:(t,e,r)=>{var n=r(4394);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),c=void 0!==e,u=null===e,l=e==e,s=n(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||o&&c&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&r&&i&&!o&&!a||u&&r&&i||!c&&i||!l)return-1}return 0}},3714:(t,e,r)=>{var n=r(3730);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,c=i.length,u=r.length;++o<c;){var l=n(i[o],a[o]);if(l)return o>=u?l:l*("desc"==r[o]?-1:1)}return t.index-e.index}},5481:(t,e,r)=>{var n=r(9325)["__core-js_shared__"];t.exports=n},8329:(t,e,r)=>{var n=r(4894);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,c=Object(r);(e?a--:++a<i)&&!1!==o(c[a],a,c););return r}}},3221:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}},2507:(t,e,r)=>{var n=r(8754),o=r(9698),i=r(3912),a=r(3222);t.exports=function(t){return function(e){e=a(e);var r=o(e)?i(e):void 0,c=r?r[0]:e.charAt(0),u=r?n(r,1).join(""):e.slice(1);return c[t]()+u}}},2006:(t,e,r)=>{var n=r(5389),o=r(4894),i=r(5950);t.exports=function(t){return function(e,r,a){var c=Object(e);if(!o(e)){var u=n(r,3);e=i(e),r=function(t){return u(c[t],t,c)}}var l=t(e,r,a);return l>-1?c[u?e[l]:l]:void 0}}},5508:(t,e,r)=>{var n=r(6151),o=r(6800),i=r(7400);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},4517:(t,e,r)=>{var n=r(6545),o=r(3950),i=r(4247),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},3243:(t,e,r)=>{var n=r(6110),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},5911:(t,e,r)=>{var n=r(8859),o=r(4248),i=r(9219);t.exports=function(t,e,r,a,c,u){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=u.get(t),h=u.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++d<s;){var m=t[d],g=e[d];if(a)var b=l?a(g,m,d,e,t,u):a(m,g,d,t,e,u);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||c(m,t,r,a,u)))return v.push(e)}))){y=!1;break}}else if(m!==g&&!c(m,g,r,a,u)){y=!1;break}}return u.delete(t),u.delete(e),y}},1986:(t,e,r)=>{var n=r(1873),o=r(7828),i=r(5288),a=r(5911),c=r(317),u=r(4247),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=c;case"[object Set]":var d=1&n;if(h||(h=u),t.size!=e.size&&!d)return!1;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},689:(t,e,r)=>{var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,c){var u=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!u)return!1;for(var f=s;f--;){var p=l[f];if(!(u?p in e:o.call(e,p)))return!1}var h=c.get(t),d=c.get(e);if(h&&d)return h==e&&d==t;var y=!0;c.set(t,e),c.set(e,t);for(var v=u;++f<s;){var m=t[p=l[f]],g=e[p];if(i)var b=u?i(g,m,p,e,t,c):i(m,g,p,t,e,c);if(!(void 0===b?m===g||a(m,g,r,i,c):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return c.delete(t),c.delete(e),y}},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2:(t,e,r)=>{var n=r(4580),o=r(4664),i=r(5950);t.exports=function(t){return n(t,i,o)}},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},776:(t,e,r)=>{var n=r(756),o=r(5950);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},8879:(t,e,r)=>{var n=r(4335)(Object.getPrototypeOf,Object);t.exports=n},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},4664:(t,e,r)=>{var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},5861:(t,e,r)=>{var n=r(5580),o=r(8223),i=r(2804),a=r(6545),c=r(8303),u=r(2552),l=r(7473),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),g=l(a),b=l(c),x=u;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||c&&x(new c)!=h)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case m:return f;case g:return p;case b:return h}return e}),t.exports=x},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9326:(t,e,r)=>{var n=r(1769),o=r(2428),i=r(6449),a=r(361),c=r(294),u=r(7797);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=u(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&c(s)&&a(p,s)&&(i(t)||o(t))}},9698:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5891:(t,e,r)=>{var n=r(1873),o=r(2428),i=r(6449),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},6800:(t,e,r)=>{var n=r(5288),o=r(4894),i=r(361),a=r(3805);t.exports=function(t,e,r){if(!a(r))return!1;var c=typeof e;return!!("number"==c?o(r)&&i(e,r.length):"string"==c&&e in r)&&n(r[e],t)}},8586:(t,e,r)=>{var n=r(6449),o=r(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296:(t,e,r)=>{var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5527:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},756:(t,e,r)=>{var n=r(3805);t.exports=function(t){return t==t&&!n(t)}},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},3040:(t,e,r)=>{var n=r(1549),o=r(79),i=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},317:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},7197:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2224:(t,e,r)=>{var n=r(104);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},3650:(t,e,r)=>{var n=r(4335)(Object.keys,Object);t.exports=n},6009:(t,e,r)=>{t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},6757:(t,e,r)=>{var n=r(1033),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(u),n(t,this,l)}}},9325:(t,e,r)=>{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},4247:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},2865:(t,e,r)=>{var n=r(9570),o=r(1811)(n);t.exports=o},1811:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},1420:(t,e,r)=>{var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},938:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},945:(t,e,r)=>{var n=r(79),o=r(8223),i=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},6959:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},3912:(t,e,r)=>{var n=r(1074),o=r(9698),i=r(2054);t.exports=function(t){return o(t)?i(t):n(t)}},1802:(t,e,r)=>{var n=r(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},7797:(t,e,r)=>{var n=r(4394);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1800:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},2054:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+o+")?",l="[\\ufe0e\\ufe0f]?",s=l+u+"(?:\\u200d(?:"+[i,a,c].join("|")+")"+l+u+")*",f="(?:"+[i+n+"?",n,a,c,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+s,"g");t.exports=function(t){return t.match(p)||[]}},7334:t=>{t.exports=function(t){return function(){return t}}},8221:(t,e,r)=>{var n=r(3805),o=r(124),i=r(9374),a=Math.max,c=Math.min;t.exports=function(t,e,r){var u,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var r=u,n=l;return u=l=void 0,d=e,f=t.apply(n,r)}function b(t){var r=t-h;return void 0===h||r>=e||r<0||v&&t-d>=s}function x(){var t=o();if(b(t))return w(t);p=setTimeout(x,function(t){var r=e-(t-h);return v?c(r,s-(t-d)):r}(t))}function w(t){return p=void 0,m&&u?g(t):(u=l=void 0,f)}function O(){var t=o(),r=b(t);if(u=arguments,l=this,h=t,r){if(void 0===p)return function(t){return d=t,p=setTimeout(x,e),y?g(t):f}(h);if(v)return clearTimeout(p),p=setTimeout(x,e),g(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=l=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9747:(t,e,r)=>{var n=r(7277),o=r(3777),i=r(5389),a=r(6449),c=r(6800);t.exports=function(t,e,r){var u=a(t)?n:o;return r&&c(t,e,r)&&(e=void 0),u(t,i(e,3))}},7309:(t,e,r)=>{var n=r(2006)(r(4713));t.exports=n},4713:(t,e,r)=>{var n=r(2523),o=r(5389),i=r(1489),a=Math.max;t.exports=function(t,e,r){var c=null==t?0:t.length;if(!c)return-1;var u=null==r?0:i(r);return u<0&&(u=a(c+u,0)),n(t,o(e,3),u)}},7307:(t,e,r)=>{var n=r(3120),o=r(5378);t.exports=function(t,e){return n(o(t,e),1)}},8156:(t,e,r)=>{var n=r(7422);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},631:(t,e,r)=>{var n=r(8077),o=r(9326);t.exports=function(t,e){return null!=t&&o(t,e,n)}},3488:t=>{t.exports=function(t){return t}},2428:(t,e,r)=>{var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},6449:t=>{var e=Array.isArray;t.exports=e},4894:(t,e,r)=>{var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3812:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},3656:(t,e,r)=>{t=r.nmd(t);var n=r(9325),o=r(9935),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},2404:(t,e,r)=>{var n=r(270);t.exports=function(t,e){return n(t,e)}},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},1741:(t,e,r)=>{var n=r(8023);t.exports=function(t){return n(t)&&t!=+t}},9843:t=>{t.exports=function(t){return null==t}},8023:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},1331:(t,e,r)=>{var n=r(2552),o=r(8879),i=r(346),a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,s=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==s}},5015:(t,e,r)=>{var n=r(2552),o=r(6449),i=r(346);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},4394:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},7167:(t,e,r)=>{var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},5950:(t,e,r)=>{var n=r(695),o=r(8984),i=r(4894);t.exports=function(t){return i(t)?n(t):o(t)}},8090:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5378:(t,e,r)=>{var n=r(4932),o=r(5389),i=r(5128),a=r(6449);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},3916:(t,e,r)=>{var n=r(3360),o=r(641),i=r(5389);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},4506:(t,e,r)=>{var n=r(3599),o=r(3335),i=r(3488);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},7551:(t,e,r)=>{var n=r(3599),o=r(3335),i=r(5389);t.exports=function(t,e){return t&&t.length?n(t,i(e,2),o):void 0}},104:(t,e,r)=>{var n=r(3661);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},1684:(t,e,r)=>{var n=r(3599),o=r(6176),i=r(3488);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},6533:(t,e,r)=>{var n=r(3599),o=r(5389),i=r(6176);t.exports=function(t,e){return t&&t.length?n(t,o(e,2),i):void 0}},3950:t=>{t.exports=function(){}},124:(t,e,r)=>{var n=r(9325);t.exports=function(){return n.Date.now()}},583:(t,e,r)=>{var n=r(7237),o=r(7255),i=r(8586),a=r(7797);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3181:(t,e,r)=>{var n=r(5508)();t.exports=n},2426:(t,e,r)=>{var n=r(4248),o=r(5389),i=r(916),a=r(6449),c=r(6800);t.exports=function(t,e,r){var u=a(t)?n:i;return r&&c(t,e,r)&&(e=void 0),u(t,o(e,3))}},3031:(t,e,r)=>{var n=r(3120),o=r(6155),i=r(9302),a=r(6800),c=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=c},3345:t=>{t.exports=function(){return[]}},9935:t=>{t.exports=function(){return!1}},7350:(t,e,r)=>{var n=r(8221),o=r(3805);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},7400:(t,e,r)=>{var n=r(9374),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},1489:(t,e,r)=>{var n=r(7400);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},9374:(t,e,r)=>{var n=r(4128),o=r(3805),i=r(4394),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=c.test(t);return r||u.test(t)?l(t.slice(2),r?2:8):a.test(t)?NaN:+t}},3222:(t,e,r)=>{var n=r(7556);t.exports=function(t){return null==t?"":n(t)}},14:(t,e,r)=>{var n=r(5389),o=r(5765);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},5808:(t,e,r)=>{var n=r(2507)("toUpperCase");t.exports=n},2694:(t,e,r)=>{"use strict";var n=r(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5556:(t,e,r)=>{t.exports=r(2694)()},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8867:(t,e)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=(r&&Symbol.for("react.suspense_list"),r?Symbol.for("react.memo"):60115),y=r?Symbol.for("react.lazy"):60116;r&&Symbol.for("react.block"),r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope");function v(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case s:case f:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case l:case p:case y:case d:case u:return t;default:return e}}case o:return e}}}e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isFragment=function(t){return v(t)===i}},2199:(t,e,r)=>{"use strict";t.exports=r(8867)}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t={};r.r(t),r.d(t,{scaleBand:()=>Oi,scaleDiverging:()=>Gs,scaleDivergingLog:()=>Vs,scaleDivergingPow:()=>Hs,scaleDivergingSqrt:()=>Ks,scaleDivergingSymlog:()=>Xs,scaleIdentity:()=>$c,scaleImplicit:()=>xi,scaleLinear:()=>Uc,scaleLog:()=>Zc,scaleOrdinal:()=>wi,scalePoint:()=>ji,scalePow:()=>au,scaleQuantile:()=>vu,scaleQuantize:()=>mu,scaleRadial:()=>lu,scaleSequential:()=>Bs,scaleSequentialLog:()=>zs,scaleSequentialPow:()=>Us,scaleSequentialQuantile:()=>Ws,scaleSequentialSqrt:()=>$s,scaleSequentialSymlog:()=>Fs,scaleSqrt:()=>cu,scaleSymlog:()=>eu,scaleThreshold:()=>gu,scaleTime:()=>Ds,scaleUtc:()=>Ns,tickFormat:()=>zc});const e=window.wp.domReady;var n=r.n(e);const o=window.wp.element,i=window.React;var a=r.n(i);const c=window.wp.components,u=window.wp.apiFetch;var l=r.n(u);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:P(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function x(){}function w(){}var O={};l(O,a,(function(){return this}));var S=Object.getPrototypeOf,j=S&&S(S(I([])));j&&j!==r&&n.call(j,a)&&(O=j);var E=w.prototype=b.prototype=Object.create(O);function A(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(s(e)+" is not iterable")}return x.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:x,configurable:!0}),x.displayName=l(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},A(k.prototype),l(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){p(i,n,o,a,c,"next",t)}function c(t){p(i,n,o,a,c,"throw",t)}a(void 0)}))}}var d={"X-WP-Nonce":iyzicoRestApi.nonce},y=function(){var t=h(f().mark((function t(e){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l()({url:e,method:"GET",headers:d});case 3:return r=t.sent,t.abrupt("return",r);case 7:throw t.prev=7,t.t0=t.catch(0),console.error("Error: ",t.t0),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(_x){return t.apply(this,arguments)}}(),v=function(){var t=h(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",y(iyzicoRestApi.SettingsUrl));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=h(f().mark((function t(){var e,r,n=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:null,t.prev=1,t.next=4,l()({url:iyzicoRestApi.SaveSettingsUrl,method:"POST",headers:d,body:e});case 4:return r=t.sent,t.abrupt("return",r);case 8:return t.prev=8,t.t0=t.catch(1),console.error("Error saving settings:",t.t0),t.abrupt("return",null);case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(){return t.apply(this,arguments)}}(),g=function(){var t=h(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",y(iyzicoRestApi.SettingsDashboardWidgetsUrl));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),b=function(){var t=h(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",y(iyzicoRestApi.SettingsDashboardChartsUrl));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:P(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var O={};l(O,a,(function(){return this}));var S=Object.getPrototypeOf,j=S&&S(S(I([])));j&&j!==r&&n.call(j,a)&&(O=j);var E=b.prototype=m.prototype=Object.create(O);function A(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==x(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(x(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},A(k.prototype),l(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function O(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function S(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var E={},A=function(){var t=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||S(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(!1),2),e=t[0],r=t[1];return(0,o.useEffect)((function(){var t=function(){var t,e=(t=w().mark((function t(){var e;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,y(iyzicoRestApi.LocalizationsUrl);case 3:e=t.sent,E=e,r(!0),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.error("Error fetching localizations:",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){O(i,n,o,a,c,"next",t)}function c(t){O(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();0===Object.keys(E).length?t():r(!0)}),[]),e},k=function(t){var e,r=t.split("."),n=E,o=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=S(t))){e&&(t=e);var _n=0,r=function(){};return{s:r,n:function(){return _n>=t.length?{done:!0}:{done:!1,value:t[_n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){i=!0,n=t},f:function(){try{o||null==e.return||e.return()}finally{if(i)throw n}}}}(r);try{for(o.s();!(e=o.n()).done;){var i=e.value;if(void 0===n[i])return console.warn("Localization key not found: ".concat(t)),t;n=n[i]}}catch(t){o.e(t)}finally{o.f()}return"string"==typeof n?n:(console.warn("Unexpected structure for key: ".concat(t)),t)};const P=function(t){var e=t.iyzicoWebhookUrlKey,r=t.environment,n=t.setEnvironment,o=t.apiKey,i=t.setApiKey,u=t.secretKey,l=t.setSecretKey,s=t.title,f=t.setTitle,p=t.description,h=t.setDescription,d=t.formClass,y=t.setFormClass,v=t.paymentCheckoutValue,m=t.setPaymentCheckoutValue,g=t.orderStatus,b=t.setOrderStatus,x=t.overlayScript,w=t.setOverlayScript,O=t.formLanguage,S=t.setFormLanguage,j=t.affiliateNetwork,E=t.setAffiliateNetwork,P=t.enabled,_=t.setEnabled,T=t.pwiEnabled,M=t.setPwiEnabled,C=t.requestLogEnabled,I=t.setRequestLogEnabled;return A()?a().createElement("div",{className:"border-b border-gray-900/10 pb-12"},a().createElement("h2",{className:"text-base font-semibold leading-7 text-gray-900"},k("settings.title")),a().createElement("p",{className:"mt-1 text-sm leading-6 text-gray-600"},k("settings.description")),a().createElement("div",{className:"settings-form mt-5 space-y-4"},a().createElement(c.TextControl,{value:e,label:k("settings.fields.webhook.label"),disabled:!0}),a().createElement(c.SelectControl,{label:k("settings.fields.environment.title"),value:r,options:[{label:k("settings.fields.environment.values.live"),value:"https://api.iyzipay.com"},{label:k("settings.fields.environment.values.sandbox"),value:"https://sandbox-api.iyzipay.com"}],onChange:function(t){return n(t)}}),a().createElement(c.TextControl,{value:o,label:k("settings.fields.api_key.title"),onChange:function(t){return i(t)}}),a().createElement(c.TextControl,{value:u,label:k("settings.fields.secret_key.title"),onChange:function(t){return l(t)}}),a().createElement("div",{className:"flex flex-row space-x-4"},a().createElement(c.CheckboxControl,{label:k("settings.fields.enabled.title"),checked:P,onChange:function(t){return _(t)}}),a().createElement(c.CheckboxControl,{label:k("settings.fields.enabled.title_pwi"),checked:T,onChange:function(t){return M(t)}}),a().createElement(c.CheckboxControl,{label:k("settings.fields.enabled.title_request_log"),checked:C,onChange:function(t){return I(t)}})),a().createElement(c.TextControl,{value:s,label:k("settings.fields.title.title"),onChange:function(t){return f(t)}}),a().createElement(c.TextControl,{value:p,label:k("settings.fields.description.title"),onChange:function(t){return h(t)}}),a().createElement(c.SelectControl,{label:k("settings.fields.form_class.title"),value:d,options:[{label:k("settings.fields.form_class.values.responsive"),value:"responsive"},{label:k("settings.fields.form_class.values.popup"),value:"popup"},{label:k("settings.fields.form_class.values.redirect"),value:"redirect"}],onChange:function(t){return y(t)}}),a().createElement(c.TextControl,{value:v,label:k("settings.fields.payment_checkout_value.title"),onChange:function(t){return m(t)}}),a().createElement(c.SelectControl,{label:k("settings.fields.order_status.title"),value:g,options:[{label:k("settings.fields.order_status.values.default"),value:"default"},{label:k("settings.fields.order_status.values.pending"),value:"pending"},{label:k("settings.fields.order_status.values.processing"),value:"processing"},{label:k("settings.fields.order_status.values.on-hold"),value:"on-hold"},{label:k("settings.fields.order_status.values.completed"),value:"completed"},{label:k("settings.fields.order_status.values.cancelled"),value:"cancelled"},{label:k("settings.fields.order_status.values.refunded"),value:"refunded"},{label:k("settings.fields.order_status.values.failed"),value:"failed"}],onChange:function(t){return b(t)}}),a().createElement(c.SelectControl,{label:k("settings.fields.overlay_script.title"),value:x,options:[{label:k("settings.fields.overlay_script.values.left"),value:"bottomLeft"},{label:k("settings.fields.overlay_script.values.right"),value:"bottomRight"},{label:k("settings.fields.overlay_script.values.hide"),value:"hide"}],onChange:function(t){return w(t)}}),a().createElement(c.SelectControl,{label:k("settings.fields.form_language.title"),value:O,options:[{label:k("settings.fields.form_language.values.automatic"),value:""},{label:k("settings.fields.form_language.values.turkish"),value:"TR"},{label:k("settings.fields.form_language.values.english"),value:"EN"}],onChange:function(t){return S(t)}}),a().createElement(c.TextControl,{value:j,label:k("settings.fields.affiliate_network.title"),onChange:function(t){return E(t)},maxLength:14}))):null};function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function T(){T=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:A(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var x={};l(x,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(I([])));O&&O!==r&&n.call(O,a)&&(x=O);var S=b.prototype=m.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==_(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(_(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),l(S,u,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function M(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function C(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){M(i,n,o,a,c,"next",t)}function c(t){M(i,n,o,a,c,"throw",t)}a(void 0)}))}}function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return D(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const N=function(){var t=I((0,o.useState)(null),2),e=t[0],r=t[1],n=I((0,o.useState)(null),2),i=n[0],a=n[1],c=I((0,o.useState)(null),2),u=c[0],l=c[1],s=I((0,o.useState)(null),2),f=s[0],p=s[1],h=I((0,o.useState)(null),2),d=h[0],y=h[1],g=I((0,o.useState)(null),2),b=g[0],x=g[1],w=I((0,o.useState)(null),2),O=w[0],S=w[1],j=I((0,o.useState)(null),2),E=j[0],_=j[1],M=I((0,o.useState)(null),2),D=M[0],N=M[1],R=I((0,o.useState)(null),2),L=R[0],B=R[1],z=I((0,o.useState)(null),2),F=z[0],U=z[1],$=I((0,o.useState)(null),2),W=$[0],q=$[1],G=I((0,o.useState)(null),2),V=G[0],X=G[1],H=I((0,o.useState)(null),2),K=H[0],Y=H[1],Z=I((0,o.useState)(null),2),J=Z[0],Q=Z[1],tt=I((0,o.useState)(null),2),et=tt[0],rt=tt[1],nt=I((0,o.useState)(null),2),ot=nt[0],it=nt[1],at=I((0,o.useState)(null),2),ct=at[0],ut=at[1];if((0,o.useEffect)((function(){var t=function(){var t=C(T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Q(!0),t.next=3,v().then((function(t){r(t.checkout.api_type),a(t.checkout.api_key),l(t.checkout.secret_key),p(t.checkout.title),y(t.checkout.description),x(t.checkout.form_class),S(t.checkout.payment_checkout_value),_(t.checkout.order_status),N(t.checkout.overlay_script),B(t.checkout.form_language),U(t.checkout.affiliate_network),q("no"!==t.checkout.enabled),X("no"!==t.pwi.enabled),Y("no"!==t.checkout.request_log_enabled),it(t.iyzicoWebhookUrlKey),Q(!1)}));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()}),[]),!A())return null;var lt=function(){var t=C(T().mark((function t(r){var n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),ut(null),rt(!1),!0!==W&&!0!==V||i&&u){t.next=6;break}return ut(k("settings.api_key_secret_key_required")),t.abrupt("return");case 6:(n=new FormData).append("api_type",e),n.append("api_key",i),n.append("secret_key",u),n.append("title",f),n.append("description",d),n.append("form_class",b),n.append("payment_checkout_value",O),n.append("order_status",E),n.append("overlay_script",D),n.append("form_language",L),n.append("affiliate_network",F),n.append("enabled",!0===W?"yes":"no"),n.append("pwi_enabled",!0===V?"yes":"no"),n.append("request_log_enabled",!0===K?"yes":"no"),m(n).then((function(t){rt(t.success)}));case 22:case"end":return t.stop()}}),t)})));return function(_x){return t.apply(this,arguments)}}();return React.createElement("form",{onSubmit:lt},React.createElement("div",{className:"space-y-12"},et&&React.createElement("div",{className:"bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative",role:"alert"},React.createElement("strong",{className:"font-bold"},k("settings.success")),React.createElement("span",{className:"block sm:inline ms-2"},k("settings.success_message"))),ct&&React.createElement("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative",role:"alert"},React.createElement("strong",{className:"font-bold"},k("settings.error")),React.createElement("span",{className:"block sm:inline ms-2"},ct)),J?React.createElement("p",null,k("orders.loading")):React.createElement(P,{iyzicoWebhookUrlKey:ot,environment:e,setEnvironment:r,apiKey:i,setApiKey:a,secretKey:u,setSecretKey:l,title:f,setTitle:p,description:d,setDescription:y,formClass:b,setFormClass:x,paymentCheckoutValue:O,setPaymentCheckoutValue:S,orderStatus:E,setOrderStatus:_,overlayScript:D,setOverlayScript:N,formLanguage:L,setFormLanguage:B,affiliateNetwork:F,setAffiliateNetwork:U,enabled:W,setEnabled:q,pwiEnabled:V,setPwiEnabled:X,requestLogEnabled:K,setRequestLogEnabled:Y})),React.createElement("div",{className:"mt-6 flex items-center justify-end gap-x-6"},React.createElement("button",{type:"submit",className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},k("buttons.save"))))},R=function(t){switch(t.icon){case"DollarSign":return i.createElement("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"32px",height:"32px",viewBox:"0 0 64 64",enableBackground:"new 0 0 64 64",xmlSpace:"preserve"},i.createElement("circle",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,cx:44,cy:38,r:19}),i.createElement("circle",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,cx:44,cy:38,r:13}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"30,51 1,51 1,57 38,57 38,56 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"27,45 3,45 3,51 30,51 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"26,39 5,39 5,45 27,45 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"26,33 1,33 1,39 26,39 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"29,27 3,27 3,33 26,33 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"35,21 1,21 1,27 29,27 "}),i.createElement("polyline",{fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,points:"40,20 40,15 3,15 3,21 35,21 "}),i.createElement("rect",{x:1,y:9,fill:"none",stroke:"#000000",strokeWidth:2,strokeMiterlimit:10,width:37,height:6}));case"TrendingUp":return i.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("path",{fill:"#444",d:"M16 2h-4l1.29 1.29-4.29 4.3-3-3-6 6v2.82l6-6 3 3 5.71-5.7 1.28 1.29 0.010-4z"}));case"ShoppingCart":return i.createElement("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 52 52",enableBackground:"new 0 0 52 52",xmlSpace:"preserve"},i.createElement("g",null,i.createElement("path",{d:"M20.1,26H44c0.7,0,1.4-0.5,1.5-1.2l4.4-15.4c0.3-1.1-0.5-2-1.5-2H11.5l-0.6-2.3c-0.3-1.1-1.3-1.8-2.3-1.8 H4.6c-1.3,0-2.5,1-2.6,2.3C1.9,7,3.1,8.2,4.4,8.2h2.3l7.6,25.7c0.3,1.1,1.2,1.8,2.3,1.8h28.2c1.3,0,2.5-1,2.6-2.3 c0.1-1.4-1.1-2.6-2.4-2.6H20.2c-1.1,0-2-0.7-2.3-1.7v-0.1C17.4,27.5,18.6,26,20.1,26z"}),i.createElement("circle",{cx:20.6,cy:44.6,r:4}),i.createElement("circle",{cx:40.1,cy:44.6,r:4})));default:return null}};window.wp.i18n;const L=function(t){var e=t.title,r=t.value,n=t.icon,o=t.color;return React.createElement("div",{className:"bg-white rounded-lg shadow p-6 flex items-center space-x-4"},React.createElement("div",{className:"p-3 rounded-full ".concat(o)},React.createElement(R,{icon:n})),React.createElement("div",null,React.createElement("p",{className:"text-sm font-medium text-gray-500"},e),React.createElement("p",{className:"text-2xl font-semibold text-gray-900"},r)))},B=function(t){var e=t.stats,r=A();return e&&r?React.createElement("div",{className:"border-b border-gray-900/10 pb-12"},React.createElement("h2",{className:"text-base font-semibold leading-7 text-gray-900"},k("dashboard.widget.title")),React.createElement("p",{className:"mt-1 text-sm leading-6 text-gray-600"},k("dashboard.widget.description")),React.createElement("div",{className:"mt-10 space-y-10"},React.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},e.map((function(t,e){return React.createElement(L,{key:e,title:t.title,value:t.value,icon:t.icon})}))))):null};function z(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=z(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}const F=function(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=z(t))&&(n&&(n+=" "),n+=e);return n};var U=r(7350),$=r.n(U),W=r(2199),q=r(5015),G=r.n(q),V=r(1741),X=r.n(V),H=r(8156),K=r.n(H),Y=r(8023),Z=r.n(Y),J=function(t){return 0===t?0:t>0?1:-1},Q=function(t){return G()(t)&&t.indexOf("%")===t.length-1},tt=function(t){return Z()(t)&&!X()(t)},et=function(t){return tt(t)||G()(t)},rt=0,nt=function(t){var e=++rt;return"".concat(t||"").concat(e)},ot=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!tt(t)&&!G()(t))return n;if(Q(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return X()(r)&&(r=n),o&&r>e&&(r=e),r},it=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},at=function(t,e){return tt(t)&&tt(e)?function(r){return t+r*(e-t)}:function(){return e}};function ct(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):K()(t,e))===r})):null}var ut=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]},lt=r(9843),st=r.n(lt),ft=r(1882),pt=r.n(ft),ht=r(3805),dt=r.n(ht);function yt(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function vt(t){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(t)}var mt=["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"],gt=["points","pathLength"],bt={svg:["viewBox","children"],polygon:gt,polyline:gt},xt=["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"],wt=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,i.isValidElement)(t)&&(r=t.props),!dt()(r))return null;var n={};return Object.keys(r).forEach((function(t){xt.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},Ot=function(t,e,r){if(!dt()(t)||"object"!==vt(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];xt.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},St=["children"],jt=["children"];function Et(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function At(t){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(t)}var kt={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Pt=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},_t=null,Tt=null,Mt=function t(e){if(e===_t&&Array.isArray(Tt))return Tt;var r=[];return i.Children.forEach(e,(function(e){st()(e)||((0,W.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))})),Tt=r,_t=e,r};function Ct(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return Pt(t)})):[Pt(e)],Mt(t).forEach((function(t){var e=K()(t,"type.displayName")||K()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function It(t,e){var r=Ct(t,e);return r&&r[0]}var Dt=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!tt(r)||r<=0||!tt(n)||n<=0)},Nt=["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"],Rt=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,i.isValidElement)(t)&&(n=t.props),!dt()(n))return null;var o={};return Object.keys(n).forEach((function(t){var i;(function(t,e,r,n){var o,i=null!==(o=null==bt?void 0:bt[n])&&void 0!==o?o:[];return!pt()(t)&&(n&&i.includes(e)||mt.includes(e))||r&&xt.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])})),o},Lt=function t(e,r){if(e===r)return!0;var n=i.Children.count(e);if(n!==i.Children.count(r))return!1;if(0===n)return!0;if(1===n)return Bt(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var a=e[o],c=r[o];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!Bt(a,c))return!1}return!0},Bt=function(t,e){if(st()(t)&&st()(e))return!0;if(!st()(t)&&!st()(e)){var r=t.props||{},n=r.children,o=Et(r,St),i=e.props||{},a=i.children,c=Et(i,jt);return n&&a?yt(o,c)&&Lt(n,a):!n&&!a&&yt(o,c)}return!1},zt=function(t,e){var r=[],n={};return Mt(t).forEach((function(t,o){if(function(t){return t&&t.type&&G()(t.type)&&Nt.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=Pt(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r};function Ft(t){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(t)}function Ut(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $t(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(r),!0).forEach((function(e){Wt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wt(t,e,r){var n;return n=function(t){if("object"!=Ft(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Ft(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gt=(0,i.forwardRef)((function(t,e){var r=t.aspect,n=t.initialDimension,o=void 0===n?{width:-1,height:-1}:n,c=t.width,u=void 0===c?"100%":c,l=t.height,s=void 0===l?"100%":l,f=t.minWidth,p=void 0===f?0:f,h=t.minHeight,d=t.maxHeight,y=t.children,v=t.debounce,m=void 0===v?0:v,g=t.id,b=t.className,x=t.onResize,w=t.style,O=void 0===w?{}:w,S=(0,i.useRef)(null),j=(0,i.useRef)();j.current=x,(0,i.useImperativeHandle)(e,(function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})}));var E,A,k=(E=(0,i.useState)({containerWidth:o.width,containerHeight:o.height}),A=2,function(t){if(Array.isArray(t))return t}(E)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(E,A)||function(t,e){if(t){if("string"==typeof t)return qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qt(t,e):void 0}}(E,A)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),P=k[0],_=k[1],T=(0,i.useCallback)((function(t,e){_((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);(0,i.useEffect)((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;T(n,o),null===(e=j.current)||void 0===e||e.call(j,n,o)};m>0&&(t=$()(t,m,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=S.current.getBoundingClientRect(),n=r.width,o=r.height;return T(n,o),e.observe(S.current),function(){e.disconnect()}}),[T,m]);var M=(0,i.useMemo)((function(){var t=P.containerWidth,e=P.containerHeight;if(t<0||e<0)return null;ut(Q(u)||Q(s),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",u,s),ut(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Q(u)?t:u,o=Q(s)?e:s;r&&r>0&&(n?o=n/r:o&&(n=o*r),d&&o>d&&(o=d)),ut(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",n,o,u,s,p,h,r);var c=!Array.isArray(y)&&(0,W.isElement)(y)&&Pt(y.type).endsWith("Chart");return a().Children.map(y,(function(t){return(0,W.isElement)(t)?(0,i.cloneElement)(t,$t({width:n,height:o},c?{style:$t({height:"100%",width:"100%",maxHeight:o,maxWidth:n},t.props.style)}:{})):t}))}),[r,y,s,d,h,p,P,u]);return a().createElement("div",{id:g?"".concat(g):void 0,className:F("recharts-responsive-container",b),style:$t($t({},O),{},{width:u,height:s,minWidth:p,minHeight:h,maxHeight:d}),ref:S},M)})),Vt=r(3181),Xt=r.n(Vt),Ht=r(3031),Kt=r.n(Ht);function Yt(t,e){if(!t)throw new Error("Invariant failed")}var Zt=["children","width","height","viewBox","className","style","title","desc"];function Jt(){return Jt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Jt.apply(this,arguments)}function Qt(t){var e=t.children,r=t.width,n=t.height,o=t.viewBox,i=t.className,c=t.style,u=t.title,l=t.desc,s=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Zt),f=o||{width:r,height:n,x:0,y:0},p=F("recharts-surface",i);return a().createElement("svg",Jt({},Rt(s,!0,"svg"),{className:p,width:r,height:n,style:c,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),a().createElement("title",null,u),a().createElement("desc",null,l),e)}var te=["children","className"];function ee(){return ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ee.apply(this,arguments)}var re=a().forwardRef((function(t,e){var r=t.children,n=t.className,o=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,te),i=F("recharts-layer",n);return a().createElement("g",ee({className:i},Rt(o,!0),{ref:e}),r)}));function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}function oe(){return oe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oe.apply(this,arguments)}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ae(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ce(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(r),!0).forEach((function(e){ue(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ue(t,e,r){var n;return n=function(t){if("object"!=ne(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==ne(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function le(t){return Array.isArray(t)&&et(t[0])&&et(t[1])?t.join(" ~ "):t}var se=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,o=void 0===n?{}:n,i=t.itemStyle,c=void 0===i?{}:i,u=t.labelStyle,l=void 0===u?{}:u,s=t.payload,f=t.formatter,p=t.itemSorter,h=t.wrapperClassName,d=t.labelClassName,y=t.label,v=t.labelFormatter,m=t.accessibilityLayer,g=void 0!==m&&m,b=ce({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),x=ce({margin:0},l),w=!st()(y),O=w?y:"",S=F("recharts-default-tooltip",h),j=F("recharts-tooltip-label",d);w&&v&&null!=s&&(O=v(y,s));var E=g?{role:"status","aria-live":"assertive"}:{};return a().createElement("div",oe({className:S,style:b},E),a().createElement("p",{className:j,style:x},a().isValidElement(O)?O:"".concat(O)),function(){if(s&&s.length){var t=(p?Kt()(s,p):s).map((function(t,e){if("none"===t.type)return null;var n=ce({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},c),o=t.formatter||f||le,i=t.value,u=t.name,l=i,p=u;if(o&&null!=l&&null!=p){var h=o(i,u,t,e,s);if(Array.isArray(h)){var d=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h,2);l=d[0],p=d[1]}else l=h}return a().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},et(p)?a().createElement("span",{className:"recharts-tooltip-item-name"},p):null,et(p)?a().createElement("span",{className:"recharts-tooltip-item-separator"},r):null,a().createElement("span",{className:"recharts-tooltip-item-value"},l),a().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return a().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function fe(t){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(t)}function pe(t,e,r){var n;return n=function(t){if("object"!=fe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==fe(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var he="recharts-tooltip-wrapper",de={visibility:"hidden"};function ye(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return F(he,pe(pe(pe(pe({},"".concat(he,"-right"),tt(r)&&e&&tt(e.x)&&r>=e.x),"".concat(he,"-left"),tt(r)&&e&&tt(e.x)&&r<e.x),"".concat(he,"-bottom"),tt(n)&&e&&tt(e.y)&&n>=e.y),"".concat(he,"-top"),tt(n)&&e&&tt(e.y)&&n<e.y))}function ve(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&tt(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function me(t){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},me(t)}function ge(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function be(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(r),!0).forEach((function(e){Ee(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ae(n.key),n)}}function we(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(we=function(){return!!t})()}function Oe(t){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oe(t)}function Se(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function je(t,e){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},je(t,e)}function Ee(t,e,r){return(e=Ae(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ae(t){var e=function(t){if("object"!=me(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==me(e)?e:String(e)}var ke=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return Ee(Se((r=this,n=e,o=[].concat(a),n=Oe(n),t=function(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Se(t)}(r,we()?Reflect.construct(n,o||[],Oe(r).constructor):n.apply(r,o)))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ee(Se(t),"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}var r,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&je(t,e)}(e,t),r=e,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,c=e.children,u=e.coordinate,l=e.hasPayload,s=e.isAnimationActive,f=e.offset,p=e.position,h=e.reverseDirection,d=e.useTranslate3d,y=e.viewBox,v=e.wrapperStyle,m=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=ve({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=ve({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):de,cssClasses:ye({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:y}),g=m.cssClasses,b=m.cssProperties,x=be(be({transition:s&&r?"transform ".concat(o,"ms ").concat(i):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return a().createElement("div",{tabIndex:-1,className:g,style:x,ref:function(e){t.wrapperNode=e}},c)}}])&&xe(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent),Pe={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Pe[t]},set:function(t,e){if("string"==typeof t)Pe[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){Pe[e]=t[e]}))}}},_e=r(14),Te=r.n(_e);function Me(t,e,r){return!0===e?Te()(t,r):pt()(e)?Te()(t,e):t}function Ce(t){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(t)}function Ie(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function De(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(r),!0).forEach((function(e){ze(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fe(n.key),n)}}function Re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Re=function(){return!!t})()}function Le(t){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Le(t)}function Be(t,e){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Be(t,e)}function ze(t,e,r){return(e=Fe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fe(t){var e=function(t){if("object"!=Ce(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ce(e)?e:String(e)}function Ue(t){return t.dataKey}var $e=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=Le(r=e),function(t,e){if(e&&("object"===Ce(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Re()?Reflect.construct(r,n||[],Le(t).constructor):r.apply(t,n));var t,r,n}var r,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Be(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,c=e.content,u=e.coordinate,l=e.filterNull,s=e.isAnimationActive,f=e.offset,p=e.payload,h=e.payloadUniqBy,d=e.position,y=e.reverseDirection,v=e.useTranslate3d,m=e.viewBox,g=e.wrapperStyle,b=null!=p?p:[];l&&b.length&&(b=Me(p.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,Ue));var x=b.length>0;return a().createElement(ke,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:s,active:r,coordinate:u,hasPayload:x,offset:f,position:d,reverseDirection:y,useTranslate3d:v,viewBox:m,wrapperStyle:g},function(t,e){return a().isValidElement(t)?a().cloneElement(t,e):"function"==typeof t?a().createElement(t,e):a().createElement(se,e)}(c,De(De({},this.props),{},{payload:b})))}}])&&Ne(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);ze($e,"displayName","Tooltip"),ze($e,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Pe.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 We=r(5808),qe=r.n(We);Math.abs,Math.atan2;const Ge=Math.cos,Ve=(Math.max,Math.min,Math.sin),Xe=Math.sqrt,He=Math.PI,Ke=2*He,Ye={draw(t,e){const r=Xe(e/He);t.moveTo(r,0),t.arc(0,0,r,0,Ke)}},Ze={draw(t,e){const r=Xe(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Je=Xe(1/3),Qe=2*Je,tr={draw(t,e){const r=Xe(e/Qe),n=r*Je;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},er={draw(t,e){const r=Xe(e),n=-r/2;t.rect(n,n,r,r)}},rr=Ve(He/10)/Ve(7*He/10),nr=Ve(Ke/10)*rr,or=-Ge(Ke/10)*rr,ir={draw(t,e){const r=Xe(.8908130915292852*e),n=nr*r,o=or*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Ke*e/5,a=Ge(i),c=Ve(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}},ar=Xe(3),cr={draw(t,e){const r=-Xe(e/(3*ar));t.moveTo(0,2*r),t.lineTo(-ar*r,-r),t.lineTo(ar*r,-r),t.closePath()}},ur=-.5,lr=Xe(3)/2,sr=1/Xe(12),fr=3*(sr/2+1),pr={draw(t,e){const r=Xe(e/fr),n=r/2,o=r*sr,i=n,a=r*sr+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(ur*n-lr*o,lr*n+ur*o),t.lineTo(ur*i-lr*a,lr*i+ur*a),t.lineTo(ur*c-lr*u,lr*c+ur*u),t.lineTo(ur*n+lr*o,ur*o-lr*n),t.lineTo(ur*i+lr*a,ur*a-lr*i),t.lineTo(ur*c+lr*u,ur*u-lr*c),t.closePath()}};function hr(t){return function(){return t}}const dr=Math.PI,yr=2*dr,vr=1e-6,mr=yr-vr;function gr(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class br{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?gr:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return gr;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>vr)if(Math.abs(s*c-u*l)>vr&&o){let p=r-i,h=n-a,d=c*c+u*u,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((dr-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>vr&&this._append`L${t+b*l},${e+b*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+x*c},${this._y1=e+x*u}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>vr||Math.abs(this._y1-l)>vr)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%yr+yr),f>mr?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>vr&&this._append`A${r},${r},0,${+(f>=dr)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function xr(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new br(e)}function wr(t){return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(t)}Xe(3),Xe(3);var Or=["type","size","sizeType"];function Sr(){return Sr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sr.apply(this,arguments)}function jr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Er(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jr(Object(r),!0).forEach((function(e){Ar(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ar(t,e,r){var n;return n=function(t){if("object"!=wr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==wr(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var kr={symbolCircle:Ye,symbolCross:Ze,symbolDiamond:tr,symbolSquare:er,symbolStar:ir,symbolTriangle:cr,symbolWye:pr},Pr=Math.PI/180,_r=function(t){var e,r,n=t.type,o=void 0===n?"circle":n,i=t.size,c=void 0===i?64:i,u=t.sizeType,l=void 0===u?"area":u,s=Er(Er({},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Or)),{},{type:o,size:c,sizeType:l}),f=s.className,p=s.cx,h=s.cy,d=Rt(s,!0);return p===+p&&h===+h&&c===+c?a().createElement("path",Sr({},d,{className:F("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(qe()(t));return kr[e]||Ye}(o),r=function(t,e){let r=null,n=xr(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:hr(t||Ye),e="function"==typeof e?e:hr(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:hr(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Pr;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(c,l,o)),r())})):null};function Tr(t){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(t)}function Mr(){return Mr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mr.apply(this,arguments)}function Cr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ir(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Br(n.key),n)}}function Dr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Dr=function(){return!!t})()}function Nr(t){return Nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nr(t)}function Rr(t,e){return Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Rr(t,e)}function Lr(t,e,r){return(e=Br(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Br(t){var e=function(t){if("object"!=Tr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Tr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Tr(e)?e:String(e)}_r.registerSymbol=function(t,e){kr["symbol".concat(qe()(t))]=e};var zr=32,Fr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=Nr(r=e),function(t,e){if(e&&("object"===Tr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Dr()?Reflect.construct(r,n||[],Nr(t).constructor):r.apply(t,n));var t,r,n}var r,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rr(t,e)}(e,t),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=zr/6,o=zr/3,i=t.inactive?e:t.color;if("plainline"===t.type)return a().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:zr,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return a().createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n            A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n            H").concat(zr,"M").concat(2*o,",").concat(r,"\n            A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return a().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(zr,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(a().isValidElement(t.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cr(Object(r),!0).forEach((function(e){Lr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete c.legendIcon,a().cloneElement(t.legendIcon,c)}return a().createElement(_r,{fill:i,cx:r,cy:r,size:zr,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,o=e.layout,i=e.formatter,c=e.inactiveColor,u={x:0,y:0,width:zr,height:zr},l={display:"horizontal"===o?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var o=e.formatter||i,f=F(Lr(Lr({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var p=pt()(e.value)?null:e.value;ut(!pt()(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=e.inactive?c:e.color;return a().createElement("li",Mr({className:f,style:l,key:"legend-item-".concat(r)},Ot(t.props,e,r)),a().createElement(Qt,{width:n,height:n,viewBox:u,style:s},t.renderIcon(e)),a().createElement("span",{className:"recharts-legend-item-text",style:{color:h}},o?o(p,e,r):p))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return a().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],n&&Ir(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function Ur(t){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(t)}Lr(Fr,"displayName","Legend"),Lr(Fr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var $r=["ref"];function Wr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wr(Object(r),!0).forEach((function(e){Yr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Gr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zr(n.key),n)}}function Vr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vr=function(){return!!t})()}function Xr(t){return Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xr(t)}function Hr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kr(t,e){return Kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kr(t,e)}function Yr(t,e,r){return(e=Zr(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zr(t){var e=function(t){if("object"!=Ur(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ur(e)?e:String(e)}function Jr(t){return t.value}var Qr=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return Yr(Hr((r=this,n=e,o=[].concat(a),n=Xr(n),t=function(t,e){if(e&&("object"===Ur(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hr(t)}(r,Vr()?Reflect.construct(n,o||[],Xr(r).constructor):n.apply(r,o)))),"lastBoundingBox",{width:-1,height:-1}),t}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kr(t,e)}(e,t),r=e,o=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&tt(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?qr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),qr(qr({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,c=e.payloadUniqBy,u=e.payload,l=qr(qr({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return a().createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(a().isValidElement(t))return a().cloneElement(t,e);if("function"==typeof t)return a().createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,$r);return a().createElement(Fr,r)}(r,qr(qr({},this.props),{},{payload:Me(u,c,Jr)})))}}])&&Gr(r.prototype,n),o&&Gr(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function tn(){return tn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tn.apply(this,arguments)}Yr(Qr,"displayName","Legend"),Yr(Qr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var en=function(t){var e=t.cx,r=t.cy,n=t.r,o=t.className,i=F("recharts-dot",o);return e===+e&&r===+r&&n===+n?a().createElement("circle",tn({},Rt(t,!1),wt(t),{className:i,cx:e,cy:r,r:n})):null},rn=r(5556),nn=r.n(rn),on=Object.getOwnPropertyNames,an=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty;function un(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function ln(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function sn(t){return on(t).concat(an(t))}var fn=Object.hasOwn||function(t,e){return cn.call(t,e)};function pn(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var hn="_owner",dn=Object.getOwnPropertyDescriptor,yn=Object.keys;function vn(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function mn(t,e){return pn(t.getTime(),e.getTime())}function gn(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],d=o.value,y=d[0],v=d[1];l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function bn(t,e,r){var n,o=yn(t),i=o.length;if(yn(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===hn&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!fn(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function xn(t,e,r){var n,o,i,a=sn(t),c=a.length;if(sn(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===hn&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!fn(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=dn(t,n),i=dn(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function wn(t,e){return pn(t.valueOf(),e.valueOf())}function On(t,e){return t.source===e.source&&t.flags===e.flags}function Sn(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function jn(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var En=Array.isArray,An="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,kn=Object.assign,Pn=Object.prototype.toString.call.bind(Object.prototype.toString),Tn=Mn();function Mn(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?xn:vn,areDatesEqual:mn,areMapsEqual:n?un(gn,xn):gn,areObjectsEqual:n?xn:bn,arePrimitiveWrappersEqual:wn,areRegExpsEqual:On,areSetsEqual:n?un(Sn,xn):Sn,areTypedArraysEqual:n?xn:jn};if(r&&(o=kn({},o,r(o))),e){var i=ln(o.areArraysEqual),a=ln(o.areMapsEqual),c=ln(o.areObjectsEqual),u=ln(o.areSetsEqual);o=kn({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(En(t))return e(t,l,s);if(null!=An&&An(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=Pn(t);return"[object Date]"===p?r(t,l,s):"[object RegExp]"===p?a(t,l,s):"[object Map]"===p?n(t,l,s):"[object Set]"===p?c(t,l,s):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):"[object Arguments]"===p?o(t,l,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(t,l,s)}}(u),s=o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:c})}function Cn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function In(t){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(t)}function Dn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nn(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=function(t){if(Array.isArray(t))return t}(c=n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(c)||function(t,e){if(t){if("string"==typeof t)return Dn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dn(t,e):void 0}}(c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void Cn(r.bind(null,a),i):(r(i),void Cn(r.bind(null,a)))}"object"===In(n)&&t(n),"function"==typeof n&&n()}var c};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Rn(t){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function Ln(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ln(Object(r),!0).forEach((function(e){zn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ln(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zn(t,e,r){return(e=function(t){var e=function(t){if("object"!==Rn(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Rn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Mn({strict:!0}),Mn({circular:!0}),Mn({circular:!0,strict:!0}),Mn({createInternalComparator:function(){return pn}}),Mn({strict:!0,createInternalComparator:function(){return pn}}),Mn({circular:!0,createInternalComparator:function(){return pn}}),Mn({circular:!0,createInternalComparator:function(){return pn},strict:!0});var Fn=function(t){return t},Un=function(t,e){return Object.keys(e).reduce((function(r,n){return Bn(Bn({},r),{},zn({},n,t(n,e[n])))}),{})},$n=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")};function Wn(t,e){if(t){if("string"==typeof t)return qn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qn(t,e):void 0}}function qn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gn=1e-4,Vn=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Xn=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Hn=function(t,e){return function(r){var n=Vn(t,e);return Xn(n,r)}},Kn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,o,i=e[0],a=e[1],c=e[2],u=e[3];if(1===e.length)switch(e[0]){case"linear":i=0,a=0,c=1,u=1;break;case"ease":i=.25,a=.1,c=.25,u=1;break;case"ease-in":i=.42,a=0,c=1,u=1;break;case"ease-out":i=.42,a=0,c=.58,u=1;break;case"ease-in-out":i=0,a=0,c=.58,u=1;break;default:var l=e[0].split("(");if("cubic-bezier"===l[0]&&4===l[1].split(")")[0].split(",").length){var s=(n=l[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),o=4,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,o)||Wn(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i=s[0],a=s[1],c=s[2],u=s[3]}}[i,c,a,u].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var f,p,h=Hn(i,c),d=Hn(a,u),y=(f=i,p=c,function(t){var e=Vn(f,p),r=[].concat(function(t){return function(t){if(Array.isArray(t))return qn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Wn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.map((function(t,e){return t*e})).slice(1)),[0]);return Xn(r,t)}),v=function(t){return t>1?1:t<0?0:t},m=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=h(r)-e,i=y(r);if(Math.abs(o-e)<Gn||i<Gn)return d(r);r=v(r-o/i)}return d(r)};return m.isStepper=!1,m};function Yn(t){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(t)}function Zn(t){return function(t){if(Array.isArray(t))return ro(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||eo(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jn(Object(r),!0).forEach((function(e){to(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function to(t,e,r){return(e=function(t){var e=function(t){if("object"!==Yn(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Yn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eo(t,e){if(t){if("string"==typeof t)return ro(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ro(t,e):void 0}}function ro(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var no=function(t,e,r){return t+(e-t)*r},oo=function(t){return t.from!==t.to},io=function t(e,r,n){var o=Un((function(t,r){if(oo(r)){var n=(a=e(r.from,r.to,r.velocity),c=2,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(a,c)||eo(a,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1];return Qn(Qn({},r),{},{from:o,velocity:i})}var a,c;return r}),r);return n<1?Un((function(t,e){return oo(e)?Qn(Qn({},e),{},{velocity:no(e.velocity,o[t].velocity,n),from:no(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)};function ao(t){return ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(t)}var co=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function uo(t){return function(t){if(Array.isArray(t))return lo(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return lo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function so(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?so(Object(r),!0).forEach((function(e){po(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function po(t,e,r){return(e=yo(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ho(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yo(n.key),n)}}function yo(t){var e=function(t){if("object"!==ao(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ao(e)?e:String(e)}function vo(t,e){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vo(t,e)}function mo(t,e){if(e&&("object"===ao(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return go(t)}function go(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bo(t){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bo(t)}var xo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vo(t,e)}(u,t);var e,r,n,o,c=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=bo(n);if(o){var r=bo(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return mo(this,t)});function u(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var n=(r=c.call(this,t,e)).props,o=n.isActive,i=n.attributeName,a=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(go(r)),r.changeStyle=r.changeStyle.bind(go(r)),!o||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),mo(r);if(s&&s.length)r.state={style:s[0].style};else if(a){if("function"==typeof f)return r.state={style:a},mo(r);r.state={style:i?po({},i,a):a}}else r.state={style:{}};return r}return e=u,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(Tn(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?po({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(fo(fo({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?po({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Qn(Qn({},r),{},to({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Qn(Qn({},r),{},to({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=io(r,f,i),o(Qn(Qn(Qn({},t),e),Un((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(oo).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=Un((function(t,e){return no.apply(void 0,Zn(e).concat([r(a)]))}),s);if(o(Qn(Qn(Qn({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=Un((function(t,e){return no.apply(void 0,Zn(e).concat([r(1)]))}),s);o(Qn(Qn(Qn({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}}(r,n,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Kn(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Gn&&Math.abs(i)<Gn?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Kn(n)}return"function"==typeof n?n:null}(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(uo(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(uo(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=$n(p,i,c),d=fo(fo(fo({},f.style),u),{},{transition:h});return[].concat(uo(t),[d,i,s]).filter(Fn)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Nn());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?po({},n,o):o,p=$n(Object.keys(f),r,i);s.start([a,e,fo(fo({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),n=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,co)),c=i.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!n||0===c||r<=0)return e;var l=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,a=e.className;return(0,i.cloneElement)(t,fo(fo({},o),{},{style:fo(fo({},n),u),className:a}))};return 1===c?l(i.Children.only(e)):a().createElement("div",null,i.Children.map(e,(function(t){return l(t)})))}}])&&ho(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.PureComponent);xo.displayName="Animate",xo.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},xo.propTypes={from:nn().oneOfType([nn().object,nn().string]),to:nn().oneOfType([nn().object,nn().string]),attributeName:nn().string,duration:nn().number,begin:nn().number,easing:nn().oneOfType([nn().string,nn().func]),steps:nn().arrayOf(nn().shape({duration:nn().number.isRequired,style:nn().object.isRequired,easing:nn().oneOfType([nn().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),nn().func]),properties:nn().arrayOf("string"),onAnimationEnd:nn().func})),children:nn().oneOfType([nn().node,nn().func]),isActive:nn().bool,canBegin:nn().bool,onAnimationEnd:nn().func,shouldReAnimate:nn().bool,onAnimationStart:nn().func,onAnimationReStart:nn().func};const wo=xo;function Oo(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}function So(){return So=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},So.apply(null,arguments)}function jo(t,e){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jo(t,e)}function Eo(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jo(t,e)}const Ao=a().createContext(null);function ko(t,e){var r=Object.create(null);return t&&i.Children.map(t,(function(t){return t})).forEach((function(t){r[t.key]=function(t){return e&&(0,i.isValidElement)(t)?e(t):t}(t)})),r}function Po(t,e,r){return null!=r[e]?r[e]:t.props[e]}function _o(t,e,r){var n=ko(t.children),o=function(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in e){if(o[u])for(n=0;n<o[u].length;n++){var l=o[u][n];c[o[u][n]]=r(l)}c[u]=r(u)}for(n=0;n<i.length;n++)c[i[n]]=r(i[n]);return c}(e,n);return Object.keys(o).forEach((function(a){var c=o[a];if((0,i.isValidElement)(c)){var u=a in e,l=a in n,s=e[a],f=(0,i.isValidElement)(s)&&!s.props.in;!l||u&&!f?l||!u||f?l&&u&&(0,i.isValidElement)(s)&&(o[a]=(0,i.cloneElement)(c,{onExited:r.bind(null,c),in:s.props.in,exit:Po(c,"exit",t),enter:Po(c,"enter",t)})):o[a]=(0,i.cloneElement)(c,{in:!1}):o[a]=(0,i.cloneElement)(c,{onExited:r.bind(null,c),in:!0,exit:Po(c,"exit",t),enter:Po(c,"enter",t)})}})),o}var To=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},Mo=function(t){function e(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Eo(e,t);var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var r,n,o=e.children,a=e.handleExited;return{children:e.firstRender?(r=t,n=a,ko(r.children,(function(t){return(0,i.cloneElement)(t,{onExited:n.bind(null,t),in:!0,appear:Po(t,"appear",r),enter:Po(t,"enter",r),exit:Po(t,"exit",r)})}))):_o(t,o,a),firstRender:!1}},r.handleExited=function(t,e){var r=ko(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var r=So({},e.children);return delete r[t.key],{children:r}})))},r.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=Oo(t,["component","childFactory"]),o=this.state.contextValue,i=To(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===e?a().createElement(Ao.Provider,{value:o},i):a().createElement(Ao.Provider,{value:o},a().createElement(e,n,i))},e}(a().Component);Mo.propTypes={},Mo.defaultProps={component:"div",childFactory:function(t){return t}};const Co=Mo,Io=window.ReactDOM;var Do=r.n(Io);var No="unmounted",Ro="exited",Lo="entering",Bo="entered",zo="exiting",Fo=function(t){function e(e,r){var n;n=t.call(this,e,r)||this;var o,i=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?i?(o=Ro,n.appearStatus=Lo):o=Bo:o=e.unmountOnExit||e.mountOnEnter?No:Ro,n.state={status:o},n.nextCallback=null,n}Eo(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===No?{status:Ro}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==Lo&&r!==Bo&&(e=Lo):r!==Lo&&r!==Bo||(e=zo)}this.updateStatus(!1,e)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},r.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Lo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Do().findDOMNode(this);r&&function(t){t.scrollTop}(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ro&&this.setState({status:No})},r.performEnter=function(t){var e=this,r=this.props.enter,n=this.context?this.context.isMounting:t,o=this.props.nodeRef?[n]:[Do().findDOMNode(this),n],i=o[0],a=o[1],c=this.getTimeouts(),u=n?c.appear:c.enter;t||r?(this.props.onEnter(i,a),this.safeSetState({status:Lo},(function(){e.props.onEntering(i,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:Bo},(function(){e.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Bo},(function(){e.props.onEntered(i)}))},r.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Do().findDOMNode(this);e?(this.props.onExit(n),this.safeSetState({status:zo},(function(){t.props.onExiting(n),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:Ro},(function(){t.props.onExited(n)}))}))}))):this.safeSetState({status:Ro},(function(){t.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},r.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:Do().findDOMNode(this),n=null==t&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===No)return null;var e=this.props,r=e.children,n=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Oo(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(Ao.Provider,{value:null},"function"==typeof r?r(t,n):a().cloneElement(a().Children.only(r),n))},e}(a().Component);function Uo(){}Fo.contextType=Ao,Fo.propTypes={},Fo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uo,onEntering:Uo,onEntered:Uo,onExit:Uo,onExiting:Uo,onExited:Uo},Fo.UNMOUNTED=No,Fo.EXITED=Ro,Fo.ENTERING=Lo,Fo.ENTERED=Bo,Fo.EXITING=zo;const $o=Fo;var Wo=["children","appearOptions","enterOptions","leaveOptions"];function qo(t){return qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(t)}function Go(){return Go=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Go.apply(this,arguments)}function Vo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vo(Object(r),!0).forEach((function(e){Jo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ho(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qo(n.key),n)}}function Ko(t,e){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ko(t,e)}function Yo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zo(t){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zo(t)}function Jo(t,e,r){return(e=Qo(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qo(t){var e=function(t){if("object"!==qo(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===qo(e)?e:String(e)}var ti=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(r)?r:0},ei=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ko(t,e)}(u,t);var e,r,n,o,c=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Zo(n);if(o){var r=Zo(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===qo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Yo(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),Jo(Yo(t=c.call(this)),"handleEnter",(function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)})),Jo(Yo(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=u,(r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(Xo(Xo({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return ti(e)+ti(r)+ti(n)}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,n=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,Wo));return a().createElement($o,Go({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return a().createElement(wo,t.state,i.Children.only(r))}))}}])&&Ho(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.Component);ei.propTypes={appearOptions:nn().object,enterOptions:nn().object,leaveOptions:nn().object,children:nn().element};const ri=ei;function ni(t){var e=t.component,r=t.children,n=t.appear,o=t.enter,c=t.leave;return a().createElement(Co,{component:e},i.Children.map(r,(function(t,e){return a().createElement(ri,{appearOptions:n,enterOptions:o,leaveOptions:c,key:"child-".concat(e)},t)})))}ni.propTypes={appear:nn().object,enter:nn().object,leave:nn().object,children:nn().oneOfType([nn().array,nn().element]),component:nn().any},ni.defaultProps={component:"span"};const oi=wo;function ii(t){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(t)}function ai(){return ai=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ai.apply(this,arguments)}function ci(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ui(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function li(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ui(Object(r),!0).forEach((function(e){si(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function si(t,e,r){var n;return n=function(t){if("object"!=ii(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==ii(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fi=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n        ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n        ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n        ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n            L ").concat(t+r-u*p,",").concat(e,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n            L ").concat(t+r,",").concat(e+n-c*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n            L ").concat(t+u*p,",").concat(e+n,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},pi=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},hi={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},di=function(t){var e,r,n=li(li({},hi),t),o=(0,i.useRef)(),c=(e=(0,i.useState)(-1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return ci(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ci(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,i.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var t=o.current.getTotalLength();t&&l(t)}catch(t){}}),[]);var s=n.x,f=n.y,p=n.width,h=n.height,d=n.radius,y=n.className,v=n.animationEasing,m=n.animationDuration,g=n.animationBegin,b=n.isAnimationActive,x=n.isUpdateAnimationActive;if(s!==+s||f!==+f||p!==+p||h!==+h||0===p||0===h)return null;var w=F("recharts-rectangle",y);return x?a().createElement(oi,{canBegin:u>0,from:{width:p,height:h,x:s,y:f},to:{width:p,height:h,x:s,y:f},duration:m,animationEasing:v,isActive:x},(function(t){var e=t.width,r=t.height,i=t.x,c=t.y;return a().createElement(oi,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:b,easing:v},a().createElement("path",ai({},Rt(n,!0),{className:w,d:fi(i,c,e,r,d),ref:o})))})):a().createElement("path",ai({},Rt(n,!0),{className:w,d:fi(s,f,p,h,d)}))};function yi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function vi(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}class mi extends Map{constructor(t,e=bi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(gi(this,t))}has(t){return super.has(gi(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function gi({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function bi(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const xi=Symbol("implicit");function wi(){var t=new mi,e=[],r=[],n=xi;function o(o){let i=t.get(o);if(void 0===i){if(n!==xi)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new mi;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return wi(e,r).unknown(n)},yi.apply(o,arguments),o}function Oi(){var t,e,r=wi().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Oi(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},yi.apply(f(),arguments)}function Si(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Si(e())},t}function ji(){return Si(Oi.apply(null,arguments).paddingInner(1))}function Ei(t){return Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(t)}function Ai(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ki(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ai(Object(r),!0).forEach((function(e){Pi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ai(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pi(t,e,r){var n;return n=function(t){if("object"!=Ei(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Ei(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _i={widthCache:{},cacheCount:0},Ti={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Mi="recharts_measurement_span",Ci=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Pe.isSsr)return{width:0,height:0};var r,n=(r=ki({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(_i.widthCache[o])return _i.widthCache[o];try{var i=document.getElementById(Mi);i||((i=document.createElement("span")).setAttribute("id",Mi),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=ki(ki({},Ti),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return _i.widthCache[o]=u,++_i.cacheCount>2e3&&(_i.cacheCount=0,_i.widthCache={}),u}catch(t){return{width:0,height:0}}};function Ii(t){return Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(t)}function Di(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ni(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ni(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ni(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ri(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Li(n.key),n)}}function Li(t){var e=function(t){if("object"!=Ii(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ii(e)?e:String(e)}var Bi=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zi=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Fi=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ui=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$i={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Wi=Object.keys($i),qi="NaN",Gi=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Fi.test(r)||(this.num=NaN,this.unit=""),Wi.includes(r)&&(this.num=function(t,e){return t*$i[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=Di(null!==(r=Ui.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Ri(e.prototype,r),n&&Ri(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Vi(t){if(t.includes(qi))return qi;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Di(null!==(r=Bi.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Gi.parse(null!=o?o:""),u=Gi.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return qi;e=e.replace(Bi,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Di(null!==(s=zi.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=Gi.parse(null!=p?p:""),v=Gi.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return qi;e=e.replace(zi,m.toString())}return e}var Xi=/\(([^()]*)\)/;function Hi(t){var e=function(t){try{return function(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Di(Xi.exec(e),2)[1];e=e.replace(Xi,Vi(r))}return e}(e),Vi(e)}(t)}catch(t){return qi}}(t.slice(5,-1));return e===qi?"":e}var Ki=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Yi=["dx","dy","angle","className","breakAll"];function Zi(){return Zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zi.apply(this,arguments)}function Ji(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Qi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ta(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ta(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ta(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ea=/[ \f\n\r\t\v\u2028\u2029]+/,ra=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return st()(e)||(o=r?e.toString().split(""):e.toString().split(ea)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:Ci(t,n).width}})),spaceWidth:r?0:Ci(" ",n).width}}catch(t){return null}},na=function(t){return[{words:st()(t)?[]:t.toString().split(ea)}]},oa="#808080",ia=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,c=t.lineHeight,u=void 0===c?"1em":c,l=t.capHeight,s=void 0===l?"0.71em":l,f=t.scaleToFit,p=void 0!==f&&f,h=t.textAnchor,d=void 0===h?"start":h,y=t.verticalAnchor,v=void 0===y?"end":y,m=t.fill,g=void 0===m?oa:m,b=Ji(t,Ki),x=(0,i.useMemo)((function(){return function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!Pe.isSsr){var c=ra({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=tt(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var h,d=function(t){var e=s.slice(0,t),r=ra({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var g=Math.floor((y+v)/2),b=Qi(d(g-1),2),x=b[0],w=b[1],O=Qi(d(g),1)[0];if(x||O||(y=g+1),x&&O&&(v=g-1),!x&&O){h=w;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):na(n)}return na(n)}({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:p,style:b.style,width:b.width})}),[b.breakAll,b.children,b.maxLines,p,b.style,b.width]),w=b.dx,O=b.dy,S=b.angle,j=b.className,E=b.breakAll,A=Ji(b,Yi);if(!et(r)||!et(o))return null;var k,P=r+(tt(w)?w:0),_=o+(tt(O)?O:0);switch(v){case"start":k=Hi("calc(".concat(s,")"));break;case"middle":k=Hi("calc(".concat((x.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:k=Hi("calc(".concat(x.length-1," * -").concat(u,")"))}var T=[];if(p){var M=x[0].width,C=b.width;T.push("scale(".concat((tt(C)?C/M:1)/M,")"))}return S&&T.push("rotate(".concat(S,", ").concat(P,", ").concat(_,")")),T.length&&(A.transform=T.join(" ")),a().createElement("text",Zi({},Rt(A,!0),{x:P,y:_,className:F("recharts-text",j),textAnchor:d,fill:g.includes("url")?oa:g}),x.map((function(t,e){var r=t.words.join(E?"":" ");return a().createElement("tspan",{x:P,dy:0===e?k:u,key:r},r)})))};const aa=Math.sqrt(50),ca=Math.sqrt(10),ua=Math.sqrt(2);function la(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=aa?10:i>=ca?5:i>=ua?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?la(t,e,2*r):[c,u,l]}function sa(t,e,r){if(!((r=+r)>0))return[];if((t=+t)==(e=+e))return[t];const n=e<t,[o,i,a]=n?la(e,t,r):la(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function fa(t,e,r){return la(t=+t,e=+e,r=+r)[2]}function pa(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?fa(e,t,r):fa(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function ha(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function da(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ya(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=ha,r=(e,r)=>ha(t(e),r),n=(e,r)=>t(e)-r):(e=t===ha||t===da?t:va,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function va(){return 0}function ma(t){return null===t?NaN:+t}const ga=ya(ha),ba=ga.right,xa=(ga.left,ya(ma).center,ba);function wa(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Oa(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Sa(){}var ja=.7,Ea=1/ja,Aa="\\s*([+-]?\\d+)\\s*",ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_a=/^#([0-9a-f]{3,8})$/,Ta=new RegExp(`^rgb\\(${Aa},${Aa},${Aa}\\)$`),Ma=new RegExp(`^rgb\\(${Pa},${Pa},${Pa}\\)$`),Ca=new RegExp(`^rgba\\(${Aa},${Aa},${Aa},${ka}\\)$`),Ia=new RegExp(`^rgba\\(${Pa},${Pa},${Pa},${ka}\\)$`),Da=new RegExp(`^hsl\\(${ka},${Pa},${Pa}\\)$`),Na=new RegExp(`^hsla\\(${ka},${Pa},${Pa},${ka}\\)$`),Ra={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function La(){return this.rgb().formatHex()}function Ba(){return this.rgb().formatRgb()}function za(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=_a.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Fa(e):3===r?new Wa(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Ua(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Ua(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ta.exec(t))?new Wa(e[1],e[2],e[3],1):(e=Ma.exec(t))?new Wa(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ca.exec(t))?Ua(e[1],e[2],e[3],e[4]):(e=Ia.exec(t))?Ua(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Da.exec(t))?Ka(e[1],e[2]/100,e[3]/100,1):(e=Na.exec(t))?Ka(e[1],e[2]/100,e[3]/100,e[4]):Ra.hasOwnProperty(t)?Fa(Ra[t]):"transparent"===t?new Wa(NaN,NaN,NaN,0):null}function Fa(t){return new Wa(t>>16&255,t>>8&255,255&t,1)}function Ua(t,e,r,n){return n<=0&&(t=e=r=NaN),new Wa(t,e,r,n)}function $a(t,e,r,n){return 1===arguments.length?((o=t)instanceof Sa||(o=za(o)),o?new Wa((o=o.rgb()).r,o.g,o.b,o.opacity):new Wa):new Wa(t,e,r,null==n?1:n);var o}function Wa(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function qa(){return`#${Ha(this.r)}${Ha(this.g)}${Ha(this.b)}`}function Ga(){const t=Va(this.opacity);return`${1===t?"rgb(":"rgba("}${Xa(this.r)}, ${Xa(this.g)}, ${Xa(this.b)}${1===t?")":`, ${t})`}`}function Va(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Xa(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ha(t){return((t=Xa(t))<16?"0":"")+t.toString(16)}function Ka(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Za(t,e,r,n)}function Ya(t){if(t instanceof Za)return new Za(t.h,t.s,t.l,t.opacity);if(t instanceof Sa||(t=za(t)),!t)return new Za;if(t instanceof Za)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new Za(a,c,u,t.opacity)}function Za(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Ja(t){return(t=(t||0)%360)<0?t+360:t}function Qa(t){return Math.max(0,Math.min(1,t||0))}function tc(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function ec(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}wa(Sa,za,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:La,formatHex:La,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ya(this).formatHsl()},formatRgb:Ba,toString:Ba}),wa(Wa,$a,Oa(Sa,{brighter(t){return t=null==t?Ea:Math.pow(Ea,t),new Wa(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ja:Math.pow(ja,t),new Wa(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Wa(Xa(this.r),Xa(this.g),Xa(this.b),Va(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:qa,formatHex:qa,formatHex8:function(){return`#${Ha(this.r)}${Ha(this.g)}${Ha(this.b)}${Ha(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ga,toString:Ga})),wa(Za,(function(t,e,r,n){return 1===arguments.length?Ya(t):new Za(t,e,r,null==n?1:n)}),Oa(Sa,{brighter(t){return t=null==t?Ea:Math.pow(Ea,t),new Za(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ja:Math.pow(ja,t),new Za(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new Wa(tc(t>=240?t-240:t+120,o,n),tc(t,o,n),tc(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new Za(Ja(this.h),Qa(this.s),Qa(this.l),Va(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Va(this.opacity);return`${1===t?"hsl(":"hsla("}${Ja(this.h)}, ${100*Qa(this.s)}%, ${100*Qa(this.l)}%${1===t?")":`, ${t})`}`}}));const rc=t=>()=>t;function nc(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):rc(isNaN(t)?e:t)}const oc=function t(e){var r=function(t){return 1==(t=+t)?nc:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):rc(isNaN(e)?r:e)}}(e);function n(t,e){var n=r((t=$a(t)).r,(e=$a(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=nc(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function ic(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),c=new Array(o);for(r=0;r<o;++r)n=$a(e[r]),i[r]=n.r||0,a[r]=n.g||0,c[r]=n.b||0;return i=t(i),a=t(a),c=t(c),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=c(t),n+""}}}function ac(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=dc(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function cc(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function uc(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function lc(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=dc(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}ic((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,c=n<e-1?t[n+2]:2*i-o;return ec((r-n/e)*e,a,o,i,c)}})),ic((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],c=t[(n+2)%e];return ec((r-n/e)*e,o,i,a,c)}}));var sc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fc=new RegExp(sc.source,"g");function pc(t,e){var r,n,o,i=sc.lastIndex=fc.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=sc.exec(t))&&(n=fc.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:uc(r,n)})),i=fc.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function hc(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function dc(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?rc(e):("number"===o?uc:"string"===o?(r=za(e))?(e=r,oc):pc:e instanceof za?oc:e instanceof Date?cc:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?ac:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?lc:uc:hc))(t,e)}function yc(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function vc(t){return+t}var mc=[0,1];function gc(t){return t}function bc(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function xc(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=bc(o,n),i=r(a,i)):(n=bc(n,o),i=r(i,a)),function(t){return i(n(t))}}function wc(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=bc(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=xa(t,e,1,n)-1;return i[r](o[r](e))}}function Oc(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Sc(){var t,e,r,n,o,i,a=mc,c=mc,u=dc,l=gc;function s(){var t=Math.min(a.length,c.length);return l!==gc&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?wc:xc,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),uc)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,vc),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=yc,s()},f.clamp=function(t){return arguments.length?(l=!!t||gc,s()):l!==gc},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function jc(){return Sc()(gc,gc)}var Ec,Ac=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kc(t){if(!(e=Ac.exec(t)))throw new Error("invalid format: "+t);var e;return new Pc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Pc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function _c(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Tc(t){return(t=_c(Math.abs(t)))?t[1]:NaN}function Mc(t,e){var r=_c(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}kc.prototype=Pc.prototype,Pc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Cc={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Mc(100*t,e),r:Mc,s:function(t,e){var r=_c(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Ec=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+_c(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ic(t){return t}var Dc,Nc,Rc,Lc=Array.prototype.map,Bc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zc(t,e,r,n){var o,i=pa(t,e,r);switch((n=kc(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Tc(e)/3)))-Tc(Math.abs(t)))}(i,a))||(n.precision=o),Rc(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Tc(e)-Tc(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-Tc(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return Nc(n)}function Fc(t){var e=t.domain;return t.ticks=function(t){var r=e();return sa(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return zc(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=fa(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function Uc(){var t=jc();return t.copy=function(){return Oc(t,Uc())},yi.apply(t,arguments),Fc(t)}function $c(t){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,vc),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return $c(t).unknown(e)},t=arguments.length?Array.from(t,vc):[0,1],Fc(r)}function Wc(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function qc(t){return Math.log(t)}function Gc(t){return Math.exp(t)}function Vc(t){return-Math.log(-t)}function Xc(t){return-Math.exp(-t)}function Hc(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Kc(t){return(e,r)=>-t(-e,r)}function Yc(t){const e=t(qc,Gc),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Hc:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=Kc(n),o=Kc(o),t(Vc,Xc)):t(qc,Gc),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const h=null==t?10:+t;let d=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<h&&(d=sa(a,c,h))}else d=sa(f,p,Math.min(p-f,h)).map(o);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=kc(r)).precision||(r.trim=!0),r=Nc(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(Wc(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function Zc(){const t=Yc(Sc()).domain([1,10]);return t.copy=()=>Oc(t,Zc()).base(t.base()),yi.apply(t,arguments),t}function Jc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Qc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tu(t){var e=1,r=t(Jc(e),Qc(e));return r.constant=function(r){return arguments.length?t(Jc(e=+r),Qc(e)):e},Fc(r)}function eu(){var t=tu(Sc());return t.copy=function(){return Oc(t,eu()).constant(t.constant())},yi.apply(t,arguments)}function ru(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function nu(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ou(t){return t<0?-t*t:t*t}function iu(t){var e=t(gc,gc),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(gc,gc):.5===r?t(nu,ou):t(ru(r),ru(1/r)):r},Fc(e)}function au(){var t=iu(Sc());return t.copy=function(){return Oc(t,au()).exponent(t.exponent())},yi.apply(t,arguments),t}function cu(){return au.apply(null,arguments).exponent(.5)}function uu(t){return Math.sign(t)*t*t}function lu(){var t,e=jc(),r=[0,1],n=!1;function o(r){var o=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(r));return isNaN(o)?t:n?Math.round(o):o}return o.invert=function(t){return e.invert(uu(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,vc)).map(uu)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(n=!!t,o):n},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return lu(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},yi.apply(o,arguments),Fc(o)}function su(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function fu(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function pu(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function hu(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?pu:function(t=ha){if(t===ha)return pu;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);hu(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(du(t,r,e),o(t[n],i)>0&&du(t,r,n);a<c;){for(du(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?du(t,r,c):(++c,du(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function du(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function yu(t,e,r=ma){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function vu(){var t,e=[],r=[],n=[];function o(){var t=0,o=Math.max(1,r.length);for(n=new Array(o-1);++t<o;)n[t-1]=yu(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[xa(n,e)]}return i.invertExtent=function(t){var o=r.indexOf(t);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(ha),o()},i.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return n.slice()},i.copy=function(){return vu().domain(e).range(r).unknown(t)},yi.apply(i,arguments)}function mu(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[xa(o,e,0,n)]:t}function c(){var t=-1;for(o=new Array(n);++t<n;)o[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e=+e,r=+r,c()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,c()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return mu().domain([e,r]).range(i).unknown(t)},yi.apply(Fc(a),arguments)}function gu(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[xa(e,o,0,n)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),n=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return gu().domain(e).range(r).unknown(t)},yi.apply(o,arguments)}Dc=function(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Ic:(e=Lc.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Ic:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Lc.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=kc(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(y=!0,g="g"):Cc[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?u:"",w=Cc[g],O=/[defgprs%]/.test(g);function S(t){var o,i,u,p=b,S=x;if("c"===g)S=w(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:w(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,S=("s"===g?Bc[8+Ec/3]:"")+S+(j&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){S=(46===u?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}y&&!h&&(t=n(t,1/0));var E=p.length+t.length+S.length,A=E<d?new Array(d-E+1).join(e):"";switch(y&&h&&(t=n(A+t,A.length?d-S.length:1/0),A=""),r){case"<":t=p+t+S+A;break;case"=":t=p+A+t+S;break;case"^":t=A.slice(0,E=A.length>>1)+p+t+S+A.slice(E);break;default:t=A+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=kc(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Tc(e)/3))),o=Math.pow(10,-n),i=Bc[8+n/3];return function(t){return r(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),Nc=Dc.format,Rc=Dc.formatPrefix;const bu=1e3,xu=6e4,wu=36e5,Ou=864e5,Su=6048e5,ju=31536e6,Eu=new Date,Au=new Date;function ku(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>ku((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(Eu.setTime(+e),Au.setTime(+n),t(Eu),t(Au),Math.floor(r(Eu,Au))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const Pu=ku((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Pu.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ku((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):Pu:null),Pu.range;const _u=ku((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*bu)}),((t,e)=>(e-t)/bu),(t=>t.getUTCSeconds())),Tu=(_u.range,ku((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*bu)}),((t,e)=>{t.setTime(+t+e*xu)}),((t,e)=>(e-t)/xu),(t=>t.getMinutes()))),Mu=(Tu.range,ku((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*xu)}),((t,e)=>(e-t)/xu),(t=>t.getUTCMinutes()))),Cu=(Mu.range,ku((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*bu-t.getMinutes()*xu)}),((t,e)=>{t.setTime(+t+e*wu)}),((t,e)=>(e-t)/wu),(t=>t.getHours()))),Iu=(Cu.range,ku((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*wu)}),((t,e)=>(e-t)/wu),(t=>t.getUTCHours()))),Du=(Iu.range,ku((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xu)/Ou),(t=>t.getDate()-1))),Nu=(Du.range,ku((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Ou),(t=>t.getUTCDate()-1))),Ru=(Nu.range,ku((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Ou),(t=>Math.floor(t/Ou))));function Lu(t){return ku((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xu)/Su))}Ru.range;const Bu=Lu(0),zu=Lu(1),Fu=Lu(2),Uu=Lu(3),$u=Lu(4),Wu=Lu(5),qu=Lu(6);function Gu(t){return ku((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Su))}Bu.range,zu.range,Fu.range,Uu.range,$u.range,Wu.range,qu.range;const Vu=Gu(0),Xu=Gu(1),Hu=Gu(2),Ku=Gu(3),Yu=Gu(4),Zu=Gu(5),Ju=Gu(6),Qu=(Vu.range,Xu.range,Hu.range,Ku.range,Yu.range,Zu.range,Ju.range,ku((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),tl=(Qu.range,ku((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),el=(tl.range,ku((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));el.every=t=>isFinite(t=Math.floor(t))&&t>0?ku((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,el.range;const rl=ku((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function nl(t,e,r,n,o,i){const a=[[_u,1,bu],[_u,5,5e3],[_u,15,15e3],[_u,30,3e4],[i,1,xu],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,wu],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Ou],[n,2,1728e5],[r,1,Su],[e,1,2592e6],[e,3,7776e6],[t,1,ju]];function c(e,r,n){const o=Math.abs(r-e)/n,i=ya((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(pa(e/ju,r/ju,n));if(0===i)return Pu.every(Math.max(pa(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}rl.every=t=>isFinite(t=Math.floor(t))&&t>0?ku((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,rl.range;const[ol,il]=nl(rl,tl,Vu,Ru,Iu,Mu),[al,cl]=nl(el,Qu,Bu,Du,Cu,Tu);function ul(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ll(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function sl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var fl,pl,hl,dl={"-":"",_:" ",0:"0"},yl=/^\s*\d+/,vl=/^%/,ml=/[\\^$*+?|[\]().{}]/g;function gl(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function bl(t){return t.replace(ml,"\\$&")}function xl(t){return new RegExp("^(?:"+t.map(bl).join("|")+")","i")}function wl(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Ol(t,e,r){var n=yl.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Sl(t,e,r){var n=yl.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function jl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function El(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Al(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function kl(t,e,r){var n=yl.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Pl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _l(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Tl(t,e,r){var n=yl.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Ml(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Cl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Il(t,e,r){var n=yl.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Dl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Nl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Rl(t,e,r){var n=yl.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Ll(t,e,r){var n=yl.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Bl(t,e,r){var n=yl.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function zl(t,e,r){var n=vl.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Fl(t,e,r){var n=yl.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Ul(t,e,r){var n=yl.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function $l(t,e){return gl(t.getDate(),e,2)}function Wl(t,e){return gl(t.getHours(),e,2)}function ql(t,e){return gl(t.getHours()%12||12,e,2)}function Gl(t,e){return gl(1+Du.count(el(t),t),e,3)}function Vl(t,e){return gl(t.getMilliseconds(),e,3)}function Xl(t,e){return Vl(t,e)+"000"}function Hl(t,e){return gl(t.getMonth()+1,e,2)}function Kl(t,e){return gl(t.getMinutes(),e,2)}function Yl(t,e){return gl(t.getSeconds(),e,2)}function Zl(t){var e=t.getDay();return 0===e?7:e}function Jl(t,e){return gl(Bu.count(el(t)-1,t),e,2)}function Ql(t){var e=t.getDay();return e>=4||0===e?$u(t):$u.ceil(t)}function ts(t,e){return t=Ql(t),gl($u.count(el(t),t)+(4===el(t).getDay()),e,2)}function es(t){return t.getDay()}function rs(t,e){return gl(zu.count(el(t)-1,t),e,2)}function ns(t,e){return gl(t.getFullYear()%100,e,2)}function os(t,e){return gl((t=Ql(t)).getFullYear()%100,e,2)}function is(t,e){return gl(t.getFullYear()%1e4,e,4)}function as(t,e){var r=t.getDay();return gl((t=r>=4||0===r?$u(t):$u.ceil(t)).getFullYear()%1e4,e,4)}function cs(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+gl(e/60|0,"0",2)+gl(e%60,"0",2)}function us(t,e){return gl(t.getUTCDate(),e,2)}function ls(t,e){return gl(t.getUTCHours(),e,2)}function ss(t,e){return gl(t.getUTCHours()%12||12,e,2)}function fs(t,e){return gl(1+Nu.count(rl(t),t),e,3)}function ps(t,e){return gl(t.getUTCMilliseconds(),e,3)}function hs(t,e){return ps(t,e)+"000"}function ds(t,e){return gl(t.getUTCMonth()+1,e,2)}function ys(t,e){return gl(t.getUTCMinutes(),e,2)}function vs(t,e){return gl(t.getUTCSeconds(),e,2)}function ms(t){var e=t.getUTCDay();return 0===e?7:e}function gs(t,e){return gl(Vu.count(rl(t)-1,t),e,2)}function bs(t){var e=t.getUTCDay();return e>=4||0===e?Yu(t):Yu.ceil(t)}function xs(t,e){return t=bs(t),gl(Yu.count(rl(t),t)+(4===rl(t).getUTCDay()),e,2)}function ws(t){return t.getUTCDay()}function Os(t,e){return gl(Xu.count(rl(t)-1,t),e,2)}function Ss(t,e){return gl(t.getUTCFullYear()%100,e,2)}function js(t,e){return gl((t=bs(t)).getUTCFullYear()%100,e,2)}function Es(t,e){return gl(t.getUTCFullYear()%1e4,e,4)}function As(t,e){var r=t.getUTCDay();return gl((t=r>=4||0===r?Yu(t):Yu.ceil(t)).getUTCFullYear()%1e4,e,4)}function ks(){return"+0000"}function Ps(){return"%"}function _s(t){return+t}function Ts(t){return Math.floor(+t/1e3)}function Ms(t){return new Date(t)}function Cs(t){return t instanceof Date?+t:+new Date(+t)}function Is(t,e,r,n,o,i,a,c,u,l){var s=jc(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(u(t)<t?h:c(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:g:r(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Cs)):p().map(Ms)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(Wc(r,t)):s},s.copy=function(){return Oc(s,Is(t,e,r,n,o,i,a,c,u,l))},s}function Ds(){return yi.apply(Is(al,cl,el,Qu,Bu,Du,Cu,Tu,_u,pl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ns(){return yi.apply(Is(ol,il,rl,tl,Vu,Nu,Iu,Mu,_u,hl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Rs(){var t,e,r,n,o,i=0,a=1,c=gc,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(dc),l.rangeRound=s(yc),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function Ls(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Bs(){var t=Fc(Rs()(gc));return t.copy=function(){return Ls(t,Bs())},vi.apply(t,arguments)}function zs(){var t=Yc(Rs()).domain([1,10]);return t.copy=function(){return Ls(t,zs()).base(t.base())},vi.apply(t,arguments)}function Fs(){var t=tu(Rs());return t.copy=function(){return Ls(t,Fs()).constant(t.constant())},vi.apply(t,arguments)}function Us(){var t=iu(Rs());return t.copy=function(){return Ls(t,Us()).exponent(t.exponent())},vi.apply(t,arguments)}function $s(){return Us.apply(null,arguments).exponent(.5)}function Ws(){var t=[],e=gc;function r(r){if(null!=r&&!isNaN(r=+r))return e((xa(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(ha),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map(((r,n)=>e(n/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((r,n)=>function(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return fu(t);if(e>=1)return su(t);var n,o=(n-1)*e,i=Math.floor(o),a=su(hu(t,i).subarray(0,i+1));return a+(fu(t.subarray(i+1))-a)*(o-i)}}(t,n/e)))},r.copy=function(){return Ws(e).domain(t)},vi.apply(r,arguments)}function qs(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=gc,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=dc);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,u,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=d(dc),h.rangeRound=d(yc),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function Gs(){var t=Fc(qs()(gc));return t.copy=function(){return Ls(t,Gs())},vi.apply(t,arguments)}function Vs(){var t=Yc(qs()).domain([.1,1,10]);return t.copy=function(){return Ls(t,Vs()).base(t.base())},vi.apply(t,arguments)}function Xs(){var t=tu(qs());return t.copy=function(){return Ls(t,Xs()).constant(t.constant())},vi.apply(t,arguments)}function Hs(){var t=iu(qs());return t.copy=function(){return Ls(t,Hs()).exponent(t.exponent())},vi.apply(t,arguments)}function Ks(){return Hs.apply(null,arguments).exponent(.5)}function Ys(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Zs(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Js(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Qs(t,e){return t[e]}function tf(t){const e=[];return e.key=t,e}fl=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=xl(o),s=wl(o),f=xl(i),p=wl(i),h=xl(a),d=wl(a),y=xl(c),v=wl(c),m=xl(u),g=wl(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:$l,e:$l,f:Xl,g:os,G:as,H:Wl,I:ql,j:Gl,L:Vl,m:Hl,M:Kl,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:_s,s:Ts,S:Yl,u:Zl,U:Jl,V:ts,w:es,W:rs,x:null,X:null,y:ns,Y:is,Z:cs,"%":Ps},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:us,e:us,f:hs,g:js,G:As,H:ls,I:ss,j:fs,L:ps,m:ds,M:ys,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:_s,s:Ts,S:vs,u:ms,U:gs,V:xs,w:ws,W:Os,x:null,X:null,y:Ss,Y:Es,Z:ks,"%":Ps},w={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:Cl,e:Cl,f:Bl,g:Pl,G:kl,H:Dl,I:Dl,j:Il,L:Ll,m:Ml,M:Nl,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Tl,Q:Fl,s:Ul,S:Rl,u:Sl,U:jl,V:El,w:Ol,W:Al,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Pl,Y:kl,Z:_l,"%":zl};function O(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=dl[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,o,i=sl(1900,void 0,1);if(j(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=ll(sl(i.y,0,1))).getUTCDay(),n=o>4||0===o?Xu.ceil(n):Xu(n),n=Nu.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=ul(sl(i.y,0,1))).getDay(),n=o>4||0===o?zu.ceil(n):zu(n),n=Du.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?ll(sl(i.y,0,1)).getUTCDay():ul(sl(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,ll(i)):ul(i)}}function j(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in dl?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),x.x=O(r,x),x.X=O(n,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),pl=fl.format,fl.parse,hl=fl.utcFormat,fl.utcParse,Array.prototype.slice;var ef=r(4506),rf=r.n(ef),nf=r(1684),of=r.n(nf),af=r(7307),cf=r.n(af),uf=r(2404),lf=r.n(uf),sf=r(8351),ff=r.n(sf);function pf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var hf=function(t){return t},df={"@@functional/placeholder":!0},yf=function(t){return t===df},vf=function(t){return function e(){return 0===arguments.length||1===arguments.length&&yf(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},mf=function t(e,r){return 1===e?r:vf((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==df})).length;return a>=e?r.apply(void 0,o):t(e-a,vf((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i,a=o.map((function(t){return yf(t)?e.shift():t}));return r.apply(void 0,(i=a,function(t){if(Array.isArray(t))return pf(t)}(i)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return pf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pf(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(e))})))}))},gf=function(t){return mf(t.length,t)},bf=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},xf=gf((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),wf=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return hf;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},Of=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Sf=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};gf((function(t,e,r){var n=+t;return n+r*(+e-n)})),gf((function(t,e,r){var n=e-+t;return(r-t)/(n||1/0)})),gf((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}));const jf=function(t,e,r){for(var n=new(ff())(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},Ef=function(t){return 0===t?1:Math.floor(new(ff())(t).abs().log(10).toNumber())+1};function Af(t){return function(t){if(Array.isArray(t))return _f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Pf(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],_n=!0,n=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(_n=(i=a.next()).done)&&(r.push(i.value),!e||r.length!==e);_n=!0);}catch(t){n=!0,o=t}finally{try{_n||null==a.return||a.return()}finally{if(n)throw o}}return r}}(t,e)||Pf(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pf(t,e){if(t){if("string"==typeof t)return _f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_f(t,e):void 0}}function _f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tf(t){var e=kf(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function Mf(t,e,r){if(t.lte(0))return new(ff())(0);var n=Ef(t.toNumber()),o=new(ff())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new(ff())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new(ff())(Math.ceil(c))}function Cf(t,e,r){var n=1,o=new(ff())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(ff())(10).pow(Ef(t)-1),o=new(ff())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(ff())(Math.floor(t)))}else 0===t?o=new(ff())(Math.floor((e-1)/2)):r||(o=new(ff())(Math.floor(t)));var a=Math.floor((e-1)/2);return wf(xf((function(t){return o.add(new(ff())(t-a).mul(n)).toNumber()})),bf)(0,e)}function If(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new(ff())(0),tickMin:new(ff())(0),tickMax:new(ff())(0)};var i,a=Mf(new(ff())(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new(ff())(0):(i=new(ff())(t).add(e).div(2)).sub(new(ff())(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new(ff())(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?If(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new(ff())(c).mul(a)),tickMax:i.add(new(ff())(u).mul(a))})}var Df=Sf((function(t){var e=kf(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=kf(Tf([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(Af(bf(0,o-1).map((function(){return 1/0})))):[].concat(Af(bf(0,o-1).map((function(){return-1/0}))),[l]);return r>n?Of(s):s}if(u===l)return Cf(u,o,i);var f=If(u,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=jf(h,d.add(new(ff())(.1).mul(p)),p);return r>n?Of(y):y})),Nf=(Sf((function(t){var e=kf(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=kf(Tf([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[r,n];if(u===l)return Cf(u,o,i);var s=Mf(new(ff())(l).sub(u).div(a-1),i,0),f=wf(xf((function(t){return new(ff())(u).add(new(ff())(t).mul(s)).toNumber()})),bf)(0,a).filter((function(t){return t>=u&&t<=l}));return r>n?Of(f):f})),Sf((function(t,e){var r=kf(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=kf(Tf([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=Mf(new(ff())(u).sub(c).div(l-1),i,0),f=[].concat(Af(jf(new(ff())(c),new(ff())(u).sub(new(ff())(.99).mul(s)),s)),[u]);return n>o?Of(f):f}))),Rf=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Lf(){return Lf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lf.apply(this,arguments)}function Bf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zf(t){var e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,c=t.dataPointFormatter,u=t.xAxis,l=t.yAxis,s=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Rf),f=Rt(s,!1);"x"===t.direction&&"number"!==u.type&&Yt(!1);var p=i.map((function(t){var i=c(t,o),s=i.x,p=i.y,h=i.value,d=i.errorVal;if(!d)return null;var y,v,m,g,b=[];if(Array.isArray(d)){var x=(g=2,function(t){if(Array.isArray(t))return t}(m=d)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(m,g)||function(t,e){if(t){if("string"==typeof t)return Bf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bf(t,e):void 0}}(m,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());y=x[0],v=x[1]}else y=v=d;if("vertical"===r){var w=u.scale,O=p+e,S=O+n,j=O-n,E=w(h-y),A=w(h+v);b.push({x1:A,y1:S,x2:A,y2:j}),b.push({x1:E,y1:O,x2:A,y2:O}),b.push({x1:E,y1:S,x2:E,y2:j})}else if("horizontal"===r){var k=l.scale,P=s+e,_=P-n,T=P+n,M=k(h-y),C=k(h+v);b.push({x1:_,y1:C,x2:T,y2:C}),b.push({x1:P,y1:M,x2:P,y2:C}),b.push({x1:_,y1:M,x2:T,y2:M})}return a().createElement(re,Lf({className:"recharts-errorBar",key:"bar-".concat(b.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},f),b.map((function(t){return a().createElement("line",Lf({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return a().createElement(re,{className:"recharts-errorBars"},p)}function Ff(t){return Ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(t)}function Uf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uf(Object(r),!0).forEach((function(e){Wf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wf(t,e,r){var n;return n=function(t){if("object"!=Ff(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ff(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Ff(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}zf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},zf.displayName="ErrorBar";var qf=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=It(r,Qr);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,o=r.name,i=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||i||"square",color:Qf(e),value:o||n,payload:e.props}})),$f($f($f({},a.props),Qr.getWithHeight(a,o)),{},{payload:e,item:a})):null};function Gf(t){return Gf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(t)}function Vf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vf(Object(r),!0).forEach((function(e){Hf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hf(t,e,r){var n;return n=function(t){if("object"!=Gf(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Gf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Gf(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kf(t){return function(t){if(Array.isArray(t))return Yf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Yf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yf(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zf(t,e,r){return st()(t)||st()(e)?r:et(e)?K()(t,e,r):pt()(e)?e(t):r}function Jf(t,e,r,n){var o=cf()(t,(function(t){return Zf(t,e)}));if("number"===r){var i=o.filter((function(t){return tt(t)||parseFloat(t)}));return i.length?[of()(i),rf()(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!st()(t)})):o).map((function(t){return et(t)||t instanceof Date?t:""}))}var Qf=function(t){var e,r=t.type.displayName,n=t.props,o=n.stroke,i=n.fill;switch(r){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},tp=function(t,e,r,n,o){var i=Ct(e.props.children,zf).filter((function(t){return function(t,e,r){return!!st()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Zf(e,r);if(st()(n))return t;var o=Array.isArray(n)?[of()(n),rf()(n)]:[n,n],i=a.reduce((function(t,r){var n=Zf(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},ep=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&tp(t,e,i,n)||Jf(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},rp=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},np=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},op=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*J(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!X()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},ip=new WeakMap,ap=function(t,e){if("function"!=typeof e)return t;ip.has(t)||ip.set(t,new WeakMap);var r=ip.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},cp=function(e,r,n){var o=e.scale,i=e.type,a=e.layout,c=e.axisType;if("auto"===o)return"radial"===a&&"radiusAxis"===c?{scale:Oi(),realScaleType:"band"}:"radial"===a&&"angleAxis"===c?{scale:Uc(),realScaleType:"linear"}:"category"===i&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ji(),realScaleType:"point"}:"category"===i?{scale:Oi(),realScaleType:"band"}:{scale:Uc(),realScaleType:"linear"};if(G()(o)){var u="scale".concat(qe()(o));return{scale:(t[u]||ji)(),realScaleType:t[u]?u:"point"}}return pt()(o)?{scale:o}:{scale:ji(),realScaleType:"point"}},up=1e-4,lp=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-up,i=Math.max(n[0],n[1])+up,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},sp={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=X()(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Ys(t,e)}},none:Ys,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Ys(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,Ys(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=X()(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},fp=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=sp[r],i=function(){var t=hr([]),e=Js,r=Ys,n=Qs;function o(o){var i,a,c=Array.from(t.apply(this,arguments),tf),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=Zs(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:hr(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:hr(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?Js:"function"==typeof t?t:hr(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Ys:t,o):r},o}().keys(n).value((function(t,e){return+Zf(t,e,0)})).order(Js).offset(o);return i(t)},pp=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=Df(u,o,a);return t.domain([of()(l),rf()(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Nf(s,o,a)}}return null};function hp(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!st()(o[e.dataKey])){var c=ct(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Zf(o,st()(a)?e.dataKey:a);return st()(u)?null:e.scale(u)}var dp=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=Zf(i,e.dataKey,e.domain[a]);return st()(c)?null:e.scale(c)-o/2+n},yp=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[of()(e.concat([t[0]]).filter(tt)),rf()(e.concat([t[1]]).filter(tt))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},vp=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mp=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gp=function(t,e,r){if(pt()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(tt(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(vp.test(t[0])){var o=+vp.exec(t[0])[1];n[0]=e[0]-o}else pt()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(tt(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(mp.test(t[1])){var i=+mp.exec(t[1])[1];n[1]=e[1]+i}else pt()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},bp=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=Kt()(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},xp=function(t,e,r){return t&&t.length?lf()(t,K()(r,"type.defaultProps.domain"))?e:t:e},wp=function(t,e){var r=t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return Xf(Xf({},Rt(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Qf(t),value:Zf(e,n),type:c,payload:e,chartType:u,hide:l})};function Op(t){return Op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Op(t)}function Sp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sp(Object(r),!0).forEach((function(e){Ep(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ep(t,e,r){var n;return n=function(t){if("object"!=Op(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Op(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ap=["Webkit","Moz","O","ms"];function kp(t){return kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kp(t)}function Pp(){return Pp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pp.apply(this,arguments)}function _p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_p(Object(r),!0).forEach((function(e){Rp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Lp(n.key),n)}}function Cp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Cp=function(){return!!t})()}function Ip(t){return Ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ip(t)}function Dp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Np(t,e){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Np(t,e)}function Rp(t,e,r){return(e=Lp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lp(t){var e=function(t){if("object"!=kp(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=kp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==kp(e)?e:String(e)}var Bp=function(t){return t.changedTouches&&!!t.changedTouches.length},zp=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Rp(Dp((n=this,i=[t],o=Ip(o=e),r=function(t,e){if(e&&("object"===kp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Dp(t)}(n,Cp()?Reflect.construct(o,i||[],Ip(n).constructor):o.apply(n,i)))),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),Rp(Dp(r),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),Rp(Dp(r),"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})})),r.detachDragEndListener()})),Rp(Dp(r),"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),Rp(Dp(r),"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),Rp(Dp(r),"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),Rp(Dp(r),"handleSlideDragStart",(function(t){var e=Bp(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(Dp(r),"startX"),endX:r.handleTravellerDragStart.bind(Dp(r),"endX")},r.state={},r}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Np(t,e)}(e,t),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,u),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=Zf(r[t],o,t);return pt()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Bp(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,g=v.endIndex;this.setState(Rp(Rp({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p==0:g%p==0)||o<i&&g===t||"endX"===n&&(o>i?g%p==0:m%p==0)||o>i&&g===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(Rp({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,c=t.stroke;return a().createElement("rect",{stroke:c,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,c=t.data,u=t.children,l=t.padding,s=i.Children.only(u);return s?a().cloneElement(s,{x:e,y:r,width:n,height:o,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,o,i=this,c=this.props,u=c.y,l=c.travellerWidth,s=c.height,f=c.traveller,p=c.ariaLabel,h=c.data,d=c.startIndex,y=c.endIndex,v=Math.max(t,this.props.x),m=Tp(Tp({},Rt(this.props,!1)),{},{x:v,y:u,width:l,height:s}),g=p||"Min value: ".concat(null===(n=h[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=h[y])||void 0===o?void 0:o.name);return a().createElement(re,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,c=r.travellerWidth,u=Math.min(t,e)+c,l=Math.max(Math.abs(e-t)-c,0);return a().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:u,y:n,width:l,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,c=t.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return a().createElement(re,{className:"recharts-brush-texts"},a().createElement(ia,Pp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:n+o/2},f),this.getTextOfTick(e)),a().createElement(ia,Pp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+i+5,y:n+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,c=t.width,u=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,d=s.isSlideMoving,y=s.isTravellerMoving,v=s.isTravellerFocused;if(!e||!e.length||!tt(o)||!tt(i)||!tt(c)||!tt(u)||c<=0||u<=0)return null;var m=F("recharts-brush",r),g=1===a().Children.count(n),b=function(t,e){var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=Ap.reduce((function(t,n){return jp(jp({},t),{},Ep({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return a().createElement(re,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||y||v||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,c=Math.floor(r+o/2)-1;return a().createElement(a().Fragment,null,a().createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),a().createElement("line",{x1:e+1,y1:c,x2:e+n-1,y2:c,fill:"none",stroke:"#fff"}),a().createElement("line",{x1:e+1,y1:c+2,x2:e+n-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return a().isValidElement(t)?a().cloneElement(t,r):pt()(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return Tp({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=ji().domain(Xt()(0,c)).range([o,o+i-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],n&&Mp(r.prototype,n),o&&Mp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function Fp(t){return Fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(t)}function Up(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Up(Object(r),!0).forEach((function(e){Wp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wp(t,e,r){var n;return n=function(t){if("object"!=Fp(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Fp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Fp(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Rp(zp,"displayName","Brush"),Rp(zp,"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 Gp=Math.PI/180,Vp=function(t){return 180*t/Math.PI},Xp=function(t,e,r,n){return{x:t+Math.cos(-Gp*n)*r,y:e+Math.sin(-Gp*n)*r}},Hp=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},Kp=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},Yp=function(t,e){var r=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:Vp(u),angleInRadian:u}}({x:t.x,y:t.y},e),n=r.radius,o=r.angle,i=e.innerRadius,a=e.outerRadius;if(n<i||n>a)return!1;if(0===n)return!0;var c,u=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),l=u.startAngle,s=u.endAngle,f=o;if(l<=s){for(;f>s;)f-=360;for(;f<l;)f+=360;c=f>=l&&f<=s}else{for(;f>l;)f-=360;for(;f<s;)f+=360;c=f>=s&&f<=l}return c?$p($p({},e),{},{radius:n,angle:Kp(f,e)}):null},Zp=function(t){return(0,i.isValidElement)(t)||pt()(t)||"boolean"==typeof t?"":t.className};function Jp(t){return Jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jp(t)}var Qp=["offset"];function th(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function eh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?eh(Object(r),!0).forEach((function(e){nh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nh(t,e,r){var n;return n=function(t){if("object"!=Jp(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Jp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Jp(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oh(){return oh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oh.apply(this,arguments)}function ih(t){var e,r=t.offset,n=rh({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Qp)),o=n.viewBox,c=n.position,u=n.value,l=n.children,s=n.content,f=n.className,p=void 0===f?"":f,h=n.textBreakAll;if(!o||st()(u)&&st()(l)&&!(0,i.isValidElement)(s)&&!pt()(s))return null;if((0,i.isValidElement)(s))return(0,i.cloneElement)(s,n);if(pt()(s)){if(e=(0,i.createElement)(s,n),(0,i.isValidElement)(e))return e}else e=function(t){var e=t.value,r=t.formatter,n=st()(t.children)?e:t.children;return pt()(r)?r(n):n}(n);var d=function(t){return"cx"in t&&tt(t.cx)}(o),y=Rt(n,!0);if(d&&("insideStart"===c||"insideEnd"===c||"end"===c))return function(t,e,r){var n,o,i=t.position,c=t.viewBox,u=t.offset,l=t.className,s=c,f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius,y=s.startAngle,v=s.endAngle,m=s.clockWise,g=(h+d)/2,b=function(t,e){return J(e-t)*Math.min(Math.abs(e-t),360)}(y,v),x=b>=0?1:-1;"insideStart"===i?(n=y+x*u,o=m):"insideEnd"===i?(n=v-x*u,o=!m):"end"===i&&(n=v+x*u,o=m),o=b<=0?o:!o;var w=Xp(f,p,g,n),O=Xp(f,p,g,n+359*(o?1:-1)),S="M".concat(w.x,",").concat(w.y,"\n    A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n    ").concat(O.x,",").concat(O.y),j=st()(t.id)?nt("recharts-radial-line-"):t.id;return a().createElement("text",oh({},r,{dominantBaseline:"central",className:F("recharts-radial-bar-label",l)}),a().createElement("defs",null,a().createElement("path",{id:j,d:S})),a().createElement("textPath",{xlinkHref:"#".concat(j)},e))}(n,e,y);var v=d?function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=Xp(i,a,u+r,l),_x=s.x;return{x:_x,y:s.y,textAnchor:_x>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=Xp(i,a,(c+u)/2,l);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(n):function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=u>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===o)return rh(rh({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return rh(rh({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var g={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return rh(rh({},g),r?{width:Math.max(g.x-r.x,0),height:l}:{})}if("right"===o){var b={x:a+u+y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return rh(rh({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var x=r?{width:u,height:l}:{};return"insideLeft"===o?rh({x:a+y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?rh({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?rh({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===o?rh({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?rh({x:a+y,y:c+f,textAnchor:m,verticalAnchor:h},x):"insideTopRight"===o?rh({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===o?rh({x:a+y,y:c+l-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===o?rh({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:p},x):dt()(o)&&(tt(o.x)||Q(o.x))&&(tt(o.y)||Q(o.y))?rh({x:a+ot(o.x,u),y:c+ot(o.y,l),textAnchor:"end",verticalAnchor:"end"},x):rh({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)}(n);return a().createElement(ia,oh({className:F("recharts-label",p)},y,v,{breakAll:h}),e)}ih.displayName="Label";var ah=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(tt(d)&&tt(y)){if(tt(s)&&tt(f))return{x:s,y:f,width:d,height:y};if(tt(p)&&tt(h))return{x:p,y:h,width:d,height:y}}return tt(s)&&tt(f)?{x:s,y:f,width:0,height:0}:tt(e)&&tt(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};ih.parseViewBox=ah,ih.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,o=ah(t),c=Ct(n,ih).map((function(t,r){return(0,i.cloneElement)(t,{viewBox:e||o,key:"label-".concat(r)})}));if(!r)return c;var u,l=function(t,e){return t?!0===t?a().createElement(ih,{key:"label-implicit",viewBox:e}):et(t)?a().createElement(ih,{key:"label-implicit",viewBox:e,value:t}):(0,i.isValidElement)(t)?t.type===ih?(0,i.cloneElement)(t,{key:"label-implicit",viewBox:e}):a().createElement(ih,{key:"label-implicit",content:t,viewBox:e}):pt()(t)?a().createElement(ih,{key:"label-implicit",content:t,viewBox:e}):dt()(t)?a().createElement(ih,oh({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[l].concat(function(t){if(Array.isArray(t))return th(t)}(u=c)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(u)||function(t,e){if(t){if("string"==typeof t)return th(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?th(t,e):void 0}}(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var ch=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},uh=r(3916),lh=r.n(uh),sh=r(9747),fh=r.n(sh),ph=function(t){return null};ph.displayName="Cell";var hh=r(8090),dh=r.n(hh);function yh(t){return yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(t)}var vh=["valueAccessor"],mh=["data","dataKey","clockWise","id","textBreakAll"];function gh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bh(){return bh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bh.apply(this,arguments)}function xh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xh(Object(r),!0).forEach((function(e){Oh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Oh(t,e,r){var n;return n=function(t){if("object"!=yh(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=yh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==yh(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var jh=function(t){return Array.isArray(t.value)?dh()(t.value):t.value};function Eh(t){var e=t.valueAccessor,r=void 0===e?jh:e,n=Sh(t,vh),o=n.data,i=n.dataKey,c=n.clockWise,u=n.id,l=n.textBreakAll,s=Sh(n,mh);return o&&o.length?a().createElement(re,{className:"recharts-label-list"},o.map((function(t,e){var n=st()(i)?r(t,e):Zf(t&&t.payload,i),o=st()(u)?{}:{id:"".concat(u,"-").concat(e)};return a().createElement(ih,bh({},Rt(t,!0),s,o,{parentViewBox:t.parentViewBox,value:n,textBreakAll:l,viewBox:ih.parseViewBox(st()(c)?t:wh(wh({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))}))):null}Eh.displayName="LabelList",Eh.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n,o=Ct(t.children,Eh).map((function(t,r){return(0,i.cloneElement)(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?a().createElement(Eh,{key:"labelList-implicit",data:e}):a().isValidElement(t)||pt()(t)?a().createElement(Eh,{key:"labelList-implicit",data:e,content:t}):dt()(t)?a().createElement(Eh,bh({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(function(t){if(Array.isArray(t))return gh(t)}(n=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return gh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gh(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o};var Ah=r(1331),kh=r.n(Ah),Ph=r(3812),_h=r.n(Ph);function Th(t){return Th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Th(t)}function Mh(){return Mh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mh.apply(this,arguments)}function Ch(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ih(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ih(Object(r),!0).forEach((function(e){Nh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nh(t,e,r){var n;return n=function(t){if("object"!=Th(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Th(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Th(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rh=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),(i+="L ".concat(t+r-a/2-n,",").concat(e+o))+"L ".concat(t,",").concat(e," Z")},Lh={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Bh=function(t){var e,r,n=Dh(Dh({},Lh),t),o=(0,i.useRef)(),c=(e=(0,i.useState)(-1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Ch(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ch(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,i.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var t=o.current.getTotalLength();t&&l(t)}catch(t){}}),[]);var s=n.x,f=n.y,p=n.upperWidth,h=n.lowerWidth,d=n.height,y=n.className,v=n.animationEasing,m=n.animationDuration,g=n.animationBegin,b=n.isUpdateAnimationActive;if(s!==+s||f!==+f||p!==+p||h!==+h||d!==+d||0===p&&0===h||0===d)return null;var x=F("recharts-trapezoid",y);return b?a().createElement(oi,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:f},to:{upperWidth:p,lowerWidth:h,height:d,x:s,y:f},duration:m,animationEasing:v,isActive:b},(function(t){var e=t.upperWidth,r=t.lowerWidth,i=t.height,c=t.x,l=t.y;return a().createElement(oi,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:v},a().createElement("path",Mh({},Rt(n,!0),{className:x,d:Rh(c,l,e,r,i),ref:o})))})):a().createElement("g",null,a().createElement("path",Mh({},Rt(n,!0),{className:x,d:Rh(s,f,p,h,d)})))};function zh(t){return zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zh(t)}function Fh(){return Fh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fh.apply(this,arguments)}function Uh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uh(Object(r),!0).forEach((function(e){Wh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wh(t,e,r){var n;return n=function(t){if("object"!=zh(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=zh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==zh(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qh=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/Gp,f=u?o:o+i*s,p=u?o-i*s:o;return{center:Xp(e,r,l,f),circleTangency:Xp(e,r,n,f),lineTangency:Xp(e,r,l*Math.cos(s*Gp),p),theta:s}},Gh=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return J(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=Xp(e,r,o,i),l=Xp(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n    ").concat(l.x,",").concat(l.y,"\n  ");if(n>0){var f=Xp(e,r,n,i),p=Xp(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n            A ").concat(n,",").concat(n,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n            ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},Vh={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Xh=function(t){var e=$h($h({},Vh),t),r=e.cx,n=e.cy,o=e.innerRadius,i=e.outerRadius,c=e.cornerRadius,u=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,f=e.endAngle,p=e.className;if(i<o||s===f)return null;var h,d=F("recharts-sector",p),y=i-o,v=ot(c,y,0,!0);return h=v>0&&Math.abs(s-f)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=J(l-u),f=qh({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=qh({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n      "):Gh({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n  ");if(n>0){var w=qh({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,j=w.theta,E=qh({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),A=E.circleTangency,k=E.lineTangency,P=E.theta,_=c?Math.abs(u-l):Math.abs(u-l)-j-P;if(_<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(k.x,",").concat(k.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(A.x,",").concat(A.y,"\n      A").concat(n,",").concat(n,",0,").concat(+(_>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(v,y/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):Gh({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:s,endAngle:f}),a().createElement("path",Fh({},Rt(e,!0),{className:d,d:h,role:"img"}))},Hh=["option","shapeType","propTransformer","activeClassName","isActive"];function Kh(t){return Kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kh(t)}function Yh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yh(Object(r),!0).forEach((function(e){Jh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jh(t,e,r){var n;return n=function(t){if("object"!=Kh(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Kh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Kh(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qh(t,e){return Zh(Zh({},e),t)}function td(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return a().createElement(di,r);case"trapezoid":return a().createElement(Bh,r);case"sector":return a().createElement(Xh,r);case"symbols":if(function(t){return"symbols"===t}(e))return a().createElement(_r,r);break;default:return null}}function ed(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,c=void 0===o?Qh:o,u=t.activeClassName,l=void 0===u?"recharts-active-shape":u,s=t.isActive,f=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Hh);if((0,i.isValidElement)(r))e=(0,i.cloneElement)(r,Zh(Zh({},f),function(t){return(0,i.isValidElement)(t)?t.props:t}(r)));else if(pt()(r))e=r(f);else if(kh()(r)&&!_h()(r)){var p=c(r,f);e=a().createElement(td,{shapeType:n,elementProps:p})}else{var h=f;e=a().createElement(td,{shapeType:n,elementProps:h})}return s?a().createElement(re,{className:l},e):e}function rd(t,e){return null!=e&&"trapezoids"in t.props}function nd(t,e){return null!=e&&"sectors"in t.props}function od(t,e){return null!=e&&"points"in t.props}function id(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function ad(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function cd(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function ud(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return rd(t,e)?r="trapezoids":nd(t,e)?r="sectors":od(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return rd(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:nd(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:od(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=lf()(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return rd(t,e)?r=id:nd(t,e)?r=ad:od(t,e)&&(r=cd),r}(r,e);return n(t,e)})),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}var ld=["x","y"];function sd(t){return sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sd(t)}function fd(){return fd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fd.apply(this,arguments)}function pd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pd(Object(r),!0).forEach((function(e){dd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dd(t,e,r){var n;return n=function(t){if("object"!=sd(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=sd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==sd(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yd(t,e){var r=t.x,n=t.y,o=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,ld),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return hd(hd(hd(hd(hd({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function vd(t){return a().createElement(ed,fd({shapeType:"rectangle",propTransformer:yd,activeClassName:"recharts-active-bar"},t))}var md,gd=["value","background"];function bd(t){return bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bd(t)}function xd(){return xd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xd.apply(this,arguments)}function wd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Od(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wd(Object(r),!0).forEach((function(e){Pd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_d(n.key),n)}}function jd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jd=function(){return!!t})()}function Ed(t){return Ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ed(t)}function Ad(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kd(t,e){return kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kd(t,e)}function Pd(t,e,r){return(e=_d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _d(t){var e=function(t){if("object"!=bd(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=bd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==bd(e)?e:String(e)}var Td=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return Pd(Ad((r=this,n=e,o=[].concat(a),n=Ed(n),t=function(t,e){if(e&&("object"===bd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ad(t)}(r,jd()?Reflect.construct(n,o||[],Ed(r).constructor):n.apply(r,o)))),"state",{isAnimationFinished:!1}),Pd(Ad(t),"id",nt("recharts-bar-")),Pd(Ad(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),Pd(Ad(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kd(t,e)}(e,t),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,c=r.activeBar,u=Rt(this.props,!1);return t&&t.map((function(t,r){var l=r===i,s=l?c:n,f=Od(Od(Od({},u),t),{},{isActive:l,option:s,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return a().createElement(re,xd({className:"recharts-bar-rectangle"},Ot(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),a().createElement(vd,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,c=e.animationDuration,u=e.animationEasing,l=e.animationId,s=this.state.prevData;return a().createElement(oi,{begin:i,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=s&&s[e];if(r){var i=at(r.x,t.x),a=at(r.y,t.y),c=at(r.width,t.width),u=at(r.height,t.height);return Od(Od({},t),{},{x:i(o),y:a(o),width:c(o),height:u(o)})}if("horizontal"===n){var l=at(0,t.height)(o);return Od(Od({},t),{},{y:t.y+t.height-l,height:l})}var f=at(0,t.width)(o);return Od(Od({},t),{},{width:f})}));return a().createElement(re,null,t.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&lf()(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=Rt(this.props.background,!1);return r.map((function(e,r){e.value;var c=e.background,u=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,gd);if(!c)return null;var l=Od(Od(Od(Od(Od({},u),{},{fill:"#eee"},c),i),Ot(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a().createElement(vd,xd({option:t.props.background,isActive:r===o},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,c=r.layout,u=Ct(r.children,zf);if(!u)return null;var l="vertical"===c?n[0].height/2:n[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Zf(t,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return a().createElement(re,f,u.map((function(t){return a().cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:c,offset:l,dataPointFormatter:s})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,c=t.left,u=t.top,l=t.width,s=t.height,f=t.isAnimationActive,p=t.background,h=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,y=F("recharts-bar",n),v=o&&o.allowDataOverflow,m=i&&i.allowDataOverflow,g=v||m,b=st()(h)?this.id:h;return a().createElement(re,{className:y},v||m?a().createElement("defs",null,a().createElement("clipPath",{id:"clipPath-".concat(b)},a().createElement("rect",{x:v?c:c-l/2,y:m?u:u-s/2,width:v?l:2*l,height:m?s:2*s}))):null,a().createElement(re,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(b,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,b),(!f||d)&&Eh.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&Sd(r.prototype,n),o&&Sd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function Md(t){return Md="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Md(t)}function Cd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rd(n.key),n)}}function Id(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Id(Object(r),!0).forEach((function(e){Nd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Id(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nd(t,e,r){return(e=Rd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rd(t){var e=function(t){if("object"!=Md(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Md(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Md(e)?e:String(e)}md=Td,Pd(Td,"displayName","Bar"),Pd(Td,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Pe.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Pd(Td,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var d=e.layout,y=r.props,v=y.dataKey,m=y.children,g=y.minPointSize,b="horizontal"===d?a:i,x=l?b.scale.domain():null,w=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:b}),O=Ct(m,ph),S=f.map((function(t,e){var n,f,p,y,m,b;l?n=function(t,e){if(!e||2!==e.length||!tt(e[0])||!tt(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!tt(t[0])||t[0]<r)&&(o[0]=r),(!tt(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=Zf(t,v),Array.isArray(n)||(n=[w,n]));var S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||Yt(!1),e)}}(g,md.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,E=[a.scale(n[0]),a.scale(n[1])],A=E[0],k=E[1];f=dp({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(j=null!=k?k:A)&&void 0!==j?j:void 0,y=h.size;var P=A-k;if(m=Number.isNaN(P)?0:P,b={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(m)<Math.abs(S)){var _=J(m||S)*(Math.abs(S)-Math.abs(m));p-=_,m+=_}}else{var T=[i.scale(n[0]),i.scale(n[1])],M=T[0],C=T[1];f=M,p=dp({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),y=C-M,m=h.size,b={x:i.x,y:p,width:i.width,height:m},Math.abs(S)>0&&Math.abs(y)<Math.abs(S)&&(y+=J(y||S)*(Math.abs(S)-Math.abs(y)))}return Od(Od(Od({},t),{},{x:f,y:p,width:y,height:m,value:l?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[wp(r,t)],tooltipPosition:{x:f+y/2,y:p+m/2}})}));return Od({data:S,layout:d},p)}));var Ld=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},Bd=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&Cd(e.prototype,r),n&&Cd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();Nd(Bd,"EPS",1e-4);var zd=function(t){var e=Object.keys(t).reduce((function(e,r){return Dd(Dd({},e),{},Nd({},r,Bd.create(t[r])))}),{});return Dd(Dd({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return lh()(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return fh()(t,(function(t,r){return e[r].isInRange(t)}))}})};function Fd(t){return Fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fd(t)}function Ud(){return Ud=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ud.apply(this,arguments)}function $d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$d(Object(r),!0).forEach((function(e){qd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qd(t,e,r){var n;return n=function(t){if("object"!=Fd(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Fd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Fd(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gd(t){var e=t.x,r=t.y,n=t.r,o=t.alwaysShow,i=t.clipPathId,c=et(e),u=et(r);if(ut(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=zd({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return ch(t,"discard")&&!i.isInRange(a)?null:a}(t);if(!l)return null;var s=l.x,f=l.y,p=t.shape,h=t.className,d=Wd(Wd({clipPath:ch(t,"hidden")?"url(#".concat(i,")"):void 0},Rt(t,!0)),{},{cx:s,cy:f});return a().createElement(re,{className:F("recharts-reference-dot",h)},Gd.renderDot(p,d),ih.renderCallByParent(t,{x:s-n,y:f-n,width:2*n,height:2*n}))}Gd.displayName="ReferenceDot",Gd.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Gd.renderDot=function(t,e){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(en,Ud({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var Vd=r(2426),Xd=r.n(Vd),Hd=r(7309),Kd=r.n(Hd),Yd=r(104),Zd=r.n(Yd)()((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")})),Jd=(0,i.createContext)(void 0),Qd=(0,i.createContext)(void 0),ty=(0,i.createContext)(void 0),ey=(0,i.createContext)({}),ry=(0,i.createContext)(void 0),ny=(0,i.createContext)(0),oy=(0,i.createContext)(0),iy=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,c=t.children,u=t.width,l=t.height,s=Zd(o);return a().createElement(Jd.Provider,{value:r},a().createElement(Qd.Provider,{value:n},a().createElement(ey.Provider,{value:o},a().createElement(ty.Provider,{value:s},a().createElement(ry.Provider,{value:i},a().createElement(ny.Provider,{value:l},a().createElement(oy.Provider,{value:u},c)))))))},ay=function(t){var e=(0,i.useContext)(Jd);null==e&&Yt(!1);var r=e[t];return null==r&&Yt(!1),r},cy=function(t){var e=(0,i.useContext)(Qd);null==e&&Yt(!1);var r=e[t];return null==r&&Yt(!1),r},uy=function(){return(0,i.useContext)(oy)},ly=function(){return(0,i.useContext)(ny)};function sy(t){return sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sy(t)}function fy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function py(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fy(Object(r),!0).forEach((function(e){hy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hy(t,e,r){var n;return n=function(t){if("object"!=sy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=sy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==sy(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yy(){return yy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yy.apply(this,arguments)}function vy(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,c=t.yAxisId,u=t.shape,l=t.className,s=t.alwaysShow,f=(0,i.useContext)(ry),p=ay(o),h=cy(c),d=(0,i.useContext)(ty);if(!f||!d)return null;ut(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var h=u.y,d=t.y.apply(h,{position:i});if(ch(u,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===c?y.reverse():y}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(ch(u,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:i})}));return ch(u,"discard")&&Xd()(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(zd({x:p.scale,y:h.scale}),et(e),et(r),n&&2===n.length,d,t.position,p.orientation,h.orientation,t);if(!y)return null;var v,m,g,b=(m=2,function(t){if(Array.isArray(t))return t}(v=y)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(v,m)||function(t,e){if(t){if("string"==typeof t)return dy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dy(t,e):void 0}}(v,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=b[0],w=x.x,O=x.y,S=b[1],j=S.x,E=S.y,A=py(py({clipPath:ch(t,"hidden")?"url(#".concat(f,")"):void 0},Rt(t,!0)),{},{x1:w,y1:O,x2:j,y2:E});return a().createElement(re,{className:F("recharts-reference-line",l)},function(t,e){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement("line",yy({},e,{className:"recharts-reference-line-line"}))}(u,A),ih.renderCallByParent(t,Ld({x:(g={x1:w,y1:O,x2:j,y2:E}).x1,y:g.y1},{x:g.x2,y:g.y2})))}function my(t){return my="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},my(t)}function gy(){return gy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gy.apply(this,arguments)}function by(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?by(Object(r),!0).forEach((function(e){wy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):by(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wy(t,e,r){var n;return n=function(t){if("object"!=my(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=my(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==my(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oy(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.className,c=t.alwaysShow,u=t.clipPathId;ut(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=et(e),s=et(r),f=et(n),p=et(o),h=t.shape;if(!(l||s||f||p||h))return null;var d=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=zd({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!ch(o,"discard")||f.isInRange(p)&&f.isInRange(h)?Ld(p,h):null}(l,s,f,p,t);if(!d&&!h)return null;var y=ch(t,"hidden")?"url(#".concat(u,")"):void 0;return a().createElement(re,{className:F("recharts-reference-area",i)},Oy.renderRect(h,xy(xy({clipPath:y},Rt(t,!0)),d)),ih.renderCallByParent(t,d))}function Sy(t){return function(t){if(Array.isArray(t))return jy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return jy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jy(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}vy.displayName="ReferenceLine",vy.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"},Oy.displayName="ReferenceArea",Oy.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Oy.renderRect=function(t,e){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(di,gy({},e,{className:"recharts-reference-area-rect"}))};var Ey=function(t,e,r,n,o){var i=Ct(t,vy),a=Ct(t,Gd),c=[].concat(Sy(i),Sy(a)),u=Ct(t,Oy),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&ch(e.props,"extendDomain")&&tt(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),h="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&ch(e.props,"extendDomain")&&tt(e.props[p])&&tt(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return tt(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},Ay=r(228),ky=new(r.n(Ay)()),Py="recharts.syncMouseEvents";function _y(t){return _y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_y(t)}function Ty(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Cy(n.key),n)}}function My(t,e,r){return(e=Cy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cy(t){var e=function(t){if("object"!=_y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_y(e)?e:String(e)}var Iy=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),My(this,"activeIndex",0),My(this,"coordinateList",[]),My(this,"layout","horizontal")}var e,r;return e=t,(r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])&&Ty(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Dy(){}function Ny(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Ry(t){this._context=t}function Ly(t){this._context=t}function By(t){this._context=t}Ry.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:Ny(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ny(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ly.prototype={areaStart:Dy,areaEnd:Dy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ny(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},By.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ny(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class zy{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function Fy(t){this._context=t}function Uy(t){this._context=t}function $y(t){return new Uy(t)}function Wy(t){return t<0?-1:1}function qy(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(Wy(i)+Wy(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function Gy(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Vy(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function Xy(t){this._context=t}function Hy(t){this._context=new Ky(t)}function Ky(t){this._context=t}function Yy(t){this._context=t}function Zy(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Jy(t,e){this._context=t,this._t=e}function Qy(t){return t[0]}function tv(t){return t[1]}function ev(t,e){var r=hr(!0),n=null,o=$y,i=null,a=xr(c);function c(c){var u,l,s,f=(c=Zs(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Qy:hr(t),e="function"==typeof e?e:void 0===e?tv:hr(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:hr(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:hr(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function rv(t,e,r){var n=null,o=hr(!0),i=null,a=$y,c=null,u=xr(l);function l(l){var s,f,p,h,d,y=(l=Zs(l)).length,v=!1,m=new Array(y),g=new Array(y);for(null==i&&(c=a(d=u())),s=0;s<=y;++s){if(!(s<y&&o(h=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],g[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,l),g[s]=+e(h,s,l),c.point(n?+n(h,s,l):m[s],r?+r(h,s,l):g[s]))}if(d)return c=null,d+""||null}function s(){return ev().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Qy:hr(+t),e="function"==typeof e?e:hr(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?tv:hr(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:hr(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:hr(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:hr(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:hr(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:hr(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:hr(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}function nv(t){return nv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nv(t)}function ov(){return ov=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ov.apply(this,arguments)}function iv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function av(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iv(Object(r),!0).forEach((function(e){cv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cv(t,e,r){var n;return n=function(t){if("object"!=nv(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=nv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==nv(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Fy.prototype={areaStart:Dy,areaEnd:Dy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Uy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Xy.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:Vy(this,this._t0,Gy(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Vy(this,Gy(this,r=qy(this,t,e)),r);break;default:Vy(this,this._t0,r=qy(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Hy.prototype=Object.create(Xy.prototype)).point=function(t,e){Xy.prototype.point.call(this,e,t)},Ky.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},Yy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Zy(t),o=Zy(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Jy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var uv={curveBasisClosed:function(t){return new Ly(t)},curveBasisOpen:function(t){return new By(t)},curveBasis:function(t){return new Ry(t)},curveBumpX:function(t){return new zy(t,!0)},curveBumpY:function(t){return new zy(t,!1)},curveLinearClosed:function(t){return new Fy(t)},curveLinear:$y,curveMonotoneX:function(t){return new Xy(t)},curveMonotoneY:function(t){return new Hy(t)},curveNatural:function(t){return new Yy(t)},curveStep:function(t){return new Jy(t,.5)},curveStepAfter:function(t){return new Jy(t,1)},curveStepBefore:function(t){return new Jy(t,0)}},lv=function(t){return t.x===+t.x&&t.y===+t.y},sv=function(t){return t.x},fv=function(t){return t.y},pv=function(t){var e=t.className,r=t.points,n=t.path,o=t.pathRef;if(!(r&&r.length||n))return null;var i=r&&r.length?function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(pt()(t))return t;var r="curve".concat(qe()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?uv[r]||$y:uv["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return lv(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return lv(t)})):a,h=f.map((function(t,e){return av(av({},t),{},{base:p[e]})}));return(e="vertical"===c?rv().y(fv).x1(sv).x0((function(t){return t.base.x})):rv().x(sv).y1(fv).y0((function(t){return t.base.y}))).defined(lv).curve(s),e(h)}return(e="vertical"===c&&tt(a)?rv().y(fv).x1(sv).x0(a):tt(a)?rv().x(sv).y1(fv).y0(a):ev().x(sv).y(fv)).defined(lv).curve(s),e(f)}(t):n;return a().createElement("path",ov({},Rt(t,!1),wt(t),{className:F("recharts-curve",e),d:i,ref:o}))};function hv(t){return hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hv(t)}var dv=["x","y","top","left","width","height","className"];function yv(){return yv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yv.apply(this,arguments)}function vv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mv(t,e,r){var n;return n=function(t){if("object"!=hv(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=hv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==hv(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var gv=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},bv=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,c=void 0===i?0:i,u=t.left,l=void 0===u?0:u,s=t.width,f=void 0===s?0:s,p=t.height,h=void 0===p?0:p,d=t.className,y=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vv(Object(r),!0).forEach((function(e){mv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:o,top:c,left:l,width:f,height:h},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,dv));return tt(r)&&tt(o)&&tt(f)&&tt(h)&&tt(c)&&tt(l)?a().createElement("path",yv({},Rt(y,!0),{className:F("recharts-cross",d),d:gv(r,o,f,h,c,l)})):null};function xv(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[Xp(e,r,n,o),Xp(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function wv(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return xv(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=Xp(c,u,l,f),h=Xp(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function Ov(t){return Ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ov(t)}function Sv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sv(Object(r),!0).forEach((function(e){Ev(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ev(t,e,r){var n;return n=function(t){if("object"!=Ov(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ov(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Ov(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Av(t){var e,r=t.element,n=t.tooltipEventType,o=t.isActive,a=t.activeCoordinate,c=t.activePayload,u=t.offset,l=t.activeTooltipIndex,s=t.tooltipAxisBandSize,f=t.layout,p=t.chartName;if(!r||!r.props.cursor||!o||!a||"ScatterChart"!==p&&"axis"!==n)return null;var h=pv;if("ScatterChart"===p)e=a,h=bv;else if("BarChart"===p)e=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(f,a,u,s),h=di;else if("radial"===f){var d=xv(a),y=d.cx,v=d.cy,m=d.radius;e={cx:y,cy:v,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:m,outerRadius:m},h=Xh}else e={points:wv(f,a,u)},h=pv;var g=jv(jv(jv(jv({stroke:"#ccc",pointerEvents:"none"},u),e),Rt(r.props.cursor,!1)),{},{payload:c,payloadIndex:l,className:F("recharts-tooltip-cursor",r.props.cursor.className)});return(0,i.isValidElement)(r.props.cursor)?(0,i.cloneElement)(r.props.cursor,g):(0,i.createElement)(h,g)}var kv=["item"],Pv=["children","className","width","height","style","compact","title","desc"];function _v(t){return _v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_v(t)}function Tv(){return Tv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tv.apply(this,arguments)}function Mv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||zv(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cv(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Iv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qv(n.key),n)}}function Dv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Dv=function(){return!!t})()}function Nv(t){return Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nv(t)}function Rv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lv(t,e){return Lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lv(t,e)}function Bv(t){return function(t){if(Array.isArray(t))return Fv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||zv(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zv(t,e){if(t){if("string"==typeof t)return Fv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fv(t,e):void 0}}function Fv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Uv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uv(Object(r),!0).forEach((function(e){Wv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wv(t,e,r){return(e=qv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qv(t){var e=function(t){if("object"!=_v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_v(e)?e:String(e)}var Gv={xAxis:["bottom","top"],yAxis:["left","right"]},Vv={width:"100%",height:"100%"},Xv={x:0,y:0};function Hv(t){return t}var Kv=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(Bv(t),Bv(r)):t}),[]);return i.length>0?i:t&&t.length&&tt(n)&&tt(o)?t.slice(n,o+1):[]};function Yv(t){return"number"===t?[0,"auto"]:void 0}var Zv=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=Kv(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;return s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),(l=i.dataKey&&!i.allowDuplicatedCategory?ct(void 0===s?a:s,i.dataKey,n):s&&s[r]||a[r])?[].concat(Bv(o),[wp(c,l)]):o}),[])},Jv=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(J(s-l)!==J(f-s)){var h=[];if(J(f-s)===J(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+c[1]-c[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(t>(m+s)/2&&t<=(g+s)/2){i=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=Zv(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return $v($v($v({},n),Xp(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return $v($v($v({},n),Xp(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return Xv}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Qv=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Ct(l,o),p={};return f&&f.length?p=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=rp(l,o);return r.reduce((function(e,r){var h,d=r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,b=d.scale,x=d.ticks,w=d.includeHidden,O=r.props[i];if(e[O])return e;var S,j,E,A=Kv(t.data,{graphicalItems:n.filter((function(t){return t.props[i]===O})),dataStartIndex:c,dataEndIndex:u}),k=A.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&tt(n)&&tt(o))return!0}return!1})(r.props.domain,m,y)&&(S=gp(r.props.domain,null,m),!p||"number"!==y&&"auto"===b||(E=Jf(A,v,"category")));var P=Yv(y);if(!S||0===S.length){var _,T=null!==(_=r.props.domain)&&void 0!==_?_:P;if(v){if(S=Jf(A,v,y),"category"===y&&p){var M=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);g&&M?(j=S,S=Xt()(0,k)):g||(S=xp(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(Bv(t),[e])}),[]))}else if("category"===y)S=g?S.filter((function(t){return""!==t&&!st()(t)})):xp(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||st()(e)?t:[].concat(Bv(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,o){var i=e.map((function(e){return tp(t,e,r,o,n)})).filter((function(t){return!st()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(A,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),v,o,l);C&&(S=C)}!p||"number"!==y&&"auto"===b||(E=Jf(A,v,"category"))}else S=p?Xt()(0,k):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:yp(a[O].stackGroups,c,u):ep(A,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),y,l,!0);if("number"===y)S=Ey(s,S,O,o,x),T&&(S=gp(T,S,m));else if("category"===y&&T){var I=T;S.every((function(t){return I.indexOf(t)>=0}))&&(S=I)}}return $v($v({},e),{},Wv({},O,$v($v({},r.props),{},{axisType:o,domain:S,categoricalDomain:E,duplicateDomain:j,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:P,isCategorical:p,layout:l})))}),{})}(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=Kv(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=rp(l,o),d=-1;return r.reduce((function(t,e){var y,v=e.props[i],m=Yv("number");return t[v]?t:(d++,h?y=Xt()(0,p):a&&a[v]&&a[v].hasStack?(y=yp(a[v].stackGroups,c,u),y=Ey(s,y,v,o)):(y=gp(m,ep(f,r.filter((function(t){return t.props[i]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),y=Ey(s,y,v,o)),$v($v({},t),{},Wv({},v,$v($v({axisType:o},n.defaultProps),{},{hide:!0,orientation:K()(Gv,"".concat(o,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},tm=function(t){var e=t.children,r=t.defaultShowTooltip,n=It(e,zp),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},em=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},rm=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},nm=function(t){var e,r=t.chartName,n=t.GraphicalChild,o=t.defaultTooltipEventType,c=void 0===o?"axis":o,u=t.validateTooltipEventTypes,l=void 0===u?["axis"]:u,s=t.axisComponents,f=t.legendContent,p=t.formatAxisMap,h=t.defaultProps,d=function(t,e){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Dt({props:o}))return null;var u=o.children,l=o.layout,f=o.stackOffset,h=o.data,d=o.reverseStackOrder,y=em(l),v=y.numericAxisName,m=y.cateAxisName,g=Ct(u,n),b=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(et(i)){var u=c.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[nt("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Xf(Xf({},t),{},Hf({},a,c))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return Xf(Xf({},e),{},Hf({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:fp(t,a.items,o)}))}),{})),Xf(Xf({},e),{},Hf({},i,c))}),{})}(h,g,"".concat(v,"Id"),"".concat(m,"Id"),f,d),x=s.reduce((function(t,e){var r="".concat(e.axisType,"Map");return $v($v({},t),{},Wv({},r,Qv(o,$v($v({},e),{},{graphicalItems:g,stackGroups:e.axisType===v&&b,dataStartIndex:i,dataEndIndex:a}))))}),{}),w=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=It(l,zp),p=It(l,Qr),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:$v($v({},t),{},Wv({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:$v($v({},t),{},Wv({},n,K()(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=$v($v({},d),h),v=y.bottom;f&&(y.bottom+=f.props.height||zp.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=qf({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&tt(t[p]))return Xf(Xf({},t),{},Hf({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&tt(t[h]))return Xf(Xf({},t),{},Hf({},h,t[h]+(f||0)))}return t}(y,0,r,e));var m=c-y.left-y.right,g=u-y.top-y.bottom;return $v($v({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})}($v($v({},x),{},{props:o,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=p(o,x[t],w,t.replace("Map",""),r)}));var O,S,j=x["".concat(m,"Map")],E=(O=it(j),{tooltipTicks:S=op(O,!1,!0),orderedTooltipTicks:Kt()(S,(function(t){return t.coordinate})),tooltipAxis:O,tooltipAxisBandSize:bp(O,S)}),A=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=em(l),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Pt(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=[];return r.forEach((function(r,d){var b=Kv(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),x=r.props,w=x.dataKey,O=x.maxBarSize,S=r.props["".concat(y,"Id")],j=r.props["".concat(v,"Id")],E=s.reduce((function(t,n){var o=e["".concat(n.axisType,"Map")],i=r.props["".concat(n.axisType,"Id")];o&&o[i]||"zAxis"===n.axisType||Yt(!1);var a=o[i];return $v($v({},t),{},Wv(Wv({},n.axisType,a),"".concat(n.axisType,"Ticks"),op(a)))}),{}),A=E[v],k=E["".concat(v,"Ticks")],P=n&&n[S]&&n[S].hasStack&&function(t,e){var r=t.props.stackId;if(et(r)){var n=e[r];if(n){var o=n.items.indexOf(t);return o>=0?n.stackedData[o]:null}}return null}(r,n[S].stackGroups),_=Pt(r.type).indexOf("Bar")>=0,T=bp(A,k),M=[],C=m&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var h=l[s[f]],d=h.items,y=h.cateAxisId,v=d.filter((function(t){return Pt(t.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].props.barSize,g=v[0].props[y];i[g]||(i[g]=[]);var b=st()(m)?e:m;i[g].push({item:v[0],stackList:v.slice(1),barSize:st()(b)?void 0:ot(b,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:rm(E,v)});if(_){var I,D,N=st()(O)?h:O,R=null!==(I=null!==(D=bp(A,k,!0))&&void 0!==D?D:N)&&void 0!==I?I:0;M=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=ot(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var d={offset:((n-h)/2|0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(Kf(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=ot(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,r){var n=[].concat(Kf(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:p,bandSize:R!==T?R:T,sizeList:C[j],maxBarSize:N}),R!==T&&(M=M.map((function(t){return $v($v({},t),{},{position:$v($v({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&g.push({props:$v($v({},z($v($v({},E),{},{displayedData:b,props:t,dataKey:w,item:r,bandSize:T,barPosition:M,offset:o,stackedData:P,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},Wv(Wv(Wv({key:r.key||"item-".concat(d)},y,E[y]),v,E[v]),"animationId",i)),childIndex:(L=r,B=t.children,Mt(B).indexOf(L)),item:r})})),g}(o,$v($v({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:c,graphicalItems:g,stackGroups:b,offset:w}));return $v($v({formattedGraphicalItems:A,graphicalItems:g,offset:w,stackGroups:b},E),x)};return e=function(t){function e(t){var n,o,c,u,l,s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Wv(Rv((u=this,s=[t],l=Nv(l=e),c=function(t,e){if(e&&("object"===_v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Rv(t)}(u,Dv()?Reflect.construct(l,s||[],Nv(u).constructor):l.apply(u,s)))),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Wv(Rv(c),"accessibilityManager",new Iy),Wv(Rv(c),"handleLegendBBoxUpdate",(function(t){if(t){var e=c.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;c.setState($v({legendBBox:t},d({props:c.props,dataStartIndex:r,dataEndIndex:n,updateId:o},$v($v({},c.state),{},{legendBBox:t}))))}})),Wv(Rv(c),"handleReceiveSyncEvent",(function(t,e,r){if(c.props.syncId===t){if(r===c.eventEmitterSymbol&&"function"!=typeof c.props.syncMethod)return;c.applySyncEvent(e)}})),Wv(Rv(c),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==c.state.dataStartIndex||r!==c.state.dataEndIndex){var n=c.state.updateId;c.setState((function(){return $v({dataStartIndex:e,dataEndIndex:r},d({props:c.props,dataStartIndex:e,dataEndIndex:r,updateId:n},c.state))})),c.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),Wv(Rv(c),"handleMouseEnter",(function(t){var e=c.getMouseInfo(t);if(e){var r=$v($v({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseEnter;pt()(n)&&n(r,t)}})),Wv(Rv(c),"triggeredAfterMouseMove",(function(t){var e=c.getMouseInfo(t),r=e?$v($v({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseMove;pt()(n)&&n(r,t)})),Wv(Rv(c),"handleItemMouseEnter",(function(t){c.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),Wv(Rv(c),"handleItemMouseLeave",(function(){c.setState((function(){return{isTooltipActive:!1}}))})),Wv(Rv(c),"handleMouseMove",(function(t){t.persist(),c.throttleTriggeredAfterMouseMove(t)})),Wv(Rv(c),"handleMouseLeave",(function(t){c.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};c.setState(e),c.triggerSyncEvent(e);var r=c.props.onMouseLeave;pt()(r)&&r(e,t)})),Wv(Rv(c),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&kt[e]?kt[e]:null}(t),n=K()(c.props,"".concat(r));r&&pt()(n)&&n(null!==(e=/.*touch.*/i.test(r)?c.getMouseInfo(t.changedTouches[0]):c.getMouseInfo(t))&&void 0!==e?e:{},t)})),Wv(Rv(c),"handleClick",(function(t){var e=c.getMouseInfo(t);if(e){var r=$v($v({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onClick;pt()(n)&&n(r,t)}})),Wv(Rv(c),"handleMouseDown",(function(t){var e=c.props.onMouseDown;pt()(e)&&e(c.getMouseInfo(t),t)})),Wv(Rv(c),"handleMouseUp",(function(t){var e=c.props.onMouseUp;pt()(e)&&e(c.getMouseInfo(t),t)})),Wv(Rv(c),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),Wv(Rv(c),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseDown(t.changedTouches[0])})),Wv(Rv(c),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseUp(t.changedTouches[0])})),Wv(Rv(c),"triggerSyncEvent",(function(t){void 0!==c.props.syncId&&ky.emit(Py,c.props.syncId,t,c.eventEmitterSymbol)})),Wv(Rv(c),"applySyncEvent",(function(t){var e=c.props,r=e.layout,n=e.syncMethod,o=c.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)c.setState($v({dataStartIndex:i,dataEndIndex:a},d({props:c.props,dataStartIndex:i,dataEndIndex:a,updateId:o},c.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=c.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var v=$v($v({},p),{},{x:p.left,y:p.top}),m=Math.min(u,v.x+v.width),g=Math.min(l,v.y+v.height),b=h[s]&&h[s].value,x=Zv(c.state,c.props.data,s),w=h[s]?{x:"horizontal"===r?h[s].coordinate:m,y:"horizontal"===r?g:h[s].coordinate}:Xv;c.setState($v($v({},t),{},{activeLabel:b,activeCoordinate:w,activePayload:x,activeTooltipIndex:s}))}else c.setState(t)})),Wv(Rv(c),"renderCursor",(function(t){var e,n=c.state,o=n.isTooltipActive,i=n.activeCoordinate,u=n.activePayload,l=n.offset,s=n.activeTooltipIndex,f=n.tooltipAxisBandSize,p=c.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:o,d=c.props.layout,y=t.key||"_recharts-cursor";return a().createElement(Av,{key:y,activeCoordinate:i,activePayload:u,activeTooltipIndex:s,chartName:r,element:t,isActive:h,layout:d,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})})),Wv(Rv(c),"renderPolarAxis",(function(t,e,r){var n=K()(t,"type.axisType"),o=K()(c.state,"".concat(n,"Map")),a=o&&o[t.props["".concat(n,"Id")]];return(0,i.cloneElement)(t,$v($v({},a),{},{className:F(n,a.className),key:t.key||"".concat(e,"-").concat(r),ticks:op(a,!0)}))})),Wv(Rv(c),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=c.state,u=a.radiusAxisMap,l=a.angleAxisMap,s=it(u),f=it(l),p=f.cx,h=f.cy,d=f.innerRadius,y=f.outerRadius;return(0,i.cloneElement)(t,{polarAngles:Array.isArray(n)?n:op(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:op(s,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:d,outerRadius:y,key:t.key||"polar-grid",radialLines:r})})),Wv(Rv(c),"renderLegend",(function(){var t=c.state.formattedGraphicalItems,e=c.props,r=e.children,n=e.width,o=e.height,a=c.props.margin||{},u=n-(a.left||0)-(a.right||0),l=qf({children:r,formattedGraphicalItems:t,legendWidth:u,legendContent:f});if(!l)return null;var s=l.item,p=Cv(l,kv);return(0,i.cloneElement)(s,$v($v({},p),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:c.handleLegendBBoxUpdate}))})),Wv(Rv(c),"renderTooltip",(function(){var t,e=c.props,r=e.children,n=e.accessibilityLayer,o=It(r,$e);if(!o)return null;var a=c.state,u=a.isTooltipActive,l=a.activeCoordinate,s=a.activePayload,f=a.activeLabel,p=a.offset,h=null!==(t=o.props.active)&&void 0!==t?t:u;return(0,i.cloneElement)(o,{viewBox:$v($v({},p),{},{x:p.left,y:p.top}),active:h,label:f,payload:h?s:[],coordinate:l,accessibilityLayer:n})})),Wv(Rv(c),"renderBrush",(function(t){var e=c.props,r=e.margin,n=e.data,o=c.state,a=o.offset,u=o.dataStartIndex,l=o.dataEndIndex,s=o.updateId;return(0,i.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:ap(c.handleBrushChange,t.props.onChange),data:n,x:tt(t.props.x)?t.props.x:a.left,y:tt(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:tt(t.props.width)?t.props.width:a.width,startIndex:u,endIndex:l,updateId:"brush-".concat(s)})})),Wv(Rv(c),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=Rv(c).clipPathId,o=c.state,a=o.xAxisMap,u=o.yAxisMap,l=o.offset,s=t.props,f=s.xAxisId,p=s.yAxisId;return(0,i.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[f],yAxis:u[p],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),Wv(Rv(c),"renderActivePoints",(function(t){var r=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=r.props.key,l=r.item.props,s=l.activeDot,f=$v($v({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Qf(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(i)},Rt(s,!1)),wt(s));return c.push(e.renderActiveDot(s,f)),o?c.push(e.renderActiveDot(s,$v($v({},f),{},{cx:o.x,cy:o.y,key:"".concat(u,"-basePoint-").concat(i)}))):a&&c.push(null),c})),Wv(Rv(c),"renderGraphicChild",(function(t,e,r){var n=c.filterFormatItem(t,e,r);if(!n)return null;var o=c.getTooltipEventType(),a=c.state,u=a.isTooltipActive,l=a.tooltipAxis,s=a.activeTooltipIndex,f=a.activeLabel,p=It(c.props.children,$e),h=n.props,d=h.points,y=h.isRange,v=h.baseLine,m=n.item.props,g=m.activeDot,b=m.hide,x=m.activeBar,w=m.activeShape,O=Boolean(!b&&u&&p&&(g||x||w)),S={};"axis"!==o&&p&&"click"===p.props.trigger?S={onClick:ap(c.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(S={onMouseLeave:ap(c.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:ap(c.handleItemMouseEnter,t.props.onMouseEnter)});var j=(0,i.cloneElement)(t,$v($v({},n.props),S));if(O){if(!(s>=0)){var E,A=(null!==(E=c.getItemByXY(c.state.activeCoordinate))&&void 0!==E?E:{graphicalItem:j}).graphicalItem,k=A.item,P=void 0===k?t:k,_=A.childIndex,T=$v($v($v({},n.props),S),{},{activeIndex:_});return[(0,i.cloneElement)(P,T),null,null]}var M,C;if(l.dataKey&&!l.allowDuplicatedCategory){var I="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());M=ct(d,I,f),C=y&&v&&ct(v,I,f)}else M=null==d?void 0:d[s],C=y&&v&&v[s];if(w||x){var D=void 0!==t.props.activeIndex?t.props.activeIndex:s;return[(0,i.cloneElement)(t,$v($v($v({},n.props),S),{},{activeIndex:D})),null,null]}if(!st()(M))return[j].concat(Bv(c.renderActivePoints({item:n,activePoint:M,basePoint:C,childIndex:s,isRange:y})))}return y?[j,null,null]:[j,null]})),Wv(Rv(c),"renderCustomized",(function(t,e,r){return(0,i.cloneElement)(t,$v($v({key:"recharts-customized-".concat(r)},c.props),c.state))})),Wv(Rv(c),"renderMap",{CartesianGrid:{handler:Hv,once:!0},ReferenceArea:{handler:c.renderReferenceElement},ReferenceLine:{handler:Hv},ReferenceDot:{handler:c.renderReferenceElement},XAxis:{handler:Hv},YAxis:{handler:Hv},Brush:{handler:c.renderBrush,once:!0},Bar:{handler:c.renderGraphicChild},Line:{handler:c.renderGraphicChild},Area:{handler:c.renderGraphicChild},Radar:{handler:c.renderGraphicChild},RadialBar:{handler:c.renderGraphicChild},Scatter:{handler:c.renderGraphicChild},Pie:{handler:c.renderGraphicChild},Funnel:{handler:c.renderGraphicChild},Tooltip:{handler:c.renderCursor,once:!0},PolarGrid:{handler:c.renderPolarGrid,once:!0},PolarAngleAxis:{handler:c.renderPolarAxis},PolarRadiusAxis:{handler:c.renderPolarAxis},Customized:{handler:c.renderCustomized}}),c.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:nt("recharts"),"-clip"),c.throttleTriggeredAfterMouseMove=$()(c.triggeredAfterMouseMove,null!==(o=t.throttleDelay)&&void 0!==o?o:1e3/60),c.state={},c}var n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lv(t,e)}(e,t),n=e,o=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=It(e,$e);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=Zv(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=$v($v({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){Lt([It(t.children,$e)],[It(this.props.children,$e)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=It(this.props.children,$e);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:c}return c}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o=(e=n).top+window.scrollY-document.documentElement.clientTop,i=e.left+window.scrollX-document.documentElement.clientLeft,a={chartX:Math.round(t.pageX-i),chartY:Math.round(t.pageY-o)},c=n.width/r.offsetWidth||1,u=this.inRange(a.chartX,a.chartY,c);if(!u)return null;var l=this.state,s=l.xAxisMap,f=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&f){var p=it(s).scale,h=it(f).scale,d=p&&p.invert?p.invert(a.chartX):null,y=h&&h.invert?h.invert(a.chartY):null;return $v($v({},a),{},{xValue:d,yValue:y})}var v=Jv(this.state,this.props.data,this.props.layout,u);return v?$v($v({},a),v):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=it(u);return Yp({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=It(t,$e),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),$v($v({},wt(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){ky.on(Py,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ky.removeListener(Py,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===Pt(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return a().createElement("defs",null,a().createElement("clipPath",{id:t},a().createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=Mv(e,2),n=r[0],o=r[1];return $v($v({},t),{},Wv({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=Mv(e,2),n=r[0],o=r[1];return $v($v({},t),{},Wv({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=Pt(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return pi(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return Yp(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(rd(a,n)||nd(a,n)||od(a,n)){var p=ud({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),h=void 0===u.props.activeIndex?p:u.props.activeIndex;return{graphicalItem:$v($v({},a),{},{childIndex:h}),payload:od(a,n)?u.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var t=this;if(!Dt(this))return null;var e,r,n=this.props,o=n.children,i=n.className,c=n.width,u=n.height,l=n.style,s=n.compact,f=n.title,p=n.desc,h=Cv(n,Pv),d=Rt(h,!1);if(s)return a().createElement(iy,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},a().createElement(Qt,Tv({},d,{width:c,height:u,title:f,desc:p}),this.renderClipPath(),zt(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return a().createElement(iy,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},a().createElement("div",Tv({className:F("recharts-wrapper",i),style:$v({position:"relative",cursor:"default",width:c,height:u},l)},y,{ref:function(e){t.container=e}}),a().createElement(Qt,Tv({},d,{width:c,height:u,title:f,desc:p,style:Vv}),this.renderClipPath(),zt(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],o&&Iv(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),e}(i.Component),Wv(e,"displayName",r),Wv(e,"defaultProps",$v({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Wv(e,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=tm(t);return $v($v($v({},p),{},{updateId:0},d($v($v({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!yt(l,e.prevMargin)){var h=tm(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=$v($v({},Jv(e,n,c)),{},{updateId:e.updateId+1}),m=$v($v($v({},h),y),v);return $v($v($v({},m),d($v({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!Lt(o,e.prevChildren)){var g,b,x,w,O=It(o,zp),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(x=null===(w=O.props)||void 0===w?void 0:w.endIndex)&&void 0!==x?x:f,E=S!==s||j!==f,A=st()(n)||E?e.updateId+1:e.updateId;return $v($v({updateId:A},d($v($v({props:t},e),{},{updateId:A,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),Wv(e,"renderActiveDot",(function(t,e){var r;return r=(0,i.isValidElement)(t)?(0,i.cloneElement)(t,e):pt()(t)?t(e):a().createElement(en,e),a().createElement(re,{className:"recharts-active-dot",key:e.key},r)})),e},om=["type","layout","connectNulls","ref"];function im(t){return im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},im(t)}function am(){return am=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},am.apply(this,arguments)}function cm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function um(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cm(Object(r),!0).forEach((function(e){vm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lm(t){return function(t){if(Array.isArray(t))return sm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return sm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sm(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mm(n.key),n)}}function pm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pm=function(){return!!t})()}function hm(t){return hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hm(t)}function dm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ym(t,e){return ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ym(t,e)}function vm(t,e,r){return(e=mm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mm(t){var e=function(t){if("object"!=im(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=im(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==im(e)?e:String(e)}var gm=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return vm(dm((r=this,n=e,o=[].concat(a),n=hm(n),t=function(t,e){if(e&&("object"===im(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return dm(t)}(r,pm()?Reflect.construct(n,o||[],hm(r).constructor):n.apply(r,o)))),"state",{isAnimationFinished:!0,totalLength:0}),vm(dm(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),vm(dm(t),"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(lm(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(lm(e.repeat(o,a)),lm(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),vm(dm(t),"id",nt("recharts-line-")),vm(dm(t),"pathRef",(function(e){t.mainCurve=e})),vm(dm(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),vm(dm(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ym(t,e)}(e,t),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,o=r.xAxis,i=r.yAxis,c=r.layout,u=Ct(r.children,zf);if(!u)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Zf(t.payload,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return a().createElement(re,s,u.map((function(t){return a().cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,c=o.points,u=o.dataKey,l=Rt(this.props,!1),s=Rt(i,!0),f=c.map((function(t,r){var n=um(um(um({key:"dot-".concat(r),r:3},l),s),{},{value:t.value,dataKey:u,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(i,n)})),p={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return a().createElement(re,am({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,r,n){var o=this.props,i=o.type,c=o.layout,u=o.connectNulls,l=(o.ref,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(o,om)),s=um(um(um({},Rt(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:i,layout:c,connectNulls:u});return a().createElement(pv,am({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.strokeDasharray,c=n.isAnimationActive,u=n.animationBegin,l=n.animationDuration,s=n.animationEasing,f=n.animationId,p=n.animateNewValues,h=n.width,d=n.height,y=this.state,v=y.prevPoints,m=y.totalLength;return a().createElement(oi,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(v){var c=v.length/o.length,u=o.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],o=at(n.x,t.x),i=at(n.y,t.y);return um(um({},t),{},{x:o(a),y:i(a)})}if(p){var u=at(2*h,t.x),l=at(d/2,t.y);return um(um({},t),{},{x:u(a),y:l(a)})}return um(um({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=at(0,m)(a);if(i){var f="".concat(i).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,m,f)}else l=r.generateSimpleStrokeDasharray(m,s);return r.renderCurveStatically(o,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!lf()(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,c=e.xAxis,u=e.yAxis,l=e.top,s=e.left,f=e.width,p=e.height,h=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var y=this.state.isAnimationFinished,v=1===o.length,m=F("recharts-line",i),g=c&&c.allowDataOverflow,b=u&&u.allowDataOverflow,x=g||b,w=st()(d)?this.id:d,O=null!==(t=Rt(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},S=O.r,j=void 0===S?3:S,E=O.strokeWidth,A=void 0===E?2:E,k=(function(t){return t&&"object"===At(t)&&"cx"in t&&"cy"in t&&"r"in t}(n)?n:{}).clipDot,P=void 0===k||k,_=2*j+A;return a().createElement(re,{className:m},g||b?a().createElement("defs",null,a().createElement("clipPath",{id:"clipPath-".concat(w)},a().createElement("rect",{x:g?s:s-f/2,y:b?l:l-p/2,width:g?f:2*f,height:b?p:2*p})),!P&&a().createElement("clipPath",{id:"clipPath-dots-".concat(w)},a().createElement("rect",{x:s-_/2,y:l-_/2,width:f+_,height:p+_}))):null,!v&&this.renderCurve(x,w),this.renderErrorBar(x,w),(v||n)&&this.renderDots(x,P,w),(!h||y)&&Eh.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(lm(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(lm(n),lm(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(a().isValidElement(t))r=a().cloneElement(t,e);else if(pt()(t))r=t(e);else{var n=F("recharts-line-dot","boolean"!=typeof t?t.className:"");r=a().createElement(en,am({},e,{className:n}))}return r}}],n&&fm(r.prototype,n),o&&fm(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function bm(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function xm(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function wm(t){return wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wm(t)}function Om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Om(Object(r),!0).forEach((function(e){jm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jm(t,e,r){var n;return n=function(t){if("object"!=wm(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=wm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==wm(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Em(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(tt(u)||Pe.isSsr)return function(t,e){return bm(t,e+1)}(o,"number"==typeof u&&tt(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",d=s&&"width"===h?Ci(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=pt()(l)?l(t.value,n):t.value;return"width"===h?function(t,e,r){return function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)}({width:t.width+e.width,height:t.height+e.height},r)}(Ci(o,{fontSize:e,letterSpacing:r}),d,f):Ci(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?J(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:bm(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,d=0===l||xm(t,h,p,f,u);d||(l=0,f=c,s+=1),d&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=Sm(Sm({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),xm(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=Sm(Sm({},s),{},{isShow:!0}))}for(var h=i?c-1:c,d=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=Sm(Sm({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=Sm(Sm({},i),{},{tickCoord:i.coordinate});xm(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=Sm(Sm({},i),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(v,m,y,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=Sm(Sm({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=Sm(Sm({},l),{},{tickCoord:l.coordinate});xm(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=Sm(Sm({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,y,o,a),p.filter((function(t){return t.isShow})))}vm(gm,"displayName","Line"),vm(gm,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Pe.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),vm(gm,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout,f=u.map((function(t,e){var u=Zf(t,a);return"horizontal"===s?{x:hp({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:st()(u)?null:n.scale(u),value:u,payload:t}:{x:st()(u)?null:r.scale(u),y:hp({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}}));return um({points:f,layout:s},l)}));var Am=["viewBox"],km=["viewBox"],Pm=["ticks"];function _m(t){return _m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_m(t)}function Tm(){return Tm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tm.apply(this,arguments)}function Mm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mm(Object(r),!0).forEach((function(e){Bm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Im(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Dm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zm(n.key),n)}}function Nm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nm=function(){return!!t})()}function Rm(t){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rm(t)}function Lm(t,e){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lm(t,e)}function Bm(t,e,r){return(e=zm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zm(t){var e=function(t){if("object"!=_m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_m(e)?e:String(e)}var Fm=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=this,o=e,i=[t],o=Rm(o),r=function(t,e){if(e&&("object"===_m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(n,Nm()?Reflect.construct(o,i||[],Rm(n).constructor):o.apply(n,i))).state={fontSize:"",letterSpacing:""},r}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lm(t,e)}(e,t),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=Im(t,Am),o=this.props,i=o.viewBox,a=Im(o,km);return!yt(r,i)||!yt(n,a)||!yt(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,m=t.tickSize||h,g=tt(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!d*f)-v*m)-v*y,i=g;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!d*s)-v*m)-v*y,a=g;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +d*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(o=l+ +d*f)+v*m)+v*y,i=g}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,c=t.mirror,u=t.axisLine,l=Cm(Cm(Cm({},Rt(this.props,!1)),Rt(u,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var s=+("top"===i&&!c||"bottom"===i&&c);l=Cm(Cm({},l),{},{x1:e,y1:r+s*o,x2:e+n,y2:r+s*o})}else{var f=+("left"===i&&!c||"right"===i&&c);l=Cm(Cm({},l),{},{x1:e+f*n,y1:r,x2:e+f*n,y2:r+o})}return a().createElement("line",Tm({},l,{className:F("recharts-cartesian-axis-line",K()(u,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var o=this,i=this.props,c=i.tickLine,u=i.stroke,l=i.tick,s=i.tickFormatter,f=i.unit,p=Em(Cm(Cm({},this.props),{},{ticks:t}),r,n),h=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),y=Rt(this.props,!1),v=Rt(l,!1),m=Cm(Cm({},y),{},{fill:"none"},Rt(c,!1)),g=p.map((function(t,r){var n=o.getTickLineCoord(t),i=n.line,g=n.tick,b=Cm(Cm(Cm(Cm({textAnchor:h,verticalAnchor:d},y),{},{stroke:"none",fill:u},v),g),{},{index:r,payload:t,visibleTicksCount:p.length,tickFormatter:s});return a().createElement(re,Tm({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Ot(o.props,t,r)),c&&a().createElement("line",Tm({},m,i,{className:F("recharts-cartesian-axis-tick-line",K()(c,"className"))})),l&&e.renderTickItem(l,b,"".concat(pt()(s)?s(t.value,r):t.value).concat(f||"")))}));return a().createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,c=e.className;if(e.hide)return null;var u=this.props,l=u.ticks,s=Im(u,Pm),f=l;return pt()(i)&&(f=l&&l.length>0?i(this.props):i(s)),n<=0||o<=0||!f||!f.length?null:a().createElement(re,{className:F("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),ih.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,e,r){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(ia,Tm({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&Dm(r.prototype,n),o&&Dm(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.Component);function Um(){return Um=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Um.apply(this,arguments)}Bm(Fm,"displayName","CartesianAxis"),Bm(Fm,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var $m=function(t){var e=t.xAxisId,r=uy(),n=ly(),o=ay(e);return null==o?null:a().createElement(Fm,Um({},o,{className:F("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return op(t,!0)}}))};function Wm(){return Wm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wm.apply(this,arguments)}$m.displayName="XAxis",$m.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var qm=function(t){var e=t.yAxisId,r=uy(),n=ly(),o=cy(e);return null==o?null:a().createElement(Fm,Wm({},o,{className:F("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return op(t,!0)}}))};qm.displayName="YAxis",qm.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var Gm=nm({chartName:"LineChart",GraphicalChild:gm,axisComponents:[{axisType:"xAxis",AxisComp:$m},{axisType:"yAxis",AxisComp:qm}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!It(u,Td);return l.reduce((function(i,a){var u,l,p,h,d,y=e[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,x=y.mirror,w=y.reversed,O="".concat(v).concat(x?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,E=y.categoricalDomain.sort();if(E.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(E[e-1]||0),j))})),Number.isFinite(j)){var A=j/S,k="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=A*k/2),"no-gap"===y.padding){var P=ot(t.barCategoryGap,A*k),_=A*k/2;u=_-P-(_-P)/k*P}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,w&&(l=[l[1],l[0]]);var T=cp(y,o,f),M=T.scale,C=T.realScaleType;M.domain(m).range(l),lp(M);var I=pp(M,Dd(Dd({},y),{},{realScaleType:C}));"xAxis"===n?(d="top"===v&&!x||"bottom"===v&&x,p=r.left,h=s[O]-d*y.height):"yAxis"===n&&(d="left"===v&&!x||"right"===v&&x,p=s[O]-d*y.width,h=r.top);var D=Dd(Dd(Dd({},y),I),{},{realScaleType:C,x:p,y:h,scale:M,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return D.bandSize=bp(D,I),y.hide||"xAxis"!==n?y.hide||(s[O]+=(d?-1:1)*D.width):s[O]+=(d?-1:1)*D.height,Dd(Dd({},i),{},Nd({},a,D))}),{})}}),Vm=["x1","y1","x2","y2","key"],Xm=["offset"];function Hm(t){return Hm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hm(t)}function Km(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ym(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Km(Object(r),!0).forEach((function(e){Zm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Km(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zm(t,e,r){var n;return n=function(t){if("object"!=Hm(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Hm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==Hm(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jm(){return Jm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Jm.apply(this,arguments)}function Qm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var tg=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,o=t.y,i=t.width,c=t.height;return a().createElement("rect",{x:n,y:o,width:i,height:c,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function eg(t,e){var r;if(a().isValidElement(t))r=a().cloneElement(t,e);else if(pt()(t))r=t(e);else{var n=e.x1,o=e.y1,i=e.x2,c=e.y2,u=e.key,l=Qm(e,Vm),s=Rt(l,!1),f=(s.offset,Qm(s,Xm));r=a().createElement("line",Jm({},f,{x1:n,y1:o,x2:i,y2:c,fill:"none",key:u}))}return r}function rg(t){var e=t.x,r=t.width,n=t.horizontal,o=void 0===n||n,i=t.horizontalPoints;if(!o||!i||!i.length)return null;var c=i.map((function(n,i){var a=Ym(Ym({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(i),index:i});return eg(o,a)}));return a().createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function ng(t){var e=t.y,r=t.height,n=t.vertical,o=void 0===n||n,i=t.verticalPoints;if(!o||!i||!i.length)return null;var c=i.map((function(n,i){var a=Ym(Ym({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(i),index:i});return eg(o,a)}));return a().createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function og(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,o=t.y,i=t.width,c=t.height,u=t.horizontalPoints,l=t.horizontal;if(void 0!==l&&!l||!e||!e.length)return null;var s=u.map((function(t){return Math.round(t+o-o)})).sort((function(t,e){return t-e}));o!==s[0]&&s.unshift(0);var f=s.map((function(t,u){var l=s[u+1]?s[u+1]-t:o+c-t;if(l<=0)return null;var f=u%e.length;return a().createElement("rect",{key:"react-".concat(u),y:t,x:n,height:l,width:i,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return a().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function ig(t){var e=t.vertical,r=void 0===e||e,n=t.verticalFill,o=t.fillOpacity,i=t.x,c=t.y,u=t.width,l=t.height,s=t.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==f[0]&&f.unshift(0);var p=f.map((function(t,e){var r=f[e+1]?f[e+1]-t:i+u-t;if(r<=0)return null;var s=e%n.length;return a().createElement("rect",{key:"react-".concat(e),x:t,y:c,width:r,height:l,stroke:"none",fill:n[s],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return a().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var ag=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return np(Em(Ym(Ym(Ym({},Fm.defaultProps),r),{},{ticks:op(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},cg=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return np(Em(Ym(Ym(Ym({},Fm.defaultProps),r),{},{ticks:op(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},ug={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function lg(t){var e,r,n,o,c,u,l,s,f=uy(),p=ly(),h=(0,i.useContext)(ey),d=Ym(Ym({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:ug.stroke,fill:null!==(r=t.fill)&&void 0!==r?r:ug.fill,horizontal:null!==(n=t.horizontal)&&void 0!==n?n:ug.horizontal,horizontalFill:null!==(o=t.horizontalFill)&&void 0!==o?o:ug.horizontalFill,vertical:null!==(c=t.vertical)&&void 0!==c?c:ug.vertical,verticalFill:null!==(u=t.verticalFill)&&void 0!==u?u:ug.verticalFill,x:tt(t.x)?t.x:h.left,y:tt(t.y)?t.y:h.top,width:tt(t.width)?t.width:h.width,height:tt(t.height)?t.height:h.height}),y=d.x,v=d.y,m=d.width,g=d.height,b=d.syncWithTicks,x=d.horizontalValues,w=d.verticalValues,O=(l=(0,i.useContext)(Jd),it(l)),S=(s=(0,i.useContext)(Qd),Kd()(s,(function(t){return fh()(t.domain,Number.isFinite)}))||it(s));if(!tt(m)||m<=0||!tt(g)||g<=0||!tt(y)||y!==+y||!tt(v)||v!==+v)return null;var j=d.verticalCoordinatesGenerator||ag,E=d.horizontalCoordinatesGenerator||cg,A=d.horizontalPoints,k=d.verticalPoints;if((!A||!A.length)&&pt()(E)){var P=x&&x.length,_=E({yAxis:S?Ym(Ym({},S),{},{ticks:P?x:S.ticks}):void 0,width:f,height:p,offset:h},!!P||b);ut(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Hm(_),"]")),Array.isArray(_)&&(A=_)}if((!k||!k.length)&&pt()(j)){var T=w&&w.length,M=j({xAxis:O?Ym(Ym({},O),{},{ticks:T?w:O.ticks}):void 0,width:f,height:p,offset:h},!!T||b);ut(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Hm(M),"]")),Array.isArray(M)&&(k=M)}return a().createElement("g",{className:"recharts-cartesian-grid"},a().createElement(tg,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height}),a().createElement(rg,Jm({},d,{offset:h,horizontalPoints:A,xAxis:O,yAxis:S})),a().createElement(ng,Jm({},d,{offset:h,verticalPoints:k,xAxis:O,yAxis:S})),a().createElement(og,Jm({},d,{horizontalPoints:A})),a().createElement(ig,Jm({},d,{verticalPoints:k})))}lg.displayName="CartesianGrid";var sg=["points","className","baseLinePoints","connectNulls"];function fg(){return fg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fg.apply(this,arguments)}function pg(t){return function(t){if(Array.isArray(t))return hg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return hg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hg(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var dg=function(t){return t&&t.x===+t.x&&t.y===+t.y},yg=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach((function(t){dg(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])})),dg(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce((function(t,e){return[].concat(pg(t),pg(e))}),[])]);var n=r.map((function(t){return t.reduce((function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},vg=function(t){var e=t.points,r=t.className,n=t.baseLinePoints,o=t.connectNulls,i=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,sg);if(!e||!e.length)return null;var c=F("recharts-polygon",r);if(n&&n.length){var u=i.stroke&&"none"!==i.stroke,l=function(t,e,r){var n=yg(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(yg(e.reverse(),r).slice(1))}(e,n,o);return a().createElement("g",{className:c},a().createElement("path",fg({},Rt(i,!0),{fill:"Z"===l.slice(-1)?i.fill:"none",stroke:"none",d:l})),u?a().createElement("path",fg({},Rt(i,!0),{fill:"none",d:yg(e,o)})):null,u?a().createElement("path",fg({},Rt(i,!0),{fill:"none",d:yg(n,o)})):null)}var s=yg(e,o);return a().createElement("path",fg({},Rt(i,!0),{fill:"Z"===s.slice(-1)?i.fill:"none",className:c,d:s}))};function mg(t){return mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mg(t)}function gg(){return gg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gg.apply(this,arguments)}function bg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bg(Object(r),!0).forEach((function(e){Eg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ag(n.key),n)}}function Og(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Og=function(){return!!t})()}function Sg(t){return Sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sg(t)}function jg(t,e){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jg(t,e)}function Eg(t,e,r){return(e=Ag(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ag(t){var e=function(t){if("object"!=mg(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=mg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==mg(e)?e:String(e)}var kg=Math.PI/180,Pg=1e-5,_g=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=Sg(r=e),function(t,e){if(e&&("object"===mg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Og()?Reflect.construct(r,n||[],Sg(t).constructor):r.apply(t,n));var t,r,n}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jg(t,e)}(e,t),r=e,n=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=Xp(r,n,o,t.coordinate),u=Xp(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*kg);return r>Pg?"outer"===e?"start":"end":r<-Pg?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.radius,o=t.axisLine,i=t.axisLineType,c=xg(xg({},Rt(this.props,!1)),{},{fill:"none"},Rt(o,!1));if("circle"===i)return a().createElement(en,gg({className:"recharts-polar-angle-axis-line"},c,{cx:e,cy:r,r:n}));var u=this.props.ticks.map((function(t){return Xp(e,r,n,t.coordinate)}));return a().createElement(vg,gg({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var t=this,r=this.props,n=r.ticks,o=r.tick,i=r.tickLine,c=r.tickFormatter,u=r.stroke,l=Rt(this.props,!1),s=Rt(o,!1),f=xg(xg({},l),{},{fill:"none"},Rt(i,!1)),p=n.map((function(r,n){var p=t.getTickLineCoord(r),h=xg(xg(xg({textAnchor:t.getTickTextAnchor(r)},l),{},{stroke:"none",fill:u},s),{},{index:n,payload:r,x:p.x2,y:p.y2});return a().createElement(re,gg({className:F("recharts-polar-angle-axis-tick",Zp(o)),key:"tick-".concat(r.coordinate)},Ot(t.props,r,n)),i&&a().createElement("line",gg({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&e.renderTickItem(o,h,c?c(r.value,n):r.value))}));return a().createElement(re,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,e=t.ticks,r=t.radius,n=t.axisLine;return r<=0||!e||!e.length?null:a().createElement(re,{className:F("recharts-polar-angle-axis",this.props.className)},n&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(t,e,r){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(ia,gg({},e,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],n&&wg(r.prototype,n),o&&wg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);Eg(_g,"displayName","PolarAngleAxis"),Eg(_g,"axisType","angleAxis"),Eg(_g,"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 Tg=r(7551),Mg=r.n(Tg),Cg=r(6533),Ig=r.n(Cg),Dg=["cx","cy","angle","ticks","axisLine"],Ng=["ticks","tick","angle","tickFormatter","stroke"];function Rg(t){return Rg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rg(t)}function Lg(){return Lg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lg.apply(this,arguments)}function Bg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bg(Object(r),!0).forEach((function(e){Gg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ug(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Vg(n.key),n)}}function $g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($g=function(){return!!t})()}function Wg(t){return Wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wg(t)}function qg(t,e){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qg(t,e)}function Gg(t,e,r){return(e=Vg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vg(t){var e=function(t){if("object"!=Rg(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Rg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rg(e)?e:String(e)}var Xg,Hg=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=Wg(r=e),function(t,e){if(e&&("object"===Rg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$g()?Reflect.construct(r,n||[],Wg(t).constructor):r.apply(t,n));var t,r,n}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qg(t,e)}(e,t),r=e,n=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return Xp(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=Mg()(o,(function(t){return t.coordinate||0}));return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:Ig()(o,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=t.axisLine,c=Fg(t,Dg),u=o.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),l=Xp(e,r,u[0],n),s=Xp(e,r,u[1],n),f=zg(zg(zg({},Rt(c,!1)),{},{fill:"none"},Rt(i,!1)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return a().createElement("line",Lg({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,r=this.props,n=r.ticks,o=r.tick,i=r.angle,c=r.tickFormatter,u=r.stroke,l=Fg(r,Ng),s=this.getTickTextAnchor(),f=Rt(l,!1),p=Rt(o,!1),h=n.map((function(r,n){var l=t.getTickValueCoord(r),h=zg(zg(zg(zg({textAnchor:s,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:u},p),{},{index:n},l),{},{payload:r});return a().createElement(re,Lg({className:F("recharts-polar-radius-axis-tick",Zp(o)),key:"tick-".concat(r.coordinate)},Ot(t.props,r,n)),e.renderTickItem(o,h,c?c(r.value,n):r.value))}));return a().createElement(re,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var t=this.props,e=t.ticks,r=t.axisLine,n=t.tick;return e&&e.length?a().createElement(re,{className:F("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),n&&this.renderTicks(),ih.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(t,e,r){return a().isValidElement(t)?a().cloneElement(t,e):pt()(t)?t(e):a().createElement(ia,Lg({},e,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],n&&Ug(r.prototype,n),o&&Ug(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);function Kg(t){return Kg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kg(t)}function Yg(){return Yg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yg.apply(this,arguments)}function Zg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zg(Object(r),!0).forEach((function(e){ob(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ib(n.key),n)}}function tb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tb=function(){return!!t})()}function eb(t){return eb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eb(t)}function rb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nb(t,e){return nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nb(t,e)}function ob(t,e,r){return(e=ib(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ib(t){var e=function(t){if("object"!=Kg(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Kg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Kg(e)?e:String(e)}Gg(Hg,"displayName","PolarRadiusAxis"),Gg(Hg,"axisType","radiusAxis"),Gg(Hg,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var ab=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ob(rb((n=this,i=[t],o=eb(o=e),r=function(t,e){if(e&&("object"===Kg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rb(t)}(n,tb()?Reflect.construct(o,i||[],eb(n).constructor):o.apply(n,i)))),"pieRef",null),ob(rb(r),"sectorRefs",[]),ob(rb(r),"id",nt("recharts-pie-")),ob(rb(r),"handleAnimationEnd",(function(){var t=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),pt()(t)&&t()})),ob(rb(r),"handleAnimationStart",(function(){var t=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),pt()(t)&&t()})),r.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},r}var r,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nb(t,e)}(e,t),r=e,o=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,e){if(a().isValidElement(t))return a().cloneElement(t,e);if(pt()(t))return t(e);var r=F("recharts-pie-label-line","boolean"!=typeof t?t.className:"");return a().createElement(pv,Yg({},e,{type:"linear",className:r}))}},{key:"renderLabelItem",value:function(t,e,r){if(a().isValidElement(t))return a().cloneElement(t,e);var n=r;if(pt()(t)&&(n=t(e),a().isValidElement(n)))return n;var o=F("recharts-pie-label-text","boolean"==typeof t||pt()(t)?"":t.className);return a().createElement(ia,Yg({},e,{alignmentBaseline:"middle",className:o}),n)}}],(n=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.label,o=r.labelLine,i=r.dataKey,c=r.valueKey,u=Rt(this.props,!1),l=Rt(n,!1),s=Rt(o,!1),f=n&&n.offsetRadius||20,p=t.map((function(t,r){var p=(t.startAngle+t.endAngle)/2,h=Xp(t.cx,t.cy,t.outerRadius+f,p),d=Jg(Jg(Jg(Jg({},u),t),{},{stroke:"none"},l),{},{index:r,textAnchor:e.getTextAnchor(h.x,t.cx)},h),y=Jg(Jg(Jg(Jg({},u),t),{},{fill:"none",stroke:t.fill},s),{},{index:r,points:[Xp(t.cx,t.cy,t.outerRadius,p),h],key:"line"}),v=i;return st()(i)&&st()(c)?v="value":st()(i)&&(v=c),a().createElement(re,{key:"label-".concat(t.startAngle,"-").concat(t.endAngle,"-").concat(t.midAngle,"-").concat(r)},o&&e.renderLabelLineItem(o,y),e.renderLabelItem(n,d,Zf(t,v)))}));return a().createElement(re,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var e=this,r=this.props,n=r.activeShape,o=r.blendStroke,i=r.inactiveShape;return t.map((function(r,c){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==t.length)return null;var u=e.isActiveIndex(c),l=i&&e.hasActiveIndex()?i:null,s=u?n:l,f=Jg(Jg({},r),{},{stroke:o?r.fill:r.stroke,tabIndex:-1});return a().createElement(re,Yg({ref:function(t){t&&!e.sectorRefs.includes(t)&&e.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},Ot(e.props,r,c),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(c)}),a().createElement(ed,Yg({option:s,isActive:u,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,r=e.sectors,n=e.isAnimationActive,o=e.animationBegin,i=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state,s=l.prevSectors,f=l.prevIsAnimationActive;return a().createElement(oi,{begin:o,duration:i,isActive:n,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var n=e.t,o=[],i=(r&&r[0]).startAngle;return r.forEach((function(t,e){var r=s&&s[e],a=e>0?K()(t,"paddingAngle",0):0;if(r){var c=at(r.endAngle-r.startAngle,t.endAngle-t.startAngle),u=Jg(Jg({},t),{},{startAngle:i+a,endAngle:i+c(n)+a});o.push(u),i=u.endAngle}else{var l=t.endAngle,f=t.startAngle,p=at(0,l-f)(n),h=Jg(Jg({},t),{},{startAngle:i+a,endAngle:i+p+a});o.push(h),i=h.endAngle}})),a().createElement(re,null,t.renderSectorsStatically(o))}))}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&lf()(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,e=this.props,r=e.hide,n=e.sectors,o=e.className,i=e.label,c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.isAnimationActive,p=this.state.isAnimationFinished;if(r||!n||!n.length||!tt(c)||!tt(u)||!tt(l)||!tt(s))return null;var h=F("recharts-pie",o);return a().createElement(re,{tabIndex:this.props.rootTabIndex,className:h,ref:function(e){t.pieRef=e}},this.renderSectors(),i&&this.renderLabels(n),ih.renderCallByParent(this.props,null,!1),(!f||p)&&Eh.renderCallByParent(this.props,n,!1))}}])&&Qg(r.prototype,n),o&&Qg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(i.PureComponent);Xg=ab,ob(ab,"displayName","Pie"),ob(ab,"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:!Pe.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),ob(ab,"parseDeltaAngle",(function(t,e){return J(e-t)*Math.min(Math.abs(e-t),360)})),ob(ab,"getRealPieData",(function(t){var e=t.props,r=e.data,n=e.children,o=Rt(t.props,!1),i=Ct(n,ph);return r&&r.length?r.map((function(t,e){return Jg(Jg(Jg({payload:t},o),t),i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return Jg(Jg({},o),t.props)})):[]})),ob(ab,"parseCoordinateOfPie",(function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=Hp(o,i);return{cx:n+ot(t.props.cx,o,o/2),cy:r+ot(t.props.cy,i,i/2),innerRadius:ot(t.props.innerRadius,a,0),outerRadius:ot(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),ob(ab,"getComposedData",(function(t){var e=t.item,r=t.offset,n=Xg.getRealPieData(e);if(!n||!n.length)return null;var o=e.props,i=o.cornerRadius,a=o.startAngle,c=o.endAngle,u=o.paddingAngle,l=o.dataKey,s=o.nameKey,f=o.valueKey,p=o.tooltipType,h=Math.abs(e.props.minAngle),d=Xg.parseCoordinateOfPie(e,r),y=Xg.parseDeltaAngle(a,c),v=Math.abs(y),m=l;st()(l)&&st()(f)?(ut(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),m="value"):st()(l)&&(ut(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),m=f);var g,b,x=n.filter((function(t){return 0!==Zf(t,m,0)})).length,w=v-x*h-(v>=360?x:x-1)*u,O=n.reduce((function(t,e){var r=Zf(e,m,0);return t+(tt(r)?r:0)}),0);return O>0&&(g=n.map((function(t,e){var r,n=Zf(t,m,0),o=Zf(t,s,e),c=(tt(n)?n:0)/O,l=(r=e?b.endAngle+J(y)*u*(0!==n?1:0):a)+J(y)*((0!==n?h:0)+c*w),f=(r+l)/2,v=(d.innerRadius+d.outerRadius)/2,g=[{name:o,value:n,payload:t,dataKey:m,type:p}],x=Xp(d.cx,d.cy,v,f);return b=Jg(Jg(Jg({percent:c,cornerRadius:i,name:o,tooltipPayload:g,midAngle:f,middleRadius:v,tooltipPosition:x},t),d),{},{value:Zf(t,m),startAngle:r,endAngle:l,payload:t,paddingAngle:J(y)*u})}))),Jg(Jg({},d),{},{sectors:g,data:n})}));var cb=nm({chartName:"PieChart",GraphicalChild:ab,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:_g},{axisType:"radiusAxis",AxisComp:Hg}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=ot(t.cx,i,i/2),s=ot(t.cy,a,a/2),f=Hp(i,a,r),p=ot(t.innerRadius,f,0),h=ot(t.outerRadius,f,.8*f);return Object.keys(e).reduce((function(t,r){var i,a,f,d=e[r],y=d.domain,v=d.reversed;if(st()(d.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[p,h]),v&&(i=[i[1],i[0]]);else{var m=(a=i=d.range,f=2,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(a,f)||function(t,e){if(t){if("string"==typeof t)return qp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qp(t,e):void 0}}(a,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());c=m[0],u=m[1]}var g=cp(d,o),b=g.realScaleType,x=g.scale;x.domain(y).range(i),lp(x);var w=pp(x,$p($p({},d),{},{realScaleType:b})),O=$p($p($p({},d),w),{},{range:i,radius:h,realScaleType:b,scale:x,cx:l,cy:s,innerRadius:p,outerRadius:h,startAngle:c,endAngle:u});return $p($p({},t),{},Wp({},r,O))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ub=function(t){var e=t.children,r=t.className;return React.createElement("div",{className:"bg-white shadow rounded-lg p-4 ".concat(r)},e)},lb=function(t){var e=t.children,r=t.className;return React.createElement("div",{className:"font-bold text-lg mb-2 ".concat(r)},e)},sb=function(t){var e=t.children,r=t.className;return React.createElement("h3",{className:"text-2xl font-semibold leading-none tracking-tight text-center ".concat(r)},e)},fb=function(t){var e=t.children,r=t.className;return React.createElement("div",{className:r},e)},pb=["#0088FE","#00C49F","#FFBB28","#FF8042","#AF19FF"];const hb=function(t){var e=t.lastMonthOrders,r=A();if(!e||!r)return null;var n=e.ordersData,o=e.topProductsData,i=e.topCategoriesData;return React.createElement("div",{className:"border-b border-gray-900/10 pb-12"},React.createElement("h2",{className:"text-base font-semibold leading-7 text-gray-900"},k("dashboard.chart.title")),React.createElement("p",{className:"mt-1 text-sm leading-6 text-gray-600"},k("dashboard.chart.description")),React.createElement("div",{className:"mt-10 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-1 lg:grid-cols-2"},React.createElement(ub,null,React.createElement(lb,null,React.createElement(sb,null,k("dashboard.charts.title_1"))),React.createElement(fb,null,React.createElement("div",{style:{width:"100%",height:300}},React.createElement(Gt,null,React.createElement(Gm,{data:n},React.createElement(lg,{strokeDasharray:"3 3"}),React.createElement($m,{dataKey:"day"}),React.createElement(qm,null),React.createElement($e,null),React.createElement(Qr,null),React.createElement(gm,{type:"monotone",dataKey:"total",name:k("dashboard.chart.keys.total"),stroke:"#8884d8"}),React.createElement(gm,{type:"monotone",dataKey:"completed",name:k("dashboard.chart.keys.completed"),stroke:"#82ca9d"}),React.createElement(gm,{type:"monotone",dataKey:"processing",name:k("dashboard.chart.keys.processing"),stroke:"#ffc658"}),React.createElement(gm,{type:"monotone",dataKey:"pending",name:k("dashboard.chart.keys.pending"),stroke:"#ff0000"}),React.createElement(gm,{type:"monotone",dataKey:"failed",name:k("dashboard.chart.keys.failed"),stroke:"#000000"})))))),React.createElement(ub,null,React.createElement(lb,null,React.createElement(sb,null,k("dashboard.charts.title_3"))),React.createElement(fb,null,React.createElement("div",{style:{width:"100%",height:300}},React.createElement(Gt,null,React.createElement(cb,null,React.createElement(ab,{data:o,cx:"50%",cy:"50%",outerRadius:100,fill:"#8884d8",dataKey:"value",label:!0},o.map((function(t,e){return React.createElement(ph,{key:"cell-".concat(e),fill:pb[e%pb.length]})}))),React.createElement($e,null),React.createElement(Qr,null)))))),React.createElement(ub,null,React.createElement(lb,null,React.createElement(sb,null,k("dashboard.charts.title_4"))),React.createElement(fb,null,React.createElement("div",{style:{width:"100%",height:300}},React.createElement(Gt,null,React.createElement(cb,null,React.createElement(ab,{data:i,cx:"50%",cy:"50%",outerRadius:100,fill:"#82ca9d",dataKey:"value",label:!0},i.map((function(t,e){return React.createElement(ph,{key:"cell-".concat(e),fill:pb[e%pb.length]})}))),React.createElement($e,null),React.createElement(Qr,null))))))))};function db(t){return db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},db(t)}function yb(){yb=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:A(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var x={};l(x,a,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(M([])));O&&O!==r&&n.call(O,a)&&(x=O);var S=b.prototype=m.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==db(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(db(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),l(S,u,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function vb(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function mb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return gb(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gb(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const bb=function(){var t=mb((0,o.useState)(null),2),e=t[0],r=t[1],n=mb((0,o.useState)(null),2),i=n[0],a=n[1];return(0,o.useEffect)((function(){var t=function(){var t,e=(t=yb().mark((function t(){var e,n;return yb().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g();case 3:return e=t.sent,r(e),t.next=7,b();case 7:n=t.sent,a(n),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Veri çekme işlemi sırasında hata oluştu:",t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){vb(i,n,o,a,c,"next",t)}function c(t){vb(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();t()}),[]),React.createElement("div",{className:"space-y-12"},React.createElement(B,{stats:e}),React.createElement(hb,{lastMonthOrders:i}))},xb=function(t){var e=t.activeMenuItem;return React.createElement(React.Fragment,null,React.createElement("div",{className:"bg-white p-6 rounded shadow"},function(){switch(e){case"dashboard":return React.createElement(bb,null);case"settings":return React.createElement(N,null);default:return React.createElement("h1",null,"404")}}()),React.createElement("span",{className:"mt-1"},"v3.5.6"))},wb=function(){return React.createElement("svg",{height:"32px",viewBox:"0 0 70 48",version:"1.1"},React.createElement("defs",null,React.createElement("linearGradient",{x1:"90.2554899%",y1:"50%",x2:"0%",y2:"50%",id:"linearGradient-1"},React.createElement("stop",{"stop-color":"#ffffff",offset:"0%"}),React.createElement("stop",{"stop-color":"#ffffff","stop-opacity":"0",offset:"100%"}))),React.createElement("g",{id:"00---Home",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},React.createElement("g",{id:"000.0.0-Ortak-Anasayfa",transform:"translate(-135.000000, -1339.000000)",fill:"url(#linearGradient-1)"},React.createElement("g",{id:"Group-7",transform:"translate(0.000000, 1249.000000)"},React.createElement("g",{id:"Body/Text",transform:"translate(135.000000, 80.000000)"},React.createElement("g",{id:"Group-3",transform:"translate(0.000000, 10.000000)"},React.createElement("path",{d:"M6.3,0 C2.82072,0 0,2.68586667 0,6 L0,42 C0,45.3141333 2.82072,48 6.3,48 L53.86192,48 C56.21112,48 58.36488,46.7557333 59.4496,44.7706667 L69.2888,26.7712 C69.75472,25.9178667 69.9916,24.9850667 70,24.0512 L70,23.9488 C69.9916,23.0149333 69.75472,22.0821333 69.2888,21.2293333 L59.4496,3.22933333 C58.36488,1.2448 56.21112,0 53.86192,0 L6.3,0 Z",id:"Fill-1"})))))))};function Ob(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const Sb=function(t){var e=t.setActiveMenuItem,r=t.activeMenuItem,n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ob(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ob(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)(!1),2),i=n[0],a=n[1];if(!A())return null;var c=[{name:k("header.menu.dashboard"),key:"dashboard"},{name:k("header.menu.settings"),key:"settings"}];return React.createElement("header",{className:"mb-4 shadow"},React.createElement("nav",{className:"bg-iyzico-blue rounded-md"},React.createElement("div",{className:"px-4 sm:px-6 lg:px-8"},React.createElement("div",{className:"relative flex h-16 items-center"},React.createElement("div",{className:"absolute inset-y-0 left-0 flex items-center sm:hidden"},React.createElement("button",{type:"button",className:"relative inline-flex items-center justify-start rounded-md p-2 text-gray-400 hover:bg-gray-700 hover:text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:function(){return a(!i)}})),React.createElement("div",{className:"flex items-center"},React.createElement("div",{className:"flex-shrink-0"},React.createElement(wb,null)),React.createElement("div",{className:"hidden sm:ml-6 sm:block"},React.createElement("div",{className:"flex space-x-4"},c.map((function(t){return React.createElement("button",{key:t.key,className:(n=t.key,"".concat("rounded-md px-3 py-2 text-sm font-medium",n===r?" bg-white text-iyzico-blue focus:outline-none focus:ring-0":" text-white hover:bg-white hover:text-iyzico-blue")),onClick:function(){return function(t){e(t),a(!1)}(t.key)}},t.name);var n})))))))))};function jb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const Eb=function(){var t=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return jb(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jb(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)("dashboard"),2),e=t[0],r=t[1];return React.createElement(React.Fragment,null,React.createElement(Sb,{setActiveMenuItem:r,activeMenuItem:e}),React.createElement("div",{className:"min-h-screen flex flex-col"},React.createElement(xb,{activeMenuItem:e})))};n()((function(){(0,o.createRoot)(document.getElementById("iyzico-app")).render(React.createElement(Eb,null))}))})()})();
  • iyzico-woocommerce/trunk/i18n/languages/localizations.json

    r3161557 r3161792  
    11{
    2     "tr_TR": {
    3         "dashboard": {
    4             "widget": {
    5                 "title": "Genel Bakış",
    6                 "description": "Bu alanda, işletmenizin performans metriklerini detaylı bir şekilde inceleyebilirsiniz."
    7             },
    8             "chart": {
    9                 "title": "Grafiksel Analiz",
    10                 "description": "Aşağıdaki grafikler, işletmenizin performansını ve işlem metriklerini görsel olarak analiz etmenizi sağlar.",
    11                 "keys": {
    12                     "total": "Toplam",
    13                     "completed": "Tamamlanan",
    14                     "processing": "İşlenen",
    15                     "pending": "Bekleyen",
    16                     "failed": "Başarısız"
    17                 }
    18             },
    19             "charts": {
    20                 "title_1": "30 Günlük Sipariş Grafiği",
    21                 "title_2": "Ödeme Yöntemlerine Göre Satışlar",
    22                 "title_3": "En Çok Satış Yapan İlk 5 Ürün",
    23                 "title_4": "En Çok Satış Yapan İlk 5 Kategori"
    24             }
    25         },
    26         "orders": {
    27             "header": "Siparişler",
    28             "description": "Bu alanda, işletmenizde gerçekleşen siparişleri detaylı bir şekilde inceleyebilirsiniz.",
    29             "row": {
    30                 "guest": "Misafir",
    31                 "all": "Tümü",
    32                 "pending": "Beklemede",
    33                 "processing": "İşleniyor",
    34                 "on-hold": "Beklemede",
    35                 "cancelled": "İptal Edildi",
    36                 "completed": "Tamamlandı",
    37                 "refunded": "İade Edildi",
    38                 "failed": "Başarısız",
    39                 "id": "Sipariş ID",
    40                 "customer": "Müşteri",
    41                 "date": "Tarih",
    42                 "total": "Toplam",
    43                 "status": "Durum"
    44             },
    45             "search_placeholder": "Sipariş ID",
    46             "loading": "Yükleniyor...",
    47             "previous": "Önceki",
    48             "next": "Sonraki",
    49             "page": "Sayfa {{current}} / {{total}}"
    50         },
    51         "header": {
    52             "menu": {
    53                 "dashboard": "Genel Bakış",
    54                 "orders": "Siparişler",
    55                 "settings": "Genel Ayarlar",
    56                 "subscriptions": "Abonelik Yönetimi"
    57             }
    58         },
    59         "buttons": {
    60             "cancel": "Vazgeç",
    61             "save": "Kaydet"
    62         },
    63         "settings": {
    64             "title": "Genel Ayarlar",
    65             "description": "Bu kısımdan iyzico hesabınızı bağlayabilir ve ödeme ayarlarınızı yönetebilirsiniz.",
    66             "success": "Başarılı!",
    67             "error": "Hata!",
    68             "success_message": "Ayarlar başarıyla kaydedildi.",
    69             "fields": {
    70                 "environment": {
    71                     "title": "Ortam Seçimi",
    72                     "values": {
    73                         "choose": "Seçiniz",
    74                         "sandbox": "Sandbox",
    75                         "live": "Canlı"
    76                     }
    77                 },
    78                 "api_key": {
    79                     "title": "API Anahtarı",
    80                     "placeholder": "API Anahtarı"
    81                 },
    82                 "secret_key": {
    83                     "title": "Gizli Anahtar",
    84                     "placeholder": "Gizli Anahtar"
    85                 },
    86                 "title": {
    87                     "title": "Ödeme Seçeneği Metni"
    88                 },
    89                 "description": {
    90                     "title": "Ödeme Formu Açıklama Metni"
    91                 },
    92                 "form_class": {
    93                     "title": "Ödeme Formu Tasarımı",
    94                     "values": {
    95                         "responsive": "Duyarlı",
    96                         "popup": "Açılır Pencere",
    97                         "redirect": "Yönlendirme"
    98                     }
    99                 },
    100                 "payment_checkout_value": {
    101                     "title": "Ödeme Sayfası Metni"
    102                 },
    103                 "order_status": {
    104                     "title": "Sipariş Durumu",
    105                     "values": {
    106                         "default": "Varsayılan",
    107                         "pending": "Beklemede",
    108                         "processing": "İşleniyor",
    109                         "completed": "Tamamlandı",
    110                         "on-hold": "Beklemede",
    111                         "cancelled": "İptal Edildi",
    112                         "refunded": "İade Edildi",
    113                         "failed": "Başarısız"
    114                     }
    115                 },
    116                 "overlay_script": {
    117                     "title": "Alıcı Koruması - Logo",
    118                     "values": {
    119                         "left": "Sol",
    120                         "right": "Sağ",
    121                         "hide": "Gizle"
    122                     }
    123                 },
    124                 "form_language": {
    125                     "title": "Ödeme Formu Dili",
    126                     "values": {
    127                         "automatic": "Otomatik",
    128                         "turkish": "Türkçe",
    129                         "english": "İngilizce"
    130                     }
    131                 },
    132                 "affiliate_network": {
    133                     "title": "İş Ortaklığı Ağı"
    134                 },
    135                 "enabled": {
    136                     "title": "iyzico Checkout Ödeme Yöntemini Etkinleştir",
    137                     "title_pwi": "iyzico ile Ödeme Yöntemini Etkinleştir"
    138                 },
    139                 "webhook": {
    140                     "label": "Webhook URL"
    141                 }
    142             },
    143             "api_key_secret_key_required": "API Anahtarı ve Gizli Anahtar alanları zorunludur."
    144         }
    145     },
    146     "en_US": {
    147         "dashboard": {
    148             "widget": {
    149                 "title": "Overview",
    150                 "description": "In this area, you can examine your business's performance metrics in detail."
    151             },
    152             "chart": {
    153                 "title": "Graphical Analysis",
    154                 "description": "The following graphs allow you to visually analyze your business's performance and transaction metrics.",
    155                 "keys": {
    156                     "total": "Total",
    157                     "completed": "Completed",
    158                     "processing": "Processing",
    159                     "pending": "Pending",
    160                     "failed": "Failed"
    161                 }
    162             },
    163             "charts": {
    164                 "title_1": "30-Day Order Graph",
    165                 "title_2": "Sales by Payment Methods",
    166                 "title_3": "Top 5 Best Selling Products",
    167                 "title_4": "Top 5 Best Selling Categories"
    168             }
    169         },
    170         "orders": {
    171             "header": "Orders",
    172             "description": "In this area, you can examine the orders taking place in your business in detail.",
    173             "row": {
    174                 "guest": "Guest",
    175                 "all": "All",
    176                 "pending": "Pending",
    177                 "processing": "Processing",
    178                 "on-hold": "On Hold",
    179                 "cancelled": "Cancelled",
    180                 "completed": "Completed",
    181                 "refunded": "Refunded",
    182                 "failed": "Failed",
    183                 "id": "Order ID",
    184                 "customer": "Customer",
    185                 "date": "Date",
    186                 "total": "Total",
    187                 "status": "Status"
    188             },
    189             "search_placeholder": "Order ID",
    190             "loading": "Loading...",
    191             "previous": "Previous",
    192             "next": "Next",
    193             "page": "Page {{current}} / {{total}}"
    194         },
    195         "header": {
    196             "menu": {
    197                 "dashboard": "Overview",
    198                 "orders": "Orders",
    199                 "settings": "General Settings",
    200                 "subscriptions": "Subscription Management"
    201             }
    202         },
    203         "buttons": {
    204             "cancel": "Cancel",
    205             "save": "Save"
    206         },
    207         "settings": {
    208             "title": "General Settings",
    209             "description": "You can connect your iyzico account and manage your payment settings from this section.",
    210             "success": "Successfully!",
    211             "error": "Error!",
    212             "success_message": "Settings have been saved successfully.",
    213             "fields": {
    214                 "environment": {
    215                     "title": "Environment Selection",
    216                     "values": {
    217                         "choose": "Choose",
    218                         "sandbox": "Sandbox",
    219                         "live": "Live"
    220                     }
    221                 },
    222                 "api_key": {
    223                     "title": "API Key",
    224                     "placeholder": "API Key"
    225                 },
    226                 "secret_key": {
    227                     "title": "Secret Key",
    228                     "placeholder": "Secret Key"
    229                 },
    230                 "title": {
    231                     "title": "Payment Option Text"
    232                 },
    233                 "description": {
    234                     "title": "Payment Form Description Text"
    235                 },
    236                 "form_class": {
    237                     "title": "Payment Form Design",
    238                     "values": {
    239                         "responsive": "Responsive",
    240                         "popup": "Popup",
    241                         "redirect": "Redirect"
    242                     }
    243                 },
    244                 "payment_checkout_value": {
    245                     "title": "Payment Page Text"
    246                 },
    247                 "order_status": {
    248                     "title": "Order Status",
    249                     "values": {
    250                         "default": "Default",
    251                         "pending": "Pending",
    252                         "processing": "Processing",
    253                         "completed": "Completed",
    254                         "on-hold": "On Hold",
    255                         "cancelled": "Cancelled",
    256                         "refunded": "Refunded",
    257                         "failed": "Failed"
    258                     }
    259                 },
    260                 "overlay_script": {
    261                     "title": "Buyer Protection - Logo",
    262                     "values": {
    263                         "left": "Left",
    264                         "right": "Right",
    265                         "hide": "Hide"
    266                     }
    267                 },
    268                 "form_language": {
    269                     "title": "Payment Form Language",
    270                     "values": {
    271                         "automatic": "Automatic",
    272                         "turkish": "Turkish",
    273                         "english": "English"
    274                     }
    275                 },
    276                 "affiliate_network": {
    277                     "title": "Affiliate Network"
    278                 },
    279                 "enabled": {
    280                     "title": "Enable iyzico Checkout Payment Method",
    281                     "title_pwi": "Enable Pay with iyzico Payment Method"
    282                 },
    283                 "webhook": {
    284                     "label": "Webhook URL"
    285                 }
    286             },
    287             "api_key_secret_key_required": "API Key and Secret Key fields are required."
    288         }
     2  "tr_TR": {
     3    "dashboard": {
     4      "widget": {
     5        "title": "Genel Bakış",
     6        "description": "Bu alanda, işletmenizin performans metriklerini detaylı bir şekilde inceleyebilirsiniz."
     7      },
     8      "chart": {
     9        "title": "Grafiksel Analiz",
     10        "description": "Aşağıdaki grafikler, işletmenizin performansını ve işlem metriklerini görsel olarak analiz etmenizi sağlar.",
     11        "keys": {
     12          "total": "Toplam",
     13          "completed": "Tamamlanan",
     14          "processing": "İşlenen",
     15          "pending": "Bekleyen",
     16          "failed": "Başarısız"
     17        }
     18      },
     19      "charts": {
     20        "title_1": "30 Günlük Sipariş Grafiği",
     21        "title_2": "Ödeme Yöntemlerine Göre Satışlar",
     22        "title_3": "En Çok Satış Yapan İlk 5 Ürün",
     23        "title_4": "En Çok Satış Yapan İlk 5 Kategori"
     24      }
     25    },
     26    "orders": {
     27      "header": "Siparişler",
     28      "description": "Bu alanda, işletmenizde gerçekleşen siparişleri detaylı bir şekilde inceleyebilirsiniz.",
     29      "row": {
     30        "guest": "Misafir",
     31        "all": "Tümü",
     32        "pending": "Beklemede",
     33        "processing": "İşleniyor",
     34        "on-hold": "Beklemede",
     35        "cancelled": "İptal Edildi",
     36        "completed": "Tamamlandı",
     37        "refunded": "İade Edildi",
     38        "failed": "Başarısız",
     39        "id": "Sipariş ID",
     40        "customer": "Müşteri",
     41        "date": "Tarih",
     42        "total": "Toplam",
     43        "status": "Durum"
     44      },
     45      "search_placeholder": "Sipariş ID",
     46      "loading": "Yükleniyor...",
     47      "previous": "Önceki",
     48      "next": "Sonraki",
     49      "page": "Sayfa {{current}} / {{total}}"
     50    },
     51    "header": {
     52      "menu": {
     53        "dashboard": "Genel Bakış",
     54        "orders": "Siparişler",
     55        "settings": "Genel Ayarlar",
     56        "subscriptions": "Abonelik Yönetimi"
     57      }
     58    },
     59    "buttons": {
     60      "cancel": "Vazgeç",
     61      "save": "Kaydet"
     62    },
     63    "settings": {
     64      "title": "Genel Ayarlar",
     65      "description": "Bu kısımdan iyzico hesabınızı bağlayabilir ve ödeme ayarlarınızı yönetebilirsiniz.",
     66      "success": "Başarılı!",
     67      "error": "Hata!",
     68      "success_message": "Ayarlar başarıyla kaydedildi.",
     69      "fields": {
     70        "environment": {
     71          "title": "Ortam Seçimi",
     72          "values": {
     73            "choose": "Seçiniz",
     74            "sandbox": "Sandbox",
     75            "live": "Canlı"
     76          }
     77        },
     78        "api_key": {
     79          "title": "API Anahtarı",
     80          "placeholder": "API Anahtarı"
     81        },
     82        "secret_key": {
     83          "title": "Gizli Anahtar",
     84          "placeholder": "Gizli Anahtar"
     85        },
     86        "title": {
     87          "title": "Ödeme Seçeneği Metni"
     88        },
     89        "description": {
     90          "title": "Ödeme Formu Açıklama Metni"
     91        },
     92        "form_class": {
     93          "title": "Ödeme Formu Tasarımı",
     94          "values": {
     95            "responsive": "Duyarlı",
     96            "popup": "Açılır Pencere",
     97            "redirect": "Yönlendirme"
     98          }
     99        },
     100        "payment_checkout_value": {
     101          "title": "Ödeme Sayfası Metni"
     102        },
     103        "order_status": {
     104          "title": "Sipariş Durumu",
     105          "values": {
     106            "default": "Varsayılan",
     107            "pending": "Beklemede",
     108            "processing": "İşleniyor",
     109            "completed": "Tamamlandı",
     110            "on-hold": "Beklemede",
     111            "cancelled": "İptal Edildi",
     112            "refunded": "İade Edildi",
     113            "failed": "Başarısız"
     114          }
     115        },
     116        "overlay_script": {
     117          "title": "Alıcı Koruması - Logo",
     118          "values": {
     119            "left": "Sol",
     120            "right": "Sağ",
     121            "hide": "Gizle"
     122          }
     123        },
     124        "form_language": {
     125          "title": "Ödeme Formu Dili",
     126          "values": {
     127            "automatic": "Otomatik",
     128            "turkish": "Türkçe",
     129            "english": "İngilizce"
     130          }
     131        },
     132        "affiliate_network": {
     133          "title": "İş Ortaklığı Ağı"
     134        },
     135        "enabled": {
     136          "title": "iyzico Checkout Ödeme Yöntemini Etkinleştir",
     137          "title_pwi": "iyzico ile Ödeme Yöntemini Etkinleştir",
     138          "title_request_log": "Ödeme İsteği Kaydını Etkinleştir"
     139        },
     140        "webhook": {
     141          "label": "Webhook URL"
     142        }
     143      },
     144      "api_key_secret_key_required": "API Anahtarı ve Gizli Anahtar alanları zorunludur."
    289145    }
     146  },
     147  "en_US": {
     148    "dashboard": {
     149      "widget": {
     150        "title": "Overview",
     151        "description": "In this area, you can examine your business's performance metrics in detail."
     152      },
     153      "chart": {
     154        "title": "Graphical Analysis",
     155        "description": "The following graphs allow you to visually analyze your business's performance and transaction metrics.",
     156        "keys": {
     157          "total": "Total",
     158          "completed": "Completed",
     159          "processing": "Processing",
     160          "pending": "Pending",
     161          "failed": "Failed"
     162        }
     163      },
     164      "charts": {
     165        "title_1": "30-Day Order Graph",
     166        "title_2": "Sales by Payment Methods",
     167        "title_3": "Top 5 Best Selling Products",
     168        "title_4": "Top 5 Best Selling Categories"
     169      }
     170    },
     171    "orders": {
     172      "header": "Orders",
     173      "description": "In this area, you can examine the orders taking place in your business in detail.",
     174      "row": {
     175        "guest": "Guest",
     176        "all": "All",
     177        "pending": "Pending",
     178        "processing": "Processing",
     179        "on-hold": "On Hold",
     180        "cancelled": "Cancelled",
     181        "completed": "Completed",
     182        "refunded": "Refunded",
     183        "failed": "Failed",
     184        "id": "Order ID",
     185        "customer": "Customer",
     186        "date": "Date",
     187        "total": "Total",
     188        "status": "Status"
     189      },
     190      "search_placeholder": "Order ID",
     191      "loading": "Loading...",
     192      "previous": "Previous",
     193      "next": "Next",
     194      "page": "Page {{current}} / {{total}}"
     195    },
     196    "header": {
     197      "menu": {
     198        "dashboard": "Overview",
     199        "orders": "Orders",
     200        "settings": "General Settings",
     201        "subscriptions": "Subscription Management"
     202      }
     203    },
     204    "buttons": {
     205      "cancel": "Cancel",
     206      "save": "Save"
     207    },
     208    "settings": {
     209      "title": "General Settings",
     210      "description": "You can connect your iyzico account and manage your payment settings from this section.",
     211      "success": "Successfully!",
     212      "error": "Error!",
     213      "success_message": "Settings have been saved successfully.",
     214      "fields": {
     215        "environment": {
     216          "title": "Environment Selection",
     217          "values": {
     218            "choose": "Choose",
     219            "sandbox": "Sandbox",
     220            "live": "Live"
     221          }
     222        },
     223        "api_key": {
     224          "title": "API Key",
     225          "placeholder": "API Key"
     226        },
     227        "secret_key": {
     228          "title": "Secret Key",
     229          "placeholder": "Secret Key"
     230        },
     231        "title": {
     232          "title": "Payment Option Text"
     233        },
     234        "description": {
     235          "title": "Payment Form Description Text"
     236        },
     237        "form_class": {
     238          "title": "Payment Form Design",
     239          "values": {
     240            "responsive": "Responsive",
     241            "popup": "Popup",
     242            "redirect": "Redirect"
     243          }
     244        },
     245        "payment_checkout_value": {
     246          "title": "Payment Page Text"
     247        },
     248        "order_status": {
     249          "title": "Order Status",
     250          "values": {
     251            "default": "Default",
     252            "pending": "Pending",
     253            "processing": "Processing",
     254            "completed": "Completed",
     255            "on-hold": "On Hold",
     256            "cancelled": "Cancelled",
     257            "refunded": "Refunded",
     258            "failed": "Failed"
     259          }
     260        },
     261        "overlay_script": {
     262          "title": "Buyer Protection - Logo",
     263          "values": {
     264            "left": "Left",
     265            "right": "Right",
     266            "hide": "Hide"
     267          }
     268        },
     269        "form_language": {
     270          "title": "Payment Form Language",
     271          "values": {
     272            "automatic": "Automatic",
     273            "turkish": "Turkish",
     274            "english": "English"
     275          }
     276        },
     277        "affiliate_network": {
     278          "title": "Affiliate Network"
     279        },
     280        "enabled": {
     281          "title": "Enable iyzico Checkout Payment Method",
     282          "title_pwi": "Enable Pay with iyzico Payment Method",
     283          "title_request_log": "Enable Payment Request Log"
     284        },
     285        "webhook": {
     286          "label": "Webhook URL"
     287        }
     288      },
     289      "api_key_secret_key_required": "API Key and Secret Key fields are required."
     290    }
     291  }
    290292}
  • iyzico-woocommerce/trunk/i18n/languages/woocommerce-iyzico-en_US.po

    r3161557 r3161792  
    247247
    248248msgid "Payment token is missing. Please try again or contact the store owner if the problem persists."
    249 msgtr "Payment token is missing. Please try again or contact the store owner if the problem persists."
     249msgstr "Payment token is missing. Please try again or contact the store owner if the problem persists."
    250250
    251251msgid "Payment process failed. Please try again or choose a different payment method."
  • iyzico-woocommerce/trunk/includes/Admin/SettingsPage.php

    r3161557 r3161792  
    77use Iyzico\IyzipayWoocommerce\Rest\RestAPI;
    88
    9 class SettingsPage
    10 {
     9class SettingsPage {
    1110
    1211    private $checkoutSettings;
     
    1413    private $restApi;
    1514
    16     public function __construct()
    17     {
     15    public function __construct() {
    1816        $this->checkoutSettings = new CheckoutSettings();
    19         $this->pwiSettings = new PwiSettings();
    20         $this->restApi = new RestAPI();
     17        $this->pwiSettings      = new PwiSettings();
     18        $this->restApi          = new RestAPI();
    2119    }
    2220
    23     public function renderAdminOptions()
    24     {
     21    public function renderAdminOptions() {
    2522        ?>
    26         <style>
     23        <style>
    2724            .woocommerce-save-button {
    2825                display: none !important;
    2926            }
    30         </style>
    31         <h3>
    32             <?php esc_html_e('These payment method settings are made through the admin menu.', 'woocommerce-iyzico'); ?>
    33             <a href="<?php echo esc_url(admin_url('admin.php?page=iyzico')); ?>">
    34                 <?php esc_html_e('Click to go to settings.', 'woocommerce-iyzico'); ?>
    35             </a>
    36         </h3>
     27        </style>
     28        <h3>
     29            <?php esc_html_e( 'These payment method settings are made through the admin menu.', 'woocommerce-iyzico' ); ?>
     30            <a href="<?php echo esc_url( admin_url( 'admin.php?page=iyzico' ) ); ?>">
     31                <?php esc_html_e( 'Click to go to settings.', 'woocommerce-iyzico' ); ?>
     32            </a>
     33        </h3>
    3734        <?php
    3835    }
    3936
    40     public function renderPage(): void
    41     {
     37    public function renderPage(): void {
    4238        include_once PLUGIN_DIR_PATH . 'views/index.php';
    4339    }
    4440
    45     public function addAdminMenu(): void
    46     {
     41    public function addAdminMenu(): void {
    4742        add_menu_page(
    4843            'iyzico',
     
    5045            'manage_options',
    5146            'iyzico',
    52             [$this, 'renderPage'],
     47            [ $this, 'renderPage' ],
    5348            PLUGIN_URL . '/assets/images/icon.png',
    5449            59
     
    5651    }
    5752
    58     public function enqueueAdminAssets($hook): void
    59     {
    60         if ('toplevel_page_iyzico' !== $hook) {
     53    public function enqueueAdminAssets( $hook ): void {
     54        if ( 'toplevel_page_iyzico' !== $hook ) {
    6155            return;
    6256        }
     
    6660    }
    6761
    68     public function enqueueAdminStyle(): void
    69     {
     62    public function enqueueAdminStyle(): void {
    7063        $asset_file = PLUGIN_DIR_PATH . 'assets/admin/index.asset.php';
    7164
    72         if (!file_exists($asset_file)) {
     65        if ( ! file_exists( $asset_file ) ) {
    7366            return;
    7467        }
     
    7871        wp_enqueue_style(
    7972            'AdminStyle',
    80             plugins_url('assets/admin/index.css', PLUGIN_BASEFILE),
     73            plugins_url( 'assets/admin/index.css', PLUGIN_BASEFILE ),
    8174            array_filter(
    8275                $asset['dependencies'],
    83                 function ($style) {
    84                     return wp_style_is($style, 'registered');
     76                function ( $style ) {
     77                    return wp_style_is( $style, 'registered' );
    8578                }
    8679            ),
     
    8982    }
    9083
    91     public function enqueueAdminScript(): void
    92     {
     84    public function enqueueAdminScript(): void {
    9385        $asset_file = PLUGIN_DIR_PATH . 'assets/admin/index.asset.php';
    9486
    95         if (!file_exists($asset_file)) {
     87        if ( ! file_exists( $asset_file ) ) {
    9688            return;
    9789        }
     
    10193        wp_enqueue_script(
    10294            'AdminScript',
    103             plugins_url('assets/admin/index.js', PLUGIN_BASEFILE),
     95            plugins_url( 'assets/admin/index.js', PLUGIN_BASEFILE ),
    10496            $asset['dependencies'],
    10597            $asset['version'],
     
    110102            'AdminScript', // script handle
    111103            'woocommerce-iyzico',         // text domain
    112             plugin_dir_path(__FILE__) . 'i18n/languages'
     104            plugin_dir_path( __FILE__ ) . 'i18n/languages'
    113105        );
    114106
  • iyzico-woocommerce/trunk/includes/Checkout/BlocksCheckoutMethod.php

    r3161557 r3161792  
    1010 * @extends AbstractPaymentMethodType
    1111 */
    12 class BlocksCheckoutMethod extends AbstractPaymentMethodType
    13 {
     12class BlocksCheckoutMethod extends AbstractPaymentMethodType {
    1413
    1514    public $gateway;
     
    1716    public $checkoutSettings;
    1817
    19     public function __construct()
    20     {
     18    public function __construct() {
    2119        $this->checkoutSettings = new CheckoutSettings();
    2220    }
    2321
    24     public function initialize(): void
    25     {
     22    public function initialize(): void {
    2623        $this->settings = $this->checkoutSettings->getSettings();
    2724    }
    2825
    29     public function is_active(): bool
    30     {
    31         return !empty($this->settings['enabled']) && 'yes' === $this->settings['enabled'];
     26    public function is_active(): bool {
     27        return ! empty( $this->settings['enabled'] ) && 'yes' === $this->settings['enabled'];
    3228    }
    3329
    34     public function get_payment_method_script_handles(): array
    35     {
     30    public function get_payment_method_script_handles(): array {
    3631        $dependencies = [];
    37         $version = time();
     32        $version      = time();
    3833
    39         $path = plugin_dir_path(PLUGIN_BASEFILE) . 'assets/blocks/woocommerce/blocks.asset.php';
     34        $path = plugin_dir_path( PLUGIN_BASEFILE ) . 'assets/blocks/woocommerce/blocks.asset.php';
    4035
    41         if (file_exists($path)) {
    42             $asset = require $path;
    43             $version = filemtime(plugin_dir_path(PLUGIN_BASEFILE) . 'assets/blocks/woocommerce/blocks.js');
    44             $dependencies = is_null($asset['dependencies']);
     36        if ( file_exists( $path ) ) {
     37            $asset        = require $path;
     38            $version      = filemtime( plugin_dir_path( PLUGIN_BASEFILE ) . 'assets/blocks/woocommerce/blocks.js' );
     39            $dependencies = is_null( $asset['dependencies'] );
    4540        }
    4641
    4742        wp_register_script(
    4843            'wc-iyzico-blocks-integration',
    49             plugin_dir_url(PLUGIN_BASEFILE) . 'assets/blocks/woocommerce/blocks.js',
     44            plugin_dir_url( PLUGIN_BASEFILE ) . 'assets/blocks/woocommerce/blocks.js',
    5045            $dependencies,
    5146            $version,
     
    5348        );
    5449
    55         return ['wc-iyzico-blocks-integration'];
     50        return [ 'wc-iyzico-blocks-integration' ];
    5651    }
    5752
    58     public function get_payment_method_data(): array
    59     {
    60         $title = $this->settings['title'];
     53    public function get_payment_method_data(): array {
     54        $title       = $this->settings['title'];
    6155        $description = $this->settings['description'];
    62         $image = plugin_dir_url(PLUGIN_BASEFILE) . 'assets/images/cards.png';
     56        $image       = plugin_dir_url( PLUGIN_BASEFILE ) . 'assets/images/cards.png';
    6357
    6458        return [
    65             'title' => $title,
     59            'title'       => $title,
    6660            'description' => $description,
    67             'icon' => $image
     61            'icon'        => $image
    6862        ];
    6963    }
  • iyzico-woocommerce/trunk/includes/Checkout/CheckoutForm.php

    r3161557 r3161792  
    148148        $order    = wc_get_order( $orderId );
    149149        $cart     = $woocommerce->cart->get_cart();
    150         $language = $this->checkoutSettings->findByKey( 'form_language' ) ?? "tr";
     150        $language = empty($this->checkoutSettings->findByKey( 'form_language' ) ) ? "tr" : $this->checkoutSettings->findByKey( 'form_language' );
    151151        $customer = wp_get_current_user();
    152152
     
    159159        // Payment Source Settings
    160160        $affiliate     = $this->checkoutSettings->findByKey( 'affiliate_network' );
    161         $paymentSource = "WOOCOMMERCE|$woocommerce->version|CARRERA-3.5.5";
     161        $paymentSource = "WOOCOMMERCE|$woocommerce->version|CARRERA-3.5.6";
    162162
    163163        if ( strlen( $affiliate ) > 0 ) {
     
    182182        $request->setBuyer( $checkoutData['buyer'] );
    183183        $request->setBillingAddress( $checkoutData['billingAddress'] );
    184         $request->setShippingAddress( $checkoutData['shippingAddress'] );
     184        isset( $checkoutData['shippingAddress'] ) ? $request->setShippingAddress( $checkoutData['shippingAddress'] ) : null;
    185185        $request->setBasketItems( $checkoutData['basketItems'] );
    186186
     
    188188        $options = $this->create_options();
    189189
     190        // Check Request Logs Settings
     191        $isSave = $this->checkoutSettings->findByKey( 'request_log_enabled' );
     192        $isSave === 'yes' ? $this->logger->info( "CheckoutFormInitialize Request: " . $request->toJsonString() ) : null;
     193
    190194        return CheckoutFormInitialize::create( $request, $options );
    191195    }
     196
    192197
    193198    public function checkout_form( $orderId ) {
  • iyzico-woocommerce/trunk/includes/Checkout/CheckoutSettings.php

    r3161557 r3161792  
    11<?php
     2
    23namespace Iyzico\IyzipayWoocommerce\Checkout;
    34
    45use Iyzico\IyzipayWoocommerce\Common\Abstracts\Config;
    56
    6 class CheckoutSettings extends Config
    7 {
     7class CheckoutSettings extends Config {
    88    public $optionsTableKey = 'woocommerce_iyzico_settings';
    99    public $form_fields = [];
    1010
    11     public function __construct()
    12     {
     11    public function __construct() {
    1312        $this->form_fields = [
    14             'api_type' => [
    15                 'title' => __('Api Type', 'woocommerce-iyzico'),
    16                 'type' => 'select',
     13            'api_type'               => [
     14                'title'    => __( 'Api Type', 'woocommerce-iyzico' ),
     15                'type'     => 'select',
    1716                'required' => true,
    18                 'default' => 'responsive',
    19                 'options' => [
    20                     'https://api.iyzipay.com' => __('Live', 'woocommerce-iyzico'),
    21                     'https://sandbox-api.iyzipay.com' => __('Sandbox / Test', 'woocommerce-iyzico')
     17                'default'  => 'responsive',
     18                'options'  => [
     19                    'https://api.iyzipay.com'         => __( 'Live', 'woocommerce-iyzico' ),
     20                    'https://sandbox-api.iyzipay.com' => __( 'Sandbox / Test', 'woocommerce-iyzico' )
    2221                ],
    2322            ],
    24             'api_key' => [
    25                 'title' => __('Api Key', 'woocommerce-iyzico'),
    26                 'type' => 'text'
     23            'api_key'                => [
     24                'title' => __( 'Api Key', 'woocommerce-iyzico' ),
     25                'type'  => 'text'
    2726            ],
    28             'secret_key' => [
    29                 'title' => __('Secret Key', 'woocommerce-iyzico'),
    30                 'type' => 'text'
     27            'secret_key'             => [
     28                'title' => __( 'Secret Key', 'woocommerce-iyzico' ),
     29                'type'  => 'text'
    3130            ],
    32             'title' => [
    33                 'title' => __('Payment Value', 'woocommerce-iyzico'),
    34                 'type' => 'text',
    35                 'description' => __('This message will show to the user during checkout.', 'woocommerce-iyzico'),
    36                 'default' => __('Pay with Bank/Debit Card', 'woocommerce-iyzico')
     31            'title'                  => [
     32                'title'       => __( 'Payment Value', 'woocommerce-iyzico' ),
     33                'type'        => 'text',
     34                'description' => __( 'This message will show to the user during checkout.', 'woocommerce-iyzico' ),
     35                'default'     => __( 'Pay with Bank/Debit Card', 'woocommerce-iyzico' )
    3736            ],
    38             'description' => [
    39                 'title' => __('Payment Form Description Value', 'woocommerce-iyzico'),
    40                 'type' => 'text',
    41                 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-iyzico'),
    42                 'default' => __('Pay with your credit card or debit card via iyzico.', 'woocommerce-iyzico'),
    43                 'desc_tip' => true
     37            'description'            => [
     38                'title'       => __( 'Payment Form Description Value', 'woocommerce-iyzico' ),
     39                'type'        => 'text',
     40                'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-iyzico' ),
     41                'default'     => __( 'Pay with your credit card or debit card via iyzico.', 'woocommerce-iyzico' ),
     42                'desc_tip'    => true
    4443            ],
    45             'form_class' => [
    46                 'title' => __('Payment Form Design', 'woocommerce-iyzico'),
    47                 'type' => 'select',
     44            'form_class'             => [
     45                'title'   => __( 'Payment Form Design', 'woocommerce-iyzico' ),
     46                'type'    => 'select',
    4847                'default' => 'popup',
    4948                'options' => [
    50                     'responsive' => __('Responsive', 'woocommerce-iyzico'),
    51                     'popup' => __('Popup', 'woocommerce-iyzico'),
    52                     'redirect' => __('Redirect', 'woocommerce-iyzico')
     49                    'responsive' => __( 'Responsive', 'woocommerce-iyzico' ),
     50                    'popup'      => __( 'Popup', 'woocommerce-iyzico' ),
     51                    'redirect'   => __( 'Redirect', 'woocommerce-iyzico' )
    5352                ]
    5453            ],
    5554            'payment_checkout_value' => [
    56                 'title' => __('Payment Checkout Value', 'woocommerce-iyzico'),
    57                 'type' => 'text',
    58                 'description' => __('Ödeme formun yüklendiği sayfada gösterilen mesaj', 'woocommerce-iyzico'),
    59                 'default' => __('Thank you for your order, please enter your card information in the payment form below to pay with iyzico checkout.', 'woocommerce-iyzico'),
    60                 'desc_tip' => true,
     55                'title'       => __( 'Payment Checkout Value', 'woocommerce-iyzico' ),
     56                'type'        => 'text',
     57                'description' => __( 'Ödeme formun yüklendiği sayfada gösterilen mesaj', 'woocommerce-iyzico' ),
     58                'default'     => __( 'Thank you for your order, please enter your card information in the payment form below to pay with iyzico checkout.', 'woocommerce-iyzico' ),
     59                'desc_tip'    => true,
    6160            ],
    62             'order_status' => [
    63                 'title' => __('Order Status', 'woocommerce-iyzico'),
    64                 'type' => 'select',
    65                 'description' => __('Recommended, Default', 'woocommerce-iyzico'),
    66                 'default' => 'default',
    67                 'options' => [
    68                     'default' => __('Default', 'woocommerce-iyzico'),
    69                     'pending' => __('Pending', 'woocommerce-iyzico'),
    70                     'processing' => __('Processing', 'woocommerce-iyzico'),
    71                     'on-hold' => __('On-Hold', 'woocommerce-iyzico'),
    72                     'completed' => __('Completed', 'woocommerce-iyzico'),
    73                     'cancelled' => __('Cancelled', 'woocommerce-iyzico'),
    74                     'refunded' => __('Refunded', 'woocommerce-iyzico'),
    75                     'failed' => __('Failed', 'woocommerce-iyzico')
     61            'order_status'           => [
     62                'title'       => __( 'Order Status', 'woocommerce-iyzico' ),
     63                'type'        => 'select',
     64                'description' => __( 'Recommended, Default', 'woocommerce-iyzico' ),
     65                'default'     => 'default',
     66                'options'     => [
     67                    'default'    => __( 'Default', 'woocommerce-iyzico' ),
     68                    'pending'    => __( 'Pending', 'woocommerce-iyzico' ),
     69                    'processing' => __( 'Processing', 'woocommerce-iyzico' ),
     70                    'on-hold'    => __( 'On-Hold', 'woocommerce-iyzico' ),
     71                    'completed'  => __( 'Completed', 'woocommerce-iyzico' ),
     72                    'cancelled'  => __( 'Cancelled', 'woocommerce-iyzico' ),
     73                    'refunded'   => __( 'Refunded', 'woocommerce-iyzico' ),
     74                    'failed'     => __( 'Failed', 'woocommerce-iyzico' )
    7675                ]
    7776            ],
    78             'overlay_script' => [
    79                 'title' => __('Buyer Protection - Logo', 'woocommerce-iyzico'),
    80                 'type' => 'select',
     77            'overlay_script'         => [
     78                'title'    => __( 'Buyer Protection - Logo', 'woocommerce-iyzico' ),
     79                'type'     => 'select',
    8180                'required' => false,
    82                 'default' => 'left',
    83                 'options' => [
    84                     'bottomLeft' => __('Left', 'woocommerce-iyzico'),
    85                     'bottomRight' => __('Right', 'woocommerce-iyzico'),
    86                     'hide' => __('Hide', 'woocommerce-iyzico')
     81                'default'  => 'left',
     82                'options'  => [
     83                    'bottomLeft'  => __( 'Left', 'woocommerce-iyzico' ),
     84                    'bottomRight' => __( 'Right', 'woocommerce-iyzico' ),
     85                    'hide'        => __( 'Hide', 'woocommerce-iyzico' )
    8786                ]
    8887            ],
    89             'form_language' => [
    90                 'title' => __('Ödeme Formu Dili', 'woocommerce-iyzico'),
    91                 'type' => 'select',
     88            'form_language'          => [
     89                'title'    => __( 'Ödeme Formu Dili', 'woocommerce-iyzico' ),
     90                'type'     => 'select',
    9291                'required' => true,
    93                 'default' => 'TR',
    94                 'options' => [
    95                     '' => __('Automatic', 'woocommerce-iyzico'),
    96                     'TR' => __('Turkish', 'woocommerce-iyzico'),
    97                     'EN' => __('English', 'woocommerce-iyzico')
     92                'default'  => 'TR',
     93                'options'  => [
     94                    ''   => __( 'Automatic', 'woocommerce-iyzico' ),
     95                    'TR' => __( 'Turkish', 'woocommerce-iyzico' ),
     96                    'EN' => __( 'English', 'woocommerce-iyzico' )
    9897                ]
    9998            ],
    100             'affiliate_network' => [
    101                 'title' => __('Affiliate Network', 'woocommerce-iyzico'),
    102                 'type' => 'text',
    103                 'required' => false,
    104                 'description' => __('Payment source for agency', 'woocommerce-iyzico'),
    105                 'default' => '',
    106                 'custom_attributes' => ['maxlength' => 14]
     99            'affiliate_network'      => [
     100                'title'             => __( 'Affiliate Network', 'woocommerce-iyzico' ),
     101                'type'              => 'text',
     102                'required'          => false,
     103                'description'       => __( 'Payment source for agency', 'woocommerce-iyzico' ),
     104                'default'           => '',
     105                'custom_attributes' => [ 'maxlength' => 14 ]
    107106            ],
    108             'enabled' => [
    109                 'title' => __('Enable/Disable', 'woocommerce-iyzico'),
    110                 'label' => __('Enable iyzico checkout', 'woocommerce-iyzico'),
    111                 'type' => 'checkbox',
     107            'enabled'                => [
     108                'title'   => __( 'Enable/Disable', 'woocommerce-iyzico' ),
     109                'label'   => __( 'Enable iyzico checkout', 'woocommerce-iyzico' ),
     110                'type'    => 'checkbox',
     111                'default' => 'no'
     112            ],
     113            'request_log_enabled'    => [
     114                'title'   => __( 'Request Log', 'woocommerce-iyzico' ),
     115                'label'   => __( 'Enable request log', 'woocommerce-iyzico' ),
     116                'type'    => 'checkbox',
    112117                'default' => 'no'
    113118            ],
     
    115120
    116121        $this->defaultSettings = [];
    117         foreach ($this->form_fields as $key => $field) {
    118             $this->defaultSettings[$key] = $field['default'] ?? '';
     122        foreach ( $this->form_fields as $key => $field ) {
     123            $this->defaultSettings[ $key ] = $field['default'] ?? '';
    119124        }
    120125    }
    121126
    122     public function getFormFields()
    123     {
     127    public function getFormFields() {
    124128        return $this->form_fields;
    125129    }
  • iyzico-woocommerce/trunk/includes/Checkout/CheckoutView.php

    r3161557 r3161792  
    33namespace Iyzico\IyzipayWoocommerce\Checkout;
    44
    5 class CheckoutView
    6 {
     5class CheckoutView {
    76    protected $checkoutSettings;
    87
    9     public function __construct(CheckoutSettings $checkoutSettings)
    10     {
     8    public function __construct( CheckoutSettings $checkoutSettings ) {
    119        $this->checkoutSettings = $checkoutSettings;
    1210    }
    1311
    14     public function renderCheckoutForm($checkoutFormInitialize)
    15     {
    16         $className = $this->checkoutSettings->findByKey('form_class');
    17         $message = '<p id="infoBox" style="display:none;">' . esc_html($this->checkoutSettings->findByKey('payment_checkout_value')) . '</p>';
     12    public function renderCheckoutForm( $checkoutFormInitialize ) {
     13        $className = $this->checkoutSettings->findByKey( 'form_class' );
     14        $message   = '<p id="infoBox" style="display:none;">' . esc_html( $this->checkoutSettings->findByKey( 'payment_checkout_value' ) ) . '</p>';
    1815        echo '<script>
    1916                jQuery(window).on("load", function(){
     
    2421              </script>';
    2522
    26         if ($checkoutFormInitialize->getStatus() === "success") {
     23        if ( $checkoutFormInitialize->getStatus() === "success" ) {
    2724            echo $message;
    28             echo ' <div style="display:none" id="iyzipay-checkout-form" class="' . esc_attr($className) . '">' . $checkoutFormInitialize->getCheckoutFormContent() . '</div>';
     25            echo ' <div style="display:none" id="iyzipay-checkout-form" class="' . esc_attr( $className ) . '">' . $checkoutFormInitialize->getCheckoutFormContent() . '</div>';
    2926        } else {
    30             echo esc_html($checkoutFormInitialize->getErrorMessage());
     27            echo esc_html( $checkoutFormInitialize->getErrorMessage() );
    3128        }
    3229    }
    3330
    34     public function renderLoadingHtml()
    35     {
     31    public function renderLoadingHtml() {
    3632        echo '<div id="loadingBar">
    3733                <div class="loading"></div>
  • iyzico-woocommerce/trunk/includes/Common/Abstracts/AbstractLogger.php

    r3161557 r3161792  
    1010 * @package Iyzico\IyzipayWoocommerce\Common\Abstracts
    1111 */
    12 abstract class AbstractLogger implements LoggerInterface
    13 {
    14     protected string $logDir;
    15     protected const INFO_LOG = 'iyzico_info.log';
    16     protected const ERROR_LOG = 'iyzico_error.log';
    17     protected const WARN_LOG = 'iyzico_warn.log';
     12abstract class AbstractLogger implements LoggerInterface {
     13    protected string $logDir;
     14    protected const INFO_LOG = 'iyzico_info.log';
     15    protected const ERROR_LOG = 'iyzico_error.log';
     16    protected const WARN_LOG = 'iyzico_warn.log';
    1817
    1918    /**
     
    2221     * @param string $logDir
    2322     */
    24     public function __construct(string $logDir = '')
    25     {
    26         $this->logDir = $logDir ?: PLUGIN_PATH . '/log_files/';
    27         $this->ensureLogDirectoryExists();
    28     }
     23    public function __construct( string $logDir = '' ) {
     24        $this->logDir = $logDir ?: PLUGIN_PATH . '/log_files/';
     25        $this->ensureLogDirectoryExists();
     26    }
    2927
    3028    /**
     
    3331     * @return void
    3432     */
    35     abstract public function info(string $message): void;
     33    abstract public function info( string $message ): void;
    3634
    3735    /**
     
    4038     * @return void
    4139     */
    42     abstract public function error(string $message): void;
     40    abstract public function error( string $message ): void;
    4341
    4442    /**
     
    4745     * @return void
    4846     */
    49     abstract public function warn(string $message): void;
     47    abstract public function warn( string $message ): void;
    5048
    5149    /**
     
    5654     * @return void
    5755     */
    58     protected function log(string $file, string $level, string $message): void
    59     {
    60         $timestamp = date('Y-m-d H:i:s');
    61         $logMessage = "[$timestamp] [$level] $message" . PHP_EOL;
     56    protected function log( string $file, string $level, string $message ): void {
     57        $timestamp  = date( 'Y-m-d H:i:s' );
     58        $logMessage = "[$timestamp] [$level] $message" . PHP_EOL;
    6259
    63         $filePath = $this->logDir . $file;
    64         file_put_contents($filePath, $logMessage, FILE_APPEND | LOCK_EX);
    65     }
     60        $filePath = $this->logDir . $file;
     61        file_put_contents( $filePath, $logMessage, FILE_APPEND | LOCK_EX );
     62    }
    6663
    6764    /**
    6865     * @return void
    6966     */
    70     protected function ensureLogDirectoryExists(): void
    71     {
    72         if (!file_exists($this->logDir)) {
    73             mkdir($this->logDir, 0755, true);
    74             $this->createHtaccess();
    75         }
    76     }
     67    protected function ensureLogDirectoryExists(): void {
     68        if ( ! file_exists( $this->logDir ) ) {
     69            mkdir( $this->logDir, 0755, true );
     70            $this->createHtaccess();
     71        }
     72    }
    7773
    7874    /**
    7975     * @return void
    8076     */
    81     protected function createHtaccess(): void
    82     {
    83         $htaccessContent = "Deny from all\n";
    84         file_put_contents($this->logDir . '.htaccess', $htaccessContent);
    85     }
     77    protected function createHtaccess(): void {
     78        $htaccessContent = "Deny from all\n";
     79        file_put_contents( $this->logDir . '.htaccess', $htaccessContent );
     80    }
    8681}
  • iyzico-woocommerce/trunk/includes/Common/Abstracts/Config.php

    r3161557 r3161792  
    33namespace Iyzico\IyzipayWoocommerce\Common\Abstracts;
    44
    5 abstract class Config
    6 {
     5abstract class Config {
    76    public $optionsTableKey;
    87    public $defaultSettings = [];
    98    public $form_fields = [];
    109
    11     public function getSettings()
    12     {
    13         $settings = get_option($this->optionsTableKey, []);
    14         $settings = is_array($settings) ? $settings : [];
     10    public function getSettings() {
     11        $settings = get_option( $this->optionsTableKey, [] );
     12        $settings = is_array( $settings ) ? $settings : [];
    1513
    16         foreach ($this->getDefaultSettings() as $key => $value) {
    17             if (false === array_key_exists($key, $settings)) {
    18                 $settings[$key] = $value;
     14        foreach ( $this->getDefaultSettings() as $key => $value ) {
     15            if ( false === array_key_exists( $key, $settings ) ) {
     16                $settings[ $key ] = $value;
    1917            }
    2018        }
     
    2321    }
    2422
    25     public function findByKey(string $key)
    26     {
     23    public function findByKey( string $key ) {
    2724        $settings = $this->getSettings();
    2825
    29         return array_key_exists($key, $settings) ? $settings[$key] : false;
     26        return array_key_exists( $key, $settings ) ? $settings[ $key ] : false;
    3027    }
    3128
    32     public function setSettings(mixed $options)
    33     {
    34         update_option($this->optionsTableKey, $options);
     29    public function setSettings( mixed $options ) {
     30        update_option( $this->optionsTableKey, $options );
    3531
    36         if (method_exists($this, 'settings_updated')) {
    37             call_user_func(array($this, 'settings_updated'));
     32        if ( method_exists( $this, 'settings_updated' ) ) {
     33            call_user_func( array( $this, 'settings_updated' ) );
    3834        }
    3935
     
    4137    }
    4238
    43     private function getDefaultSettings()
    44     {
     39    private function getDefaultSettings() {
    4540        $defaultSettings = apply_filters(
    4641            'iyzico_default_settings',
    4742            array(
    4843                'woocommerce_iyzico_settings' => array(
    49                     'enabled' => 'yes',
    50                     'affiliate_network' => '',
    51                     'form_language' => '',
    52                     'order_status' => 'default',
    53                     'payment_checkout_value' => __('Thank you for your order, please enter your card information in the payment form below to pay with iyzico checkout.', 'woocommerce-iyzico'),
    54                     'title' => __('Pay with Bank/Debit Card', 'woocommerce-iyzico'),
    55                     'button_text' => __('Pay With Card', 'woocommerce-iyzico'),
    56                     'description' => __('Pay with your credit card or debit card via iyzico.', 'woocommerce-iyzico'),
    57                     'icon' => PLUGIN_ASSETS_DIR_URL . '/images/cards_v2.png',
    58                     'success_status' => 'processing',
    59                     'overlay_script' => 'left',
    60                     'form_class' => 'popup',
    61                     'secret_key' => '',
    62                     'api_key' => '',
    63                     'api_type' => 'https://sandbox-api.iyzipay.com',
     44                    'enabled'                => 'yes',
     45                    'affiliate_network'      => '',
     46                    'form_language'          => '',
     47                    'order_status'           => 'default',
     48                    'payment_checkout_value' => __( 'Thank you for your order, please enter your card information in the payment form below to pay with iyzico checkout.', 'woocommerce-iyzico' ),
     49                    'title'                  => __( 'Pay with Bank/Debit Card', 'woocommerce-iyzico' ),
     50                    'button_text'            => __( 'Pay With Card', 'woocommerce-iyzico' ),
     51                    'description'            => __( 'Pay with your credit card or debit card via iyzico.', 'woocommerce-iyzico' ),
     52                    'icon'                   => PLUGIN_ASSETS_DIR_URL . '/images/cards_v2.png',
     53                    'success_status'         => 'processing',
     54                    'overlay_script'         => 'left',
     55                    'form_class'             => 'popup',
     56                    'secret_key'             => '',
     57                    'api_key'                => '',
     58                    'api_type'               => 'https://sandbox-api.iyzipay.com',
     59                    'request_log_enabled'    => 'no',
    6460                ),
    65                 'woocommerce_pwi_settings' => array(
    66                     'enabled' => 'yes',
    67                     'icon' => PLUGIN_ASSETS_DIR_URL . '/images/iyzico.png',
    68                     'title' => __('Pay with iyzico', 'woocommerce-iyzico'),
    69                     'button_text' => __('Pay with iyzico', 'woocommerce-iyzico'),
    70                     'description' => __("Your money safe with iyzico! Store your iyzico card and enjoy one-click payment. All your transactions under the iyzico Buyer Protection guarantee. Get live support 24/7.", 'woocommerce-iyzico'),
     61                'woocommerce_pwi_settings'    => array(
     62                    'enabled'     => 'yes',
     63                    'icon'        => PLUGIN_ASSETS_DIR_URL . '/images/iyzico.png',
     64                    'title'       => __( 'Pay with iyzico', 'woocommerce-iyzico' ),
     65                    'button_text' => __( 'Pay with iyzico', 'woocommerce-iyzico' ),
     66                    'description' => __( "Your money safe with iyzico! Store your iyzico card and enjoy one-click payment. All your transactions under the iyzico Buyer Protection guarantee. Get live support 24/7.", 'woocommerce-iyzico' ),
    7167                ),
    7268            )
    7369        );
    7470
    75         return array_key_exists($this->optionsTableKey, (array) $defaultSettings) ? $defaultSettings[$this->optionsTableKey] : [];
     71        return array_key_exists( $this->optionsTableKey, (array) $defaultSettings ) ? $defaultSettings[ $this->optionsTableKey ] : [];
    7672    }
    7773}
  • iyzico-woocommerce/trunk/includes/Common/Helpers/AdminHelper.php

    r3161557 r3161792  
    22
    33namespace Iyzico\IyzipayWoocommerce\Common\Helpers;
     4
    45use Iyzico\IyzipayWoocommerce\Checkout\CheckoutSettings;
    56use Iyzico\IyzipayWoocommerce\Pwi\PwiSettings;
    67
    7 class AdminHelper
    8 {
    9     public function getSettingsDashboardWidgets(): array
    10     {
    11         $args = [
    12             'status' => ['wc-completed', 'wc-processing', 'wc-on-hold'],
    13             'date_created' => '>=' . date('Y-m-d', strtotime('-30 days')),
    14             'return' => 'ids',
    15         ];
    16         $orders = wc_get_orders($args);
     8class AdminHelper {
     9    public function getSettingsDashboardWidgets(): array {
     10        $args   = [
     11            'status'       => [ 'wc-completed', 'wc-processing', 'wc-on-hold' ],
     12            'date_created' => '>=' . date( 'Y-m-d', strtotime( '-30 days' ) ),
     13            'return'       => 'ids',
     14        ];
     15        $orders = wc_get_orders( $args );
    1716
    1817        $total_earnings = 0;
    19         foreach ($orders as $order_id) {
    20             $order = wc_get_order($order_id);
     18        foreach ( $orders as $order_id ) {
     19            $order          = wc_get_order( $order_id );
    2120            $total_earnings += $order->get_total();
    2221        }
    2322
    24         $total_orders = count($orders);
    25 
    26         $args_last_month = [
    27             'status' => ['wc-completed', 'wc-processing', 'wc-on-hold'],
    28             'date_created' => date('Y-m-d', strtotime('-60 days')) . '...' . date('Y-m-d', strtotime('-31 days')),
    29             'return' => 'ids',
    30         ];
    31         $orders_last_month = wc_get_orders($args_last_month);
     23        $total_orders = count( $orders );
     24
     25        $args_last_month           = [
     26            'status'       => [ 'wc-completed', 'wc-processing', 'wc-on-hold' ],
     27            'date_created' => date( 'Y-m-d', strtotime( '-60 days' ) ) . '...' . date( 'Y-m-d', strtotime( '-31 days' ) ),
     28            'return'       => 'ids',
     29        ];
     30        $orders_last_month         = wc_get_orders( $args_last_month );
    3231        $total_earnings_last_month = 0;
    33         foreach ($orders_last_month as $order_id) {
    34             $order = wc_get_order($order_id);
     32        foreach ( $orders_last_month as $order_id ) {
     33            $order                     = wc_get_order( $order_id );
    3534            $total_earnings_last_month += $order->get_total();
    3635        }
    3736
    3837        $growth = $total_earnings_last_month > 0
    39             ? (($total_earnings - $total_earnings_last_month) / $total_earnings_last_month) * 100
     38            ? ( ( $total_earnings - $total_earnings_last_month ) / $total_earnings_last_month ) * 100
    4039            : 0;
    4140
    4241        return [
    4342            [
    44                 'key' => 'last_30_days_total_balance',
    45                 'title' => __("Son 30 Günlük Kazanç", 'woocommerce-iyzico'),
    46                 'value' => '₺' . number_format($total_earnings, 2),
    47                 'icon' => 'DollarSign',
     43                'key'     => 'last_30_days_total_balance',
     44                'title'   => __( "Son 30 Günlük Kazanç", 'woocommerce-iyzico' ),
     45                'value'   => '₺' . number_format( $total_earnings, 2 ),
     46                'icon'    => 'DollarSign',
    4847                'visible' => true,
    4948            ],
    5049            [
    51                 'key' => 'growth_from_last_month',
    52                 'title' => __("Geçen Aya Göre Büyüme", 'woocommerce-iyzico'),
    53                 'value' => number_format($growth, 2) . '%',
    54                 'icon' => 'TrendingUp',
     50                'key'     => 'growth_from_last_month',
     51                'title'   => __( "Geçen Aya Göre Büyüme", 'woocommerce-iyzico' ),
     52                'value'   => number_format( $growth, 2 ) . '%',
     53                'icon'    => 'TrendingUp',
    5554                'visible' => true,
    5655            ],
    5756            [
    58                 'key' => 'last_30_days_order_count',
    59                 'title' => __("Son 30 Gündeki Sipariş Sayısı", 'woocommerce-iyzico'),
    60                 'value' => $total_orders,
    61                 'icon' => 'ShoppingCart',
     57                'key'     => 'last_30_days_order_count',
     58                'title'   => __( "Son 30 Gündeki Sipariş Sayısı", 'woocommerce-iyzico' ),
     59                'value'   => $total_orders,
     60                'icon'    => 'ShoppingCart',
    6261                'visible' => true,
    6362            ],
     
    6564    }
    6665
    67     public function getSettingsDashboardCharts(): array
    68     {
     66    public function getSettingsDashboardCharts(): array {
    6967        $chart_data = [];
    7068
    71         for ($i = 29; $i >= 0; $i--) {
    72             $date = date('Y-m-d', strtotime('-' . $i . ' days'));
    73 
    74             $args = [
    75                 'status' => ['wc-completed', 'wc-processing', 'wc-on-hold', 'wc-pending', 'wc-failed'],
     69        for ( $i = 29; $i >= 0; $i -- ) {
     70            $date = date( 'Y-m-d', strtotime( '-' . $i . ' days' ) );
     71
     72            $args   = [
     73                'status'       => [ 'wc-completed', 'wc-processing', 'wc-on-hold', 'wc-pending', 'wc-failed' ],
    7674                'date_created' => $date,
    77                 'return' => 'ids',
    78             ];
    79             $orders = wc_get_orders($args);
    80 
    81             $total = count($orders);
     75                'return'       => 'ids',
     76            ];
     77            $orders = wc_get_orders( $args );
     78
     79            $total         = count( $orders );
    8280            $status_counts = [
    83                 'completed' => 0,
     81                'completed'  => 0,
    8482                'processing' => 0,
    85                 'pending' => 0,
    86                 'failed' => 0,
    87             ];
    88 
    89             foreach ($orders as $order_id) {
    90                 $order = wc_get_order($order_id);
     83                'pending'    => 0,
     84                'failed'     => 0,
     85            ];
     86
     87            foreach ( $orders as $order_id ) {
     88                $order  = wc_get_order( $order_id );
    9189                $status = $order->get_status();
    92                 if (isset($status_counts[$status])) {
    93                     $status_counts[$status]++;
     90                if ( isset( $status_counts[ $status ] ) ) {
     91                    $status_counts[ $status ] ++;
    9492                }
    9593            }
    9694
    9795            $chart_data[] = [
    98                 'day' => date('d M', strtotime($date)),
    99                 'total' => $total,
    100                 'completed' => $status_counts['completed'],
     96                'day'        => date( 'd M', strtotime( $date ) ),
     97                'total'      => $total,
     98                'completed'  => $status_counts['completed'],
    10199                'processing' => $status_counts['processing'],
    102                 'pending' => $status_counts['pending'],
    103                 'failed' => $status_counts['failed'],
    104             ];
    105         }
    106 
    107         $top_products_data = $this->getTopProductsData();
     100                'pending'    => $status_counts['pending'],
     101                'failed'     => $status_counts['failed'],
     102            ];
     103        }
     104
     105        $top_products_data   = $this->getTopProductsData();
    108106        $top_categories_data = $this->getTopCategoriesData();
    109107
    110108        return [
    111             'ordersData' => $chart_data,
    112             'topProductsData' => $top_products_data,
     109            'ordersData'        => $chart_data,
     110            'topProductsData'   => $top_products_data,
    113111            'topCategoriesData' => $top_categories_data,
    114112        ];
    115113    }
    116114
    117     public function getSettings()
    118     {
     115    public function getSettings() {
    119116        $checkoutSettings = new CheckoutSettings();
    120         $pwiSettings = new PwiSettings();
     117        $pwiSettings      = new PwiSettings();
    121118
    122119        $settings = [
    123             'iyzicoWebhookUrlKey' => get_site_url() . "/wp-json/iyzico/v1/webhook/" . get_option('iyzicoWebhookUrlKey'),
    124             'checkout' => $checkoutSettings->getSettings(),
    125             'pwi' => $pwiSettings->getSettings()
     120            'iyzicoWebhookUrlKey' => get_site_url() . "/wp-json/iyzico/v1/webhook/" . get_option( 'iyzicoWebhookUrlKey' ),
     121            'checkout'            => $checkoutSettings->getSettings(),
     122            'pwi'                 => $pwiSettings->getSettings()
    126123        ];
    127124
     
    129126    }
    130127
    131     public function saveSettings($request)
    132     {
     128    public function saveSettings( $request ) {
    133129        $checkoutSettings = new CheckoutSettings();
    134         $pwiSettings = new PwiSettings();
    135 
    136         $request = $request->get_params();
     130        $pwiSettings      = new PwiSettings();
     131
     132        $request    = $request->get_params();
    137133        $pwi_enable = $request['pwi_enabled'];
    138         unset($request['pwi_enabled']);
    139         unset($request['rest_route']);
    140         unset($request['_locale']);
    141 
    142         $pwi_data = [];
     134        unset( $request['pwi_enabled'] );
     135        unset( $request['rest_route'] );
     136        unset( $request['_locale'] );
     137
     138        $pwi_data            = [];
    143139        $pwi_data["enabled"] = $pwi_enable;
    144140
    145         $checkoutSettings->setSettings($request);
    146         $pwiSettings->setSettings($pwi_data);
    147 
    148         return rest_ensure_response([
     141        $checkoutSettings->setSettings( $request );
     142        $pwiSettings->setSettings( $pwi_data );
     143
     144        return rest_ensure_response( [
    149145            'success' => true,
    150         ]);
    151     }
    152 
    153     public function getOrders($request)
    154     {
    155         $page = $request->get_param('page') ? (int) $request->get_param('page') : 1;
    156         $per_page = $request->get_param('per_page') ? (int) $request->get_param('per_page') : 10;
    157         $search = $request->get_param('search') ? sanitize_text_field($request->get_param('search')) : '';
    158         $status = $request->get_param('status') ? sanitize_text_field($request->get_param('status')) : '';
     146        ] );
     147    }
     148
     149    public function getOrders( $request ) {
     150        $page     = $request->get_param( 'page' ) ? (int) $request->get_param( 'page' ) : 1;
     151        $per_page = $request->get_param( 'per_page' ) ? (int) $request->get_param( 'per_page' ) : 10;
     152        $search   = $request->get_param( 'search' ) ? sanitize_text_field( $request->get_param( 'search' ) ) : '';
     153        $status   = $request->get_param( 'status' ) ? sanitize_text_field( $request->get_param( 'status' ) ) : '';
    159154
    160155        $args = [
    161             'limit' => $per_page,
    162             'offset' => ($page - 1) * $per_page,
     156            'limit'    => $per_page,
     157            'offset'   => ( $page - 1 ) * $per_page,
    163158            'paginate' => true,
    164159        ];
    165160
    166         if (!empty($status) && $status !== 'all') {
    167             $args['status'] = ['wc-' . $status];
     161        if ( ! empty( $status ) && $status !== 'all' ) {
     162            $args['status'] = [ 'wc-' . $status ];
    168163        } else {
    169             $args['status'] = ['wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-cancelled', 'wc-refunded', 'wc-failed'];
    170         }
    171 
    172         if (!empty($search)) {
     164            $args['status'] = [
     165                'wc-pending',
     166                'wc-processing',
     167                'wc-on-hold',
     168                'wc-completed',
     169                'wc-cancelled',
     170                'wc-refunded',
     171                'wc-failed'
     172            ];
     173        }
     174
     175        if ( ! empty( $search ) ) {
    173176            $args['id'] = $search;
    174177        }
    175178
    176         $orders_query = wc_get_orders($args);
    177         $orders = $orders_query->orders;
     179        $orders_query = wc_get_orders( $args );
     180        $orders       = $orders_query->orders;
    178181        $total_orders = $orders_query->total;
    179         $total_pages = $orders_query->max_num_pages;
     182        $total_pages  = $orders_query->max_num_pages;
    180183
    181184        $orders_data = [];
    182185
    183         foreach ($orders as $order) {
     186        foreach ( $orders as $order ) {
    184187            $orders_data[] = [
    185                 'id' => $order->get_id(),
     188                'id'       => $order->get_id(),
    186189                'customer' => $order->get_formatted_billing_full_name(),
    187                 'date' => $order->get_date_created() ? $order->get_date_created()->date('Y-m-d H:i:s') : '',
    188                 'total' => $order->get_formatted_order_total(),
    189                 'status' => $order->get_status(),
    190             ];
    191         }
    192 
    193         return rest_ensure_response([
    194             'orders' => $orders_data,
    195             'total' => $total_orders,
    196             'total_pages' => $total_pages,
     190                'date'     => $order->get_date_created() ? $order->get_date_created()->date( 'Y-m-d H:i:s' ) : '',
     191                'total'    => $order->get_formatted_order_total(),
     192                'status'   => $order->get_status(),
     193            ];
     194        }
     195
     196        return rest_ensure_response( [
     197            'orders'       => $orders_data,
     198            'total'        => $total_orders,
     199            'total_pages'  => $total_pages,
    197200            'current_page' => $page,
    198         ]);
    199     }
    200 
    201     private function getTopProductsData(): array
    202     {
     201        ] );
     202    }
     203
     204    private function getTopProductsData(): array {
    203205        global $wpdb;
    204206
    205         $results = $wpdb->get_results("
     207        $results = $wpdb->get_results( "
    206208        SELECT order_item_meta.meta_value AS product_id, SUM(order_item_meta_qty.meta_value) AS quantity
    207209        FROM {$wpdb->prefix}woocommerce_order_items AS order_items
     
    214216        ORDER BY quantity DESC
    215217        LIMIT 5
    216     ");
     218    " );
    217219
    218220        $top_products_data = [];
    219         foreach ($results as $row) {
    220             $product = wc_get_product($row->product_id);
    221             if ($product) {
     221        foreach ( $results as $row ) {
     222            $product = wc_get_product( $row->product_id );
     223            if ( $product ) {
    222224                $top_products_data[] = [
    223                     'name' => $product->get_name(),
     225                    'name'  => $product->get_name(),
    224226                    'value' => (int) $row->quantity,
    225227                ];
     
    230232    }
    231233
    232     private function getTopCategoriesData(): array
    233     {
     234    private function getTopCategoriesData(): array {
    234235        global $wpdb;
    235236
    236         $results = $wpdb->get_results("
     237        $results = $wpdb->get_results( "
    237238        SELECT term_taxonomy.term_id, COUNT(*) as count
    238239        FROM {$wpdb->prefix}term_relationships AS term_relationships
     
    243244        ORDER BY count DESC
    244245        LIMIT 5
    245     ");
     246    " );
    246247
    247248        $top_categories_data = [];
    248         foreach ($results as $row) {
    249             $term = get_term($row->term_id);
    250             if ($term) {
     249        foreach ( $results as $row ) {
     250            $term = get_term( $row->term_id );
     251            if ( $term ) {
    251252                $top_categories_data[] = [
    252                     'name' => $term->name,
     253                    'name'  => $term->name,
    253254                    'value' => (int) $row->count,
    254255                ];
  • iyzico-woocommerce/trunk/includes/Common/Helpers/BuyerProtection.php

    r3161557 r3161792  
    22
    33namespace Iyzico\IyzipayWoocommerce\Common\Helpers;
     4
    45use Iyzico\IyzipayWoocommerce\Checkout\CheckoutSettings;
    56
    6 class BuyerProtection
    7 {
     7class BuyerProtection {
    88
    99    protected $checkoutSettings;
    1010
    11     public function __construct()
    12     {
     11    public function __construct() {
    1312        $this->checkoutSettings = new CheckoutSettings();
    1413    }
    1514
    1615
    17     public function getOverlayScript()
    18     {
     16    public function getOverlayScript() {
    1917
    20         $token = get_option('iyzico_overlay_token');
    21         $position = $this->checkoutSettings->findByKey('overlay_script');
     18        $token    = get_option( 'iyzico_overlay_token' );
     19        $position = $this->checkoutSettings->findByKey( 'overlay_script' );
    2220
    2321        $overlayScript = false;
    2422
    2523
    26         if ($position != 'hide') {
     24        if ( $position != 'hide' ) {
    2725            $overlayScript = "<script> window.iyz = { token:'" . $token . "', position:'" . $position . "',ideaSoft: false, pwi:true};</script>
    2826                    <script src='https://static.iyzipay.com/buyer-protection/buyer-protection.js' type='text/javascript'></script>";
     
    3230    }
    3331
    34     public static function iyzicoOverlayScriptMobileCss()
    35     {
     32    public static function iyzicoOverlayScriptMobileCss() {
    3633
    3734        echo '<style>
  • iyzico-woocommerce/trunk/includes/Common/Helpers/DataFactory.php

    r3161557 r3161792  
    6363
    6464    protected function createBasket( array $cart ): array {
    65         $basketItems = [];
    6665        foreach ( $cart as $item ) {
    6766            $product    = $item['data'];
     
    7473                $category_names = wp_list_pluck( $categories, 'name' );
    7574                $basketItem->setCategory1( implode( ', ', $category_names ) );
     75            } else {
     76                $basketItem->setCategory1('UNKNOWN');
    7677            }
    7778
    78             $basketItem->setItemType( BasketItemType::PHYSICAL );
     79            $basketItem->setItemType( $product->is_virtual() ? BasketItemType::VIRTUAL : BasketItemType::PHYSICAL );
    7980            $basketItem->setPrice( $item['quantity'] * $this->priceHelper->priceParser( $product->get_price() ) );
    8081            $basketItems[] = $basketItem;
     
    8586
    8687    public function prepareCheckoutData( $customer, WC_Order $order, array $cart ): array {
    87         return [
     88        $cartHasPhysicalProduct = $this->cartHasPhysicalProduct( $cart );
     89        $data                   = [
    8890            'buyer'           => $this->createBuyer( $customer, $order ),
    8991            'billingAddress'  => $this->createAddress( $order, 'billing' ),
     
    9193            'basketItems'     => $this->createBasket( $cart ),
    9294        ];
     95
     96        if ( ! $cartHasPhysicalProduct ) {
     97            unset( $data['shippingAddress'] );
     98        }
     99
     100        return $data;
     101
    93102    }
    94103
     104    protected function cartHasPhysicalProduct( array $cart ): bool {
     105        foreach ( $cart as $item ) {
     106            if ( ! $item['data']->is_virtual() ) {
     107                return true;
     108            }
     109        }
     110
     111        return false;
     112    }
    95113}
  • iyzico-woocommerce/trunk/includes/Common/Helpers/HighPerformanceOrderStorageSupport.php

    r3161557 r3161792  
    1010 * @package Iyzico\IyzipayWoocommerce\Core
    1111 */
    12 class HighPerformanceOrderStorageSupport
    13 {
     12class HighPerformanceOrderStorageSupport {
    1413    /**
    1514     * Initialize the class
    1615     */
    17     public static function init(): void
    18     {
    19         add_action('before_woocommerce_init', [self::class, 'woocommerce_hpos_compatibility']);
     16    public static function init(): void {
     17        add_action( 'before_woocommerce_init', [ self::class, 'woocommerce_hpos_compatibility' ] );
    2018    }
    2119
     
    2321     * Declare compatibility with WooCommerce High Performance Order Storage
    2422     */
    25     public static function woocommerce_hpos_compatibility(): void
    26     {
    27         if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) {
    28             FeaturesUtil::declare_compatibility('custom_order_tables', PLUGIN_BASEFILE, true);
     23    public static function woocommerce_hpos_compatibility(): void {
     24        if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
     25            FeaturesUtil::declare_compatibility( 'custom_order_tables', PLUGIN_BASEFILE, true );
    2926        }
    3027    }
  • iyzico-woocommerce/trunk/includes/Common/Helpers/PaymentProcessor.php

    r3161557 r3161792  
    1414use WC_Order_Item_Fee;
    1515
    16 class PaymentProcessor
    17 {
     16class PaymentProcessor {
    1817
    1918    protected $logger;
     
    3433        DatabaseManager $databaseManager
    3534    ) {
    36         $this->logger = $logger;
    37         $this->priceHelper = $priceHelper;
    38         $this->cookieManager = $cookieManager;
    39         $this->versionChecker = $versionChecker;
    40         $this->tlsVerifier = $tlsVerifier;
     35        $this->logger           = $logger;
     36        $this->priceHelper      = $priceHelper;
     37        $this->cookieManager    = $cookieManager;
     38        $this->versionChecker   = $versionChecker;
     39        $this->tlsVerifier      = $tlsVerifier;
    4140        $this->checkoutSettings = $checkoutSettings;
    42         $this->databaseManager = $databaseManager;
    43     }
    44 
    45     public function processCallback(): void
    46     {
     41        $this->databaseManager  = $databaseManager;
     42    }
     43
     44    public function processCallback(): void {
    4745        try {
    4846            $this->validateToken();
    4947            $checkoutFormResult = $this->retrieveCheckoutForm();
    50             $order = $this->getOrder($checkoutFormResult->getBasketId());
    51             $this->ensurePaymentMethod($order);
     48            $order              = $this->getOrder( $checkoutFormResult->getBasketId() );
     49            $this->ensurePaymentMethod( $order );
    5250
    5351            /** Use Mapper */
    54             $checkoutFormResult = CheckoutFormMapper::create($checkoutFormResult)
    55                 ->mapCheckoutForm($checkoutFormResult);
    56 
    57             $this->addOrderComment($checkoutFormResult, $order);
    58             $this->saveUserCard($checkoutFormResult);
    59             $this->checkInstallment($checkoutFormResult, $order);
    60             $this->saveCardType($checkoutFormResult, $order);
    61             $this->saveCardAssociation($checkoutFormResult, $order);
    62             $this->saveCardFamily($checkoutFormResult, $order);
    63             $this->saveLastFourDigits($checkoutFormResult, $order);
    64             $this->updateOrder($checkoutFormResult, $order);
    65             $this->saveOrder($checkoutFormResult, $order);
    66             $this->redirectToOrderReceived($checkoutFormResult, $order);
    67 
    68         } catch (Exception $e) {
    69             $this->handleException($e);
    70         }
    71     }
    72 
    73     public function processWebhook($response)
    74     {
     52            $checkoutFormResult = CheckoutFormMapper::create( $checkoutFormResult )
     53                                                    ->mapCheckoutForm( $checkoutFormResult );
     54
     55            $this->addOrderComment( $checkoutFormResult, $order );
     56            $this->saveUserCard( $checkoutFormResult );
     57            $this->checkInstallment( $checkoutFormResult, $order );
     58            $this->saveCardType( $checkoutFormResult, $order );
     59            $this->saveCardAssociation( $checkoutFormResult, $order );
     60            $this->saveCardFamily( $checkoutFormResult, $order );
     61            $this->saveLastFourDigits( $checkoutFormResult, $order );
     62            $this->updateOrder( $checkoutFormResult, $order );
     63            $this->saveOrder( $checkoutFormResult, $order );
     64            $this->redirectToOrderReceived( $checkoutFormResult, $order );
     65
     66        } catch ( Exception $e ) {
     67            $this->handleException( $e );
     68        }
     69    }
     70
     71    public function processWebhook( $response ) {
    7572        try {
    76             $checkoutFormResult = $this->retrieveCheckoutFormV2($response['token']);
    77             $order = $this->getOrder($checkoutFormResult->getBasketId());
    78 
    79             if ($order->get_status() == 'completed' || $order->get_status() == 'processing') {
    80                 return http_response_code(200);
    81             }
    82 
    83             if ($response['iyziEventType'] == 'CREDIT_PAYMENT_PENDING' && $checkoutFormResult->getPaymentStatus() == 'PENDING_CREDIT') {
    84                 $orderMessage = __("Currently in the process of applying for a shopping loan.", "woocommerce-iyzico");
    85                 $order->add_order_note($orderMessage, 0, true);
    86                 $order->update_status("on-hold");
    87 
    88                 return http_response_code(200);
    89             }
    90 
    91             if ($response['iyziEventType'] == 'CREDIT_PAYMENT_AUTH' && $checkoutFormResult->getStatus() == 'success') {
    92                 $orderMessage = __("The shopping loan transaction was completed successfully.", "woocommerce-iyzico");
    93                 $order->add_order_note($orderMessage, 0, true);
    94                 $order->update_status("processing");
    95 
    96                 return http_response_code(200);
    97             }
    98 
    99             if ($response['iyziEventType'] == 'CREDIT_PAYMENT_INIT' && $checkoutFormResult->getStatus() == 'INIT_CREDIT') {
    100                 $orderMessage = __("The shopping credit transaction has been initiated.", "woocommerce-iyzico");
    101                 $order->add_order_note($orderMessage, 0, true);
    102                 $order->update_status("on-hold");
    103 
    104                 return http_response_code(200);
    105             }
    106 
    107 
    108         } catch (Exception $e) {
    109             $this->handleException($e);
    110         }
    111     }
    112 
    113     private function addOrderComment($checkoutFormResult, $order)
    114     {
     73            $checkoutFormResult = $this->retrieveCheckoutFormV2( $response['token'] );
     74            $order              = $this->getOrder( $checkoutFormResult->getBasketId() );
     75
     76            if ( $order->get_status() == 'completed' || $order->get_status() == 'processing' ) {
     77                return http_response_code( 200 );
     78            }
     79
     80            if ( $response['iyziEventType'] == 'CREDIT_PAYMENT_PENDING' && $checkoutFormResult->getPaymentStatus() == 'PENDING_CREDIT' ) {
     81                $orderMessage = __( "Currently in the process of applying for a shopping loan.", "woocommerce-iyzico" );
     82                $order->add_order_note( $orderMessage, 0, true );
     83                $order->update_status( "on-hold" );
     84
     85                return http_response_code( 200 );
     86            }
     87
     88            if ( $response['iyziEventType'] == 'CREDIT_PAYMENT_AUTH' && $checkoutFormResult->getStatus() == 'success' ) {
     89                $orderMessage = __( "The shopping loan transaction was completed successfully.", "woocommerce-iyzico" );
     90                $order->add_order_note( $orderMessage, 0, true );
     91                $order->update_status( "processing" );
     92
     93                return http_response_code( 200 );
     94            }
     95
     96            if ( $response['iyziEventType'] == 'CREDIT_PAYMENT_INIT' && $checkoutFormResult->getStatus() == 'INIT_CREDIT' ) {
     97                $orderMessage = __( "The shopping credit transaction has been initiated.", "woocommerce-iyzico" );
     98                $order->add_order_note( $orderMessage, 0, true );
     99                $order->update_status( "on-hold" );
     100
     101                return http_response_code( 200 );
     102            }
     103
     104
     105        } catch ( Exception $e ) {
     106            $this->handleException( $e );
     107        }
     108    }
     109
     110    private function addOrderComment( $checkoutFormResult, $order ) {
    115111        $message = "Payment ID: " . $checkoutFormResult->getPaymentId();
    116         $order->add_order_note($message, 0, true);
    117 
    118         if ($this->checkoutSettings->findByKey('api_type') === "https://sandbox-api.iyzipay.com") {
     112        $order->add_order_note( $message, 0, true );
     113
     114        if ( $this->checkoutSettings->findByKey( 'api_type' ) === "https://sandbox-api.iyzipay.com" ) {
    119115            $message = '<strong><p style="color:red">TEST ÖDEMESİ</a></strong>';
    120             $order->add_order_note($message, 0, true);
    121         }
    122     }
    123 
    124     private function checkInstallment($response, $order)
    125     {
    126         if (isset($response) && !empty($response->getInstallment()) && $response->getInstallment() > 1) {
    127             $orderData = $order->get_data();
     116            $order->add_order_note( $message, 0, true );
     117        }
     118    }
     119
     120    private function checkInstallment( $response, $order ) {
     121        if ( isset( $response ) && ! empty( $response->getInstallment() ) && $response->getInstallment() > 1 ) {
     122            $orderData  = $order->get_data();
    128123            $orderTotal = $orderData['total'];
    129124
    130125            $installmentFee = $response->getPaidPrice() - $orderTotal;
    131             $itemFee = new WC_Order_Item_Fee();
    132             $itemFee->set_name($response->getInstallment() . " " . __("Installment Commission", 'woocommerce-iyzico'));
    133             $itemFee->set_amount($installmentFee);
    134             $itemFee->set_tax_class('');
    135             $itemFee->set_tax_status('none');
    136             $itemFee->set_total($installmentFee);
    137 
    138             $order->add_item($itemFee);
    139             $order->calculate_totals(true);
    140 
    141             $order->update_meta_data('iyzico_no_of_installment', $response->installment);
    142             $order->update_meta_data('iyzico_installment_fee', $installmentFee);
    143         }
    144     }
    145 
    146     private function saveCardFamily($response, $order)
    147     {
    148         if (isset($response) && !empty($response->getCardFamily())) {
    149             $order->update_meta_data('iyzico_card_family', $response->getCardFamily());
    150         }
    151     }
    152 
    153     private function saveCardAssociation($response, $order)
    154     {
    155         if (isset($response) && !empty($response->getCardAssociation())) {
    156             $order->update_meta_data('iyzico_card_association', $response->getCardAssociation());
    157         }
    158     }
    159 
    160     private function saveCardType($response, $order)
    161     {
    162         if (isset($response) && !empty($response->getCardType())) {
    163             $order->update_meta_data('iyzico_card_type', $response->getCardType());
    164         }
    165     }
    166 
    167     private function saveLastFourDigits($response, $order)
    168     {
    169         if (isset($response) && !empty($response->getBinNumber())) {
    170             $order->update_meta_data('iyzico_last_four_digits', $response->getLastFourDigits());
    171         }
    172     }
    173 
    174     /**
    175      * @throws Exception
    176      */
    177     private function validateToken(): void
    178     {
    179         if (empty($_POST['token'])) {
    180             throw new Exception(__("Payment token is missing. Please try again or contact the store owner if the problem persists.", "woocommerce-iyzico"));
    181         }
    182     }
    183 
    184     /**
    185      * @throws Exception
    186      */
    187     private function retrieveCheckoutForm()
    188     {
     126            $itemFee        = new WC_Order_Item_Fee();
     127            $itemFee->set_name( $response->getInstallment() . " " . __( "Installment Commission", 'woocommerce-iyzico' ) );
     128            $itemFee->set_amount( $installmentFee );
     129            $itemFee->set_tax_class( '' );
     130            $itemFee->set_tax_status( 'none' );
     131            $itemFee->set_total( $installmentFee );
     132
     133            $order->add_item( $itemFee );
     134            $order->calculate_totals( true );
     135
     136            $order->update_meta_data( 'iyzico_no_of_installment', $response->installment );
     137            $order->update_meta_data( 'iyzico_installment_fee', $installmentFee );
     138        }
     139    }
     140
     141    private function saveCardFamily( $response, $order ) {
     142        if ( isset( $response ) && ! empty( $response->getCardFamily() ) ) {
     143            $order->update_meta_data( 'iyzico_card_family', $response->getCardFamily() );
     144        }
     145    }
     146
     147    private function saveCardAssociation( $response, $order ) {
     148        if ( isset( $response ) && ! empty( $response->getCardAssociation() ) ) {
     149            $order->update_meta_data( 'iyzico_card_association', $response->getCardAssociation() );
     150        }
     151    }
     152
     153    private function saveCardType( $response, $order ) {
     154        if ( isset( $response ) && ! empty( $response->getCardType() ) ) {
     155            $order->update_meta_data( 'iyzico_card_type', $response->getCardType() );
     156        }
     157    }
     158
     159    private function saveLastFourDigits( $response, $order ) {
     160        if ( isset( $response ) && ! empty( $response->getBinNumber() ) ) {
     161            $order->update_meta_data( 'iyzico_last_four_digits', $response->getLastFourDigits() );
     162        }
     163    }
     164
     165    /**
     166     * @throws Exception
     167     */
     168    private function validateToken(): void {
     169        if ( empty( $_POST['token'] ) ) {
     170            throw new Exception( __( "Payment token is missing. Please try again or contact the store owner if the problem persists.", "woocommerce-iyzico" ) );
     171        }
     172    }
     173
     174    /**
     175     * @throws Exception
     176     */
     177    private function retrieveCheckoutForm() {
    189178        $request = new RetrieveCheckoutFormRequest();
    190         $locale = $this->checkoutSettings->findByKey('form_language') ?? "tr";
    191         $request->setLocale($locale);
    192         $request->setToken($_POST['token']);
    193 
    194         $checkoutFormResult = CheckoutFormModel::retrieve($request, $this->createOptions());
    195 
    196         if (!$checkoutFormResult || $checkoutFormResult->getStatus() !== 'success') {
    197             throw new Exception(__("Payment process failed. Please try again or choose a different payment method.", "woocommerce-iyzico"));
     179        $locale  = $this->checkoutSettings->findByKey( 'form_language' ) ?? "tr";
     180        $request->setLocale( $locale );
     181        $request->setToken( $_POST['token'] );
     182
     183        $checkoutFormResult = CheckoutFormModel::retrieve( $request, $this->createOptions() );
     184
     185        if ( ! $checkoutFormResult || $checkoutFormResult->getStatus() !== 'success' ) {
     186            throw new Exception( __( "Payment process failed. Please try again or choose a different payment method.", "woocommerce-iyzico" ) );
    198187        }
    199188
     
    204193     * @throws Exception
    205194     */
    206     private function retrieveCheckoutFormV2(string $token)
    207     {
     195    private function retrieveCheckoutFormV2( string $token ) {
    208196        $request = new RetrieveCheckoutFormRequest();
    209         $locale = $this->checkoutSettings->findByKey('form_language') ?? "tr";
    210         $request->setLocale($locale);
    211         $request->setToken($token);
    212 
    213         $checkoutFormResult = CheckoutFormModel::retrieve($request, $this->createOptions());
    214 
    215         if (!$checkoutFormResult || $checkoutFormResult->getStatus() !== 'success') {
    216             throw new Exception(__("Payment process failed. Please try again or choose a different payment method.", "woocommerce-iyzico"));
     197        $locale  = $this->checkoutSettings->findByKey( 'form_language' ) ?? "tr";
     198        $request->setLocale( $locale );
     199        $request->setToken( $token );
     200
     201        $checkoutFormResult = CheckoutFormModel::retrieve( $request, $this->createOptions() );
     202
     203        if ( ! $checkoutFormResult || $checkoutFormResult->getStatus() !== 'success' ) {
     204            throw new Exception( __( "Payment process failed. Please try again or choose a different payment method.", "woocommerce-iyzico" ) );
    217205        }
    218206
     
    223211     * @throws Exception
    224212     */
    225     private function getOrder($basketId): WC_Order
    226     {
    227         $order = wc_get_order($basketId);
    228 
    229         if (!$order) {
    230             throw new Exception(__("Order not found.", "woocommerce-iyzico"));
     213    private function getOrder( $basketId ): WC_Order {
     214        $order = wc_get_order( $basketId );
     215
     216        if ( ! $order ) {
     217            throw new Exception( __( "Order not found.", "woocommerce-iyzico" ) );
    231218        }
    232219
     
    237224     * @throws WC_Data_Exception
    238225     */
    239     private function ensurePaymentMethod(WC_Order $order): void
    240     {
    241         if ($order->get_payment_method_title() !== 'iyzico') {
    242             $order->set_payment_method('iyzico');
    243         }
    244     }
    245 
    246     private function updateOrder($checkoutFormResult, WC_Order $order): void
    247     {
    248         if ($checkoutFormResult->getPaymentStatus() === 'SUCCESS' && $checkoutFormResult->getStatus() === 'success') {
     226    private function ensurePaymentMethod( WC_Order $order ): void {
     227        if ( $order->get_payment_method_title() !== 'iyzico' ) {
     228            $order->set_payment_method( 'iyzico' );
     229        }
     230    }
     231
     232    private function updateOrder( $checkoutFormResult, WC_Order $order ): void {
     233        if ( $checkoutFormResult->getPaymentStatus() === 'SUCCESS' && $checkoutFormResult->getStatus() === 'success' ) {
    249234            $order->payment_complete();
    250235            $order->save();
    251236
    252             $orderStatus = $this->checkoutSettings->findByKey('order_status');
    253 
    254             if ($orderStatus !== 'default' && !empty($orderStatus)) {
    255                 $order->update_status($orderStatus);
    256             }
    257         }
    258 
    259         if ($checkoutFormResult->getPaymentStatus() === "INIT_BANK_TRANSFER" && $checkoutFormResult->getStatus() === "success") {
    260             $order->update_status("on-hold");
    261             $orderMessage = __('iyzico Bank transfer/EFT payment is pending.', 'woocommerce-iyzico');
    262             $order->add_order_note($orderMessage, 0, true);
    263         }
    264 
    265         if ($checkoutFormResult->getPaymentStatus() === "PENDING_CREDIT" && $checkoutFormResult->getStatus() === "success") {
    266             $order->update_status("on-hold");
    267             $orderMessage = __('The shopping credit transaction has been initiated.', 'woocommerce-iyzico');
    268             $order->add_order_note($orderMessage, 0, true);
    269         }
    270     }
    271 
    272     private function saveUserCard($checkoutFormResult)
    273     {
    274         if (isset($checkoutFormResult->cardUserKey)) {
     237            $orderStatus = $this->checkoutSettings->findByKey( 'order_status' );
     238
     239            if ( $orderStatus !== 'default' && ! empty( $orderStatus ) ) {
     240                $order->update_status( $orderStatus );
     241            }
     242        }
     243
     244        if ( $checkoutFormResult->getPaymentStatus() === "INIT_BANK_TRANSFER" && $checkoutFormResult->getStatus() === "success" ) {
     245            $order->update_status( "on-hold" );
     246            $orderMessage = __( 'iyzico Bank transfer/EFT payment is pending.', 'woocommerce-iyzico' );
     247            $order->add_order_note( $orderMessage, 0, true );
     248        }
     249
     250        if ( $checkoutFormResult->getPaymentStatus() === "PENDING_CREDIT" && $checkoutFormResult->getStatus() === "success" ) {
     251            $order->update_status( "on-hold" );
     252            $orderMessage = __( 'The shopping credit transaction has been initiated.', 'woocommerce-iyzico' );
     253            $order->add_order_note( $orderMessage, 0, true );
     254        }
     255    }
     256
     257    private function saveUserCard( $checkoutFormResult ) {
     258        if ( isset( $checkoutFormResult->cardUserKey ) ) {
    275259            $customer = wp_get_current_user();
    276260
    277             if ($customer->ID) {
    278                 $cardUserKey = $this->databaseManager->findUserCardKey($customer->ID, $this->checkoutSettings->findByKey('api_key'));
    279 
    280                 if ($checkoutFormResult->cardUserKey != $cardUserKey) {
    281                     $this->databaseManager->saveUserCardKey($customer->ID, $checkoutFormResult->cardUserKey, $this->checkoutSettings->findByKey('api_key'));
     261            if ( $customer->ID ) {
     262                $cardUserKey = $this->databaseManager->findUserCardKey( $customer->ID, $this->checkoutSettings->findByKey( 'api_key' ) );
     263
     264                if ( $checkoutFormResult->cardUserKey != $cardUserKey ) {
     265                    $this->databaseManager->saveUserCardKey( $customer->ID, $checkoutFormResult->cardUserKey, $this->checkoutSettings->findByKey( 'api_key' ) );
    282266                }
    283267
     
    286270    }
    287271
    288     private function saveOrder($checkoutFormResult, WC_Order $order)
    289     {
    290         if ($checkoutFormResult->getStatus() === "success") {
     272    private function saveOrder( $checkoutFormResult, WC_Order $order ) {
     273        if ( $checkoutFormResult->getStatus() === "success" ) {
    291274
    292275            $orderId = $order->get_id();
    293276            $checkoutFormResult->getPaymentId();
    294277            $totalAmount = $checkoutFormResult->getPaidPrice();
    295             $status = $checkoutFormResult->getStatus();
     278            $status      = $checkoutFormResult->getStatus();
    296279
    297280            $this->databaseManager->createOrder(
     
    309292     * @throws Exception
    310293     */
    311     private function redirectToOrderReceived($checkoutFormResult, WC_Order $order): void
    312     {
    313         if ($checkoutFormResult->getStatus() === "success" && $checkoutFormResult->getPaymentStatus() !== "FAILURE") {
     294    private function redirectToOrderReceived( $checkoutFormResult, WC_Order $order ): void {
     295        if ( $checkoutFormResult->getStatus() === "success" && $checkoutFormResult->getPaymentStatus() !== "FAILURE" ) {
    314296            $checkoutOrderUrl = $order->get_checkout_order_received_url();
    315             $redirectUrl = add_query_arg([
    316                 'msg' => 'Thank You',
     297            $redirectUrl      = add_query_arg( [
     298                'msg'  => 'Thank You',
    317299                'type' => 'woocommerce-message'
    318             ], $checkoutOrderUrl);
    319 
    320             wp_redirect($redirectUrl);
     300            ], $checkoutOrderUrl );
     301
     302            wp_redirect( $redirectUrl );
    321303            exit;
    322304        }
    323305
    324         throw new Exception(__("Error", "woocommerce-iyzico"));
    325     }
    326 
    327     private function handleException(Exception $e): void
    328     {
    329         $this->logger->error('PaymentProcessor.php: ' . $e->getMessage());
    330         WC()->session->set('iyzico_error', $e->getMessage());
    331         wp_redirect(wc_get_checkout_url() . '?payment=failed');
     306        throw new Exception( __( "Error", "woocommerce-iyzico" ) );
     307    }
     308
     309    private function handleException( Exception $e ): void {
     310        $this->logger->error( 'PaymentProcessor.php: ' . $e->getMessage() );
     311        WC()->session->set( 'iyzico_error', $e->getMessage() );
     312        wp_redirect( wc_get_checkout_url() . '?payment=failed' );
    332313        exit;
    333314    }
    334315
    335     protected function createOptions(): Options
    336     {
     316    protected function createOptions(): Options {
    337317        $options = new Options();
    338         $options->setApiKey($this->checkoutSettings->findByKey('api_key'));
    339         $options->setSecretKey($this->checkoutSettings->findByKey('secret_key'));
    340         $options->setBaseUrl($this->checkoutSettings->findByKey('api_type'));
     318        $options->setApiKey( $this->checkoutSettings->findByKey( 'api_key' ) );
     319        $options->setSecretKey( $this->checkoutSettings->findByKey( 'secret_key' ) );
     320        $options->setBaseUrl( $this->checkoutSettings->findByKey( 'api_type' ) );
    341321
    342322        return $options;
  • iyzico-woocommerce/trunk/includes/Common/Helpers/PriceHelper.php

    r3161557 r3161792  
    33namespace Iyzico\IyzipayWoocommerce\Common\Helpers;
    44
    5 class PriceHelper
    6 {
     5class PriceHelper {
    76
    8     public function subTotalPriceCalc($items, $data)
    9     {
     7    public function subTotalPriceCalc( $items, $data ) {
    108
    119        $price = 0;
    1210
    13         $itemSize = count($items);
    14         if (!$itemSize) {
     11        $itemSize = count( $items );
     12        if ( ! $itemSize ) {
    1513            $price = $data->get_total();
    16             return $this->priceParser($price);
     14
     15            return $this->priceParser( $price );
    1716        }
    1817
    19         foreach ($items as $item) {
    20             if ($item['variation_id']) {
     18        foreach ( $items as $item ) {
     19            if ( $item['variation_id'] ) {
    2120                $productId = $item['variation_id'];
    2221            } else {
     
    2423            }
    2524
    26             $product = wc_get_product($productId);
    27             $realPrice = $this->realPrice($product->get_sale_price(), $product->get_price()) * $item['quantity'];
    28             $price += round($realPrice, 2);
     25            $product   = wc_get_product( $productId );
     26            $realPrice = $this->realPrice( $product->get_sale_price(), $product->get_price() ) * $item['quantity'];
     27            $price     += round( $realPrice, 2 );
    2928        }
    3029
    3130        $shipping = $data->get_total_shipping() + $data->get_shipping_tax();
    32         if ($shipping) {
     31        if ( $shipping ) {
    3332            $price += $shipping;
    3433        }
    3534
    36         return $this->priceParser($price);
     35        return $this->priceParser( $price );
    3736    }
    3837
    39     public function priceParser($price)
    40     {
     38    public function priceParser( $price ) {
    4139
    42         if (strpos($price, ".") === false) {
     40        if ( strpos( $price, "." ) === false ) {
    4341            return $price . ".0";
    4442        }
    4543
    46         $subStrIndex = 0;
    47         $priceReversed = strrev($price);
     44        $subStrIndex   = 0;
     45        $priceReversed = strrev( $price );
    4846
    49         for ($i = 0; $i < strlen($priceReversed); $i++) {
    50             if (strcmp($priceReversed[$i], "0") == 0) {
     47        for ( $i = 0; $i < strlen( $priceReversed ); $i ++ ) {
     48            if ( strcmp( $priceReversed[ $i ], "0" ) == 0 ) {
    5149                $subStrIndex = $i + 1;
    52             } else if (strcmp($priceReversed[$i], ".") == 0) {
     50            } else if ( strcmp( $priceReversed[ $i ], "." ) == 0 ) {
    5351                $priceReversed = "0" . $priceReversed;
    5452                break;
     
    5856        }
    5957
    60         return strrev(substr($priceReversed, $subStrIndex));
     58        return strrev( substr( $priceReversed, $subStrIndex ) );
    6159    }
    6260
    63     protected function realPrice($salePrice, $regularPrice)
    64     {
    65         if (empty($salePrice)) {
     61    protected function realPrice( $salePrice, $regularPrice ) {
     62        if ( empty( $salePrice ) ) {
    6663            $salePrice = $regularPrice;
    6764        }
     65
    6866        return $salePrice;
    6967    }
  • iyzico-woocommerce/trunk/includes/Common/Helpers/RefundProcessor.php

    r3161557 r3161792  
    1111use Iyzipay\Request\AmountBaseRefundRequest;
    1212
    13 class RefundProcessor
    14 {
     13class RefundProcessor {
    1514    private Logger $logger;
    1615    private DatabaseManager $databaseManager;
     
    1817    private CheckoutSettings $checkoutSettings;
    1918
    20     public function __construct()
    21     {
    22         $this->logger = new Logger();
    23         $this->databaseManager = new DatabaseManager();
    24         $this->priceHelper = new PriceHelper();
     19    public function __construct() {
     20        $this->logger           = new Logger();
     21        $this->databaseManager  = new DatabaseManager();
     22        $this->priceHelper      = new PriceHelper();
    2523        $this->checkoutSettings = new CheckoutSettings();
    2624    }
    2725
    28     public function refund($orderId, $amount)
    29     {
    30         $order = $this->getOrderByOrderId($orderId);
     26    public function refund( $orderId, $amount ) {
     27        $order = $this->getOrderByOrderId( $orderId );
    3128
    32         if (is_null($order)) {
    33             $this->logger->error('RefundProcessor: Order not found for order id ' . $orderId);
     29        if ( is_null( $order ) ) {
     30            $this->logger->error( 'RefundProcessor: Order not found for order id ' . $orderId );
     31
    3432            return false;
    3533        }
     
    3735        $paymentId = $order['payment_id'];
    3836
    39         if (is_null($amount)) {
     37        if ( is_null( $amount ) ) {
    4038            $amount = $order['total_amount'];
    4139        }
     
    4442
    4543        $request = new AmountBaseRefundRequest();
    46         $request->setPaymentId($paymentId);
    47         $request->setPrice($this->priceHelper->priceParser($amount));
    48         $request->setIp($_SERVER['REMOTE_ADDR']);
     44        $request->setPaymentId( $paymentId );
     45        $request->setPrice( $this->priceHelper->priceParser( $amount ) );
     46        $request->setIp( $_SERVER['REMOTE_ADDR'] );
    4947
    50         $response = AmountBaseRefund::create($request, $options);
     48        $response = AmountBaseRefund::create( $request, $options );
    5149
    52         if ($response->getStatus() == 'success') {
    53             $order = new \WC_Order($orderId);
     50        if ( $response->getStatus() == 'success' ) {
     51            $order = new \WC_Order( $orderId );
    5452            $order->add_order_note(
    55                 sprintf(__('Refunded %s', 'woocommerce-iyzico'), $amount)
     53                sprintf( __( 'Refunded %s', 'woocommerce-iyzico' ), $amount )
    5654            );
    5755
    58             $this->logger->info('RefundProcessor: Refund successful for order ' . $orderId);
     56            $this->logger->info( 'RefundProcessor: Refund successful for order ' . $orderId );
     57
    5958            return true;
    6059        }
     
    6665     * @throws Exception
    6766     */
    68     private function isCancellationAvailable($orderId): bool
    69     {
    70         $order = $this->getOrderByOrderId($orderId);
     67    private function isCancellationAvailable( $orderId ): bool {
     68        $order = $this->getOrderByOrderId( $orderId );
    7169
    72         $orderDate = new DateTime($order->created_at);
    73         $now = new DateTime();
    74         $interval = $now->diff($orderDate);
    75         if ($interval->days > 1) {
    76             $this->logger->error('RefundProcessor: Order cancellation is not available for order ' . $orderId . ' because it is older than 24 hours.');
     70        $orderDate = new DateTime( $order->created_at );
     71        $now       = new DateTime();
     72        $interval  = $now->diff( $orderDate );
     73        if ( $interval->days > 1 ) {
     74            $this->logger->error( 'RefundProcessor: Order cancellation is not available for order ' . $orderId . ' because it is older than 24 hours.' );
    7775
    7876            return false;
     
    8280    }
    8381
    84     private function getOrderByOrderId($orderId)
    85     {
    86         return $this->databaseManager->findOrderByOrderId($orderId);
     82    private function getOrderByOrderId( $orderId ) {
     83        return $this->databaseManager->findOrderByOrderId( $orderId );
    8784    }
    8885
    89     protected function create_options(): Options
    90     {
     86    protected function create_options(): Options {
    9187        $options = new Options();
    92         $options->setApiKey($this->checkoutSettings->findByKey('api_key'));
    93         $options->setSecretKey($this->checkoutSettings->findByKey('secret_key'));
    94         $options->setBaseUrl($this->checkoutSettings->findByKey('api_type'));
     88        $options->setApiKey( $this->checkoutSettings->findByKey( 'api_key' ) );
     89        $options->setSecretKey( $this->checkoutSettings->findByKey( 'secret_key' ) );
     90        $options->setBaseUrl( $this->checkoutSettings->findByKey( 'api_type' ) );
    9591
    9692        return $options;
  • iyzico-woocommerce/trunk/includes/Common/Helpers/WebhookHelper.php

    r3161557 r3161792  
    22
    33namespace Iyzico\IyzipayWoocommerce\Common\Helpers;
     4
    45use Iyzico\IyzipayWoocommerce\Checkout\CheckoutSettings;
    56use Iyzico\IyzipayWoocommerce\Database\DatabaseManager;
    67
    7 class WebhookHelper
    8 {
     8class WebhookHelper {
    99    private $checkoutSettings;
    1010    private $status;
     
    1717    private $databaseManager;
    1818
    19     public function __construct()
    20     {
    21         $this->logger = new Logger();
    22         $this->priceHelper = new PriceHelper();
    23         $this->cookieManager = new CookieManager();
    24         $this->versionChecker = new VersionChecker($this->logger);
    25         $this->tlsVerifier = new TlsVerifier();
     19    public function __construct() {
     20        $this->logger           = new Logger();
     21        $this->priceHelper      = new PriceHelper();
     22        $this->cookieManager    = new CookieManager();
     23        $this->versionChecker   = new VersionChecker( $this->logger );
     24        $this->tlsVerifier      = new TlsVerifier();
    2625        $this->checkoutSettings = new CheckoutSettings();
    27         $this->databaseManager = new DatabaseManager();
     26        $this->databaseManager  = new DatabaseManager();
    2827
    2928        $this->paymentProcessor = new PaymentProcessor(
     
    3837    }
    3938
    40     private function get_rest_url($route): string
    41     {
    42         return esc_url_raw(rest_url("iyzico/v1/{$route}"));
     39    private function get_rest_url( $route ): string {
     40        return esc_url_raw( rest_url( "iyzico/v1/{$route}" ) );
    4341    }
    4442
    45     public function addRoute(): void
    46     {
    47         $webhookID = get_option('iyzicoWebhookUrlKey');
     43    public function addRoute(): void {
     44        $webhookID = get_option( 'iyzicoWebhookUrlKey' );
    4845
    49         if (!$webhookID) {
    50             $webhookID = substr(base64_encode(time() . mt_rand()), 15, 6);
    51             update_option('iyzicoWebhookUrlKey', $webhookID);
     46        if ( ! $webhookID ) {
     47            $webhookID = substr( base64_encode( time() . mt_rand() ), 15, 6 );
     48            update_option( 'iyzicoWebhookUrlKey', $webhookID );
    5249        }
    5350
    54         register_rest_route('iyzico/v1', "/webhook/{$webhookID}", [
    55             'methods' => 'POST',
    56             'callback' => [$this, 'processWebhook'],
    57             'permission_callback' => [$this, 'verifyWebhook']
    58         ]);
     51        register_rest_route( 'iyzico/v1', "/webhook/{$webhookID}", [
     52            'methods'             => 'POST',
     53            'callback'            => [ $this, 'processWebhook' ],
     54            'permission_callback' => [ $this, 'verifyWebhook' ]
     55        ] );
    5956    }
    6057
    61     public function verifyWebhook($request)
    62     {
    63         $signature = $request->get_header('X-IYZ-SIGNATURE');
    64         $iyziEventType = $request->get_header('iyziEventType');
     58    public function verifyWebhook( $request ) {
     59        $signature     = $request->get_header( 'X-IYZ-SIGNATURE' );
     60        $iyziEventType = $request->get_header( 'iyziEventType' );
    6561
    6662        $body = $request->get_json_params();
    6763
    68         if ($signature && $iyziEventType && isset($body['token'])) {
    69             return $this->validateSignature($signature, $iyziEventType, $body['token']);
     64        if ( $signature && $iyziEventType && isset( $body['token'] ) ) {
     65            return $this->validateSignature( $signature, $iyziEventType, $body['token'] );
    7066        }
    7167
     
    7369    }
    7470
    75     private function validateSignature($receivedSignature, $eventType, $token)
    76     {
    77         $secretKey = $this->checkoutSettings->findByKey('secret_key');
     71    private function validateSignature( $receivedSignature, $eventType, $token ) {
     72        $secretKey = $this->checkoutSettings->findByKey( 'secret_key' );
    7873
    79         if (!$secretKey) {
    80             error_log('iyzico secret key not found');
     74        if ( ! $secretKey ) {
     75            error_log( 'iyzico secret key not found' );
     76
    8177            return false;
    8278        }
    8379
    8480        $stringToBeHashed = $secretKey . $eventType . $token;
    85         $hash = base64_encode(sha1($stringToBeHashed, true));
     81        $hash             = base64_encode( sha1( $stringToBeHashed, true ) );
    8682
    87         return hash_equals($hash, $receivedSignature);
     83        return hash_equals( $hash, $receivedSignature );
    8884    }
    8985
    90     public function processWebhook($request)
    91     {
    92         $params = wp_parse_args($request->get_json_params());
     86    public function processWebhook( $request ) {
     87        $params       = wp_parse_args( $request->get_json_params() );
    9388        $this->status = $params['status'];
    9489
    95         if ($this->status === 'SUCCESS') {
    96             return $this->handleSuccessfulPayment($params);
     90        if ( $this->status === 'SUCCESS' ) {
     91            return $this->handleSuccessfulPayment( $params );
    9792        } else {
    98             return $this->handleFailedPayment($params);
     93            return $this->handleFailedPayment( $params );
    9994        }
    10095    }
    10196
    102     private function handleSuccessfulPayment($data)
    103     {
    104         return $this->paymentProcessor->processWebhook($data);
     97    private function handleSuccessfulPayment( $data ) {
     98        return $this->paymentProcessor->processWebhook( $data );
    10599    }
    106100
    107     private function handleFailedPayment($data)
    108     {
    109         $this->paymentProcessor->processWebhook($data);
    110         return new \WP_Error('payment_failed', 'Payment failed', ['status' => 400]);
     101    private function handleFailedPayment( $data ) {
     102        $this->paymentProcessor->processWebhook( $data );
     103
     104        return new \WP_Error( 'payment_failed', 'Payment failed', [ 'status' => 400 ] );
    111105    }
    112106}
  • iyzico-woocommerce/trunk/includes/Common/Hooks/PublicHooks.php

    r3161557 r3161792  
    66use Iyzico\IyzipayWoocommerce\Common\Helpers\BuyerProtection;
    77
    8 class PublicHooks
    9 {
     8class PublicHooks {
    109
    1110    private $checkoutForm;
    1211    private $buyerProtection;
    1312
    14     public function __construct()
    15     {
    16         $this->checkoutForm = new CheckoutForm();
     13    public function __construct() {
     14        $this->checkoutForm    = new CheckoutForm();
    1715        $this->buyerProtection = new BuyerProtection();
    1816    }
    1917
    20     public function register()
    21     {
     18    public function register() {
    2219
    23         add_action('woocommerce_receipt_iyzico', [$this->checkoutForm, 'load_form']);
    24         add_action('woocommerce_receipt_iyzico', [$this->checkoutForm, 'checkout_form']);
    25         add_action('woocommerce_api_request', [$this->checkoutForm, 'handle_api_request']);
    26         add_action('woocommerce_before_checkout_form', [$this->checkoutForm, 'display_errors'], 10);
     20        add_action( 'woocommerce_receipt_iyzico', [ $this->checkoutForm, 'load_form' ] );
     21        add_action( 'woocommerce_receipt_iyzico', [ $this->checkoutForm, 'checkout_form' ] );
     22        add_action( 'woocommerce_api_request', [ $this->checkoutForm, 'handle_api_request' ] );
     23        add_action( 'woocommerce_before_checkout_form', [ $this->checkoutForm, 'display_errors' ], 10 );
    2724
    28         add_action('wp_footer', [$this->buyerProtection, 'iyzicoOverlayScriptMobileCss']);
    29         add_action('wp_footer', [$this->buyerProtection, 'getOverlayScript']);
     25        add_action( 'wp_footer', [ $this->buyerProtection, 'iyzicoOverlayScriptMobileCss' ] );
     26        add_action( 'wp_footer', [ $this->buyerProtection, 'getOverlayScript' ] );
    3027    }
    3128}
  • iyzico-woocommerce/trunk/includes/Pwi/Pwi.php

    r3161557 r3161792  
    8585
    8686            return $this->redirect_to_iyzico( $paymentPageUrl );
    87 
    8887        } catch ( Exception $e ) {
    8988            wc_add_notice( $e->getMessage(), 'error' );
     
    114113        // Payment Source Settings
    115114        $affiliate     = $this->checkoutSettings->findByKey( 'affiliate_network' );
    116         $paymentSource = "WOOCOMMERCE|$woocommerce->version|CARRERA-PWI-3.5.5";
     115        $paymentSource = "WOOCOMMERCE|$woocommerce->version|CARRERA-PWI-3.5.6";
    117116
    118117        if ( strlen( $affiliate ) > 0 ) {
     
    142141        $options = $this->create_options();
    143142
     143        // Check Request Logs Settings
     144        $isSave = $this->checkoutSettings->findByKey( 'request_log_enabled' );
     145
     146        $isSave === 'yes' ? $this->logger->info( "CheckoutFormInitialize Request: " . $request->toJsonString() ) : null;
     147
    144148        return PayWithIyzicoInitialize::create( $request, $options );
    145149    }
  • iyzico-woocommerce/trunk/readme.txt

    r3161557 r3161792  
    33Tags: payment, ecommerce, credit card, checkout woocommerce, iyzico
    44Tested up to: 6.6.2
    5 Stable tag: 3.5.5
     5Stable tag: 3.5.6
    66Requires at least: 6.6.2
    77Requires PHP: 7.4
     
    5959== Changelog ==
    6060
     61= 3.5.6 =
     62  * New : Payment Request Log Added iyzico-wocommerce/log_files
     63  * Fix : basketItemCategory1 is a mandatory parameter error fixed.
     64  * Fix : shippingAddress parameter error fixed.
     65  * Fix : BasketItemPrice bug fixed.
     66  * WooCommerce + Wordpress latest version tested update
     67
    6168= 3.5.5 =
    6269  * New : WooCommerce HPOS Support
     
    6572  * Fix : White page error fixed.
    6673
    67 
    6874= 3.5.2 =
    6975  * New : WooCommerce HPOS Support
     
    7177  * Fix : White page error fixed.
    7278
    73 
    7479= 3.4.0 =
    7580  * New : WooCommerce Blocks Support
    7681  * Fix : PHP end() functions fixed.
    77 
    7882
    7983= 3.2.6 =
     
    8488  * WooCommerce + Wordpress latest version tested update
    8589
    86 
    8790= 3.2.4 =
    8891  * PWİ Currency USD
    8992  * WooCommerce + Wordpress latest version tested update
    9093
    91 
    9294= 3.2.3 =
    9395  * Fix : HTTPS CURL BUG
    9496
    95 
    9697= 3.2.1 =
    9798  * Fix: HTTPS method
    98 
    9999
    100100= 3.2.0 =
     
    103103  * Fix: Failed payment callback
    104104  * Fix: shipping method
    105 
    106105
    107106= 3.1.3 =
     
    210209== Changelog ==
    211210
     211= 3.5.6 =
     212* Fix : basketItemCategory1 is a mandatory parameter error fixed.
     213* Fix : shippingAddress parameter error fixed.
     214* Fix : BasketItemPrice bug fixed.
     215* WooCommerce + Wordpress latest version tested update
     216
    212217= 3.5.5 =
    213218* Fix : Refund Support
  • iyzico-woocommerce/trunk/woocommerce-gateway-iyzico.php

    r3161557 r3161792  
    77 * Author: iyzico
    88 * Author URI: https://iyzico.com
    9  * Version: 3.5.5
     9 * Version: 3.5.6
    1010 * Requires Plugins: woocommerce
    1111 * Requires at least: 6.6.2
     
    2525 * These constants are used to define the plugin version, base file, path, url and language path.
    2626 */
    27 const PLUGIN_VERSION  = '3.5.5';
     27const PLUGIN_VERSION  = '3.5.6';
    2828const PLUGIN_BASEFILE = __FILE__;
    2929
Note: See TracChangeset for help on using the changeset viewer.