@moderneinc/react-charts 1.2.0-next.e5d8ee → 1.2.0-next.e6432a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,42 +1,42 @@
1
- "use strict";var DM=Object.defineProperty;var RM=(e,t,r)=>t in e?DM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var co=(e,t,r)=>RM(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),V=require("@mui/material"),O=require("react"),lA=require("@mui/icons-material");function IM(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Pr=IM(O);function NM(e){return e}var Dc=1,Rc=2,ym=3,To=4,nb=1e-6;function LM(e){return"translate("+e+",0)"}function BM(e){return"translate(0,"+e+")"}function qM(e){return t=>+e(t)}function FM(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function zM(){return!this.__axis}function cA(e,t){var r=[],n=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=e===Dc||e===To?-1:1,c=e===To||e===Rc?"x":"y",f=e===Dc||e===ym?LM:BM;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):NM),d=Math.max(a,0)+s,g=t.range(),_=+g[0]+u,b=+g[g.length-1]+u,x=(t.bandwidth?FM:qM)(t.copy(),u),v=p.selection?p.selection():p,w=v.selectAll(".domain").data([null]),S=v.selectAll(".tick").data(y,t).order(),A=S.exit(),P=S.enter().append("g").attr("class","tick"),C=S.select("line"),T=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(P),C=C.merge(P.append("line").attr("stroke","currentColor").attr(c+"2",l*a)),T=T.merge(P.append("text").attr("fill","currentColor").attr(c,l*d).attr("dy",e===Dc?"0em":e===ym?"0.71em":"0.32em")),p!==v&&(w=w.transition(p),S=S.transition(p),C=C.transition(p),T=T.transition(p),A=A.transition(p).attr("opacity",nb).attr("transform",function(E){return isFinite(E=x(E))?f(E+u):this.getAttribute("transform")}),P.attr("opacity",nb).attr("transform",function(E){var k=this.parentNode.__axis;return f((k&&isFinite(k=k(E))?k:x(E))+u)})),A.remove(),w.attr("d",e===To||e===Rc?o?"M"+l*o+","+_+"H"+u+"V"+b+"H"+l*o:"M"+u+","+_+"V"+b:o?"M"+_+","+l*o+"V"+u+"H"+b+"V"+l*o:"M"+_+","+u+"H"+b),S.attr("opacity",1).attr("transform",function(E){return f(x(E)+u)}),C.attr(c+"2",l*a),T.attr(c,l*d).text(m),v.filter(zM).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Rc?"start":e===To?"end":"middle"),v.each(function(){this.__axis=x})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),h):r.slice()},h.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),h):n&&n.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=o=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(o=+p,h):o},h.tickPadding=function(p){return arguments.length?(s=+p,h):s},h.offset=function(p){return arguments.length?(u=+p,h):u},h}function Vo(e){return cA(ym,e)}function Zo(e){return cA(To,e)}var UM={value:()=>{}};function yv(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new Pu(r)}function Pu(e){this._=e}function WM(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}Pu.prototype=yv.prototype={constructor:Pu,on:function(e,t){var r=this._,n=WM(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=GM(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=ib(r[i],e.name,t);else if(t==null)for(i in r)r[i]=ib(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Pu(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function GM(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function ib(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=UM,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var vm="http://www.w3.org/1999/xhtml";const ab={svg:"http://www.w3.org/2000/svg",xhtml:vm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gl(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),ab.hasOwnProperty(t)?{space:ab[t],local:e}:e}function HM(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===vm&&t.documentElement.namespaceURI===vm?t.createElement(e):t.createElementNS(r,e)}}function KM(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function fA(e){var t=Gl(e);return(t.local?KM:HM)(t)}function YM(){}function vv(e){return e==null?YM:function(){return this.querySelector(e)}}function XM(e){typeof e!="function"&&(e=vv(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),u,l,c=0;c<o;++c)(u=a[c])&&(l=e.call(u,u.__data__,c,a))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new dr(n,this._parents)}function VM(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ZM(){return[]}function hA(e){return e==null?ZM:function(){return this.querySelectorAll(e)}}function JM(e){return function(){return VM(e.apply(this,arguments))}}function QM(e){typeof e=="function"?e=JM(e):e=hA(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&(n.push(e.call(u,u.__data__,l,o)),i.push(u));return new dr(n,i)}function pA(e){return function(){return this.matches(e)}}function dA(e){return function(t){return t.matches(e)}}var tk=Array.prototype.find;function ek(e){return function(){return tk.call(this.children,e)}}function rk(){return this.firstElementChild}function nk(e){return this.select(e==null?rk:ek(typeof e=="function"?e:dA(e)))}var ik=Array.prototype.filter;function ak(){return Array.from(this.children)}function ok(e){return function(){return ik.call(this.children,e)}}function sk(e){return this.selectAll(e==null?ak:ok(typeof e=="function"?e:dA(e)))}function uk(e){typeof e!="function"&&(e=pA(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new dr(n,this._parents)}function mA(e){return new Array(e.length)}function lk(){return new dr(this._enter||this._groups.map(mA),this._parents)}function ju(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ju.prototype={constructor:ju,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ck(e){return function(){return e}}function fk(e,t,r,n,i,a){for(var o=0,s,u=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new ju(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function hk(e,t,r,n,i,a,o){var s,u,l=new Map,c=t.length,f=a.length,h=new Array(c),p;for(s=0;s<c;++s)(u=t[s])&&(h[s]=p=o.call(u,u.__data__,s,t)+"",l.has(p)?i[s]=u:l.set(p,u));for(s=0;s<f;++s)p=o.call(e,a[s],s,a)+"",(u=l.get(p))?(n[s]=u,u.__data__=a[s],l.delete(p)):r[s]=new ju(e,a[s]);for(s=0;s<c;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}function pk(e){return e.__data__}function dk(e,t){if(!arguments.length)return Array.from(this,pk);var r=t?hk:fk,n=this._parents,i=this._groups;typeof e!="function"&&(e=ck(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var c=n[l],f=i[l],h=f.length,p=mk(e.call(c,c&&c.__data__,l,n)),y=p.length,m=s[l]=new Array(y),d=o[l]=new Array(y),g=u[l]=new Array(h);r(c,f,m,d,g,p,t);for(var _=0,b=0,x,v;_<y;++_)if(x=m[_]){for(_>=b&&(b=_+1);!(v=d[b])&&++b<y;);x._next=v||null}}return o=new dr(o,n),o._enter=s,o._exit=u,o}function mk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function yk(){return new dr(this._exit||this._groups.map(mA),this._parents)}function vk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function gk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var l=r[u],c=n[u],f=l.length,h=s[u]=new Array(f),p,y=0;y<f;++y)(p=l[y]||c[y])&&(h[y]=p);for(;u<i;++u)s[u]=r[u];return new dr(s,this._parents)}function bk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function _k(e){e||(e=xk);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],s=o.length,u=i[a]=new Array(s),l,c=0;c<s;++c)(l=o[c])&&(u[c]=l);u.sort(t)}return new dr(i,this._parents).order()}function xk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function wk(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Sk(){return Array.from(this)}function Ok(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function Ak(){let e=0;for(const t of this)++e;return e}function Pk(){return!this.node()}function Tk(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Ek(e){return function(){this.removeAttribute(e)}}function Ck(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mk(e,t){return function(){this.setAttribute(e,t)}}function kk(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $k(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function jk(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Dk(e,t){var r=Gl(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?Ck:Ek:typeof t=="function"?r.local?jk:$k:r.local?kk:Mk)(r,t))}function yA(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Rk(e){return function(){this.style.removeProperty(e)}}function Ik(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Nk(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function Lk(e,t,r){return arguments.length>1?this.each((t==null?Rk:typeof t=="function"?Nk:Ik)(e,t,r??"")):ya(this.node(),e)}function ya(e,t){return e.style.getPropertyValue(t)||yA(e).getComputedStyle(e,null).getPropertyValue(t)}function Bk(e){return function(){delete this[e]}}function qk(e,t){return function(){this[e]=t}}function Fk(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function zk(e,t){return arguments.length>1?this.each((t==null?Bk:typeof t=="function"?Fk:qk)(e,t)):this.node()[e]}function vA(e){return e.trim().split(/^|\s+/)}function gv(e){return e.classList||new gA(e)}function gA(e){this._node=e,this._names=vA(e.getAttribute("class")||"")}gA.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function bA(e,t){for(var r=gv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function _A(e,t){for(var r=gv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function Uk(e){return function(){bA(this,e)}}function Wk(e){return function(){_A(this,e)}}function Gk(e,t){return function(){(t.apply(this,arguments)?bA:_A)(this,e)}}function Hk(e,t){var r=vA(e+"");if(arguments.length<2){for(var n=gv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?Gk:t?Uk:Wk)(r,t))}function Kk(){this.textContent=""}function Yk(e){return function(){this.textContent=e}}function Xk(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Vk(e){return arguments.length?this.each(e==null?Kk:(typeof e=="function"?Xk:Yk)(e)):this.node().textContent}function Zk(){this.innerHTML=""}function Jk(e){return function(){this.innerHTML=e}}function Qk(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function t$(e){return arguments.length?this.each(e==null?Zk:(typeof e=="function"?Qk:Jk)(e)):this.node().innerHTML}function e$(){this.nextSibling&&this.parentNode.appendChild(this)}function r$(){return this.each(e$)}function n$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function i$(){return this.each(n$)}function a$(e){var t=typeof e=="function"?e:fA(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function o$(){return null}function s$(e,t){var r=typeof e=="function"?e:fA(e),n=t==null?o$:typeof t=="function"?t:vv(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function u$(){var e=this.parentNode;e&&e.removeChild(this)}function l$(){return this.each(u$)}function c$(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function f$(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function h$(e){return this.select(e?f$:c$)}function p$(e){return arguments.length?this.property("__data__",e):this.node().__data__}function d$(e){return function(t){e.call(this,t,this.__data__)}}function m$(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function y$(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function v$(e,t,r){return function(){var n=this.__on,i,a=d$(t);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function g$(e,t,r){var n=m$(e+""),i,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,c;u<l;++u)for(i=0,c=s[u];i<a;++i)if((o=n[i]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?v$:y$,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function xA(e,t,r){var n=yA(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function b$(e,t){return function(){return xA(this,e,t)}}function _$(e,t){return function(){return xA(this,e,t.apply(this,arguments))}}function x$(e,t){return this.each((typeof t=="function"?_$:b$)(e,t))}function*w$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var wA=[null];function dr(e,t){this._groups=e,this._parents=t}function Za(){return new dr([[document.documentElement]],wA)}function S$(){return this}dr.prototype=Za.prototype={constructor:dr,select:XM,selectAll:QM,selectChild:nk,selectChildren:sk,filter:uk,data:dk,enter:lk,exit:yk,join:vk,merge:gk,selection:S$,order:bk,sort:_k,call:wk,nodes:Sk,node:Ok,size:Ak,empty:Pk,each:Tk,attr:Dk,style:Lk,property:zk,classed:Hk,text:Vk,html:t$,raise:r$,lower:i$,append:a$,insert:s$,remove:l$,clone:h$,datum:p$,on:g$,dispatch:x$,[Symbol.iterator]:w$};function Qt(e){return typeof e=="string"?new dr([[document.querySelector(e)]],[document.documentElement]):new dr([[e]],wA)}function O$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Jo(e,t){if(e=O$(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const gm={capture:!0,passive:!1};function bm(e){e.preventDefault(),e.stopImmediatePropagation()}function A$(e){var t=e.document.documentElement,r=Qt(e).on("dragstart.drag",bm,gm);"onselectstart"in t?r.on("selectstart.drag",bm,gm):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function P$(e,t){var r=e.document.documentElement,n=Qt(e).on("dragstart.drag",null);t&&(n.on("click.drag",bm,gm),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function bv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function SA(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Us(){}var Qo=.7,Du=1/Qo,oa="\\s*([+-]?\\d+)\\s*",ts="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",T$=/^#([0-9a-f]{3,8})$/,E$=new RegExp(`^rgb\\(${oa},${oa},${oa}\\)$`),C$=new RegExp(`^rgb\\(${Jr},${Jr},${Jr}\\)$`),M$=new RegExp(`^rgba\\(${oa},${oa},${oa},${ts}\\)$`),k$=new RegExp(`^rgba\\(${Jr},${Jr},${Jr},${ts}\\)$`),$$=new RegExp(`^hsl\\(${ts},${Jr},${Jr}\\)$`),j$=new RegExp(`^hsla\\(${ts},${Jr},${Jr},${ts}\\)$`),ob={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};bv(Us,Pi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sb,formatHex:sb,formatHex8:D$,formatHsl:R$,formatRgb:ub,toString:ub});function sb(){return this.rgb().formatHex()}function D$(){return this.rgb().formatHex8()}function R$(){return OA(this).formatHsl()}function ub(){return this.rgb().formatRgb()}function Pi(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=T$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?lb(t):r===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?iu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?iu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=E$.exec(e))?new He(t[1],t[2],t[3],1):(t=C$.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=M$.exec(e))?iu(t[1],t[2],t[3],t[4]):(t=k$.exec(e))?iu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$$.exec(e))?hb(t[1],t[2]/100,t[3]/100,1):(t=j$.exec(e))?hb(t[1],t[2]/100,t[3]/100,t[4]):ob.hasOwnProperty(e)?lb(ob[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function lb(e){return new He(e>>16&255,e>>8&255,e&255,1)}function iu(e,t,r,n){return n<=0&&(e=t=r=NaN),new He(e,t,r,n)}function I$(e){return e instanceof Us||(e=Pi(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function _m(e,t,r,n){return arguments.length===1?I$(e):new He(e,t,r,n??1)}function He(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}bv(He,_m,SA(Us,{brighter(e){return e=e==null?Du:Math.pow(Du,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qo:Math.pow(Qo,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(gi(this.r),gi(this.g),gi(this.b),Ru(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cb,formatHex:cb,formatHex8:N$,formatRgb:fb,toString:fb}));function cb(){return`#${ci(this.r)}${ci(this.g)}${ci(this.b)}`}function N$(){return`#${ci(this.r)}${ci(this.g)}${ci(this.b)}${ci((isNaN(this.opacity)?1:this.opacity)*255)}`}function fb(){const e=Ru(this.opacity);return`${e===1?"rgb(":"rgba("}${gi(this.r)}, ${gi(this.g)}, ${gi(this.b)}${e===1?")":`, ${e})`}`}function Ru(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ci(e){return e=gi(e),(e<16?"0":"")+e.toString(16)}function hb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ir(e,t,r,n)}function OA(e){if(e instanceof Ir)return new Ir(e.h,e.s,e.l,e.opacity);if(e instanceof Us||(e=Pi(e)),!e)return new Ir;if(e instanceof Ir)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new Ir(o,s,u,e.opacity)}function L$(e,t,r,n){return arguments.length===1?OA(e):new Ir(e,t,r,n??1)}function Ir(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}bv(Ir,L$,SA(Us,{brighter(e){return e=e==null?Du:Math.pow(Du,e),new Ir(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qo:Math.pow(Qo,e),new Ir(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new He(Ic(e>=240?e-240:e+120,i,n),Ic(e,i,n),Ic(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ir(pb(this.h),au(this.s),au(this.l),Ru(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ru(this.opacity);return`${e===1?"hsl(":"hsla("}${pb(this.h)}, ${au(this.s)*100}%, ${au(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pb(e){return e=(e||0)%360,e<0?e+360:e}function au(e){return Math.max(0,Math.min(1,e||0))}function Ic(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const _v=e=>()=>e;function B$(e,t){return function(r){return e+r*t}}function q$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function F$(e){return(e=+e)==1?AA:function(t,r){return r-t?q$(t,r,e):_v(isNaN(t)?r:t)}}function AA(e,t){var r=t-e;return r?B$(e,r):_v(isNaN(e)?t:e)}const Iu=(function e(t){var r=F$(t);function n(i,a){var o=r((i=_m(i)).r,(a=_m(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=AA(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return n.gamma=e,n})(1);function z$(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function U$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function W$(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ii(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function G$(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Rr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function H$(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Ii(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var xm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nc=new RegExp(xm.source,"g");function K$(e){return function(){return e}}function Y$(e){return function(t){return e(t)+""}}function PA(e,t){var r=xm.lastIndex=Nc.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=xm.exec(e))&&(i=Nc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Rr(n,i)})),r=Nc.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?Y$(u[0].x):K$(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function Ii(e,t){var r=typeof t,n;return t==null||r==="boolean"?_v(t):(r==="number"?Rr:r==="string"?(n=Pi(t))?(t=n,Iu):PA:t instanceof Pi?Iu:t instanceof Date?G$:U$(t)?z$:Array.isArray(t)?W$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?H$:Rr)(e,t)}function xv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var db=180/Math.PI,wm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function TA(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n<t*r&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*db,skewX:Math.atan(u)*db,scaleX:o,scaleY:s}}var ou;function X$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?wm:TA(t.a,t.b,t.c,t.d,t.e,t.f)}function V$(e){return e==null||(ou||(ou=document.createElementNS("http://www.w3.org/2000/svg","g")),ou.setAttribute("transform",e),!(e=ou.transform.baseVal.consolidate()))?wm:(e=e.matrix,TA(e.a,e.b,e.c,e.d,e.e,e.f))}function EA(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,c,f,h,p,y){if(l!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:Rr(l,f)},{i:m-2,x:Rr(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(l,c,f,h){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Rr(l,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(l,c,f,h){l!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Rr(l,c)}):c&&f.push(i(f)+"skewX("+c+n)}function u(l,c,f,h,p,y){if(l!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:Rr(l,f)},{i:m-2,x:Rr(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),a(l.translateX,l.translateY,c.translateX,c.translateY,f,h),o(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var Z$=EA(X$,"px, ","px)","deg)"),J$=EA(V$,", ",")",")");function Q$(e,t){t===void 0&&(t=e,e=Ii);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}var va=0,Eo=0,fo=0,CA=1e3,Nu,Co,Lu=0,Ti=0,Hl=0,es=typeof performance=="object"&&performance.now?performance:Date,MA=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function wv(){return Ti||(MA(tj),Ti=es.now()+Hl)}function tj(){Ti=0}function Bu(){this._call=this._time=this._next=null}Bu.prototype=kA.prototype={constructor:Bu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?wv():+r)+(t==null?0:+t),!this._next&&Co!==this&&(Co?Co._next=this:Nu=this,Co=this),this._call=e,this._time=r,Sm()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sm())}};function kA(e,t,r){var n=new Bu;return n.restart(e,t,r),n}function ej(){wv(),++va;for(var e=Nu,t;e;)(t=Ti-e._time)>=0&&e._call.call(void 0,t),e=e._next;--va}function mb(){Ti=(Lu=es.now())+Hl,va=Eo=0;try{ej()}finally{va=0,nj(),Ti=0}}function rj(){var e=es.now(),t=e-Lu;t>CA&&(Hl-=t,Lu=e)}function nj(){for(var e,t=Nu,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Nu=r);Co=e,Sm(n)}function Sm(e){if(!va){Eo&&(Eo=clearTimeout(Eo));var t=e-Ti;t>24?(e<1/0&&(Eo=setTimeout(mb,e-es.now()-Hl)),fo&&(fo=clearInterval(fo))):(fo||(Lu=es.now(),fo=setInterval(rj,CA)),va=1,MA(mb))}}function yb(e,t,r){var n=new Bu;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var ij=yv("start","end","cancel","interrupt"),aj=[],$A=0,vb=1,Om=2,Tu=3,gb=4,Am=5,Eu=6;function Kl(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;oj(e,r,{name:t,index:n,group:i,on:ij,tween:aj,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:$A})}function Sv(e,t){var r=Br(e,t);if(r.state>$A)throw new Error("too late; already scheduled");return r}function nn(e,t){var r=Br(e,t);if(r.state>Tu)throw new Error("too late; already running");return r}function Br(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function oj(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=kA(a,0,r.time);function a(l){r.state=vb,r.timer.restart(o,r.delay,r.time),r.delay<=l&&o(l-r.delay)}function o(l){var c,f,h,p;if(r.state!==vb)return u();for(c in n)if(p=n[c],p.name===r.name){if(p.state===Tu)return yb(o);p.state===gb?(p.state=Eu,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=Eu,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(yb(function(){r.state===Tu&&(r.state=gb,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=Om,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Om){for(r.state=Tu,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function s(l){for(var c=l<r.duration?r.ease.call(null,l/r.duration):(r.timer.restart(u),r.state=Am,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===Am&&(r.on.call("end",e,e.__data__,r.index,r.group),u())}function u(){r.state=Eu,r.timer.stop(),delete n[t];for(var l in n)return;delete e.__transition}}function Pm(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>Om&&n.state<Am,n.state=Eu,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function sj(e){return this.each(function(){Pm(this,e)})}function uj(e,t){var r,n;return function(){var i=nn(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function lj(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=nn(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:t,value:r},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}a.tween=i}}function cj(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=Br(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?uj:lj)(r,e,t))}function Ov(e,t,r){var n=e._id;return e.each(function(){var i=nn(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return Br(i,n).value[t]}}function jA(e,t){var r;return(typeof t=="number"?Rr:t instanceof Pi?Iu:(r=Pi(t))?(t=r,Iu):PA)(e,t)}function fj(e){return function(){this.removeAttribute(e)}}function hj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pj(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function dj(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function mj(e,t,r){var n,i,a;return function(){var o,s=r(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,s)))}}function yj(e,t,r){var n,i,a;return function(){var o,s=r(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,s)))}}function vj(e,t){var r=Gl(e),n=r==="transform"?J$:jA;return this.attrTween(e,typeof t=="function"?(r.local?yj:mj)(r,n,Ov(this,"attr."+e,t)):t==null?(r.local?hj:fj)(r):(r.local?dj:pj)(r,n,t))}function gj(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function bj(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function _j(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&bj(e,a)),r}return i._value=t,i}function xj(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&gj(e,a)),r}return i._value=t,i}function wj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=Gl(e);return this.tween(r,(n.local?_j:xj)(n,t))}function Sj(e,t){return function(){Sv(this,e).delay=+t.apply(this,arguments)}}function Oj(e,t){return t=+t,function(){Sv(this,e).delay=t}}function Aj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Sj:Oj)(t,e)):Br(this.node(),t).delay}function Pj(e,t){return function(){nn(this,e).duration=+t.apply(this,arguments)}}function Tj(e,t){return t=+t,function(){nn(this,e).duration=t}}function Ej(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Pj:Tj)(t,e)):Br(this.node(),t).duration}function Cj(e,t){if(typeof t!="function")throw new Error;return function(){nn(this,e).ease=t}}function Mj(e){var t=this._id;return arguments.length?this.each(Cj(t,e)):Br(this.node(),t).ease}function kj(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;nn(this,e).ease=r}}function $j(e){if(typeof e!="function")throw new Error;return this.each(kj(this._id,e))}function jj(e){typeof e!="function"&&(e=pA(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new _n(n,this._parents,this._name,this._id)}function Dj(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var u=t[s],l=r[s],c=u.length,f=o[s]=new Array(c),h,p=0;p<c;++p)(h=u[p]||l[p])&&(f[p]=h);for(;s<n;++s)o[s]=t[s];return new _n(o,this._parents,this._name,this._id)}function Rj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Ij(e,t,r){var n,i,a=Rj(t)?Sv:nn;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function Nj(e,t){var r=this._id;return arguments.length<2?Br(this.node(),r).on.on(e):this.each(Ij(r,e,t))}function Lj(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Bj(){return this.on("end.remove",Lj(this._id))}function qj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=vv(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],u=s.length,l=a[o]=new Array(u),c,f,h=0;h<u;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),l[h]=f,Kl(l[h],t,r,h,l,Br(c,r)));return new _n(a,this._parents,t,r)}function Fj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=hA(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var u=n[s],l=u.length,c,f=0;f<l;++f)if(c=u[f]){for(var h=e.call(c,c.__data__,f,u),p,y=Br(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Kl(p,t,r,m,h,y);a.push(h),o.push(c)}return new _n(a,o,t,r)}var zj=Za.prototype.constructor;function Uj(){return new zj(this._groups,this._parents)}function Wj(e,t){var r,n,i;return function(){var a=ya(this,e),o=(this.style.removeProperty(e),ya(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function DA(e){return function(){this.style.removeProperty(e)}}function Gj(e,t,r){var n,i=r+"",a;return function(){var o=ya(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function Hj(e,t,r){var n,i,a;return function(){var o=ya(this,e),s=r(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),ya(this,e))),o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,s))}}function Kj(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var u=nn(this,e),l=u.on,c=u.value[a]==null?s||(s=DA(t)):void 0;(l!==r||i!==c)&&(n=(r=l).copy()).on(o,i=c),u.on=n}}function Yj(e,t,r){var n=(e+="")=="transform"?Z$:jA;return t==null?this.styleTween(e,Wj(e,n)).on("end.style."+e,DA(e)):typeof t=="function"?this.styleTween(e,Hj(e,n,Ov(this,"style."+e,t))).each(Kj(this._id,e)):this.styleTween(e,Gj(e,n,t),r).on("end.style."+e,null)}function Xj(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Vj(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&Xj(e,o,r)),n}return a._value=t,a}function Zj(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Vj(e,t,r??""))}function Jj(e){return function(){this.textContent=e}}function Qj(e){return function(){var t=e(this);this.textContent=t??""}}function t2(e){return this.tween("text",typeof e=="function"?Qj(Ov(this,"text",e)):Jj(e==null?"":e+""))}function e2(e){return function(t){this.textContent=e.call(this,t)}}function r2(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&e2(i)),t}return n._value=e,n}function n2(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,r2(e))}function i2(){for(var e=this._name,t=this._id,r=RA(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,u,l=0;l<s;++l)if(u=o[l]){var c=Br(u,t);Kl(u,e,r,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new _n(n,this._parents,e,r)}function a2(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};r.each(function(){var l=nn(this,n),c=l.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t}),i===0&&a()})}var o2=0;function _n(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function Av(e){return Za().transition(e)}function RA(){return++o2}var un=Za.prototype;_n.prototype=Av.prototype={constructor:_n,select:qj,selectAll:Fj,selectChild:un.selectChild,selectChildren:un.selectChildren,filter:jj,merge:Dj,selection:Uj,transition:i2,call:un.call,nodes:un.nodes,node:un.node,size:un.size,empty:un.empty,each:un.each,on:Nj,attr:vj,attrTween:wj,style:Yj,styleTween:Zj,text:t2,textTween:n2,remove:Bj,tween:cj,delay:Aj,duration:Ej,ease:Mj,easeVarying:$j,end:a2,[Symbol.iterator]:un[Symbol.iterator]};function s2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var u2={time:null,delay:0,duration:250,ease:s2};function l2(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function c2(e){var t,r;e instanceof _n?(t=e._id,e=e._name):(t=RA(),(r=u2).time=wv(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&Kl(u,e,t,l,o,r||l2(u,t));return new _n(n,this._parents,e,t)}Za.prototype.interrupt=sj;Za.prototype.transition=c2;const Lc=e=>()=>e;function f2(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function h2(e){e.stopImmediatePropagation()}function Bc(e){e.preventDefault(),e.stopImmediatePropagation()}var bb={name:"drag"},qc={name:"space"},Ki={name:"handle"},Yi={name:"center"};const{abs:_b,max:$e,min:je}=Math;function xb(e){return[+e[0],+e[1]]}function wb(e){return[xb(e[0]),xb(e[1])]}var Cu={name:"x",handles:["w","e"].map(Tm),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Fc={},ln={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Sb={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ob={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},p2={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},d2={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Tm(e){return{type:e}}function m2(e){return!e.ctrlKey&&!e.button}function y2(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function v2(){return navigator.maxTouchPoints||"ontouchstart"in this}function zc(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function g2(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Yl(){return b2(Cu)}function b2(e){var t=y2,r=m2,n=v2,i=!0,a=yv("start","brush","end"),o=6,s;function u(d){var g=d.property("__brush",m).selectAll(".overlay").data([Tm("overlay")]);g.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ln.overlay).merge(g).each(function(){var b=zc(this).extent;Qt(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),d.selectAll(".selection").data([Tm("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ln.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var _=d.selectAll(".handle").data(e.handles,function(b){return b.type});_.exit().remove(),_.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return ln[b.type]}),d.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(d,g,_){d.tween?d.on("start.brush",function(b){c(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){c(this,arguments).end(b)}).tween("brush",function(){var b=this,x=b.__brush,v=c(b,arguments),w=x.selection,S=e.input(typeof g=="function"?g.apply(this,arguments):g,x.extent),A=Ii(w,S);function P(C){x.selection=C===1&&S===null?null:A(C),l.call(b),v.brush()}return w!==null&&S!==null?P:P(1)}):d.each(function(){var b=this,x=arguments,v=b.__brush,w=e.input(typeof g=="function"?g.apply(b,x):g,v.extent),S=c(b,x).beforestart();Pm(b),v.selection=w===null?null:w,l.call(b),S.start(_).brush(_).end(_)})},u.clear=function(d,g){u.move(d,null,g)};function l(){var d=Qt(this),g=zc(this).selection;g?(d.selectAll(".selection").style("display",null).attr("x",g[0][0]).attr("y",g[0][1]).attr("width",g[1][0]-g[0][0]).attr("height",g[1][1]-g[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(_){return _.type[_.type.length-1]==="e"?g[1][0]-o/2:g[0][0]-o/2}).attr("y",function(_){return _.type[0]==="s"?g[1][1]-o/2:g[0][1]-o/2}).attr("width",function(_){return _.type==="n"||_.type==="s"?g[1][0]-g[0][0]+o:o}).attr("height",function(_){return _.type==="e"||_.type==="w"?g[1][1]-g[0][1]+o:o})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,g,_){var b=d.__brush.emitter;return b&&(!_||!b.clean)?b:new f(d,g,_)}function f(d,g,_){this.that=d,this.args=g,this.state=d.__brush,this.active=0,this.clean=_}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,g){return this.starting?(this.starting=!1,this.emit("start",d,g)):this.emit("brush",d),this},brush:function(d,g){return this.emit("brush",d,g),this},end:function(d,g){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,g)),this},emit:function(d,g,_){var b=Qt(this.that).datum();a.call(d,this.that,new f2(d,{sourceEvent:g,target:u,selection:e.output(this.state.selection),mode:_,dispatch:a}),b)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var g=this,_=d.target.__data__.type,b=(i&&d.metaKey?_="overlay":_)==="selection"?bb:i&&d.altKey?Yi:Ki,x=e===Fc?null:p2[_],v=e===Cu?null:d2[_],w=zc(g),S=w.extent,A=w.selection,P=S[0][0],C,T,E=S[0][1],k,j,$=S[1][0],M,I,L=S[1][1],q,R,D=0,B=0,U,W=x&&v&&i&&d.shiftKey,X,Z,Q=Array.from(d.touches||[d],at=>{const pt=at.identifier;return at=Jo(at,g),at.point0=at.slice(),at.identifier=pt,at});Pm(g);var K=c(g,arguments,!0).beforestart();if(_==="overlay"){A&&(U=!0);const at=[Q[0],Q[1]||Q[0]];w.selection=A=[[C=e===Fc?P:je(at[0][0],at[1][0]),k=e===Cu?E:je(at[0][1],at[1][1])],[M=e===Fc?$:$e(at[0][0],at[1][0]),q=e===Cu?L:$e(at[0][1],at[1][1])]],Q.length>1&&ut(d)}else C=A[0][0],k=A[0][1],M=A[1][0],q=A[1][1];T=C,j=k,I=M,R=q;var F=Qt(g).attr("pointer-events","none"),G=F.selectAll(".overlay").attr("cursor",ln[_]);if(d.touches)K.moved=N,K.ended=H;else{var J=Qt(d.view).on("mousemove.brush",N,!0).on("mouseup.brush",H,!0);i&&J.on("keydown.brush",st,!0).on("keyup.brush",ht,!0),A$(d.view)}l.call(g),K.start(d,b.name);function N(at){for(const pt of at.changedTouches||[at])for(const Tt of Q)Tt.identifier===pt.identifier&&(Tt.cur=Jo(pt,g));if(W&&!X&&!Z&&Q.length===1){const pt=Q[0];_b(pt.cur[0]-pt[0])>_b(pt.cur[1]-pt[1])?Z=!0:X=!0}for(const pt of Q)pt.cur&&(pt[0]=pt.cur[0],pt[1]=pt.cur[1]);U=!0,Bc(at),ut(at)}function ut(at){const pt=Q[0],Tt=pt.point0;var it;switch(D=pt[0]-Tt[0],B=pt[1]-Tt[1],b){case qc:case bb:{x&&(D=$e(P-C,je($-M,D)),T=C+D,I=M+D),v&&(B=$e(E-k,je(L-q,B)),j=k+B,R=q+B);break}case Ki:{Q[1]?(x&&(T=$e(P,je($,Q[0][0])),I=$e(P,je($,Q[1][0])),x=1),v&&(j=$e(E,je(L,Q[0][1])),R=$e(E,je(L,Q[1][1])),v=1)):(x<0?(D=$e(P-C,je($-C,D)),T=C+D,I=M):x>0&&(D=$e(P-M,je($-M,D)),T=C,I=M+D),v<0?(B=$e(E-k,je(L-k,B)),j=k+B,R=q):v>0&&(B=$e(E-q,je(L-q,B)),j=k,R=q+B));break}case Yi:{x&&(T=$e(P,je($,C-D*x)),I=$e(P,je($,M+D*x))),v&&(j=$e(E,je(L,k-B*v)),R=$e(E,je(L,q+B*v)));break}}I<T&&(x*=-1,it=C,C=M,M=it,it=T,T=I,I=it,_ in Sb&&G.attr("cursor",ln[_=Sb[_]])),R<j&&(v*=-1,it=k,k=q,q=it,it=j,j=R,R=it,_ in Ob&&G.attr("cursor",ln[_=Ob[_]])),w.selection&&(A=w.selection),X&&(T=A[0][0],I=A[1][0]),Z&&(j=A[0][1],R=A[1][1]),(A[0][0]!==T||A[0][1]!==j||A[1][0]!==I||A[1][1]!==R)&&(w.selection=[[T,j],[I,R]],l.call(g),K.brush(at,b.name))}function H(at){if(h2(at),at.touches){if(at.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else P$(at.view,U),J.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),G.attr("cursor",ln.overlay),w.selection&&(A=w.selection),g2(A)&&(w.selection=null,l.call(g)),K.end(at,b.name)}function st(at){switch(at.keyCode){case 16:{W=x&&v;break}case 18:{b===Ki&&(x&&(M=I-D*x,C=T+D*x),v&&(q=R-B*v,k=j+B*v),b=Yi,ut(at));break}case 32:{(b===Ki||b===Yi)&&(x<0?M=I-D:x>0&&(C=T-D),v<0?q=R-B:v>0&&(k=j-B),b=qc,G.attr("cursor",ln.selection),ut(at));break}default:return}Bc(at)}function ht(at){switch(at.keyCode){case 16:{W&&(X=Z=W=!1,ut(at));break}case 18:{b===Yi&&(x<0?M=I:x>0&&(C=T),v<0?q=R:v>0&&(k=j),b=Ki,ut(at));break}case 32:{b===qc&&(at.altKey?(x&&(M=I-D*x,C=T+D*x),v&&(q=R-B*v,k=j+B*v),b=Yi):(x<0?M=I:x>0&&(C=T),v<0?q=R:v>0&&(k=j),b=Ki),G.attr("cursor",ln[_]),ut(at));break}default:return}Bc(at)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=wb(t.apply(this,arguments)),d.dim=e,d}return u.extent=function(d){return arguments.length?(t=typeof d=="function"?d:Lc(wb(d)),u):t},u.filter=function(d){return arguments.length?(r=typeof d=="function"?d:Lc(!!d),u):r},u.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:Lc(!!d),u):n},u.handleSize=function(d){return arguments.length?(o=+d,u):o},u.keyModifiers=function(d){return arguments.length?(i=!!d,u):i},u.on=function(){var d=a.on.apply(a,arguments);return d===a?u:d},u}function Un(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Pv(e){let t,r,n;e.length!==2?(t=Un,r=(s,u)=>Un(e(s),u),n=(s,u)=>e(s)-u):(t=e===Un||e===_2?e:x2,r=e,n=e);function i(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;r(s[f],u)<0?l=f+1:c=f}while(l<c)}return l}function a(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;r(s[f],u)<=0?l=f+1:c=f}while(l<c)}return l}function o(s,u,l=0,c=s.length){const f=i(s,u,l,c-1);return f>l&&n(s[f-1],u)>-n(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function x2(){return 0}function IA(e){return e===null?NaN:+e}function*w2(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const S2=Pv(Un),Ws=S2.right;Pv(IA).center;class Ab extends Map{constructor(t,r=P2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Pb(this,t))}has(t){return super.has(Pb(this,t))}set(t,r){return super.set(O2(this,t),r)}delete(t){return super.delete(A2(this,t))}}function Pb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function O2({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function A2({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function P2(e){return e!==null&&typeof e=="object"?e.valueOf():e}function T2(e=Un){if(e===Un)return NA;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function NA(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const E2=Math.sqrt(50),C2=Math.sqrt(10),M2=Math.sqrt(2);function qu(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=E2?10:a>=C2?5:a>=M2?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),u=Math.round(t*l),s/l<e&&++s,u/l>t&&--u,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),u=Math.round(t/l),s*l<e&&++s,u*l>t&&--u),u<s&&.5<=r&&r<2?qu(e,t,r*2):[s,u,l]}function Em(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?qu(t,e,r):qu(e,t,r);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let l=0;l<s;++l)u[l]=(a-l)/-o;else for(let l=0;l<s;++l)u[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)u[l]=(i+l)/-o;else for(let l=0;l<s;++l)u[l]=(i+l)*o;return u}function Cm(e,t,r){return t=+t,e=+e,r=+r,qu(e,t,r)[2]}function Mm(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Cm(t,e,r):Cm(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Tb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Eb(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function LA(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?NA:T2(i);n>r;){if(n-r>600){const u=n-r+1,l=t-r+1,c=Math.log(u),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),p=Math.max(r,Math.floor(t-l*f/u+h)),y=Math.min(n,Math.floor(t+(u-l)*f/u+h));LA(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(ho(e,r,t),i(e[n],a)>0&&ho(e,r,n);o<s;){for(ho(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?ho(e,r,s):(++s,ho(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function ho(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function k2(e,t,r){if(e=Float64Array.from(w2(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Eb(e);if(t>=1)return Tb(e);var n,i=(n-1)*t,a=Math.floor(i),o=Tb(LA(e,a).subarray(0,a+1)),s=Eb(e.subarray(a+1));return o+(s-o)*(i-a)}}function $2(e,t,r=IA){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function j2(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Cr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Pn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const km=Symbol("implicit");function Tv(){var e=new Ab,t=[],r=[],n=km;function i(a){let o=e.get(a);if(o===void 0){if(n!==km)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ab;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Tv(t,r).unknown(n)},Cr.apply(i,arguments),i}function rs(){var e=Tv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,u=0,l=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-u+l*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-u))*c,o=a*(1-u),s&&(y=Math.round(y),o=Math.round(o));var d=j2(h).map(function(g){return y+a*g});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,l=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(l=+h,f()):l},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return rs(t(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},Cr.apply(f(),arguments)}function BA(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return BA(t())},e}function Ro(){return BA(rs.apply(null,arguments).paddingInner(1))}function D2(e){return function(){return e}}function Fu(e){return+e}var Cb=[0,1];function ze(e){return e}function $m(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:D2(isNaN(t)?NaN:.5)}function R2(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function I2(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=$m(i,n),a=r(o,a)):(n=$m(n,i),a=r(a,o)),function(s){return a(n(s))}}function N2(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=$m(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=Ws(e,s,1,n)-1;return a[u](i[u](s))}}function Gs(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xl(){var e=Cb,t=Cb,r=Ii,n,i,a,o=ze,s,u,l;function c(){var h=Math.min(e.length,t.length);return o!==ze&&(o=R2(e[0],e[h-1])),s=h>2?N2:I2,u=l=null,f}function f(h){return h==null||isNaN(h=+h)?a:(u||(u=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((l||(l=s(t,e.map(n),Rr)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Fu),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=xv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:ze,c()):o!==ze},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function Ev(){return Xl()(ze,ze)}function L2(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function zu(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ga(e){return e=zu(Math.abs(e)),e?e[1]:NaN}function B2(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function q2(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var F2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ns(e){if(!(t=F2.exec(e)))throw new Error("invalid format: "+e);var t;return new Cv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ns.prototype=Cv.prototype;function Cv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Cv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function z2(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var qA;function U2(e,t){var r=zu(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(qA=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+zu(e,Math.max(0,t+a-1))[0]}function Mb(e,t){var r=zu(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const kb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:L2,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Mb(e*100,t),r:Mb,s:U2,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function $b(e){return e}var jb=Array.prototype.map,Db=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function W2(e){var t=e.grouping===void 0||e.thousands===void 0?$b:B2(jb.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?$b:q2(jb.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=ns(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,g=f.width,_=f.comma,b=f.precision,x=f.trim,v=f.type;v==="n"?(_=!0,v="g"):kb[v]||(b===void 0&&(b=12),x=!0,v="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",S=m==="$"?n:/[%p]/.test(v)?o:"",A=kb[v],P=/[defgprs%]/.test(v);b=b===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function C(T){var E=w,k=S,j,$,M;if(v==="c")k=A(T)+k,T="";else{T=+T;var I=T<0||1/T<0;if(T=isNaN(T)?u:A(Math.abs(T),b),x&&(T=z2(T)),I&&+T==0&&y!=="+"&&(I=!1),E=(I?y==="("?y:s:y==="-"||y==="("?"":y)+E,k=(v==="s"?Db[8+qA/3]:"")+k+(I&&y==="("?")":""),P){for(j=-1,$=T.length;++j<$;)if(M=T.charCodeAt(j),48>M||M>57){k=(M===46?i+T.slice(j+1):T.slice(j))+k,T=T.slice(0,j);break}}}_&&!d&&(T=t(T,1/0));var L=E.length+T.length+k.length,q=L<g?new Array(g-L+1).join(h):"";switch(_&&d&&(T=t(q+T,q.length?g-k.length:1/0),q=""),p){case"<":T=E+T+k+q;break;case"=":T=E+q+T+k;break;case"^":T=q.slice(0,L=q.length>>1)+E+T+k+q.slice(L);break;default:T=q+E+T+k;break}return a(T)}return C.toString=function(){return f+""},C}function c(f,h){var p=l((f=ns(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(ga(h)/3)))*3,m=Math.pow(10,-y),d=Db[8+y/3];return function(g){return p(m*g)+d}}return{format:l,formatPrefix:c}}var su,Mv,FA;G2({thousands:",",grouping:[3],currency:["$",""]});function G2(e){return su=W2(e),Mv=su.format,FA=su.formatPrefix,su}function H2(e){return Math.max(0,-ga(Math.abs(e)))}function K2(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ga(t)/3)))*3-ga(Math.abs(e)))}function Y2(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ga(t)-ga(e))+1}function zA(e,t,r,n){var i=Mm(e,t,r),a;switch(n=ns(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=K2(i,o))&&(n.precision=a),FA(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Y2(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=H2(i))&&(n.precision=a-(n.type==="%")*2);break}}return Mv(n)}function Yn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Em(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return zA(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,l,c=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);c-- >0;){if(l=Cm(o,s,r),l===u)return n[i]=o,n[a]=s,t(n);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function Ei(){var e=Ev();return e.copy=function(){return Gs(e,Ei())},Cr.apply(e,arguments),Yn(e)}function UA(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Fu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return UA(e).unknown(t)},e=arguments.length?Array.from(e,Fu):[0,1],Yn(r)}function WA(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Rb(e){return Math.log(e)}function Ib(e){return Math.exp(e)}function X2(e){return-Math.log(-e)}function V2(e){return-Math.exp(-e)}function Z2(e){return isFinite(e)?+("1e"+e):e<0?0:e}function J2(e){return e===10?Z2:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Q2(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Nb(e){return(t,r)=>-e(-t,r)}function kv(e){const t=e(Rb,Ib),r=t.domain;let n=10,i,a;function o(){return i=Q2(n),a=J2(n),r()[0]<0?(i=Nb(i),a=Nb(a),e(X2,V2)):e(Rb,Ib),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let l=u[0],c=u[u.length-1];const f=c<l;f&&([l,c]=[c,l]);let h=i(l),p=i(c),y,m;const d=s==null?10:+s;let g=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),l>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<l)){if(m>c)break;g.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<l)){if(m>c)break;g.push(m)}g.length*2<d&&(g=Em(l,c,d))}else g=Em(h,p,Math.min(p-h,d)).map(a);return f?g.reverse():g},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=ns(u)).precision==null&&(u.trim=!0),u=Mv(u)),s===1/0)return u;const l=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=l?u(c):""}},t.nice=()=>r(WA(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function GA(){const e=kv(Xl()).domain([1,10]);return e.copy=()=>Gs(e,GA()).base(e.base()),Cr.apply(e,arguments),e}function Lb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Bb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function $v(e){var t=1,r=e(Lb(t),Bb(t));return r.constant=function(n){return arguments.length?e(Lb(t=+n),Bb(t)):t},Yn(r)}function HA(){var e=$v(Xl());return e.copy=function(){return Gs(e,HA()).constant(e.constant())},Cr.apply(e,arguments)}function qb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function tD(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function eD(e){return e<0?-e*e:e*e}function jv(e){var t=e(ze,ze),r=1;function n(){return r===1?e(ze,ze):r===.5?e(tD,eD):e(qb(r),qb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Yn(t)}function Dv(){var e=jv(Xl());return e.copy=function(){return Gs(e,Dv()).exponent(e.exponent())},Cr.apply(e,arguments),e}function rD(){return Dv.apply(null,arguments).exponent(.5)}function Fb(e){return Math.sign(e)*e*e}function nD(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function KA(){var e=Ev(),t=[0,1],r=!1,n;function i(a){var o=nD(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Fb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Fu)).map(Fb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return KA(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Cr.apply(i,arguments),Yn(i)}function YA(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=$2(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ws(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Un),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return YA().domain(e).range(t).unknown(n)},Cr.apply(a,arguments)}function XA(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Ws(n,u,0,r)]:a}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var l=i.indexOf(u);return l<0?[NaN,NaN]:l<1?[e,n[0]]:l>=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return XA().domain([e,t]).range(i).unknown(a)},Cr.apply(Yn(o),arguments)}function VA(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ws(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return VA().domain(e).range(t).unknown(r)},Cr.apply(i,arguments)}const Uc=new Date,Wc=new Date;function _e(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let l;do u.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return u},i.filter=a=>_e(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Uc.setTime(+a),Wc.setTime(+o),e(Uc),e(Wc),Math.floor(r(Uc,Wc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Uu=_e(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Uu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_e(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Uu);Uu.range;const dn=1e3,wr=dn*60,mn=wr*60,xn=mn*24,Rv=xn*7,zb=xn*30,Gc=xn*365,fi=_e(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dn)},(e,t)=>(t-e)/dn,e=>e.getUTCSeconds());fi.range;const Iv=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dn)},(e,t)=>{e.setTime(+e+t*wr)},(e,t)=>(t-e)/wr,e=>e.getMinutes());Iv.range;const Nv=_e(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*wr)},(e,t)=>(t-e)/wr,e=>e.getUTCMinutes());Nv.range;const Lv=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dn-e.getMinutes()*wr)},(e,t)=>{e.setTime(+e+t*mn)},(e,t)=>(t-e)/mn,e=>e.getHours());Lv.range;const Bv=_e(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mn)},(e,t)=>(t-e)/mn,e=>e.getUTCHours());Bv.range;const Hs=_e(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wr)/xn,e=>e.getDate()-1);Hs.range;const Vl=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xn,e=>e.getUTCDate()-1);Vl.range;const ZA=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xn,e=>Math.floor(e/xn));ZA.range;function Ni(e){return _e(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*wr)/Rv)}const Zl=Ni(0),Wu=Ni(1),iD=Ni(2),aD=Ni(3),ba=Ni(4),oD=Ni(5),sD=Ni(6);Zl.range;Wu.range;iD.range;aD.range;ba.range;oD.range;sD.range;function Li(e){return _e(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Rv)}const Jl=Li(0),Gu=Li(1),uD=Li(2),lD=Li(3),_a=Li(4),cD=Li(5),fD=Li(6);Jl.range;Gu.range;uD.range;lD.range;_a.range;cD.range;fD.range;const qv=_e(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());qv.range;const Fv=_e(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Fv.range;const wn=_e(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});wn.range;const Sn=_e(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Sn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Sn.range;function JA(e,t,r,n,i,a){const o=[[fi,1,dn],[fi,5,5*dn],[fi,15,15*dn],[fi,30,30*dn],[a,1,wr],[a,5,5*wr],[a,15,15*wr],[a,30,30*wr],[i,1,mn],[i,3,3*mn],[i,6,6*mn],[i,12,12*mn],[n,1,xn],[n,2,2*xn],[r,1,Rv],[t,1,zb],[t,3,3*zb],[e,1,Gc]];function s(l,c,f){const h=c<l;h&&([l,c]=[c,l]);const p=f&&typeof f.range=="function"?f:u(l,c,f),y=p?p.range(l,+c+1):[];return h?y.reverse():y}function u(l,c,f){const h=Math.abs(c-l)/f,p=Pv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(Mm(l/Gc,c/Gc,f));if(p===0)return Uu.every(Math.max(Mm(l,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,u]}const[hD,pD]=JA(Sn,Fv,Jl,ZA,Bv,Nv),[dD,mD]=JA(wn,qv,Zl,Hs,Lv,Iv);function Hc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Kc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function po(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function yD(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,l=mo(i),c=yo(i),f=mo(a),h=yo(a),p=mo(o),y=yo(o),m=mo(s),d=yo(s),g=mo(u),_=yo(u),b={a:I,A:L,b:q,B:R,c:null,d:Yb,e:Yb,f:BD,g:XD,G:ZD,H:ID,I:ND,j:LD,L:QA,m:qD,M:FD,p:D,q:B,Q:Zb,s:Jb,S:zD,u:UD,U:WD,V:GD,w:HD,W:KD,x:null,X:null,y:YD,Y:VD,Z:JD,"%":Vb},x={a:U,A:W,b:X,B:Z,c:null,d:Xb,e:Xb,f:rR,g:hR,G:dR,H:QD,I:tR,j:eR,L:eP,m:nR,M:iR,p:Q,q:K,Q:Zb,s:Jb,S:aR,u:oR,U:sR,V:uR,w:lR,W:cR,x:null,X:null,y:fR,Y:pR,Z:mR,"%":Vb},v={a:C,A:T,b:E,B:k,c:j,d:Hb,e:Hb,f:$D,g:Gb,G:Wb,H:Kb,I:Kb,j:ED,L:kD,m:TD,M:CD,p:P,q:PD,Q:DD,s:RD,S:MD,u:xD,U:wD,V:SD,w:_D,W:OD,x:$,X:M,y:Gb,Y:Wb,Z:AD,"%":jD};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),x.x=w(r,x),x.X=w(n,x),x.c=w(t,x);function w(F,G){return function(J){var N=[],ut=-1,H=0,st=F.length,ht,at,pt;for(J instanceof Date||(J=new Date(+J));++ut<st;)F.charCodeAt(ut)===37&&(N.push(F.slice(H,ut)),(at=Ub[ht=F.charAt(++ut)])!=null?ht=F.charAt(++ut):at=ht==="e"?" ":"0",(pt=G[ht])&&(ht=pt(J,at)),N.push(ht),H=ut+1);return N.push(F.slice(H,ut)),N.join("")}}function S(F,G){return function(J){var N=po(1900,void 0,1),ut=A(N,F,J+="",0),H,st;if(ut!=J.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(G&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(H=Kc(po(N.y,0,1)),st=H.getUTCDay(),H=st>4||st===0?Gu.ceil(H):Gu(H),H=Vl.offset(H,(N.V-1)*7),N.y=H.getUTCFullYear(),N.m=H.getUTCMonth(),N.d=H.getUTCDate()+(N.w+6)%7):(H=Hc(po(N.y,0,1)),st=H.getDay(),H=st>4||st===0?Wu.ceil(H):Wu(H),H=Hs.offset(H,(N.V-1)*7),N.y=H.getFullYear(),N.m=H.getMonth(),N.d=H.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),st="Z"in N?Kc(po(N.y,0,1)).getUTCDay():Hc(po(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(st+5)%7:N.w+N.U*7-(st+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Kc(N)):Hc(N)}}function A(F,G,J,N){for(var ut=0,H=G.length,st=J.length,ht,at;ut<H;){if(N>=st)return-1;if(ht=G.charCodeAt(ut++),ht===37){if(ht=G.charAt(ut++),at=v[ht in Ub?G.charAt(ut++):ht],!at||(N=at(F,J,N))<0)return-1}else if(ht!=J.charCodeAt(N++))return-1}return N}function P(F,G,J){var N=l.exec(G.slice(J));return N?(F.p=c.get(N[0].toLowerCase()),J+N[0].length):-1}function C(F,G,J){var N=p.exec(G.slice(J));return N?(F.w=y.get(N[0].toLowerCase()),J+N[0].length):-1}function T(F,G,J){var N=f.exec(G.slice(J));return N?(F.w=h.get(N[0].toLowerCase()),J+N[0].length):-1}function E(F,G,J){var N=g.exec(G.slice(J));return N?(F.m=_.get(N[0].toLowerCase()),J+N[0].length):-1}function k(F,G,J){var N=m.exec(G.slice(J));return N?(F.m=d.get(N[0].toLowerCase()),J+N[0].length):-1}function j(F,G,J){return A(F,t,G,J)}function $(F,G,J){return A(F,r,G,J)}function M(F,G,J){return A(F,n,G,J)}function I(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function q(F){return u[F.getMonth()]}function R(F){return s[F.getMonth()]}function D(F){return i[+(F.getHours()>=12)]}function B(F){return 1+~~(F.getMonth()/3)}function U(F){return o[F.getUTCDay()]}function W(F){return a[F.getUTCDay()]}function X(F){return u[F.getUTCMonth()]}function Z(F){return s[F.getUTCMonth()]}function Q(F){return i[+(F.getUTCHours()>=12)]}function K(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var G=w(F+="",b);return G.toString=function(){return F},G},parse:function(F){var G=S(F+="",!1);return G.toString=function(){return F},G},utcFormat:function(F){var G=w(F+="",x);return G.toString=function(){return F},G},utcParse:function(F){var G=S(F+="",!0);return G.toString=function(){return F},G}}}var Ub={"-":"",_:" ",0:"0"},Ae=/^\s*\d+/,vD=/^%/,gD=/[\\^$*+?|[\]().{}]/g;function $t(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function bD(e){return e.replace(gD,"\\$&")}function mo(e){return new RegExp("^(?:"+e.map(bD).join("|")+")","i")}function yo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function _D(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function xD(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function wD(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function SD(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function OD(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Wb(e,t,r){var n=Ae.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Gb(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function AD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function PD(e,t,r){var n=Ae.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function TD(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Hb(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ED(e,t,r){var n=Ae.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Kb(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function CD(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function MD(e,t,r){var n=Ae.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function kD(e,t,r){var n=Ae.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function $D(e,t,r){var n=Ae.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function jD(e,t,r){var n=vD.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function DD(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function RD(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Yb(e,t){return $t(e.getDate(),t,2)}function ID(e,t){return $t(e.getHours(),t,2)}function ND(e,t){return $t(e.getHours()%12||12,t,2)}function LD(e,t){return $t(1+Hs.count(wn(e),e),t,3)}function QA(e,t){return $t(e.getMilliseconds(),t,3)}function BD(e,t){return QA(e,t)+"000"}function qD(e,t){return $t(e.getMonth()+1,t,2)}function FD(e,t){return $t(e.getMinutes(),t,2)}function zD(e,t){return $t(e.getSeconds(),t,2)}function UD(e){var t=e.getDay();return t===0?7:t}function WD(e,t){return $t(Zl.count(wn(e)-1,e),t,2)}function tP(e){var t=e.getDay();return t>=4||t===0?ba(e):ba.ceil(e)}function GD(e,t){return e=tP(e),$t(ba.count(wn(e),e)+(wn(e).getDay()===4),t,2)}function HD(e){return e.getDay()}function KD(e,t){return $t(Wu.count(wn(e)-1,e),t,2)}function YD(e,t){return $t(e.getFullYear()%100,t,2)}function XD(e,t){return e=tP(e),$t(e.getFullYear()%100,t,2)}function VD(e,t){return $t(e.getFullYear()%1e4,t,4)}function ZD(e,t){var r=e.getDay();return e=r>=4||r===0?ba(e):ba.ceil(e),$t(e.getFullYear()%1e4,t,4)}function JD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+$t(t/60|0,"0",2)+$t(t%60,"0",2)}function Xb(e,t){return $t(e.getUTCDate(),t,2)}function QD(e,t){return $t(e.getUTCHours(),t,2)}function tR(e,t){return $t(e.getUTCHours()%12||12,t,2)}function eR(e,t){return $t(1+Vl.count(Sn(e),e),t,3)}function eP(e,t){return $t(e.getUTCMilliseconds(),t,3)}function rR(e,t){return eP(e,t)+"000"}function nR(e,t){return $t(e.getUTCMonth()+1,t,2)}function iR(e,t){return $t(e.getUTCMinutes(),t,2)}function aR(e,t){return $t(e.getUTCSeconds(),t,2)}function oR(e){var t=e.getUTCDay();return t===0?7:t}function sR(e,t){return $t(Jl.count(Sn(e)-1,e),t,2)}function rP(e){var t=e.getUTCDay();return t>=4||t===0?_a(e):_a.ceil(e)}function uR(e,t){return e=rP(e),$t(_a.count(Sn(e),e)+(Sn(e).getUTCDay()===4),t,2)}function lR(e){return e.getUTCDay()}function cR(e,t){return $t(Gu.count(Sn(e)-1,e),t,2)}function fR(e,t){return $t(e.getUTCFullYear()%100,t,2)}function hR(e,t){return e=rP(e),$t(e.getUTCFullYear()%100,t,2)}function pR(e,t){return $t(e.getUTCFullYear()%1e4,t,4)}function dR(e,t){var r=e.getUTCDay();return e=r>=4||r===0?_a(e):_a.ceil(e),$t(e.getUTCFullYear()%1e4,t,4)}function mR(){return"+0000"}function Vb(){return"%"}function Zb(e){return+e}function Jb(e){return Math.floor(+e/1e3)}var Xi,nP,iP;yR({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yR(e){return Xi=yD(e),nP=Xi.format,Xi.parse,iP=Xi.utcFormat,Xi.utcParse,Xi}function vR(e){return new Date(e)}function gR(e){return e instanceof Date?+e:+new Date(+e)}function zv(e,t,r,n,i,a,o,s,u,l){var c=Ev(),f=c.invert,h=c.domain,p=l(".%L"),y=l(":%S"),m=l("%I:%M"),d=l("%I %p"),g=l("%a %d"),_=l("%b %d"),b=l("%B"),x=l("%Y");function v(w){return(u(w)<w?p:s(w)<w?y:o(w)<w?m:a(w)<w?d:n(w)<w?i(w)<w?g:_:r(w)<w?b:x)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,gR)):h().map(vR)},c.ticks=function(w){var S=h();return e(S[0],S[S.length-1],w??10)},c.tickFormat=function(w,S){return S==null?v:l(S)},c.nice=function(w){var S=h();return(!w||typeof w.range!="function")&&(w=t(S[0],S[S.length-1],w??10)),w?h(WA(S,w)):c},c.copy=function(){return Gs(c,zv(e,t,r,n,i,a,o,s,u,l))},c}function Hu(){return Cr.apply(zv(dD,mD,wn,qv,Zl,Hs,Lv,Iv,fi,nP).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bR(){return Cr.apply(zv(hD,pD,Sn,Fv,Jl,Vl,Bv,Nv,fi,iP).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ql(){var e=0,t=1,r,n,i,a,o=ze,s=!1,u;function l(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),l):[e,t]},l.clamp=function(f){return arguments.length?(s=!!f,l):s},l.interpolator=function(f){return arguments.length?(o=f,l):o};function c(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),l):[o(0),o(1)]}}return l.range=c(Ii),l.rangeRound=c(xv),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),l}}function Xn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function aP(){var e=Yn(Ql()(ze));return e.copy=function(){return Xn(e,aP())},Pn.apply(e,arguments)}function oP(){var e=kv(Ql()).domain([1,10]);return e.copy=function(){return Xn(e,oP()).base(e.base())},Pn.apply(e,arguments)}function sP(){var e=$v(Ql());return e.copy=function(){return Xn(e,sP()).constant(e.constant())},Pn.apply(e,arguments)}function Uv(){var e=jv(Ql());return e.copy=function(){return Xn(e,Uv()).exponent(e.exponent())},Pn.apply(e,arguments)}function _R(){return Uv.apply(null,arguments).exponent(.5)}function uP(){var e=[],t=ze;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ws(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Un),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>k2(e,a/n))},r.copy=function(){return uP(t).domain(e)},Pn.apply(r,arguments)}function tc(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,l=ze,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:u),l(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(l=m,p):l};function y(m){return function(d){var g,_,b;return arguments.length?([g,_,b]=d,l=Q$(m,[g,_,b]),p):[l(0),l(.5),l(1)]}}return p.range=y(Ii),p.rangeRound=y(xv),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function lP(){var e=Yn(tc()(ze));return e.copy=function(){return Xn(e,lP())},Pn.apply(e,arguments)}function cP(){var e=kv(tc()).domain([.1,1,10]);return e.copy=function(){return Xn(e,cP()).base(e.base())},Pn.apply(e,arguments)}function fP(){var e=$v(tc());return e.copy=function(){return Xn(e,fP()).constant(e.constant())},Pn.apply(e,arguments)}function Wv(){var e=jv(tc());return e.copy=function(){return Xn(e,Wv()).exponent(e.exponent())},Pn.apply(e,arguments)}function xR(){return Wv.apply(null,arguments).exponent(.5)}function Kt(e){return function(){return e}}const hP=Math.cos,Ku=Math.sin,qr=Math.sqrt,Qb=1e-12,Yu=Math.PI,ec=2*Yu,jm=Math.PI,Dm=2*jm,si=1e-6,wR=Dm-si;function pP(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function SR(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return pP;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class OR{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?pP:SR(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=n-t,l=i-r,c=o-t,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>si)if(!(Math.abs(f*u-l*c)>si)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=u*u+l*l,d=p*p+y*y,g=Math.sqrt(m),_=Math.sqrt(h),b=a*Math.tan((jm-Math.acos((m+h-d)/(2*g*_)))/2),x=b/_,v=b/g;Math.abs(x-1)>si&&this._append`L${t+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+v*u},${this._y1=r+v*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),u=n*Math.sin(i),l=t+s,c=r+u,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>si||Math.abs(this._y1-c)>si)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%Dm+Dm),h>wR?this._append`A${n},${n},0,1,${f},${t-s},${r-u}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:h>si&&this._append`A${n},${n},0,${+(h>=jm)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Gv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new OR(t)}function Hv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function dP(e){this._context=e}dP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ci(e){return new dP(e)}function mP(e){return e[0]}function yP(e){return e[1]}function Kv(e,t){var r=Kt(!0),n=null,i=Ci,a=null,o=Gv(s);e=typeof e=="function"?e:e===void 0?mP:Kt(e),t=typeof t=="function"?t:t===void 0?yP:Kt(t);function s(u){var l,c=(u=Hv(u)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),l=0;l<=c;++l)!(l<c&&r(f=u[l],l,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,l,u),+t(f,l,u));if(p)return a=null,p+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Kt(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Kt(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Kt(!!u),s):r},s.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),s):i},s.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),s):n},s}function hi(e,t,r){var n=null,i=Kt(!0),a=null,o=Ci,s=null,u=Gv(l);e=typeof e=="function"?e:e===void 0?mP:Kt(+e),t=typeof t=="function"?t:Kt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?yP:Kt(+r);function l(f){var h,p,y,m=(f=Hv(f)).length,d,g=!1,_,b=new Array(m),x=new Array(m);for(a==null&&(s=o(_=u())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===g)if(g=!g)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(b[y],x[y]);s.lineEnd(),s.areaEnd()}g&&(b[h]=+e(d,h,f),x[h]=+t(d,h,f),s.point(n?+n(d,h,f):b[h],r?+r(d,h,f):x[h]))}if(_)return s=null,_+""||null}function c(){return Kv().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Kt(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Kt(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Kt(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:Kt(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Kt(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Kt(+f),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(n).y(t)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Kt(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}class vP{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function AR(e){return new vP(e,!0)}function PR(e){return new vP(e,!1)}const Yv={draw(e,t){const r=qr(t/Yu);e.moveTo(r,0),e.arc(0,0,r,0,ec)}},TR={draw(e,t){const r=qr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},gP=qr(1/3),ER=gP*2,CR={draw(e,t){const r=qr(t/ER),n=r*gP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},MR={draw(e,t){const r=qr(t),n=-r/2;e.rect(n,n,r,r)}},kR=.8908130915292852,bP=Ku(Yu/10)/Ku(7*Yu/10),$R=Ku(ec/10)*bP,jR=-hP(ec/10)*bP,DR={draw(e,t){const r=qr(t*kR),n=$R*r,i=jR*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ec*a/5,s=hP(o),u=Ku(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},Yc=qr(3),RR={draw(e,t){const r=-qr(t/(Yc*3));e.moveTo(0,r*2),e.lineTo(-Yc*r,-r),e.lineTo(Yc*r,-r),e.closePath()}},vr=-.5,gr=qr(3)/2,Rm=1/qr(12),IR=(Rm/2+1)*3,NR={draw(e,t){const r=qr(t/IR),n=r/2,i=r*Rm,a=n,o=r*Rm+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(vr*n-gr*i,gr*n+vr*i),e.lineTo(vr*a-gr*o,gr*a+vr*o),e.lineTo(vr*s-gr*u,gr*s+vr*u),e.lineTo(vr*n+gr*i,vr*i-gr*n),e.lineTo(vr*a+gr*o,vr*o-gr*a),e.lineTo(vr*s+gr*u,vr*u-gr*s),e.closePath()}};function LR(e,t){let r=null,n=Gv(i);e=typeof e=="function"?e:Kt(e||Yv),t=typeof t=="function"?t:Kt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Kt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Kt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Xu(){}function Vu(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function _P(e){this._context=e}_P.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:Vu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Vu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BR(e){return new _P(e)}function xP(e){this._context=e}xP.prototype={areaStart:Xu,areaEnd:Xu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Vu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qR(e){return new xP(e)}function wP(e){this._context=e}wP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Vu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FR(e){return new wP(e)}function t0(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Xv(e,t){this._context=e,this._k=(1-t)/6}Xv.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:t0(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:t0(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function r(n){return new Xv(n,t)}return r.tension=function(n){return e(+n)},r})(0);function zR(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Qb){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Qb){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*l+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function SP(e,t){this._context=e,this._alpha=t}SP.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;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(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:zR(this,e,t);break}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const UR=(function e(t){function r(n){return t?new SP(n,t):new Xv(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function OP(e){this._context=e}OP.prototype={areaStart:Xu,areaEnd:Xu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function WR(e){return new OP(e)}function e0(e){return e<0?-1:1}function r0(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(e0(a)+e0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function n0(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Xc(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Zu(e){this._context=e}Zu.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:Xc(this,this._t0,n0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Xc(this,n0(this,r=r0(this,e,t)),r);break;default:Xc(this,this._t0,r=r0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function AP(e){this._context=new PP(e)}(AP.prototype=Object.create(Zu.prototype)).point=function(e,t){Zu.prototype.point.call(this,t,e)};function PP(e){this._context=e}PP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function GR(e){return new Zu(e)}function HR(e){return new AP(e)}function TP(e){this._context=e}TP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=i0(e),i=i0(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function i0(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function KR(e){return new TP(e)}function rc(e,t){this._context=e,this._t=t}rc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function YR(e){return new rc(e,.5)}function XR(e){return new rc(e,0)}function VR(e){return new rc(e,1)}function xa(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Im(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function ZR(e,t){return e[t]}function JR(e){const t=[];return t.key=e,t}function Ju(){var e=Kt([]),t=Im,r=xa,n=ZR;function i(a){var o=Array.from(e.apply(this,arguments),JR),s,u=o.length,l=-1,c;for(const f of a)for(s=0,++l;s<u;++s)(o[s][l]=[0,+n(f,o[s].key,l,a)]).data=f;for(s=0,c=Hv(t(o));s<u;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Kt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Kt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Im:typeof a=="function"?a:Kt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??xa,i):r},i}function QR(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}xa(e,t)}}function tI(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}xa(e,t)}}function eI(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,u=0,l=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,h=c[n-1][1]||0,p=(f-h)/2,y=0;y<s;++y){var m=e[t[y]],d=m[n][1]||0,g=m[n-1][1]||0;p+=d-g}u+=f,l+=p*f}i[n-1][1]+=i[n-1][0]=r,u&&(r-=l/u)}i[n-1][1]+=i[n-1][0]=r,xa(e,t)}}function hn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
1
+ "use strict";var hk=Object.defineProperty;var pk=(e,t,r)=>t in e?hk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var qo=(e,t,r)=>pk(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),tt=require("@mui/material"),O=require("react"),WO=require("@mui/icons-material");function dk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const zr=dk(O);function mk(e){return e}var gf=1,vf=2,Jm=3,rs=4,L0=1e-6;function yk(e){return"translate("+e+",0)"}function gk(e){return"translate(0,"+e+")"}function vk(e){return t=>+e(t)}function bk(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function _k(){return!this.__axis}function HO(e,t){var r=[],n=null,i=null,a=6,o=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===gf||e===rs?-1:1,c=e===rs||e===vf?"x":"y",f=e===gf||e===Jm?yk:gk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):mk),d=Math.max(a,0)+s,v=t.range(),w=+v[0]+l,b=+v[v.length-1]+l,_=(t.bandwidth?bk:vk)(t.copy(),l),g=p.selection?p.selection():p,x=g.selectAll(".domain").data([null]),S=g.selectAll(".tick").data(y,t).order(),A=S.exit(),T=S.enter().append("g").attr("class","tick"),C=S.select("line"),P=S.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(T),C=C.merge(T.append("line").attr("stroke","currentColor").attr(c+"2",u*a)),P=P.merge(T.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",e===gf?"0em":e===Jm?"0.71em":"0.32em")),p!==g&&(x=x.transition(p),S=S.transition(p),C=C.transition(p),P=P.transition(p),A=A.transition(p).attr("opacity",L0).attr("transform",function(E){return isFinite(E=_(E))?f(E+l):this.getAttribute("transform")}),T.attr("opacity",L0).attr("transform",function(E){var M=this.parentNode.__axis;return f((M&&isFinite(M=M(E))?M:_(E))+l)})),A.remove(),x.attr("d",e===rs||e===vf?o?"M"+u*o+","+w+"H"+l+"V"+b+"H"+u*o:"M"+l+","+w+"V"+b:o?"M"+w+","+u*o+"V"+l+"H"+b+"V"+u*o:"M"+w+","+l+"H"+b),S.attr("opacity",1).attr("transform",function(E){return f(_(E)+l)}),C.attr(c+"2",u*a),P.attr(c,u*d).text(m),g.filter(_k).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===vf?"start":e===rs?"end":"middle"),g.each(function(){this.__axis=_})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),h):r.slice()},h.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),h):n&&n.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=o=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(o=+p,h):o},h.tickPadding=function(p){return arguments.length?(s=+p,h):s},h.offset=function(p){return arguments.length?(l=+p,h):l},h}function Ts(e){return HO(Jm,e)}function Ps(e){return HO(rs,e)}var xk={value:()=>{}};function Jg(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new ru(r)}function ru(e){this._=e}function wk(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ru.prototype=Jg.prototype={constructor:ru,on:function(e,t){var r=this._,n=wk(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=Sk(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=B0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=B0(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new ru(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function Sk(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function B0(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=xk,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var Qm="http://www.w3.org/1999/xhtml";const q0={svg:"http://www.w3.org/2000/svg",xhtml:Qm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),q0.hasOwnProperty(t)?{space:q0[t],local:e}:e}function Ak(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Qm&&t.documentElement.namespaceURI===Qm?t.createElement(e):t.createElementNS(r,e)}}function Ok(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function GO(e){var t=xc(e);return(t.local?Ok:Ak)(t)}function Tk(){}function Qg(e){return e==null?Tk:function(){return this.querySelector(e)}}function Pk(e){typeof e!="function"&&(e=Qg(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),l,u,c=0;c<o;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new Tr(n,this._parents)}function Ek(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ck(){return[]}function KO(e){return e==null?Ck:function(){return this.querySelectorAll(e)}}function Mk(e){return function(){return Ek(e.apply(this,arguments))}}function kk(e){typeof e=="function"?e=Mk(e):e=KO(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(n.push(e.call(l,l.__data__,u,o)),i.push(l));return new Tr(n,i)}function YO(e){return function(){return this.matches(e)}}function XO(e){return function(t){return t.matches(e)}}var $k=Array.prototype.find;function jk(e){return function(){return $k.call(this.children,e)}}function Rk(){return this.firstElementChild}function Dk(e){return this.select(e==null?Rk:jk(typeof e=="function"?e:XO(e)))}var Ik=Array.prototype.filter;function Nk(){return Array.from(this.children)}function Lk(e){return function(){return Ik.call(this.children,e)}}function Bk(e){return this.selectAll(e==null?Nk:Lk(typeof e=="function"?e:XO(e)))}function qk(e){typeof e!="function"&&(e=YO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Tr(n,this._parents)}function VO(e){return new Array(e.length)}function Fk(){return new Tr(this._enter||this._groups.map(VO),this._parents)}function uu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}uu.prototype={constructor:uu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function zk(e){return function(){return e}}function Uk(e,t,r,n,i,a){for(var o=0,s,l=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new uu(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function Wk(e,t,r,n,i,a,o){var s,l,u=new Map,c=t.length,f=a.length,h=new Array(c),p;for(s=0;s<c;++s)(l=t[s])&&(h[s]=p=o.call(l,l.__data__,s,t)+"",u.has(p)?i[s]=l:u.set(p,l));for(s=0;s<f;++s)p=o.call(e,a[s],s,a)+"",(l=u.get(p))?(n[s]=l,l.__data__=a[s],u.delete(p)):r[s]=new uu(e,a[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(h[s])===l&&(i[s]=l)}function Hk(e){return e.__data__}function Gk(e,t){if(!arguments.length)return Array.from(this,Hk);var r=t?Wk:Uk,n=this._parents,i=this._groups;typeof e!="function"&&(e=zk(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),u=0;u<a;++u){var c=n[u],f=i[u],h=f.length,p=Kk(e.call(c,c&&c.__data__,u,n)),y=p.length,m=s[u]=new Array(y),d=o[u]=new Array(y),v=l[u]=new Array(h);r(c,f,m,d,v,p,t);for(var w=0,b=0,_,g;w<y;++w)if(_=m[w]){for(w>=b&&(b=w+1);!(g=d[b])&&++b<y;);_._next=g||null}}return o=new Tr(o,n),o._enter=s,o._exit=l,o}function Kk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Yk(){return new Tr(this._exit||this._groups.map(VO),this._parents)}function Xk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Vk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var u=r[l],c=n[l],f=u.length,h=s[l]=new Array(f),p,y=0;y<f;++y)(p=u[y]||c[y])&&(h[y]=p);for(;l<i;++l)s[l]=r[l];return new Tr(s,this._parents)}function Zk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Jk(e){e||(e=Qk);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],s=o.length,l=i[a]=new Array(s),u,c=0;c<s;++c)(u=o[c])&&(l[c]=u);l.sort(t)}return new Tr(i,this._parents).order()}function Qk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function t2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function e2(){return Array.from(this)}function r2(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function n2(){let e=0;for(const t of this)++e;return e}function i2(){return!this.node()}function a2(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function o2(e){return function(){this.removeAttribute(e)}}function s2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function l2(e,t){return function(){this.setAttribute(e,t)}}function u2(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function c2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function f2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function h2(e,t){var r=xc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?s2:o2:typeof t=="function"?r.local?f2:c2:r.local?u2:l2)(r,t))}function ZO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function p2(e){return function(){this.style.removeProperty(e)}}function d2(e,t,r){return function(){this.style.setProperty(e,t,r)}}function m2(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function y2(e,t,r){return arguments.length>1?this.each((t==null?p2:typeof t=="function"?m2:d2)(e,t,r??"")):Ha(this.node(),e)}function Ha(e,t){return e.style.getPropertyValue(t)||ZO(e).getComputedStyle(e,null).getPropertyValue(t)}function g2(e){return function(){delete this[e]}}function v2(e,t){return function(){this[e]=t}}function b2(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _2(e,t){return arguments.length>1?this.each((t==null?g2:typeof t=="function"?b2:v2)(e,t)):this.node()[e]}function JO(e){return e.trim().split(/^|\s+/)}function tv(e){return e.classList||new QO(e)}function QO(e){this._node=e,this._names=JO(e.getAttribute("class")||"")}QO.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tT(e,t){for(var r=tv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function eT(e,t){for(var r=tv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function x2(e){return function(){tT(this,e)}}function w2(e){return function(){eT(this,e)}}function S2(e,t){return function(){(t.apply(this,arguments)?tT:eT)(this,e)}}function A2(e,t){var r=JO(e+"");if(arguments.length<2){for(var n=tv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?S2:t?x2:w2)(r,t))}function O2(){this.textContent=""}function T2(e){return function(){this.textContent=e}}function P2(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function E2(e){return arguments.length?this.each(e==null?O2:(typeof e=="function"?P2:T2)(e)):this.node().textContent}function C2(){this.innerHTML=""}function M2(e){return function(){this.innerHTML=e}}function k2(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function $2(e){return arguments.length?this.each(e==null?C2:(typeof e=="function"?k2:M2)(e)):this.node().innerHTML}function j2(){this.nextSibling&&this.parentNode.appendChild(this)}function R2(){return this.each(j2)}function D2(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function I2(){return this.each(D2)}function N2(e){var t=typeof e=="function"?e:GO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function L2(){return null}function B2(e,t){var r=typeof e=="function"?e:GO(e),n=t==null?L2:typeof t=="function"?t:Qg(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function q2(){var e=this.parentNode;e&&e.removeChild(this)}function F2(){return this.each(q2)}function z2(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function U2(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W2(e){return this.select(e?U2:z2)}function H2(e){return arguments.length?this.property("__data__",e):this.node().__data__}function G2(e){return function(t){e.call(this,t,this.__data__)}}function K2(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function Y2(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function X2(e,t,r){return function(){var n=this.__on,i,a=G2(t);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function V2(e,t,r){var n=K2(e+""),i,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(i=0,c=s[l];i<a;++i)if((o=n[i]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?X2:Y2,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function rT(e,t,r){var n=ZO(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Z2(e,t){return function(){return rT(this,e,t)}}function J2(e,t){return function(){return rT(this,e,t.apply(this,arguments))}}function Q2(e,t){return this.each((typeof t=="function"?J2:Z2)(e,t))}function*t$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var nT=[null];function Tr(e,t){this._groups=e,this._parents=t}function Po(){return new Tr([[document.documentElement]],nT)}function e$(){return this}Tr.prototype=Po.prototype={constructor:Tr,select:Pk,selectAll:kk,selectChild:Dk,selectChildren:Bk,filter:qk,data:Gk,enter:Fk,exit:Yk,join:Xk,merge:Vk,selection:e$,order:Zk,sort:Jk,call:t2,nodes:e2,node:r2,size:n2,empty:i2,each:a2,attr:h2,style:y2,property:_2,classed:A2,text:E2,html:$2,raise:R2,lower:I2,append:N2,insert:B2,remove:F2,clone:W2,datum:H2,on:V2,dispatch:Q2,[Symbol.iterator]:t$};function te(e){return typeof e=="string"?new Tr([[document.querySelector(e)]],[document.documentElement]):new Tr([[e]],nT)}function r$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Es(e,t){if(e=r$(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const ty={capture:!0,passive:!1};function ey(e){e.preventDefault(),e.stopImmediatePropagation()}function n$(e){var t=e.document.documentElement,r=te(e).on("dragstart.drag",ey,ty);"onselectstart"in t?r.on("selectstart.drag",ey,ty):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function i$(e,t){var r=e.document.documentElement,n=te(e).on("dragstart.drag",null);t&&(n.on("click.drag",ey,ty),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function ev(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function iT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function bl(){}var Cs=.7,cu=1/Cs,Ia="\\s*([+-]?\\d+)\\s*",Ms="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a$=/^#([0-9a-f]{3,8})$/,o$=new RegExp(`^rgb\\(${Ia},${Ia},${Ia}\\)$`),s$=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),l$=new RegExp(`^rgba\\(${Ia},${Ia},${Ia},${Ms}\\)$`),u$=new RegExp(`^rgba\\(${wn},${wn},${wn},${Ms}\\)$`),c$=new RegExp(`^hsl\\(${Ms},${wn},${wn}\\)$`),f$=new RegExp(`^hsla\\(${Ms},${wn},${wn},${Ms}\\)$`),F0={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};ev(bl,ea,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z0,formatHex:z0,formatHex8:h$,formatHsl:p$,formatRgb:U0,toString:U0});function z0(){return this.rgb().formatHex()}function h$(){return this.rgb().formatHex8()}function p$(){return aT(this).formatHsl()}function U0(){return this.rgb().formatRgb()}function ea(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=a$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?W0(t):r===3?new er(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=o$.exec(e))?new er(t[1],t[2],t[3],1):(t=s$.exec(e))?new er(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=l$.exec(e))?Dl(t[1],t[2],t[3],t[4]):(t=u$.exec(e))?Dl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=c$.exec(e))?K0(t[1],t[2]/100,t[3]/100,1):(t=f$.exec(e))?K0(t[1],t[2]/100,t[3]/100,t[4]):F0.hasOwnProperty(e)?W0(F0[e]):e==="transparent"?new er(NaN,NaN,NaN,0):null}function W0(e){return new er(e>>16&255,e>>8&255,e&255,1)}function Dl(e,t,r,n){return n<=0&&(e=t=r=NaN),new er(e,t,r,n)}function d$(e){return e instanceof bl||(e=ea(e)),e?(e=e.rgb(),new er(e.r,e.g,e.b,e.opacity)):new er}function ry(e,t,r,n){return arguments.length===1?d$(e):new er(e,t,r,n??1)}function er(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ev(er,ry,iT(bl,{brighter(e){return e=e==null?cu:Math.pow(cu,e),new er(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cs:Math.pow(Cs,e),new er(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new er(Ki(this.r),Ki(this.g),Ki(this.b),fu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H0,formatHex:H0,formatHex8:m$,formatRgb:G0,toString:G0}));function H0(){return`#${Bi(this.r)}${Bi(this.g)}${Bi(this.b)}`}function m$(){return`#${Bi(this.r)}${Bi(this.g)}${Bi(this.b)}${Bi((isNaN(this.opacity)?1:this.opacity)*255)}`}function G0(){const e=fu(this.opacity);return`${e===1?"rgb(":"rgba("}${Ki(this.r)}, ${Ki(this.g)}, ${Ki(this.b)}${e===1?")":`, ${e})`}`}function fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ki(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bi(e){return e=Ki(e),(e<16?"0":"")+e.toString(16)}function K0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new an(e,t,r,n)}function aT(e){if(e instanceof an)return new an(e.h,e.s,e.l,e.opacity);if(e instanceof bl||(e=ea(e)),!e)return new an;if(e instanceof an)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new an(o,s,l,e.opacity)}function y$(e,t,r,n){return arguments.length===1?aT(e):new an(e,t,r,n??1)}function an(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ev(an,y$,iT(bl,{brighter(e){return e=e==null?cu:Math.pow(cu,e),new an(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cs:Math.pow(Cs,e),new an(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new er(bf(e>=240?e-240:e+120,i,n),bf(e,i,n),bf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new an(Y0(this.h),Il(this.s),Il(this.l),fu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=fu(this.opacity);return`${e===1?"hsl(":"hsla("}${Y0(this.h)}, ${Il(this.s)*100}%, ${Il(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y0(e){return e=(e||0)%360,e<0?e+360:e}function Il(e){return Math.max(0,Math.min(1,e||0))}function bf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const rv=e=>()=>e;function g$(e,t){return function(r){return e+r*t}}function v$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function b$(e){return(e=+e)==1?oT:function(t,r){return r-t?v$(t,r,e):rv(isNaN(t)?r:t)}}function oT(e,t){var r=t-e;return r?g$(e,r):rv(isNaN(e)?t:e)}const hu=(function e(t){var r=b$(t);function n(i,a){var o=r((i=ry(i)).r,(a=ry(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=oT(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function _$(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function x$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function w$(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=fa(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function S$(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function nn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function A$(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=fa(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ny=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_f=new RegExp(ny.source,"g");function O$(e){return function(){return e}}function T$(e){return function(t){return e(t)+""}}function sT(e,t){var r=ny.lastIndex=_f.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=ny.exec(e))&&(i=_f.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:nn(n,i)})),r=_f.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?T$(l[0].x):O$(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function fa(e,t){var r=typeof t,n;return t==null||r==="boolean"?rv(t):(r==="number"?nn:r==="string"?(n=ea(t))?(t=n,hu):sT:t instanceof ea?hu:t instanceof Date?S$:x$(t)?_$:Array.isArray(t)?w$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A$:nn)(e,t)}function nv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var X0=180/Math.PI,iy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lT(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*X0,skewX:Math.atan(l)*X0,scaleX:o,scaleY:s}}var Nl;function P$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?iy:lT(t.a,t.b,t.c,t.d,t.e,t.f)}function E$(e){return e==null||(Nl||(Nl=document.createElementNS("http://www.w3.org/2000/svg","g")),Nl.setAttribute("transform",e),!(e=Nl.transform.baseVal.consolidate()))?iy:(e=e.matrix,lT(e.a,e.b,e.c,e.d,e.e,e.f))}function uT(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:nn(u,f)},{i:m-2,x:nn(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:nn(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:nn(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:nn(u,f)},{i:m-2,x:nn(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var C$=uT(P$,"px, ","px)","deg)"),M$=uT(E$,", ",")",")");function k$(e,t){t===void 0&&(t=e,e=fa);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}var Ga=0,ns=0,Fo=0,cT=1e3,pu,is,du=0,ra=0,wc=0,ks=typeof performance=="object"&&performance.now?performance:Date,fT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function iv(){return ra||(fT($$),ra=ks.now()+wc)}function $$(){ra=0}function mu(){this._call=this._time=this._next=null}mu.prototype=hT.prototype={constructor:mu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?iv():+r)+(t==null?0:+t),!this._next&&is!==this&&(is?is._next=this:pu=this,is=this),this._call=e,this._time=r,ay()},stop:function(){this._call&&(this._call=null,this._time=1/0,ay())}};function hT(e,t,r){var n=new mu;return n.restart(e,t,r),n}function j$(){iv(),++Ga;for(var e=pu,t;e;)(t=ra-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ga}function V0(){ra=(du=ks.now())+wc,Ga=ns=0;try{j$()}finally{Ga=0,D$(),ra=0}}function R$(){var e=ks.now(),t=e-du;t>cT&&(wc-=t,du=e)}function D$(){for(var e,t=pu,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:pu=r);is=e,ay(n)}function ay(e){if(!Ga){ns&&(ns=clearTimeout(ns));var t=e-ra;t>24?(e<1/0&&(ns=setTimeout(V0,e-ks.now()-wc)),Fo&&(Fo=clearInterval(Fo))):(Fo||(du=ks.now(),Fo=setInterval(R$,cT)),Ga=1,fT(V0))}}function Z0(e,t,r){var n=new mu;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var I$=Jg("start","end","cancel","interrupt"),N$=[],pT=0,J0=1,oy=2,nu=3,Q0=4,sy=5,iu=6;function Sc(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;L$(e,r,{name:t,index:n,group:i,on:I$,tween:N$,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:pT})}function av(e,t){var r=ln(e,t);if(r.state>pT)throw new Error("too late; already scheduled");return r}function Pn(e,t){var r=ln(e,t);if(r.state>nu)throw new Error("too late; already running");return r}function ln(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function L$(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=hT(a,0,r.time);function a(u){r.state=J0,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}function o(u){var c,f,h,p;if(r.state!==J0)return l();for(c in n)if(p=n[c],p.name===r.name){if(p.state===nu)return Z0(o);p.state===Q0?(p.state=iu,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=iu,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(Z0(function(){r.state===nu&&(r.state=Q0,r.timer.restart(s,r.delay,r.time),s(u))}),r.state=oy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===oy){for(r.state=nu,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function s(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=sy,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===sy&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=iu,r.timer.stop(),delete n[t];for(var u in n)return;delete e.__transition}}function ly(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>oy&&n.state<sy,n.state=iu,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function B$(e){return this.each(function(){ly(this,e)})}function q$(e,t){var r,n;return function(){var i=Pn(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function F$(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=Pn(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:t,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function z$(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=ln(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?q$:F$)(r,e,t))}function ov(e,t,r){var n=e._id;return e.each(function(){var i=Pn(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return ln(i,n).value[t]}}function dT(e,t){var r;return(typeof t=="number"?nn:t instanceof ea?hu:(r=ea(t))?(t=r,hu):sT)(e,t)}function U$(e){return function(){this.removeAttribute(e)}}function W$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function H$(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function G$(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function K$(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function Y$(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function X$(e,t){var r=xc(e),n=r==="transform"?M$:dT;return this.attrTween(e,typeof t=="function"?(r.local?Y$:K$)(r,n,ov(this,"attr."+e,t)):t==null?(r.local?W$:U$)(r):(r.local?G$:H$)(r,n,t))}function V$(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Z$(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function J$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Z$(e,a)),r}return i._value=t,i}function Q$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&V$(e,a)),r}return i._value=t,i}function tj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=xc(e);return this.tween(r,(n.local?J$:Q$)(n,t))}function ej(e,t){return function(){av(this,e).delay=+t.apply(this,arguments)}}function rj(e,t){return t=+t,function(){av(this,e).delay=t}}function nj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ej:rj)(t,e)):ln(this.node(),t).delay}function ij(e,t){return function(){Pn(this,e).duration=+t.apply(this,arguments)}}function aj(e,t){return t=+t,function(){Pn(this,e).duration=t}}function oj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ij:aj)(t,e)):ln(this.node(),t).duration}function sj(e,t){if(typeof t!="function")throw new Error;return function(){Pn(this,e).ease=t}}function lj(e){var t=this._id;return arguments.length?this.each(sj(t,e)):ln(this.node(),t).ease}function uj(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Pn(this,e).ease=r}}function cj(e){if(typeof e!="function")throw new Error;return this.each(uj(this._id,e))}function fj(e){typeof e!="function"&&(e=YO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Un(n,this._parents,this._name,this._id)}function hj(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var l=t[s],u=r[s],c=l.length,f=o[s]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(f[p]=h);for(;s<n;++s)o[s]=t[s];return new Un(o,this._parents,this._name,this._id)}function pj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function dj(e,t,r){var n,i,a=pj(t)?av:Pn;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function mj(e,t){var r=this._id;return arguments.length<2?ln(this.node(),r).on.on(e):this.each(dj(r,e,t))}function yj(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function gj(){return this.on("end.remove",yj(this._id))}function vj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Qg(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],l=s.length,u=a[o]=new Array(l),c,f,h=0;h<l;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f,Sc(u[h],t,r,h,u,ln(c,r)));return new Un(a,this._parents,t,r)}function bj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=KO(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l=n[s],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var h=e.call(c,c.__data__,f,l),p,y=ln(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Sc(p,t,r,m,h,y);a.push(h),o.push(c)}return new Un(a,o,t,r)}var _j=Po.prototype.constructor;function xj(){return new _j(this._groups,this._parents)}function wj(e,t){var r,n,i;return function(){var a=Ha(this,e),o=(this.style.removeProperty(e),Ha(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function mT(e){return function(){this.style.removeProperty(e)}}function Sj(e,t,r){var n,i=r+"",a;return function(){var o=Ha(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function Aj(e,t,r){var n,i,a;return function(){var o=Ha(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Ha(this,e))),o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s))}}function Oj(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var l=Pn(this,e),u=l.on,c=l.value[a]==null?s||(s=mT(t)):void 0;(u!==r||i!==c)&&(n=(r=u).copy()).on(o,i=c),l.on=n}}function Tj(e,t,r){var n=(e+="")=="transform"?C$:dT;return t==null?this.styleTween(e,wj(e,n)).on("end.style."+e,mT(e)):typeof t=="function"?this.styleTween(e,Aj(e,n,ov(this,"style."+e,t))).each(Oj(this._id,e)):this.styleTween(e,Sj(e,n,t),r).on("end.style."+e,null)}function Pj(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Ej(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&Pj(e,o,r)),n}return a._value=t,a}function Cj(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Ej(e,t,r??""))}function Mj(e){return function(){this.textContent=e}}function kj(e){return function(){var t=e(this);this.textContent=t??""}}function $j(e){return this.tween("text",typeof e=="function"?kj(ov(this,"text",e)):Mj(e==null?"":e+""))}function jj(e){return function(t){this.textContent=e.call(this,t)}}function Rj(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&jj(i)),t}return n._value=e,n}function Dj(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Rj(e))}function Ij(){for(var e=this._name,t=this._id,r=yT(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var c=ln(l,t);Sc(l,e,r,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Un(n,this._parents,e,r)}function Nj(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};r.each(function(){var u=Pn(this,n),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),i===0&&a()})}var Lj=0;function Un(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function sv(e){return Po().transition(e)}function yT(){return++Lj}var kn=Po.prototype;Un.prototype=sv.prototype={constructor:Un,select:vj,selectAll:bj,selectChild:kn.selectChild,selectChildren:kn.selectChildren,filter:fj,merge:hj,selection:xj,transition:Ij,call:kn.call,nodes:kn.nodes,node:kn.node,size:kn.size,empty:kn.empty,each:kn.each,on:mj,attr:X$,attrTween:tj,style:Tj,styleTween:Cj,text:$j,textTween:Dj,remove:gj,tween:z$,delay:nj,duration:oj,ease:lj,easeVarying:cj,end:Nj,[Symbol.iterator]:kn[Symbol.iterator]};function Bj(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qj={time:null,delay:0,duration:250,ease:Bj};function Fj(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function zj(e){var t,r;e instanceof Un?(t=e._id,e=e._name):(t=yT(),(r=qj).time=iv(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&Sc(l,e,t,u,o,r||Fj(l,t));return new Un(n,this._parents,e,t)}Po.prototype.interrupt=B$;Po.prototype.transition=zj;const xf=e=>()=>e;function Uj(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Wj(e){e.stopImmediatePropagation()}function wf(e){e.preventDefault(),e.stopImmediatePropagation()}var tb={name:"drag"},Sf={name:"space"},wa={name:"handle"},Sa={name:"center"};const{abs:eb,max:Le,min:Be}=Math;function rb(e){return[+e[0],+e[1]]}function nb(e){return[rb(e[0]),rb(e[1])]}var au={name:"x",handles:["w","e"].map(uy),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Af={},$n={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ib={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ab={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Hj={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Gj={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function uy(e){return{type:e}}function Kj(e){return!e.ctrlKey&&!e.button}function Yj(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Xj(){return navigator.maxTouchPoints||"ontouchstart"in this}function Of(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Vj(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Ac(){return Zj(au)}function Zj(e){var t=Yj,r=Kj,n=Xj,i=!0,a=Jg("start","brush","end"),o=6,s;function l(d){var v=d.property("__brush",m).selectAll(".overlay").data([uy("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",$n.overlay).merge(v).each(function(){var b=Of(this).extent;te(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),d.selectAll(".selection").data([uy("selection")]).enter().append("rect").attr("class","selection").attr("cursor",$n.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var w=d.selectAll(".handle").data(e.handles,function(b){return b.type});w.exit().remove(),w.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return $n[b.type]}),d.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(d,v,w){d.tween?d.on("start.brush",function(b){c(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){c(this,arguments).end(b)}).tween("brush",function(){var b=this,_=b.__brush,g=c(b,arguments),x=_.selection,S=e.input(typeof v=="function"?v.apply(this,arguments):v,_.extent),A=fa(x,S);function T(C){_.selection=C===1&&S===null?null:A(C),u.call(b),g.brush()}return x!==null&&S!==null?T:T(1)}):d.each(function(){var b=this,_=arguments,g=b.__brush,x=e.input(typeof v=="function"?v.apply(b,_):v,g.extent),S=c(b,_).beforestart();ly(b),g.selection=x===null?null:x,u.call(b),S.start(w).brush(w).end(w)})},l.clear=function(d,v){l.move(d,null,v)};function u(){var d=te(this),v=Of(this).selection;v?(d.selectAll(".selection").style("display",null).attr("x",v[0][0]).attr("y",v[0][1]).attr("width",v[1][0]-v[0][0]).attr("height",v[1][1]-v[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(w){return w.type[w.type.length-1]==="e"?v[1][0]-o/2:v[0][0]-o/2}).attr("y",function(w){return w.type[0]==="s"?v[1][1]-o/2:v[0][1]-o/2}).attr("width",function(w){return w.type==="n"||w.type==="s"?v[1][0]-v[0][0]+o:o}).attr("height",function(w){return w.type==="e"||w.type==="w"?v[1][1]-v[0][1]+o:o})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,v,w){var b=d.__brush.emitter;return b&&(!w||!b.clean)?b:new f(d,v,w)}function f(d,v,w){this.that=d,this.args=v,this.state=d.__brush,this.active=0,this.clean=w}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,v){return this.starting?(this.starting=!1,this.emit("start",d,v)):this.emit("brush",d),this},brush:function(d,v){return this.emit("brush",d,v),this},end:function(d,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,v)),this},emit:function(d,v,w){var b=te(this.that).datum();a.call(d,this.that,new Uj(d,{sourceEvent:v,target:l,selection:e.output(this.state.selection),mode:w,dispatch:a}),b)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var v=this,w=d.target.__data__.type,b=(i&&d.metaKey?w="overlay":w)==="selection"?tb:i&&d.altKey?Sa:wa,_=e===Af?null:Hj[w],g=e===au?null:Gj[w],x=Of(v),S=x.extent,A=x.selection,T=S[0][0],C,P,E=S[0][1],M,$,j=S[1][0],k,I,q=S[1][1],F,N,D=0,L=0,G,Y=_&&g&&i&&d.shiftKey,z,V,Q=Array.from(d.touches||[d],st=>{const ht=st.identifier;return st=Es(st,v),st.point0=st.slice(),st.identifier=ht,st});ly(v);var K=c(v,arguments,!0).beforestart();if(w==="overlay"){A&&(G=!0);const st=[Q[0],Q[1]||Q[0]];x.selection=A=[[C=e===Af?T:Be(st[0][0],st[1][0]),M=e===au?E:Be(st[0][1],st[1][1])],[k=e===Af?j:Le(st[0][0],st[1][0]),F=e===au?q:Le(st[0][1],st[1][1])]],Q.length>1&&ot(d)}else C=A[0][0],M=A[0][1],k=A[1][0],F=A[1][1];P=C,$=M,I=k,N=F;var B=te(v).attr("pointer-events","none"),H=B.selectAll(".overlay").attr("cursor",$n[w]);if(d.touches)K.moved=R,K.ended=U;else{var Z=te(d.view).on("mousemove.brush",R,!0).on("mouseup.brush",U,!0);i&&Z.on("keydown.brush",nt,!0).on("keyup.brush",ft,!0),n$(d.view)}u.call(v),K.start(d,b.name);function R(st){for(const ht of st.changedTouches||[st])for(const Et of Q)Et.identifier===ht.identifier&&(Et.cur=Es(ht,v));if(Y&&!z&&!V&&Q.length===1){const ht=Q[0];eb(ht.cur[0]-ht[0])>eb(ht.cur[1]-ht[1])?V=!0:z=!0}for(const ht of Q)ht.cur&&(ht[0]=ht.cur[0],ht[1]=ht.cur[1]);G=!0,wf(st),ot(st)}function ot(st){const ht=Q[0],Et=ht.point0;var at;switch(D=ht[0]-Et[0],L=ht[1]-Et[1],b){case Sf:case tb:{_&&(D=Le(T-C,Be(j-k,D)),P=C+D,I=k+D),g&&(L=Le(E-M,Be(q-F,L)),$=M+L,N=F+L);break}case wa:{Q[1]?(_&&(P=Le(T,Be(j,Q[0][0])),I=Le(T,Be(j,Q[1][0])),_=1),g&&($=Le(E,Be(q,Q[0][1])),N=Le(E,Be(q,Q[1][1])),g=1)):(_<0?(D=Le(T-C,Be(j-C,D)),P=C+D,I=k):_>0&&(D=Le(T-k,Be(j-k,D)),P=C,I=k+D),g<0?(L=Le(E-M,Be(q-M,L)),$=M+L,N=F):g>0&&(L=Le(E-F,Be(q-F,L)),$=M,N=F+L));break}case Sa:{_&&(P=Le(T,Be(j,C-D*_)),I=Le(T,Be(j,k+D*_))),g&&($=Le(E,Be(q,M-L*g)),N=Le(E,Be(q,F+L*g)));break}}I<P&&(_*=-1,at=C,C=k,k=at,at=P,P=I,I=at,w in ib&&H.attr("cursor",$n[w=ib[w]])),N<$&&(g*=-1,at=M,M=F,F=at,at=$,$=N,N=at,w in ab&&H.attr("cursor",$n[w=ab[w]])),x.selection&&(A=x.selection),z&&(P=A[0][0],I=A[1][0]),V&&($=A[0][1],N=A[1][1]),(A[0][0]!==P||A[0][1]!==$||A[1][0]!==I||A[1][1]!==N)&&(x.selection=[[P,$],[I,N]],u.call(v),K.brush(st,b.name))}function U(st){if(Wj(st),st.touches){if(st.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else i$(st.view,G),Z.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);B.attr("pointer-events","all"),H.attr("cursor",$n.overlay),x.selection&&(A=x.selection),Vj(A)&&(x.selection=null,u.call(v)),K.end(st,b.name)}function nt(st){switch(st.keyCode){case 16:{Y=_&&g;break}case 18:{b===wa&&(_&&(k=I-D*_,C=P+D*_),g&&(F=N-L*g,M=$+L*g),b=Sa,ot(st));break}case 32:{(b===wa||b===Sa)&&(_<0?k=I-D:_>0&&(C=P-D),g<0?F=N-L:g>0&&(M=$-L),b=Sf,H.attr("cursor",$n.selection),ot(st));break}default:return}wf(st)}function ft(st){switch(st.keyCode){case 16:{Y&&(z=V=Y=!1,ot(st));break}case 18:{b===Sa&&(_<0?k=I:_>0&&(C=P),g<0?F=N:g>0&&(M=$),b=wa,ot(st));break}case 32:{b===Sf&&(st.altKey?(_&&(k=I-D*_,C=P+D*_),g&&(F=N-L*g,M=$+L*g),b=Sa):(_<0?k=I:_>0&&(C=P),g<0?F=N:g>0&&(M=$),b=wa),H.attr("cursor",$n[w]),ot(st));break}default:return}wf(st)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=nb(t.apply(this,arguments)),d.dim=e,d}return l.extent=function(d){return arguments.length?(t=typeof d=="function"?d:xf(nb(d)),l):t},l.filter=function(d){return arguments.length?(r=typeof d=="function"?d:xf(!!d),l):r},l.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:xf(!!d),l):n},l.handleSize=function(d){return arguments.length?(o=+d,l):o},l.keyModifiers=function(d){return arguments.length?(i=!!d,l):i},l.on=function(){var d=a.on.apply(a,arguments);return d===a?l:d},l}function pi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Jj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lv(e){let t,r,n;e.length!==2?(t=pi,r=(s,l)=>pi(e(s),l),n=(s,l)=>e(s)-l):(t=e===pi||e===Jj?e:Qj,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function Qj(){return 0}function gT(e){return e===null?NaN:+e}function*tR(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eR=lv(pi),_l=eR.right;lv(gT).center;class ob extends Map{constructor(t,r=iR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(sb(this,t))}has(t){return super.has(sb(this,t))}set(t,r){return super.set(rR(this,t),r)}delete(t){return super.delete(nR(this,t))}}function sb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function rR({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function nR({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function iR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aR(e=pi){if(e===pi)return vT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function vT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const oR=Math.sqrt(50),sR=Math.sqrt(10),lR=Math.sqrt(2);function yu(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=oR?10:a>=sR?5:a>=lR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?yu(e,t,r*2):[s,l,u]}function cy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?yu(t,e,r):yu(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function fy(e,t,r){return t=+t,e=+e,r=+r,yu(e,t,r)[2]}function hy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?fy(t,e,r):fy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function lb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ub(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function bT(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?vT:aR(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/l+h)),y=Math.min(n,Math.floor(t+(l-u)*f/l+h));bT(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(zo(e,r,t),i(e[n],a)>0&&zo(e,r,n);o<s;){for(zo(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?zo(e,r,s):(++s,zo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function zo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function uR(e,t,r){if(e=Float64Array.from(tR(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ub(e);if(t>=1)return lb(e);var n,i=(n-1)*t,a=Math.floor(i),o=lb(bT(e,a).subarray(0,a+1)),s=ub(e.subarray(a+1));return o+(s-o)*(i-a)}}function cR(e,t,r=gT){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function fR(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Hr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const py=Symbol("implicit");function uv(){var e=new ob,t=[],r=[],n=py;function i(a){let o=e.get(a);if(o===void 0){if(n!==py)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ob;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return uv(t,r).unknown(n)},Hr.apply(i,arguments),i}function $s(){var e=uv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-l+u*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-l))*c,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var d=fR(h).map(function(v){return y+a*v});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),f()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return $s(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},Hr.apply(f(),arguments)}function _T(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _T(t())},e}function cs(){return _T($s.apply(null,arguments).paddingInner(1))}function hR(e){return function(){return e}}function gu(e){return+e}var cb=[0,1];function Xe(e){return e}function dy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:hR(isNaN(t)?NaN:.5)}function pR(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function dR(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=dy(i,n),a=r(o,a)):(n=dy(n,i),a=r(a,o)),function(s){return a(n(s))}}function mR(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=dy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=_l(e,s,1,n)-1;return a[l](i[l](s))}}function xl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Oc(){var e=cb,t=cb,r=fa,n,i,a,o=Xe,s,l,u;function c(){var h=Math.min(e.length,t.length);return o!==Xe&&(o=pR(e[0],e[h-1])),s=h>2?mR:dR,l=u=null,f}function f(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((u||(u=s(t,e.map(n),nn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,gu),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=nv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:Xe,c()):o!==Xe},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function cv(){return Oc()(Xe,Xe)}function yR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vu(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ka(e){return e=vu(Math.abs(e)),e?e[1]:NaN}function gR(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function vR(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var bR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function js(e){if(!(t=bR.exec(e)))throw new Error("invalid format: "+e);var t;return new fv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}js.prototype=fv.prototype;function fv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _R(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var xT;function xR(e,t){var r=vu(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(xT=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+vu(e,Math.max(0,t+a-1))[0]}function fb(e,t){var r=vu(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const hb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fb(e*100,t),r:fb,s:xR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pb(e){return e}var db=Array.prototype.map,mb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wR(e){var t=e.grouping===void 0||e.thousands===void 0?pb:gR(db.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pb:vR(db.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=js(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,v=f.width,w=f.comma,b=f.precision,_=f.trim,g=f.type;g==="n"?(w=!0,g="g"):hb[g]||(b===void 0&&(b=12),_=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var x=m==="$"?r:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?n:/[%p]/.test(g)?o:"",A=hb[g],T=/[defgprs%]/.test(g);b=b===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function C(P){var E=x,M=S,$,j,k;if(g==="c")M=A(P)+M,P="";else{P=+P;var I=P<0||1/P<0;if(P=isNaN(P)?l:A(Math.abs(P),b),_&&(P=_R(P)),I&&+P==0&&y!=="+"&&(I=!1),E=(I?y==="("?y:s:y==="-"||y==="("?"":y)+E,M=(g==="s"?mb[8+xT/3]:"")+M+(I&&y==="("?")":""),T){for($=-1,j=P.length;++$<j;)if(k=P.charCodeAt($),48>k||k>57){M=(k===46?i+P.slice($+1):P.slice($))+M,P=P.slice(0,$);break}}}w&&!d&&(P=t(P,1/0));var q=E.length+P.length+M.length,F=q<v?new Array(v-q+1).join(h):"";switch(w&&d&&(P=t(F+P,F.length?v-M.length:1/0),F=""),p){case"<":P=E+P+M+F;break;case"=":P=E+F+P+M;break;case"^":P=F.slice(0,q=F.length>>1)+E+P+M+F.slice(q);break;default:P=F+E+P+M;break}return a(P)}return C.toString=function(){return f+""},C}function c(f,h){var p=u((f=js(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Ka(h)/3)))*3,m=Math.pow(10,-y),d=mb[8+y/3];return function(v){return p(m*v)+d}}return{format:u,formatPrefix:c}}var Ll,hv,wT;SR({thousands:",",grouping:[3],currency:["$",""]});function SR(e){return Ll=wR(e),hv=Ll.format,wT=Ll.formatPrefix,Ll}function AR(e){return Math.max(0,-Ka(Math.abs(e)))}function OR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ka(t)/3)))*3-Ka(Math.abs(e)))}function TR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ka(t)-Ka(e))+1}function ST(e,t,r,n){var i=hy(e,t,r),a;switch(n=js(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=OR(i,o))&&(n.precision=a),wT(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=TR(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=AR(i))&&(n.precision=a-(n.type==="%")*2);break}}return hv(n)}function vi(e){var t=e.domain;return e.ticks=function(r){var n=t();return cy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ST(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=fy(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function na(){var e=cv();return e.copy=function(){return xl(e,na())},Hr.apply(e,arguments),vi(e)}function AT(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,gu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return AT(e).unknown(t)},e=arguments.length?Array.from(e,gu):[0,1],vi(r)}function OT(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function yb(e){return Math.log(e)}function gb(e){return Math.exp(e)}function PR(e){return-Math.log(-e)}function ER(e){return-Math.exp(-e)}function CR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MR(e){return e===10?CR:e===Math.E?Math.exp:t=>Math.pow(e,t)}function kR(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vb(e){return(t,r)=>-e(-t,r)}function pv(e){const t=e(yb,gb),r=t.domain;let n=10,i,a;function o(){return i=kR(n),a=MR(n),r()[0]<0?(i=vb(i),a=vb(a),e(PR,ER)):e(yb,gb),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let h=i(u),p=i(c),y,m;const d=s==null?10:+s;let v=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;v.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;v.push(m)}v.length*2<d&&(v=cy(u,c,d))}else v=cy(h,p,Math.min(p-h,d)).map(a);return f?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=js(l)).precision==null&&(l.trim=!0),l=hv(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(OT(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function TT(){const e=pv(Oc()).domain([1,10]);return e.copy=()=>xl(e,TT()).base(e.base()),Hr.apply(e,arguments),e}function bb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _b(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function dv(e){var t=1,r=e(bb(t),_b(t));return r.constant=function(n){return arguments.length?e(bb(t=+n),_b(t)):t},vi(r)}function PT(){var e=dv(Oc());return e.copy=function(){return xl(e,PT()).constant(e.constant())},Hr.apply(e,arguments)}function xb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $R(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jR(e){return e<0?-e*e:e*e}function mv(e){var t=e(Xe,Xe),r=1;function n(){return r===1?e(Xe,Xe):r===.5?e($R,jR):e(xb(r),xb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},vi(t)}function yv(){var e=mv(Oc());return e.copy=function(){return xl(e,yv()).exponent(e.exponent())},Hr.apply(e,arguments),e}function RR(){return yv.apply(null,arguments).exponent(.5)}function wb(e){return Math.sign(e)*e*e}function DR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ET(){var e=cv(),t=[0,1],r=!1,n;function i(a){var o=DR(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(wb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,gu)).map(wb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ET(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Hr.apply(i,arguments),vi(i)}function CT(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=cR(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[_l(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(pi),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return CT().domain(e).range(t).unknown(n)},Hr.apply(a,arguments)}function MT(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[_l(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return MT().domain([e,t]).range(i).unknown(a)},Hr.apply(vi(o),arguments)}function kT(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[_l(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return kT().domain(e).range(t).unknown(r)},Hr.apply(i,arguments)}const Tf=new Date,Pf=new Date;function Se(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>Se(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Tf.setTime(+a),Pf.setTime(+o),e(Tf),e(Pf),Math.floor(r(Tf,Pf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const bu=Se(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Se(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bu);bu.range;const Nn=1e3,Lr=Nn*60,Ln=Lr*60,Wn=Ln*24,gv=Wn*7,Sb=Wn*30,Ef=Wn*365,qi=Se(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getUTCSeconds());qi.range;const vv=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nn)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getMinutes());vv.range;const bv=Se(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCMinutes());bv.range;const _v=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nn-e.getMinutes()*Lr)},(e,t)=>{e.setTime(+e+t*Ln)},(e,t)=>(t-e)/Ln,e=>e.getHours());_v.range;const xv=Se(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ln)},(e,t)=>(t-e)/Ln,e=>e.getUTCHours());xv.range;const wl=Se(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Wn,e=>e.getDate()-1);wl.range;const Tc=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wn,e=>e.getUTCDate()-1);Tc.range;const $T=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wn,e=>Math.floor(e/Wn));$T.range;function ha(e){return Se(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Lr)/gv)}const Pc=ha(0),_u=ha(1),IR=ha(2),NR=ha(3),Ya=ha(4),LR=ha(5),BR=ha(6);Pc.range;_u.range;IR.range;NR.range;Ya.range;LR.range;BR.range;function pa(e){return Se(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/gv)}const Ec=pa(0),xu=pa(1),qR=pa(2),FR=pa(3),Xa=pa(4),zR=pa(5),UR=pa(6);Ec.range;xu.range;qR.range;FR.range;Xa.range;zR.range;UR.range;const wv=Se(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wv.range;const Sv=Se(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Sv.range;const Hn=Se(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Hn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Hn.range;const Gn=Se(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Gn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Gn.range;function jT(e,t,r,n,i,a){const o=[[qi,1,Nn],[qi,5,5*Nn],[qi,15,15*Nn],[qi,30,30*Nn],[a,1,Lr],[a,5,5*Lr],[a,15,15*Lr],[a,30,30*Lr],[i,1,Ln],[i,3,3*Ln],[i,6,6*Ln],[i,12,12*Ln],[n,1,Wn],[n,2,2*Wn],[r,1,gv],[t,1,Sb],[t,3,3*Sb],[e,1,Ef]];function s(u,c,f){const h=c<u;h&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:l(u,c,f),y=p?p.range(u,+c+1):[];return h?y.reverse():y}function l(u,c,f){const h=Math.abs(c-u)/f,p=lv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(hy(u/Ef,c/Ef,f));if(p===0)return bu.every(Math.max(hy(u,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,l]}const[WR,HR]=jT(Gn,Sv,Ec,$T,xv,bv),[GR,KR]=jT(Hn,wv,Pc,wl,_v,vv);function Cf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Mf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Uo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function YR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Wo(i),c=Ho(i),f=Wo(a),h=Ho(a),p=Wo(o),y=Ho(o),m=Wo(s),d=Ho(s),v=Wo(l),w=Ho(l),b={a:I,A:q,b:F,B:N,c:null,d:Cb,e:Cb,f:gD,g:PD,G:CD,H:dD,I:mD,j:yD,L:RT,m:vD,M:bD,p:D,q:L,Q:$b,s:jb,S:_D,u:xD,U:wD,V:SD,w:AD,W:OD,x:null,X:null,y:TD,Y:ED,Z:MD,"%":kb},_={a:G,A:Y,b:z,B:V,c:null,d:Mb,e:Mb,f:RD,g:WD,G:GD,H:kD,I:$D,j:jD,L:IT,m:DD,M:ID,p:Q,q:K,Q:$b,s:jb,S:ND,u:LD,U:BD,V:qD,w:FD,W:zD,x:null,X:null,y:UD,Y:HD,Z:KD,"%":kb},g={a:C,A:P,b:E,B:M,c:$,d:Pb,e:Pb,f:cD,g:Tb,G:Ob,H:Eb,I:Eb,j:oD,L:uD,m:aD,M:sD,p:T,q:iD,Q:hD,s:pD,S:lD,u:QR,U:tD,V:eD,w:JR,W:rD,x:j,X:k,y:Tb,Y:Ob,Z:nD,"%":fD};b.x=x(r,b),b.X=x(n,b),b.c=x(t,b),_.x=x(r,_),_.X=x(n,_),_.c=x(t,_);function x(B,H){return function(Z){var R=[],ot=-1,U=0,nt=B.length,ft,st,ht;for(Z instanceof Date||(Z=new Date(+Z));++ot<nt;)B.charCodeAt(ot)===37&&(R.push(B.slice(U,ot)),(st=Ab[ft=B.charAt(++ot)])!=null?ft=B.charAt(++ot):st=ft==="e"?" ":"0",(ht=H[ft])&&(ft=ht(Z,st)),R.push(ft),U=ot+1);return R.push(B.slice(U,ot)),R.join("")}}function S(B,H){return function(Z){var R=Uo(1900,void 0,1),ot=A(R,B,Z+="",0),U,nt;if(ot!=Z.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(H&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(U=Mf(Uo(R.y,0,1)),nt=U.getUTCDay(),U=nt>4||nt===0?xu.ceil(U):xu(U),U=Tc.offset(U,(R.V-1)*7),R.y=U.getUTCFullYear(),R.m=U.getUTCMonth(),R.d=U.getUTCDate()+(R.w+6)%7):(U=Cf(Uo(R.y,0,1)),nt=U.getDay(),U=nt>4||nt===0?_u.ceil(U):_u(U),U=wl.offset(U,(R.V-1)*7),R.y=U.getFullYear(),R.m=U.getMonth(),R.d=U.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),nt="Z"in R?Mf(Uo(R.y,0,1)).getUTCDay():Cf(Uo(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(nt+5)%7:R.w+R.U*7-(nt+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,Mf(R)):Cf(R)}}function A(B,H,Z,R){for(var ot=0,U=H.length,nt=Z.length,ft,st;ot<U;){if(R>=nt)return-1;if(ft=H.charCodeAt(ot++),ft===37){if(ft=H.charAt(ot++),st=g[ft in Ab?H.charAt(ot++):ft],!st||(R=st(B,Z,R))<0)return-1}else if(ft!=Z.charCodeAt(R++))return-1}return R}function T(B,H,Z){var R=u.exec(H.slice(Z));return R?(B.p=c.get(R[0].toLowerCase()),Z+R[0].length):-1}function C(B,H,Z){var R=p.exec(H.slice(Z));return R?(B.w=y.get(R[0].toLowerCase()),Z+R[0].length):-1}function P(B,H,Z){var R=f.exec(H.slice(Z));return R?(B.w=h.get(R[0].toLowerCase()),Z+R[0].length):-1}function E(B,H,Z){var R=v.exec(H.slice(Z));return R?(B.m=w.get(R[0].toLowerCase()),Z+R[0].length):-1}function M(B,H,Z){var R=m.exec(H.slice(Z));return R?(B.m=d.get(R[0].toLowerCase()),Z+R[0].length):-1}function $(B,H,Z){return A(B,t,H,Z)}function j(B,H,Z){return A(B,r,H,Z)}function k(B,H,Z){return A(B,n,H,Z)}function I(B){return o[B.getDay()]}function q(B){return a[B.getDay()]}function F(B){return l[B.getMonth()]}function N(B){return s[B.getMonth()]}function D(B){return i[+(B.getHours()>=12)]}function L(B){return 1+~~(B.getMonth()/3)}function G(B){return o[B.getUTCDay()]}function Y(B){return a[B.getUTCDay()]}function z(B){return l[B.getUTCMonth()]}function V(B){return s[B.getUTCMonth()]}function Q(B){return i[+(B.getUTCHours()>=12)]}function K(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var H=x(B+="",b);return H.toString=function(){return B},H},parse:function(B){var H=S(B+="",!1);return H.toString=function(){return B},H},utcFormat:function(B){var H=x(B+="",_);return H.toString=function(){return B},H},utcParse:function(B){var H=S(B+="",!0);return H.toString=function(){return B},H}}}var Ab={"-":"",_:" ",0:"0"},Me=/^\s*\d+/,XR=/^%/,VR=/[\\^$*+?|[\]().{}]/g;function Rt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function ZR(e){return e.replace(VR,"\\$&")}function Wo(e){return new RegExp("^(?:"+e.map(ZR).join("|")+")","i")}function Ho(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function JR(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function QR(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tD(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function eD(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rD(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ob(e,t,r){var n=Me.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iD(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function aD(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Pb(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=Me.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uD(e,t,r){var n=Me.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=Me.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fD(e,t,r){var n=XR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hD(e,t,r){var n=Me.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pD(e,t,r){var n=Me.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Cb(e,t){return Rt(e.getDate(),t,2)}function dD(e,t){return Rt(e.getHours(),t,2)}function mD(e,t){return Rt(e.getHours()%12||12,t,2)}function yD(e,t){return Rt(1+wl.count(Hn(e),e),t,3)}function RT(e,t){return Rt(e.getMilliseconds(),t,3)}function gD(e,t){return RT(e,t)+"000"}function vD(e,t){return Rt(e.getMonth()+1,t,2)}function bD(e,t){return Rt(e.getMinutes(),t,2)}function _D(e,t){return Rt(e.getSeconds(),t,2)}function xD(e){var t=e.getDay();return t===0?7:t}function wD(e,t){return Rt(Pc.count(Hn(e)-1,e),t,2)}function DT(e){var t=e.getDay();return t>=4||t===0?Ya(e):Ya.ceil(e)}function SD(e,t){return e=DT(e),Rt(Ya.count(Hn(e),e)+(Hn(e).getDay()===4),t,2)}function AD(e){return e.getDay()}function OD(e,t){return Rt(_u.count(Hn(e)-1,e),t,2)}function TD(e,t){return Rt(e.getFullYear()%100,t,2)}function PD(e,t){return e=DT(e),Rt(e.getFullYear()%100,t,2)}function ED(e,t){return Rt(e.getFullYear()%1e4,t,4)}function CD(e,t){var r=e.getDay();return e=r>=4||r===0?Ya(e):Ya.ceil(e),Rt(e.getFullYear()%1e4,t,4)}function MD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Rt(t/60|0,"0",2)+Rt(t%60,"0",2)}function Mb(e,t){return Rt(e.getUTCDate(),t,2)}function kD(e,t){return Rt(e.getUTCHours(),t,2)}function $D(e,t){return Rt(e.getUTCHours()%12||12,t,2)}function jD(e,t){return Rt(1+Tc.count(Gn(e),e),t,3)}function IT(e,t){return Rt(e.getUTCMilliseconds(),t,3)}function RD(e,t){return IT(e,t)+"000"}function DD(e,t){return Rt(e.getUTCMonth()+1,t,2)}function ID(e,t){return Rt(e.getUTCMinutes(),t,2)}function ND(e,t){return Rt(e.getUTCSeconds(),t,2)}function LD(e){var t=e.getUTCDay();return t===0?7:t}function BD(e,t){return Rt(Ec.count(Gn(e)-1,e),t,2)}function NT(e){var t=e.getUTCDay();return t>=4||t===0?Xa(e):Xa.ceil(e)}function qD(e,t){return e=NT(e),Rt(Xa.count(Gn(e),e)+(Gn(e).getUTCDay()===4),t,2)}function FD(e){return e.getUTCDay()}function zD(e,t){return Rt(xu.count(Gn(e)-1,e),t,2)}function UD(e,t){return Rt(e.getUTCFullYear()%100,t,2)}function WD(e,t){return e=NT(e),Rt(e.getUTCFullYear()%100,t,2)}function HD(e,t){return Rt(e.getUTCFullYear()%1e4,t,4)}function GD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Xa(e):Xa.ceil(e),Rt(e.getUTCFullYear()%1e4,t,4)}function KD(){return"+0000"}function kb(){return"%"}function $b(e){return+e}function jb(e){return Math.floor(+e/1e3)}var Aa,LT,BT;YD({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function YD(e){return Aa=YR(e),LT=Aa.format,Aa.parse,BT=Aa.utcFormat,Aa.utcParse,Aa}function XD(e){return new Date(e)}function VD(e){return e instanceof Date?+e:+new Date(+e)}function Av(e,t,r,n,i,a,o,s,l,u){var c=cv(),f=c.invert,h=c.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),d=u("%I %p"),v=u("%a %d"),w=u("%b %d"),b=u("%B"),_=u("%Y");function g(x){return(l(x)<x?p:s(x)<x?y:o(x)<x?m:a(x)<x?d:n(x)<x?i(x)<x?v:w:r(x)<x?b:_)(x)}return c.invert=function(x){return new Date(f(x))},c.domain=function(x){return arguments.length?h(Array.from(x,VD)):h().map(XD)},c.ticks=function(x){var S=h();return e(S[0],S[S.length-1],x??10)},c.tickFormat=function(x,S){return S==null?g:u(S)},c.nice=function(x){var S=h();return(!x||typeof x.range!="function")&&(x=t(S[0],S[S.length-1],x??10)),x?h(OT(S,x)):c},c.copy=function(){return xl(c,Av(e,t,r,n,i,a,o,s,l,u))},c}function wu(){return Hr.apply(Av(GR,KR,Hn,wv,Pc,wl,_v,vv,qi,LT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ZD(){return Hr.apply(Av(WR,HR,Gn,Sv,Ec,Tc,xv,bv,qi,BT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Cc(){var e=0,t=1,r,n,i,a,o=Xe,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),u):[o(0),o(1)]}}return u.range=c(fa),u.rangeRound=c(nv),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function bi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qT(){var e=vi(Cc()(Xe));return e.copy=function(){return bi(e,qT())},Xn.apply(e,arguments)}function FT(){var e=pv(Cc()).domain([1,10]);return e.copy=function(){return bi(e,FT()).base(e.base())},Xn.apply(e,arguments)}function zT(){var e=dv(Cc());return e.copy=function(){return bi(e,zT()).constant(e.constant())},Xn.apply(e,arguments)}function Ov(){var e=mv(Cc());return e.copy=function(){return bi(e,Ov()).exponent(e.exponent())},Xn.apply(e,arguments)}function JD(){return Ov.apply(null,arguments).exponent(.5)}function UT(){var e=[],t=Xe;function r(n){if(n!=null&&!isNaN(n=+n))return t((_l(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(pi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>uR(e,a/n))},r.copy=function(){return UT(t).domain(e)},Xn.apply(r,arguments)}function Mc(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Xe,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:l),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(d){var v,w,b;return arguments.length?([v,w,b]=d,u=k$(m,[v,w,b]),p):[u(0),u(.5),u(1)]}}return p.range=y(fa),p.rangeRound=y(nv),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function WT(){var e=vi(Mc()(Xe));return e.copy=function(){return bi(e,WT())},Xn.apply(e,arguments)}function HT(){var e=pv(Mc()).domain([.1,1,10]);return e.copy=function(){return bi(e,HT()).base(e.base())},Xn.apply(e,arguments)}function GT(){var e=dv(Mc());return e.copy=function(){return bi(e,GT()).constant(e.constant())},Xn.apply(e,arguments)}function Tv(){var e=mv(Mc());return e.copy=function(){return bi(e,Tv()).exponent(e.exponent())},Xn.apply(e,arguments)}function QD(){return Tv.apply(null,arguments).exponent(.5)}function Vt(e){return function(){return e}}const KT=Math.cos,Su=Math.sin,un=Math.sqrt,Rb=1e-12,Au=Math.PI,kc=2*Au,my=Math.PI,yy=2*my,Ii=1e-6,tI=yy-Ii;function YT(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function eI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return YT;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class rI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?YT:eI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Ii)if(!(Math.abs(f*l-u*c)>Ii)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=l*l+u*u,d=p*p+y*y,v=Math.sqrt(m),w=Math.sqrt(h),b=a*Math.tan((my-Math.acos((m+h-d)/(2*v*w)))/2),_=b/w,g=b/v;Math.abs(_-1)>Ii&&this._append`L${t+_*c},${r+_*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+g*l},${this._y1=r+g*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Ii||Math.abs(this._y1-c)>Ii)&&this._append`L${u},${c}`,n&&(h<0&&(h=h%yy+yy),h>tI?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:h>Ii&&this._append`A${n},${n},0,${+(h>=my)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Pv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new rI(t)}function Ev(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function XT(e){this._context=e}XT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ia(e){return new XT(e)}function VT(e){return e[0]}function ZT(e){return e[1]}function Cv(e,t){var r=Vt(!0),n=null,i=ia,a=null,o=Pv(s);e=typeof e=="function"?e:e===void 0?VT:Vt(e),t=typeof t=="function"?t:t===void 0?ZT:Vt(t);function s(l){var u,c=(l=Ev(l)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,u,l),+t(f,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Vt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Vt(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Vt(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Fi(e,t,r){var n=null,i=Vt(!0),a=null,o=ia,s=null,l=Pv(u);e=typeof e=="function"?e:e===void 0?VT:Vt(+e),t=typeof t=="function"?t:Vt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ZT:Vt(+r);function u(f){var h,p,y,m=(f=Ev(f)).length,d,v=!1,w,b=new Array(m),_=new Array(m);for(a==null&&(s=o(w=l())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===v)if(v=!v)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(b[y],_[y]);s.lineEnd(),s.areaEnd()}v&&(b[h]=+e(d,h,f),_[h]=+t(d,h,f),s.point(n?+n(d,h,f):b[h],r?+r(d,h,f):_[h]))}if(w)return s=null,w+""||null}function c(){return Cv().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Vt(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Vt(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Vt(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Vt(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Vt(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Vt(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Vt(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class JT{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function nI(e){return new JT(e,!0)}function iI(e){return new JT(e,!1)}const Mv={draw(e,t){const r=un(t/Au);e.moveTo(r,0),e.arc(0,0,r,0,kc)}},aI={draw(e,t){const r=un(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},QT=un(1/3),oI=QT*2,sI={draw(e,t){const r=un(t/oI),n=r*QT;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},lI={draw(e,t){const r=un(t),n=-r/2;e.rect(n,n,r,r)}},uI=.8908130915292852,tP=Su(Au/10)/Su(7*Au/10),cI=Su(kc/10)*tP,fI=-KT(kc/10)*tP,hI={draw(e,t){const r=un(t*uI),n=cI*r,i=fI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=kc*a/5,s=KT(o),l=Su(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},kf=un(3),pI={draw(e,t){const r=-un(t/(kf*3));e.moveTo(0,r*2),e.lineTo(-kf*r,-r),e.lineTo(kf*r,-r),e.closePath()}},jr=-.5,Rr=un(3)/2,gy=1/un(12),dI=(gy/2+1)*3,mI={draw(e,t){const r=un(t/dI),n=r/2,i=r*gy,a=n,o=r*gy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(jr*n-Rr*i,Rr*n+jr*i),e.lineTo(jr*a-Rr*o,Rr*a+jr*o),e.lineTo(jr*s-Rr*l,Rr*s+jr*l),e.lineTo(jr*n+Rr*i,jr*i-Rr*n),e.lineTo(jr*a+Rr*o,jr*o-Rr*a),e.lineTo(jr*s+Rr*l,jr*l-Rr*s),e.closePath()}};function yI(e,t){let r=null,n=Pv(i);e=typeof e=="function"?e:Vt(e||Mv),t=typeof t=="function"?t:Vt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Vt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Vt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ou(){}function Tu(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function eP(e){this._context=e}eP.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:Tu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Tu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gI(e){return new eP(e)}function rP(e){this._context=e}rP.prototype={areaStart:Ou,areaEnd:Ou,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Tu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vI(e){return new rP(e)}function nP(e){this._context=e}nP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Tu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bI(e){return new nP(e)}function Db(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function kv(e,t){this._context=e,this._k=(1-t)/6}kv.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:Db(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Db(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function r(n){return new kv(n,t)}return r.tension=function(n){return e(+n)},r})(0);function _I(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Rb){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Rb){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function iP(e,t){this._context=e,this._alpha=t}iP.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;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(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_I(this,e,t);break}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xI=(function e(t){function r(n){return t?new iP(n,t):new kv(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function aP(e){this._context=e}aP.prototype={areaStart:Ou,areaEnd:Ou,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function wI(e){return new aP(e)}function Ib(e){return e<0?-1:1}function Nb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Ib(a)+Ib(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Lb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function $f(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Pu(e){this._context=e}Pu.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:$f(this,this._t0,Lb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,$f(this,Lb(this,r=Nb(this,e,t)),r);break;default:$f(this,this._t0,r=Nb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function oP(e){this._context=new sP(e)}(oP.prototype=Object.create(Pu.prototype)).point=function(e,t){Pu.prototype.point.call(this,t,e)};function sP(e){this._context=e}sP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function SI(e){return new Pu(e)}function AI(e){return new oP(e)}function lP(e){this._context=e}lP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Bb(e),i=Bb(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Bb(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function OI(e){return new lP(e)}function $c(e,t){this._context=e,this._t=t}$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function TI(e){return new $c(e,.5)}function PI(e){return new $c(e,0)}function EI(e){return new $c(e,1)}function Va(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function vy(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function CI(e,t){return e[t]}function MI(e){const t=[];return t.key=e,t}function Eu(){var e=Vt([]),t=vy,r=Va,n=CI;function i(a){var o=Array.from(e.apply(this,arguments),MI),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=Ev(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Vt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Vt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?vy:typeof a=="function"?a:Vt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Va,i):r},i}function kI(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Va(e,t)}}function $I(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Va(e,t)}}function jI(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,h=c[n-1][1]||0,p=(f-h)/2,y=0;y<s;++y){var m=e[t[y]],d=m[n][1]||0,v=m[n-1][1]||0;p+=d-v}l+=f,u+=p*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Va(e,t)}}function Dn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
2
2
  * GSAP 3.13.0
3
3
  * https://gsap.com
4
4
  *
5
5
  * @license Copyright 2008-2025, GreenSock. All rights reserved.
6
6
  * Subject to the terms at https://gsap.com/standard-license
7
7
  * @author: Jack Doyle, jack@greensock.com
8
- */var pr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},wa={duration:.5,overwrite:!1,delay:0},Vv,Ce,Jt,Sr=1e8,Wt=1/Sr,Nm=Math.PI*2,rI=Nm/4,nI=0,CP=Math.sqrt,iI=Math.cos,aI=Math.sin,Oe=function(t){return typeof t=="string"},oe=function(t){return typeof t=="function"},On=function(t){return typeof t=="number"},Zv=function(t){return typeof t>"u"},en=function(t){return typeof t=="object"},Xe=function(t){return t!==!1},Jv=function(){return typeof window<"u"},uu=function(t){return oe(t)||Oe(t)},MP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Le=Array.isArray,Lm=/(?:-?\.?\d|\.)+/gi,kP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ea=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Vc=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,$P=/[+-]=-?[.\d]+/,jP=/[^,'"\[\]\s]+/gi,oI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ee,Hr,Bm,Qv,mr={},Qu={},DP,RP=function(t){return(Qu=Sa(t,mr))&&er},tg=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},is=function(t,r){return!r&&console.warn(t)},IP=function(t,r){return t&&(mr[t]=r)&&Qu&&(Qu[t]=r)||mr},as=function(){return 0},sI={suppressEvents:!0,isStart:!0,kill:!1},Mu={suppressEvents:!0,kill:!1},uI={suppressEvents:!0},eg={},Wn=[],qm={},NP,lr={},Zc={},a0=30,ku=[],rg="",ng=function(t){var r=t[0],n,i;if(en(r)||oe(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=ku.length;i--&&!ku[i].targetTest(r););n=ku[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new sT(t[i],n)))||t.splice(i,1);return t},bi=function(t){return t._gsap||ng(Or(t))[0]._gsap},LP=function(t,r,n){return(n=t[r])&&oe(n)?t[r]():Zv(n)&&t.getAttribute&&t.getAttribute(r)||n},Ve=function(t,r){return(t=t.split(",")).forEach(r)||t},le=function(t){return Math.round(t*1e5)/1e5||0},de=function(t){return Math.round(t*1e7)/1e7||0},sa=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},lI=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},tl=function(){var t=Wn.length,r=Wn.slice(0),n,i;for(qm={},Wn.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},ig=function(t){return!!(t._initted||t._startAt||t.add)},BP=function(t,r,n,i){Wn.length&&!Ce&&tl(),t.render(r,n,!!(Ce&&r<0&&ig(t))),Wn.length&&!Ce&&tl()},qP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(jP).length<2?r:Oe(t)?t.trim():t},FP=function(t){return t},yr=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},cI=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},Sa=function(t,r){for(var n in r)t[n]=r[n];return t},o0=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=en(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},el=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},Io=function(t){var r=t.parent||ee,n=t.keyframes?cI(Le(t.keyframes)):yr;if(Xe(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},fI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},zP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},nc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},Hn=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},_i=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},hI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Fm=function(t,r,n,i){return t._startAt&&(Ce?t._startAt.revert(Mu):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},pI=function e(t){return!t||t._ts&&e(t.parent)},s0=function(t){return t._repeat?Oa(t._tTime,t=t.duration()+t._rDelay)*t:0},Oa=function(t,r){var n=Math.floor(t=de(t/r));return t&&n===t?n-1:n},rl=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},ic=function(t){return t._end=de(t._start+(t._tDur/Math.abs(t._ts||t._rts||Wt)||0))},ac=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=de(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),ic(t),n._dirty||_i(n,t)),t},UP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=rl(t.rawTime(),r),(!r._dur||Ks(0,r.totalDuration(),n)-r._tTime>Wt)&&r.render(n,!0)),_i(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Wt}},Yr=function(t,r,n,i){return r.parent&&Hn(r),r._start=de((On(n)?n:n||t!==ee?_r(t,n,r):t._time)+r._delay),r._end=de(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),zP(t,r,"_first","_last",t._sort?"_start":0),zm(r)||(t._recent=r),i||UP(t,r),t._ts<0&&ac(t,t._tTime),t},WP=function(t,r){return(mr.ScrollTrigger||tg("scrollTrigger",r))&&mr.ScrollTrigger.create(r,t)},GP=function(t,r,n,i,a){if(og(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!Ce&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&NP!==cr.frame)return Wn.push(t),t._lazy=[a,i],1},dI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},zm=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},mI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&dI(t)&&!(!t._initted&&zm(t))||(t._ts<0||t._dp._ts<0)&&!zm(t))?0:1,s=t._rDelay,u=0,l,c,f;if(s&&t._repeat&&(u=Ks(0,t._tDur,r),c=Oa(u,s),t._yoyo&&c&1&&(o=1-o),c!==Oa(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||Ce||i||t._zTime===Wt||!r&&t._zTime){if(!t._initted&&GP(t,r,i,n,u))return;for(f=t._zTime,t._zTime=r||(n?Wt:0),n||(n=r&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=u,l=t._pt;l;)l.r(o,l.d),l=l._next;r<0&&Fm(t,r,n,!0),t._onUpdate&&!n&&hr(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&hr(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&Hn(t,1),!n&&!Ce&&(hr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},yI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},Aa=function(t,r,n,i){var a=t._repeat,o=de(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:de(o*(a+1)+t._rDelay*a):o,s>0&&!i&&ac(t,t._tTime=t._tDur*s),t.parent&&ic(t),n||_i(t.parent,t),t},u0=function(t){return t instanceof qe?_i(t):Aa(t,t._dur)},vI={_start:0,endTime:as,totalDuration:as},_r=function e(t,r,n){var i=t.labels,a=t._recent||vI,o=t.duration()>=Sr?a.endTime(!1):t._dur,s,u,l;return Oe(r)&&(isNaN(r)||r in i)?(u=r.charAt(0),l=r.substr(-1)==="%",s=r.indexOf("="),u==="<"||u===">"?(s>=0&&(r=r.replace(/=/,"")),(u==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(l?(s<0?a:n).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(u=parseFloat(r.charAt(s-1)+r.substr(s+1)),l&&n&&(u=u/100*(Le(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+u:o+u)):r==null?o:+r},No=function(t,r,n){var i=On(r[1]),a=(i?2:1)+(t<2?0:1),o=r[a],s,u;if(i&&(o.duration=r[1]),o.parent=n,t){for(s=o,u=n;u&&!("immediateRender"in s);)s=u.vars.defaults||{},u=Xe(u.vars.inherit)&&u.parent;o.immediateRender=Xe(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new pe(r[0],o,r[a+1])},Vn=function(t,r){return t||t===0?r(t):r},Ks=function(t,r,n){return n<t?t:n>r?r:n},Ne=function(t,r){return!Oe(t)||!(r=oI.exec(t))?"":r[1]},gI=function(t,r,n){return Vn(n,function(i){return Ks(t,r,i)})},Um=[].slice,HP=function(t,r){return t&&en(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&en(t[0]))&&!t.nodeType&&t!==Hr},bI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return Oe(i)&&!r||HP(i,1)?(a=n).push.apply(a,Or(i)):n.push(i)})||n},Or=function(t,r,n){return Jt&&!r&&Jt.selector?Jt.selector(t):Oe(t)&&!n&&(Bm||!Pa())?Um.call((r||Qv).querySelectorAll(t),0):Le(t)?bI(t,n):HP(t)?Um.call(t,0):t?[t]:[]},Wm=function(t){return t=Or(t)[0]||is("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Or(r,n.querySelectorAll?n:n===t?is("Invalid scope")||Qv.createElement("div"):t)}},KP=function(t){return t.sort(function(){return .5-Math.random()})},YP=function(t){if(oe(t))return t;var r=en(t)?t:{each:t},n=xi(r.ease),i=r.from||0,a=parseFloat(r.base)||0,o={},s=i>0&&i<1,u=isNaN(i)||s,l=r.axis,c=i,f=i;return Oe(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&u&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],g,_,b,x,v,w,S,A,P;if(!d){if(P=r.grid==="auto"?0:(r.grid||[1,Sr])[1],!P){for(S=-Sr;S<(S=y[P++].getBoundingClientRect().left)&&P<m;);P<m&&P--}for(d=o[m]=[],g=u?Math.min(P,m)*c-.5:i%P,_=P===Sr?0:u?m*f/P-.5:i/P|0,S=0,A=Sr,w=0;w<m;w++)b=w%P-g,x=_-(w/P|0),d[w]=v=l?Math.abs(l==="y"?x:b):CP(b*b+x*x),v>S&&(S=v),v<A&&(A=v);i==="random"&&KP(d),d.max=S-A,d.min=A,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(P>m?m-1:l?l==="y"?m/P:P:Math.max(P,m/P))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=Ne(r.amount||r.each)||0,n=n&&m<0?iT(n):n}return m=(d[h]-d.min)/d.max||0,de(d.b+(n?n(m):m)*d.v)+d.u}},Gm=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=de(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(On(n)?0:Ne(n))}},XP=function(t,r){var n=Le(t),i,a;return!n&&en(t)&&(i=n=t.radius||Sr,t.values?(t=Or(t.values),(a=!On(t[0]))&&(i*=i)):t=Gm(t.increment)),Vn(r,n?oe(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),u=parseFloat(a?o.y:0),l=Sr,c=0,f=t.length,h,p;f--;)a?(h=t[f].x-s,p=t[f].y-u,h=h*h+p*p):h=Math.abs(t[f]-s),h<l&&(l=h,c=f);return c=!i||l<=i?t[c]:o,a||c===o||On(o)?c:c+Ne(o)}:Gm(t))},VP=function(t,r,n,i){return Vn(Le(t)?!r:n===!0?!!(n=0):!i,function(){return Le(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},_I=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},xI=function(t,r){return function(n){return t(parseFloat(n))+(r||Ne(n))}},wI=function(t,r,n){return JP(t,r,0,1,n)},ZP=function(t,r,n){return Vn(n,function(i){return t[~~r(i)]})},SI=function e(t,r,n){var i=r-t;return Le(t)?ZP(t,e(0,t.length),r):Vn(n,function(a){return(i+(a-t)%i)%i+t})},OI=function e(t,r,n){var i=r-t,a=i*2;return Le(t)?ZP(t,e(0,t.length-1),r):Vn(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},os=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?jP:Lm),n+=t.substr(r,i-r)+VP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},JP=function(t,r,n,i,a){var o=r-t,s=i-n;return Vn(a,function(u){return n+((u-t)/o*s||0)})},AI=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=Oe(t),s={},u,l,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Le(t)&&!Le(r)){for(c=[],f=t.length,h=f-2,l=1;l<f;l++)c.push(e(t[l-1],t[l]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=Sa(Le(t)?[]:{},t));if(!c){for(u in r)ag.call(s,t,u,"get",r[u]);a=function(y){return lg(y,s)||(o?t.p:t)}}}return Vn(n,a)},l0=function(t,r,n){var i=t.labels,a=Sr,o,s,u;for(o in i)s=i[o]-r,s<0==!!n&&s&&a>(s=Math.abs(s))&&(u=o,a=s);return u},hr=function(t,r,n){var i=t.vars,a=i[r],o=Jt,s=t._ctx,u,l,c;if(a)return u=i[r+"Params"],l=i.callbackScope||t,n&&Wn.length&&tl(),s&&(Jt=s),c=u?a.apply(l,u):a.call(l),Jt=o,c},Mo=function(t){return Hn(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Ce),t.progress()<1&&hr(t,"onInterrupt"),t},ra,QP=[],tT=function(t){if(t)if(t=!t.name&&t.default||t,Jv()||t.headless){var r=t.name,n=oe(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:as,render:lg,add:ag,kill:FI,modifier:qI,rawVars:0},o={targetTest:0,get:0,getSetter:ug,aliases:{},register:0};if(Pa(),t!==i){if(lr[r])return;yr(i,yr(el(t,a),o)),Sa(i.prototype,Sa(a,el(t,o))),lr[i.prop=r]=i,t.targetTest&&(ku.push(i),eg[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}IP(r,i),t.register&&t.register(er,i,Ze)}else QP.push(t)},Ut=255,ko={aqua:[0,Ut,Ut],lime:[0,Ut,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ut],navy:[0,0,128],white:[Ut,Ut,Ut],olive:[128,128,0],yellow:[Ut,Ut,0],orange:[Ut,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ut,0,0],pink:[Ut,192,203],cyan:[0,Ut,Ut],transparent:[Ut,Ut,Ut,0]},Jc=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*Ut+.5|0},eT=function(t,r,n){var i=t?On(t)?[t>>16,t>>8&Ut,t&Ut]:0:ko.black,a,o,s,u,l,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ko[t])i=ko[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Ut,i&Ut,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Ut,t&Ut]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(Lm),!r)u=+i[0]%360/360,l=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(l+1):c+l-c*l,a=c*2-o,i.length>3&&(i[3]*=1),i[0]=Jc(u+1/3,a,o),i[1]=Jc(u,a,o),i[2]=Jc(u-1/3,a,o);else if(~t.indexOf("="))return i=t.match(kP),n&&i.length<4&&(i[3]=1),i}else i=t.match(Lm)||ko.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Ut,o=i[1]/Ut,s=i[2]/Ut,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?u=l=0:(p=f-h,l=c>.5?p/(2-f-h):p/(f+h),u=f===a?(o-s)/p+(o<s?6:0):f===o?(s-a)/p+2:(a-o)/p+4,u*=60),i[0]=~~(u+.5),i[1]=~~(l*100+.5),i[2]=~~(c*100+.5)),n&&i.length<4&&(i[3]=1),i},rT=function(t){var r=[],n=[],i=-1;return t.split(Gn).forEach(function(a){var o=a.match(ea)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},c0=function(t,r,n){var i="",a=(t+i).match(Gn),o=r?"hsla(":"rgba(",s=0,u,l,c,f;if(!a)return t;if(a=a.map(function(h){return(h=eT(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=rT(t),u=n.c,u.join(i)!==c.c.join(i)))for(l=t.replace(Gn,"1").split(ea),f=l.length-1;s<f;s++)i+=l[s]+(~u.indexOf(s)?a.shift()||o+"0,0,0,0)":(c.length?c:a.length?a:n).shift());if(!l)for(l=t.split(Gn),f=l.length-1;s<f;s++)i+=l[s]+a[s];return i+l[f]},Gn=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ko)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),PI=/hsl[a]?\(/,nT=function(t){var r=t.join(" "),n;if(Gn.lastIndex=0,Gn.test(r))return n=PI.test(r),t[1]=c0(t[1],n),t[0]=c0(t[0],n,rT(t[1])),!0},ss,cr=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],u,l,c,f,h,p,y=function m(d){var g=e()-i,_=d===!0,b,x,v,w;if((g>t||g<0)&&(n+=g-r),i+=g,v=i-n,b=v-o,(b>0||_)&&(w=++f.frame,h=v-f.time*1e3,f.time=v=v/1e3,o+=b+(b>=a?4:a-b),x=1),_||(u=l(m)),x)for(p=0;p<s.length;p++)s[p](v,h,w,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){DP&&(!Bm&&Jv()&&(Hr=Bm=window,Qv=Hr.document||{},mr.gsap=er,(Hr.gsapVersions||(Hr.gsapVersions=[])).push(er.version),RP(Qu||Hr.GreenSockGlobals||!Hr.gsap&&Hr||{}),QP.forEach(tT)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&f.sleep(),l=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},ss=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),ss=0,l=as},lagSmoothing:function(d,g){t=d||1/0,r=Math.min(g||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,g,_){var b=g?function(x,v,w,S){d(x,v,w,S),f.remove(b)}:d;return f.remove(d),s[_?"unshift":"push"](b),Pa(),b},remove:function(d,g){~(g=s.indexOf(d))&&s.splice(g,1)&&p>=g&&p--},_listeners:s},f})(),Pa=function(){return!ss&&cr.wake()},Pt={},TI=/^[\d.\-M][\d.\-,\s]/,EI=/["']/g,CI=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,o=n.length,s,u,l;a<o;a++)u=n[a],s=a!==o-1?u.lastIndexOf(","):u.length,l=u.substr(0,s),r[i]=isNaN(l)?l.replace(EI,"").trim():+l,i=u.substr(s+1).trim();return r},MI=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},kI=function(t){var r=(t+"").split("("),n=Pt[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[CI(r[1])]:MI(t).split(",").map(qP)):Pt._CE&&TI.test(t)?Pt._CE("",t):n},iT=function(t){return function(r){return 1-t(1-r)}},aT=function e(t,r){for(var n=t._first,i;n;)n instanceof qe?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},xi=function(t,r){return t&&(oe(t)?t:Pt[t]||kI(t))||r},Bi=function(t,r,n,i){n===void 0&&(n=function(u){return 1-r(1-u)}),i===void 0&&(i=function(u){return u<.5?r(u*2)/2:1-r((1-u)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},o;return Ve(t,function(s){Pt[s]=mr[s]=a,Pt[o=s.toLowerCase()]=n;for(var u in a)Pt[o+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=Pt[s+"."+u]=a[u]}),a},oT=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},Qc=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/Nm*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*aI((c-o)*a)+1},u=t==="out"?s:t==="in"?function(l){return 1-s(1-l)}:oT(s);return a=Nm/a,u.config=function(l,c){return e(t,l,c)},u},tf=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:oT(n);return i.config=function(a){return e(t,a)},i};Ve("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;Bi(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Pt.Linear.easeNone=Pt.none=Pt.Linear.easeIn;Bi("Elastic",Qc("in"),Qc("out"),Qc());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};Bi("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);Bi("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});Bi("Circ",function(e){return-(CP(1-e*e)-1)});Bi("Sine",function(e){return e===1?1:-iI(e*rI)+1});Bi("Back",tf("in"),tf("out"),tf());Pt.SteppedEase=Pt.steps=mr.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,o=1-Wt;return function(s){return((i*Ks(0,o,s)|0)+a)*n}}};wa.ease=Pt["quad.out"];Ve("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return rg+=e+","+e+"Params,"});var sT=function(t,r){this.id=nI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:LP,this.set=r?r.getSetter:ug},us=(function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,Aa(this,+r.duration,1,1),this.data=r.data,Jt&&(this._ctx=Jt,Jt.data.push(this)),ss||cr.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,Aa(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(Pa(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(ac(this,n),!a._dp||a.parent||UP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&Yr(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Wt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),BP(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+s0(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+s0(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?Oa(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Wt?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?rl(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Wt?0:this._rts,this.totalTime(Ks(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),ic(this),hI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Pa(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Wt&&(this._tTime-=Wt)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Yr(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(Xe(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?rl(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=uI);var i=Ce;return Ce=n,ig(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Ce=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,u0(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,u0(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(_r(this,n),Xe(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,Xe(i)),this._dur||(this._zTime=-Wt),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Wt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Wt,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-Wt)},t.eventCallback=function(n,i,a){var o=this.vars;return arguments.length>1?(i?(o[n]=i,a&&(o[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(a){var o=oe(n)?n:FP,s=function(){var l=i.then;i.then=null,oe(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=l),a(o),i.then=l};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},t.kill=function(){Mo(this)},e})();yr(us.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Wt,_prom:0,_ps:!1,_rts:1});var qe=(function(e){EP(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=Xe(n.sortChildren),ee&&Yr(n.parent||ee,hn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&WP(hn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return No(0,arguments,this),this},r.from=function(i,a,o){return No(1,arguments,this),this},r.fromTo=function(i,a,o,s){return No(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,Io(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new pe(i,a,_r(this,o),1),this},r.call=function(i,a,o){return Yr(this,pe.delayedCall(0,i,a),o)},r.staggerTo=function(i,a,o,s,u,l,c){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=l,o.onCompleteParams=c,o.parent=this,new pe(i,o,_r(this,u)),this},r.staggerFrom=function(i,a,o,s,u,l,c){return o.runBackwards=1,Io(o).immediateRender=Xe(o.immediateRender),this.staggerTo(i,a,o,s,u,l,c)},r.staggerFromTo=function(i,a,o,s,u,l,c,f){return s.startAt=o,Io(s).immediateRender=Xe(s.immediateRender),this.staggerTo(i,a,s,u,l,c,f)},r.render=function(i,a,o){var s=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=i<=0?0:de(i),f=this._zTime<0!=i<0&&(this._initted||!l),h,p,y,m,d,g,_,b,x,v,w,S;if(this!==ee&&c>u&&i>=0&&(c=u),c!==this._tTime||o||f){if(s!==this._time&&l&&(c+=this._time-s,i+=this._time-s),h=c,x=this._start,b=this._ts,g=!b,f&&(l||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,d=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=de(c%d),c===u?(m=this._repeat,h=l):(v=de(c/d),m=~~v,m&&m===v&&(h=l,m--),h>l&&(h=l)),v=Oa(this._tTime,d),!s&&this._tTime&&v!==m&&this._tTime-v*d-this._dur<=0&&(v=m),w&&m&1&&(h=l-h,S=1),m!==v&&!this._lock){var A=w&&v&1,P=A===(w&&m&1);if(m<v&&(A=!A),s=A?0:c%l?l:c,this._lock=1,this.render(s||(S?0:de(m*d)),a,!l)._lock=0,this._tTime=c,!a&&this.parent&&hr(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||g!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,P&&(this._lock=2,s=A?l:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!g)return this;aT(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(_=yI(this,de(s),de(h)),_&&(c-=h-(h=_._start))),this._tTime=c,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!v&&(hr(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(p=this._first;p;){if(y=p._next,(p._act||h>=p._start)&&p._ts&&_!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,o),h!==this._time||!this._ts&&!g){_=0,y&&(c+=this._zTime=-Wt);break}}p=y}else{p=this._last;for(var C=i<0?i:h;p;){if(y=p._prev,(p._act||C<=p._end)&&p._ts&&_!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(C-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(C-p._start)*p._ts,a,o||Ce&&ig(p)),h!==this._time||!this._ts&&!g){_=0,y&&(c+=this._zTime=C?-Wt:Wt);break}}p=y}}if(_&&!a&&(this.pause(),_.render(h>=s?0:-Wt)._zTime=h>=s?1:-1,this._ts))return this._start=x,ic(this),this.render(i,a,o);this._onUpdate&&!a&&hr(this,"onUpdate",!0),(c===u&&this._tTime>=this.totalDuration()||!c&&s)&&(x===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(c===u&&this._ts>0||!c&&this._ts<0)&&Hn(this,1),!a&&!(i<0&&!s)&&(c||s||!u)&&(hr(this,c===u&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<u&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var o=this;if(On(a)||(a=_r(this,a,i)),!(i instanceof us)){if(Le(i))return i.forEach(function(s){return o.add(s,a)}),this;if(Oe(i))return this.addLabel(i,a);if(oe(i))i=pe.delayedCall(0,i);else return this}return this!==i?Yr(this,i,a):this},r.getChildren=function(i,a,o,s){i===void 0&&(i=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Sr);for(var u=[],l=this._first;l;)l._start>=s&&(l instanceof pe?a&&u.push(l):(o&&u.push(l),i&&u.push.apply(u,l.getChildren(!0,a,o)))),l=l._next;return u},r.getById=function(i){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===i)return a[o]},r.remove=function(i){return Oe(i)?this.removeLabel(i):oe(i)?this.killTweensOf(i):(i.parent===this&&nc(this,i),i===this._recent&&(this._recent=this._last),_i(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=de(cr.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=_r(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=pe.delayedCall(0,a||as,o);return s.data="isPause",this._hasPause=1,Yr(this,s,_r(this,i))},r.removePause=function(i){var a=this._first;for(i=_r(this,i);a;)a._start===i&&a.data==="isPause"&&Hn(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),u=s.length;u--;)Nn!==s[u]&&s[u].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Or(i),u=this._first,l=On(a),c;u;)u instanceof pe?lI(u._targets,s)&&(l?(!Nn||u._initted&&u._ts)&&u.globalTime(0)<=a&&u.globalTime(u.totalDuration())>a:!a||u.isActive())&&o.push(u):(c=u.getTweensOf(s,a)).length&&o.push.apply(o,c),u=u._next;return o},r.tweenTo=function(i,a){a=a||{};var o=this,s=_r(o,i),u=a,l=u.startAt,c=u.onStart,f=u.onStartParams,h=u.immediateRender,p,y=pe.to(o,yr({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale())||Wt,onStart:function(){if(o.pause(),!p){var d=a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale());y._dur!==d&&Aa(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,yr({startAt:{time:_r(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),l0(this,_r(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),l0(this,_r(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Wt)},r.shiftChildren=function(i,a,o){o===void 0&&(o=0);for(var s=this._first,u=this.labels,l;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(a)for(l in u)u[l]>=o&&(u[l]+=i);return _i(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),_i(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,u=Sr,l,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;s;)l=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>u&&o._sort&&s._ts&&!o._lock?(o._lock=1,Yr(o,s,c-s._delay,1)._lock=0):u=c,c<0&&s._ts&&(a-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),u=0),s._end>a&&s._ts&&(a=s._end),s=l;Aa(o,o===ee&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(ee._ts&&(BP(ee,rl(i,ee)),NP=cr.frame),cr.frame>=a0){a0+=pr.autoSleep||120;var a=ee._first;if((!a||!a._ts)&&pr.autoSleep&&cr._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||cr.sleep()}}},t})(us);yr(qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var $I=function(t,r,n,i,a,o,s){var u=new Ze(this._pt,t,r,0,1,pT,null,a),l=0,c=0,f,h,p,y,m,d,g,_;for(u.b=n,u.e=i,n+="",i+="",(g=~i.indexOf("random("))&&(i=os(i)),o&&(_=[n,i],o(_,t,r),n=_[0],i=_[1]),h=n.match(Vc)||[];f=Vc.exec(i);)y=f[0],m=i.substring(l,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?sa(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},l=Vc.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=s,($P.test(i)||g)&&(u.e=0),this._pt=u,u},ag=function(t,r,n,i,a,o,s,u,l,c){oe(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:oe(f)?l?t[r.indexOf("set")||!oe(t["get"+r.substr(3)])?r:"get"+r.substr(3)](l):t[r]():f,p=oe(f)?l?NI:fT:sg,y;if(Oe(i)&&(~i.indexOf("random(")&&(i=os(i)),i.charAt(1)==="="&&(y=sa(h,i)+(Ne(h)||0),(y||y===0)&&(i=y))),!c||h!==i||Hm)return!isNaN(h*i)&&i!==""?(y=new Ze(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?BI:hT,0,p),l&&(y.fp=l),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&tg(r,i),$I.call(this,t,r,h,i,p,u||pr.stringFilter,l))},jI=function(t,r,n,i,a){if(oe(t)&&(t=Lo(t,a,r,n,i)),!en(t)||t.style&&t.nodeType||Le(t)||MP(t))return Oe(t)?Lo(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=Lo(t[s],a,r,n,i);return o},uT=function(t,r,n,i,a,o){var s,u,l,c;if(lr[t]&&(s=new lr[t]).init(a,s.rawVars?r[t]:jI(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=u=new Ze(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==ra))for(l=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)l[s._props[c]]=u;return s},Nn,Hm,og=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,u=i.lazy,l=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,g=t.parent,_=g&&g.data==="nested"?g.vars.targets:d,b=t._overwrite==="auto"&&!Vv,x=t.timeline,v,w,S,A,P,C,T,E,k,j,$,M,I;if(x&&(!h||!a)&&(a="none"),t._ease=xi(a,wa.ease),t._yEase=f?iT(xi(f===!0?a:f,wa.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!x&&!!i.runBackwards,!x||h&&!i.stagger){if(E=d[0]?bi(d[0]).harness:0,M=E&&i[E.prop],v=el(i,eg),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?Mu:sI),m._lazy=0),o){if(Hn(t._startAt=pe.set(d,yr({data:"isStart",overwrite:!1,parent:g,immediateRender:!0,lazy:!m&&Xe(u),startAt:null,delay:0,onUpdate:l&&function(){return hr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Ce||!s&&!p)&&t._startAt.revert(Mu),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=yr({overwrite:!1,data:"isFromStart",lazy:s&&!m&&Xe(u),immediateRender:s,stagger:0,parent:g},v),M&&(S[E.prop]=M),Hn(t._startAt=pe.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Ce?t._startAt.revert(Mu):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Wt,Wt);else if(!r)return}for(t._pt=t._ptCache=0,u=y&&Xe(u)||u&&!y,w=0;w<d.length;w++){if(P=d[w],T=P._gsap||ng(d)[w]._gsap,t._ptLookup[w]=j={},qm[T.id]&&Wn.length&&tl(),$=_===d?w:_.indexOf(P),E&&(k=new E).init(P,M||v,t,$,_)!==!1&&(t._pt=A=new Ze(t._pt,P,k.name,0,1,k.render,k,0,k.priority),k._props.forEach(function(L){j[L]=A}),k.priority&&(C=1)),!E||M)for(S in v)lr[S]&&(k=uT(S,v,t,$,P,_))?k.priority&&(C=1):j[S]=A=ag.call(t,P,S,"get",v[S],$,_,0,i.stringFilter);t._op&&t._op[w]&&t.kill(P,t._op[w]),b&&t._pt&&(Nn=t,ee.killTweensOf(P,j,t.globalTime(r)),I=!t.parent,Nn=0),t._pt&&u&&(qm[T.id]=1)}C&&dT(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!I,h&&r<=0&&x.render(Sr,!0,!0)},DI=function(t,r,n,i,a,o,s,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[r],c,f,h,p;if(!l)for(l=t._ptCache[r]=[],h=t._ptLookup,p=t._targets.length;p--;){if(c=h[p][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return Hm=1,t.vars[r]="+=0",og(t,s),Hm=0,u?is(r+" not eligible for reset"):1;l.push(c)}for(p=l.length;p--;)f=l[p],c=f._pt||f,c.s=(i||i===0)&&!a?i:c.s+(i||0)+o*c.c,c.c=n-c.s,f.e&&(f.e=le(n)+Ne(f.e)),f.b&&(f.b=c.s+Ne(f.b))},RI=function(t,r){var n=t[0]?bi(t[0]).harness:0,i=n&&n.aliases,a,o,s,u;if(!i)return r;a=Sa({},r);for(o in i)if(o in a)for(u=i[o].split(","),s=u.length;s--;)a[u[s]]=a[o];return a},II=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Le(r))s=n[t]||(n[t]=[]),r.forEach(function(u,l){return s.push({t:l/(r.length-1)*100,v:u,e:a})});else for(o in r)s=n[o]||(n[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:r[o],e:a})},Lo=function(t,r,n,i,a){return oe(t)?t.call(r,n,i,a):Oe(t)&&~t.indexOf("random(")?os(t):t},lT=rg+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",cT={};Ve(lT+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return cT[e]=1});var pe=(function(e){EP(t,e);function t(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=e.call(this,o?i:Io(i))||this;var u=s.vars,l=u.duration,c=u.delay,f=u.immediateRender,h=u.stagger,p=u.overwrite,y=u.keyframes,m=u.defaults,d=u.scrollTrigger,g=u.yoyoEase,_=i.parent||ee,b=(Le(n)||MP(n)?On(n[0]):"length"in i)?[n]:Or(n),x,v,w,S,A,P,C,T;if(s._targets=b.length?ng(b):is("GSAP target "+n+" not found. https://gsap.com",!pr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||uu(l)||uu(c)){if(i=s.vars,x=s.timeline=new qe({data:"nested",defaults:m||{},targets:_&&_.data==="nested"?_.vars.targets:b}),x.kill(),x.parent=x._dp=hn(s),x._start=0,h||uu(l)||uu(c)){if(S=b.length,C=h&&YP(h),en(h))for(A in h)~lT.indexOf(A)&&(T||(T={}),T[A]=h[A]);for(v=0;v<S;v++)w=el(i,cT),w.stagger=0,g&&(w.yoyoEase=g),T&&Sa(w,T),P=b[v],w.duration=+Lo(l,hn(s),v,P,b),w.delay=(+Lo(c,hn(s),v,P,b)||0)-s._delay,!h&&S===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),x.to(P,w,C?C(v,P,b):0),x._ease=Pt.none;x.duration()?l=c=0:s.timeline=0}else if(y){Io(yr(x.vars.defaults,{ease:"none"})),x._ease=xi(y.ease||i.ease||"none");var E=0,k,j,$;if(Le(y))y.forEach(function(M){return x.to(b,M,">")}),x.duration();else{w={};for(A in y)A==="ease"||A==="easeEach"||II(A,y[A],w,y.easeEach);for(A in w)for(k=w[A].sort(function(M,I){return M.t-I.t}),E=0,v=0;v<k.length;v++)j=k[v],$={ease:j.e,duration:(j.t-(v?k[v-1].t:0))/100*l},$[A]=j.v,x.to(b,$,E),E+=$.duration;x.duration()<l&&x.to({},{duration:l-x.duration()})}}l||s.duration(l=x.duration())}else s.timeline=0;return p===!0&&!Vv&&(Nn=hn(s),ee.killTweensOf(b),Nn=0),Yr(_,hn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!l&&!y&&s._start===de(_._time)&&Xe(f)&&pI(hn(s))&&_.data!=="nested")&&(s._tTime=-Wt,s.render(Math.max(0,-c)||0)),d&&WP(hn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,u=this._tDur,l=this._dur,c=i<0,f=i>u-Wt&&!c?u:i<Wt?0:i,h,p,y,m,d,g,_,b,x;if(!l)mI(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,b=this.timeline,this._repeat){if(m=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=de(f%m),f===u?(y=this._repeat,h=l):(d=de(f/m),y=~~d,y&&y===d?(h=l,y--):h>l&&(h=l)),g=this._yoyo&&y&1,g&&(x=this._yEase,h=l-h),d=Oa(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(b&&this._yEase&&aT(b,g),this.vars.repeatRefresh&&!g&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(de(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(GP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(l!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=_=(x||this._ease)(h/l),this._from&&(this.ratio=_=1-_),!s&&f&&!a&&!d&&(hr(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(_,p.d),p=p._next;b&&b.render(i<0?i:b._dur*b._ease(h/this._dur),a,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(c&&Fm(this,i,a,o),hr(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&hr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Fm(this,i,!0,!0),(i||!l)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Hn(this,1),!a&&!(c&&!s)&&(f||s||g)&&(hr(this,f===u?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,u){ss||cr.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||og(this,l),c=this._ease(l/this._dur),DI(this,i,a,o,s,c,l,u)?this.resetTo(i,a,o,s,1):(ac(this,0),this.parent||zP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?Mo(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ce),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,Nn&&Nn.vars.overwrite!==!0)._first||Mo(this),this.parent&&o!==this.timeline.totalDuration()&&Aa(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,u=i?Or(i):s,l=this._ptLookup,c=this._pt,f,h,p,y,m,d,g;if((!a||a==="all")&&fI(s,u))return a==="all"&&(this._pt=0),Mo(this);for(f=this._op=this._op||[],a!=="all"&&(Oe(a)&&(m={},Ve(a,function(_){return m[_]=1}),a=m),a=RI(s,a)),g=s.length;g--;)if(~u.indexOf(s[g])){h=l[g],a==="all"?(f[g]=a,y=h,p={}):(p=f[g]=f[g]||{},y=a);for(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&nc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&Mo(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return No(1,arguments)},t.delayedCall=function(i,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(i,a,o){return No(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return ee.killTweensOf(i,a,o)},t})(us);yr(pe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ve("staggerTo,staggerFrom,staggerFromTo",function(e){pe[e]=function(){var t=new qe,r=Um.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var sg=function(t,r,n){return t[r]=n},fT=function(t,r,n){return t[r](n)},NI=function(t,r,n,i){return t[r](i.fp,n)},LI=function(t,r,n){return t.setAttribute(r,n)},ug=function(t,r){return oe(t[r])?fT:Zv(t[r])&&t.setAttribute?LI:sg},hT=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},BI=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},pT=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},lg=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},qI=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},FI=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?nc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},zI=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},dT=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},Ze=(function(){function e(r,n,i,a,o,s,u,l,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||hT,this.d=u||this,this.set=l||sg,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=zI,this.m=n,this.mt=a,this.tween=i},e})();Ve(rg+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return eg[e]=1});mr.TweenMax=mr.TweenLite=pe;mr.TimelineLite=mr.TimelineMax=qe;ee=new qe({sortChildren:!1,defaults:wa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});pr.stringFilter=nT;var wi=[],$u={},UI=[],f0=0,WI=0,ef=function(t){return($u[t]||UI).map(function(r){return r()})},Km=function(){var t=Date.now(),r=[];t-f0>2&&(ef("matchMediaInit"),wi.forEach(function(n){var i=n.queries,a=n.conditions,o,s,u,l;for(s in i)o=Hr.matchMedia(i[s]).matches,o&&(u=1),o!==a[s]&&(a[s]=o,l=1);l&&(n.revert(),u&&r.push(n))}),ef("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),f0=t,ef("matchMedia"))},mT=(function(){function e(r,n){this.selector=n&&Wm(n),this.data=[],this._r=[],this.isReverted=!1,this.id=WI++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){oe(n)&&(a=i,i=n,n=oe);var o=this,s=function(){var l=Jt,c=o.selector,f;return l&&l!==o&&l.data.push(o),a&&(o.selector=Wm(a)),Jt=o,f=i.apply(o,arguments),oe(f)&&o._r.push(f),Jt=l,o.selector=c,o.isReverted=!1,f};return o.last=s,n===oe?s(o,function(u){return o.add(null,u)}):n?o[n]=s:s},t.ignore=function(n){var i=Jt;Jt=null,n(this),Jt=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof pe&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),u=a.data.length,l;u--;)l=a.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(n)}),u=a.data.length;u--;)l=a.data[u],l instanceof qe?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof pe)&&l.revert&&l.revert(n);a._r.forEach(function(c){return c(n,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=wi.length;o--;)wi[o].id===this.id&&wi.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),GI=(function(){function e(r){this.contexts=[],this.scope=r,Jt&&Jt.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){en(n)||(n={matches:n});var o=new mT(0,a||this.scope),s=o.conditions={},u,l,c;Jt&&!o.selector&&(o.selector=Jt.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(l in n)l==="all"?c=1:(u=Hr.matchMedia(n[l]),u&&(wi.indexOf(o)<0&&wi.push(o),(s[l]=u.matches)&&(c=1),u.addListener?u.addListener(Km):u.addEventListener("change",Km)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),nl={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return tT(i)})},timeline:function(t){return new qe(t)},getTweensOf:function(t,r){return ee.getTweensOf(t,r)},getProperty:function(t,r,n,i){Oe(t)&&(t=Or(t)[0]);var a=bi(t||{}).get,o=n?FP:qP;return n==="native"&&(n=""),t&&(r?o((lr[r]&&lr[r].get||a)(t,r,n,i)):function(s,u,l){return o((lr[s]&&lr[s].get||a)(t,s,u,l))})},quickSetter:function(t,r,n){if(t=Or(t),t.length>1){var i=t.map(function(c){return er.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=lr[r],s=bi(t),u=s.harness&&(s.harness.aliases||{})[r]||r,l=o?function(c){var f=new o;ra._pt=0,f.init(t,n?c+n:c,ra,0,[t]),f.render(1,f),ra._pt&&lg(1,ra)}:s.set(t,u);return o?l:function(c){return l(t,u,n?c+n:c,s,1)}},quickTo:function(t,r,n){var i,a=er.to(t,yr((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),o=function(u,l,c){return a.resetTo(r,u,l,c)};return o.tween=a,o},isTweening:function(t){return ee.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=xi(t.ease,wa.ease)),o0(wa,t||{})},config:function(t){return o0(pr,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!lr[s]&&!mr[s]&&is(r+" effect requires "+s+" plugin.")}),Zc[r]=function(s,u,l){return n(Or(s),yr(u||{},a),l)},o&&(qe.prototype[r]=function(s,u,l){return this.add(Zc[r](s,en(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,r){Pt[t]=xi(r)},parseEase:function(t,r){return arguments.length?xi(t,r):Pt},getById:function(t){return ee.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new qe(t),i,a;for(n.smoothChildTiming=Xe(t.smoothChildTiming),ee.remove(n),n._dp=0,n._time=n._tTime=ee._time,i=ee._first;i;)a=i._next,(r||!(!i._dur&&i instanceof pe&&i.vars.onComplete===i._targets[0]))&&Yr(n,i,i._start-i._delay),i=a;return Yr(ee,n,0),n},context:function(t,r){return t?new mT(t,r):Jt},matchMedia:function(t){return new GI(t)},matchMediaRefresh:function(){return wi.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||Km()},addEventListener:function(t,r){var n=$u[t]||($u[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=$u[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:SI,wrapYoyo:OI,distribute:YP,random:VP,snap:XP,normalize:wI,getUnit:Ne,clamp:gI,splitColor:eT,toArray:Or,selector:Wm,mapRange:JP,pipe:_I,unitize:xI,interpolate:AI,shuffle:KP},install:RP,effects:Zc,ticker:cr,updateRoot:qe.updateRoot,plugins:lr,globalTimeline:ee,core:{PropTween:Ze,globals:IP,Tween:pe,Timeline:qe,Animation:us,getCache:bi,_removeLinkedListItem:nc,reverting:function(){return Ce},context:function(t){return t&&Jt&&(Jt.data.push(t),t._ctx=Jt),Jt},suppressOverwrites:function(t){return Vv=t}}};Ve("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return nl[e]=pe[e]});cr.add(qe.updateRoot);ra=nl.to({},{duration:0});var HI=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},KI=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=HI(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},rf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var u,l;if(Oe(a)&&(u={},Ve(a,function(c){return u[c]=1}),a=u),r){u={};for(l in a)u[l]=r(a[l]);a=u}KI(s,a)}}}},er=nl.registerPlugin({name:"attr",init:function(t,r,n,i,a){var o,s,u;this.tween=n;for(o in r)u=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(u||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=u,this._props.push(o)},render:function(t,r){for(var n=r._pt;n;)Ce?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},rf("roundProps",Gm),rf("modifiers"),rf("snap",XP))||nl;pe.version=qe.version=er.version="3.13.0";DP=1;Jv()&&Pa();Pt.Power0;Pt.Power1;Pt.Power2;Pt.Power3;Pt.Power4;Pt.Linear;Pt.Quad;Pt.Cubic;Pt.Quart;Pt.Quint;Pt.Strong;Pt.Elastic;Pt.Back;Pt.SteppedEase;Pt.Bounce;Pt.Sine;Pt.Expo;Pt.Circ;/*!
8
+ */var Or={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Za={duration:.5,overwrite:!1,delay:0},$v,Ie,Qt,Br=1e8,Kt=1/Br,by=Math.PI*2,RI=by/4,DI=0,cP=Math.sqrt,II=Math.cos,NI=Math.sin,Ce=function(t){return typeof t=="string"},ae=function(t){return typeof t=="function"},Kn=function(t){return typeof t=="number"},jv=function(t){return typeof t>"u"},On=function(t){return typeof t=="object"},ir=function(t){return t!==!1},Rv=function(){return typeof window<"u"},Bl=function(t){return ae(t)||Ce(t)},fP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},He=Array.isArray,_y=/(?:-?\.?\d|\.)+/gi,hP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ka=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,jf=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pP=/[+-]=-?[.\d]+/,dP=/[^,'"\[\]\s]+/gi,LI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,re,yn,xy,Dv,Pr={},Cu={},mP,yP=function(t){return(Cu=Ja(t,Pr))&&cr},Iv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},Rs=function(t,r){return!r&&console.warn(t)},gP=function(t,r){return t&&(Pr[t]=r)&&Cu&&(Cu[t]=r)||Pr},Ds=function(){return 0},BI={suppressEvents:!0,isStart:!0,kill:!1},ou={suppressEvents:!0,kill:!1},qI={suppressEvents:!0},Nv={},di=[],wy={},vP,xr={},Rf={},qb=30,su=[],Lv="",Bv=function(t){var r=t[0],n,i;if(On(r)||ae(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=su.length;i--&&!su[i].targetTest(r););n=su[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new zP(t[i],n)))||t.splice(i,1);return t},Yi=function(t){return t._gsap||Bv(qr(t))[0]._gsap},bP=function(t,r,n){return(n=t[r])&&ae(n)?t[r]():jv(n)&&t.getAttribute&&t.getAttribute(r)||n},ar=function(t,r){return(t=t.split(",")).forEach(r)||t},se=function(t){return Math.round(t*1e5)/1e5||0},pe=function(t){return Math.round(t*1e7)/1e7||0},Na=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},FI=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},Mu=function(){var t=di.length,r=di.slice(0),n,i;for(wy={},di.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},qv=function(t){return!!(t._initted||t._startAt||t.add)},_P=function(t,r,n,i){di.length&&!Ie&&Mu(),t.render(r,n,!!(Ie&&r<0&&qv(t))),di.length&&!Ie&&Mu()},xP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(dP).length<2?r:Ce(t)?t.trim():t},wP=function(t){return t},Er=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},zI=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},Ja=function(t,r){for(var n in r)t[n]=r[n];return t},Fb=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=On(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},ku=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},fs=function(t){var r=t.parent||re,n=t.keyframes?zI(He(t.keyframes)):Er;if(ir(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},UI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},SP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},jc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},yi=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Xi=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},WI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Sy=function(t,r,n,i){return t._startAt&&(Ie?t._startAt.revert(ou):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},HI=function e(t){return!t||t._ts&&e(t.parent)},zb=function(t){return t._repeat?Qa(t._tTime,t=t.duration()+t._rDelay)*t:0},Qa=function(t,r){var n=Math.floor(t=pe(t/r));return t&&n===t?n-1:n},$u=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Rc=function(t){return t._end=pe(t._start+(t._tDur/Math.abs(t._ts||t._rts||Kt)||0))},Dc=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=pe(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Rc(t),n._dirty||Xi(n,t)),t},AP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=$u(t.rawTime(),r),(!r._dur||Sl(0,r.totalDuration(),n)-r._tTime>Kt)&&r.render(n,!0)),Xi(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Kt}},vn=function(t,r,n,i){return r.parent&&yi(r),r._start=pe((Kn(n)?n:n||t!==re?Ir(t,n,r):t._time)+r._delay),r._end=pe(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),SP(t,r,"_first","_last",t._sort?"_start":0),Ay(r)||(t._recent=r),i||AP(t,r),t._ts<0&&Dc(t,t._tTime),t},OP=function(t,r){return(Pr.ScrollTrigger||Iv("scrollTrigger",r))&&Pr.ScrollTrigger.create(r,t)},TP=function(t,r,n,i,a){if(zv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!Ie&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&vP!==wr.frame)return di.push(t),t._lazy=[a,i],1},GI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Ay=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},KI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&GI(t)&&!(!t._initted&&Ay(t))||(t._ts<0||t._dp._ts<0)&&!Ay(t))?0:1,s=t._rDelay,l=0,u,c,f;if(s&&t._repeat&&(l=Sl(0,t._tDur,r),c=Qa(l,s),t._yoyo&&c&1&&(o=1-o),c!==Qa(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||Ie||i||t._zTime===Kt||!r&&t._zTime){if(!t._initted&&TP(t,r,i,n,l))return;for(f=t._zTime,t._zTime=r||(n?Kt:0),n||(n=r&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,u=t._pt;u;)u.r(o,u.d),u=u._next;r<0&&Sy(t,r,n,!0),t._onUpdate&&!n&&Ar(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&Ar(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&yi(t,1),!n&&!Ie&&(Ar(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},YI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},to=function(t,r,n,i){var a=t._repeat,o=pe(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:pe(o*(a+1)+t._rDelay*a):o,s>0&&!i&&Dc(t,t._tTime=t._tDur*s),t.parent&&Rc(t),n||Xi(t.parent,t),t},Ub=function(t){return t instanceof Ke?Xi(t):to(t,t._dur)},XI={_start:0,endTime:Ds,totalDuration:Ds},Ir=function e(t,r,n){var i=t.labels,a=t._recent||XI,o=t.duration()>=Br?a.endTime(!1):t._dur,s,l,u;return Ce(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",s=r.indexOf("="),l==="<"||l===">"?(s>=0&&(r=r.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(s<0?a:n).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(l=parseFloat(r.charAt(s-1)+r.substr(s+1)),u&&n&&(l=l/100*(He(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+l:o+l)):r==null?o:+r},hs=function(t,r,n){var i=Kn(r[1]),a=(i?2:1)+(t<2?0:1),o=r[a],s,l;if(i&&(o.duration=r[1]),o.parent=n,t){for(s=o,l=n;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=ir(l.vars.inherit)&&l.parent;o.immediateRender=ir(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new he(r[0],o,r[a+1])},_i=function(t,r){return t||t===0?r(t):r},Sl=function(t,r,n){return n<t?t:n>r?r:n},We=function(t,r){return!Ce(t)||!(r=LI.exec(t))?"":r[1]},VI=function(t,r,n){return _i(n,function(i){return Sl(t,r,i)})},Oy=[].slice,PP=function(t,r){return t&&On(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&On(t[0]))&&!t.nodeType&&t!==yn},ZI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return Ce(i)&&!r||PP(i,1)?(a=n).push.apply(a,qr(i)):n.push(i)})||n},qr=function(t,r,n){return Qt&&!r&&Qt.selector?Qt.selector(t):Ce(t)&&!n&&(xy||!eo())?Oy.call((r||Dv).querySelectorAll(t),0):He(t)?ZI(t,n):PP(t)?Oy.call(t,0):t?[t]:[]},Ty=function(t){return t=qr(t)[0]||Rs("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return qr(r,n.querySelectorAll?n:n===t?Rs("Invalid scope")||Dv.createElement("div"):t)}},EP=function(t){return t.sort(function(){return .5-Math.random()})},CP=function(t){if(ae(t))return t;var r=On(t)?t:{each:t},n=Vi(r.ease),i=r.from||0,a=parseFloat(r.base)||0,o={},s=i>0&&i<1,l=isNaN(i)||s,u=r.axis,c=i,f=i;return Ce(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&l&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],v,w,b,_,g,x,S,A,T;if(!d){if(T=r.grid==="auto"?0:(r.grid||[1,Br])[1],!T){for(S=-Br;S<(S=y[T++].getBoundingClientRect().left)&&T<m;);T<m&&T--}for(d=o[m]=[],v=l?Math.min(T,m)*c-.5:i%T,w=T===Br?0:l?m*f/T-.5:i/T|0,S=0,A=Br,x=0;x<m;x++)b=x%T-v,_=w-(x/T|0),d[x]=g=u?Math.abs(u==="y"?_:b):cP(b*b+_*_),g>S&&(S=g),g<A&&(A=g);i==="random"&&EP(d),d.max=S-A,d.min=A,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(T>m?m-1:u?u==="y"?m/T:T:Math.max(T,m/T))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=We(r.amount||r.each)||0,n=n&&m<0?BP(n):n}return m=(d[h]-d.min)/d.max||0,pe(d.b+(n?n(m):m)*d.v)+d.u}},Py=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=pe(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Kn(n)?0:We(n))}},MP=function(t,r){var n=He(t),i,a;return!n&&On(t)&&(i=n=t.radius||Br,t.values?(t=qr(t.values),(a=!Kn(t[0]))&&(i*=i)):t=Py(t.increment)),_i(r,n?ae(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),l=parseFloat(a?o.y:0),u=Br,c=0,f=t.length,h,p;f--;)a?(h=t[f].x-s,p=t[f].y-l,h=h*h+p*p):h=Math.abs(t[f]-s),h<u&&(u=h,c=f);return c=!i||u<=i?t[c]:o,a||c===o||Kn(o)?c:c+We(o)}:Py(t))},kP=function(t,r,n,i){return _i(He(t)?!r:n===!0?!!(n=0):!i,function(){return He(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},JI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},QI=function(t,r){return function(n){return t(parseFloat(n))+(r||We(n))}},tN=function(t,r,n){return jP(t,r,0,1,n)},$P=function(t,r,n){return _i(n,function(i){return t[~~r(i)]})},eN=function e(t,r,n){var i=r-t;return He(t)?$P(t,e(0,t.length),r):_i(n,function(a){return(i+(a-t)%i)%i+t})},rN=function e(t,r,n){var i=r-t,a=i*2;return He(t)?$P(t,e(0,t.length-1),r):_i(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},Is=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?dP:_y),n+=t.substr(r,i-r)+kP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},jP=function(t,r,n,i,a){var o=r-t,s=i-n;return _i(a,function(l){return n+((l-t)/o*s||0)})},nN=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=Ce(t),s={},l,u,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(He(t)&&!He(r)){for(c=[],f=t.length,h=f-2,u=1;u<f;u++)c.push(e(t[u-1],t[u]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=Ja(He(t)?[]:{},t));if(!c){for(l in r)Fv.call(s,t,l,"get",r[l]);a=function(y){return Hv(y,s)||(o?t.p:t)}}}return _i(n,a)},Wb=function(t,r,n){var i=t.labels,a=Br,o,s,l;for(o in i)s=i[o]-r,s<0==!!n&&s&&a>(s=Math.abs(s))&&(l=o,a=s);return l},Ar=function(t,r,n){var i=t.vars,a=i[r],o=Qt,s=t._ctx,l,u,c;if(a)return l=i[r+"Params"],u=i.callbackScope||t,n&&di.length&&Mu(),s&&(Qt=s),c=l?a.apply(u,l):a.call(u),Qt=o,c},as=function(t){return yi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Ie),t.progress()<1&&Ar(t,"onInterrupt"),t},$a,RP=[],DP=function(t){if(t)if(t=!t.name&&t.default||t,Rv()||t.headless){var r=t.name,n=ae(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:Ds,render:Hv,add:Fv,kill:bN,modifier:vN,rawVars:0},o={targetTest:0,get:0,getSetter:Wv,aliases:{},register:0};if(eo(),t!==i){if(xr[r])return;Er(i,Er(ku(t,a),o)),Ja(i.prototype,Ja(a,ku(t,o))),xr[i.prop=r]=i,t.targetTest&&(su.push(i),Nv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}gP(r,i),t.register&&t.register(cr,i,or)}else RP.push(t)},Gt=255,os={aqua:[0,Gt,Gt],lime:[0,Gt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Gt],navy:[0,0,128],white:[Gt,Gt,Gt],olive:[128,128,0],yellow:[Gt,Gt,0],orange:[Gt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Gt,0,0],pink:[Gt,192,203],cyan:[0,Gt,Gt],transparent:[Gt,Gt,Gt,0]},Df=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*Gt+.5|0},IP=function(t,r,n){var i=t?Kn(t)?[t>>16,t>>8&Gt,t&Gt]:0:os.black,a,o,s,l,u,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),os[t])i=os[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Gt,i&Gt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Gt,t&Gt]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(_y),!r)l=+i[0]%360/360,u=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(u+1):c+u-c*u,a=c*2-o,i.length>3&&(i[3]*=1),i[0]=Df(l+1/3,a,o),i[1]=Df(l,a,o),i[2]=Df(l-1/3,a,o);else if(~t.indexOf("="))return i=t.match(hP),n&&i.length<4&&(i[3]=1),i}else i=t.match(_y)||os.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Gt,o=i[1]/Gt,s=i[2]/Gt,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?l=u=0:(p=f-h,u=c>.5?p/(2-f-h):p/(f+h),l=f===a?(o-s)/p+(o<s?6:0):f===o?(s-a)/p+2:(a-o)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(c*100+.5)),n&&i.length<4&&(i[3]=1),i},NP=function(t){var r=[],n=[],i=-1;return t.split(mi).forEach(function(a){var o=a.match(ka)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Hb=function(t,r,n){var i="",a=(t+i).match(mi),o=r?"hsla(":"rgba(",s=0,l,u,c,f;if(!a)return t;if(a=a.map(function(h){return(h=IP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=NP(t),l=n.c,l.join(i)!==c.c.join(i)))for(u=t.replace(mi,"1").split(ka),f=u.length-1;s<f;s++)i+=u[s]+(~l.indexOf(s)?a.shift()||o+"0,0,0,0)":(c.length?c:a.length?a:n).shift());if(!u)for(u=t.split(mi),f=u.length-1;s<f;s++)i+=u[s]+a[s];return i+u[f]},mi=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in os)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),iN=/hsl[a]?\(/,LP=function(t){var r=t.join(" "),n;if(mi.lastIndex=0,mi.test(r))return n=iN.test(r),t[1]=Hb(t[1],n),t[0]=Hb(t[0],n,NP(t[1])),!0},Ns,wr=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],l,u,c,f,h,p,y=function m(d){var v=e()-i,w=d===!0,b,_,g,x;if((v>t||v<0)&&(n+=v-r),i+=v,g=i-n,b=g-o,(b>0||w)&&(x=++f.frame,h=g-f.time*1e3,f.time=g=g/1e3,o+=b+(b>=a?4:a-b),_=1),w||(l=u(m)),_)for(p=0;p<s.length;p++)s[p](g,h,x,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){mP&&(!xy&&Rv()&&(yn=xy=window,Dv=yn.document||{},Pr.gsap=cr,(yn.gsapVersions||(yn.gsapVersions=[])).push(cr.version),yP(Cu||yn.GreenSockGlobals||!yn.gsap&&yn||{}),RP.forEach(DP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},Ns=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Ns=0,u=Ds},lagSmoothing:function(d,v){t=d||1/0,r=Math.min(v||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,v,w){var b=v?function(_,g,x,S){d(_,g,x,S),f.remove(b)}:d;return f.remove(d),s[w?"unshift":"push"](b),eo(),b},remove:function(d,v){~(v=s.indexOf(d))&&s.splice(v,1)&&p>=v&&p--},_listeners:s},f})(),eo=function(){return!Ns&&wr.wake()},Ct={},aN=/^[\d.\-M][\d.\-,\s]/,oN=/["']/g,sN=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,o=n.length,s,l,u;a<o;a++)l=n[a],s=a!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,s),r[i]=isNaN(u)?u.replace(oN,"").trim():+u,i=l.substr(s+1).trim();return r},lN=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},uN=function(t){var r=(t+"").split("("),n=Ct[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[sN(r[1])]:lN(t).split(",").map(xP)):Ct._CE&&aN.test(t)?Ct._CE("",t):n},BP=function(t){return function(r){return 1-t(1-r)}},qP=function e(t,r){for(var n=t._first,i;n;)n instanceof Ke?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},Vi=function(t,r){return t&&(ae(t)?t:Ct[t]||uN(t))||r},da=function(t,r,n,i){n===void 0&&(n=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},o;return ar(t,function(s){Ct[s]=Pr[s]=a,Ct[o=s.toLowerCase()]=n;for(var l in a)Ct[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Ct[s+"."+l]=a[l]}),a},FP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},If=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/by*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*NI((c-o)*a)+1},l=t==="out"?s:t==="in"?function(u){return 1-s(1-u)}:FP(s);return a=by/a,l.config=function(u,c){return e(t,u,c)},l},Nf=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:FP(n);return i.config=function(a){return e(t,a)},i};ar("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;da(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Ct.Linear.easeNone=Ct.none=Ct.Linear.easeIn;da("Elastic",If("in"),If("out"),If());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};da("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);da("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});da("Circ",function(e){return-(cP(1-e*e)-1)});da("Sine",function(e){return e===1?1:-II(e*RI)+1});da("Back",Nf("in"),Nf("out"),Nf());Ct.SteppedEase=Ct.steps=Pr.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,o=1-Kt;return function(s){return((i*Sl(0,o,s)|0)+a)*n}}};Za.ease=Ct["quad.out"];ar("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return Lv+=e+","+e+"Params,"});var zP=function(t,r){this.id=DI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:bP,this.set=r?r.getSetter:Wv},Ls=(function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,to(this,+r.duration,1,1),this.data=r.data,Qt&&(this._ctx=Qt,Qt.data.push(this)),Ns||wr.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,to(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(eo(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Dc(this,n),!a._dp||a.parent||AP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&vn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Kt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),_P(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+zb(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+zb(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?Qa(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Kt?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?$u(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Kt?0:this._rts,this.totalTime(Sl(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Rc(this),WI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(eo(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Kt&&(this._tTime-=Kt)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&vn(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(ir(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$u(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=qI);var i=Ie;return Ie=n,qv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Ie=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Ub(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Ub(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Ir(this,n),ir(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,ir(i)),this._dur||(this._zTime=-Kt),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Kt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Kt,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-Kt)},t.eventCallback=function(n,i,a){var o=this.vars;return arguments.length>1?(i?(o[n]=i,a&&(o[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(a){var o=ae(n)?n:wP,s=function(){var u=i.then;i.then=null,ae(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),a(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},t.kill=function(){as(this)},e})();Er(Ls.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Kt,_prom:0,_ps:!1,_rts:1});var Ke=(function(e){uP(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=ir(n.sortChildren),re&&vn(n.parent||re,Dn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&OP(Dn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return hs(0,arguments,this),this},r.from=function(i,a,o){return hs(1,arguments,this),this},r.fromTo=function(i,a,o,s){return hs(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,fs(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new he(i,a,Ir(this,o),1),this},r.call=function(i,a,o){return vn(this,he.delayedCall(0,i,a),o)},r.staggerTo=function(i,a,o,s,l,u,c){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new he(i,o,Ir(this,l)),this},r.staggerFrom=function(i,a,o,s,l,u,c){return o.runBackwards=1,fs(o).immediateRender=ir(o.immediateRender),this.staggerTo(i,a,o,s,l,u,c)},r.staggerFromTo=function(i,a,o,s,l,u,c,f){return s.startAt=o,fs(s).immediateRender=ir(s.immediateRender),this.staggerTo(i,a,s,l,u,c,f)},r.render=function(i,a,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=i<=0?0:pe(i),f=this._zTime<0!=i<0&&(this._initted||!u),h,p,y,m,d,v,w,b,_,g,x,S;if(this!==re&&c>l&&i>=0&&(c=l),c!==this._tTime||o||f){if(s!==this._time&&u&&(c+=this._time-s,i+=this._time-s),h=c,_=this._start,b=this._ts,v=!b,f&&(u||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(x=this._yoyo,d=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=pe(c%d),c===l?(m=this._repeat,h=u):(g=pe(c/d),m=~~g,m&&m===g&&(h=u,m--),h>u&&(h=u)),g=Qa(this._tTime,d),!s&&this._tTime&&g!==m&&this._tTime-g*d-this._dur<=0&&(g=m),x&&m&1&&(h=u-h,S=1),m!==g&&!this._lock){var A=x&&g&1,T=A===(x&&m&1);if(m<g&&(A=!A),s=A?0:c%u?u:c,this._lock=1,this.render(s||(S?0:pe(m*d)),a,!u)._lock=0,this._tTime=c,!a&&this.parent&&Ar(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,T&&(this._lock=2,s=A?u:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;qP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=YI(this,pe(s),pe(h)),w&&(c-=h-(h=w._start))),this._tTime=c,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!g&&(Ar(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(p=this._first;p;){if(y=p._next,(p._act||h>=p._start)&&p._ts&&w!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,o),h!==this._time||!this._ts&&!v){w=0,y&&(c+=this._zTime=-Kt);break}}p=y}else{p=this._last;for(var C=i<0?i:h;p;){if(y=p._prev,(p._act||C<=p._end)&&p._ts&&w!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(C-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(C-p._start)*p._ts,a,o||Ie&&qv(p)),h!==this._time||!this._ts&&!v){w=0,y&&(c+=this._zTime=C?-Kt:Kt);break}}p=y}}if(w&&!a&&(this.pause(),w.render(h>=s?0:-Kt)._zTime=h>=s?1:-1,this._ts))return this._start=_,Rc(this),this.render(i,a,o);this._onUpdate&&!a&&Ar(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(_===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&yi(this,1),!a&&!(i<0&&!s)&&(c||s||!l)&&(Ar(this,c===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var o=this;if(Kn(a)||(a=Ir(this,a,i)),!(i instanceof Ls)){if(He(i))return i.forEach(function(s){return o.add(s,a)}),this;if(Ce(i))return this.addLabel(i,a);if(ae(i))i=he.delayedCall(0,i);else return this}return this!==i?vn(this,i,a):this},r.getChildren=function(i,a,o,s){i===void 0&&(i=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Br);for(var l=[],u=this._first;u;)u._start>=s&&(u instanceof he?a&&l.push(u):(o&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,a,o)))),u=u._next;return l},r.getById=function(i){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===i)return a[o]},r.remove=function(i){return Ce(i)?this.removeLabel(i):ae(i)?this.killTweensOf(i):(i.parent===this&&jc(this,i),i===this._recent&&(this._recent=this._last),Xi(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=pe(wr.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=Ir(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=he.delayedCall(0,a||Ds,o);return s.data="isPause",this._hasPause=1,vn(this,s,Ir(this,i))},r.removePause=function(i){var a=this._first;for(i=Ir(this,i);a;)a._start===i&&a.data==="isPause"&&yi(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),l=s.length;l--;)si!==s[l]&&s[l].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=qr(i),l=this._first,u=Kn(a),c;l;)l instanceof he?FI(l._targets,s)&&(u?(!si||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&o.push(l):(c=l.getTweensOf(s,a)).length&&o.push.apply(o,c),l=l._next;return o},r.tweenTo=function(i,a){a=a||{};var o=this,s=Ir(o,i),l=a,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,p,y=he.to(o,Er({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale())||Kt,onStart:function(){if(o.pause(),!p){var d=a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale());y._dur!==d&&to(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,Er({startAt:{time:Ir(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Ir(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Ir(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Kt)},r.shiftChildren=function(i,a,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,u;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(a)for(u in l)l[u]>=o&&(l[u]+=i);return Xi(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Xi(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,l=Br,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;s;)u=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,vn(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(a-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=u;to(o,o===re&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(re._ts&&(_P(re,$u(i,re)),vP=wr.frame),wr.frame>=qb){qb+=Or.autoSleep||120;var a=re._first;if((!a||!a._ts)&&Or.autoSleep&&wr._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||wr.sleep()}}},t})(Ls);Er(Ke.prototype,{_lock:0,_hasPause:0,_forcing:0});var cN=function(t,r,n,i,a,o,s){var l=new or(this._pt,t,r,0,1,YP,null,a),u=0,c=0,f,h,p,y,m,d,v,w;for(l.b=n,l.e=i,n+="",i+="",(v=~i.indexOf("random("))&&(i=Is(i)),o&&(w=[n,i],o(w,t,r),n=w[0],i=w[1]),h=n.match(jf)||[];f=jf.exec(i);)y=f[0],m=i.substring(u,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?Na(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},u=jf.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=s,(pP.test(i)||v)&&(l.e=0),this._pt=l,l},Fv=function(t,r,n,i,a,o,s,l,u,c){ae(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:ae(f)?u?t[r.indexOf("set")||!ae(t["get"+r.substr(3)])?r:"get"+r.substr(3)](u):t[r]():f,p=ae(f)?u?mN:GP:Uv,y;if(Ce(i)&&(~i.indexOf("random(")&&(i=Is(i)),i.charAt(1)==="="&&(y=Na(h,i)+(We(h)||0),(y||y===0)&&(i=y))),!c||h!==i||Ey)return!isNaN(h*i)&&i!==""?(y=new or(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?gN:KP,0,p),u&&(y.fp=u),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Iv(r,i),cN.call(this,t,r,h,i,p,l||Or.stringFilter,u))},fN=function(t,r,n,i,a){if(ae(t)&&(t=ps(t,a,r,n,i)),!On(t)||t.style&&t.nodeType||He(t)||fP(t))return Ce(t)?ps(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=ps(t[s],a,r,n,i);return o},UP=function(t,r,n,i,a,o){var s,l,u,c;if(xr[t]&&(s=new xr[t]).init(a,s.rawVars?r[t]:fN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=l=new or(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==$a))for(u=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)u[s._props[c]]=l;return s},si,Ey,zv=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,l=i.lazy,u=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,v=t.parent,w=v&&v.data==="nested"?v.vars.targets:d,b=t._overwrite==="auto"&&!$v,_=t.timeline,g,x,S,A,T,C,P,E,M,$,j,k,I;if(_&&(!h||!a)&&(a="none"),t._ease=Vi(a,Za.ease),t._yEase=f?BP(Vi(f===!0?a:f,Za.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!_&&!!i.runBackwards,!_||h&&!i.stagger){if(E=d[0]?Yi(d[0]).harness:0,k=E&&i[E.prop],g=ku(i,Nv),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?ou:BI),m._lazy=0),o){if(yi(t._startAt=he.set(d,Er({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!m&&ir(l),startAt:null,delay:0,onUpdate:u&&function(){return Ar(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Ie||!s&&!p)&&t._startAt.revert(ou),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=Er({overwrite:!1,data:"isFromStart",lazy:s&&!m&&ir(l),immediateRender:s,stagger:0,parent:v},g),k&&(S[E.prop]=k),yi(t._startAt=he.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Ie?t._startAt.revert(ou):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Kt,Kt);else if(!r)return}for(t._pt=t._ptCache=0,l=y&&ir(l)||l&&!y,x=0;x<d.length;x++){if(T=d[x],P=T._gsap||Bv(d)[x]._gsap,t._ptLookup[x]=$={},wy[P.id]&&di.length&&Mu(),j=w===d?x:w.indexOf(T),E&&(M=new E).init(T,k||g,t,j,w)!==!1&&(t._pt=A=new or(t._pt,T,M.name,0,1,M.render,M,0,M.priority),M._props.forEach(function(q){$[q]=A}),M.priority&&(C=1)),!E||k)for(S in g)xr[S]&&(M=UP(S,g,t,j,T,w))?M.priority&&(C=1):$[S]=A=Fv.call(t,T,S,"get",g[S],j,w,0,i.stringFilter);t._op&&t._op[x]&&t.kill(T,t._op[x]),b&&t._pt&&(si=t,re.killTweensOf(T,$,t.globalTime(r)),I=!t.parent,si=0),t._pt&&l&&(wy[P.id]=1)}C&&XP(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!I,h&&r<=0&&_.render(Br,!0,!0)},hN=function(t,r,n,i,a,o,s,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[r],c,f,h,p;if(!u)for(u=t._ptCache[r]=[],h=t._ptLookup,p=t._targets.length;p--;){if(c=h[p][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return Ey=1,t.vars[r]="+=0",zv(t,s),Ey=0,l?Rs(r+" not eligible for reset"):1;u.push(c)}for(p=u.length;p--;)f=u[p],c=f._pt||f,c.s=(i||i===0)&&!a?i:c.s+(i||0)+o*c.c,c.c=n-c.s,f.e&&(f.e=se(n)+We(f.e)),f.b&&(f.b=c.s+We(f.b))},pN=function(t,r){var n=t[0]?Yi(t[0]).harness:0,i=n&&n.aliases,a,o,s,l;if(!i)return r;a=Ja({},r);for(o in i)if(o in a)for(l=i[o].split(","),s=l.length;s--;)a[l[s]]=a[o];return a},dN=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(He(r))s=n[t]||(n[t]=[]),r.forEach(function(l,u){return s.push({t:u/(r.length-1)*100,v:l,e:a})});else for(o in r)s=n[o]||(n[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:r[o],e:a})},ps=function(t,r,n,i,a){return ae(t)?t.call(r,n,i,a):Ce(t)&&~t.indexOf("random(")?Is(t):t},WP=Lv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",HP={};ar(WP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return HP[e]=1});var he=(function(e){uP(t,e);function t(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=e.call(this,o?i:fs(i))||this;var l=s.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,p=l.overwrite,y=l.keyframes,m=l.defaults,d=l.scrollTrigger,v=l.yoyoEase,w=i.parent||re,b=(He(n)||fP(n)?Kn(n[0]):"length"in i)?[n]:qr(n),_,g,x,S,A,T,C,P;if(s._targets=b.length?Bv(b):Rs("GSAP target "+n+" not found. https://gsap.com",!Or.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||Bl(u)||Bl(c)){if(i=s.vars,_=s.timeline=new Ke({data:"nested",defaults:m||{},targets:w&&w.data==="nested"?w.vars.targets:b}),_.kill(),_.parent=_._dp=Dn(s),_._start=0,h||Bl(u)||Bl(c)){if(S=b.length,C=h&&CP(h),On(h))for(A in h)~WP.indexOf(A)&&(P||(P={}),P[A]=h[A]);for(g=0;g<S;g++)x=ku(i,HP),x.stagger=0,v&&(x.yoyoEase=v),P&&Ja(x,P),T=b[g],x.duration=+ps(u,Dn(s),g,T,b),x.delay=(+ps(c,Dn(s),g,T,b)||0)-s._delay,!h&&S===1&&x.delay&&(s._delay=c=x.delay,s._start+=c,x.delay=0),_.to(T,x,C?C(g,T,b):0),_._ease=Ct.none;_.duration()?u=c=0:s.timeline=0}else if(y){fs(Er(_.vars.defaults,{ease:"none"})),_._ease=Vi(y.ease||i.ease||"none");var E=0,M,$,j;if(He(y))y.forEach(function(k){return _.to(b,k,">")}),_.duration();else{x={};for(A in y)A==="ease"||A==="easeEach"||dN(A,y[A],x,y.easeEach);for(A in x)for(M=x[A].sort(function(k,I){return k.t-I.t}),E=0,g=0;g<M.length;g++)$=M[g],j={ease:$.e,duration:($.t-(g?M[g-1].t:0))/100*u},j[A]=$.v,_.to(b,j,E),E+=j.duration;_.duration()<u&&_.to({},{duration:u-_.duration()})}}u||s.duration(u=_.duration())}else s.timeline=0;return p===!0&&!$v&&(si=Dn(s),re.killTweensOf(b),si=0),vn(w,Dn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!u&&!y&&s._start===pe(w._time)&&ir(f)&&HI(Dn(s))&&w.data!=="nested")&&(s._tTime=-Kt,s.render(Math.max(0,-c)||0)),d&&OP(Dn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,l=this._tDur,u=this._dur,c=i<0,f=i>l-Kt&&!c?l:i<Kt?0:i,h,p,y,m,d,v,w,b,_;if(!u)KI(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,b=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=pe(f%m),f===l?(y=this._repeat,h=u):(d=pe(f/m),y=~~d,y&&y===d?(h=u,y--):h>u&&(h=u)),v=this._yoyo&&y&1,v&&(_=this._yEase,h=u-h),d=Qa(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(b&&this._yEase&&qP(b,v),this.vars.repeatRefresh&&!v&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(pe(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(TP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(u!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(_||this._ease)(h/u),this._from&&(this.ratio=w=1-w),!s&&f&&!a&&!d&&(Ar(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(w,p.d),p=p._next;b&&b.render(i<0?i:b._dur*b._ease(h/this._dur),a,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(c&&Sy(this,i,a,o),Ar(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&Ar(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Sy(this,i,!0,!0),(i||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&yi(this,1),!a&&!(c&&!s)&&(f||s||v)&&(Ar(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,l){Ns||wr.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||zv(this,u),c=this._ease(u/this._dur),hN(this,i,a,o,s,c,u,l)?this.resetTo(i,a,o,s,1):(Dc(this,0),this.parent||SP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?as(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ie),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,si&&si.vars.overwrite!==!0)._first||as(this),this.parent&&o!==this.timeline.totalDuration()&&to(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=i?qr(i):s,u=this._ptLookup,c=this._pt,f,h,p,y,m,d,v;if((!a||a==="all")&&UI(s,l))return a==="all"&&(this._pt=0),as(this);for(f=this._op=this._op||[],a!=="all"&&(Ce(a)&&(m={},ar(a,function(w){return m[w]=1}),a=m),a=pN(s,a)),v=s.length;v--;)if(~l.indexOf(s[v])){h=u[v],a==="all"?(f[v]=a,y=h,p={}):(p=f[v]=f[v]||{},y=a);for(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&jc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&as(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return hs(1,arguments)},t.delayedCall=function(i,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(i,a,o){return hs(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return re.killTweensOf(i,a,o)},t})(Ls);Er(he.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});ar("staggerTo,staggerFrom,staggerFromTo",function(e){he[e]=function(){var t=new Ke,r=Oy.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Uv=function(t,r,n){return t[r]=n},GP=function(t,r,n){return t[r](n)},mN=function(t,r,n,i){return t[r](i.fp,n)},yN=function(t,r,n){return t.setAttribute(r,n)},Wv=function(t,r){return ae(t[r])?GP:jv(t[r])&&t.setAttribute?yN:Uv},KP=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},gN=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},YP=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},Hv=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},vN=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},bN=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?jc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},_N=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},XP=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},or=(function(){function e(r,n,i,a,o,s,l,u,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||KP,this.d=l||this,this.set=u||Uv,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=_N,this.m=n,this.mt=a,this.tween=i},e})();ar(Lv+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return Nv[e]=1});Pr.TweenMax=Pr.TweenLite=he;Pr.TimelineLite=Pr.TimelineMax=Ke;re=new Ke({sortChildren:!1,defaults:Za,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Or.stringFilter=LP;var Zi=[],lu={},xN=[],Gb=0,wN=0,Lf=function(t){return(lu[t]||xN).map(function(r){return r()})},Cy=function(){var t=Date.now(),r=[];t-Gb>2&&(Lf("matchMediaInit"),Zi.forEach(function(n){var i=n.queries,a=n.conditions,o,s,l,u;for(s in i)o=yn.matchMedia(i[s]).matches,o&&(l=1),o!==a[s]&&(a[s]=o,u=1);u&&(n.revert(),l&&r.push(n))}),Lf("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Gb=t,Lf("matchMedia"))},VP=(function(){function e(r,n){this.selector=n&&Ty(n),this.data=[],this._r=[],this.isReverted=!1,this.id=wN++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){ae(n)&&(a=i,i=n,n=ae);var o=this,s=function(){var u=Qt,c=o.selector,f;return u&&u!==o&&u.data.push(o),a&&(o.selector=Ty(a)),Qt=o,f=i.apply(o,arguments),ae(f)&&o._r.push(f),Qt=u,o.selector=c,o.isReverted=!1,f};return o.last=s,n===ae?s(o,function(l){return o.add(null,l)}):n?o[n]=s:s},t.ignore=function(n){var i=Qt;Qt=null,n(this),Qt=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof he&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),l=a.data.length,u;l--;)u=a.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(n)}),l=a.data.length;l--;)u=a.data[l],u instanceof Ke?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof he)&&u.revert&&u.revert(n);a._r.forEach(function(c){return c(n,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=Zi.length;o--;)Zi[o].id===this.id&&Zi.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),SN=(function(){function e(r){this.contexts=[],this.scope=r,Qt&&Qt.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){On(n)||(n={matches:n});var o=new VP(0,a||this.scope),s=o.conditions={},l,u,c;Qt&&!o.selector&&(o.selector=Qt.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(u in n)u==="all"?c=1:(l=yn.matchMedia(n[u]),l&&(Zi.indexOf(o)<0&&Zi.push(o),(s[u]=l.matches)&&(c=1),l.addListener?l.addListener(Cy):l.addEventListener("change",Cy)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),ju={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return DP(i)})},timeline:function(t){return new Ke(t)},getTweensOf:function(t,r){return re.getTweensOf(t,r)},getProperty:function(t,r,n,i){Ce(t)&&(t=qr(t)[0]);var a=Yi(t||{}).get,o=n?wP:xP;return n==="native"&&(n=""),t&&(r?o((xr[r]&&xr[r].get||a)(t,r,n,i)):function(s,l,u){return o((xr[s]&&xr[s].get||a)(t,s,l,u))})},quickSetter:function(t,r,n){if(t=qr(t),t.length>1){var i=t.map(function(c){return cr.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=xr[r],s=Yi(t),l=s.harness&&(s.harness.aliases||{})[r]||r,u=o?function(c){var f=new o;$a._pt=0,f.init(t,n?c+n:c,$a,0,[t]),f.render(1,f),$a._pt&&Hv(1,$a)}:s.set(t,l);return o?u:function(c){return u(t,l,n?c+n:c,s,1)}},quickTo:function(t,r,n){var i,a=cr.to(t,Er((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),o=function(l,u,c){return a.resetTo(r,l,u,c)};return o.tween=a,o},isTweening:function(t){return re.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Vi(t.ease,Za.ease)),Fb(Za,t||{})},config:function(t){return Fb(Or,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!xr[s]&&!Pr[s]&&Rs(r+" effect requires "+s+" plugin.")}),Rf[r]=function(s,l,u){return n(qr(s),Er(l||{},a),u)},o&&(Ke.prototype[r]=function(s,l,u){return this.add(Rf[r](s,On(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,r){Ct[t]=Vi(r)},parseEase:function(t,r){return arguments.length?Vi(t,r):Ct},getById:function(t){return re.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new Ke(t),i,a;for(n.smoothChildTiming=ir(t.smoothChildTiming),re.remove(n),n._dp=0,n._time=n._tTime=re._time,i=re._first;i;)a=i._next,(r||!(!i._dur&&i instanceof he&&i.vars.onComplete===i._targets[0]))&&vn(n,i,i._start-i._delay),i=a;return vn(re,n,0),n},context:function(t,r){return t?new VP(t,r):Qt},matchMedia:function(t){return new SN(t)},matchMediaRefresh:function(){return Zi.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||Cy()},addEventListener:function(t,r){var n=lu[t]||(lu[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=lu[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:eN,wrapYoyo:rN,distribute:CP,random:kP,snap:MP,normalize:tN,getUnit:We,clamp:VI,splitColor:IP,toArray:qr,selector:Ty,mapRange:jP,pipe:JI,unitize:QI,interpolate:nN,shuffle:EP},install:yP,effects:Rf,ticker:wr,updateRoot:Ke.updateRoot,plugins:xr,globalTimeline:re,core:{PropTween:or,globals:gP,Tween:he,Timeline:Ke,Animation:Ls,getCache:Yi,_removeLinkedListItem:jc,reverting:function(){return Ie},context:function(t){return t&&Qt&&(Qt.data.push(t),t._ctx=Qt),Qt},suppressOverwrites:function(t){return $v=t}}};ar("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return ju[e]=he[e]});wr.add(Ke.updateRoot);$a=ju.to({},{duration:0});var AN=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},ON=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=AN(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},Bf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var l,u;if(Ce(a)&&(l={},ar(a,function(c){return l[c]=1}),a=l),r){l={};for(u in a)l[u]=r(a[u]);a=l}ON(s,a)}}}},cr=ju.registerPlugin({name:"attr",init:function(t,r,n,i,a){var o,s,l;this.tween=n;for(o in r)l=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(l||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=l,this._props.push(o)},render:function(t,r){for(var n=r._pt;n;)Ie?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},Bf("roundProps",Py),Bf("modifiers"),Bf("snap",MP))||ju;he.version=Ke.version=cr.version="3.13.0";mP=1;Rv()&&eo();Ct.Power0;Ct.Power1;Ct.Power2;Ct.Power3;Ct.Power4;Ct.Linear;Ct.Quad;Ct.Cubic;Ct.Quart;Ct.Quint;Ct.Strong;Ct.Elastic;Ct.Back;Ct.SteppedEase;Ct.Bounce;Ct.Sine;Ct.Expo;Ct.Circ;/*!
9
9
  * CSSPlugin 3.13.0
10
10
  * https://gsap.com
11
11
  *
12
12
  * Copyright 2008-2025, GreenSock. All rights reserved.
13
13
  * Subject to the terms at https://gsap.com/standard-license
14
14
  * @author: Jack Doyle, jack@greensock.com
15
- */var h0,Ln,ua,cg,pi,p0,fg,YI=function(){return typeof window<"u"},An={},ui=180/Math.PI,la=Math.PI/180,Vi=Math.atan2,d0=1e8,hg=/([A-Z])/g,XI=/(left|right|width|margin|padding|x)/i,VI=/[\s,\(]\S/,Xr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ym=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},ZI=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},JI=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},QI=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},yT=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},vT=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},tN=function(t,r,n){return t.style[r]=n},eN=function(t,r,n){return t.style.setProperty(r,n)},rN=function(t,r,n){return t._gsap[r]=n},nN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},iN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},aN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},re="transform",Je=re+"Origin",oN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in An&&a){if(this.tfm=this.tfm||{},t!=="transform")t=Xr[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=pn(i,s)}):this.tfm[t]=o.x?o[t]:pn(i,t),t===Je&&(this.tfm.zOrigin=o.zOrigin);else return Xr.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(re)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Je,r,"")),t=re}(a||r)&&this.props.push(t,r,a[t])},gT=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},sN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(hg,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=fg(),(!a||!a.isStart)&&!n[re]&&(gT(n),i.zOrigin&&n[Je]&&(n[Je]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},bT=function(t,r){var n={target:t,props:[],revert:sN,save:oN};return t._gsap||er.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},_T,Xm=function(t,r){var n=Ln.createElementNS?Ln.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ln.createElement(t);return n&&n.style?n:Ln.createElement(t)},Ar=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(hg,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,Ta(r)||r,1)||""},m0="O,Moz,ms,Ms,Webkit".split(","),Ta=function(t,r,n){var i=r||pi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(m0[o]+t in a););return o<0?null:(o===3?"ms":o>=0?m0[o]:"")+t},Vm=function(){YI()&&window.document&&(h0=window,Ln=h0.document,ua=Ln.documentElement,pi=Xm("div")||{style:{}},Xm("div"),re=Ta(re),Je=re+"Origin",pi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_T=!!Ta("perspective"),fg=er.core.reverting,cg=1)},y0=function(t){var r=t.ownerSVGElement,n=Xm("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),ua.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),ua.removeChild(n),a},v0=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},xT=function(t){var r,n;try{r=t.getBBox()}catch{r=y0(t),n=1}return r&&(r.width||r.height)||n||(r=y0(t)),r&&!r.width&&!r.x&&!r.y?{x:+v0(t,["x","cx","x1"])||0,y:+v0(t,["y","cy","y1"])||0,width:0,height:0}:r},wT=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&xT(t))},Mi=function(t,r){if(r){var n=t.style,i;r in An&&r!==Je&&(r=re),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(hg,"-$1").toLowerCase())):n.removeAttribute(r)}},Bn=function(t,r,n,i,a,o){var s=new Ze(t._pt,r,n,0,1,o?vT:yT);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},g0={deg:1,rad:1,turn:1},uN={grid:1,flex:1},Kn=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=pi.style,u=XI.test(r),l=t.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,m,d,g;if(i===o||!a||g0[i]||g0[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),g=t.getCTM&&wT(t),(p||o==="%")&&(An[r]||~r.indexOf("adius")))return y=g?t.getBBox()[u?"width":"height"]:t[c],le(p?a/y*f:a/100*y);if(s[u?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!l?t:t.parentNode,g&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===Ln||!m.appendChild)&&(m=Ln.body),d=m._gsap,d&&p&&d.width&&u&&d.time===cr.time&&!d.uncache)return le(a/d.width*f);if(p&&(r==="height"||r==="width")){var _=t.style[r];t.style[r]=f+i,y=t[c],_?t.style[r]=_:Mi(t,r)}else(p||o==="%")&&!uN[Ar(m,"display")]&&(s.position=Ar(t,"position")),m===t&&(s.position="static"),m.appendChild(pi),y=pi[c],m.removeChild(pi),s.position="absolute";return u&&p&&(d=bi(m),d.time=cr.time,d.width=m[c]),le(h?y*a/f:y&&a?f/y*a:0)},pn=function(t,r,n,i){var a;return cg||Vm(),r in Xr&&r!=="transform"&&(r=Xr[r],~r.indexOf(",")&&(r=r.split(",")[0])),An[r]&&r!=="transform"?(a=cs(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:al(Ar(t,Je))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=il[r]&&il[r](t,r,n)||Ar(t,r)||LP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?Kn(t,r,a,n)+n:a},lN=function(t,r,n,i){if(!n||n==="none"){var a=Ta(r,t,1),o=a&&Ar(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Ar(t,"borderTopColor"))}var s=new Ze(this._pt,t.style,r,0,1,pT),u=0,l=0,c,f,h,p,y,m,d,g,_,b,x,v;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Ar(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=Ar(t,r)||i,m?t.style[r]=m:Mi(t,r)),c=[n,i],nT(c),n=c[0],i=c[1],h=n.match(ea)||[],v=i.match(ea)||[],v.length){for(;f=ea.exec(i);)d=f[0],_=i.substring(u,f.index),y?y=(y+1)%5:(_.substr(-5)==="rgba("||_.substr(-5)==="hsla(")&&(y=1),d!==(m=h[l++]||"")&&(p=parseFloat(m)||0,x=m.substr((p+"").length),d.charAt(1)==="="&&(d=sa(p,d)+x),g=parseFloat(d),b=d.substr((g+"").length),u=ea.lastIndex-b.length,b||(b=b||pr.units[r]||x,u===i.length&&(i+=b,s.e+=b)),x!==b&&(p=Kn(t,r,m,b)||0),s._pt={_next:s._pt,p:_||l===1?_:",",s:p,c:g-p,m:y&&y<4||r==="zIndex"?Math.round:0});s.c=u<i.length?i.substring(u,i.length):""}else s.r=r==="display"&&i==="none"?vT:yT;return $P.test(i)&&(s.e=0),this._pt=s,s},b0={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},cN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=b0[n]||n,r[1]=b0[i]||i,r.join(" ")},fN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,u,l;if(a==="all"||a===!0)i.cssText="",u=1;else for(a=a.split(","),l=a.length;--l>-1;)s=a[l],An[s]&&(u=1,s=s==="transformOrigin"?Je:re),Mi(n,s);u&&(Mi(n,re),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",cs(n,1),o.uncache=1,gT(i)))}},il={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new Ze(t._pt,r,n,0,0,fN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},ls=[1,0,0,1,0,0],ST={},OT=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},_0=function(t){var r=Ar(t,re);return OT(r)?ls:r.substr(7).match(kP).map(le)},pg=function(t,r){var n=t._gsap||bi(t),i=t.style,a=_0(t),o,s,u,l;return n.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,a=[u.a,u.b,u.c,u.d,u.e,u.f],a.join(",")==="1,0,0,1,0,0"?ls:a):(a===ls&&!t.offsetParent&&t!==ua&&!n.svg&&(u=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,s=t.nextElementSibling,ua.appendChild(t)),a=_0(t),u?i.display=u:Mi(t,"display"),l&&(s?o.insertBefore(t,s):o?o.appendChild(t):ua.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Zm=function(t,r,n,i,a,o){var s=t._gsap,u=a||pg(t,!0),l=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=u[0],y=u[1],m=u[2],d=u[3],g=u[4],_=u[5],b=r.split(" "),x=parseFloat(b[0])||0,v=parseFloat(b[1])||0,w,S,A,P;n?u!==ls&&(S=p*d-y*m)&&(A=x*(d/S)+v*(-m/S)+(m*_-d*g)/S,P=x*(-y/S)+v*(p/S)-(p*_-y*g)/S,x=A,v=P):(w=xT(t),x=w.x+(~b[0].indexOf("%")?x/100*w.width:x),v=w.y+(~(b[1]||b[0]).indexOf("%")?v/100*w.height:v)),i||i!==!1&&s.smooth?(g=x-l,_=v-c,s.xOffset=f+(g*p+_*m)-g,s.yOffset=h+(g*y+_*d)-_):s.xOffset=s.yOffset=0,s.xOrigin=x,s.yOrigin=v,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[Je]="0px 0px",o&&(Bn(o,s,"xOrigin",l,x),Bn(o,s,"yOrigin",c,v),Bn(o,s,"xOffset",f,s.xOffset),Bn(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",x+" "+v)},cs=function(t,r){var n=t._gsap||new sT(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",u=getComputedStyle(t),l=Ar(t,Je)||"0",c,f,h,p,y,m,d,g,_,b,x,v,w,S,A,P,C,T,E,k,j,$,M,I,L,q,R,D,B,U,W,X;return c=f=h=m=d=g=_=b=x=0,p=y=1,n.svg=!!(t.getCTM&&wT(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[re]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[re]!=="none"?u[re]:"")),i.scale=i.rotate=i.translate="none"),S=pg(t,n.svg),n.svg&&(n.uncache?(L=t.getBBox(),l=n.xOrigin-L.x+"px "+(n.yOrigin-L.y)+"px",I=""):I=!r&&t.getAttribute("data-svg-origin"),Zm(t,I||l,!!I||n.originIsAbsolute,n.smooth!==!1,S)),v=n.xOrigin||0,w=n.yOrigin||0,S!==ls&&(T=S[0],E=S[1],k=S[2],j=S[3],c=$=S[4],f=M=S[5],S.length===6?(p=Math.sqrt(T*T+E*E),y=Math.sqrt(j*j+k*k),m=T||E?Vi(E,T)*ui:0,_=k||j?Vi(k,j)*ui+m:0,_&&(y*=Math.abs(Math.cos(_*la))),n.svg&&(c-=v-(v*T+w*k),f-=w-(v*E+w*j))):(X=S[6],U=S[7],R=S[8],D=S[9],B=S[10],W=S[11],c=S[12],f=S[13],h=S[14],A=Vi(X,B),d=A*ui,A&&(P=Math.cos(-A),C=Math.sin(-A),I=$*P+R*C,L=M*P+D*C,q=X*P+B*C,R=$*-C+R*P,D=M*-C+D*P,B=X*-C+B*P,W=U*-C+W*P,$=I,M=L,X=q),A=Vi(-k,B),g=A*ui,A&&(P=Math.cos(-A),C=Math.sin(-A),I=T*P-R*C,L=E*P-D*C,q=k*P-B*C,W=j*C+W*P,T=I,E=L,k=q),A=Vi(E,T),m=A*ui,A&&(P=Math.cos(A),C=Math.sin(A),I=T*P+E*C,L=$*P+M*C,E=E*P-T*C,M=M*P-$*C,T=I,$=L),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,g=180-g),p=le(Math.sqrt(T*T+E*E+k*k)),y=le(Math.sqrt(M*M+X*X)),A=Vi($,M),_=Math.abs(A)>2e-4?A*ui:0,x=W?1/(W<0?-W:W):0),n.svg&&(I=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!OT(Ar(t,re)),I&&t.setAttribute("transform",I))),Math.abs(_)>90&&Math.abs(_)<270&&(a?(p*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,_+=_<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=le(p),n.scaleY=le(y),n.rotation=le(m)+s,n.rotationX=le(d)+s,n.rotationY=le(g)+s,n.skewX=_+s,n.skewY=b+s,n.transformPerspective=x+o,(n.zOrigin=parseFloat(l.split(" ")[2])||!r&&n.zOrigin||0)&&(i[Je]=al(l)),n.xOffset=n.yOffset=0,n.force3D=pr.force3D,n.renderTransform=n.svg?pN:_T?AT:hN,n.uncache=0,n},al=function(t){return(t=t.split(" "))[0]+" "+t[1]},nf=function(t,r,n){var i=Ne(r);return le(parseFloat(r)+parseFloat(Kn(t,"x",n+"px",i)))+i},hN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,AT(t,r)},ii="0deg",vo="0px",ai=") ",AT=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,u=n.z,l=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,g=n.force3D,_=n.target,b=n.zOrigin,x="",v=g==="auto"&&t&&t!==1||g===!0;if(b&&(f!==ii||c!==ii)){var w=parseFloat(c)*la,S=Math.sin(w),A=Math.cos(w),P;w=parseFloat(f)*la,P=Math.cos(w),o=nf(_,o,S*P*-b),s=nf(_,s,-Math.sin(w)*-b),u=nf(_,u,A*P*-b+b)}d!==vo&&(x+="perspective("+d+ai),(i||a)&&(x+="translate("+i+"%, "+a+"%) "),(v||o!==vo||s!==vo||u!==vo)&&(x+=u!==vo||v?"translate3d("+o+", "+s+", "+u+") ":"translate("+o+", "+s+ai),l!==ii&&(x+="rotate("+l+ai),c!==ii&&(x+="rotateY("+c+ai),f!==ii&&(x+="rotateX("+f+ai),(h!==ii||p!==ii)&&(x+="skew("+h+", "+p+ai),(y!==1||m!==1)&&(x+="scale("+y+", "+m+ai),_.style[re]=x||"translate(0, 0)"},pN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,u=n.rotation,l=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,g=n.yOffset,_=n.forceCSS,b=parseFloat(o),x=parseFloat(s),v,w,S,A,P;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=la,l*=la,v=Math.cos(u)*f,w=Math.sin(u)*f,S=Math.sin(u-l)*-h,A=Math.cos(u-l)*h,l&&(c*=la,P=Math.tan(l-c),P=Math.sqrt(1+P*P),S*=P,A*=P,c&&(P=Math.tan(c),P=Math.sqrt(1+P*P),v*=P,w*=P)),v=le(v),w=le(w),S=le(S),A=le(A)):(v=f,A=h,w=S=0),(b&&!~(o+"").indexOf("px")||x&&!~(s+"").indexOf("px"))&&(b=Kn(p,"x",o,"px"),x=Kn(p,"y",s,"px")),(y||m||d||g)&&(b=le(b+y-(y*v+m*S)+d),x=le(x+m-(y*w+m*A)+g)),(i||a)&&(P=p.getBBox(),b=le(b+i/100*P.width),x=le(x+a/100*P.height)),P="matrix("+v+","+w+","+S+","+A+","+b+","+x+")",p.setAttribute("transform",P),_&&(p.style[re]=P)},dN=function(t,r,n,i,a){var o=360,s=Oe(a),u=parseFloat(a)*(s&&~a.indexOf("rad")?ui:1),l=u-i,c=i+l+"deg",f,h;return s&&(f=a.split("_")[1],f==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),f==="cw"&&l<0?l=(l+o*d0)%o-~~(l/o)*o:f==="ccw"&&l>0&&(l=(l-o*d0)%o-~~(l/o)*o)),t._pt=h=new Ze(t._pt,r,n,i,l,ZI),h.e=c,h.u="deg",t._props.push(n),h},x0=function(t,r){for(var n in r)t[n]=r[n];return t},mN=function(t,r,n){var i=x0({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,u,l,c,f,h,p,y;i.svg?(l=n.getAttribute("transform"),n.setAttribute("transform",""),o[re]=r,s=cs(n,1),Mi(n,re),n.setAttribute("transform",l)):(l=getComputedStyle(n)[re],o[re]=r,s=cs(n,1),o[re]=l);for(u in An)l=i[u],c=s[u],l!==c&&a.indexOf(u)<0&&(p=Ne(l),y=Ne(c),f=p!==y?Kn(n,u,l,y):parseFloat(l),h=parseFloat(c),t._pt=new Ze(t._pt,s,u,f,h-f,Ym),t._pt.u=y||0,t._props.push(u));x0(s,i)};Ve("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return t<2?e+s:"border"+s+e});il[t>1?"border"+e:e]=function(s,u,l,c,f){var h,p;if(arguments.length<4)return h=o.map(function(y){return pn(s,y,l)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(u,p,f)}});var PT={name:"css",register:Vm,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,u=n.vars.startAt,l,c,f,h,p,y,m,d,g,_,b,x,v,w,S,A;cg||Vm(),this.styles=this.styles||bT(t),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(lr[m]&&uT(m,r,n,i,t,a)))){if(p=typeof c,y=il[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=os(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",Gn.lastIndex=0,Gn.test(l)||(d=Ne(l),g=Ne(c)),g?d!==g&&(l=Kn(t,m,l,g)+g):d&&(c+=d),this.add(s,"setProperty",l,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(p!=="undefined"){if(u&&m in u?(l=typeof u[m]=="function"?u[m].call(n,i,t,a):u[m],Oe(l)&&~l.indexOf("random(")&&(l=os(l)),Ne(l+"")||l==="auto"||(l+=pr.units[m]||Ne(pn(t,m))||""),(l+"").charAt(1)==="="&&(l=pn(t,m))):l=pn(t,m),h=parseFloat(l),_=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),_&&(c=c.substr(2)),f=parseFloat(c),m in Xr&&(m==="autoAlpha"&&(h===1&&pn(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),Bn(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=Xr[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in An,b){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=Ar(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),x||(v=t._gsap,v.renderTransform&&!r.parseTransform||cs(t,r.parseTransform),w=r.smoothOrigin!==!1&&v.smooth,x=this._pt=new Ze(this._pt,s,re,0,1,v.renderTransform,v,0,-1),x.dep=1),m==="scale")this._pt=new Ze(this._pt,v,"scaleY",v.scaleY,(_?sa(v.scaleY,_+f):f)-v.scaleY||0,Ym),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(Je,0,s[Je]),c=cN(c),v.svg?Zm(t,c,0,w,0,this):(g=parseFloat(c.split(" ")[2])||0,g!==v.zOrigin&&Bn(this,v,"zOrigin",v.zOrigin,g),Bn(this,s,m,al(l),al(c)));continue}else if(m==="svgOrigin"){Zm(t,c,1,w,0,this);continue}else if(m in ST){dN(this,v,m,h,_?sa(h,_+c):c);continue}else if(m==="smoothOrigin"){Bn(this,v,"smooth",v.smooth,c);continue}else if(m==="force3D"){v[m]=c;continue}else if(m==="transform"){mN(this,c,t);continue}}else m in s||(m=Ta(m)||m);if(b||(f||f===0)&&(h||h===0)&&!VI.test(c)&&m in s)d=(l+"").substr((h+"").length),f||(f=0),g=Ne(c)||(m in pr.units?pr.units[m]:d),d!==g&&(h=Kn(t,m,l,g)),this._pt=new Ze(this._pt,b?v:s,m,h,(_?sa(h,_+f):f)-h,!b&&(g==="px"||m==="zIndex")&&r.autoRound!==!1?QI:Ym),this._pt.u=g||0,d!==g&&g!=="%"&&(this._pt.b=l,this._pt.r=JI);else if(m in s)lN.call(this,t,m,l,_?_+c:c);else if(m in t)this.add(t,m,l||t[m],_?_+c:c,i,a);else if(m!=="parseTransform"){tg(m,c);continue}b||(m in s?A.push(m,0,s[m]):typeof t[m]=="function"?A.push(m,2,t[m]()):A.push(m,1,l||t[m])),o.push(m)}}S&&dT(this)},render:function(t,r){if(r.tween._time||!fg())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:pn,aliases:Xr,getSetter:function(t,r,n){var i=Xr[r];return i&&i.indexOf(",")<0&&(r=i),r in An&&r!==Je&&(t._gsap.x||pn(t,"x"))?n&&p0===n?r==="scale"?nN:rN:(p0=n||{})&&(r==="scale"?iN:aN):t.style&&!Zv(t.style[r])?tN:~r.indexOf("-")?eN:ug(t,r)},core:{_removeProperty:Mi,_getMatrix:pg}};er.utils.checkPrefix=Ta;er.core.getStyleSaver=bT;(function(e,t,r,n){var i=Ve(e+","+t+","+r,function(a){An[a]=1});Ve(t,function(a){pr.units[a]="deg",ST[a]=1}),Xr[i[13]]=e+","+t,Ve(n,function(a){var o=a.split(":");Xr[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Ve("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){pr.units[e]="px"});er.registerPlugin(PT);var Jm=er.registerPlugin(PT)||er;Jm.core.Tween;const go={IN_OUT:"power2.inOut",OUT:"power2.out"},lu={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class TT{constructor(t,r={}){co(this,"timeline");co(this,"currentStage","");co(this,"callbacks");co(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Jm.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToBar",n),n+=t.seatsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToBar(t,r){const n=this.durations.seatsToBar/1e3;return t.each(function(i,a){const o=this;if(!r[a])return;const u=o.getAttribute("x"),l=o.getAttribute("y"),c=o.getAttribute("width"),f=o.getAttribute("height");o.setAttribute("data-orig-x",u||"0"),o.setAttribute("data-orig-y",l||"0"),o.setAttribute("data-orig-width",c||"0"),o.setAttribute("data-orig-height",f||"0")}),this.timeline.to(t.nodes(),{x:i=>{var a;return((a=r[i])==null?void 0:a.x)??0},y:i=>{var a;return((a=r[i])==null?void 0:a.y)??0},width:i=>{var a;return((a=r[i])==null?void 0:a.width)??0},height:i=>{var a;return((a=r[i])==null?void 0:a.height)??0},duration:n,ease:go.IN_OUT,stagger:lu.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToBar")}},"seatsToBar"),this}animateAxesReveal(t,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([t.node(),r.node()],{opacity:1,duration:n,ease:go.IN_OUT,stagger:lu.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(t,r){const n=this.durations.barSlide/1e3;return this.timeline.to(t.nodes(),{x:r,duration:n,ease:go.OUT,stagger:lu.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(t,r,n=lu.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return t.nodes().forEach((o,s)=>{const u=o,l=u.getAttribute("data-final-y")||"0",c=u.getAttribute("data-final-height")||"0",f=parseInt(u.getAttribute("data-timestamp-index")||"0"),p=Math.abs(f-r)*n;this.timeline.fromTo(u,{height:0,y:parseFloat(u.getAttribute("data-chart-baseline")||"400")},{y:parseFloat(l),height:parseFloat(c),duration:i,delay:p,ease:go.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(t,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return t.each(function(){var c;const s=this,u=s.getAttribute("class");if(!u)return;const l=u.match(/category-([\w-]+)/);if(l&&l[1]){const f=l[1];o.has(f)||o.set(f,[]),(c=o.get(f))==null||c.push(s)}}),this.timeline.set(t.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,u=s.getAttribute("data-category");if(!u)return;const l=n.get(u);l&&Jm.to(s,{attr:{d:l},duration:a,ease:go.IN_OUT})}),this.timeline.call(()=>{var s,u;this.currentStage="barsToArea",(u=(s=this.callbacks).onStageComplete)==null||u.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function yN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:u,innerRadiusRatio:l}=t,c=i*l,f=e.reduce((E,k)=>E+k.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const k=E*Math.PI/180;for(let j=s;j>=o;j-=.1){const $=j*2,M=$*u,I=Math.floor((i-c)/M);for(let L=1;L<=Math.min(I,10);L++){let q=0;for(let R=0;R<L;R++){const D=c+(R+.5)*M,B=$*u/D,U=Math.floor(k/B);q+=U}if(q>=f){const R=f/q,D=(j-o)/(s-o),B=(q-f)/f,U=B<.15?1:B<.3?.7:B<.5?.4:.1,W=1-Math.abs(E-r)/n,X=U*.5+D*.3+R*.15+W*.05;X>h.score&&(h={seatSize:j,arcAngle:E,rings:L,score:X})}}}}const m=h.seatSize,d=h.arcAngle,g=d*Math.PI/180,_=m*2,b=_*u,x=Math.floor((i-c)/b),v=[],w=-g/2-Math.PI/2,S=[];let A=0,P=[];for(let E=1;E<=x;E++){let k=0;const j=[];for(let $=0;$<E;$++){const M=c+($+.5)*b,I=_*u/M,L=Math.floor(g/I);j.push(L),k+=L}if(k>=f){A=E,P=j;break}}if(A>0)S.push(...P);else for(let E=0;E<x;E++){const k=c+(E+.5)*b,j=_*u/k,$=Math.floor(g/j);S.push($)}for(let E=0;E<S.length;E++){const k=c+(E+.5)*b,j=S[E]??0;if(j>0){const $=g/j;for(let M=0;M<j;M++){const I=w+(M+.5)*$,L=Math.cos(I)*k,q=Math.sin(I)*k;v.push({ring:E,index:M,angle:I,x:L,y:q})}}}v.sort((E,k)=>{const j=E.angle-k.angle;return Math.abs(j)>.001?j:E.ring-k.ring});const C=[];let T=0;return e.forEach((E,k)=>{const j=Math.min(E.seats,v.length-T);for(let $=0;$<j&&T<v.length;$++){const M=v[T++];M&&C.push({x:M.x,y:M.y,category:E.name,categoryIndex:k,seatIndex:$,ring:M.ring,angle:M.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:C,totalSeats:f}}function vN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}const Qe={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},Bo=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],Ke={greyHatch:{background:Qe.neoGrey[200],lines:Qe.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function gN(e,t){const r=e.append("pattern").attr("id",`${t}-greyHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",Ke.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",Ke.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",Ke.greyHatch.lines).attr("stroke-width",.5)}function bN(e,t){const r=e.append("pattern").attr("id",`${t}-dataMissingHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",Ke.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",Ke.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",Ke.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",Ke.dataMissingHatch.lines).attr("stroke-width",.5)}function _N(e,t){const r=e.append("pattern").attr("id",`${t}-noLstHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",Ke.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",Ke.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",Ke.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",Ke.noLstHatch.lines).attr("stroke-width",.5)}function cu(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),gN(r,t),bN(r,t),_N(r,t)}function w0(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function ET(e){return e.includes("greyHatchPattern")?Ke.greyHatch.lines:e.includes("dataMissingHatchPattern")?Ke.dataMissingHatch.lines:e.includes("noLstHatchPattern")?Ke.noLstHatch.lines:e}function Qm(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,u=hi().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(Ci),l=Kv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(Ci),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var g;const y=r[p];if(!y)return;const m=((g=y.parliamentMapping)==null?void 0:g.isSpecialCategory)??!1,d=ET(y.color);if(m){const _=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",l).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;_.attr("class",b)}}else{const _=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",u).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;_.attr("class",b)}}})}function xN(e,t){var n;const r=[];for(const i of e){let a=0;for(const o of t){const s=i[o.dataKey]||0,u=a,l=a+s;r.push({timestamp:i.timestamp,category:o.label,dataKey:o.dataKey,y0:u,y1:l,value:s,color:o.color,isSpecialCategory:((n=o.parliamentMapping)==null?void 0:n.isSpecialCategory)??!1}),a+=s}}return r}function Ge(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function CT(e,t,r,n){const{centerX:i,centerY:a,addClasses:o=!0,instanceId:s,parliamentRadius:u=200}=n,l=s?`parliament parliament-${s}`:"parliament";let c=e.select(s?`.parliament-${s}`:".parliament");c.empty()&&(c=e.append("g").attr("class",l)),t.seats.forEach(p=>{const y=r.find(g=>g.label===p.category);if(!y)return;const m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const g=s?`seat seat-${s} seat-${Ge(p.category)}`:`seat seat-${Ge(p.category)}`;m.attr("class",g),d.attr("class",g)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-u*.15})`).style("opacity","0").style("pointer-events","none");p.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),p.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const y=p.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");y.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),y.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}}function wN(e,t,r,n,i,a,o=!1){var f;const s=new Map;let u=i;if(t.length>0&&((f=t[0])==null?void 0:f.timestamp)!==void 0){const h=t[0].timestamp;u=r(new Date(h))}const l=new Map;for(const h of e.seats)l.has(h.category)||l.set(h.category,[]),l.get(h.category).push(h);const c=new Map;for(const h of t)c.set(h.dataKey,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory}),h.label&&h.label!==h.dataKey&&c.set(h.label,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory});for(const h of e.seats){const p=c.get(h.category);if(!p){s.set(h,{x:u,y:a/2});continue}const y=n(p.y0),m=n(p.y1);let d;if(o){const g=l.get(h.category)??[],_=h.seatIndex,b=g.length;if(b===1)d=(y+m)/2;else{const x=_/(b-1);d=y+(m-y)*x}}else d=m;s.set(h,{x:u,y:d})}return s}function SN(e,t,r){var o;if(e.length===0)return[];const n=e[e.length-1],i=[];let a=0;for(const s of t){const u=n[s.dataKey]||0,l=a,c=a+u;i.push({dataKey:s.dataKey,label:s.label,y0:l,y1:c,value:u,timestamp:n.timestamp,isSpecialCategory:((o=s.parliamentMapping)==null?void 0:o.isSpecialCategory)??!1}),a+=u}return i}function ON(e){const t=e;return{seatsToBar:t*.27,crossFadePause:t*.03,barSlideToTimeline:t*.25,axesAndBarsGrow:t*.25,barsToArea:t*.2}}const di=new Map;Qt.prototype.transition=Av;const AN=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:u=!0,showAxes:l=!0,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:m=4.5,animationDuration:d=900,onMorphComplete:g,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:v,hoveredCategory:w,maxSeats:S=2e3,parliamentTimestamp:A,enableBrush:P=!1,onTimeRangeChange:C,showScaleIndicator:T=!1,reposPerSeat:E=1,timelineEvents:k=[],showTimeline:j=!1,timelineHeight:$=40,timelineOffset:M=35})=>{const[I,L]=O.useState("area"),[q,R]=O.useState(!1),[D,B]=O.useState(null),[U,W]=O.useState(0),[X,Z]=O.useState(null),[Q,K]=O.useState(null),[F,G]=O.useState([]),J=O.useRef(null),N=O.useRef(n),ut=O.useRef(!0),H=O.useRef(!1),st=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),ht=O.useRef(void 0),at=O.useRef(s),pt=O.useRef(g),Tt=O.useRef(_),it=O.useRef(b),ft=O.useRef(x),wt=O.useRef(v);O.useEffect(()=>{pt.current=g,Tt.current=_,it.current=b,ft.current=x,wt.current=v},[g,_,b,x,v]),O.useEffect(()=>{if(e.current&&I==="parliament")if(w){const Mt=r.find(Dt=>Dt.dataKey===w);if(Mt){const Dt=Mt.label;B(Dt),qo(e.current,Dt)}}else B(null),qo(e.current,null)},[w,I,r,t]);const Et=i-o.left-o.right,Vt=a-o.top-o.bottom;return O.useEffect(()=>{var rt;if(!e.current||t.length===0||r.length===0||(ht.current&&(ht.current(),ht.current=void 0),H.current))return;const Mt=Qt(e.current),Dt=n!==N.current;ut.current?(Mt.selectAll("*").remove(),cu(Mt,st.current),ut.current=!1):Dt||(Mt.selectAll("*").remove(),cu(Mt,st.current));const Pe=t[t.length-1],Cn=r.reduce((ot,mt)=>ot+(Pe.values[mt.dataKey]||0),0),an=t.map(ot=>{const mt={timestamp:ot.timestamp};for(const Ot of r)mt[Ot.dataKey]=ot.values[Ot.dataKey]||0;return mt}),nr=r.map(ot=>ot.dataKey),Me=Ju().keys(nr),zr=Me(an),Mr=t.map(ot=>ot.timestamp),ri=Dt||!s?Math.min(...Mr):s[0],Ur=Dt||!s?Math.max(...Mr):s[1],on=[...Mr].sort((ot,mt)=>ot-mt),ir=[];for(let ot=0;ot<on.length-1;ot++)ir.push(on[ot+1]-on[ot]);const Mn=ir.length>0?ir.reduce((ot,mt)=>ot+mt,0)/ir.length:0,tt=Ur+Mn*1.15,ct=Hu().domain([new Date(ri),new Date(tt)]).range([0,Et]),bt=an.filter(ot=>ot.timestamp>=ri&&ot.timestamp<=Ur),xt=Me(bt),St=xt.length>0?Math.max(...xt[xt.length-1].map(ot=>ot[1]??0)):0,kt=Ei().domain([0,St*1.15]).range([Vt,0]),Yt=r.map(ot=>({...ot,color:w0(ot.color,st.current)})),We=Yt.map(ot=>({dataKey:ot.dataKey,label:ot.label,color:ot.color,value:Pe.values[ot.dataKey]||0})),ne=vN(We,Cn,S).reverse(),we=yN(ne,{arcAngle:p,radius:y,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});J.current=we;const Wr=SN(an,r),Wi=wN(we,Wr,ct,kt,Et,Vt);if(Dt&&!H.current){H.current=!0,R(!0),(rt=Tt.current)==null||rt.call(Tt,!0),Z(null),G([]),W(0);let ot=Mt.select("g[transform]");if(ot.empty()&&(ot=Mt.select("g")),ot.empty()){Mt.selectAll("*").remove(),cu(Mt,st.current),af(Mt,n==="parliament"?"parliament":"area",zr,Yt,we,ct,kt,Et,Vt,o,u,l,c,f,P,C,st.current,h,s,G,Z,k,j,$,M,K),R(!1),L(n==="parliament"?"parliament":"area"),W(n==="parliament"?1:0),N.current=n;return}const mt=setTimeout(()=>{H.current=!1,R(!1),N.current=n},d*3);EN(Mt,n,zr,Yt,we,Wi,ct,kt,Et,Vt,o,d,()=>{var Ot,ie;if(clearTimeout(mt),H.current=!1,R(!1),L(n==="parliament"?"parliament":"area"),n==="parliament"&&W(1),(Ot=Tt.current)==null||Ot.call(Tt,!1),(ie=pt.current)==null||ie.call(pt),N.current=n,n==="parliament"&&e.current&&wt.current&&(ht.current=of(e.current,Yt,t,D,B,wt.current,T,E,st.current)),n!=="parliament"&&e.current){const Zt=Qt(e.current),ke=Zt.select(st.current?`.main-chart-group-${st.current}`:".main-chart-group");if(j&&K&&MT(Zt,k,ct,Vt,Et,$,M,st.current,K,P,C),P&&C&&!j){const se=ke.select(st.current?`.chart-content-group-${st.current}`:".chart-content-group");PN(se,Et,Vt,ct,C,st.current,Zt)}if(h.length>0&&G&&Z&&s){const se=h.filter(ue=>ue.timestamp>=(s[0]??0)&&ue.timestamp<=(s[1]??1/0)).map(ue=>({...ue,x:ct(new Date(ue.timestamp))}));G(se),se.length>0&&TN(ke,se,Vt,Et,P,Z,st.current)}}},l,c,f,it.current,(Ot,ie)=>{var Zt;if(n==="parliament"&&Ot>=.95){const ke=(Ot-.95)/.05;W(Math.min(ke,1))}(Zt=ft.current)==null||Zt.call(ft,Ot,ie)},A,st.current)}else N.current=n,n==="parliament"&&(Z(null),G([])),af(Mt,n==="parliament"?"parliament":"area",zr,Yt,we,ct,kt,Et,Vt,o,u,l,c,f,P,C,st.current,h,s,G,Z,k,j,$,M,K),L(n==="parliament"?"parliament":"area"),W(n==="parliament"?1:0),n==="parliament"&&e.current&&wt.current&&(ht.current=of(e.current,Yt,t,D,B,wt.current,T,E,st.current));return()=>{ht.current&&(ht.current(),ht.current=void 0)}},[n]),O.useEffect(()=>{var bt,xt;if(!e.current||t.length===0||H.current)return;if(ut.current){at.current=s;return}if(!(s!==at.current&&((s==null?void 0:s[0])!==((bt=at.current)==null?void 0:bt[0])||(s==null?void 0:s[1])!==((xt=at.current)==null?void 0:xt[1]))))return;at.current=s;const Dt=Qt(e.current),Pe=t.map(St=>{const kt={timestamp:St.timestamp};for(const Yt of r)kt[Yt.dataKey]=St.values[Yt.dataKey]||0;return kt}),Cn=r.map(St=>St.dataKey),nr=Ju().keys(Cn)(Pe),Me=t.map(St=>St.timestamp),zr=s?s[0]:Math.min(...Me),Mr=s?s[1]:Math.max(...Me),Ur=(Me.length>1?(Me[Me.length-1]-Me[0])/(Me.length-1):0)*.5,on=Hu().domain([new Date(zr-Ur),new Date(Mr+Ur)]).range([0,i-o.left-o.right]),ir=Math.max(...nr[nr.length-1].map(St=>St[1])),Mn=Ei().domain([0,ir*1.1]).range([a-o.top-o.bottom,0]);if(!J.current)return;const tt=J.current,ct=r.map(St=>({...St,color:w0(St.color,st.current)}));Dt.selectAll("*").remove(),cu(Dt,st.current),af(Dt,I==="parliament"?"parliament":"area",nr,ct,tt,on,Mn,i-o.left-o.right,a-o.top-o.bottom,o,u,l,c,f,P,C,st.current,h,s,G,Z,k,j,$,M,K),I==="parliament"&&e.current&&wt.current&&(ht.current=of(e.current,ct,t,D,B,wt.current,T,E,st.current))},[s]),{isMorphing:q,currentMode:I,hoveredCategory:D,scaleIndicatorOpacity:U,visibleMarkers:F,hoveredMarker:X,setHoveredMarker:Z,hoveredTimelineEvent:Q,setHoveredTimelineEvent:K}};function PN(e,t,r,n,i,a,o){const s=Yl().extent([[0,0],[t,r]]).on("end",l=>{if(!l.selection)return;const[c,f]=l.selection,h=[+n.invert(c),+n.invert(f)];i(h),o.select(".brush").call(s.move,null)}),u=e.append("g").attr("class","brush").call(s);u.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),u.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),u.on("dblclick",()=>{const l=n.domain(),c=[+l[0],+l[1]];i(c)})}function TN(e,t,r,n,i,a,o){const s=e.select(o?`.chart-content-group-${o}`:".chart-content-group"),u=o?`markers markers-${o}`:"markers",l=e.append("g").attr("class",u);t.forEach(h=>{l.append("line").attr("class","marker-line").attr("data-timestamp",h.timestamp).attr("x1",h.x).attr("x2",h.x).attr("y1",0).attr("y2",r).attr("stroke",h.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),h.label&&l.append("text").attr("class","marker-label").attr("data-timestamp",h.timestamp).attr("x",h.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",h.color??"#2F42FF").attr("opacity",0)});let c=null,f;i?f=s.select(".brush .overlay"):f=s.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",r).attr("fill","none").attr("pointer-events","all"),f.on("mousemove",function(h){const[p]=Jo(h,this);let y=null,m=1/0;if(t.forEach(_=>{const b=Math.abs(p-_.x);b<m&&(m=b,y=_)}),!y||m>50){c!==null&&(c=null,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),a(null));return}const g=y;c!==g.timestamp&&(c=g.timestamp,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),l.selectAll(".marker-line").filter(function(){return Qt(this).attr("data-timestamp")===String(g.timestamp)}).attr("opacity",.6),l.selectAll(".marker-label").filter(function(){return Qt(this).attr("data-timestamp")===String(g.timestamp)}).attr("opacity",1),a(g))}),f.on("mouseleave",function(){c=null,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),a(null)})}function af(e,t,r,n,i,a,o,s,u,l,c,f,h,p,y=!1,m,d,g=[],_=[0,0],b,x,v=[],w=!1,S=40,A=15,P){let C=null;const T=d?`main-chart-group main-chart-group-${d}`:"main-chart-group",E=e.append("g").attr("class",T).attr("transform",`translate(${l.left},${l.top})`),k=d?`chart-clip-${d}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",k).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",u);const j=d?`chart-content-group chart-content-group-${d}`:"chart-content-group",$=E.append("g").attr("class",j).attr("clip-path",`url(#${k})`);if(c&&t!=="parliament"&&($.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Vo(a).ticks(6).tickSize(u).tickFormat(()=>"")),$.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Zo(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Qm($,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:d}),g.length>0)){const M=g.filter(I=>I.timestamp>=_[0]&&I.timestamp<=_[1]).map(I=>({...I,x:a(new Date(I.timestamp))}));C={markersGroup:null,visibleMarkers:M},b&&b(M)}if(t==="parliament"){const M=s/2,I=i.radius+10,L=u-i.radius*.3,q=Math.max(I,L);CT($,i,n,{centerX:M,centerY:q,addClasses:!0,instanceId:d,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const M=Vo(a).ticks(6);h&&M.tickFormat(L=>h(+L)),E.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).call(M).selectAll("text").attr("font-size",14).attr("font-weight",500);const I=Zo(o).ticks(5);p&&I.tickFormat(L=>p(+L)),E.append("g").attr("class","axis axis-y").call(I).selectAll("text").attr("font-size",14).attr("font-weight",500)}if(y&&m&&t==="area"){const M=Yl().extent([[0,0],[s,u]]).on("end",L=>{if(!L.selection)return;const[q,R]=L.selection,D=[+a.invert(q),+a.invert(R)];m(D),e.select(".brush").call(M.move,null)}),I=$.append("g").attr("class","brush").call(M);I.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),I.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),I.on("dblclick",()=>{const L=a.domain(),q=[+L[0],+L[1]];m(q)})}if(t==="area"&&C&&C.visibleMarkers.length>0){const M=E.append("g").attr("class","markers").attr("clip-path",`url(#${k})`);C.visibleMarkers.forEach(I=>{M.append("line").attr("class","marker-line").attr("data-timestamp",I.timestamp).attr("x1",I.x).attr("x2",I.x).attr("y1",0).attr("y2",u).attr("stroke",I.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),I.label&&M.append("text").attr("class","marker-label").attr("data-timestamp",I.timestamp).attr("x",I.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",I.color??"#2F42FF").attr("opacity",0)}),C.markersGroup=M}if(t==="area"&&w&&P&&MT(e,v,a,u,s,S,A,d,P,y,m),C&&C.visibleMarkers.length>0&&x&&t==="area"){const{markersGroup:M,visibleMarkers:I}=C;let L=null,q;y?q=$.select(".brush .overlay"):q=$.append("rect").attr("class","marker-hover-overlay").attr("width",s).attr("height",u).attr("fill","none").attr("pointer-events","all");const R=D=>{let B=null,U=1/0;if(I.forEach(Z=>{const Q=Math.abs(D-Z.x);Q<U&&(U=Q,B=Z)}),!B||U>50)return L!==null&&(L=null,M.selectAll(".marker-line").attr("opacity",0),M.selectAll(".marker-label").attr("opacity",0),x(null)),!1;const X=B;return L===X.timestamp||(L=X.timestamp,M.selectAll(".marker-line").attr("opacity",0),M.selectAll(".marker-label").attr("opacity",0),M.selectAll(".marker-line").filter(function(){return Qt(this).attr("data-timestamp")===String(X.timestamp)}).attr("opacity",.6),M.selectAll(".marker-label").filter(function(){return Qt(this).attr("data-timestamp")===String(X.timestamp)}).attr("opacity",1),x(X)),!0};q.on("mousemove",function(D){const[B]=Jo(D,this);R(B)}),q.on("mouseleave",function(){L=null,M.selectAll(".marker-line").attr("opacity",0),M.selectAll(".marker-label").attr("opacity",0),x(null)})}}function MT(e,t,r,n,i,a,o,s,u,l=!1,c){const f=n+o,h=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),p=s?`timeline-track timeline-track-${s}`:"timeline-track",y=h.append("g").attr("class",p),m=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",m).append("rect").attr("x",0).attr("y",f).attr("width",i).attr("height",a),y.append("rect").attr("class","timeline-background").attr("x",0).attr("y",f).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const d=y.append("g").attr("clip-path",`url(#${m})`),g=3,_=d.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",x=>r(new Date(x.timestamp))-g/2).attr("y",f).attr("width",g).attr("height",a).attr("fill",x=>x.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",x=>x.timestamp).attr("data-event-name",x=>x.eventName),b=6;if(_.on("mouseenter",function(x,v){const w=Qt(this),S=r(new Date(v.timestamp));w.transition().duration(150).attr("x",S-b/2).attr("width",b),u&&u({timestamp:v.timestamp,eventName:v.eventName,x:S})}).on("mouseleave",function(x,v){const w=Qt(this),S=r(new Date(v.timestamp));w.transition().duration(150).attr("x",S-g/2).attr("width",g),u&&u(null)}),l&&c){const x=Yl().extent([[0,f],[i,f+a]]).on("end",S=>{if(!S.selection)return;const[A,P]=S.selection,C=[+r.invert(A),+r.invert(P)];c(C);const T=s?`.timeline-brush-${s}`:".timeline-brush";e.select(T).call(x.move,null)}),v=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",w=h.append("g").attr("class",v).call(x);w.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),w.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),w.on("dblclick",()=>{const S=r.domain(),A=[+S[0],+S[1]];c(A)})}}function EN(e,t,r,n,i,a,o,s,u,l,c,f,h,p=!0,y,m,d,g,_,b){const x=e.select(b?`.main-chart-group-${b}`:".main-chart-group");x.selectAll(".markers").remove(),x.selectAll(".marker-hover-overlay").remove(),x.selectAll(".brush").remove(),t==="stacked-area"||t==="area"?CN(x,r,n,i,a,o,s,u,l,f,h,p,y,m,d,g,_,b):MN(x,r,n,i,a,o,s,u,l,f,h,p,y,m,d,g,_,b)}function ca(e,t,r,n,i,a,o,s){const u=e[a];if(!u)return"";const l=u.find(w=>w.data.timestamp===o);if(!l)return"";const c=l.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,g=l[0],_=l[1],b=s?i:n(g),x=s?i:n(_),v=[];return v.push(`M ${m} ${b}`),v.push(`L ${m} ${x}`),v.push(`L ${m+d} ${x}`),v.push(`L ${m+d} ${b}`),v.push("Z"),v.join(" ")}function CN(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,m,d,g){var Wi;const _=g?`.seat-${g}`:".seat",b=e.selectAll(_),x=g?`.chart-content-group-${g}`:".chart-content-group";let v=e.select(x);if(v.empty()){const rt=e.attr("clip-path"),ot=rt?((Wi=rt.match(/url\(#(.+)\)/))==null?void 0:Wi[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,mt=g?`chart-content-group chart-content-group-${g}`:"chart-content-group";v=e.append("g").attr("class",mt).attr("clip-path",`url(#${ot})`)}if(b.size()===0){Qm(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:g}),c();return}const w=ON(l),S=g?di.get(g):void 0;S&&(S.destroy(),g&&di.delete(g));const A=rt=>rt<.3?"seatsToBar":rt<.425?"axesReveal":rt<.55?"barSlide":rt<.8?"barsGrow":"barsToArea",P=new TT({seatsToBar:w.seatsToBar,axesReveal:w.barSlideToTimeline*.3,barSlide:w.barSlideToTimeline*.7,barsGrow:w.axesAndBarsGrow,barsToArea:w.barsToArea},{onStageComplete:rt=>{},onProgress:rt=>{if(m){const ot=A(rt);m(rt,ot)}},onComplete:()=>{c()}});g&&di.set(g,P),y&&y(P.getControls().getTimeline());const C=t[0].map(rt=>rt.data),T=xN(C,r),E=s/2,k=n.radius+10,j=u-n.radius*.3,$=Math.max(k,j),M=C.map(rt=>rt.timestamp),I=d??Math.max(...M),L=new Map,q=[];M.forEach((rt,ot)=>{const mt=a(new Date(rt)),Ot=M[ot+1];if(Ot){const Zt=a(new Date(Ot))-mt;q.push(Zt)}});const R=q.length>0?q.reduce((rt,ot)=>rt+ot,0)/q.length:30;M.forEach((rt,ot)=>{const mt=a(new Date(rt)),Ot=M[ot+1],Zt=ot===M.length-1?R:a(new Date(Ot))-mt;L.set(rt,{x:mt,width:Zt})});const D=T.filter(rt=>rt.timestamp===I),B=L.get(I),U=Math.max(...n.seats.map(rt=>E+rt.x)),W=g?`parliament-bar-path parliament-bar-path-${g}`:"parliament-bar-path",X=v.append("g").attr("class",W);D.sort((rt,ot)=>ot.y0-rt.y0);const Z=new Map;Z.set(I,{x:U-B.width/2,width:B.width});const Q=[];D.forEach(rt=>{if(!r.find(Zt=>Zt.dataKey===rt.dataKey))return;const mt=r.findIndex(Zt=>Zt.dataKey===rt.dataKey);if(mt===-1)return;const Ot=ca(t,r,Z,o,u,mt,I,!1);if(!Ot)return;const ie=X.append("path").attr("class",`parliament-bar-segment category-${Ge(rt.dataKey)}`).attr("d",Ot).attr("fill",rt.color).style("opacity",0).node();ie&&Q.push(ie)}),g&&(window.orchestratorMap=di);const K=P.getControls().getTimeline(),F=w.seatsToBar/1e3,G=[];D.forEach((rt,ot)=>{const mt=b.filter(`.seat-${Ge(rt.category)}`),Ot=mt.size();if(Ot===0)return;const ie=o(rt.y1),Zt=o(rt.y0)-o(rt.y1),ke=mt.nodes().sort((ni,lo)=>{const tu=parseInt(ni.getAttribute("data-layout-index")||"-1",10),sn=parseInt(lo.getAttribute("data-layout-index")||"-1",10);return tu-sn}),se=Math.max(B.width,100),ue=Zt,kn=se/Math.max(ue,1),Be=Math.max(2,Math.ceil(Math.sqrt(Ot*kn))),$n=Math.ceil(Ot/Be),uo=se*.8,Gi=ue*.8,Hi=Be>1?uo/(Be-1):0,Qg=$n>1?Gi/($n-1):0,tb=Be>1?(Be-1)*Hi:0,TM=$n>1?($n-1)*Qg:0,eb=U-se/2+(se-tb)/2,EM=ie+(ue-TM)/2;ke.forEach((ni,lo)=>{const tu=parseInt(ni.getAttribute("data-layout-index")||"-1",10),sn=tu>=0?n.seats[tu]:void 0,CM=sn?E+sn.x:parseFloat(ni.getAttribute("cx")||"0"),MM=sn?$+sn.y:parseFloat(ni.getAttribute("cy")||"0"),kM=(sn==null?void 0:sn.radius)||parseFloat(ni.getAttribute("r")||"4"),jn=Ot%Be;let eu,ru;if(jn>0&&lo<jn)ru=0,eu=lo;else{const nu=lo-(jn>0?jn:0);eu=nu%Be,ru=Math.floor(nu/Be)+(jn>0?1:0)}let rb=eb+eu*Hi;if(jn>0&&ru===0){const nu=jn>1?(jn-1)*Hi:0,jM=(tb-nu)/2;rb=eb+jM+eu*Hi}const $M=EM+ru*Qg;G.push({element:ni,startX:CM,startY:MM,startRadius:kM,category:rt.dataKey,segmentIndex:ot,endY:$M,endX:rb})})});const J=G.map(rt=>{const ot=rt.startX-E,mt=rt.startY-$,Ot=Math.atan2(mt,ot);return{...rt,angle:Ot}});J.sort((rt,ot)=>ot.angle-rt.angle);const N=F*.8,ut=.6,H=J.length,st=N/Math.max(H,1);J.forEach((rt,ot)=>{const mt=ot*st,Ot=rt.endX,ie=rt.endY,Zt=n.radius,ke=Ot-rt.startX;K.to(rt.element,{attr:{cx:Ot,cy:ie,r:3.5},opacity:1,duration:ut,ease:"power2.out",onUpdate:function(){const se=this.progress(),ue=this.targets()[0],kn=rt.startX+ke*se,Be=Math.sin(se*Math.PI)*Zt*.3,uo=rt.startY+(ie-rt.startY)*se-Be;ue.setAttribute("cx",kn.toString()),ue.setAttribute("cy",uo.toString())}},`seatsToBar+=${mt}`)});const ht=st*(H-1)+ut,at=F*.3,pt=ht;K.to(b.nodes(),{opacity:0,duration:at,ease:"power2.inOut"},`seatsToBar+=${pt}`),K.to(Q,{opacity:1,duration:at,ease:"power2.inOut"},`seatsToBar+=${pt}`);const Tt=w.barSlideToTimeline/1e3;let it=null,ft=null;if(f){const rt=Vo(a).ticks(6);h&&rt.tickFormat(mt=>h(mt.getTime())),it=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).attr("opacity",0),it.call(rt).selectAll("text").attr("font-size",14).attr("font-weight",500);const ot=Zo(o).ticks(5);p&&ot.tickFormat(mt=>p(mt)),ft=e.append("g").attr("class","axis axis-y").attr("opacity",0),ft.call(ot).selectAll("text").attr("font-size",14).attr("font-weight",500)}const wt=w.crossFadePause/1e3,Et=pt+at+wt,Vt=U-B.width/2,Dt=B.x-Vt;K.to(X.node(),{attr:{transform:`translate(${Dt}, 0)`},duration:Tt,ease:"power2.out"},`seatsToBar+=${Et}`);const Pe=hi().x(rt=>a(rt.data.timestamp)).y0(rt=>o(rt[0])).y1(rt=>o(rt[1])).curve(Ci),Cn=new Map;t.forEach((rt,ot)=>{const mt=r[ot];if(mt){const Ot=Pe(rt)||"";Cn.set(mt.dataKey,Ot)}});const an=Et+Tt;f&&it&&ft&&K.to([it.node(),ft.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${Et}`);const nr=v.select(".grid-vertical"),Me=v.select(".grid-horizontal");if(!nr.empty()||!Me.empty()){const ot=[];nr.empty()||ot.push(nr.node()),Me.empty()||ot.push(Me.node()),K.to(ot,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${Et}`)}const zr=w.axesAndBarsGrow/1e3,Mr=w.barsToArea/1e3,ri=g?`histogram-paths histogram-paths-${g}`:"histogram-paths",Ur=v.append("g").attr("class",ri);M.forEach(rt=>{if(rt===I)return;const ot=L.get(rt);ot&&r.forEach((mt,Ot)=>{const ie=ca(t,r,L,o,u,Ot,rt,!0),Zt=ca(t,r,L,o,u,Ot,rt,!1);if(!ie||!Zt)return;const ke=g?`histogram-path histogram-path-${g} category-${Ge(mt.dataKey)}`:`histogram-path category-${Ge(mt.dataKey)}`;Ur.append("path").attr("class",ke).attr("d",ie).attr("fill",mt.color).attr("stroke",mt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",mt.dataKey).attr("data-timestamp",rt).attr("data-x-position",ot.x).attr("data-full-height-path",Zt)})});const on=g?`.histogram-path-${g}`:".histogram-path",ir=Ur.selectAll(on);K.to(ir.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${an}`);const Mn=B.x+B.width/2;ir.each(function(){var se;const rt=this.getAttribute("data-full-height-path");if(!rt)return;const ot=parseFloat(this.getAttribute("data-x-position")||"0"),mt=parseFloat(this.getAttribute("data-timestamp")||"0"),Ot=((se=L.get(mt))==null?void 0:se.width)||0,ie=ot+Ot/2,ke=Math.abs(ie-Mn)*8e-4;K.to(this,{attr:{d:rt},duration:zr,ease:"power2.out"},`seatsToBar+=${an+ke}`)});const tt=an+zr,ct=M[M.length-1],xt=a(new Date(ct))+R,kt=a.invert(xt).getTime(),Yt=t.map(rt=>{const ot=rt[rt.length-1],mt={...ot,data:{...ot.data,timestamp:kt}};return[...rt,mt]});Qm(e,Yt,r,{xScale:a,yScale:o,addClasses:!0,instanceId:g});const We=g?`.area-${g}`:".area",ne=e.selectAll(We);ne.attr("opacity",0),K.to(ir.nodes(),{opacity:0,duration:Mr,ease:"power2.inOut"},`seatsToBar+=${tt}`);const we=X.selectAll("path").nodes();we.length>0&&K.to(we,{opacity:0,duration:Mr,ease:"power2.inOut"},`seatsToBar+=${tt}`),K.to(ne.nodes(),{opacity:1,duration:Mr,ease:"power2.inOut"},`seatsToBar+=${tt}`);const Wr=c;P.getControls().getTimeline().eventCallback("onComplete",()=>{const rt=g?`.morph-bar-${g}`:".morph-bar";e.selectAll(rt).remove();const ot=g?`.histogram-paths-${g}`:".histogram-paths";e.selectAll(ot).remove(),f&&(it&&it.attr("opacity",1),ft&&ft.attr("opacity",1)),Wr()}),P.play()}function MN(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,m,d,g){var ir,Mn;const _=g?`.chart-content-group-${g}`:".chart-content-group";let b=e.select(_);if(b.empty()){const tt=e.attr("clip-path"),ct=tt?((ir=tt.match(/url\(#(.+)\)/))==null?void 0:ir[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,bt=g?`chart-content-group chart-content-group-${g}`:"chart-content-group";b=e.append("g").attr("class",bt).attr("clip-path",`url(#${ct})`)}const x=g?`.area-${g}`:".area",v=e.selectAll(x);if(v.size()===0){kN(e,r,n,s,u,g),c();return}const w={areaToBar:l*.2,barsShrink:l*.25,barSlide:l*.175,axesHide:l*.025,barToSeats:l*.3},S=g?di.get(g):void 0;S&&(S.destroy(),g&&di.delete(g));const A=tt=>tt<.2?"areaToBar":tt<.45?"barsShrink":tt<.475?"axesHide":tt<.65?"barSlide":"barToSeats",P=new TT({seatsToBar:w.barToSeats,axesReveal:w.axesHide,barSlide:w.barSlide,barsGrow:w.barsShrink,barsToArea:w.areaToBar},{onStageComplete:tt=>{},onProgress:tt=>{if(m){const ct=A(tt);m(tt,ct)}},onComplete:()=>{c()}});g&&di.set(g,P),y&&y(P.getControls().getTimeline());const T=t[0].map(tt=>tt.data).map(tt=>tt.timestamp),E=d??Math.max(...T),k=new Map,j=[];T.forEach((tt,ct)=>{const bt=a(new Date(tt)),xt=T[ct+1];if(xt){const kt=a(new Date(xt))-bt;j.push(kt)}});const $=j.length>0?j.reduce((tt,ct)=>tt+ct,0)/j.length:30;T.forEach((tt,ct)=>{const bt=a(new Date(tt)),xt=T[ct+1],kt=ct===T.length-1?$:a(new Date(xt))-bt;k.set(tt,{x:bt,width:kt})});const M=P.getControls().getTimeline(),I=w.areaToBar/1e3,L=g?`histogram-paths histogram-paths-${g}`:"histogram-paths",q=b.append("g").attr("class",L);T.forEach(tt=>{const ct=k.get(tt);ct&&r.forEach((bt,xt)=>{const St=ca(t,r,k,o,u,xt,tt,!1);if(!St)return;const kt=g?`histogram-path histogram-path-${g} category-${Ge(bt.dataKey)}`:`histogram-path category-${Ge(bt.dataKey)}`;q.append("path").attr("class",kt).attr("d",St).attr("fill",bt.color).attr("stroke",bt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",bt.dataKey).attr("data-timestamp",tt).attr("data-x-position",ct.x)})});const R=g?`.histogram-path-${g}`:".histogram-path",D=q.selectAll(R);M.to(v.nodes(),{opacity:0,duration:I,ease:"power2.inOut"},"areaToBar"),M.to(D.nodes(),{opacity:1,duration:I,ease:"power2.inOut"},"areaToBar");const B=w.barsShrink/1e3,U=I;D.each(function(){const tt=parseFloat(this.getAttribute("data-timestamp")||"0");if(tt===E)return;const ct=r.find(St=>this.classList.contains(`category-${Ge(St.dataKey)}`));if(!ct)return;const bt=r.indexOf(ct),xt=ca(t,r,k,o,u,bt,tt,!0);xt&&M.to(this,{attr:{d:xt},duration:B,ease:"power2.in"},U)});const W=w.axesHide/1e3,X=U+B;if(f){const tt=e.select(".axis-x"),ct=e.select(".axis-y");tt.empty()||M.to(tt.node(),{opacity:0,duration:W,ease:"power2.inOut"},X),ct.empty()||M.to(ct.node(),{opacity:0,duration:W,ease:"power2.inOut"},X)}const Z=b.select(".grid-vertical"),Q=b.select(".grid-horizontal");Z.empty()||M.to(Z.node(),{opacity:0,duration:W,ease:"power2.inOut"},X),Q.empty()||M.to(Q.node(),{opacity:0,duration:W,ease:"power2.inOut"},X);const K=w.barSlide/1e3,F=X+W,G=s/2,N=Math.max(...n.seats.map(tt=>G+tt.x));D.each(function(){var We;const tt=parseFloat(this.getAttribute("data-timestamp")||"0"),ct=((We=k.get(tt))==null?void 0:We.width)||0,bt=r.find(ne=>this.classList.contains(`category-${Ge(ne.dataKey)}`));if(!bt)return;const xt=r.indexOf(bt),St=tt===E,kt=new Map(k);kt.set(tt,{x:N-ct/2,width:ct});const Yt=ca(t,r,kt,o,u,xt,tt,!St);Yt&&(M.to(this,{attr:{d:Yt},duration:K,ease:"power2.out"},F),this.setAttribute("data-x-position",(N-ct/2).toString()))});const ut=w.barToSeats/1e3,H=F+K,st=s/2,ht=n.radius+10,at=u-n.radius*.3,pt=Math.max(ht,at),Tt=g?`parliament parliament-${g}`:"parliament",it=b.append("g").attr("class",Tt),ft=N,wt=((Mn=k.get(E))==null?void 0:Mn.width)||30,Et=[];t.forEach((tt,ct)=>{const bt=tt.find(St=>St.data.timestamp===E);if(!bt)return;const xt=r[ct];xt&&Et.push({category:xt.label,dataKey:xt.dataKey,color:xt.color,y0:bt[0],y1:bt[1]})}),Et.sort((tt,ct)=>ct.y0-tt.y0);const Vt=new Map;Et.forEach(tt=>{const ct=n.seats.filter(ke=>ke.category===tt.category),bt=o(tt.y1),xt=o(tt.y0)-o(tt.y1),St=ct.length,kt=Math.max(wt,100),Yt=xt,We=kt/Math.max(Yt,1),ne=Math.max(2,Math.ceil(Math.sqrt(St*We))),we=Math.ceil(St/ne),Wr=kt*.8,Wi=Yt*.8,rt=ne>1?Wr/(ne-1):0,ot=we>1?Wi/(we-1):0,mt=ne>1?(ne-1)*rt:0,Ot=we>1?(we-1)*ot:0,ie=ft-kt/2+(kt-mt)/2,Zt=bt+(Yt-Ot)/2;ct.forEach((ke,se)=>{const ue=St%ne;let kn,Be;if(ue>0&&se<ue)Be=0,kn=se;else{const Gi=se-(ue>0?ue:0);kn=Gi%ne,Be=Math.floor(Gi/ne)+(ue>0?1:0)}let $n=ie+kn*rt;if(ue>0&&Be===0){const Gi=ue>1?(ue-1)*rt:0,Hi=(mt-Gi)/2;$n=ie+Hi+kn*rt}const uo=Zt+Be*ot;Vt.set(ke,{x:$n,y:uo})})}),n.seats.forEach((tt,ct)=>{const bt=r.find(ne=>ne.label===tt.category);if(!bt)return;const xt=Vt.get(tt),St=xt?xt.x:st+tt.x,kt=xt?xt.y:pt+tt.y,Yt=st+tt.x,We=pt+tt.y;it.append("circle").attr("cx",St).attr("cy",kt).attr("r",2).attr("fill",bt.color).attr("stroke",bt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>g?`seat seat-${g} seat-${Ge(tt.category)}`:`seat seat-${Ge(tt.category)}`).attr("data-layout-index",ct).attr("data-final-x",Yt).attr("data-final-y",We).attr("data-final-r",tt.radius)});const Mt=g?`.seat-${g}`:".seat",Dt=it.selectAll(Mt),Pe=ut*.15;M.to(Dt.nodes(),{opacity:.8,duration:Pe,ease:"power2.in"},H),M.to(D.nodes(),{opacity:0,duration:ut*.3,ease:"power2.out"},H+Pe*.5);const nr=Dt.nodes().map(tt=>{const ct=parseFloat(tt.getAttribute("cx")||"0"),bt=parseFloat(tt.getAttribute("cy")||"0"),xt=parseFloat(tt.getAttribute("data-final-x")||"0"),St=parseFloat(tt.getAttribute("data-final-y")||"0"),kt=parseFloat(tt.getAttribute("data-final-r")||"4");return{element:tt,startX:ct,startY:bt,finalX:xt,finalY:St,finalR:kt}}).map(tt=>{const ct=tt.finalX-st,bt=tt.finalY-pt,xt=Math.atan2(bt,ct);return{...tt,angle:xt}});nr.sort((tt,ct)=>ct.angle-tt.angle);const Me=Pe,zr=ut*.8,Mr=.6,ri=nr.length,Ur=zr/Math.max(ri,1);nr.forEach((tt,ct)=>{const bt=Me+ct*Ur,xt=tt.finalX-tt.startX,St=n.radius;M.to(tt.element,{attr:{cx:tt.finalX,cy:tt.finalY,r:tt.finalR},opacity:1,duration:Mr,ease:"power2.out",onUpdate:function(){const kt=this.progress(),Yt=this.targets()[0],We=tt.startX+xt*kt,ne=Math.sin(kt*Math.PI)*St*.3,Wr=tt.startY+(tt.finalY-tt.startY)*kt-ne;Yt.setAttribute("cx",We.toString()),Yt.setAttribute("cy",Wr.toString())}},H+bt)});const on=c;P.getControls().getTimeline().eventCallback("onComplete",()=>{const tt=g?`.areas-${g}`:".areas",ct=g?`.histogram-paths-${g}`:".histogram-paths";e.selectAll(tt).remove(),e.selectAll(ct).remove(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const bt=g?`.parliament-label-${g}`:".parliament-label";if(e.select(bt).empty()){const St=s/2,kt=n.radius+10,Yt=u-n.radius*.3,We=Math.max(kt,Yt),ne=g?`parliament-label parliament-label-${g}`:"parliament-label",we=e.append("g").attr("class",ne).attr("transform",`translate(${St},${We-n.radius*.15})`).style("opacity","0").style("pointer-events","none");we.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),we.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const Wr=we.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");Wr.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),Wr.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}on()}),P.play()}function kN(e,t,r,n,i,a){const o=n/2,s=r.radius+10,u=i-r.radius*.3,l=Math.max(s,u);CT(e,r,t,{centerX:o,centerY:l,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function S0(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=Qt(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const u=o.select(".scale-indicator");r?u.style("opacity","1").select("text").text(`= ~${n} repos`):u.style("opacity","0")}else o.style("opacity","0")}function of(e,t,r,n,i,a,o,s,u){const l=e.querySelectorAll(".seat");if(!l||l.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];l.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),l.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(v=>v.startsWith("seat-")),g=d[d.length-1];if(!g)return;const _=g.substring(5),b=t.find(v=>Ge(v.label)===_);if(!b)return;const x=()=>{i(b.label);const v=Math.round(c.values[b.dataKey]||0),w=ET(b.color),S={label:b.label,value:v,color:w};a&&a(S),S0(e,S,o??!1,s??1,u),qo(e,b.label)};p.addEventListener("mouseenter",x),f.push({element:p,handler:x})});const h=()=>{i(null),a&&a(null),S0(e,null,!1,1,u),qo(e,null)};return e.addEventListener("mouseleave",h),n&&qo(e,n),()=>{f.forEach(({element:p,handler:y})=>{p.removeEventListener("mouseenter",y)}),e.removeEventListener("mouseleave",h),l.forEach(p=>{const y=p;y.style.cursor="",y.style.transition=""})}}function qo(e,t){const r=e.querySelectorAll(".seat"),n=t?Ge(t):null;r.forEach(i=>{const a=i,u=(i.getAttribute("class")||"").split(/\s+/).filter(f=>f.startsWith("seat-")),l=u[u.length-1];if(!l)return;const c=l.substring(5);n?c===n?(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1")):(a.setAttribute("fill-opacity","0.3"),a.setAttribute("stroke-opacity","0.2")):(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1"))})}const kT=({data:e,categories:t,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:u=!0,formatDate:l,formatValue:c,markers:f=[],arcAngle:h=200,parliamentRadius:p=200,seatSize:y=4.5,animationDuration:m=900,onMorphComplete:d,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:x,hoveredCategory:v,maxSeats:w=500,showTooltip:S=!0,showTable:A=!1,showScaledIndicator:P=!0,parliamentTimestamp:C,enableBrush:T=!1,onTimeRangeChange:E,timelineEvents:k=[],showTimeline:j=!1,timelineHeight:$=40,timelineOffset:M=35})=>{const I=O.useRef(null),L=O.useCallback(F=>{x&&x(F)},[x]),q=e[e.length-1],R=q?t.reduce((F,G)=>F+(q.values[G.dataKey]||0),0):0,D=R>w,B=D?Math.round(R/w):1,U=j&&r==="stacked-area"?i+$+M:i,{isMorphing:W,currentMode:X,visibleMarkers:Z,hoveredMarker:Q,hoveredTimelineEvent:K}=AN({containerRef:I,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:u,formatDate:l,formatValue:c,markers:f,arcAngle:h,parliamentRadius:p,seatSize:y,animationDuration:m,onMorphComplete:d,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:L,hoveredCategory:v,maxSeats:w,parliamentTimestamp:C,enableBrush:T,onTimeRangeChange:E,showScaleIndicator:P&&D,reposPerSeat:B,timelineEvents:k,showTimeline:j,timelineHeight:$,timelineOffset:M});return z.jsxs(V.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[z.jsx("svg",{ref:I,viewBox:`0 0 ${n} ${U}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),X==="area"&&Z.map(F=>{const G=(F.x+a.left)/n*100,J=a.top/i*100,N=new Date(F.timestamp),ut=l?l(F.timestamp):N.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),H=z.jsxs(V.Box,{children:[z.jsx(V.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:F.label?.5:0},children:ut}),F.label&&z.jsx(V.Box,{sx:{color:"white",fontWeight:500},children:F.label})]});return z.jsx(V.Tooltip,{title:H,open:(Q==null?void 0:Q.timestamp)===F.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:z.jsx(V.Box,{sx:{position:"absolute",left:`${G}%`,top:`${J}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},F.timestamp)}),K&&X==="area"&&z.jsx(V.Tooltip,{title:z.jsxs(V.Box,{children:[z.jsx(V.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:l?l(K.timestamp):new Date(K.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),z.jsx(V.Box,{sx:{color:"white",fontWeight:500},children:K.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:z.jsx(V.Box,{sx:{position:"absolute",left:`${(K.x+a.left)/n*100}%`,top:`${(i+M+$/2)/U*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),W&&z.jsxs(V.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",X," → ",r]})]})},$T=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:20,maxSeatSize:20},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:16,maxSeatSize:16},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:12,maxSeatSize:12},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:8.5,maxSeatSize:8.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:7,maxSeatSize:7},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:6.5,maxSeatSize:6.5}],dg=({repositoryCount:e})=>{const t=$T.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},mg=({repositoryCount:e})=>{const t=$T.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class Ys{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Ys.prototype.normal={};Ys.prototype.property={};Ys.prototype.space=void 0;function jT(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Ys(r,n,t)}function fs(e){return e.toLowerCase()}class rr{constructor(t,r){this.attribute=r,this.property=t}}rr.prototype.attribute="";rr.prototype.booleanish=!1;rr.prototype.boolean=!1;rr.prototype.commaOrSpaceSeparated=!1;rr.prototype.commaSeparated=!1;rr.prototype.defined=!1;rr.prototype.mustUseProperty=!1;rr.prototype.number=!1;rr.prototype.overloadedBoolean=!1;rr.prototype.property="";rr.prototype.spaceSeparated=!1;rr.prototype.space=void 0;let $N=0;const _t=qi(),fe=qi(),ty=qi(),et=qi(),Ht=qi(),fa=qi(),ar=qi();function qi(){return 2**++$N}const ey=Object.freeze(Object.defineProperty({__proto__:null,boolean:_t,booleanish:fe,commaOrSpaceSeparated:ar,commaSeparated:fa,number:et,overloadedBoolean:ty,spaceSeparated:Ht},Symbol.toStringTag,{value:"Module"})),sf=Object.keys(ey);class yg extends rr{constructor(t,r,n,i){let a=-1;if(super(t,r),O0(this,"space",i),typeof n=="number")for(;++a<sf.length;){const o=sf[a];O0(this,sf[a],(n&ey[o])===ey[o])}}}yg.prototype.defined=!0;function O0(e,t,r){r&&(e[t]=r)}function Ja(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new yg(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[fs(n)]=n,r[fs(a.attribute)]=n}return new Ys(t,r,e.space)}const DT=Ja({properties:{ariaActiveDescendant:null,ariaAtomic:fe,ariaAutoComplete:null,ariaBusy:fe,ariaChecked:fe,ariaColCount:et,ariaColIndex:et,ariaColSpan:et,ariaControls:Ht,ariaCurrent:null,ariaDescribedBy:Ht,ariaDetails:null,ariaDisabled:fe,ariaDropEffect:Ht,ariaErrorMessage:null,ariaExpanded:fe,ariaFlowTo:Ht,ariaGrabbed:fe,ariaHasPopup:null,ariaHidden:fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ht,ariaLevel:et,ariaLive:null,ariaModal:fe,ariaMultiLine:fe,ariaMultiSelectable:fe,ariaOrientation:null,ariaOwns:Ht,ariaPlaceholder:null,ariaPosInSet:et,ariaPressed:fe,ariaReadOnly:fe,ariaRelevant:null,ariaRequired:fe,ariaRoleDescription:Ht,ariaRowCount:et,ariaRowIndex:et,ariaRowSpan:et,ariaSelected:fe,ariaSetSize:et,ariaSort:null,ariaValueMax:et,ariaValueMin:et,ariaValueNow:et,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function RT(e,t){return t in e?e[t]:t}function IT(e,t){return RT(e,t.toLowerCase())}const jN=Ja({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fa,acceptCharset:Ht,accessKey:Ht,action:null,allow:null,allowFullScreen:_t,allowPaymentRequest:_t,allowUserMedia:_t,alt:null,as:null,async:_t,autoCapitalize:null,autoComplete:Ht,autoFocus:_t,autoPlay:_t,blocking:Ht,capture:null,charSet:null,checked:_t,cite:null,className:Ht,cols:et,colSpan:null,content:null,contentEditable:fe,controls:_t,controlsList:Ht,coords:et|fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_t,defer:_t,dir:null,dirName:null,disabled:_t,download:ty,draggable:fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_t,formTarget:null,headers:Ht,height:et,hidden:ty,high:et,href:null,hrefLang:null,htmlFor:Ht,httpEquiv:Ht,id:null,imageSizes:null,imageSrcSet:null,inert:_t,inputMode:null,integrity:null,is:null,isMap:_t,itemId:null,itemProp:Ht,itemRef:Ht,itemScope:_t,itemType:Ht,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_t,low:et,manifest:null,max:null,maxLength:et,media:null,method:null,min:null,minLength:et,multiple:_t,muted:_t,name:null,nonce:null,noModule:_t,noValidate:_t,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_t,optimum:et,pattern:null,ping:Ht,placeholder:null,playsInline:_t,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_t,referrerPolicy:null,rel:Ht,required:_t,reversed:_t,rows:et,rowSpan:et,sandbox:Ht,scope:null,scoped:_t,seamless:_t,selected:_t,shadowRootClonable:_t,shadowRootDelegatesFocus:_t,shadowRootMode:null,shape:null,size:et,sizes:null,slot:null,span:et,spellCheck:fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:et,step:null,style:null,tabIndex:et,target:null,title:null,translate:null,type:null,typeMustMatch:_t,useMap:null,value:fe,width:et,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ht,axis:null,background:null,bgColor:null,border:et,borderColor:null,bottomMargin:et,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_t,declare:_t,event:null,face:null,frame:null,frameBorder:null,hSpace:et,leftMargin:et,link:null,longDesc:null,lowSrc:null,marginHeight:et,marginWidth:et,noResize:_t,noHref:_t,noShade:_t,noWrap:_t,object:null,profile:null,prompt:null,rev:null,rightMargin:et,rules:null,scheme:null,scrolling:fe,standby:null,summary:null,text:null,topMargin:et,valueType:null,version:null,vAlign:null,vLink:null,vSpace:et,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_t,disableRemotePlayback:_t,prefix:null,property:null,results:et,security:null,unselectable:null},space:"html",transform:IT}),DN=Ja({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ar,accentHeight:et,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:et,amplitude:et,arabicForm:null,ascent:et,attributeName:null,attributeType:null,azimuth:et,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:et,by:null,calcMode:null,capHeight:et,className:Ht,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:et,diffuseConstant:et,direction:null,display:null,dur:null,divisor:et,dominantBaseline:null,download:_t,dx:null,dy:null,edgeMode:null,editable:null,elevation:et,enableBackground:null,end:null,event:null,exponent:et,externalResourcesRequired:null,fill:null,fillOpacity:et,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fa,g2:fa,glyphName:fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:et,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:et,horizOriginX:et,horizOriginY:et,id:null,ideographic:et,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:et,k:et,k1:et,k2:et,k3:et,k4:et,kernelMatrix:ar,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:et,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:et,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:et,overlineThickness:et,paintOrder:null,panose1:null,path:null,pathLength:et,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ht,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:et,pointsAtY:et,pointsAtZ:et,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ar,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ar,rev:ar,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ar,requiredFeatures:ar,requiredFonts:ar,requiredFormats:ar,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:et,specularExponent:et,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:et,strikethroughThickness:et,string:null,stroke:null,strokeDashArray:ar,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:et,strokeOpacity:et,strokeWidth:null,style:null,surfaceScale:et,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ar,tabIndex:et,tableValues:null,target:null,targetX:et,targetY:et,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ar,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:et,underlineThickness:et,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:et,values:null,vAlphabetic:et,vMathematical:et,vectorEffect:null,vHanging:et,vIdeographic:et,version:null,vertAdvY:et,vertOriginX:et,vertOriginY:et,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:et,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:RT}),NT=Ja({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),LT=Ja({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:IT}),BT=Ja({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),RN=/[A-Z]/g,A0=/-[a-z]/g,IN=/^data[-\w.:]+$/i;function qT(e,t){const r=fs(t);let n=t,i=rr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&IN.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(A0,LN);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!A0.test(a)){let o=a.replace(RN,NN);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=yg}return new i(n,t)}function NN(e){return"-"+e.toLowerCase()}function LN(e){return e.charAt(1).toUpperCase()}const FT=jT([DT,jN,NT,LT,BT],"html"),vg=jT([DT,DN,NT,LT,BT],"svg");function P0(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function BN(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const T0=/[#.]/g;function qN(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){T0.lastIndex=i;const s=T0.exec(r),u=r.slice(i,s?s.index:r.length);u&&(a?a==="#"?n.id=u:Array.isArray(n.className)?n.className.push(u):n.className=[u]:o=u,i+=u.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function E0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function FN(e){return e.join(" ").trim()}function zT(e,t,r){const n=r?GN(r):void 0;function i(a,o,...s){let u;if(a==null){u={type:"root",children:[]};const l=o;s.unshift(l)}else{u=qN(a,t);const l=u.tagName.toLowerCase(),c=n?n.get(l):void 0;if(u.tagName=c||l,zN(o))s.unshift(o);else for(const[f,h]of Object.entries(o))UN(e,u.properties,f,h)}for(const l of s)ry(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function zN(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function UN(e,t,r,n){const i=qT(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=E0(n):i.commaSeparated?a=P0(n):i.commaOrSpaceSeparated?a=E0(P0(n).join(" ")):a=C0(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?WN(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(C0(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function ry(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)ry(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?ry(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function C0(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||fs(r)===fs(t)))return!0}return r}function WN(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function GN(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const HN=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];zT(FT,"div");const Xs=zT(vg,"g",HN),UT=(e=Xs)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:Qe.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:Qe.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:Qe.neoGrey[400],"stroke-width":.5})]),WT=(e=Xs)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),GT=(e=Xs)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Ft={greyHatch:{background:Qe.neoGrey[200],lines:Qe.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},KN=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>z.jsx(V.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.3s ease-in-out","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:z.jsxs(V.Table,{"aria-label":"Categories summary",className:"category-summary-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[z.jsx("thead",{children:z.jsxs(V.TableRow,{children:[z.jsx(V.TableCell,{}),z.jsx(V.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?z.jsxs(z.Fragment,{children:[z.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),z.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):z.jsxs(z.Fragment,{children:[z.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),z.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),z.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),z.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?Ft.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?Ft.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?Ft.noLstHatch.lines:a.color;return z.jsxs(V.TableRow,{onMouseEnter:()=>r(a.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:t===a.id?`${o}15`:"transparent","&:hover":{backgroundColor:`${o}15`}},children:[z.jsx(V.TableCell,{align:"center",sx:{width:20},children:z.jsx(V.Box,{sx:{width:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?Ft.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?Ft.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?Ft.noLstHatch.background:a.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
15
+ */var Kb,li,La,Gv,zi,Yb,Kv,TN=function(){return typeof window<"u"},Yn={},Ni=180/Math.PI,Ba=Math.PI/180,Oa=Math.atan2,Xb=1e8,Yv=/([A-Z])/g,PN=/(left|right|width|margin|padding|x)/i,EN=/[\s,\(]\S/,bn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},My=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},CN=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},MN=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},kN=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},ZP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},JP=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},$N=function(t,r,n){return t.style[r]=n},jN=function(t,r,n){return t.style.setProperty(r,n)},RN=function(t,r,n){return t._gsap[r]=n},DN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},IN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},NN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},ne="transform",sr=ne+"Origin",LN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in Yn&&a){if(this.tfm=this.tfm||{},t!=="transform")t=bn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=In(i,s)}):this.tfm[t]=o.x?o[t]:In(i,t),t===sr&&(this.tfm.zOrigin=o.zOrigin);else return bn.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ne)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(sr,r,"")),t=ne}(a||r)&&this.props.push(t,r,a[t])},QP=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},BN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(Yv,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=Kv(),(!a||!a.isStart)&&!n[ne]&&(QP(n),i.zOrigin&&n[sr]&&(n[sr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},tE=function(t,r){var n={target:t,props:[],revert:BN,save:LN};return t._gsap||cr.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},eE,ky=function(t,r){var n=li.createElementNS?li.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):li.createElement(t);return n&&n.style?n:li.createElement(t)},Fr=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(Yv,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,ro(r)||r,1)||""},Vb="O,Moz,ms,Ms,Webkit".split(","),ro=function(t,r,n){var i=r||zi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Vb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Vb[o]:"")+t},$y=function(){TN()&&window.document&&(Kb=window,li=Kb.document,La=li.documentElement,zi=ky("div")||{style:{}},ky("div"),ne=ro(ne),sr=ne+"Origin",zi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",eE=!!ro("perspective"),Kv=cr.core.reverting,Gv=1)},Zb=function(t){var r=t.ownerSVGElement,n=ky("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),La.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),La.removeChild(n),a},Jb=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},rE=function(t){var r,n;try{r=t.getBBox()}catch{r=Zb(t),n=1}return r&&(r.width||r.height)||n||(r=Zb(t)),r&&!r.width&&!r.x&&!r.y?{x:+Jb(t,["x","cx","x1"])||0,y:+Jb(t,["y","cy","y1"])||0,width:0,height:0}:r},nE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&rE(t))},aa=function(t,r){if(r){var n=t.style,i;r in Yn&&r!==sr&&(r=ne),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Yv,"-$1").toLowerCase())):n.removeAttribute(r)}},ui=function(t,r,n,i,a,o){var s=new or(t._pt,r,n,0,1,o?JP:ZP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},Qb={deg:1,rad:1,turn:1},qN={grid:1,flex:1},gi=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=zi.style,l=PN.test(r),u=t.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,m,d,v;if(i===o||!a||Qb[i]||Qb[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),v=t.getCTM&&nE(t),(p||o==="%")&&(Yn[r]||~r.indexOf("adius")))return y=v?t.getBBox()[l?"width":"height"]:t[c],se(p?a/y*f:a/100*y);if(s[l?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===li||!m.appendChild)&&(m=li.body),d=m._gsap,d&&p&&d.width&&l&&d.time===wr.time&&!d.uncache)return se(a/d.width*f);if(p&&(r==="height"||r==="width")){var w=t.style[r];t.style[r]=f+i,y=t[c],w?t.style[r]=w:aa(t,r)}else(p||o==="%")&&!qN[Fr(m,"display")]&&(s.position=Fr(t,"position")),m===t&&(s.position="static"),m.appendChild(zi),y=zi[c],m.removeChild(zi),s.position="absolute";return l&&p&&(d=Yi(m),d.time=wr.time,d.width=m[c]),se(h?y*a/f:y&&a?f/y*a:0)},In=function(t,r,n,i){var a;return Gv||$y(),r in bn&&r!=="transform"&&(r=bn[r],~r.indexOf(",")&&(r=r.split(",")[0])),Yn[r]&&r!=="transform"?(a=qs(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Du(Fr(t,sr))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Ru[r]&&Ru[r](t,r,n)||Fr(t,r)||bP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?gi(t,r,a,n)+n:a},FN=function(t,r,n,i){if(!n||n==="none"){var a=ro(r,t,1),o=a&&Fr(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Fr(t,"borderTopColor"))}var s=new or(this._pt,t.style,r,0,1,YP),l=0,u=0,c,f,h,p,y,m,d,v,w,b,_,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Fr(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=Fr(t,r)||i,m?t.style[r]=m:aa(t,r)),c=[n,i],LP(c),n=c[0],i=c[1],h=n.match(ka)||[],g=i.match(ka)||[],g.length){for(;f=ka.exec(i);)d=f[0],w=i.substring(l,f.index),y?y=(y+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(y=1),d!==(m=h[u++]||"")&&(p=parseFloat(m)||0,_=m.substr((p+"").length),d.charAt(1)==="="&&(d=Na(p,d)+_),v=parseFloat(d),b=d.substr((v+"").length),l=ka.lastIndex-b.length,b||(b=b||Or.units[r]||_,l===i.length&&(i+=b,s.e+=b)),_!==b&&(p=gi(t,r,m,b)||0),s._pt={_next:s._pt,p:w||u===1?w:",",s:p,c:v-p,m:y&&y<4||r==="zIndex"?Math.round:0});s.c=l<i.length?i.substring(l,i.length):""}else s.r=r==="display"&&i==="none"?JP:ZP;return pP.test(i)&&(s.e=0),this._pt=s,s},t_={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},zN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=t_[n]||n,r[1]=t_[i]||i,r.join(" ")},UN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,l,u;if(a==="all"||a===!0)i.cssText="",l=1;else for(a=a.split(","),u=a.length;--u>-1;)s=a[u],Yn[s]&&(l=1,s=s==="transformOrigin"?sr:ne),aa(n,s);l&&(aa(n,ne),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",qs(n,1),o.uncache=1,QP(i)))}},Ru={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new or(t._pt,r,n,0,0,UN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},Bs=[1,0,0,1,0,0],iE={},aE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},e_=function(t){var r=Fr(t,ne);return aE(r)?Bs:r.substr(7).match(hP).map(se)},Xv=function(t,r){var n=t._gsap||Yi(t),i=t.style,a=e_(t),o,s,l,u;return n.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?Bs:a):(a===Bs&&!t.offsetParent&&t!==La&&!n.svg&&(l=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,s=t.nextElementSibling,La.appendChild(t)),a=e_(t),l?i.display=l:aa(t,"display"),u&&(s?o.insertBefore(t,s):o?o.appendChild(t):La.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},jy=function(t,r,n,i,a,o){var s=t._gsap,l=a||Xv(t,!0),u=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=l[0],y=l[1],m=l[2],d=l[3],v=l[4],w=l[5],b=r.split(" "),_=parseFloat(b[0])||0,g=parseFloat(b[1])||0,x,S,A,T;n?l!==Bs&&(S=p*d-y*m)&&(A=_*(d/S)+g*(-m/S)+(m*w-d*v)/S,T=_*(-y/S)+g*(p/S)-(p*w-y*v)/S,_=A,g=T):(x=rE(t),_=x.x+(~b[0].indexOf("%")?_/100*x.width:_),g=x.y+(~(b[1]||b[0]).indexOf("%")?g/100*x.height:g)),i||i!==!1&&s.smooth?(v=_-u,w=g-c,s.xOffset=f+(v*p+w*m)-v,s.yOffset=h+(v*y+w*d)-w):s.xOffset=s.yOffset=0,s.xOrigin=_,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[sr]="0px 0px",o&&(ui(o,s,"xOrigin",u,_),ui(o,s,"yOrigin",c,g),ui(o,s,"xOffset",f,s.xOffset),ui(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",_+" "+g)},qs=function(t,r){var n=t._gsap||new zP(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",l=getComputedStyle(t),u=Fr(t,sr)||"0",c,f,h,p,y,m,d,v,w,b,_,g,x,S,A,T,C,P,E,M,$,j,k,I,q,F,N,D,L,G,Y,z;return c=f=h=m=d=v=w=b=_=0,p=y=1,n.svg=!!(t.getCTM&&nE(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[ne]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ne]!=="none"?l[ne]:"")),i.scale=i.rotate=i.translate="none"),S=Xv(t,n.svg),n.svg&&(n.uncache?(q=t.getBBox(),u=n.xOrigin-q.x+"px "+(n.yOrigin-q.y)+"px",I=""):I=!r&&t.getAttribute("data-svg-origin"),jy(t,I||u,!!I||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,x=n.yOrigin||0,S!==Bs&&(P=S[0],E=S[1],M=S[2],$=S[3],c=j=S[4],f=k=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt($*$+M*M),m=P||E?Oa(E,P)*Ni:0,w=M||$?Oa(M,$)*Ni+m:0,w&&(y*=Math.abs(Math.cos(w*Ba))),n.svg&&(c-=g-(g*P+x*M),f-=x-(g*E+x*$))):(z=S[6],G=S[7],N=S[8],D=S[9],L=S[10],Y=S[11],c=S[12],f=S[13],h=S[14],A=Oa(z,L),d=A*Ni,A&&(T=Math.cos(-A),C=Math.sin(-A),I=j*T+N*C,q=k*T+D*C,F=z*T+L*C,N=j*-C+N*T,D=k*-C+D*T,L=z*-C+L*T,Y=G*-C+Y*T,j=I,k=q,z=F),A=Oa(-M,L),v=A*Ni,A&&(T=Math.cos(-A),C=Math.sin(-A),I=P*T-N*C,q=E*T-D*C,F=M*T-L*C,Y=$*C+Y*T,P=I,E=q,M=F),A=Oa(E,P),m=A*Ni,A&&(T=Math.cos(A),C=Math.sin(A),I=P*T+E*C,q=j*T+k*C,E=E*T-P*C,k=k*T-j*C,P=I,j=q),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,v=180-v),p=se(Math.sqrt(P*P+E*E+M*M)),y=se(Math.sqrt(k*k+z*z)),A=Oa(j,k),w=Math.abs(A)>2e-4?A*Ni:0,_=Y?1/(Y<0?-Y:Y):0),n.svg&&(I=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!aE(Fr(t,ne)),I&&t.setAttribute("transform",I))),Math.abs(w)>90&&Math.abs(w)<270&&(a?(p*=-1,w+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,w+=w<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=se(p),n.scaleY=se(y),n.rotation=se(m)+s,n.rotationX=se(d)+s,n.rotationY=se(v)+s,n.skewX=w+s,n.skewY=b+s,n.transformPerspective=_+o,(n.zOrigin=parseFloat(u.split(" ")[2])||!r&&n.zOrigin||0)&&(i[sr]=Du(u)),n.xOffset=n.yOffset=0,n.force3D=Or.force3D,n.renderTransform=n.svg?HN:eE?oE:WN,n.uncache=0,n},Du=function(t){return(t=t.split(" "))[0]+" "+t[1]},qf=function(t,r,n){var i=We(r);return se(parseFloat(r)+parseFloat(gi(t,"x",n+"px",i)))+i},WN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,oE(t,r)},ji="0deg",Go="0px",Ri=") ",oE=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.z,u=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,v=n.force3D,w=n.target,b=n.zOrigin,_="",g=v==="auto"&&t&&t!==1||v===!0;if(b&&(f!==ji||c!==ji)){var x=parseFloat(c)*Ba,S=Math.sin(x),A=Math.cos(x),T;x=parseFloat(f)*Ba,T=Math.cos(x),o=qf(w,o,S*T*-b),s=qf(w,s,-Math.sin(x)*-b),l=qf(w,l,A*T*-b+b)}d!==Go&&(_+="perspective("+d+Ri),(i||a)&&(_+="translate("+i+"%, "+a+"%) "),(g||o!==Go||s!==Go||l!==Go)&&(_+=l!==Go||g?"translate3d("+o+", "+s+", "+l+") ":"translate("+o+", "+s+Ri),u!==ji&&(_+="rotate("+u+Ri),c!==ji&&(_+="rotateY("+c+Ri),f!==ji&&(_+="rotateX("+f+Ri),(h!==ji||p!==ji)&&(_+="skew("+h+", "+p+Ri),(y!==1||m!==1)&&(_+="scale("+y+", "+m+Ri),w.style[ne]=_||"translate(0, 0)"},HN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.rotation,u=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,v=n.yOffset,w=n.forceCSS,b=parseFloat(o),_=parseFloat(s),g,x,S,A,T;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=Ba,u*=Ba,g=Math.cos(l)*f,x=Math.sin(l)*f,S=Math.sin(l-u)*-h,A=Math.cos(l-u)*h,u&&(c*=Ba,T=Math.tan(u-c),T=Math.sqrt(1+T*T),S*=T,A*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,x*=T)),g=se(g),x=se(x),S=se(S),A=se(A)):(g=f,A=h,x=S=0),(b&&!~(o+"").indexOf("px")||_&&!~(s+"").indexOf("px"))&&(b=gi(p,"x",o,"px"),_=gi(p,"y",s,"px")),(y||m||d||v)&&(b=se(b+y-(y*g+m*S)+d),_=se(_+m-(y*x+m*A)+v)),(i||a)&&(T=p.getBBox(),b=se(b+i/100*T.width),_=se(_+a/100*T.height)),T="matrix("+g+","+x+","+S+","+A+","+b+","+_+")",p.setAttribute("transform",T),w&&(p.style[ne]=T)},GN=function(t,r,n,i,a){var o=360,s=Ce(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?Ni:1),u=l-i,c=i+u+"deg",f,h;return s&&(f=a.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Xb)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Xb)%o-~~(u/o)*o)),t._pt=h=new or(t._pt,r,n,i,u,CN),h.e=c,h.u="deg",t._props.push(n),h},r_=function(t,r){for(var n in r)t[n]=r[n];return t},KN=function(t,r,n){var i=r_({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,l,u,c,f,h,p,y;i.svg?(u=n.getAttribute("transform"),n.setAttribute("transform",""),o[ne]=r,s=qs(n,1),aa(n,ne),n.setAttribute("transform",u)):(u=getComputedStyle(n)[ne],o[ne]=r,s=qs(n,1),o[ne]=u);for(l in Yn)u=i[l],c=s[l],u!==c&&a.indexOf(l)<0&&(p=We(u),y=We(c),f=p!==y?gi(n,l,u,y):parseFloat(u),h=parseFloat(c),t._pt=new or(t._pt,s,l,f,h-f,My),t._pt.u=y||0,t._props.push(l));r_(s,i)};ar("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return t<2?e+s:"border"+s+e});Ru[t>1?"border"+e:e]=function(s,l,u,c,f){var h,p;if(arguments.length<4)return h=o.map(function(y){return In(s,y,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(l,p,f)}});var sE={name:"css",register:$y,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,l=n.vars.startAt,u,c,f,h,p,y,m,d,v,w,b,_,g,x,S,A;Gv||$y(),this.styles=this.styles||tE(t),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(xr[m]&&UP(m,r,n,i,t,a)))){if(p=typeof c,y=Ru[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Is(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",mi.lastIndex=0,mi.test(u)||(d=We(u),v=We(c)),v?d!==v&&(u=gi(t,m,u,v)+v):d&&(c+=d),this.add(s,"setProperty",u,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(p!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(n,i,t,a):l[m],Ce(u)&&~u.indexOf("random(")&&(u=Is(u)),We(u+"")||u==="auto"||(u+=Or.units[m]||We(In(t,m))||""),(u+"").charAt(1)==="="&&(u=In(t,m))):u=In(t,m),h=parseFloat(u),w=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),w&&(c=c.substr(2)),f=parseFloat(c),m in bn&&(m==="autoAlpha"&&(h===1&&In(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),ui(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=bn[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in Yn,b){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=Fr(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),_||(g=t._gsap,g.renderTransform&&!r.parseTransform||qs(t,r.parseTransform),x=r.smoothOrigin!==!1&&g.smooth,_=this._pt=new or(this._pt,s,ne,0,1,g.renderTransform,g,0,-1),_.dep=1),m==="scale")this._pt=new or(this._pt,g,"scaleY",g.scaleY,(w?Na(g.scaleY,w+f):f)-g.scaleY||0,My),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(sr,0,s[sr]),c=zN(c),g.svg?jy(t,c,0,x,0,this):(v=parseFloat(c.split(" ")[2])||0,v!==g.zOrigin&&ui(this,g,"zOrigin",g.zOrigin,v),ui(this,s,m,Du(u),Du(c)));continue}else if(m==="svgOrigin"){jy(t,c,1,x,0,this);continue}else if(m in iE){GN(this,g,m,h,w?Na(h,w+c):c);continue}else if(m==="smoothOrigin"){ui(this,g,"smooth",g.smooth,c);continue}else if(m==="force3D"){g[m]=c;continue}else if(m==="transform"){KN(this,c,t);continue}}else m in s||(m=ro(m)||m);if(b||(f||f===0)&&(h||h===0)&&!EN.test(c)&&m in s)d=(u+"").substr((h+"").length),f||(f=0),v=We(c)||(m in Or.units?Or.units[m]:d),d!==v&&(h=gi(t,m,u,v)),this._pt=new or(this._pt,b?g:s,m,h,(w?Na(h,w+f):f)-h,!b&&(v==="px"||m==="zIndex")&&r.autoRound!==!1?kN:My),this._pt.u=v||0,d!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=MN);else if(m in s)FN.call(this,t,m,u,w?w+c:c);else if(m in t)this.add(t,m,u||t[m],w?w+c:c,i,a);else if(m!=="parseTransform"){Iv(m,c);continue}b||(m in s?A.push(m,0,s[m]):typeof t[m]=="function"?A.push(m,2,t[m]()):A.push(m,1,u||t[m])),o.push(m)}}S&&XP(this)},render:function(t,r){if(r.tween._time||!Kv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:In,aliases:bn,getSetter:function(t,r,n){var i=bn[r];return i&&i.indexOf(",")<0&&(r=i),r in Yn&&r!==sr&&(t._gsap.x||In(t,"x"))?n&&Yb===n?r==="scale"?DN:RN:(Yb=n||{})&&(r==="scale"?IN:NN):t.style&&!jv(t.style[r])?$N:~r.indexOf("-")?jN:Wv(t,r)},core:{_removeProperty:aa,_getMatrix:Xv}};cr.utils.checkPrefix=ro;cr.core.getStyleSaver=tE;(function(e,t,r,n){var i=ar(e+","+t+","+r,function(a){Yn[a]=1});ar(t,function(a){Or.units[a]="deg",iE[a]=1}),bn[i[13]]=e+","+t,ar(n,function(a){var o=a.split(":");bn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");ar("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Or.units[e]="px"});cr.registerPlugin(sE);var Ry=cr.registerPlugin(sE)||cr;Ry.core.Tween;const Ta={IN_OUT:"power2.inOut",OUT:"power2.out"},Ko={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class lE{constructor(t,r={}){qo(this,"timeline");qo(this,"currentStage","");qo(this,"callbacks");qo(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Ry.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToRings",n),n+=t.seatsToRings/1e3,this.timeline.addLabel("ringsToBar",n),n+=t.ringsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToRings(t,r){const n=this.durations.seatsToRings/1e3;return t.each(function(){const i=this;if(!i.getAttribute("data-orig-x")){const a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("width"),l=i.getAttribute("height");i.setAttribute("data-orig-x",a||"0"),i.setAttribute("data-orig-y",o||"0"),i.setAttribute("data-orig-width",s||"0"),i.setAttribute("data-orig-height",l||"0")}}),this.timeline.to(t.nodes(),{width:2,y:(i,a)=>parseFloat(a.getAttribute("y")||"0"),height:(i,a)=>{const o=parseFloat(a.getAttribute("y")||"0");return r-o},duration:n,ease:Ta.IN_OUT,stagger:Ko.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToRings",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToRings")}},"seatsToRings"),this}animateRingsToBar(t,r){const n=this.durations.ringsToBar/1e3;return t.each(function(i,a){const o=this;if(!r[a])return;const l=o.getAttribute("x"),u=o.getAttribute("y"),c=o.getAttribute("width"),f=o.getAttribute("height");o.setAttribute("data-orig-x",l||"0"),o.setAttribute("data-orig-y",u||"0"),o.setAttribute("data-orig-width",c||"0"),o.setAttribute("data-orig-height",f||"0")}),this.timeline.to(t.nodes(),{x:i=>{var a;return((a=r[i])==null?void 0:a.x)??0},y:i=>{var a;return((a=r[i])==null?void 0:a.y)??0},width:i=>{var a;return((a=r[i])==null?void 0:a.width)??0},height:i=>{var a;return((a=r[i])==null?void 0:a.height)??0},duration:n,ease:Ta.IN_OUT,stagger:Ko.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="ringsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"ringsToBar")}},"ringsToBar"),this}animateAxesReveal(t,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([t.node(),r.node()],{opacity:1,duration:n,ease:Ta.IN_OUT,stagger:Ko.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(t,r){const n=this.durations.barSlide/1e3;return this.timeline.to(t.nodes(),{x:r,duration:n,ease:Ta.OUT,stagger:Ko.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(t,r,n=Ko.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return t.nodes().forEach((o,s)=>{const l=o,u=l.getAttribute("data-final-y")||"0",c=l.getAttribute("data-final-height")||"0",f=parseInt(l.getAttribute("data-timestamp-index")||"0"),p=Math.abs(f-r)*n;this.timeline.fromTo(l,{height:0,y:parseFloat(l.getAttribute("data-chart-baseline")||"400")},{y:parseFloat(u),height:parseFloat(c),duration:i,delay:p,ease:Ta.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(t,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return t.each(function(){var c;const s=this,l=s.getAttribute("class");if(!l)return;const u=l.match(/category-([\w-]+)/);if(u&&u[1]){const f=u[1];o.has(f)||o.set(f,[]),(c=o.get(f))==null||c.push(s)}}),this.timeline.set(t.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,l=s.getAttribute("data-category");if(!l)return;const u=n.get(l);u&&Ry.to(s,{attr:{d:u},duration:a,ease:Ta.IN_OUT})}),this.timeline.call(()=>{var s,l;this.currentStage="barsToArea",(l=(s=this.callbacks).onStageComplete)==null||l.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function YN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:l,innerRadiusRatio:u}=t,c=i*u,f=e.reduce((E,M)=>E+M.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const M=E*Math.PI/180;for(let $=s;$>=o;$-=.1){const j=$*2,k=j*l,I=Math.floor((i-c)/k);for(let q=1;q<=Math.min(I,10);q++){let F=0;for(let N=0;N<q;N++){const D=c+(N+.5)*k,L=j*l/D,G=Math.floor(M/L);F+=G}if(F>=f){const N=f/F,D=($-o)/(s-o),L=(F-f)/f,G=L<.15?1:L<.3?.7:L<.5?.4:.1,Y=1-Math.abs(E-r)/n,z=G*.5+D*.3+N*.15+Y*.05;z>h.score&&(h={seatSize:$,arcAngle:E,rings:q,score:z})}}}}const m=h.seatSize,d=h.arcAngle,v=d*Math.PI/180,w=m*2,b=w*l,_=Math.floor((i-c)/b),g=[],x=-v/2-Math.PI/2,S=[];let A=0,T=[];for(let E=1;E<=_;E++){let M=0;const $=[];for(let j=0;j<E;j++){const k=c+(j+.5)*b,I=w*l/k,q=Math.floor(v/I);$.push(q),M+=q}if(M>=f){A=E,T=$;break}}if(A>0)S.push(...T);else for(let E=0;E<_;E++){const M=c+(E+.5)*b,$=w*l/M,j=Math.floor(v/$);S.push(j)}for(let E=0;E<S.length;E++){const M=c+(E+.5)*b,$=S[E]??0;if($>0){const j=v/$;for(let k=0;k<$;k++){const I=x+(k+.5)*j,q=Math.cos(I)*M,F=Math.sin(I)*M;g.push({ring:E,index:k,angle:I,x:q,y:F})}}}g.sort((E,M)=>{const $=E.angle-M.angle;return Math.abs($)>.001?$:E.ring-M.ring});const C=[];let P=0;return e.forEach((E,M)=>{const $=Math.min(E.seats,g.length-P);for(let j=0;j<$&&P<g.length;j++){const k=g[P++];k&&C.push({x:k.x,y:k.y,category:E.name,categoryIndex:M,seatIndex:j,ring:k.ring,angle:k.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:C,totalSeats:f}}function XN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}const lr={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},ds=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],rr={greyHatch:{background:lr.neoGrey[200],lines:lr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function VN(e,t){const r=e.append("pattern").attr("id",`${t}-greyHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",rr.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",rr.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",rr.greyHatch.lines).attr("stroke-width",.5)}function ZN(e,t){const r=e.append("pattern").attr("id",`${t}-dataMissingHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",rr.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",rr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",rr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",rr.dataMissingHatch.lines).attr("stroke-width",.5)}function JN(e,t){const r=e.append("pattern").attr("id",`${t}-noLstHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",rr.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",rr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",rr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",rr.noLstHatch.lines).attr("stroke-width",.5)}function ql(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),VN(r,t),ZN(r,t),JN(r,t)}function n_(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function uE(e){return e.includes("greyHatchPattern")?rr.greyHatch.lines:e.includes("dataMissingHatchPattern")?rr.dataMissingHatch.lines:e.includes("noLstHatchPattern")?rr.noLstHatch.lines:e}function Dy(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,l=Fi().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(ia),u=Cv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(ia),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var v;const y=r[p];if(!y)return;const m=((v=y.parliamentMapping)==null?void 0:v.isSpecialCategory)??!1,d=uE(y.color);if(m){const w=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",u).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;w.attr("class",b)}}else{const w=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",l).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;w.attr("class",b)}}})}function QN(e,t){var n;const r=[];for(const i of e){let a=0;for(const o of t){const s=i[o.dataKey]||0,l=a,u=a+s;r.push({timestamp:i.timestamp,category:o.label,dataKey:o.dataKey,y0:l,y1:u,value:s,color:o.color,isSpecialCategory:((n=o.parliamentMapping)==null?void 0:n.isSpecialCategory)??!1}),a+=s}}return r}function Fe(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function cE(e,t,r,n){const{centerX:i,centerY:a,addClasses:o=!0,instanceId:s,parliamentRadius:l=200}=n,u=s?`parliament parliament-${s}`:"parliament";let c=e.select(s?`.parliament-${s}`:".parliament");c.empty()&&(c=e.append("g").attr("class",u)),t.seats.forEach(p=>{const y=r.find(v=>v.label===p.category);if(!y)return;const m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const v=s?`seat seat-${s} seat-${Fe(p.category)}`:`seat seat-${Fe(p.category)}`;m.attr("class",v),d.attr("class",v)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-l*.15})`).style("opacity","0").style("pointer-events","none");p.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),p.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const y=p.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");y.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),y.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}}function tL(e,t,r,n,i,a,o=!1){var f;const s=new Map;let l=i;if(t.length>0&&((f=t[0])==null?void 0:f.timestamp)!==void 0){const h=t[0].timestamp;l=r(new Date(h))}const u=new Map;for(const h of e.seats)u.has(h.category)||u.set(h.category,[]),u.get(h.category).push(h);const c=new Map;for(const h of t)c.set(h.dataKey,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory}),h.label&&h.label!==h.dataKey&&c.set(h.label,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory});for(const h of e.seats){const p=c.get(h.category);if(!p){s.set(h,{x:l,y:a/2});continue}const y=n(p.y0),m=n(p.y1);let d;if(o){const v=u.get(h.category)??[],w=h.seatIndex,b=v.length;if(b===1)d=(y+m)/2;else{const _=w/(b-1);d=y+(m-y)*_}}else d=m;s.set(h,{x:l,y:d})}return s}function eL(e,t,r){var o;if(e.length===0)return[];const n=e[e.length-1],i=[];let a=0;for(const s of t){const l=n[s.dataKey]||0,u=a,c=a+l;i.push({dataKey:s.dataKey,label:s.label,y0:u,y1:c,value:l,timestamp:n.timestamp,isSpecialCategory:((o=s.parliamentMapping)==null?void 0:o.isSpecialCategory)??!1}),a+=l}return i}function rL(e){const t=e;return{seatsToLines:t*.2,seatsToBar:t*.07,crossFadePause:t*.003,barSlideToTimeline:t*.22,axesAndBarsGrow:t*.22,barsToArea:t*.287}}const Ui=new Map;te.prototype.transition=sv;const nL=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:l=!0,showAxes:u=!0,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:m=4.5,animationDuration:d=900,onMorphComplete:v,onAnimationStateChange:w,onTimelineReady:b,onAnimationProgress:_,onHoveredDataChange:g,hoveredCategory:x,maxSeats:S=2e3,parliamentTimestamp:A,enableBrush:T=!1,onTimeRangeChange:C,showScaleIndicator:P=!1,reposPerSeat:E=1,timelineEvents:M=[],showTimeline:$=!1,timelineHeight:j=40,timelineOffset:k=35})=>{const[I,q]=O.useState("area"),[F,N]=O.useState(!1),[D,L]=O.useState(null),[G,Y]=O.useState(0),[z,V]=O.useState(null),[Q,K]=O.useState(null),[B,H]=O.useState([]),Z=O.useRef(null),R=O.useRef(n),ot=O.useRef(!0),U=O.useRef(!1),nt=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),ft=O.useRef(void 0),st=O.useRef(s),ht=O.useRef(v),Et=O.useRef(w),at=O.useRef(b),dt=O.useRef(_),xt=O.useRef(g);O.useEffect(()=>{ht.current=v,Et.current=w,at.current=b,dt.current=_,xt.current=g},[v,w,b,_,g]),O.useEffect(()=>{if(e.current&&I==="parliament")if(x){const St=r.find(kt=>kt.dataKey===x);if(St){const kt=St.label;L(kt),ys(e.current,kt)}}else L(null),ys(e.current,null)},[x,I,r,t]);const $t=i-o.left-o.right,Ht=a-o.top-o.bottom;return O.useEffect(()=>{var Vr;if(!e.current||t.length===0||r.length===0||(ft.current&&(ft.current(),ft.current=void 0),U.current))return;const St=te(e.current),kt=n!==R.current;ot.current?(St.selectAll("*").remove(),ql(St,nt.current),ot.current=!1):kt||(St.selectAll("*").remove(),ql(St,nt.current));const Oe=t[t.length-1],Cr=r.reduce((wt,J)=>wt+(Oe.values[J.dataKey]||0),0),fn=t.map(wt=>{const J={timestamp:wt.timestamp};for(const ct of r)J[ct.dataKey]=wt.values[ct.dataKey]||0;return J}),me=r.map(wt=>wt.dataKey),Te=Eu().keys(me),Gr=Te(fn),Ze=t.map(wt=>wt.timestamp),Mr=kt||!s?Math.min(...Ze):s[0],hr=kt||!s?Math.max(...Ze):s[1],Kr=[...Ze].sort((wt,J)=>wt-J),pr=[];for(let wt=0;wt<Kr.length-1;wt++)pr.push(Kr[wt+1]-Kr[wt]);const Jn=pr.length>0?pr.reduce((wt,J)=>wt+J,0)/pr.length:0,kr=hr+Jn*1.15,Ge=wu().domain([new Date(Mr),new Date(kr)]).range([0,$t]),Yr=fn.filter(wt=>wt.timestamp>=Mr&&wt.timestamp<=hr),hn=Te(Yr),Pe=hn.length>0?Math.max(...hn[hn.length-1].map(wt=>wt[1]??0)):0,$r=na().domain([0,Pe*1.15]).range([Ht,0]),dr=r.map(wt=>({...wt,color:n_(wt.color,nt.current)})),Lo=dr.map(wt=>({dataKey:wt.dataKey,label:wt.label,color:wt.color,value:Oe.values[wt.dataKey]||0})),En=XN(Lo,Cr,S).reverse(),Je=YN(En,{arcAngle:p,radius:y,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});Z.current=Je;const Ti=eL(fn,r),Xr=tL(Je,Ti,Ge,$r,$t,Ht);if(kt&&!U.current){U.current=!0,N(!0),(Vr=Et.current)==null||Vr.call(Et,!0),V(null),H([]),Y(0);let wt=St.select("g[transform]");if(wt.empty()&&(wt=St.select("g")),wt.empty()){St.selectAll("*").remove(),ql(St,nt.current),Ff(St,n==="parliament"?"parliament":"area",Gr,dr,Je,Ge,$r,$t,Ht,o,l,u,c,f,T,C,nt.current,h,s,H,V,M,$,j,k,K),N(!1),q(n==="parliament"?"parliament":"area"),Y(n==="parliament"?1:0),R.current=n;return}const J=setTimeout(()=>{U.current=!1,N(!1),R.current=n},d*3);sL(St,n,Gr,dr,Je,Xr,Ge,$r,$t,Ht,o,d,()=>{var ct,mt;if(clearTimeout(J),U.current=!1,N(!1),q(n==="parliament"?"parliament":"area"),n==="parliament"&&Y(1),(ct=Et.current)==null||ct.call(Et,!1),(mt=ht.current)==null||mt.call(ht),R.current=n,n==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,dr,t,D,L,xt.current,P,E,nt.current)),n!=="parliament"&&e.current){const At=te(e.current),Ot=At.select(nt.current?`.main-chart-group-${nt.current}`:".main-chart-group");if($&&K){const Dt=nt.current?`.timeline-track-${nt.current}`:".timeline-track",Tt=nt.current?`.timeline-brush-${nt.current}`:".timeline-brush";Ot.select(Dt).remove(),Ot.select(Tt).remove(),fE(At,M,Ge,Ht,$t,j,k,nt.current,K,T,C)}if(T&&C&&!$){const Dt=Ot.select(nt.current?`.chart-content-group-${nt.current}`:".chart-content-group");iL(Dt,$t,Ht,Ge,C,nt.current,At)}if(h.length>0&&H&&V&&s){const Dt=h.filter(Tt=>Tt.timestamp>=(s[0]??0)&&Tt.timestamp<=(s[1]??1/0)).map(Tt=>({...Tt,x:Ge(new Date(Tt.timestamp))}));if(H(Dt),Dt.length>0){aL(Ot,Dt,Ht,$t,T,V,nt.current);const Tt=Ot.select(nt.current?`.markers-${nt.current}`:".markers");if(!Tt.empty()){Ot.selectAll(".marker-hover-overlay").remove();const ye=Ot.append("rect").attr("class","marker-hover-overlay").attr("x",0).attr("y",0).attr("width",$t).attr("height",Ht).attr("fill","none").attr("pointer-events","all");let ge=null;ye.on("mousemove",function(ke){const[Zr]=Es(ke,this);let Qe=null,mr=1/0;if(Dt.forEach(Pi=>{const Cn=Math.abs(Zr-Pi.x);Cn<mr&&(mr=Cn,Qe=Pi)}),!Qe||mr>50){ge!==null&&(ge=null,Tt.selectAll(".marker-line").attr("opacity",0),Tt.selectAll(".marker-label").attr("opacity",0),V(null));return}const Jr=Qe;ge!==Jr.timestamp&&(ge=Jr.timestamp,Tt.selectAll(".marker-line").attr("opacity",0),Tt.selectAll(".marker-label").attr("opacity",0),Tt.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(Jr.timestamp)}).attr("opacity",.6),Tt.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(Jr.timestamp)}).attr("opacity",1),V(Jr))}),ye.on("mouseleave",function(){ge=null,Tt.selectAll(".marker-line").attr("opacity",0),Tt.selectAll(".marker-label").attr("opacity",0),V(null)})}}}}},u,c,f,at.current,(ct,mt)=>{var At;if(n==="parliament"&&ct>=.95){const Ot=(ct-.95)/.05;Y(Math.min(Ot,1))}(At=dt.current)==null||At.call(dt,ct,mt)},A,nt.current)}else R.current=n,n==="parliament"&&(V(null),H([])),Ff(St,n==="parliament"?"parliament":"area",Gr,dr,Je,Ge,$r,$t,Ht,o,l,u,c,f,T,C,nt.current,h,s,H,V,M,$,j,k,K),q(n==="parliament"?"parliament":"area"),Y(n==="parliament"?1:0),n==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,dr,t,D,L,xt.current,P,E,nt.current));return()=>{ft.current&&(ft.current(),ft.current=void 0)}},[n]),O.useEffect(()=>{var Yr,hn;if(!e.current||t.length===0||U.current)return;if(ot.current){st.current=s;return}if(!(s!==st.current&&((s==null?void 0:s[0])!==((Yr=st.current)==null?void 0:Yr[0])||(s==null?void 0:s[1])!==((hn=st.current)==null?void 0:hn[1]))))return;st.current=s;const kt=te(e.current),Oe=t.map(Pe=>{const $r={timestamp:Pe.timestamp};for(const dr of r)$r[dr.dataKey]=Pe.values[dr.dataKey]||0;return $r}),Cr=r.map(Pe=>Pe.dataKey),me=Eu().keys(Cr)(Oe),Te=t.map(Pe=>Pe.timestamp),Gr=s?s[0]:Math.min(...Te),Ze=s?s[1]:Math.max(...Te),hr=(Te.length>1?(Te[Te.length-1]-Te[0])/(Te.length-1):0)*.5,Kr=wu().domain([new Date(Gr-hr),new Date(Ze+hr)]).range([0,i-o.left-o.right]),pr=Math.max(...me[me.length-1].map(Pe=>Pe[1])),Jn=na().domain([0,pr*1.1]).range([a-o.top-o.bottom,0]);if(!Z.current)return;const kr=Z.current,Ge=r.map(Pe=>({...Pe,color:n_(Pe.color,nt.current)}));kt.selectAll("*").remove(),ql(kt,nt.current),Ff(kt,I==="parliament"?"parliament":"area",me,Ge,kr,Kr,Jn,i-o.left-o.right,a-o.top-o.bottom,o,l,u,c,f,T,C,nt.current,h,s,H,V,M,$,j,k,K),I==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,Ge,t,D,L,xt.current,P,E,nt.current))},[s]),{isMorphing:F,currentMode:I,hoveredCategory:D,scaleIndicatorOpacity:G,visibleMarkers:B,hoveredMarker:z,setHoveredMarker:V,hoveredTimelineEvent:Q,setHoveredTimelineEvent:K}};function iL(e,t,r,n,i,a,o){const s=Ac().extent([[0,0],[t,r]]).on("end",u=>{if(!u.selection)return;const[c,f]=u.selection,h=[+n.invert(c),+n.invert(f)];i(h),o.select(".brush").call(s.move,null)}),l=e.append("g").attr("class","brush").call(s);l.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),l.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),l.on("dblclick",()=>{const u=n.domain(),c=[+u[0],+u[1]];i(c)})}function aL(e,t,r,n,i,a,o){const s=o?`markers markers-${o}`:"markers",l=e.append("g").attr("class",s);t.forEach(u=>{l.append("line").attr("class","marker-line").attr("data-timestamp",u.timestamp).attr("x1",u.x).attr("x2",u.x).attr("y1",0).attr("y2",r).attr("stroke",u.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),u.label&&l.append("text").attr("class","marker-label").attr("data-timestamp",u.timestamp).attr("x",u.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",u.color??"#2F42FF").attr("opacity",0)})}function oL(e,t,r,n,i,a,o){let s=null,l;a?l=e.select(".brush .overlay"):l=e.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",i).attr("fill","none").attr("pointer-events","all");const u=c=>{let f=null,h=1/0;if(r.forEach(m=>{const d=Math.abs(c-m.x);d<h&&(h=d,f=m)}),!f||h>50)return s!==null&&(s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)),!1;const y=f;return s===y.timestamp||(s=y.timestamp,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),t.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",.6),t.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",1),o(y)),!0};l.on("mousemove",function(c){const[f]=Es(c,this);u(f)}),l.on("mouseleave",function(){s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)})}function Ff(e,t,r,n,i,a,o,s,l,u,c,f,h,p,y=!1,m,d,v=[],w=[0,0],b,_,g=[],x=!1,S=40,A=15,T){let C=null;const P=d?`main-chart-group main-chart-group-${d}`:"main-chart-group",E=e.append("g").attr("class",P).attr("transform",`translate(${u.left},${u.top})`),M=d?`chart-clip-${d}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",M).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",l);const $=d?`chart-content-group chart-content-group-${d}`:"chart-content-group",j=E.append("g").attr("class",$).attr("clip-path",`url(#${M})`);if(c&&t!=="parliament"&&(j.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Ts(a).ticks(6).tickSize(l).tickFormat(()=>"")),j.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ps(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Dy(j,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:d}),v.length>0)){const k=v.filter(I=>I.timestamp>=w[0]&&I.timestamp<=w[1]).map(I=>({...I,x:a(new Date(I.timestamp))}));C={markersGroup:null,visibleMarkers:k},b&&b(k)}if(t==="parliament"){const k=s/2,I=i.radius+10,q=l-i.radius*.3,F=Math.max(I,q);cE(j,i,n,{centerX:k,centerY:F,addClasses:!0,instanceId:d,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const k=Ts(a).ticks(6);h&&k.tickFormat(q=>h(+q)),E.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).call(k).selectAll("text").attr("font-size",14).attr("font-weight",500);const I=Ps(o).ticks(5);p&&I.tickFormat(q=>p(+q)),E.append("g").attr("class","axis axis-y").call(I).selectAll("text").attr("font-size",14).attr("font-weight",500)}if(y&&m&&t==="area"){const k=Ac().extent([[0,0],[s,l]]).on("end",q=>{if(!q.selection)return;const[F,N]=q.selection,D=[+a.invert(F),+a.invert(N)];m(D),e.select(".brush").call(k.move,null)}),I=j.append("g").attr("class","brush").call(k);I.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),I.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),I.on("dblclick",()=>{const q=a.domain(),F=[+q[0],+q[1]];m(F)})}if(t==="area"&&C&&C.visibleMarkers.length>0){const k=E.append("g").attr("class","markers").attr("clip-path",`url(#${M})`);C.visibleMarkers.forEach(I=>{k.append("line").attr("class","marker-line").attr("data-timestamp",I.timestamp).attr("x1",I.x).attr("x2",I.x).attr("y1",0).attr("y2",l).attr("stroke",I.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),I.label&&k.append("text").attr("class","marker-label").attr("data-timestamp",I.timestamp).attr("x",I.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",I.color??"#2F42FF").attr("opacity",0)}),C.markersGroup=k}t==="area"&&x&&T&&fE(e,g,a,l,s,S,A,d,T,y,m),C&&C.visibleMarkers.length>0&&_&&t==="area"&&oL(j,C.markersGroup,C.visibleMarkers,s,l,y,_)}function fE(e,t,r,n,i,a,o,s,l,u=!1,c){const f=n+o,h=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),p=s?`timeline-track timeline-track-${s}`:"timeline-track",y=h.append("g").attr("class",p),m=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",m).append("rect").attr("x",0).attr("y",f).attr("width",i).attr("height",a),y.append("rect").attr("class","timeline-background").attr("x",0).attr("y",f).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const d=y.append("g").attr("clip-path",`url(#${m})`),v=3,w=d.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",_=>r(new Date(_.timestamp))-v/2).attr("y",f).attr("width",v).attr("height",a).attr("fill",_=>_.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",_=>_.timestamp).attr("data-event-name",_=>_.eventName),b=6;if(w.on("mouseenter",function(_,g){const x=te(this),S=r(new Date(g.timestamp));x.transition().duration(150).attr("x",S-b/2).attr("width",b),l&&l({timestamp:g.timestamp,eventName:g.eventName,x:S})}).on("mouseleave",function(_,g){const x=te(this),S=r(new Date(g.timestamp));x.transition().duration(150).attr("x",S-v/2).attr("width",v),l&&l(null)}),u&&c){const _=Ac().extent([[0,f],[i,f+a]]).on("end",S=>{if(!S.selection)return;const[A,T]=S.selection,C=[+r.invert(A),+r.invert(T)];c(C);const P=s?`.timeline-brush-${s}`:".timeline-brush";e.select(P).call(_.move,null)}),g=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",x=h.append("g").attr("class",g).call(_);x.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),x.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),x.on("dblclick",()=>{const S=r.domain(),A=[+S[0],+S[1]];c(A)})}}function sL(e,t,r,n,i,a,o,s,l,u,c,f,h,p=!0,y,m,d,v,w,b){const _=e.select(b?`.main-chart-group-${b}`:".main-chart-group");_.selectAll(".markers").remove(),_.selectAll(".marker-hover-overlay").remove(),_.selectAll(".brush").remove(),t==="stacked-area"||t==="area"?lL(_,r,n,i,a,o,s,l,u,f,h,p,y,m,d,v,w,b):uL(_,r,n,i,a,o,s,l,u,f,h,p,y,m,d,v,w,b)}function ms(e,t,r,n,i,a,o,s){const l=e[a];if(!l)return"";const u=l.find(x=>x.data.timestamp===o);if(!u)return"";const c=u.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,v=u[0],w=u[1],b=s?i:n(v),_=s?i:n(w),g=[];return g.push(`M ${m} ${b}`),g.push(`L ${m} ${_}`),g.push(`L ${m+d} ${_}`),g.push(`L ${m+d} ${b}`),g.push("Z"),g.join(" ")}function lL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h,p,y,m,d,v){var $l;const w=v?`.seat-${v}`:".seat",b=e.selectAll(w),_=v?`.chart-content-group-${v}`:".chart-content-group";let g=e.select(_);if(g.empty()){const et=e.attr("clip-path"),lt=et?(($l=et.match(/url\(#(.+)\)/))==null?void 0:$l[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,yt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";g=e.append("g").attr("class",yt).attr("clip-path",`url(#${lt})`)}if(b.size()===0){Dy(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const x=rL(u),S=v?Ui.get(v):void 0;S&&(S.destroy(),v&&Ui.delete(v));const A=et=>et<.2?"seatsToRings":et<.35?"ringsToBar":et<.464?"axesReveal":et<.6?"barSlide":et<.82?"barsGrow":"barsToArea",T=new lE({seatsToRings:x.seatsToLines,ringsToBar:x.seatsToBar,axesReveal:x.barSlideToTimeline*.3,barSlide:x.barSlideToTimeline*.7,barsGrow:x.axesAndBarsGrow,barsToArea:x.barsToArea},{onStageComplete:et=>{},onProgress:et=>{if(m){const lt=A(et);m(et,lt)}},onComplete:()=>{c()}});v&&Ui.set(v,T),y&&y(T.getControls().getTimeline());const C=t[0].map(et=>et.data),P=QN(C,r),E=s/2,M=n.radius+10,$=l-n.radius*.3,j=Math.max(M,$),k=C.map(et=>et.timestamp),I=d??Math.max(...k),q=new Map,F=[];k.forEach((et,lt)=>{const yt=a(new Date(et)),jt=k[lt+1];if(jt){const Jt=a(new Date(jt))-yt;F.push(Jt)}});const N=F.length>0?F.reduce((et,lt)=>et+lt,0)/F.length:30;k.forEach((et,lt)=>{const yt=a(new Date(et)),jt=k[lt+1],Jt=lt===k.length-1?N:a(new Date(jt))-yt;q.set(et,{x:yt,width:Jt})});const D=P.filter(et=>et.timestamp===I),L=q.get(I),G=666,Y=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",z=g.append("g").attr("class",Y);D.sort((et,lt)=>lt.y0-et.y0),new Map().set(I,{x:G-L.width/2,width:L.width});const Q=[],K=(n.radius-n.innerRadius)*.6,H=l*.8,Z=j,R=D.reduce((et,lt)=>et+(lt.y1-lt.y0),0);let ot=0;r.forEach(et=>{const lt=D.find(je=>je.dataKey===et.dataKey);if(!lt)return;const oe=(lt.y1-lt.y0)/R*H,Jt=Z-ot,Ne=Z-ot-oe,$e=G-K/2,tr=`M ${$e} ${Jt} L ${$e} ${Ne} L ${$e+K} ${Ne} L ${$e+K} ${Jt} Z`;ot+=oe;const yr=z.append("path").attr("class",`parliament-bar-segment category-${Fe(lt.dataKey)}`).attr("d",tr).attr("fill",lt.color).style("opacity",0).node();yr&&Q.push(yr)}),v&&(window.orchestratorMap=Ui);const U=T.getControls().getTimeline(),nt=x.seatsToLines/1e3,ft=x.seatsToBar/1e3;U.call(()=>{m==null||m(U.progress(),"seatsToRings")},[],"seatsToRings");const st=b.nodes(),ht=E,Et=j,at=Math.max(...n.seats.map(et=>et.ring)),dt=n.seats.filter(et=>et.ring===at),xt=e.append("g").attr("class",`seat-lines-${v||"default"}`),$t=r.map(et=>{const lt=b.filter(`.seat-${Fe(et.dataKey)}`).size();return lt>0?{name:et.dataKey,seatCount:lt,color:et.color}:null}).filter(et=>et!==null).reverse(),Ht=$t.reduce((et,lt)=>et+lt.seatCount,0),St=dt.length,kt=n.radius-n.innerRadius,Oe=kt*.6,Cr=Oe/2,fn=kt*.6,me=[];let Te=0;$t.forEach(et=>{const lt=Math.max(1,Math.round(et.seatCount/Ht*St));for(let yt=0;yt<lt;yt++){const jt=(Te+yt)/St,oe=n.arcAngle*Math.PI/180,Ne=-oe/2-Math.PI/2+jt*oe,$e=(n.innerRadius+n.radius)/2,tr=ht+Math.cos(Ne)*$e,yr=Et+Math.sin(Ne)*$e,je=Math.cos(Ne),ti=Math.sin(Ne),Ci=tr-Cr*je,_a=yr-Cr*ti,ve=tr+Cr*je,ei=yr+Cr*ti,ri=xt.append("line").attr("class","seat-line").attr("x1",Ci).attr("y1",_a).attr("x2",ve).attr("y2",ei).attr("stroke",et.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",Ne*180/Math.PI).attr("data-center-x",tr).attr("data-center-y",yr).attr("data-initial-length",Oe).node();me.push({element:ri,angle:Ne})}Te+=lt});const Gr=()=>{xt.remove()},Ze=nt*.5,Mr=0,hr=[];if(hr.push(...st),hr.sort((et,lt)=>{const yt=parseInt(et.getAttribute("data-layout-index")||"-1",10),jt=parseInt(lt.getAttribute("data-layout-index")||"-1",10);return yt-jt}),hr.length>0&&me.length>0){const et=me.map(lt=>lt.element);U.to(hr,{attr:{r:1.5},duration:Ze*.3,ease:"power2.in"},`seatsToRings+=${Mr}`),et.forEach(lt=>{const yt=lt.getAttribute("x1")||"0",jt=lt.getAttribute("y1")||"0",oe=lt.getAttribute("x2")||"0",Jt=lt.getAttribute("y2")||"0";lt.setAttribute("data-final-x1",yt),lt.setAttribute("data-final-y1",jt),lt.setAttribute("data-final-x2",oe),lt.setAttribute("data-final-y2",Jt),lt.setAttribute("x1",yt),lt.setAttribute("y1",jt),lt.setAttribute("x2",yt),lt.setAttribute("y2",jt)}),U.to(et,{attr:{x2:(lt,yt)=>parseFloat(yt.getAttribute("data-final-x2")||"0"),y2:(lt,yt)=>parseFloat(yt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:Ze*.6,ease:"power2.out"},`seatsToRings+=${Mr+Ze*.2}`),U.to(hr,{opacity:0,duration:Ze*.3,ease:"power2.out"},`seatsToRings+=${Mr+Ze*.3}`)}const Kr=nt*.05,pr=nt*.7,Jn=Mr+Ze+Kr;if(me.length>0){const et=G,lt=j,jt=l*.8/me.length,oe=lt,Jt=[...me].sort((tr,yr)=>yr.angle-tr.angle),$e=.6/Jt.length;Jt.forEach((tr,yr)=>{const je=et,Ci=oe-yr*jt,_a=$e*yr*pr,ve=tr.element,ei=parseFloat(ve.getAttribute("data-final-x1")||"0"),ri=parseFloat(ve.getAttribute("data-final-y1")||"0"),Bo=parseFloat(ve.getAttribute("data-final-x2")||"0"),xa=parseFloat(ve.getAttribute("data-final-y2")||"0"),jl=(ei+Bo)/2,pn=(ri+xa)/2,ni=Math.atan2(xa-ri,Bo-ei),Mi=Math.sqrt(Math.pow(Bo-ei,2)+Math.pow(xa-ri,2));U.to({progress:0},{progress:1,duration:pr*.5,ease:"power2.inOut",delay:_a,onUpdate:function(){const ue=this.progress(),pf=jl+(je-jl)*ue,df=pn+(Ci-pn)*ue,dn=40*4*ue*(1-ue),ki=pf,$i=df-dn,yf=0-ni,Mn=ni+yf*ue*ue,Rl=(Mi+(fn-Mi)*ue)/2,lk=ki-Rl*Math.cos(Mn),uk=$i-Rl*Math.sin(Mn),ck=ki+Rl*Math.cos(Mn),fk=$i+Rl*Math.sin(Mn);ve.setAttribute("x1",lk.toString()),ve.setAttribute("y1",uk.toString()),ve.setAttribute("x2",ck.toString()),ve.setAttribute("y2",fk.toString())},onComplete:function(){const ue=fn/2;ve.setAttribute("x1",(je-ue).toString()),ve.setAttribute("y1",Ci.toString()),ve.setAttribute("x2",(je+ue).toString()),ve.setAttribute("y2",Ci.toString())}},`seatsToRings+=${Jn}`),U.to(tr.element,{opacity:.95,duration:pr*.3,ease:"power2.out",delay:_a},`seatsToRings+=${Jn}`)})}const kr=xt,Ge=[];D.forEach((et,lt)=>{const yt=b.filter(`.seat-${Fe(et.category)}`),jt=yt.size();if(jt===0)return;const oe=o(et.y1),Jt=o(et.y0)-o(et.y1),Ne=yt.nodes().sort((pn,ni)=>{const Mi=parseInt(pn.getAttribute("data-layout-index")||"-1",10),ue=parseInt(ni.getAttribute("data-layout-index")||"-1",10);return Mi-ue}),$e=Math.max(L.width,100),tr=Jt,yr=$e/Math.max(tr,1),je=Math.max(2,Math.ceil(Math.sqrt(jt*yr))),ti=Math.ceil(jt/je),Ci=$e*.8,_a=tr*.8,ve=je>1?Ci/(je-1):0,ei=ti>1?_a/(ti-1):0,ri=je>1?(je-1)*ve:0,Bo=ti>1?(ti-1)*ei:0,xa=G-$e/2+($e-ri)/2,jl=oe+(tr-Bo)/2;Ne.forEach((pn,ni)=>{const Mi=parseInt(pn.getAttribute("data-layout-index")||"-1",10),ue=Mi>=0?n.seats[Mi]:void 0,pf=ue?E+ue.x:parseFloat(pn.getAttribute("cx")||"0"),df=ue?j+ue.y:parseFloat(pn.getAttribute("cy")||"0"),I0=(ue==null?void 0:ue.radius)||parseFloat(pn.getAttribute("r")||"4"),dn=jt%je;let ki,$i;if(dn>0&&ni<dn)$i=0,ki=ni;else{const Mn=ni-(dn>0?dn:0);ki=Mn%je,$i=Math.floor(Mn/je)+(dn>0?1:0)}let mf=xa+ki*ve;if(dn>0&&$i===0){const Mn=dn>1?(dn-1)*ve:0,N0=(ri-Mn)/2;mf=xa+N0+ki*ve}const yf=jl+$i*ei;Ge.push({element:pn,startX:pf,startY:df,startRadius:I0,category:et.dataKey,segmentIndex:lt,endY:yf,endX:mf})})});const Yr=Ge.map(et=>{const lt=et.startX-E,yt=et.startY-j,jt=Math.atan2(yt,lt);return{...et,angle:jt}});Yr.sort((et,lt)=>lt.angle-et.angle);const hn=ft*.8,Pe=.6,$r=Yr.length,Lo=hn/Math.max($r,1)*($r-1)+Pe,En=ft*.3,Je=Lo;U.to(Q,{opacity:1,duration:En,ease:"power2.inOut"},`seatsToBar+=${Je}`),kr&&(U.to(kr.selectAll(".seat-line").nodes(),{opacity:0,duration:En,ease:"power2.inOut"},`seatsToBar+=${Je}`),U.call(()=>{Gr()},[],`seatsToBar+=${Je+En}`));const Ti=x.barSlideToTimeline/1e3;let Xr=null,Vr=null;if(f){const et=Ts(a).ticks(6);h&&et.tickFormat(yt=>h(yt.getTime())),Xr=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).attr("opacity",0),Xr.call(et).selectAll("text").attr("font-size",14).attr("font-weight",500);const lt=Ps(o).ticks(5);p&&lt.tickFormat(yt=>p(yt)),Vr=e.append("g").attr("class","axis axis-y").attr("opacity",0),Vr.call(lt).selectAll("text").attr("font-size",14).attr("font-weight",500)}const wt=x.crossFadePause/1e3,J=Je+En+wt;Q.forEach(et=>{const lt=Array.from(et.classList).find(Jt=>Jt.startsWith("category-"));if(!lt||!D.find(Jt=>Fe(Jt.dataKey)===lt.replace("category-","")))return;const jt=r.findIndex(Jt=>Fe(Jt.dataKey)===lt.replace("category-",""));if(jt===-1)return;const oe=ms(t,r,q,o,l,jt,I,!1);oe&&U.to(et,{attr:{d:oe},duration:Ti,ease:"power2.out"},`seatsToBar+=${J}`)});const ct=Fi().x(et=>a(et.data.timestamp)).y0(et=>o(et[0])).y1(et=>o(et[1])).curve(ia),mt=new Map;t.forEach((et,lt)=>{const yt=r[lt];if(yt){const jt=ct(et)||"";mt.set(yt.dataKey,jt)}});const At=J+Ti;f&&Xr&&Vr&&U.to([Xr.node(),Vr.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${J}`);const Ot=g.select(".grid-vertical"),Dt=g.select(".grid-horizontal");if(!Ot.empty()||!Dt.empty()){const lt=[];Ot.empty()||lt.push(Ot.node()),Dt.empty()||lt.push(Dt.node()),U.to(lt,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${J}`)}const Tt=x.axesAndBarsGrow/1e3,ye=x.barsToArea/1e3,ge=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",ke=g.append("g").attr("class",ge);k.forEach(et=>{if(et===I)return;const lt=q.get(et);lt&&r.forEach((yt,jt)=>{const oe=ms(t,r,q,o,l,jt,et,!0),Jt=ms(t,r,q,o,l,jt,et,!1);if(!oe||!Jt)return;const Ne=v?`histogram-path histogram-path-${v} category-${Fe(yt.dataKey)}`:`histogram-path category-${Fe(yt.dataKey)}`;ke.append("path").attr("class",Ne).attr("d",oe).attr("fill",yt.color).attr("stroke",yt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",yt.dataKey).attr("data-timestamp",et).attr("data-x-position",lt.x).attr("data-full-height-path",Jt)})});const Zr=v?`.histogram-path-${v}`:".histogram-path",Qe=ke.selectAll(Zr);U.to(Qe.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${At}`);const mr=L.x+L.width/2;Qe.each(function(){var $e;const et=this.getAttribute("data-full-height-path");if(!et)return;const lt=parseFloat(this.getAttribute("data-x-position")||"0"),yt=parseFloat(this.getAttribute("data-timestamp")||"0"),jt=(($e=q.get(yt))==null?void 0:$e.width)||0,oe=lt+jt/2,Ne=Math.abs(oe-mr)*8e-4;U.to(this,{attr:{d:et},duration:Tt,ease:"power2.out"},`seatsToBar+=${At+Ne}`)});const Qn=At+Tt,Jr=k[k.length-1],Cn=a(new Date(Jr))+N,Ml=a.invert(Cn).getTime(),ba=t.map(et=>{const lt=et[et.length-1],yt={...lt,data:{...lt.data,timestamp:Ml}};return[...et,yt]});Dy(e,ba,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const D0=v?`.area-${v}`:".area",Ei=e.selectAll(D0);Ei.attr("opacity",0),U.to(Qe.nodes(),{opacity:0,duration:ye,ease:"power2.inOut"},`seatsToBar+=${Qn}`);const kl=z.selectAll("path").nodes();kl.length>0&&U.to(kl,{opacity:0,duration:ye,ease:"power2.inOut"},`seatsToBar+=${Qn}`),U.to(Ei.nodes(),{opacity:1,duration:ye,ease:"power2.inOut"},`seatsToBar+=${Qn}`);const hf=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const et=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(et).remove();const lt=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(lt).remove(),f&&(Xr&&Xr.attr("opacity",1),Vr&&Vr.attr("opacity",1)),hf()}),T.play()}function uL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h,p,y,m,d,v){var wt;const w=v?`.chart-content-group-${v}`:".chart-content-group";let b=e.select(w);if(b.empty()){const J=e.attr("clip-path"),ct=J?((wt=J.match(/url\(#(.+)\)/))==null?void 0:wt[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,mt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";b=e.append("g").attr("class",mt).attr("clip-path",`url(#${ct})`)}const _=v?`.area-${v}`:".area",g=e.selectAll(_);if(g.size()===0){cL(e,r,n,s,l,v),c();return}const x={areaToBar:u*.18,barsShrink:u*.22,barSlide:u*.22,axesHide:u*.03,barToRings:u*.07,ringsExpand:u*.18,ringsHold:u*.05,ringsToSeats:u*.07},S=v?Ui.get(v):void 0;S&&(S.destroy(),v&&Ui.delete(v));const A=J=>J<.18?"areaToBar":J<.4?"barsShrink":J<.62?"barSlide":J<.65?"axesHide":J<.72?"barToRings":J<.9?"ringsExpand":J<.95?"ringsHold":"ringsToSeats",T=new lE({seatsToRings:x.ringsToSeats,ringsHold:x.ringsHold,ringsToBar:x.barToRings,axesReveal:x.axesHide,barSlide:x.barSlide,barsGrow:x.barsShrink,barsToArea:x.areaToBar},{onStageComplete:J=>{},onProgress:J=>{if(m){const ct=A(J);m(J,ct)}},onComplete:()=>{c()}});v&&Ui.set(v,T),y&&y(T.getControls().getTimeline());const P=t[0].map(J=>J.data).map(J=>J.timestamp),E=d??Math.max(...P),M=new Map,$=[];P.forEach((J,ct)=>{const mt=a(new Date(J)),At=P[ct+1];if(At){const Dt=a(new Date(At))-mt;$.push(Dt)}});const j=$.length>0?$.reduce((J,ct)=>J+ct,0)/$.length:30;P.forEach((J,ct)=>{const mt=a(new Date(J)),At=P[ct+1],Dt=ct===P.length-1?j:a(new Date(At))-mt;M.set(J,{x:mt,width:Dt})});const k=T.getControls().getTimeline(),I=x.areaToBar/1e3,q=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",F=b.append("g").attr("class",q);P.forEach(J=>{const ct=M.get(J);ct&&r.forEach((mt,At)=>{const Ot=ms(t,r,M,o,l,At,J,!1);if(!Ot)return;const Dt=v?`histogram-path histogram-path-${v} category-${Fe(mt.dataKey)}`:`histogram-path category-${Fe(mt.dataKey)}`;F.append("path").attr("class",Dt).attr("d",Ot).attr("fill",mt.color).attr("stroke",mt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",mt.dataKey).attr("data-timestamp",J).attr("data-x-position",ct.x)})});const N=v?`.histogram-path-${v}`:".histogram-path",D=F.selectAll(N);k.to(g.nodes(),{opacity:0,duration:I,ease:"power2.inOut"},"areaToBar"),k.to(D.nodes(),{opacity:1,duration:I,ease:"power2.inOut"},"areaToBar");const L=x.barsShrink/1e3,G=I;D.each(function(){const J=parseFloat(this.getAttribute("data-timestamp")||"0");if(J===E)return;const ct=r.find(Ot=>this.classList.contains(`category-${Fe(Ot.dataKey)}`));if(!ct)return;const mt=r.indexOf(ct),At=ms(t,r,M,o,l,mt,J,!0);At&&k.to(this,{attr:{d:At},duration:L,ease:"power2.in"},G)});const Y=x.axesHide/1e3,z=G+L;if(f){const J=e.select(".axis-x"),ct=e.select(".axis-y");J.empty()||k.to(J.node(),{opacity:0,duration:Y,ease:"power2.inOut"},z),ct.empty()||k.to(ct.node(),{opacity:0,duration:Y,ease:"power2.inOut"},z)}const V=b.select(".grid-vertical"),Q=b.select(".grid-horizontal");V.empty()||k.to(V.node(),{opacity:0,duration:Y,ease:"power2.inOut"},z),Q.empty()||k.to(Q.node(),{opacity:0,duration:Y,ease:"power2.inOut"},z);const K=[];t.forEach((J,ct)=>{const mt=J.find(Ot=>Ot.data.timestamp===E);if(!mt)return;const At=r[ct];At&&K.push({category:At.label,dataKey:At.dataKey,color:At.color,y0:mt[0],y1:mt[1]})}),K.sort((J,ct)=>ct.y0-J.y0);const B=K.reduce((J,ct)=>J+(ct.y1-ct.y0),0),H=n.radius-n.innerRadius,Z=s/2,R=n.radius+10,ot=l-n.radius*.3,U=Math.max(R,ot),nt=H*.6,st=l*.8,ht=U,Et=x.barSlide/1e3,at=z+Y,dt=666,xt=D.nodes().filter(J=>parseFloat(J.getAttribute("data-timestamp")||"0")!==E);k.to(xt,{opacity:0,duration:Et*.2,ease:"power2.out"},at);const $t=D.nodes().filter(J=>parseFloat(J.getAttribute("data-timestamp")||"0")===E);$t.forEach(J=>{const ct=J.getAttribute("data-category");if(!ct)return;const mt=K.find(Qe=>Qe.dataKey===ct);if(!mt)return;const Dt=(mt.y1-mt.y0)/B*st;let Tt=0;for(const Qe of r){const mr=K.find(Pi=>Pi.dataKey===Qe.dataKey);if(!mr)continue;if(mr.dataKey===mt.dataKey)break;const Jr=(mr.y1-mr.y0)/B;Tt+=Jr*st}const ye=ht-Tt,ge=ht-Tt-Dt,ke=dt-nt/2,Zr=`M ${ke} ${ye} L ${ke} ${ge} L ${ke+nt} ${ge} L ${ke+nt} ${ye} Z`;k.to(J,{attr:{d:Zr},duration:Et,ease:"power2.inOut"},at)});const Ht=x.barToRings/1e3,St=at+Et,kt=x.ringsExpand/1e3,Oe=St+Ht,Cr=x.ringsHold/1e3,fn=Oe+kt,me=x.ringsToSeats/1e3,Te=fn+Cr,Gr=Math.max(...n.seats.map(J=>J.ring)),Ze=n.seats.filter(J=>J.ring===Gr),Mr=b.append("g").attr("class",`slinky-${v||"h2p-default"}`),hr=()=>{Mr.remove()};Ze.forEach((J,ct)=>{const mt=r.find(At=>At.label===J.category);mt&&Mr.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",mt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",J.category).attr("data-category-index",J.categoryIndex).attr("data-ring-index",ct).attr("data-seat-x",Z+J.x).attr("data-seat-y",U+J.y).attr("data-seat-angle",Math.atan2(J.y,J.x)).style("opacity",0)});const Kr=Mr.selectAll(".slinky-ring").nodes(),pr=dt,Jn=st/Kr.length,kr=[...Kr].sort((J,ct)=>{const mt=parseFloat(J.getAttribute("data-seat-angle")||"0");return parseFloat(ct.getAttribute("data-seat-angle")||"0")-mt}),Ge=ht;kr.forEach((J,ct)=>{const mt=Ge-ct*Jn,Ot=nt/2,Dt=pr-Ot,Tt=pr+Ot;J.setAttribute("x1",Dt.toString()),J.setAttribute("y1",mt.toString()),J.setAttribute("x2",Tt.toString()),J.setAttribute("y2",mt.toString()),J.style.opacity="0"}),k.to($t,{opacity:0,duration:Ht*.7,ease:"power2.out"},St+Ht*.3),k.to(kr,{opacity:1,duration:Ht,ease:"power2.in",stagger:.005},St);const Yr=H*.8;kr.forEach((J,ct)=>{const mt=parseFloat(J.getAttribute("data-seat-x")||"0"),At=parseFloat(J.getAttribute("data-seat-y")||"0"),Ot=parseFloat(J.getAttribute("data-seat-angle")||"0"),Dt=(kr.length-1-ct)/kr.length*(kt*.4),Tt=parseFloat(J.getAttribute("x1")||"0"),ye=parseFloat(J.getAttribute("y1")||"0"),ge=parseFloat(J.getAttribute("x2")||"0"),ke=parseFloat(J.getAttribute("y2")||"0"),Zr=(Tt+ge)/2,Qe=(ye+ke)/2,mr=Math.atan2(ke-ye,ge-Tt),Qn=Math.sqrt(Math.pow(ge-Tt,2)+Math.pow(ke-ye,2)),Jr=mt-Yr/2*Math.cos(Ot),Pi=At-Yr/2*Math.sin(Ot);k.to({progress:0},{progress:1,duration:kt*.7,ease:"power2.out",onUpdate:function(){const Cn=this.progress(),ff=Zr+(Jr-Zr)*Cn,Ml=Qe+(Pi-Qe)*Cn,ba=mr+(Ot-mr)*Cn,Ei=(Qn+(Yr-Qn)*Cn)/2,kl=ff-Ei*Math.cos(ba),hf=Ml-Ei*Math.sin(ba),$l=ff+Ei*Math.cos(ba),et=Ml+Ei*Math.sin(ba);J.setAttribute("x1",kl.toString()),J.setAttribute("y1",hf.toString()),J.setAttribute("x2",$l.toString()),J.setAttribute("y2",et.toString())}},Oe+Dt),k.to(J,{opacity:.9,duration:kt*.3,ease:"power2.in"},Oe+Dt)}),k.call(()=>{m&&m(k.progress(),"ringsHold")},[],fn);const hn=v?`parliament parliament-${v}`:"parliament",Pe=b.append("g").attr("class",hn);n.seats.forEach((J,ct)=>{const mt=r.find(ge=>ge.label===J.category);if(!mt)return;const At=Z+J.x,Ot=U+J.y;let Dt,Tt,ye;J.ring===Gr?(Dt=At,Tt=Ot,ye=2):(Dt=At,Tt=Ot,ye=J.radius),Pe.append("circle").attr("cx",Dt).attr("cy",Tt).attr("r",ye).attr("fill",mt.color).attr("stroke",mt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${Fe(J.category)}`:`seat seat-${Fe(J.category)}`).attr("data-layout-index",ct).attr("data-ring",J.ring).attr("data-final-x",At).attr("data-final-y",Ot).attr("data-final-r",J.radius)});const $r=v?`.seat-${v}`:".seat",dr=Pe.selectAll($r);k.to(Kr,{opacity:0,duration:me*.2,ease:"power3.out"},Te),k.to(dr.nodes(),{opacity:.8,duration:me*.3,ease:"power2.in"},Te+me*.25);const Lo=dr.nodes(),En=[],Je=[];Lo.forEach(J=>{parseInt(J.getAttribute("data-ring")||"0")===Gr?En.push(J):Je.push(J)});const Ti=me*.2,Xr=me*.7;En.forEach(J=>{const ct=parseFloat(J.getAttribute("data-final-r")||"4");k.to(J,{attr:{r:ct},opacity:1,duration:Xr*.6,ease:"power2.out"},Te+Ti)}),Je.length>0&&k.to(Je,{opacity:1,duration:Xr*.5,ease:"power2.in"},Te+Ti+me*.15);const Vr=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const J=v?`.areas-${v}`:".areas",ct=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(J).remove(),e.selectAll(ct).remove(),hr(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const mt=v?`.parliament-label-${v}`:".parliament-label";if(e.select(mt).empty()){const Ot=s/2,Dt=n.radius+10,Tt=l-n.radius*.3,ye=Math.max(Dt,Tt),ge=v?`parliament-label parliament-label-${v}`:"parliament-label",ke=e.append("g").attr("class",ge).attr("transform",`translate(${Ot},${ye-n.radius*.15})`).style("opacity","0").style("pointer-events","none");ke.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),ke.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const Zr=ke.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");Zr.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),Zr.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}Vr()}),T.play()}function cL(e,t,r,n,i,a){const o=n/2,s=r.radius+10,l=i-r.radius*.3,u=Math.max(s,l);cE(e,r,t,{centerX:o,centerY:u,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function i_(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=te(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const l=o.select(".scale-indicator");r?l.style("opacity","1").select("text").text(`= ~${n} repos`):l.style("opacity","0")}else o.style("opacity","0")}function zf(e,t,r,n,i,a,o,s,l){const u=e.querySelectorAll(".seat");if(!u||u.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];u.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),u.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),v=d[d.length-1];if(!v)return;const w=v.substring(5),b=t.find(g=>Fe(g.label)===w);if(!b)return;const _=()=>{i(b.label);const g=Math.round(c.values[b.dataKey]||0),x=uE(b.color),S={label:b.label,value:g,color:x};a&&a(S),i_(e,S,o??!1,s??1,l),ys(e,b.label)};p.addEventListener("mouseenter",_),f.push({element:p,handler:_})});const h=()=>{i(null),a&&a(null),i_(e,null,!1,1,l),ys(e,null)};return e.addEventListener("mouseleave",h),n&&ys(e,n),()=>{f.forEach(({element:p,handler:y})=>{p.removeEventListener("mouseenter",y)}),e.removeEventListener("mouseleave",h),u.forEach(p=>{const y=p;y.style.cursor="",y.style.transition=""})}}function ys(e,t){const r=e.querySelectorAll(".seat"),n=t?Fe(t):null;r.forEach(i=>{const a=i,l=(i.getAttribute("class")||"").split(/\s+/).filter(f=>f.startsWith("seat-")),u=l[l.length-1];if(!u)return;const c=u.substring(5);n?c===n?(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1")):(a.setAttribute("fill-opacity","0.3"),a.setAttribute("stroke-opacity","0.2")):(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1"))})}const hE=({data:e,categories:t,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:l=!0,formatDate:u,formatValue:c,markers:f=[],arcAngle:h=200,parliamentRadius:p=200,seatSize:y=4.5,animationDuration:m=900,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:w,onAnimationProgress:b,onHoveredDataChange:_,hoveredCategory:g,maxSeats:x=500,showTooltip:S=!0,showTable:A=!1,showScaledIndicator:T=!0,parliamentTimestamp:C,enableBrush:P=!1,onTimeRangeChange:E,timelineEvents:M=[],showTimeline:$=!1,timelineHeight:j=40,timelineOffset:k=35})=>{const I=O.useRef(null),q=O.useCallback(B=>{_&&_(B)},[_]),F=e[e.length-1],N=F?t.reduce((B,H)=>B+(F.values[H.dataKey]||0),0):0,D=N>x,L=D?Math.round(N/x):1,G=$&&r==="stacked-area"?i+j+k:i,{isMorphing:Y,currentMode:z,visibleMarkers:V,hoveredMarker:Q,hoveredTimelineEvent:K}=nL({containerRef:I,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:l,formatDate:u,formatValue:c,markers:f,arcAngle:h,parliamentRadius:p,seatSize:y,animationDuration:m,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:w,onAnimationProgress:b,onHoveredDataChange:q,hoveredCategory:g,maxSeats:x,parliamentTimestamp:C,enableBrush:P,onTimeRangeChange:E,showScaleIndicator:T&&D,reposPerSeat:L,timelineEvents:M,showTimeline:$,timelineHeight:j,timelineOffset:k});return W.jsxs(tt.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[W.jsx("svg",{ref:I,viewBox:`0 0 ${n} ${G}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),z==="area"&&V.map(B=>{const H=(B.x+a.left)/n*100,Z=a.top/i*100,R=new Date(B.timestamp),ot=u?u(B.timestamp):R.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),U=W.jsxs(tt.Box,{children:[W.jsx(tt.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:B.label?.5:0},children:ot}),B.label&&W.jsx(tt.Box,{sx:{color:"white",fontWeight:500},children:B.label})]});return W.jsx(tt.Tooltip,{title:U,open:(Q==null?void 0:Q.timestamp)===B.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:W.jsx(tt.Box,{sx:{position:"absolute",left:`${H}%`,top:`${Z}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},B.timestamp)}),K&&z==="area"&&W.jsx(tt.Tooltip,{title:W.jsxs(tt.Box,{children:[W.jsx(tt.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:u?u(K.timestamp):new Date(K.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),W.jsx(tt.Box,{sx:{color:"white",fontWeight:500},children:K.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:W.jsx(tt.Box,{sx:{position:"absolute",left:`${(K.x+a.left)/n*100}%`,top:`${(i+k+j/2)/G*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),Y&&W.jsxs(tt.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",z," → ",r]})]})},pE=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:20,maxSeatSize:20},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:16,maxSeatSize:16},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:12,maxSeatSize:12},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:8.5,maxSeatSize:8.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:7,maxSeatSize:7},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:6.5,maxSeatSize:6.5}],Vv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},Zv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class Al{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Al.prototype.normal={};Al.prototype.property={};Al.prototype.space=void 0;function dE(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Al(r,n,t)}function Fs(e){return e.toLowerCase()}class fr{constructor(t,r){this.attribute=r,this.property=t}}fr.prototype.attribute="";fr.prototype.booleanish=!1;fr.prototype.boolean=!1;fr.prototype.commaOrSpaceSeparated=!1;fr.prototype.commaSeparated=!1;fr.prototype.defined=!1;fr.prototype.mustUseProperty=!1;fr.prototype.number=!1;fr.prototype.overloadedBoolean=!1;fr.prototype.property="";fr.prototype.spaceSeparated=!1;fr.prototype.space=void 0;let fL=0;const _t=ma(),ce=ma(),Iy=ma(),rt=ma(),Xt=ma(),qa=ma(),gr=ma();function ma(){return 2**++fL}const Ny=Object.freeze(Object.defineProperty({__proto__:null,boolean:_t,booleanish:ce,commaOrSpaceSeparated:gr,commaSeparated:qa,number:rt,overloadedBoolean:Iy,spaceSeparated:Xt},Symbol.toStringTag,{value:"Module"})),Uf=Object.keys(Ny);class Jv extends fr{constructor(t,r,n,i){let a=-1;if(super(t,r),a_(this,"space",i),typeof n=="number")for(;++a<Uf.length;){const o=Uf[a];a_(this,Uf[a],(n&Ny[o])===Ny[o])}}}Jv.prototype.defined=!0;function a_(e,t,r){r&&(e[t]=r)}function Eo(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Jv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Fs(n)]=n,r[Fs(a.attribute)]=n}return new Al(t,r,e.space)}const mE=Eo({properties:{ariaActiveDescendant:null,ariaAtomic:ce,ariaAutoComplete:null,ariaBusy:ce,ariaChecked:ce,ariaColCount:rt,ariaColIndex:rt,ariaColSpan:rt,ariaControls:Xt,ariaCurrent:null,ariaDescribedBy:Xt,ariaDetails:null,ariaDisabled:ce,ariaDropEffect:Xt,ariaErrorMessage:null,ariaExpanded:ce,ariaFlowTo:Xt,ariaGrabbed:ce,ariaHasPopup:null,ariaHidden:ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xt,ariaLevel:rt,ariaLive:null,ariaModal:ce,ariaMultiLine:ce,ariaMultiSelectable:ce,ariaOrientation:null,ariaOwns:Xt,ariaPlaceholder:null,ariaPosInSet:rt,ariaPressed:ce,ariaReadOnly:ce,ariaRelevant:null,ariaRequired:ce,ariaRoleDescription:Xt,ariaRowCount:rt,ariaRowIndex:rt,ariaRowSpan:rt,ariaSelected:ce,ariaSetSize:rt,ariaSort:null,ariaValueMax:rt,ariaValueMin:rt,ariaValueNow:rt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yE(e,t){return t in e?e[t]:t}function gE(e,t){return yE(e,t.toLowerCase())}const hL=Eo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qa,acceptCharset:Xt,accessKey:Xt,action:null,allow:null,allowFullScreen:_t,allowPaymentRequest:_t,allowUserMedia:_t,alt:null,as:null,async:_t,autoCapitalize:null,autoComplete:Xt,autoFocus:_t,autoPlay:_t,blocking:Xt,capture:null,charSet:null,checked:_t,cite:null,className:Xt,cols:rt,colSpan:null,content:null,contentEditable:ce,controls:_t,controlsList:Xt,coords:rt|qa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_t,defer:_t,dir:null,dirName:null,disabled:_t,download:Iy,draggable:ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_t,formTarget:null,headers:Xt,height:rt,hidden:Iy,high:rt,href:null,hrefLang:null,htmlFor:Xt,httpEquiv:Xt,id:null,imageSizes:null,imageSrcSet:null,inert:_t,inputMode:null,integrity:null,is:null,isMap:_t,itemId:null,itemProp:Xt,itemRef:Xt,itemScope:_t,itemType:Xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_t,low:rt,manifest:null,max:null,maxLength:rt,media:null,method:null,min:null,minLength:rt,multiple:_t,muted:_t,name:null,nonce:null,noModule:_t,noValidate:_t,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_t,optimum:rt,pattern:null,ping:Xt,placeholder:null,playsInline:_t,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_t,referrerPolicy:null,rel:Xt,required:_t,reversed:_t,rows:rt,rowSpan:rt,sandbox:Xt,scope:null,scoped:_t,seamless:_t,selected:_t,shadowRootClonable:_t,shadowRootDelegatesFocus:_t,shadowRootMode:null,shape:null,size:rt,sizes:null,slot:null,span:rt,spellCheck:ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rt,step:null,style:null,tabIndex:rt,target:null,title:null,translate:null,type:null,typeMustMatch:_t,useMap:null,value:ce,width:rt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xt,axis:null,background:null,bgColor:null,border:rt,borderColor:null,bottomMargin:rt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_t,declare:_t,event:null,face:null,frame:null,frameBorder:null,hSpace:rt,leftMargin:rt,link:null,longDesc:null,lowSrc:null,marginHeight:rt,marginWidth:rt,noResize:_t,noHref:_t,noShade:_t,noWrap:_t,object:null,profile:null,prompt:null,rev:null,rightMargin:rt,rules:null,scheme:null,scrolling:ce,standby:null,summary:null,text:null,topMargin:rt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_t,disableRemotePlayback:_t,prefix:null,property:null,results:rt,security:null,unselectable:null},space:"html",transform:gE}),pL=Eo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:gr,accentHeight:rt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rt,amplitude:rt,arabicForm:null,ascent:rt,attributeName:null,attributeType:null,azimuth:rt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rt,by:null,calcMode:null,capHeight:rt,className:Xt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:rt,diffuseConstant:rt,direction:null,display:null,dur:null,divisor:rt,dominantBaseline:null,download:_t,dx:null,dy:null,edgeMode:null,editable:null,elevation:rt,enableBackground:null,end:null,event:null,exponent:rt,externalResourcesRequired:null,fill:null,fillOpacity:rt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qa,g2:qa,glyphName:qa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rt,horizOriginX:rt,horizOriginY:rt,id:null,ideographic:rt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rt,k:rt,k1:rt,k2:rt,k3:rt,k4:rt,kernelMatrix:gr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:rt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:rt,overlineThickness:rt,paintOrder:null,panose1:null,path:null,pathLength:rt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rt,pointsAtY:rt,pointsAtZ:rt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gr,rev:gr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gr,requiredFeatures:gr,requiredFonts:gr,requiredFormats:gr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:rt,specularExponent:rt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rt,strikethroughThickness:rt,string:null,stroke:null,strokeDashArray:gr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rt,strokeOpacity:rt,strokeWidth:null,style:null,surfaceScale:rt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gr,tabIndex:rt,tableValues:null,target:null,targetX:rt,targetY:rt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:rt,underlineThickness:rt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rt,values:null,vAlphabetic:rt,vMathematical:rt,vectorEffect:null,vHanging:rt,vIdeographic:rt,version:null,vertAdvY:rt,vertOriginX:rt,vertOriginY:rt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yE}),vE=Eo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bE=Eo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gE}),_E=Eo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dL=/[A-Z]/g,o_=/-[a-z]/g,mL=/^data[-\w.:]+$/i;function xE(e,t){const r=Fs(t);let n=t,i=fr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&mL.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(o_,gL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!o_.test(a)){let o=a.replace(dL,yL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Jv}return new i(n,t)}function yL(e){return"-"+e.toLowerCase()}function gL(e){return e.charAt(1).toUpperCase()}const wE=dE([mE,hL,vE,bE,_E],"html"),Qv=dE([mE,pL,vE,bE,_E],"svg");function s_(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function vL(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const l_=/[#.]/g;function bL(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){l_.lastIndex=i;const s=l_.exec(r),l=r.slice(i,s?s.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function u_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _L(e){return e.join(" ").trim()}function SE(e,t,r){const n=r?AL(r):void 0;function i(a,o,...s){let l;if(a==null){l={type:"root",children:[]};const u=o;s.unshift(u)}else{l=bL(a,t);const u=l.tagName.toLowerCase(),c=n?n.get(u):void 0;if(l.tagName=c||u,xL(o))s.unshift(o);else for(const[f,h]of Object.entries(o))wL(e,l.properties,f,h)}for(const u of s)Ly(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function xL(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function wL(e,t,r,n){const i=xE(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=u_(n):i.commaSeparated?a=s_(n):i.commaOrSpaceSeparated?a=u_(s_(n).join(" ")):a=c_(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?SL(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(c_(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Ly(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Ly(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ly(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function c_(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Fs(r)===Fs(t)))return!0}return r}function SL(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function AL(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const OL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];SE(wE,"div");const Ol=SE(Qv,"g",OL),AE=(e=Ol)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:lr.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:lr.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:lr.neoGrey[400],"stroke-width":.5})]),OE=(e=Ol)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),TE=(e=Ol)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Ut={greyHatch:{background:lr.neoGrey[200],lines:lr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},TL=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>W.jsx(tt.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.3s ease-in-out","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:W.jsxs(tt.Table,{"aria-label":"Categories summary",className:"category-summary-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[W.jsx("thead",{children:W.jsxs(tt.TableRow,{children:[W.jsx(tt.TableCell,{}),W.jsx(tt.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?W.jsxs(W.Fragment,{children:[W.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),W.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):W.jsxs(W.Fragment,{children:[W.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),W.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),W.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),W.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:a.color;return W.jsxs(tt.TableRow,{onMouseEnter:()=>r(a.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:t===a.id?`${o}15`:"transparent","&:hover":{backgroundColor:`${o}15`}},children:[W.jsx(tt.TableCell,{align:"center",sx:{width:20},children:W.jsx(tt.Box,{sx:{width:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?Ut.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.background:a.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
16
16
  0deg,
17
17
  transparent,
18
18
  transparent 3px,
19
- ${Ft.greyHatch.lines} 3px,
20
- ${Ft.greyHatch.lines} 4px
19
+ ${Ut.greyHatch.lines} 3px,
20
+ ${Ut.greyHatch.lines} 4px
21
21
  )`,borderRadius:"50%"}},...a.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
22
22
  45deg,
23
23
  transparent,
24
24
  transparent 3px,
25
- ${Ft.dataMissingHatch.lines} 3px,
26
- ${Ft.dataMissingHatch.lines} 4px
25
+ ${Ut.dataMissingHatch.lines} 3px,
26
+ ${Ut.dataMissingHatch.lines} 4px
27
27
  )`,borderRadius:"50%"}},...a.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
28
28
  -45deg,
29
29
  transparent,
30
30
  transparent 3px,
31
- ${Ft.noLstHatch.lines} 3px,
32
- ${Ft.noLstHatch.lines} 4px
33
- )`,borderRadius:"50%"}}}})}),z.jsx(V.TableCell,{children:z.jsxs(V.Stack,{direction:"row",alignItems:"center",gap:.5,children:[z.jsx("span",{children:a.label}),a.tooltip&&z.jsx(V.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:z.jsx(lA.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?z.jsxs(z.Fragment,{children:[z.jsx(V.TableCell,{align:"right",children:a.value}),z.jsxs(V.TableCell,{align:"right",children:[a.percentage,"%"]})]}):z.jsxs(z.Fragment,{children:[z.jsx(V.TableCell,{align:"right",children:a.value}),z.jsx(V.TableCell,{align:"right",children:a.max??"-"}),z.jsx(V.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),M0={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},YN=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,u=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,l=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:M0[f.label]};if(u){const d=u.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:M0[h.label]})}}}return[...l,...c]},XN=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},VN=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},HT=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:u,enableBrush:l=!1,showLegend:c=!0,showTooltip:f=!0,showGrid:h=!0,enableAnimation:p=!0,animationDuration:y=7777,disableTimeline:m=!1,formatDate:d,formatValue:g,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x})=>{VN(e);const[v,w]=O.useState(null),[S,A]=O.useState(!0),P=O.useRef("historical"),C=O.useRef(void 0),T=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),E=O.useMemo(()=>{var G;let F;return t!==void 0&&e.timeSeries[t]?(F=e.timeSeries[t].timestamp,C.current=F):P.current==="point-in-time"&&T==="historical"&&C.current!==void 0?F=C.current:F=(G=e.timeSeries[e.timeSeries.length-1])==null?void 0:G.timestamp,P.current=T,F},[t,e.timeSeries,T]),k=e.timeSeries[0].timestamp,j=e.timeSeries[e.timeSeries.length-1].timestamp,[$,M]=O.useState([k,j]),I=s??$,L=O.useCallback(F=>{u?u(F):M(F)},[u]);O.useEffect(()=>{w(null)},[T]);const q=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),R=O.useMemo(()=>XN(e),[e]),D=O.useMemo(()=>YN(e,T),[e,T]),B=O.useMemo(()=>{const F=e.timeSeries[e.timeSeries.length-1];return F?Object.values(F.values).reduce((G,J)=>G+J,0):0},[e.timeSeries]),U=O.useMemo(()=>dg({repositoryCount:B}),[B]),W=O.useMemo(()=>mg({repositoryCount:B}),[B]),X=O.useMemo(()=>{const F=o-q.top-q.bottom;return Math.round(F*.9)},[o,q]),Z=O.useMemo(()=>e.events?e.events.map(F=>({timestamp:F.timestamp,label:F.eventName,color:typeof F.color=="string"?F.color:"#2F42FF"})):[],[e.events]),Q=O.useCallback(F=>{if(F){const G=e.categories.find(J=>J.label===F.label);w((G==null?void 0:G.id)??null)}else w(null)},[e.categories]),K=O.useCallback(F=>{A(!F),_&&_(F)},[_]);return z.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&z.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&z.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&z.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),z.jsx(V.Box,{sx:{position:"relative",width:"100%"},children:z.jsx(kT,{data:R.data,categories:R.categories,mode:T==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:I,onTimeRangeChange:L,enableBrush:l,showGrid:h,showAxes:!0,margin:q,markers:Z,formatDate:d,formatValue:g,animationDuration:y,onAnimationStateChange:K,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:Q,hoveredCategory:v,arcAngle:U,parliamentRadius:X,seatSize:W,parliamentTimestamp:E,timelineEvents:e.events??[],showTimeline:T==="historical"&&!m})}),z.jsx(KN,{categories:D,activeCategory:v,onCategoryHover:w,mode:T,visible:S})]})},ZN=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:u=!0,showYAxis:l=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:g})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const _=Qt(e.current),b=n-a.left-a.right,x=i-a.top-a.bottom;_.selectAll("*").remove();const v=_.append("g").attr("transform",`translate(${a.left},${a.top})`),w=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;_.append("defs").append("clipPath").attr("id",w).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",x);const S=v.append("g").attr("clip-path",`url(#${w})`),A=r.map(D=>D.dataKey),P=Ju().keys(A),C=P(t),T=t.map(D=>D.timestamp),E=o?o[0]:Math.min(...T),k=o?o[1]:Math.max(...T),j=Hu().domain([new Date(E),new Date(k)]).range([0,b]),$=t.filter(D=>D.timestamp>=E&&D.timestamp<=k),M=P($),I=M.length>0?Math.max(...M[M.length-1].map(D=>D[1]??0)):0,L=Ei().domain([0,I*1.1]).range([x,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Vo(j).ticks(6).tickSize(x).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Zo(L).ticks(5).tickSize(-b).tickFormat(()=>"")));const q=hi().x(D=>j(new Date(D.data.timestamp))).y0(D=>L(D[0])).y1(D=>L(D[1])).curve(UR.alpha(.5)),R=S.append("g").attr("class","areas");if(C.forEach((D,B)=>{const U=r[B];if(!U)return;const W=R.append("path").datum(D).attr("class",`area area-${U.dataKey}`).attr("fill",U.color).attr("fill-opacity",U.fillOpacity??.7).attr("stroke",U.color).attr("stroke-width",U.strokeWidth??1.5).attr("d",q);U.strokeDasharray&&W.attr("stroke-dasharray",U.strokeDasharray)}),m.length>0){const D=S.append("g").attr("class","markers"),B=d==="hover"?0:.6,U=m.filter(W=>W.timestamp>=E&&W.timestamp<=k).map(W=>({...W,x:j(new Date(W.timestamp))}));if(U.forEach(W=>{const X=D.append("line").attr("class","marker-line").attr("data-timestamp",W.timestamp).attr("x1",W.x).attr("x2",W.x).attr("y1",0).attr("y2",x).attr("stroke",W.color??"#131E7A").attr("stroke-width",2).attr("opacity",B);W.strokeDasharray&&X.attr("stroke-dasharray",W.strokeDasharray),W.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",W.timestamp).attr("x",W.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",W.color??"#131E7A").attr("opacity",B).text(W.label)}),d==="hover"&&U.length>0){const W=_.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),X=W.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),Z=W.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let Q=null;const K=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",x).attr("fill","none").attr("pointer-events","all"),F=G=>{let J=null,N=1/0;if(U.forEach(Vt=>{const Mt=Math.abs(G-Vt.x);Mt<N&&(N=Mt,J=Vt)}),!J||N>50)return Q!==null&&(Q=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),W.style("display","none"),g==null||g(!1)),!1;const H=J;if(Q===null&&(g==null||g(!0)),Q===H.timestamp)return!0;Q=H.timestamp,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),D.selectAll(".marker-line").filter(function(){return Qt(this).attr("data-timestamp")===String(H.timestamp)}).attr("opacity",.6),D.selectAll(".marker-label").filter(function(){return Qt(this).attr("data-timestamp")===String(H.timestamp)}).attr("opacity",1);const st=new Date(H.timestamp),ht=p?p(H.timestamp):st.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),at=H.label?`${H.label}: ${ht}`:ht;Z.text(at);const pt=Z.node().getBBox(),Tt=8,it=pt.width+Tt*2,ft=pt.height+Tt*2;X.attr("width",it).attr("height",ft);let wt=H.x-it/2;const Et=10;return wt<0?wt=0:wt+it>b&&(wt=b-it),W.attr("transform",`translate(${a.left+wt},${a.top+Et})`),Z.attr("x",it/2).attr("y",ft/2+4),W.style("display","block"),!0};K.on("mousemove",function(G){const[J]=Jo(G,this);F(J)&&G.stopPropagation()}),K.on("mouseleave",function(){Q=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),W.style("display","none"),g==null||g(!1)})}}if(u){const D=Vo(j).ticks(6);p&&D.tickFormat(B=>p(+B)),v.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${x})`).call(D).selectAll("text").attr("font-size",11)}if(l){const D=Zo(L).ticks(5);y&&D.tickFormat(B=>y(+B)),v.append("g").attr("class","axis axis-y").call(D).selectAll("text").attr("font-size",11)}if(c&&h){const D=Yl().extent([[0,0],[b,x]]).on("end",U=>{if(!U.selection)return;const[W,X]=U.selection,Z=[+j.invert(W),+j.invert(X)];h(Z),f&&_.select(".brush").call(D.move,null)}),B=S.append("g").attr("class","brush").call(D);B.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),B.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{_.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,u,l,c,f,h,p,y,m,d,g])},JN=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:u=400,margin:l={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:g,enableBrush:_=!1,zoomToSelection:b=!1,markers:x=[],markerVisibilityMode:v="hover"})=>{const w=O.useRef(null),[S,A]=O.useState(null),[P,C]=O.useState(!1);O.useEffect(()=>{P&&A(null)},[P]),ZN({containerRef:w,data:e,categories:t,width:s,height:u,margin:l,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:_,zoomToSelection:b,onTimeRangeChange:g,formatDate:m,formatValue:d,markers:x,markerVisibilityMode:v,onMarkerHoverChange:C});const k=$=>{if(!o||!w.current||P)return;const M=w.current.getBoundingClientRect(),I=$.clientX-M.left-l.left,L=$.clientY-M.top,q=s-l.left-l.right;if(I<0||I>q){A(null);return}const R=e.map(G=>G.timestamp),D=c?c[0]:Math.min(...R),B=c?c[1]:Math.max(...R),U=I/q*(B-D)+D,X=((G,J)=>{let N=0,ut=G.length;for(;N<ut;){const H=N+ut>>>1;G[H]<J?N=H+1:ut=H}return N})(R,U),Z=e[X-1],Q=e[X];let K=Q;if(Z&&Q?K=U-Z.timestamp>Q.timestamp-U?Q:Z:Z&&(K=Z),!K){A(null);return}const F=t.map(G=>({label:G.label,value:K[G.dataKey]??0,color:G.color}));A({visible:!0,x:$.clientX-M.left,y:L,timestamp:K.timestamp,values:F})},j=()=>{o&&A(null)};return z.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&z.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&z.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&z.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),z.jsxs(V.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[z.jsx("svg",{ref:w,viewBox:`0 0 ${s} ${u}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:k,onMouseLeave:j}),o&&S&&S.visible&&z.jsxs(V.Paper,{elevation:3,sx:{position:"absolute",left:S.x+10,top:S.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:S.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[z.jsx(V.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),z.jsx(V.Stack,{spacing:.5,sx:{mt:1},children:S.values.map($=>z.jsxs(V.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[z.jsxs(V.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[z.jsx(V.Box,{sx:{width:8,height:8,backgroundColor:$.color,borderRadius:"50%"}}),z.jsxs(V.Typography,{variant:"caption",children:[$.label,":"]})]}),z.jsx(V.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d($.value):$.value})]},$.label))})]})]}),a&&z.jsx(V.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map($=>z.jsxs(V.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[z.jsx(V.Box,{sx:{width:16,height:16,backgroundColor:$.color,opacity:$.fillOpacity??.7,border:`2px solid ${$.color}`,borderRadius:"2px",...$.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
31
+ ${Ut.noLstHatch.lines} 3px,
32
+ ${Ut.noLstHatch.lines} 4px
33
+ )`,borderRadius:"50%"}}}})}),W.jsx(tt.TableCell,{children:W.jsxs(tt.Stack,{direction:"row",alignItems:"center",gap:.5,children:[W.jsx("span",{children:a.label}),a.tooltip&&W.jsx(tt.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:W.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?W.jsxs(W.Fragment,{children:[W.jsx(tt.TableCell,{align:"right",children:a.value}),W.jsxs(tt.TableCell,{align:"right",children:[a.percentage,"%"]})]}):W.jsxs(W.Fragment,{children:[W.jsx(tt.TableCell,{align:"right",children:a.value}),W.jsx(tt.TableCell,{align:"right",children:a.max??"-"}),W.jsx(tt.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),f_={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},PL=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,l=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,u=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:f_[f.label]};if(l){const d=l.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:f_[h.label]})}}}return[...u,...c]},EL=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},CL=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},PE=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:l,enableBrush:u=!1,showLegend:c=!0,showTooltip:f=!0,showGrid:h=!0,enableAnimation:p=!0,animationDuration:y=5439,disableTimeline:m=!1,formatDate:d,formatValue:v,onAnimationStateChange:w,onTimelineReady:b,onAnimationProgress:_})=>{CL(e);const[g,x]=O.useState(null),[S,A]=O.useState(!0),T=O.useRef("historical"),C=O.useRef(void 0),P=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),E=O.useMemo(()=>{var H;let B;return t!==void 0&&e.timeSeries[t]?(B=e.timeSeries[t].timestamp,C.current=B):T.current==="point-in-time"&&P==="historical"&&C.current!==void 0?B=C.current:B=(H=e.timeSeries[e.timeSeries.length-1])==null?void 0:H.timestamp,T.current=P,B},[t,e.timeSeries,P]),M=e.timeSeries[0].timestamp,$=e.timeSeries[e.timeSeries.length-1].timestamp,[j,k]=O.useState([M,$]),I=s??j,q=O.useCallback(B=>{l?l(B):k(B)},[l]);O.useEffect(()=>{x(null)},[P]);const F=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),N=O.useMemo(()=>EL(e),[e]),D=O.useMemo(()=>PL(e,P),[e,P]),L=O.useMemo(()=>{const B=e.timeSeries[e.timeSeries.length-1];return B?Object.values(B.values).reduce((H,Z)=>H+Z,0):0},[e.timeSeries]),G=O.useMemo(()=>Vv({repositoryCount:L}),[L]),Y=O.useMemo(()=>Zv({repositoryCount:L}),[L]),z=O.useMemo(()=>{const B=o-F.top-F.bottom;return Math.round(B*.9)},[o,F]),V=O.useMemo(()=>e.events?e.events.map(B=>({timestamp:B.timestamp,label:B.eventName,color:typeof B.color=="string"?B.color:"#2F42FF"})):[],[e.events]),Q=O.useCallback(B=>{if(B){const H=e.categories.find(Z=>Z.label===B.label);x((H==null?void 0:H.id)??null)}else x(null)},[e.categories]),K=O.useCallback(B=>{A(!B),w&&w(B)},[w]);return W.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&W.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&W.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&W.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),W.jsx(tt.Box,{sx:{position:"relative",width:"100%"},children:W.jsx(hE,{data:N.data,categories:N.categories,mode:P==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:I,onTimeRangeChange:q,enableBrush:u,showGrid:h,showAxes:!0,margin:F,markers:V,formatDate:d,formatValue:v,animationDuration:y,onAnimationStateChange:K,onTimelineReady:b,onAnimationProgress:_,onHoveredDataChange:Q,hoveredCategory:g,arcAngle:G,parliamentRadius:z,seatSize:Y,parliamentTimestamp:E,timelineEvents:e.events??[],showTimeline:P==="historical"&&!m})}),W.jsx(TL,{categories:D,activeCategory:g,onCategoryHover:x,mode:P,visible:S})]})},ML=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:l=!0,showYAxis:u=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:v})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const w=te(e.current),b=n-a.left-a.right,_=i-a.top-a.bottom;w.selectAll("*").remove();const g=w.append("g").attr("transform",`translate(${a.left},${a.top})`),x=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;w.append("defs").append("clipPath").attr("id",x).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",_);const S=g.append("g").attr("clip-path",`url(#${x})`),A=r.map(D=>D.dataKey),T=Eu().keys(A),C=T(t),P=t.map(D=>D.timestamp),E=o?o[0]:Math.min(...P),M=o?o[1]:Math.max(...P),$=wu().domain([new Date(E),new Date(M)]).range([0,b]),j=t.filter(D=>D.timestamp>=E&&D.timestamp<=M),k=T(j),I=k.length>0?Math.max(...k[k.length-1].map(D=>D[1]??0)):0,q=na().domain([0,I*1.1]).range([_,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Ts($).ticks(6).tickSize(_).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ps(q).ticks(5).tickSize(-b).tickFormat(()=>"")));const F=Fi().x(D=>$(new Date(D.data.timestamp))).y0(D=>q(D[0])).y1(D=>q(D[1])).curve(xI.alpha(.5)),N=S.append("g").attr("class","areas");if(C.forEach((D,L)=>{const G=r[L];if(!G)return;const Y=N.append("path").datum(D).attr("class",`area area-${G.dataKey}`).attr("fill",G.color).attr("fill-opacity",G.fillOpacity??.7).attr("stroke",G.color).attr("stroke-width",G.strokeWidth??1.5).attr("d",F);G.strokeDasharray&&Y.attr("stroke-dasharray",G.strokeDasharray)}),m.length>0){const D=S.append("g").attr("class","markers"),L=d==="hover"?0:.6,G=m.filter(Y=>Y.timestamp>=E&&Y.timestamp<=M).map(Y=>({...Y,x:$(new Date(Y.timestamp))}));if(G.forEach(Y=>{const z=D.append("line").attr("class","marker-line").attr("data-timestamp",Y.timestamp).attr("x1",Y.x).attr("x2",Y.x).attr("y1",0).attr("y2",_).attr("stroke",Y.color??"#131E7A").attr("stroke-width",2).attr("opacity",L);Y.strokeDasharray&&z.attr("stroke-dasharray",Y.strokeDasharray),Y.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",Y.timestamp).attr("x",Y.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",Y.color??"#131E7A").attr("opacity",L).text(Y.label)}),d==="hover"&&G.length>0){const Y=w.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),z=Y.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),V=Y.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let Q=null;const K=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",_).attr("fill","none").attr("pointer-events","all"),B=H=>{let Z=null,R=1/0;if(G.forEach(Ht=>{const St=Math.abs(H-Ht.x);St<R&&(R=St,Z=Ht)}),!Z||R>50)return Q!==null&&(Q=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),Y.style("display","none"),v==null||v(!1)),!1;const U=Z;if(Q===null&&(v==null||v(!0)),Q===U.timestamp)return!0;Q=U.timestamp,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),D.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(U.timestamp)}).attr("opacity",.6),D.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(U.timestamp)}).attr("opacity",1);const nt=new Date(U.timestamp),ft=p?p(U.timestamp):nt.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),st=U.label?`${U.label}: ${ft}`:ft;V.text(st);const ht=V.node().getBBox(),Et=8,at=ht.width+Et*2,dt=ht.height+Et*2;z.attr("width",at).attr("height",dt);let xt=U.x-at/2;const $t=10;return xt<0?xt=0:xt+at>b&&(xt=b-at),Y.attr("transform",`translate(${a.left+xt},${a.top+$t})`),V.attr("x",at/2).attr("y",dt/2+4),Y.style("display","block"),!0};K.on("mousemove",function(H){const[Z]=Es(H,this);B(Z)&&H.stopPropagation()}),K.on("mouseleave",function(){Q=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),Y.style("display","none"),v==null||v(!1)})}}if(l){const D=Ts($).ticks(6);p&&D.tickFormat(L=>p(+L)),g.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${_})`).call(D).selectAll("text").attr("font-size",11)}if(u){const D=Ps(q).ticks(5);y&&D.tickFormat(L=>y(+L)),g.append("g").attr("class","axis axis-y").call(D).selectAll("text").attr("font-size",11)}if(c&&h){const D=Ac().extent([[0,0],[b,_]]).on("end",G=>{if(!G.selection)return;const[Y,z]=G.selection,V=[+$.invert(Y),+$.invert(z)];h(V),f&&w.select(".brush").call(D.move,null)}),L=S.append("g").attr("class","brush").call(D);L.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),L.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{w.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d,v])},kL=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:l=400,margin:u={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:v,enableBrush:w=!1,zoomToSelection:b=!1,markers:_=[],markerVisibilityMode:g="hover"})=>{const x=O.useRef(null),[S,A]=O.useState(null),[T,C]=O.useState(!1);O.useEffect(()=>{T&&A(null)},[T]),ML({containerRef:x,data:e,categories:t,width:s,height:l,margin:u,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:w,zoomToSelection:b,onTimeRangeChange:v,formatDate:m,formatValue:d,markers:_,markerVisibilityMode:g,onMarkerHoverChange:C});const M=j=>{if(!o||!x.current||T)return;const k=x.current.getBoundingClientRect(),I=j.clientX-k.left-u.left,q=j.clientY-k.top,F=s-u.left-u.right;if(I<0||I>F){A(null);return}const N=e.map(H=>H.timestamp),D=c?c[0]:Math.min(...N),L=c?c[1]:Math.max(...N),G=I/F*(L-D)+D,z=((H,Z)=>{let R=0,ot=H.length;for(;R<ot;){const U=R+ot>>>1;H[U]<Z?R=U+1:ot=U}return R})(N,G),V=e[z-1],Q=e[z];let K=Q;if(V&&Q?K=G-V.timestamp>Q.timestamp-G?Q:V:V&&(K=V),!K){A(null);return}const B=t.map(H=>({label:H.label,value:K[H.dataKey]??0,color:H.color}));A({visible:!0,x:j.clientX-k.left,y:q,timestamp:K.timestamp,values:B})},$=()=>{o&&A(null)};return W.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&W.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&W.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&W.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),W.jsxs(tt.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[W.jsx("svg",{ref:x,viewBox:`0 0 ${s} ${l}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:M,onMouseLeave:$}),o&&S&&S.visible&&W.jsxs(tt.Paper,{elevation:3,sx:{position:"absolute",left:S.x+10,top:S.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:S.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[W.jsx(tt.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),W.jsx(tt.Stack,{spacing:.5,sx:{mt:1},children:S.values.map(j=>W.jsxs(tt.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[W.jsxs(tt.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[W.jsx(tt.Box,{sx:{width:8,height:8,backgroundColor:j.color,borderRadius:"50%"}}),W.jsxs(tt.Typography,{variant:"caption",children:[j.label,":"]})]}),W.jsx(tt.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d(j.value):j.value})]},j.label))})]})]}),a&&W.jsx(tt.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map(j=>W.jsxs(tt.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[W.jsx(tt.Box,{sx:{width:16,height:16,backgroundColor:j.color,opacity:j.fillOpacity??.7,border:`2px solid ${j.color}`,borderRadius:"2px",...j.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
34
34
  45deg,
35
35
  transparent,
36
36
  transparent 4px,
37
- ${$.color} 4px,
38
- ${$.color} 8px
39
- )`}}}),z.jsx(V.Typography,{variant:"body2",children:$.label})]},$.dataKey))})]})},QN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],k0={}.hasOwnProperty;function tL(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&k0.call(i,e)){const u=String(i[e]);o=k0.call(s,u)?s[u]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const eL=/["&'<>`]/g,rL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,iL=/[|\\{}()[\]^$+*?.]/g,$0=new WeakMap;function aL(e,t){if(e=e.replace(t.subset?oL(t.subset):eL,n),t.subset||t.escapeOnly)return e;return e.replace(rL,r).replace(nL,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function oL(e){let t=$0.get(e);return t||(t=sL(e),$0.set(e,t)),t}function sL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(iL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const uL=/[\dA-Fa-f]/;function lL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!uL.test(String.fromCharCode(t))?n:n+";"}const cL=/\d/;function fL(e,t,r){const n="&#"+String(e);return r&&t&&!cL.test(String.fromCharCode(t))?n:n+";"}const hL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],uf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},pL=["cent","copy","divide","gt","lt","not","para","times"],KT={}.hasOwnProperty,ny={};let fu;for(fu in uf)KT.call(uf,fu)&&(ny[uf[fu]]=fu);const dL=/[^\dA-Za-z]/;function mL(e,t,r,n){const i=String.fromCharCode(e);if(KT.call(ny,i)){const a=ny[i],o="&"+a;return r&&hL.includes(a)&&!pL.includes(a)&&(!n||t&&t!==61&&dL.test(String.fromCharCode(t)))?o:o+";"}return""}function yL(e,t,r){let n=lL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=mL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=fL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function ha(e,t){return aL(e,Object.assign({format:yL},t))}const vL=/^>|^->|<!--|-->|--!>|<!-$/g,gL=[">"],bL=["<",">"];function _L(e,t,r,n){return n.settings.bogusComments?"<?"+ha(e.value,Object.assign({},n.settings.characterReferences,{subset:gL}))+">":"<!--"+e.value.replace(vL,i)+"-->";function i(a){return ha(a,Object.assign({},n.settings.characterReferences,{subset:bL}))}}function xL(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function j0(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const wL=/[ \t\n\f\r]/g;function gg(e){return typeof e=="object"?e.type==="text"?D0(e.value):!1:D0(e)}function D0(e){return e.replace(wL,"")===""}const xe=XT(1),YT=XT(-1),SL=[];function XT(e){return t;function t(r,n,i){const a=r?r.children:SL;let o=(n||0)+e,s=a[o];if(!i)for(;s&&gg(s);)o+=e,s=a[o];return s}}const OL={}.hasOwnProperty;function VT(e){return t;function t(r,n,i){return OL.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const bg=VT({body:PL,caption:lf,colgroup:lf,dd:ML,dt:CL,head:lf,html:AL,li:EL,optgroup:kL,option:$L,p:TL,rp:R0,rt:R0,tbody:DL,td:I0,tfoot:RL,th:I0,thead:jL,tr:IL});function lf(e,t,r){const n=xe(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&gg(n.value.charAt(0)))}function AL(e,t,r){const n=xe(r,t);return!n||n.type!=="comment"}function PL(e,t,r){const n=xe(r,t);return!n||n.type!=="comment"}function TL(e,t,r){const n=xe(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function EL(e,t,r){const n=xe(r,t);return!n||n.type==="element"&&n.tagName==="li"}function CL(e,t,r){const n=xe(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function ML(e,t,r){const n=xe(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function R0(e,t,r){const n=xe(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function kL(e,t,r){const n=xe(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function $L(e,t,r){const n=xe(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function jL(e,t,r){const n=xe(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function DL(e,t,r){const n=xe(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function RL(e,t,r){return!xe(r,t)}function IL(e,t,r){const n=xe(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function I0(e,t,r){const n=xe(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const NL=VT({body:qL,colgroup:FL,head:BL,html:LL,tbody:zL});function LL(e){const t=xe(e,-1);return!t||t.type!=="comment"}function BL(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function qL(e){const t=xe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&gg(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function FL(e,t,r){const n=YT(r,t),i=xe(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&bg(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function zL(e,t,r){const n=YT(r,t),i=xe(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&bg(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const hu={name:[[`
37
+ ${j.color} 4px,
38
+ ${j.color} 8px
39
+ )`}}}),W.jsx(tt.Typography,{variant:"body2",children:j.label})]},j.dataKey))})]})},$L=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],h_={}.hasOwnProperty;function jL(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&h_.call(i,e)){const l=String(i[e]);o=h_.call(s,l)?s[l]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const RL=/["&'<>`]/g,DL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,NL=/[|\\{}()[\]^$+*?.]/g,p_=new WeakMap;function LL(e,t){if(e=e.replace(t.subset?BL(t.subset):RL,n),t.subset||t.escapeOnly)return e;return e.replace(DL,r).replace(IL,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function BL(e){let t=p_.get(e);return t||(t=qL(e),p_.set(e,t)),t}function qL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(NL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const FL=/[\dA-Fa-f]/;function zL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!FL.test(String.fromCharCode(t))?n:n+";"}const UL=/\d/;function WL(e,t,r){const n="&#"+String(e);return r&&t&&!UL.test(String.fromCharCode(t))?n:n+";"}const HL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Wf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},GL=["cent","copy","divide","gt","lt","not","para","times"],EE={}.hasOwnProperty,By={};let Fl;for(Fl in Wf)EE.call(Wf,Fl)&&(By[Wf[Fl]]=Fl);const KL=/[^\dA-Za-z]/;function YL(e,t,r,n){const i=String.fromCharCode(e);if(EE.call(By,i)){const a=By[i],o="&"+a;return r&&HL.includes(a)&&!GL.includes(a)&&(!n||t&&t!==61&&KL.test(String.fromCharCode(t)))?o:o+";"}return""}function XL(e,t,r){let n=zL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=YL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=WL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Fa(e,t){return LL(e,Object.assign({format:XL},t))}const VL=/^>|^->|<!--|-->|--!>|<!-$/g,ZL=[">"],JL=["<",">"];function QL(e,t,r,n){return n.settings.bogusComments?"<?"+Fa(e.value,Object.assign({},n.settings.characterReferences,{subset:ZL}))+">":"<!--"+e.value.replace(VL,i)+"-->";function i(a){return Fa(a,Object.assign({},n.settings.characterReferences,{subset:JL}))}}function tB(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function d_(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const eB=/[ \t\n\f\r]/g;function t0(e){return typeof e=="object"?e.type==="text"?m_(e.value):!1:m_(e)}function m_(e){return e.replace(eB,"")===""}const Ae=ME(1),CE=ME(-1),rB=[];function ME(e){return t;function t(r,n,i){const a=r?r.children:rB;let o=(n||0)+e,s=a[o];if(!i)for(;s&&t0(s);)o+=e,s=a[o];return s}}const nB={}.hasOwnProperty;function kE(e){return t;function t(r,n,i){return nB.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const e0=kE({body:aB,caption:Hf,colgroup:Hf,dd:uB,dt:lB,head:Hf,html:iB,li:sB,optgroup:cB,option:fB,p:oB,rp:y_,rt:y_,tbody:pB,td:g_,tfoot:dB,th:g_,thead:hB,tr:mB});function Hf(e,t,r){const n=Ae(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&t0(n.value.charAt(0)))}function iB(e,t,r){const n=Ae(r,t);return!n||n.type!=="comment"}function aB(e,t,r){const n=Ae(r,t);return!n||n.type!=="comment"}function oB(e,t,r){const n=Ae(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function sB(e,t,r){const n=Ae(r,t);return!n||n.type==="element"&&n.tagName==="li"}function lB(e,t,r){const n=Ae(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function uB(e,t,r){const n=Ae(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function y_(e,t,r){const n=Ae(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function cB(e,t,r){const n=Ae(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function fB(e,t,r){const n=Ae(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function hB(e,t,r){const n=Ae(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function pB(e,t,r){const n=Ae(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function dB(e,t,r){return!Ae(r,t)}function mB(e,t,r){const n=Ae(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function g_(e,t,r){const n=Ae(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const yB=kE({body:bB,colgroup:_B,head:vB,html:gB,tbody:xB});function gB(e){const t=Ae(e,-1);return!t||t.type!=="comment"}function vB(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function bB(e){const t=Ae(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&t0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function _B(e,t,r){const n=CE(r,t),i=Ae(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&e0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function xB(e,t,r){const n=CE(r,t),i=Ae(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&e0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const zl={name:[[`
40
40
  \f\r &/=>`.split(""),`
41
41
  \f\r "&'/=>\``.split("")],[`\0
42
42
  \f\r "&'/<=>`.split(""),`\0
@@ -44,25 +44,25 @@
44
44
  \f\r &>`.split(""),`\0
45
45
  \f\r "&'<=>\``.split("")],[`\0
46
46
  \f\r "&'<=>\``.split(""),`\0
47
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function UL(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let u;i.space==="html"&&e.tagName==="svg"&&(n.schema=vg);const l=WL(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(l||!a||!NL(e,t,r))&&(s.push("<",e.tagName,l?" "+l:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(u=l.charAt(l.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!o&&(!a||!bg(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function WL(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=GL(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function GL(e,t,r){const n=qT(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const u=ha(n.attribute,Object.assign({},e.settings.characterReferences,{subset:hu.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?BN:FN)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(s=ha(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:hu.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&j0(r,o)>j0(r,e.alternative)&&(o=e.alternative),s=o+ha(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?hu.single:hu.double)[i][a],attribute:!0}))+o),u+(s&&"="+s))}const HL=["<","&"];function ZT(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:ha(e.value,Object.assign({},n.settings.characterReferences,{subset:HL}))}function KL(e,t,r,n){return n.settings.allowDangerousHtml?e.value:ZT(e,t,r,n)}function YL(e,t,r,n){return n.all(e)}const XL=tL("type",{invalid:VL,unknown:ZL,handlers:{comment:_L,doctype:xL,element:UL,raw:KL,root:YL,text:ZT}});function VL(e){throw new Error("Expected node, not `"+e+"`")}function ZL(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const JL={},QL={},tB=[];function eB(e,t){const r=JL,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:rB,all:nB,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||QN,characterReferences:r.characterReferences||QL,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?vg:FT,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function rB(e,t,r){return XL(e,t,r,this)}function nB(e){const t=[],r=e&&e.children||tB;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const Fe={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},pa={COMPLETED:Qe.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},Fo="N/A",zo="No LST",Uo="Data Missing";function iB(e,t,r,n="left-to-right",i=900,a){Qt.prototype.transition=Av;const o=t*Math.PI/180,s=-o/2-Math.PI/2,u=o/2-Math.PI/2;let l=e.querySelector("defs");l||(l=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(l));const c="arc-sweep-clip";let f=l.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),l.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=_=>{const b=r*1.5,x=Math.cos(_)*b,v=Math.sin(_)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,A=u-_>Math.PI?1:0;return`M 0,0 L ${x},${v} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(s)),Qt(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=s+(u-s)*_;h.setAttribute("d",d(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=_=>{const b=r*1.5,x=Math.cos(_)*b,v=Math.sin(_)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,A=u-_>Math.PI?1:0;return`M 0,0 L ${x},${v} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(u)),Qt(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=u-(u-s)*_;h.setAttribute("d",d(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var pu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cf,N0;function JT(){if(N0)return cf;N0=1;var e=typeof pu=="object"&&pu&&pu.Object===Object&&pu;return cf=e,cf}var ff,L0;function Fr(){if(L0)return ff;L0=1;var e=JT(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ff=r,ff}var hf,B0;function aB(){if(B0)return hf;B0=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return hf=t,hf}var pf,q0;function oB(){if(q0)return pf;q0=1;var e=aB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return pf=r,pf}var df,F0;function Zn(){if(F0)return df;F0=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return df=e,df}var mf,z0;function Vs(){if(z0)return mf;z0=1;var e=Fr(),t=e.Symbol;return mf=t,mf}var yf,U0;function sB(){if(U0)return yf;U0=1;var e=Vs(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),u=o[i];try{o[i]=void 0;var l=!0}catch{}var c=n.call(o);return l&&(s?o[i]=u:delete o[i]),c}return yf=a,yf}var vf,W0;function uB(){if(W0)return vf;W0=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return vf=r,vf}var gf,G0;function Tn(){if(G0)return gf;G0=1;var e=Vs(),t=sB(),r=uB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return gf=o,gf}var bf,H0;function En(){if(H0)return bf;H0=1;function e(t){return t!=null&&typeof t=="object"}return bf=e,bf}var _f,K0;function Qa(){if(K0)return _f;K0=1;var e=Tn(),t=En(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return _f=n,_f}var xf,Y0;function _g(){if(Y0)return xf;Y0=1;var e=oB(),t=Zn(),r=Qa(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=t(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=e(l);var f=a.test(l);return f||o.test(l)?s(l.slice(2),f?2:8):i.test(l)?n:+l}return xf=u,xf}var wf,X0;function QT(){if(X0)return wf;X0=1;var e=_g(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return wf=n,wf}var Sf,V0;function xg(){if(V0)return Sf;V0=1;var e=QT();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Sf=t,Sf}var Of,Z0;function oc(){if(Z0)return Of;Z0=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Of=e,Of}var Af,J0;function Ue(){if(J0)return Af;J0=1;var e=Array.isArray;return Af=e,Af}var Pf,Q0;function lB(){if(Q0)return Pf;Q0=1;var e=Vs(),t=oc(),r=Ue(),n=Qa(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return Pf=o,Pf}var Tf,t_;function wg(){if(t_)return Tf;t_=1;var e=lB();function t(r){return r==null?"":e(r)}return Tf=t,Tf}var Ef,e_;function cB(){if(e_)return Ef;e_=1;var e=Fr(),t=xg(),r=_g(),n=wg(),i=e.isFinite,a=Math.min;function o(s){var u=Math[s];return function(l,c){if(l=r(l),c=c==null?0:a(t(c),292),c&&i(l)){var f=(n(l)+"e").split("e"),h=u(f[0]+"e"+(+f[1]+c));return f=(n(h)+"e").split("e"),+(f[0]+"e"+(+f[1]-c))}return u(l)}}return Ef=o,Ef}var Cf,r_;function fB(){if(r_)return Cf;r_=1;var e=cB(),t=e("round");return Cf=t,Cf}var hB=fB();const pB=qt(hB);var Mf,n_;function tE(){if(n_)return Mf;n_=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Mf=e,Mf}var kf,i_;function dB(){if(i_)return kf;i_=1;var e=Tn(),t=En(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return kf=n,kf}var $f,a_;function Sg(){if(a_)return $f;a_=1;var e=dB(),t=En(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return $f=a,$f}var jf,o_;function mB(){if(o_)return jf;o_=1;var e=Vs(),t=Sg(),r=Ue(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return jf=i,jf}var Df,s_;function eE(){if(s_)return Df;s_=1;var e=tE(),t=mB();function r(n,i,a,o,s){var u=-1,l=n.length;for(a||(a=t),s||(s=[]);++u<l;){var c=n[u];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return Df=r,Df}var Rf,u_;function Og(){if(u_)return Rf;u_=1;var e=Ue(),t=Qa(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Rf=i,Rf}var If,l_;function Ag(){if(l_)return If;l_=1;var e=Tn(),t=Zn(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var u=e(s);return u==n||u==i||u==r||u==a}return If=o,If}var Nf,c_;function yB(){if(c_)return Nf;c_=1;var e=Fr(),t=e["__core-js_shared__"];return Nf=t,Nf}var Lf,f_;function vB(){if(f_)return Lf;f_=1;var e=yB(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Lf=r,Lf}var Bf,h_;function rE(){if(h_)return Bf;h_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Bf=r,Bf}var qf,p_;function gB(){if(p_)return qf;p_=1;var e=Ag(),t=vB(),r=Zn(),n=rE(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,l=s.hasOwnProperty,c=RegExp("^"+u.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?c:a;return p.test(n(h))}return qf=f,qf}var Ff,d_;function bB(){if(d_)return Ff;d_=1;function e(t,r){return t==null?void 0:t[r]}return Ff=e,Ff}var zf,m_;function Fi(){if(m_)return zf;m_=1;var e=gB(),t=bB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return zf=r,zf}var Uf,y_;function sc(){if(y_)return Uf;y_=1;var e=Fi(),t=e(Object,"create");return Uf=t,Uf}var Wf,v_;function _B(){if(v_)return Wf;v_=1;var e=sc();function t(){this.__data__=e?e(null):{},this.size=0}return Wf=t,Wf}var Gf,g_;function xB(){if(g_)return Gf;g_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Gf=e,Gf}var Hf,b_;function wB(){if(b_)return Hf;b_=1;var e=sc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return Hf=i,Hf}var Kf,__;function SB(){if(__)return Kf;__=1;var e=sc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Kf=n,Kf}var Yf,x_;function OB(){if(x_)return Yf;x_=1;var e=sc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Yf=r,Yf}var Xf,w_;function AB(){if(w_)return Xf;w_=1;var e=_B(),t=xB(),r=wB(),n=SB(),i=OB();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Xf=a,Xf}var Vf,S_;function PB(){if(S_)return Vf;S_=1;function e(){this.__data__=[],this.size=0}return Vf=e,Vf}var Zf,O_;function Pg(){if(O_)return Zf;O_=1;function e(t,r){return t===r||t!==t&&r!==r}return Zf=e,Zf}var Jf,A_;function uc(){if(A_)return Jf;A_=1;var e=Pg();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Jf=t,Jf}var Qf,P_;function TB(){if(P_)return Qf;P_=1;var e=uc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Qf=n,Qf}var th,T_;function EB(){if(T_)return th;T_=1;var e=uc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return th=t,th}var eh,E_;function CB(){if(E_)return eh;E_=1;var e=uc();function t(r){return e(this.__data__,r)>-1}return eh=t,eh}var rh,C_;function MB(){if(C_)return rh;C_=1;var e=uc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return rh=t,rh}var nh,M_;function lc(){if(M_)return nh;M_=1;var e=PB(),t=TB(),r=EB(),n=CB(),i=MB();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,nh=a,nh}var ih,k_;function Tg(){if(k_)return ih;k_=1;var e=Fi(),t=Fr(),r=e(t,"Map");return ih=r,ih}var ah,$_;function kB(){if($_)return ah;$_=1;var e=AB(),t=lc(),r=Tg();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return ah=n,ah}var oh,j_;function $B(){if(j_)return oh;j_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return oh=e,oh}var sh,D_;function cc(){if(D_)return sh;D_=1;var e=$B();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return sh=t,sh}var uh,R_;function jB(){if(R_)return uh;R_=1;var e=cc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return uh=t,uh}var lh,I_;function DB(){if(I_)return lh;I_=1;var e=cc();function t(r){return e(this,r).get(r)}return lh=t,lh}var ch,N_;function RB(){if(N_)return ch;N_=1;var e=cc();function t(r){return e(this,r).has(r)}return ch=t,ch}var fh,L_;function IB(){if(L_)return fh;L_=1;var e=cc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return fh=t,fh}var hh,B_;function Eg(){if(B_)return hh;B_=1;var e=kB(),t=jB(),r=DB(),n=RB(),i=IB();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,hh=a,hh}var ph,q_;function nE(){if(q_)return ph;q_=1;var e=Eg(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],u=a.cache;if(u.has(s))return u.get(s);var l=n.apply(this,o);return a.cache=u.set(s,l)||u,l};return a.cache=new(r.Cache||e),a}return r.Cache=e,ph=r,ph}var dh,F_;function NB(){if(F_)return dh;F_=1;var e=nE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return dh=r,dh}var mh,z_;function LB(){if(z_)return mh;z_=1;var e=NB(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,u,l){a.push(u?l.replace(r,"$1"):s||o)}),a});return mh=n,mh}var yh,U_;function iE(){if(U_)return yh;U_=1;var e=Ue(),t=Og(),r=LB(),n=wg();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return yh=i,yh}var vh,W_;function fc(){if(W_)return vh;W_=1;var e=Qa();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return vh=t,vh}var gh,G_;function Cg(){if(G_)return gh;G_=1;var e=iE(),t=fc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return gh=r,gh}var bh,H_;function BB(){if(H_)return bh;H_=1;var e=lc();function t(){this.__data__=new e,this.size=0}return bh=t,bh}var _h,K_;function qB(){if(K_)return _h;K_=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return _h=e,_h}var xh,Y_;function FB(){if(Y_)return xh;Y_=1;function e(t){return this.__data__.get(t)}return xh=e,xh}var wh,X_;function zB(){if(X_)return wh;X_=1;function e(t){return this.__data__.has(t)}return wh=e,wh}var Sh,V_;function UB(){if(V_)return Sh;V_=1;var e=lc(),t=Tg(),r=Eg(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var u=s.__data__;if(!t||u.length<n-1)return u.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(u)}return s.set(a,o),this.size=s.size,this}return Sh=i,Sh}var Oh,Z_;function aE(){if(Z_)return Oh;Z_=1;var e=lc(),t=BB(),r=qB(),n=FB(),i=zB(),a=UB();function o(s){var u=this.__data__=new e(s);this.size=u.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Oh=o,Oh}var Ah,J_;function WB(){if(J_)return Ah;J_=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ah=t,Ah}var Ph,Q_;function GB(){if(Q_)return Ph;Q_=1;function e(t){return this.__data__.has(t)}return Ph=e,Ph}var Th,tx;function oE(){if(tx)return Th;tx=1;var e=Eg(),t=WB(),r=GB();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Th=n,Th}var Eh,ex;function sE(){if(ex)return Eh;ex=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Eh=e,Eh}var Ch,rx;function uE(){if(rx)return Ch;rx=1;function e(t,r){return t.has(r)}return Ch=e,Ch}var Mh,nx;function lE(){if(nx)return Mh;nx=1;var e=oE(),t=sE(),r=uE(),n=1,i=2;function a(o,s,u,l,c,f){var h=u&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var g=-1,_=!0,b=u&i?new e:void 0;for(f.set(o,s),f.set(s,o);++g<p;){var x=o[g],v=s[g];if(l)var w=h?l(v,x,g,s,o,f):l(x,v,g,o,s,f);if(w!==void 0){if(w)continue;_=!1;break}if(b){if(!t(s,function(S,A){if(!r(b,A)&&(x===S||c(x,S,u,l,f)))return b.push(A)})){_=!1;break}}else if(!(x===v||c(x,v,u,l,f))){_=!1;break}}return f.delete(o),f.delete(s),_}return Mh=a,Mh}var kh,ix;function HB(){if(ix)return kh;ix=1;var e=Fr(),t=e.Uint8Array;return kh=t,kh}var $h,ax;function KB(){if(ax)return $h;ax=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return $h=e,$h}var jh,ox;function Mg(){if(ox)return jh;ox=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return jh=e,jh}var Dh,sx;function YB(){if(sx)return Dh;sx=1;var e=Vs(),t=HB(),r=Pg(),n=lE(),i=KB(),a=Mg(),o=1,s=2,u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",g="[object ArrayBuffer]",_="[object DataView]",b=e?e.prototype:void 0,x=b?b.valueOf:void 0;function v(w,S,A,P,C,T,E){switch(A){case _:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case g:return!(w.byteLength!=S.byteLength||!T(new t(w),new t(S)));case u:case l:case h:return r(+w,+S);case c:return w.name==S.name&&w.message==S.message;case p:case m:return w==S+"";case f:var k=i;case y:var j=P&o;if(k||(k=a),w.size!=S.size&&!j)return!1;var $=E.get(w);if($)return $==S;P|=s,E.set(w,S);var M=n(k(w),k(S),P,C,T,E);return E.delete(w),M;case d:if(x)return x.call(w)==x.call(S)}return!1}return Dh=v,Dh}var Rh,ux;function XB(){if(ux)return Rh;ux=1;var e=tE(),t=Ue();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Rh=r,Rh}var Ih,lx;function VB(){if(lx)return Ih;lx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return Ih=e,Ih}var Nh,cx;function ZB(){if(cx)return Nh;cx=1;function e(){return[]}return Nh=e,Nh}var Lh,fx;function JB(){if(fx)return Lh;fx=1;var e=VB(),t=ZB(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Lh=a,Lh}var Bh,hx;function QB(){if(hx)return Bh;hx=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Bh=e,Bh}var $o={exports:{}},qh,px;function tq(){if(px)return qh;px=1;function e(){return!1}return qh=e,qh}$o.exports;var dx;function cE(){return dx||(dx=1,(function(e,t){var r=Fr(),n=tq(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l})($o,$o.exports)),$o.exports}var Fh,mx;function kg(){if(mx)return Fh;mx=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Fh=r,Fh}var zh,yx;function $g(){if(yx)return zh;yx=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return zh=t,zh}var Uh,vx;function eq(){if(vx)return Uh;vx=1;var e=Tn(),t=$g(),r=En(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",g="[object DataView]",_="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",v="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",C="[object Uint32Array]",T={};T[_]=T[b]=T[x]=T[v]=T[w]=T[S]=T[A]=T[P]=T[C]=!0,T[n]=T[i]=T[d]=T[a]=T[g]=T[o]=T[s]=T[u]=T[l]=T[c]=T[f]=T[h]=T[p]=T[y]=T[m]=!1;function E(k){return r(k)&&t(k.length)&&!!T[e(k)]}return Uh=E,Uh}var Wh,gx;function fE(){if(gx)return Wh;gx=1;function e(t){return function(r){return t(r)}}return Wh=e,Wh}var jo={exports:{}};jo.exports;var bx;function rq(){return bx||(bx=1,(function(e,t){var r=JT(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(jo,jo.exports)),jo.exports}var Gh,_x;function hE(){if(_x)return Gh;_x=1;var e=eq(),t=fE(),r=rq(),n=r&&r.isTypedArray,i=n?t(n):e;return Gh=i,Gh}var Hh,xx;function nq(){if(xx)return Hh;xx=1;var e=QB(),t=Sg(),r=Ue(),n=cE(),i=kg(),a=hE(),o=Object.prototype,s=o.hasOwnProperty;function u(l,c){var f=r(l),h=!f&&t(l),p=!f&&!h&&n(l),y=!f&&!h&&!p&&a(l),m=f||h||p||y,d=m?e(l.length,String):[],g=d.length;for(var _ in l)(c||s.call(l,_))&&!(m&&(_=="length"||p&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,g)))&&d.push(_);return d}return Hh=u,Hh}var Kh,wx;function iq(){if(wx)return Kh;wx=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Kh=t,Kh}var Yh,Sx;function pE(){if(Sx)return Yh;Sx=1;function e(t,r){return function(n){return t(r(n))}}return Yh=e,Yh}var Xh,Ox;function aq(){if(Ox)return Xh;Ox=1;var e=pE(),t=e(Object.keys,Object);return Xh=t,Xh}var Vh,Ax;function oq(){if(Ax)return Vh;Ax=1;var e=iq(),t=aq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Vh=i,Vh}var Zh,Px;function Zs(){if(Px)return Zh;Px=1;var e=Ag(),t=$g();function r(n){return n!=null&&t(n.length)&&!e(n)}return Zh=r,Zh}var Jh,Tx;function Js(){if(Tx)return Jh;Tx=1;var e=nq(),t=oq(),r=Zs();function n(i){return r(i)?e(i):t(i)}return Jh=n,Jh}var Qh,Ex;function sq(){if(Ex)return Qh;Ex=1;var e=XB(),t=JB(),r=Js();function n(i){return e(i,r,t)}return Qh=n,Qh}var tp,Cx;function uq(){if(Cx)return tp;Cx=1;var e=sq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,u,l,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var g=h[d];if(!(f?g in o:n.call(o,g)))return!1}var _=c.get(a),b=c.get(o);if(_&&b)return _==o&&b==a;var x=!0;c.set(a,o),c.set(o,a);for(var v=f;++d<p;){g=h[d];var w=a[g],S=o[g];if(u)var A=f?u(S,w,g,o,a,c):u(w,S,g,a,o,c);if(!(A===void 0?w===S||l(w,S,s,u,c):A)){x=!1;break}v||(v=g=="constructor")}if(x&&!v){var P=a.constructor,C=o.constructor;P!=C&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof C=="function"&&C instanceof C)&&(x=!1)}return c.delete(a),c.delete(o),x}return tp=i,tp}var ep,Mx;function lq(){if(Mx)return ep;Mx=1;var e=Fi(),t=Fr(),r=e(t,"DataView");return ep=r,ep}var rp,kx;function cq(){if(kx)return rp;kx=1;var e=Fi(),t=Fr(),r=e(t,"Promise");return rp=r,rp}var np,$x;function dE(){if($x)return np;$x=1;var e=Fi(),t=Fr(),r=e(t,"Set");return np=r,np}var ip,jx;function fq(){if(jx)return ip;jx=1;var e=Fi(),t=Fr(),r=e(t,"WeakMap");return ip=r,ip}var ap,Dx;function hq(){if(Dx)return ap;Dx=1;var e=lq(),t=Tg(),r=cq(),n=dE(),i=fq(),a=Tn(),o=rE(),s="[object Map]",u="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),m=o(r),d=o(n),g=o(i),_=a;return(e&&_(new e(new ArrayBuffer(1)))!=h||t&&_(new t)!=s||r&&_(r.resolve())!=l||n&&_(new n)!=c||i&&_(new i)!=f)&&(_=function(b){var x=a(b),v=x==u?b.constructor:void 0,w=v?o(v):"";if(w)switch(w){case p:return h;case y:return s;case m:return l;case d:return c;case g:return f}return x}),ap=_,ap}var op,Rx;function pq(){if(Rx)return op;Rx=1;var e=aE(),t=lE(),r=YB(),n=uq(),i=hq(),a=Ue(),o=cE(),s=hE(),u=1,l="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,g,_,b,x){var v=a(m),w=a(d),S=v?c:i(m),A=w?c:i(d);S=S==l?f:S,A=A==l?f:A;var P=S==f,C=A==f,T=S==A;if(T&&o(m)){if(!o(d))return!1;v=!0,P=!1}if(T&&!P)return x||(x=new e),v||s(m)?t(m,d,g,_,b,x):r(m,d,S,g,_,b,x);if(!(g&u)){var E=P&&p.call(m,"__wrapped__"),k=C&&p.call(d,"__wrapped__");if(E||k){var j=E?m.value():m,$=k?d.value():d;return x||(x=new e),b(j,$,g,_,x)}}return T?(x||(x=new e),n(m,d,g,_,b,x)):!1}return op=y,op}var sp,Ix;function jg(){if(Ix)return sp;Ix=1;var e=pq(),t=En();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return sp=r,sp}var up,Nx;function dq(){if(Nx)return up;Nx=1;var e=aE(),t=jg(),r=1,n=2;function i(a,o,s,u){var l=s.length,c=l,f=!u;if(a==null)return!c;for(a=Object(a);l--;){var h=s[l];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++l<c;){h=s[l];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(u)var g=u(y,m,p,a,o,d);if(!(g===void 0?t(m,y,r|n,u,d):g))return!1}}return!0}return up=i,up}var lp,Lx;function mE(){if(Lx)return lp;Lx=1;var e=Zn();function t(r){return r===r&&!e(r)}return lp=t,lp}var cp,Bx;function mq(){if(Bx)return cp;Bx=1;var e=mE(),t=Js();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return cp=r,cp}var fp,qx;function yE(){if(qx)return fp;qx=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return fp=e,fp}var hp,Fx;function yq(){if(Fx)return hp;Fx=1;var e=dq(),t=mq(),r=yE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return hp=n,hp}var pp,zx;function vE(){if(zx)return pp;zx=1;var e=Cg();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return pp=t,pp}var dp,Ux;function vq(){if(Ux)return dp;Ux=1;function e(t,r){return t!=null&&r in Object(t)}return dp=e,dp}var mp,Wx;function gq(){if(Wx)return mp;Wx=1;var e=iE(),t=Sg(),r=Ue(),n=kg(),i=$g(),a=fc();function o(s,u,l){u=e(u,s);for(var c=-1,f=u.length,h=!1;++c<f;){var p=a(u[c]);if(!(h=s!=null&&l(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return mp=o,mp}var yp,Gx;function bq(){if(Gx)return yp;Gx=1;var e=vq(),t=gq();function r(n,i){return n!=null&&t(n,i,e)}return yp=r,yp}var vp,Hx;function _q(){if(Hx)return vp;Hx=1;var e=jg(),t=vE(),r=bq(),n=Og(),i=mE(),a=yE(),o=fc(),s=1,u=2;function l(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|u)}}return vp=l,vp}var gp,Kx;function to(){if(Kx)return gp;Kx=1;function e(t){return t}return gp=e,gp}var bp,Yx;function xq(){if(Yx)return bp;Yx=1;function e(t){return function(r){return r==null?void 0:r[t]}}return bp=e,bp}var _p,Xx;function wq(){if(Xx)return _p;Xx=1;var e=Cg();function t(r){return function(n){return e(n,r)}}return _p=t,_p}var xp,Vx;function Sq(){if(Vx)return xp;Vx=1;var e=xq(),t=wq(),r=Og(),n=fc();function i(a){return r(a)?e(n(a)):t(a)}return xp=i,xp}var wp,Zx;function Jn(){if(Zx)return wp;Zx=1;var e=yq(),t=_q(),r=to(),n=Ue(),i=Sq();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return wp=a,wp}var Sp,Jx;function Oq(){if(Jx)return Sp;Jx=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),u=s.length;u--;){var l=s[t?u:++a];if(n(o[l],l,o)===!1)break}return r}}return Sp=e,Sp}var Op,Qx;function Aq(){if(Qx)return Op;Qx=1;var e=Oq(),t=e();return Op=t,Op}var Ap,t1;function gE(){if(t1)return Ap;t1=1;var e=Aq(),t=Js();function r(n,i){return n&&e(n,i,t)}return Ap=r,Ap}var Pp,e1;function Pq(){if(e1)return Pp;e1=1;var e=Zs();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,u=Object(i);(n?s--:++s<o)&&a(u[s],s,u)!==!1;);return i}}return Pp=t,Pp}var Tp,r1;function Dg(){if(r1)return Tp;r1=1;var e=gE(),t=Pq(),r=t(e);return Tp=r,Tp}var Ep,n1;function bE(){if(n1)return Ep;n1=1;var e=Dg(),t=Zs();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,u,l){o[++a]=i(s,u,l)}),o}return Ep=r,Ep}var Cp,i1;function Tq(){if(i1)return Cp;i1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Cp=e,Cp}var Mp,a1;function Eq(){if(a1)return Mp;a1=1;var e=Qa();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),u=n!==void 0,l=n===null,c=n===n,f=e(n);if(!l&&!f&&!s&&r>n||s&&u&&c&&!l&&!f||a&&u&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||l&&i&&o||!u&&o||!c)return-1}return 0}return Mp=t,Mp}var kp,o1;function Cq(){if(o1)return kp;o1=1;var e=Eq();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,u=o.length,l=i.length;++a<u;){var c=e(o[a],s[a]);if(c){if(a>=l)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return kp=t,kp}var $p,s1;function Mq(){if(s1)return $p;s1=1;var e=oc(),t=Cg(),r=Jn(),n=bE(),i=Tq(),a=fE(),o=Cq(),s=to(),u=Ue();function l(c,f,h){f.length?f=e(f,function(m){return u(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,g){var _=e(f,function(b){return b(m)});return{criteria:_,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return $p=l,$p}var jp,u1;function kq(){if(u1)return jp;u1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return jp=e,jp}var Dp,l1;function $q(){if(l1)return Dp;l1=1;var e=kq(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,u=t(o.length-i,0),l=Array(u);++s<u;)l[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(l),e(n,this,c)}}return Dp=r,Dp}var Rp,c1;function jq(){if(c1)return Rp;c1=1;function e(t){return function(){return t}}return Rp=e,Rp}var Ip,f1;function _E(){if(f1)return Ip;f1=1;var e=Fi(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ip=t,Ip}var Np,h1;function Dq(){if(h1)return Np;h1=1;var e=jq(),t=_E(),r=to(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Np=n,Np}var Lp,p1;function Rq(){if(p1)return Lp;p1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),u=t-(s-o);if(o=s,u>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Lp=n,Lp}var Bp,d1;function Iq(){if(d1)return Bp;d1=1;var e=Dq(),t=Rq(),r=t(e);return Bp=r,Bp}var qp,m1;function Nq(){if(m1)return qp;m1=1;var e=to(),t=$q(),r=Iq();function n(i,a){return r(t(i,a,e),i+"")}return qp=n,qp}var Fp,y1;function Qs(){if(y1)return Fp;y1=1;var e=Pg(),t=Zs(),r=kg(),n=Zn();function i(a,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?t(s)&&r(o,s.length):u=="string"&&o in s)?e(s[o],a):!1}return Fp=i,Fp}var zp,v1;function Lq(){if(v1)return zp;v1=1;var e=eE(),t=Mq(),r=Nq(),n=Qs(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return zp=i,zp}var Bq=Lq();const hc=qt(Bq);var Up,g1;function qq(){if(g1)return Up;g1=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Up=e,Up}var Fq=qq();const b1=qt(Fq);var Wp,_1;function zq(){if(_1)return Wp;_1=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,u=t(e((i-n)/(a||1)),0),l=Array(u);u--;)l[o?u:++s]=n,n+=a;return l}return Wp=r,Wp}var Gp,x1;function Uq(){if(x1)return Gp;x1=1;var e=zq(),t=Qs(),r=QT();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Gp=n,Gp}var Hp,w1;function Wq(){if(w1)return Hp;w1=1;var e=Uq(),t=e();return Hp=t,Hp}var Gq=Wq();const hs=qt(Gq);var Kp,S1;function Hq(){if(S1)return Kp;S1=1;var e=oc(),t=Jn(),r=bE(),n=Ue();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return Kp=i,Kp}var Yp,O1;function Kq(){if(O1)return Yp;O1=1;var e=eE(),t=Hq();function r(n,i){return e(t(n,i),1)}return Yp=r,Yp}var Yq=Kq();const xE=qt(Yq);var Xp,A1;function wE(){if(A1)return Xp;A1=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return Xp=e,Xp}var Vp,P1;function Xq(){if(P1)return Vp;P1=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Vp=e,Vp}var Zp,T1;function Vq(){if(T1)return Zp;T1=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Zp=r,Zp}var Jp,E1;function SE(){if(E1)return Jp;E1=1;var e=Vq();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=e(i,o),u=r[s];r[s]=r[i],r[i]=u}return r.length=n,r}return Jp=t,Jp}var Qp,C1;function Zq(){if(C1)return Qp;C1=1;var e=wE(),t=Xq(),r=SE();function n(i,a){return r(t(i),e(a,0,i.length))}return Qp=n,Qp}var td,M1;function Jq(){if(M1)return td;M1=1;var e=oc();function t(r,n){return e(n,function(i){return r[i]})}return td=t,td}var ed,k1;function Qq(){if(k1)return ed;k1=1;var e=Jq(),t=Js();function r(n){return n==null?[]:e(n,t(n))}return ed=r,ed}var rd,$1;function tF(){if($1)return rd;$1=1;var e=wE(),t=SE(),r=Qq();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return rd=n,rd}var nd,j1;function eF(){if(j1)return nd;j1=1;var e=Zq(),t=tF(),r=Ue(),n=Qs(),i=xg();function a(o,s,u){(u?n(o,s,u):s===void 0)?s=1:s=i(s);var l=r(o)?e:t;return l(o,s)}return nd=a,nd}var rF=eF();const nF=qt(rF),iF=e=>pB(e,14),D1=e=>Object.values(e).reduce((t,r)=>t+r,0),aF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=D1(e),a=b1(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),g=Math.round(d*m/i);return[y,g]})),o=b1(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,g=Math.min(Math.round(d*m/i),t);return[y,g]})),s=xE(Object.entries(e).map(([y,m])=>{const d=a[y],g=o[y];return hs(d,g).map(_=>{const b=iF(m/(_+.5));return{party:y,quotient:b}})})),u=D1(a),l=t-u,c=hc(s,({quotient:y})=>-y),f=c[l-1].quotient,h=c.filter(({quotient:y})=>y>f),p=c.filter(({quotient:y})=>y===f);if(h.length+p.length===l)h.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...nF(p,l-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},ol=e=>Math.round(e*1e10)/1e10,oF=e=>e.reduce((t,r)=>t+r.seats,0),sF=e=>e.flat(),uF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:ol(e*Math.cos(i)),y:ol(e*Math.sin(i))}},OE=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},bo=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(OE(e,t,r,n)*t/r-i)},lF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=bo(e,n,t,r),a=0;for(bo(e,n+1,t,r)<i&&(a=1),bo(e,n-1,t,r)<i&&n>1&&(a=-1);bo(e,n+a,t,r)<i&&n>0;)i=bo(e,n+a,t,r),n+=a;return n},cF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=ol((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=ol((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},fF=(e,t,r)=>{const n=oF(e),i=lF(n,t,r),a=OE(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=aF(o,n);const s=[];let u,l,c;for(let h=1;h<=i;h++){const p=[];u=t-(h-1)*a,l=r*u/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...uF(u,y*l,r),r:.4*a},p.push(c);s.push(p)}const f=Array(s.length).fill(0);for(const h of e)for(let p=0;p<h.seats;p++){const y=cF(s,f),m=s[y],d=f[y]??0,g=m==null?void 0:m[d];g&&(g.fill=h.colour,g.party=String(h.id)),f[y]=d+1}return sF(s)},hF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),pF={seatCount:!1,arcAngle:180,hFunction:Xs},dF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},pF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=fF(e,o,a),u=(((d=s[0])==null?void 0:d.r)??0)/.4||0,l=s.map(hF(i));r&&l.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(l.length)));const c=n<=180?o+u:o*(1+Math.sin((a-Math.PI)/2))+u,f=o+u,h=Math.max(c,f),p=n<=180?-o-u/2:-o*(1+Math.sin((a-Math.PI)/2))-u/2,y=i("defs",[UT(i),WT(i),GT(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-u/2,p,2*o+u,h].join(",")},[y,...l])},mF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Xs},yF=(e,t={})=>{const r={...mF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:u,spacing:l,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((K,F)=>K+F.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,g=n+i;for(let K=d;K<=g;K+=2.5){const F=K*Math.PI/180;for(let G=u;G>=s;G-=.1){const J=G*2,N=J*l,ut=Math.floor((a-p)/N);for(let H=1;H<=Math.min(ut,10);H++){let st=0;for(let ht=0;ht<H;ht++){const at=p+(ht+.5)*N,pt=J*l/at,Tt=Math.floor(F/pt);st+=Tt}if(st>=y){const ht=y/st,at=(G-s)/(u-s),pt=(st-y)/y,Tt=pt<.15?1:pt<.3?.7:pt<.5?.4:.1,it=1-Math.abs(K-n)/i,ft=Tt*.5+at*.3+ht*.15+it*.05;ft>m.score&&(m={seatSize:G,arcAngle:K,rings:H,score:ft})}}}}const _=m.seatSize,b=m.arcAngle,x=b*Math.PI/180,v=_*2,w=v*l,S=Math.floor((a-p)/w),A=[],P=-x/2-Math.PI/2,C=[];let T=0,E=[];for(let K=1;K<=S;K++){let F=0;const G=[];for(let J=0;J<K;J++){const N=p+(J+.5)*w,ut=v*l/N,H=Math.floor(x/ut);G.push(H),F+=H}if(F>=y){T=K,E=G;break}}if(T>0)C.push(...E);else for(let K=0;K<S;K++){const F=p+(K+.5)*w,G=v*l/F,J=Math.floor(x/G);C.push(J)}for(let K=0;K<C.length;K++){const F=p+(K+.5)*w,G=C[K]??0;if(G>0){const J=x/G;for(let N=0;N<G;N++){const ut=P+(N+.5)*J,H=Math.cos(ut)*F,st=Math.sin(ut)*F;A.push({ring:K,index:N,angle:ut,x:H,y:st})}}}A.sort((K,F)=>{const G=K.angle-F.angle;return Math.abs(G)>.001?G:K.ring-F.ring});const k=[];let j=0;e.forEach(K=>{const F=[],G=Math.min(K.seats,A.length-j);let J=1/0,N=-1/0;for(let H=0;H<G&&j<A.length;H++){const st=A[j++];st&&(J=Math.min(J,st.angle),N=Math.max(N,st.angle),Math.sqrt(st.x*st.x+st.y*st.y),F.push(h("circle",{fill:K.colour,stroke:K.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${st.x}, ${st.y})`,r:_,"data-party":K.name,"data-party-id":String(K.id),style:"pointer-events: all; cursor: pointer;"})))}const ut=F;k.push(h("g",{className:"party-group","data-party":K.name,style:"opacity: 1; outline: none;"},ut))});const $=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),M=h("g",{className:"points-container"},k),I=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,L=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),UT(h),WT(h),GT(h)]),D=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[$,M,I].filter(Boolean)),B=x/2;let U;if(b<=180)U=a*Math.sin(B)+_;else{const K=B-Math.PI/2;U=a*(1+Math.sin(K))+_}const W=a+_,X=a*2,Z=Math.max(U,W);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${X} ${Z}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[D,L])};function AE(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?pa.COMPLETED:e.color==="url(#greyHatchPattern)"?Ft.greyHatch.lines:e.color}function iy(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=Fe.animation.hoverOpacity.active:i.style.opacity=Fe.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function ay(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",Fe.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const vF=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:s,setActivePartyName:u,chartConfig:l,seatSize:c,shouldAnimate:f=!1,animationDirection:h="left-to-right",onAnimationComplete:p})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(w=>w.value>0).map(w=>{const S=r<=a?w.value:Math.max(1,Math.floor(w.value*y));return{id:String(w.id),name:w.label,seats:S,colour:w.color==="url(#hatchPattern)"?pa.COMPLETED:w.color}}),d=i?yF(m,{arcAngle:n,arcAngleFlexibility:l.arcAngleFlexibility,radius:l.radius,seatSize:c,minSeatSize:l.minSeatSize,maxSeatSize:l.maxSeatSize,spacing:l.spacing,innerRadiusRatio:l.innerRadiusRatio,showLabels:!0}):dF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const g=eB(d),x=new DOMParser().parseFromString(g,"image/svg+xml").documentElement;if(!x)return;x.setAttribute("width","100%"),x.setAttribute("height","100%"),x.style.width="100%",x.style.height="auto",x.style.display="block",i?gF(x,m,t,o,s,u):bF(x,m,t,o,s,u);const v=()=>{if(o(null),u(null),i)iy(x,null);else{const w=x.querySelectorAll("circle");ay(w,null)}};return x&&x.addEventListener("mouseleave",v),e.current.appendChild(x),f&&x&&iB(x,n,l.radius,h,900,p),()=>{if(x&&x.removeEventListener("mouseleave",v),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,s,u,e,l,c,f,h,p])};function gF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),s=e.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(u=>{if(u){const l=u;l.style.stroke=Fe.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${Fe.animation.transitionDuration} ease, stroke-opacity ${Fe.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(u=>{if(!u)return;const l=u.getAttribute("data-party"),c=u.getAttribute("data-party-id"),f=()=>{if(l&&l!==i){const h=t.find(p=>p.name===l||String(p.id)===c);if(h){const p=r.find(y=>y.label===h.name||String(y.id)===h.id);if(p){const y=AE(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),iy(e,h.name)}}}};u.addEventListener("mouseenter",f)}),i&&iy(e,i)}function bF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const u=s;u.style.cursor="pointer",u.style.stroke=Fe.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${Fe.animation.transitionDuration} ease, stroke-opacity ${Fe.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const u=s.getAttribute("class")||"",l=parseInt(u,10),c=t[l],f=()=>{if(c){const h=c.name;if(h&&h!==i){const p=r.find(y=>y.label===c.name||String(y.id)===c.id);if(p){const y=AE(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),ay(o,u)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(u=>u.name===i);if(s){const u=t.indexOf(s);ay(o,String(u))}}}const id=Bo,R1={[Fo]:pa.NOT_APPLICABLE,[zo]:pa.NO_LST,[Uo]:pa.DATA_MISSING},_o=(e,t,r)=>{if(e in R1)return R1[e];const n=r-1-t,i=id.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return id[o]??id[0]??"#000000"},PE=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([Fo,zo,Uo].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:_o(p.label,a.length-1-y,a.length)})),s=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:_o(p.label,y,i.length)})),u=n,l={id:"no-lst",label:zo,value:r,color:_o(zo,0,1)},c={id:"data-missing",label:Uo,value:u,color:_o(Uo,0,1)},f={id:"n/a",label:Fo,value:t,color:_o(Fo,0,1)},h=[];return f.value>0&&h.push(f),l.value>0&&h.push(l),c.value>0&&h.push(c),h.push(...s),h.push(...o),h},I1={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},_F=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=Fe.useEnhanced,showTable:s=!0,shouldAnimate:u=!1,animationDirection:l="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,p]=O.useState(null),[y,m]=O.useState(null),g=PE({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,P=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:P}}),_=a??dg({repositoryCount:t}),b=mg({repositoryCount:t});vF({containerRef:f,processedData:g,totalRepositories:t,arcAngle:_,useEnhanced:o,maxSeats:Fe.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:Fe.chartConfig,seatSize:b,shouldAnimate:u,animationDirection:l,onAnimationComplete:c});const x=g.map(S=>{const A=S.value/t*100,P=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:P,color:S.color}}),v=t>Fe.maxSeats,w=v?Math.round(t/Fe.maxSeats):1;return z.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[z.jsxs(V.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[z.jsx(V.Box,{className:"parliament-chart-svg-container",ref:f,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),z.jsxs(V.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[h&&z.jsxs(O.Fragment,{children:[z.jsx(V.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:h.label}),z.jsxs(V.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),v&&z.jsxs(V.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:h?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[z.jsx(V.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),z.jsxs(V.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&z.jsx(V.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:z.jsxs(V.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[z.jsx("thead",{children:z.jsxs(V.TableRow,{children:[z.jsx(V.TableCell,{}),z.jsx(V.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),z.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),z.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),z.jsx("tbody",{children:x.map(S=>{const A=S.color==="url(#greyHatchPattern)"?Ft.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Ft.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Ft.noLstHatch.lines:S.color;return z.jsxs(V.TableRow,{onMouseEnter:()=>{m(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?Ft.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Ft.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Ft.noLstHatch.lines:S.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:y===S.label?`${A}15`:"transparent","&:hover":{backgroundColor:`${A}15`}},children:[z.jsx(V.TableCell,{align:"center",sx:{width:20},children:z.jsx(V.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?Ft.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?Ft.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?Ft.noLstHatch.background:S.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:y===S.label?"scale(1.2)":"scale(1)",...S.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
47
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function wB(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Qv);const u=SB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(u||!a||!yB(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!o&&(!a||!e0(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function SB(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=AB(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function AB(e,t,r){const n=xE(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Fa(n.attribute,Object.assign({},e.settings.characterReferences,{subset:zl.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?vL:_L)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Fa(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:zl.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&d_(r,o)>d_(r,e.alternative)&&(o=e.alternative),s=o+Fa(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?zl.single:zl.double)[i][a],attribute:!0}))+o),l+(s&&"="+s))}const OB=["<","&"];function $E(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Fa(e.value,Object.assign({},n.settings.characterReferences,{subset:OB}))}function TB(e,t,r,n){return n.settings.allowDangerousHtml?e.value:$E(e,t,r,n)}function PB(e,t,r,n){return n.all(e)}const EB=jL("type",{invalid:CB,unknown:MB,handlers:{comment:QL,doctype:tB,element:wB,raw:TB,root:PB,text:$E}});function CB(e){throw new Error("Expected node, not `"+e+"`")}function MB(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const kB={},$B={},jB=[];function RB(e,t){const r=kB,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:DB,all:IB,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||$L,characterReferences:r.characterReferences||$B,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Qv:wE,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function DB(e,t,r){return EB(e,t,r,this)}function IB(e){const t=[],r=e&&e.children||jB;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const Ye={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},za={COMPLETED:lr.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},gs="N/A",vs="No LST",bs="Data Missing";function NB(e,t,r,n="left-to-right",i=900,a){te.prototype.transition=sv;const o=t*Math.PI/180,s=-o/2-Math.PI/2,l=o/2-Math.PI/2;let u=e.querySelector("defs");u||(u=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(u));const c="arc-sweep-clip";let f=u.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),u.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=w=>{const b=r*1.5,_=Math.cos(w)*b,g=Math.sin(w)*b,x=Math.cos(l)*b,S=Math.sin(l)*b,A=l-w>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${x},${S} Z`};h.setAttribute("d",d(s)),te(h).transition().duration(i).ease(w=>1-Math.pow(1-w,3)).tween("arc-sweep",()=>w=>{const b=s+(l-s)*w;h.setAttribute("d",d(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=w=>{const b=r*1.5,_=Math.cos(w)*b,g=Math.sin(w)*b,x=Math.cos(l)*b,S=Math.sin(l)*b,A=l-w>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${x},${S} Z`};h.setAttribute("d",d(l)),te(h).transition().duration(i).ease(w=>1-Math.pow(1-w,3)).tween("arc-sweep",()=>w=>{const b=l-(l-s)*w;h.setAttribute("d",d(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf,v_;function jE(){if(v_)return Gf;v_=1;var e=typeof Ul=="object"&&Ul&&Ul.Object===Object&&Ul;return Gf=e,Gf}var Kf,b_;function cn(){if(b_)return Kf;b_=1;var e=jE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Kf=r,Kf}var Yf,__;function LB(){if(__)return Yf;__=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Yf=t,Yf}var Xf,x_;function BB(){if(x_)return Xf;x_=1;var e=LB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Xf=r,Xf}var Vf,w_;function xi(){if(w_)return Vf;w_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Vf=e,Vf}var Zf,S_;function Tl(){if(S_)return Zf;S_=1;var e=cn(),t=e.Symbol;return Zf=t,Zf}var Jf,A_;function qB(){if(A_)return Jf;A_=1;var e=Tl(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var u=!0}catch{}var c=n.call(o);return u&&(s?o[i]=l:delete o[i]),c}return Jf=a,Jf}var Qf,O_;function FB(){if(O_)return Qf;O_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qf=r,Qf}var th,T_;function Vn(){if(T_)return th;T_=1;var e=Tl(),t=qB(),r=FB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return th=o,th}var eh,P_;function Zn(){if(P_)return eh;P_=1;function e(t){return t!=null&&typeof t=="object"}return eh=e,eh}var rh,E_;function Co(){if(E_)return rh;E_=1;var e=Vn(),t=Zn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return rh=n,rh}var nh,C_;function r0(){if(C_)return nh;C_=1;var e=BB(),t=xi(),r=Co(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return nh=l,nh}var ih,M_;function RE(){if(M_)return ih;M_=1;var e=r0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return ih=n,ih}var ah,k_;function n0(){if(k_)return ah;k_=1;var e=RE();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return ah=t,ah}var oh,$_;function Ic(){if($_)return oh;$_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return oh=e,oh}var sh,j_;function Ve(){if(j_)return sh;j_=1;var e=Array.isArray;return sh=e,sh}var lh,R_;function zB(){if(R_)return lh;R_=1;var e=Tl(),t=Ic(),r=Ve(),n=Co(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return lh=o,lh}var uh,D_;function i0(){if(D_)return uh;D_=1;var e=zB();function t(r){return r==null?"":e(r)}return uh=t,uh}var ch,I_;function UB(){if(I_)return ch;I_=1;var e=cn(),t=n0(),r=r0(),n=i0(),i=e.isFinite,a=Math.min;function o(s){var l=Math[s];return function(u,c){if(u=r(u),c=c==null?0:a(t(c),292),c&&i(u)){var f=(n(u)+"e").split("e"),h=l(f[0]+"e"+(+f[1]+c));return f=(n(h)+"e").split("e"),+(f[0]+"e"+(+f[1]-c))}return l(u)}}return ch=o,ch}var fh,N_;function WB(){if(N_)return fh;N_=1;var e=UB(),t=e("round");return fh=t,fh}var HB=WB();const GB=zt(HB);var hh,L_;function DE(){if(L_)return hh;L_=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return hh=e,hh}var ph,B_;function KB(){if(B_)return ph;B_=1;var e=Vn(),t=Zn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ph=n,ph}var dh,q_;function a0(){if(q_)return dh;q_=1;var e=KB(),t=Zn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return dh=a,dh}var mh,F_;function YB(){if(F_)return mh;F_=1;var e=Tl(),t=a0(),r=Ve(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return mh=i,mh}var yh,z_;function IE(){if(z_)return yh;z_=1;var e=DE(),t=YB();function r(n,i,a,o,s){var l=-1,u=n.length;for(a||(a=t),s||(s=[]);++l<u;){var c=n[l];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return yh=r,yh}var gh,U_;function o0(){if(U_)return gh;U_=1;var e=Ve(),t=Co(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return gh=i,gh}var vh,W_;function s0(){if(W_)return vh;W_=1;var e=Vn(),t=xi(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return vh=o,vh}var bh,H_;function XB(){if(H_)return bh;H_=1;var e=cn(),t=e["__core-js_shared__"];return bh=t,bh}var _h,G_;function VB(){if(G_)return _h;G_=1;var e=XB(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return _h=r,_h}var xh,K_;function NE(){if(K_)return xh;K_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return xh=r,xh}var wh,Y_;function ZB(){if(Y_)return wh;Y_=1;var e=s0(),t=VB(),r=xi(),n=NE(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?c:a;return p.test(n(h))}return wh=f,wh}var Sh,X_;function JB(){if(X_)return Sh;X_=1;function e(t,r){return t==null?void 0:t[r]}return Sh=e,Sh}var Ah,V_;function ya(){if(V_)return Ah;V_=1;var e=ZB(),t=JB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Ah=r,Ah}var Oh,Z_;function Nc(){if(Z_)return Oh;Z_=1;var e=ya(),t=e(Object,"create");return Oh=t,Oh}var Th,J_;function QB(){if(J_)return Th;J_=1;var e=Nc();function t(){this.__data__=e?e(null):{},this.size=0}return Th=t,Th}var Ph,Q_;function tq(){if(Q_)return Ph;Q_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ph=e,Ph}var Eh,tx;function eq(){if(tx)return Eh;tx=1;var e=Nc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return Eh=i,Eh}var Ch,ex;function rq(){if(ex)return Ch;ex=1;var e=Nc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Ch=n,Ch}var Mh,rx;function nq(){if(rx)return Mh;rx=1;var e=Nc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Mh=r,Mh}var kh,nx;function iq(){if(nx)return kh;nx=1;var e=QB(),t=tq(),r=eq(),n=rq(),i=nq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,kh=a,kh}var $h,ix;function aq(){if(ix)return $h;ix=1;function e(){this.__data__=[],this.size=0}return $h=e,$h}var jh,ax;function l0(){if(ax)return jh;ax=1;function e(t,r){return t===r||t!==t&&r!==r}return jh=e,jh}var Rh,ox;function Lc(){if(ox)return Rh;ox=1;var e=l0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Rh=t,Rh}var Dh,sx;function oq(){if(sx)return Dh;sx=1;var e=Lc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Dh=n,Dh}var Ih,lx;function sq(){if(lx)return Ih;lx=1;var e=Lc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ih=t,Ih}var Nh,ux;function lq(){if(ux)return Nh;ux=1;var e=Lc();function t(r){return e(this.__data__,r)>-1}return Nh=t,Nh}var Lh,cx;function uq(){if(cx)return Lh;cx=1;var e=Lc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Lh=t,Lh}var Bh,fx;function Bc(){if(fx)return Bh;fx=1;var e=aq(),t=oq(),r=sq(),n=lq(),i=uq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Bh=a,Bh}var qh,hx;function u0(){if(hx)return qh;hx=1;var e=ya(),t=cn(),r=e(t,"Map");return qh=r,qh}var Fh,px;function cq(){if(px)return Fh;px=1;var e=iq(),t=Bc(),r=u0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Fh=n,Fh}var zh,dx;function fq(){if(dx)return zh;dx=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return zh=e,zh}var Uh,mx;function qc(){if(mx)return Uh;mx=1;var e=fq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Uh=t,Uh}var Wh,yx;function hq(){if(yx)return Wh;yx=1;var e=qc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Wh=t,Wh}var Hh,gx;function pq(){if(gx)return Hh;gx=1;var e=qc();function t(r){return e(this,r).get(r)}return Hh=t,Hh}var Gh,vx;function dq(){if(vx)return Gh;vx=1;var e=qc();function t(r){return e(this,r).has(r)}return Gh=t,Gh}var Kh,bx;function mq(){if(bx)return Kh;bx=1;var e=qc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Kh=t,Kh}var Yh,_x;function c0(){if(_x)return Yh;_x=1;var e=cq(),t=hq(),r=pq(),n=dq(),i=mq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Yh=a,Yh}var Xh,xx;function LE(){if(xx)return Xh;xx=1;var e=c0(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var u=n.apply(this,o);return a.cache=l.set(s,u)||l,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Xh=r,Xh}var Vh,wx;function yq(){if(wx)return Vh;wx=1;var e=LE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Vh=r,Vh}var Zh,Sx;function gq(){if(Sx)return Zh;Sx=1;var e=yq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,u){a.push(l?u.replace(r,"$1"):s||o)}),a});return Zh=n,Zh}var Jh,Ax;function BE(){if(Ax)return Jh;Ax=1;var e=Ve(),t=o0(),r=gq(),n=i0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Jh=i,Jh}var Qh,Ox;function Fc(){if(Ox)return Qh;Ox=1;var e=Co();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Qh=t,Qh}var tp,Tx;function f0(){if(Tx)return tp;Tx=1;var e=BE(),t=Fc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return tp=r,tp}var ep,Px;function vq(){if(Px)return ep;Px=1;var e=Bc();function t(){this.__data__=new e,this.size=0}return ep=t,ep}var rp,Ex;function bq(){if(Ex)return rp;Ex=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return rp=e,rp}var np,Cx;function _q(){if(Cx)return np;Cx=1;function e(t){return this.__data__.get(t)}return np=e,np}var ip,Mx;function xq(){if(Mx)return ip;Mx=1;function e(t){return this.__data__.has(t)}return ip=e,ip}var ap,kx;function wq(){if(kx)return ap;kx=1;var e=Bc(),t=u0(),r=c0(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return ap=i,ap}var op,$x;function qE(){if($x)return op;$x=1;var e=Bc(),t=vq(),r=bq(),n=_q(),i=xq(),a=wq();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,op=o,op}var sp,jx;function Sq(){if(jx)return sp;jx=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return sp=t,sp}var lp,Rx;function Aq(){if(Rx)return lp;Rx=1;function e(t){return this.__data__.has(t)}return lp=e,lp}var up,Dx;function FE(){if(Dx)return up;Dx=1;var e=c0(),t=Sq(),r=Aq();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,up=n,up}var cp,Ix;function zE(){if(Ix)return cp;Ix=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return cp=e,cp}var fp,Nx;function UE(){if(Nx)return fp;Nx=1;function e(t,r){return t.has(r)}return fp=e,fp}var hp,Lx;function WE(){if(Lx)return hp;Lx=1;var e=FE(),t=zE(),r=UE(),n=1,i=2;function a(o,s,l,u,c,f){var h=l&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var v=-1,w=!0,b=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++v<p;){var _=o[v],g=s[v];if(u)var x=h?u(g,_,v,s,o,f):u(_,g,v,o,s,f);if(x!==void 0){if(x)continue;w=!1;break}if(b){if(!t(s,function(S,A){if(!r(b,A)&&(_===S||c(_,S,l,u,f)))return b.push(A)})){w=!1;break}}else if(!(_===g||c(_,g,l,u,f))){w=!1;break}}return f.delete(o),f.delete(s),w}return hp=a,hp}var pp,Bx;function Oq(){if(Bx)return pp;Bx=1;var e=cn(),t=e.Uint8Array;return pp=t,pp}var dp,qx;function Tq(){if(qx)return dp;qx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return dp=e,dp}var mp,Fx;function h0(){if(Fx)return mp;Fx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return mp=e,mp}var yp,zx;function Pq(){if(zx)return yp;zx=1;var e=Tl(),t=Oq(),r=l0(),n=WE(),i=Tq(),a=h0(),o=1,s=2,l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",v="[object ArrayBuffer]",w="[object DataView]",b=e?e.prototype:void 0,_=b?b.valueOf:void 0;function g(x,S,A,T,C,P,E){switch(A){case w:if(x.byteLength!=S.byteLength||x.byteOffset!=S.byteOffset)return!1;x=x.buffer,S=S.buffer;case v:return!(x.byteLength!=S.byteLength||!P(new t(x),new t(S)));case l:case u:case h:return r(+x,+S);case c:return x.name==S.name&&x.message==S.message;case p:case m:return x==S+"";case f:var M=i;case y:var $=T&o;if(M||(M=a),x.size!=S.size&&!$)return!1;var j=E.get(x);if(j)return j==S;T|=s,E.set(x,S);var k=n(M(x),M(S),T,C,P,E);return E.delete(x),k;case d:if(_)return _.call(x)==_.call(S)}return!1}return yp=g,yp}var gp,Ux;function Eq(){if(Ux)return gp;Ux=1;var e=DE(),t=Ve();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return gp=r,gp}var vp,Wx;function Cq(){if(Wx)return vp;Wx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return vp=e,vp}var bp,Hx;function Mq(){if(Hx)return bp;Hx=1;function e(){return[]}return bp=e,bp}var _p,Gx;function kq(){if(Gx)return _p;Gx=1;var e=Cq(),t=Mq(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return _p=a,_p}var xp,Kx;function $q(){if(Kx)return xp;Kx=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return xp=e,xp}var ss={exports:{}},wp,Yx;function jq(){if(Yx)return wp;Yx=1;function e(){return!1}return wp=e,wp}ss.exports;var Xx;function HE(){return Xx||(Xx=1,(function(e,t){var r=cn(),n=jq(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(ss,ss.exports)),ss.exports}var Sp,Vx;function p0(){if(Vx)return Sp;Vx=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Sp=r,Sp}var Ap,Zx;function d0(){if(Zx)return Ap;Zx=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ap=t,Ap}var Op,Jx;function Rq(){if(Jx)return Op;Jx=1;var e=Vn(),t=d0(),r=Zn(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",v="[object DataView]",w="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",g="[object Int16Array]",x="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",P={};P[w]=P[b]=P[_]=P[g]=P[x]=P[S]=P[A]=P[T]=P[C]=!0,P[n]=P[i]=P[d]=P[a]=P[v]=P[o]=P[s]=P[l]=P[u]=P[c]=P[f]=P[h]=P[p]=P[y]=P[m]=!1;function E(M){return r(M)&&t(M.length)&&!!P[e(M)]}return Op=E,Op}var Tp,Qx;function GE(){if(Qx)return Tp;Qx=1;function e(t){return function(r){return t(r)}}return Tp=e,Tp}var ls={exports:{}};ls.exports;var t1;function Dq(){return t1||(t1=1,(function(e,t){var r=jE(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(ls,ls.exports)),ls.exports}var Pp,e1;function KE(){if(e1)return Pp;e1=1;var e=Rq(),t=GE(),r=Dq(),n=r&&r.isTypedArray,i=n?t(n):e;return Pp=i,Pp}var Ep,r1;function Iq(){if(r1)return Ep;r1=1;var e=$q(),t=a0(),r=Ve(),n=HE(),i=p0(),a=KE(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var f=r(u),h=!f&&t(u),p=!f&&!h&&n(u),y=!f&&!h&&!p&&a(u),m=f||h||p||y,d=m?e(u.length,String):[],v=d.length;for(var w in u)(c||s.call(u,w))&&!(m&&(w=="length"||p&&(w=="offset"||w=="parent")||y&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,v)))&&d.push(w);return d}return Ep=l,Ep}var Cp,n1;function Nq(){if(n1)return Cp;n1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Cp=t,Cp}var Mp,i1;function YE(){if(i1)return Mp;i1=1;function e(t,r){return function(n){return t(r(n))}}return Mp=e,Mp}var kp,a1;function Lq(){if(a1)return kp;a1=1;var e=YE(),t=e(Object.keys,Object);return kp=t,kp}var $p,o1;function Bq(){if(o1)return $p;o1=1;var e=Nq(),t=Lq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return $p=i,$p}var jp,s1;function Pl(){if(s1)return jp;s1=1;var e=s0(),t=d0();function r(n){return n!=null&&t(n.length)&&!e(n)}return jp=r,jp}var Rp,l1;function El(){if(l1)return Rp;l1=1;var e=Iq(),t=Bq(),r=Pl();function n(i){return r(i)?e(i):t(i)}return Rp=n,Rp}var Dp,u1;function qq(){if(u1)return Dp;u1=1;var e=Eq(),t=kq(),r=El();function n(i){return e(i,r,t)}return Dp=n,Dp}var Ip,c1;function Fq(){if(c1)return Ip;c1=1;var e=qq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,u,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var v=h[d];if(!(f?v in o:n.call(o,v)))return!1}var w=c.get(a),b=c.get(o);if(w&&b)return w==o&&b==a;var _=!0;c.set(a,o),c.set(o,a);for(var g=f;++d<p;){v=h[d];var x=a[v],S=o[v];if(l)var A=f?l(S,x,v,o,a,c):l(x,S,v,a,o,c);if(!(A===void 0?x===S||u(x,S,s,l,c):A)){_=!1;break}g||(g=v=="constructor")}if(_&&!g){var T=a.constructor,C=o.constructor;T!=C&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof C=="function"&&C instanceof C)&&(_=!1)}return c.delete(a),c.delete(o),_}return Ip=i,Ip}var Np,f1;function zq(){if(f1)return Np;f1=1;var e=ya(),t=cn(),r=e(t,"DataView");return Np=r,Np}var Lp,h1;function Uq(){if(h1)return Lp;h1=1;var e=ya(),t=cn(),r=e(t,"Promise");return Lp=r,Lp}var Bp,p1;function XE(){if(p1)return Bp;p1=1;var e=ya(),t=cn(),r=e(t,"Set");return Bp=r,Bp}var qp,d1;function Wq(){if(d1)return qp;d1=1;var e=ya(),t=cn(),r=e(t,"WeakMap");return qp=r,qp}var Fp,m1;function Hq(){if(m1)return Fp;m1=1;var e=zq(),t=u0(),r=Uq(),n=XE(),i=Wq(),a=Vn(),o=NE(),s="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),m=o(r),d=o(n),v=o(i),w=a;return(e&&w(new e(new ArrayBuffer(1)))!=h||t&&w(new t)!=s||r&&w(r.resolve())!=u||n&&w(new n)!=c||i&&w(new i)!=f)&&(w=function(b){var _=a(b),g=_==l?b.constructor:void 0,x=g?o(g):"";if(x)switch(x){case p:return h;case y:return s;case m:return u;case d:return c;case v:return f}return _}),Fp=w,Fp}var zp,y1;function Gq(){if(y1)return zp;y1=1;var e=qE(),t=WE(),r=Pq(),n=Fq(),i=Hq(),a=Ve(),o=HE(),s=KE(),l=1,u="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,v,w,b,_){var g=a(m),x=a(d),S=g?c:i(m),A=x?c:i(d);S=S==u?f:S,A=A==u?f:A;var T=S==f,C=A==f,P=S==A;if(P&&o(m)){if(!o(d))return!1;g=!0,T=!1}if(P&&!T)return _||(_=new e),g||s(m)?t(m,d,v,w,b,_):r(m,d,S,v,w,b,_);if(!(v&l)){var E=T&&p.call(m,"__wrapped__"),M=C&&p.call(d,"__wrapped__");if(E||M){var $=E?m.value():m,j=M?d.value():d;return _||(_=new e),b($,j,v,w,_)}}return P?(_||(_=new e),n(m,d,v,w,b,_)):!1}return zp=y,zp}var Up,g1;function m0(){if(g1)return Up;g1=1;var e=Gq(),t=Zn();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Up=r,Up}var Wp,v1;function Kq(){if(v1)return Wp;v1=1;var e=qE(),t=m0(),r=1,n=2;function i(a,o,s,l){var u=s.length,c=u,f=!l;if(a==null)return!c;for(a=Object(a);u--;){var h=s[u];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++u<c;){h=s[u];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(l)var v=l(y,m,p,a,o,d);if(!(v===void 0?t(m,y,r|n,l,d):v))return!1}}return!0}return Wp=i,Wp}var Hp,b1;function VE(){if(b1)return Hp;b1=1;var e=xi();function t(r){return r===r&&!e(r)}return Hp=t,Hp}var Gp,_1;function Yq(){if(_1)return Gp;_1=1;var e=VE(),t=El();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return Gp=r,Gp}var Kp,x1;function ZE(){if(x1)return Kp;x1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Kp=e,Kp}var Yp,w1;function Xq(){if(w1)return Yp;w1=1;var e=Kq(),t=Yq(),r=ZE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Yp=n,Yp}var Xp,S1;function JE(){if(S1)return Xp;S1=1;var e=f0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Xp=t,Xp}var Vp,A1;function Vq(){if(A1)return Vp;A1=1;function e(t,r){return t!=null&&r in Object(t)}return Vp=e,Vp}var Zp,O1;function Zq(){if(O1)return Zp;O1=1;var e=BE(),t=a0(),r=Ve(),n=p0(),i=d0(),a=Fc();function o(s,l,u){l=e(l,s);for(var c=-1,f=l.length,h=!1;++c<f;){var p=a(l[c]);if(!(h=s!=null&&u(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return Zp=o,Zp}var Jp,T1;function Jq(){if(T1)return Jp;T1=1;var e=Vq(),t=Zq();function r(n,i){return n!=null&&t(n,i,e)}return Jp=r,Jp}var Qp,P1;function Qq(){if(P1)return Qp;P1=1;var e=m0(),t=JE(),r=Jq(),n=o0(),i=VE(),a=ZE(),o=Fc(),s=1,l=2;function u(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|l)}}return Qp=u,Qp}var td,E1;function Mo(){if(E1)return td;E1=1;function e(t){return t}return td=e,td}var ed,C1;function tF(){if(C1)return ed;C1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ed=e,ed}var rd,M1;function eF(){if(M1)return rd;M1=1;var e=f0();function t(r){return function(n){return e(n,r)}}return rd=t,rd}var nd,k1;function rF(){if(k1)return nd;k1=1;var e=tF(),t=eF(),r=o0(),n=Fc();function i(a){return r(a)?e(n(a)):t(a)}return nd=i,nd}var id,$1;function wi(){if($1)return id;$1=1;var e=Xq(),t=Qq(),r=Mo(),n=Ve(),i=rF();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return id=a,id}var ad,j1;function nF(){if(j1)return ad;j1=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var u=s[t?l:++a];if(n(o[u],u,o)===!1)break}return r}}return ad=e,ad}var od,R1;function iF(){if(R1)return od;R1=1;var e=nF(),t=e();return od=t,od}var sd,D1;function QE(){if(D1)return sd;D1=1;var e=iF(),t=El();function r(n,i){return n&&e(n,i,t)}return sd=r,sd}var ld,I1;function aF(){if(I1)return ld;I1=1;var e=Pl();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return ld=t,ld}var ud,N1;function y0(){if(N1)return ud;N1=1;var e=QE(),t=aF(),r=t(e);return ud=r,ud}var cd,L1;function tC(){if(L1)return cd;L1=1;var e=y0(),t=Pl();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,u){o[++a]=i(s,l,u)}),o}return cd=r,cd}var fd,B1;function oF(){if(B1)return fd;B1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return fd=e,fd}var hd,q1;function sF(){if(q1)return hd;q1=1;var e=Co();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,u=n===null,c=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&l&&c&&!u&&!f||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!l&&o||!c)return-1}return 0}return hd=t,hd}var pd,F1;function lF(){if(F1)return pd;F1=1;var e=sF();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,u=i.length;++a<l;){var c=e(o[a],s[a]);if(c){if(a>=u)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return pd=t,pd}var dd,z1;function uF(){if(z1)return dd;z1=1;var e=Ic(),t=f0(),r=wi(),n=tC(),i=oF(),a=GE(),o=lF(),s=Mo(),l=Ve();function u(c,f,h){f.length?f=e(f,function(m){return l(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,v){var w=e(f,function(b){return b(m)});return{criteria:w,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return dd=u,dd}var md,U1;function cF(){if(U1)return md;U1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return md=e,md}var yd,W1;function fF(){if(W1)return yd;W1=1;var e=cF(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s<l;)u[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(u),e(n,this,c)}}return yd=r,yd}var gd,H1;function hF(){if(H1)return gd;H1=1;function e(t){return function(){return t}}return gd=e,gd}var vd,G1;function eC(){if(G1)return vd;G1=1;var e=ya(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return vd=t,vd}var bd,K1;function pF(){if(K1)return bd;K1=1;var e=hF(),t=eC(),r=Mo(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return bd=n,bd}var _d,Y1;function dF(){if(Y1)return _d;Y1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return _d=n,_d}var xd,X1;function mF(){if(X1)return xd;X1=1;var e=pF(),t=dF(),r=t(e);return xd=r,xd}var wd,V1;function yF(){if(V1)return wd;V1=1;var e=Mo(),t=fF(),r=mF();function n(i,a){return r(t(i,a,e),i+"")}return wd=n,wd}var Sd,Z1;function Cl(){if(Z1)return Sd;Z1=1;var e=l0(),t=Pl(),r=p0(),n=xi();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return Sd=i,Sd}var Ad,J1;function gF(){if(J1)return Ad;J1=1;var e=IE(),t=uF(),r=yF(),n=Cl(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Ad=i,Ad}var vF=gF();const zc=zt(vF);var Od,Q1;function bF(){if(Q1)return Od;Q1=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Od=e,Od}var _F=bF();const tw=zt(_F);var Td,ew;function xF(){if(ew)return Td;ew=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),u=Array(l);l--;)u[o?l:++s]=n,n+=a;return u}return Td=r,Td}var Pd,rw;function wF(){if(rw)return Pd;rw=1;var e=xF(),t=Cl(),r=RE();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Pd=n,Pd}var Ed,nw;function SF(){if(nw)return Ed;nw=1;var e=wF(),t=e();return Ed=t,Ed}var AF=SF();const zs=zt(AF);var Cd,iw;function OF(){if(iw)return Cd;iw=1;var e=Ic(),t=wi(),r=tC(),n=Ve();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return Cd=i,Cd}var Md,aw;function TF(){if(aw)return Md;aw=1;var e=IE(),t=OF();function r(n,i){return e(t(n,i),1)}return Md=r,Md}var PF=TF();const rC=zt(PF);var kd,ow;function nC(){if(ow)return kd;ow=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return kd=e,kd}var $d,sw;function EF(){if(sw)return $d;sw=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return $d=e,$d}var jd,lw;function CF(){if(lw)return jd;lw=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return jd=r,jd}var Rd,uw;function iC(){if(uw)return Rd;uw=1;var e=CF();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=e(i,o),l=r[s];r[s]=r[i],r[i]=l}return r.length=n,r}return Rd=t,Rd}var Dd,cw;function MF(){if(cw)return Dd;cw=1;var e=nC(),t=EF(),r=iC();function n(i,a){return r(t(i),e(a,0,i.length))}return Dd=n,Dd}var Id,fw;function kF(){if(fw)return Id;fw=1;var e=Ic();function t(r,n){return e(n,function(i){return r[i]})}return Id=t,Id}var Nd,hw;function $F(){if(hw)return Nd;hw=1;var e=kF(),t=El();function r(n){return n==null?[]:e(n,t(n))}return Nd=r,Nd}var Ld,pw;function jF(){if(pw)return Ld;pw=1;var e=nC(),t=iC(),r=$F();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return Ld=n,Ld}var Bd,dw;function RF(){if(dw)return Bd;dw=1;var e=MF(),t=jF(),r=Ve(),n=Cl(),i=n0();function a(o,s,l){(l?n(o,s,l):s===void 0)?s=1:s=i(s);var u=r(o)?e:t;return u(o,s)}return Bd=a,Bd}var DF=RF();const IF=zt(DF),NF=e=>GB(e,14),mw=e=>Object.values(e).reduce((t,r)=>t+r,0),LF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=mw(e),a=tw(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),v=Math.round(d*m/i);return[y,v]})),o=tw(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,v=Math.min(Math.round(d*m/i),t);return[y,v]})),s=rC(Object.entries(e).map(([y,m])=>{const d=a[y],v=o[y];return zs(d,v).map(w=>{const b=NF(m/(w+.5));return{party:y,quotient:b}})})),l=mw(a),u=t-l,c=zc(s,({quotient:y})=>-y),f=c[u-1].quotient,h=c.filter(({quotient:y})=>y>f),p=c.filter(({quotient:y})=>y===f);if(h.length+p.length===u)h.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...IF(p,u-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},Iu=e=>Math.round(e*1e10)/1e10,BF=e=>e.reduce((t,r)=>t+r.seats,0),qF=e=>e.flat(),FF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:Iu(e*Math.cos(i)),y:Iu(e*Math.sin(i))}},aC=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},Yo=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(aC(e,t,r,n)*t/r-i)},zF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=Yo(e,n,t,r),a=0;for(Yo(e,n+1,t,r)<i&&(a=1),Yo(e,n-1,t,r)<i&&n>1&&(a=-1);Yo(e,n+a,t,r)<i&&n>0;)i=Yo(e,n+a,t,r),n+=a;return n},UF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=Iu((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=Iu((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},WF=(e,t,r)=>{const n=BF(e),i=zF(n,t,r),a=aC(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=LF(o,n);const s=[];let l,u,c;for(let h=1;h<=i;h++){const p=[];l=t-(h-1)*a,u=r*l/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...FF(l,y*u,r),r:.4*a},p.push(c);s.push(p)}const f=Array(s.length).fill(0);for(const h of e)for(let p=0;p<h.seats;p++){const y=UF(s,f),m=s[y],d=f[y]??0,v=m==null?void 0:m[d];v&&(v.fill=h.colour,v.party=String(h.id)),f[y]=d+1}return qF(s)},HF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),GF={seatCount:!1,arcAngle:180,hFunction:Ol},KF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},GF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=WF(e,o,a),l=(((d=s[0])==null?void 0:d.r)??0)/.4||0,u=s.map(HF(i));r&&u.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const c=n<=180?o+l:o*(1+Math.sin((a-Math.PI)/2))+l,f=o+l,h=Math.max(c,f),p=n<=180?-o-l/2:-o*(1+Math.sin((a-Math.PI)/2))-l/2,y=i("defs",[AE(i),OE(i),TE(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-l/2,p,2*o+l,h].join(",")},[y,...u])},YF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Ol},XF=(e,t={})=>{const r={...YF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:l,spacing:u,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((K,B)=>K+B.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,v=n+i;for(let K=d;K<=v;K+=2.5){const B=K*Math.PI/180;for(let H=l;H>=s;H-=.1){const Z=H*2,R=Z*u,ot=Math.floor((a-p)/R);for(let U=1;U<=Math.min(ot,10);U++){let nt=0;for(let ft=0;ft<U;ft++){const st=p+(ft+.5)*R,ht=Z*u/st,Et=Math.floor(B/ht);nt+=Et}if(nt>=y){const ft=y/nt,st=(H-s)/(l-s),ht=(nt-y)/y,Et=ht<.15?1:ht<.3?.7:ht<.5?.4:.1,at=1-Math.abs(K-n)/i,dt=Et*.5+st*.3+ft*.15+at*.05;dt>m.score&&(m={seatSize:H,arcAngle:K,rings:U,score:dt})}}}}const w=m.seatSize,b=m.arcAngle,_=b*Math.PI/180,g=w*2,x=g*u,S=Math.floor((a-p)/x),A=[],T=-_/2-Math.PI/2,C=[];let P=0,E=[];for(let K=1;K<=S;K++){let B=0;const H=[];for(let Z=0;Z<K;Z++){const R=p+(Z+.5)*x,ot=g*u/R,U=Math.floor(_/ot);H.push(U),B+=U}if(B>=y){P=K,E=H;break}}if(P>0)C.push(...E);else for(let K=0;K<S;K++){const B=p+(K+.5)*x,H=g*u/B,Z=Math.floor(_/H);C.push(Z)}for(let K=0;K<C.length;K++){const B=p+(K+.5)*x,H=C[K]??0;if(H>0){const Z=_/H;for(let R=0;R<H;R++){const ot=T+(R+.5)*Z,U=Math.cos(ot)*B,nt=Math.sin(ot)*B;A.push({ring:K,index:R,angle:ot,x:U,y:nt})}}}A.sort((K,B)=>{const H=K.angle-B.angle;return Math.abs(H)>.001?H:K.ring-B.ring});const M=[];let $=0;e.forEach(K=>{const B=[],H=Math.min(K.seats,A.length-$);let Z=1/0,R=-1/0;for(let U=0;U<H&&$<A.length;U++){const nt=A[$++];nt&&(Z=Math.min(Z,nt.angle),R=Math.max(R,nt.angle),Math.sqrt(nt.x*nt.x+nt.y*nt.y),B.push(h("circle",{fill:K.colour,stroke:K.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${nt.x}, ${nt.y})`,r:w,"data-party":K.name,"data-party-id":String(K.id),style:"pointer-events: all; cursor: pointer;"})))}const ot=B;M.push(h("g",{className:"party-group","data-party":K.name,style:"opacity: 1; outline: none;"},ot))});const j=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),k=h("g",{className:"points-container"},M),I=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,q=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),AE(h),OE(h),TE(h)]),D=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[j,k,I].filter(Boolean)),L=_/2;let G;if(b<=180)G=a*Math.sin(L)+w;else{const K=L-Math.PI/2;G=a*(1+Math.sin(K))+w}const Y=a+w,z=a*2,V=Math.max(G,Y);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${z} ${V}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[D,q])};function oC(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?za.COMPLETED:e.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:e.color}function qy(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=Ye.animation.hoverOpacity.active:i.style.opacity=Ye.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Fy(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",Ye.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const VF=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:s,setActivePartyName:l,chartConfig:u,seatSize:c,shouldAnimate:f=!1,animationDirection:h="left-to-right",onAnimationComplete:p})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(x=>x.value>0).map(x=>{const S=r<=a?x.value:Math.max(1,Math.floor(x.value*y));return{id:String(x.id),name:x.label,seats:S,colour:x.color==="url(#hatchPattern)"?za.COMPLETED:x.color}}),d=i?XF(m,{arcAngle:n,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:c,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):KF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const v=RB(d),_=new DOMParser().parseFromString(v,"image/svg+xml").documentElement;if(!_)return;_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.style.width="100%",_.style.height="auto",_.style.display="block",i?ZF(_,m,t,o,s,l):JF(_,m,t,o,s,l);const g=()=>{if(o(null),l(null),i)qy(_,null);else{const x=_.querySelectorAll("circle");Fy(x,null)}};return _&&_.addEventListener("mouseleave",g),e.current.appendChild(_),f&&_&&NB(_,n,u.radius,h,900,p),()=>{if(_&&_.removeEventListener("mouseleave",g),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,s,l,e,u,c,f,h,p])};function ZF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),s=e.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(l=>{if(l){const u=l;u.style.stroke=Ye.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${Ye.animation.transitionDuration} ease, stroke-opacity ${Ye.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(l=>{if(!l)return;const u=l.getAttribute("data-party"),c=l.getAttribute("data-party-id"),f=()=>{if(u&&u!==i){const h=t.find(p=>p.name===u||String(p.id)===c);if(h){const p=r.find(y=>y.label===h.name||String(y.id)===h.id);if(p){const y=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),qy(e,h.name)}}}};l.addEventListener("mouseenter",f)}),i&&qy(e,i)}function JF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const l=s;l.style.cursor="pointer",l.style.stroke=Ye.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${Ye.animation.transitionDuration} ease, stroke-opacity ${Ye.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const l=s.getAttribute("class")||"",u=parseInt(l,10),c=t[u],f=()=>{if(c){const h=c.name;if(h&&h!==i){const p=r.find(y=>y.label===c.name||String(y.id)===c.id);if(p){const y=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),Fy(o,l)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(l=>l.name===i);if(s){const l=t.indexOf(s);Fy(o,String(l))}}}const qd=ds,yw={[gs]:za.NOT_APPLICABLE,[vs]:za.NO_LST,[bs]:za.DATA_MISSING},Xo=(e,t,r)=>{if(e in yw)return yw[e];const n=r-1-t,i=qd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return qd[o]??qd[0]??"#000000"},sC=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([gs,vs,bs].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:Xo(p.label,a.length-1-y,a.length)})),s=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:Xo(p.label,y,i.length)})),l=n,u={id:"no-lst",label:vs,value:r,color:Xo(vs,0,1)},c={id:"data-missing",label:bs,value:l,color:Xo(bs,0,1)},f={id:"n/a",label:gs,value:t,color:Xo(gs,0,1)},h=[];return f.value>0&&h.push(f),u.value>0&&h.push(u),c.value>0&&h.push(c),h.push(...s),h.push(...o),h},gw={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},QF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=Ye.useEnhanced,showTable:s=!0,shouldAnimate:l=!1,animationDirection:u="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,p]=O.useState(null),[y,m]=O.useState(null),v=sC({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,T=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:T}}),w=a??Vv({repositoryCount:t}),b=Zv({repositoryCount:t});VF({containerRef:f,processedData:v,totalRepositories:t,arcAngle:w,useEnhanced:o,maxSeats:Ye.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:Ye.chartConfig,seatSize:b,shouldAnimate:l,animationDirection:u,onAnimationComplete:c});const _=v.map(S=>{const A=S.value/t*100,T=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:T,color:S.color}}),g=t>Ye.maxSeats,x=g?Math.round(t/Ye.maxSeats):1;return W.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[W.jsxs(tt.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[W.jsx(tt.Box,{className:"parliament-chart-svg-container",ref:f,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),W.jsxs(tt.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[h&&W.jsxs(O.Fragment,{children:[W.jsx(tt.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:h.label}),W.jsxs(tt.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),g&&W.jsxs(tt.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:h?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[W.jsx(tt.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),W.jsxs(tt.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",x," repos"]})]})]})]}),s&&W.jsx(tt.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:W.jsxs(tt.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[W.jsx("thead",{children:W.jsxs(tt.TableRow,{children:[W.jsx(tt.TableCell,{}),W.jsx(tt.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),W.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),W.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),W.jsx("tbody",{children:_.map(S=>{const A=S.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:S.color;return W.jsxs(tt.TableRow,{onMouseEnter:()=>{m(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:S.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:y===S.label?`${A}15`:"transparent","&:hover":{backgroundColor:`${A}15`}},children:[W.jsx(tt.TableCell,{align:"center",sx:{width:20},children:W.jsx(tt.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?Ut.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.background:S.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:y===S.label?"scale(1.2)":"scale(1)",...S.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
48
48
  0deg,
49
49
  transparent,
50
50
  transparent 3px,
51
- ${Ft.greyHatch.lines} 3px,
52
- ${Ft.greyHatch.lines} 4px
51
+ ${Ut.greyHatch.lines} 3px,
52
+ ${Ut.greyHatch.lines} 4px
53
53
  )`,borderRadius:"50%"}},...S.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
54
54
  45deg,
55
55
  transparent,
56
56
  transparent 3px,
57
- ${Ft.dataMissingHatch.lines} 3px,
58
- ${Ft.dataMissingHatch.lines} 4px
57
+ ${Ut.dataMissingHatch.lines} 3px,
58
+ ${Ut.dataMissingHatch.lines} 4px
59
59
  )`,borderRadius:"50%"}},...S.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
60
60
  -45deg,
61
61
  transparent,
62
62
  transparent 3px,
63
- ${Ft.noLstHatch.lines} 3px,
64
- ${Ft.noLstHatch.lines} 4px
65
- )`,borderRadius:"50%"}}}})}),z.jsx(V.TableCell,{children:z.jsxs(V.Stack,{direction:"row",alignItems:"center",gap:.5,children:[z.jsx("span",{children:S.label}),I1[S.label]&&z.jsx(V.Tooltip,{title:I1[S.label],placement:"right",arrow:!0,children:z.jsx(lA.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),z.jsx(V.TableCell,{align:"right",children:S.value}),z.jsxs(V.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function TE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=TE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function At(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=TE(e))&&(n&&(n+=" "),n+=t);return n}var xF=vE();const Tr=qt(xF);var ad,N1;function wF(){if(N1)return ad;N1=1;function e(t){return t==null}return ad=e,ad}var SF=wF();const yt=qt(SF);var od,L1;function OF(){if(L1)return od;L1=1;var e=Tn(),t=Ue(),r=En(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return od=i,od}var AF=OF();const ki=qt(AF);var PF=Ag();const gt=qt(PF);var TF=Zn();const eo=qt(TF);var du={exports:{}},Rt={};/**
63
+ ${Ut.noLstHatch.lines} 3px,
64
+ ${Ut.noLstHatch.lines} 4px
65
+ )`,borderRadius:"50%"}}}})}),W.jsx(tt.TableCell,{children:W.jsxs(tt.Stack,{direction:"row",alignItems:"center",gap:.5,children:[W.jsx("span",{children:S.label}),gw[S.label]&&W.jsx(tt.Tooltip,{title:gw[S.label],placement:"right",arrow:!0,children:W.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),W.jsx(tt.TableCell,{align:"right",children:S.value}),W.jsxs(tt.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function lC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=lC(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Pt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=lC(e))&&(n&&(n+=" "),n+=t);return n}var t5=JE();const Ur=zt(t5);var Fd,vw;function e5(){if(vw)return Fd;vw=1;function e(t){return t==null}return Fd=e,Fd}var r5=e5();const gt=zt(r5);var zd,bw;function n5(){if(bw)return zd;bw=1;var e=Vn(),t=Ve(),r=Zn(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return zd=i,zd}var i5=n5();const oa=zt(i5);var a5=s0();const bt=zt(a5);var o5=xi();const ko=zt(o5);var Wl={exports:{}},Nt={};/**
66
66
  * @license React
67
67
  * react-is.production.min.js
68
68
  *
@@ -70,7 +70,7 @@
70
70
  *
71
71
  * This source code is licensed under the MIT license found in the
72
72
  * LICENSE file in the root directory of this source tree.
73
- */var B1;function EF(){if(B1)return Rt;B1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case e:switch(d=d.type,d){case r:case i:case n:case l:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case u:case h:case f:case a:return d;default:return g}}case t:return g}}}return Rt.ContextConsumer=o,Rt.ContextProvider=a,Rt.Element=e,Rt.ForwardRef=u,Rt.Fragment=r,Rt.Lazy=h,Rt.Memo=f,Rt.Portal=t,Rt.Profiler=i,Rt.StrictMode=n,Rt.Suspense=l,Rt.SuspenseList=c,Rt.isAsyncMode=function(){return!1},Rt.isConcurrentMode=function(){return!1},Rt.isContextConsumer=function(d){return m(d)===o},Rt.isContextProvider=function(d){return m(d)===a},Rt.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},Rt.isForwardRef=function(d){return m(d)===u},Rt.isFragment=function(d){return m(d)===r},Rt.isLazy=function(d){return m(d)===h},Rt.isMemo=function(d){return m(d)===f},Rt.isPortal=function(d){return m(d)===t},Rt.isProfiler=function(d){return m(d)===i},Rt.isStrictMode=function(d){return m(d)===n},Rt.isSuspense=function(d){return m(d)===l},Rt.isSuspenseList=function(d){return m(d)===c},Rt.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===l||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===u||d.$$typeof===y||d.getModuleId!==void 0)},Rt.typeOf=m,Rt}var It={};/**
73
+ */var _w;function s5(){if(_w)return Nt;_w=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var v=d.$$typeof;switch(v){case e:switch(d=d.type,d){case r:case i:case n:case u:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case l:case h:case f:case a:return d;default:return v}}case t:return v}}}return Nt.ContextConsumer=o,Nt.ContextProvider=a,Nt.Element=e,Nt.ForwardRef=l,Nt.Fragment=r,Nt.Lazy=h,Nt.Memo=f,Nt.Portal=t,Nt.Profiler=i,Nt.StrictMode=n,Nt.Suspense=u,Nt.SuspenseList=c,Nt.isAsyncMode=function(){return!1},Nt.isConcurrentMode=function(){return!1},Nt.isContextConsumer=function(d){return m(d)===o},Nt.isContextProvider=function(d){return m(d)===a},Nt.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},Nt.isForwardRef=function(d){return m(d)===l},Nt.isFragment=function(d){return m(d)===r},Nt.isLazy=function(d){return m(d)===h},Nt.isMemo=function(d){return m(d)===f},Nt.isPortal=function(d){return m(d)===t},Nt.isProfiler=function(d){return m(d)===i},Nt.isStrictMode=function(d){return m(d)===n},Nt.isSuspense=function(d){return m(d)===u},Nt.isSuspenseList=function(d){return m(d)===c},Nt.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===u||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===y||d.getModuleId!==void 0)},Nt.typeOf=m,Nt}var Lt={};/**
74
74
  * @license React
75
75
  * react-is.development.js
76
76
  *
@@ -78,83 +78,83 @@
78
78
  *
79
79
  * This source code is licensed under the MIT license found in the
80
80
  * LICENSE file in the root directory of this source tree.
81
- */var q1;function CF(){return q1||(q1=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,g=!1,_=!1,b;b=Symbol.for("react.module.reference");function x(H){return!!(typeof H=="string"||typeof H=="function"||H===r||H===i||_||H===n||H===l||H===c||g||H===p||y||m||d||typeof H=="object"&&H!==null&&(H.$$typeof===h||H.$$typeof===f||H.$$typeof===a||H.$$typeof===o||H.$$typeof===u||H.$$typeof===b||H.getModuleId!==void 0))}function v(H){if(typeof H=="object"&&H!==null){var st=H.$$typeof;switch(st){case e:var ht=H.type;switch(ht){case r:case i:case n:case l:case c:return ht;default:var at=ht&&ht.$$typeof;switch(at){case s:case o:case u:case h:case f:case a:return at;default:return st}}case t:return st}}}var w=o,S=a,A=e,P=u,C=r,T=h,E=f,k=t,j=i,$=n,M=l,I=c,L=!1,q=!1;function R(H){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(H){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(H){return v(H)===o}function U(H){return v(H)===a}function W(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function X(H){return v(H)===u}function Z(H){return v(H)===r}function Q(H){return v(H)===h}function K(H){return v(H)===f}function F(H){return v(H)===t}function G(H){return v(H)===i}function J(H){return v(H)===n}function N(H){return v(H)===l}function ut(H){return v(H)===c}It.ContextConsumer=w,It.ContextProvider=S,It.Element=A,It.ForwardRef=P,It.Fragment=C,It.Lazy=T,It.Memo=E,It.Portal=k,It.Profiler=j,It.StrictMode=$,It.Suspense=M,It.SuspenseList=I,It.isAsyncMode=R,It.isConcurrentMode=D,It.isContextConsumer=B,It.isContextProvider=U,It.isElement=W,It.isForwardRef=X,It.isFragment=Z,It.isLazy=Q,It.isMemo=K,It.isPortal=F,It.isProfiler=G,It.isStrictMode=J,It.isSuspense=N,It.isSuspenseList=ut,It.isValidElementType=x,It.typeOf=v})()),It}var F1;function MF(){return F1||(F1=1,process.env.NODE_ENV==="production"?du.exports=EF():du.exports=CF()),du.exports}var kF=MF(),sd,z1;function EE(){if(z1)return sd;z1=1;var e=Tn(),t=En(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return sd=n,sd}var ud,U1;function $F(){if(U1)return ud;U1=1;var e=EE();function t(r){return e(r)&&r!=+r}return ud=t,ud}var jF=$F();const ro=qt(jF);var DF=EE();const RF=qt(DF);var Nr=function(t){return t===0?0:t>0?1:-1},mi=function(t){return ki(t)&&t.indexOf("%")===t.length-1},nt=function(t){return RF(t)&&!ro(t)},IF=function(t){return yt(t)},ge=function(t){return nt(t)||ki(t)},NF=0,zi=function(t){var r=++NF;return"".concat(t||"").concat(r)},$i=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!nt(t)&&!ki(t))return n;var a;if(mi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return ro(a)&&(a=n),i&&a>r&&(a=r),a},In=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},LF=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ce=function(t,r){return nt(t)&&nt(r)?function(n){return t+n*(r-t)}:function(){return r}};function sl(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Tr(n,t))===r})}var BF=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,u=-1/0,l=0,c=0,f=0;f<r;f++)l=t[f].cx||0,c=t[f].cy||0,n+=l,i+=c,a+=l*c,o+=l*l,s=Math.min(s,l),u=Math.max(u,l);var h=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:u,a:h,b:(i-h*n)/r}},qF=function(t,r){return nt(t)&&nt(r)?t-r:ki(t)&&ki(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function da(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function oy(e){"@babel/helpers - typeof";return oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oy(e)}var FF=["viewBox","children"],zF=["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"],W1=["points","pathLength"],ld={svg:FF,polygon:W1,polyline:W1},Rg=["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"],ul=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!eo(n))return null;var i={};return Object.keys(n).forEach(function(a){Rg.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},UF=function(t,r,n){return function(i){return t(r,n,i),null}},ps=function(t,r,n){if(!eo(t)||oy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Rg.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=UF(o,r,n))}),i},WF=["children"],GF=["children"];function G1(e,t){if(e==null)return{};var r=HF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sy(e){"@babel/helpers - typeof";return sy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sy(e)}var H1={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"},vn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},K1=null,cd=null,Ig=function e(t){if(t===K1&&Array.isArray(cd))return cd;var r=[];return O.Children.forEach(t,function(n){yt(n)||(kF.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),cd=r,K1=t,r};function tr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return vn(i)}):n=[vn(t)],Ig(e).forEach(function(i){var a=Tr(i,"type.displayName")||Tr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ur(e,t){var r=tr(e,t);return r&&r[0]}var Y1=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!nt(n)||n<=0||!nt(i)||i<=0)},KF=["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"],YF=function(t){return t&&t.type&&ki(t.type)&&KF.indexOf(t.type)>=0},CE=function(t){return t&&sy(t)==="object"&&"clipDot"in t},XF=function(t,r,n,i){var a,o=(a=ld==null?void 0:ld[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!gt(t)&&(i&&o.includes(r)||zF.includes(r))||n&&Rg.includes(r)},vt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!eo(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;XF((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},uy=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return X1(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!X1(a,o))return!1}return!0},X1=function(t,r){if(yt(t)&&yt(r))return!0;if(!yt(t)&&!yt(r)){var n=t.props||{},i=n.children,a=G1(n,WF),o=r.props||{},s=o.children,u=G1(o,GF);return i&&s?da(a,u)&&uy(i,s):!i&&!s?da(a,u):!1}return!1},V1=function(t,r){var n=[],i={};return Ig(t).forEach(function(a,o){if(YF(a))n.push(a);else if(a){var s=vn(a.type),u=r[s]||{},l=u.handler,c=u.once;if(l&&(!c||!i[s])){var f=l(a,s,o);n.push(f),i[s]=!0}}}),n},VF=function(t){var r=t&&t.type;return r&&H1[r]?H1[r]:null},ZF=function(t,r){return Ig(r).indexOf(t)},JF=["children","width","height","viewBox","className","style","title","desc"];function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ly.apply(this,arguments)}function QF(e,t){if(e==null)return{};var r=tz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,u=e.desc,l=QF(e,JF),c=i||{width:r,height:n,x:0,y:0},f=At("recharts-surface",a);return O.createElement("svg",ly({},vt(l,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,u),t)}var ez=["children","className"];function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fy.apply(this,arguments)}function rz(e,t){if(e==null)return{};var r=nz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var jt=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=rz(e,ez),a=At("recharts-layer",n);return O.createElement("g",fy({className:a},vt(i,!0),{ref:t}),r)}),iz=process.env.NODE_ENV!=="production",gn=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(iz&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},fd,Z1;function az(){if(Z1)return fd;Z1=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return fd=e,fd}var hd,J1;function oz(){if(J1)return hd;J1=1;var e=az();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return hd=t,hd}var pd,Q1;function ME(){if(Q1)return pd;Q1=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function u(l){return s.test(l)}return pd=u,pd}var dd,tw;function sz(){if(tw)return dd;tw=1;function e(t){return t.split("")}return dd=e,dd}var md,ew;function uz(){if(ew)return md;ew=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+u+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=l+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",g=m+y+d,_="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(u+"(?="+u+")|"+_+g,"g");function x(v){return v.match(b)||[]}return md=x,md}var yd,rw;function lz(){if(rw)return yd;rw=1;var e=sz(),t=ME(),r=uz();function n(i){return t(i)?r(i):e(i)}return yd=n,yd}var vd,nw;function cz(){if(nw)return vd;nw=1;var e=oz(),t=ME(),r=lz(),n=wg();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,u=s?s[0]:o.charAt(0),l=s?e(s,1).join(""):o.slice(1);return u[a]()+l}}return vd=i,vd}var gd,iw;function fz(){if(iw)return gd;iw=1;var e=cz(),t=e("toUpperCase");return gd=t,gd}var hz=fz();const pc=qt(hz);function ds(e){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ds(e)}var pz=["type","size","sizeType"];function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hy.apply(this,arguments)}function aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(n){dz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dz(e,t,r){return t=mz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mz(e){var t=yz(e,"string");return ds(t)=="symbol"?t:t+""}function yz(e,t){if(ds(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vz(e,t){if(e==null)return{};var r=gz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var kE={symbolCircle:Yv,symbolCross:TR,symbolDiamond:CR,symbolSquare:MR,symbolStar:DR,symbolTriangle:RR,symbolWye:NR},bz=Math.PI/180,_z=function(t){var r="symbol".concat(pc(t));return kE[r]||Yv},xz=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*bz;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},wz=function(t,r){kE["symbol".concat(pc(t))]=r},dc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,u=vz(t,pz),l=ow(ow({},u),{},{type:n,size:a,sizeType:s}),c=function(){var d=_z(n),g=LR().type(d).size(xz(a,s,n));return g()},f=l.className,h=l.cx,p=l.cy,y=vt(l,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",hy({},y,{className:At("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};dc.registerSymbol=wz;function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ea(e)}function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},py.apply(this,arguments)}function sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sw(Object(r),!0).forEach(function(n){ms(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Az(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jE(n.key),n)}}function Pz(e,t,r){return t&&Az(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tz(e,t,r){return t=ll(t),Ez(e,$E()?Reflect.construct(t,r||[],ll(e).constructor):t.apply(e,r))}function Ez(e,t){if(t&&(Ea(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cz(e)}function Cz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($E=function(){return!!e})()}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ll(e)}function Mz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dy(e,t)}function dy(e,t){return dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dy(e,t)}function ms(e,t,r){return t=jE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jE(e){var t=kz(e,"string");return Ea(t)=="symbol"?t:t+""}function kz(e,t){if(Ea(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var br=32,Ng=(function(e){function t(){return Oz(this,t),Tz(this,t,arguments)}return Mz(t,e),Pz(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=br/2,o=br/6,s=br/3,u=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:br,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(s,`
81
+ */var xw;function l5(){return xw||(xw=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,v=!1,w=!1,b;b=Symbol.for("react.module.reference");function _(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===i||w||U===n||U===u||U===c||v||U===p||y||m||d||typeof U=="object"&&U!==null&&(U.$$typeof===h||U.$$typeof===f||U.$$typeof===a||U.$$typeof===o||U.$$typeof===l||U.$$typeof===b||U.getModuleId!==void 0))}function g(U){if(typeof U=="object"&&U!==null){var nt=U.$$typeof;switch(nt){case e:var ft=U.type;switch(ft){case r:case i:case n:case u:case c:return ft;default:var st=ft&&ft.$$typeof;switch(st){case s:case o:case l:case h:case f:case a:return st;default:return nt}}case t:return nt}}}var x=o,S=a,A=e,T=l,C=r,P=h,E=f,M=t,$=i,j=n,k=u,I=c,q=!1,F=!1;function N(U){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(U){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(U){return g(U)===o}function G(U){return g(U)===a}function Y(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function z(U){return g(U)===l}function V(U){return g(U)===r}function Q(U){return g(U)===h}function K(U){return g(U)===f}function B(U){return g(U)===t}function H(U){return g(U)===i}function Z(U){return g(U)===n}function R(U){return g(U)===u}function ot(U){return g(U)===c}Lt.ContextConsumer=x,Lt.ContextProvider=S,Lt.Element=A,Lt.ForwardRef=T,Lt.Fragment=C,Lt.Lazy=P,Lt.Memo=E,Lt.Portal=M,Lt.Profiler=$,Lt.StrictMode=j,Lt.Suspense=k,Lt.SuspenseList=I,Lt.isAsyncMode=N,Lt.isConcurrentMode=D,Lt.isContextConsumer=L,Lt.isContextProvider=G,Lt.isElement=Y,Lt.isForwardRef=z,Lt.isFragment=V,Lt.isLazy=Q,Lt.isMemo=K,Lt.isPortal=B,Lt.isProfiler=H,Lt.isStrictMode=Z,Lt.isSuspense=R,Lt.isSuspenseList=ot,Lt.isValidElementType=_,Lt.typeOf=g})()),Lt}var ww;function u5(){return ww||(ww=1,process.env.NODE_ENV==="production"?Wl.exports=s5():Wl.exports=l5()),Wl.exports}var c5=u5(),Ud,Sw;function uC(){if(Sw)return Ud;Sw=1;var e=Vn(),t=Zn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Ud=n,Ud}var Wd,Aw;function f5(){if(Aw)return Wd;Aw=1;var e=uC();function t(r){return e(r)&&r!=+r}return Wd=t,Wd}var h5=f5();const $o=zt(h5);var p5=uC();const d5=zt(p5);var on=function(t){return t===0?0:t>0?1:-1},Wi=function(t){return oa(t)&&t.indexOf("%")===t.length-1},it=function(t){return d5(t)&&!$o(t)},m5=function(t){return gt(t)},xe=function(t){return it(t)||oa(t)},y5=0,ga=function(t){var r=++y5;return"".concat(t||"").concat(r)},sa=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!it(t)&&!oa(t))return n;var a;if(Wi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return $o(a)&&(a=n),i&&a>r&&(a=r),a},oi=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},g5=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},le=function(t,r){return it(t)&&it(r)?function(n){return t+n*(r-t)}:function(){return r}};function Nu(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ur(n,t))===r})}var v5=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,i+=c,a+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var h=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:l,a:h,b:(i-h*n)/r}},b5=function(t,r){return it(t)&&it(r)?t-r:oa(t)&&oa(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ua(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function zy(e){"@babel/helpers - typeof";return zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zy(e)}var _5=["viewBox","children"],x5=["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"],Ow=["points","pathLength"],Hd={svg:_5,polygon:Ow,polyline:Ow},g0=["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"],Lu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!ko(n))return null;var i={};return Object.keys(n).forEach(function(a){g0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},w5=function(t,r,n){return function(i){return t(r,n,i),null}},Us=function(t,r,n){if(!ko(t)||zy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];g0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=w5(o,r,n))}),i},S5=["children"],A5=["children"];function Tw(e,t){if(e==null)return{};var r=O5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Uy(e){"@babel/helpers - typeof";return Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uy(e)}var Pw={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"},qn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Ew=null,Gd=null,v0=function e(t){if(t===Ew&&Array.isArray(Gd))return Gd;var r=[];return O.Children.forEach(t,function(n){gt(n)||(c5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Gd=r,Ew=t,r};function ur(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return qn(i)}):n=[qn(t)],v0(e).forEach(function(i){var a=Ur(i,"type.displayName")||Ur(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function _r(e,t){var r=ur(e,t);return r&&r[0]}var Cw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!it(n)||n<=0||!it(i)||i<=0)},T5=["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"],P5=function(t){return t&&t.type&&oa(t.type)&&T5.indexOf(t.type)>=0},cC=function(t){return t&&Uy(t)==="object"&&"clipDot"in t},E5=function(t,r,n,i){var a,o=(a=Hd==null?void 0:Hd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!bt(t)&&(i&&o.includes(r)||x5.includes(r))||n&&g0.includes(r)},vt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!ko(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;E5((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Wy=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Mw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Mw(a,o))return!1}return!0},Mw=function(t,r){if(gt(t)&&gt(r))return!0;if(!gt(t)&&!gt(r)){var n=t.props||{},i=n.children,a=Tw(n,S5),o=r.props||{},s=o.children,l=Tw(o,A5);return i&&s?Ua(a,l)&&Wy(i,s):!i&&!s?Ua(a,l):!1}return!1},kw=function(t,r){var n=[],i={};return v0(t).forEach(function(a,o){if(P5(a))n.push(a);else if(a){var s=qn(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},C5=function(t){var r=t&&t.type;return r&&Pw[r]?Pw[r]:null},M5=function(t,r){return v0(r).indexOf(t)},k5=["children","width","height","viewBox","className","style","title","desc"];function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hy.apply(this,arguments)}function $5(e,t){if(e==null)return{};var r=j5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=$5(e,k5),c=i||{width:r,height:n,x:0,y:0},f=Pt("recharts-surface",a);return O.createElement("svg",Hy({},vt(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),t)}var R5=["children","className"];function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky.apply(this,arguments)}function D5(e,t){if(e==null)return{};var r=I5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var It=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=D5(e,R5),a=Pt("recharts-layer",n);return O.createElement("g",Ky({className:a},vt(i,!0),{ref:t}),r)}),N5=process.env.NODE_ENV!=="production",Fn=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(N5&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Kd,$w;function L5(){if($w)return Kd;$w=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Kd=e,Kd}var Yd,jw;function B5(){if(jw)return Yd;jw=1;var e=L5();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Yd=t,Yd}var Xd,Rw;function fC(){if(Rw)return Xd;Rw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(u){return s.test(u)}return Xd=l,Xd}var Vd,Dw;function q5(){if(Dw)return Vd;Dw=1;function e(t){return t.split("")}return Vd=e,Vd}var Zd,Iw;function F5(){if(Iw)return Zd;Iw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=u+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",v=m+y+d,w="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(l+"(?="+l+")|"+w+v,"g");function _(g){return g.match(b)||[]}return Zd=_,Zd}var Jd,Nw;function z5(){if(Nw)return Jd;Nw=1;var e=q5(),t=fC(),r=F5();function n(i){return t(i)?r(i):e(i)}return Jd=n,Jd}var Qd,Lw;function U5(){if(Lw)return Qd;Lw=1;var e=B5(),t=fC(),r=z5(),n=i0();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return l[a]()+u}}return Qd=i,Qd}var tm,Bw;function W5(){if(Bw)return tm;Bw=1;var e=U5(),t=e("toUpperCase");return tm=t,tm}var H5=W5();const Uc=zt(H5);function Ws(e){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(e)}var G5=["type","size","sizeType"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){K5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K5(e,t,r){return t=Y5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y5(e){var t=X5(e,"string");return Ws(t)=="symbol"?t:t+""}function X5(e,t){if(Ws(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ws(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V5(e,t){if(e==null)return{};var r=Z5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hC={symbolCircle:Mv,symbolCross:aI,symbolDiamond:sI,symbolSquare:lI,symbolStar:hI,symbolTriangle:pI,symbolWye:mI},J5=Math.PI/180,Q5=function(t){var r="symbol".concat(Uc(t));return hC[r]||Mv},tz=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*J5;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},ez=function(t,r){hC["symbol".concat(Uc(t))]=r},Wc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=V5(t,G5),u=Fw(Fw({},l),{},{type:n,size:a,sizeType:s}),c=function(){var d=Q5(n),v=yI().type(d).size(tz(a,s,n));return v()},f=u.className,h=u.cx,p=u.cy,y=vt(u,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",Yy({},y,{className:Pt("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Wc.registerSymbol=ez;function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xy.apply(this,arguments)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){Hs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dC(n.key),n)}}function az(e,t,r){return t&&iz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oz(e,t,r){return t=Bu(t),sz(e,pC()?Reflect.construct(t,r||[],Bu(e).constructor):t.apply(e,r))}function sz(e,t){if(t&&(no(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lz(e)}function lz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pC=function(){return!!e})()}function Bu(e){return Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bu(e)}function uz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vy(e,t)}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vy(e,t)}function Hs(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=cz(e,"string");return no(t)=="symbol"?t:t+""}function cz(e,t){if(no(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(no(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dr=32,b0=(function(e){function t(){return nz(this,t),oz(this,t,arguments)}return uz(t,e),az(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Dr/2,o=Dr/6,s=Dr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Dr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
82
82
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
83
- H`).concat(br,"M").concat(2*s,",").concat(a,`
84
- A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(br/8,"h").concat(br,"v").concat(br*3/4,"h").concat(-br,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var l=Sz({},n);return delete l.legendIcon,O.cloneElement(n.legendIcon,l)}return O.createElement(dc,{fill:u,cx:a,cy:a,size:br,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,u=i.formatter,l=i.inactiveColor,c={x:0,y:0,width:br,height:br},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||u,d=At(ms(ms({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=gt(p.value)?null:p.value;gn(!gt(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=p.inactive?l:p.color;return O.createElement("li",py({className:d,style:f,key:"legend-item-".concat(y)},ps(n.props,p,y)),O.createElement(cy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},m?m(g,p,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);ms(Ng,"displayName","Legend");ms(Ng,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var bd,uw;function DE(){if(uw)return bd;uw=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return bd=e,bd}var _d,lw;function $z(){if(lw)return _d;lw=1;function e(t){return t!==t}return _d=e,_d}var xd,cw;function jz(){if(cw)return xd;cw=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return xd=e,xd}var wd,fw;function Dz(){if(fw)return wd;fw=1;var e=DE(),t=$z(),r=jz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return wd=n,wd}var Sd,hw;function Rz(){if(hw)return Sd;hw=1;var e=Dz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Sd=t,Sd}var Od,pw;function Iz(){if(pw)return Od;pw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Od=e,Od}var Ad,dw;function Nz(){if(dw)return Ad;dw=1;function e(){}return Ad=e,Ad}var Pd,mw;function Lz(){if(mw)return Pd;mw=1;var e=dE(),t=Nz(),r=Mg(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Pd=i,Pd}var Td,yw;function Bz(){if(yw)return Td;yw=1;var e=oE(),t=Rz(),r=Iz(),n=uE(),i=Lz(),a=Mg(),o=200;function s(u,l,c){var f=-1,h=t,p=u.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var g=l?null:i(u);if(g)return a(g);y=!1,h=n,d=new e}else d=l?[]:m;t:for(;++f<p;){var _=u[f],b=l?l(_):_;if(_=c||_!==0?_:0,y&&b===b){for(var x=d.length;x--;)if(d[x]===b)continue t;l&&d.push(b),m.push(_)}else h(d,b,c)||(d!==m&&d.push(b),m.push(_))}return m}return Td=s,Td}var Ed,vw;function qz(){if(vw)return Ed;vw=1;var e=Jn(),t=Bz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Ed=r,Ed}var Fz=qz();const gw=qt(Fz);function RE(e,t,r){return t===!0?gw(e,r):gt(t)?gw(e,t):e}function Ca(e){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}var zz=["ref"];function bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bw(Object(r),!0).forEach(function(n){mc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,NE(n.key),n)}}function Wz(e,t,r){return t&&_w(e.prototype,t),r&&_w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gz(e,t,r){return t=cl(t),Hz(e,IE()?Reflect.construct(t,r||[],cl(e).constructor):t.apply(e,r))}function Hz(e,t){if(t&&(Ca(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kz(e)}function Kz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IE=function(){return!!e})()}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cl(e)}function Yz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&my(e,t)}function my(e,t){return my=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},my(e,t)}function mc(e,t,r){return t=NE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NE(e){var t=Xz(e,"string");return Ca(t)=="symbol"?t:t+""}function Xz(e,t){if(Ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vz(e,t){if(e==null)return{};var r=Zz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Jz(e){return e.value}function Qz(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Vz(t,zz);return O.createElement(Ng,r)}var xw=1,Si=(function(e){function t(){var r;Uz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Gz(this,t,[].concat(i)),mc(r,"lastBoundingBox",{width:-1,height:-1}),r}return Yz(t,e),Wz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>xw||Math.abs(i.height-this.lastBoundingBox.height)>xw)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?cn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,u=i.margin,l=i.chartWidth,c=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((l||0)-p.width)/2}}else f=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((c||0)-y.height)/2}}else h=s==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return cn(cn({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,u=i.wrapperStyle,l=i.payloadUniqBy,c=i.payload,f=cn(cn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},Qz(a,cn(cn({},this.props),{},{payload:RE(c,l,Jz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=cn(cn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&nt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);mc(Si,"displayName","Legend");mc(Si,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yy.apply(this,arguments)}function t5(e,t){return i5(e)||n5(e,t)||r5(e,t)||e5()}function e5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r5(e,t){if(e){if(typeof e=="string")return ww(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ww(e,t)}}function ww(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n5(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function i5(e){if(Array.isArray(e))return e}function Sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sw(Object(r),!0).forEach(function(n){a5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a5(e,t,r){return t=o5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o5(e){var t=s5(e,"string");return ys(t)=="symbol"?t:t+""}function s5(e,t){if(ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u5(e){return Array.isArray(e)&&ge(e[0])&&ge(e[1])?e.join(" ~ "):e}var l5=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,u=t.labelStyle,l=u===void 0?{}:u,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,g=t.accessibilityLayer,_=g===void 0?!1:g,b=function(){if(c&&c.length){var E={padding:0,margin:0},k=(h?hc(c,h):c).map(function(j,$){if(j.type==="none")return null;var M=Cd({display:"block",paddingTop:4,paddingBottom:4,color:j.color||"#000"},s),I=j.formatter||f||u5,L=j.value,q=j.name,R=L,D=q;if(I&&R!=null&&D!=null){var B=I(L,q,j,$,c);if(Array.isArray(B)){var U=t5(B,2);R=U[0],D=U[1]}else R=B}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:M},ge(D)?O.createElement("span",{className:"recharts-tooltip-item-name"},D):null,ge(D)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},R),O.createElement("span",{className:"recharts-tooltip-item-unit"},j.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},k)}return null},x=Cd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),v=Cd({margin:0},l),w=!yt(m),S=w?m:"",A=At("recharts-default-tooltip",p),P=At("recharts-tooltip-label",y);w&&d&&c!==void 0&&c!==null&&(S=d(m,c));var C=_?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",yy({className:A,style:x},C),O.createElement("p",{className:P,style:v},O.isValidElement(S)?S:"".concat(S)),b())};function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}function mu(e,t,r){return t=c5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c5(e){var t=f5(e,"string");return vs(t)=="symbol"?t:t+""}function f5(e,t){if(vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xo="recharts-tooltip-wrapper",h5={visibility:"hidden"};function p5(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return At(xo,mu(mu(mu(mu({},"".concat(xo,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(xo,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(xo,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(xo,"-top"),nt(n)&&t&&nt(t.y)&&n<t.y))}function Ow(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,u=e.viewBox,l=e.viewBoxDimension;if(a&&nt(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=u[n];return h<p?Math.max(f,u[n]):Math.max(c,u[n])}var y=f+s,m=u[n]+l;return y>m?Math.max(c,u[n]):Math.max(f,u[n])}function d5(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function m5(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,u=e.viewBox,l,c,f;return o.height>0&&o.width>0&&r?(c=Ow({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=Ow({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),l=d5({translateX:c,translateY:f,useTranslate3d:s})):l=h5,{cssProperties:l,cssClasses:p5({translateX:c,translateY:f,coordinate:r})}}function Ma(e){"@babel/helpers - typeof";return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ma(e)}function Aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aw(Object(r),!0).forEach(function(n){gy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BE(n.key),n)}}function g5(e,t,r){return t&&v5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function b5(e,t,r){return t=fl(t),_5(e,LE()?Reflect.construct(t,r||[],fl(e).constructor):t.apply(e,r))}function _5(e,t){if(t&&(Ma(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x5(e)}function x5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LE=function(){return!!e})()}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fl(e)}function w5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vy(e,t)}function vy(e,t){return vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vy(e,t)}function gy(e,t,r){return t=BE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BE(e){var t=S5(e,"string");return Ma(t)=="symbol"?t:t+""}function S5(e,t){if(Ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tw=1,O5=(function(e){function t(){var r;y5(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=b5(this,t,[].concat(i)),gy(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),gy(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,u,l,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&s!==void 0?s:0,y:(l=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&l!==void 0?l:0}})}}),r}return w5(t,e),g5(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Tw||Math.abs(n.height-this.state.lastBoundingBox.height)>Tw)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,l=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,g=i.viewBox,_=i.wrapperStyle,b=m5({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:g}),x=b.cssClasses,v=b.cssProperties,w=Pw(Pw({transition:h&&a?"transform ".concat(s,"ms ").concat(u):void 0},v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},_);return O.createElement("div",{tabIndex:-1,className:x,style:w,ref:function(A){n.wrapperNode=A}},l)}}])})(O.PureComponent),A5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Qn={isSsr:A5()};function ka(e){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}function Ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ew(Object(r),!0).forEach(function(n){Lg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FE(n.key),n)}}function E5(e,t,r){return t&&T5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C5(e,t,r){return t=hl(t),M5(e,qE()?Reflect.construct(t,r||[],hl(e).constructor):t.apply(e,r))}function M5(e,t){if(t&&(ka(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k5(e)}function k5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qE=function(){return!!e})()}function hl(e){return hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hl(e)}function $5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&by(e,t)}function by(e,t){return by=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},by(e,t)}function Lg(e,t,r){return t=FE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FE(e){var t=j5(e,"string");return ka(t)=="symbol"?t:t+""}function j5(e,t){if(ka(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ka(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function D5(e){return e.dataKey}function R5(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(l5,t)}var Kr=(function(e){function t(){return P5(this,t),C5(this,t,arguments)}return $5(t,e),E5(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,l=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,g=i.reverseDirection,_=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,v=y??[];f&&v.length&&(v=RE(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,D5));var w=v.length>0;return O.createElement(O5,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:p,position:d,reverseDirection:g,useTranslate3d:_,viewBox:b,wrapperStyle:x},R5(l,Cw(Cw({},this.props),{},{payload:v})))}}])})(O.PureComponent);Lg(Kr,"displayName","Tooltip");Lg(Kr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Qn.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 Md,Mw;function I5(){if(Mw)return Md;Mw=1;var e=Fr(),t=function(){return e.Date.now()};return Md=t,Md}var kd,kw;function N5(){if(kw)return kd;kw=1;var e=Zn(),t=I5(),r=_g(),n="Expected a function",i=Math.max,a=Math.min;function o(s,u,l){var c,f,h,p,y,m,d=0,g=!1,_=!1,b=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(g=!!l.leading,_="maxWait"in l,h=_?i(r(l.maxWait)||0,u):h,b="trailing"in l?!!l.trailing:b);function x(k){var j=c,$=f;return c=f=void 0,d=k,p=s.apply($,j),p}function v(k){return d=k,y=setTimeout(A,u),g?x(k):p}function w(k){var j=k-m,$=k-d,M=u-j;return _?a(M,h-$):M}function S(k){var j=k-m,$=k-d;return m===void 0||j>=u||j<0||_&&$>=h}function A(){var k=t();if(S(k))return P(k);y=setTimeout(A,w(k))}function P(k){return y=void 0,b&&c?x(k):(c=f=void 0,p)}function C(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function T(){return y===void 0?p:P(t())}function E(){var k=t(),j=S(k);if(c=arguments,f=this,m=k,j){if(y===void 0)return v(m);if(_)return clearTimeout(y),y=setTimeout(A,u),x(m)}return y===void 0&&(y=setTimeout(A,u)),p}return E.cancel=C,E.flush=T,E}return kd=o,kd}var $d,$w;function L5(){if($w)return $d;$w=1;var e=N5(),t=Zn(),r="Expected a function";function n(i,a,o){var s=!0,u=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(i,a,{leading:s,maxWait:a,trailing:u})}return $d=n,$d}var B5=L5();const zE=qt(B5);function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}function jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(r),!0).forEach(function(n){q5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q5(e,t,r){return t=F5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F5(e){var t=z5(e,"string");return gs(t)=="symbol"?t:t+""}function z5(e,t){if(gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U5(e,t){return K5(e)||H5(e,t)||G5(e,t)||W5()}function W5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G5(e,t){if(e){if(typeof e=="string")return Dw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dw(e,t)}}function Dw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function H5(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function K5(e){if(Array.isArray(e))return e}var Y5=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,u=s===void 0?"100%":s,l=e.minWidth,c=l===void 0?0:l,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,g=e.className,_=e.onResize,b=e.style,x=b===void 0?{}:b,v=O.useRef(null),w=O.useRef();w.current=_,O.useImperativeHandle(t,function(){return Object.defineProperty(v.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),v.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=U5(S,2),P=A[0],C=A[1],T=O.useCallback(function(k,j){C(function($){var M=Math.round(k),I=Math.round(j);return $.containerWidth===M&&$.containerHeight===I?$:{containerWidth:M,containerHeight:I}})},[]);O.useEffect(function(){var k=function(q){var R,D=q[0].contentRect,B=D.width,U=D.height;T(B,U),(R=w.current)===null||R===void 0||R.call(w,B,U)};m>0&&(k=zE(k,m,{trailing:!0,leading:!1}));var j=new ResizeObserver(k),$=v.current.getBoundingClientRect(),M=$.width,I=$.height;return T(M,I),j.observe(v.current),function(){j.disconnect()}},[T,m]);var E=O.useMemo(function(){var k=P.containerWidth,j=P.containerHeight;if(k<0||j<0)return null;gn(mi(o)||mi(u),`The width(%s) and height(%s) are both fixed numbers,
87
- maybe you don't need to use a ResponsiveContainer.`,o,u),gn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=mi(o)?k:o,M=mi(u)?j:u;r&&r>0&&($?M=$/r:M&&($=M*r),h&&M>h&&(M=h)),gn($>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
83
+ H`).concat(Dr,"M").concat(2*s,",").concat(a,`
84
+ A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Dr/8,"h").concat(Dr,"v").concat(Dr*3/4,"h").concat(-Dr,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var u=rz({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.createElement(Wc,{fill:l,cx:a,cy:a,size:Dr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Dr,height:Dr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||l,d=Pt(Hs(Hs({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=bt(p.value)?null:p.value;Fn(!bt(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?u:p.color;return O.createElement("li",Xy({className:d,style:f,key:"legend-item-".concat(y)},Us(n.props,p,y)),O.createElement(Gy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},m?m(v,p,y):v))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);Hs(b0,"displayName","Legend");Hs(b0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var em,Uw;function mC(){if(Uw)return em;Uw=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return em=e,em}var rm,Ww;function fz(){if(Ww)return rm;Ww=1;function e(t){return t!==t}return rm=e,rm}var nm,Hw;function hz(){if(Hw)return nm;Hw=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return nm=e,nm}var im,Gw;function pz(){if(Gw)return im;Gw=1;var e=mC(),t=fz(),r=hz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return im=n,im}var am,Kw;function dz(){if(Kw)return am;Kw=1;var e=pz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return am=t,am}var om,Yw;function mz(){if(Yw)return om;Yw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return om=e,om}var sm,Xw;function yz(){if(Xw)return sm;Xw=1;function e(){}return sm=e,sm}var lm,Vw;function gz(){if(Vw)return lm;Vw=1;var e=XE(),t=yz(),r=h0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return lm=i,lm}var um,Zw;function vz(){if(Zw)return um;Zw=1;var e=FE(),t=dz(),r=mz(),n=UE(),i=gz(),a=h0(),o=200;function s(l,u,c){var f=-1,h=t,p=l.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var v=u?null:i(l);if(v)return a(v);y=!1,h=n,d=new e}else d=u?[]:m;t:for(;++f<p;){var w=l[f],b=u?u(w):w;if(w=c||w!==0?w:0,y&&b===b){for(var _=d.length;_--;)if(d[_]===b)continue t;u&&d.push(b),m.push(w)}else h(d,b,c)||(d!==m&&d.push(b),m.push(w))}return m}return um=s,um}var cm,Jw;function bz(){if(Jw)return cm;Jw=1;var e=wi(),t=vz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return cm=r,cm}var _z=bz();const Qw=zt(_z);function yC(e,t,r){return t===!0?Qw(e,r):bt(t)?Qw(e,t):e}function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}var xz=["ref"];function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){Hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vC(n.key),n)}}function Sz(e,t,r){return t&&eS(e.prototype,t),r&&eS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Az(e,t,r){return t=qu(t),Oz(e,gC()?Reflect.construct(t,r||[],qu(e).constructor):t.apply(e,r))}function Oz(e,t){if(t&&(io(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tz(e)}function Tz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gC=function(){return!!e})()}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qu(e)}function Pz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zy(e,t)}function Hc(e,t,r){return t=vC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vC(e){var t=Ez(e,"string");return io(t)=="symbol"?t:t+""}function Ez(e,t){if(io(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(io(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Cz(e,t){if(e==null)return{};var r=Mz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kz(e){return e.value}function $z(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Cz(t,xz);return O.createElement(b0,r)}var rS=1,Ji=(function(e){function t(){var r;wz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Az(this,t,[].concat(i)),Hc(r,"lastBoundingBox",{width:-1,height:-1}),r}return Pz(t,e),Sz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>rS||Math.abs(i.height-this.lastBoundingBox.height)>rS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?jn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((c||0)-y.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return jn(jn({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=jn(jn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},$z(a,jn(jn({},this.props),{},{payload:yC(c,u,kz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=jn(jn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&it(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Hc(Ji,"displayName","Legend");Hc(Ji,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function jz(e,t){return Nz(e)||Iz(e,t)||Dz(e,t)||Rz()}function Rz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dz(e,t){if(e){if(typeof e=="string")return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Iz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Nz(e){if(Array.isArray(e))return e}function iS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(r),!0).forEach(function(n){Lz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lz(e,t,r){return t=Bz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bz(e){var t=qz(e,"string");return Gs(t)=="symbol"?t:t+""}function qz(e,t){if(Gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fz(e){return Array.isArray(e)&&xe(e[0])&&xe(e[1])?e.join(" ~ "):e}var zz=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,v=t.accessibilityLayer,w=v===void 0?!1:v,b=function(){if(c&&c.length){var E={padding:0,margin:0},M=(h?zc(c,h):c).map(function($,j){if($.type==="none")return null;var k=fm({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},s),I=$.formatter||f||Fz,q=$.value,F=$.name,N=q,D=F;if(I&&N!=null&&D!=null){var L=I(q,F,$,j,c);if(Array.isArray(L)){var G=jz(L,2);N=G[0],D=G[1]}else N=L}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:k},xe(D)?O.createElement("span",{className:"recharts-tooltip-item-name"},D):null,xe(D)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},N),O.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},M)}return null},_=fm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=fm({margin:0},u),x=!gt(m),S=x?m:"",A=Pt("recharts-default-tooltip",p),T=Pt("recharts-tooltip-label",y);x&&d&&c!==void 0&&c!==null&&(S=d(m,c));var C=w?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",Jy({className:A,style:_},C),O.createElement("p",{className:T,style:g},O.isValidElement(S)?S:"".concat(S)),b())};function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function Hl(e,t,r){return t=Uz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uz(e){var t=Wz(e,"string");return Ks(t)=="symbol"?t:t+""}function Wz(e,t){if(Ks(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ks(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vo="recharts-tooltip-wrapper",Hz={visibility:"hidden"};function Gz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Pt(Vo,Hl(Hl(Hl(Hl({},"".concat(Vo,"-right"),it(r)&&t&&it(t.x)&&r>=t.x),"".concat(Vo,"-left"),it(r)&&t&&it(t.x)&&r<t.x),"".concat(Vo,"-bottom"),it(n)&&t&&it(t.y)&&n>=t.y),"".concat(Vo,"-top"),it(n)&&t&&it(t.y)&&n<t.y))}function aS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&it(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=l[n];return h<p?Math.max(f,l[n]):Math.max(c,l[n])}var y=f+s,m=l[n]+u;return y>m?Math.max(c,l[n]):Math.max(f,l[n])}function Kz(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Yz(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=aS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=aS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=Kz({translateX:c,translateY:f,useTranslate3d:s})):u=Hz,{cssProperties:u,cssClasses:Gz({translateX:c,translateY:f,coordinate:r})}}function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function oS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oS(Object(r),!0).forEach(function(n){tg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_C(n.key),n)}}function Zz(e,t,r){return t&&Vz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jz(e,t,r){return t=Fu(t),Qz(e,bC()?Reflect.construct(t,r||[],Fu(e).constructor):t.apply(e,r))}function Qz(e,t){if(t&&(ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t3(e)}function t3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bC=function(){return!!e})()}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fu(e)}function e3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function tg(e,t,r){return t=_C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _C(e){var t=r3(e,"string");return ao(t)=="symbol"?t:t+""}function r3(e,t){if(ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lS=1,n3=(function(e){function t(){var r;Xz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Jz(this,t,[].concat(i)),tg(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),tg(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return e3(t,e),Zz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>lS||Math.abs(n.height-this.state.lastBoundingBox.height)>lS)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,v=i.viewBox,w=i.wrapperStyle,b=Yz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:v}),_=b.cssClasses,g=b.cssProperties,x=sS(sS({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},w);return O.createElement("div",{tabIndex:-1,className:_,style:x,ref:function(A){n.wrapperNode=A}},u)}}])})(O.PureComponent),i3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Si={isSsr:i3()};function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function uS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uS(Object(r),!0).forEach(function(n){_0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wC(n.key),n)}}function s3(e,t,r){return t&&o3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l3(e,t,r){return t=zu(t),u3(e,xC()?Reflect.construct(t,r||[],zu(e).constructor):t.apply(e,r))}function u3(e,t){if(t&&(oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c3(e)}function c3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xC=function(){return!!e})()}function zu(e){return zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zu(e)}function f3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eg(e,t)}function _0(e,t,r){return t=wC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wC(e){var t=h3(e,"string");return oo(t)=="symbol"?t:t+""}function h3(e,t){if(oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function p3(e){return e.dataKey}function d3(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(zz,t)}var gn=(function(e){function t(){return a3(this,t),l3(this,t,arguments)}return f3(t,e),s3(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,v=i.reverseDirection,w=i.useTranslate3d,b=i.viewBox,_=i.wrapperStyle,g=y??[];f&&g.length&&(g=yC(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,p3));var x=g.length>0;return O.createElement(n3,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:c,hasPayload:x,offset:p,position:d,reverseDirection:v,useTranslate3d:w,viewBox:b,wrapperStyle:_},d3(u,cS(cS({},this.props),{},{payload:g})))}}])})(O.PureComponent);_0(gn,"displayName","Tooltip");_0(gn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Si.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 hm,fS;function m3(){if(fS)return hm;fS=1;var e=cn(),t=function(){return e.Date.now()};return hm=t,hm}var pm,hS;function y3(){if(hS)return pm;hS=1;var e=xi(),t=m3(),r=r0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,u){var c,f,h,p,y,m,d=0,v=!1,w=!1,b=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(v=!!u.leading,w="maxWait"in u,h=w?i(r(u.maxWait)||0,l):h,b="trailing"in u?!!u.trailing:b);function _(M){var $=c,j=f;return c=f=void 0,d=M,p=s.apply(j,$),p}function g(M){return d=M,y=setTimeout(A,l),v?_(M):p}function x(M){var $=M-m,j=M-d,k=l-$;return w?a(k,h-j):k}function S(M){var $=M-m,j=M-d;return m===void 0||$>=l||$<0||w&&j>=h}function A(){var M=t();if(S(M))return T(M);y=setTimeout(A,x(M))}function T(M){return y=void 0,b&&c?_(M):(c=f=void 0,p)}function C(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var M=t(),$=S(M);if(c=arguments,f=this,m=M,$){if(y===void 0)return g(m);if(w)return clearTimeout(y),y=setTimeout(A,l),_(m)}return y===void 0&&(y=setTimeout(A,l)),p}return E.cancel=C,E.flush=P,E}return pm=o,pm}var dm,pS;function g3(){if(pS)return dm;pS=1;var e=y3(),t=xi(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return dm=n,dm}var v3=g3();const SC=zt(v3);function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function dS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dS(Object(r),!0).forEach(function(n){b3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b3(e,t,r){return t=_3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _3(e){var t=x3(e,"string");return Ys(t)=="symbol"?t:t+""}function x3(e,t){if(Ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w3(e,t){return T3(e)||O3(e,t)||A3(e,t)||S3()}function S3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A3(e,t){if(e){if(typeof e=="string")return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function T3(e){if(Array.isArray(e))return e}var P3=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,v=e.className,w=e.onResize,b=e.style,_=b===void 0?{}:b,g=O.useRef(null),x=O.useRef();x.current=w,O.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=w3(S,2),T=A[0],C=A[1],P=O.useCallback(function(M,$){C(function(j){var k=Math.round(M),I=Math.round($);return j.containerWidth===k&&j.containerHeight===I?j:{containerWidth:k,containerHeight:I}})},[]);O.useEffect(function(){var M=function(F){var N,D=F[0].contentRect,L=D.width,G=D.height;P(L,G),(N=x.current)===null||N===void 0||N.call(x,L,G)};m>0&&(M=SC(M,m,{trailing:!0,leading:!1}));var $=new ResizeObserver(M),j=g.current.getBoundingClientRect(),k=j.width,I=j.height;return P(k,I),$.observe(g.current),function(){$.disconnect()}},[P,m]);var E=O.useMemo(function(){var M=T.containerWidth,$=T.containerHeight;if(M<0||$<0)return null;Fn(Wi(o)||Wi(l),`The width(%s) and height(%s) are both fixed numbers,
87
+ maybe you don't need to use a ResponsiveContainer.`,o,l),Fn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var j=Wi(o)?M:o,k=Wi(l)?$:l;r&&r>0&&(j?k=j/r:k&&(j=k*r),h&&k>h&&(k=h)),Fn(j>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
88
88
  please check the style of container, or the props width(%s) and height(%s),
89
89
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
90
- height and width.`,$,M,o,u,c,f,r);var I=!Array.isArray(p)&&vn(p.type).endsWith("Chart");return O.Children.map(p,function(L){return O.isValidElement(L)?O.cloneElement(L,yu({width:$,height:M},I?{style:yu({height:"100%",width:"100%",maxHeight:M,maxWidth:$},L.props.style)}:{})):L})},[r,p,u,h,f,c,P,o]);return O.createElement("div",{id:d?"".concat(d):void 0,className:At("recharts-responsive-container",g),style:yu(yu({},x),{},{width:o,height:u,minWidth:c,minHeight:f,maxHeight:h}),ref:v},E)}),Bg=function(t){return null};Bg.displayName="Cell";function bs(e){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(e)}function Rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(r),!0).forEach(function(n){X5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X5(e,t,r){return t=V5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V5(e){var t=Z5(e,"string");return bs(t)=="symbol"?t:t+""}function Z5(e,t){if(bs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zi={widthCache:{},cacheCount:0},J5=2e3,Q5={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Iw="recharts_measurement_span";function t3(e){var t=_y({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Wo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Qn.isSsr)return{width:0,height:0};var n=t3(r),i=JSON.stringify({text:t,copyStyle:n});if(Zi.widthCache[i])return Zi.widthCache[i];try{var a=document.getElementById(Iw);a||(a=document.createElement("span"),a.setAttribute("id",Iw),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=_y(_y({},Q5),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return Zi.widthCache[i]=u,++Zi.cacheCount>J5&&(Zi.cacheCount=0,Zi.widthCache={}),u}catch{return{width:0,height:0}}},e3=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function _s(e){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_s(e)}function pl(e,t){return a3(e)||i3(e,t)||n3(e,t)||r3()}function r3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n3(e,t){if(e){if(typeof e=="string")return Nw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nw(e,t)}}function Nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function a3(e){if(Array.isArray(e))return e}function o3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u3(n.key),n)}}function s3(e,t,r){return t&&Lw(e.prototype,t),r&&Lw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u3(e){var t=l3(e,"string");return _s(t)=="symbol"?t:t+""}function l3(e,t){if(_s(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_s(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,c3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,f3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,UE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},h3=Object.keys(UE),na="NaN";function p3(e,t){return e*UE[t]}var vu=(function(){function e(t,r){o3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!c3.test(r)&&(this.num=NaN,this.unit=""),h3.includes(r)&&(this.num=p3(t,r),this.unit="px")}return s3(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=f3.exec(r))!==null&&n!==void 0?n:[],a=pl(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function WE(e){if(e.includes(na))return na;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Bw.exec(t))!==null&&r!==void 0?r:[],i=pl(n,4),a=i[1],o=i[2],s=i[3],u=vu.parse(a??""),l=vu.parse(s??""),c=o==="*"?u.multiply(l):u.divide(l);if(c.isNaN())return na;t=t.replace(Bw,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=qw.exec(t))!==null&&f!==void 0?f:[],p=pl(h,4),y=p[1],m=p[2],d=p[3],g=vu.parse(y??""),_=vu.parse(d??""),b=m==="+"?g.add(_):g.subtract(_);if(b.isNaN())return na;t=t.replace(qw,b.toString())}return t}var Fw=/\(([^()]*)\)/;function d3(e){for(var t=e;t.includes("(");){var r=Fw.exec(t),n=pl(r,2),i=n[1];t=t.replace(Fw,WE(i))}return t}function m3(e){var t=e.replace(/\s+/g,"");return t=d3(t),t=WE(t),t}function y3(e){try{return m3(e)}catch{return na}}function jd(e){var t=y3(e.slice(5,-1));return t===na?"":t}var v3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],g3=["dx","dy","angle","className","breakAll"];function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xy.apply(this,arguments)}function zw(e,t){if(e==null)return{};var r=b3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function b3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Uw(e,t){return S3(e)||w3(e,t)||x3(e,t)||_3()}function _3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x3(e,t){if(e){if(typeof e=="string")return Ww(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ww(e,t)}}function Ww(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function S3(e){if(Array.isArray(e))return e}var GE=/[ \f\n\r\t\v\u2028\u2029]+/,HE=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];yt(r)||(n?a=r.toString().split(""):a=r.toString().split(GE));var o=a.map(function(u){return{word:u,width:Wo(u,i).width}}),s=n?0:Wo(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},O3=function(t,r,n,i,a){var o=t.maxLines,s=t.children,u=t.style,l=t.breakAll,c=nt(o),f=s,h=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(M,I){var L=I.word,q=I.width,R=M[M.length-1];if(R&&(i==null||a||R.width+q+n<Number(i)))R.words.push(L),R.width+=q+n;else{var D={words:[L],width:q};M.push(D)}return M},[])},p=h(r),y=function($){return $.reduce(function(M,I){return M.width>I.width?M:I})};if(!c)return p;for(var m="…",d=function($){var M=f.slice(0,$),I=HE({breakAll:l,style:u,children:M+m}).wordsWithComputedWidth,L=h(I),q=L.length>o||y(L).width>Number(i);return[q,L]},g=0,_=f.length-1,b=0,x;g<=_&&b<=f.length-1;){var v=Math.floor((g+_)/2),w=v-1,S=d(w),A=Uw(S,2),P=A[0],C=A[1],T=d(v),E=Uw(T,1),k=E[0];if(!P&&!k&&(g=v+1),P&&k&&(_=v-1),!P&&k){x=C;break}b++}return x||p},Gw=function(t){var r=yt(t)?[]:t.toString().split(GE);return[{words:r}]},A3=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Qn.isSsr){var u,l,c=HE({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;u=f,l=h}else return Gw(i);return O3({breakAll:o,children:i,maxLines:s,style:a},u,l,r,n)}return Gw(i)},Hw="#808080",dl=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,u=t.capHeight,l=u===void 0?"0.71em":u,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,g=d===void 0?Hw:d,_=zw(t,v3),b=O.useMemo(function(){return A3({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:f,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,f,_.style,_.width]),x=_.dx,v=_.dy,w=_.angle,S=_.className,A=_.breakAll,P=zw(_,g3);if(!ge(n)||!ge(a))return null;var C=n+(nt(x)?x:0),T=a+(nt(v)?v:0),E;switch(m){case"start":E=jd("calc(".concat(l,")"));break;case"middle":E=jd("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:E=jd("calc(".concat(b.length-1," * -").concat(s,")"));break}var k=[];if(f){var j=b[0].width,$=_.width;k.push("scale(".concat((nt($)?$/j:1)/j,")"))}return w&&k.push("rotate(".concat(w,", ").concat(C,", ").concat(T,")")),k.length&&(P.transform=k.join(" ")),O.createElement("text",xy({},vt(P,!0),{x:C,y:T,className:At("recharts-text",S),textAnchor:p,fill:g.includes("url")?Hw:g}),b.map(function(M,I){var L=M.words.join(A?"":" ");return O.createElement("tspan",{x:C,dy:I===0?E:s,key:"".concat(L,"-").concat(I)},L)}))};const Kw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:rs,scaleDiverging:lP,scaleDivergingLog:cP,scaleDivergingPow:Wv,scaleDivergingSqrt:xR,scaleDivergingSymlog:fP,scaleIdentity:UA,scaleImplicit:km,scaleLinear:Ei,scaleLog:GA,scaleOrdinal:Tv,scalePoint:Ro,scalePow:Dv,scaleQuantile:YA,scaleQuantize:XA,scaleRadial:KA,scaleSequential:aP,scaleSequentialLog:oP,scaleSequentialPow:Uv,scaleSequentialQuantile:uP,scaleSequentialSqrt:_R,scaleSequentialSymlog:sP,scaleSqrt:rD,scaleSymlog:HA,scaleThreshold:VA,scaleTime:Hu,scaleUtc:bR,tickFormat:zA},Symbol.toStringTag,{value:"Module"}));var Dd,Yw;function KE(){if(Yw)return Dd;Yw=1;var e=Qa();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],u=n(s);if(u!=null&&(l===void 0?u===u&&!e(u):i(u,l)))var l=u,c=s}return c}return Dd=t,Dd}var Rd,Xw;function P3(){if(Xw)return Rd;Xw=1;function e(t,r){return t>r}return Rd=e,Rd}var Id,Vw;function T3(){if(Vw)return Id;Vw=1;var e=KE(),t=P3(),r=to();function n(i){return i&&i.length?e(i,r,t):void 0}return Id=n,Id}var E3=T3();const qn=qt(E3);var Nd,Zw;function C3(){if(Zw)return Nd;Zw=1;function e(t,r){return t<r}return Nd=e,Nd}var Ld,Jw;function M3(){if(Jw)return Ld;Jw=1;var e=KE(),t=C3(),r=to();function n(i){return i&&i.length?e(i,r,t):void 0}return Ld=n,Ld}var k3=M3();const yc=qt(k3);var Bd,Qw;function $3(){if(Qw)return Bd;Qw=1;var e=jg();function t(r,n){return e(r,n)}return Bd=t,Bd}var j3=$3();const ji=qt(j3);var no=1e9,D3={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Fg,te=!0,Er="[DecimalError] ",Oi=Er+"Invalid argument: ",qg=Er+"Exponent out of range: ",io=Math.floor,li=Math.pow,R3=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fr,Se=1e7,Xt=7,YE=9007199254740991,ml=io(YE/Xt),lt={};lt.absoluteValue=lt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};lt.comparedTo=lt.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};lt.decimalPlaces=lt.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Xt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};lt.dividedBy=lt.div=function(e){return bn(this,new this.constructor(e))};lt.dividedToIntegerBy=lt.idiv=function(e){var t=this,r=t.constructor;return Gt(bn(t,new r(e),0,1),r.precision)};lt.equals=lt.eq=function(e){return!this.cmp(e)};lt.exponent=function(){return me(this)};lt.greaterThan=lt.gt=function(e){return this.cmp(e)>0};lt.greaterThanOrEqualTo=lt.gte=function(e){return this.cmp(e)>=0};lt.isInteger=lt.isint=function(){return this.e>this.d.length-2};lt.isNegative=lt.isneg=function(){return this.s<0};lt.isPositive=lt.ispos=function(){return this.s>0};lt.isZero=function(){return this.s===0};lt.lessThan=lt.lt=function(e){return this.cmp(e)<0};lt.lessThanOrEqualTo=lt.lte=function(e){return this.cmp(e)<1};lt.logarithm=lt.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(fr))throw Error(Er+"NaN");if(r.s<1)throw Error(Er+(r.s?"NaN":"-Infinity"));return r.eq(fr)?new n(0):(te=!1,t=bn(xs(r,a),xs(e,a),a),te=!0,Gt(t,i))};lt.minus=lt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ZE(t,e):XE(t,(e.s=-e.s,e))};lt.modulo=lt.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Er+"NaN");return r.s?(te=!1,t=bn(r,e,0,1).times(e),te=!0,r.minus(t)):Gt(new n(r),i)};lt.naturalExponential=lt.exp=function(){return VE(this)};lt.naturalLogarithm=lt.ln=function(){return xs(this)};lt.negated=lt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};lt.plus=lt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XE(t,e):ZE(t,(e.s=-e.s,e))};lt.precision=lt.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oi+e);if(t=me(i)+1,n=i.d.length-1,r=n*Xt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};lt.squareRoot=lt.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(Er+"NaN")}for(e=me(s),te=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Vr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=io((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(bn(s,a,o+2)).times(.5),Vr(a.d).slice(0,o)===(t=Vr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Gt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return te=!0,Gt(n,r)};lt.times=lt.mul=function(e){var t,r,n,i,a,o,s,u,l,c=this,f=c.constructor,h=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,u=h.length,l=p.length,u<l&&(a=h,h=p,p=a,o=u,u=l,l=o),a=[],o=u+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,i=u+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%Se|0,t=s/Se|0;a[i]=(a[i]+t)%Se|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,te?Gt(e,f.precision):e};lt.toDecimalPlaces=lt.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(rn(e,0,no),t===void 0?t=n.rounding:rn(t,0,8),Gt(r,e+me(r)+1,t))};lt.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Di(n,!0):(rn(e,0,no),t===void 0?t=i.rounding:rn(t,0,8),n=Gt(new i(n),e+1,t),r=Di(n,!0,e+1)),r};lt.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Di(i):(rn(e,0,no),t===void 0?t=a.rounding:rn(t,0,8),n=Gt(new a(i),e+me(i)+1,t),r=Di(n.abs(),!1,e+me(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};lt.toInteger=lt.toint=function(){var e=this,t=e.constructor;return Gt(new t(e),me(e)+1,t.rounding)};lt.toNumber=function(){return+this};lt.toPower=lt.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,l=12,c=+(e=new u(e));if(!e.s)return new u(fr);if(s=new u(s),!s.s){if(e.s<1)throw Error(Er+"Infinity");return s}if(s.eq(fr))return s;if(n=u.precision,e.eq(fr))return Gt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=YE){for(i=new u(fr),t=Math.ceil(n/Xt+4),te=!1;r%2&&(i=i.times(s),eS(i.d,t)),r=io(r/2),r!==0;)s=s.times(s),eS(s.d,t);return te=!0,e.s<0?new u(fr).div(i):Gt(i,n)}}else if(a<0)throw Error(Er+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,te=!1,i=e.times(xs(s,n+l)),te=!0,i=VE(i),i.s=a,i};lt.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=me(i),n=Di(i,r<=a.toExpNeg||r>=a.toExpPos)):(rn(e,1,no),t===void 0?t=a.rounding:rn(t,0,8),i=Gt(new a(i),e,t),r=me(i),n=Di(i,e<=r||r<=a.toExpNeg,e)),n};lt.toSignificantDigits=lt.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(rn(e,1,no),t===void 0?t=n.rounding:rn(t,0,8)),Gt(new n(r),e,t)};lt.toString=lt.valueOf=lt.val=lt.toJSON=lt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=me(e),r=e.constructor;return Di(e,t<=r.toExpNeg||t>=r.toExpPos)};function XE(e,t){var r,n,i,a,o,s,u,l,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),te?Gt(t,f):t;if(u=e.d,l=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,s=l.length):(n=l,i=o,s=u.length),o=Math.ceil(f/Xt),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=u.length,a=l.length,s-a<0&&(a=s,n=l,l=u,u=n),r=0;a;)r=(u[--a]=u[a]+l[a]+r)/Se|0,u[a]%=Se;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,te?Gt(t,f):t}function rn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Oi+e)}function Vr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Xt-n.length,r&&(a+=Rn(r)),a+=n;o=e[t],n=o+"",r=Xt-n.length,r&&(a+=Rn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var bn=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Se|0,o=a/Se|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Se+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,u,l,c,f,h,p,y,m,d,g,_,b,x,v,w,S,A,P=n.constructor,C=n.s==i.s?1:-1,T=n.d,E=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Er+"Division by zero");for(u=n.e-i.e,S=E.length,v=T.length,p=new P(C),y=p.d=[],l=0;E[l]==(T[l]||0);)++l;if(E[l]>(T[l]||0)&&--u,a==null?_=a=P.precision:o?_=a+(me(n)-me(i))+1:_=a,_<0)return new P(0);if(_=_/Xt+2|0,l=0,S==1)for(c=0,E=E[0],_++;(l<v||c)&&_--;l++)b=c*Se+(T[l]||0),y[l]=b/E|0,c=b%E|0;else{for(c=Se/(E[0]+1)|0,c>1&&(E=e(E,c),T=e(T,c),S=E.length,v=T.length),x=S,m=T.slice(0,S),d=m.length;d<S;)m[d++]=0;A=E.slice(),A.unshift(0),w=E[0],E[1]>=Se/2&&++w;do c=0,s=t(E,m,S,d),s<0?(g=m[0],S!=d&&(g=g*Se+(m[1]||0)),c=g/w|0,c>1?(c>=Se&&(c=Se-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?A:E,d))),d=m.length):s===0&&(c++,m=[0]),y[l++]=c,s&&m[0]?m[d++]=T[x]||0:(m=[T[x]],d=1);while((x++<v||m[0]!==void 0)&&_--)}return y[0]||y.shift(),p.e=u,Gt(p,o?a+me(p)+1:a)}})();function VE(e,t){var r,n,i,a,o,s,u=0,l=0,c=e.constructor,f=c.precision;if(me(e)>16)throw Error(qg+me(e));if(!e.s)return new c(fr);for(te=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(li(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new c(fr),c.precision=s;;){if(i=Gt(i.times(e),s),r=r.times(++u),o=a.plus(bn(i,r,s)),Vr(o.d).slice(0,s)===Vr(a.d).slice(0,s)){for(;l--;)a=Gt(a.times(a),s);return c.precision=f,t==null?(te=!0,Gt(a,f)):a}a=o}}function me(e){for(var t=e.e*Xt,r=e.d[0];r>=10;r/=10)t++;return t}function qd(e,t,r){if(t>e.LN10.sd())throw te=!0,r&&(e.precision=r),Error(Er+"LN10 precision limit exceeded");return Gt(new e(e.LN10),t)}function Rn(e){for(var t="";e--;)t+="0";return t}function xs(e,t){var r,n,i,a,o,s,u,l,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(Er+(p.s?"NaN":"-Infinity"));if(p.eq(fr))return new m(0);if(t==null?(te=!1,l=d):l=t,p.eq(10))return t==null&&(te=!0),qd(m,l);if(l+=h,m.precision=l,r=Vr(y),n=r.charAt(0),a=me(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Vr(p.d),n=r.charAt(0),f++;a=me(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return u=qd(m,l+2,d).times(a+""),p=xs(new m(n+"."+r.slice(1)),l-h).plus(u),m.precision=d,t==null?(te=!0,Gt(p,d)):p;for(s=o=p=bn(p.minus(fr),p.plus(fr),l),c=Gt(p.times(p),l),i=3;;){if(o=Gt(o.times(c),l),u=s.plus(bn(o,new m(i),l)),Vr(u.d).slice(0,l)===Vr(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(qd(m,l+2,d).times(a+""))),s=bn(s,new m(f),l),m.precision=d,t==null?(te=!0,Gt(s,d)):s;s=u,i+=2}}function tS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=io(r/Xt),e.d=[],n=(r+1)%Xt,r<0&&(n+=Xt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Xt;n<i;)e.d.push(+t.slice(n,n+=Xt));t=t.slice(n),n=Xt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),te&&(e.e>ml||e.e<-ml))throw Error(qg+r)}else e.s=0,e.e=0,e.d=[0];return e}function Gt(e,t,r){var n,i,a,o,s,u,l,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Xt,i=t,l=f[c=0];else{if(c=Math.ceil((n+1)/Xt),a=f.length,c>=a)return e;for(l=a=f[c],o=1;a>=10;a/=10)o++;n%=Xt,i=n-Xt+o}if(r!==void 0&&(a=li(10,o-i-1),s=l/a%10|0,u=t<0||f[c+1]!==void 0||l%a,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?l/li(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=me(e),f.length=1,t=t-a-1,f[0]=li(10,(Xt-t%Xt)%Xt),e.e=io(-t/Xt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=li(10,Xt-n),f[c]=i>0?(l/li(10,o-i)%li(10,i)|0)*a:0),u)for(;;)if(c==0){(f[0]+=a)==Se&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Se)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(te&&(e.e>ml||e.e<-ml))throw Error(qg+me(e));return e}function ZE(e,t){var r,n,i,a,o,s,u,l,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),te?Gt(t,p):t;if(u=e.d,f=t.d,n=t.e,l=e.e,u=u.slice(),o=l-n,o){for(c=o<0,c?(r=u,o=-o,s=f.length):(r=f,n=l,s=u.length),i=Math.max(Math.ceil(p/Xt),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(u[i]!=f[i]){c=u[i]<f[i];break}o=0}for(c&&(r=u,u=f,f=r,t.s=-t.s),s=u.length,i=f.length-s;i>0;--i)u[s++]=0;for(i=f.length;i>o;){if(u[--i]<f[i]){for(a=i;a&&u[--a]===0;)u[a]=Se-1;--u[a],u[i]+=Se}u[i]-=f[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,te?Gt(t,p):t):new h(0)}function Di(e,t,r){var n,i=me(e),a=Vr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Rn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Rn(-i-1)+a,r&&(n=r-o)>0&&(a+=Rn(n))):i>=o?(a+=Rn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Rn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Rn(n))),e.s<0?"-"+a:a}function eS(e,t){if(e.length>t)return e.length=t,!0}function JE(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Oi+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return tS(o,a.toString())}else if(typeof a!="string")throw Error(Oi+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,R3.test(a))tS(o,a);else throw Error(Oi+a)}if(i.prototype=lt,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=JE,i.config=i.set=I3,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function I3(e){if(!e||typeof e!="object")throw Error(Er+"Object expected");var t,r,n,i=["precision",1,no,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(io(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Oi+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oi+r+": "+n);return this}var Fg=JE(D3);fr=new Fg(1);const zt=Fg;function N3(e){return F3(e)||q3(e)||B3(e)||L3()}function L3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
93
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B3(e,t){if(e){if(typeof e=="string")return wy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wy(e,t)}}function q3(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function F3(e){if(Array.isArray(e))return wy(e)}function wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var z3=function(t){return t},QE={},tC=function(t){return t===QE},rS=function(t){return function r(){return arguments.length===0||arguments.length===1&&tC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},U3=function e(t,r){return t===1?r:rS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==QE}).length;return o>=t?r.apply(void 0,i):e(t-o,rS(function(){for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];var c=i.map(function(f){return tC(f)?u.shift():f});return r.apply(void 0,N3(c).concat(u))}))})},vc=function(t){return U3(t.length,t)},Sy=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},W3=vc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),G3=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return z3;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,u){return u(s)},a.apply(void 0,arguments))}},Oy=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},eC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,u){return s===r[u]})||(r=a,n=t.apply(void 0,a)),n}};function H3(e){var t;return e===0?t=1:t=Math.floor(new zt(e).abs().log(10).toNumber())+1,t}function K3(e,t,r){for(var n=new zt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Y3=vc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),X3=vc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),V3=vc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const gc={rangeStep:K3,getDigitCount:H3,interpolateNumber:Y3,uninterpolateNumber:X3,uninterpolateTruncation:V3};function Ay(e){return Q3(e)||J3(e)||rC(e)||Z3()}function Z3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
94
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J3(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Q3(e){if(Array.isArray(e))return Py(e)}function ws(e,t){return rU(e)||eU(e,t)||rC(e,t)||tU()}function tU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rC(e,t){if(e){if(typeof e=="string")return Py(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Py(e,t)}}function Py(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function rU(e){if(Array.isArray(e))return e}function nC(e){var t=ws(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function iC(e,t,r){if(e.lte(0))return new zt(0);var n=gc.getDigitCount(e.toNumber()),i=new zt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new zt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?u:new zt(Math.ceil(u))}function nU(e,t,r){var n=1,i=new zt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new zt(10).pow(gc.getDigitCount(e)-1),i=new zt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new zt(Math.floor(e)))}else e===0?i=new zt(Math.floor((t-1)/2)):r||(i=new zt(Math.floor(e)));var o=Math.floor((t-1)/2),s=G3(W3(function(u){return i.add(new zt(u-o).mul(n)).toNumber()}),Sy);return s(0,t)}function aC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new zt(0),tickMin:new zt(0),tickMax:new zt(0)};var a=iC(new zt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new zt(0):(o=new zt(e).add(t).div(2),o=o.sub(new zt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new zt(t).sub(o).div(a).toNumber()),l=s+u+1;return l>r?aC(e,t,r,n,i+1):(l<r&&(u=t>0?u+(r-l):u,s=t>0?s:s+(r-l)),{step:a,tickMin:o.sub(new zt(s).mul(a)),tickMax:o.add(new zt(u).mul(a))})}function iU(e){var t=ws(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=nC([r,n]),u=ws(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(Ay(Sy(0,i-1).map(function(){return 1/0}))):[].concat(Ay(Sy(0,i-1).map(function(){return-1/0})),[c]);return r>n?Oy(f):f}if(l===c)return nU(l,i,a);var h=aC(l,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=gc.rangeStep(y,m.add(new zt(.1).mul(p)),p);return r>n?Oy(d):d}function aU(e,t){var r=ws(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=nC([n,i]),s=ws(o,2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[n,i];if(u===l)return[u];var c=Math.max(t,2),f=iC(new zt(l).sub(u).div(c-1),a,0),h=[].concat(Ay(gc.rangeStep(new zt(u),new zt(l).sub(new zt(.99).mul(f)),f)),[l]);return n>i?Oy(h):h}var oU=eC(iU),sU=eC(aU),uU=process.env.NODE_ENV==="production",Fd="Invariant failed";function Ye(e,t){if(uU)throw new Error(Fd);var r=typeof t=="function"?t():t,n=r?"".concat(Fd,": ").concat(r):Fd;throw new Error(n)}var lU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yl.apply(this,arguments)}function cU(e,t){return dU(e)||pU(e,t)||hU(e,t)||fU()}function fU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hU(e,t){if(e){if(typeof e=="string")return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function dU(e){if(Array.isArray(e))return e}function mU(e,t){if(e==null)return{};var r=yU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uC(n.key),n)}}function bU(e,t,r){return t&&gU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _U(e,t,r){return t=vl(t),xU(e,oC()?Reflect.construct(t,r||[],vl(e).constructor):t.apply(e,r))}function xU(e,t){if(t&&($a(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wU(e)}function wU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oC=function(){return!!e})()}function vl(e){return vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vl(e)}function SU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ty(e,t)}function Ty(e,t){return Ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ty(e,t)}function sC(e,t,r){return t=uC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uC(e){var t=OU(e,"string");return $a(t)=="symbol"?t:t+""}function OU(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ao=(function(e){function t(){return vU(this,t),_U(this,t,arguments)}return SU(t,e),bU(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,u=n.data,l=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=mU(n,lU),p=vt(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?Ye(!1,'ErrorBar requires Axis type property to be "number".'):Ye());var y=u.map(function(m){var d=l(m,s),g=d.x,_=d.y,b=d.value,x=d.errorVal;if(!x)return null;var v=[],w,S;if(Array.isArray(x)){var A=cU(x,2);w=A[0],S=A[1]}else w=S=x;if(a==="vertical"){var P=c.scale,C=_+i,T=C+o,E=C-o,k=P(b-w),j=P(b+S);v.push({x1:j,y1:T,x2:j,y2:E}),v.push({x1:k,y1:C,x2:j,y2:C}),v.push({x1:k,y1:T,x2:k,y2:E})}else if(a==="horizontal"){var $=f.scale,M=g+i,I=M-o,L=M+o,q=$(b-w),R=$(b+S);v.push({x1:I,y1:R,x2:L,y2:R}),v.push({x1:M,y1:q,x2:M,y2:R}),v.push({x1:I,y1:q,x2:L,y2:q})}return O.createElement(jt,yl({className:"recharts-errorBar",key:"bar-".concat(v.map(function(D){return"".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))},p),v.map(function(D){return O.createElement("line",yl({},D,{key:"line-".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))}))});return O.createElement(jt,{className:"recharts-errorBars"},y)}}])})(O.Component);sC(ao,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});sC(ao,"displayName","ErrorBar");function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ss(e)}function iS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(r),!0).forEach(function(n){AU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AU(e,t,r){return t=PU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PU(e){var t=TU(e,"string");return Ss(t)=="symbol"?t:t+""}function TU(e,t){if(Ss(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ss(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ur(r,Si);if(!o)return null;var s=Si.defaultProps,u=s!==void 0?oi(oi({},s),o.props):{},l;return o.props&&o.props.payload?l=o.props&&o.props.payload:a==="children"?l=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):l=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?oi(oi({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:u.iconType||d||"square",color:zg(f),value:m||y,payload:p}}),oi(oi(oi({},u),Si.getWithHeight(o,i)),{},{payload:l,item:o})};function Os(e){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Os(e)}function aS(e){return kU(e)||MU(e)||CU(e)||EU()}function EU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
97
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CU(e,t){if(e){if(typeof e=="string")return Ey(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ey(e,t)}}function MU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kU(e){if(Array.isArray(e))return Ey(e)}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oS(Object(r),!0).forEach(function(n){ma(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ma(e,t,r){return t=$U(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $U(e){var t=jU(e,"string");return Os(t)=="symbol"?t:t+""}function jU(e,t){if(Os(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Os(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function be(e,t,r){return yt(e)||yt(t)?r:ge(t)?Tr(e,t,r):gt(t)?t(e):r}function Go(e,t,r,n){var i=xE(e,function(s){return be(s,t)});if(r==="number"){var a=i.filter(function(s){return nt(s)||parseFloat(s)});return a.length?[yc(a),qn(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!yt(s)}):i;return o.map(function(s){return ge(s)||s instanceof Date?s:""})}var DU=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,l=0;l<s;l++){var c=l>0?i[l-1].coordinate:i[s-1].coordinate,f=i[l].coordinate,h=l>=s-1?i[0].coordinate:i[l+1].coordinate,p=void 0;if(Nr(f-c)!==Nr(h-f)){var y=[];if(Nr(h-f)===Nr(u[1]-u[0])){p=h;var m=f+u[1]-u[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+u[1]-u[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var g=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[l].index;break}}else{var _=Math.min(c,h),b=Math.max(c,h);if(t>(_+f)/2&&t<=(b+f)/2){o=i[l].index;break}}}else for(var x=0;x<s;x++)if(x===0&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x>0&&x<s-1&&t>(n[x].coordinate+n[x-1].coordinate)/2&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x===s-1&&t>(n[x].coordinate+n[x-1].coordinate)/2){o=n[x].index;break}return o},zg=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ae(ae({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:s;break;default:u=s;break}return u},RU=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),u=0,l=s.length;u<l;u++)for(var c=a[s[u]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,g=m.filter(function(S){return vn(S.type).indexOf("Bar")>=0});if(g&&g.length){var _=g[0].type.defaultProps,b=_!==void 0?ae(ae({},_),g[0].props):g[0].props,x=b.barSize,v=b[d];o[v]||(o[v]=[]);var w=yt(x)?r:x;o[v].push({item:g[0],stackList:g.slice(1),barSize:yt(w)?void 0:$i(w,n,0)})}}return o},IU=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,u=o.length;if(u<1)return null;var l=$i(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/u,y=o.reduce(function(x,v){return x+v.barSize||0},0);y+=(u-1)*l,y>=i&&(y-=(u-1)*l,l=0),y>=i&&p>0&&(h=!0,p*=.9,y=u*p);var m=(i-y)/2>>0,d={offset:m-l,size:0};c=o.reduce(function(x,v){var w={item:v.item,position:{offset:d.offset+d.size+l,size:h?p:v.barSize}},S=[].concat(aS(x),[w]);return d=S[S.length-1].position,v.stackList&&v.stackList.length&&v.stackList.forEach(function(A){S.push({item:A,position:d})}),S},f)}else{var g=$i(n,i,0,!0);i-2*g-(u-1)*l<=0&&(l=0);var _=(i-2*g-(u-1)*l)/u;_>1&&(_>>=0);var b=s===+s?Math.min(_,s):_;c=o.reduce(function(x,v,w){var S=[].concat(aS(x),[{item:v.item,position:{offset:g+(_+l)*w+(_-b)/2,size:b}}]);return v.stackList&&v.stackList.length&&v.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},NU=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),l=lC({children:a,legendWidth:u});if(l){var c=i||{},f=c.width,h=c.height,p=l.align,y=l.verticalAlign,m=l.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&nt(t[p]))return ae(ae({},t),{},ma({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&nt(t[y]))return ae(ae({},t),{},ma({},y,t[y]+(h||0)))}return t},LU=function(t,r,n){return yt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},cC=function(t,r,n,i,a){var o=r.props.children,s=tr(o,ao).filter(function(l){return LU(i,a,l.props.direction)});if(s&&s.length){var u=s.map(function(l){return l.props.dataKey});return t.reduce(function(l,c){var f=be(c,n);if(yt(f))return l;var h=Array.isArray(f)?[yc(f),qn(f)]:[f,f],p=u.reduce(function(y,m){var d=be(c,m,0),g=h[0]-Math.abs(Array.isArray(d)?d[0]:d),_=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(g,y[0]),Math.max(_,y[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},BU=function(t,r,n,i,a){var o=r.map(function(s){return cC(t,s,n,a,i)}).filter(function(s){return!yt(s)});return o&&o.length?o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]):null},fC=function(t,r,n,i,a){var o=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&cC(t,u,l,i)||Go(t,l,n,a)});if(n==="number")return o.reduce(function(u,l){return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]);var s={};return o.reduce(function(u,l){for(var c=0,f=l.length;c<f;c++)s[l[c]]||(s[l[c]]=!0,u.push(l[c]));return u},[])},hC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},pC=function(t,r,n,i){if(i)return t.map(function(u){return u.coordinate});var a,o,s=t.map(function(u){return u.coordinate===r&&(a=!0),u.coordinate===n&&(o=!0),u.coordinate});return a||s.push(r),o||s.push(n),s},yn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/u:0;if(l=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Nr(s[0]-s[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+l,value:f,offset:l}});return c.filter(function(f){return!ro(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+l,value:f,index:h,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+l,value:f,offset:l}}):i.domain().map(function(f,h){return{coordinate:i(f)+l,value:a?a[f]:f,index:h,offset:l}})},zd=new WeakMap,gu=function(t,r){if(typeof r!="function")return t;zd.has(t)||zd.set(t,new WeakMap);var n=zd.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},qU=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:rs(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Ei(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Ro(),realScaleType:"point"}:a==="category"?{scale:rs(),realScaleType:"band"}:{scale:Ei(),realScaleType:"linear"};if(ki(i)){var u="scale".concat(pc(i));return{scale:(Kw[u]||Ro)(),realScaleType:Kw[u]?u:"point"}}return gt(i)?{scale:i}:{scale:Ro(),realScaleType:"point"}},sS=1e-4,FU=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-sS,o=Math.max(i[0],i[1])+sS,s=t(r[0]),u=t(r[n-1]);(s<a||s>o||u<a||u>o)&&t.domain([r[0],r[n-1]])}},zU=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},UU=function(t,r){if(!r||r.length!==2||!nt(r[0])||!nt(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!nt(t[0])||t[0]<n)&&(a[0]=n),(!nt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},WU=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var u=ro(t[s][n][1])?t[s][n][0]:t[s][n][1];u>=0?(t[s][n][0]=a,t[s][n][1]=a+u,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+u,o=t[s][n][1])}},GU=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=ro(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},HU={sign:WU,expand:QR,none:xa,silhouette:tI,wiggle:eI,positive:GU},KU=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=HU[n],o=Ju().keys(i).value(function(s,u){return+be(s,u,0)}).order(Im).offset(a);return o(t)},YU=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,u={},l=s.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ae(ae({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var g=y[n],_=f[g]||{hasStack:!1,stackGroups:{}};if(ge(m)){var b=_.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),_.hasStack=!0,_.stackGroups[m]=b}else _.stackGroups[zi("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ae(ae({},f),{},ma({},g,_))},u),c={};return Object.keys(l).reduce(function(f,h){var p=l[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,d){var g=p.stackGroups[d];return ae(ae({},m),{},ma({},d,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:KU(t,g.items,a)}))},y)}return ae(ae({},f),{},ma({},h,p))},c)},XU=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var c=oU(l,a,s);return t.domain([yc(c),qn(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=sU(f,a,s);return{niceTicks:h}}return null};function ja(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!yt(i[t.dataKey])){var s=sl(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=be(i,yt(o)?t.dataKey:o);return yt(u)?null:t.scale(u)}var uS=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=be(o,r.dataKey,r.domain[s]);return yt(u)?null:r.scale(u)-a/2+i},VU=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},ZU=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ae(ae({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ge(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},JU=function(t){return t.reduce(function(r,n){return[yc(n.concat([r[0]]).filter(nt)),qn(n.concat([r[1]]).filter(nt))]},[1/0,-1/0])},dC=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,u=s.reduce(function(l,c){var f=JU(c.slice(r,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},lS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Cy=function(t,r,n){if(gt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(nt(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(lS.test(t[0])){var a=+lS.exec(t[0])[1];i[0]=r[0]-a}else gt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(nt(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(cS.test(t[1])){var o=+cS.exec(t[1])[1];i[1]=r[1]+o}else gt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},gl=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=hc(r,function(f){return f.coordinate}),o=1/0,s=1,u=a.length;s<u;s++){var l=a[s],c=a[s-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},fS=function(t,r,n){return!t||!t.length||ji(t,Tr(n,"type.defaultProps.domain"))?r:t},mC=function(t,r){var n=t.type.defaultProps?ae(ae({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,u=n.tooltipType,l=n.chartType,c=n.hide;return ae(ae({},vt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:zg(t),value:be(r,i),type:u,payload:r,chartType:l,hide:c})};function As(e){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},As(e)}function hS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hS(Object(r),!0).forEach(function(n){QU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QU(e,t,r){return t=tW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tW(e){var t=eW(e,"string");return As(t)=="symbol"?t:t+""}function eW(e,t){if(As(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(As(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bl=Math.PI/180,rW=function(t){return t*180/Math.PI},Ee=function(t,r,n,i){return{x:t+Math.cos(-bl*i)*n,y:r+Math.sin(-bl*i)*n}},nW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},iW=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=nW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var u=(n-a)/s,l=Math.acos(u);return i>o&&(l=2*Math.PI-l),{radius:s,angle:rW(l),angleInRadian:l}},aW=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},oW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},dS=function(t,r){var n=t.x,i=t.y,a=iW({x:n,y:i},r),o=a.radius,s=a.angle,u=r.innerRadius,l=r.outerRadius;if(o<u||o>l)return!1;if(o===0)return!0;var c=aW(r),f=c.startAngle,h=c.endAngle,p=s,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?pS(pS({},r),{},{radius:o,angle:oW(p,r)}):null};function Ps(e){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(e)}var sW=["offset"];function uW(e){return hW(e)||fW(e)||cW(e)||lW()}function lW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cW(e,t){if(e){if(typeof e=="string")return My(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return My(e,t)}}function fW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hW(e){if(Array.isArray(e))return My(e)}function My(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pW(e,t){if(e==null)return{};var r=dW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mS(Object(r),!0).forEach(function(n){mW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mW(e,t,r){return t=yW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yW(e){var t=vW(e,"string");return Ps(t)=="symbol"?t:t+""}function vW(e,t){if(Ps(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ts.apply(this,arguments)}var gW=function(t){var r=t.value,n=t.formatter,i=yt(t.children)?r:t.children;return gt(n)?n(i):i},bW=function(t,r){var n=Nr(r-t),i=Math.min(Math.abs(r-t),360);return n*i},_W=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,u=a,l=u.cx,c=u.cy,f=u.innerRadius,h=u.outerRadius,p=u.startAngle,y=u.endAngle,m=u.clockWise,d=(f+h)/2,g=bW(p,y),_=g>=0?1:-1,b,x;i==="insideStart"?(b=p+_*o,x=m):i==="insideEnd"?(b=y-_*o,x=!m):i==="end"&&(b=y+_*o,x=m),x=g<=0?x:!x;var v=Ee(l,c,d,b),w=Ee(l,c,d,b+(x?1:-1)*359),S="M".concat(v.x,",").concat(v.y,`
99
- A`).concat(d,",").concat(d,",0,1,").concat(x?0:1,`,
100
- `).concat(w.x,",").concat(w.y),A=yt(t.id)?zi("recharts-radial-line-"):t.id;return O.createElement("text",Ts({},n,{dominantBaseline:"central",className:At("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},xW=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,u=a.innerRadius,l=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=Ee(o,s,l+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(u+l)/2,g=Ee(o,s,d,h),_=g.x,b=g.y;return{x:_,y:b,textAnchor:"middle",verticalAnchor:"middle"}},wW=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,u=o.y,l=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=l>=0?1:-1,d=m*i,g=m>0?"end":"start",_=m>0?"start":"end";if(a==="top"){var b={x:s+l/2,y:u-f*i,textAnchor:"middle",verticalAnchor:p};return ve(ve({},b),n?{height:Math.max(u-n.y,0),width:l}:{})}if(a==="bottom"){var x={x:s+l/2,y:u+c+h,textAnchor:"middle",verticalAnchor:y};return ve(ve({},x),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{})}if(a==="left"){var v={x:s-d,y:u+c/2,textAnchor:g,verticalAnchor:"middle"};return ve(ve({},v),n?{width:Math.max(v.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+l+d,y:u+c/2,textAnchor:_,verticalAnchor:"middle"};return ve(ve({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:l,height:c}:{};return a==="insideLeft"?ve({x:s+d,y:u+c/2,textAnchor:_,verticalAnchor:"middle"},S):a==="insideRight"?ve({x:s+l-d,y:u+c/2,textAnchor:g,verticalAnchor:"middle"},S):a==="insideTop"?ve({x:s+l/2,y:u+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?ve({x:s+l/2,y:u+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?ve({x:s+d,y:u+h,textAnchor:_,verticalAnchor:y},S):a==="insideTopRight"?ve({x:s+l-d,y:u+h,textAnchor:g,verticalAnchor:y},S):a==="insideBottomLeft"?ve({x:s+d,y:u+c-h,textAnchor:_,verticalAnchor:p},S):a==="insideBottomRight"?ve({x:s+l-d,y:u+c-h,textAnchor:g,verticalAnchor:p},S):eo(a)&&(nt(a.x)||mi(a.x))&&(nt(a.y)||mi(a.y))?ve({x:s+$i(a.x,l),y:u+$i(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):ve({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},SW=function(t){return"cx"in t&&nt(t.cx)};function Re(e){var t=e.offset,r=t===void 0?5:t,n=pW(e,sW),i=ve({offset:r},n),a=i.viewBox,o=i.position,s=i.value,u=i.children,l=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||yt(s)&&yt(u)&&!O.isValidElement(l)&&!gt(l))return null;if(O.isValidElement(l))return O.cloneElement(l,i);var p;if(gt(l)){if(p=O.createElement(l,i),O.isValidElement(p))return p}else p=gW(i);var y=SW(a),m=vt(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return _W(i,p,m);var d=y?xW(i):wW(i);return O.createElement(dl,Ts({className:At("recharts-label",f)},m,d,{breakAll:h}),p)}Re.displayName="Label";var yC=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,u=t.radius,l=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,d=t.height,g=t.clockWise,_=t.labelViewBox;if(_)return _;if(nt(m)&&nt(d)){if(nt(f)&&nt(h))return{x:f,y:h,width:m,height:d};if(nt(p)&&nt(y))return{x:p,y,width:m,height:d}}return nt(f)&&nt(h)?{x:f,y:h,width:0,height:0}:nt(r)&&nt(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:c||u||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},OW=function(t,r){return t?t===!0?O.createElement(Re,{key:"label-implicit",viewBox:r}):ge(t)?O.createElement(Re,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Re?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(Re,{key:"label-implicit",content:t,viewBox:r}):gt(t)?O.createElement(Re,{key:"label-implicit",content:t,viewBox:r}):eo(t)?O.createElement(Re,Ts({viewBox:r},t,{key:"label-implicit"})):null:null},AW=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=yC(t),o=tr(i,Re).map(function(u,l){return O.cloneElement(u,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=OW(t.label,r||a);return[s].concat(uW(o))};Re.parseViewBox=yC;Re.renderCallByParent=AW;var Ud,yS;function PW(){if(yS)return Ud;yS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Ud=e,Ud}var TW=PW();const EW=qt(TW);function Es(e){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Es(e)}var CW=["valueAccessor"],MW=["data","dataKey","clockWise","id","textBreakAll"];function kW(e){return RW(e)||DW(e)||jW(e)||$W()}function $W(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
101
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jW(e,t){if(e){if(typeof e=="string")return ky(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ky(e,t)}}function DW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RW(e){if(Array.isArray(e))return ky(e)}function ky(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_l.apply(this,arguments)}function vS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vS(Object(r),!0).forEach(function(n){IW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IW(e,t,r){return t=NW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NW(e){var t=LW(e,"string");return Es(t)=="symbol"?t:t+""}function LW(e,t){if(Es(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Es(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bS(e,t){if(e==null)return{};var r=BW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var qW=function(t){return Array.isArray(t.value)?EW(t.value):t.value};function Qr(e){var t=e.valueAccessor,r=t===void 0?qW:t,n=bS(e,CW),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,l=bS(n,MW);return!i||!i.length?null:O.createElement(jt,{className:"recharts-label-list"},i.map(function(c,f){var h=yt(a)?r(c,f):be(c&&c.payload,a),p=yt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(Re,_l({},vt(c,!0),l,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:u,viewBox:Re.parseViewBox(yt(o)?c:gS(gS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Qr.displayName="LabelList";function FW(e,t){return e?e===!0?O.createElement(Qr,{key:"labelList-implicit",data:t}):O.isValidElement(e)||gt(e)?O.createElement(Qr,{key:"labelList-implicit",data:t,content:e}):eo(e)?O.createElement(Qr,_l({data:t},e,{key:"labelList-implicit"})):null:null}function zW(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=tr(n,Qr).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=FW(e.label,t);return[a].concat(kW(i))}Qr.renderCallByParent=zW;function Cs(e){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cs(e)}function $y(){return $y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$y.apply(this,arguments)}function _S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_S(Object(r),!0).forEach(function(n){UW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_S(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UW(e,t,r){return t=WW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WW(e){var t=GW(e,"string");return Cs(t)=="symbol"?t:t+""}function GW(e,t){if(Cs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HW=function(t,r){var n=Nr(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},bu=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,u=t.cornerRadius,l=t.cornerIsExternal,c=u*(s?1:-1)+i,f=Math.asin(u/c)/bl,h=l?a:a+o*f,p=Ee(r,n,c,h),y=Ee(r,n,i,h),m=l?a-o*f:a,d=Ee(r,n,c*Math.cos(f*bl),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},vC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,u=HW(o,s),l=o+u,c=Ee(r,n,a,o),f=Ee(r,n,a,l),h="M ".concat(c.x,",").concat(c.y,`
90
+ height and width.`,j,k,o,l,c,f,r);var I=!Array.isArray(p)&&qn(p.type).endsWith("Chart");return O.Children.map(p,function(q){return O.isValidElement(q)?O.cloneElement(q,Gl({width:j,height:k},I?{style:Gl({height:"100%",width:"100%",maxHeight:k,maxWidth:j},q.props.style)}:{})):q})},[r,p,l,h,f,c,T,o]);return O.createElement("div",{id:d?"".concat(d):void 0,className:Pt("recharts-responsive-container",v),style:Gl(Gl({},_),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),x0=function(t){return null};x0.displayName="Cell";function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function yS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(r),!0).forEach(function(n){E3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E3(e,t,r){return t=C3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C3(e){var t=M3(e,"string");return Xs(t)=="symbol"?t:t+""}function M3(e,t){if(Xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pa={widthCache:{},cacheCount:0},k3=2e3,$3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},gS="recharts_measurement_span";function j3(e){var t=rg({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var _s=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Si.isSsr)return{width:0,height:0};var n=j3(r),i=JSON.stringify({text:t,copyStyle:n});if(Pa.widthCache[i])return Pa.widthCache[i];try{var a=document.getElementById(gS);a||(a=document.createElement("span"),a.setAttribute("id",gS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=rg(rg({},$3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Pa.widthCache[i]=l,++Pa.cacheCount>k3&&(Pa.cacheCount=0,Pa.widthCache={}),l}catch{return{width:0,height:0}}},R3=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function Uu(e,t){return L3(e)||N3(e,t)||I3(e,t)||D3()}function D3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I3(e,t){if(e){if(typeof e=="string")return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(e,t)}}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function L3(e){if(Array.isArray(e))return e}function B3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F3(n.key),n)}}function q3(e,t,r){return t&&bS(e.prototype,t),r&&bS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F3(e){var t=z3(e,"string");return Vs(t)=="symbol"?t:t+""}function z3(e,t){if(Vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _S=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,U3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,W3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,AC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},H3=Object.keys(AC),ja="NaN";function G3(e,t){return e*AC[t]}var Kl=(function(){function e(t,r){B3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!U3.test(r)&&(this.num=NaN,this.unit=""),H3.includes(r)&&(this.num=G3(t,r),this.unit="px")}return q3(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=W3.exec(r))!==null&&n!==void 0?n:[],a=Uu(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function OC(e){if(e.includes(ja))return ja;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=_S.exec(t))!==null&&r!==void 0?r:[],i=Uu(n,4),a=i[1],o=i[2],s=i[3],l=Kl.parse(a??""),u=Kl.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return ja;t=t.replace(_S,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=xS.exec(t))!==null&&f!==void 0?f:[],p=Uu(h,4),y=p[1],m=p[2],d=p[3],v=Kl.parse(y??""),w=Kl.parse(d??""),b=m==="+"?v.add(w):v.subtract(w);if(b.isNaN())return ja;t=t.replace(xS,b.toString())}return t}var wS=/\(([^()]*)\)/;function K3(e){for(var t=e;t.includes("(");){var r=wS.exec(t),n=Uu(r,2),i=n[1];t=t.replace(wS,OC(i))}return t}function Y3(e){var t=e.replace(/\s+/g,"");return t=K3(t),t=OC(t),t}function X3(e){try{return Y3(e)}catch{return ja}}function mm(e){var t=X3(e.slice(5,-1));return t===ja?"":t}var V3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Z3=["dx","dy","angle","className","breakAll"];function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ng.apply(this,arguments)}function SS(e,t){if(e==null)return{};var r=J3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AS(e,t){return rU(e)||eU(e,t)||tU(e,t)||Q3()}function Q3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tU(e,t){if(e){if(typeof e=="string")return OS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function rU(e){if(Array.isArray(e))return e}var TC=/[ \f\n\r\t\v\u2028\u2029]+/,PC=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];gt(r)||(n?a=r.toString().split(""):a=r.toString().split(TC));var o=a.map(function(l){return{word:l,width:_s(l,i).width}}),s=n?0:_s(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},nU=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=it(o),f=s,h=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(k,I){var q=I.word,F=I.width,N=k[k.length-1];if(N&&(i==null||a||N.width+F+n<Number(i)))N.words.push(q),N.width+=F+n;else{var D={words:[q],width:F};k.push(D)}return k},[])},p=h(r),y=function(j){return j.reduce(function(k,I){return k.width>I.width?k:I})};if(!c)return p;for(var m="…",d=function(j){var k=f.slice(0,j),I=PC({breakAll:u,style:l,children:k+m}).wordsWithComputedWidth,q=h(I),F=q.length>o||y(q).width>Number(i);return[F,q]},v=0,w=f.length-1,b=0,_;v<=w&&b<=f.length-1;){var g=Math.floor((v+w)/2),x=g-1,S=d(x),A=AS(S,2),T=A[0],C=A[1],P=d(g),E=AS(P,1),M=E[0];if(!T&&!M&&(v=g+1),T&&M&&(w=g-1),!T&&M){_=C;break}b++}return _||p},TS=function(t){var r=gt(t)?[]:t.toString().split(TC);return[{words:r}]},iU=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Si.isSsr){var l,u,c=PC({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;l=f,u=h}else return TS(i);return nU({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return TS(i)},PS="#808080",Wu=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,v=d===void 0?PS:d,w=SS(t,V3),b=O.useMemo(function(){return iU({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:f,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,f,w.style,w.width]),_=w.dx,g=w.dy,x=w.angle,S=w.className,A=w.breakAll,T=SS(w,Z3);if(!xe(n)||!xe(a))return null;var C=n+(it(_)?_:0),P=a+(it(g)?g:0),E;switch(m){case"start":E=mm("calc(".concat(u,")"));break;case"middle":E=mm("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:E=mm("calc(".concat(b.length-1," * -").concat(s,")"));break}var M=[];if(f){var $=b[0].width,j=w.width;M.push("scale(".concat((it(j)?j/$:1)/$,")"))}return x&&M.push("rotate(".concat(x,", ").concat(C,", ").concat(P,")")),M.length&&(T.transform=M.join(" ")),O.createElement("text",ng({},vt(T,!0),{x:C,y:P,className:Pt("recharts-text",S),textAnchor:p,fill:v.includes("url")?PS:v}),b.map(function(k,I){var q=k.words.join(A?"":" ");return O.createElement("tspan",{x:C,dy:I===0?E:s,key:"".concat(q,"-").concat(I)},q)}))};const ES=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:$s,scaleDiverging:WT,scaleDivergingLog:HT,scaleDivergingPow:Tv,scaleDivergingSqrt:QD,scaleDivergingSymlog:GT,scaleIdentity:AT,scaleImplicit:py,scaleLinear:na,scaleLog:TT,scaleOrdinal:uv,scalePoint:cs,scalePow:yv,scaleQuantile:CT,scaleQuantize:MT,scaleRadial:ET,scaleSequential:qT,scaleSequentialLog:FT,scaleSequentialPow:Ov,scaleSequentialQuantile:UT,scaleSequentialSqrt:JD,scaleSequentialSymlog:zT,scaleSqrt:RR,scaleSymlog:PT,scaleThreshold:kT,scaleTime:wu,scaleUtc:ZD,tickFormat:ST},Symbol.toStringTag,{value:"Module"}));var ym,CS;function EC(){if(CS)return ym;CS=1;var e=Co();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(u===void 0?l===l&&!e(l):i(l,u)))var u=l,c=s}return c}return ym=t,ym}var gm,MS;function aU(){if(MS)return gm;MS=1;function e(t,r){return t>r}return gm=e,gm}var vm,kS;function oU(){if(kS)return vm;kS=1;var e=EC(),t=aU(),r=Mo();function n(i){return i&&i.length?e(i,r,t):void 0}return vm=n,vm}var sU=oU();const ci=zt(sU);var bm,$S;function lU(){if($S)return bm;$S=1;function e(t,r){return t<r}return bm=e,bm}var _m,jS;function uU(){if(jS)return _m;jS=1;var e=EC(),t=lU(),r=Mo();function n(i){return i&&i.length?e(i,r,t):void 0}return _m=n,_m}var cU=uU();const Gc=zt(cU);var xm,RS;function fU(){if(RS)return xm;RS=1;var e=m0();function t(r,n){return e(r,n)}return xm=t,xm}var hU=fU();const la=zt(hU);var jo=1e9,pU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},S0,ee=!0,Wr="[DecimalError] ",Qi=Wr+"Invalid argument: ",w0=Wr+"Exponent out of range: ",Ro=Math.floor,Li=Math.pow,dU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Sr,Ee=1e7,Zt=7,CC=9007199254740991,Hu=Ro(CC/Zt),ut={};ut.absoluteValue=ut.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ut.comparedTo=ut.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ut.decimalPlaces=ut.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Zt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ut.dividedBy=ut.div=function(e){return zn(this,new this.constructor(e))};ut.dividedToIntegerBy=ut.idiv=function(e){var t=this,r=t.constructor;return Yt(zn(t,new r(e),0,1),r.precision)};ut.equals=ut.eq=function(e){return!this.cmp(e)};ut.exponent=function(){return de(this)};ut.greaterThan=ut.gt=function(e){return this.cmp(e)>0};ut.greaterThanOrEqualTo=ut.gte=function(e){return this.cmp(e)>=0};ut.isInteger=ut.isint=function(){return this.e>this.d.length-2};ut.isNegative=ut.isneg=function(){return this.s<0};ut.isPositive=ut.ispos=function(){return this.s>0};ut.isZero=function(){return this.s===0};ut.lessThan=ut.lt=function(e){return this.cmp(e)<0};ut.lessThanOrEqualTo=ut.lte=function(e){return this.cmp(e)<1};ut.logarithm=ut.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Sr))throw Error(Wr+"NaN");if(r.s<1)throw Error(Wr+(r.s?"NaN":"-Infinity"));return r.eq(Sr)?new n(0):(ee=!1,t=zn(Zs(r,a),Zs(e,a),a),ee=!0,Yt(t,i))};ut.minus=ut.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$C(t,e):MC(t,(e.s=-e.s,e))};ut.modulo=ut.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Wr+"NaN");return r.s?(ee=!1,t=zn(r,e,0,1).times(e),ee=!0,r.minus(t)):Yt(new n(r),i)};ut.naturalExponential=ut.exp=function(){return kC(this)};ut.naturalLogarithm=ut.ln=function(){return Zs(this)};ut.negated=ut.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ut.plus=ut.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MC(t,e):$C(t,(e.s=-e.s,e))};ut.precision=ut.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qi+e);if(t=de(i)+1,n=i.d.length-1,r=n*Zt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ut.squareRoot=ut.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Wr+"NaN")}for(e=de(s),ee=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=_n(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ro((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(zn(s,a,o+2)).times(.5),_n(a.d).slice(0,o)===(t=_n(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Yt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ee=!0,Yt(n,r)};ut.times=ut.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,h=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=h.length,u=p.length,l<u&&(a=h,h=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%Ee|0,t=s/Ee|0;a[i]=(a[i]+t)%Ee|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ee?Yt(e,f.precision):e};ut.toDecimalPlaces=ut.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Tn(e,0,jo),t===void 0?t=n.rounding:Tn(t,0,8),Yt(r,e+de(r)+1,t))};ut.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ua(n,!0):(Tn(e,0,jo),t===void 0?t=i.rounding:Tn(t,0,8),n=Yt(new i(n),e+1,t),r=ua(n,!0,e+1)),r};ut.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ua(i):(Tn(e,0,jo),t===void 0?t=a.rounding:Tn(t,0,8),n=Yt(new a(i),e+de(i)+1,t),r=ua(n.abs(),!1,e+de(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ut.toInteger=ut.toint=function(){var e=this,t=e.constructor;return Yt(new t(e),de(e)+1,t.rounding)};ut.toNumber=function(){return+this};ut.toPower=ut.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Sr);if(s=new l(s),!s.s){if(e.s<1)throw Error(Wr+"Infinity");return s}if(s.eq(Sr))return s;if(n=l.precision,e.eq(Sr))return Yt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=CC){for(i=new l(Sr),t=Math.ceil(n/Zt+4),ee=!1;r%2&&(i=i.times(s),IS(i.d,t)),r=Ro(r/2),r!==0;)s=s.times(s),IS(s.d,t);return ee=!0,e.s<0?new l(Sr).div(i):Yt(i,n)}}else if(a<0)throw Error(Wr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ee=!1,i=e.times(Zs(s,n+u)),ee=!0,i=kC(i),i.s=a,i};ut.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=de(i),n=ua(i,r<=a.toExpNeg||r>=a.toExpPos)):(Tn(e,1,jo),t===void 0?t=a.rounding:Tn(t,0,8),i=Yt(new a(i),e,t),r=de(i),n=ua(i,e<=r||r<=a.toExpNeg,e)),n};ut.toSignificantDigits=ut.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Tn(e,1,jo),t===void 0?t=n.rounding:Tn(t,0,8)),Yt(new n(r),e,t)};ut.toString=ut.valueOf=ut.val=ut.toJSON=ut[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=de(e),r=e.constructor;return ua(e,t<=r.toExpNeg||t>=r.toExpPos)};function MC(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),ee?Yt(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/Zt),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/Ee|0,l[a]%=Ee;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ee?Yt(t,f):t}function Tn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Qi+e)}function _n(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Zt-n.length,r&&(a+=ai(r)),a+=n;o=e[t],n=o+"",r=Zt-n.length,r&&(a+=ai(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var zn=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Ee|0,o=a/Ee|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ee+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,h,p,y,m,d,v,w,b,_,g,x,S,A,T=n.constructor,C=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Wr+"Division by zero");for(l=n.e-i.e,S=E.length,g=P.length,p=new T(C),y=p.d=[],u=0;E[u]==(P[u]||0);)++u;if(E[u]>(P[u]||0)&&--l,a==null?w=a=T.precision:o?w=a+(de(n)-de(i))+1:w=a,w<0)return new T(0);if(w=w/Zt+2|0,u=0,S==1)for(c=0,E=E[0],w++;(u<g||c)&&w--;u++)b=c*Ee+(P[u]||0),y[u]=b/E|0,c=b%E|0;else{for(c=Ee/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),_=S,m=P.slice(0,S),d=m.length;d<S;)m[d++]=0;A=E.slice(),A.unshift(0),x=E[0],E[1]>=Ee/2&&++x;do c=0,s=t(E,m,S,d),s<0?(v=m[0],S!=d&&(v=v*Ee+(m[1]||0)),c=v/x|0,c>1?(c>=Ee&&(c=Ee-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?A:E,d))),d=m.length):s===0&&(c++,m=[0]),y[u++]=c,s&&m[0]?m[d++]=P[_]||0:(m=[P[_]],d=1);while((_++<g||m[0]!==void 0)&&w--)}return y[0]||y.shift(),p.e=l,Yt(p,o?a+de(p)+1:a)}})();function kC(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(de(e)>16)throw Error(w0+de(e));if(!e.s)return new c(Sr);for(ee=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Li(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(Sr),c.precision=s;;){if(i=Yt(i.times(e),s),r=r.times(++l),o=a.plus(zn(i,r,s)),_n(o.d).slice(0,s)===_n(a.d).slice(0,s)){for(;u--;)a=Yt(a.times(a),s);return c.precision=f,t==null?(ee=!0,Yt(a,f)):a}a=o}}function de(e){for(var t=e.e*Zt,r=e.d[0];r>=10;r/=10)t++;return t}function wm(e,t,r){if(t>e.LN10.sd())throw ee=!0,r&&(e.precision=r),Error(Wr+"LN10 precision limit exceeded");return Yt(new e(e.LN10),t)}function ai(e){for(var t="";e--;)t+="0";return t}function Zs(e,t){var r,n,i,a,o,s,l,u,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(Wr+(p.s?"NaN":"-Infinity"));if(p.eq(Sr))return new m(0);if(t==null?(ee=!1,u=d):u=t,p.eq(10))return t==null&&(ee=!0),wm(m,u);if(u+=h,m.precision=u,r=_n(y),n=r.charAt(0),a=de(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=_n(p.d),n=r.charAt(0),f++;a=de(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return l=wm(m,u+2,d).times(a+""),p=Zs(new m(n+"."+r.slice(1)),u-h).plus(l),m.precision=d,t==null?(ee=!0,Yt(p,d)):p;for(s=o=p=zn(p.minus(Sr),p.plus(Sr),u),c=Yt(p.times(p),u),i=3;;){if(o=Yt(o.times(c),u),l=s.plus(zn(o,new m(i),u)),_n(l.d).slice(0,u)===_n(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(wm(m,u+2,d).times(a+""))),s=zn(s,new m(f),u),m.precision=d,t==null?(ee=!0,Yt(s,d)):s;s=l,i+=2}}function DS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ro(r/Zt),e.d=[],n=(r+1)%Zt,r<0&&(n+=Zt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Zt;n<i;)e.d.push(+t.slice(n,n+=Zt));t=t.slice(n),n=Zt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ee&&(e.e>Hu||e.e<-Hu))throw Error(w0+r)}else e.s=0,e.e=0,e.d=[0];return e}function Yt(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Zt,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Zt),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Zt,i=n-Zt+o}if(r!==void 0&&(a=Li(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Li(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=de(e),f.length=1,t=t-a-1,f[0]=Li(10,(Zt-t%Zt)%Zt),e.e=Ro(-t/Zt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Li(10,Zt-n),f[c]=i>0?(u/Li(10,o-i)%Li(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==Ee&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Ee)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ee&&(e.e>Hu||e.e<-Hu))throw Error(w0+de(e));return e}function $C(e,t){var r,n,i,a,o,s,l,u,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ee?Yt(t,p):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(p/Zt),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=Ee-1;--l[a],l[i]+=Ee}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,ee?Yt(t,p):t):new h(0)}function ua(e,t,r){var n,i=de(e),a=_n(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+ai(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ai(-i-1)+a,r&&(n=r-o)>0&&(a+=ai(n))):i>=o?(a+=ai(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+ai(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=ai(n))),e.s<0?"-"+a:a}function IS(e,t){if(e.length>t)return e.length=t,!0}function jC(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Qi+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return DS(o,a.toString())}else if(typeof a!="string")throw Error(Qi+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,dU.test(a))DS(o,a);else throw Error(Qi+a)}if(i.prototype=ut,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=jC,i.config=i.set=mU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function mU(e){if(!e||typeof e!="object")throw Error(Wr+"Object expected");var t,r,n,i=["precision",1,jo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ro(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Qi+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Qi+r+": "+n);return this}var S0=jC(pU);Sr=new S0(1);const Wt=S0;function yU(e){return _U(e)||bU(e)||vU(e)||gU()}function gU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
93
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vU(e,t){if(e){if(typeof e=="string")return ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ig(e,t)}}function bU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _U(e){if(Array.isArray(e))return ig(e)}function ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var xU=function(t){return t},RC={},DC=function(t){return t===RC},NS=function(t){return function r(){return arguments.length===0||arguments.length===1&&DC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},wU=function e(t,r){return t===1?r:NS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==RC}).length;return o>=t?r.apply(void 0,i):e(t-o,NS(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return DC(f)?l.shift():f});return r.apply(void 0,yU(c).concat(l))}))})},Kc=function(t){return wU(t.length,t)},ag=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},SU=Kc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),AU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return xU;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},og=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},IC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function OU(e){var t;return e===0?t=1:t=Math.floor(new Wt(e).abs().log(10).toNumber())+1,t}function TU(e,t,r){for(var n=new Wt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var PU=Kc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),EU=Kc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),CU=Kc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Yc={rangeStep:TU,getDigitCount:OU,interpolateNumber:PU,uninterpolateNumber:EU,uninterpolateTruncation:CU};function sg(e){return $U(e)||kU(e)||NC(e)||MU()}function MU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function $U(e){if(Array.isArray(e))return lg(e)}function Js(e,t){return DU(e)||RU(e,t)||NC(e,t)||jU()}function jU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e,t){if(e){if(typeof e=="string")return lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lg(e,t)}}function lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function DU(e){if(Array.isArray(e))return e}function LC(e){var t=Js(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function BC(e,t,r){if(e.lte(0))return new Wt(0);var n=Yc.getDigitCount(e.toNumber()),i=new Wt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Wt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Wt(Math.ceil(l))}function IU(e,t,r){var n=1,i=new Wt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Wt(10).pow(Yc.getDigitCount(e)-1),i=new Wt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Wt(Math.floor(e)))}else e===0?i=new Wt(Math.floor((t-1)/2)):r||(i=new Wt(Math.floor(e)));var o=Math.floor((t-1)/2),s=AU(SU(function(l){return i.add(new Wt(l-o).mul(n)).toNumber()}),ag);return s(0,t)}function qC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Wt(0),tickMin:new Wt(0),tickMax:new Wt(0)};var a=BC(new Wt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Wt(0):(o=new Wt(e).add(t).div(2),o=o.sub(new Wt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Wt(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?qC(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Wt(s).mul(a)),tickMax:o.add(new Wt(l).mul(a))})}function NU(e){var t=Js(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=LC([r,n]),l=Js(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(sg(ag(0,i-1).map(function(){return 1/0}))):[].concat(sg(ag(0,i-1).map(function(){return-1/0})),[c]);return r>n?og(f):f}if(u===c)return IU(u,i,a);var h=qC(u,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=Yc.rangeStep(y,m.add(new Wt(.1).mul(p)),p);return r>n?og(d):d}function LU(e,t){var r=Js(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=LC([n,i]),s=Js(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=BC(new Wt(u).sub(l).div(c-1),a,0),h=[].concat(sg(Yc.rangeStep(new Wt(l),new Wt(u).sub(new Wt(.99).mul(f)),f)),[u]);return n>i?og(h):h}var BU=IC(NU),qU=IC(LU),FU=process.env.NODE_ENV==="production",Sm="Invariant failed";function nr(e,t){if(FU)throw new Error(Sm);var r=typeof t=="function"?t():t,n=r?"".concat(Sm,": ").concat(r):Sm;throw new Error(n)}var zU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gu.apply(this,arguments)}function UU(e,t){return KU(e)||GU(e,t)||HU(e,t)||WU()}function WU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HU(e,t){if(e){if(typeof e=="string")return LS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LS(e,t)}}function LS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function KU(e){if(Array.isArray(e))return e}function YU(e,t){if(e==null)return{};var r=XU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UC(n.key),n)}}function JU(e,t,r){return t&&ZU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QU(e,t,r){return t=Ku(t),tW(e,FC()?Reflect.construct(t,r||[],Ku(e).constructor):t.apply(e,r))}function tW(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eW(e)}function eW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FC=function(){return!!e})()}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ku(e)}function rW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ug(e,t)}function ug(e,t){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ug(e,t)}function zC(e,t,r){return t=UC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UC(e){var t=nW(e,"string");return so(t)=="symbol"?t:t+""}function nW(e,t){if(so(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(so(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Do=(function(e){function t(){return VU(this,t),QU(this,t,arguments)}return rW(t,e),JU(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=YU(n,zU),p=vt(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?nr(!1,'ErrorBar requires Axis type property to be "number".'):nr());var y=l.map(function(m){var d=u(m,s),v=d.x,w=d.y,b=d.value,_=d.errorVal;if(!_)return null;var g=[],x,S;if(Array.isArray(_)){var A=UU(_,2);x=A[0],S=A[1]}else x=S=_;if(a==="vertical"){var T=c.scale,C=w+i,P=C+o,E=C-o,M=T(b-x),$=T(b+S);g.push({x1:$,y1:P,x2:$,y2:E}),g.push({x1:M,y1:C,x2:$,y2:C}),g.push({x1:M,y1:P,x2:M,y2:E})}else if(a==="horizontal"){var j=f.scale,k=v+i,I=k-o,q=k+o,F=j(b-x),N=j(b+S);g.push({x1:I,y1:N,x2:q,y2:N}),g.push({x1:k,y1:F,x2:k,y2:N}),g.push({x1:I,y1:F,x2:q,y2:F})}return O.createElement(It,Gu({className:"recharts-errorBar",key:"bar-".concat(g.map(function(D){return"".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))},p),g.map(function(D){return O.createElement("line",Gu({},D,{key:"line-".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))}))});return O.createElement(It,{className:"recharts-errorBars"},y)}}])})(O.Component);zC(Do,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});zC(Do,"displayName","ErrorBar");function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(r),!0).forEach(function(n){iW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iW(e,t,r){return t=aW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aW(e){var t=oW(e,"string");return Qs(t)=="symbol"?t:t+""}function oW(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=_r(r,Ji);if(!o)return null;var s=Ji.defaultProps,l=s!==void 0?Di(Di({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?Di(Di({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,v=p.hide;return{inactive:v,dataKey:y,type:l.iconType||d||"square",color:A0(f),value:m||y,payload:p}}),Di(Di(Di({},l),Ji.getWithHeight(o,i)),{},{payload:u,item:o})};function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function qS(e){return cW(e)||uW(e)||lW(e)||sW()}function sW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
97
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lW(e,t){if(e){if(typeof e=="string")return cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cg(e,t)}}function uW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cW(e){if(Array.isArray(e))return cg(e)}function cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){Wa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wa(e,t,r){return t=fW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fW(e){var t=hW(e,"string");return tl(t)=="symbol"?t:t+""}function hW(e,t){if(tl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function we(e,t,r){return gt(e)||gt(t)?r:xe(t)?Ur(e,t,r):bt(t)?t(e):r}function xs(e,t,r,n){var i=rC(e,function(s){return we(s,t)});if(r==="number"){var a=i.filter(function(s){return it(s)||parseFloat(s)});return a.length?[Gc(a),ci(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!gt(s)}):i;return o.map(function(s){return xe(s)||s instanceof Date?s:""})}var pW=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(on(f-c)!==on(h-f)){var y=[];if(on(h-f)===on(l[1]-l[0])){p=h;var m=f+l[1]-l[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+l[1]-l[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var v=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>v[0]&&t<=v[1]||t>=y[0]&&t<=y[1]){o=i[u].index;break}}else{var w=Math.min(c,h),b=Math.max(c,h);if(t>(w+f)/2&&t<=(b+f)/2){o=i[u].index;break}}}else for(var _=0;_<s;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},A0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},dW=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,v=m.filter(function(S){return qn(S.type).indexOf("Bar")>=0});if(v&&v.length){var w=v[0].type.defaultProps,b=w!==void 0?ie(ie({},w),v[0].props):v[0].props,_=b.barSize,g=b[d];o[g]||(o[g]=[]);var x=gt(_)?r:_;o[g].push({item:v[0],stackList:v.slice(1),barSize:gt(x)?void 0:sa(x,n,0)})}}return o},mW=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=sa(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,y=o.reduce(function(_,g){return _+g.barSize||0},0);y+=(l-1)*u,y>=i&&(y-=(l-1)*u,u=0),y>=i&&p>0&&(h=!0,p*=.9,y=l*p);var m=(i-y)/2>>0,d={offset:m-u,size:0};c=o.reduce(function(_,g){var x={item:g.item,position:{offset:d.offset+d.size+u,size:h?p:g.barSize}},S=[].concat(qS(_),[x]);return d=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:d})}),S},f)}else{var v=sa(n,i,0,!0);i-2*v-(l-1)*u<=0&&(u=0);var w=(i-2*v-(l-1)*u)/l;w>1&&(w>>=0);var b=s===+s?Math.min(w,s):w;c=o.reduce(function(_,g,x){var S=[].concat(qS(_),[{item:g.item,position:{offset:v+(w+u)*x+(w-b)/2,size:b}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},yW=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=WC({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,h=c.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&it(t[p]))return ie(ie({},t),{},Wa({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&it(t[y]))return ie(ie({},t),{},Wa({},y,t[y]+(h||0)))}return t},gW=function(t,r,n){return gt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},HC=function(t,r,n,i,a){var o=r.props.children,s=ur(o,Do).filter(function(u){return gW(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=we(c,n);if(gt(f))return u;var h=Array.isArray(f)?[Gc(f),ci(f)]:[f,f],p=l.reduce(function(y,m){var d=we(c,m,0),v=h[0]-Math.abs(Array.isArray(d)?d[0]:d),w=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(v,y[0]),Math.max(w,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},vW=function(t,r,n,i,a){var o=r.map(function(s){return HC(t,s,n,a,i)}).filter(function(s){return!gt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},GC=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&HC(t,l,u,i)||xs(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},KC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},YC=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Bn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?on(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+u,value:f,offset:u}});return c.filter(function(f){return!$o(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+u,value:f,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,h){return{coordinate:i(f)+u,value:a?a[f]:f,index:h,offset:u}})},Am=new WeakMap,Yl=function(t,r){if(typeof r!="function")return t;Am.has(t)||Am.set(t,new WeakMap);var n=Am.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},bW=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:$s(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:na(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:cs(),realScaleType:"point"}:a==="category"?{scale:$s(),realScaleType:"band"}:{scale:na(),realScaleType:"linear"};if(oa(i)){var l="scale".concat(Uc(i));return{scale:(ES[l]||cs)(),realScaleType:ES[l]?l:"point"}}return bt(i)?{scale:i}:{scale:cs(),realScaleType:"point"}},zS=1e-4,_W=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-zS,o=Math.max(i[0],i[1])+zS,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},xW=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},wW=function(t,r){if(!r||r.length!==2||!it(r[0])||!it(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!it(t[0])||t[0]<n)&&(a[0]=n),(!it(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},SW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=$o(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},AW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=$o(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},OW={sign:SW,expand:kI,none:Va,silhouette:$I,wiggle:jI,positive:AW},TW=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=OW[n],o=Eu().keys(i).value(function(s,l){return+we(s,l,0)}).order(vy).offset(a);return o(t)},PW=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ie(ie({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var v=y[n],w=f[v]||{hasStack:!1,stackGroups:{}};if(xe(m)){var b=w.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),w.hasStack=!0,w.stackGroups[m]=b}else w.stackGroups[ga("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ie(ie({},f),{},Wa({},v,w))},l),c={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,d){var v=p.stackGroups[d];return ie(ie({},m),{},Wa({},d,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:TW(t,v.items,a)}))},y)}return ie(ie({},f),{},Wa({},h,p))},c)},EW=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=BU(u,a,s);return t.domain([Gc(c),ci(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=qU(f,a,s);return{niceTicks:h}}return null};function lo(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!gt(i[t.dataKey])){var s=Nu(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=we(i,gt(o)?t.dataKey:o);return gt(l)?null:t.scale(l)}var US=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=we(o,r.dataKey,r.domain[s]);return gt(l)?null:r.scale(l)-a/2+i},CW=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},MW=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(xe(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},kW=function(t){return t.reduce(function(r,n){return[Gc(n.concat([r[0]]).filter(it)),ci(n.concat([r[1]]).filter(it))]},[1/0,-1/0])},XC=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=kW(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},WS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fg=function(t,r,n){if(bt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(it(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(WS.test(t[0])){var a=+WS.exec(t[0])[1];i[0]=r[0]-a}else bt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(it(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(HS.test(t[1])){var o=+HS.exec(t[1])[1];i[1]=r[1]+o}else bt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Yu=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=zc(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},GS=function(t,r,n){return!t||!t.length||la(t,Ur(n,"type.defaultProps.domain"))?r:t},VC=function(t,r){var n=t.type.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return ie(ie({},vt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:A0(t),value:we(r,i),type:l,payload:r,chartType:u,hide:c})};function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){$W(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $W(e,t,r){return t=jW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jW(e){var t=RW(e,"string");return el(t)=="symbol"?t:t+""}function RW(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xu=Math.PI/180,DW=function(t){return t*180/Math.PI},De=function(t,r,n,i){return{x:t+Math.cos(-Xu*i)*n,y:r+Math.sin(-Xu*i)*n}},IW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},NW=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=IW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:DW(u),angleInRadian:u}},LW=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},BW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},XS=function(t,r){var n=t.x,i=t.y,a=NW({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=LW(r),f=c.startAngle,h=c.endAngle,p=s,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?YS(YS({},r),{},{radius:o,angle:BW(p,r)}):null};function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}var qW=["offset"];function FW(e){return HW(e)||WW(e)||UW(e)||zW()}function zW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UW(e,t){if(e){if(typeof e=="string")return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hg(e,t)}}function WW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HW(e){if(Array.isArray(e))return hg(e)}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GW(e,t){if(e==null)return{};var r=KW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VS(Object(r),!0).forEach(function(n){YW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YW(e,t,r){return t=XW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XW(e){var t=VW(e,"string");return rl(t)=="symbol"?t:t+""}function VW(e,t){if(rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nl.apply(this,arguments)}var ZW=function(t){var r=t.value,n=t.formatter,i=gt(t.children)?r:t.children;return bt(n)?n(i):i},JW=function(t,r){var n=on(r-t),i=Math.min(Math.abs(r-t),360);return n*i},QW=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,h=l.outerRadius,p=l.startAngle,y=l.endAngle,m=l.clockWise,d=(f+h)/2,v=JW(p,y),w=v>=0?1:-1,b,_;i==="insideStart"?(b=p+w*o,_=m):i==="insideEnd"?(b=y-w*o,_=!m):i==="end"&&(b=y+w*o,_=m),_=v<=0?_:!_;var g=De(u,c,d,b),x=De(u,c,d,b+(_?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
99
+ A`).concat(d,",").concat(d,",0,1,").concat(_?0:1,`,
100
+ `).concat(x.x,",").concat(x.y),A=gt(t.id)?ga("recharts-radial-line-"):t.id;return O.createElement("text",nl({},n,{dominantBaseline:"central",className:Pt("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},t8=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=De(o,s,u+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(l+u)/2,v=De(o,s,d,h),w=v.x,b=v.y;return{x:w,y:b,textAnchor:"middle",verticalAnchor:"middle"}},e8=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=u>=0?1:-1,d=m*i,v=m>0?"end":"start",w=m>0?"start":"end";if(a==="top"){var b={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:p};return _e(_e({},b),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var _={x:s+u/2,y:l+c+h,textAnchor:"middle",verticalAnchor:y};return _e(_e({},_),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var g={x:s-d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"};return _e(_e({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var x={x:s+u+d,y:l+c/2,textAnchor:w,verticalAnchor:"middle"};return _e(_e({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return a==="insideLeft"?_e({x:s+d,y:l+c/2,textAnchor:w,verticalAnchor:"middle"},S):a==="insideRight"?_e({x:s+u-d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideTop"?_e({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?_e({x:s+u/2,y:l+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?_e({x:s+d,y:l+h,textAnchor:w,verticalAnchor:y},S):a==="insideTopRight"?_e({x:s+u-d,y:l+h,textAnchor:v,verticalAnchor:y},S):a==="insideBottomLeft"?_e({x:s+d,y:l+c-h,textAnchor:w,verticalAnchor:p},S):a==="insideBottomRight"?_e({x:s+u-d,y:l+c-h,textAnchor:v,verticalAnchor:p},S):ko(a)&&(it(a.x)||Wi(a.x))&&(it(a.y)||Wi(a.y))?_e({x:s+sa(a.x,u),y:l+sa(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):_e({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},r8=function(t){return"cx"in t&&it(t.cx)};function ze(e){var t=e.offset,r=t===void 0?5:t,n=GW(e,qW),i=_e({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||gt(s)&&gt(l)&&!O.isValidElement(u)&&!bt(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var p;if(bt(u)){if(p=O.createElement(u,i),O.isValidElement(p))return p}else p=ZW(i);var y=r8(a),m=vt(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return QW(i,p,m);var d=y?t8(i):e8(i);return O.createElement(Wu,nl({className:Pt("recharts-label",f)},m,d,{breakAll:h}),p)}ze.displayName="Label";var ZC=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,d=t.height,v=t.clockWise,w=t.labelViewBox;if(w)return w;if(it(m)&&it(d)){if(it(f)&&it(h))return{x:f,y:h,width:m,height:d};if(it(p)&&it(y))return{x:p,y,width:m,height:d}}return it(f)&&it(h)?{x:f,y:h,width:0,height:0}:it(r)&&it(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},n8=function(t,r){return t?t===!0?O.createElement(ze,{key:"label-implicit",viewBox:r}):xe(t)?O.createElement(ze,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===ze?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(ze,{key:"label-implicit",content:t,viewBox:r}):bt(t)?O.createElement(ze,{key:"label-implicit",content:t,viewBox:r}):ko(t)?O.createElement(ze,nl({viewBox:r},t,{key:"label-implicit"})):null:null},i8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=ZC(t),o=ur(i,ze).map(function(l,u){return O.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=n8(t.label,r||a);return[s].concat(FW(o))};ze.parseViewBox=ZC;ze.renderCallByParent=i8;var Om,ZS;function a8(){if(ZS)return Om;ZS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Om=e,Om}var o8=a8();const s8=zt(o8);function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}var l8=["valueAccessor"],u8=["data","dataKey","clockWise","id","textBreakAll"];function c8(e){return d8(e)||p8(e)||h8(e)||f8()}function f8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
101
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h8(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pg(e,t)}}function p8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d8(e){if(Array.isArray(e))return pg(e)}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vu.apply(this,arguments)}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(r),!0).forEach(function(n){m8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m8(e,t,r){return t=y8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y8(e){var t=g8(e,"string");return il(t)=="symbol"?t:t+""}function g8(e,t){if(il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(il(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tA(e,t){if(e==null)return{};var r=v8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var b8=function(t){return Array.isArray(t.value)?s8(t.value):t.value};function Sn(e){var t=e.valueAccessor,r=t===void 0?b8:t,n=tA(e,l8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=tA(n,u8);return!i||!i.length?null:O.createElement(It,{className:"recharts-label-list"},i.map(function(c,f){var h=gt(a)?r(c,f):we(c&&c.payload,a),p=gt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(ze,Vu({},vt(c,!0),u,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:l,viewBox:ze.parseViewBox(gt(o)?c:QS(QS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Sn.displayName="LabelList";function _8(e,t){return e?e===!0?O.createElement(Sn,{key:"labelList-implicit",data:t}):O.isValidElement(e)||bt(e)?O.createElement(Sn,{key:"labelList-implicit",data:t,content:e}):ko(e)?O.createElement(Sn,Vu({data:t},e,{key:"labelList-implicit"})):null:null}function x8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=ur(n,Sn).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=_8(e.label,t);return[a].concat(c8(i))}Sn.renderCallByParent=x8;function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function dg(){return dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dg.apply(this,arguments)}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(n){w8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w8(e,t,r){return t=S8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S8(e){var t=A8(e,"string");return al(t)=="symbol"?t:t+""}function A8(e,t){if(al(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(al(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O8=function(t,r){var n=on(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Xl=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/Xu,h=u?a:a+o*f,p=De(r,n,c,h),y=De(r,n,i,h),m=u?a-o*f:a,d=De(r,n,c*Math.cos(f*Xu),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},JC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=O8(o,s),u=o+l,c=De(r,n,a,o),f=De(r,n,a,u),h="M ".concat(c.x,",").concat(c.y,`
102
102
  A `).concat(a,",").concat(a,`,0,
103
- `).concat(+(Math.abs(u)>180),",").concat(+(o>l),`,
103
+ `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
104
104
  `).concat(f.x,",").concat(f.y,`
105
- `);if(i>0){var p=Ee(r,n,i,o),y=Ee(r,n,i,l);h+="L ".concat(y.x,",").concat(y.y,`
105
+ `);if(i>0){var p=De(r,n,i,o),y=De(r,n,i,u);h+="L ".concat(y.x,",").concat(y.y,`
106
106
  A `).concat(i,",").concat(i,`,0,
107
- `).concat(+(Math.abs(u)>180),",").concat(+(o<=l),`,
108
- `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},KW=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,l=t.startAngle,c=t.endAngle,f=Nr(c-l),h=bu({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=bu({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),g=d.circleTangency,_=d.lineTangency,b=d.theta,x=u?Math.abs(l-c):Math.abs(l-c)-m-b;if(x<0)return s?"M ".concat(y.x,",").concat(y.y,`
107
+ `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
108
+ `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},T8=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=on(c-u),h=Xl({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=Xl({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),v=d.circleTangency,w=d.lineTangency,b=d.theta,_=l?Math.abs(u-c):Math.abs(u-c)-m-b;if(_<0)return s?"M ".concat(y.x,",").concat(y.y,`
109
109
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
110
110
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
111
- `):vC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c});var v="M ".concat(y.x,",").concat(y.y,`
111
+ `):JC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var g="M ".concat(y.x,",").concat(y.y,`
112
112
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
113
- A`).concat(a,",").concat(a,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
114
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,`
115
- `);if(i>0){var w=bu({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),S=w.circleTangency,A=w.lineTangency,P=w.theta,C=bu({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),T=C.circleTangency,E=C.lineTangency,k=C.theta,j=u?Math.abs(l-c):Math.abs(l-c)-P-k;if(j<0&&o===0)return"".concat(v,"L").concat(r,",").concat(n,"Z");v+="L".concat(E.x,",").concat(E.y,`
116
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,`
117
- A`).concat(i,",").concat(i,",0,").concat(+(j>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
118
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else v+="L".concat(r,",").concat(n,"Z");return v},YW={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},gC=function(t){var r=xS(xS({},YW),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,h=r.className;if(o<a||c===f)return null;var p=At("recharts-sector",h),y=o-a,m=$i(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=KW({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:c,endAngle:f}):d=vC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",$y({},vt(r,!0),{className:p,d,role:"img"}))};function Ms(e){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function jy(){return jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jy.apply(this,arguments)}function wS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wS(Object(r),!0).forEach(function(n){XW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XW(e,t,r){return t=VW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VW(e){var t=ZW(e,"string");return Ms(t)=="symbol"?t:t+""}function ZW(e,t){if(Ms(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OS={curveBasisClosed:qR,curveBasisOpen:FR,curveBasis:BR,curveBumpX:AR,curveBumpY:PR,curveLinearClosed:WR,curveLinear:Ci,curveMonotoneX:GR,curveMonotoneY:HR,curveNatural:KR,curveStep:YR,curveStepAfter:VR,curveStepBefore:XR},_u=function(t){return t.x===+t.x&&t.y===+t.y},wo=function(t){return t.x},So=function(t){return t.y},JW=function(t,r){if(gt(t))return t;var n="curve".concat(pc(t));return(n==="curveMonotone"||n==="curveBump")&&r?OS["".concat(n).concat(r==="vertical"?"Y":"X")]:OS[n]||Ci},QW=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,u=t.connectNulls,l=u===void 0?!1:u,c=JW(n,s),f=l?a.filter(function(m){return _u(m)}):a,h;if(Array.isArray(o)){var p=l?o.filter(function(m){return _u(m)}):o,y=f.map(function(m,d){return SS(SS({},m),{},{base:p[d]})});return s==="vertical"?h=hi().y(So).x1(wo).x0(function(m){return m.base.x}):h=hi().x(wo).y1(So).y0(function(m){return m.base.y}),h.defined(_u).curve(c),h(y)}return s==="vertical"&&nt(o)?h=hi().y(So).x1(wo).x0(o):nt(o)?h=hi().x(wo).y1(So).y0(o):h=Kv().x(wo).y(So),h.defined(_u).curve(c),h(f)},Ai=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?QW(t):i;return Pr.createElement("path",jy({},vt(t,!1),ul(t),{className:At("recharts-curve",r),d:o,ref:a}))},xu={exports:{}},wu={exports:{}},Nt={};/** @license React v16.13.1
113
+ A`).concat(a,",").concat(a,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
114
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
115
+ `);if(i>0){var x=Xl({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),S=x.circleTangency,A=x.lineTangency,T=x.theta,C=Xl({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=C.circleTangency,E=C.lineTangency,M=C.theta,$=l?Math.abs(u-c):Math.abs(u-c)-T-M;if($<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
116
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
117
+ A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
118
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},P8={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QC=function(t){var r=rA(rA({},P8),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,h=r.className;if(o<a||c===f)return null;var p=Pt("recharts-sector",h),y=o-a,m=sa(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=T8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):d=JC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",dg({},vt(r,!0),{className:p,d,role:"img"}))};function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mg.apply(this,arguments)}function nA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(n){E8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E8(e,t,r){return t=C8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C8(e){var t=M8(e,"string");return ol(t)=="symbol"?t:t+""}function M8(e,t){if(ol(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ol(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aA={curveBasisClosed:vI,curveBasisOpen:bI,curveBasis:gI,curveBumpX:nI,curveBumpY:iI,curveLinearClosed:wI,curveLinear:ia,curveMonotoneX:SI,curveMonotoneY:AI,curveNatural:OI,curveStep:TI,curveStepAfter:EI,curveStepBefore:PI},Vl=function(t){return t.x===+t.x&&t.y===+t.y},Zo=function(t){return t.x},Jo=function(t){return t.y},k8=function(t,r){if(bt(t))return t;var n="curve".concat(Uc(t));return(n==="curveMonotone"||n==="curveBump")&&r?aA["".concat(n).concat(r==="vertical"?"Y":"X")]:aA[n]||ia},$8=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=k8(n,s),f=u?a.filter(function(m){return Vl(m)}):a,h;if(Array.isArray(o)){var p=u?o.filter(function(m){return Vl(m)}):o,y=f.map(function(m,d){return iA(iA({},m),{},{base:p[d]})});return s==="vertical"?h=Fi().y(Jo).x1(Zo).x0(function(m){return m.base.x}):h=Fi().x(Zo).y1(Jo).y0(function(m){return m.base.y}),h.defined(Vl).curve(c),h(y)}return s==="vertical"&&it(o)?h=Fi().y(Jo).x1(Zo).x0(o):it(o)?h=Fi().x(Zo).y1(Jo).y0(o):h=Cv().x(Zo).y(Jo),h.defined(Vl).curve(c),h(f)},ta=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?$8(t):i;return zr.createElement("path",mg({},vt(t,!1),Lu(t),{className:Pt("recharts-curve",r),d:o,ref:a}))},Zl={exports:{}},Jl={exports:{}},Bt={};/** @license React v16.13.1
119
119
  * react-is.production.min.js
120
120
  *
121
121
  * Copyright (c) Facebook, Inc. and its affiliates.
122
122
  *
123
123
  * This source code is licensed under the MIT license found in the
124
124
  * LICENSE file in the root directory of this source tree.
125
- */var AS;function t8(){if(AS)return Nt;AS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case u:case l:case n:case a:case i:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case c:case y:case p:case o:return v;default:return w}}case r:return w}}}function x(v){return b(v)===l}return Nt.AsyncMode=u,Nt.ConcurrentMode=l,Nt.ContextConsumer=s,Nt.ContextProvider=o,Nt.Element=t,Nt.ForwardRef=c,Nt.Fragment=n,Nt.Lazy=y,Nt.Memo=p,Nt.Portal=r,Nt.Profiler=a,Nt.StrictMode=i,Nt.Suspense=f,Nt.isAsyncMode=function(v){return x(v)||b(v)===u},Nt.isConcurrentMode=x,Nt.isContextConsumer=function(v){return b(v)===s},Nt.isContextProvider=function(v){return b(v)===o},Nt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Nt.isForwardRef=function(v){return b(v)===c},Nt.isFragment=function(v){return b(v)===n},Nt.isLazy=function(v){return b(v)===y},Nt.isMemo=function(v){return b(v)===p},Nt.isPortal=function(v){return b(v)===r},Nt.isProfiler=function(v){return b(v)===a},Nt.isStrictMode=function(v){return b(v)===i},Nt.isSuspense=function(v){return b(v)===f},Nt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===l||v===a||v===i||v===f||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===p||v.$$typeof===o||v.$$typeof===s||v.$$typeof===c||v.$$typeof===d||v.$$typeof===g||v.$$typeof===_||v.$$typeof===m)},Nt.typeOf=b,Nt}var Lt={};/** @license React v16.13.1
125
+ */var oA;function j8(){if(oA)return Bt;oA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case t:switch(g=g.type,g){case l:case u:case n:case a:case i:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case y:case p:case o:return g;default:return x}}case r:return x}}}function _(g){return b(g)===u}return Bt.AsyncMode=l,Bt.ConcurrentMode=u,Bt.ContextConsumer=s,Bt.ContextProvider=o,Bt.Element=t,Bt.ForwardRef=c,Bt.Fragment=n,Bt.Lazy=y,Bt.Memo=p,Bt.Portal=r,Bt.Profiler=a,Bt.StrictMode=i,Bt.Suspense=f,Bt.isAsyncMode=function(g){return _(g)||b(g)===l},Bt.isConcurrentMode=_,Bt.isContextConsumer=function(g){return b(g)===s},Bt.isContextProvider=function(g){return b(g)===o},Bt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Bt.isForwardRef=function(g){return b(g)===c},Bt.isFragment=function(g){return b(g)===n},Bt.isLazy=function(g){return b(g)===y},Bt.isMemo=function(g){return b(g)===p},Bt.isPortal=function(g){return b(g)===r},Bt.isProfiler=function(g){return b(g)===a},Bt.isStrictMode=function(g){return b(g)===i},Bt.isSuspense=function(g){return b(g)===f},Bt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===u||g===a||g===i||g===f||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===p||g.$$typeof===o||g.$$typeof===s||g.$$typeof===c||g.$$typeof===d||g.$$typeof===v||g.$$typeof===w||g.$$typeof===m)},Bt.typeOf=b,Bt}var qt={};/** @license React v16.13.1
126
126
  * react-is.development.js
127
127
  *
128
128
  * Copyright (c) Facebook, Inc. and its affiliates.
129
129
  *
130
130
  * This source code is licensed under the MIT license found in the
131
131
  * LICENSE file in the root directory of this source tree.
132
- */var PS;function e8(){return PS||(PS=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(N){return typeof N=="string"||typeof N=="function"||N===n||N===l||N===a||N===i||N===f||N===h||typeof N=="object"&&N!==null&&(N.$$typeof===y||N.$$typeof===p||N.$$typeof===o||N.$$typeof===s||N.$$typeof===c||N.$$typeof===d||N.$$typeof===g||N.$$typeof===_||N.$$typeof===m)}function x(N){if(typeof N=="object"&&N!==null){var ut=N.$$typeof;switch(ut){case t:var H=N.type;switch(H){case u:case l:case n:case a:case i:case f:return H;default:var st=H&&H.$$typeof;switch(st){case s:case c:case y:case p:case o:return st;default:return ut}}case r:return ut}}}var v=u,w=l,S=s,A=o,P=t,C=c,T=n,E=y,k=p,j=r,$=a,M=i,I=f,L=!1;function q(N){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(N)||x(N)===u}function R(N){return x(N)===l}function D(N){return x(N)===s}function B(N){return x(N)===o}function U(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function W(N){return x(N)===c}function X(N){return x(N)===n}function Z(N){return x(N)===y}function Q(N){return x(N)===p}function K(N){return x(N)===r}function F(N){return x(N)===a}function G(N){return x(N)===i}function J(N){return x(N)===f}Lt.AsyncMode=v,Lt.ConcurrentMode=w,Lt.ContextConsumer=S,Lt.ContextProvider=A,Lt.Element=P,Lt.ForwardRef=C,Lt.Fragment=T,Lt.Lazy=E,Lt.Memo=k,Lt.Portal=j,Lt.Profiler=$,Lt.StrictMode=M,Lt.Suspense=I,Lt.isAsyncMode=q,Lt.isConcurrentMode=R,Lt.isContextConsumer=D,Lt.isContextProvider=B,Lt.isElement=U,Lt.isForwardRef=W,Lt.isFragment=X,Lt.isLazy=Z,Lt.isMemo=Q,Lt.isPortal=K,Lt.isProfiler=F,Lt.isStrictMode=G,Lt.isSuspense=J,Lt.isValidElementType=b,Lt.typeOf=x})()),Lt}var TS;function bC(){return TS||(TS=1,process.env.NODE_ENV==="production"?wu.exports=t8():wu.exports=e8()),wu.exports}/*
132
+ */var sA;function R8(){return sA||(sA=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(R){return typeof R=="string"||typeof R=="function"||R===n||R===u||R===a||R===i||R===f||R===h||typeof R=="object"&&R!==null&&(R.$$typeof===y||R.$$typeof===p||R.$$typeof===o||R.$$typeof===s||R.$$typeof===c||R.$$typeof===d||R.$$typeof===v||R.$$typeof===w||R.$$typeof===m)}function _(R){if(typeof R=="object"&&R!==null){var ot=R.$$typeof;switch(ot){case t:var U=R.type;switch(U){case l:case u:case n:case a:case i:case f:return U;default:var nt=U&&U.$$typeof;switch(nt){case s:case c:case y:case p:case o:return nt;default:return ot}}case r:return ot}}}var g=l,x=u,S=s,A=o,T=t,C=c,P=n,E=y,M=p,$=r,j=a,k=i,I=f,q=!1;function F(R){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(R)||_(R)===l}function N(R){return _(R)===u}function D(R){return _(R)===s}function L(R){return _(R)===o}function G(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Y(R){return _(R)===c}function z(R){return _(R)===n}function V(R){return _(R)===y}function Q(R){return _(R)===p}function K(R){return _(R)===r}function B(R){return _(R)===a}function H(R){return _(R)===i}function Z(R){return _(R)===f}qt.AsyncMode=g,qt.ConcurrentMode=x,qt.ContextConsumer=S,qt.ContextProvider=A,qt.Element=T,qt.ForwardRef=C,qt.Fragment=P,qt.Lazy=E,qt.Memo=M,qt.Portal=$,qt.Profiler=j,qt.StrictMode=k,qt.Suspense=I,qt.isAsyncMode=F,qt.isConcurrentMode=N,qt.isContextConsumer=D,qt.isContextProvider=L,qt.isElement=G,qt.isForwardRef=Y,qt.isFragment=z,qt.isLazy=V,qt.isMemo=Q,qt.isPortal=K,qt.isProfiler=B,qt.isStrictMode=H,qt.isSuspense=Z,qt.isValidElementType=b,qt.typeOf=_})()),qt}var lA;function tM(){return lA||(lA=1,process.env.NODE_ENV==="production"?Jl.exports=j8():Jl.exports=R8()),Jl.exports}/*
133
133
  object-assign
134
134
  (c) Sindre Sorhus
135
135
  @license MIT
136
- */var Wd,ES;function r8(){if(ES)return Wd;ES=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wd=i()?Object.assign:function(a,o){for(var s,u=n(a),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(u[f]=s[f]);if(e){l=e(s);for(var h=0;h<l.length;h++)r.call(s,l[h])&&(u[l[h]]=s[l[h]])}}return u},Wd}var Gd,CS;function Ug(){if(CS)return Gd;CS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gd=e,Gd}var Hd,MS;function _C(){return MS||(MS=1,Hd=Function.call.bind(Object.prototype.hasOwnProperty)),Hd}var Kd,kS;function n8(){if(kS)return Kd;kS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ug(),r={},n=_C();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var h=Error((u||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[c](o,c,u,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Kd=i,Kd}var Yd,$S;function i8(){if($S)return Yd;$S=1;var e=bC(),t=r8(),r=Ug(),n=_C(),i=n8(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Yd=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(R){var D=R&&(l&&R[l]||R[c]);if(typeof D=="function")return D}var h="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:_(),arrayOf:b,element:x(),elementType:v(),instanceOf:w,node:C(),objectOf:A,oneOf:S,oneOfType:P,shape:E,exact:k};function y(R,D){return R===D?R!==0||1/R===1/D:R!==R&&D!==D}function m(R,D){this.message=R,this.data=D&&typeof D=="object"?D:{},this.stack=""}m.prototype=Error.prototype;function d(R){if(process.env.NODE_ENV!=="production")var D={},B=0;function U(X,Z,Q,K,F,G,J){if(K=K||h,G=G||Q,J!==r){if(u){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ut=K+":"+Q;!D[ut]&&B<3&&(a("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[ut]=!0,B++)}}return Z[Q]==null?X?Z[Q]===null?new m("The "+F+" `"+G+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+F+" `"+G+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:R(Z,Q,K,F,G)}var W=U.bind(null,!1);return W.isRequired=U.bind(null,!0),W}function g(R){function D(B,U,W,X,Z,Q){var K=B[U],F=M(K);if(F!==R){var G=I(K);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+G+"` supplied to `"+W+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return d(D)}function _(){return d(o)}function b(R){function D(B,U,W,X,Z){if(typeof R!="function")return new m("Property `"+Z+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var Q=B[U];if(!Array.isArray(Q)){var K=M(Q);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+K+"` supplied to `"+W+"`, expected an array."))}for(var F=0;F<Q.length;F++){var G=R(Q,F,W,X,Z+"["+F+"]",r);if(G instanceof Error)return G}return null}return d(D)}function x(){function R(D,B,U,W,X){var Z=D[B];if(!s(Z)){var Q=M(Z);return new m("Invalid "+W+" `"+X+"` of type "+("`"+Q+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return d(R)}function v(){function R(D,B,U,W,X){var Z=D[B];if(!e.isValidElementType(Z)){var Q=M(Z);return new m("Invalid "+W+" `"+X+"` of type "+("`"+Q+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return d(R)}function w(R){function D(B,U,W,X,Z){if(!(B[U]instanceof R)){var Q=R.name||h,K=q(B[U]);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+K+"` supplied to `"+W+"`, expected ")+("instance of `"+Q+"`."))}return null}return d(D)}function S(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function D(B,U,W,X,Z){for(var Q=B[U],K=0;K<R.length;K++)if(y(Q,R[K]))return null;var F=JSON.stringify(R,function(J,N){var ut=I(N);return ut==="symbol"?String(N):N});return new m("Invalid "+X+" `"+Z+"` of value `"+String(Q)+"` "+("supplied to `"+W+"`, expected one of "+F+"."))}return d(D)}function A(R){function D(B,U,W,X,Z){if(typeof R!="function")return new m("Property `"+Z+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var Q=B[U],K=M(Q);if(K!=="object")return new m("Invalid "+X+" `"+Z+"` of type "+("`"+K+"` supplied to `"+W+"`, expected an object."));for(var F in Q)if(n(Q,F)){var G=R(Q,F,W,X,Z+"."+F,r);if(G instanceof Error)return G}return null}return d(D)}function P(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var D=0;D<R.length;D++){var B=R[D];if(typeof B!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(B)+" at index "+D+"."),o}function U(W,X,Z,Q,K){for(var F=[],G=0;G<R.length;G++){var J=R[G],N=J(W,X,Z,Q,K,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&F.push(N.data.expectedType)}var ut=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+Q+" `"+K+"` supplied to "+("`"+Z+"`"+ut+"."))}return d(U)}function C(){function R(D,B,U,W,X){return j(D[B])?null:new m("Invalid "+W+" `"+X+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return d(R)}function T(R,D,B,U,W){return new m((R||"React class")+": "+D+" type `"+B+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function E(R){function D(B,U,W,X,Z){var Q=B[U],K=M(Q);if(K!=="object")return new m("Invalid "+X+" `"+Z+"` of type `"+K+"` "+("supplied to `"+W+"`, expected `object`."));for(var F in R){var G=R[F];if(typeof G!="function")return T(W,X,Z,F,I(G));var J=G(Q,F,W,X,Z+"."+F,r);if(J)return J}return null}return d(D)}function k(R){function D(B,U,W,X,Z){var Q=B[U],K=M(Q);if(K!=="object")return new m("Invalid "+X+" `"+Z+"` of type `"+K+"` "+("supplied to `"+W+"`, expected `object`."));var F=t({},B[U],R);for(var G in F){var J=R[G];if(n(R,G)&&typeof J!="function")return T(W,X,Z,G,I(J));if(!J)return new m("Invalid "+X+" `"+Z+"` key `"+G+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(B[U],null," ")+`
137
- Valid keys: `+JSON.stringify(Object.keys(R),null," "));var N=J(Q,G,W,X,Z+"."+G,r);if(N)return N}return null}return d(D)}function j(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(j);if(R===null||s(R))return!0;var D=f(R);if(D){var B=D.call(R),U;if(D!==R.entries){for(;!(U=B.next()).done;)if(!j(U.value))return!1}else for(;!(U=B.next()).done;){var W=U.value;if(W&&!j(W[1]))return!1}}else return!1;return!0;default:return!1}}function $(R,D){return R==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function M(R){var D=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":$(D,R)?"symbol":D}function I(R){if(typeof R>"u"||R===null)return""+R;var D=M(R);if(D==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return D}function L(R){var D=I(R);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function q(R){return!R.constructor||!R.constructor.name?h:R.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Yd}var Xd,jS;function a8(){if(jS)return Xd;jS=1;var e=Ug();function t(){}function r(){}return r.resetWarningCache=t,Xd=function(){function n(o,s,u,l,c,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Xd}var DS;function o8(){if(DS)return xu.exports;if(DS=1,process.env.NODE_ENV!=="production"){var e=bC(),t=!0;xu.exports=i8()(e.isElement,t)}else xu.exports=a8()();return xu.exports}var s8=o8();const Bt=qt(s8);var u8=Object.getOwnPropertyNames,l8=Object.getOwnPropertySymbols,c8=Object.prototype.hasOwnProperty;function RS(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Su(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var u=e(r,n,i);return a.delete(r),a.delete(n),u}}function f8(e){return e!=null?e[Symbol.toStringTag]:void 0}function IS(e){return u8(e).concat(l8(e))}var h8=Object.hasOwn||(function(e,t){return c8.call(e,t)});function Ui(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var p8="__v",d8="__o",m8="_owner",NS=Object.getOwnPropertyDescriptor,LS=Object.keys;function y8(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function v8(e,t){return Ui(e.getTime(),t.getTime())}function g8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function b8(e,t){return e===t}function BS(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,u=0;(o=a.next())&&!o.done;){for(var l=t.entries(),c=!1,f=0;(s=l.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],u,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;u++}return!0}var _8=Ui;function x8(e,t,r){var n=LS(e),i=n.length;if(LS(t).length!==i)return!1;for(;i-- >0;)if(!xC(e,t,r,n[i]))return!1;return!0}function Oo(e,t,r){var n=IS(e),i=n.length;if(IS(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!xC(e,t,r,a)||(o=NS(e,a),s=NS(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function w8(e,t){return Ui(e.valueOf(),t.valueOf())}function S8(e,t){return e.source===t.source&&e.flags===t.flags}function qS(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var u=t.values(),l=!1,c=0;(s=u.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){l=i[c]=!0;break}c++}if(!l)return!1}return!0}function O8(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function A8(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function xC(e,t,r,n){return(n===m8||n===d8||n===p8)&&(e.$$typeof||t.$$typeof)?!0:h8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var P8="[object Arguments]",T8="[object Boolean]",E8="[object Date]",C8="[object Error]",M8="[object Map]",k8="[object Number]",$8="[object Object]",j8="[object RegExp]",D8="[object Set]",R8="[object String]",I8="[object URL]",N8=Array.isArray,FS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,zS=Object.assign,L8=Object.prototype.toString.call.bind(Object.prototype.toString);function B8(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,g){if(m===d)return!0;if(m==null||d==null)return!1;var _=typeof m;if(_!==typeof d)return!1;if(_!=="object")return _==="number"?o(m,d,g):_==="function"?i(m,d,g):!1;var b=m.constructor;if(b!==d.constructor)return!1;if(b===Object)return s(m,d,g);if(N8(m))return t(m,d,g);if(FS!=null&&FS(m))return f(m,d,g);if(b===Date)return r(m,d,g);if(b===RegExp)return l(m,d,g);if(b===Map)return a(m,d,g);if(b===Set)return c(m,d,g);var x=L8(m);if(x===E8)return r(m,d,g);if(x===j8)return l(m,d,g);if(x===M8)return a(m,d,g);if(x===D8)return c(m,d,g);if(x===$8)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,g);if(x===I8)return h(m,d,g);if(x===C8)return n(m,d,g);if(x===P8)return s(m,d,g);if(x===T8||x===k8||x===R8)return u(m,d,g);if(p){var v=p[x];if(!v){var w=f8(m);w&&(v=p[w])}if(v)return v(m,d,g)}return!1}}function q8(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Oo:y8,areDatesEqual:v8,areErrorsEqual:g8,areFunctionsEqual:b8,areMapsEqual:n?RS(BS,Oo):BS,areNumbersEqual:_8,areObjectsEqual:n?Oo:x8,arePrimitiveWrappersEqual:w8,areRegExpsEqual:S8,areSetsEqual:n?RS(qS,Oo):qS,areTypedArraysEqual:n?Oo:O8,areUrlsEqual:A8,unknownTagComparators:void 0};if(r&&(i=zS({},i,r(i))),t){var a=Su(i.areArraysEqual),o=Su(i.areMapsEqual),s=Su(i.areObjectsEqual),u=Su(i.areSetsEqual);i=zS({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function F8(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function z8(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,l){var c=n(),f=c.cache,h=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(u,l,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(u,l){return r(u,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(u,l){return r(u,l,o)}}var U8=ti();ti({strict:!0});ti({circular:!0});ti({circular:!0,strict:!0});ti({createInternalComparator:function(){return Ui}});ti({strict:!0,createInternalComparator:function(){return Ui}});ti({circular:!0,createInternalComparator:function(){return Ui}});ti({circular:!0,createInternalComparator:function(){return Ui},strict:!0});function ti(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=q8(e),u=B8(s),l=n?n(u):F8(u);return z8({circular:r,comparator:u,createState:i,equals:l,strict:o})}function W8(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function US(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):W8(i)};requestAnimationFrame(n)}function Dy(e){"@babel/helpers - typeof";return Dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dy(e)}function G8(e){return X8(e)||Y8(e)||K8(e)||H8()}function H8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
138
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K8(e,t){if(e){if(typeof e=="string")return WS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WS(e,t)}}function WS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X8(e){if(Array.isArray(e))return e}function V8(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=G8(o),u=s[0],l=s.slice(1);if(typeof u=="number"){US(i.bind(null,l),u);return}i(u),US(i.bind(null,l));return}Dy(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}function GS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GS(Object(r),!0).forEach(function(n){wC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wC(e,t,r){return t=Z8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z8(e){var t=J8(e,"string");return ks(t)==="symbol"?t:String(t)}function J8(e,t){if(ks(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ks(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q8=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},tG=function(t){return t},eG=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ho=function(t,r){return Object.keys(r).reduce(function(n,i){return HS(HS({},n),{},wC({},i,t(i,r[i])))},{})},KS=function(t,r,n){return t.map(function(i){return"".concat(eG(i)," ").concat(r,"ms ").concat(n)}).join(",")},rG=process.env.NODE_ENV!=="production",xl=function(t,r,n,i,a,o,s,u){if(rG&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,a,o,s,u],c=0;console.warn(r.replace(/%s/g,function(){return l[c++]}))}};function nG(e,t){return oG(e)||aG(e,t)||SC(e,t)||iG()}function iG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function oG(e){if(Array.isArray(e))return e}function sG(e){return cG(e)||lG(e)||SC(e)||uG()}function uG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SC(e,t){if(e){if(typeof e=="string")return Ry(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ry(e,t)}}function lG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cG(e){if(Array.isArray(e))return Ry(e)}function Ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var wl=1e-4,OC=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},AC=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},YS=function(t,r){return function(n){var i=OC(t,r);return AC(i,n)}},fG=function(t,r){return function(n){var i=OC(t,r),a=[].concat(sG(i.map(function(o,s){return o*s}).slice(1)),[0]);return AC(a,n)}},XS=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var l=u[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=nG(l,4);i=c[0],a=c[1],o=c[2],s=c[3]}else xl(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}xl([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=YS(i,o),h=YS(a,s),p=fG(i,o),y=function(g){return g>1?1:g<0?0:g},m=function(g){for(var _=g>1?1:g,b=_,x=0;x<8;++x){var v=f(b)-_,w=p(b);if(Math.abs(v-_)<wl||w<wl)return h(b);b=y(b-v/w)}return h(b)};return m.isStepper=!1,m},hG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,u=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<wl&&Math.abs(m)<wl?[f,0]:[d,m]};return u.isStepper=!0,u.dt=s,u},pG=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return XS(i);case"spring":return hG();default:if(i.split("(")[0]==="cubic-bezier")return XS(i);xl(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(xl(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}function VS(e){return yG(e)||mG(e)||PC(e)||dG()}function dG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yG(e){if(Array.isArray(e))return Ny(e)}function ZS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(r),!0).forEach(function(n){Iy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iy(e,t,r){return t=vG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vG(e){var t=gG(e,"string");return $s(t)==="symbol"?t:String(t)}function gG(e,t){if($s(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($s(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bG(e,t){return wG(e)||xG(e,t)||PC(e,t)||_G()}function _G(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
142
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PC(e,t){if(e){if(typeof e=="string")return Ny(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ny(e,t)}}function Ny(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function wG(e){if(Array.isArray(e))return e}var Sl=function(t,r,n){return t+(r-t)*n},Ly=function(t){var r=t.from,n=t.to;return r!==n},SG=function e(t,r,n){var i=Ho(function(a,o){if(Ly(o)){var s=t(o.from,o.to,o.velocity),u=bG(s,2),l=u[0],c=u[1];return Te(Te({},o),{},{from:l,velocity:c})}return o},r);return n<1?Ho(function(a,o){return Ly(o)?Te(Te({},o),{},{velocity:Sl(o.velocity,i[a].velocity,n),from:Sl(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const OG=(function(e,t,r,n,i){var a=Q8(e,t),o=a.reduce(function(d,g){return Te(Te({},d),{},Iy({},g,[e[g],t[g]]))},{}),s=a.reduce(function(d,g){return Te(Te({},d),{},Iy({},g,{from:e[g],velocity:0,to:t[g]}))},{}),u=-1,l,c,f=function(){return null},h=function(){return Ho(function(g,_){return _.from},s)},p=function(){return!Object.values(s).filter(Ly).length},y=function(g){l||(l=g);var _=g-l,b=_/r.dt;s=SG(r,s,b),i(Te(Te(Te({},e),t),h())),l=g,p()||(u=requestAnimationFrame(f))},m=function(g){c||(c=g);var _=(g-c)/n,b=Ho(function(v,w){return Sl.apply(void 0,VS(w).concat([r(_)]))},o);if(i(Te(Te(Te({},e),t),b)),_<1)u=requestAnimationFrame(f);else{var x=Ho(function(v,w){return Sl.apply(void 0,VS(w).concat([r(1)]))},o);i(Te(Te(Te({},e),t),x))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}});function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(e)}var AG=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function PG(e,t){if(e==null)return{};var r=TG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Vd(e){return kG(e)||MG(e)||CG(e)||EG()}function EG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CG(e,t){if(e){if(typeof e=="string")return By(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return By(e,t)}}function MG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kG(e){if(Array.isArray(e))return By(e)}function By(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(r),!0).forEach(function(n){Do(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Do(e,t,r){return t=TC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TC(n.key),n)}}function DG(e,t,r){return t&&jG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TC(e){var t=RG(e,"string");return Da(t)==="symbol"?t:String(t)}function RG(e,t){if(Da(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Da(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qy(e,t)}function qy(e,t){return qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qy(e,t)}function NG(e){var t=LG();return function(){var n=Ol(e),i;if(t){var a=Ol(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Fy(this,i)}}function Fy(e,t){if(t&&(Da(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zy(e)}function zy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ol(e){return Ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ol(e)}var Lr=(function(e){IG(r,e);var t=NG(r);function r(n,i){var a;$G(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,u=o.attributeName,l=o.from,c=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(zy(a)),a.changeStyle=a.changeStyle.bind(zy(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Fy(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof h=="function")return a.state={style:l},Fy(a);a.state={style:u?Do({},u,l):l}}else a.state={style:{}};return a}return DG(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,u=a.attributeName,l=a.shouldReAnimate,c=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:u?Do({},u,c):c};this.state&&h&&(u&&h[u]!==c||!u&&h!==c)&&this.setState(p);return}if(!(U8(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||l?f:i.to;if(this.state&&h){var d={style:u?Do({},u,m):m};(u&&h[u]!==m||!u&&h!==m)&&this.setState(d)}this.runAnimation(kr(kr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,u=i.duration,l=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=OG(o,s,pG(l),u,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,u,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,u=i.onAnimationStart,l=o[0],c=l.style,f=l.duration,h=f===void 0?0:f,p=function(m,d,g){if(g===0)return m;var _=d.duration,b=d.easing,x=b===void 0?"ease":b,v=d.style,w=d.properties,S=d.onAnimationEnd,A=g>0?o[g-1]:d,P=w||Object.keys(v);if(typeof x=="function"||x==="spring")return[].concat(Vd(m),[a.runJSAnimation.bind(a,{from:A.style,to:v,duration:_,easing:x}),_]);var C=KS(P,_,x),T=kr(kr(kr({},A.style),v),{},{transition:C});return[].concat(Vd(m),[T,_,S]).filter(tG)};return this.manager.start([u].concat(Vd(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=V8());var a=i.begin,o=i.duration,s=i.attributeName,u=i.to,l=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?Do({},s,u):u,d=KS(Object.keys(m),o,l);y.start([c,a,kr(kr({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=PG(i,AG),l=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||l===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,g=y.className,_=O.cloneElement(p,kr(kr({},u),{},{style:kr(kr({},d),c),className:g}));return _};return l===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);Lr.displayName="Animate";Lr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Lr.propTypes={from:Bt.oneOfType([Bt.object,Bt.string]),to:Bt.oneOfType([Bt.object,Bt.string]),attributeName:Bt.string,duration:Bt.number,begin:Bt.number,easing:Bt.oneOfType([Bt.string,Bt.func]),steps:Bt.arrayOf(Bt.shape({duration:Bt.number.isRequired,style:Bt.object.isRequired,easing:Bt.oneOfType([Bt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Bt.func]),properties:Bt.arrayOf("string"),onAnimationEnd:Bt.func})),children:Bt.oneOfType([Bt.node,Bt.func]),isActive:Bt.bool,canBegin:Bt.bool,onAnimationEnd:Bt.func,shouldReAnimate:Bt.bool,onAnimationStart:Bt.func,onAnimationReStart:Bt.func};function js(e){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Al.apply(this,arguments)}function BG(e,t){return UG(e)||zG(e,t)||FG(e,t)||qG()}function qG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FG(e,t){if(e){if(typeof e=="string")return QS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return QS(e,t)}}function QS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function UG(e){if(Array.isArray(e))return e}function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(r),!0).forEach(function(n){WG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WG(e,t,r){return t=GG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GG(e){var t=HG(e,"string");return js(t)=="symbol"?t:t+""}function HG(e,t){if(js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rO=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,u=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(t+u*f[0],",").concat(r)),c+="L ".concat(t+n-u*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`,
145
- `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`,
146
- `).concat(t+n-u*f[2],",").concat(r+i)),c+="L ".concat(t+u*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`,
136
+ */var Tm,uA;function D8(){if(uA)return Tm;uA=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tm=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},Tm}var Pm,cA;function O0(){if(cA)return Pm;cA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pm=e,Pm}var Em,fA;function eM(){return fA||(fA=1,Em=Function.call.bind(Object.prototype.hasOwnProperty)),Em}var Cm,hA;function I8(){if(hA)return Cm;hA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=O0(),r={},n=eM();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[c](o,c,l,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Cm=i,Cm}var Mm,pA;function N8(){if(pA)return Mm;pA=1;var e=tM(),t=D8(),r=O0(),n=eM(),i=I8(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Mm=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(N){var D=N&&(u&&N[u]||N[c]);if(typeof D=="function")return D}var h="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:w(),arrayOf:b,element:_(),elementType:g(),instanceOf:x,node:C(),objectOf:A,oneOf:S,oneOfType:T,shape:E,exact:M};function y(N,D){return N===D?N!==0||1/N===1/D:N!==N&&D!==D}function m(N,D){this.message=N,this.data=D&&typeof D=="object"?D:{},this.stack=""}m.prototype=Error.prototype;function d(N){if(process.env.NODE_ENV!=="production")var D={},L=0;function G(z,V,Q,K,B,H,Z){if(K=K||h,H=H||Q,Z!==r){if(l){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ot=K+":"+Q;!D[ot]&&L<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[ot]=!0,L++)}}return V[Q]==null?z?V[Q]===null?new m("The "+B+" `"+H+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+B+" `"+H+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:N(V,Q,K,B,H)}var Y=G.bind(null,!1);return Y.isRequired=G.bind(null,!0),Y}function v(N){function D(L,G,Y,z,V,Q){var K=L[G],B=k(K);if(B!==N){var H=I(K);return new m("Invalid "+z+" `"+V+"` of type "+("`"+H+"` supplied to `"+Y+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return d(D)}function w(){return d(o)}function b(N){function D(L,G,Y,z,V){if(typeof N!="function")return new m("Property `"+V+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var Q=L[G];if(!Array.isArray(Q)){var K=k(Q);return new m("Invalid "+z+" `"+V+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected an array."))}for(var B=0;B<Q.length;B++){var H=N(Q,B,Y,z,V+"["+B+"]",r);if(H instanceof Error)return H}return null}return d(D)}function _(){function N(D,L,G,Y,z){var V=D[L];if(!s(V)){var Q=k(V);return new m("Invalid "+Y+" `"+z+"` of type "+("`"+Q+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return d(N)}function g(){function N(D,L,G,Y,z){var V=D[L];if(!e.isValidElementType(V)){var Q=k(V);return new m("Invalid "+Y+" `"+z+"` of type "+("`"+Q+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return d(N)}function x(N){function D(L,G,Y,z,V){if(!(L[G]instanceof N)){var Q=N.name||h,K=F(L[G]);return new m("Invalid "+z+" `"+V+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected ")+("instance of `"+Q+"`."))}return null}return d(D)}function S(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function D(L,G,Y,z,V){for(var Q=L[G],K=0;K<N.length;K++)if(y(Q,N[K]))return null;var B=JSON.stringify(N,function(Z,R){var ot=I(R);return ot==="symbol"?String(R):R});return new m("Invalid "+z+" `"+V+"` of value `"+String(Q)+"` "+("supplied to `"+Y+"`, expected one of "+B+"."))}return d(D)}function A(N){function D(L,G,Y,z,V){if(typeof N!="function")return new m("Property `"+V+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var Q=L[G],K=k(Q);if(K!=="object")return new m("Invalid "+z+" `"+V+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected an object."));for(var B in Q)if(n(Q,B)){var H=N(Q,B,Y,z,V+"."+B,r);if(H instanceof Error)return H}return null}return d(D)}function T(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var D=0;D<N.length;D++){var L=N[D];if(typeof L!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(L)+" at index "+D+"."),o}function G(Y,z,V,Q,K){for(var B=[],H=0;H<N.length;H++){var Z=N[H],R=Z(Y,z,V,Q,K,r);if(R==null)return null;R.data&&n(R.data,"expectedType")&&B.push(R.data.expectedType)}var ot=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new m("Invalid "+Q+" `"+K+"` supplied to "+("`"+V+"`"+ot+"."))}return d(G)}function C(){function N(D,L,G,Y,z){return $(D[L])?null:new m("Invalid "+Y+" `"+z+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return d(N)}function P(N,D,L,G,Y){return new m((N||"React class")+": "+D+" type `"+L+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function E(N){function D(L,G,Y,z,V){var Q=L[G],K=k(Q);if(K!=="object")return new m("Invalid "+z+" `"+V+"` of type `"+K+"` "+("supplied to `"+Y+"`, expected `object`."));for(var B in N){var H=N[B];if(typeof H!="function")return P(Y,z,V,B,I(H));var Z=H(Q,B,Y,z,V+"."+B,r);if(Z)return Z}return null}return d(D)}function M(N){function D(L,G,Y,z,V){var Q=L[G],K=k(Q);if(K!=="object")return new m("Invalid "+z+" `"+V+"` of type `"+K+"` "+("supplied to `"+Y+"`, expected `object`."));var B=t({},L[G],N);for(var H in B){var Z=N[H];if(n(N,H)&&typeof Z!="function")return P(Y,z,V,H,I(Z));if(!Z)return new m("Invalid "+z+" `"+V+"` key `"+H+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(L[G],null," ")+`
137
+ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var R=Z(Q,H,Y,z,V+"."+H,r);if(R)return R}return null}return d(D)}function $(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every($);if(N===null||s(N))return!0;var D=f(N);if(D){var L=D.call(N),G;if(D!==N.entries){for(;!(G=L.next()).done;)if(!$(G.value))return!1}else for(;!(G=L.next()).done;){var Y=G.value;if(Y&&!$(Y[1]))return!1}}else return!1;return!0;default:return!1}}function j(N,D){return N==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function k(N){var D=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":j(D,N)?"symbol":D}function I(N){if(typeof N>"u"||N===null)return""+N;var D=k(N);if(D==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return D}function q(N){var D=I(N);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function F(N){return!N.constructor||!N.constructor.name?h:N.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Mm}var km,dA;function L8(){if(dA)return km;dA=1;var e=O0();function t(){}function r(){}return r.resetWarningCache=t,km=function(){function n(o,s,l,u,c,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},km}var mA;function B8(){if(mA)return Zl.exports;if(mA=1,process.env.NODE_ENV!=="production"){var e=tM(),t=!0;Zl.exports=N8()(e.isElement,t)}else Zl.exports=L8()();return Zl.exports}var q8=B8();const Ft=zt(q8);var F8=Object.getOwnPropertyNames,z8=Object.getOwnPropertySymbols,U8=Object.prototype.hasOwnProperty;function yA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ql(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function W8(e){return e!=null?e[Symbol.toStringTag]:void 0}function gA(e){return F8(e).concat(z8(e))}var H8=Object.hasOwn||(function(e,t){return U8.call(e,t)});function va(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var G8="__v",K8="__o",Y8="_owner",vA=Object.getOwnPropertyDescriptor,bA=Object.keys;function X8(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function V8(e,t){return va(e.getTime(),t.getTime())}function Z8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function J8(e,t){return e===t}function _A(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var u=t.entries(),c=!1,f=0;(s=u.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],l,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}var Q8=va;function tH(e,t,r){var n=bA(e),i=n.length;if(bA(t).length!==i)return!1;for(;i-- >0;)if(!rM(e,t,r,n[i]))return!1;return!0}function Qo(e,t,r){var n=gA(e),i=n.length;if(gA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!rM(e,t,r,a)||(o=vA(e,a),s=vA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function eH(e,t){return va(e.valueOf(),t.valueOf())}function rH(e,t){return e.source===t.source&&e.flags===t.flags}function xA(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function nH(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function iH(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function rM(e,t,r,n){return(n===Y8||n===K8||n===G8)&&(e.$$typeof||t.$$typeof)?!0:H8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var aH="[object Arguments]",oH="[object Boolean]",sH="[object Date]",lH="[object Error]",uH="[object Map]",cH="[object Number]",fH="[object Object]",hH="[object RegExp]",pH="[object Set]",dH="[object String]",mH="[object URL]",yH=Array.isArray,wA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SA=Object.assign,gH=Object.prototype.toString.call.bind(Object.prototype.toString);function vH(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,v){if(m===d)return!0;if(m==null||d==null)return!1;var w=typeof m;if(w!==typeof d)return!1;if(w!=="object")return w==="number"?o(m,d,v):w==="function"?i(m,d,v):!1;var b=m.constructor;if(b!==d.constructor)return!1;if(b===Object)return s(m,d,v);if(yH(m))return t(m,d,v);if(wA!=null&&wA(m))return f(m,d,v);if(b===Date)return r(m,d,v);if(b===RegExp)return u(m,d,v);if(b===Map)return a(m,d,v);if(b===Set)return c(m,d,v);var _=gH(m);if(_===sH)return r(m,d,v);if(_===hH)return u(m,d,v);if(_===uH)return a(m,d,v);if(_===pH)return c(m,d,v);if(_===fH)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,v);if(_===mH)return h(m,d,v);if(_===lH)return n(m,d,v);if(_===aH)return s(m,d,v);if(_===oH||_===cH||_===dH)return l(m,d,v);if(p){var g=p[_];if(!g){var x=W8(m);x&&(g=p[x])}if(g)return g(m,d,v)}return!1}}function bH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Qo:X8,areDatesEqual:V8,areErrorsEqual:Z8,areFunctionsEqual:J8,areMapsEqual:n?yA(_A,Qo):_A,areNumbersEqual:Q8,areObjectsEqual:n?Qo:tH,arePrimitiveWrappersEqual:eH,areRegExpsEqual:rH,areSetsEqual:n?yA(xA,Qo):xA,areTypedArraysEqual:n?Qo:nH,areUrlsEqual:iH,unknownTagComparators:void 0};if(r&&(i=SA({},i,r(i))),t){var a=Ql(i.areArraysEqual),o=Ql(i.areMapsEqual),s=Ql(i.areObjectsEqual),l=Ql(i.areSetsEqual);i=SA({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function _H(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function xH(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,h=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(l,u,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return r(l,u,o)}}var wH=Ai();Ai({strict:!0});Ai({circular:!0});Ai({circular:!0,strict:!0});Ai({createInternalComparator:function(){return va}});Ai({strict:!0,createInternalComparator:function(){return va}});Ai({circular:!0,createInternalComparator:function(){return va}});Ai({circular:!0,createInternalComparator:function(){return va},strict:!0});function Ai(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=bH(e),l=vH(s),u=n?n(l):_H(l);return xH({circular:r,comparator:l,createState:i,equals:u,strict:o})}function SH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function AA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):SH(i)};requestAnimationFrame(n)}function yg(e){"@babel/helpers - typeof";return yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yg(e)}function AH(e){return EH(e)||PH(e)||TH(e)||OH()}function OH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
138
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TH(e,t){if(e){if(typeof e=="string")return OA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OA(e,t)}}function OA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EH(e){if(Array.isArray(e))return e}function CH(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=AH(o),l=s[0],u=s.slice(1);if(typeof l=="number"){AA(i.bind(null,u),l);return}i(l),AA(i.bind(null,u));return}yg(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function TA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(e,t,r){return t=MH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MH(e){var t=kH(e,"string");return sl(t)==="symbol"?t:String(t)}function kH(e,t){if(sl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $H=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},jH=function(t){return t},RH=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},ws=function(t,r){return Object.keys(r).reduce(function(n,i){return PA(PA({},n),{},nM({},i,t(i,r[i])))},{})},EA=function(t,r,n){return t.map(function(i){return"".concat(RH(i)," ").concat(r,"ms ").concat(n)}).join(",")},DH=process.env.NODE_ENV!=="production",Zu=function(t,r,n,i,a,o,s,l){if(DH&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function IH(e,t){return BH(e)||LH(e,t)||iM(e,t)||NH()}function NH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function BH(e){if(Array.isArray(e))return e}function qH(e){return UH(e)||zH(e)||iM(e)||FH()}function FH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iM(e,t){if(e){if(typeof e=="string")return gg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gg(e,t)}}function zH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UH(e){if(Array.isArray(e))return gg(e)}function gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ju=1e-4,aM=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},oM=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},CA=function(t,r){return function(n){var i=aM(t,r);return oM(i,n)}},WH=function(t,r){return function(n){var i=aM(t,r),a=[].concat(qH(i.map(function(o,s){return o*s}).slice(1)),[0]);return oM(a,n)}},MA=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=IH(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else Zu(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Zu([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=CA(i,o),h=CA(a,s),p=WH(i,o),y=function(v){return v>1?1:v<0?0:v},m=function(v){for(var w=v>1?1:v,b=w,_=0;_<8;++_){var g=f(b)-w,x=p(b);if(Math.abs(g-w)<Ju||x<Ju)return h(b);b=y(b-g/x)}return h(b)};return m.isStepper=!1,m},HH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<Ju&&Math.abs(m)<Ju?[f,0]:[d,m]};return l.isStepper=!0,l.dt=s,l},GH=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return MA(i);case"spring":return HH();default:if(i.split("(")[0]==="cubic-bezier")return MA(i);Zu(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Zu(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function kA(e){return XH(e)||YH(e)||sM(e)||KH()}function KH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XH(e){if(Array.isArray(e))return bg(e)}function $A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(r),!0).forEach(function(n){vg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vg(e,t,r){return t=VH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VH(e){var t=ZH(e,"string");return ll(t)==="symbol"?t:String(t)}function ZH(e,t){if(ll(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ll(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JH(e,t){return e6(e)||t6(e,t)||sM(e,t)||QH()}function QH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sM(e,t){if(e){if(typeof e=="string")return bg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bg(e,t)}}function bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function e6(e){if(Array.isArray(e))return e}var Qu=function(t,r,n){return t+(r-t)*n},_g=function(t){var r=t.from,n=t.to;return r!==n},r6=function e(t,r,n){var i=ws(function(a,o){if(_g(o)){var s=t(o.from,o.to,o.velocity),l=JH(s,2),u=l[0],c=l[1];return Re(Re({},o),{},{from:u,velocity:c})}return o},r);return n<1?ws(function(a,o){return _g(o)?Re(Re({},o),{},{velocity:Qu(o.velocity,i[a].velocity,n),from:Qu(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const n6=(function(e,t,r,n,i){var a=$H(e,t),o=a.reduce(function(d,v){return Re(Re({},d),{},vg({},v,[e[v],t[v]]))},{}),s=a.reduce(function(d,v){return Re(Re({},d),{},vg({},v,{from:e[v],velocity:0,to:t[v]}))},{}),l=-1,u,c,f=function(){return null},h=function(){return ws(function(v,w){return w.from},s)},p=function(){return!Object.values(s).filter(_g).length},y=function(v){u||(u=v);var w=v-u,b=w/r.dt;s=r6(r,s,b),i(Re(Re(Re({},e),t),h())),u=v,p()||(l=requestAnimationFrame(f))},m=function(v){c||(c=v);var w=(v-c)/n,b=ws(function(g,x){return Qu.apply(void 0,kA(x).concat([r(w)]))},o);if(i(Re(Re(Re({},e),t),b)),w<1)l=requestAnimationFrame(f);else{var _=ws(function(g,x){return Qu.apply(void 0,kA(x).concat([r(1)]))},o);i(Re(Re(Re({},e),t),_))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}var i6=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function a6(e,t){if(e==null)return{};var r=o6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o6(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function $m(e){return c6(e)||u6(e)||l6(e)||s6()}function s6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l6(e,t){if(e){if(typeof e=="string")return xg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xg(e,t)}}function u6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c6(e){if(Array.isArray(e))return xg(e)}function xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(n){us(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function us(e,t,r){return t=lM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lM(n.key),n)}}function p6(e,t,r){return t&&h6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lM(e){var t=d6(e,"string");return uo(t)==="symbol"?t:String(t)}function d6(e,t){if(uo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wg(e,t)}function y6(e){var t=g6();return function(){var n=tc(e),i;if(t){var a=tc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Sg(this,i)}}function Sg(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ag(e)}function Ag(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tc(e)}var sn=(function(e){m6(r,e);var t=y6(r);function r(n,i){var a;f6(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ag(a)),a.changeStyle=a.changeStyle.bind(Ag(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Sg(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Sg(a);a.state={style:l?us({},l,u):u}}else a.state={style:{}};return a}return p6(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:l?us({},l,c):c};this.state&&h&&(l&&h[l]!==c||!l&&h!==c)&&this.setState(p);return}if(!(wH(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?f:i.to;if(this.state&&h){var d={style:l?us({},l,m):m};(l&&h[l]!==m||!l&&h!==m)&&this.setState(d)}this.runAnimation(Qr(Qr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=n6(o,s,GH(u),l,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,h=f===void 0?0:f,p=function(m,d,v){if(v===0)return m;var w=d.duration,b=d.easing,_=b===void 0?"ease":b,g=d.style,x=d.properties,S=d.onAnimationEnd,A=v>0?o[v-1]:d,T=x||Object.keys(g);if(typeof _=="function"||_==="spring")return[].concat($m(m),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:w,easing:_}),w]);var C=EA(T,w,_),P=Qr(Qr(Qr({},A.style),g),{},{transition:C});return[].concat($m(m),[P,w,S]).filter(jH)};return this.manager.start([l].concat($m(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=CH());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?us({},s,l):l,d=EA(Object.keys(m),o,u);y.start([c,a,Qr(Qr({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=a6(i,i6),u=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,v=y.className,w=O.cloneElement(p,Qr(Qr({},l),{},{style:Qr(Qr({},d),c),className:v}));return w};return u===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);sn.displayName="Animate";sn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};sn.propTypes={from:Ft.oneOfType([Ft.object,Ft.string]),to:Ft.oneOfType([Ft.object,Ft.string]),attributeName:Ft.string,duration:Ft.number,begin:Ft.number,easing:Ft.oneOfType([Ft.string,Ft.func]),steps:Ft.arrayOf(Ft.shape({duration:Ft.number.isRequired,style:Ft.object.isRequired,easing:Ft.oneOfType([Ft.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ft.func]),properties:Ft.arrayOf("string"),onAnimationEnd:Ft.func})),children:Ft.oneOfType([Ft.node,Ft.func]),isActive:Ft.bool,canBegin:Ft.bool,onAnimationEnd:Ft.func,shouldReAnimate:Ft.bool,onAnimationStart:Ft.func,onAnimationReStart:Ft.func};function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}function v6(e,t){return w6(e)||x6(e,t)||_6(e,t)||b6()}function b6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _6(e,t){if(e){if(typeof e=="string")return RA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RA(e,t)}}function RA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function w6(e){if(Array.isArray(e))return e}function DA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(r),!0).forEach(function(n){S6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S6(e,t,r){return t=A6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A6(e){var t=O6(e,"string");return ul(t)=="symbol"?t:t+""}function O6(e,t){if(ul(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ul(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NA=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
145
+ `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
146
+ `).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
147
147
  `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);c="M ".concat(t,",").concat(r+s*y,`
148
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+u*y,",").concat(r,`
149
- L `).concat(t+n-u*y,",").concat(r,`
150
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n,",").concat(r+s*y,`
148
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+l*y,",").concat(r,`
149
+ L `).concat(t+n-l*y,",").concat(r,`
150
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*y,`
151
151
  L `).concat(t+n,",").concat(r+i-s*y,`
152
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n-u*y,",").concat(r+i,`
153
- L `).concat(t+u*y,",").concat(r+i,`
154
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},KG=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,u=r.height;if(Math.abs(s)>0&&Math.abs(u)>0){var l=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+u),h=Math.max(o,o+u);return n>=l&&n<=c&&i>=f&&i<=h}return!1},YG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Wg=function(t){var r=eO(eO({},YG),t),n=O.useRef(),i=O.useState(-1),a=BG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var u=r.x,l=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,g=r.isAnimationActive,_=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var b=At("recharts-rectangle",p);return _?O.createElement(Lr,{canBegin:o>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:m,animationEasing:y,isActive:_},function(x){var v=x.width,w=x.height,S=x.x,A=x.y;return O.createElement(Lr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:g,easing:y},O.createElement("path",Al({},vt(r,!0),{className:b,d:rO(S,A,v,w,h),ref:n})))}):O.createElement("path",Al({},vt(r,!0),{className:b,d:rO(u,l,c,f,h)}))};function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uy.apply(this,arguments)}var bc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=At("recharts-dot",a);return r===+r&&n===+n&&i===+i?Pr.createElement("circle",Uy({},vt(t,!1),ul(t),{className:o,cx:r,cy:n,r:i})):null};function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(e)}var XG=["x","y","top","left","width","height","className"];function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wy.apply(this,arguments)}function nO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nO(Object(r),!0).forEach(function(n){ZG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZG(e,t,r){return t=JG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JG(e){var t=QG(e,"string");return Ds(t)=="symbol"?t:t+""}function QG(e,t){if(Ds(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t6(e,t){if(e==null)return{};var r=e6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var r6=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},n6=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,u=t.left,l=u===void 0?0:u,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=t6(t,XG),d=VG({x:n,y:a,top:s,left:l,width:f,height:p},m);return!nt(n)||!nt(a)||!nt(f)||!nt(p)||!nt(s)||!nt(l)?null:O.createElement("path",Wy({},vt(d,!0),{className:At("recharts-cross",y),d:r6(n,a,f,p,s,l)}))},Zd,iO;function i6(){if(iO)return Zd;iO=1;var e=pE(),t=e(Object.getPrototypeOf,Object);return Zd=t,Zd}var Jd,aO;function a6(){if(aO)return Jd;aO=1;var e=Tn(),t=i6(),r=En(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,u=o.call(Object);function l(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==u}return Jd=l,Jd}var o6=a6();const s6=qt(o6);var Qd,oO;function u6(){if(oO)return Qd;oO=1;var e=Tn(),t=En(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Qd=n,Qd}var l6=u6();const c6=qt(l6);function Rs(e){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rs(e)}function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pl.apply(this,arguments)}function f6(e,t){return m6(e)||d6(e,t)||p6(e,t)||h6()}function h6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
155
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p6(e,t){if(e){if(typeof e=="string")return sO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sO(e,t)}}function sO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function m6(e){if(Array.isArray(e))return e}function uO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uO(Object(r),!0).forEach(function(n){y6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y6(e,t,r){return t=v6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v6(e){var t=g6(e,"string");return Rs(t)=="symbol"?t:t+""}function g6(e,t){if(Rs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cO=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},b6={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_6=function(t){var r=lO(lO({},b6),t),n=O.useRef(),i=O.useState(-1),a=f6(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var u=r.x,l=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,g=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var _=At("recharts-trapezoid",p);return g?O.createElement(Lr,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:u,y:l},to:{upperWidth:c,lowerWidth:f,height:h,x:u,y:l},duration:m,animationEasing:y,isActive:g},function(b){var x=b.upperWidth,v=b.lowerWidth,w=b.height,S=b.x,A=b.y;return O.createElement(Lr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},O.createElement("path",Pl({},vt(r,!0),{className:_,d:cO(S,A,x,v,w),ref:n})))}):O.createElement("g",null,O.createElement("path",Pl({},vt(r,!0),{className:_,d:cO(u,l,c,f,h)})))},x6=["option","shapeType","propTransformer","activeClassName","isActive"];function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}function w6(e,t){if(e==null)return{};var r=S6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){O6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O6(e,t,r){return t=A6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A6(e){var t=P6(e,"string");return Is(t)=="symbol"?t:t+""}function P6(e,t){if(Is(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Is(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T6(e,t){return Tl(Tl({},t),e)}function E6(e,t){return e==="symbols"}function hO(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(Wg,r);case"trapezoid":return O.createElement(_6,r);case"sector":return O.createElement(gC,r);case"symbols":if(E6(t))return O.createElement(dc,r);break;default:return null}}function C6(e){return O.isValidElement(e)?e.props:e}function Gy(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?T6:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,u=w6(e,x6),l;if(O.isValidElement(t))l=O.cloneElement(t,Tl(Tl({},u),C6(t)));else if(gt(t))l=t(u);else if(s6(t)&&!c6(t)){var c=i(t,u);l=O.createElement(hO,{shapeType:r,elementProps:c})}else{var f=u;l=O.createElement(hO,{shapeType:r,elementProps:f})}return s?O.createElement(jt,{className:o},l):l}function _c(e,t){return t!=null&&"trapezoids"in e.props}function xc(e,t){return t!=null&&"sectors"in e.props}function Ns(e,t){return t!=null&&"points"in e.props}function M6(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function k6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function $6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function j6(e,t){var r;return _c(e,t)?r=M6:xc(e,t)?r=k6:Ns(e,t)&&(r=$6),r}function D6(e,t){var r;return _c(e,t)?r="trapezoids":xc(e,t)?r="sectors":Ns(e,t)&&(r="points"),r}function R6(e,t){if(_c(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(xc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Ns(e,t)?t.payload:{}}function I6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=D6(r,t),a=R6(r,t),o=n.filter(function(u,l){var c=ji(a,u),f=r.props[i].filter(function(y){var m=j6(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=l===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function Ls(e){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ls(e)}function pO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pO(Object(r),!0).forEach(function(n){EC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EC(e,t,r){return t=N6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N6(e){var t=L6(e,"string");return Ls(t)=="symbol"?t:t+""}function L6(e,t){if(Ls(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var B6=["Webkit","Moz","O","ms"],q6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=B6.reduce(function(a,o){return dO(dO({},a),{},EC({},o+n,r))},{});return i[t]=r,i};function Ra(e){"@babel/helpers - typeof";return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(e)}function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},El.apply(this,arguments)}function mO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mO(Object(r),!0).forEach(function(n){sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MC(n.key),n)}}function z6(e,t,r){return t&&yO(e.prototype,t),r&&yO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function U6(e,t,r){return t=Cl(t),W6(e,CC()?Reflect.construct(t,r||[],Cl(e).constructor):t.apply(e,r))}function W6(e,t){if(t&&(Ra(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G6(e)}function G6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CC=function(){return!!e})()}function Cl(e){return Cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cl(e)}function H6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hy(e,t)}function Hy(e,t){return Hy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hy(e,t)}function sr(e,t,r){return t=MC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MC(e){var t=K6(e,"string");return Ra(t)=="symbol"?t:t+""}function K6(e,t){if(Ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Y6=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,l=Ro().domain(hs(0,u)).range([a,a+o-s]),c=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:c}},vO=function(t){return t.changedTouches&&!!t.changedTouches.length},Ia=(function(e){function t(r){var n;return F6(this,t),n=U6(this,t,[r]),sr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),sr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),sr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),sr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),sr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),sr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),sr(n,"handleSlideDragStart",function(i){var a=vO(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return H6(t,e),z6(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,u=s.gap,l=s.data,c=l.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%u,endIndex:y===c?c:y-y%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,u=be(a[n],s,n);return gt(o)?o(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,u=this.props,l=u.x,c=u.width,f=u.travellerWidth,h=u.startIndex,p=u.endIndex,y=u.onChange,m=n.pageX-a;m>0?m=Math.min(m,l+c-f-s,l+c-f-o):m<0&&(m=Math.max(m,l-o,l-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=vO(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,u=i.startX,l=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,g={startX:this.state.startX,endX:this.state.endX},_=n.pageX-a;_>0?_=Math.min(_,f+h-p-l):_<0&&(_=Math.max(_,f-l)),g[o]=l+_;var b=this.getIndex(g),x=b.startIndex,v=b.endIndex,w=function(){var A=d.length-1;return o==="startX"&&(s>u?x%m===0:v%m===0)||s<u&&v===A||o==="endX"&&(s>u?v%m===0:x%m===0)||s>u&&v===A};this.setState(sr(sr({},o,l+_),"brushMoveStartX",n.pageX),function(){y&&w()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,u=o.startX,l=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=l||i==="endX"&&p<=u||this.setState(sr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.fill,l=n.stroke;return O.createElement("rect",{stroke:l,fill:u,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.data,l=n.children,c=n.padding,f=O.Children.only(l);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,u=this.props,l=u.y,c=u.travellerWidth,f=u.height,h=u.traveller,p=u.ariaLabel,y=u.data,m=u.startIndex,d=u.endIndex,g=Math.max(n,this.props.x),_=tm(tm({},vt(this.props,!1)),{},{x:g,y:l,width:c,height:f}),b=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return O.createElement(jt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(v){["ArrowLeft","ArrowRight"].includes(v.key)&&(v.preventDefault(),v.stopPropagation(),s.handleTravellerMoveKeyboard(v.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,_))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,u=a.stroke,l=a.travellerWidth,c=Math.min(n,i)+l,f=Math.max(Math.abs(i-n)-l,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,u=n.travellerWidth,l=n.stroke,c=this.state,f=c.startX,h=c.endX,p=5,y={pointerEvents:"none",fill:l};return O.createElement(jt,{className:"recharts-brush-texts"},O.createElement(dl,El({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(dl,El({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+u+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,u=n.y,l=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,g=h.isTravellerMoving,_=h.isTravellerFocused;if(!i||!i.length||!nt(s)||!nt(u)||!nt(l)||!nt(c)||l<=0||c<=0)return null;var b=At("recharts-brush",a),x=O.Children.count(o)===1,v=q6("userSelect","none");return O.createElement(jt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||d||g||_||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,u=n.stroke,l=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:u,stroke:"none"}),O.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):gt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,u=n.travellerWidth,l=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return tm({prevData:a,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:o},a&&a.length?Y6({data:a,width:o,x:s,travellerWidth:u,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([s,s+o-u]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var u=Math.floor((o+s)/2);n[u]>i?s=u:o=u}return i>=n[s]?s:o}}])})(O.PureComponent);sr(Ia,"displayName","Brush");sr(Ia,"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 em,gO;function X6(){if(gO)return em;gO=1;var e=Dg();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return em=t,em}var rm,bO;function V6(){if(bO)return rm;bO=1;var e=sE(),t=Jn(),r=X6(),n=Ue(),i=Qs();function a(o,s,u){var l=n(o)?e:r;return u&&i(o,s,u)&&(s=void 0),l(o,t(s,3))}return rm=a,rm}var Z6=V6();const J6=qt(Z6);var tn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},nm,_O;function Q6(){if(_O)return nm;_O=1;var e=_E();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return nm=t,nm}var im,xO;function tH(){if(xO)return im;xO=1;var e=Q6(),t=gE(),r=Jn();function n(i,a){var o={};return a=r(a,3),t(i,function(s,u,l){e(o,u,a(s,u,l))}),o}return im=n,im}var eH=tH();const rH=qt(eH);var am,wO;function nH(){if(wO)return am;wO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return am=e,am}var om,SO;function iH(){if(SO)return om;SO=1;var e=Dg();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return om=t,om}var sm,OO;function aH(){if(OO)return sm;OO=1;var e=nH(),t=iH(),r=Jn(),n=Ue(),i=Qs();function a(o,s,u){var l=n(o)?e:t;return u&&i(o,s,u)&&(s=void 0),l(o,r(s,3))}return sm=a,sm}var oH=aH();const kC=qt(oH);var sH=["x","y"];function Na(e){"@babel/helpers - typeof";return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky.apply(this,arguments)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ao(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){uH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uH(e,t,r){return t=lH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lH(e){var t=cH(e,"string");return Na(t)=="symbol"?t:t+""}function cH(e,t){if(Na(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Na(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fH(e,t){if(e==null)return{};var r=hH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pH(e,t){var r=e.x,n=e.y,i=fH(e,sH),a="".concat(r),o=parseInt(a,10),s="".concat(n),u=parseInt(s,10),l="".concat(t.height||i.height),c=parseInt(l,10),f="".concat(t.width||i.width),h=parseInt(f,10);return Ao(Ao(Ao(Ao(Ao({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function PO(e){return O.createElement(Gy,Ky({shapeType:"rectangle",propTransformer:pH,activeClassName:"recharts-active-bar"},e))}var dH=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=nt(n)||IF(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?Ye(!1,"minPointSize callback function received a value with type of ".concat(Na(n),". Currently only numbers or null/undefined are supported.")):Ye()),r)}},mH=["value","background"],$C;function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(e)}function yH(e,t){if(e==null)return{};var r=vH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ml.apply(this,arguments)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){Fn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DC(n.key),n)}}function bH(e,t,r){return t&&EO(e.prototype,t),r&&EO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _H(e,t,r){return t=kl(t),xH(e,jC()?Reflect.construct(t,r||[],kl(e).constructor):t.apply(e,r))}function xH(e,t){if(t&&(La(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wH(e)}function wH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jC=function(){return!!e})()}function kl(e){return kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kl(e)}function SH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yy(e,t)}function Yy(e,t){return Yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yy(e,t)}function Fn(e,t,r){return t=DC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DC(e){var t=OH(e,"string");return La(t)=="symbol"?t:t+""}function OH(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oo=(function(e){function t(){var r;gH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=_H(this,t,[].concat(i)),Fn(r,"state",{isAnimationFinished:!1}),Fn(r,"id",zi("recharts-bar-")),Fn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Fn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return SH(t,e),bH(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,u=a.activeIndex,l=a.activeBar,c=vt(this.props,!1);return n&&n.map(function(f,h){var p=h===u,y=p?l:o,m=he(he(he({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(jt,Ml({className:"recharts-bar-rectangle"},ps(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),O.createElement(PO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,u=i.animationBegin,l=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(Lr,{begin:u,duration:l,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,g){var _=h&&h[g];if(_){var b=ce(_.x,d.x),x=ce(_.y,d.y),v=ce(_.width,d.width),w=ce(_.height,d.height);return he(he({},d),{},{x:b(y),y:x(y),width:v(y),height:w(y)})}if(o==="horizontal"){var S=ce(0,d.height),A=S(y);return he(he({},d),{},{y:d.y+d.height-A,height:A})}var P=ce(0,d.width),C=P(y);return he(he({},d),{},{width:C})});return O.createElement(jt,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!ji(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,u=vt(this.props.background,!1);return a.map(function(l,c){l.value;var f=l.background,h=yH(l,mH);if(!f)return null;var p=he(he(he(he(he({},h),{},{fill:"#eee"},f),u),ps(n.props,l,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(PO,Ml({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,u=a.yAxis,l=a.layout,c=a.children,f=tr(c,ao);if(!f)return null;var h=l==="vertical"?o[0].height/2:o[0].width/2,p=function(d,g){var _=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:_,errorVal:be(d,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(jt,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:u,layout:l,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,u=n.yAxis,l=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,g=At("recharts-bar",o),_=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,x=_||b,v=yt(m)?this.id:m;return O.createElement(jt,{className:g},_||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(v)},O.createElement("rect",{x:_?l:l-f/2,y:b?c:c-h/2,width:_?f:f*2,height:b?h:h*2}))):null,O.createElement(jt,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(v,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,v),(!p||d)&&Qr.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);$C=oo;Fn(oo,"displayName","Bar");Fn(oo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Qn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Fn(oo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,l=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=zU(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?he(he({},m),r.props):r.props,g=d.dataKey,_=d.children,b=d.minPointSize,x=y==="horizontal"?o:a,v=l?x.scale.domain():null,w=VU({numericAxis:x}),S=tr(_,Bg),A=f.map(function(P,C){var T,E,k,j,$,M;l?T=UU(l[c+C],v):(T=be(P,g),Array.isArray(T)||(T=[w,T]));var I=dH(b,$C.defaultProps.minPointSize)(T[1],C);if(y==="horizontal"){var L,q=[o.scale(T[0]),o.scale(T[1])],R=q[0],D=q[1];E=uS({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:P,index:C}),k=(L=D??R)!==null&&L!==void 0?L:void 0,j=p.size;var B=R-D;if($=Number.isNaN(B)?0:B,M={x:E,y:o.y,width:j,height:o.height},Math.abs(I)>0&&Math.abs($)<Math.abs(I)){var U=Nr($||I)*(Math.abs(I)-Math.abs($));k-=U,$+=U}}else{var W=[a.scale(T[0]),a.scale(T[1])],X=W[0],Z=W[1];if(E=X,k=uS({axis:o,ticks:u,bandSize:i,offset:p.offset,entry:P,index:C}),j=Z-X,$=p.size,M={x:a.x,y:k,width:a.width,height:$},Math.abs(I)>0&&Math.abs(j)<Math.abs(I)){var Q=Nr(j||I)*(Math.abs(I)-Math.abs(j));j+=Q}}return he(he(he({},P),{},{x:E,y:k,width:j,height:$,value:l?T:T[1],payload:P,background:M},S&&S[C]&&S[C].props),{},{tooltipPayload:[mC(r,P)],tooltipPosition:{x:E+j/2,y:k+$/2}})});return he({data:A,layout:y},h)});function Bs(e){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bs(e)}function AH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RC(n.key),n)}}function PH(e,t,r){return t&&CO(e.prototype,t),r&&CO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function MO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(r),!0).forEach(function(n){wc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wc(e,t,r){return t=RC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RC(e){var t=TH(e,"string");return Bs(t)=="symbol"?t:t+""}function TH(e,t){if(Bs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EH=function(t,r,n,i,a){var o=t.width,s=t.height,u=t.layout,l=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!ur(l,oo);return c.reduce(function(p,y){var m=r[y],d=m.orientation,g=m.domain,_=m.padding,b=_===void 0?{}:_,x=m.mirror,v=m.reversed,w="".concat(d).concat(x?"Mirror":""),S,A,P,C,T;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=g[1]-g[0],k=1/0,j=m.categoricalDomain.sort(qF);if(j.forEach(function(W,X){X>0&&(k=Math.min((W||0)-(j[X-1]||0),k))}),Number.isFinite(k)){var $=k/E,M=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=$*M/2),m.padding==="no-gap"){var I=$i(t.barCategoryGap,$*M),L=$*M/2;S=L-I-(L-I)/M*I}}}i==="xAxis"?A=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?A=u==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(S||0),n.top+n.height-(b.bottom||0)-(S||0)]:A=m.range,v&&(A=[A[1],A[0]]);var q=qU(m,a,h),R=q.scale,D=q.realScaleType;R.domain(g).range(A),FU(R);var B=XU(R,jr(jr({},m),{},{realScaleType:D}));i==="xAxis"?(T=d==="top"&&!x||d==="bottom"&&x,P=n.left,C=f[w]-T*m.height):i==="yAxis"&&(T=d==="left"&&!x||d==="right"&&x,P=f[w]-T*m.width,C=n.top);var U=jr(jr(jr({},m),B),{},{realScaleType:D,x:P,y:C,scale:R,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return U.bandSize=gl(U,B),!m.hide&&i==="xAxis"?f[w]+=(T?-1:1)*U.height:m.hide||(f[w]+=(T?-1:1)*U.width),jr(jr({},p),{},wc({},y,U))},{})},IC=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},CH=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return IC({x:r,y:n},{x:i,y:a})},NC=(function(){function e(t){AH(this,e),this.scale=t}return PH(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();wc(NC,"EPS",1e-4);var Gg=function(t){var r=Object.keys(t).reduce(function(n,i){return jr(jr({},n),{},wc({},i,NC.create(t[i])))},{});return jr(jr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return rH(i,function(u,l){return r[l].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return kC(i,function(a,o){return r[o].isInRange(a)})}})};function MH(e){return(e%180+180)%180}var kH=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=MH(i),o=a*Math.PI/180,s=Math.atan(n/r),u=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},um,kO;function $H(){if(kO)return um;kO=1;var e=Jn(),t=Zs(),r=Js();function n(i){return function(a,o,s){var u=Object(a);if(!t(a)){var l=e(o,3);a=r(a),o=function(f){return l(u[f],f,u)}}var c=i(a,o,s);return c>-1?u[l?a[c]:c]:void 0}}return um=n,um}var lm,$O;function jH(){if($O)return lm;$O=1;var e=DE(),t=Jn(),r=xg(),n=Math.max;function i(a,o,s){var u=a==null?0:a.length;if(!u)return-1;var l=s==null?0:r(s);return l<0&&(l=n(u+l,0)),e(a,t(o,3),l)}return lm=i,lm}var cm,jO;function DH(){if(jO)return cm;jO=1;var e=$H(),t=jH(),r=e(t);return cm=r,cm}var RH=DH();const IH=qt(RH);var NH=nE();const LH=qt(NH);var BH=LH(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function $l(e){"@babel/helpers - typeof";return $l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$l(e)}var Hg=O.createContext(void 0),Kg=O.createContext(void 0),LC=O.createContext(void 0),BC=O.createContext({}),qC=O.createContext(void 0),FC=O.createContext(0),zC=O.createContext(0),DO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,u=t.width,l=t.height,c=BH(a);return O.createElement(Hg.Provider,{value:n},O.createElement(Kg.Provider,{value:i},O.createElement(BC.Provider,{value:a},O.createElement(LC.Provider,{value:c},O.createElement(qC.Provider,{value:o},O.createElement(FC.Provider,{value:l},O.createElement(zC.Provider,{value:u},s)))))))},qH=function(){return O.useContext(qC)};function UC(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var WC=function(t){var r=O.useContext(Hg);r==null&&(process.env.NODE_ENV!=="production"?Ye(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ye());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?Ye(!1,'Could not find xAxis by id "'.concat(t,'" [').concat($l(t),"]. ").concat(UC(r))):Ye()),n},FH=function(){var t=O.useContext(Hg);return In(t)},zH=function(){var t=O.useContext(Kg),r=IH(t,function(n){return kC(n.domain,Number.isFinite)});return r||In(t)},GC=function(t){var r=O.useContext(Kg);r==null&&(process.env.NODE_ENV!=="production"?Ye(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ye());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?Ye(!1,'Could not find yAxis by id "'.concat(t,'" [').concat($l(t),"]. ").concat(UC(r))):Ye()),n},UH=function(){var t=O.useContext(LC);return t},WH=function(){return O.useContext(BC)},Yg=function(){return O.useContext(zC)},Xg=function(){return O.useContext(FC)};function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function GH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KC(n.key),n)}}function KH(e,t,r){return t&&HH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YH(e,t,r){return t=jl(t),XH(e,HC()?Reflect.construct(t,r||[],jl(e).constructor):t.apply(e,r))}function XH(e,t){if(t&&(Ba(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VH(e)}function VH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HC=function(){return!!e})()}function jl(e){return jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jl(e)}function ZH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xy(e,t)}function Xy(e,t){return Xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xy(e,t)}function RO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(r),!0).forEach(function(n){Vg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vg(e,t,r){return t=KC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KC(e){var t=JH(e,"string");return Ba(t)=="symbol"?t:t+""}function JH(e,t){if(Ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function QH(e,t){return n4(e)||r4(e,t)||e4(e,t)||t4()}function t4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
156
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e4(e,t){if(e){if(typeof e=="string")return NO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NO(e,t)}}function NO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function n4(e){if(Array.isArray(e))return e}function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vy.apply(this,arguments)}var i4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):gt(t)?n=t(r):n=O.createElement("line",Vy({},r,{className:"recharts-reference-line-line"})),n},a4=function(t,r,n,i,a,o,s,u,l){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=l.y,m=t.y.apply(y,{position:o});if(tn(l,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return u==="left"?d.reverse():d}if(r){var g=l.x,_=t.x.apply(g,{position:o});if(tn(l,"discard")&&!t.x.isInRange(_))return null;var b=[{x:_,y:f+p},{x:_,y:f}];return s==="top"?b.reverse():b}if(i){var x=l.segment,v=x.map(function(w){return t.apply(w,{position:o})});return tn(l,"discard")&&J6(v,function(w){return!t.isInRange(w)})?null:v}return null};function o4(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,u=e.alwaysShow,l=qH(),c=WC(i),f=GC(a),h=UH();if(!l||!h)return null;gn(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Gg({x:c.scale,y:f.scale}),y=ge(t),m=ge(r),d=n&&n.length===2,g=a4(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!g)return null;var _=QH(g,2),b=_[0],x=b.x,v=b.y,w=_[1],S=w.x,A=w.y,P=tn(e,"hidden")?"url(#".concat(l,")"):void 0,C=IO(IO({clipPath:P},vt(e,!0)),{},{x1:x,y1:v,x2:S,y2:A});return O.createElement(jt,{className:At("recharts-reference-line",s)},i4(o,C),Re.renderCallByParent(e,CH({x1:x,y1:v,x2:S,y2:A})))}var Sc=(function(e){function t(){return GH(this,t),YH(this,t,arguments)}return ZH(t,e),KH(t,[{key:"render",value:function(){return O.createElement(o4,this.props)}}])})(O.Component);Vg(Sc,"displayName","ReferenceLine");Vg(Sc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}function qa(e){"@babel/helpers - typeof";return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(e)}function LO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(n){Oc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XC(n.key),n)}}function l4(e,t,r){return t&&u4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c4(e,t,r){return t=Dl(t),f4(e,YC()?Reflect.construct(t,r||[],Dl(e).constructor):t.apply(e,r))}function f4(e,t){if(t&&(qa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h4(e)}function h4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YC=function(){return!!e})()}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dl(e)}function p4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jy(e,t)}function Jy(e,t){return Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jy(e,t)}function Oc(e,t,r){return t=XC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XC(e){var t=d4(e,"string");return qa(t)=="symbol"?t:t+""}function d4(e,t){if(qa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var m4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Gg({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return tn(t,"discard")&&!o.isInRange(s)?null:s},Ac=(function(e){function t(){return s4(this,t),c4(this,t,arguments)}return p4(t,e),l4(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,u=n.clipPathId,l=ge(i),c=ge(a);if(gn(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var f=m4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,g=tn(this.props,"hidden")?"url(#".concat(u,")"):void 0,_=BO(BO({clipPath:g},vt(this.props,!0)),{},{cx:h,cy:p});return O.createElement(jt,{className:At("recharts-reference-dot",d)},t.renderDot(m,_),Re.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);Oc(Ac,"displayName","ReferenceDot");Oc(Ac,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Oc(Ac,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):gt(e)?r=e(t):r=O.createElement(bc,Zy({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qy.apply(this,arguments)}function Fa(e){"@babel/helpers - typeof";return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fa(e)}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function FO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){Pc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZC(n.key),n)}}function g4(e,t,r){return t&&v4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function b4(e,t,r){return t=Rl(t),_4(e,VC()?Reflect.construct(t,r||[],Rl(e).constructor):t.apply(e,r))}function _4(e,t){if(t&&(Fa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x4(e)}function x4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VC=function(){return!!e})()}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rl(e)}function w4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tv(e,t)}function tv(e,t){return tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tv(e,t)}function Pc(e,t,r){return t=ZC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZC(e){var t=S4(e,"string");return Fa(t)=="symbol"?t:t+""}function S4(e,t){if(Fa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var O4=function(t,r,n,i,a){var o=a.x1,s=a.x2,u=a.y1,l=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var h=Gg({x:c.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(u,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(l,{position:"end"}):h.y.rangeMax};return tn(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:IC(p,y)},Tc=(function(e){function t(){return y4(this,t),b4(this,t,arguments)}return w4(t,e),g4(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,u=n.className,l=n.alwaysShow,c=n.clipPathId;gn(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=ge(i),h=ge(a),p=ge(o),y=ge(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=O4(f,h,p,y,this.props);if(!d&&!m)return null;var g=tn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(jt,{className:At("recharts-reference-area",u)},t.renderRect(m,FO(FO({clipPath:g},vt(this.props,!0)),d)),Re.renderCallByParent(this.props,d))}}])})(O.Component);Pc(Tc,"displayName","ReferenceArea");Pc(Tc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Pc(Tc,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):gt(e)?r=e(t):r=O.createElement(Wg,Qy({},t,{className:"recharts-reference-area-rect"})),r});function JC(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function A4(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return kH(n,r)}function P4(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Il(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function T4(e,t){return JC(e,t+1)}function E4(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,u=0,l=1,c=o,f=function(){var y=n==null?void 0:n[u];if(y===void 0)return{v:JC(n,l)};var m=u,d,g=function(){return d===void 0&&(d=r(y,m)),d},_=y.coordinate,b=u===0||Il(e,_,g,c,s);b||(u=0,c=o,l+=1),b&&(c=_+e*(g()/2+i),u+=l)},h;l<=a.length;)if(h=f(),h)return h.v;return[]}function qs(e){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(e)}function zO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zO(Object(r),!0).forEach(function(n){C4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C4(e,t,r){return t=M4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M4(e){var t=k4(e,"string");return qs(t)=="symbol"?t:t+""}function k4(e,t){if(qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $4(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,u=t.end,l=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-u);a[h]=p=De(De({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=De(De({},p),{},{tickCoord:p.coordinate});var g=Il(e,p.tickCoord,m,s,u);g&&(u=p.tickCoord-e*(m()/2+i),a[h]=De(De({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)l(c);return a}function j4(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,u=t.start,l=t.end;if(a){var c=n[s-1],f=r(c,s-1),h=e*(c.coordinate+e*f/2-l);o[s-1]=c=De(De({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=Il(e,c.tickCoord,function(){return f},u,l);p&&(l=c.tickCoord-e*(f/2+i),o[s-1]=De(De({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(_){var b=o[_],x,v=function(){return x===void 0&&(x=r(b,_)),x};if(_===0){var w=e*(b.coordinate-e*v()/2-u);o[_]=b=De(De({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else o[_]=b=De(De({},b),{},{tickCoord:b.coordinate});var S=Il(e,b.tickCoord,v,u,l);S&&(u=b.tickCoord+e*(v()/2+i),o[_]=De(De({},b),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function Zg(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,u=e.interval,l=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(nt(u)||Qn.isSsr)return T4(i,typeof u=="number"&&nt(u)?u:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?Wo(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(b,x){var v=gt(l)?l(b.value,x):b.value;return p==="width"?A4(Wo(v,{fontSize:t,letterSpacing:r}),y,f):Wo(v,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?Nr(i[1].coordinate-i[0].coordinate):1,g=P4(a,d,p);return u==="equidistantPreserveStart"?E4(d,g,m,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=j4(d,g,m,i,o,u==="preserveStartEnd"):h=$4(d,g,m,i,o),h.filter(function(_){return _.isShow}))}var D4=["viewBox"],R4=["viewBox"],I4=["ticks"];function za(e){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},za(e)}function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ia.apply(this,arguments)}function UO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){Jg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fm(e,t){if(e==null)return{};var r=N4(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function L4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tM(n.key),n)}}function B4(e,t,r){return t&&WO(e.prototype,t),r&&WO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function q4(e,t,r){return t=Nl(t),F4(e,QC()?Reflect.construct(t,r||[],Nl(e).constructor):t.apply(e,r))}function F4(e,t){if(t&&(za(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z4(e)}function z4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QC=function(){return!!e})()}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nl(e)}function U4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ev(e,t)}function ev(e,t){return ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ev(e,t)}function Jg(e,t,r){return t=tM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tM(e){var t=W4(e,"string");return za(t)=="symbol"?t:t+""}function W4(e,t){if(za(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(za(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var so=(function(e){function t(r){var n;return L4(this,t),n=q4(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return U4(t,e),B4(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=fm(n,D4),s=this.props,u=s.viewBox,l=fm(s,R4);return!da(a,u)||!da(o,l)||!da(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,g,_,b=f?-1:1,x=n.tickSize||c,v=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=y=n.coordinate,d=o+ +!f*u,m=d-b*x,_=m-b*h,g=v;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-b*x,g=p-b*h,_=v;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+b*x,g=p+b*h,_=v;break;default:p=y=n.coordinate,d=o+ +f*u,m=d+b*x,_=m+b*h,g=v;break}return{line:{x1:p,y1:m,x2:y,y2:d},tick:{x:g,y:_}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.orientation,l=n.mirror,c=n.axisLine,f=ye(ye(ye({},vt(this.props,!1)),vt(c,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!l||u==="bottom"&&l);f=ye(ye({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(u==="left"&&!l||u==="right"&&l);f=ye(ye({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",ia({},f,{className:At("recharts-cartesian-axis-line",Tr(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,u=s.tickLine,l=s.stroke,c=s.tick,f=s.tickFormatter,h=s.unit,p=Zg(ye(ye({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=vt(this.props,!1),g=vt(c,!1),_=ye(ye({},d),{},{fill:"none"},vt(u,!1)),b=p.map(function(x,v){var w=o.getTickLineCoord(x),S=w.line,A=w.tick,P=ye(ye(ye(ye({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:l},g),A),{},{index:v,payload:x,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(jt,ia({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},ps(o.props,x,v)),u&&O.createElement("line",ia({},_,S,{className:At("recharts-cartesian-axis-tick-line",Tr(u,"className"))})),c&&t.renderTickItem(c,P,"".concat(gt(f)?f(x.value,v):x.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,u=i.ticksGenerator,l=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=fm(f,I4),y=h;return gt(u)&&(y=h&&h.length>0?u(this.props):u(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(jt,{className:At("recharts-cartesian-axis",l),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Re.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=At(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,ye(ye({},i),{},{className:s})):gt(n)?o=n(ye(ye({},i),{},{className:s})):o=O.createElement(dl,ia({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);Jg(so,"displayName","CartesianAxis");Jg(so,"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 G4=["x1","y1","x2","y2","key"],H4=["offset"];function Ri(e){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function GO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(r),!0).forEach(function(n){K4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K4(e,t,r){return t=Y4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y4(e){var t=X4(e,"string");return Ri(t)=="symbol"?t:t+""}function X4(e,t){if(Ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yi.apply(this,arguments)}function HO(e,t){if(e==null)return{};var r=V4(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Z4=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,u=t.ry;return O.createElement("rect",{x:i,y:a,ry:u,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function eM(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(gt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,u=HO(t,G4),l=vt(u,!1);l.offset;var c=HO(l,H4);r=O.createElement("line",yi({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function J4(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,u){var l=Ie(Ie({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return eM(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Q4(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,u){var l=Ie(Ie({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return eM(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function tK(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,u=e.horizontal,l=u===void 0?!0:u;if(!l||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function eK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,u=e.height,l=e.verticalPoints;if(!r||!n||!n.length)return null;var c=l.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:u,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var rK=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return pC(Zg(Ie(Ie(Ie({},so.defaultProps),n),{},{ticks:yn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},nK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return pC(Zg(Ie(Ie(Ie({},so.defaultProps),n),{},{ticks:yn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ji={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function rM(e){var t,r,n,i,a,o,s=Yg(),u=Xg(),l=WH(),c=Ie(Ie({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ji.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ji.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ji.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ji.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ji.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ji.verticalFill,x:nt(e.x)?e.x:l.left,y:nt(e.y)?e.y:l.top,width:nt(e.width)?e.width:l.width,height:nt(e.height)?e.height:l.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,g=c.verticalValues,_=FH(),b=zH();if(!nt(p)||p<=0||!nt(y)||y<=0||!nt(f)||f!==+f||!nt(h)||h!==+h)return null;var x=c.verticalCoordinatesGenerator||rK,v=c.horizontalCoordinatesGenerator||nK,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&gt(v)){var A=d&&d.length,P=v({yAxis:b?Ie(Ie({},b),{},{ticks:A?d:b.ticks}):void 0,width:s,height:u,offset:l},A?!0:m);gn(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ri(P),"]")),Array.isArray(P)&&(w=P)}if((!S||!S.length)&&gt(x)){var C=g&&g.length,T=x({xAxis:_?Ie(Ie({},_),{},{ticks:C?g:_.ticks}):void 0,width:s,height:u,offset:l},C?!0:m);gn(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ri(T),"]")),Array.isArray(T)&&(S=T)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(Z4,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(J4,yi({},c,{offset:l,horizontalPoints:w,xAxis:_,yAxis:b})),O.createElement(Q4,yi({},c,{offset:l,verticalPoints:S,xAxis:_,yAxis:b})),O.createElement(tK,yi({},c,{horizontalPoints:w})),O.createElement(eK,yi({},c,{verticalPoints:S})))}rM.displayName="CartesianGrid";var iK=["type","layout","connectNulls","ref"],aK=["key"];function Ua(e){"@babel/helpers - typeof";return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(e)}function KO(e,t){if(e==null)return{};var r=oK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ko.apply(this,arguments)}function YO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(r),!0).forEach(function(n){Dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qi(e){return cK(e)||lK(e)||uK(e)||sK()}function sK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
157
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uK(e,t){if(e){if(typeof e=="string")return rv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rv(e,t)}}function lK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cK(e){if(Array.isArray(e))return rv(e)}function rv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iM(n.key),n)}}function hK(e,t,r){return t&&XO(e.prototype,t),r&&XO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pK(e,t,r){return t=Ll(t),dK(e,nM()?Reflect.construct(t,r||[],Ll(e).constructor):t.apply(e,r))}function dK(e,t){if(t&&(Ua(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mK(e)}function mK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nM=function(){return!!e})()}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ll(e)}function yK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nv(e,t)}function nv(e,t){return nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nv(e,t)}function Dr(e,t,r){return t=iM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iM(e){var t=vK(e,"string");return Ua(t)=="symbol"?t:t+""}function vK(e,t){if(Ua(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ua(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ec=(function(e){function t(){var r;fK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=pK(this,t,[].concat(i)),Dr(r,"state",{isAnimationFinished:!0,totalLength:0}),Dr(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Dr(r,"getStrokeDasharray",function(o,s,u){var l=u.reduce(function(g,_){return g+_});if(!l)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/l),f=o%l,h=s-o,p=[],y=0,m=0;y<u.length;m+=u[y],++y)if(m+u[y]>f){p=[].concat(Qi(u.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Qi(t.repeat(u,c)),Qi(p),d).map(function(g){return"".concat(g,"px")}).join(", ")}),Dr(r,"id",zi("recharts-line-")),Dr(r,"pathRef",function(o){r.mainCurve=o}),Dr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Dr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return yK(t,e),hK(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,u=a.yAxis,l=a.layout,c=a.children,f=tr(c,ao);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:be(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(jt,p,f.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:u,layout:l,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,u=s.dot,l=s.points,c=s.dataKey,f=vt(this.props,!1),h=vt(u,!0),p=l.map(function(m,d){var g=or(or(or({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:l});return t.renderDotItem(u,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(jt,Ko({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,u=s.type,l=s.layout,c=s.connectNulls;s.ref;var f=KO(s,iK),h=or(or(or({},vt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:l,connectNulls:c});return O.createElement(Ai,Ko({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.strokeDasharray,l=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,g=this.state,_=g.prevPoints,b=g.totalLength;return O.createElement(Lr,{begin:c,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var v=x.t;if(_){var w=_.length/s.length,S=s.map(function(E,k){var j=Math.floor(k*w);if(_[j]){var $=_[j],M=ce($.x,E.x),I=ce($.y,E.y);return or(or({},E),{},{x:M(v),y:I(v)})}if(y){var L=ce(m*2,E.x),q=ce(d/2,E.y);return or(or({},E),{},{x:L(v),y:q(v)})}return or(or({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=ce(0,b),P=A(v),C;if(u){var T="".concat(u).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});C=a.getStrokeDasharray(P,b,T)}else C=a.generateSimpleStrokeDasharray(b,P);return a.renderCurveStatically(s,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,u=this.state,l=u.prevPoints,c=u.totalLength;return s&&o&&o.length&&(!l&&c>0||!ji(l,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,l=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,_=s.length===1,b=At("recharts-line",u),x=l&&l.allowDataOverflow,v=c&&c.allowDataOverflow,w=x||v,S=yt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,C=P===void 0?3:P,T=A.strokeWidth,E=T===void 0?2:T,k=CE(o)?o:{},j=k.clipDot,$=j===void 0?!0:j,M=C*2+E;return O.createElement(jt,{className:b},x||v?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:x?h:h-p/2,y:v?f:f-y/2,width:x?p:p*2,height:v?y:y*2})),!$&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-M/2,y:f-M/2,width:p+M,height:y+M}))):null,!_&&this.renderCurve(w,S),this.renderErrorBar(w,S),(_||o)&&this.renderDots(w,$,S),(!m||g)&&Qr.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Qi(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Qi(o),Qi(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(gt(n))a=n(i);else{var o=i.key,s=KO(i,aK),u=At("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(bc,Ko({key:o},s,{className:u}))}return a}}])})(O.PureComponent);Dr(Ec,"displayName","Line");Dr(Ec,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Qn.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Dr(Ec,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,u=e.displayedData,l=e.offset,c=t.layout,f=u.map(function(h,p){var y=be(h,o);return c==="horizontal"?{x:ja({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:yt(y)?null:n.scale(y),value:y,payload:h}:{x:yt(y)?null:r.scale(y),y:ja({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return or({points:f,layout:c},l)});var gK=["layout","type","stroke","connectNulls","isRange","ref"],bK=["key"],aM;function Wa(e){"@babel/helpers - typeof";return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wa(e)}function oM(e,t){if(e==null)return{};var r=_K(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _K(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vi.apply(this,arguments)}function VO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(r),!0).forEach(function(n){Zr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uM(n.key),n)}}function wK(e,t,r){return t&&ZO(e.prototype,t),r&&ZO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SK(e,t,r){return t=Bl(t),OK(e,sM()?Reflect.construct(t,r||[],Bl(e).constructor):t.apply(e,r))}function OK(e,t){if(t&&(Wa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AK(e)}function AK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sM=function(){return!!e})()}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bl(e)}function PK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iv(e,t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},iv(e,t)}function Zr(e,t,r){return t=uM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uM(e){var t=TK(e,"string");return Wa(t)=="symbol"?t:t+""}function TK(e,t){if(Wa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ei=(function(e){function t(){var r;xK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=SK(this,t,[].concat(i)),Zr(r,"state",{isAnimationFinished:!0}),Zr(r,"id",zi("recharts-area-")),Zr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),gt(o)&&o()}),Zr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),gt(o)&&o()}),r}return PK(t,e),wK(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var u=this.props,l=u.dot,c=u.points,f=u.dataKey,h=vt(this.props,!1),p=vt(l,!0),y=c.map(function(d,g){var _=Dn(Dn(Dn({key:"dot-".concat(g),r:3},h),p),{},{index:g,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(l,_)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(jt,vi({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].x,l=o[o.length-1].x,c=n*Math.abs(u-l),f=qn(o.map(function(h){return h.y||0}));return nt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(qn(a.map(function(h){return h.y||0})),f)),nt(f)?O.createElement("rect",{x:u<l?u:u-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].y,l=o[o.length-1].y,c=n*Math.abs(u-l),f=qn(o.map(function(h){return h.x||0}));return nt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(qn(a.map(function(h){return h.x||0})),f)),nt(f)?O.createElement("rect",{x:0,y:u<l?u:u-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,u=s.layout,l=s.type,c=s.stroke,f=s.connectNulls,h=s.isRange;s.ref;var p=oM(s,gK);return O.createElement(jt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(Ai,vi({},vt(p,!0),{points:n,connectNulls:f,type:l,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(Ai,vi({},vt(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(Ai,vi({},vt(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.baseLine,l=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return O.createElement(Lr,{begin:c,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var _=g.t;if(m){var b=m.length/s.length,x=s.map(function(A,P){var C=Math.floor(P*b);if(m[C]){var T=m[C],E=ce(T.x,A.x),k=ce(T.y,A.y);return Dn(Dn({},A),{},{x:E(_),y:k(_)})}return A}),v;if(nt(u)&&typeof u=="number"){var w=ce(d,u);v=w(_)}else if(yt(u)||ro(u)){var S=ce(d,0);v=S(_)}else v=u.map(function(A,P){var C=Math.floor(P*b);if(d[C]){var T=d[C],E=ce(T.x,A.x),k=ce(T.y,A.y);return Dn(Dn({},A),{},{x:E(_),y:k(_)})}return A});return a.renderAreaStatically(x,v,n,i)}return O.createElement(jt,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(_))),O.createElement(jt,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,u,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,u=a.isAnimationActive,l=this.state,c=l.prevPoints,f=l.prevBaseLine,h=l.totalLength;return u&&o&&o.length&&(!c&&h>0||!ji(c,o)||!ji(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,l=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,_=s.length===1,b=At("recharts-area",u),x=f&&f.allowDataOverflow,v=h&&h.allowDataOverflow,w=x||v,S=yt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,C=P===void 0?3:P,T=A.strokeWidth,E=T===void 0?2:T,k=CE(o)?o:{},j=k.clipDot,$=j===void 0?!0:j,M=C*2+E;return O.createElement(jt,{className:b},x||v?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:x?c:c-p/2,y:v?l:l-y/2,width:x?p:p*2,height:v?y:y*2})),!$&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-M/2,y:l-M/2,width:p+M,height:y+M}))):null,_?null:this.renderArea(w,S),(o||_)&&this.renderDots(w,$,S),(!m||g)&&Qr.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);aM=ei;Zr(ei,"displayName","Area");Zr(ei,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Qn.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Zr(ei,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(nt(s)&&typeof s=="number")return s;var u=i==="horizontal"?n:r,l=u.scale.domain();if(u.type==="number"){var c=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(l[0],l[1]),0)}return s==="dataMin"?l[0]:s==="dataMax"?l[1]:l[0]});Zr(ei,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,u=e.dataKey,l=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=l&&l.length,m=aM.getBaseValue(t,r,n,i),d=p==="horizontal",g=!1,_=f.map(function(x,v){var w;y?w=l[c+v]:(w=be(x,u),Array.isArray(w)?g=!0:w=[m,w]);var S=w[1]==null||y&&be(x,u)==null;return d?{x:ja({axis:n,ticks:a,bandSize:s,entry:x,index:v}),y:S?null:i.scale(w[1]),value:w,payload:x}:{x:S?null:n.scale(w[1]),y:ja({axis:i,ticks:o,bandSize:s,entry:x,index:v}),value:w,payload:x}}),b;return y||g?b=_.map(function(x){var v=Array.isArray(x.value)?x.value[0]:null;return d?{x:x.x,y:v!=null&&x.y!=null?i.scale(v):null}:{x:v!=null?n.scale(v):null,y:x.y}}):b=d?i.scale(m):n.scale(m),Dn({points:_,baseLine:b,layout:p,isRange:g},h)});Zr(ei,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(gt(e))r=e(t);else{var n=At("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=oM(t,bK);r=O.createElement(bc,vi({},a,{key:i,className:n}))}return r});function Ga(e){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(e)}function EK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fM(n.key),n)}}function MK(e,t,r){return t&&CK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kK(e,t,r){return t=ql(t),$K(e,lM()?Reflect.construct(t,r||[],ql(e).constructor):t.apply(e,r))}function $K(e,t){if(t&&(Ga(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jK(e)}function jK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lM=function(){return!!e})()}function ql(e){return ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ql(e)}function DK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&av(e,t)}function av(e,t){return av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},av(e,t)}function cM(e,t,r){return t=fM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e){var t=RK(e,"string");return Ga(t)=="symbol"?t:t+""}function RK(e,t){if(Ga(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cc=(function(e){function t(){return EK(this,t),kK(this,t,arguments)}return DK(t,e),MK(t,[{key:"render",value:function(){return null}}])})(Pr.Component);cM(Cc,"displayName","ZAxis");cM(Cc,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var IK=["option","isActive"];function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yo.apply(this,arguments)}function NK(e,t){if(e==null)return{};var r=LK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function BK(e){var t=e.option,r=e.isActive,n=NK(e,IK);return typeof t=="string"?Pr.createElement(Gy,Yo({option:Pr.createElement(dc,Yo({type:t},n)),isActive:r,shapeType:"symbols"},n)):Pr.createElement(Gy,Yo({option:t,isActive:r,shapeType:"symbols"},n))}function Ha(e){"@babel/helpers - typeof";return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ha(e)}function Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xo.apply(this,arguments)}function JO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(r),!0).forEach(function(n){zn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pM(n.key),n)}}function FK(e,t,r){return t&&QO(e.prototype,t),r&&QO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zK(e,t,r){return t=Fl(t),UK(e,hM()?Reflect.construct(t,r||[],Fl(e).constructor):t.apply(e,r))}function UK(e,t){if(t&&(Ha(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WK(e)}function WK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hM=function(){return!!e})()}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fl(e)}function GK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ov(e,t)}function zn(e,t,r){return t=pM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pM(e){var t=HK(e,"string");return Ha(t)=="symbol"?t:t+""}function HK(e,t){if(Ha(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ha(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mc=(function(e){function t(){var r;qK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=zK(this,t,[].concat(i)),zn(r,"state",{isAnimationFinished:!1}),zn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),zn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),zn(r,"id",zi("recharts-scatter-")),r}return GK(t,e),FK(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,u=a.activeIndex,l=vt(this.props,!1);return n.map(function(c,f){var h=u===f,p=h?s:o,y=xr(xr({},l),c);return O.createElement(jt,Xo({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},ps(i.props,c,f),{role:"img"}),O.createElement(BK,Xo({option:p,isActive:h,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,u=i.animationDuration,l=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(Lr,{begin:s,duration:u,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var g=f&&f[d];if(g){var _=ce(g.cx,m.cx),b=ce(g.cy,m.cy),x=ce(g.size,m.size);return xr(xr({},m),{},{cx:_(p),cy:b(p),size:x(p)})}var v=ce(0,m.size);return xr(xr({},m),{},{size:v(p)})});return O.createElement(jt,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!ji(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,u=i.children,l=tr(u,ao);return l?l.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,g){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:be(d,g)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,u=vt(this.props,!1),l=vt(a,!1),c,f;if(o==="joint")c=i.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var h=BF(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,g=function(x){return m*x+d};c=[{x:p,y:g(p)},{x:y,y:g(y)}]}var _=xr(xr(xr({},u),{},{fill:"none",stroke:u&&u.fill},l),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,_):gt(a)?f=a(_):f=O.createElement(Ai,Xo({},_,{type:s})),O.createElement(jt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,u=n.xAxis,l=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,g=At("recharts-scatter",s),_=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,x=_||b,v=yt(y)?this.id:y;return O.createElement(jt,{className:g,clipPath:x?"url(#clipPath-".concat(v,")"):null},_||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(v)},O.createElement("rect",{x:_?c:c-h/2,y:b?f:f-p/2,width:_?h:h*2,height:b?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(jt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&Qr.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);zn(Mc,"displayName","Scatter");zn(Mc,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Qn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});zn(Mc,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,u=e.offset,l=i.props.tooltipType,c=tr(i.props.children,Bg),f=yt(t.dataKey)?i.props.dataKey:t.dataKey,h=yt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:Cc.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,g=r.scale.bandwidth?r.scale.bandwidth():0,_=a.map(function(b,x){var v=be(b,f),w=be(b,h),S=!yt(p)&&be(b,p)||"-",A=[{name:yt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:v,payload:b,dataKey:f,type:l},{name:yt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:b,dataKey:h,type:l}];S!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:b,dataKey:p,type:l});var P=ja({axis:t,ticks:o,bandSize:d,entry:b,index:x,dataKey:f}),C=ja({axis:r,ticks:s,bandSize:g,entry:b,index:x,dataKey:h}),T=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(T,0)/Math.PI);return xr(xr({},b),{},{cx:P,cy:C,x:P-E,y:C-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:T,node:{x:v,y:w,z:S},tooltipPayload:A,tooltipPosition:{x:P,y:C},payload:b},c&&c[x]&&c[x].props)});return xr({points:_},u)});function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ka(e)}function KK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yM(n.key),n)}}function XK(e,t,r){return t&&YK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VK(e,t,r){return t=zl(t),ZK(e,dM()?Reflect.construct(t,r||[],zl(e).constructor):t.apply(e,r))}function ZK(e,t){if(t&&(Ka(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JK(e)}function JK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dM=function(){return!!e})()}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zl(e)}function QK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sv(e,t)}function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sv(e,t)}function mM(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=tY(e,"string");return Ka(t)=="symbol"?t:t+""}function tY(e,t){if(Ka(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ka(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function uv(){return uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uv.apply(this,arguments)}function eY(e){var t=e.xAxisId,r=Yg(),n=Xg(),i=WC(t);return i==null?null:Pr.createElement(so,uv({},i,{className:At("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return yn(o,!0)}}))}var kc=(function(e){function t(){return KK(this,t),VK(this,t,arguments)}return QK(t,e),XK(t,[{key:"render",value:function(){return Pr.createElement(eY,this.props)}}])})(Pr.Component);mM(kc,"displayName","XAxis");mM(kc,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}function rY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bM(n.key),n)}}function iY(e,t,r){return t&&nY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aY(e,t,r){return t=Ul(t),oY(e,vM()?Reflect.construct(t,r||[],Ul(e).constructor):t.apply(e,r))}function oY(e,t){if(t&&(Ya(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sY(e)}function sY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vM=function(){return!!e})()}function Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ul(e)}function uY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lv(e,t)}function lv(e,t){return lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lv(e,t)}function gM(e,t,r){return t=bM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bM(e){var t=lY(e,"string");return Ya(t)=="symbol"?t:t+""}function lY(e,t){if(Ya(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ya(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cv.apply(this,arguments)}var cY=function(t){var r=t.yAxisId,n=Yg(),i=Xg(),a=GC(r);return a==null?null:Pr.createElement(so,cv({},a,{className:At("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return yn(s,!0)}}))},$c=(function(e){function t(){return rY(this,t),aY(this,t,arguments)}return uY(t,e),iY(t,[{key:"render",value:function(){return Pr.createElement(cY,this.props)}}])})(Pr.Component);gM($c,"displayName","YAxis");gM($c,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function tA(e){return dY(e)||pY(e)||hY(e)||fY()}function fY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
158
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hY(e,t){if(e){if(typeof e=="string")return fv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fv(e,t)}}function pY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dY(e){if(Array.isArray(e))return fv(e)}function fv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hv=function(t,r,n,i,a){var o=tr(t,Sc),s=tr(t,Ac),u=[].concat(tA(o),tA(s)),l=tr(t,Tc),c="".concat(i,"Id"),f=i[0],h=r;if(u.length&&(h=u.reduce(function(m,d){if(d.props[c]===n&&tn(d.props,"extendDomain")&&nt(d.props[f])){var g=d.props[f];return[Math.min(m[0],g),Math.max(m[1],g)]}return m},h)),l.length){var p="".concat(f,"1"),y="".concat(f,"2");h=l.reduce(function(m,d){if(d.props[c]===n&&tn(d.props,"extendDomain")&&nt(d.props[p])&&nt(d.props[y])){var g=d.props[p],_=d.props[y];return[Math.min(m[0],g,_),Math.max(m[1],g,_)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return nt(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},hm={exports:{}},eA;function mY(){return eA||(eA=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function a(u,l,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||u,h),y=r?r+l:l;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],p]:u._events[y].push(p):(u._events[y]=p,u._eventsCount++),u}function o(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,f;if(this._eventsCount===0)return l;for(f in c=this._events)t.call(c,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(l){var c=r?r+l:l,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(l,c,f,h,p,y){var m=r?r+l:l;if(!this._events[m])return!1;var d=this._events[m],g=arguments.length,_,b;if(d.fn){switch(d.once&&this.removeListener(l,d.fn,void 0,!0),g){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(b=1,_=new Array(g-1);b<g;b++)_[b-1]=arguments[b];d.fn.apply(d.context,_)}else{var x=d.length,v;for(b=0;b<x;b++)switch(d[b].once&&this.removeListener(l,d[b].fn,void 0,!0),g){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,c);break;case 3:d[b].fn.call(d[b].context,c,f);break;case 4:d[b].fn.call(d[b].context,c,f,h);break;default:if(!_)for(v=1,_=new Array(g-1);v<g;v++)_[v-1]=arguments[v];d[b].fn.apply(d[b].context,_)}}return!0},s.prototype.on=function(l,c,f){return a(this,l,c,f,!1)},s.prototype.once=function(l,c,f){return a(this,l,c,f,!0)},s.prototype.removeListener=function(l,c,f,h){var p=r?r+l:l;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],g=y.length;m<g;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(l){var c;return l?(c=r?r+l:l,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(hm)),hm.exports}var yY=mY();const vY=qt(yY);var pm=new vY,dm="recharts.syncMouseEvents";function Fs(e){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fs(e)}function gY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_M(n.key),n)}}function _Y(e,t,r){return t&&bY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mm(e,t,r){return t=_M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _M(e){var t=xY(e,"string");return Fs(t)=="symbol"?t:t+""}function xY(e,t){if(Fs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wY=(function(){function e(){gY(this,e),mm(this,"activeIndex",0),mm(this,"coordinateList",[]),mm(this,"layout","horizontal")}return _Y(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,u=r.layout,l=u===void 0?null:u,c=r.offset,f=c===void 0?null:c,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=l??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,u=this.coordinateList[this.activeIndex].coordinate,l=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+u+l,h=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function SY(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&nt(n)&&nt(i))return!0}return!1}function OY(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function xM(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ee(t,r,n,i),s=Ee(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function AY(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,u=t.cy,l=t.innerRadius,c=t.outerRadius,f=t.angle,h=Ee(s,u,l,f),p=Ee(s,u,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return xM(t);return[{x:n,y:i},{x:a,y:o}]}function zs(e){"@babel/helpers - typeof";return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zs(e)}function rA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ou(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(r),!0).forEach(function(n){PY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PY(e,t,r){return t=TY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TY(e){var t=EY(e,"string");return zs(t)=="symbol"?t:t+""}function EY(e,t){if(zs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CY(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,u=e.offset,l=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=Ai;if(h==="ScatterChart")y=o,m=n6;else if(h==="BarChart")y=OY(f,o,u,c),m=Wg;else if(f==="radial"){var d=xM(o),g=d.cx,_=d.cy,b=d.radius,x=d.startAngle,v=d.endAngle;y={cx:g,cy:_,startAngle:x,endAngle:v,innerRadius:b,outerRadius:b},m=gC}else y={points:AY(f,o,u)},m=Ai;var w=Ou(Ou(Ou(Ou({stroke:"#ccc",pointerEvents:"none"},u),y),vt(p,!1)),{},{payload:s,payloadIndex:l,className:At("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(m,w)}var MY=["item"],kY=["children","className","width","height","style","compact","title","desc"];function Xa(e){"@babel/helpers - typeof";return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xa(e)}function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aa.apply(this,arguments)}function nA(e,t){return DY(e)||jY(e,t)||SM(e,t)||$Y()}function $Y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
159
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function DY(e){if(Array.isArray(e))return e}function iA(e,t){if(e==null)return{};var r=RY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OM(n.key),n)}}function LY(e,t,r){return t&&NY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BY(e,t,r){return t=Wl(t),qY(e,wM()?Reflect.construct(t,r||[],Wl(e).constructor):t.apply(e,r))}function qY(e,t){if(t&&(Xa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FY(e)}function FY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wM=function(){return!!e})()}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wl(e)}function zY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pv(e,t)}function pv(e,t){return pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pv(e,t)}function Va(e){return GY(e)||WY(e)||SM(e)||UY()}function UY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SM(e,t){if(e){if(typeof e=="string")return dv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dv(e,t)}}function WY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GY(e){if(Array.isArray(e))return dv(e)}function dv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aA(Object(r),!0).forEach(function(n){dt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dt(e,t,r){return t=OM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OM(e){var t=HY(e,"string");return Xa(t)=="symbol"?t:t+""}function HY(e,t){if(Xa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KY={xAxis:["bottom","top"],yAxis:["left","right"]},YY={width:"100%",height:"100%"},AM={x:0,y:0};function Au(e){return e}var XY=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},VY=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return Y(Y(Y({},i),Ee(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var u=a.coordinate,l=i.angle;return Y(Y(Y({},i),Ee(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}return AM},jc=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,u){var l=u.props.data;return l&&l.length?[].concat(Va(s),Va(l)):s},[]);return o.length>0?o:t&&t.length&&nt(i)&&nt(a)?t.slice(i,a+1):[]};function PM(e){return e==="number"?[0,"auto"]:void 0}var mv=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=jc(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(u,l){var c,f=(c=l.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=sl(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Va(u),[mC(l,h)]):u},[])},oA=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=XY(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=DU(o,s,l,u);if(c>=0&&l){var f=l[c]&&l[c].value,h=mv(t,r,c,f),p=VY(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},ZY=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.layout,f=t.children,h=t.stackOffset,p=hC(c,a);return n.reduce(function(y,m){var d,g=m.type.defaultProps!==void 0?Y(Y({},m.type.defaultProps),m.props):m.props,_=g.type,b=g.dataKey,x=g.allowDataOverflow,v=g.allowDuplicatedCategory,w=g.scale,S=g.ticks,A=g.includeHidden,P=g[o];if(y[P])return y;var C=jc(t.data,{graphicalItems:i.filter(function(B){var U,W=o in B.props?B.props[o]:(U=B.type.defaultProps)===null||U===void 0?void 0:U[o];return W===P}),dataStartIndex:u,dataEndIndex:l}),T=C.length,E,k,j;SY(g.domain,x,_)&&(E=Cy(g.domain,null,x),p&&(_==="number"||w!=="auto")&&(j=Go(C,b,"category")));var $=PM(_);if(!E||E.length===0){var M,I=(M=g.domain)!==null&&M!==void 0?M:$;if(b){if(E=Go(C,b,_),_==="category"&&p){var L=LF(E);v&&L?(k=E,E=hs(0,T)):v||(E=fS(I,E,m).reduce(function(B,U){return B.indexOf(U)>=0?B:[].concat(Va(B),[U])},[]))}else if(_==="category")v?E=E.filter(function(B){return B!==""&&!yt(B)}):E=fS(I,E,m).reduce(function(B,U){return B.indexOf(U)>=0||U===""||yt(U)?B:[].concat(Va(B),[U])},[]);else if(_==="number"){var q=BU(C,i.filter(function(B){var U,W,X=o in B.props?B.props[o]:(U=B.type.defaultProps)===null||U===void 0?void 0:U[o],Z="hide"in B.props?B.props.hide:(W=B.type.defaultProps)===null||W===void 0?void 0:W.hide;return X===P&&(A||!Z)}),b,a,c);q&&(E=q)}p&&(_==="number"||w!=="auto")&&(j=Go(C,b,"category"))}else p?E=hs(0,T):s&&s[P]&&s[P].hasStack&&_==="number"?E=h==="expand"?[0,1]:dC(s[P].stackGroups,u,l):E=fC(C,i.filter(function(B){var U=o in B.props?B.props[o]:B.type.defaultProps[o],W="hide"in B.props?B.props.hide:B.type.defaultProps.hide;return U===P&&(A||!W)}),_,c,!0);if(_==="number")E=hv(f,E,P,a,S),I&&(E=Cy(I,E,x));else if(_==="category"&&I){var R=I,D=E.every(function(B){return R.indexOf(B)>=0});D&&(E=R)}}return Y(Y({},y),{},dt({},P,Y(Y({},g),{},{axisType:a,domain:E,categoricalDomain:j,duplicateDomain:k,originalDomain:(d=g.domain)!==null&&d!==void 0?d:$,isCategorical:p,layout:c})))},{})},JY=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.layout,f=t.children,h=jc(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),p=h.length,y=hC(c,a),m=-1;return n.reduce(function(d,g){var _=g.type.defaultProps!==void 0?Y(Y({},g.type.defaultProps),g.props):g.props,b=_[o],x=PM("number");if(!d[b]){m++;var v;return y?v=hs(0,p):s&&s[b]&&s[b].hasStack?(v=dC(s[b].stackGroups,u,l),v=hv(f,v,b,a)):(v=Cy(x,fC(h,n.filter(function(w){var S,A,P=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],C="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return P===b&&!C}),"number",c),i.defaultProps.allowDataOverflow),v=hv(f,v,b,a)),Y(Y({},d),{},dt({},b,Y(Y({axisType:a},i.defaultProps),{},{hide:!0,orientation:Tr(KY,"".concat(a,".").concat(m%2),null),domain:v,originalDomain:x,isCategorical:y,layout:c})))}return d},{})},QY=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),h=tr(c,a),p={};return h&&h.length?p=ZY(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(p=JY(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),p},tX=function(t){var r=In(t),n=yn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:hc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:gl(r,n)}},sA=function(t){var r=t.children,n=t.defaultShowTooltip,i=ur(r,Ia),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},eX=function(t){return!t||!t.length?!1:t.some(function(r){var n=vn(r&&r.type);return n&&n.indexOf("Bar")>=0})},uA=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},rX=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,u=s===void 0?{}:s,l=n.width,c=n.height,f=n.children,h=n.margin||{},p=ur(f,Ia),y=ur(f,Si),m=Object.keys(u).reduce(function(v,w){var S=u[w],A=S.orientation;return!S.mirror&&!S.hide?Y(Y({},v),{},dt({},A,v[A]+S.width)):v},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(v,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?Y(Y({},v),{},dt({},A,Tr(v,"".concat(A))+S.height)):v},{top:h.top||0,bottom:h.bottom||0}),g=Y(Y({},d),m),_=g.bottom;p&&(g.bottom+=p.props.height||Ia.defaultProps.height),y&&r&&(g=NU(g,i,n,r));var b=l-g.left-g.right,x=c-g.top-g.bottom;return Y(Y({brushBottom:_},g),{},{width:Math.max(b,0),height:Math.max(x,0)})},nX=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},iX=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,u=t.axisComponents,l=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(g,_){var b=_.graphicalItems,x=_.stackGroups,v=_.offset,w=_.updateId,S=_.dataStartIndex,A=_.dataEndIndex,P=g.barSize,C=g.layout,T=g.barGap,E=g.barCategoryGap,k=g.maxBarSize,j=uA(C),$=j.numericAxisName,M=j.cateAxisName,I=eX(b),L=[];return b.forEach(function(q,R){var D=jc(g.data,{graphicalItems:[q],dataStartIndex:S,dataEndIndex:A}),B=q.type.defaultProps!==void 0?Y(Y({},q.type.defaultProps),q.props):q.props,U=B.dataKey,W=B.maxBarSize,X=B["".concat($,"Id")],Z=B["".concat(M,"Id")],Q={},K=u.reduce(function(ft,wt){var Et,Vt,Mt=_["".concat(wt.axisType,"Map")],Dt=B["".concat(wt.axisType,"Id")];Mt&&Mt[Dt]||wt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?Ye(!1,"Specifying a(n) ".concat(wt.axisType,"Id requires a corresponding ").concat(wt.axisType,"Id on the targeted graphical component ").concat((Et=q==null||(Vt=q.type)===null||Vt===void 0?void 0:Vt.displayName)!==null&&Et!==void 0?Et:"")):Ye());var Pe=Mt[Dt];return Y(Y({},ft),{},dt(dt({},wt.axisType,Pe),"".concat(wt.axisType,"Ticks"),yn(Pe)))},Q),F=K[M],G=K["".concat(M,"Ticks")],J=x&&x[X]&&x[X].hasStack&&ZU(q,x[X].stackGroups),N=vn(q.type).indexOf("Bar")>=0,ut=gl(F,G),H=[],st=I&&RU({barSize:P,stackGroups:x,totalSize:nX(K,M)});if(N){var ht,at,pt=yt(W)?k:W,Tt=(ht=(at=gl(F,G,!0))!==null&&at!==void 0?at:pt)!==null&&ht!==void 0?ht:0;H=IU({barGap:T,barCategoryGap:E,bandSize:Tt!==ut?Tt:ut,sizeList:st[Z],maxBarSize:pt}),Tt!==ut&&(H=H.map(function(ft){return Y(Y({},ft),{},{position:Y(Y({},ft.position),{},{offset:ft.position.offset-Tt/2})})}))}var it=q&&q.type&&q.type.getComposedData;it&&L.push({props:Y(Y({},it(Y(Y({},K),{},{displayedData:D,props:g,dataKey:U,item:q,bandSize:ut,barPosition:H,offset:v,stackedData:J,layout:C,dataStartIndex:S,dataEndIndex:A}))),{},dt(dt(dt({key:q.key||"item-".concat(R)},$,K[$]),M,K[M]),"animationId",w)),childIndex:ZF(q,g.children),item:q})}),L},p=function(g,_){var b=g.props,x=g.dataStartIndex,v=g.dataEndIndex,w=g.updateId;if(!Y1({props:b}))return null;var S=b.children,A=b.layout,P=b.stackOffset,C=b.data,T=b.reverseStackOrder,E=uA(A),k=E.numericAxisName,j=E.cateAxisName,$=tr(S,n),M=YU(C,$,"".concat(k,"Id"),"".concat(j,"Id"),P,T),I=u.reduce(function(B,U){var W="".concat(U.axisType,"Map");return Y(Y({},B),{},dt({},W,QY(b,Y(Y({},U),{},{graphicalItems:$,stackGroups:U.axisType===k&&M,dataStartIndex:x,dataEndIndex:v}))))},{}),L=rX(Y(Y({},I),{},{props:b,graphicalItems:$}),_==null?void 0:_.legendBBox);Object.keys(I).forEach(function(B){I[B]=c(b,I[B],L,B.replace("Map",""),r)});var q=I["".concat(j,"Map")],R=tX(q),D=h(b,Y(Y({},I),{},{dataStartIndex:x,dataEndIndex:v,updateId:w,graphicalItems:$,stackGroups:M,offset:L}));return Y(Y({formattedGraphicalItems:D,graphicalItems:$,offset:L,stackGroups:M},R),I)},y=(function(d){function g(_){var b,x,v;return IY(this,g),v=BY(this,g,[_]),dt(v,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),dt(v,"accessibilityManager",new wY),dt(v,"handleLegendBBoxUpdate",function(w){if(w){var S=v.state,A=S.dataStartIndex,P=S.dataEndIndex,C=S.updateId;v.setState(Y({legendBBox:w},p({props:v.props,dataStartIndex:A,dataEndIndex:P,updateId:C},Y(Y({},v.state),{},{legendBBox:w}))))}}),dt(v,"handleReceiveSyncEvent",function(w,S,A){if(v.props.syncId===w){if(A===v.eventEmitterSymbol&&typeof v.props.syncMethod!="function")return;v.applySyncEvent(S)}}),dt(v,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==v.state.dataStartIndex||A!==v.state.dataEndIndex){var P=v.state.updateId;v.setState(function(){return Y({dataStartIndex:S,dataEndIndex:A},p({props:v.props,dataStartIndex:S,dataEndIndex:A,updateId:P},v.state))}),v.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),dt(v,"handleMouseEnter",function(w){var S=v.getMouseInfo(w);if(S){var A=Y(Y({},S),{},{isTooltipActive:!0});v.setState(A),v.triggerSyncEvent(A);var P=v.props.onMouseEnter;gt(P)&&P(A,w)}}),dt(v,"triggeredAfterMouseMove",function(w){var S=v.getMouseInfo(w),A=S?Y(Y({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};v.setState(A),v.triggerSyncEvent(A);var P=v.props.onMouseMove;gt(P)&&P(A,w)}),dt(v,"handleItemMouseEnter",function(w){v.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),dt(v,"handleItemMouseLeave",function(){v.setState(function(){return{isTooltipActive:!1}})}),dt(v,"handleMouseMove",function(w){w.persist(),v.throttleTriggeredAfterMouseMove(w)}),dt(v,"handleMouseLeave",function(w){v.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};v.setState(S),v.triggerSyncEvent(S);var A=v.props.onMouseLeave;gt(A)&&A(S,w)}),dt(v,"handleOuterEvent",function(w){var S=VF(w),A=Tr(v.props,"".concat(S));if(S&&gt(A)){var P,C;/.*touch.*/i.test(S)?C=v.getMouseInfo(w.changedTouches[0]):C=v.getMouseInfo(w),A((P=C)!==null&&P!==void 0?P:{},w)}}),dt(v,"handleClick",function(w){var S=v.getMouseInfo(w);if(S){var A=Y(Y({},S),{},{isTooltipActive:!0});v.setState(A),v.triggerSyncEvent(A);var P=v.props.onClick;gt(P)&&P(A,w)}}),dt(v,"handleMouseDown",function(w){var S=v.props.onMouseDown;if(gt(S)){var A=v.getMouseInfo(w);S(A,w)}}),dt(v,"handleMouseUp",function(w){var S=v.props.onMouseUp;if(gt(S)){var A=v.getMouseInfo(w);S(A,w)}}),dt(v,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),dt(v,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseDown(w.changedTouches[0])}),dt(v,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseUp(w.changedTouches[0])}),dt(v,"handleDoubleClick",function(w){var S=v.props.onDoubleClick;if(gt(S)){var A=v.getMouseInfo(w);S(A,w)}}),dt(v,"handleContextMenu",function(w){var S=v.props.onContextMenu;if(gt(S)){var A=v.getMouseInfo(w);S(A,w)}}),dt(v,"triggerSyncEvent",function(w){v.props.syncId!==void 0&&pm.emit(dm,v.props.syncId,w,v.eventEmitterSymbol)}),dt(v,"applySyncEvent",function(w){var S=v.props,A=S.layout,P=S.syncMethod,C=v.state.updateId,T=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)v.setState(Y({dataStartIndex:T,dataEndIndex:E},p({props:v.props,dataStartIndex:T,dataEndIndex:E,updateId:C},v.state)));else if(w.activeTooltipIndex!==void 0){var k=w.chartX,j=w.chartY,$=w.activeTooltipIndex,M=v.state,I=M.offset,L=M.tooltipTicks;if(!I)return;if(typeof P=="function")$=P(L,w);else if(P==="value"){$=-1;for(var q=0;q<L.length;q++)if(L[q].value===w.activeLabel){$=q;break}}var R=Y(Y({},I),{},{x:I.left,y:I.top}),D=Math.min(k,R.x+R.width),B=Math.min(j,R.y+R.height),U=L[$]&&L[$].value,W=mv(v.state,v.props.data,$),X=L[$]?{x:A==="horizontal"?L[$].coordinate:D,y:A==="horizontal"?B:L[$].coordinate}:AM;v.setState(Y(Y({},w),{},{activeLabel:U,activeCoordinate:X,activePayload:W,activeTooltipIndex:$}))}else v.setState(w)}),dt(v,"renderCursor",function(w){var S,A=v.state,P=A.isTooltipActive,C=A.activeCoordinate,T=A.activePayload,E=A.offset,k=A.activeTooltipIndex,j=A.tooltipAxisBandSize,$=v.getTooltipEventType(),M=(S=w.props.active)!==null&&S!==void 0?S:P,I=v.props.layout,L=w.key||"_recharts-cursor";return O.createElement(CY,{key:L,activeCoordinate:C,activePayload:T,activeTooltipIndex:k,chartName:r,element:w,isActive:M,layout:I,offset:E,tooltipAxisBandSize:j,tooltipEventType:$})}),dt(v,"renderPolarAxis",function(w,S,A){var P=Tr(w,"type.axisType"),C=Tr(v.state,"".concat(P,"Map")),T=w.type.defaultProps,E=T!==void 0?Y(Y({},T),w.props):w.props,k=C&&C[E["".concat(P,"Id")]];return O.cloneElement(w,Y(Y({},k),{},{className:At(P,k.className),key:w.key||"".concat(S,"-").concat(A),ticks:yn(k,!0)}))}),dt(v,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,P=S.polarAngles,C=S.polarRadius,T=v.state,E=T.radiusAxisMap,k=T.angleAxisMap,j=In(E),$=In(k),M=$.cx,I=$.cy,L=$.innerRadius,q=$.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(P)?P:yn($,!0).map(function(R){return R.coordinate}),polarRadius:Array.isArray(C)?C:yn(j,!0).map(function(R){return R.coordinate}),cx:M,cy:I,innerRadius:L,outerRadius:q,key:w.key||"polar-grid",radialLines:A})}),dt(v,"renderLegend",function(){var w=v.state.formattedGraphicalItems,S=v.props,A=S.children,P=S.width,C=S.height,T=v.props.margin||{},E=P-(T.left||0)-(T.right||0),k=lC({children:A,formattedGraphicalItems:w,legendWidth:E,legendContent:l});if(!k)return null;var j=k.item,$=iA(k,MY);return O.cloneElement(j,Y(Y({},$),{},{chartWidth:P,chartHeight:C,margin:T,onBBoxUpdate:v.handleLegendBBoxUpdate}))}),dt(v,"renderTooltip",function(){var w,S=v.props,A=S.children,P=S.accessibilityLayer,C=ur(A,Kr);if(!C)return null;var T=v.state,E=T.isTooltipActive,k=T.activeCoordinate,j=T.activePayload,$=T.activeLabel,M=T.offset,I=(w=C.props.active)!==null&&w!==void 0?w:E;return O.cloneElement(C,{viewBox:Y(Y({},M),{},{x:M.left,y:M.top}),active:I,label:$,payload:I?j:[],coordinate:k,accessibilityLayer:P})}),dt(v,"renderBrush",function(w){var S=v.props,A=S.margin,P=S.data,C=v.state,T=C.offset,E=C.dataStartIndex,k=C.dataEndIndex,j=C.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:gu(v.handleBrushChange,w.props.onChange),data:P,x:nt(w.props.x)?w.props.x:T.left,y:nt(w.props.y)?w.props.y:T.top+T.height+T.brushBottom-(A.bottom||0),width:nt(w.props.width)?w.props.width:T.width,startIndex:E,endIndex:k,updateId:"brush-".concat(j)})}),dt(v,"renderReferenceElement",function(w,S,A){if(!w)return null;var P=v,C=P.clipPathId,T=v.state,E=T.xAxisMap,k=T.yAxisMap,j=T.offset,$=w.type.defaultProps||{},M=w.props,I=M.xAxisId,L=I===void 0?$.xAxisId:I,q=M.yAxisId,R=q===void 0?$.yAxisId:q;return O.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:E[L],yAxis:k[R],viewBox:{x:j.left,y:j.top,width:j.width,height:j.height},clipPathId:C})}),dt(v,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,P=w.basePoint,C=w.childIndex,T=w.isRange,E=[],k=S.props.key,j=S.item.type.defaultProps!==void 0?Y(Y({},S.item.type.defaultProps),S.item.props):S.item.props,$=j.activeDot,M=j.dataKey,I=Y(Y({index:C,dataKey:M,cx:A.x,cy:A.y,r:4,fill:zg(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},vt($,!1)),ul($));return E.push(g.renderActiveDot($,I,"".concat(k,"-activePoint-").concat(C))),P?E.push(g.renderActiveDot($,Y(Y({},I),{},{cx:P.x,cy:P.y}),"".concat(k,"-basePoint-").concat(C))):T&&E.push(null),E}),dt(v,"renderGraphicChild",function(w,S,A){var P=v.filterFormatItem(w,S,A);if(!P)return null;var C=v.getTooltipEventType(),T=v.state,E=T.isTooltipActive,k=T.tooltipAxis,j=T.activeTooltipIndex,$=T.activeLabel,M=v.props.children,I=ur(M,Kr),L=P.props,q=L.points,R=L.isRange,D=L.baseLine,B=P.item.type.defaultProps!==void 0?Y(Y({},P.item.type.defaultProps),P.item.props):P.item.props,U=B.activeDot,W=B.hide,X=B.activeBar,Z=B.activeShape,Q=!!(!W&&E&&I&&(U||X||Z)),K={};C!=="axis"&&I&&I.props.trigger==="click"?K={onClick:gu(v.handleItemMouseEnter,w.props.onClick)}:C!=="axis"&&(K={onMouseLeave:gu(v.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:gu(v.handleItemMouseEnter,w.props.onMouseEnter)});var F=O.cloneElement(w,Y(Y({},P.props),K));function G(wt){return typeof k.dataKey=="function"?k.dataKey(wt.payload):null}if(Q)if(j>=0){var J,N;if(k.dataKey&&!k.allowDuplicatedCategory){var ut=typeof k.dataKey=="function"?G:"payload.".concat(k.dataKey.toString());J=sl(q,ut,$),N=R&&D&&sl(D,ut,$)}else J=q==null?void 0:q[j],N=R&&D&&D[j];if(Z||X){var H=w.props.activeIndex!==void 0?w.props.activeIndex:j;return[O.cloneElement(w,Y(Y(Y({},P.props),K),{},{activeIndex:H})),null,null]}if(!yt(J))return[F].concat(Va(v.renderActivePoints({item:P,activePoint:J,basePoint:N,childIndex:j,isRange:R})))}else{var st,ht=(st=v.getItemByXY(v.state.activeCoordinate))!==null&&st!==void 0?st:{graphicalItem:F},at=ht.graphicalItem,pt=at.item,Tt=pt===void 0?w:pt,it=at.childIndex,ft=Y(Y(Y({},P.props),K),{},{activeIndex:it});return[O.cloneElement(Tt,ft),null,null]}return R?[F,null,null]:[F,null]}),dt(v,"renderCustomized",function(w,S,A){return O.cloneElement(w,Y(Y({key:"recharts-customized-".concat(A)},v.props),v.state))}),dt(v,"renderMap",{CartesianGrid:{handler:Au,once:!0},ReferenceArea:{handler:v.renderReferenceElement},ReferenceLine:{handler:Au},ReferenceDot:{handler:v.renderReferenceElement},XAxis:{handler:Au},YAxis:{handler:Au},Brush:{handler:v.renderBrush,once:!0},Bar:{handler:v.renderGraphicChild},Line:{handler:v.renderGraphicChild},Area:{handler:v.renderGraphicChild},Radar:{handler:v.renderGraphicChild},RadialBar:{handler:v.renderGraphicChild},Scatter:{handler:v.renderGraphicChild},Pie:{handler:v.renderGraphicChild},Funnel:{handler:v.renderGraphicChild},Tooltip:{handler:v.renderCursor,once:!0},PolarGrid:{handler:v.renderPolarGrid,once:!0},PolarAngleAxis:{handler:v.renderPolarAxis},PolarRadiusAxis:{handler:v.renderPolarAxis},Customized:{handler:v.renderCustomized}}),v.clipPathId="".concat((b=_.id)!==null&&b!==void 0?b:zi("recharts"),"-clip"),v.throttleTriggeredAfterMouseMove=zE(v.triggeredAfterMouseMove,(x=_.throttleDelay)!==null&&x!==void 0?x:1e3/60),v.state={},v}return zY(g,d),LY(g,[{key:"componentDidMount",value:function(){var b,x;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,x=b.children,v=b.data,w=b.height,S=b.layout,A=ur(x,Kr);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,T=mv(this.state,v,P,C),E=this.state.tooltipTicks[P].coordinate,k=(this.state.offset.top+w)/2,j=S==="horizontal",$=j?{x:E,y:k}:{y:E,x:k},M=this.state.formattedGraphicalItems.find(function(L){var q=L.item;return q.type.name==="Scatter"});M&&($=Y(Y({},$),M.props.points[P].tooltipPosition),T=M.props.points[P].tooltipPayload);var I={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:C,activePayload:T,activeCoordinate:$};this.setState(I),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var v,w;this.accessibilityManager.setDetails({offset:{left:(v=this.props.margin.left)!==null&&v!==void 0?v:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){uy([ur(b.children,Kr)],[ur(this.props.children,Kr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=ur(this.props.children,Kr);if(b&&typeof b.props.shared=="boolean"){var x=b.props.shared?"axis":"item";return s.indexOf(x)>=0?x:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var x=this.container,v=x.getBoundingClientRect(),w=e3(v),S={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},A=v.width/x.offsetWidth||1,P=this.inRange(S.chartX,S.chartY,A);if(!P)return null;var C=this.state,T=C.xAxisMap,E=C.yAxisMap,k=this.getTooltipEventType(),j=oA(this.state,this.props.data,this.props.layout,P);if(k!=="axis"&&T&&E){var $=In(T).scale,M=In(E).scale,I=$&&$.invert?$.invert(S.chartX):null,L=M&&M.invert?M.invert(S.chartY):null;return Y(Y({},S),{},{xValue:I,yValue:L},j)}return j?Y(Y({},S),j):null}},{key:"inRange",value:function(b,x){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=b/v,A=x/v;if(w==="horizontal"||w==="vertical"){var P=this.state.offset,C=S>=P.left&&S<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return C?{x:S,y:A}:null}var T=this.state,E=T.angleAxisMap,k=T.radiusAxisMap;if(E&&k){var j=In(E);return dS({x:S,y:A},j)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,x=this.getTooltipEventType(),v=ur(b,Kr),w={};v&&x==="axis"&&(v.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=ul(this.props,this.handleOuterEvent);return Y(Y({},S),w)}},{key:"addListener",value:function(){pm.on(dm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pm.removeListener(dm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,x,v){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var P=w[S];if(P.item===b||P.props.key===b.key||x===vn(P.item.type)&&v===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,x=this.state.offset,v=x.left,w=x.top,S=x.height,A=x.width;return O.createElement("defs",null,O.createElement("clipPath",{id:b},O.createElement("rect",{x:v,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(x,v){var w=nA(v,2),S=w[0],A=w[1];return Y(Y({},x),{},dt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(x,v){var w=nA(v,2),S=w[0],A=w[1];return Y(Y({},x),{},dt({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var x;return(x=this.state.xAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getYScaleByAxisId",value:function(b){var x;return(x=this.state.yAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getItemByXY",value:function(b){var x=this.state,v=x.formattedGraphicalItems,w=x.activeItem;if(v&&v.length)for(var S=0,A=v.length;S<A;S++){var P=v[S],C=P.props,T=P.item,E=T.type.defaultProps!==void 0?Y(Y({},T.type.defaultProps),T.props):T.props,k=vn(T.type);if(k==="Bar"){var j=(C.data||[]).find(function(L){return KG(b,L)});if(j)return{graphicalItem:P,payload:j}}else if(k==="RadialBar"){var $=(C.data||[]).find(function(L){return dS(b,L)});if($)return{graphicalItem:P,payload:$}}else if(_c(P,w)||xc(P,w)||Ns(P,w)){var M=I6({graphicalItem:P,activeTooltipItem:w,itemData:E.data}),I=E.activeIndex===void 0?M:E.activeIndex;return{graphicalItem:Y(Y({},P),{},{childIndex:I}),payload:Ns(P,w)?E.data[M]:P.props.data[M]}}}return null}},{key:"render",value:function(){var b=this;if(!Y1(this))return null;var x=this.props,v=x.children,w=x.className,S=x.width,A=x.height,P=x.style,C=x.compact,T=x.title,E=x.desc,k=iA(x,kY),j=vt(k,!1);if(C)return O.createElement(DO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(cy,aa({},j,{width:S,height:A,title:T,desc:E}),this.renderClipPath(),V1(v,this.renderMap)));if(this.props.accessibilityLayer){var $,M;j.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,j.role=(M=this.props.role)!==null&&M!==void 0?M:"application",j.onKeyDown=function(L){b.accessibilityManager.keyboardEvent(L)},j.onFocus=function(){b.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return O.createElement(DO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",aa({className:At("recharts-wrapper",w),style:Y({position:"relative",cursor:"default",width:S,height:A},P)},I,{ref:function(q){b.container=q}}),O.createElement(cy,aa({},j,{width:S,height:A,title:T,desc:E,style:YY}),this.renderClipPath(),V1(v,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);dt(y,"displayName",r),dt(y,"defaultProps",Y({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),dt(y,"getDerivedStateFromProps",function(d,g){var _=d.dataKey,b=d.data,x=d.children,v=d.width,w=d.height,S=d.layout,A=d.stackOffset,P=d.margin,C=g.dataStartIndex,T=g.dataEndIndex;if(g.updateId===void 0){var E=sA(d);return Y(Y(Y({},E),{},{updateId:0},p(Y(Y({props:d},E),{},{updateId:0}),g)),{},{prevDataKey:_,prevData:b,prevWidth:v,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:P,prevChildren:x})}if(_!==g.prevDataKey||b!==g.prevData||v!==g.prevWidth||w!==g.prevHeight||S!==g.prevLayout||A!==g.prevStackOffset||!da(P,g.prevMargin)){var k=sA(d),j={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},$=Y(Y({},oA(g,b,S)),{},{updateId:g.updateId+1}),M=Y(Y(Y({},k),j),$);return Y(Y(Y({},M),p(Y({props:d},M),g)),{},{prevDataKey:_,prevData:b,prevWidth:v,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:P,prevChildren:x})}if(!uy(x,g.prevChildren)){var I,L,q,R,D=ur(x,Ia),B=D&&(I=(L=D.props)===null||L===void 0?void 0:L.startIndex)!==null&&I!==void 0?I:C,U=D&&(q=(R=D.props)===null||R===void 0?void 0:R.endIndex)!==null&&q!==void 0?q:T,W=B!==C||U!==T,X=!yt(b),Z=X&&!W?g.updateId:g.updateId+1;return Y(Y({updateId:Z},p(Y(Y({props:d},g),{},{updateId:Z,dataStartIndex:B,dataEndIndex:U}),g)),{},{prevChildren:x,dataStartIndex:B,dataEndIndex:U})}return null}),dt(y,"renderActiveDot",function(d,g,_){var b;return O.isValidElement(d)?b=O.cloneElement(d,g):gt(d)?b=d(g):b=O.createElement(bc,g),O.createElement(jt,{className:"recharts-active-dot",key:_},b)});var m=O.forwardRef(function(g,_){return O.createElement(y,aa({},g,{ref:_}))});return m.displayName=y.displayName,m},aX=iX({chartName:"ComposedChart",GraphicalChild:[Ec,ei,oo,Mc],axisComponents:[{axisType:"xAxis",AxisComp:kc},{axisType:"yAxis",AxisComp:$c},{axisType:"zAxis",AxisComp:Cc}],formatAxisMap:EH});const Po=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},oX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),sX=e=>new Intl.NumberFormat("en-US").format(e);function uX(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return Po()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&Po()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return Po()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(Po()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(Po()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:u}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],p=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),l=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||oX,[n]),f=O.useMemo(()=>i||sX,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:u,maxTotalValue:l,dateFormatter:c,valueFormatter:f}}function lX(e,t){const r=t-1-e,n=Bo.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return Bo[a]??Bo[0]??"#000000"}function cX(e){return Array.from({length:e},(t,r)=>lX(r,e))}const ta=cX(5),fn={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:Qe.neoDigitalGreen[600],inProgress:"#007bff",farthest:ta[0],far:ta[1],close:ta[2],closest:ta[3],completed:ta[4],primary:"#007bff",secondary:"#6c757d",success:Qe.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:Qe.neoGrey[200],dark:"#343a40"},Ct={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:Qe.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:Qe.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},fX={migration:ta,severity:[fn.critical,fn.high,fn.medium,fn.low,fn.info],status:[fn.danger,fn.warning,fn.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},hX={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},pX=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=Ct.display.showHeader,height:o=Ct.dimensions.height,width:s=Ct.dimensions.width,showLegend:u=Ct.display.showLegend,showTooltip:l=Ct.display.showTooltip,showXAxis:c=Ct.display.showXAxis,showYAxis:f=Ct.display.showYAxis,showGrid:h=Ct.display.showGrid,enableAnimation:p=Ct.animation.enabled,animationDuration:y=Ct.animation.duration,animationEasing:m=Ct.animation.easing,formatDate:d,formatValue:g,tooltipFormatter:_,slotProps:b,margin:x=Ct.margin,curveType:v=Ct.curve.type,stackOffset:w=Ct.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:P=!1,zoomToSelection:C=!1})=>{const{processedData:T,processedCategories:E,dateFormatter:k,valueFormatter:j}=uX({data:e,categories:t,formatDate:d,formatValue:g}),[$,M]=O.useState(null),[I,L]=O.useState(!1),[q,R]=O.useState(null),[D,B]=O.useState(null),U=O.useRef(null),W=S?[S[0],S[1]]:["dataMin","dataMax"],X=T.length>0?T[0].timestamp:0,Z=T.length>0?T[T.length-1].timestamp:0,Q=O.useCallback((it,ft)=>{const wt=it/ft*100,Et=Z-X;return X+wt/100*Et},[X,Z]),K=O.useCallback(it=>{const ft=Z-X;return ft===0?0:(it-X)/ft*100},[X,Z]),F=O.useCallback(it=>{if(!P)return;const ft=it.currentTarget.getBoundingClientRect(),wt=it.clientX-ft.left,Et=Q(wt,ft.width);L(!0),R(Et),B(Et)},[P,Q]),G=O.useCallback(it=>{if(!U.current)return;const ft=it.currentTarget.getBoundingClientRect(),wt=it.clientX-ft.left,Et=ft.width,Vt=Q(wt,Et);if(I)q!==null&&B(Vt);else{const Dt=r.find(Pe=>Math.abs(Pe.timestamp-Vt)<2592e5);M((Dt==null?void 0:Dt.timestamp)??null)}},[I,q,Q,r]),J=O.useCallback(()=>{if(I&&q!==null&&D!==null&&A){const it=Math.min(q,D),ft=Math.max(q,D);it!==ft&&A([it,ft])}L(!1),R(null),B(null)},[I,q,D,A]),N=O.useCallback(()=>{J(),M(null)},[J]),H=(C?I:!0)&&I&&q!==null&&D!==null?{left:K(Math.min(q,D)),width:Math.abs(K(D)-K(q))}:null,ht=(S?T.filter(it=>it.timestamp>=S[0]&&it.timestamp<=S[1]):T).slice().reverse().map(it=>{const ft=r.find(wt=>wt.timestamp===it.timestamp);return ft&&ft.label?{...it,__markerLabel:ft.label}:it}),at=it=>k(it),pt=it=>j(it),Tt=({active:it,payload:ft,label:wt})=>{if(!it||!ft||ft.length===0)return null;const Et=ht.find(Mt=>Mt.timestamp===wt);if(Et&&"__markerLabel"in Et){const Dt=String(Et.__markerLabel).split(" - "),Pe=Dt[0]||"",Cn=Dt[1]||"";return z.jsxs(V.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[z.jsx(V.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Cn}),z.jsx(V.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:Pe})]})}return z.jsxs(V.Box,{sx:{backgroundColor:Ct.tooltip.backgroundColor,border:`${Ct.tooltip.borderWidth}px solid ${Ct.tooltip.borderColor}`,borderRadius:Ct.tooltip.borderRadius,padding:Ct.tooltip.padding},children:[z.jsx(V.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:k(wt)}),ft.map((Mt,Dt)=>z.jsxs(V.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[z.jsx(V.Box,{sx:{width:10,height:10,backgroundColor:Mt.color,borderRadius:"2px"}}),z.jsxs(V.Typography,{sx:{fontSize:"14px"},children:[Mt.name,": ",j(Mt.value)]})]},`item-${Dt}`))]})};return z.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&z.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&z.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&z.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),z.jsxs(V.Box,{ref:U,sx:{width:"100%",height:`${o}px`,minHeight:Ct.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[z.jsx(Y5,{width:s,height:"100%",children:z.jsxs(aX,{data:ht,margin:x,stackOffset:w,children:[h&&z.jsx(rM,{strokeDasharray:"3 3",stroke:Ct.axis.strokeColor,opacity:.3}),c&&z.jsx(kc,{dataKey:"timestamp",type:"number",domain:W,tickFormatter:at,stroke:Ct.axis.strokeColor,tick:{fill:Ct.axis.tickColor},scale:"time"}),f&&z.jsx($c,{tickFormatter:pt,stroke:Ct.axis.strokeColor,tick:{fill:Ct.axis.tickColor}}),l&&z.jsx(Kr,{content:z.jsx(Tt,{})}),u&&z.jsx(Si,{iconSize:Ct.legend.iconSize,iconType:Ct.legend.iconType,layout:Ct.legend.layout,align:Ct.legend.align,verticalAlign:Ct.legend.verticalAlign}),E.map((it,ft)=>z.jsx(ei,{type:v,dataKey:it.dataKey,name:it.label,stackId:"1",stroke:it.color,fill:it.strokeDasharray?"transparent":it.color,fillOpacity:it.strokeDasharray?0:it.fillOpacity??.7,strokeWidth:it.strokeWidth??2,strokeDasharray:it.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-ft)*100:0},it.dataKey)),r.filter(it=>$===null||it.timestamp===$).map((it,ft)=>z.jsx(Sc,{x:it.timestamp,stroke:it.color??Ct.marker.strokeColor,strokeWidth:it.strokeWidth??Ct.marker.strokeWidth,strokeDasharray:it.strokeDasharray??Ct.marker.strokeDasharray,strokeOpacity:$===null?0:1},`marker-${it.timestamp}-${ft}`))]},S?`${S[0]}-${S[1]}`:"default")}),P&&z.jsxs(V.Box,{sx:{position:"absolute",top:x.top||0,left:x.left||0,right:x.right||0,bottom:x.bottom||0,cursor:I?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:F,onMouseMove:G,onMouseUp:J,onMouseLeave:N,children:[H&&z.jsx(V.Box,{sx:{position:"absolute",left:`${H.left}%`,width:`${H.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),$&&z.jsx(z.Fragment,{children:r.filter(it=>it.timestamp===$).map(it=>z.jsx(V.Box,{sx:{position:"absolute",left:`${K(it.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:it.label||k(it.timestamp)},`tooltip-${it.timestamp}`))})]})]})]})},Gr={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(229, 231, 235, 0.5)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},$r={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:Gr.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${Gr.dimensions.height}px`,backgroundColor:Gr.colors.background,borderRadius:0,overflow:"hidden",border:`1px solid ${Gr.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${Gr.dimensions.eventWidth}px`,height:"100%",backgroundColor:Gr.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:Gr.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${Gr.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:Gr.colors.tooltipText,fontSize:"11px"}}},dX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},mX=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{dX()&&e.length>1&&(e.every((q,R)=>R===0||q.timestamp>=e[R-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,u]=O.useState(!1),[l,c]=O.useState(null),[f,h]=O.useState({start:null,end:null}),[p,y]=O.useState({start:null,end:null}),[m,d]=O.useState(null),g=t??f,_=a??p,b=O.useMemo(()=>{var L;return e.length>0?((L=e[0])==null?void 0:L.timestamp)??0:0},[e]),x=O.useMemo(()=>{var L;return e.length>0?((L=e[e.length-1])==null?void 0:L.timestamp)??0:0},[e]),v=O.useMemo(()=>i&&_.start&&_.end?_.start:b,[i,_,b]),w=O.useMemo(()=>i&&_.start&&_.end?_.end:x,[i,_,x]),S=O.useMemo(()=>w-v,[w,v]),A=O.useCallback(L=>S===0?0:(L-v)/S*100,[v,S]),P=O.useCallback((L,q)=>{const R=L/q*100;return v+R/100*S},[v,S]),C=O.useCallback(L=>{t===void 0&&h(L),r==null||r(L)},[t,r]),T=O.useCallback(L=>{const q=L.currentTarget.getBoundingClientRect(),R=L.clientX-q.left,D=P(R,q.width);u(!0),c(D),C({start:D,end:D})},[P,C]),E=O.useCallback(L=>{if(!s||l===null)return;const q=L.currentTarget.getBoundingClientRect(),R=L.clientX-q.left,D=P(R,q.width);C({start:Math.min(l,D),end:Math.max(l,D)})},[s,l,P,C]),k=O.useCallback(()=>{const L=s;if(u(!1),L&&i&&g.start&&g.end&&g.start!==g.end){const q={start:g.start,end:g.end};a===void 0&&y(q),o==null||o(q)}},[s,i,g,a,o]),j=O.useCallback(L=>{if(L.cancelable&&n&&L.preventDefault(),!n||!g.start||!g.end||S===0)return;const q=(g.start+g.end)/2,R=g.end-g.start,D=L.deltaY>0?1.1:.9,B=Math.max(R*D,S*.01),U=S*1.5,W=Math.min(B,U);let X=q-W/2,Z=q+W/2;X<v&&(X=v,Z=Math.min(v+W,w)),Z>w&&(Z=w,X=Math.max(w-W,v)),C({start:X,end:Z})},[n,g,S,v,w,C]),$=O.useCallback(()=>!g.start||!g.end?[]:e.filter(L=>L.timestamp>=g.start&&L.timestamp<=g.end),[e,g]),M=O.useCallback(()=>{const L={start:b,end:x};a===void 0&&y({start:null,end:null}),o==null||o(L)},[b,x,a,o]),I=O.useCallback(()=>{i&&M()},[i,M]);return{isDragging:s,dragStart:l,internalSelectedRange:g,internalVisibleRange:_,hoveredEvent:m,minDate:v,maxDate:w,timeSpan:S,getPositionFromTimestamp:A,getTimestampFromPosition:P,handleMouseDown:T,handleMouseMove:E,handleMouseUp:k,handleWheel:j,handleDoubleClick:I,setHoveredEvent:d,getEventsInRange:$,resetZoom:M}},yX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),vX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),gX=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},bX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},_X=e=>({header:{...$r.header,...e==null?void 0:e.header},title:{...$r.title,...e==null?void 0:e.title},instructions:{...$r.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...$r.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...$r.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...$r.timeline,...e==null?void 0:e.timeline},event:{...$r.event,...e==null?void 0:e.event},selection:{...$r.selection,...e==null?void 0:e.selection},tooltip:{...$r.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...$r.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...$r.tooltipDate,...e==null?void 0:e.tooltipDate}}),xX=({events:e,onSelectionChange:t,selectedRange:r,height:n=Gr.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=yX,formatMonthYear:o=vX,showMonthLabels:s=!0,monthLabelCount:u=6,enableZoom:l=!0,showHeader:c=!0,title:f="Event Timeline Selector",zoomToSelection:h=!1,visibleRange:p,onVisibleRangeChange:y,timeRange:m,onTimeRangeChange:d,slotProps:g})=>{const _=m?{start:m[0],end:m[1]}:p,b=d?q=>{q.start!==null&&q.end!==null&&d([q.start,q.end])}:y;bX()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const x=O.useMemo(()=>_X(g),[g]),{isDragging:v,internalSelectedRange:w,hoveredEvent:S,minDate:A,timeSpan:P,getPositionFromTimestamp:C,handleMouseDown:T,handleMouseMove:E,handleMouseUp:k,handleWheel:j,handleDoubleClick:$,setHoveredEvent:M,getEventsInRange:I}=mX({events:e,selectedRange:r,onSelectionChange:t,enableZoom:l,zoomToSelection:h,visibleRange:_,onVisibleRangeChange:b}),L=w.start&&w.end?`Selected: ${a(w.start)} - ${a(w.end)} (${I().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return z.jsxs(V.Stack,{sx:{width:"100%"},children:[c&&z.jsxs(V.Stack,{spacing:1,sx:{mb:3},...x.header,children:[z.jsx(V.Typography,{variant:"h5",...x.title,children:f}),z.jsx(V.Typography,{variant:"body2",...x.instructions,children:L})]}),s&&z.jsx(V.Stack,{direction:"row",...x.monthLabelsContainer,sx:{...x.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:u},(q,R)=>{const D=A+P/(u-1)*R,B=gX(P);return z.jsx(V.Typography,{variant:"caption",...x.monthLabel,children:B(D)},R)})}),z.jsxs(V.Box,{...x.timeline,sx:{...x.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[z.jsx(V.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((q,R)=>{const D=C(q.timestamp);return z.jsx(V.Box,{onMouseEnter:()=>M(q),onMouseLeave:()=>M(null),"aria-label":`Event: ${q.eventName} at ${a(q.timestamp)}`,...x.event,sx:{...x.event.sx,left:`${D}%`,transform:(S==null?void 0:S.timestamp)===q.timestamp?"scaleX(2)":"scaleX(1)"}},`${q.timestamp}-${R}`)})}),w.start&&w.end&&(!h||v)&&z.jsx(V.Box,{...x.selection,sx:{...x.selection.sx,left:`${C(w.start)}%`,width:`${C(w.end)-C(w.start)}%`}}),z.jsx(V.Box,{role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":c?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair"},onMouseDown:T,onMouseMove:E,onMouseUp:k,onMouseLeave:k,onWheel:j,onDoubleClick:$}),!c&&z.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:L}),S&&z.jsxs(V.Box,{role:"tooltip","aria-live":"polite",...x.tooltip,sx:{...x.tooltip.sx,left:`${C(S.timestamp)}%`,transform:"translateX(-50%)"},children:[z.jsx(V.Typography,{variant:"body2",...x.tooltipEventName,children:S.eventName}),z.jsx(V.Typography,{variant:"caption",...x.tooltipDate,children:a(S.timestamp)})]})]})]})},wX="#8b5cf6",SX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),OX=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=SX,primaryColor:i=wX})=>e.length===0?null:z.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[z.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),z.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>z.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[z.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),z.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=Uo;exports.CAMPAIGN_NOT_APPLICABLE=Fo;exports.CAMPAIGN_NO_LST=zo;exports.CATEGORY_LABELS=hX;exports.ChronoChart=HT;exports.ChronoPerspectiveChart=HT;exports.D3StackedAreaChart=JN;exports.DEFAULT_CHART_COLORS=Qe;exports.DEFAULT_CHART_CONFIG=Fe;exports.DEFAULT_STACKED_AREA_COLORS=fn;exports.DEFAULT_STACKED_AREA_CONFIG=Ct;exports.MEASURE_GRADIENT_COLORS=Bo;exports.MODERNE_VULNERABILITY_COLORS=pa;exports.MorphChart=kT;exports.ParliamentChart=_F;exports.STACKED_AREA_PALETTES=fX;exports.StackedAreaChart=pX;exports.TimelineChart=xX;exports.TimelineSelectedEvents=OX;exports.calculateDataSeries=PE;exports.calculateOptimalArcAngle=dg;exports.calculateOptimalSeatSize=mg;
152
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n-l*y,",").concat(r+i,`
153
+ L `).concat(t+l*y,",").concat(r+i,`
154
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},T6=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=h}return!1},P6={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},T0=function(t){var r=IA(IA({},P6),t),n=O.useRef(),i=O.useState(-1),a=v6(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var b=Pt("recharts-rectangle",p);return w?O.createElement(sn,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:m,animationEasing:y,isActive:w},function(_){var g=_.width,x=_.height,S=_.x,A=_.y;return O.createElement(sn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:v,easing:y},O.createElement("path",ec({},vt(r,!0),{className:b,d:NA(S,A,g,x,h),ref:n})))}):O.createElement("path",ec({},vt(r,!0),{className:b,d:NA(l,u,c,f,h)}))};function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Og.apply(this,arguments)}var Xc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Pt("recharts-dot",a);return r===+r&&n===+n&&i===+i?zr.createElement("circle",Og({},vt(t,!1),Lu(t),{className:o,cx:r,cy:n,r:i})):null};function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}var E6=["x","y","top","left","width","height","className"];function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tg.apply(this,arguments)}function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(r),!0).forEach(function(n){M6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M6(e,t,r){return t=k6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k6(e){var t=$6(e,"string");return cl(t)=="symbol"?t:t+""}function $6(e,t){if(cl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j6(e,t){if(e==null)return{};var r=R6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var D6=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},I6=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=j6(t,E6),d=C6({x:n,y:a,top:s,left:u,width:f,height:p},m);return!it(n)||!it(a)||!it(f)||!it(p)||!it(s)||!it(u)?null:O.createElement("path",Tg({},vt(d,!0),{className:Pt("recharts-cross",y),d:D6(n,a,f,p,s,u)}))},jm,BA;function N6(){if(BA)return jm;BA=1;var e=YE(),t=e(Object.getPrototypeOf,Object);return jm=t,jm}var Rm,qA;function L6(){if(qA)return Rm;qA=1;var e=Vn(),t=N6(),r=Zn(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==l}return Rm=u,Rm}var B6=L6();const q6=zt(B6);var Dm,FA;function F6(){if(FA)return Dm;FA=1;var e=Vn(),t=Zn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Dm=n,Dm}var z6=F6();const U6=zt(z6);function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}function W6(e,t){return Y6(e)||K6(e,t)||G6(e,t)||H6()}function H6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
155
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G6(e,t){if(e){if(typeof e=="string")return zA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zA(e,t)}}function zA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Y6(e){if(Array.isArray(e))return e}function UA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){X6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X6(e,t,r){return t=V6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V6(e){var t=Z6(e,"string");return fl(t)=="symbol"?t:t+""}function Z6(e,t){if(fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HA=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},J6={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Q6=function(t){var r=WA(WA({},J6),t),n=O.useRef(),i=O.useState(-1),a=W6(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var w=Pt("recharts-trapezoid",p);return v?O.createElement(sn,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:h,x:l,y:u},duration:m,animationEasing:y,isActive:v},function(b){var _=b.upperWidth,g=b.lowerWidth,x=b.height,S=b.x,A=b.y;return O.createElement(sn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},O.createElement("path",rc({},vt(r,!0),{className:w,d:HA(S,A,_,g,x),ref:n})))}):O.createElement("g",null,O.createElement("path",rc({},vt(r,!0),{className:w,d:HA(l,u,c,f,h)})))},tG=["option","shapeType","propTransformer","activeClassName","isActive"];function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function eG(e,t){if(e==null)return{};var r=rG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(r),!0).forEach(function(n){nG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nG(e,t,r){return t=iG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iG(e){var t=aG(e,"string");return hl(t)=="symbol"?t:t+""}function aG(e,t){if(hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oG(e,t){return nc(nc({},t),e)}function sG(e,t){return e==="symbols"}function KA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(T0,r);case"trapezoid":return O.createElement(Q6,r);case"sector":return O.createElement(QC,r);case"symbols":if(sG(t))return O.createElement(Wc,r);break;default:return null}}function lG(e){return O.isValidElement(e)?e.props:e}function Pg(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?oG:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=eG(e,tG),u;if(O.isValidElement(t))u=O.cloneElement(t,nc(nc({},l),lG(t)));else if(bt(t))u=t(l);else if(q6(t)&&!U6(t)){var c=i(t,l);u=O.createElement(KA,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(KA,{shapeType:r,elementProps:f})}return s?O.createElement(It,{className:o},u):u}function Vc(e,t){return t!=null&&"trapezoids"in e.props}function Zc(e,t){return t!=null&&"sectors"in e.props}function pl(e,t){return t!=null&&"points"in e.props}function uG(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function cG(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function fG(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function hG(e,t){var r;return Vc(e,t)?r=uG:Zc(e,t)?r=cG:pl(e,t)&&(r=fG),r}function pG(e,t){var r;return Vc(e,t)?r="trapezoids":Zc(e,t)?r="sectors":pl(e,t)&&(r="points"),r}function dG(e,t){if(Vc(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Zc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return pl(e,t)?t.payload:{}}function mG(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=pG(r,t),a=dG(r,t),o=n.filter(function(l,u){var c=la(a,l),f=r.props[i].filter(function(y){var m=hG(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=u===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function YA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(r),!0).forEach(function(n){uM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uM(e,t,r){return t=yG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yG(e){var t=gG(e,"string");return dl(t)=="symbol"?t:t+""}function gG(e,t){if(dl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vG=["Webkit","Moz","O","ms"],bG=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=vG.reduce(function(a,o){return XA(XA({},a),{},uM({},o+n,r))},{});return i[t]=r,i};function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(this,arguments)}function VA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(r),!0).forEach(function(n){br(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fM(n.key),n)}}function xG(e,t,r){return t&&ZA(e.prototype,t),r&&ZA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wG(e,t,r){return t=ac(t),SG(e,cM()?Reflect.construct(t,r||[],ac(e).constructor):t.apply(e,r))}function SG(e,t){if(t&&(co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AG(e)}function AG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cM=function(){return!!e})()}function ac(e){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ac(e)}function OG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eg(e,t)}function Eg(e,t){return Eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Eg(e,t)}function br(e,t,r){return t=fM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e){var t=TG(e,"string");return co(t)=="symbol"?t:t+""}function TG(e,t){if(co(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(co(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PG=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=cs().domain(zs(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},JA=function(t){return t.changedTouches&&!!t.changedTouches.length},fo=(function(e){function t(r){var n;return _G(this,t),n=wG(this,t,[r]),br(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),br(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),br(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),br(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),br(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),br(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),br(n,"handleSlideDragStart",function(i){var a=JA(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return OG(t,e),xG(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:y===c?c:y-y%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=we(a[n],s,n);return bt(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,h=l.startIndex,p=l.endIndex,y=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,u+c-f-s,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=JA(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,v={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,f+h-p-u):w<0&&(w=Math.max(w,f-u)),v[o]=u+w;var b=this.getIndex(v),_=b.startIndex,g=b.endIndex,x=function(){var A=d.length-1;return o==="startX"&&(s>l?_%m===0:g%m===0)||s<l&&g===A||o==="endX"&&(s>l?g%m===0:_%m===0)||s>l&&g===A};this.setState(br(br({},o,u+w),"brushMoveStartX",n.pageX),function(){y&&x()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(br({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return O.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,h=l.traveller,p=l.ariaLabel,y=l.data,m=l.startIndex,d=l.endIndex,v=Math.max(n,this.props.x),w=Im(Im({},vt(this.props,!1)),{},{x:v,y:u,width:c,height:f}),b=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return O.createElement(It,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),s.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,w))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,h=c.endX,p=5,y={pointerEvents:"none",fill:u};return O.createElement(It,{className:"recharts-brush-texts"},O.createElement(Wu,ic({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Wu,ic({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,v=h.isTravellerMoving,w=h.isTravellerFocused;if(!i||!i.length||!it(s)||!it(l)||!it(u)||!it(c)||u<=0||c<=0)return null;var b=Pt("recharts-brush",a),_=O.Children.count(o)===1,g=bG("userSelect","none");return O.createElement(It,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||d||v||w||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),O.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):bt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Im({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?PG({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(O.PureComponent);br(fo,"displayName","Brush");br(fo,"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 Nm,QA;function EG(){if(QA)return Nm;QA=1;var e=y0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Nm=t,Nm}var Lm,tO;function CG(){if(tO)return Lm;tO=1;var e=zE(),t=wi(),r=EG(),n=Ve(),i=Cl();function a(o,s,l){var u=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),u(o,t(s,3))}return Lm=a,Lm}var MG=CG();const kG=zt(MG);var An=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Bm,eO;function $G(){if(eO)return Bm;eO=1;var e=eC();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Bm=t,Bm}var qm,rO;function jG(){if(rO)return qm;rO=1;var e=$G(),t=QE(),r=wi();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return qm=n,qm}var RG=jG();const DG=zt(RG);var Fm,nO;function IG(){if(nO)return Fm;nO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Fm=e,Fm}var zm,iO;function NG(){if(iO)return zm;iO=1;var e=y0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return zm=t,zm}var Um,aO;function LG(){if(aO)return Um;aO=1;var e=IG(),t=NG(),r=wi(),n=Ve(),i=Cl();function a(o,s,l){var u=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),u(o,r(s,3))}return Um=a,Um}var BG=LG();const hM=zt(BG);var qG=["x","y"];function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cg.apply(this,arguments)}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){FG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FG(e,t,r){return t=zG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zG(e){var t=UG(e,"string");return ho(t)=="symbol"?t:t+""}function UG(e,t){if(ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ho(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WG(e,t){if(e==null)return{};var r=HG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GG(e,t){var r=e.x,n=e.y,i=WG(e,qG),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),h=parseInt(f,10);return ts(ts(ts(ts(ts({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function sO(e){return O.createElement(Pg,Cg({shapeType:"rectangle",propTransformer:GG,activeClassName:"recharts-active-bar"},e))}var KG=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=it(n)||m5(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?nr(!1,"minPointSize callback function received a value with type of ".concat(ho(n),". Currently only numbers or null/undefined are supported.")):nr()),r)}},YG=["value","background"],pM;function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function XG(e,t){if(e==null)return{};var r=VG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oc.apply(this,arguments)}function lO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(r),!0).forEach(function(n){fi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mM(n.key),n)}}function JG(e,t,r){return t&&uO(e.prototype,t),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QG(e,t,r){return t=sc(t),t4(e,dM()?Reflect.construct(t,r||[],sc(e).constructor):t.apply(e,r))}function t4(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e4(e)}function e4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dM=function(){return!!e})()}function sc(e){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sc(e)}function r4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mg(e,t)}function Mg(e,t){return Mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mg(e,t)}function fi(e,t,r){return t=mM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mM(e){var t=n4(e,"string");return po(t)=="symbol"?t:t+""}function n4(e,t){if(po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Io=(function(e){function t(){var r;ZG(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=QG(this,t,[].concat(i)),fi(r,"state",{isAnimationFinished:!1}),fi(r,"id",ga("recharts-bar-")),fi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),fi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return r4(t,e),JG(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=vt(this.props,!1);return n&&n.map(function(f,h){var p=h===l,y=p?u:o,m=fe(fe(fe({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(It,oc({className:"recharts-bar-rectangle"},Us(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),O.createElement(sO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(sn,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,v){var w=h&&h[v];if(w){var b=le(w.x,d.x),_=le(w.y,d.y),g=le(w.width,d.width),x=le(w.height,d.height);return fe(fe({},d),{},{x:b(y),y:_(y),width:g(y),height:x(y)})}if(o==="horizontal"){var S=le(0,d.height),A=S(y);return fe(fe({},d),{},{y:d.y+d.height-A,height:A})}var T=le(0,d.width),C=T(y);return fe(fe({},d),{},{width:C})});return O.createElement(It,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!la(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=vt(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,h=XG(u,YG);if(!f)return null;var p=fe(fe(fe(fe(fe({},h),{},{fill:"#eee"},f),l),Us(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(sO,oc({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=ur(c,Do);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(d,v){var w=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:w,errorVal:we(d,v)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(It,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=Pt("recharts-bar",o),w=s&&s.allowDataOverflow,b=l&&l.allowDataOverflow,_=w||b,g=gt(m)?this.id:m;return O.createElement(It,{className:v},w||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:w?u:u-f/2,y:b?c:c-h/2,width:w?f:f*2,height:b?h:h*2}))):null,O.createElement(It,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,g),(!p||d)&&Sn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);pM=Io;fi(Io,"displayName","Bar");fi(Io,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Si.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});fi(Io,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=xW(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?fe(fe({},m),r.props):r.props,v=d.dataKey,w=d.children,b=d.minPointSize,_=y==="horizontal"?o:a,g=u?_.scale.domain():null,x=CW({numericAxis:_}),S=ur(w,x0),A=f.map(function(T,C){var P,E,M,$,j,k;u?P=wW(u[c+C],g):(P=we(T,v),Array.isArray(P)||(P=[x,P]));var I=KG(b,pM.defaultProps.minPointSize)(P[1],C);if(y==="horizontal"){var q,F=[o.scale(P[0]),o.scale(P[1])],N=F[0],D=F[1];E=US({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:C}),M=(q=D??N)!==null&&q!==void 0?q:void 0,$=p.size;var L=N-D;if(j=Number.isNaN(L)?0:L,k={x:E,y:o.y,width:$,height:o.height},Math.abs(I)>0&&Math.abs(j)<Math.abs(I)){var G=on(j||I)*(Math.abs(I)-Math.abs(j));M-=G,j+=G}}else{var Y=[a.scale(P[0]),a.scale(P[1])],z=Y[0],V=Y[1];if(E=z,M=US({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:T,index:C}),$=V-z,j=p.size,k={x:a.x,y:M,width:a.width,height:j},Math.abs(I)>0&&Math.abs($)<Math.abs(I)){var Q=on($||I)*(Math.abs(I)-Math.abs($));$+=Q}}return fe(fe(fe({},T),{},{x:E,y:M,width:$,height:j,value:u?P:P[1],payload:T,background:k},S&&S[C]&&S[C].props),{},{tooltipPayload:[VC(r,T)],tooltipPosition:{x:E+$/2,y:M+j/2}})});return fe({data:A,layout:y},h)});function ml(e){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ml(e)}function i4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yM(n.key),n)}}function a4(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){Jc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jc(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=o4(e,"string");return ml(t)=="symbol"?t:t+""}function o4(e,t){if(ml(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ml(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var s4=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!_r(u,Io);return c.reduce(function(p,y){var m=r[y],d=m.orientation,v=m.domain,w=m.padding,b=w===void 0?{}:w,_=m.mirror,g=m.reversed,x="".concat(d).concat(_?"Mirror":""),S,A,T,C,P;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=v[1]-v[0],M=1/0,$=m.categoricalDomain.sort(b5);if($.forEach(function(Y,z){z>0&&(M=Math.min((Y||0)-($[z-1]||0),M))}),Number.isFinite(M)){var j=M/E,k=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=j*k/2),m.padding==="no-gap"){var I=sa(t.barCategoryGap,j*k),q=j*k/2;S=q-I-(q-I)/k*I}}}i==="xAxis"?A=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?A=l==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(S||0),n.top+n.height-(b.bottom||0)-(S||0)]:A=m.range,g&&(A=[A[1],A[0]]);var F=bW(m,a,h),N=F.scale,D=F.realScaleType;N.domain(v).range(A),_W(N);var L=EW(N,en(en({},m),{},{realScaleType:D}));i==="xAxis"?(P=d==="top"&&!_||d==="bottom"&&_,T=n.left,C=f[x]-P*m.height):i==="yAxis"&&(P=d==="left"&&!_||d==="right"&&_,T=f[x]-P*m.width,C=n.top);var G=en(en(en({},m),L),{},{realScaleType:D,x:T,y:C,scale:N,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return G.bandSize=Yu(G,L),!m.hide&&i==="xAxis"?f[x]+=(P?-1:1)*G.height:m.hide||(f[x]+=(P?-1:1)*G.width),en(en({},p),{},Jc({},y,G))},{})},gM=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},l4=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return gM({x:r,y:n},{x:i,y:a})},vM=(function(){function e(t){i4(this,e),this.scale=t}return a4(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Jc(vM,"EPS",1e-4);var P0=function(t){var r=Object.keys(t).reduce(function(n,i){return en(en({},n),{},Jc({},i,vM.create(t[i])))},{});return en(en({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return DG(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return hM(i,function(a,o){return r[o].isInRange(a)})}})};function u4(e){return(e%180+180)%180}var c4=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=u4(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Wm,hO;function f4(){if(hO)return Wm;hO=1;var e=wi(),t=Pl(),r=El();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(l[f],f,l)}}var c=i(a,o,s);return c>-1?l[u?a[c]:c]:void 0}}return Wm=n,Wm}var Hm,pO;function h4(){if(pO)return Hm;pO=1;var e=mC(),t=wi(),r=n0(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return Hm=i,Hm}var Gm,dO;function p4(){if(dO)return Gm;dO=1;var e=f4(),t=h4(),r=e(t);return Gm=r,Gm}var d4=p4();const m4=zt(d4);var y4=LE();const g4=zt(y4);var v4=g4(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}var E0=O.createContext(void 0),C0=O.createContext(void 0),bM=O.createContext(void 0),_M=O.createContext({}),xM=O.createContext(void 0),wM=O.createContext(0),SM=O.createContext(0),mO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=v4(a);return O.createElement(E0.Provider,{value:n},O.createElement(C0.Provider,{value:i},O.createElement(_M.Provider,{value:a},O.createElement(bM.Provider,{value:c},O.createElement(xM.Provider,{value:o},O.createElement(wM.Provider,{value:u},O.createElement(SM.Provider,{value:l},s)))))))},b4=function(){return O.useContext(xM)};function AM(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var OM=function(t){var r=O.useContext(E0);r==null&&(process.env.NODE_ENV!=="production"?nr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):nr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?nr(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(lc(t),"]. ").concat(AM(r))):nr()),n},_4=function(){var t=O.useContext(E0);return oi(t)},x4=function(){var t=O.useContext(C0),r=m4(t,function(n){return hM(n.domain,Number.isFinite)});return r||oi(t)},TM=function(t){var r=O.useContext(C0);r==null&&(process.env.NODE_ENV!=="production"?nr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):nr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?nr(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(lc(t),"]. ").concat(AM(r))):nr()),n},w4=function(){var t=O.useContext(bM);return t},S4=function(){return O.useContext(_M)},M0=function(){return O.useContext(SM)},k0=function(){return O.useContext(wM)};function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}function A4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EM(n.key),n)}}function T4(e,t,r){return t&&O4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function P4(e,t,r){return t=uc(t),E4(e,PM()?Reflect.construct(t,r||[],uc(e).constructor):t.apply(e,r))}function E4(e,t){if(t&&(mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C4(e)}function C4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PM=function(){return!!e})()}function uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uc(e)}function M4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kg(e,t)}function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(r),!0).forEach(function(n){$0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $0(e,t,r){return t=EM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(e){var t=k4(e,"string");return mo(t)=="symbol"?t:t+""}function k4(e,t){if(mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $4(e,t){return I4(e)||D4(e,t)||R4(e,t)||j4()}function j4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
156
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R4(e,t){if(e){if(typeof e=="string")return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function I4(e){if(Array.isArray(e))return e}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$g.apply(this,arguments)}var N4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):bt(t)?n=t(r):n=O.createElement("line",$g({},r,{className:"recharts-reference-line-line"})),n},L4=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=u.y,m=t.y.apply(y,{position:o});if(An(u,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return l==="left"?d.reverse():d}if(r){var v=u.x,w=t.x.apply(v,{position:o});if(An(u,"discard")&&!t.x.isInRange(w))return null;var b=[{x:w,y:f+p},{x:w,y:f}];return s==="top"?b.reverse():b}if(i){var _=u.segment,g=_.map(function(x){return t.apply(x,{position:o})});return An(u,"discard")&&kG(g,function(x){return!t.isInRange(x)})?null:g}return null};function B4(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=b4(),c=OM(i),f=TM(a),h=w4();if(!u||!h)return null;Fn(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=P0({x:c.scale,y:f.scale}),y=xe(t),m=xe(r),d=n&&n.length===2,v=L4(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!v)return null;var w=$4(v,2),b=w[0],_=b.x,g=b.y,x=w[1],S=x.x,A=x.y,T=An(e,"hidden")?"url(#".concat(u,")"):void 0,C=gO(gO({clipPath:T},vt(e,!0)),{},{x1:_,y1:g,x2:S,y2:A});return O.createElement(It,{className:Pt("recharts-reference-line",s)},N4(o,C),ze.renderCallByParent(e,l4({x1:_,y1:g,x2:S,y2:A})))}var Qc=(function(e){function t(){return A4(this,t),P4(this,t,arguments)}return M4(t,e),T4(t,[{key:"render",value:function(){return O.createElement(B4,this.props)}}])})(O.Component);$0(Qc,"displayName","ReferenceLine");$0(Qc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jg.apply(this,arguments)}function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MM(n.key),n)}}function z4(e,t,r){return t&&F4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U4(e,t,r){return t=cc(t),W4(e,CM()?Reflect.construct(t,r||[],cc(e).constructor):t.apply(e,r))}function W4(e,t){if(t&&(yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H4(e)}function H4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CM=function(){return!!e})()}function cc(e){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cc(e)}function G4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rg(e,t)}function tf(e,t,r){return t=MM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MM(e){var t=K4(e,"string");return yo(t)=="symbol"?t:t+""}function K4(e,t){if(yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Y4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=P0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return An(t,"discard")&&!o.isInRange(s)?null:s},ef=(function(e){function t(){return q4(this,t),U4(this,t,arguments)}return G4(t,e),z4(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=xe(i),c=xe(a);if(Fn(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=Y4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,v=An(this.props,"hidden")?"url(#".concat(l,")"):void 0,w=_O(_O({clipPath:v},vt(this.props,!0)),{},{cx:h,cy:p});return O.createElement(It,{className:Pt("recharts-reference-dot",d)},t.renderDot(m,w),ze.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);tf(ef,"displayName","ReferenceDot");tf(ef,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});tf(ef,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(Xc,jg({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dg.apply(this,arguments)}function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$M(n.key),n)}}function Z4(e,t,r){return t&&V4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function J4(e,t,r){return t=fc(t),Q4(e,kM()?Reflect.construct(t,r||[],fc(e).constructor):t.apply(e,r))}function Q4(e,t){if(t&&(go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tK(e)}function tK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kM=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fc(e)}function eK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ig(e,t)}function Ig(e,t){return Ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ig(e,t)}function rf(e,t,r){return t=$M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $M(e){var t=rK(e,"string");return go(t)=="symbol"?t:t+""}function rK(e,t){if(go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(go(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nK=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var h=P0({x:c.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(u,{position:"end"}):h.y.rangeMax};return An(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:gM(p,y)},nf=(function(e){function t(){return X4(this,t),J4(this,t,arguments)}return eK(t,e),Z4(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Fn(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=xe(i),h=xe(a),p=xe(o),y=xe(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=nK(f,h,p,y,this.props);if(!d&&!m)return null;var v=An(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(It,{className:Pt("recharts-reference-area",l)},t.renderRect(m,wO(wO({clipPath:v},vt(this.props,!0)),d)),ze.renderCallByParent(this.props,d))}}])})(O.Component);rf(nf,"displayName","ReferenceArea");rf(nf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});rf(nf,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(T0,Dg({},t,{className:"recharts-reference-area-rect"})),r});function jM(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function iK(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return c4(n,r)}function aK(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function hc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function oK(e,t){return jM(e,t+1)}function sK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var y=n==null?void 0:n[l];if(y===void 0)return{v:jM(n,u)};var m=l,d,v=function(){return d===void 0&&(d=r(y,m)),d},w=y.coordinate,b=l===0||hc(e,w,v,c,s);b||(l=0,c=o,u+=1),b&&(c=w+e*(v()/2+i),l+=u)},h;u<=a.length;)if(h=f(),h)return h.v;return[]}function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function SO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){lK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lK(e,t,r){return t=uK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uK(e){var t=cK(e,"string");return yl(t)=="symbol"?t:t+""}function cK(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fK(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-l);a[h]=p=qe(qe({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=qe(qe({},p),{},{tickCoord:p.coordinate});var v=hc(e,p.tickCoord,m,s,l);v&&(l=p.tickCoord-e*(m()/2+i),a[h]=qe(qe({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function hK(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),h=e*(c.coordinate+e*f/2-u);o[s-1]=c=qe(qe({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=hc(e,c.tickCoord,function(){return f},l,u);p&&(u=c.tickCoord-e*(f/2+i),o[s-1]=qe(qe({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(w){var b=o[w],_,g=function(){return _===void 0&&(_=r(b,w)),_};if(w===0){var x=e*(b.coordinate-e*g()/2-l);o[w]=b=qe(qe({},b),{},{tickCoord:x<0?b.coordinate-x*e:b.coordinate})}else o[w]=b=qe(qe({},b),{},{tickCoord:b.coordinate});var S=hc(e,b.tickCoord,g,l,u);S&&(l=b.tickCoord+e*(g()/2+i),o[w]=qe(qe({},b),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function j0(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(it(l)||Si.isSsr)return oK(i,typeof l=="number"&&it(l)?l:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?_s(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(b,_){var g=bt(u)?u(b.value,_):b.value;return p==="width"?iK(_s(g,{fontSize:t,letterSpacing:r}),y,f):_s(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?on(i[1].coordinate-i[0].coordinate):1,v=aK(a,d,p);return l==="equidistantPreserveStart"?sK(d,v,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=hK(d,v,m,i,o,l==="preserveStartEnd"):h=fK(d,v,m,i,o),h.filter(function(w){return w.isShow}))}var pK=["viewBox"],dK=["viewBox"],mK=["ticks"];function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ra.apply(this,arguments)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){R0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Km(e,t){if(e==null)return{};var r=yK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DM(n.key),n)}}function vK(e,t,r){return t&&OO(e.prototype,t),r&&OO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bK(e,t,r){return t=pc(t),_K(e,RM()?Reflect.construct(t,r||[],pc(e).constructor):t.apply(e,r))}function _K(e,t){if(t&&(vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xK(e)}function xK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RM=function(){return!!e})()}function pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pc(e)}function wK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ng(e,t)}function Ng(e,t){return Ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ng(e,t)}function R0(e,t,r){return t=DM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DM(e){var t=SK(e,"string");return vo(t)=="symbol"?t:t+""}function SK(e,t){if(vo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var No=(function(e){function t(r){var n;return gK(this,t),n=bK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return wK(t,e),vK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Km(n,pK),s=this.props,l=s.viewBox,u=Km(s,dK);return!Ua(a,l)||!Ua(o,u)||!Ua(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,v,w,b=f?-1:1,_=n.tickSize||c,g=it(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=y=n.coordinate,d=o+ +!f*l,m=d-b*_,w=m-b*h,v=g;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-b*_,v=p-b*h,w=g;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+b*_,v=p+b*h,w=g;break;default:p=y=n.coordinate,d=o+ +f*l,m=d+b*_,w=m+b*h,v=g;break}return{line:{x1:p,y1:m,x2:y,y2:d},tick:{x:v,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=be(be(be({},vt(this.props,!1)),vt(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);f=be(be({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);f=be(be({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",Ra({},f,{className:Pt("recharts-cartesian-axis-line",Ur(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,h=s.unit,p=j0(be(be({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=vt(this.props,!1),v=vt(c,!1),w=be(be({},d),{},{fill:"none"},vt(l,!1)),b=p.map(function(_,g){var x=o.getTickLineCoord(_),S=x.line,A=x.tick,T=be(be(be(be({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:u},v),A),{},{index:g,payload:_,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(It,Ra({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},Us(o.props,_,g)),l&&O.createElement("line",Ra({},w,S,{className:Pt("recharts-cartesian-axis-tick-line",Ur(l,"className"))})),c&&t.renderTickItem(c,T,"".concat(bt(f)?f(_.value,g):_.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=Km(f,mK),y=h;return bt(l)&&(y=h&&h.length>0?l(this.props):l(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(It,{className:Pt("recharts-cartesian-axis",u),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),ze.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Pt(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,be(be({},i),{},{className:s})):bt(n)?o=n(be(be({},i),{},{className:s})):o=O.createElement(Wu,Ra({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);R0(No,"displayName","CartesianAxis");R0(No,"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 AK=["x1","y1","x2","y2","key"],OK=["offset"];function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){TK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TK(e,t,r){return t=PK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PK(e){var t=EK(e,"string");return ca(t)=="symbol"?t:t+""}function EK(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hi.apply(this,arguments)}function PO(e,t){if(e==null)return{};var r=CK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var MK=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return O.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function IM(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=PO(t,AK),u=vt(l,!1);u.offset;var c=PO(u,OK);r=O.createElement("line",Hi({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function kK(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Ue(Ue({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return IM(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function $K(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Ue(Ue({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return IM(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function jK(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function RK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:l,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var DK=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return YC(j0(Ue(Ue(Ue({},No.defaultProps),n),{},{ticks:Bn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},IK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return YC(j0(Ue(Ue(Ue({},No.defaultProps),n),{},{ticks:Bn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ea={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function NM(e){var t,r,n,i,a,o,s=M0(),l=k0(),u=S4(),c=Ue(Ue({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ea.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ea.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ea.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ea.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ea.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ea.verticalFill,x:it(e.x)?e.x:u.left,y:it(e.y)?e.y:u.top,width:it(e.width)?e.width:u.width,height:it(e.height)?e.height:u.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,v=c.verticalValues,w=_4(),b=x4();if(!it(p)||p<=0||!it(y)||y<=0||!it(f)||f!==+f||!it(h)||h!==+h)return null;var _=c.verticalCoordinatesGenerator||DK,g=c.horizontalCoordinatesGenerator||IK,x=c.horizontalPoints,S=c.verticalPoints;if((!x||!x.length)&&bt(g)){var A=d&&d.length,T=g({yAxis:b?Ue(Ue({},b),{},{ticks:A?d:b.ticks}):void 0,width:s,height:l,offset:u},A?!0:m);Fn(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ca(T),"]")),Array.isArray(T)&&(x=T)}if((!S||!S.length)&&bt(_)){var C=v&&v.length,P=_({xAxis:w?Ue(Ue({},w),{},{ticks:C?v:w.ticks}):void 0,width:s,height:l,offset:u},C?!0:m);Fn(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ca(P),"]")),Array.isArray(P)&&(S=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(MK,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(kK,Hi({},c,{offset:u,horizontalPoints:x,xAxis:w,yAxis:b})),O.createElement($K,Hi({},c,{offset:u,verticalPoints:S,xAxis:w,yAxis:b})),O.createElement(jK,Hi({},c,{horizontalPoints:x})),O.createElement(RK,Hi({},c,{verticalPoints:S})))}NM.displayName="CartesianGrid";var NK=["type","layout","connectNulls","ref"],LK=["key"];function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function EO(e,t){if(e==null)return{};var r=BK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ss.apply(this,arguments)}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ca(e){return UK(e)||zK(e)||FK(e)||qK()}function qK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
157
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FK(e,t){if(e){if(typeof e=="string")return Lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lg(e,t)}}function zK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UK(e){if(Array.isArray(e))return Lg(e)}function Lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BM(n.key),n)}}function HK(e,t,r){return t&&MO(e.prototype,t),r&&MO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GK(e,t,r){return t=dc(t),KK(e,LM()?Reflect.construct(t,r||[],dc(e).constructor):t.apply(e,r))}function KK(e,t){if(t&&(bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YK(e)}function YK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(e)}function XK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bg(e,t)}function rn(e,t,r){return t=BM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BM(e){var t=VK(e,"string");return bo(t)=="symbol"?t:t+""}function VK(e,t){if(bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var af=(function(e){function t(){var r;WK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=GK(this,t,[].concat(i)),rn(r,"state",{isAnimationFinished:!0,totalLength:0}),rn(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),rn(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(v,w){return v+w});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,h=s-o,p=[],y=0,m=0;y<l.length;m+=l[y],++y)if(m+l[y]>f){p=[].concat(Ca(l.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Ca(t.repeat(l,c)),Ca(p),d).map(function(v){return"".concat(v,"px")}).join(", ")}),rn(r,"id",ga("recharts-line-")),rn(r,"pathRef",function(o){r.mainCurve=o}),rn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),rn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return XK(t,e),HK(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=ur(c,Do);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:we(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(It,p,f.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=vt(this.props,!1),h=vt(l,!0),p=u.map(function(m,d){var v=vr(vr(vr({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:u});return t.renderDotItem(l,v)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(It,Ss({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=EO(s,NK),h=vr(vr(vr({},vt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return O.createElement(ta,Ss({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,v=this.state,w=v.prevPoints,b=v.totalLength;return O.createElement(sn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var g=_.t;if(w){var x=w.length/s.length,S=s.map(function(E,M){var $=Math.floor(M*x);if(w[$]){var j=w[$],k=le(j.x,E.x),I=le(j.y,E.y);return vr(vr({},E),{},{x:k(g),y:I(g)})}if(y){var q=le(m*2,E.x),F=le(d/2,E.y);return vr(vr({},E),{},{x:q(g),y:F(g)})}return vr(vr({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=le(0,b),T=A(g),C;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});C=a.getStrokeDasharray(T,b,P)}else C=a.generateSimpleStrokeDasharray(b,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!la(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,w=s.length===1,b=Pt("recharts-line",l),_=u&&u.allowDataOverflow,g=c&&c.allowDataOverflow,x=_||g,S=gt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,C=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,M=cC(o)?o:{},$=M.clipDot,j=$===void 0?!0:$,k=C*2+E;return O.createElement(It,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?h:h-p/2,y:g?f:f-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-k/2,y:f-k/2,width:p+k,height:y+k}))):null,!w&&this.renderCurve(x,S),this.renderErrorBar(x,S),(w||o)&&this.renderDots(x,j,S),(!m||v)&&Sn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Ca(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Ca(o),Ca(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(bt(n))a=n(i);else{var o=i.key,s=EO(i,LK),l=Pt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Xc,Ss({key:o},s,{className:l}))}return a}}])})(O.PureComponent);rn(af,"displayName","Line");rn(af,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Si.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});rn(af,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(h,p){var y=we(h,o);return c==="horizontal"?{x:lo({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:gt(y)?null:n.scale(y),value:y,payload:h}:{x:gt(y)?null:r.scale(y),y:lo({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return vr({points:f,layout:c},u)});var ZK=["layout","type","stroke","connectNulls","isRange","ref"],JK=["key"],qM;function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function FM(e,t){if(e==null)return{};var r=QK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gi.apply(this,arguments)}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){xn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UM(n.key),n)}}function eY(e,t,r){return t&&$O(e.prototype,t),r&&$O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rY(e,t,r){return t=mc(t),nY(e,zM()?Reflect.construct(t,r||[],mc(e).constructor):t.apply(e,r))}function nY(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iY(e)}function iY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zM=function(){return!!e})()}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mc(e)}function aY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qg(e,t)}function xn(e,t,r){return t=UM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UM(e){var t=oY(e,"string");return _o(t)=="symbol"?t:t+""}function oY(e,t){if(_o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Oi=(function(e){function t(){var r;tY(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=rY(this,t,[].concat(i)),xn(r,"state",{isAnimationFinished:!0}),xn(r,"id",ga("recharts-area-")),xn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),bt(o)&&o()}),xn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),bt(o)&&o()}),r}return aY(t,e),eY(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,h=vt(this.props,!1),p=vt(u,!0),y=c.map(function(d,v){var w=ii(ii(ii({key:"dot-".concat(v),r:3},h),p),{},{index:v,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(u,w)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(It,Gi({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=ci(o.map(function(h){return h.y||0}));return it(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(ci(a.map(function(h){return h.y||0})),f)),it(f)?O.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=ci(o.map(function(h){return h.x||0}));return it(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(ci(a.map(function(h){return h.x||0})),f)),it(f)?O.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,h=s.isRange;s.ref;var p=FM(s,ZK);return O.createElement(It,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(ta,Gi({},vt(p,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(ta,Gi({},vt(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(ta,Gi({},vt(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return O.createElement(sn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var w=v.t;if(m){var b=m.length/s.length,_=s.map(function(A,T){var C=Math.floor(T*b);if(m[C]){var P=m[C],E=le(P.x,A.x),M=le(P.y,A.y);return ii(ii({},A),{},{x:E(w),y:M(w)})}return A}),g;if(it(l)&&typeof l=="number"){var x=le(d,l);g=x(w)}else if(gt(l)||$o(l)){var S=le(d,0);g=S(w)}else g=l.map(function(A,T){var C=Math.floor(T*b);if(d[C]){var P=d[C],E=le(P.x,A.x),M=le(P.y,A.y);return ii(ii({},A),{},{x:E(w),y:M(w)})}return A});return a.renderAreaStatically(_,g,n,i)}return O.createElement(It,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(w))),O.createElement(It,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,h=u.totalLength;return l&&o&&o.length&&(!c&&h>0||!la(c,o)||!la(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,w=s.length===1,b=Pt("recharts-area",l),_=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,x=_||g,S=gt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,C=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,M=cC(o)?o:{},$=M.clipDot,j=$===void 0?!0:$,k=C*2+E;return O.createElement(It,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?c:c-p/2,y:g?u:u-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-k/2,y:u-k/2,width:p+k,height:y+k}))):null,w?null:this.renderArea(x,S),(o||w)&&this.renderDots(x,j,S),(!m||v)&&Sn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);qM=Oi;xn(Oi,"displayName","Area");xn(Oi,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Si.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});xn(Oi,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(it(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});xn(Oi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,m=qM.getBaseValue(t,r,n,i),d=p==="horizontal",v=!1,w=f.map(function(_,g){var x;y?x=u[c+g]:(x=we(_,l),Array.isArray(x)?v=!0:x=[m,x]);var S=x[1]==null||y&&we(_,l)==null;return d?{x:lo({axis:n,ticks:a,bandSize:s,entry:_,index:g}),y:S?null:i.scale(x[1]),value:x,payload:_}:{x:S?null:n.scale(x[1]),y:lo({axis:i,ticks:o,bandSize:s,entry:_,index:g}),value:x,payload:_}}),b;return y||v?b=w.map(function(_){var g=Array.isArray(_.value)?_.value[0]:null;return d?{x:_.x,y:g!=null&&_.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:_.y}}):b=d?i.scale(m):n.scale(m),ii({points:w,baseLine:b,layout:p,isRange:v},h)});xn(Oi,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=Pt("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=FM(t,JK);r=O.createElement(Xc,Gi({},a,{key:i,className:n}))}return r});function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function sY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GM(n.key),n)}}function uY(e,t,r){return t&&lY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cY(e,t,r){return t=yc(t),fY(e,WM()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function fY(e,t){if(t&&(xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hY(e)}function hY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WM=function(){return!!e})()}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(e)}function pY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fg(e,t)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fg(e,t)}function HM(e,t,r){return t=GM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GM(e){var t=dY(e,"string");return xo(t)=="symbol"?t:t+""}function dY(e,t){if(xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var of=(function(e){function t(){return sY(this,t),cY(this,t,arguments)}return pY(t,e),uY(t,[{key:"render",value:function(){return null}}])})(zr.Component);HM(of,"displayName","ZAxis");HM(of,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var mY=["option","isActive"];function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}function yY(e,t){if(e==null)return{};var r=gY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vY(e){var t=e.option,r=e.isActive,n=yY(e,mY);return typeof t=="string"?zr.createElement(Pg,As({option:zr.createElement(Wc,As({type:t},n)),isActive:r,shapeType:"symbols"},n)):zr.createElement(Pg,As({option:t,isActive:r,shapeType:"symbols"},n))}function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Os.apply(this,arguments)}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YM(n.key),n)}}function _Y(e,t,r){return t&&RO(e.prototype,t),r&&RO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xY(e,t,r){return t=gc(t),wY(e,KM()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function wY(e,t){if(t&&(wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SY(e)}function SY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KM=function(){return!!e})()}function gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(e)}function AY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zg(e,t)}function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zg(e,t)}function hi(e,t,r){return t=YM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YM(e){var t=OY(e,"string");return wo(t)=="symbol"?t:t+""}function OY(e,t){if(wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sf=(function(e){function t(){var r;bY(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xY(this,t,[].concat(i)),hi(r,"state",{isAnimationFinished:!1}),hi(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),hi(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),hi(r,"id",ga("recharts-scatter-")),r}return AY(t,e),_Y(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,u=vt(this.props,!1);return n.map(function(c,f){var h=l===f,p=h?s:o,y=Nr(Nr({},u),c);return O.createElement(It,Os({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},Us(i.props,c,f),{role:"img"}),O.createElement(vY,Os({option:p,isActive:h,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(sn,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var v=f&&f[d];if(v){var w=le(v.cx,m.cx),b=le(v.cy,m.cy),_=le(v.size,m.size);return Nr(Nr({},m),{},{cx:w(p),cy:b(p),size:_(p)})}var g=le(0,m.size);return Nr(Nr({},m),{},{size:g(p)})});return O.createElement(It,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!la(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,u=ur(l,Do);return u?u.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,v){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:we(d,v)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,l=vt(this.props,!1),u=vt(a,!1),c,f;if(o==="joint")c=i.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var h=v5(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,v=function(_){return m*_+d};c=[{x:p,y:v(p)},{x:y,y:v(y)}]}var w=Nr(Nr(Nr({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,w):bt(a)?f=a(w):f=O.createElement(ta,Os({},w,{type:s})),O.createElement(It,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=Pt("recharts-scatter",s),w=l&&l.allowDataOverflow,b=u&&u.allowDataOverflow,_=w||b,g=gt(y)?this.id:y;return O.createElement(It,{className:v,clipPath:_?"url(#clipPath-".concat(g,")"):null},w||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:w?c:c-h/2,y:b?f:f-p/2,width:w?h:h*2,height:b?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(It,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&Sn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);hi(sf,"displayName","Scatter");hi(sf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Si.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});hi(sf,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,c=ur(i.props.children,x0),f=gt(t.dataKey)?i.props.dataKey:t.dataKey,h=gt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:of.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,v=r.scale.bandwidth?r.scale.bandwidth():0,w=a.map(function(b,_){var g=we(b,f),x=we(b,h),S=!gt(p)&&we(b,p)||"-",A=[{name:gt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:b,dataKey:f,type:u},{name:gt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:x,payload:b,dataKey:h,type:u}];S!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:b,dataKey:p,type:u});var T=lo({axis:t,ticks:o,bandSize:d,entry:b,index:_,dataKey:f}),C=lo({axis:r,ticks:s,bandSize:v,entry:b,index:_,dataKey:h}),P=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(P,0)/Math.PI);return Nr(Nr({},b),{},{cx:T,cy:C,x:T-E,y:C-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:g,y:x,z:S},tooltipPayload:A,tooltipPosition:{x:T,y:C},payload:b},c&&c[_]&&c[_].props)});return Nr({points:w},l)});function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function TY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZM(n.key),n)}}function EY(e,t,r){return t&&PY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CY(e,t,r){return t=vc(t),MY(e,XM()?Reflect.construct(t,r||[],vc(e).constructor):t.apply(e,r))}function MY(e,t){if(t&&(So(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kY(e)}function kY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XM=function(){return!!e})()}function vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(e)}function $Y(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ug(e,t)}function VM(e,t,r){return t=ZM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZM(e){var t=jY(e,"string");return So(t)=="symbol"?t:t+""}function jY(e,t){if(So(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(So(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wg.apply(this,arguments)}function RY(e){var t=e.xAxisId,r=M0(),n=k0(),i=OM(t);return i==null?null:zr.createElement(No,Wg({},i,{className:Pt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Bn(o,!0)}}))}var lf=(function(e){function t(){return TY(this,t),CY(this,t,arguments)}return $Y(t,e),EY(t,[{key:"render",value:function(){return zr.createElement(RY,this.props)}}])})(zr.Component);VM(lf,"displayName","XAxis");VM(lf,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Ao(e){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(e)}function DY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tk(n.key),n)}}function NY(e,t,r){return t&&IY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LY(e,t,r){return t=bc(t),BY(e,JM()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function BY(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qY(e)}function qY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JM=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function FY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hg(e,t)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hg(e,t)}function QM(e,t,r){return t=tk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tk(e){var t=zY(e,"string");return Ao(t)=="symbol"?t:t+""}function zY(e,t){if(Ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gg.apply(this,arguments)}var UY=function(t){var r=t.yAxisId,n=M0(),i=k0(),a=TM(r);return a==null?null:zr.createElement(No,Gg({},a,{className:Pt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Bn(s,!0)}}))},uf=(function(e){function t(){return DY(this,t),LY(this,t,arguments)}return FY(t,e),NY(t,[{key:"render",value:function(){return zr.createElement(UY,this.props)}}])})(zr.Component);QM(uf,"displayName","YAxis");QM(uf,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function DO(e){return KY(e)||GY(e)||HY(e)||WY()}function WY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
158
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HY(e,t){if(e){if(typeof e=="string")return Kg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kg(e,t)}}function GY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KY(e){if(Array.isArray(e))return Kg(e)}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Yg=function(t,r,n,i,a){var o=ur(t,Qc),s=ur(t,ef),l=[].concat(DO(o),DO(s)),u=ur(t,nf),c="".concat(i,"Id"),f=i[0],h=r;if(l.length&&(h=l.reduce(function(m,d){if(d.props[c]===n&&An(d.props,"extendDomain")&&it(d.props[f])){var v=d.props[f];return[Math.min(m[0],v),Math.max(m[1],v)]}return m},h)),u.length){var p="".concat(f,"1"),y="".concat(f,"2");h=u.reduce(function(m,d){if(d.props[c]===n&&An(d.props,"extendDomain")&&it(d.props[p])&&it(d.props[y])){var v=d.props[p],w=d.props[y];return[Math.min(m[0],v,w),Math.max(m[1],v,w)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return it(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},Ym={exports:{}},IO;function YY(){return IO||(IO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||l,h),y=r?r+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],p]:l._events[y].push(p):(l._events[y]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,h,p,y){var m=r?r+u:u;if(!this._events[m])return!1;var d=this._events[m],v=arguments.length,w,b;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),v){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(b=1,w=new Array(v-1);b<v;b++)w[b-1]=arguments[b];d.fn.apply(d.context,w)}else{var _=d.length,g;for(b=0;b<_;b++)switch(d[b].once&&this.removeListener(u,d[b].fn,void 0,!0),v){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,c);break;case 3:d[b].fn.call(d[b].context,c,f);break;case 4:d[b].fn.call(d[b].context,c,f,h);break;default:if(!w)for(g=1,w=new Array(v-1);g<v;g++)w[g-1]=arguments[g];d[b].fn.apply(d[b].context,w)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,h){var p=r?r+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],v=y.length;m<v;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Ym)),Ym.exports}var XY=YY();const VY=zt(XY);var Xm=new VY,Vm="recharts.syncMouseEvents";function gl(e){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(e)}function ZY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ek(n.key),n)}}function QY(e,t,r){return t&&JY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zm(e,t,r){return t=ek(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ek(e){var t=tX(e,"string");return gl(t)=="symbol"?t:t+""}function tX(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eX=(function(){function e(){ZY(this,e),Zm(this,"activeIndex",0),Zm(this,"coordinateList",[]),Zm(this,"layout","horizontal")}return QY(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,h=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function rX(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&it(n)&&it(i))return!0}return!1}function nX(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function rk(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=De(t,r,n,i),s=De(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function iX(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,h=De(s,l,u,f),p=De(s,l,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return rk(t);return[{x:n,y:i},{x:a,y:o}]}function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){aX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aX(e,t,r){return t=oX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oX(e){var t=sX(e,"string");return vl(t)=="symbol"?t:t+""}function sX(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lX(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=ta;if(h==="ScatterChart")y=o,m=I6;else if(h==="BarChart")y=nX(f,o,l,c),m=T0;else if(f==="radial"){var d=rk(o),v=d.cx,w=d.cy,b=d.radius,_=d.startAngle,g=d.endAngle;y={cx:v,cy:w,startAngle:_,endAngle:g,innerRadius:b,outerRadius:b},m=QC}else y={points:iX(f,o,l)},m=ta;var x=tu(tu(tu(tu({stroke:"#ccc",pointerEvents:"none"},l),y),vt(p,!1)),{},{payload:s,payloadIndex:u,className:Pt("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,x):O.createElement(m,x)}var uX=["item"],cX=["children","className","width","height","style","compact","title","desc"];function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Da.apply(this,arguments)}function LO(e,t){return pX(e)||hX(e,t)||ik(e,t)||fX()}function fX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
159
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function pX(e){if(Array.isArray(e))return e}function BO(e,t){if(e==null)return{};var r=dX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ak(n.key),n)}}function gX(e,t,r){return t&&yX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vX(e,t,r){return t=_c(t),bX(e,nk()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function bX(e,t){if(t&&(Oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _X(e)}function _X(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nk=function(){return!!e})()}function _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function xX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xg(e,t)}function Xg(e,t){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xg(e,t)}function To(e){return AX(e)||SX(e)||ik(e)||wX()}function wX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){if(e){if(typeof e=="string")return Vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vg(e,t)}}function SX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AX(e){if(Array.isArray(e))return Vg(e)}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pt(e,t,r){return t=ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ak(e){var t=OX(e,"string");return Oo(t)=="symbol"?t:t+""}function OX(e,t){if(Oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TX={xAxis:["bottom","top"],yAxis:["left","right"]},PX={width:"100%",height:"100%"},ok={x:0,y:0};function eu(e){return e}var EX=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},CX=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return X(X(X({},i),De(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return X(X(X({},i),De(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return ok},cf=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(To(s),To(u)):s},[]);return o.length>0?o:t&&t.length&&it(i)&&it(a)?t.slice(i,a+1):[]};function sk(e){return e==="number"?[0,"auto"]:void 0}var Zg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=cf(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=Nu(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(To(l),[VC(u,h)]):l},[])},FO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=EX(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=pW(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,h=Zg(t,r,c,f),p=CX(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},MX=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=t.stackOffset,p=KC(c,a);return n.reduce(function(y,m){var d,v=m.type.defaultProps!==void 0?X(X({},m.type.defaultProps),m.props):m.props,w=v.type,b=v.dataKey,_=v.allowDataOverflow,g=v.allowDuplicatedCategory,x=v.scale,S=v.ticks,A=v.includeHidden,T=v[o];if(y[T])return y;var C=cf(t.data,{graphicalItems:i.filter(function(L){var G,Y=o in L.props?L.props[o]:(G=L.type.defaultProps)===null||G===void 0?void 0:G[o];return Y===T}),dataStartIndex:l,dataEndIndex:u}),P=C.length,E,M,$;rX(v.domain,_,w)&&(E=fg(v.domain,null,_),p&&(w==="number"||x!=="auto")&&($=xs(C,b,"category")));var j=sk(w);if(!E||E.length===0){var k,I=(k=v.domain)!==null&&k!==void 0?k:j;if(b){if(E=xs(C,b,w),w==="category"&&p){var q=g5(E);g&&q?(M=E,E=zs(0,P)):g||(E=GS(I,E,m).reduce(function(L,G){return L.indexOf(G)>=0?L:[].concat(To(L),[G])},[]))}else if(w==="category")g?E=E.filter(function(L){return L!==""&&!gt(L)}):E=GS(I,E,m).reduce(function(L,G){return L.indexOf(G)>=0||G===""||gt(G)?L:[].concat(To(L),[G])},[]);else if(w==="number"){var F=vW(C,i.filter(function(L){var G,Y,z=o in L.props?L.props[o]:(G=L.type.defaultProps)===null||G===void 0?void 0:G[o],V="hide"in L.props?L.props.hide:(Y=L.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return z===T&&(A||!V)}),b,a,c);F&&(E=F)}p&&(w==="number"||x!=="auto")&&($=xs(C,b,"category"))}else p?E=zs(0,P):s&&s[T]&&s[T].hasStack&&w==="number"?E=h==="expand"?[0,1]:XC(s[T].stackGroups,l,u):E=GC(C,i.filter(function(L){var G=o in L.props?L.props[o]:L.type.defaultProps[o],Y="hide"in L.props?L.props.hide:L.type.defaultProps.hide;return G===T&&(A||!Y)}),w,c,!0);if(w==="number")E=Yg(f,E,T,a,S),I&&(E=fg(I,E,_));else if(w==="category"&&I){var N=I,D=E.every(function(L){return N.indexOf(L)>=0});D&&(E=N)}}return X(X({},y),{},pt({},T,X(X({},v),{},{axisType:a,domain:E,categoricalDomain:$,duplicateDomain:M,originalDomain:(d=v.domain)!==null&&d!==void 0?d:j,isCategorical:p,layout:c})))},{})},kX=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=cf(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,y=KC(c,a),m=-1;return n.reduce(function(d,v){var w=v.type.defaultProps!==void 0?X(X({},v.type.defaultProps),v.props):v.props,b=w[o],_=sk("number");if(!d[b]){m++;var g;return y?g=zs(0,p):s&&s[b]&&s[b].hasStack?(g=XC(s[b].stackGroups,l,u),g=Yg(f,g,b,a)):(g=fg(_,GC(h,n.filter(function(x){var S,A,T=o in x.props?x.props[o]:(S=x.type.defaultProps)===null||S===void 0?void 0:S[o],C="hide"in x.props?x.props.hide:(A=x.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===b&&!C}),"number",c),i.defaultProps.allowDataOverflow),g=Yg(f,g,b,a)),X(X({},d),{},pt({},b,X(X({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ur(TX,"".concat(a,".").concat(m%2),null),domain:g,originalDomain:_,isCategorical:y,layout:c})))}return d},{})},$X=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),h=ur(c,a),p={};return h&&h.length?p=MX(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=kX(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},jX=function(t){var r=oi(t),n=Bn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:zc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Yu(r,n)}},zO=function(t){var r=t.children,n=t.defaultShowTooltip,i=_r(r,fo),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},RX=function(t){return!t||!t.length?!1:t.some(function(r){var n=qn(r&&r.type);return n&&n.indexOf("Bar")>=0})},UO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},DX=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,h=n.margin||{},p=_r(f,fo),y=_r(f,Ji),m=Object.keys(l).reduce(function(g,x){var S=l[x],A=S.orientation;return!S.mirror&&!S.hide?X(X({},g),{},pt({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,x){var S=o[x],A=S.orientation;return!S.mirror&&!S.hide?X(X({},g),{},pt({},A,Ur(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),v=X(X({},d),m),w=v.bottom;p&&(v.bottom+=p.props.height||fo.defaultProps.height),y&&r&&(v=yW(v,i,n,r));var b=u-v.left-v.right,_=c-v.top-v.bottom;return X(X({brushBottom:w},v),{},{width:Math.max(b,0),height:Math.max(_,0)})},IX=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},NX=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(v,w){var b=w.graphicalItems,_=w.stackGroups,g=w.offset,x=w.updateId,S=w.dataStartIndex,A=w.dataEndIndex,T=v.barSize,C=v.layout,P=v.barGap,E=v.barCategoryGap,M=v.maxBarSize,$=UO(C),j=$.numericAxisName,k=$.cateAxisName,I=RX(b),q=[];return b.forEach(function(F,N){var D=cf(v.data,{graphicalItems:[F],dataStartIndex:S,dataEndIndex:A}),L=F.type.defaultProps!==void 0?X(X({},F.type.defaultProps),F.props):F.props,G=L.dataKey,Y=L.maxBarSize,z=L["".concat(j,"Id")],V=L["".concat(k,"Id")],Q={},K=l.reduce(function(dt,xt){var $t,Ht,St=w["".concat(xt.axisType,"Map")],kt=L["".concat(xt.axisType,"Id")];St&&St[kt]||xt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?nr(!1,"Specifying a(n) ".concat(xt.axisType,"Id requires a corresponding ").concat(xt.axisType,"Id on the targeted graphical component ").concat(($t=F==null||(Ht=F.type)===null||Ht===void 0?void 0:Ht.displayName)!==null&&$t!==void 0?$t:"")):nr());var Oe=St[kt];return X(X({},dt),{},pt(pt({},xt.axisType,Oe),"".concat(xt.axisType,"Ticks"),Bn(Oe)))},Q),B=K[k],H=K["".concat(k,"Ticks")],Z=_&&_[z]&&_[z].hasStack&&MW(F,_[z].stackGroups),R=qn(F.type).indexOf("Bar")>=0,ot=Yu(B,H),U=[],nt=I&&dW({barSize:T,stackGroups:_,totalSize:IX(K,k)});if(R){var ft,st,ht=gt(Y)?M:Y,Et=(ft=(st=Yu(B,H,!0))!==null&&st!==void 0?st:ht)!==null&&ft!==void 0?ft:0;U=mW({barGap:P,barCategoryGap:E,bandSize:Et!==ot?Et:ot,sizeList:nt[V],maxBarSize:ht}),Et!==ot&&(U=U.map(function(dt){return X(X({},dt),{},{position:X(X({},dt.position),{},{offset:dt.position.offset-Et/2})})}))}var at=F&&F.type&&F.type.getComposedData;at&&q.push({props:X(X({},at(X(X({},K),{},{displayedData:D,props:v,dataKey:G,item:F,bandSize:ot,barPosition:U,offset:g,stackedData:Z,layout:C,dataStartIndex:S,dataEndIndex:A}))),{},pt(pt(pt({key:F.key||"item-".concat(N)},j,K[j]),k,K[k]),"animationId",x)),childIndex:M5(F,v.children),item:F})}),q},p=function(v,w){var b=v.props,_=v.dataStartIndex,g=v.dataEndIndex,x=v.updateId;if(!Cw({props:b}))return null;var S=b.children,A=b.layout,T=b.stackOffset,C=b.data,P=b.reverseStackOrder,E=UO(A),M=E.numericAxisName,$=E.cateAxisName,j=ur(S,n),k=PW(C,j,"".concat(M,"Id"),"".concat($,"Id"),T,P),I=l.reduce(function(L,G){var Y="".concat(G.axisType,"Map");return X(X({},L),{},pt({},Y,$X(b,X(X({},G),{},{graphicalItems:j,stackGroups:G.axisType===M&&k,dataStartIndex:_,dataEndIndex:g}))))},{}),q=DX(X(X({},I),{},{props:b,graphicalItems:j}),w==null?void 0:w.legendBBox);Object.keys(I).forEach(function(L){I[L]=c(b,I[L],q,L.replace("Map",""),r)});var F=I["".concat($,"Map")],N=jX(F),D=h(b,X(X({},I),{},{dataStartIndex:_,dataEndIndex:g,updateId:x,graphicalItems:j,stackGroups:k,offset:q}));return X(X({formattedGraphicalItems:D,graphicalItems:j,offset:q,stackGroups:k},N),I)},y=(function(d){function v(w){var b,_,g;return mX(this,v),g=vX(this,v,[w]),pt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),pt(g,"accessibilityManager",new eX),pt(g,"handleLegendBBoxUpdate",function(x){if(x){var S=g.state,A=S.dataStartIndex,T=S.dataEndIndex,C=S.updateId;g.setState(X({legendBBox:x},p({props:g.props,dataStartIndex:A,dataEndIndex:T,updateId:C},X(X({},g.state),{},{legendBBox:x}))))}}),pt(g,"handleReceiveSyncEvent",function(x,S,A){if(g.props.syncId===x){if(A===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),pt(g,"handleBrushChange",function(x){var S=x.startIndex,A=x.endIndex;if(S!==g.state.dataStartIndex||A!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return X({dataStartIndex:S,dataEndIndex:A},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),pt(g,"handleMouseEnter",function(x){var S=g.getMouseInfo(x);if(S){var A=X(X({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseEnter;bt(T)&&T(A,x)}}),pt(g,"triggeredAfterMouseMove",function(x){var S=g.getMouseInfo(x),A=S?X(X({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseMove;bt(T)&&T(A,x)}),pt(g,"handleItemMouseEnter",function(x){g.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),pt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),pt(g,"handleMouseMove",function(x){x.persist(),g.throttleTriggeredAfterMouseMove(x)}),pt(g,"handleMouseLeave",function(x){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseLeave;bt(A)&&A(S,x)}),pt(g,"handleOuterEvent",function(x){var S=C5(x),A=Ur(g.props,"".concat(S));if(S&&bt(A)){var T,C;/.*touch.*/i.test(S)?C=g.getMouseInfo(x.changedTouches[0]):C=g.getMouseInfo(x),A((T=C)!==null&&T!==void 0?T:{},x)}}),pt(g,"handleClick",function(x){var S=g.getMouseInfo(x);if(S){var A=X(X({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onClick;bt(T)&&T(A,x)}}),pt(g,"handleMouseDown",function(x){var S=g.props.onMouseDown;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),pt(g,"handleMouseUp",function(x){var S=g.props.onMouseUp;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),pt(g,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),pt(g,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.handleMouseDown(x.changedTouches[0])}),pt(g,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.handleMouseUp(x.changedTouches[0])}),pt(g,"handleDoubleClick",function(x){var S=g.props.onDoubleClick;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),pt(g,"handleContextMenu",function(x){var S=g.props.onContextMenu;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),pt(g,"triggerSyncEvent",function(x){g.props.syncId!==void 0&&Xm.emit(Vm,g.props.syncId,x,g.eventEmitterSymbol)}),pt(g,"applySyncEvent",function(x){var S=g.props,A=S.layout,T=S.syncMethod,C=g.state.updateId,P=x.dataStartIndex,E=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)g.setState(X({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:C},g.state)));else if(x.activeTooltipIndex!==void 0){var M=x.chartX,$=x.chartY,j=x.activeTooltipIndex,k=g.state,I=k.offset,q=k.tooltipTicks;if(!I)return;if(typeof T=="function")j=T(q,x);else if(T==="value"){j=-1;for(var F=0;F<q.length;F++)if(q[F].value===x.activeLabel){j=F;break}}var N=X(X({},I),{},{x:I.left,y:I.top}),D=Math.min(M,N.x+N.width),L=Math.min($,N.y+N.height),G=q[j]&&q[j].value,Y=Zg(g.state,g.props.data,j),z=q[j]?{x:A==="horizontal"?q[j].coordinate:D,y:A==="horizontal"?L:q[j].coordinate}:ok;g.setState(X(X({},x),{},{activeLabel:G,activeCoordinate:z,activePayload:Y,activeTooltipIndex:j}))}else g.setState(x)}),pt(g,"renderCursor",function(x){var S,A=g.state,T=A.isTooltipActive,C=A.activeCoordinate,P=A.activePayload,E=A.offset,M=A.activeTooltipIndex,$=A.tooltipAxisBandSize,j=g.getTooltipEventType(),k=(S=x.props.active)!==null&&S!==void 0?S:T,I=g.props.layout,q=x.key||"_recharts-cursor";return O.createElement(lX,{key:q,activeCoordinate:C,activePayload:P,activeTooltipIndex:M,chartName:r,element:x,isActive:k,layout:I,offset:E,tooltipAxisBandSize:$,tooltipEventType:j})}),pt(g,"renderPolarAxis",function(x,S,A){var T=Ur(x,"type.axisType"),C=Ur(g.state,"".concat(T,"Map")),P=x.type.defaultProps,E=P!==void 0?X(X({},P),x.props):x.props,M=C&&C[E["".concat(T,"Id")]];return O.cloneElement(x,X(X({},M),{},{className:Pt(T,M.className),key:x.key||"".concat(S,"-").concat(A),ticks:Bn(M,!0)}))}),pt(g,"renderPolarGrid",function(x){var S=x.props,A=S.radialLines,T=S.polarAngles,C=S.polarRadius,P=g.state,E=P.radiusAxisMap,M=P.angleAxisMap,$=oi(E),j=oi(M),k=j.cx,I=j.cy,q=j.innerRadius,F=j.outerRadius;return O.cloneElement(x,{polarAngles:Array.isArray(T)?T:Bn(j,!0).map(function(N){return N.coordinate}),polarRadius:Array.isArray(C)?C:Bn($,!0).map(function(N){return N.coordinate}),cx:k,cy:I,innerRadius:q,outerRadius:F,key:x.key||"polar-grid",radialLines:A})}),pt(g,"renderLegend",function(){var x=g.state.formattedGraphicalItems,S=g.props,A=S.children,T=S.width,C=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),M=WC({children:A,formattedGraphicalItems:x,legendWidth:E,legendContent:u});if(!M)return null;var $=M.item,j=BO(M,uX);return O.cloneElement($,X(X({},j),{},{chartWidth:T,chartHeight:C,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),pt(g,"renderTooltip",function(){var x,S=g.props,A=S.children,T=S.accessibilityLayer,C=_r(A,gn);if(!C)return null;var P=g.state,E=P.isTooltipActive,M=P.activeCoordinate,$=P.activePayload,j=P.activeLabel,k=P.offset,I=(x=C.props.active)!==null&&x!==void 0?x:E;return O.cloneElement(C,{viewBox:X(X({},k),{},{x:k.left,y:k.top}),active:I,label:j,payload:I?$:[],coordinate:M,accessibilityLayer:T})}),pt(g,"renderBrush",function(x){var S=g.props,A=S.margin,T=S.data,C=g.state,P=C.offset,E=C.dataStartIndex,M=C.dataEndIndex,$=C.updateId;return O.cloneElement(x,{key:x.key||"_recharts-brush",onChange:Yl(g.handleBrushChange,x.props.onChange),data:T,x:it(x.props.x)?x.props.x:P.left,y:it(x.props.y)?x.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:it(x.props.width)?x.props.width:P.width,startIndex:E,endIndex:M,updateId:"brush-".concat($)})}),pt(g,"renderReferenceElement",function(x,S,A){if(!x)return null;var T=g,C=T.clipPathId,P=g.state,E=P.xAxisMap,M=P.yAxisMap,$=P.offset,j=x.type.defaultProps||{},k=x.props,I=k.xAxisId,q=I===void 0?j.xAxisId:I,F=k.yAxisId,N=F===void 0?j.yAxisId:F;return O.cloneElement(x,{key:x.key||"".concat(S,"-").concat(A),xAxis:E[q],yAxis:M[N],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:C})}),pt(g,"renderActivePoints",function(x){var S=x.item,A=x.activePoint,T=x.basePoint,C=x.childIndex,P=x.isRange,E=[],M=S.props.key,$=S.item.type.defaultProps!==void 0?X(X({},S.item.type.defaultProps),S.item.props):S.item.props,j=$.activeDot,k=$.dataKey,I=X(X({index:C,dataKey:k,cx:A.x,cy:A.y,r:4,fill:A0(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},vt(j,!1)),Lu(j));return E.push(v.renderActiveDot(j,I,"".concat(M,"-activePoint-").concat(C))),T?E.push(v.renderActiveDot(j,X(X({},I),{},{cx:T.x,cy:T.y}),"".concat(M,"-basePoint-").concat(C))):P&&E.push(null),E}),pt(g,"renderGraphicChild",function(x,S,A){var T=g.filterFormatItem(x,S,A);if(!T)return null;var C=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,M=P.tooltipAxis,$=P.activeTooltipIndex,j=P.activeLabel,k=g.props.children,I=_r(k,gn),q=T.props,F=q.points,N=q.isRange,D=q.baseLine,L=T.item.type.defaultProps!==void 0?X(X({},T.item.type.defaultProps),T.item.props):T.item.props,G=L.activeDot,Y=L.hide,z=L.activeBar,V=L.activeShape,Q=!!(!Y&&E&&I&&(G||z||V)),K={};C!=="axis"&&I&&I.props.trigger==="click"?K={onClick:Yl(g.handleItemMouseEnter,x.props.onClick)}:C!=="axis"&&(K={onMouseLeave:Yl(g.handleItemMouseLeave,x.props.onMouseLeave),onMouseEnter:Yl(g.handleItemMouseEnter,x.props.onMouseEnter)});var B=O.cloneElement(x,X(X({},T.props),K));function H(xt){return typeof M.dataKey=="function"?M.dataKey(xt.payload):null}if(Q)if($>=0){var Z,R;if(M.dataKey&&!M.allowDuplicatedCategory){var ot=typeof M.dataKey=="function"?H:"payload.".concat(M.dataKey.toString());Z=Nu(F,ot,j),R=N&&D&&Nu(D,ot,j)}else Z=F==null?void 0:F[$],R=N&&D&&D[$];if(V||z){var U=x.props.activeIndex!==void 0?x.props.activeIndex:$;return[O.cloneElement(x,X(X(X({},T.props),K),{},{activeIndex:U})),null,null]}if(!gt(Z))return[B].concat(To(g.renderActivePoints({item:T,activePoint:Z,basePoint:R,childIndex:$,isRange:N})))}else{var nt,ft=(nt=g.getItemByXY(g.state.activeCoordinate))!==null&&nt!==void 0?nt:{graphicalItem:B},st=ft.graphicalItem,ht=st.item,Et=ht===void 0?x:ht,at=st.childIndex,dt=X(X(X({},T.props),K),{},{activeIndex:at});return[O.cloneElement(Et,dt),null,null]}return N?[B,null,null]:[B,null]}),pt(g,"renderCustomized",function(x,S,A){return O.cloneElement(x,X(X({key:"recharts-customized-".concat(A)},g.props),g.state))}),pt(g,"renderMap",{CartesianGrid:{handler:eu,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:eu},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:eu},YAxis:{handler:eu},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((b=w.id)!==null&&b!==void 0?b:ga("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=SC(g.triggeredAfterMouseMove,(_=w.throttleDelay)!==null&&_!==void 0?_:1e3/60),g.state={},g}return xX(v,d),gX(v,[{key:"componentDidMount",value:function(){var b,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,_=b.children,g=b.data,x=b.height,S=b.layout,A=_r(_,gn);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Zg(this.state,g,T,C),E=this.state.tooltipTicks[T].coordinate,M=(this.state.offset.top+x)/2,$=S==="horizontal",j=$?{x:E,y:M}:{y:E,x:M},k=this.state.formattedGraphicalItems.find(function(q){var F=q.item;return F.type.name==="Scatter"});k&&(j=X(X({},j),k.props.points[T].tooltipPosition),P=k.props.points[T].tooltipPayload);var I={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:P,activeCoordinate:j};this.setState(I),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var g,x;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(b){Wy([_r(b.children,gn)],[_r(this.props.children,gn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=_r(this.props.children,gn);if(b&&typeof b.props.shared=="boolean"){var _=b.props.shared?"axis":"item";return s.indexOf(_)>=0?_:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var _=this.container,g=_.getBoundingClientRect(),x=R3(g),S={chartX:Math.round(b.pageX-x.left),chartY:Math.round(b.pageY-x.top)},A=g.width/_.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var C=this.state,P=C.xAxisMap,E=C.yAxisMap,M=this.getTooltipEventType(),$=FO(this.state,this.props.data,this.props.layout,T);if(M!=="axis"&&P&&E){var j=oi(P).scale,k=oi(E).scale,I=j&&j.invert?j.invert(S.chartX):null,q=k&&k.invert?k.invert(S.chartY):null;return X(X({},S),{},{xValue:I,yValue:q},$)}return $?X(X({},S),$):null}},{key:"inRange",value:function(b,_){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,S=b/g,A=_/g;if(x==="horizontal"||x==="vertical"){var T=this.state.offset,C=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return C?{x:S,y:A}:null}var P=this.state,E=P.angleAxisMap,M=P.radiusAxisMap;if(E&&M){var $=oi(E);return XS({x:S,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,_=this.getTooltipEventType(),g=_r(b,gn),x={};g&&_==="axis"&&(g.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=Lu(this.props,this.handleOuterEvent);return X(X({},S),x)}},{key:"addListener",value:function(){Xm.on(Vm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Xm.removeListener(Vm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,_,g){for(var x=this.state.formattedGraphicalItems,S=0,A=x.length;S<A;S++){var T=x[S];if(T.item===b||T.props.key===b.key||_===qn(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,_=this.state.offset,g=_.left,x=_.top,S=_.height,A=_.width;return O.createElement("defs",null,O.createElement("clipPath",{id:b},O.createElement("rect",{x:g,y:x,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(_,g){var x=LO(g,2),S=x[0],A=x[1];return X(X({},_),{},pt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(_,g){var x=LO(g,2),S=x[0],A=x[1];return X(X({},_),{},pt({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(b){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(b){var _=this.state,g=_.formattedGraphicalItems,x=_.activeItem;if(g&&g.length)for(var S=0,A=g.length;S<A;S++){var T=g[S],C=T.props,P=T.item,E=P.type.defaultProps!==void 0?X(X({},P.type.defaultProps),P.props):P.props,M=qn(P.type);if(M==="Bar"){var $=(C.data||[]).find(function(q){return T6(b,q)});if($)return{graphicalItem:T,payload:$}}else if(M==="RadialBar"){var j=(C.data||[]).find(function(q){return XS(b,q)});if(j)return{graphicalItem:T,payload:j}}else if(Vc(T,x)||Zc(T,x)||pl(T,x)){var k=mG({graphicalItem:T,activeTooltipItem:x,itemData:E.data}),I=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:X(X({},T),{},{childIndex:I}),payload:pl(T,x)?E.data[k]:T.props.data[k]}}}return null}},{key:"render",value:function(){var b=this;if(!Cw(this))return null;var _=this.props,g=_.children,x=_.className,S=_.width,A=_.height,T=_.style,C=_.compact,P=_.title,E=_.desc,M=BO(_,cX),$=vt(M,!1);if(C)return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Gy,Da({},$,{width:S,height:A,title:P,desc:E}),this.renderClipPath(),kw(g,this.renderMap)));if(this.props.accessibilityLayer){var j,k;$.tabIndex=(j=this.props.tabIndex)!==null&&j!==void 0?j:0,$.role=(k=this.props.role)!==null&&k!==void 0?k:"application",$.onKeyDown=function(q){b.accessibilityManager.keyboardEvent(q)},$.onFocus=function(){b.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Da({className:Pt("recharts-wrapper",x),style:X({position:"relative",cursor:"default",width:S,height:A},T)},I,{ref:function(F){b.container=F}}),O.createElement(Gy,Da({},$,{width:S,height:A,title:P,desc:E,style:PX}),this.renderClipPath(),kw(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);pt(y,"displayName",r),pt(y,"defaultProps",X({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),pt(y,"getDerivedStateFromProps",function(d,v){var w=d.dataKey,b=d.data,_=d.children,g=d.width,x=d.height,S=d.layout,A=d.stackOffset,T=d.margin,C=v.dataStartIndex,P=v.dataEndIndex;if(v.updateId===void 0){var E=zO(d);return X(X(X({},E),{},{updateId:0},p(X(X({props:d},E),{},{updateId:0}),v)),{},{prevDataKey:w,prevData:b,prevWidth:g,prevHeight:x,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(w!==v.prevDataKey||b!==v.prevData||g!==v.prevWidth||x!==v.prevHeight||S!==v.prevLayout||A!==v.prevStackOffset||!Ua(T,v.prevMargin)){var M=zO(d),$={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},j=X(X({},FO(v,b,S)),{},{updateId:v.updateId+1}),k=X(X(X({},M),$),j);return X(X(X({},k),p(X({props:d},k),v)),{},{prevDataKey:w,prevData:b,prevWidth:g,prevHeight:x,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(!Wy(_,v.prevChildren)){var I,q,F,N,D=_r(_,fo),L=D&&(I=(q=D.props)===null||q===void 0?void 0:q.startIndex)!==null&&I!==void 0?I:C,G=D&&(F=(N=D.props)===null||N===void 0?void 0:N.endIndex)!==null&&F!==void 0?F:P,Y=L!==C||G!==P,z=!gt(b),V=z&&!Y?v.updateId:v.updateId+1;return X(X({updateId:V},p(X(X({props:d},v),{},{updateId:V,dataStartIndex:L,dataEndIndex:G}),v)),{},{prevChildren:_,dataStartIndex:L,dataEndIndex:G})}return null}),pt(y,"renderActiveDot",function(d,v,w){var b;return O.isValidElement(d)?b=O.cloneElement(d,v):bt(d)?b=d(v):b=O.createElement(Xc,v),O.createElement(It,{className:"recharts-active-dot",key:w},b)});var m=O.forwardRef(function(v,w){return O.createElement(y,Da({},v,{ref:w}))});return m.displayName=y.displayName,m},LX=NX({chartName:"ComposedChart",GraphicalChild:[af,Oi,Io,sf],axisComponents:[{axisType:"xAxis",AxisComp:lf},{axisType:"yAxis",AxisComp:uf},{axisType:"zAxis",AxisComp:of}],formatAxisMap:s4});const es=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},BX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),qX=e=>new Intl.NumberFormat("en-US").format(e);function FX(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return es()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&es()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return es()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(es()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(es()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:l}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],p=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),u=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||BX,[n]),f=O.useMemo(()=>i||qX,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:l,maxTotalValue:u,dateFormatter:c,valueFormatter:f}}function zX(e,t){const r=t-1-e,n=ds.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return ds[a]??ds[0]??"#000000"}function UX(e){return Array.from({length:e},(t,r)=>zX(r,e))}const Ma=UX(5),Rn={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:lr.neoDigitalGreen[600],inProgress:"#007bff",farthest:Ma[0],far:Ma[1],close:Ma[2],closest:Ma[3],completed:Ma[4],primary:"#007bff",secondary:"#6c757d",success:lr.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:lr.neoGrey[200],dark:"#343a40"},Mt={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:lr.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:lr.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},WX={migration:Ma,severity:[Rn.critical,Rn.high,Rn.medium,Rn.low,Rn.info],status:[Rn.danger,Rn.warning,Rn.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},HX={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},GX=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=Mt.display.showHeader,height:o=Mt.dimensions.height,width:s=Mt.dimensions.width,showLegend:l=Mt.display.showLegend,showTooltip:u=Mt.display.showTooltip,showXAxis:c=Mt.display.showXAxis,showYAxis:f=Mt.display.showYAxis,showGrid:h=Mt.display.showGrid,enableAnimation:p=Mt.animation.enabled,animationDuration:y=Mt.animation.duration,animationEasing:m=Mt.animation.easing,formatDate:d,formatValue:v,tooltipFormatter:w,slotProps:b,margin:_=Mt.margin,curveType:g=Mt.curve.type,stackOffset:x=Mt.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:T=!1,zoomToSelection:C=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:M,valueFormatter:$}=FX({data:e,categories:t,formatDate:d,formatValue:v}),[j,k]=O.useState(null),[I,q]=O.useState(!1),[F,N]=O.useState(null),[D,L]=O.useState(null),G=O.useRef(null),Y=S?[S[0],S[1]]:["dataMin","dataMax"],z=P.length>0?P[0].timestamp:0,V=P.length>0?P[P.length-1].timestamp:0,Q=O.useCallback((at,dt)=>{const xt=at/dt*100,$t=V-z;return z+xt/100*$t},[z,V]),K=O.useCallback(at=>{const dt=V-z;return dt===0?0:(at-z)/dt*100},[z,V]),B=O.useCallback(at=>{if(!T)return;const dt=at.currentTarget.getBoundingClientRect(),xt=at.clientX-dt.left,$t=Q(xt,dt.width);q(!0),N($t),L($t)},[T,Q]),H=O.useCallback(at=>{if(!G.current)return;const dt=at.currentTarget.getBoundingClientRect(),xt=at.clientX-dt.left,$t=dt.width,Ht=Q(xt,$t);if(I)F!==null&&L(Ht);else{const kt=r.find(Oe=>Math.abs(Oe.timestamp-Ht)<2592e5);k((kt==null?void 0:kt.timestamp)??null)}},[I,F,Q,r]),Z=O.useCallback(()=>{if(I&&F!==null&&D!==null&&A){const at=Math.min(F,D),dt=Math.max(F,D);at!==dt&&A([at,dt])}q(!1),N(null),L(null)},[I,F,D,A]),R=O.useCallback(()=>{Z(),k(null)},[Z]),U=(C?I:!0)&&I&&F!==null&&D!==null?{left:K(Math.min(F,D)),width:Math.abs(K(D)-K(F))}:null,ft=(S?P.filter(at=>at.timestamp>=S[0]&&at.timestamp<=S[1]):P).slice().reverse().map(at=>{const dt=r.find(xt=>xt.timestamp===at.timestamp);return dt&&dt.label?{...at,__markerLabel:dt.label}:at}),st=at=>M(at),ht=at=>$(at),Et=({active:at,payload:dt,label:xt})=>{if(!at||!dt||dt.length===0)return null;const $t=ft.find(St=>St.timestamp===xt);if($t&&"__markerLabel"in $t){const kt=String($t.__markerLabel).split(" - "),Oe=kt[0]||"",Cr=kt[1]||"";return W.jsxs(tt.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[W.jsx(tt.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Cr}),W.jsx(tt.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:Oe})]})}return W.jsxs(tt.Box,{sx:{backgroundColor:Mt.tooltip.backgroundColor,border:`${Mt.tooltip.borderWidth}px solid ${Mt.tooltip.borderColor}`,borderRadius:Mt.tooltip.borderRadius,padding:Mt.tooltip.padding},children:[W.jsx(tt.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:M(xt)}),dt.map((St,kt)=>W.jsxs(tt.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[W.jsx(tt.Box,{sx:{width:10,height:10,backgroundColor:St.color,borderRadius:"2px"}}),W.jsxs(tt.Typography,{sx:{fontSize:"14px"},children:[St.name,": ",$(St.value)]})]},`item-${kt}`))]})};return W.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&W.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&W.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&W.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),W.jsxs(tt.Box,{ref:G,sx:{width:"100%",height:`${o}px`,minHeight:Mt.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[W.jsx(P3,{width:s,height:"100%",children:W.jsxs(LX,{data:ft,margin:_,stackOffset:x,children:[h&&W.jsx(NM,{strokeDasharray:"3 3",stroke:Mt.axis.strokeColor,opacity:.3}),c&&W.jsx(lf,{dataKey:"timestamp",type:"number",domain:Y,tickFormatter:st,stroke:Mt.axis.strokeColor,tick:{fill:Mt.axis.tickColor},scale:"time"}),f&&W.jsx(uf,{tickFormatter:ht,stroke:Mt.axis.strokeColor,tick:{fill:Mt.axis.tickColor}}),u&&W.jsx(gn,{content:W.jsx(Et,{})}),l&&W.jsx(Ji,{iconSize:Mt.legend.iconSize,iconType:Mt.legend.iconType,layout:Mt.legend.layout,align:Mt.legend.align,verticalAlign:Mt.legend.verticalAlign}),E.map((at,dt)=>W.jsx(Oi,{type:g,dataKey:at.dataKey,name:at.label,stackId:"1",stroke:at.color,fill:at.strokeDasharray?"transparent":at.color,fillOpacity:at.strokeDasharray?0:at.fillOpacity??.7,strokeWidth:at.strokeWidth??2,strokeDasharray:at.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-dt)*100:0},at.dataKey)),r.filter(at=>j===null||at.timestamp===j).map((at,dt)=>W.jsx(Qc,{x:at.timestamp,stroke:at.color??Mt.marker.strokeColor,strokeWidth:at.strokeWidth??Mt.marker.strokeWidth,strokeDasharray:at.strokeDasharray??Mt.marker.strokeDasharray,strokeOpacity:j===null?0:1},`marker-${at.timestamp}-${dt}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&W.jsxs(tt.Box,{sx:{position:"absolute",top:_.top||0,left:_.left||0,right:_.right||0,bottom:_.bottom||0,cursor:I?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:B,onMouseMove:H,onMouseUp:Z,onMouseLeave:R,children:[U&&W.jsx(tt.Box,{sx:{position:"absolute",left:`${U.left}%`,width:`${U.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),j&&W.jsx(W.Fragment,{children:r.filter(at=>at.timestamp===j).map(at=>W.jsx(tt.Box,{sx:{position:"absolute",left:`${K(at.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:at.label||M(at.timestamp)},`tooltip-${at.timestamp}`))})]})]})]})},mn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(31, 41, 55, 0.14)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},KX=(e="#4B5563")=>({startHandle:{sx:{position:"absolute",left:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}},endHandle:{sx:{position:"absolute",right:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}}}),tn={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:mn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${mn.dimensions.height}px`,backgroundColor:mn.colors.background,borderRadius:0,overflow:"visible",border:`1px solid ${mn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${mn.dimensions.eventWidth}px`,height:"100%",backgroundColor:mn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:mn.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${mn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:mn.colors.tooltipText,fontSize:"11px"}}},YX=(e="#9CA3AF")=>({startHandle:{sx:{position:"absolute",left:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}},endHandle:{sx:{position:"absolute",right:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}}}),XX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},VX=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{XX()&&e.length>1&&(e.every((V,Q)=>Q===0||V.timestamp>=e[Q-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,l]=O.useState(!1),[u,c]=O.useState(null),[f,h]=O.useState(null),[p,y]=O.useState({start:null,end:null}),[m,d]=O.useState({start:null,end:null}),[v,w]=O.useState(null),b=O.useRef(null),_=t??p,g=a??m,x=O.useMemo(()=>{var z;return e.length>0?((z=e[0])==null?void 0:z.timestamp)??0:0},[e]),S=O.useMemo(()=>{var z;return e.length>0?((z=e[e.length-1])==null?void 0:z.timestamp)??0:0},[e]),A=O.useMemo(()=>i&&g.start&&g.end?g.start:x,[i,g,x]),T=O.useMemo(()=>i&&g.start&&g.end?g.end:S,[i,g,S]),C=O.useMemo(()=>T-A,[T,A]),P=O.useMemo(()=>!n&&_.start!==null&&_.end!==null,[n,_]),E=O.useCallback(z=>C===0?0:(z-A)/C*100,[A,C]),M=O.useCallback((z,V)=>{const Q=z/V*100;return A+Q/100*C},[A,C]),$=O.useCallback(z=>{t===void 0&&y(z),r==null||r(z)},[t,r]),j=O.useCallback(z=>{const V=z.currentTarget.getBoundingClientRect(),Q=z.clientX-V.left,K=M(Q,V.width);l(!0),c(K),$({start:K,end:K})},[M,$]),k=O.useCallback(z=>{if(!s||u===null)return;const V=z.currentTarget.getBoundingClientRect(),Q=z.clientX-V.left,K=M(Q,V.width);if(f==="start"){const B=Math.min(K,_.end-C*.01);$({start:Math.max(B,A),end:_.end})}else if(f==="end"){const B=Math.max(K,_.start+C*.01);$({start:_.start,end:Math.min(B,T)})}else if(f==="body"){const B=K-u,H=_.end-_.start;let Z=_.start+B,R=_.end+B;Z<A&&(Z=A,R=A+H),R>T&&(R=T,Z=T-H),$({start:Z,end:R}),c(K)}else $({start:Math.min(u,K),end:Math.max(u,K)})},[s,u,f,_,C,A,T,M,$]),I=O.useCallback(()=>{const z=s;if(l(!1),h(null),z&&i&&_.start&&_.end&&_.start!==_.end){const V={start:_.start,end:_.end};a===void 0&&d(V),o==null||o(V)}},[s,i,_,a,o]);O.useEffect(()=>{if(!s||u===null||!b.current)return;const z=Q=>{const K=b.current;if(!K)return;const B=K.getBoundingClientRect(),H=Q.clientX-B.left,Z=M(H,B.width);if(f==="start"){const R=Math.min(Z,_.end-C*.01);$({start:Math.max(R,A),end:_.end})}else if(f==="end"){const R=Math.max(Z,_.start+C*.01);$({start:_.start,end:Math.min(R,T)})}else if(f==="body"){const R=Z-u,ot=_.end-_.start;let U=_.start+R,nt=_.end+R;U<A&&(U=A,nt=A+ot),nt>T&&(nt=T,U=T-ot),$({start:U,end:nt}),c(Z)}else $({start:Math.min(u,Z),end:Math.max(u,Z)})},V=()=>{I()};return document.addEventListener("mousemove",z),document.addEventListener("mouseup",V),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",V)}},[s,u,f,_,C,A,T,M,$,I]);const q=O.useCallback(z=>{z.stopPropagation(),_.start!==null&&(l(!0),c(_.start),h("start"))},[_]),F=O.useCallback(z=>{z.stopPropagation(),_.end!==null&&(l(!0),c(_.end),h("end"))},[_]),N=O.useCallback(z=>{z.stopPropagation();const V=b.current;if(!V)return;const Q=V.getBoundingClientRect(),K=z.clientX-Q.left,B=M(K,Q.width);l(!0),c(B),h("body")},[M]),D=O.useCallback(z=>{if(z.cancelable&&n&&z.preventDefault(),!n||!_.start||!_.end||C===0)return;const V=(_.start+_.end)/2,Q=_.end-_.start,K=z.deltaY>0?1.1:.9,B=Math.max(Q*K,C*.01),H=C*1.5,Z=Math.min(B,H);let R=V-Z/2,ot=V+Z/2;R<A&&(R=A,ot=Math.min(A+Z,T)),ot>T&&(ot=T,R=Math.max(T-Z,A)),$({start:R,end:ot})},[n,_,C,A,T,$]),L=O.useCallback(()=>!_.start||!_.end?[]:e.filter(z=>z.timestamp>=_.start&&z.timestamp<=_.end),[e,_]),G=O.useCallback(()=>{const z={start:x,end:S};a===void 0&&d({start:null,end:null}),o==null||o(z)},[x,S,a,o]),Y=O.useCallback(()=>{i&&G()},[i,G]);return{isDragging:s,dragStart:u,dragHandleType:f,internalSelectedRange:_,internalVisibleRange:g,hoveredEvent:v,minDate:A,maxDate:T,timeSpan:C,timelineContainerRef:b,getPositionFromTimestamp:E,getTimestampFromPosition:M,handleMouseDown:j,handleMouseMove:k,handleMouseUp:I,handleWheel:D,handleDoubleClick:Y,handleStartHandleMouseDown:q,handleEndHandleMouseDown:F,handleSelectionBodyMouseDown:N,setHoveredEvent:w,getEventsInRange:L,resetZoom:G,showHandles:P}},ZX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),JX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),QX=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},tV=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},eV=(e,t="arrow",r)=>{const n=t==="grip"?YX(r||"#9CA3AF"):KX(r||"#4B5563");return{header:{...tn.header,...e==null?void 0:e.header},title:{...tn.title,...e==null?void 0:e.title},instructions:{...tn.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...tn.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...tn.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...tn.timeline,...e==null?void 0:e.timeline},event:{...tn.event,...e==null?void 0:e.event},selection:{...tn.selection,...e==null?void 0:e.selection},startHandle:{...n.startHandle,...e==null?void 0:e.startHandle},endHandle:{...n.endHandle,...e==null?void 0:e.endHandle},tooltip:{...tn.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...tn.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...tn.tooltipDate,...e==null?void 0:e.tooltipDate}}},rV=({events:e,onSelectionChange:t,selectedRange:r,height:n=mn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=ZX,formatMonthYear:o=JX,showMonthLabels:s=!0,monthLabelCount:l=6,enableZoom:u=!0,dragHandleVariant:c="arrow",dragHandleColor:f,showHeader:h=!0,title:p="Event Timeline Selector",zoomToSelection:y=!1,visibleRange:m,onVisibleRangeChange:d,timeRange:v,onTimeRangeChange:w,slotProps:b})=>{const _=v?{start:v[0],end:v[1]}:m,g=w?z=>{z.start!==null&&z.end!==null&&w([z.start,z.end])}:d;tV()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const x=O.useMemo(()=>eV(b,c,f),[b,c,f]),{isDragging:S,dragHandleType:A,internalSelectedRange:T,hoveredEvent:C,minDate:P,timeSpan:E,timelineContainerRef:M,getPositionFromTimestamp:$,handleMouseDown:j,handleWheel:k,handleDoubleClick:I,handleStartHandleMouseDown:q,handleEndHandleMouseDown:F,handleSelectionBodyMouseDown:N,setHoveredEvent:D,getEventsInRange:L,showHandles:G}=VX({events:e,selectedRange:r,onSelectionChange:t,enableZoom:u,zoomToSelection:y,visibleRange:_,onVisibleRangeChange:g}),Y=T.start&&T.end?`Selected: ${a(T.start)} - ${a(T.end)} (${L().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return W.jsxs(tt.Stack,{sx:{width:"100%"},children:[h&&W.jsxs(tt.Stack,{spacing:1,sx:{mb:3},...x.header,children:[W.jsx(tt.Typography,{variant:"h5",...x.title,children:p}),W.jsx(tt.Typography,{variant:"body2",...x.instructions,children:Y})]}),s&&W.jsx(tt.Stack,{direction:"row",...x.monthLabelsContainer,sx:{...x.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:l},(z,V)=>{const Q=P+E/(l-1)*V,K=QX(E);return W.jsx(tt.Typography,{variant:"caption",...x.monthLabel,children:K(Q)},V)})}),W.jsxs(tt.Box,{...x.timeline,sx:{...x.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[W.jsx(tt.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((z,V)=>{const Q=$(z.timestamp);return W.jsx(tt.Box,{onMouseEnter:()=>D(z),onMouseLeave:()=>D(null),"aria-label":`Event: ${z.eventName} at ${a(z.timestamp)}`,...x.event,sx:{...x.event.sx,left:`${Q}%`,transform:(C==null?void 0:C.timestamp)===z.timestamp?"scaleX(2)":"scaleX(1)"}},`${z.timestamp}-${V}`)})}),T.start&&T.end&&(!y||S)&&W.jsx(tt.Box,{...x.selection,onMouseDown:G&&!S?N:void 0,sx:{...x.selection.sx,left:`${$(T.start)}%`,width:`${$(T.end)-$(T.start)}%`,pointerEvents:G?"all":"none",zIndex:2,cursor:G&&!S?A==="body"?"grabbing":"grab":"default"},children:G&&!(S&&A===null)&&W.jsxs(W.Fragment,{children:[W.jsx(tt.Box,{...x.startHandle,onMouseDown:q,sx:{...x.startHandle.sx,cursor:"ew-resize",opacity:S&&A!=="start"?.5:1},"aria-label":"Drag to adjust start of selection"}),W.jsx(tt.Box,{...x.endHandle,onMouseDown:F,sx:{...x.endHandle.sx,cursor:"ew-resize",opacity:S&&A!=="end"?.5:1},"aria-label":"Drag to adjust end of selection"})]})}),W.jsx(tt.Box,{ref:M,role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":h?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair",pointerEvents:"all",zIndex:1},onMouseDown:j,onWheel:k,onDoubleClick:I}),!h&&W.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:Y}),C&&W.jsxs(tt.Box,{role:"tooltip","aria-live":"polite",...x.tooltip,sx:{...x.tooltip.sx,left:`${$(C.timestamp)}%`,transform:"translateX(-50%)"},children:[W.jsx(tt.Typography,{variant:"body2",...x.tooltipEventName,children:C.eventName}),W.jsx(tt.Typography,{variant:"caption",...x.tooltipDate,children:a(C.timestamp)})]})]})]})},nV="#8b5cf6",iV=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),aV=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=iV,primaryColor:i=nV})=>e.length===0?null:W.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[W.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),W.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>W.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[W.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),W.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=bs;exports.CAMPAIGN_NOT_APPLICABLE=gs;exports.CAMPAIGN_NO_LST=vs;exports.CATEGORY_LABELS=HX;exports.ChronoChart=PE;exports.ChronoPerspectiveChart=PE;exports.D3StackedAreaChart=kL;exports.DEFAULT_CHART_COLORS=lr;exports.DEFAULT_CHART_CONFIG=Ye;exports.DEFAULT_STACKED_AREA_COLORS=Rn;exports.DEFAULT_STACKED_AREA_CONFIG=Mt;exports.MEASURE_GRADIENT_COLORS=ds;exports.MODERNE_VULNERABILITY_COLORS=za;exports.MorphChart=hE;exports.ParliamentChart=QF;exports.STACKED_AREA_PALETTES=WX;exports.StackedAreaChart=GX;exports.TimelineChart=rV;exports.TimelineSelectedEvents=aV;exports.calculateDataSeries=sC;exports.calculateOptimalArcAngle=Vv;exports.calculateOptimalSeatSize=Zv;