← Back
Editing: divi.js
(()=>{var t={7150(t){var e,r;e=function(){var t,e=0,r={},n={},o=(t=window.MutationObserver||window.WebKitMutationObserver,function(e,r){e&&1===e.nodeType&&(t?new t(function(t,e){r(t)}).observe(e,{childList:!0,subtree:!1}):window.addEventListener&&e.addEventListener("DOMNodeInserted",r,!1))});function i(t,e){if(!t)return this;e=e||{},this.parentElm=t,this.uid=e.uid,this.settings={selector:"*",callbacks:{}},Object.assign(this.settings,e),this.setup(),o(this.parentElm,this.setup.bind(this)),this.bindEvents()}return i.prototype={namespace:"dragsort",setup(){[...this.parentElm.childNodes].forEach(t=>{if(1!=t.nodeType)return t.parentNode.removeChild(t);t.matches(this.settings.selector)&&(t.draggable=!0)}),this.gap=this.getItemsGap(this.parentElm.firstElementChild)},throttle(t,e){var r=!1,n=this;return function(o){r||(t.call(n,o),r=!0,setTimeout(()=>r=!1,e))}},getDraggableElm(t){if(!t.closest)return null;var e=t.closest('[draggable="true"]');return this.uid==r.uid?e:null},dragstart(t,e){r=this;var n,o=this.getDraggableElm(e);o?(this.saveInitialStyles(),this.source=this.getInitialState(),this.target=this.getInitialState(),n=o.getBoundingClientRect(),this.source.elm=o,this.source.idx=this.getNodeIndex(o),this.source.size.width=n.width,this.source.size.height=n.height,t.dataTransfer.effectAllowed="move",this.settings.callbacks.dragStart&&this.settings.callbacks.dragStart(this.source.elm,t),setTimeout(this.afterDragStart.bind(this))):r={}},afterDragStart(){var t="vertical"==this.settings.mode?"height":"width";this.parentElm.classList.add(`${this.namespace}--dragStart`),this.source.elm.style[t]=this.source.size[t]+"px",this.source.elm.classList.add(`${this.namespace}--dragElem`)},dragover(t){t.preventDefault(),t.stopPropagation();var e=t.target;if((e=this.getDraggableElm(e))&&this.target){var r=this.target.elm,n=this.target.hoverDirection;t.dataTransfer.dropEffect="move",this.target.hoverDirection=this.getTargetDirection(t),r==e&&n==this.target.hoverDirection||this.directionAwareDragEnter(t,e)}},dragenter(t,e){(e=this.getDraggableElm(e))&&this.target&&this.isValidElm(e)&&this.source.elm!=e&&this.source.elm&&(this.target.bounding=e.getBoundingClientRect())},directionAwareDragEnter(t,e){var r;t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="none",this.isValidElm(e)&&this.source.elm!=e&&this.source.elm&&(t.dataTransfer.dropEffect="move",this.cleanupLastTarget(),this.target.elm=e,this.target.idx=this.getNodeIndex(e),e.classList.add("over"),r=Math.abs(this.target.idx-this.source.idx),this.source.elm.classList.toggle(`${this.namespace}--hide`,r>0),"vertical"==this.settings.mode?this.target.elm.style[this.target.hoverDirection?"marginBottom":"marginTop"]=this.source.size.height+this.gap+"px":this.target.elm.style[this.target.hoverDirection?"marginRight":"marginLeft"]=this.source.size.width+this.gap+"px")},dragend(t){if(clearTimeout(this.dragoverTimeout),this.dragoverTimeout=null,this.parentElm.classList.remove(`${this.namespace}--dragStart`),!this.isValidElm(this.target.elm))return this.cleanup();var e=this.target.hoverDirection?this.target.elm.nextElementSibling:this.target.elm;return this.source.elm!=this.target.elm&&this.target.elm&&(this.target.elm.classList.add(`${this.namespace}--noAnim`),this.cleanup(),this.parentElm.insertBefore(this.source.elm,e)),this.source.elm&&this.source.elm.classList.remove(`${this.namespace}--dragElem`,`${this.namespace}--hide`),this.settings.callbacks.dragEnd&&this.settings.callbacks.dragEnd(this.source.elm),this},isTargetLastChild(){return this.parentElm.lastElementChild==this.target.elm},getTargetDirection(t){if(this.target.bounding)return"vertical"==this.settings.mode?t.pageY>this.target.bounding.top+this.target.bounding.height/2?1:0:t.pageX>this.target.bounding.left+this.target.bounding.width/2?1:0},getNodeIndex(t){for(var e=0;t=t.previousSibling;)3==t.nodeType&&/^\s*$/.test(t.data)||e++;return e},isValidElm(t){return t&&t.nodeType&&t.parentNode==this.parentElm},saveInitialStyles(){[...this.parentElm.children].forEach(t=>{t.setAttribute("dragsort-initial-style",t.getAttribute("style"))})},cleanup(){r={},[...this.parentElm.children].forEach(t=>{t.style=t.getAttribute("dragsort-initial-style"),t.removeAttribute("dragsort-initial-style"),setTimeout(()=>{t.classList.remove(`${this.namespace}--over`,`${this.namespace}--noAnim`,`${this.namespace}--dragElem`)},50)})},cleanupLastTarget(){const{elm:t}=this.target;t&&(t.classList.remove(`${this.namespace}--hide`,`${this.namespace}--over`),t.style=t.getAttribute("dragsort-initial-style"))},getInitialState:()=>({elm:null,size:{}}),getItemsGap(t){var e=getComputedStyle(t),r=getComputedStyle(t.parentNode),n="vertical"==this.settings.mode,o=parseInt(r.gap)||0;return parseInt(e["margin"+(n?"Top":"Left")])+parseInt(e["margin"+(n?"Bottom":"Right")])+o},bindEvents(t){for(var e in this.listeners=this.listeners||{dragstart:t=>this.dragstart(t,t.target),dragenter:t=>this.dragenter(t,t.target),dragend:t=>this.dragend(t,t.target),dragover:this.throttle(this.dragover,350)},this.listeners)this.parentElm[t?"removeEventListener":"addEventListener"](e,this.listeners[e])},destroy(){this.cleanup(),this.bindEvents(!0),delete n[this.uid]}},function(t,r){return n[++e]=t.DragSort?n[t.DragSort]:new i(t,{...r,uid:e}),t.DragSort=e,n[e]}},"function"==typeof(r=r||{})&&r.amd?r([],e):t.exports=e()},8351(t,e,r){var n;!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",s=c+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=1e7,y=9007199254740991,v=f(1286742750677284.5),m={};function b(t,e){var r,n,o,i,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?E(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,c=s.length):(n=s,o=a,c=l.length),i>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=s.length)<0&&(i=c,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),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=o,u?E(e,p):e}function g(t,e,r){if(t!==~~t||t<e||t>r)throw Error(l+t)}function w(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+=S(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=S(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}m.absoluteValue=m.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},m.comparedTo=m.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},m.decimalPlaces=m.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},m.dividedBy=m.div=function(t){return x(this,new this.constructor(t))},m.dividedToIntegerBy=m.idiv=function(t){var e=this.constructor;return E(x(this,new e(t),0,1),e.precision)},m.equals=m.eq=function(t){return!this.cmp(t)},m.exponent=function(){return _(this)},m.greaterThan=m.gt=function(t){return this.cmp(t)>0},m.greaterThanOrEqualTo=m.gte=function(t){return this.cmp(t)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(t){return this.cmp(t)<0},m.lessThanOrEqualTo=m.lte=function(t){return this.cmp(t)<1},m.logarithm=m.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(c+"NaN");if(r.s<1)throw Error(c+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(u=!1,e=x(k(r,a),k(t,a),a),u=!0,E(e,i))},m.minus=m.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?A(e,t):b(e,(t.s=-t.s,t))},m.modulo=m.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(c+"NaN");return r.s?(u=!1,e=x(r,t,0,1).times(t),u=!0,r.minus(e)):E(new n(r),o)},m.naturalExponential=m.exp=function(){return O(this)},m.naturalLogarithm=m.ln=function(){return k(this)},m.negated=m.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},m.plus=m.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?b(e,t):A(e,(t.s=-t.s,t))},m.precision=m.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)+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},m.squareRoot=m.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(c+"NaN")}for(t=_(l),u=!1,0==(o=Math.sqrt(+l))||o==1/0?(((e=w(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),w(i.d).slice(0,a)===(e=w(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(E(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if("9999"!=e)break;a+=4}return u=!0,E(n,r)},m.times=m.mul=function(t){var e,r,n,o,i,a,c,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;)c=i[o]+y[n]*h[o-n-1]+e,i[o--]=c%d|0,e=c/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,u?E(t,p.precision):t},m.toDecimalPlaces=m.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),E(r,t+_(r)+1,e))},m.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=M(n,!0):(g(t,0,i),void 0===e?e=o.rounding:g(e,0,8),r=M(n=E(new o(n),t+1,e),!0,t+1)),r},m.toFixed=function(t,e){var r,n,o=this,a=o.constructor;return void 0===t?M(o):(g(t,0,i),void 0===e?e=a.rounding:g(e,0,8),r=M((n=E(new a(o),t+_(o)+1,e)).abs(),!1,t+_(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},m.toInteger=m.toint=function(){var t=this,e=t.constructor;return E(new e(t),_(t)+1,e.rounding)},m.toNumber=function(){return+this},m.toPower=m.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(c+"Infinity");return s}if(s.eq(o))return s;if(n=p.precision,t.eq(o))return E(s,n);if(l=(e=t.e)>=(r=t.d.length-1),a=s.s,l){if((r=h<0?-h:h)<=y){for(i=new p(o),e=Math.ceil(n/7+4),u=!1;r%2&&T((i=i.times(s)).d,e),0!==(r=f(r/2));)T((s=s.times(s)).d,e);return u=!0,t.s<0?new p(o).div(i):E(i,n)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,u=!1,i=t.times(k(s,n+12)),u=!0,(i=O(i)).s=a,i},m.toPrecision=function(t,e){var r,n,o=this,a=o.constructor;return void 0===t?n=M(o,(r=_(o))<=a.toExpNeg||r>=a.toExpPos):(g(t,1,i),void 0===e?e=a.rounding:g(e,0,8),n=M(o=E(new a(o),t,e),t<=(r=_(o))||r<=a.toExpNeg,t)),n},m.toSignificantDigits=m.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)),E(new r(this),t,e)},m.toString=m.valueOf=m.val=m.toJSON=function(){var t=this,e=_(t),r=t.constructor;return M(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 u,l,s,f,p,h,y,v,m,b,g,w,x,O,j,S,k,P,A=n.constructor,M=n.s==o.s?1:-1,T=n.d,C=o.d;if(!n.s)return new A(n);if(!o.s)throw Error(c+"Division by zero");for(l=n.e-o.e,k=C.length,j=T.length,v=(y=new A(M)).d=[],s=0;C[s]==(T[s]||0);)++s;if(C[s]>(T[s]||0)&&--l,(w=null==i?i=A.precision:a?i+(_(n)-_(o))+1:i)<0)return new A(0);if(w=w/7+2|0,s=0,1==k)for(f=0,C=C[0],w++;(s<j||f)&&w--;s++)x=f*d+(T[s]||0),v[s]=x/C|0,f=x%C|0;else{for((f=d/(C[0]+1)|0)>1&&(C=t(C,f),T=t(T,f),k=C.length,j=T.length),O=k,b=(m=T.slice(0,k)).length;b<k;)m[b++]=0;(P=C.slice()).unshift(0),S=C[0],C[1]>=d/2&&++S;do{f=0,(u=e(C,m,k,b))<0?(g=m[0],k!=b&&(g=g*d+(m[1]||0)),(f=g/S|0)>1?(f>=d&&(f=d-1),1==(u=e(p=t(C,f),m,h=p.length,b=m.length))&&(f--,r(p,k<h?P:C,h))):(0==f&&(u=f=1),p=C.slice()),(h=p.length)<b&&p.unshift(0),r(m,p,b),-1==u&&(u=e(C,m,k,b=m.length))<1&&(f++,r(m,k<b?P:C,b)),b=m.length):0===u&&(f++,m=[0]),v[s++]=f,u&&m[0]?m[b++]=T[O]||0:(m=[T[O]],b=1)}while((O++<j||void 0!==m[0])&&w--)}return v[0]||v.shift(),y.e=l,E(y,a?i+_(y)+1:i)}}();function O(t,e){var r,n,i,a,c,l=0,f=0,h=t.constructor,d=h.precision;if(_(t)>16)throw Error(s+_(t));if(!t.s)return new h(o);for(null==e?(u=!1,c=d):c=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=i=new h(o),h.precision=c;;){if(n=E(n.times(t),c),r=r.times(++l),w((a=i.plus(x(n,r,c))).d).slice(0,c)===w(i.d).slice(0,c)){for(;f--;)i=E(i.times(i),c);return h.precision=d,null==e?(u=!0,E(i,d)):i}i=a}}function _(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function j(t,e,r){if(e>t.LN10.sd())throw u=!0,r&&(t.precision=r),Error(c+"LN10 precision limit exceeded");return E(new t(t.LN10),e)}function S(t){for(var e="";t--;)e+="0";return e}function k(t,e){var r,n,i,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,b=m.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(u=!1,p=b):p=e,y.eq(10))return null==e&&(u=!0),j(m,p);if(p+=10,m.precision=p,n=(r=w(v)).charAt(0),a=_(y),!(Math.abs(a)<15e14))return f=j(m,p+2,b).times(a+""),y=k(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=b,null==e?(u=!0,E(y,b)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=w((y=y.times(t)).d)).charAt(0),d++;for(a=_(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=E(y.times(y),p),i=3;;){if(l=E(l.times(h),p),w((f=s.plus(x(l,new m(i),p))).d).slice(0,p)===w(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(j(m,p+2,b).times(a+""))),s=x(s,new m(d),p),m.precision=b,null==e?(u=!0,E(s,b)):s;s=f,i+=2}}function P(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),u&&(t.e>v||t.e<-v))throw Error(s+r)}else t.s=0,t.e=0,t.d=[0];return t}function E(t,e,r){var n,o,i,a,c,l,h,y,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[y=0];else{if((y=Math.ceil((n+1)/7))>=(i=m.length))return t;for(h=i=m[y],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(c=h/(i=p(10,a-o-1))%10|0,l=e<0||void 0!==m[y+1]||h%i,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?h/p(10,a-o):0:m[y-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return l?(i=_(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=y,i=1,y--):(m.length=y+1,i=p(10,7-n),m[y]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==y){(m[0]+=i)==d&&(m[0]=1,++t.e);break}if(m[y]+=i,m[y]!=d)break;m[y--]=0,i=1}for(n=m.length;0===m[--n];)m.pop();if(u&&(t.e>v||t.e<-v))throw Error(s+_(t));return t}function A(t,e){var r,n,o,i,a,c,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),u?E(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,c=p.length):(r=p,n=s,c=l.length),a>(o=Math.max(Math.ceil(y/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(c=p.length))&&(c=o),o=0;o<c;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),c=l.length,o=p.length-c;o>0;--o)l[c++]=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[--c];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,u?E(e,y):e):new h(0)}function M(t,e,r){var n,o=_(t),i=w(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+S(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+S(-o-1)+i,r&&(n=r-a)>0&&(i+=S(n))):o>=a?(i+=S(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+S(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=S(n))),t.s<0?"-"+i:i}function T(t,e){if(t.length>e)return t.length=e,!0}function C(t){if(!t||"object"!=typeof t)throw Error(c+"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])):P(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);P(e,t)}if(i.prototype=m,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=C,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),a.default=a.Decimal=a,o=new a(1),void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},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),u=r(5749);function c(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])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},79(t,e,r){var n=r(3702),o=r(80),i=r(4739),a=r(8655),u=r(1175);function c(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])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},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),u=r(2949);function c(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])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},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),u=r(9817),c=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=u,l.prototype.set=c,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?0: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),u=r(361),c=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&&c(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)||u(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],u=e(a);if(null!=u&&(void 0===c?u==u&&!n(u):r(u,c)))var c=u,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,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},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}},2199(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,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},7068(t,e,r){var n=r(7217),o=r(5911),i=r(1986),a=r(689),u=r(5861),c=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 b=c(t),g=c(e),w=b?p:u(t),x=g?p:u(e),O=(w=w==f?h:w)==h,_=(x=x==f?h:x)==h,j=w==x;if(j&&l(t)){if(!l(e))return!1;b=!0,O=!1}if(j&&!O)return m||(m=new n),b||s(t)?o(t,e,r,y,v,m):i(t,e,w,r,y,v,m);if(!(1&r)){var S=O&&d.call(t,"__wrapped__"),k=_&&d.call(e,"__wrapped__");if(S||k){var P=S?t.value():t,E=k?e.value():e;return m||(m=new n),v(P,E,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,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&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),u=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,s=c.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:u).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),u=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):u(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),u=r(756),c=r(7197),l=r(7797);t.exports=function(t,e){return a(t)&&u(e)?c(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),u=r(3937),c=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,c(i));var h=a(t,function(t,r,o){return{criteria:n(e,function(e){return e(t)}),index:++p,value:t}});return u(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,u=r(e((n-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},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),u=n?n.prototype:void 0,c=u?u.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 c?c.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),u=r(4517),c=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:u(t);if(y)return c(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 b=d.length;b--;)if(d[b]===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),u=void 0!==e,c=null===e,l=e==e,s=n(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&r&&i&&!o&&!a||c&&r&&i||!u&&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,u=i.length,c=r.length;++o<u;){var l=n(i[o],a[o]);if(l)return o>=c?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,u=Object(r);(e?a--:++a<i)&&!1!==o(u[a],a,u););return r}}},3221(t){t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,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,u=r?r[0]:e.charAt(0),c=r?n(r,1).join(""):e.slice(1);return u[t]()+c}}},2006(t,e,r){var n=r(5389),o=r(4894),i=r(5950);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?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,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++d<s;){var m=t[d],b=e[d];if(a)var g=l?a(b,m,d,e,t,c):a(m,b,d,t,e,c);if(void 0!==g){if(g)continue;y=!1;break}if(v){if(!o(e,function(t,e){if(!i(v,e)&&(m===t||u(m,t,r,a,c)))return v.push(e)})){y=!1;break}}else if(m!==b&&!u(m,b,r,a,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},1986(t,e,r){var n=r(1873),o=r(7828),i=r(5288),a=r(5911),u=r(317),c=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=u;case"[object Set]":var d=1&n;if(h||(h=c),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,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f<s;){var m=t[p=l[f]],b=e[p];if(i)var g=c?i(b,m,p,e,t,u):i(m,b,p,t,e,u);if(!(void 0===g?m===b||a(m,b,r,i,u):g)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var w=t.constructor,x=e.constructor;w==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(y=!1)}return u.delete(t),u.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(2199),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,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},4664(t,e,r){var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),function(e){return i.call(t,e)}))}:o;t.exports=u},5861(t,e,r){var n=r(5580),o=r(8223),i=r(2804),a=r(6545),u=r(8303),c=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),b=l(a),g=l(u),w=c;(n&&w(new n(new ArrayBuffer(1)))!=d||o&&w(new o)!=s||i&&w(i.resolve())!=f||a&&w(new a)!=p||u&&w(new u)!=h)&&(w=function(t){var e=c(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 b:return p;case g:return h}return e}),t.exports=w},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),u=r(294),c=r(7797);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(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=r??9007199254740991)&&("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 u=typeof e;return!!("number"==u?o(r)&&i(e,r.length):"string"==u&&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,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},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,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),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}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",s=l+c+("(?:\\u200d(?:"+[i,a,u].join("|")+")"+l+c+")*"),f="(?:"+[i+n+"?",n,a,u,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,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var r=c,n=l;return c=l=void 0,d=e,f=t.apply(n,r)}function g(t){var r=t-h;return void 0===h||r>=e||r<0||v&&t-d>=s}function w(){var t=o();if(g(t))return x(t);p=setTimeout(w,function(t){var r=e-(t-h);return v?u(r,s-(t-d)):r}(t))}function x(t){return p=void 0,m&&c?b(t):(c=l=void 0,f)}function O(){var t=o(),r=g(t);if(c=arguments,l=this,h=t,r){if(void 0===p)return function(t){return d=t,p=setTimeout(w,e),y?b(t):f}(h);if(v)return clearTimeout(p),p=setTimeout(w,e),b(h)}return void 0===p&&(p=setTimeout(w,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,c=h=l=p=void 0},O.flush=function(){return void 0===p?f:x(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),u=r(6800);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(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 u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},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,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},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,u=a&&a.exports===i?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c},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,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.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&&c.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,u=a?o(a):n;t.exports=u},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}},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}},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),u=r(6800);t.exports=function(t,e,r){var c=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),c(t,o(e,3))}},3031(t,e,r){var n=r(3120),o=r(6155),i=r(9302),a=r(6800),u=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=u},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,u=/^0b[01]+$/i,c=/^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=u.test(t);return r||c.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 u=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 u.name="Invariant Violation",u}}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"}};const e={};function r(n){const o=e[n];if(void 0!==o)return o.exports;const 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=>{const e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.cw=t=>{var e;return()=>{if(t){var r=t;t=0,e={exports:{}},r.call(e.exports,e,e.exports)}return e.exports}},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=>{Object.defineProperties(t,{[Symbol.toStringTag]:{value:"Module"},__esModule:{value:!0}})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.dn=t=>{var e=Object.getOwnPropertyDescriptor(t,"name");(!e||!e.writable&&e.configurable)&&Object.defineProperty(t,"name",{value:"default",configurable:!0})},(()=>{"use strict";var t=r.cw(t=>{var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0===--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.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},u.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},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,o,i,a){var u=r?r+t:t;if(!this._events[u])return!1;var c,l,s=this._events[u],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,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];s.fn.apply(s.context,c)}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(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];s[l].fn.apply(s[l].context,c)}}return!0},u.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},u.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 u=this._events[i];if(u.fn)u.fn!==e||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var c=0,l=[],s=u.length;c<s;c++)(u[c].fn!==e||o&&!u[c].once||n&&u[c].context!==n)&&l.push(u[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},u.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},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u}),e=r.cw((t,e)=>{var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case i:case u:case a:case p:case h:return t;default:switch(t=t&&t.$$typeof){case s:case l:case f:case y:case d:case c:return t;default:return e}}case o:return e}}}r=Symbol.for("react.module.reference"),e.isFragment=function(t){return m(t)===i}}),n=r.cw(t=>{t.exports=e()}),o={};r.r(o),r.d(o,{addTrendKeyword:()=>h,clearTrendKeywords:()=>v,deleteActiveTemplate:()=>_,refreshTrendKeywords:()=>p,removeTrendKeyword:()=>d,toggleTrendKeyword:()=>y,updateAutoLinkingDisabled:()=>b,updateCoordinates:()=>S,updateNewsRobots:()=>m,updatePrimary:()=>j});var i={};r.r(i),r.d(i,{appData:()=>D,appUi:()=>z});var a={};r.r(a),r.d(a,{getAutoLinkingDisabled:()=>q,getNewsRobots:()=>F,getTrendKeywords:()=>U,isRefreshingTrendKeywords:()=>K});var u={};r.r(u),r.d(u,{scaleBand:()=>rf,scaleDiverging:()=>np,scaleDivergingLog:()=>op,scaleDivergingPow:()=>ap,scaleDivergingSqrt:()=>up,scaleDivergingSymlog:()=>ip,scaleIdentity:()=>bf,scaleImplicit:()=>tf,scaleLinear:()=>mf,scaleLog:()=>Pf,scaleOrdinal:()=>ef,scalePoint:()=>of,scalePow:()=>Bf,scaleQuantile:()=>Uf,scaleQuantize:()=>Ff,scaleRadial:()=>zf,scaleSequential:()=>Gf,scaleSequentialLog:()=>Zf,scaleSequentialPow:()=>Qf,scaleSequentialQuantile:()=>ep,scaleSequentialSqrt:()=>tp,scaleSequentialSymlog:()=>Jf,scaleSqrt:()=>Lf,scaleSymlog:()=>Tf,scaleThreshold:()=>qf,scaleTime:()=>Yf,scaleUtc:()=>Hf,tickFormat:()=>yf});const c=wp.data,l=wp.hooks,s=lodash;function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,c.dispatch)("rank-math").updateAppData(t,e,r,n),{type:"RANK_MATH_APP_DATA",key:t,value:e}}function p(){return function(t,e){return{type:"RANK_MATH_APP_UI",key:t,value:e}}("refreshTrendKeywords",Date.now())}function h(t){var e=(0,c.select)("rank-math-pro").getTrendKeywords();return""===t||(0,s.isUndefined)(e[t])&&Object.keys(e).length<5&&(e[t]=!0),f("trendKeywords",e)}function d(t){var e=(0,c.select)("rank-math-pro").getTrendKeywords();return(0,s.isUndefined)(e[t])||delete e[t],f("trendKeywords",e)}function y(t){var e=(0,c.select)("rank-math-pro").getTrendKeywords();return(0,s.isUndefined)(e[t])||(e[t]=!e[t]),f("trendKeywords",e)}function v(){return f("trendKeywords",!1)}function m(t){return f("newsRobots",t,"rank_math_news_sitemap_robots")}function b(t){return f("autoLinkingDisabled",t,"rank_math_auto_linking_disabled",t?"1":"0")}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(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 x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach(function(e){O(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function O(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var n=r.call(t,e||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t){var e=x({},(0,c.select)("rank-math").getSchemas());return delete e[t],delete rankMath.activeTemplates[t],f("schemas",e,"rank_math_exclude_template_"+t,"")}function j(t,e){var r=x({},e);return r[(0,s.findKey)(e,"metadata.isPrimary")].metadata.isPrimary=!1,r[t].metadata.isPrimary=!0,(0,c.dispatch)("rank-math").schemaUpdated(!0),(0,c.dispatch)("rank-math").updateSchemas(r)}function S(t){return f("local_latitude",t[0],"rank_math_local_business_latitide"),f("local_longitude",t[1],"rank_math_local_business_longitude")}function k(t){return k="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},k(t)}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 E(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){A(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 A(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=k(t)||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var n=r.call(t,e||"default");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==k(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M=(0,s.get)(rankMath,"newsSitemap",{}),T=(0,s.get)(rankMath,"linkGenius",{}),C={trendKeywords:!1,newsRobots:M.robots,newsKeywords:M.keywords,autoLinkingDisabled:T.autoLinkingDisabled};function D(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_DATA"===e.type?E(E({},t),{},A({},e.key,e.value)):t}function N(t){return N="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},N(t)}function I(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 B(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach(function(e){L(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function L(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=N(t)||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var n=r.call(t,e||"default");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==N(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var R={trendKeywordsStatus:""};function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?B(B({},t),{},L({},e.key,e.value)):t}function U(t){if(!1===t.appData.trendKeywords){var e={},r=function(){var t=[],e=(0,s.get)(rankMathEditor,"components.focusKeywords",!1);return e&&(t=e.getFocusKeywords()),(0,s.isEmpty)(t)?(t=(0,c.select)("rank-math").getKeywords(),(0,s.isEmpty)(t)?[]:t.split(",")):t}();return(0,s.forEach)(r,function(t){e[t]=!0}),e}return t.appData.trendKeywords}function F(t){return t.appData.newsRobots}function q(t){return t.appData.autoLinkingDisabled}function K(t){return t.appUi.refreshTrendKeywords}const $=wp.i18n,W=wp.components;const Y=function(){return rankMath.canUser.analytics&&(0,s.includes)(rankMath.modules,"analytics")&&rankMath.isAnalyticsConnected?"publish"!==((0,s.isUndefined)(rankMathEditor.assessor.dataCollector.getPostAttribute)?rankMath.postStatus:rankMathEditor.assessor.dataCollector.getPostAttribute("status"))?null:wp.element.createElement(W.Button,{className:"button-secondary rank-math-single-analytics-report",target:"_blank",href:rankMath.adminurl+"?page=rank-math-analytics#/single/"+rankMathEditor.assessor.dataCollector.getPostID()},(0,$.__)("Analytics","rank-math-pro")):null},H=wp.element,X=moment;var V=r.n(X);const G=React;var Z=r.n(G);function J(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=J(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}const Q=function(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=J(t))&&(n&&(n+=" "),n+=e);return n};var tt=r(5556),et=r.n(tt);const{getOwnPropertyNames:rt,getOwnPropertySymbols:nt}=Object,{hasOwnProperty:ot}=Object.prototype;function it(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function at(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);const{cache:o}=n,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);const u=t(e,r,n);return o.delete(e),o.delete(r),u}}function ut(t){return rt(t).concat(nt(t))}const ct=Object.hasOwn||((t,e)=>ot.call(t,e));function lt(t,e){return t===e||!t&&!e&&t!=t&&e!=e}const{getOwnPropertyDescriptor:st,keys:ft}=Object,{propertyIsEnumerable:pt}=Object.prototype,ht=st(Object.getPrototypeOf(Int8Array.prototype),Symbol.toStringTag).get;function dt(t,e){return t.byteLength===e.byteLength&&Et(new Uint8Array(t),new Uint8Array(e))}function yt(t,e,r){let n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function vt(t,e){return t.byteLength===e.byteLength&&Et(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function mt(t,e){return lt(t.getTime(),e.getTime())}function bt(t,e,r){if(t.name!==e.name||t.message!==e.message||t.stack!==e.stack)return!1;const n=t.cause,o=e.cause;if(n!==o&&!r.equals(n,o,"cause","cause",t,e,r))return!1;const i=t.errors,a=e.errors;if(i!==a&&!r.equals(i,a,"errors","errors",t,e,r))return!1;const u=ft(t),c=ft(e);let l=u.length;if(!l&&!c.length)return!0;let s,f=0;for(;l-- >0;)if(s=u[l],"cause"!==s&&"errors"!==s){if(s!==c[l]&&!pt.call(e,s)||!r.equals(t[s],e[s],s,s,t,e,r))return!1;++f}const p=c.length-f;return!p||p===(pt.call(e,"cause")?1:0)+(pt.call(e,"errors")?1:0)}function gt(t,e){return t===e}function wt(t,e,r){return t.name===e.name&&t.message===e.message&&t.stack===e.stack&&jt(t,e,r)}function xt(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const o=new Array(n),i=t.entries();let a,u,c=0;for(;(a=i.next())&&!a.done;){const n=e.entries();let i=!1,l=0;for(;(u=n.next())&&!u.done;){if(o[l]){l++;continue}const n=a.value,s=u.value;if(r.equals(n[0],s[0],c,l,t,e,r)&&r.equals(n[1],s[1],n[0],s[0],t,e,r)){i=o[l]=!0;break}l++}if(!i)return!1;c++}return!0}const Ot=lt;function _t(t,e,r){const n=ft(t),o=ft(e);let i=n.length;if(o.length!==i)return!1;const a=i<=64;let u;for(;i-- >0;)if(u=n[i],!Tt(t,e,u)&&(u!==o[i]&&!(a?o.includes(u):pt.call(e,u))||!r.equals(t[u],e[u],u,u,t,e,r)))return!1;return!0}function jt(t,e,r){const n=ut(t);let o,i,a,u=n.length;if(ut(e).length!==u)return!1;for(;u-- >0;){if(o=n[u],!(Tt(t,e,o)||ct(e,o)&&r.equals(t[o],e[o],o,o,t,e,r)))return!1;if(i=st(t,o),a=st(e,o),(i||a)&&(!i||!a||i.configurable!==a.configurable||i.enumerable!==a.enumerable||i.writable!==a.writable))return!1}return!0}function St(t,e){return lt(t.valueOf(),e.valueOf())}function kt(t,e){return t.source===e.source&&t.flags===e.flags}function Pt(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const o=new Array(n),i=t.values();let a,u;for(;(a=i.next())&&!a.done;){const n=e.values();let i=!1,c=0;for(;(u=n.next())&&!u.done;){if(!o[c]&&r.equals(a.value,u.value,a.value,u.value,t,e,r)){i=o[c]=!0;break}c++}if(!i)return!1}return!0}function Et(t,e){let r=t.length;if(e.length!==r||t.byteOffset!==e.byteOffset)return!1;const n=ht.call(t);if("Float64Array"===n||"Float32Array"===n||"Float16Array"===n){for(;r-- >0;)if(t[r]!==e[r]&&(t[r]==t[r]||e[r]==e[r]))return!1;return!0}for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function At(t,e){return t.href===e.href||t.protocol===e.protocol&&t.username===e.username&&t.password===e.password&&t.host===e.host&&t.pathname===e.pathname&&t.hash===e.hash&&function(t,e){const r=t.toString(),n=e.toString();return r===n||Mt(r)===Mt(n)}(t.searchParams,e.searchParams)}function Mt(t){return t.split("&").sort().join("&")}function Tt(t,e,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!t.$$typeof&&!e.$$typeof)}const Ct={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Dt=Object.prototype.toString;function Nt({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:s,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:h,unknownTagComparators:d}){return function(y,v,m){if(y===v)return!0;if(null==y||null==v)return!1;const b=typeof y;if(b!==typeof v)return!1;if("object"!==b)return"number"===b?u(y,v,m):"function"===b&&i(y,v,m);const g=y.constructor;if(g!==v.constructor)return!1;if(g===Object)return c(y,v,m);if(Array.isArray(y))return e(y,v,m);if(g===Date)return n(y,v,m);if(g===RegExp)return s(y,v,m);if(g===Map)return a(y,v,m);if(g===Set)return f(y,v,m);if(null==g)return c(y,v,m);const w=Dt.call(y);if("[object Date]"===w)return n(y,v,m);if("[object RegExp]"===w)return s(y,v,m);if("[object Map]"===w)return a(y,v,m);if("[object Set]"===w)return f(y,v,m);if("[object Object]"===w)return"function"!=typeof y.then&&"function"!=typeof v.then&&c(y,v,m);if("[object URL]"===w)return h(y,v,m);if("[object Error]"===w)return o(y,v,m);if("[object Arguments]"===w)return c(y,v,m);if(Ct[w])return p(y,v,m);if("[object ArrayBuffer]"===w)return t(y,v,m);if("[object DataView]"===w)return r(y,v,m);if("[object Boolean]"===w||"[object Number]"===w||"[object String]"===w)return l(y,v,m);if(d){let t=d[w];if(!t){const e=function(t){return null!=t?t[Symbol.toStringTag]:void 0}(y);e&&(t=d[e])}if(t)return t(y,v,m)}return!1}}const It=Bt();Bt({strict:!0}),Bt({circular:!0}),Bt({circular:!0,strict:!0}),Bt({createInternalComparator:()=>lt}),Bt({strict:!0,createInternalComparator:()=>lt}),Bt({circular:!0,createInternalComparator:()=>lt}),Bt({circular:!0,createInternalComparator:()=>lt,strict:!0});function Bt(t={}){const{circular:e=!1,createInternalComparator:r,createState:n,strict:o=!1}=t,i=function({circular:t,createCustomConfig:e,strict:r}){let n={areArrayBuffersEqual:dt,areArraysEqual:r?jt:yt,areDataViewsEqual:vt,areDatesEqual:mt,areErrorsEqual:r?wt:bt,areFunctionsEqual:gt,areMapsEqual:r?it(xt,jt):xt,areNumbersEqual:Ot,areObjectsEqual:r?jt:_t,arePrimitiveWrappersEqual:St,areRegExpsEqual:kt,areSetsEqual:r?it(Pt,jt):Pt,areTypedArraysEqual:r?it(Et,jt):Et,areUrlsEqual:At,unknownTagComparators:void 0};if(e&&(n=Object.assign({},n,e(n))),t){const t=at(n.areArraysEqual),e=at(n.areErrorsEqual),r=at(n.areMapsEqual),o=at(n.areObjectsEqual),i=at(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:t,areErrorsEqual:e,areMapsEqual:r,areObjectsEqual:o,areSetsEqual:i})}return n}(t),a=Nt(i);var u;return function({circular:t,comparator:e,createState:r,equals:n,strict:o}){if(r)return function(i,a){const{cache:u=(t?new WeakMap:void 0),meta:c}=r();return e(i,a,{cache:u,equals:n,meta:c,strict:o})};if(t)return function(t,r){return e(t,r,{cache:new WeakMap,equals:n,meta:void 0,strict:o})};const i={cache:void 0,equals:n,meta:void 0,strict:o};return function(t,r){return e(t,r,i)}}({circular:e,comparator:a,createState:n,equals:r?r(a):(u=a,function(t,e,r,n,o,i,a){return u(t,e,a)}),strict:o})}function Lt(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 Rt(t){return Rt="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},Rt(t)}function zt(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ut(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(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 Ft(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=zt(n),i=o[0],a=o.slice(1);return"number"==typeof i?void Lt(r.bind(null,a),i):(r(i),void Lt(r.bind(null,a)))}"object"===Rt(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function qt(t){return qt="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},qt(t)}function Kt(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?Kt(Object(r),!0).forEach(function(e){Wt(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Wt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==qt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Yt=function(t){return t},Ht=function(t,e){return Object.keys(e).reduce(function(r,n){return $t($t({},r),{},Wt({},n,t(n,e[n])))},{})},Xt=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 Vt(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||Zt(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 Gt(t){return function(t){if(Array.isArray(t))return Jt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Zt(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 Zt(t,e){if(t){if("string"==typeof t)return Jt(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)?Jt(t,e):void 0}}function Jt(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=1e-4,te=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},ee=function(t,e){return t.map(function(t,r){return t*Math.pow(e,r)}).reduce(function(t,e){return t+e})},re=function(t,e){return function(r){var n=te(t,e);return ee(n,r)}},ne=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var u=e[0].split("(");if("cubic-bezier"===u[0]&&4===u[1].split(")")[0].split(",").length){var c=u[1].split(")")[0].split(",").map(function(t){return parseFloat(t)}),l=Vt(c,4);n=l[0],o=l[1],i=l[2],a=l[3]}}[n,i,o,a].every(function(t){return"number"==typeof t&&t>=0&&t<=1});var s,f,p=re(n,i),h=re(o,a),d=(s=n,f=i,function(t){var e=te(s,f),r=[].concat(Gt(e.map(function(t,e){return t*e}).slice(1)),[0]);return ee(r,t)}),y=function(t){return t>1?1:t<0?0:t},v=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=p(r)-e,i=d(r);if(Math.abs(o-e)<Qt||i<Qt)return h(r);r=y(r-o/i)}return h(r)};return v.isStepper=!1,v},oe=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 ne(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,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return Math.abs(u-e)<Qt&&Math.abs(i)<Qt?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u}();default:if("cubic-bezier"===n.split("(")[0])return ne(n)}return"function"==typeof n?n:null};function ie(t){return ie="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},ie(t)}function ae(t){return function(t){if(Array.isArray(t))return pe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||fe(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 ue(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?ue(Object(r),!0).forEach(function(e){le(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function le(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ie(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ie(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function se(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||fe(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 fe(t,e){if(t){if("string"==typeof t)return pe(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)?pe(t,e):void 0}}function pe(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 he=function(t,e,r){return t+(e-t)*r},de=function(t){return t.from!==t.to},ye=function t(e,r,n){var o=Ht(function(t,r){if(de(r)){var n=se(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return ce(ce({},r),{},{from:o,velocity:i})}return r},r);return n<1?Ht(function(t,e){return de(e)?ce(ce({},e),{},{velocity:he(e.velocity,o[t].velocity,n),from:he(e.from,o[t].from,n)}):e},r):t(e,o,n-1)};const ve=function(t,e,r,n,o){var i,a,u,c,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 ce(ce({},r),{},le({},n,[t[n],e[n]]))},{}),f=l.reduce(function(r,n){return ce(ce({},r),{},le({},n,{from:t[n],velocity:0,to:e[n]}))},{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){u||(u=n);var i=(n-u)/r.dt;f=ye(r,f,i),o(ce(ce(ce({},t),e),Ht(function(t,e){return e.from},f))),u=n,Object.values(f).filter(de).length&&(p=requestAnimationFrame(h))}:function(i){c||(c=i);var a=(i-c)/n,u=Ht(function(t,e){return he.apply(void 0,ae(e).concat([r(a)]))},s);if(o(ce(ce(ce({},t),e),u)),a<1)p=requestAnimationFrame(h);else{var l=Ht(function(t,e){return he.apply(void 0,ae(e).concat([r(1)]))},s);o(ce(ce(ce({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};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)}r.dn(ve);var be=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ge(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 we(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return xe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(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 Oe(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 _e(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(r),!0).forEach(function(e){je(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function je(t,e,r){return(e=ke(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Se(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,ke(n.key),n)}}function ke(t){var e=function(t,e){if("object"!==me(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===me(e)?e:String(e)}function Pe(t,e){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pe(t,e)}function Ee(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=Te(t);if(e){var o=Te(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ae(this,r)}}function Ae(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 Me(t)}function Me(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Te(t){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Te(t)}var Ce=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&&Pe(t,e)}(i,t);var e,r,n,o=Ee(i);function i(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n=(r=o.call(this,t,e)).props,a=n.isActive,u=n.attributeName,c=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(Me(r)),r.changeStyle=r.changeStyle.bind(Me(r)),!a||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),Ae(r);if(s&&s.length)r.state={style:s[0].style};else if(c){if("function"==typeof f)return r.state={style:c},Ae(r);r.state={style:u?je({},u,c):c}}else r.state={style:{}};return r}return e=i,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,u=e.from,c=this.state.style;if(n)if(r){if(!(It(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?u:t.to;if(this.state&&c){var f={style:o?je({},o,s):s};(o&&c[o]!==s||!o&&c!==s)&&this.setState(f)}this.runAnimation(_e(_e({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?je({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==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,u=t.onAnimationEnd,c=t.onAnimationStart,l=ve(r,n,oe(i),o,this.changeStyle);this.manager.start([c,a,function(){e.stopJSAnimation=l()},o,u])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,u=i.duration,c=void 0===u?0:u;return this.manager.start([o].concat(we(r.reduce(function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,u=void 0===a?"ease":a,c=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(we(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=Xt(p,i,u),d=_e(_e(_e({},f.style),c),{},{transition:h});return[].concat(we(t),[d,i,s]).filter(Yt)},[a,Math.max(c,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Ft());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,u=t.onAnimationEnd,c=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(t);else{var f=n?je({},n,o):o,p=Xt(Object.keys(f),r,i);s.start([a,e,_e(_e({},f),{},{transition:p}),r,u])}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,ge(t,be)),i=G.Children.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var u=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return(0,G.cloneElement)(t,_e(_e({},o),{},{style:_e(_e({},n),a),className:i}))};return 1===i?u(G.Children.only(e)):Z().createElement("div",null,G.Children.map(e,function(t){return u(t)}))}}],r&&Se(e.prototype,r),n&&Se(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(G.PureComponent);Ce.displayName="Animate",Ce.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Ce.propTypes={from:et().oneOfType([et().object,et().string]),to:et().oneOfType([et().object,et().string]),attributeName:et().string,duration:et().number,begin:et().number,easing:et().oneOfType([et().string,et().func]),steps:et().arrayOf(et().shape({duration:et().number.isRequired,style:et().object.isRequired,easing:et().oneOfType([et().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),et().func]),properties:et().arrayOf("string"),onAnimationEnd:et().func})),children:et().oneOfType([et().node,et().func]),isActive:et().bool,canBegin:et().bool,onAnimationEnd:et().func,shouldReAnimate:et().bool,onAnimationStart:et().func,onAnimationReStart:et().func};const De=Ce;var Ne=r(1882),Ie=r.n(Ne),Be=r(4506),Le=r.n(Be),Re=r(9843),ze=r.n(Re),Ue=r(1741),Fe=r.n(Ue),qe=r(2404),Ke=r.n(qe);const $e=Math.PI,We=2*$e,Ye=1e-6,He=We-Ye;function Xe(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function Ve(t,e,r,n){return t===r&&e===n}class Ge{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Xe:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Xe;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),this._equal=null==t?Ve:function(t){const e=Math.floor(t);if(!(e<=15))return Ve;const r=10**e,n=function(t){return Math.round(t*r)};return function(t,e,r,o){return n(t)===n(r)&&n(e)===n(o)}}(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,u=r-t,c=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>Ye)if(Math.abs(s*u-c*l)>Ye&&o){let p=r-i,h=n-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),b=o*Math.tan(($e-Math.acos((d+f-y)/(2*v*m)))/2),g=b/m,w=b/v;Math.abs(g-1)>Ye&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+w*u},${this._y1=e+w*c}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),u=r*Math.sin(n),c=t+a,l=e+u,s=1^i,f=i?n-o:o-n;if(null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Ye||Math.abs(this._y1-l)>Ye)&&this._append`L${c},${l}`,r)if(f<0&&(f=f%We+We),f>He)this._append`A${r},${r},0,1,${s},${t-a},${e-u}A${r},${r},0,1,${s},${this._x1=c},${this._y1=l}`;else if(f>Ye){const i=t+r*Math.cos(o),a=e+r*Math.sin(o);if(f>=$e&&this._equal(c,l,i,a)){f/=2;let o=n+f;this._append`A${r},${r},0,${+(f>=$e)},${s},${t+r*Math.cos(o)},${e+r*Math.sin(o)}`}this._append`A${r},${r},0,${+(f>=$e)},${s},${this._x1=i},${this._y1=a}`}}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 Ze(t){return function(){return t}}Math.abs,Math.atan2;const Je=Math.cos,Qe=(Math.max,Math.min,Math.sin),tr=Math.sqrt,er=1e-12,rr=Math.PI,nr=2*rr;function or(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 Ge(e)}Array.prototype.slice;function ir(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ar(t){this._context=t}function ur(t){return new ar(t)}function cr(t){return t[0]}function lr(t){return t[1]}function sr(t,e){var r=Ze(!0),n=null,o=ur,i=null,a=or(u);function u(u){var c,l,s,f=(u=ir(u)).length,p=!1;for(null==n&&(i=o(s=a())),c=0;c<=f;++c)!(c<f&&r(l=u[c],c,u))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,c,u),+e(l,c,u));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?cr:Ze(t),e="function"==typeof e?e:void 0===e?lr:Ze(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:Ze(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Ze(+t),u):e},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:Ze(!!t),u):r},u.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),u):o},u.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),u):n},u}function fr(t,e,r){var n=null,o=Ze(!0),i=null,a=ur,u=null,c=or(l);function l(l){var s,f,p,h,d,y=(l=ir(l)).length,v=!1,m=new Array(y),b=new Array(y);for(null==i&&(u=a(d=c())),s=0;s<=y;++s){if(!(s<y&&o(h=l[s],s,l))===v)if(v=!v)f=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=s-1;p>=f;--p)u.point(m[p],b[p]);u.lineEnd(),u.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),u.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(d)return u=null,d+""||null}function s(){return sr().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?cr:Ze(+t),e="function"==typeof e?e:Ze(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?lr:Ze(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Ze(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Ze(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Ze(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Ze(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Ze(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Ze(+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:Ze(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),l):i},l}ar.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)}}};hr(ur);function pr(t){this._curve=t}function hr(t){function e(e){return new pr(t(e))}return e._curve=t,e}pr.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};class dr{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 yr(t){return new dr(t,!0)}function vr(t){return new dr(t,!1)}tr(3);var mr={draw(t,e){const r=tr(e/rr);t.moveTo(r,0),t.arc(0,0,r,0,nr)}},br={draw(t,e){const r=tr(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};const gr=tr(1/3),wr=2*gr;var xr={draw(t,e){const r=tr(e/wr),n=r*gr;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Or={draw(t,e){const r=tr(e),n=-r/2;t.rect(n,n,r,r)}};const _r=Qe(rr/10)/Qe(7*rr/10),jr=Qe(nr/10)*_r,Sr=-Je(nr/10)*_r;var kr={draw(t,e){const r=tr(.8908130915292852*e),n=jr*r,o=Sr*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=nr*e/5,a=Je(i),u=Qe(i);t.lineTo(u*r,-a*r),t.lineTo(a*n-u*o,u*n+a*o)}t.closePath()}};const Pr=tr(3);var Er={draw(t,e){const r=-tr(e/(3*Pr));t.moveTo(0,2*r),t.lineTo(-Pr*r,-r),t.lineTo(Pr*r,-r),t.closePath()}};tr(3);const Ar=-.5,Mr=tr(3)/2,Tr=1/tr(12),Cr=3*(Tr/2+1);var Dr={draw(t,e){const r=tr(e/Cr),n=r/2,o=r*Tr,i=n,a=r*Tr+r,u=-i,c=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(u,c),t.lineTo(Ar*n-Mr*o,Mr*n+Ar*o),t.lineTo(Ar*i-Mr*a,Mr*i+Ar*a),t.lineTo(Ar*u-Mr*c,Mr*u+Ar*c),t.lineTo(Ar*n+Mr*o,Ar*o-Mr*n),t.lineTo(Ar*i+Mr*a,Ar*a-Mr*i),t.lineTo(Ar*u+Mr*c,Ar*c-Mr*u),t.closePath()}};function Nr(){}function Ir(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 Br(t){this._context=t}function Lr(t){this._context=t}function Rr(t){this._context=t}function zr(t,e){this._basis=new Br(t),this._beta=e}Br.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:Ir(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:Ir(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Lr.prototype={areaStart:Nr,areaEnd:Nr,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:Ir(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Rr.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:Ir(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},zr.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,o=t[0],i=e[0],a=t[r]-o,u=e[r]-i,c=-1;++c<=r;)n=c/r,this._basis.point(this._beta*t[c]+(1-this._beta)*(o+n*a),this._beta*e[c]+(1-this._beta)*(i+n*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};(function t(e){function r(t){return 1===e?new Br(t):new zr(t,e)}return r.beta=function(e){return t(+e)},r})(.85);function Ur(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Fr(t,e){this._context=t,this._k=(1-e)/6}Fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ur(this,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,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ur(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(t){return new Fr(t,e)}return r.tension=function(e){return t(+e)},r})(0);function qr(t,e){this._context=t,this._k=(1-e)/6}qr.prototype={areaStart:Nr,areaEnd:Nr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ur(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(t){return new qr(t,e)}return r.tension=function(e){return t(+e)},r})(0);function Kr(t,e){this._context=t,this._k=(1-e)/6}Kr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ur(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(t){return new Kr(t,e)}return r.tension=function(e){return t(+e)},r})(0);function $r(t,e,r){var n=t._x1,o=t._y1,i=t._x2,a=t._y2;if(t._l01_a>er){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,o=(o*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>er){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*l+t._x1*t._l23_2a-e*t._l12_2a)/s,a=(a*l+t._y1*t._l23_2a-r*t._l12_2a)/s}t._context.bezierCurveTo(n,o,i,a,t._x2,t._y2)}function Wr(t,e){this._context=t,this._alpha=e}Wr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}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;default:$r(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(t){return e?new Wr(t,e):new Fr(t,0)}return r.alpha=function(e){return t(+e)},r})(.5);function Yr(t,e){this._context=t,this._alpha=e}Yr.prototype={areaStart:Nr,areaEnd:Nr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:$r(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(t){return e?new Yr(t,e):new qr(t,0)}return r.alpha=function(e){return t(+e)},r})(.5);function Hr(t,e){this._context=t,this._alpha=e}Hr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$r(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(t){return e?new Hr(t,e):new Kr(t,0)}return r.alpha=function(e){return t(+e)},r})(.5);function Xr(t){this._context=t}function Vr(t){return t<0?-1:1}function Gr(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),u=(i*o+a*n)/(n+o);return(Vr(i)+Vr(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function Zr(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Jr(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function Qr(t){this._context=t}function tn(t){this._context=new en(t)}function en(t){this._context=t}function rn(t){this._context=t}function nn(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 on(t,e){this._context=t,this._t=e}function an(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function un(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function cn(t,e){return t[e]}function ln(t){const e=[];return e.key=t,e}Xr.prototype={areaStart:Nr,areaEnd:Nr,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))}},Qr.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:Jr(this,this._t0,Zr(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,Jr(this,Zr(this,r=Gr(this,t,e)),r);break;default:Jr(this,this._t0,r=Gr(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(tn.prototype=Object.create(Qr.prototype)).point=function(t,e){Qr.prototype.point.call(this,e,t)},en.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)}},rn.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=nn(t),o=nn(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)}},on.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 sn=r(5808),fn=r.n(sn),pn=r(3805),hn=r.n(pn);function dn(t){return dn="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},dn(t)}var yn=["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"],vn=["points","pathLength"],mn={svg:["viewBox","children"],polygon:vn,polyline:vn},bn=["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"],gn=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,G.isValidElement)(t)&&(r=t.props),!hn()(r))return null;var n={};return Object.keys(r).forEach(function(t){bn.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})}),n},wn=function(t,e,r){if(!hn()(t)||"object"!==dn(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];bn.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},xn=r(8156),On=r.n(xn),_n=r(5015),jn=r.n(_n);n();var Sn=r(8023),kn=r.n(Sn),Pn=function(t){return 0===t?0:t>0?1:-1},En=function(t){return jn()(t)&&t.indexOf("%")===t.length-1},An=function(t){return kn()(t)&&!Fe()(t)},Mn=function(t){return An(t)||jn()(t)},Tn=0,Cn=function(t){var e=++Tn;return"".concat(t||"").concat(e)},Dn=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(!An(t)&&!jn()(t))return n;if(En(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return Fe()(r)&&(r=n),o&&r>e&&(r=e),r},Nn=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},In=function(t,e){return An(t)&&An(e)?function(r){return t+r*(e-t)}:function(){return e}};function Bn(t,e,r){return t&&t.length?t.find(function(t){return t&&("function"==typeof e?e(t):On()(t,e))===r}):null}var Ln=function(t,e){return An(t)&&An(e)?t-e:jn()(t)&&jn()(e)?t.localeCompare(e):t instanceof Date&&e instanceof Date?t.getTime()-e.getTime():String(t).localeCompare(String(e))};function Rn(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}var zn=["children"],Un=["children"];function Fn(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function qn(t){return qn="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},qn(t)}var Kn={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},$n=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Wn=null,Yn=null,Hn=function t(r){if(r===Wn&&Array.isArray(Yn))return Yn;var n=[];return G.Children.forEach(r,function(r){ze()(r)||((0,e().isFragment)(r)?n=n.concat(t(r.props.children)):n.push(r))}),Yn=n,Wn=r,n};function Xn(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return $n(t)}):[$n(e)],Hn(t).forEach(function(t){var e=On()(t,"type.displayName")||On()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function Vn(t,e){var r=Xn(t,e);return r&&r[0]}var Gn=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!An(r)||r<=0||!An(n)||n<=0)},Zn=["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"],Jn=function(t){return t&&t.type&&jn()(t.type)&&Zn.indexOf(t.type)>=0},Qn=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,G.isValidElement)(t)&&(n=t.props),!hn()(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==mn?void 0:mn[n])&&void 0!==o?o:[];return e.startsWith("data-")||!Ie()(t)&&(n&&i.includes(e)||yn.includes(e))||r&&bn.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])}),o},to=function t(e,r){if(e===r)return!0;var n=G.Children.count(e);if(n!==G.Children.count(r))return!1;if(0===n)return!0;if(1===n)return eo(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var i=e[o],a=r[o];if(Array.isArray(i)||Array.isArray(a)){if(!t(i,a))return!1}else if(!eo(i,a))return!1}return!0},eo=function(t,e){if(ze()(t)&&ze()(e))return!0;if(!ze()(t)&&!ze()(e)){var r=t.props||{},n=r.children,o=Fn(r,zn),i=e.props||{},a=i.children,u=Fn(i,Un);return n&&a?Rn(o,u)&&to(n,a):!n&&!a&&Rn(o,u)}return!1},ro=function(t,e){var r=[],n={};return Hn(t).forEach(function(t,o){if(Jn(t))r.push(t);else if(t){var i=$n(t.type),a=e[i]||{},u=a.handler,c=a.once;if(u&&(!c||!n[i])){var l=u(t,i,o);r.push(l),n[i]=!0}}}),r};function no(t){return no="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},no(t)}function oo(){return oo=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},oo.apply(this,arguments)}function io(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 ao(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?io(Object(r),!0).forEach(function(e){uo(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function uo(t,e,r){var n;return n=function(t,e){if("object"!=no(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=no(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==no(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var co={curveBasisClosed:function(t){return new Lr(t)},curveBasisOpen:function(t){return new Rr(t)},curveBasis:function(t){return new Br(t)},curveBumpX:yr,curveBumpY:vr,curveLinearClosed:function(t){return new Xr(t)},curveLinear:ur,curveMonotoneX:function(t){return new Qr(t)},curveMonotoneY:function(t){return new tn(t)},curveNatural:function(t){return new rn(t)},curveStep:function(t){return new on(t,.5)},curveStepAfter:function(t){return new on(t,1)},curveStepBefore:function(t){return new on(t,0)}},lo=function(t){return t.x===+t.x&&t.y===+t.y},so=function(t){return t.x},fo=function(t){return t.y},po=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,u=t.layout,c=t.connectNulls,l=void 0!==c&&c,s=function(t,e){if(Ie()(t))return t;var r="curve".concat(fn()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?co[r]||ur:co["".concat(r).concat("vertical"===e?"Y":"X")]}(n,u),f=l?i.filter(function(t){return lo(t)}):i;if(Array.isArray(a)){var p=l?a.filter(function(t){return lo(t)}):a,h=f.map(function(t,e){return ao(ao({},t),{},{base:p[e]})});return(e="vertical"===u?fr().y(fo).x1(so).x0(function(t){return t.base.x}):fr().x(so).y1(fo).y0(function(t){return t.base.y})).defined(lo).curve(s),e(h)}return(e="vertical"===u&&An(a)?fr().y(fo).x1(so).x0(a):An(a)?fr().x(so).y1(fo).y0(a):sr().x(so).y(fo)).defined(lo).curve(s),e(f)},ho=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?po(t):n;return G.createElement("path",oo({},Qn(t,!1),gn(t),{className:Q("recharts-curve",e),d:i,ref:o}))};function yo(){return yo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yo.apply(this,arguments)}var vo=function(t){var e=t.cx,r=t.cy,n=t.r,o=t.className,i=Q("recharts-dot",o);return e===+e&&r===+r&&n===+n?G.createElement("circle",yo({},Qn(t,!1),gn(t),{className:i,cx:e,cy:r,r:n})):null},mo=["children","className"];function bo(){return bo=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},bo.apply(this,arguments)}function go(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var wo=Z().forwardRef(function(t,e){var r=t.children,n=t.className,o=go(t,mo),i=Q("recharts-layer",n);return Z().createElement("g",bo({className:i},Qn(o,!0),{ref:e}),r)}),xo=r(8090),Oo=r.n(xo),_o={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return _o[t]},set:function(t,e){if("string"==typeof t)_o[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){_o[e]=t[e]})}}};function jo(t){return jo="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},jo(t)}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 ko(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){var n;return n=function(t,e){if("object"!=jo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==jo(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Eo={widthCache:{},cacheCount:0},Ao={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Mo="recharts_measurement_span";var To=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||_o.isSsr)return{width:0,height:0};var r,n=(r=ko({},e),Object.keys(r).forEach(function(t){r[t]||delete r[t]}),r),o=JSON.stringify({text:t,copyStyle:n});if(Eo.widthCache[o])return Eo.widthCache[o];try{var i=document.getElementById(Mo);i||((i=document.createElement("span")).setAttribute("id",Mo),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=ko(ko({},Ao),n);Object.assign(i.style,a),i.textContent="".concat(t);var u=i.getBoundingClientRect(),c={width:u.width,height:u.height};return Eo.widthCache[o]=c,++Eo.cacheCount>2e3&&(Eo.cacheCount=0,Eo.widthCache={}),c}catch(t){return{width:0,height:0}}};function Co(t){return Co="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},Co(t)}function Do(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return No(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return No(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function No(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Io(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bo(n.key),n)}}function Bo(t){var e=function(t,e){if("object"!=Co(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Co(e)?e:e+""}var Lo=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ro=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zo=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Uo=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Fo={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},qo=Object.keys(Fo),Ko="NaN";var $o=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||zo.test(r)||(this.num=NaN,this.unit=""),qo.includes(r)&&(this.num=function(t,e){return t*Fo[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=Do(null!==(r=Uo.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)}}])&&Io(e.prototype,r),n&&Io(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function Wo(t){if(t.includes(Ko))return Ko;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Do(null!==(r=Lo.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],u=$o.parse(null!=o?o:""),c=$o.parse(null!=a?a:""),l="*"===i?u.multiply(c):u.divide(c);if(l.isNaN())return Ko;e=e.replace(Lo,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Do(null!==(s=Ro.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=$o.parse(null!=p?p:""),v=$o.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return Ko;e=e.replace(Ro,m.toString())}return e}var Yo=/\(([^()]*)\)/;function Ho(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Do(Yo.exec(e),2)[1];e=e.replace(Yo,Wo(r))}return e}(e),e=Wo(e)}function Xo(t){var e=function(t){try{return Ho(t)}catch(t){return Ko}}(t.slice(5,-1));return e===Ko?"":e}var Vo=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Go=["dx","dy","angle","className","breakAll"];function Zo(){return Zo=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},Zo.apply(this,arguments)}function Jo(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Qo(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ti(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ti(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(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 ei=/[ \f\n\r\t\v\u2028\u2029]+/,ri=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return ze()(e)||(o=r?e.toString().split(""):e.toString().split(ei)),{wordsWithComputedWidth:o.map(function(t){return{word:t,width:To(t,n).width}}),spaceWidth:r?0:To(" ",n).width}}catch(t){return null}},ni=function(t){return[{words:ze()(t)?[]:t.toString().split(ei)}]},oi=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!_o.isSsr){var u=ri({breakAll:i,children:n,style:o});return u?function(t,e,r,n,o){var i=t.maxLines,a=t.children,u=t.style,c=t.breakAll,l=An(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,u=t[t.length-1];if(u&&(null==n||o||u.width+a+r<Number(n)))u.words.push(i),u.width+=a+r;else{var c={words:[i],width:a};t.push(c)}return t},[])},p=f(e);if(!l)return p;for(var h,d=function(t){var e=s.slice(0,t),r=ri({breakAll:c,style:u,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce(function(t,e){return t.width>e.width?t:e})}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var b=Math.floor((y+v)/2),g=Qo(d(b-1),2),w=g[0],x=g[1],O=Qo(d(b),1)[0];if(w||O||(y=b+1),w&&O&&(v=b-1),!w&&O){h=x;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},u.wordsWithComputedWidth,u.spaceWidth,e,r):ni(n)}return ni(n)},ii="#808080",ai=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.lineHeight,a=void 0===i?"1em":i,u=t.capHeight,c=void 0===u?"0.71em":u,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,p=void 0===f?"start":f,h=t.verticalAnchor,d=void 0===h?"end":h,y=t.fill,v=void 0===y?ii:y,m=Jo(t,Vo),b=(0,G.useMemo)(function(){return oi({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),g=m.dx,w=m.dy,x=m.angle,O=m.className,_=m.breakAll,j=Jo(m,Go);if(!Mn(r)||!Mn(o))return null;var S,k=r+(An(g)?g:0),P=o+(An(w)?w:0);switch(d){case"start":S=Xo("calc(".concat(c,")"));break;case"middle":S=Xo("calc(".concat((b.length-1)/2," * -").concat(a," + (").concat(c," / 2))"));break;default:S=Xo("calc(".concat(b.length-1," * -").concat(a,")"))}var E=[];if(s){var A=b[0].width,M=m.width;E.push("scale(".concat((An(M)?M/A:1)/A,")"))}return x&&E.push("rotate(".concat(x,", ").concat(k,", ").concat(P,")")),E.length&&(j.transform=E.join(" ")),Z().createElement("text",Zo({},Qn(j,!0),{x:k,y:P,className:Q("recharts-text",O),textAnchor:p,fill:v.includes("url")?ii:v}),b.map(function(t,e){var r=t.words.join(_?"":" ");return Z().createElement("tspan",{x:k,dy:0===e?S:a,key:"".concat(r,"-").concat(e)},r)}))};function ui(t){return ui="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},ui(t)}function ci(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?ci(Object(r),!0).forEach(function(e){si(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ci(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,e){if("object"!=ui(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ui(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fi=Math.PI/180,pi=function(t){return 180*t/Math.PI},hi=function(t,e,r,n){return{x:t+Math.cos(-fi*n)*r,y:e+Math.sin(-fi*n)*r}},di=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 u=(r-o)/a,c=Math.acos(u);return n>i&&(c=2*Math.PI-c),{radius:a,angle:pi(c),angleInRadian:c}},yi=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)},vi=function(t,e){var r=t.x,n=t.y,o=di({x:r,y:n},e),i=o.radius,a=o.angle,u=e.innerRadius,c=e.outerRadius;if(i<u||i>c)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?li(li({},e),{},{radius:i,angle:yi(h,e)}):null};function mi(t){return mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(t)}var bi=["offset"];function gi(t){return function(t){if(Array.isArray(t))return wi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return wi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wi(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wi(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 xi(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Oi(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 _i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Oi(Object(r),!0).forEach(function(e){ji(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oi(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ji(t,e,r){var n;return n=function(t,e){if("object"!=mi(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==mi(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Si(){return Si=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},Si.apply(this,arguments)}var ki=function(t,e,r){var n,o,i=t.position,a=t.viewBox,u=t.offset,c=t.className,l=a,s=l.cx,f=l.cy,p=l.innerRadius,h=l.outerRadius,d=l.startAngle,y=l.endAngle,v=l.clockWise,m=(p+h)/2,b=function(t,e){return Pn(e-t)*Math.min(Math.abs(e-t),360)}(d,y),g=b>=0?1:-1;"insideStart"===i?(n=d+g*u,o=v):"insideEnd"===i?(n=y-g*u,o=!v):"end"===i&&(n=y+g*u,o=v),o=b<=0?o:!o;var w=hi(s,f,m,n),x=hi(s,f,m,n+359*(o?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(x.x,",").concat(x.y),_=ze()(t.id)?Cn("recharts-radial-line-"):t.id;return Z().createElement("text",Si({},r,{dominantBaseline:"central",className:Q("recharts-radial-bar-label",c)}),Z().createElement("defs",null,Z().createElement("path",{id:_,d:O})),Z().createElement("textPath",{xlinkHref:"#".concat(_)},e))};function Pi(t){var e,r=t.offset,n=_i({offset:void 0===r?5:r},xi(t,bi)),o=n.viewBox,i=n.position,a=n.value,u=n.children,c=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!o||ze()(a)&&ze()(u)&&!(0,G.isValidElement)(c)&&!Ie()(c))return null;if((0,G.isValidElement)(c))return(0,G.cloneElement)(c,n);if(Ie()(c)){if(e=(0,G.createElement)(c,n),(0,G.isValidElement)(e))return e}else e=function(t){var e=t.value,r=t.formatter,n=ze()(t.children)?e:t.children;return Ie()(r)?r(n):n}(n);var p=function(t){return"cx"in t&&An(t.cx)}(o),h=Qn(n,!0);if(p&&("insideStart"===i||"insideEnd"===i||"end"===i))return ki(n,e,h);var d=p?function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,u=o.innerRadius,c=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=hi(i,a,c+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=hi(i,a,(u+c)/2,l);return{x:p.x,y:p.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,u=i.y,c=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=c>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===o)return _i(_i({},{x:a+c/2,y:u-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(u-r.y,0),width:c}:{});if("bottom"===o)return _i(_i({},{x:a+c/2,y:u+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(u+l),0),width:c}:{});if("left"===o){var b={x:a-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"};return _i(_i({},b),r?{width:Math.max(b.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+c+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"};return _i(_i({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var w=r?{width:c,height:l}:{};return"insideLeft"===o?_i({x:a+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?_i({x:a+c-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?_i({x:a+c/2,y:u+f,textAnchor:"middle",verticalAnchor:h},w):"insideBottom"===o?_i({x:a+c/2,y:u+l-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?_i({x:a+y,y:u+f,textAnchor:m,verticalAnchor:h},w):"insideTopRight"===o?_i({x:a+c-y,y:u+f,textAnchor:v,verticalAnchor:h},w):"insideBottomLeft"===o?_i({x:a+y,y:u+l-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?_i({x:a+c-y,y:u+l-f,textAnchor:v,verticalAnchor:p},w):hn()(o)&&(An(o.x)||En(o.x))&&(An(o.y)||En(o.y))?_i({x:a+Dn(o.x,c),y:u+Dn(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):_i({x:a+c/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(n);return Z().createElement(ai,Si({className:Q("recharts-label",s)},h,d,{breakAll:f}),e)}Pi.displayName="Label";var Ei=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=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(An(d)&&An(y)){if(An(s)&&An(f))return{x:s,y:f,width:d,height:y};if(An(p)&&An(h))return{x:p,y:h,width:d,height:y}}return An(s)&&An(f)?{x:s,y:f,width:0,height:0}:An(e)&&An(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};function Ai(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Mi(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ti(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=Ai,r=(e,r)=>Ai(t(e),r),n=(e,r)=>t(e)-r):(e=t===Ai||t===Mi?t:Ci,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 Ci(){return 0}function Di(t){return null===t?NaN:+t}Pi.parseViewBox=Ei,Pi.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=Ei(t),i=Xn(n,Pi).map(function(t,r){return(0,G.cloneElement)(t,{viewBox:e||o,key:"label-".concat(r)})});if(!r)return i;var a=function(t,e){return t?!0===t?Z().createElement(Pi,{key:"label-implicit",viewBox:e}):Mn(t)?Z().createElement(Pi,{key:"label-implicit",viewBox:e,value:t}):(0,G.isValidElement)(t)?t.type===Pi?(0,G.cloneElement)(t,{key:"label-implicit",viewBox:e}):Z().createElement(Pi,{key:"label-implicit",content:t,viewBox:e}):Ie()(t)?Z().createElement(Pi,{key:"label-implicit",content:t,viewBox:e}):hn()(t)?Z().createElement(Pi,Si({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[a].concat(gi(i))};const Ni=Ti(Ai),Ii=Ni.right;Ni.left,Ti(Di).center;Bi(zi),Bi(function(t){const e=zi(t);return(t,r,n,o,i)=>{e(t,r,(n<<=2)+0,(o<<=2)+0,i<<=2),e(t,r,n+1,o+1,i),e(t,r,n+2,o+2,i),e(t,r,n+3,o+3,i)}});function Bi(t){return function(e,r,n=r){if(!((r=+r)>=0))throw new RangeError("invalid rx");if(!((n=+n)>=0))throw new RangeError("invalid ry");let{data:o,width:i,height:a}=e;if(!((i=Math.floor(i))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:o.length/i))>=0))throw new RangeError("invalid height");if(!i||!a||!r&&!n)return e;const u=r&&t(r),c=n&&t(n),l=o.slice();return u&&c?(Li(u,l,o,i,a),Li(u,o,l,i,a),Li(u,l,o,i,a),Ri(c,o,l,i,a),Ri(c,l,o,i,a),Ri(c,o,l,i,a)):u?(Li(u,o,l,i,a),Li(u,l,o,i,a),Li(u,o,l,i,a)):c&&(Ri(c,o,l,i,a),Ri(c,l,o,i,a),Ri(c,o,l,i,a)),e}}function Li(t,e,r,n,o){for(let i=0,a=n*o;i<a;)t(e,r,i,i+=n,1)}function Ri(t,e,r,n,o){for(let i=0,a=n*o;i<n;++i)t(e,r,i,i+a,n)}function zi(t){const e=Math.floor(t);if(e===t)return function(t){const e=2*t+1;return(r,n,o,i,a)=>{if(!((i-=a)>=o))return;let u=t*n[o];const c=a*t;for(let t=o,e=o+c;t<e;t+=a)u+=n[Math.min(i,t)];for(let t=o,l=i;t<=l;t+=a)u+=n[Math.min(i,t+c)],r[t]=u/e,u-=n[Math.max(o,t-c)]}}(t);const r=t-e,n=2*t+1;return(t,o,i,a,u)=>{if(!((a-=u)>=i))return;let c=e*o[i];const l=u*e,s=l+u;for(let t=i,e=i+l;t<e;t+=u)c+=o[Math.min(a,t)];for(let e=i,f=a;e<=f;e+=u)c+=o[Math.min(a,e+l)],t[e]=(c+r*(o[Math.max(i,e-s)]+o[Math.min(a,e+s)]))/n,c-=o[Math.max(i,e-l)]}}class Ui extends Map{constructor(t,e=$i){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(Fi(this,t))}has(t){return super.has(Fi(this,t))}set(t,e){return super.set(qi(this,t),e)}delete(t){return super.delete(Ki(this,t))}}Set;function Fi({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function qi({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function Ki({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function $i(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Wi(t=Ai){if(t===Ai)return Yi;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))}}function Yi(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}Array.prototype.slice;const Hi=Math.sqrt(50),Xi=Math.sqrt(10),Vi=Math.sqrt(2);function Gi(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>=Hi?10:i>=Xi?5:i>=Vi?2:1;let u,c,l;return o<0?(l=Math.pow(10,-o)/a,u=Math.round(t*l),c=Math.round(e*l),u/l<t&&++u,c/l>e&&--c,l=-l):(l=Math.pow(10,o)*a,u=Math.round(t/l),c=Math.round(e/l),u*l<t&&++u,c*l>e&&--c),c<u&&.5<=r&&r<2?Gi(t,e,2*r):[u,c,l]}function Zi(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Gi(e,t,r):Gi(t,e,r);if(!(i>=o))return[];const u=i-o+1,c=new Array(u);if(n)if(a<0)for(let t=0;t<u;++t)c[t]=(i-t)/-a;else for(let t=0;t<u;++t)c[t]=(i-t)*a;else if(a<0)for(let t=0;t<u;++t)c[t]=(o+t)/-a;else for(let t=0;t<u;++t)c[t]=(o+t)*a;return c}function Ji(t,e,r){return Gi(t=+t,e=+e,r=+r)[2]}function Qi(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Ji(e,t,r):Ji(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function ta(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 ea(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 ra(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?Yi:Wi(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,u=Math.log(i),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);ra(t,e,Math.max(r,Math.floor(e-a*c/i+l)),Math.min(n,Math.floor(e+(i-a)*c/i+l)),o)}const i=t[e];let a=r,u=n;for(na(t,r,e),o(t[n],i)>0&&na(t,r,n);a<u;){for(na(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[r],i)?na(t,r,u):(++u,na(t,u,n)),u<=e&&(r=u+1),e<=u&&(n=u-1)}return t}function na(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function oa(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 ea(t);if(e>=1)return ta(t);var n,o=(n-1)*e,i=Math.floor(o),a=ta(ra(t,i).subarray(0,i+1));return a+(ea(t.subarray(i+1))-a)*(o-i)}}function ia(t,e,r=Di){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)}}var aa;aa=Math.random;function ua(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function ca(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function la(){}r.dn(ua);var sa=.7,fa=1/sa,pa="\\s*([+-]?\\d+)\\s*",ha="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",da="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ya=/^#([0-9a-f]{3,8})$/,va=new RegExp("^rgb\\("+[pa,pa,pa]+"\\)$"),ma=new RegExp("^rgb\\("+[da,da,da]+"\\)$"),ba=new RegExp("^rgba\\("+[pa,pa,pa,ha]+"\\)$"),ga=new RegExp("^rgba\\("+[da,da,da,ha]+"\\)$"),wa=new RegExp("^hsl\\("+[ha,da,da]+"\\)$"),xa=new RegExp("^hsla\\("+[ha,da,da,ha]+"\\)$"),Oa={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 _a(){return this.rgb().formatHex()}function ja(){return this.rgb().formatRgb()}function Sa(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=ya.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?ka(e):3===r?new Ma(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Pa(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Pa(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=va.exec(t))?new Ma(e[1],e[2],e[3],1):(e=ma.exec(t))?new Ma(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ba.exec(t))?Pa(e[1],e[2],e[3],e[4]):(e=ga.exec(t))?Pa(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=wa.exec(t))?Na(e[1],e[2]/100,e[3]/100,1):(e=xa.exec(t))?Na(e[1],e[2]/100,e[3]/100,e[4]):Oa.hasOwnProperty(t)?ka(Oa[t]):"transparent"===t?new Ma(NaN,NaN,NaN,0):null}function ka(t){return new Ma(t>>16&255,t>>8&255,255&t,1)}function Pa(t,e,r,n){return n<=0&&(t=e=r=NaN),new Ma(t,e,r,n)}function Ea(t){return t instanceof la||(t=Sa(t)),t?new Ma((t=t.rgb()).r,t.g,t.b,t.opacity):new Ma}function Aa(t,e,r,n){return 1===arguments.length?Ea(t):new Ma(t,e,r,n??1)}function Ma(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Ta(){return"#"+Da(this.r)+Da(this.g)+Da(this.b)}function Ca(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Da(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Na(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new La(t,e,r,n)}function Ia(t){if(t instanceof La)return new La(t.h,t.s,t.l,t.opacity);if(t instanceof la||(t=Sa(t)),!t)return new La;if(t instanceof La)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,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+6*(r<n):r===i?(n-e)/u+2:(e-r)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new La(a,u,c,t.opacity)}function Ba(t,e,r,n){return 1===arguments.length?Ia(t):new La(t,e,r,n??1)}function La(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Ra(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}ua(la,Sa,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:_a,formatHex:_a,formatHsl:function(){return Ia(this).formatHsl()},formatRgb:ja,toString:ja}),ua(Ma,Aa,ca(la,{brighter:function(t){return t=null==t?fa:Math.pow(fa,t),new Ma(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?sa:Math.pow(sa,t),new Ma(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:Ta,formatHex:Ta,formatRgb:Ca,toString:Ca})),ua(La,Ba,ca(la,{brighter:function(t){return t=null==t?fa:Math.pow(fa,t),new La(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?sa:Math.pow(sa,t),new La(this.h,this.s,this.l*t,this.opacity)},rgb:function(){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 Ma(Ra(t>=240?t-240:t+120,o,n),Ra(t,o,n),Ra(t<120?t+240:t-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var za=Math.PI/180,Ua=180/Math.PI,Fa=.96422,qa=.82521,Ka=4/29,$a=6/29,Wa=3*$a*$a,Ya=$a*$a*$a;function Ha(t){if(t instanceof Xa)return new Xa(t.l,t.a,t.b,t.opacity);if(t instanceof eu)return ru(t);t instanceof Ma||(t=Ea(t));var e,r,n=Ja(t.r),o=Ja(t.g),i=Ja(t.b),a=Va((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?e=r=a:(e=Va((.4360747*n+.3850649*o+.1430804*i)/Fa),r=Va((.0139322*n+.0971045*o+.7141733*i)/qa)),new Xa(116*a-16,500*(e-a),200*(a-r),t.opacity)}function Xa(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function Va(t){return t>Ya?Math.pow(t,1/3):t/Wa+Ka}function Ga(t){return t>$a?t*t*t:Wa*(t-Ka)}function Za(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ja(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qa(t){if(t instanceof eu)return new eu(t.h,t.c,t.l,t.opacity);if(t instanceof Xa||(t=Ha(t)),0===t.a&&0===t.b)return new eu(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ua;return new eu(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function tu(t,e,r,n){return 1===arguments.length?Qa(t):new eu(t,e,r,n??1)}function eu(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function ru(t){if(isNaN(t.h))return new Xa(t.l,0,0,t.opacity);var e=t.h*za;return new Xa(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ua(Xa,function(t,e,r,n){return 1===arguments.length?Ha(t):new Xa(t,e,r,n??1)},ca(la,{brighter:function(t){return new Xa(this.l+18*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new Xa(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new Ma(Za(3.1338561*(e=Fa*Ga(e))-1.6168667*(t=1*Ga(t))-.4906146*(r=qa*Ga(r))),Za(-.9787684*e+1.9161415*t+.033454*r),Za(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),ua(eu,tu,ca(la,{brighter:function(t){return new eu(this.h,this.c,this.l+18*(t??1),this.opacity)},darker:function(t){return new eu(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb:function(){return ru(this).rgb()}}));var nu=-.14861,ou=1.78277,iu=-.29227,au=-.90649,uu=1.97294,cu=uu*au,lu=uu*ou,su=ou*iu-au*nu;function fu(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof pu)return new pu(t.h,t.s,t.l,t.opacity);t instanceof Ma||(t=Ea(t));var e=t.r/255,r=t.g/255,n=t.b/255,o=(su*n+cu*e-lu*r)/(su+cu-lu),i=n-o,a=(uu*(r-o)-iu*i)/au,u=Math.sqrt(a*a+i*i)/(uu*o*(1-o)),c=u?Math.atan2(a,i)*Ua-120:NaN;return new pu(c<0?c+360:c,u,o,t.opacity)}(t):new pu(t,e,r,n??1)}function pu(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function hu(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}ua(pu,fu,ca(la,{brighter:function(t){return t=null==t?fa:Math.pow(fa,t),new pu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?sa:Math.pow(sa,t),new pu(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*za,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),o=Math.sin(t);return new Ma(255*(e+r*(nu*n+ou*o)),255*(e+r*(iu*n+au*o)),255*(e+r*(uu*n)),this.opacity)}}));var du=t=>()=>t;function yu(t,e){return function(r){return t+r*e}}function vu(t,e){var r=e-t;return r?yu(t,r>180||r<-180?r-360*Math.round(r/360):r):du(isNaN(t)?e:t)}function mu(t){return 1===(t=+t)?bu: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):du(isNaN(e)?r:e)}}function bu(t,e){var r=e-t;return r?yu(t,r):du(isNaN(t)?e:t)}var gu=function t(e){var r=mu(e);function n(t,e){var n=r((t=Aa(t)).r,(e=Aa(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=bu(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 wu(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(r=0;r<o;++r)n=Aa(e[r]),i[r]=n.r||0,a[r]=n.g||0,u[r]=n.b||0;return i=t(i),a=t(a),u=t(u),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=u(t),n+""}}}wu(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,u=n<e-1?t[n+2]:2*i-o;return hu((r-n/e)*e,a,o,i,u)}}),wu(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],u=t[(n+2)%e];return hu((r-n/e)*e,o,i,a,u)}});function xu(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 Ou(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function _u(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]=Mu(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 ju(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Su(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ku(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]=Mu(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Pu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Eu=new RegExp(Pu.source,"g");function Au(t,e){var r,n,o,i=Pu.lastIndex=Eu.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(r=Pu.exec(t))&&(n=Eu.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(n=n[0])?u[a]?u[a]+=n:u[++a]=n:(u[++a]=null,c.push({i:a,x:Su(r,n)})),i=Eu.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var r,n=0;n<e;++n)u[(r=c[n]).i]=r.x(t);return u.join("")})}function Mu(t,e){var r,n=typeof e;return null==e||"boolean"===n?du(e):("number"===n?Su:"string"===n?(r=Sa(e))?(e=r,gu):Au:e instanceof Sa?gu:e instanceof Date?ju:Ou(e)?xu:Array.isArray(e)?_u:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ku:Su)(t,e)}function Tu(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var Cu,Du=180/Math.PI,Nu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Iu(t,e,r,n,o,i){var a,u,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*r+e*n)&&(r-=t*c,n-=e*c),(u=Math.sqrt(r*r+n*n))&&(r/=u,n/=u,c/=u),t*n<e*r&&(t=-t,e=-e,c=-c,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*Du,skewX:Math.atan(c)*Du,scaleX:a,scaleY:u}}function Bu(t,e,r,n){function o(t){return t.length?t.pop()+" ":""}return function(i,a){var u=[],c=[];return i=t(i),a=t(a),function(t,n,o,i,a,u){if(t!==o||n!==i){var c=a.push("translate(",null,e,null,r);u.push({i:c-4,x:Su(t,o)},{i:c-2,x:Su(n,i)})}else(o||i)&&a.push("translate("+o+e+i+r)}(i.translateX,i.translateY,a.translateX,a.translateY,u,c),function(t,e,r,i){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),i.push({i:r.push(o(r)+"rotate(",null,n)-2,x:Su(t,e)})):e&&r.push(o(r)+"rotate("+e+n)}(i.rotate,a.rotate,u,c),function(t,e,r,i){t!==e?i.push({i:r.push(o(r)+"skewX(",null,n)-2,x:Su(t,e)}):e&&r.push(o(r)+"skewX("+e+n)}(i.skewX,a.skewX,u,c),function(t,e,r,n,i,a){if(t!==r||e!==n){var u=i.push(o(i)+"scale(",null,",",null,")");a.push({i:u-4,x:Su(t,r)},{i:u-2,x:Su(e,n)})}else 1===r&&1===n||i.push(o(i)+"scale("+r+","+n+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,u,c),i=a=null,function(t){for(var e,r=-1,n=c.length;++r<n;)u[(e=c[r]).i]=e.x(t);return u.join("")}}}Bu(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Nu:Iu(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Bu(function(t){return null==t?Nu:(Cu||(Cu=document.createElementNS("http://www.w3.org/2000/svg","g")),Cu.setAttribute("transform",t),(t=Cu.transform.baseVal.consolidate())?Iu((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Nu)},", ",")",")");function Lu(t){return((t=Math.exp(t))+1/t)/2}(function t(e,r,n){function o(t,o){var i,a,u=t[0],c=t[1],l=t[2],s=o[0],f=o[1],p=o[2],h=s-u,d=f-c,y=h*h+d*d;if(y<1e-12)a=Math.log(p/l)/e,i=function(t){return[u+t*h,c+t*d,l*Math.exp(e*t*a)]};else{var v=Math.sqrt(y),m=(p*p-l*l+n*y)/(2*l*r*v),b=(p*p-l*l-n*y)/(2*p*r*v),g=Math.log(Math.sqrt(m*m+1)-m),w=Math.log(Math.sqrt(b*b+1)-b);a=(w-g)/e,i=function(t){var n=t*a,o=Lu(g),i=l/(r*v)*(o*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*n+g)-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[u+i*h,c+i*d,l*o/Lu(e*n+g)]}}return i.duration=1e3*Math.abs(a)*e/Math.SQRT2,i}return o.rho=function(e){var r=Math.max(.001,+e),n=r*r;return t(r,n,n*n)},o})(Math.SQRT2,2,4);function Ru(t){return function(e,r){var n=t((e=Ba(e)).h,(r=Ba(r)).h),o=bu(e.s,r.s),i=bu(e.l,r.l),a=bu(e.opacity,r.opacity);return function(t){return e.h=n(t),e.s=o(t),e.l=i(t),e.opacity=a(t),e+""}}}Ru(vu),Ru(bu);function zu(t){return function(e,r){var n=t((e=tu(e)).h,(r=tu(r)).h),o=bu(e.c,r.c),i=bu(e.l,r.l),a=bu(e.opacity,r.opacity);return function(t){return e.h=n(t),e.c=o(t),e.l=i(t),e.opacity=a(t),e+""}}}zu(vu),zu(bu);function Uu(t){return function e(r){function n(e,n){var o=t((e=fu(e)).h,(n=fu(n)).h),i=bu(e.s,n.s),a=bu(e.l,n.l),u=bu(e.opacity,n.opacity);return function(t){return e.h=o(t),e.s=i(t),e.l=a(Math.pow(t,r)),e.opacity=u(t),e+""}}return r=+r,n.gamma=e,n}(1)}Uu(vu),Uu(bu);var Fu,qu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ku(t){if(!(e=qu.exec(t)))throw new Error("invalid format: "+t);var e;return new $u({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 $u(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 Wu(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Yu(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 Hu(t){return(t=Yu(Math.abs(t)))?t[1]:NaN}function Xu(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Hu(e)/3)))-Hu(Math.abs(t)))}function Vu(t,e){return function(r,n){for(var o=r.length,i=[],a=0,u=t[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(r.substring(o-=u,o+u)),!((c+=u+1)>n));)u=t[a=(a+1)%t.length];return i.reverse().join(e)}}function Gu(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}function Zu(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}function Ju(t,e){var r=Yu(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Fu=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")+Yu(t,Math.max(0,e+i-1))[0]}function Qu(t,e){var r=Yu(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")}Ku.prototype=$u.prototype,$u.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},r.dn(Wu),r.dn(Hu),r.dn(Xu),r.dn(Vu),r.dn(Gu),r.dn(Zu),r.dn(Ju),r.dn(Qu);const tc={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:Wu,e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Qu(100*t,e)},r:Qu,s:Ju,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function ec(t){return t}r.dn(ec),r.dn(uc);var rc,nc,oc,ic=Array.prototype.map,ac=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function uc(t){var e=void 0===t.grouping||void 0===t.thousands?ec:Vu(ic.call(t.grouping,Number),t.thousands+""),r=void 0===t.currency?"":t.currency[0]+"",n=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",i=void 0===t.numerals?ec:Gu(ic.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function l(t){var l=(t=Ku(t)).fill,s=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(y=!0,b="g"):tc[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===l&&"="===s)&&(h=!0,l="0",s="=");var g="$"===p?r:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?n:/[%p]/.test(b)?a:"",x=tc[b],O=/[defgprs%]/.test(b);function _(t){var r,n,a,p=g,_=w;if("c"===b)_=x(t)+_,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),v),m&&(t=Zu(t)),j&&0===+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:u:"-"===f||"("===f?"":f)+p,_=("s"===b?ac[8+Fu/3]:"")+_+(j&&"("===f?")":""),O)for(r=-1,n=t.length;++r<n;)if(48>(a=t.charCodeAt(r))||a>57){_=(46===a?o+t.slice(r+1):t.slice(r))+_,t=t.slice(0,r);break}}y&&!h&&(t=e(t,1/0));var S=p.length+t.length+_.length,k=S<d?new Array(d-S+1).join(l):"";switch(y&&h&&(t=e(k+t,k.length?d-_.length:1/0),k=""),s){case"<":t=p+t+_+k;break;case"=":t=p+k+t+_;break;case"^":t=k.slice(0,S=k.length>>1)+p+t+_+k.slice(S);break;default:t=k+p+t+_}return i(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),_.toString=function(){return t+""},_}return{format:l,formatPrefix:function(t,e){var r=l(((t=Ku(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Hu(e)/3))),o=Math.pow(10,-n),i=ac[8+n/3];return function(t){return r(o*t)+i}}}}function cc(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Hu(e)-Hu(t))+1}function lc(t){return Math.max(0,-Hu(Math.abs(t)))}rc=uc({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),nc=rc.format,oc=rc.formatPrefix,r.dn(cc),r.dn(lc);const sc=new Date,fc=new Date;function pc(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 u;do{a.push(u=new Date(+r)),e(r,i),t(r)}while(u<r&&r<n);return a},o.filter=r=>pc(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)=>(sc.setTime(+e),fc.setTime(+n),t(sc),t(fc),Math.floor(r(sc,fc))),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 hc=pc(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);hc.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?pc(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):hc:null);hc.range;const dc=1e3,yc=6e4,vc=36e5,mc=864e5,bc=6048e5,gc=2592e6,wc=31536e6,xc=pc(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*dc)},(t,e)=>(e-t)/dc,t=>t.getUTCSeconds()),Oc=(xc.range,pc(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*dc)},(t,e)=>{t.setTime(+t+e*yc)},(t,e)=>(e-t)/yc,t=>t.getMinutes())),_c=(Oc.range,pc(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*yc)},(t,e)=>(e-t)/yc,t=>t.getUTCMinutes())),jc=(_c.range,pc(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*dc-t.getMinutes()*yc)},(t,e)=>{t.setTime(+t+e*vc)},(t,e)=>(e-t)/vc,t=>t.getHours())),Sc=(jc.range,pc(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*vc)},(t,e)=>(e-t)/vc,t=>t.getUTCHours())),kc=(Sc.range,pc(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yc)/mc,t=>t.getDate()-1)),Pc=(kc.range,pc(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mc,t=>t.getUTCDate()-1)),Ec=(Pc.range,pc(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mc,t=>Math.floor(t/mc)));Ec.range;function Ac(t){return pc(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())*yc)/bc)}const Mc=Ac(0),Tc=Ac(1),Cc=Ac(2),Dc=Ac(3),Nc=Ac(4),Ic=Ac(5),Bc=Ac(6);Mc.range,Tc.range,Cc.range,Dc.range,Nc.range,Ic.range,Bc.range;function Lc(t){return pc(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)/bc)}const Rc=Lc(0),zc=Lc(1),Uc=Lc(2),Fc=Lc(3),qc=Lc(4),Kc=Lc(5),$c=Lc(6),Wc=(Rc.range,zc.range,Uc.range,Fc.range,qc.range,Kc.range,$c.range,pc(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())),Yc=(Wc.range,pc(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())),Hc=(Yc.range,pc(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()));Hc.every=t=>isFinite(t=Math.floor(t))&&t>0?pc(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;Hc.range;const Xc=pc(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());Xc.every=t=>isFinite(t=Math.floor(t))&&t>0?pc(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;Xc.range;function Vc(t,e,r,n,o,i){const a=[[xc,1,dc],[xc,5,5e3],[xc,15,15e3],[xc,30,3e4],[i,1,yc],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,vc],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,mc],[n,2,1728e5],[r,1,bc],[e,1,gc],[e,3,7776e6],[t,1,wc]];function u(e,r,n){const o=Math.abs(r-e)/n,i=Ti(([,,t])=>t).right(a,o);if(i===a.length)return t.every(Qi(e/wc,r/wc,n));if(0===i)return hc.every(Math.max(Qi(e,r,n),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:u(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},u]}const[Gc,Zc]=Vc(Xc,Yc,Rc,Ec,Sc,_c),[Jc,Qc]=Vc(Hc,Wc,Mc,kc,jc,Oc);var tl=new Date,el=new Date;function rl(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(r){return t(r=new Date(r-1)),e(r,1),t(r),r},o.round=function(t){var e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=function(t,r){return e(t=new Date(+t),null==r?1:Math.floor(r)),t},o.range=function(r,n,i){var a,u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return u;do{u.push(a=new Date(+r)),e(r,i),t(r)}while(a<r&&r<n);return u},o.filter=function(r){return rl(function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},function(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=function(e,n){return tl.setTime(+e),el.setTime(+n),t(tl),t(el),Math.floor(r(tl,el))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?function(e){return n(e)%t===0}:function(e){return o.count(0,e)%t===0}):o:null}),o}var nl=864e5,ol=6048e5;function il(t){return rl(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/ol})}var al=il(0),ul=il(1),cl=il(2),ll=il(3),sl=il(4),fl=il(5),pl=il(6),hl=(al.range,ul.range,cl.range,ll.range,sl.range,fl.range,pl.range,rl(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/nl},function(t){return t.getUTCDate()-1}));const dl=hl;hl.range;function yl(t){return rl(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/ol})}var vl=yl(0),ml=yl(1),bl=yl(2),gl=yl(3),wl=yl(4),xl=yl(5),Ol=yl(6),_l=(vl.range,ml.range,bl.range,gl.range,wl.range,xl.range,Ol.range,rl(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/nl},function(t){return t.getDate()-1}));const jl=_l;_l.range;var Sl=rl(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Sl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?rl(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const kl=Sl;Sl.range;var Pl=rl(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Pl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?rl(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const El=Pl;Pl.range;function Al(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 Ml(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 Tl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Cl,Dl,Nl,Il={"-":"",_:" ",0:"0"},Bl=/^\s*\d+/,Ll=/^%/,Rl=/[\\^$*+?|[\]().{}]/g;function zl(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 Ul(t){return t.replace(Rl,"\\$&")}function Fl(t){return new RegExp("^(?:"+t.map(Ul).join("|")+")","i")}function ql(t){for(var e={},r=-1,n=t.length;++r<n;)e[t[r].toLowerCase()]=r;return e}function Kl(t,e,r){var n=Bl.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function $l(t,e,r){var n=Bl.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Wl(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Yl(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Hl(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Xl(t,e,r){var n=Bl.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Vl(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Gl(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 Zl(t,e,r){var n=Bl.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Jl(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Ql(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ts(t,e,r){var n=Bl.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function es(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function rs(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function ns(t,e,r){var n=Bl.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function os(t,e,r){var n=Bl.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function is(t,e,r){var n=Bl.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function as(t,e,r){var n=Ll.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function us(t,e,r){var n=Bl.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function cs(t,e,r){var n=Bl.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function ls(t,e){return zl(t.getDate(),e,2)}function ss(t,e){return zl(t.getHours(),e,2)}function fs(t,e){return zl(t.getHours()%12||12,e,2)}function ps(t,e){return zl(1+jl.count(kl(t),t),e,3)}function hs(t,e){return zl(t.getMilliseconds(),e,3)}function ds(t,e){return hs(t,e)+"000"}function ys(t,e){return zl(t.getMonth()+1,e,2)}function vs(t,e){return zl(t.getMinutes(),e,2)}function ms(t,e){return zl(t.getSeconds(),e,2)}function bs(t){var e=t.getDay();return 0===e?7:e}function gs(t,e){return zl(vl.count(kl(t)-1,t),e,2)}function ws(t){var e=t.getDay();return e>=4||0===e?wl(t):wl.ceil(t)}function xs(t,e){return t=ws(t),zl(wl.count(kl(t),t)+(4===kl(t).getDay()),e,2)}function Os(t){return t.getDay()}function _s(t,e){return zl(ml.count(kl(t)-1,t),e,2)}function js(t,e){return zl(t.getFullYear()%100,e,2)}function Ss(t,e){return zl((t=ws(t)).getFullYear()%100,e,2)}function ks(t,e){return zl(t.getFullYear()%1e4,e,4)}function Ps(t,e){var r=t.getDay();return zl((t=r>=4||0===r?wl(t):wl.ceil(t)).getFullYear()%1e4,e,4)}function Es(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+zl(e/60|0,"0",2)+zl(e%60,"0",2)}function As(t,e){return zl(t.getUTCDate(),e,2)}function Ms(t,e){return zl(t.getUTCHours(),e,2)}function Ts(t,e){return zl(t.getUTCHours()%12||12,e,2)}function Cs(t,e){return zl(1+dl.count(El(t),t),e,3)}function Ds(t,e){return zl(t.getUTCMilliseconds(),e,3)}function Ns(t,e){return Ds(t,e)+"000"}function Is(t,e){return zl(t.getUTCMonth()+1,e,2)}function Bs(t,e){return zl(t.getUTCMinutes(),e,2)}function Ls(t,e){return zl(t.getUTCSeconds(),e,2)}function Rs(t){var e=t.getUTCDay();return 0===e?7:e}function zs(t,e){return zl(al.count(El(t)-1,t),e,2)}function Us(t){var e=t.getUTCDay();return e>=4||0===e?sl(t):sl.ceil(t)}function Fs(t,e){return t=Us(t),zl(sl.count(El(t),t)+(4===El(t).getUTCDay()),e,2)}function qs(t){return t.getUTCDay()}function Ks(t,e){return zl(ul.count(El(t)-1,t),e,2)}function $s(t,e){return zl(t.getUTCFullYear()%100,e,2)}function Ws(t,e){return zl((t=Us(t)).getUTCFullYear()%100,e,2)}function Ys(t,e){return zl(t.getUTCFullYear()%1e4,e,4)}function Hs(t,e){var r=t.getUTCDay();return zl((t=r>=4||0===r?sl(t):sl.ceil(t)).getUTCFullYear()%1e4,e,4)}function Xs(){return"+0000"}function Vs(){return"%"}function Gs(t){return+t}function Zs(t){return Math.floor(+t/1e3)}function Js(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Qs(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}!function(t){Cl=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Fl(o),s=ql(o),f=Fl(i),p=ql(i),h=Fl(a),d=ql(a),y=Fl(u),v=ql(u),m=Fl(c),b=ql(c),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:ls,e:ls,f:ds,g:Ss,G:Ps,H:ss,I:fs,j:ps,L:hs,m:ys,M:vs,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Gs,s:Zs,S:ms,u:bs,U:gs,V:xs,w:Os,W:_s,x:null,X:null,y:js,Y:ks,Z:Es,"%":Vs},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:As,e:As,f:Ns,g:Ws,G:Hs,H:Ms,I:Ts,j:Cs,L:Ds,m:Is,M:Bs,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Gs,s:Zs,S:Ls,u:Rs,U:zs,V:Fs,w:qs,W:Ks,x:null,X:null,y:$s,Y:Ys,Z:Xs,"%":Vs},x={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d[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[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b[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[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:Ql,e:Ql,f:is,g:Vl,G:Xl,H:es,I:es,j:ts,L:os,m:Jl,M:rs,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s[n[0].toLowerCase()],r+n[0].length):-1},q:Zl,Q:us,s:cs,S:ns,u:$l,U:Wl,V:Yl,w:Kl,W:Hl,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Vl,Y:Xl,Z:Gl,"%":as};function O(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=Il[n=t.charAt(++u)])?n=t.charAt(++u):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function _(t,e){return function(r){var n,o,i=Tl(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=Ml(Tl(i.y,0,1))).getUTCDay(),n=o>4||0===o?ul.ceil(n):ul(n),n=dl.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Al(Tl(i.y,0,1))).getDay(),n=o>4||0===o?ml.ceil(n):ml(n),n=jl.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?Ml(Tl(i.y,0,1)).getUTCDay():Al(Tl(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,Ml(i)):Al(i)}}function j(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a<u;){if(n>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in Il?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=O(r,g),g.X=O(n,g),g.c=O(e,g),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t+="",!0);return e.toString=function(){return t},e}}}(t),Dl=Cl.format,Cl.parse,Nl=Cl.utcFormat,Cl.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const tf=Symbol("implicit");function ef(){var t=new Ui,e=[],r=[],n=tf;function o(o){let i=t.get(o);if(void 0===i){if(n!==tf)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 Ui;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 ef(e,r).unknown(n)},Js.apply(o,arguments),o}function rf(){var t,e,r=ef().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,u=!1,c=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-c+2*l),u&&(t=Math.floor(t)),p+=(h-p-t*(r-c))*s,e=t*(1-c),u&&(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,u=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(u=!!t,f()):u},r.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},r.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},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 rf(n(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},Js.apply(f(),arguments)}function nf(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return nf(e())},t}function of(){return nf(rf.apply(null,arguments).paddingInner(1))}function af(t){return+t}var uf=[0,1];function cf(t){return t}function lf(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function sf(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=lf(o,n),i=r(a,i)):(n=lf(n,o),i=r(i,a)),function(t){return i(n(t))}}function ff(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]=lf(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=Ii(t,e,1,n)-1;return i[r](o[r](e))}}function pf(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function hf(){var t,e,r,n,o,i,a=uf,u=uf,c=Mu,l=cf;function s(){var t,e,r,c=Math.min(a.length,u.length);return l!==cf&&(t=a[0],e=a[c-1],t>e&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=c>2?ff:sf,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(u,a.map(t),Su)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,af),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=Tu,s()},f.clamp=function(t){return arguments.length?(l=!!t||cf,s()):l!==cf},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function df(){return hf()(cf,cf)}function yf(t,e,r,n){var o,i=Qi(t,e,r);switch((n=Ku(n??",f")).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=Xu(i,a))||(n.precision=o),oc(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=cc(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=lc(i))||(n.precision=o-2*("%"===n.type))}return nc(n)}function vf(t){var e=t.domain;return t.ticks=function(t){var r=e();return Zi(r[0],r[r.length-1],t??10)},t.tickFormat=function(t,r){var n=e();return yf(n[0],n[n.length-1],t??10,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l<c&&(o=c,c=l,l=o,o=a,a=u,u=o);s-- >0;){if((o=Ji(c,l,r))===n)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function mf(){var t=df();return t.copy=function(){return pf(t,mf())},Js.apply(t,arguments),vf(t)}function bf(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,af),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return bf(t).unknown(e)},t=arguments.length?Array.from(t,af):[0,1],vf(r)}function gf(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 wf(t){return Math.log(t)}function xf(t){return Math.exp(t)}function Of(t){return-Math.log(-t)}function _f(t){return-Math.exp(-t)}function jf(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Sf(t){return(e,r)=>-t(-e,r)}function kf(t){const e=t(wf,xf),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?jf:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=Sf(n),o=Sf(o),t(Of,_f)):t(wf,xf),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],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=n(a),p=n(u);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>u)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>u)break;d.push(s)}2*d.length<h&&(d=Zi(a,u,h))}else d=Zi(f,p,Math.min(p-f,h)).map(o);return c?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=Ku(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(gf(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function Pf(){const t=kf(hf()).domain([1,10]);return t.copy=()=>pf(t,Pf()).base(t.base()),Js.apply(t,arguments),t}function Ef(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Af(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Mf(t){var e=1,r=t(Ef(e),Af(e));return r.constant=function(r){return arguments.length?t(Ef(e=+r),Af(e)):e},vf(r)}function Tf(){var t=Mf(hf());return t.copy=function(){return pf(t,Tf()).constant(t.constant())},Js.apply(t,arguments)}function Cf(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Df(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Nf(t){return t<0?-t*t:t*t}function If(t){var e=t(cf,cf),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(cf,cf):.5===r?t(Df,Nf):t(Cf(r),Cf(1/r)):r},vf(e)}function Bf(){var t=If(hf());return t.copy=function(){return pf(t,Bf()).exponent(t.exponent())},Js.apply(t,arguments),t}function Lf(){return Bf.apply(null,arguments).exponent(.5)}function Rf(t){return Math.sign(t)*t*t}function zf(){var t,e=df(),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(Rf(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,af)).map(Rf)),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 zf(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},Js.apply(o,arguments),vf(o)}function Uf(){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]=ia(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[Ii(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(Ai),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 Uf().domain(e).range(r).unknown(t)},Js.apply(i,arguments)}function Ff(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[Ii(o,e,0,n)]:t}function u(){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,u()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,u()):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 Ff().domain([e,r]).range(i).unknown(t)},Js.apply(vf(a),arguments)}function qf(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[Ii(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 qf().domain(e).range(r).unknown(t)},Js.apply(o,arguments)}function Kf(t){return new Date(t)}function $f(t){return t instanceof Date?+t:Math.round(t)}function Wf(t,e,r,n,o,i,a,u,c,l){var s=df(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),w=l("%Y");function x(t){return(c(t)<t?h:u(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:w)(t)}return s.invert=function(t){return new Date(Math.round(f(t)))},s.domain=function(t){return arguments.length?p(Array.from(t,$f)):p().map(Kf)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],e??10)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],t??10)),t?p(gf(r,t)):s},s.copy=function(){return pf(s,Wf(t,e,r,n,o,i,a,u,c,l))},s}function Yf(){return Js.apply(Wf(Jc,Qc,Hc,Wc,Mc,kc,jc,Oc,xc,Dl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Hf(){return Js.apply(Wf(Gc,Zc,Xc,Yc,Rc,Pc,Sc,_c,xc,Nl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Xf(){var t,e,r,n,o,i=0,a=1,u=cf,c=!1;function l(e){return null==e||isNaN(e=+e)?o:u(0===r?.5:(e=(n(e)-t)*r,c?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,u=t(r,n),l):[u(0),u(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?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=s(Mu),l.rangeRound=s(Tu),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 Vf(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Gf(){var t=vf(Xf()(cf));return t.copy=function(){return Vf(t,Gf())},Qs.apply(t,arguments)}function Zf(){var t=kf(Xf()).domain([1,10]);return t.copy=function(){return Vf(t,Zf()).base(t.base())},Qs.apply(t,arguments)}function Jf(){var t=Mf(Xf());return t.copy=function(){return Vf(t,Jf()).constant(t.constant())},Qs.apply(t,arguments)}function Qf(){var t=If(Xf());return t.copy=function(){return Vf(t,Qf()).exponent(t.exponent())},Qs.apply(t,arguments)}function tp(){return Qf.apply(null,arguments).exponent(.5)}function ep(){var t=[],e=cf;function r(r){if(null!=r&&!isNaN(r=+r))return e((Ii(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(Ai),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)=>oa(t,n/e))},r.copy=function(){return ep(e).domain(t)},Qs.apply(r,arguments)}function rp(){var t,e,r,n,o,i,a,u=0,c=.5,l=1,s=1,f=cf,p=!1;function h(t){return null==t||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=Mu);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?([u,c,l]=a,t=i(u=+u),e=i(c=+c),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[u,c,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(Mu),h.rangeRound=d(Tu),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(u),e=a(c),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function np(){var t=vf(rp()(cf));return t.copy=function(){return Vf(t,np())},Qs.apply(t,arguments)}function op(){var t=kf(rp()).domain([.1,1,10]);return t.copy=function(){return Vf(t,op()).base(t.base())},Qs.apply(t,arguments)}function ip(){var t=Mf(rp());return t.copy=function(){return Vf(t,ip()).constant(t.constant())},Qs.apply(t,arguments)}function ap(){var t=If(rp());return t.copy=function(){return Vf(t,ap()).exponent(t.exponent())},Qs.apply(t,arguments)}function up(){return ap.apply(null,arguments).exponent(.5)}var cp=r(1684),lp=r.n(cp),sp=r(7307),fp=r.n(sp),pp=r(3031),hp=r.n(pp),dp=r(8351),yp=r.n(dp);function vp(t){return function(t){if(Array.isArray(t))return mp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return mp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mp(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 bp=function(t){return t},gp={"@@functional/placeholder":!0},xp=function(t){return t===gp},Op=function(t){return function e(){return 0===arguments.length||1===arguments.length&&xp(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},_p=function t(e,r){return 1===e?r:Op(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!==gp}).length;return a>=e?r.apply(void 0,o):t(e-a,Op(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map(function(t){return xp(t)?e.shift():t});return r.apply(void 0,vp(i).concat(e))}))})},jp=function(t){return _p(t.length,t)},Sp=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},kp=jp(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)}),Pp=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return bp;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))}},Ep=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Ap=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every(function(t,r){return t===e[r]})?r:(e=o,r=t.apply(void 0,o))}};var Mp=jp(function(t,e,r){var n=+t;return n+r*(+e-n)}),Tp=jp(function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)}),Cp=jp(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const Dp={rangeStep:function(t,e,r){for(var n=new(yp())(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new(yp())(t).abs().log(10).toNumber())+1},interpolateNumber:Mp,uninterpolateNumber:Tp,uninterpolateTruncation:Cp};function Np(t){return function(t){if(Array.isArray(t))return Lp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Bp(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 Ip(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(t,e)||Bp(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bp(t,e){if(t){if("string"==typeof t)return Lp(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)?Lp(t,e):void 0}}function Lp(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 Rp(t){var e=Ip(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function zp(t,e,r){if(t.lte(0))return new(yp())(0);var n=Dp.getDigitCount(t.toNumber()),o=new(yp())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new(yp())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new(yp())(Math.ceil(u))}function Up(t,e,r){var n=1,o=new(yp())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(yp())(10).pow(Dp.getDigitCount(t)-1),o=new(yp())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(yp())(Math.floor(t)))}else 0===t?o=new(yp())(Math.floor((e-1)/2)):r||(o=new(yp())(Math.floor(t)));var a=Math.floor((e-1)/2);return Pp(kp(function(t){return o.add(new(yp())(t-a).mul(n)).toNumber()}),Sp)(0,e)}function Fp(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(yp())(0),tickMin:new(yp())(0),tickMax:new(yp())(0)};var i,a=zp(new(yp())(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new(yp())(0):(i=new(yp())(t).add(e).div(2)).sub(new(yp())(i).mod(a));var u=Math.ceil(i.sub(t).div(a).toNumber()),c=Math.ceil(new(yp())(e).sub(i).div(a).toNumber()),l=u+c+1;return l>r?Fp(t,e,r,n,o+1):(l<r&&(c=e>0?c+(r-l):c,u=e>0?u:u+(r-l)),{step:a,tickMin:i.sub(new(yp())(u).mul(a)),tickMax:i.add(new(yp())(c).mul(a))})}var qp=Ap(function(t){var e=Ip(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),u=Ip(Rp([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(Np(Sp(0,o-1).map(function(){return 1/0}))):[].concat(Np(Sp(0,o-1).map(function(){return-1/0})),[l]);return r>n?Ep(s):s}if(c===l)return Up(c,o,i);var f=Fp(c,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=Dp.rangeStep(h,d.add(new(yp())(.1).mul(p)),p);return r>n?Ep(y):y}),Kp=(Ap(function(t){var e=Ip(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),u=Ip(Rp([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[r,n];if(c===l)return Up(c,o,i);var s=zp(new(yp())(l).sub(c).div(a-1),i,0),f=Pp(kp(function(t){return new(yp())(c).add(new(yp())(t).mul(s)).toNumber()}),Sp)(0,a).filter(function(t){return t>=c&&t<=l});return r>n?Ep(f):f}),Ap(function(t,e){var r=Ip(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Ip(Rp([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var l=Math.max(e,2),s=zp(new(yp())(c).sub(u).div(l-1),i,0),f=[].concat(Np(Dp.rangeStep(new(yp())(u),new(yp())(c).sub(new(yp())(.99).mul(s)),s)),[c]);return n>o?Ep(f):f})),$p="Invariant failed";function Wp(t,e){if(!t)throw new Error($p)}var Yp=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Hp(t){return Hp="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},Hp(t)}function Xp(){return Xp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xp.apply(this,arguments)}function Vp(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Gp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gp(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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}function Zp(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Jp(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,oh(n.key),n)}}function Qp(t,e,r){return e=eh(e),function(t,e){if(e&&("object"===Hp(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,th()?Reflect.construct(e,r||[],eh(t).constructor):e.apply(t,r))}function th(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(th=function(){return!!t})()}function eh(t){return eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eh(t)}function rh(t,e){return rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rh(t,e)}function nh(t,e,r){return(e=oh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oh(t){var e=function(t,e){if("object"!=Hp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Hp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Hp(e)?e:e+""}var ih=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Qp(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rh(t,e)}(e,t),r=e,n=[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,u=t.xAxis,c=t.yAxis,l=Zp(t,Yp),s=Qn(l,!1);"x"===this.props.direction&&"number"!==u.type&&Wp(!1);var f=i.map(function(t){var i=a(t,o),l=i.x,f=i.y,p=i.value,h=i.errorVal;if(!h)return null;var d,y,v=[];if(Array.isArray(h)){var m=Vp(h,2);d=m[0],y=m[1]}else d=y=h;if("vertical"===r){var b=u.scale,g=f+e,w=g+n,x=g-n,O=b(p-d),_=b(p+y);v.push({x1:_,y1:w,x2:_,y2:x}),v.push({x1:O,y1:g,x2:_,y2:g}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var j=c.scale,S=l+e,k=S-n,P=S+n,E=j(p-d),A=j(p+y);v.push({x1:k,y1:A,x2:P,y2:A}),v.push({x1:S,y1:E,x2:S,y2:A}),v.push({x1:k,y1:E,x2:P,y2:E})}return Z().createElement(wo,Xp({className:"recharts-errorBar",key:"bar-".concat(v.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},s),v.map(function(t){return Z().createElement("line",Xp({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return Z().createElement(wo,{className:"recharts-errorBars"},f)}}],n&&Jp(r.prototype,n),o&&Jp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Z().Component);nh(ih,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),nh(ih,"displayName","ErrorBar");var ah=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]},uh=["children","width","height","viewBox","className","style","title","desc"];function ch(){return ch=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},ch.apply(this,arguments)}function lh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function sh(t){var e=t.children,r=t.width,n=t.height,o=t.viewBox,i=t.className,a=t.style,u=t.title,c=t.desc,l=lh(t,uh),s=o||{width:r,height:n,x:0,y:0},f=Q("recharts-surface",i);return Z().createElement("svg",ch({},Qn(l,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),Z().createElement("title",null,u),Z().createElement("desc",null,c),e)}function fh(t){return fh="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},fh(t)}var ph=["type","size","sizeType"];function hh(){return hh=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},hh.apply(this,arguments)}function dh(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 yh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dh(Object(r),!0).forEach(function(e){vh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function vh(t,e,r){var n;return n=function(t,e){if("object"!=fh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==fh(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var bh={symbolCircle:mr,symbolCross:br,symbolDiamond:xr,symbolSquare:Or,symbolStar:kr,symbolTriangle:Er,symbolWye:Dr},gh=Math.PI/180,wh=function(t){var e,r,n=t.type,o=void 0===n?"circle":n,i=t.size,a=void 0===i?64:i,u=t.sizeType,c=void 0===u?"area":u,l=yh(yh({},mh(t,ph)),{},{type:o,size:a,sizeType:c}),s=l.className,f=l.cx,p=l.cy,h=Qn(l,!0);return f===+f&&p===+p&&a===+a?Z().createElement("path",hh({},h,{className:Q("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=function(t){var e="symbol".concat(fn()(t));return bh[e]||mr}(o),r=function(t,e){let r=null,n=or(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:Ze(t||mr),e="function"==typeof e?e:Ze(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Ze(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Ze(+t),o):e},o.context=function(t){return arguments.length?(r=t??null,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*gh;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}}(a,c,o)),r())})):null};function xh(t){return xh="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},xh(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 _h(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 jh(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,Mh(n.key),n)}}function Sh(t,e,r){return e=Ph(e),function(t,e){if(e&&("object"===xh(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,kh()?Reflect.construct(e,r||[],Ph(t).constructor):e.apply(t,r))}function kh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(kh=function(){return!!t})()}function Ph(t){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ph(t)}function Eh(t,e){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Eh(t,e)}function Ah(t,e,r){return(e=Mh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mh(t){var e=function(t,e){if("object"!=xh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xh(e)?e:e+""}wh.registerSymbol=function(t,e){bh["symbol".concat(fn()(t))]=e};var Th=32,Ch=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Sh(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Eh(t,e)}(e,t),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Th/6,o=Th/3,i=t.inactive?e:t.color;if("plainline"===t.type)return Z().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Th,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return Z().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(Th,"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 Z().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(Th,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(Z().isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_h(Object(r),!0).forEach(function(e){Ah(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t);return delete a.legendIcon,Z().cloneElement(t.legendIcon,a)}return Z().createElement(wh,{fill:i,cx:r,cy:r,size:Th,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,a=e.inactiveColor,u={x:0,y:0,width:Th,height:Th},c={display:"horizontal"===o?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map(function(e,r){var o=e.formatter||i,s=Q(Ah(Ah({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=Ie()(e.value)?null:e.value;ah(!Ie()(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 p=e.inactive?a:e.color;return Z().createElement("li",Oh({className:s,style:c,key:"legend-item-".concat(r)},wn(t.props,e,r)),Z().createElement(sh,{width:n,height:n,viewBox:u,style:l},t.renderIcon(e)),Z().createElement("span",{className:"recharts-legend-item-text",style:{color:p}},o?o(f,e,r):f))})}},{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 Z().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],n&&jh(r.prototype,n),o&&jh(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.PureComponent);Ah(Ch,"displayName","Legend"),Ah(Ch,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Dh=r(14),Nh=r.n(Dh);function Ih(t,e,r){return!0===e?Nh()(t,r):Ie()(e)?Nh()(t,e):t}function Bh(t){return Bh="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},Bh(t)}var Lh=["ref"];function Rh(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?Rh(Object(r),!0).forEach(function(e){Wh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Uh(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,Yh(n.key),n)}}function Fh(t,e,r){return e=Kh(e),function(t,e){if(e&&("object"===Bh(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,qh()?Reflect.construct(e,r||[],Kh(t).constructor):e.apply(t,r))}function qh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(qh=function(){return!!t})()}function Kh(t){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kh(t)}function $h(t,e){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$h(t,e)}function Wh(t,e,r){return(e=Yh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yh(t){var e=function(t,e){if("object"!=Bh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Bh(e)?e:e+""}function Hh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Xh(t){return t.value}var Vh=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Wh(t=Fh(this,e,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),t}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&&$h(t,e)}(e,t),r=e,o=[{key:"getWithHeight",value:function(t,e){var r=zh(zh({},this.defaultProps),t.props).layout;return"vertical"===r&&An(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?zh({},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,u=n.margin,c=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:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.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:u&&u.bottom||0}:{top:u&&u.top||0}),zh(zh({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,a=e.payloadUniqBy,u=e.payload,c=zh(zh({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return Z().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(Z().isValidElement(t))return Z().cloneElement(t,e);if("function"==typeof t)return Z().createElement(t,e);e.ref;var r=Hh(e,Lh);return Z().createElement(Ch,r)}(r,zh(zh({},this.props),{},{payload:Ih(u,a,Xh)})))}}])&&Uh(r.prototype,n),o&&Uh(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.PureComponent);function Gh(t){return Gh="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},Gh(t)}function Zh(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 Jh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zh(Object(r),!0).forEach(function(e){Qh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Qh(t,e,r){var n;return n=function(t,e){if("object"!=Gh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Gh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Gh(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Wh(Vh,"displayName","Legend"),Wh(Vh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var td=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=Vn(e,Vh);if(!i)return null;var a,u=Vh.defaultProps,c=void 0!==u?Jh(Jh({},u),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce(function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map(function(t){return{type:i.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(r||[]).map(function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?Jh(Jh({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:c.iconType||a||"square",color:ld(e),value:i||o,payload:n}}),Jh(Jh(Jh({},c),Vh.getWithHeight(i,n)),{},{payload:a,item:i})};function ed(t){return ed="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},ed(t)}function rd(t){return function(t){if(Array.isArray(t))return nd(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return nd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nd(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nd(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 od(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 id(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?od(Object(r),!0).forEach(function(e){ad(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):od(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ad(t,e,r){var n;return n=function(t,e){if("object"!=ed(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ed(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ed(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ud(t,e,r){return ze()(t)||ze()(e)?r:Mn(e)?On()(t,e,r):Ie()(e)?e(t):r}function cd(t,e,r,n){var o=fp()(t,function(t){return ud(t,e)});if("number"===r){var i=o.filter(function(t){return An(t)||parseFloat(t)});return i.length?[lp()(i),Le()(i)]:[1/0,-1/0]}return(n?o.filter(function(t){return!ze()(t)}):o).map(function(t){return Mn(t)||t instanceof Date?t:""})}var ld=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?id(id({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},sd=function(t,e,r,n,o){var i=Xn(e.props.children,ih).filter(function(t){return function(t,e,r){return!!ze()(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=ud(e,r);if(ze()(n))return t;var o=Array.isArray(n)?[lp()(n),Le()(n)]:[n,n],i=a.reduce(function(t,r){var n=ud(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},fd=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&sd(t,e,i,n)||cd(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},[])},pd=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},hd=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},dd=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,u="scaleBand"===t.realScaleType?n.bandwidth()/2:2,c=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/u:0;return c="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Pn(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map(function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+c,value:t,offset:c}}).filter(function(t){return!Fe()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+c,value:t,offset:c}}):n.domain().map(function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}})},yd=new WeakMap,vd=function(t,e){if("function"!=typeof e)return t;yd.has(t)||yd.set(t,new WeakMap);var r=yd.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},md=1e-4,bd={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 u=Fe()(t[a][r][1])?t[a][r][0]:t[a][r][1];u>=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,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}an(t,e)}},none:an,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,u=0;a<r;++a)u+=t[a][n][1]||0;o[n][1]+=o[n][0]=-u/2}an(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 u=0,c=0,l=0;u<o;++u){for(var s=t[e[u]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<u;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}c+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,c&&(i-=l/c)}r[a-1][1]+=r[a-1][0]=i,an(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=Fe()(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)}}},gd=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=bd[r],i=function(){var t=Ze([]),e=un,r=an,n=cn;function o(o){var i,a,u=Array.from(t.apply(this,arguments),ln),c=u.length,l=-1;for(const t of o)for(i=0,++l;i<c;++i)(u[i][l]=[0,+n(t,u[i].key,l,o)]).data=t;for(i=0,a=ir(e(u));i<c;++i)u[a[i]].index=i;return r(u,a),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Ze(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Ze(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?un:"function"==typeof t?t:Ze(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=t??an,o):r},o}().keys(n).value(function(t,e){return+ud(t,e,0)}).order(un).offset(o);return i(t)};function wd(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&&!ze()(o[e.dataKey])){var u=Bn(r,"value",o[e.dataKey]);if(u)return u.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var c=ud(o,ze()(a)?e.dataKey:a);return ze()(c)?null:e.scale(c)}var xd=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 u=ud(i,e.dataKey,e.domain[a]);return ze()(u)?null:e.scale(u)-o/2+n},Od=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[lp()(e.concat([t[0]]).filter(An)),Le()(e.concat([t[1]]).filter(An))]},[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})},_d=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Sd=function(t,e,r){if(Ie()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(An(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(_d.test(t[0])){var o=+_d.exec(t[0])[1];n[0]=e[0]-o}else Ie()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(An(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(jd.test(t[1])){var i=+jd.exec(t[1])[1];n[1]=e[1]+i}else Ie()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},kd=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=hp()(e,function(t){return t.coordinate}),i=1/0,a=1,u=o.length;a<u;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},Pd=function(t,e,r){return t&&t.length?Ke()(t,On()(r,"type.defaultProps.domain"))?e:t:e},Ed=function(t,e){var r=t.type.defaultProps?id(id({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,u=r.tooltipType,c=r.chartType,l=r.hide;return id(id({},Qn(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:ld(t),value:ud(e,n),type:u,payload:e,chartType:c,hide:l})};function Ad(t){return Ad="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},Ad(t)}var Md=["valueAccessor"],Td=["data","dataKey","clockWise","id","textBreakAll"];function Cd(t){return function(t){if(Array.isArray(t))return Dd(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Dd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dd(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dd(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 Nd(){return Nd=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},Nd.apply(this,arguments)}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 Bd(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){Ld(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 Ld(t,e,r){var n;return n=function(t,e){if("object"!=Ad(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ad(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ad(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rd(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var zd=function(t){return Array.isArray(t.value)?Oo()(t.value):t.value};function Ud(t){var e=t.valueAccessor,r=void 0===e?zd:e,n=Rd(t,Md),o=n.data,i=n.dataKey,a=n.clockWise,u=n.id,c=n.textBreakAll,l=Rd(n,Td);return o&&o.length?Z().createElement(wo,{className:"recharts-label-list"},o.map(function(t,e){var n=ze()(i)?r(t,e):ud(t&&t.payload,i),o=ze()(u)?{}:{id:"".concat(u,"-").concat(e)};return Z().createElement(Pi,Nd({},Qn(t,!0),l,o,{parentViewBox:t.parentViewBox,value:n,textBreakAll:c,viewBox:Pi.parseViewBox(ze()(a)?t:Bd(Bd({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))})):null}Ud.displayName="LabelList",Ud.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=Xn(t.children,Ud).map(function(t,r){return(0,G.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return r?[function(t,e){return t?!0===t?Z().createElement(Ud,{key:"labelList-implicit",data:e}):Z().isValidElement(t)||Ie()(t)?Z().createElement(Ud,{key:"labelList-implicit",data:e,content:t}):hn()(t)?Z().createElement(Ud,Nd({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(Cd(n)):n};var Fd,qd=["layout","type","stroke","connectNulls","isRange","ref"],Kd=["key"];function $d(t){return $d="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},$d(t)}function Wd(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Yd(){return Yd=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},Yd.apply(this,arguments)}function Hd(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 Xd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hd(Object(r),!0).forEach(function(e){ty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hd(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Vd(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,ey(n.key),n)}}function Gd(t,e,r){return e=Jd(e),function(t,e){if(e&&("object"===$d(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,Zd()?Reflect.construct(e,r||[],Jd(t).constructor):e.apply(t,r))}function Zd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Zd=function(){return!!t})()}function Jd(t){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jd(t)}function Qd(t,e){return Qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qd(t,e)}function ty(t,e,r){return(e=ey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ey(t){var e=function(t,e){if("object"!=$d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$d(e)?e:e+""}var ry=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return ty(t=Gd(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),ty(t,"id",Cn("recharts-area-")),ty(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ie()(e)&&e()}),ty(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ie()(e)&&e()}),t}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&&Qd(t,e)}(e,t),r=e,n=[{key:"renderDots",value:function(t,r,n){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,u=a.dot,c=a.points,l=a.dataKey,s=Qn(this.props,!1),f=Qn(u,!0),p=c.map(function(t,r){var n=Xd(Xd(Xd({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:c});return e.renderDotItem(u,n)}),h={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return Z().createElement(wo,Yd({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].x,a=n[n.length-1].x,u=t*Math.abs(i-a),c=Le()(n.map(function(t){return t.y||0}));return An(r)&&"number"==typeof r?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(Le()(r.map(function(t){return t.y||0})),c)),An(c)?Z().createElement("rect",{x:i<a?i:i-u,y:0,width:u,height:Math.floor(c+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].y,a=n[n.length-1].y,u=t*Math.abs(i-a),c=Le()(n.map(function(t){return t.x||0}));return An(r)&&"number"==typeof r?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(Le()(r.map(function(t){return t.x||0})),c)),An(c)?Z().createElement("rect",{x:0,y:i<a?i:i-u,width:c+(o?parseInt("".concat(o),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var o=this.props,i=o.layout,a=o.type,u=o.stroke,c=o.connectNulls,l=o.isRange,s=(o.ref,Wd(o,qd));return Z().createElement(wo,{clipPath:r?"url(#clipPath-".concat(n,")"):null},Z().createElement(ho,Yd({},Qn(s,!0),{points:t,connectNulls:c,type:a,baseLine:e,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==u&&Z().createElement(ho,Yd({},Qn(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:t})),"none"!==u&&l&&Z().createElement(ho,Yd({},Qn(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,u=n.animationBegin,c=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,h=f.prevBaseLine;return Z().createElement(De,{begin:u,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var a=n.t;if(p){var u,c=p.length/o.length,l=o.map(function(t,e){var r=Math.floor(e*c);if(p[r]){var n=p[r],o=In(n.x,t.x),i=In(n.y,t.y);return Xd(Xd({},t),{},{x:o(a),y:i(a)})}return t});return u=An(i)&&"number"==typeof i?In(h,i)(a):ze()(i)||Fe()(i)?In(h,0)(a):i.map(function(t,e){var r=Math.floor(e*c);if(h[r]){var n=h[r],o=In(n.x,t.x),i=In(n.y,t.y);return Xd(Xd({},t),{},{x:o(a),y:i(a)})}return t}),r.renderAreaStatically(l,u,t,e)}return Z().createElement(wo,null,Z().createElement("defs",null,Z().createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),Z().createElement(wo,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(o,i,t,e)))})}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,u=a.prevPoints,c=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!u&&l>0||!Ke()(u,n)||!Ke()(c,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.top,u=e.left,c=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!o||!o.length)return null;var d=this.state.isAnimationFinished,y=1===o.length,v=Q("recharts-area",i),m=c&&c.allowDataOverflow,b=l&&l.allowDataOverflow,g=m||b,w=ze()(h)?this.id:h,x=null!==(t=Qn(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,_=void 0===O?3:O,j=x.strokeWidth,S=void 0===j?2:j,k=(function(t){return t&&"object"===qn(t)&&"clipDot"in t}(n)?n:{}).clipDot,P=void 0===k||k,E=2*_+S;return Z().createElement(wo,{className:v},m||b?Z().createElement("defs",null,Z().createElement("clipPath",{id:"clipPath-".concat(w)},Z().createElement("rect",{x:m?u:u-s/2,y:b?a:a-f/2,width:m?s:2*s,height:b?f:2*f})),!P&&Z().createElement("clipPath",{id:"clipPath-dots-".concat(w)},Z().createElement("rect",{x:u-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(g,w),(n||y)&&this.renderDots(g,P,w),(!p||d)&&Ud.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&Vd(r.prototype,n),o&&Vd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.PureComponent);Fd=ry,ty(ry,"displayName","Area"),ty(ry,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_o.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),ty(ry,"getBaseValue",function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,u=null!=a?a:i;if(An(u)&&"number"==typeof u)return u;var c="horizontal"===o?n:r,l=c.scale.domain();if("number"===c.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===u?f:"dataMax"===u||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===u?l[0]:"dataMax"===u?l[1]:l[0]}),ty(ry,"getComposedData",function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,u=t.yAxisTicks,c=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,d=r.layout,y=s&&s.length,v=Fd.getBaseValue(r,n,o,i),m="horizontal"===d,b=!1,g=p.map(function(t,e){var r;y?r=s[f+e]:(r=ud(t,l),Array.isArray(r)?b=!0:r=[v,r]);var n=null==r[1]||y&&null==ud(t,l);return m?{x:wd({axis:o,ticks:a,bandSize:c,entry:t,index:e}),y:n?null:i.scale(r[1]),value:r,payload:t}:{x:n?null:o.scale(r[1]),y:wd({axis:i,ticks:u,bandSize:c,entry:t,index:e}),value:r,payload:t}});return e=y||b?g.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}}):m?i.scale(v):o.scale(v),Xd({points:g,baseLine:e,layout:d,isRange:b},h)}),ty(ry,"renderDotItem",function(t,e){var r;if(Z().isValidElement(t))r=Z().cloneElement(t,e);else if(Ie()(t))r=t(e);else{var n=Q("recharts-area-dot","boolean"!=typeof t?t.className:""),o=e.key,i=Wd(e,Kd);r=Z().createElement(vo,Yd({},i,{key:o,className:n}))}return r});var ny=r(7350),oy=r.n(ny);function iy(t){return iy="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},iy(t)}function ay(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 uy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ay(Object(r),!0).forEach(function(e){cy(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ay(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cy(t,e,r){var n;return n=function(t,e){if("object"!=iy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=iy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==iy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ly(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return sy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sy(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sy(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 fy=(0,G.forwardRef)(function(t,e){var r=t.aspect,n=t.initialDimension,o=void 0===n?{width:-1,height:-1}:n,i=t.width,a=void 0===i?"100%":i,u=t.height,c=void 0===u?"100%":u,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,p=t.maxHeight,h=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,m=t.className,b=t.onResize,g=t.style,w=void 0===g?{}:g,x=(0,G.useRef)(null),O=(0,G.useRef)();O.current=b,(0,G.useImperativeHandle)(e,function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})});var _=ly((0,G.useState)({containerWidth:o.width,containerHeight:o.height}),2),j=_[0],S=_[1],k=(0,G.useCallback)(function(t,e){S(function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}})},[]);(0,G.useEffect)(function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;k(n,o),null===(e=O.current)||void 0===e||e.call(O,n,o)};y>0&&(t=oy()(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,o=r.height;return k(n,o),e.observe(x.current),function(){e.disconnect()}},[k,y]);var P=(0,G.useMemo)(function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;ah(En(a)||En(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,c),ah(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=En(a)?t:a,o=En(c)?e:c;r&&r>0&&(n?o=n/r:o&&(n=o*r),p&&o>p&&(o=p)),ah(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,a,c,s,f,r);var i=!Array.isArray(h)&&$n(h.type).endsWith("Chart");return Z().Children.map(h,function(t){return Z().isValidElement(t)?(0,G.cloneElement)(t,uy({width:n,height:o},i?{style:uy({height:"100%",width:"100%",maxHeight:o,maxWidth:n},t.props.style)}:{})):t})},[r,h,c,p,f,s,j,a]);return Z().createElement("div",{id:v?"".concat(v):void 0,className:Q("recharts-responsive-container",m),style:uy(uy({},w),{},{width:a,height:c,minWidth:s,minHeight:f,maxHeight:p}),ref:x},P)}),py=r(3181),hy=r.n(py);function dy(t){return dy="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},dy(t)}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,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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return my(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return my(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function my(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 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 gy(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,e){if("object"!=dy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==dy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xy(t){return Array.isArray(t)&&Mn(t[0])&&Mn(t[1])?t.join(" ~ "):t}var Oy=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,o=void 0===n?{}:n,i=t.itemStyle,a=void 0===i?{}:i,u=t.labelStyle,c=void 0===u?{}:u,l=t.payload,s=t.formatter,f=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,d=t.label,y=t.labelFormatter,v=t.accessibilityLayer,m=void 0!==v&&v,b=gy({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),g=gy({margin:0},c),w=!ze()(d),x=w?d:"",O=Q("recharts-default-tooltip",p),_=Q("recharts-tooltip-label",h);w&&y&&null!=l&&(x=y(d,l));var j=m?{role:"status","aria-live":"assertive"}:{};return Z().createElement("div",yy({className:O,style:b},j),Z().createElement("p",{className:_,style:g},Z().isValidElement(x)?x:"".concat(x)),function(){if(l&&l.length){var t=(f?hp()(l,f):l).map(function(t,e){if("none"===t.type)return null;var n=gy({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),o=t.formatter||s||xy,i=t.value,u=t.name,c=i,f=u;if(o&&null!=c&&null!=f){var p=o(i,u,t,e,l);if(Array.isArray(p)){var h=vy(p,2);c=h[0],f=h[1]}else c=p}return Z().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},Mn(f)?Z().createElement("span",{className:"recharts-tooltip-item-name"},f):null,Mn(f)?Z().createElement("span",{className:"recharts-tooltip-item-separator"},r):null,Z().createElement("span",{className:"recharts-tooltip-item-value"},c),Z().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return Z().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};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 jy(t,e,r){var n;return n=function(t,e){if("object"!=_y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==_y(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Sy="recharts-tooltip-wrapper",ky={visibility:"hidden"};function Py(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return Q(Sy,jy(jy(jy(jy({},"".concat(Sy,"-right"),An(r)&&e&&An(e.x)&&r>=e.x),"".concat(Sy,"-left"),An(r)&&e&&An(e.x)&&r<e.x),"".concat(Sy,"-bottom"),An(n)&&e&&An(e.y)&&n>=e.y),"".concat(Sy,"-top"),An(n)&&e&&An(e.y)&&n<e.y))}function Ey(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,u=t.tooltipDimension,c=t.viewBox,l=t.viewBoxDimension;if(i&&An(i[n]))return i[n];var s=r[n]-u-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<c[n]?Math.max(f,c[n]):Math.max(s,c[n]):f+u>c[n]+l?Math.max(s,c[n]):Math.max(f,c[n])}function Ay(t){return Ay="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},Ay(t)}function My(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 Ty(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?My(Object(r),!0).forEach(function(e){Ly(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):My(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Cy(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,Ry(n.key),n)}}function Dy(t,e,r){return e=Iy(e),function(t,e){if(e&&("object"===Ay(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,Ny()?Reflect.construct(e,r||[],Iy(t).constructor):e.apply(t,r))}function Ny(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ny=function(){return!!t})()}function Iy(t){return Iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Iy(t)}function By(t,e){return By=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},By(t,e)}function Ly(t,e,r){return(e=Ry(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ry(t){var e=function(t,e){if("object"!=Ay(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ay(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ay(e)?e:e+""}var zy=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Ly(t=Dy(this,e,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ly(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}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&&By(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,a=e.children,u=e.coordinate,c=e.hasPayload,l=e.isAnimationActive,s=e.offset,f=e.position,p=e.reverseDirection,h=e.useTranslate3d,d=e.viewBox,y=e.wrapperStyle,v=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,u=t.reverseDirection,c=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:c.height>0&&c.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=Ey({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:u,tooltipDimension:c.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=Ey({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:u,tooltipDimension:c.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):ky,cssClasses:Py({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:u,offsetTopLeft:s,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:d}),m=v.cssClasses,b=v.cssProperties,g=Ty(Ty({transition:l&&r?"transform ".concat(o,"ms ").concat(i):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return Z().createElement("div",{tabIndex:-1,className:m,style:g,ref:function(e){t.wrapperNode=e}},a)}}])&&Cy(r.prototype,n),o&&Cy(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.PureComponent);function Uy(t){return Uy="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},Uy(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 qy(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){Xy(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 Ky(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,Vy(n.key),n)}}function $y(t,e,r){return e=Yy(e),function(t,e){if(e&&("object"===Uy(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,Wy()?Reflect.construct(e,r||[],Yy(t).constructor):e.apply(t,r))}function Wy(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Wy=function(){return!!t})()}function Yy(t){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yy(t)}function Hy(t,e){return Hy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hy(t,e)}function Xy(t,e,r){return(e=Vy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vy(t){var e=function(t,e){if("object"!=Uy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Uy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Uy(e)?e:e+""}function Gy(t){return t.dataKey}var Zy=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),$y(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hy(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,a=e.content,u=e.coordinate,c=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,p=e.payloadUniqBy,h=e.position,d=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,m=e.wrapperStyle,b=null!=f?f:[];c&&b.length&&(b=Ih(f.filter(function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)}),p,Gy));var g=b.length>0;return Z().createElement(zy,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:l,active:r,coordinate:u,hasPayload:g,offset:s,position:h,reverseDirection:d,useTranslate3d:y,viewBox:v,wrapperStyle:m},function(t,e){return Z().isValidElement(t)?Z().cloneElement(t,e):"function"==typeof t?Z().createElement(t,e):Z().createElement(Oy,e)}(a,qy(qy({},this.props),{},{payload:b})))}}])&&Ky(r.prototype,n),o&&Ky(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.PureComponent);function Jy(t){return Jy="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},Jy(t)}function Qy(){return Qy=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},Qy.apply(this,arguments)}function tv(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ev(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ev(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ev(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 rv(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 nv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rv(Object(r),!0).forEach(function(e){ov(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ov(t,e,r){var n;return n=function(t,e){if("object"!=Jy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Jy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Jy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Xy(Zy,"displayName","Tooltip"),Xy(Zy,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!_o.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 iv=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),u=n>=0?1:-1,c=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+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),i+="L ".concat(t+r-c*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+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-c*s[2],",").concat(e+n)),i+="L ".concat(t+c*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-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+r-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-c*p,",").concat(e+n,"\n L ").concat(t+c*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},av=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},uv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cv=function(t){var e=nv(nv({},uv),t),r=(0,G.useRef)(),n=tv((0,G.useState)(-1),2),o=n[0],i=n[1];(0,G.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}},[]);var a=e.x,u=e.y,c=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||u!==+u||c!==+c||l!==+l||0===c||0===l)return null;var m=Q("recharts-rectangle",f);return v?Z().createElement(De,{canBegin:o>0,from:{width:c,height:l,x:a,y:u},to:{width:c,height:l,x:a,y:u},duration:h,animationEasing:p,isActive:v},function(t){var n=t.width,i=t.height,a=t.x,u=t.y;return Z().createElement(De,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:y,easing:p},Z().createElement("path",Qy({},Qn(e,!0),{className:m,d:iv(a,u,n,i,s),ref:r})))}):Z().createElement("path",Qy({},Qn(e,!0),{className:m,d:iv(a,u,c,l,s)}))};function lv(t){return lv="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},lv(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 fv(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){pv(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 pv(t,e,r){var n;return n=function(t,e){if("object"!=lv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lv(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hv=["Webkit","Moz","O","ms"];function dv(t){return dv="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},dv(t)}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){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vv(Object(r),!0).forEach(function(e){_v(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}function bv(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,jv(n.key),n)}}function gv(t,e,r){return e=xv(e),function(t,e){if(e&&("object"===dv(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,wv()?Reflect.construct(e,r||[],xv(t).constructor):e.apply(t,r))}function wv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(wv=function(){return!!t})()}function xv(t){return xv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xv(t)}function Ov(t,e){return Ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ov(t,e)}function _v(t,e,r){return(e=jv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jv(t){var e=function(t,e){if("object"!=dv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dv(e)?e:e+""}var Sv=function(t){return t.changedTouches&&!!t.changedTouches.length},kv=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_v(r=gv(this,e,[t]),"handleDrag",function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)}),_v(r,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])}),_v(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()}),_v(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),_v(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),_v(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),_v(r,"handleSlideDragStart",function(t){var e=Sv(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ov(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,u=i.data.length-1,c=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,c),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=ud(r[t],o,t);return Ie()(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,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-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=Sv(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],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,b=v.endIndex;this.setState(_v(_v({},n,a+y),"brushMoveStartX",t.pageX),function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p===0:b%p===0)||o<i&&b===t||"endX"===n&&(o>i?b%p===0:m%p===0)||o>i&&b===t)&&f(v))})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var l=c+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(_v({},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,a=t.stroke;return Z().createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,u=t.padding,c=G.Children.only(a);return c?Z().cloneElement(c,{x:e,y:r,width:n,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,o,i=this,a=this.props,u=a.y,c=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,h=a.startIndex,d=a.endIndex,y=Math.max(t,this.props.x),v=mv(mv({},Qn(this.props,!1)),{},{x:y,y:u,width:c,height:l}),m=f||"Min value: ".concat(null===(n=p[h])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=p[d])||void 0===o?void 0:o.name);return Z().createElement(wo,{tabIndex:0,role:"slider","aria-label":m,"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(s,v))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,u=Math.min(t,e)+a,c=Math.max(Math.abs(e-t)-a,0);return Z().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:c,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,u=this.state,c=u.startX,l=u.endX,s={pointerEvents:"none",fill:a};return Z().createElement(wo,{className:"recharts-brush-texts"},Z().createElement(ai,yv({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:n+o/2},s),this.getTextOfTick(e)),Z().createElement(ai,yv({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+i+5,y:n+o/2},s),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,a=t.width,u=t.height,c=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,h=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!An(o)||!An(i)||!An(a)||!An(u)||a<=0||u<=0)return null;var v=Q("recharts-brush",r),m=1===Z().Children.count(n),b=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,function(t){return t.toUpperCase()}),n=hv.reduce(function(t,n){return fv(fv({},t),{},pv({},n+r,e))},{});return n[t]=e,n}("userSelect","none");return Z().createElement(wo,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||y||c)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return Z().createElement(Z().Fragment,null,Z().createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),Z().createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),Z().createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return Z().isValidElement(t)?Z().cloneElement(t,r):Ie()(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,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return mv({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 u=e.length,c=of().domain(hy()(0,u)).range([o,o+i-a]),l=c.domain().map(function(t){return c(t)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(n),scale:c,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{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&&bv(r.prototype,n),o&&bv(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.PureComponent);_v(kv,"displayName","Brush"),_v(kv,"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 Pv=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},Ev=r(3916),Av=r.n(Ev),Mv=r(9747),Tv=r.n(Mv),Cv=function(t){return null};Cv.displayName="Cell";var Dv=r(1331),Nv=r.n(Dv),Iv=r(3812),Bv=r.n(Iv);function Lv(t){return Lv="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},Lv(t)}function Rv(){return Rv=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},Rv.apply(this,arguments)}function zv(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Uv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uv(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uv(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 Fv(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 qv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fv(Object(r),!0).forEach(function(e){Kv(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Kv(t,e,r){var n;return n=function(t,e){if("object"!=Lv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Lv(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $v=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},Wv={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Yv=function(t){var e=qv(qv({},Wv),t),r=(0,G.useRef)(),n=zv((0,G.useState)(-1),2),o=n[0],i=n[1];(0,G.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}},[]);var a=e.x,u=e.y,c=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||u!==+u||c!==+c||l!==+l||s!==+s||0===c&&0===l||0===s)return null;var v=Q("recharts-trapezoid",f);return y?Z().createElement(De,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:u},to:{upperWidth:c,lowerWidth:l,height:s,x:a,y:u},duration:h,animationEasing:p,isActive:y},function(t){var n=t.upperWidth,i=t.lowerWidth,a=t.height,u=t.x,c=t.y;return Z().createElement(De,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,easing:p},Z().createElement("path",Rv({},Qn(e,!0),{className:v,d:$v(u,c,n,i,a),ref:r})))}):Z().createElement("g",null,Z().createElement("path",Rv({},Qn(e,!0),{className:v,d:$v(a,u,c,l,s)})))};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)}function Xv(){return Xv=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},Xv.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 Gv(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){Zv(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}function Zv(t,e,r){var n;return n=function(t,e){if("object"!=Hv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Hv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Hv(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Jv=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(a?1:-1)+n,s=Math.asin(u/l)/fi,f=c?o:o+i*s,p=c?o-i*s:o;return{center:hi(e,r,l,f),circleTangency:hi(e,r,n,f),lineTangency:hi(e,r,l*Math.cos(s*fi),p),theta:s}},Qv=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return Pn(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),u=i+a,c=hi(e,r,o,i),l=hi(e,r,o,u),s="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>u),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=hi(e,r,n,i),p=hi(e,r,n,u);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},tm={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},em=function(t){var e=Gv(Gv({},tm),t),r=e.cx,n=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,u=e.forceCornerRadius,c=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(i<o||l===s)return null;var p,h=Q("recharts-sector",f),d=i-o,y=Dn(a,d,0,!0);return p=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,s=Pn(l-c),f=Jv({cx:e,cy:r,radius:o,angle:c,sign:s,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=Jv({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,b=y.theta,g=u?Math.abs(c-l):Math.abs(c-l)-d-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):Qv({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var x=Jv({cx:e,cy:r,radius:n,angle:c,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),O=x.circleTangency,_=x.lineTangency,j=x.theta,S=Jv({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),k=S.circleTangency,P=S.lineTangency,E=S.theta,A=u?Math.abs(c-l):Math.abs(c-l)-j-E;if(A<0&&0===i)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(P.x,",").concat(P.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(k.x,",").concat(k.y,"\n A").concat(n,",").concat(n,",0,").concat(+(A>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,d/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:l,endAngle:s}):Qv({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:l,endAngle:s}),Z().createElement("path",Xv({},Qn(e,!0),{className:h,d:p,role:"img"}))},rm=["option","shapeType","propTransformer","activeClassName","isActive"];function nm(t){return nm="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},nm(t)}function om(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function im(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 am(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?im(Object(r),!0).forEach(function(e){um(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):im(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function um(t,e,r){var n;return n=function(t,e){if("object"!=nm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==nm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cm(t,e){return am(am({},e),t)}function lm(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return Z().createElement(cv,r);case"trapezoid":return Z().createElement(Yv,r);case"sector":return Z().createElement(em,r);case"symbols":if(function(t){return"symbols"===t}(e))return Z().createElement(wh,r);break;default:return null}}function sm(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=void 0===o?cm:o,a=t.activeClassName,u=void 0===a?"recharts-active-shape":a,c=t.isActive,l=om(t,rm);if((0,G.isValidElement)(r))e=(0,G.cloneElement)(r,am(am({},l),function(t){return(0,G.isValidElement)(t)?t.props:t}(r)));else if(Ie()(r))e=r(l);else if(Nv()(r)&&!Bv()(r)){var s=i(r,l);e=Z().createElement(lm,{shapeType:n,elementProps:s})}else{var f=l;e=Z().createElement(lm,{shapeType:n,elementProps:f})}return c?Z().createElement(wo,{className:u},e):e}function fm(t,e){return null!=e&&"trapezoids"in t.props}function pm(t,e){return null!=e&&"sectors"in t.props}function hm(t,e){return null!=e&&"points"in t.props}function dm(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 ym(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function vm(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function mm(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return fm(t,e)?r="trapezoids":pm(t,e)?r="sectors":hm(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return fm(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:pm(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:hm(t,e)?e.payload:{}}(r,e),a=n.filter(function(t,n){var a=Ke()(i,t),u=r.props[o].filter(function(t){var n=function(t,e){var r;return fm(t,e)?r=dm:pm(t,e)?r=ym:hm(t,e)&&(r=vm),r}(r,e);return n(t,e)}),c=r.props[o].indexOf(u[u.length-1]);return a&&n===c});return n.indexOf(a[a.length-1])}var bm=["x","y"];function gm(t){return gm="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},gm(t)}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)}function xm(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 Om(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xm(Object(r),!0).forEach(function(e){_m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _m(t,e,r){var n;return n=function(t,e){if("object"!=gm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==gm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Sm(t,e){var r=t.x,n=t.y,o=jm(t,bm),i="".concat(r),a=parseInt(i,10),u="".concat(n),c=parseInt(u,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return Om(Om(Om(Om(Om({},e),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function km(t){return Z().createElement(sm,wm({shapeType:"rectangle",propTransformer:Sm,activeClassName:"recharts-active-bar"},t))}var Pm,Em=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=An(r)||function(t){return ze()(t)}(r);return o?t(r,n):(o||Wp(!1),e)}},Am=["value","background"];function Mm(t){return Mm="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},Mm(t)}function Tm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Cm(){return Cm=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},Cm.apply(this,arguments)}function Dm(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 Nm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dm(Object(r),!0).forEach(function(e){Um(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Im(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,Fm(n.key),n)}}function Bm(t,e,r){return e=Rm(e),function(t,e){if(e&&("object"===Mm(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,Lm()?Reflect.construct(e,r||[],Rm(t).constructor):e.apply(t,r))}function Lm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Lm=function(){return!!t})()}function Rm(t){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rm(t)}function zm(t,e){return zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zm(t,e)}function Um(t,e,r){return(e=Fm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fm(t){var e=function(t,e){if("object"!=Mm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Mm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Mm(e)?e:e+""}var qm=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Um(t=Bm(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),Um(t,"id",Cn("recharts-bar-")),Um(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),Um(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()}),t}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&&zm(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,a=r.activeBar,u=Qn(this.props,!1);return t&&t.map(function(t,r){var c=r===i,l=c?a:n,s=Nm(Nm(Nm({},u),t),{},{isActive:c,option:l,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return Z().createElement(wo,Cm({className:"recharts-bar-rectangle"},wn(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,"-").concat(r)}),Z().createElement(km,s))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,l=this.state.prevData;return Z().createElement(De,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var o=e.t,i=r.map(function(t,e){var r=l&&l[e];if(r){var i=In(r.x,t.x),a=In(r.y,t.y),u=In(r.width,t.width),c=In(r.height,t.height);return Nm(Nm({},t),{},{x:i(o),y:a(o),width:u(o),height:c(o)})}if("horizontal"===n){var s=In(0,t.height)(o);return Nm(Nm({},t),{},{y:t.y+t.height-s,height:s})}var f=In(0,t.width)(o);return Nm(Nm({},t),{},{width:f})});return Z().createElement(wo,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&&Ke()(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=Qn(this.props.background,!1);return r.map(function(e,r){e.value;var a=e.background,u=Tm(e,Am);if(!a)return null;var c=Nm(Nm(Nm(Nm(Nm({},u),{},{fill:"#eee"},a),i),wn(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return Z().createElement(km,Cm({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},c))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,u=Xn(r.children,ih);if(!u)return null;var c="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:ud(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return Z().createElement(wo,s,u.map(function(t){return Z().cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:c,dataPointFormatter:l})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,u=t.top,c=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=Q("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,m=y||v,b=ze()(p)?this.id:p;return Z().createElement(wo,{className:d},y||v?Z().createElement("defs",null,Z().createElement("clipPath",{id:"clipPath-".concat(b)},Z().createElement("rect",{x:y?a:a-c/2,y:v?u:u-l/2,width:y?c:2*c,height:v?l:2*l}))):null,Z().createElement(wo,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(b,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,b),(!s||h)&&Ud.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&&Im(r.prototype,n),o&&Im(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.PureComponent);function Km(t){return Km="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},Km(t)}function $m(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,Xm(n.key),n)}}function Wm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ym(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wm(Object(r),!0).forEach(function(e){Hm(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Hm(t,e,r){return(e=Xm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xm(t){var e=function(t,e){if("object"!=Km(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Km(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Km(e)?e:e+""}Pm=qm,Um(qm,"displayName","Bar"),Um(qm,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!_o.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Um(qm,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=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.type.defaultProps,v=void 0!==y?Nm(Nm({},y),r.props):r.props,m=v.dataKey,b=v.children,g=v.minPointSize,w="horizontal"===d?a:i,x=l?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:w}),_=Xn(b,Cv),j=f.map(function(t,e){var n,f,p,y,v,b;l?n=function(t,e){if(!e||2!==e.length||!An(e[0])||!An(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(!An(t[0])||t[0]<r)&&(o[0]=r),(!An(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=ud(t,m),Array.isArray(n)||(n=[O,n]));var w=Em(g,Pm.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,S=[a.scale(n[0]),a.scale(n[1])],k=S[0],P=S[1];f=xd({axis:i,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(j=null!=P?P:k)&&void 0!==j?j:void 0,y=h.size;var E=k-P;if(v=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var A=Pn(v||w)*(Math.abs(w)-Math.abs(v));p-=A,v+=A}}else{var M=[i.scale(n[0]),i.scale(n[1])],T=M[0],C=M[1];if(f=T,p=xd({axis:a,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),y=C-T,v=h.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=Pn(y||w)*(Math.abs(w)-Math.abs(y))}return Nm(Nm(Nm({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:b},_&&_[e]&&_[e].props),{},{tooltipPayload:[Ed(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})});return Nm({data:j,layout:d},p)});var Vm=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)}},Gm=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&$m(e.prototype,r),n&&$m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();Hm(Gm,"EPS",1e-4);var Zm=function(t){var e=Object.keys(t).reduce(function(e,r){return Ym(Ym({},e),{},Hm({},r,Gm.create(t[r])))},{});return Ym(Ym({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return Av()(t,function(t,r){return e[r].apply(t,{bandAware:n,position:o})})},isInRange:function(t){return Tv()(t,function(t,r){return e[r].isInRange(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){return Qm="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},Qm(t)}function tb(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 eb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tb(Object(r),!0).forEach(function(e){ub(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tb(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function rb(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,cb(n.key),n)}}function nb(t,e,r){return e=ib(e),function(t,e){if(e&&("object"===Qm(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,ob()?Reflect.construct(e,r||[],ib(t).constructor):e.apply(t,r))}function ob(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ob=function(){return!!t})()}function ib(t){return ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ib(t)}function ab(t,e){return ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ab(t,e)}function ub(t,e,r){return(e=cb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cb(t){var e=function(t,e){if("object"!=Qm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Qm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qm(e)?e:e+""}var lb=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),nb(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ab(t,e)}(e,t),r=e,n=[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,o=t.r,i=t.alwaysShow,a=t.clipPathId,u=Mn(r),c=Mn(n);if(ah(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=Zm({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return Pv(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,h=p.shape,d=p.className,y=eb(eb({clipPath:Pv(this.props,"hidden")?"url(#".concat(a,")"):void 0},Qn(this.props,!0)),{},{cx:s,cy:f});return Z().createElement(wo,{className:Q("recharts-reference-dot",d)},e.renderDot(h,y),Pi.renderCallByParent(this.props,{x:s-o,y:f-o,width:2*o,height:2*o}))}}],n&&rb(r.prototype,n),o&&rb(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Z().Component);ub(lb,"displayName","ReferenceDot"),ub(lb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),ub(lb,"renderDot",function(t,e){return Z().isValidElement(t)?Z().cloneElement(t,e):Ie()(t)?t(e):Z().createElement(vo,Jm({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))});var sb=r(2426),fb=r.n(sb),pb=r(7309),hb=r.n(pb),db=r(104),yb=r.n(db)()(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("")});var vb=(0,G.createContext)(void 0),mb=(0,G.createContext)(void 0),bb=(0,G.createContext)(void 0),gb=(0,G.createContext)({}),wb=(0,G.createContext)(void 0),xb=(0,G.createContext)(0),Ob=(0,G.createContext)(0),_b=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,a=t.children,u=t.width,c=t.height,l=yb(o);return Z().createElement(vb.Provider,{value:r},Z().createElement(mb.Provider,{value:n},Z().createElement(gb.Provider,{value:o},Z().createElement(bb.Provider,{value:l},Z().createElement(wb.Provider,{value:i},Z().createElement(xb.Provider,{value:c},Z().createElement(Ob.Provider,{value:u},a)))))))};var jb=function(t){var e=(0,G.useContext)(vb);null==e&&Wp(!1);var r=e[t];return null==r&&Wp(!1),r},Sb=function(t){var e=(0,G.useContext)(mb);null==e&&Wp(!1);var r=e[t];return null==r&&Wp(!1),r},kb=function(){return(0,G.useContext)(Ob)},Pb=function(){return(0,G.useContext)(xb)};function Eb(t){return Eb="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},Eb(t)}function Ab(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,Lb(n.key),n)}}function Mb(t,e,r){return e=Cb(e),function(t,e){if(e&&("object"===Eb(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,Tb()?Reflect.construct(e,r||[],Cb(t).constructor):e.apply(t,r))}function Tb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Tb=function(){return!!t})()}function Cb(t){return Cb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cb(t)}function Db(t,e){return Db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Db(t,e)}function Nb(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 Ib(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nb(Object(r),!0).forEach(function(e){Bb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nb(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Bb(t,e,r){return(e=Lb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lb(t){var e=function(t,e){if("object"!=Eb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Eb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Eb(e)?e:e+""}function Rb(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return zb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zb(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zb(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 Ub(){return Ub=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},Ub.apply(this,arguments)}function Fb(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,i=t.yAxisId,a=t.shape,u=t.className,c=t.alwaysShow,l=(0,G.useContext)(wb),s=jb(o),f=Sb(i),p=(0,G.useContext)(bb);if(!l||!p)return null;ah(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(t,e,r,n,o,i,a,u,c){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var h=c.y,d=t.y.apply(h,{position:i});if(Pv(c,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===u?y.reverse():y}if(e){var v=c.x,m=t.x.apply(v,{position:i});if(Pv(c,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=c.segment.map(function(e){return t.apply(e,{position:i})});return Pv(c,"discard")&&fb()(g,function(e){return!t.isInRange(e)})?null:g}return null}(Zm({x:s.scale,y:f.scale}),Mn(e),Mn(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!h)return null;var d=Rb(h,2),y=d[0],v=y.x,m=y.y,b=d[1],g=b.x,w=b.y,x=Ib(Ib({clipPath:Pv(t,"hidden")?"url(#".concat(l,")"):void 0},Qn(t,!0)),{},{x1:v,y1:m,x2:g,y2:w});return Z().createElement(wo,{className:Q("recharts-reference-line",u)},function(t,e){return Z().isValidElement(t)?Z().cloneElement(t,e):Ie()(t)?t(e):Z().createElement("line",Ub({},e,{className:"recharts-reference-line-line"}))}(a,x),Pi.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return Vm({x:e,y:r},{x:n,y:o})}({x1:v,y1:m,x2:g,y2:w})))}var qb=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Mb(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Db(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){return Z().createElement(Fb,this.props)}}])&&Ab(r.prototype,n),o&&Ab(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Z().Component);function Kb(){return Kb=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},Kb.apply(this,arguments)}function $b(t){return $b="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},$b(t)}function Wb(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 Yb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wb(Object(r),!0).forEach(function(e){Jb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Hb(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,Qb(n.key),n)}}function Xb(t,e,r){return e=Gb(e),function(t,e){if(e&&("object"===$b(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,Vb()?Reflect.construct(e,r||[],Gb(t).constructor):e.apply(t,r))}function Vb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Vb=function(){return!!t})()}function Gb(t){return Gb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gb(t)}function Zb(t,e){return Zb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zb(t,e)}function Jb(t,e,r){return(e=Qb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qb(t){var e=function(t,e){if("object"!=$b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$b(e)?e:e+""}Bb(qb,"displayName","ReferenceLine"),Bb(qb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var tg=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Xb(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zb(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.className,u=t.alwaysShow,c=t.clipPathId;ah(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Mn(r),s=Mn(n),f=Mn(o),p=Mn(i),h=this.props.shape;if(!(l||s||f||p||h))return null;var d=function(t,e,r,n,o){var i=o.x1,a=o.x2,u=o.y1,c=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=Zm({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(u,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!Pv(o,"discard")||f.isInRange(p)&&f.isInRange(h)?Vm(p,h):null}(l,s,f,p,this.props);if(!d&&!h)return null;var y=Pv(this.props,"hidden")?"url(#".concat(c,")"):void 0;return Z().createElement(wo,{className:Q("recharts-reference-area",a)},e.renderRect(h,Yb(Yb({clipPath:y},Qn(this.props,!0)),d)),Pi.renderCallByParent(this.props,d))}}])&&Hb(r.prototype,n),o&&Hb(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Z().Component);function eg(t){return function(t){if(Array.isArray(t))return rg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return rg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rg(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rg(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}Jb(tg,"displayName","ReferenceArea"),Jb(tg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Jb(tg,"renderRect",function(t,e){return Z().isValidElement(t)?Z().cloneElement(t,e):Ie()(t)?t(e):Z().createElement(cv,Kb({},e,{className:"recharts-reference-area-rect"}))});var ng=function(t,e,r,n,o){var i=Xn(t,qb),a=Xn(t,lb),u=[].concat(eg(i),eg(a)),c=Xn(t,tg),l="".concat(n,"Id"),s=n[0],f=e;if(u.length&&(f=u.reduce(function(t,e){if(e.props[l]===r&&Pv(e.props,"extendDomain")&&An(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t},f)),c.length){var p="".concat(s,"1"),h="".concat(s,"2");f=c.reduce(function(t,e){if(e.props[l]===r&&Pv(e.props,"extendDomain")&&An(e.props[p])&&An(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 An(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f};t();var og=new(function e(){return e.c||(e.c=r.n(t()))}()()),ig="recharts.syncMouseEvents";function ag(t){return ag="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},ag(t)}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,lg(n.key),n)}}function cg(t,e,r){return(e=lg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lg(t){var e=function(t,e){if("object"!=ag(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ag(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ag(e)?e:e+""}var sg=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),cg(this,"activeIndex",0),cg(this,"coordinateList",[]),cg(this,"layout","horizontal")},e=[{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,u=void 0===a?null:a,c=t.offset,l=void 0===c?null:c,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!=u?u: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,u=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,c=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+u,s=o+this.offset.top+i/2+c;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],e&&ug(t.prototype,e),r&&ug(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function fg(t){return fg="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},fg(t)}var pg=["x","y","top","left","width","height","className"];function hg(){return hg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},hg.apply(this,arguments)}function dg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function yg(t,e,r){var n;return n=function(t,e){if("object"!=fg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==fg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var mg=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},bg=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,u=t.left,c=void 0===u?0:u,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,h=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dg(Object(r),!0).forEach(function(e){yg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({x:r,y:o,top:a,left:c,width:s,height:p},vg(t,pg));return An(r)&&An(o)&&An(s)&&An(p)&&An(a)&&An(c)?Z().createElement("path",hg({},Qn(d,!0),{className:Q("recharts-cross",h),d:mg(r,o,s,p,a,c)})):null};function gg(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[hi(e,r,n,o),hi(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function wg(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 gg(e);var u=e.cx,c=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=hi(u,c,l,f),h=hi(u,c,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function xg(t){return xg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xg(t)}function Og(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 _g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Og(Object(r),!0).forEach(function(e){jg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function jg(t,e,r){var n;return n=function(t,e){if("object"!=xg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==xg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sg(t){var e,r,n,o=t.element,i=t.tooltipEventType,a=t.isActive,u=t.activeCoordinate,c=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,h=t.chartName,d=null!==(e=o.props.cursor)&&void 0!==e?e:null===(r=o.type.defaultProps)||void 0===r?void 0:r.cursor;if(!o||!d||!a||!u||"ScatterChart"!==h&&"axis"!==i)return null;var y=ho;if("ScatterChart"===h)n=u,y=bg;else if("BarChart"===h)n=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}}(p,u,l,f),y=cv;else if("radial"===p){var v=gg(u),m=v.cx,b=v.cy,g=v.radius;n={cx:m,cy:b,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:g,outerRadius:g},y=em}else n={points:wg(p,u,l)},y=ho;var w=_g(_g(_g(_g({stroke:"#ccc",pointerEvents:"none"},l),n),Qn(d,!1)),{},{payload:c,payloadIndex:s,className:Q("recharts-tooltip-cursor",d.className)});return(0,G.isValidElement)(d)?(0,G.cloneElement)(d,w):(0,G.createElement)(y,w)}var kg=["item"],Pg=["children","className","width","height","style","compact","title","desc"];function Eg(t){return Eg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eg(t)}function Ag(){return Ag=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},Ag.apply(this,arguments)}function Mg(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||Rg(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 Tg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Cg(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,Kg(n.key),n)}}function Dg(t,e,r){return e=Ig(e),function(t,e){if(e&&("object"===Eg(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,Ng()?Reflect.construct(e,r||[],Ig(t).constructor):e.apply(t,r))}function Ng(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ng=function(){return!!t})()}function Ig(t){return Ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ig(t)}function Bg(t,e){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bg(t,e)}function Lg(t){return function(t){if(Array.isArray(t))return zg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Rg(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 Rg(t,e){if(t){if("string"==typeof t)return zg(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)?zg(t,e):void 0}}function zg(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 Ug(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 Fg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ug(Object(r),!0).forEach(function(e){qg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ug(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function qg(t,e,r){return(e=Kg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kg(t){var e=function(t,e){if("object"!=Eg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Eg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Eg(e)?e:e+""}var $g={xAxis:["bottom","top"],yAxis:["left","right"]},Wg={width:"100%",height:"100%"},Yg={x:0,y:0};function Hg(t){return t}var Xg=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(Lg(t),Lg(r)):t},[]);return i.length>0?i:t&&t.length&&An(n)&&An(o)?t.slice(n,o+1):[]};function Vg(t){return"number"===t?[0,"auto"]:void 0}var Gg=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=Xg(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,u){var c,l,s=null!==(c=u.props.data)&&void 0!==c?c:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=Bn(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(Lg(o),[Ed(u,l)]):o},[])},Zg=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,u=t.tooltipAxis,c=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 u=o.range,c=0;c<a;c++){var l=c>0?n[c-1].coordinate:n[a-1].coordinate,s=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if(Pn(s-l)!==Pn(f-s)){var h=[];if(Pn(f-s)===Pn(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[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[c].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[c].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=Gg(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 Fg(Fg(Fg({},n),hi(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var u=o.coordinate,c=n.angle;return Fg(Fg(Fg({},n),hi(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return Yg}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Jg=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=pd(l,o);return r.reduce(function(e,r){var h,d=void 0!==r.type.defaultProps?Fg(Fg({},r.type.defaultProps),r.props):r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,b=d.allowDuplicatedCategory,g=d.scale,w=d.ticks,x=d.includeHidden,O=d[i];if(e[O])return e;var _,j,S,k=Xg(t.data,{graphicalItems:n.filter(function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===O}),dataStartIndex:u,dataEndIndex:c}),P=k.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&&An(n)&&An(o))return!0}return!1})(d.domain,m,y)&&(_=Sd(d.domain,null,m),!p||"number"!==y&&"auto"===g||(S=cd(k,v,"category")));var E=Vg(y);if(!_||0===_.length){var A,M=null!==(A=d.domain)&&void 0!==A?A:E;if(v){if(_=cd(k,v,y),"category"===y&&p){var T=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}(_);b&&T?(j=_,_=hy()(0,P)):b||(_=Pd(M,_,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(Lg(t),[e])},[]))}else if("category"===y)_=b?_.filter(function(t){return""!==t&&!ze()(t)}):Pd(M,_,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||ze()(e)?t:[].concat(Lg(t),[e])},[]);else if("number"===y){var C=function(t,e,r,n,o){var i=e.map(function(e){return sd(t,e,r,o,n)}).filter(function(t){return!ze()(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}(k,n.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)}),v,o,l);C&&(_=C)}!p||"number"!==y&&"auto"===g||(S=cd(k,v,"category"))}else _=p?hy()(0,P):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:Od(a[O].stackGroups,u,c):fd(k,n.filter(function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)}),y,l,!0);if("number"===y)_=ng(s,_,O,o,w),M&&(_=Sd(M,_,m));else if("category"===y&&M){var D=M;_.every(function(t){return D.indexOf(t)>=0})&&(_=D)}}return Fg(Fg({},e),{},qg({},O,Fg(Fg({},d),{},{axisType:o,domain:_,categoricalDomain:S,duplicateDomain:j,originalDomain:null!==(h=d.domain)&&void 0!==h?h:E,isCategorical:p,layout:l})))},{})},Qg=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Xn(l,o),p={};return f&&f.length?p=Jg(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=Xg(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=pd(l,o),d=-1;return r.reduce(function(t,e){var y,v=(void 0!==e.type.defaultProps?Fg(Fg({},e.type.defaultProps),e.props):e.props)[i],m=Vg("number");return t[v]?t:(d++,h?y=hy()(0,p):a&&a[v]&&a[v].hasStack?(y=Od(a[v].stackGroups,u,c),y=ng(s,y,v,o)):(y=Sd(m,fd(f,r.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o}),"number",l),n.defaultProps.allowDataOverflow),y=ng(s,y,v,o)),Fg(Fg({},t),{},qg({},v,Fg(Fg({axisType:o},n.defaultProps),{},{hide:!0,orientation:On()($g,"".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:u,dataEndIndex:c})),p},tw=function(t){var e=t.children,r=t.defaultShowTooltip,n=Vn(e,kv),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)}},ew=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"}},rw=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,u=r.width,c=r.height,l=r.children,s=r.margin||{},f=Vn(l,kv),p=Vn(l,Vh),h=Object.keys(a).reduce(function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:Fg(Fg({},t),{},qg({},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:Fg(Fg({},t),{},qg({},n,On()(t,"".concat(n))+r.height))},{top:s.top||0,bottom:s.bottom||0}),y=Fg(Fg({},d),h),v=y.bottom;f&&(y.bottom+=f.props.height||kv.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=td({children:o,legendWidth:u});if(c){var l=n||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&An(t[p]))return id(id({},t),{},ad({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&An(t[h]))return id(id({},t),{},ad({},h,t[h]+(f||0)))}return t}(y,0,r,e));var m=u-y.left-y.right,b=c-y.top-y.bottom;return Fg(Fg({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(b,0)})},nw=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0};function ow(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 iw(t,e,r){return function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)}({width:t.width+e.width,height:t.height+e.height},r)}function aw(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 uw(t){return uw="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},uw(t)}function cw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function lw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cw(Object(r),!0).forEach(function(e){sw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function sw(t,e,r){var n;return n=function(t,e){if("object"!=uw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==uw(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fw(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,u=t.orientation,c=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(An(c)||_o.isSsr)return function(t,e){return ow(t,e+1)}(o,"number"==typeof c&&An(c)?c:0);var p=[],h="top"===u||"bottom"===u?"width":"height",d=s&&"width"===h?To(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=Ie()(l)?l(t.value,n):t.value;return"width"===h?iw(To(o,{fontSize:e,letterSpacing:r}),d,f):To(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?Pn(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,u=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+u}:{start:n?o+a:i+u,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===c?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),u=e.start,c=e.end,l=0,s=1,f=u,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:ow(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,d=0===l||aw(t,h,p,f,c);d||(l=0,f=u,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"===c||"preserveStartEnd"===c?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,c=e.start,l=e.end;if(i){var s=n[u-1],f=r(s,u-1),p=t*(s.coordinate+t*f/2-l);a[u-1]=s=lw(lw({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),aw(t,s.tickCoord,function(){return f},c,l)&&(l=s.tickCoord-t*(f/2+o),a[u-1]=lw(lw({},s),{},{isShow:!0}))}for(var h=i?u-1:u,d=function(e){var n,i=a[e],u=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*u()/2-c);a[e]=i=lw(lw({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=lw(lw({},i),{},{tickCoord:i.coordinate});aw(t,i.tickCoord,u,c,l)&&(c=i.tickCoord+t*(u()/2+o),a[e]=lw(lw({},i),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(v,m,y,o,a,"preserveStartEnd"===c):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,u=e.start,c=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-c);i[e]=l=lw(lw({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=lw(lw({},l),{},{tickCoord:l.coordinate});aw(t,l.tickCoord,s,u,c)&&(c=l.tickCoord-t*(s()/2+o),i[e]=lw(lw({},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}))}var pw=["viewBox"],hw=["viewBox"],dw=["ticks"];function yw(t){return yw="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},yw(t)}function vw(){return vw=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},vw.apply(this,arguments)}function mw(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 bw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mw(Object(r),!0).forEach(function(e){Sw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function gw(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ww(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,kw(n.key),n)}}function xw(t,e,r){return e=_w(e),function(t,e){if(e&&("object"===yw(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,Ow()?Reflect.construct(e,r||[],_w(t).constructor):e.apply(t,r))}function Ow(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ow=function(){return!!t})()}function _w(t){return _w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_w(t)}function jw(t,e){return jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jw(t,e)}function Sw(t,e,r){return(e=kw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kw(t){var e=function(t,e){if("object"!=yw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yw(e)?e:e+""}var Pw=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=xw(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jw(t,e)}(e,t),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=gw(t,pw),o=this.props,i=o.viewBox,a=gw(o,hw);return!Rn(r,i)||!Rn(n,a)||!Rn(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,u=this.props,c=u.x,l=u.y,s=u.width,f=u.height,p=u.orientation,h=u.tickSize,d=u.mirror,y=u.tickMargin,v=d?-1:1,m=t.tickSize||h,b=An(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=b;break;case"left":n=o=t.coordinate,i=(e=(r=c+ +!d*s)-v*m)-v*y,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=c+ +d*s)+v*m)+v*y,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +d*f)+v*m)+v*y,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,u=t.axisLine,c=bw(bw(bw({},Qn(this.props,!1)),Qn(u,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);c=bw(bw({},c),{},{x1:e,y1:r+l*o,x2:e+n,y2:r+l*o})}else{var s=+("left"===i&&!a||"right"===i&&a);c=bw(bw({},c),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+o})}return Z().createElement("line",vw({},c,{className:Q("recharts-cartesian-axis-line",On()(u,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var o=this,i=this.props,a=i.tickLine,u=i.stroke,c=i.tick,l=i.tickFormatter,s=i.unit,f=fw(bw(bw({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=Qn(this.props,!1),y=Qn(c,!1),v=bw(bw({},d),{},{fill:"none"},Qn(a,!1)),m=f.map(function(t,r){var n=o.getTickLineCoord(t),i=n.line,m=n.tick,b=bw(bw(bw(bw({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:u},y),m),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return Z().createElement(wo,vw({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},wn(o.props,t,r)),a&&Z().createElement("line",vw({},v,i,{className:Q("recharts-cartesian-axis-tick-line",On()(a,"className"))})),c&&e.renderTickItem(c,b,"".concat(Ie()(l)?l(t.value,r):t.value).concat(s||"")))});return Z().createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var u=this.props,c=u.ticks,l=gw(u,dw),s=c;return Ie()(i)&&(s=c&&c.length>0?i(this.props):i(l)),n<=0||o<=0||!s||!s.length?null:Z().createElement(wo,{className:Q("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),Pi.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,e,r){var n=Q(e.className,"recharts-cartesian-axis-tick-value");return Z().isValidElement(t)?Z().cloneElement(t,bw(bw({},e),{},{className:n})):Ie()(t)?t(bw(bw({},e),{},{className:n})):Z().createElement(ai,vw({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&ww(r.prototype,n),o&&ww(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.Component);function Ew(t){return Ew="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},Ew(t)}function Aw(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,Iw(n.key),n)}}function Mw(t,e,r){return e=Cw(e),function(t,e){if(e&&("object"===Ew(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,Tw()?Reflect.construct(e,r||[],Cw(t).constructor):e.apply(t,r))}function Tw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Tw=function(){return!!t})()}function Cw(t){return Cw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cw(t)}function Dw(t,e){return Dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dw(t,e)}function Nw(t,e,r){return(e=Iw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iw(t){var e=function(t,e){if("object"!=Ew(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ew(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ew(e)?e:e+""}function Bw(){return Bw=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},Bw.apply(this,arguments)}function Lw(t){var e=t.xAxisId,r=kb(),n=Pb(),o=jb(e);return null==o?null:G.createElement(Pw,Bw({},o,{className:Q("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return dd(t,!0)}}))}Sw(Pw,"displayName","CartesianAxis"),Sw(Pw,"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 Rw=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Mw(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dw(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){return G.createElement(Lw,this.props)}}])&&Aw(r.prototype,n),o&&Aw(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.Component);function zw(t){return zw="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},zw(t)}function Uw(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,Yw(n.key),n)}}function Fw(t,e,r){return e=Kw(e),function(t,e){if(e&&("object"===zw(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,qw()?Reflect.construct(e,r||[],Kw(t).constructor):e.apply(t,r))}function qw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(qw=function(){return!!t})()}function Kw(t){return Kw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kw(t)}function $w(t,e){return $w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$w(t,e)}function Ww(t,e,r){return(e=Yw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yw(t){var e=function(t,e){if("object"!=zw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zw(e)?e:e+""}function Hw(){return Hw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hw.apply(this,arguments)}Nw(Rw,"displayName","XAxis"),Nw(Rw,"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 Xw=function(t){var e=t.yAxisId,r=kb(),n=Pb(),o=Sb(e);return null==o?null:G.createElement(Pw,Hw({},o,{className:Q("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return dd(t,!0)}}))},Vw=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Fw(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$w(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){return G.createElement(Xw,this.props)}}])&&Uw(r.prototype,n),o&&Uw(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(G.Component);Ww(Vw,"displayName","YAxis"),Ww(Vw,"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 Gw=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,o=void 0===n?"axis":n,i=t.validateTooltipEventTypes,a=void 0===i?["axis"]:i,u=t.axisComponents,c=t.legendContent,l=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=ew(s),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some(function(t){var e=$n(t&&t.type);return e&&e.indexOf("Bar")>=0})}(r),b=[];return r.forEach(function(r,d){var g=Xg(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),w=void 0!==r.type.defaultProps?Fg(Fg({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,_=w["".concat(y,"Id")],j=w["".concat(v,"Id")],S=u.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],o=w["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||Wp(!1);var i=n[o];return Fg(Fg({},t),{},qg(qg({},r.axisType,i),"".concat(r.axisType,"Ticks"),dd(i)))},{}),k=S[v],P=S["".concat(v,"Ticks")],E=n&&n[_]&&n[_].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?id(id({},t.type.defaultProps),t.props):t.props).stackId;if(Mn(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[_].stackGroups),A=$n(r.type).indexOf("Bar")>=0,M=kd(k,P),T=[],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),u=0,c=a.length;u<c;u++)for(var l=o[a[u]].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 $n(t.type).indexOf("Bar")>=0});if(v&&v.length){var m=v[0].type.defaultProps,b=void 0!==m?id(id({},m),v[0].props):v[0].props,g=b.barSize,w=b[y];i[w]||(i[w]=[]);var x=ze()(g)?e:g;i[w].push({item:v[0],stackList:v.slice(1),barSize:ze()(x)?void 0:Dn(x,r,0)})}}return i}({barSize:l,stackGroups:n,totalSize:nw(S,v)});if(A){var D,N,I=ze()(O)?h:O,B=null!==(D=null!==(N=kd(k,P,!0))&&void 0!==N?N:I)&&void 0!==D?D:0;T=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,u=i.length;if(u<1)return null;var c,l=Dn(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/u,h=i.reduce(function(t,e){return t+e.barSize||0},0);(h+=(u-1)*l)>=n&&(h-=(u-1)*l,l=0),h>=n&&p>0&&(f=!0,h=u*(p*=.9));var d={offset:((n-h)/2|0)-l,size:0};c=i.reduce(function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(rd(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=Dn(r,n,0,!0);n-2*y-(u-1)*l<=0&&(l=0);var v=(n-2*y-(u-1)*l)/u;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;c=i.reduce(function(t,e,r){var n=[].concat(rd(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 c}({barGap:f,barCategoryGap:p,bandSize:B!==M?B:M,sizeList:C[j],maxBarSize:I}),B!==M&&(T=T.map(function(t){return Fg(Fg({},t),{},{position:Fg(Fg({},t.position),{},{offset:t.position.offset-B/2})})}))}var L,R,z=r&&r.type&&r.type.getComposedData;z&&b.push({props:Fg(Fg({},z(Fg(Fg({},S),{},{displayedData:g,props:t,dataKey:x,item:r,bandSize:M,barPosition:T,offset:o,stackedData:E,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},qg(qg(qg({key:r.key||"item-".concat(d)},y,S[y]),v,S[v]),"animationId",i)),childIndex:(L=r,R=t.children,Hn(R).indexOf(L)),item:r})}),b},p=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Gn({props:o}))return null;var s=o.children,p=o.layout,h=o.stackOffset,d=o.data,y=o.reverseStackOrder,v=ew(p),m=v.numericAxisName,b=v.cateAxisName,g=Xn(s,r),w=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce(function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?id(id({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var u=i[r],c=t[u]||{hasStack:!1,stackGroups:{}};if(Mn(a)){var l=c.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),c.hasStack=!0,c.stackGroups[a]=l}else c.stackGroups[Cn("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return id(id({},t),{},ad({},u,c))},{});return Object.keys(a).reduce(function(e,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce(function(e,i){var a=u.stackGroups[i];return id(id({},e),{},ad({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:gd(t,a.items,o)}))},{})),id(id({},e),{},ad({},i,u))},{})}(d,g,"".concat(m,"Id"),"".concat(b,"Id"),h,y),x=u.reduce(function(t,e){var r="".concat(e.axisType,"Map");return Fg(Fg({},t),{},qg({},r,Qg(o,Fg(Fg({},e),{},{graphicalItems:g,stackGroups:e.axisType===m&&w,dataStartIndex:i,dataEndIndex:a}))))},{}),O=rw(Fg(Fg({},x),{},{props:o,graphicalItems:g}),null==n?void 0:n.legendBBox);Object.keys(x).forEach(function(t){x[t]=l(o,x[t],O,t.replace("Map",""),e)});var _,j,S=x["".concat(b,"Map")],k=(_=Nn(S),{tooltipTicks:j=dd(_,!1,!0),orderedTooltipTicks:hp()(j,function(t){return t.coordinate}),tooltipAxis:_,tooltipAxisBandSize:kd(_,j)}),P=f(o,Fg(Fg({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:c,graphicalItems:g,stackGroups:w,offset:O}));return Fg(Fg({formattedGraphicalItems:P,graphicalItems:g,offset:O,stackGroups:w},k),x)},h=function(t){function r(t){var n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),qg(i=Dg(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),qg(i,"accessibilityManager",new sg),qg(i,"handleLegendBBoxUpdate",function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;i.setState(Fg({legendBBox:t},p({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},Fg(Fg({},i.state),{},{legendBBox:t}))))}}),qg(i,"handleReceiveSyncEvent",function(t,e,r){if(i.props.syncId===t){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}}),qg(i,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState(function(){return Fg({dataStartIndex:e,dataEndIndex:r},p({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))}),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),qg(i,"handleMouseEnter",function(t){var e=i.getMouseInfo(t);if(e){var r=Fg(Fg({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;Ie()(n)&&n(r,t)}}),qg(i,"triggeredAfterMouseMove",function(t){var e=i.getMouseInfo(t),r=e?Fg(Fg({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;Ie()(n)&&n(r,t)}),qg(i,"handleItemMouseEnter",function(t){i.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),qg(i,"handleItemMouseLeave",function(){i.setState(function(){return{isTooltipActive:!1}})}),qg(i,"handleMouseMove",function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)}),qg(i,"handleMouseLeave",function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;Ie()(r)&&r(e,t)}),qg(i,"handleOuterEvent",function(t){var e,r=function(t){var e=t&&t.type;return e&&Kn[e]?Kn[e]:null}(t),n=On()(i.props,"".concat(r));r&&Ie()(n)&&n(null!==(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)}),qg(i,"handleClick",function(t){var e=i.getMouseInfo(t);if(e){var r=Fg(Fg({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;Ie()(n)&&n(r,t)}}),qg(i,"handleMouseDown",function(t){var e=i.props.onMouseDown;Ie()(e)&&e(i.getMouseInfo(t),t)}),qg(i,"handleMouseUp",function(t){var e=i.props.onMouseUp;Ie()(e)&&e(i.getMouseInfo(t),t)}),qg(i,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),qg(i,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])}),qg(i,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])}),qg(i,"handleDoubleClick",function(t){var e=i.props.onDoubleClick;Ie()(e)&&e(i.getMouseInfo(t),t)}),qg(i,"handleContextMenu",function(t){var e=i.props.onContextMenu;Ie()(e)&&e(i.getMouseInfo(t),t)}),qg(i,"triggerSyncEvent",function(t){void 0!==i.props.syncId&&og.emit(ig,i.props.syncId,t,i.eventEmitterSymbol)}),qg(i,"applySyncEvent",function(t){var e=i.props,r=e.layout,n=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,u=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(Fg({dataStartIndex:a,dataEndIndex:u},p({props:i.props,dataStartIndex:a,dataEndIndex:u,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var c=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=Fg(Fg({},h),{},{x:h.left,y:h.top}),m=Math.min(c,v.x+v.width),b=Math.min(l,v.y+v.height),g=d[s]&&d[s].value,w=Gg(i.state,i.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:m,y:"horizontal"===r?b:d[s].coordinate}:Yg;i.setState(Fg(Fg({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)}),qg(i,"renderCursor",function(t){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,u=n.activePayload,c=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:o,h=i.props.layout,d=t.key||"_recharts-cursor";return Z().createElement(Sg,{key:d,activeCoordinate:a,activePayload:u,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:h,offset:c,tooltipAxisBandSize:s,tooltipEventType:f})}),qg(i,"renderPolarAxis",function(t,e,r){var n=On()(t,"type.axisType"),o=On()(i.state,"".concat(n,"Map")),a=t.type.defaultProps,u=void 0!==a?Fg(Fg({},a),t.props):t.props,c=o&&o[u["".concat(n,"Id")]];return(0,G.cloneElement)(t,Fg(Fg({},c),{},{className:Q(n,c.className),key:t.key||"".concat(e,"-").concat(r),ticks:dd(c,!0)}))}),qg(i,"renderPolarGrid",function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=i.state,u=a.radiusAxisMap,c=a.angleAxisMap,l=Nn(u),s=Nn(c),f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius;return(0,G.cloneElement)(t,{polarAngles:Array.isArray(n)?n:dd(s,!0).map(function(t){return t.coordinate}),polarRadius:Array.isArray(o)?o:dd(l,!0).map(function(t){return t.coordinate}),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:r})}),qg(i,"renderLegend",function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,o=e.height,a=i.props.margin||{},u=n-(a.left||0)-(a.right||0),l=td({children:r,formattedGraphicalItems:t,legendWidth:u,legendContent:c});if(!l)return null;var s=l.item,f=Tg(l,kg);return(0,G.cloneElement)(s,Fg(Fg({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))}),qg(i,"renderTooltip",function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,o=Vn(r,Zy);if(!o)return null;var a=i.state,u=a.isTooltipActive,c=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=o.props.active)&&void 0!==t?t:u;return(0,G.cloneElement)(o,{viewBox:Fg(Fg({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:c,accessibilityLayer:n})}),qg(i,"renderBrush",function(t){var e=i.props,r=e.margin,n=e.data,o=i.state,a=o.offset,u=o.dataStartIndex,c=o.dataEndIndex,l=o.updateId;return(0,G.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:vd(i.handleBrushChange,t.props.onChange),data:n,x:An(t.props.x)?t.props.x:a.left,y:An(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:An(t.props.width)?t.props.width:a.width,startIndex:u,endIndex:c,updateId:"brush-".concat(l)})}),qg(i,"renderReferenceElement",function(t,e,r){if(!t)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,u=o.yAxisMap,c=o.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,h=s.yAxisId,d=void 0===h?l.yAxisId:h;return(0,G.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:u[d],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:n})}),qg(i,"renderActivePoints",function(t){var e=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,u=[],c=e.props.key,l=void 0!==e.item.type.defaultProps?Fg(Fg({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=Fg(Fg({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:ld(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Qn(s,!1)),gn(s));return u.push(r.renderActiveDot(s,f,"".concat(c,"-activePoint-").concat(i))),o?u.push(r.renderActiveDot(s,Fg(Fg({},f),{},{cx:o.x,cy:o.y}),"".concat(c,"-basePoint-").concat(i))):a&&u.push(null),u}),qg(i,"renderGraphicChild",function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,u=a.isTooltipActive,c=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Vn(i.props.children,Zy),p=n.props,h=p.points,d=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?Fg(Fg({},n.item.type.defaultProps),n.item.props):n.item.props,m=v.activeDot,b=v.hide,g=v.activeBar,w=v.activeShape,x=Boolean(!b&&u&&f&&(m||g||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:vd(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:vd(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:vd(i.handleItemMouseEnter,t.props.onMouseEnter)});var _=(0,G.cloneElement)(t,Fg(Fg({},n.props),O));if(x){if(!(l>=0)){var j,S=(null!==(j=i.getItemByXY(i.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:_}).graphicalItem,k=S.item,P=void 0===k?t:k,E=S.childIndex,A=Fg(Fg(Fg({},n.props),O),{},{activeIndex:E});return[(0,G.cloneElement)(P,A),null,null]}var M,T;if(c.dataKey&&!c.allowDuplicatedCategory){var C="function"==typeof c.dataKey?function(t){return"function"==typeof c.dataKey?c.dataKey(t.payload):null}:"payload.".concat(c.dataKey.toString());M=Bn(h,C,s),T=d&&y&&Bn(y,C,s)}else M=null==h?void 0:h[l],T=d&&y&&y[l];if(w||g){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[(0,G.cloneElement)(t,Fg(Fg(Fg({},n.props),O),{},{activeIndex:D})),null,null]}if(!ze()(M))return[_].concat(Lg(i.renderActivePoints({item:n,activePoint:M,basePoint:T,childIndex:l,isRange:d})))}return d?[_,null,null]:[_,null]}),qg(i,"renderCustomized",function(t,e,r){return(0,G.cloneElement)(t,Fg(Fg({key:"recharts-customized-".concat(r)},i.props),i.state))}),qg(i,"renderMap",{CartesianGrid:{handler:Hg,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:Hg},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:Hg},YAxis:{handler:Hg},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Cn("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=oy()(i.triggeredAfterMouseMove,null!==(o=t.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bg(t,e)}(r,t),n=r,i=[{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=Vn(e,Zy);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=Gg(this.state,r,a,u),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=Fg(Fg({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,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){to([Vn(t.children,Zy)],[Vn(this.props.children,Zy)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Vn(this.props.children,Zy);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,u=this.inRange(i.chartX,i.chartY,a);if(!u)return null;var c=this.state,l=c.xAxisMap,s=c.yAxisMap,f=this.getTooltipEventType(),p=Zg(this.state,this.props.data,this.props.layout,u);if("axis"!==f&&l&&s){var h=Nn(l).scale,d=Nn(s).scale,y=h&&h.invert?h.invert(i.chartX):null,v=d&&d.invert?d.invert(i.chartY):null;return Fg(Fg({},i),{},{xValue:y,yValue:v},p)}return p?Fg(Fg({},i),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=Nn(c);return vi({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Vn(t,Zy),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),Fg(Fg({},gn(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){og.on(ig,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){og.removeListener(ig,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===$n(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 Z().createElement("defs",null,Z().createElement("clipPath",{id:t},Z().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=Mg(e,2),n=r[0],o=r[1];return Fg(Fg({},t),{},qg({},n,o.scale))},{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=Mg(e,2),n=r[0],o=r[1];return Fg(Fg({},t),{},qg({},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],u=a.props,c=a.item,l=void 0!==c.type.defaultProps?Fg(Fg({},c.type.defaultProps),c.props):c.props,s=$n(c.type);if("Bar"===s){var f=(u.data||[]).find(function(e){return av(t,e)});if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(u.data||[]).find(function(e){return vi(t,e)});if(p)return{graphicalItem:a,payload:p}}else if(fm(a,n)||pm(a,n)||hm(a,n)){var h=mm({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),d=void 0===l.activeIndex?h:l.activeIndex;return{graphicalItem:Fg(Fg({},a),{},{childIndex:d}),payload:hm(a,n)?l.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Gn(this))return null;var e,r,n=this.props,o=n.children,i=n.className,a=n.width,u=n.height,c=n.style,l=n.compact,s=n.title,f=n.desc,p=Tg(n,Pg),h=Qn(p,!1);if(l)return Z().createElement(_b,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z().createElement(sh,Ag({},h,{width:a,height:u,title:s,desc:f}),this.renderClipPath(),ro(o,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,h.role=null!==(r=this.props.role)&&void 0!==r?r:"application",h.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},h.onFocus=function(){t.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return Z().createElement(_b,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z().createElement("div",Ag({className:Q("recharts-wrapper",i),style:Fg({position:"relative",cursor:"default",width:a,height:u},c)},d,{ref:function(e){t.container=e}}),Z().createElement(sh,Ag({},h,{width:a,height:u,title:s,desc:f,style:Wg}),this.renderClipPath(),ro(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&Cg(n.prototype,i),u&&Cg(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,u}(G.Component);qg(h,"displayName",e),qg(h,"defaultProps",Fg({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),qg(h,"getDerivedStateFromProps",function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,u=t.layout,c=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var h=tw(t);return Fg(Fg(Fg({},h),{},{updateId:0},p(Fg(Fg({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||u!==e.prevLayout||c!==e.prevStackOffset||!Rn(l,e.prevMargin)){var d=tw(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=Fg(Fg({},Zg(e,n,u)),{},{updateId:e.updateId+1}),m=Fg(Fg(Fg({},d),y),v);return Fg(Fg(Fg({},m),p(Fg({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!to(o,e.prevChildren)){var b,g,w,x,O=Vn(o,kv),_=O&&null!==(b=null===(g=O.props)||void 0===g?void 0:g.startIndex)&&void 0!==b?b:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,S=_!==s||j!==f,k=!ze()(n)&&!S?e.updateId:e.updateId+1;return Fg(Fg({updateId:k},p(Fg(Fg({props:t},e),{},{updateId:k,dataStartIndex:_,dataEndIndex:j}),e)),{},{prevChildren:o,dataStartIndex:_,dataEndIndex:j})}return null}),qg(h,"renderActiveDot",function(t,e,r){var n;return n=(0,G.isValidElement)(t)?(0,G.cloneElement)(t,e):Ie()(t)?t(e):Z().createElement(vo,e),Z().createElement(wo,{className:"recharts-active-dot",key:r},n)});var d=(0,G.forwardRef)(function(t,e){return Z().createElement(h,Ag({},t,{ref:e}))});return d.displayName=h.displayName,d}({chartName:"AreaChart",GraphicalChild:ry,axisComponents:[{axisType:"xAxis",AxisComp:Rw},{axisType:"yAxis",AxisComp:Vw}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,l=t.children,s=Object.keys(e),f={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},p=!!Vn(l,qm);return s.reduce(function(i,a){var l,s,h,d,y,v=e[a],m=v.orientation,b=v.domain,g=v.padding,w=void 0===g?{}:g,x=v.mirror,O=v.reversed,_="".concat(m).concat(x?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var j=b[1]-b[0],S=1/0,k=v.categoricalDomain.sort(Ln);if(k.forEach(function(t,e){e>0&&(S=Math.min((t||0)-(k[e-1]||0),S))}),Number.isFinite(S)){var P=S/j,E="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=P*E/2),"no-gap"===v.padding){var A=Dn(t.barCategoryGap,P*E),M=P*E/2;l=M-A-(M-A)/E*A}}}s="xAxis"===n?[r.left+(w.left||0)+(l||0),r.left+r.width-(w.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(l||0),r.top+r.height-(w.bottom||0)-(l||0)]:v.range,O&&(s=[s[1],s[0]]);var T=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:rf(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:mf(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:of(),realScaleType:"point"}:"category"===o?{scale:rf(),realScaleType:"band"}:{scale:mf(),realScaleType:"linear"};if(jn()(n)){var c="scale".concat(fn()(n));return{scale:(u[c]||of)(),realScaleType:u[c]?c:"point"}}return Ie()(n)?{scale:n}:{scale:of(),realScaleType:"point"}}(v,o,p),C=T.scale,D=T.realScaleType;C.domain(b).range(s),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])-md,i=Math.max(n[0],n[1])+md,a=t(e[0]),u=t(e[r-1]);(a<o||a>i||u<o||u>i)&&t.domain([e[0],e[r-1]])}}(C);var N=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,u=r||e.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var c=t.domain();if(!c.length)return null;var l=qp(c,o,a);return t.domain([lp()(l),Le()(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Kp(s,o,a)}}return null}(C,Ym(Ym({},v),{},{realScaleType:D}));"xAxis"===n?(y="top"===m&&!x||"bottom"===m&&x,h=r.left,d=f[_]-y*v.height):"yAxis"===n&&(y="left"===m&&!x||"right"===m&&x,h=f[_]-y*v.width,d=r.top);var I=Ym(Ym(Ym({},v),N),{},{realScaleType:D,x:h,y:d,scale:C,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return I.bandSize=kd(I,N),v.hide||"xAxis"!==n?v.hide||(f[_]+=(y?-1:1)*I.width):f[_]+=(y?-1:1)*I.height,Ym(Ym({},i),{},Hm({},a,I))},{})}}),Zw=["x1","y1","x2","y2","key"],Jw=["offset"];function Qw(t){return Qw="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},Qw(t)}function tx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ex(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tx(Object(r),!0).forEach(function(e){rx(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function rx(t,e,r){var n;return n=function(t,e){if("object"!=Qw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Qw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Qw(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nx(){return nx=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},nx.apply(this,arguments)}function ox(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var ix=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,o=t.y,i=t.width,a=t.height,u=t.ry;return Z().createElement("rect",{x:n,y:o,ry:u,width:i,height:a,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function ax(t,e){var r;if(Z().isValidElement(t))r=Z().cloneElement(t,e);else if(Ie()(t))r=t(e);else{var n=e.x1,o=e.y1,i=e.x2,a=e.y2,u=e.key,c=ox(e,Zw),l=Qn(c,!1),s=(l.offset,ox(l,Jw));r=Z().createElement("line",nx({},s,{x1:n,y1:o,x2:i,y2:a,fill:"none",key:u}))}return r}function ux(t){var e=t.x,r=t.width,n=t.horizontal,o=void 0===n||n,i=t.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(n,i){var a=ex(ex({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(i),index:i});return ax(o,a)});return Z().createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function cx(t){var e=t.y,r=t.height,n=t.vertical,o=void 0===n||n,i=t.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(n,i){var a=ex(ex({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(i),index:i});return ax(o,a)});return Z().createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function lx(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,o=t.y,i=t.width,a=t.height,u=t.horizontalPoints,c=t.horizontal;if(!(void 0===c||c)||!e||!e.length)return null;var l=u.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==l[0]&&l.unshift(0);var s=l.map(function(t,u){var c=!l[u+1]?o+a-t:l[u+1]-t;if(c<=0)return null;var s=u%e.length;return Z().createElement("rect",{key:"react-".concat(u),y:t,x:n,height:c,width:i,stroke:"none",fill:e[s],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Z().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}function sx(t){var e=t.vertical,r=void 0===e||e,n=t.verticalFill,o=t.fillOpacity,i=t.x,a=t.y,u=t.width,c=t.height,l=t.verticalPoints;if(!r||!n||!n.length)return null;var s=l.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var f=s.map(function(t,e){var r=!s[e+1]?i+u-t:s[e+1]-t;if(r<=0)return null;var l=e%n.length;return Z().createElement("rect",{key:"react-".concat(e),x:t,y:a,width:r,height:c,stroke:"none",fill:n[l],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return Z().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var fx=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return hd(fw(ex(ex(ex({},Pw.defaultProps),r),{},{ticks:dd(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},px=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return hd(fw(ex(ex(ex({},Pw.defaultProps),r),{},{ticks:dd(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},hx={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function dx(t){var e,r,n,o,i,a,u,c,l=kb(),s=Pb(),f=(0,G.useContext)(gb),p=ex(ex({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:hx.stroke,fill:null!==(r=t.fill)&&void 0!==r?r:hx.fill,horizontal:null!==(n=t.horizontal)&&void 0!==n?n:hx.horizontal,horizontalFill:null!==(o=t.horizontalFill)&&void 0!==o?o:hx.horizontalFill,vertical:null!==(i=t.vertical)&&void 0!==i?i:hx.vertical,verticalFill:null!==(a=t.verticalFill)&&void 0!==a?a:hx.verticalFill,x:An(t.x)?t.x:f.left,y:An(t.y)?t.y:f.top,width:An(t.width)?t.width:f.width,height:An(t.height)?t.height:f.height}),h=p.x,d=p.y,y=p.width,v=p.height,m=p.syncWithTicks,b=p.horizontalValues,g=p.verticalValues,w=(u=(0,G.useContext)(vb),Nn(u)),x=(c=(0,G.useContext)(mb),hb()(c,function(t){return Tv()(t.domain,Number.isFinite)})||Nn(c));if(!An(y)||y<=0||!An(v)||v<=0||!An(h)||h!==+h||!An(d)||d!==+d)return null;var O=p.verticalCoordinatesGenerator||fx,_=p.horizontalCoordinatesGenerator||px,j=p.horizontalPoints,S=p.verticalPoints;if((!j||!j.length)&&Ie()(_)){var k=b&&b.length,P=_({yAxis:x?ex(ex({},x),{},{ticks:k?b:x.ticks}):void 0,width:l,height:s,offset:f},!!k||m);ah(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Qw(P),"]")),Array.isArray(P)&&(j=P)}if((!S||!S.length)&&Ie()(O)){var E=g&&g.length,A=O({xAxis:w?ex(ex({},w),{},{ticks:E?g:w.ticks}):void 0,width:l,height:s,offset:f},!!E||m);ah(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Qw(A),"]")),Array.isArray(A)&&(S=A)}return Z().createElement("g",{className:"recharts-cartesian-grid"},Z().createElement(ix,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),Z().createElement(ux,nx({},p,{offset:f,horizontalPoints:j,xAxis:w,yAxis:x})),Z().createElement(cx,nx({},p,{offset:f,verticalPoints:S,xAxis:w,yAxis:x})),Z().createElement(lx,nx({},p,{horizontalPoints:j})),Z().createElement(sx,nx({},p,{verticalPoints:S})))}dx.displayName="CartesianGrid";var yx=[{value:"",label:(0,$.__)("Worldwide","rank-math-pro")},{value:"AR",label:(0,$.__)("Argentina","rank-math-pro")},{value:"AU",label:(0,$.__)("Australia","rank-math-pro")},{value:"AT",label:(0,$.__)("Austria","rank-math-pro")},{value:"BE",label:(0,$.__)("Belgium","rank-math-pro")},{value:"BR",label:(0,$.__)("Brazil","rank-math-pro")},{value:"CA",label:(0,$.__)("Canada","rank-math-pro")},{value:"CL",label:(0,$.__)("Chile","rank-math-pro")},{value:"CO",label:(0,$.__)("Colombia","rank-math-pro")},{value:"CZ",label:(0,$.__)("Czechia","rank-math-pro")},{value:"DK",label:(0,$.__)("Denmark","rank-math-pro")},{value:"EG",label:(0,$.__)("Egypt","rank-math-pro")},{value:"FI",label:(0,$.__)("Finland","rank-math-pro")},{value:"FR",label:(0,$.__)("France","rank-math-pro")},{value:"DE",label:(0,$.__)("Germany","rank-math-pro")},{value:"GR",label:(0,$.__)("Greece","rank-math-pro")},{value:"HK",label:(0,$.__)("Hong Kong","rank-math-pro")},{value:"HU",label:(0,$.__)("Hungary","rank-math-pro")},{value:"IN",label:(0,$.__)("India","rank-math-pro")},{value:"ID",label:(0,$.__)("Indonesia","rank-math-pro")},{value:"IE",label:(0,$.__)("Ireland","rank-math-pro")},{value:"IL",label:(0,$.__)("Israel","rank-math-pro")},{value:"IT",label:(0,$.__)("Italy","rank-math-pro")},{value:"JP",label:(0,$.__)("Japan","rank-math-pro")},{value:"KE",label:(0,$.__)("Kenya","rank-math-pro")},{value:"MY",label:(0,$.__)("Malaysia","rank-math-pro")},{value:"MX",label:(0,$.__)("Mexico","rank-math-pro")},{value:"NL",label:(0,$.__)("Netherlands","rank-math-pro")},{value:"NZ",label:(0,$.__)("New Zealand","rank-math-pro")},{value:"NG",label:(0,$.__)("Nigeria","rank-math-pro")},{value:"NO",label:(0,$.__)("Norway","rank-math-pro")},{value:"PH",label:(0,$.__)("Philippines","rank-math-pro")},{value:"PL",label:(0,$.__)("Poland","rank-math-pro")},{value:"PT",label:(0,$.__)("Portugal","rank-math-pro")},{value:"RO",label:(0,$.__)("Romania","rank-math-pro")},{value:"RU",label:(0,$.__)("Russia","rank-math-pro")},{value:"SA",label:(0,$.__)("Saudi Arabia","rank-math-pro")},{value:"SG",label:(0,$.__)("Singapore","rank-math-pro")},{value:"ZA",label:(0,$.__)("South Africa","rank-math-pro")},{value:"KR",label:(0,$.__)("South Korea","rank-math-pro")},{value:"SE",label:(0,$.__)("Sweden","rank-math-pro")},{value:"CH",label:(0,$.__)("Switzerland","rank-math-pro")},{value:"TW",label:(0,$.__)("Taiwan","rank-math-pro")},{value:"TH",label:(0,$.__)("Thailand","rank-math-pro")},{value:"TR",label:(0,$.__)("Turkey","rank-math-pro")},{value:"UA",label:(0,$.__)("Ukraine","rank-math-pro")},{value:"GB",label:(0,$.__)("United Kingdom","rank-math-pro")},{value:"US",label:(0,$.__)("United States","rank-math-pro")},{value:"VN",label:(0,$.__)("Vietnam","rank-math-pro")}],vx=[{value:"7d",label:(0,$.__)("Past 7 days","rank-math-pro")},{value:"1m",label:(0,$.__)("Past 30 days","rank-math-pro")},{value:"3m",label:(0,$.__)("Past 90 days","rank-math-pro")},{value:"12m",label:(0,$.__)("Past 12 months","rank-math-pro")}];const mx=function(t){var e=t.width,r=t.height,n=t.x,o=t.y,i=t.dy,a=t.payload,u=t.index,c=t.visibleTicksCount,l=t.isFormat,s=void 0===l||l,f="middle";return 0===u&&(f="start"),u===c-1&&(f="end"),wp.element.createElement("g",{className:"recharts-layer recharts-cartesian-axis-tick"},wp.element.createElement("text",{width:e,height:r,x:n,y:o,stroke:"none",fill:"#7f868d",fontSize:"14",textAnchor:f},wp.element.createElement("tspan",{x:n,dy:i},s?V()(a.value).format("D MMM, YYYY"):a.value)))};function bx(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return gx(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)?gx(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 gx(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}function wx(t){return wx="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},wx(t)}var xx=["#2196f3","#f44336","#ffca28","#43a047","#9c27b0"];const Ox=(0,c.withSelect)(function(t){return{isRefreshing:t("rank-math-pro").isRefreshingTrendKeywords(),keywords:t("rank-math-pro").getTrendKeywords()}})(function(t){var e=t.isRefreshing,r=t.keywords,n=bx((0,H.useState)(""),2),o=n[0],i=n[1],a=bx((0,H.useState)("1m"),2),u=a[0],c=a[1],l=bx((0,H.useState)(!1),2),f=l[0],p=l[1],h=function(t){var e=V()().format("YYYY-MM-DD"),r=parseInt(t),n=V()();return t.includes("d")?n=n.subtract(r,"days").format("YYYY-MM-DD"):t.includes("m")&&(n=n.subtract(r,"months").format("YYYY-MM-DD")),[e,n]}(u),d=bx(h,2),y=d[0],v=d[1],m=(0,$.__)("Please set the Focus Keyword for this page.","rank-math-pro");(0,s.isEmpty)(r)||(m=(0,$.__)("Loading…","rank-math-pro")),(0,H.useEffect)(function(){if((0,s.isEmpty)(r))p(!1);else{var t=[],e=[];(0,s.map)(r,function(r,n){r&&(t.push(n),e.push(encodeURIComponent(n)))});var n=(0,$.sprintf)("https://api.rankmath.com/trends/v1/?%1$s&date_start=%3$s&date_end=%4$s&country=%2$s","keyword[]="+e.join("&keyword[]="),o,v,y);p(!1),fetch(n,{method:"GET"}).then(function(t){return t.json()}).then(function(e){var r=(0,s.get)(e,"default.timelineData",!1);if(m="",(0,s.isEmpty)(r))return m=(0,$.__)("No data found.","rank-math-pro"),void p([]);p(function(t,e){return(0,s.map)(t,function(t){var r=t.formattedTime;-1!==r.indexOf("–")&&(r=t.formattedAxisTime);var n={formattedTime:r};return(0,s.map)(e,function(e,r){n[e]=t.value[r]}),n})}(r,t))})}},[e,u,o]);var b=[];if(!(0,s.isEmpty)(f)){var g=f.length;b=[f[0].formattedTime,f[Math.round(g/2-g/25)].formattedTime,f[g-1].formattedTime]}return wp.element.createElement(H.Fragment,null,wp.element.createElement("div",{className:"trend-graph-attribute-row"},wp.element.createElement(W.SelectControl,{value:o,onChange:i,options:yx,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),wp.element.createElement(W.SelectControl,{value:u,onChange:c,options:vx,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),function(t,e,r){return(0,s.isEmpty)(e)?"object"!==wx(e)||e.length||r!==(0,$.__)("Loading…","rank-math-pro")?""!==r?wp.element.createElement("div",{className:"trends-error"},r):null:wp.element.createElement("div",{className:"trends-error"},(0,$.__)("No data found.","rank-math-pro")):null}(0,f,m),wp.element.createElement("div",{className:"rank-math-graph main-graph single-stats-graph"},!(0,s.isEmpty)(f)&&wp.element.createElement(fy,null,wp.element.createElement(Gw,{data:f,margin:{top:5,right:30,left:0,bottom:5}},wp.element.createElement(dx,{stroke:"#f2f2f2",vertical:!1}),wp.element.createElement(Rw,{dy:15,dataKey:"formattedTime",textAnchor:"middle",interval:"preserveStartEnd",tickLine:!1,axisLine:{stroke:"rgba(0, 0, 0, 0.15)"},ticks:b,tick:wp.element.createElement(mx,{isFormat:!1})}),wp.element.createElement(Vw,{dx:-10,axisLine:!1,tickLine:!1,tick:{fill:"#7f868d",fontSize:14}}),wp.element.createElement(Zy,{wrapperStyle:{zIndex:10},wrapperClassName:"rank-math-graph-tooltip",labelFormatter:function(t){return V()(t).format("D MMM, YYYY")},formatter:function(t){return[t,(0,$.__)("Interest","rank-math-pro")]}}),function(t){var e=-1;return(0,s.map)(t,function(t,r){return e++,wp.element.createElement("defs",{key:r+"Def"},wp.element.createElement("linearGradient",{id:"colorValue".concat(e),x1:"0",y1:"0",x2:"0",y2:"1"},wp.element.createElement("stop",{offset:"5%",stopColor:xx[e],stopOpacity:.3}),wp.element.createElement("stop",{offset:"95%",stopColor:xx[e],stopOpacity:0})))})}(r),function(t){var e=-1;return(0,s.map)(t,function(t,r){return e++,t?wp.element.createElement(ry,{key:r+"Area",type:"monotone",dataKey:r,strokeWidth:2,stroke:xx[e],fill:"url(#colorValue".concat(e,")"),fillOpacity:.9}):null})}(r)))))});const _x=(0,wp.compose.compose)((0,c.withSelect)(function(t){return{refresh:Date.now(),keywords:t("rank-math-pro").getTrendKeywords()}}),(0,c.withDispatch)(function(t){return{toggleKeyword:function(e){t("rank-math-pro").toggleTrendKeyword(e),t("rank-math-pro").refreshTrendKeywords()},removeKeyword:function(e){t("rank-math-pro").removeTrendKeyword(e),t("rank-math-pro").refreshTrendKeywords()}}}))(function(t){var e=t.keywords,r=t.removeKeyword,n=t.toggleKeyword;if((0,s.isEmpty)(e))return(0,$.__)("No Keywords Selected","rank-math-pro");for(var o=(0,s.keys)(e).slice(0,5),i={},a=0;a<o.length;a++)i[o[a]]=e[o[a]];return wp.element.createElement("ul",{className:"trends-tool-keywords-list"},(0,s.map)(i,function(t,e){var o="compare-keyword-bar";return t&&(o+=" selected"),wp.element.createElement("li",{key:e,className:o},wp.element.createElement(W.CheckboxControl,{className:"compare-keyword-checkbox",checked:t,onChange:function(){return n(e)},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),wp.element.createElement("span",{className:"compare-keyword"},e),wp.element.createElement("button",{className:"remove-keyword",onClick:function(){return r(e)}},wp.element.createElement(W.Dashicon,{icon:"no",size:"16"})))}))}),jx=jQuery;var Sx=r.n(jx);function kx(t){return kx="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},kx(t)}function Px(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,Ex(n.key),n)}}function Ex(t){var e=function(t,e){if("object"!=kx(t)||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var n=r.call(t,e||"default");if("object"!=kx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kx(e)?e:e+""}function Ax(t,e,r){return e=Tx(e),function(t,e){if(e&&("object"==kx(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,Mx()?Reflect.construct(e,r||[],Tx(t).constructor):e.apply(t,r))}function Mx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Mx=function(){return!!t})()}function Tx(t){return Tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tx(t)}function Cx(t,e){return Cx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cx(t,e)}var Dx=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=Ax(this,e,[].concat(n))).keyword="",t.input=null,t.addKeyword=function(){""!==t.keyword&&((0,c.dispatch)("rank-math-pro").addTrendKeyword(t.keyword),(0,c.dispatch)("rank-math-pro").refreshTrendKeywords(),t.keyword="",t.input.value="")},t}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&&Cx(t,e)}(e,t),r=e,n=[{key:"componentDidMount",value:function(){rankMath.isUserRegistered&&(this.input=this.node.querySelector(".components-text-control__input"),Sx()(this.input).autocomplete(this.getAutocompleteOptions()))}},{key:"componentWillUnmount",value:function(){rankMath.isUserRegistered&&Sx()(this.input).autocomplete("destroy")}},{key:"getAutocompleteOptions",value:function(){var t=this;return{classes:{"ui-autocomplete":"ui-autocomplete rank-math-ui-autocomplete"},minLength:2,source:function(t,e){Sx().ajax({url:rankMath.keywordsApi.url,data:{keyword:t.term,locale:rankMath.locale},success:function(t){e(Sx().map(t,function(t){return{value:Sx()("<span>").html(t).text()}}))}})},select:function(e,r){return t.keyword=r.item.value,t.addKeyword(),t.closeSuggestionsDropdown(),!1}}}},{key:"closeSuggestionsDropdown",value:function(){var t=this.node.querySelector(".components-text-control__input");Sx()(t).autocomplete("close")}},{key:"render",value:function(){var t=this;return wp.element.createElement("div",{className:"keyword-field-wrapper",ref:function(e){return t.node=e}},wp.element.createElement(W.TextControl,{label:(0,$.__)("Keywords","rank-math-pro"),placeholder:(0,$.__)("Enter Keyword","rank-math-pro"),className:"keyword-field",onChange:function(e){return t.keyword=e},onKeyPress:function(e){13===e.charCode&&(t.addKeyword(),t.closeSuggestionsDropdown())},disabled:this.props.disabled,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),wp.element.createElement(W.Button,{isPrimary:!0,className:"add-keyword",onClick:this.addKeyword,disabled:this.props.disabled},wp.element.createElement(W.Dashicon,{icon:"plus",size:"14"}),(0,$.__)("Add","rank-math-pro")))}}],n&&Px(r.prototype,n),o&&Px(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(H.Component);const Nx=Dx;function Ix(t){return Ix="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},Ix(t)}function Bx(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 Lx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bx(Object(r),!0).forEach(function(e){Rx(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Rx(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=Ix(t)||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var n=r.call(t,e||"default");if("object"!=Ix(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ix(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const zx=(0,c.withSelect)(function(t,e){return Lx(Lx({},e),{},{refresh:Date.now(),keywords:t("rank-math-pro").getTrendKeywords()})})(function(t){var e=t.toggleModal,r=t.keywords;return wp.element.createElement("div",{className:"trends-tool-frame-sidebar-inner"},wp.element.createElement(Nx,{disabled:Object.keys(r).length>=5}),wp.element.createElement("div",{className:"trends-tool-keywords clear"},wp.element.createElement(_x,null)),wp.element.createElement(W.Button,{className:"button use-these-keywords",isPrimary:!0,onClick:function(){var t=[];(0,s.map)(r,function(e,r){e&&t.push(r)}),t=t.join(",");var n=(0,s.get)(window.rankMathEditor,"focusKeywordField.tagifyField.current.tagify",(0,s.get)(rankMathEditor,"components.focusKeywords.tagify",!1));!1!==n&&(n.removeAllTags(),n.addTags(t)),(0,c.dispatch)("rank-math").updateKeywords(t),e(!1),(0,c.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,$.__)("Close & use selected keywords","rank-math-pro")),wp.element.createElement(W.Button,{className:"button-link close-popup",isSecondary:!0,onClick:function(){e(!1),(0,c.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,$.__)("Cancel","rank-math-pro")))});function Ux(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Fx(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)?Fx(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 Fx(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 qx=function(){var t=Ux((0,H.useState)(!1),2),e=t[0],r=t[1];return wp.element.createElement(H.Fragment,null,wp.element.createElement(W.Button,{id:"rank-math-compare-keywords-trigger",isSecondary:!0,className:"button rank-math-trends-tool-button rank-math-compare-keywords-trigger",onClick:function(){return r(!0)}},wp.element.createElement("span",{className:"button-icon",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon}})),e&&wp.element.createElement(W.Modal,{title:(0,$.__)("Google Trends","rank-math-pro"),closeButtonLabel:(0,$.__)("Close","rank-math-pro"),shouldCloseOnClickOutside:!1,onRequestClose:function(){r(!1),(0,c.dispatch)("rank-math-pro").clearTrendKeywords()},className:"rank-math-modal rank-math-modal-trends-tool",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"rank-math-grid"},wp.element.createElement("div",{className:"trends-tool-frame-sidebar"},wp.element.createElement(zx,{toggleModal:r})),wp.element.createElement("div",{className:"trends-tool-frame-content"},wp.element.createElement(Ox,null)))))};var Kx=r(7150),$x=r.n(Kx);const Wx=wp.apiFetch;var Yx=r.n(Wx);const Hx=function(){if(rankMath.showKeywordIntent){var t=rankMath.searchIntents,e=function(t){t=(0,s.toLower)(t);var e={"":{icon:"bulb-1",text:(0,$.__)("Show Intent","rank-math-pro")},commercial:{icon:"bank-3",text:(0,$.__)("Commercial","rank-math-pro")},informational:{icon:"info-circle",text:(0,$.__)("Informational","rank-math-pro")},navigational:{icon:"map-marker-11",text:(0,$.__)("Navigational","rank-math-pro")},transactional:{icon:"wallet-1-dollar",text:(0,$.__)("Transactional","rank-math-pro")}};return'\n\t\t\t<button id="rank-math-get-keyword-intent" class="rank-math-keyword-intent-wrapper is-'.concat(t||"show-intent",'" ').concat((0,s.isEmpty)(t)?"":'disabled="disabled"',">\n\t\t\t\t<span class='icon rm-icon-").concat(e[t].icon,'\'></span>\n\t\t\t\t<span class="intent">').concat(e[t].text,"</span>\n\t\t\t</button>\n\t\t")};(0,l.addAction)("rank_math_data_changed","rank-math-pro",function(r){if("keywords"===r){var n=rankMathEditor.getPrimaryKeyword();setTimeout(function(){if(n!==rankMathEditor.getPrimaryKeyword()){Sx()(".rank-math-keyword-intent-container").remove(),n=(0,s.toLower)(rankMathEditor.getPrimaryKeyword());var r=(0,s.isEmpty)(t[n])?e(""):e(t[n]);Sx()(".rank-math-focus-keyword").find('tag[data-value="'+n+'"]').append('<span class="rank-math-keyword-intent-container">'.concat(r,"</span>"))}},200)}}),(0,l.addFilter)("rank_math_after_focus_keyword","rank-math-pro",function(r,n){var o=(0,s.toLower)(rankMathEditor.getPrimaryKeyword());return(0,s.toLower)(n)!==o||!o||(0,s.isEmpty)(t)||(0,s.isEmpty)(t[o])?r:'<span class="rank-math-keyword-intent-container">\n\t\t\t\t\t'.concat(e(t[o]),"\n\t\t\t\t</span>")}),Sx()(document).on("click","#rank-math-get-keyword-intent",function(r){r.preventDefault(),Sx()(".rank-math-keyword-intent-container").addClass("is-loading");var n=rankMathEditor.getPrimaryKeyword();return Yx()({method:"POST",path:"rankmath/v1/searchIntent",data:{keyword:n}}).then(function(r){r.success?(t[n]=r.keyword,Sx()(".rank-math-keyword-intent-container").html(e(r.keyword))):alert(r.message)}).finally(function(){Sx()(".rank-math-keyword-intent-container").removeClass("is-loading")}),!1})}};function Xx(){(0,l.addAction)("rank_math_tagify_init","rank-math-pro",function(t){return new($x())(t.tagify.DOM.scope,{selector:".tagify__tag",callbacks:{dragEnd:t.props.settings.callbacks.dragEnd}})}),(0,l.addFilter)("rank_math_focus_keyword_settings","rank-math-pro",function(t,e){return t.callbacks.dragEnd=function(){e.tagifyField.current.tagify.updateValueByDOMTags(),e.updateKeywords(),e.selectFirstKeyword()},t}),Hx()}r.dn(Hx),r.dn(Xx),(0,l.addAction)("rank_math_loaded","rank-math-pro",function(){if(void 0!==(0,c.select)("rank-math-pro")||(0,c.registerStore)("rank-math-pro",{reducer:(0,c.combineReducers)(i),selectors:a,actions:o}),(0,c.dispatch)("rank-math").setVersion(),rankMath.isUserRegistered){var t=rankMathEditor.slots.AfterFocusKeyword;(0,l.addFilter)("rankMath.diviAppModal","rank-math-pro",function(e){return function(r){return wp.element.createElement(React.Fragment,null,wp.element.createElement(t,{className:"trends-tool-button"},wp.element.createElement(qx,null)),wp.element.createElement(e,r))}})}(0,l.addFilter)("rankMath.analytics.reportButton","rank-math-pro",function(){return Y}),Xx()})})()})();
Save File
Cancel