@moderneinc/react-charts 1.2.0-next.54ab37 → 1.2.0-next.6f6307

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.
Files changed (3) hide show
  1. package/dist/index.cjs +48 -48
  2. package/dist/index.js +4458 -4584
  3. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,18 +1,18 @@
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 Uo=(e,t,r)=>pk(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),tt=require("@mui/material"),O=require("react"),HO=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 Hr=dk(O);function mk(e){return e}var bf=1,_f=2,ty=3,as=4,q0=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 GO(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===bf||e===as?-1:1,c=e===as||e===_f?"x":"y",f=e===bf||e===ty?yk:gk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),d=i??(t.tickFormat?t.tickFormat.apply(t,r):mk),m=Math.max(a,0)+s,v=t.range(),x=+v[0]+u,b=+v[v.length-1]+u,_=(t.bandwidth?bk:vk)(t.copy(),u),g=p.selection?p.selection():p,w=g.selectAll(".domain").data([null]),S=g.selectAll(".tick").data(y,t).order(),A=S.exit(),T=S.enter().append("g").attr("class","tick"),M=S.select("line"),P=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(T),M=M.merge(T.append("line").attr("stroke","currentColor").attr(c+"2",l*a)),P=P.merge(T.append("text").attr("fill","currentColor").attr(c,l*m).attr("dy",e===bf?"0em":e===ty?"0.71em":"0.32em")),p!==g&&(w=w.transition(p),S=S.transition(p),M=M.transition(p),P=P.transition(p),A=A.transition(p).attr("opacity",q0).attr("transform",function(E){return isFinite(E=_(E))?f(E+u):this.getAttribute("transform")}),T.attr("opacity",q0).attr("transform",function(E){var C=this.parentNode.__axis;return f((C&&isFinite(C=C(E))?C:_(E))+u)})),A.remove(),w.attr("d",e===as||e===_f?o?"M"+l*o+","+x+"H"+u+"V"+b+"H"+l*o:"M"+u+","+x+"V"+b:o?"M"+x+","+l*o+"V"+u+"H"+b+"V"+l*o:"M"+x+","+u+"H"+b),S.attr("opacity",1).attr("transform",function(E){return f(_(E)+u)}),M.attr(c+"2",l*a),P.attr(c,l*m).text(d),g.filter(_k).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===_f?"start":e===as?"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?(u=+p,h):u},h}function Cs(e){return GO(ty,e)}function Ms(e){return GO(as,e)}var xk={value:()=>{}};function tv(){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 il(r)}function il(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}})}il.prototype=tv.prototype={constructor:il,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]=F0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=F0(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 il(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 F0(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 ey="http://www.w3.org/1999/xhtml";const z0={svg:"http://www.w3.org/2000/svg",xhtml:ey,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ac(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),z0.hasOwnProperty(t)?{space:z0[t],local:e}:e}function Ak(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ey&&t.documentElement.namespaceURI===ey?t.createElement(e):t.createElementNS(r,e)}}function Ok(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function KO(e){var t=Ac(e);return(t.local?Ok:Ak)(t)}function Tk(){}function ev(e){return e==null?Tk:function(){return this.querySelector(e)}}function Pk(e){typeof e!="function"&&(e=ev(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 Mr(n,this._parents)}function Ek(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ck(){return[]}function XO(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=XO(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 Mr(n,i)}function YO(e){return function(){return this.matches(e)}}function VO(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:VO(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:VO(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]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new Mr(n,this._parents)}function ZO(e){return new Array(e.length)}function Fk(){return new Mr(this._enter||this._groups.map(ZO),this._parents)}function fl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}fl.prototype={constructor:fl,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,u=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new fl(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function Wk(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 fl(e,a[s]);for(s=0;s<c;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}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),u=new Array(a),l=0;l<a;++l){var c=n[l],f=i[l],h=f.length,p=Kk(e.call(c,c&&c.__data__,l,n)),y=p.length,d=s[l]=new Array(y),m=o[l]=new Array(y),v=u[l]=new Array(h);r(c,f,d,m,v,p,t);for(var x=0,b=0,_,g;x<y;++x)if(_=d[x]){for(x>=b&&(b=x+1);!(g=m[b])&&++b<y;);_._next=g||null}}return o=new Mr(o,n),o._enter=s,o._exit=u,o}function Kk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xk(){return new Mr(this._exit||this._groups.map(ZO),this._parents)}function Yk(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),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 Mr(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,u=i[a]=new Array(s),l,c=0;c<s;++c)(l=o[c])&&(u[c]=l);u.sort(t)}return new Mr(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 u2(e,t){return function(){this.setAttribute(e,t)}}function l2(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=Ac(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?l2:u2)(r,t))}function JO(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??"")):Ka(this.node(),e)}function Ka(e,t){return e.style.getPropertyValue(t)||JO(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 QO(e){return e.trim().split(/^|\s+/)}function rv(e){return e.classList||new tT(e)}function tT(e){this._node=e,this._names=QO(e.getAttribute("class")||"")}tT.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 eT(e,t){for(var r=rv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function rT(e,t){for(var r=rv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function x2(e){return function(){eT(this,e)}}function w2(e){return function(){rT(this,e)}}function S2(e,t){return function(){(t.apply(this,arguments)?eT:rT)(this,e)}}function A2(e,t){var r=QO(e+"");if(arguments.length<2){for(var n=rv(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:KO(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:KO(e),n=t==null?L2:typeof t=="function"?t:ev(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 X2(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 Y2(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 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?Y2:X2,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function nT(e,t,r){var n=JO(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 nT(this,e,t)}}function J2(e,t){return function(){return nT(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 iT=[null];function Mr(e,t){this._groups=e,this._parents=t}function Co(){return new Mr([[document.documentElement]],iT)}function e$(){return this}Mr.prototype=Co.prototype={constructor:Mr,select:Pk,selectAll:kk,selectChild:Dk,selectChildren:Bk,filter:qk,data:Gk,enter:Fk,exit:Xk,join:Yk,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 ee(e){return typeof e=="string"?new Mr([[document.querySelector(e)]],[document.documentElement]):new Mr([[e]],iT)}function r$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ks(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 ry={capture:!0,passive:!1};function ny(e){e.preventDefault(),e.stopImmediatePropagation()}function n$(e){var t=e.document.documentElement,r=ee(e).on("dragstart.drag",ny,ry);"onselectstart"in t?r.on("selectstart.drag",ny,ry):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function i$(e,t){var r=e.document.documentElement,n=ee(e).on("dragstart.drag",null);t&&(n.on("click.drag",ny,ry),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 nv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function aT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function wu(){}var $s=.7,hl=1/$s,La="\\s*([+-]?\\d+)\\s*",js="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",On="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a$=/^#([0-9a-f]{3,8})$/,o$=new RegExp(`^rgb\\(${La},${La},${La}\\)$`),s$=new RegExp(`^rgb\\(${On},${On},${On}\\)$`),u$=new RegExp(`^rgba\\(${La},${La},${La},${js}\\)$`),l$=new RegExp(`^rgba\\(${On},${On},${On},${js}\\)$`),c$=new RegExp(`^hsl\\(${js},${On},${On}\\)$`),f$=new RegExp(`^hsla\\(${js},${On},${On},${js}\\)$`),U0={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};nv(wu,na,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:W0,formatHex:W0,formatHex8:h$,formatHsl:p$,formatRgb:H0,toString:H0});function W0(){return this.rgb().formatHex()}function h$(){return this.rgb().formatHex8()}function p$(){return oT(this).formatHsl()}function H0(){return this.rgb().formatRgb()}function na(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=a$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?G0(t):r===3?new sr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Nu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Nu(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 sr(t[1],t[2],t[3],1):(t=s$.exec(e))?new sr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=u$.exec(e))?Nu(t[1],t[2],t[3],t[4]):(t=l$.exec(e))?Nu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=c$.exec(e))?Y0(t[1],t[2]/100,t[3]/100,1):(t=f$.exec(e))?Y0(t[1],t[2]/100,t[3]/100,t[4]):U0.hasOwnProperty(e)?G0(U0[e]):e==="transparent"?new sr(NaN,NaN,NaN,0):null}function G0(e){return new sr(e>>16&255,e>>8&255,e&255,1)}function Nu(e,t,r,n){return n<=0&&(e=t=r=NaN),new sr(e,t,r,n)}function d$(e){return e instanceof wu||(e=na(e)),e?(e=e.rgb(),new sr(e.r,e.g,e.b,e.opacity)):new sr}function iy(e,t,r,n){return arguments.length===1?d$(e):new sr(e,t,r,n??1)}function sr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}nv(sr,iy,aT(wu,{brighter(e){return e=e==null?hl:Math.pow(hl,e),new sr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$s:Math.pow($s,e),new sr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sr(Yi(this.r),Yi(this.g),Yi(this.b),pl(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:K0,formatHex:K0,formatHex8:m$,formatRgb:X0,toString:X0}));function K0(){return`#${Fi(this.r)}${Fi(this.g)}${Fi(this.b)}`}function m$(){return`#${Fi(this.r)}${Fi(this.g)}${Fi(this.b)}${Fi((isNaN(this.opacity)?1:this.opacity)*255)}`}function X0(){const e=pl(this.opacity);return`${e===1?"rgb(":"rgba("}${Yi(this.r)}, ${Yi(this.g)}, ${Yi(this.b)}${e===1?")":`, ${e})`}`}function pl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fi(e){return e=Yi(e),(e<16?"0":"")+e.toString(16)}function Y0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new nn(e,t,r,n)}function oT(e){if(e instanceof nn)return new nn(e.h,e.s,e.l,e.opacity);if(e instanceof wu||(e=na(e)),!e)return new nn;if(e instanceof nn)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 nn(o,s,u,e.opacity)}function y$(e,t,r,n){return arguments.length===1?oT(e):new nn(e,t,r,n??1)}function nn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}nv(nn,y$,aT(wu,{brighter(e){return e=e==null?hl:Math.pow(hl,e),new nn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$s:Math.pow($s,e),new nn(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 sr(xf(e>=240?e-240:e+120,i,n),xf(e,i,n),xf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new nn(V0(this.h),Lu(this.s),Lu(this.l),pl(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=pl(this.opacity);return`${e===1?"hsl(":"hsla("}${V0(this.h)}, ${Lu(this.s)*100}%, ${Lu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function V0(e){return e=(e||0)%360,e<0?e+360:e}function Lu(e){return Math.max(0,Math.min(1,e||0))}function xf(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 iv=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?sT:function(t,r){return r-t?v$(t,r,e):iv(isNaN(t)?r:t)}}function sT(e,t){var r=t-e;return r?g$(e,r):iv(isNaN(e)?t:e)}const dl=(function e(t){var r=b$(t);function n(i,a){var o=r((i=iy(i)).r,(a=iy(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=sT(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 _$(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]=pa(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 rn(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]=pa(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ay=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wf=new RegExp(ay.source,"g");function O$(e){return function(){return e}}function T$(e){return function(t){return e(t)+""}}function uT(e,t){var r=ay.lastIndex=wf.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=ay.exec(e))&&(i=wf.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:rn(n,i)})),r=wf.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?T$(u[0].x):O$(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 pa(e,t){var r=typeof t,n;return t==null||r==="boolean"?iv(t):(r==="number"?rn:r==="string"?(n=na(t))?(t=n,dl):uT:t instanceof na?dl:t instanceof Date?S$:x$(t)?_$:Array.isArray(t)?w$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A$:rn)(e,t)}function av(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Z0=180/Math.PI,oy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lT(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)*Z0,skewX:Math.atan(u)*Z0,scaleX:o,scaleY:s}}var Bu;function P$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?oy:lT(t.a,t.b,t.c,t.d,t.e,t.f)}function E$(e){return e==null||(Bu||(Bu=document.createElementNS("http://www.w3.org/2000/svg","g")),Bu.setAttribute("transform",e),!(e=Bu.transform.baseVal.consolidate()))?oy:(e=e.matrix,lT(e.a,e.b,e.c,e.d,e.e,e.f))}function cT(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 d=p.push("translate(",null,t,null,r);y.push({i:d-4,x:rn(l,f)},{i:d-2,x:rn(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:rn(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:rn(l,c)}):c&&f.push(i(f)+"skewX("+c+n)}function u(l,c,f,h,p,y){if(l!==f||c!==h){var d=p.push(i(p)+"scale(",null,",",null,")");y.push({i:d-4,x:rn(l,f)},{i:d-2,x:rn(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,d=h.length,m;++y<d;)f[(m=h[y]).i]=m.x(p);return f.join("")}}}var C$=cT(P$,"px, ","px)","deg)"),M$=cT(E$,", ",")",")");function k$(e,t){t===void 0&&(t=e,e=pa);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 Xa=0,os=0,Wo=0,fT=1e3,ml,ss,yl=0,ia=0,Oc=0,Rs=typeof performance=="object"&&performance.now?performance:Date,hT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ov(){return ia||(hT($$),ia=Rs.now()+Oc)}function $$(){ia=0}function gl(){this._call=this._time=this._next=null}gl.prototype=pT.prototype={constructor:gl,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ov():+r)+(t==null?0:+t),!this._next&&ss!==this&&(ss?ss._next=this:ml=this,ss=this),this._call=e,this._time=r,sy()},stop:function(){this._call&&(this._call=null,this._time=1/0,sy())}};function pT(e,t,r){var n=new gl;return n.restart(e,t,r),n}function j$(){ov(),++Xa;for(var e=ml,t;e;)(t=ia-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Xa}function J0(){ia=(yl=Rs.now())+Oc,Xa=os=0;try{j$()}finally{Xa=0,D$(),ia=0}}function R$(){var e=Rs.now(),t=e-yl;t>fT&&(Oc-=t,yl=e)}function D$(){for(var e,t=ml,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:ml=r);ss=e,sy(n)}function sy(e){if(!Xa){os&&(os=clearTimeout(os));var t=e-ia;t>24?(e<1/0&&(os=setTimeout(J0,e-Rs.now()-Oc)),Wo&&(Wo=clearInterval(Wo))):(Wo||(yl=Rs.now(),Wo=setInterval(R$,fT)),Xa=1,hT(J0))}}function Q0(e,t,r){var n=new gl;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var I$=tv("start","end","cancel","interrupt"),N$=[],dT=0,tb=1,uy=2,al=3,eb=4,ly=5,ol=6;function Tc(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:dT})}function sv(e,t){var r=sn(e,t);if(r.state>dT)throw new Error("too late; already scheduled");return r}function Mn(e,t){var r=sn(e,t);if(r.state>al)throw new Error("too late; already running");return r}function sn(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=pT(a,0,r.time);function a(l){r.state=tb,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!==tb)return u();for(c in n)if(p=n[c],p.name===r.name){if(p.state===al)return Q0(o);p.state===eb?(p.state=ol,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=ol,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(Q0(function(){r.state===al&&(r.state=eb,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=uy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===uy){for(r.state=al,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=ly,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===ly&&(r.on.call("end",e,e.__data__,r.index,r.group),u())}function u(){r.state=ol,r.timer.stop(),delete n[t];for(var l in n)return;delete e.__transition}}function cy(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>uy&&n.state<ly,n.state=ol,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(){cy(this,e)})}function q$(e,t){var r,n;return function(){var i=Mn(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=Mn(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 z$(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=sn(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 uv(e,t,r){var n=e._id;return e.each(function(){var i=Mn(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return sn(i,n).value[t]}}function mT(e,t){var r;return(typeof t=="number"?rn:t instanceof na?dl:(r=na(t))?(t=r,dl):uT)(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),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 X$(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 Y$(e,t){var r=Ac(e),n=r==="transform"?M$:mT;return this.attrTween(e,typeof t=="function"?(r.local?X$:K$)(r,n,uv(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=Ac(e);return this.tween(r,(n.local?J$:Q$)(n,t))}function ej(e,t){return function(){sv(this,e).delay=+t.apply(this,arguments)}}function rj(e,t){return t=+t,function(){sv(this,e).delay=t}}function nj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ej:rj)(t,e)):sn(this.node(),t).delay}function ij(e,t){return function(){Mn(this,e).duration=+t.apply(this,arguments)}}function aj(e,t){return t=+t,function(){Mn(this,e).duration=t}}function oj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ij:aj)(t,e)):sn(this.node(),t).duration}function sj(e,t){if(typeof t!="function")throw new Error;return function(){Mn(this,e).ease=t}}function uj(e){var t=this._id;return arguments.length?this.each(sj(t,e)):sn(this.node(),t).ease}function lj(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Mn(this,e).ease=r}}function cj(e){if(typeof e!="function")throw new Error;return this.each(lj(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]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new Wn(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 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 Wn(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)?sv:Mn;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?sn(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=ev(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,Tc(l[h],t,r,h,l,sn(c,r)));return new Wn(a,this._parents,t,r)}function bj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=XO(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=sn(c,r),d=0,m=h.length;d<m;++d)(p=h[d])&&Tc(p,t,r,d,h,y);a.push(h),o.push(c)}return new Wn(a,o,t,r)}var _j=Co.prototype.constructor;function xj(){return new _j(this._groups,this._parents)}function wj(e,t){var r,n,i;return function(){var a=Ka(this,e),o=(this.style.removeProperty(e),Ka(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function yT(e){return function(){this.style.removeProperty(e)}}function Sj(e,t,r){var n,i=r+"",a;return function(){var o=Ka(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=Ka(this,e),s=r(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ka(this,e))),o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,s))}}function Oj(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var u=Mn(this,e),l=u.on,c=u.value[a]==null?s||(s=yT(t)):void 0;(l!==r||i!==c)&&(n=(r=l).copy()).on(o,i=c),u.on=n}}function Tj(e,t,r){var n=(e+="")=="transform"?C$:mT;return t==null?this.styleTween(e,wj(e,n)).on("end.style."+e,yT(e)):typeof t=="function"?this.styleTween(e,Aj(e,n,uv(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(uv(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=gT(),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=sn(u,t);Tc(u,e,r,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Wn(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},u={value:function(){--i===0&&a()}};r.each(function(){var l=Mn(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 Lj=0;function Wn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function lv(e){return Co().transition(e)}function gT(){return++Lj}var $n=Co.prototype;Wn.prototype=lv.prototype={constructor:Wn,select:vj,selectAll:bj,selectChild:$n.selectChild,selectChildren:$n.selectChildren,filter:fj,merge:hj,selection:xj,transition:Ij,call:$n.call,nodes:$n.nodes,node:$n.node,size:$n.size,empty:$n.empty,each:$n.each,on:mj,attr:Y$,attrTween:tj,style:Tj,styleTween:Cj,text:$j,textTween:Dj,remove:gj,tween:z$,delay:nj,duration:oj,ease:uj,easeVarying:cj,end:Nj,[Symbol.iterator]:$n[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 Wn?(t=e._id,e=e._name):(t=gT(),(r=qj).time=ov(),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])&&Tc(u,e,t,l,o,r||Fj(u,t));return new Wn(n,this._parents,e,t)}Co.prototype.interrupt=B$;Co.prototype.transition=zj;const Sf=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 Af(e){e.preventDefault(),e.stopImmediatePropagation()}var rb={name:"drag"},Of={name:"space"},Aa={name:"handle"},Oa={name:"center"};const{abs:nb,max:ze,min:Ue}=Math;function ib(e){return[+e[0],+e[1]]}function ab(e){return[ib(e[0]),ib(e[1])]}var sl={name:"x",handles:["w","e"].map(fy),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]]}},Tf={},jn={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"},ob={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},sb={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 fy(e){return{type:e}}function Kj(e){return!e.ctrlKey&&!e.button}function Xj(){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 Yj(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pf(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 Pc(){return Zj(sl)}function Zj(e){var t=Xj,r=Kj,n=Yj,i=!0,a=tv("start","brush","end"),o=6,s;function u(m){var v=m.property("__brush",d).selectAll(".overlay").data([fy("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",jn.overlay).merge(v).each(function(){var b=Pf(this).extent;ee(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])}),m.selectAll(".selection").data([fy("selection")]).enter().append("rect").attr("class","selection").attr("cursor",jn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var x=m.selectAll(".handle").data(e.handles,function(b){return b.type});x.exit().remove(),x.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return jn[b.type]}),m.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(m,v,x){m.tween?m.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),w=_.selection,S=e.input(typeof v=="function"?v.apply(this,arguments):v,_.extent),A=pa(w,S);function T(M){_.selection=M===1&&S===null?null:A(M),l.call(b),g.brush()}return w!==null&&S!==null?T:T(1)}):m.each(function(){var b=this,_=arguments,g=b.__brush,w=e.input(typeof v=="function"?v.apply(b,_):v,g.extent),S=c(b,_).beforestart();cy(b),g.selection=w===null?null:w,l.call(b),S.start(x).brush(x).end(x)})},u.clear=function(m,v){u.move(m,null,v)};function l(){var m=ee(this),v=Pf(this).selection;v?(m.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]),m.selectAll(".handle").style("display",null).attr("x",function(x){return x.type[x.type.length-1]==="e"?v[1][0]-o/2:v[0][0]-o/2}).attr("y",function(x){return x.type[0]==="s"?v[1][1]-o/2:v[0][1]-o/2}).attr("width",function(x){return x.type==="n"||x.type==="s"?v[1][0]-v[0][0]+o:o}).attr("height",function(x){return x.type==="e"||x.type==="w"?v[1][1]-v[0][1]+o:o})):m.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(m,v,x){var b=m.__brush.emitter;return b&&(!x||!b.clean)?b:new f(m,v,x)}function f(m,v,x){this.that=m,this.args=v,this.state=m.__brush,this.active=0,this.clean=x}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(m,v){return this.starting?(this.starting=!1,this.emit("start",m,v)):this.emit("brush",m),this},brush:function(m,v){return this.emit("brush",m,v),this},end:function(m,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",m,v)),this},emit:function(m,v,x){var b=ee(this.that).datum();a.call(m,this.that,new Uj(m,{sourceEvent:v,target:u,selection:e.output(this.state.selection),mode:x,dispatch:a}),b)}};function h(m){if(s&&!m.touches||!r.apply(this,arguments))return;var v=this,x=m.target.__data__.type,b=(i&&m.metaKey?x="overlay":x)==="selection"?rb:i&&m.altKey?Oa:Aa,_=e===Tf?null:Hj[x],g=e===sl?null:Gj[x],w=Pf(v),S=w.extent,A=w.selection,T=S[0][0],M,P,E=S[0][1],C,j,k=S[1][0],$,N,W=S[1][1],z,I,B=0,D=0,F,X=_&&g&&i&&m.shiftKey,L,Y,Z=Array.from(m.touches||[m],st=>{const ht=st.identifier;return st=ks(st,v),st.point0=st.slice(),st.identifier=ht,st});cy(v);var H=c(v,arguments,!0).beforestart();if(x==="overlay"){A&&(F=!0);const st=[Z[0],Z[1]||Z[0]];w.selection=A=[[M=e===Tf?T:Ue(st[0][0],st[1][0]),C=e===sl?E:Ue(st[0][1],st[1][1])],[$=e===Tf?k:ze(st[0][0],st[1][0]),z=e===sl?W:ze(st[0][1],st[1][1])]],Z.length>1&&J(m)}else M=A[0][0],C=A[0][1],$=A[1][0],z=A[1][1];P=M,j=C,N=$,I=z;var q=ee(v).attr("pointer-events","none"),K=q.selectAll(".overlay").attr("cursor",jn[x]);if(m.touches)H.moved=R,H.ended=U;else{var Q=ee(m.view).on("mousemove.brush",R,!0).on("mouseup.brush",U,!0);i&&Q.on("keydown.brush",ot,!0).on("keyup.brush",yt,!0),n$(m.view)}l.call(v),H.start(m,b.name);function R(st){for(const ht of st.changedTouches||[st])for(const ft of Z)ft.identifier===ht.identifier&&(ft.cur=ks(ht,v));if(X&&!L&&!Y&&Z.length===1){const ht=Z[0];nb(ht.cur[0]-ht[0])>nb(ht.cur[1]-ht[1])?Y=!0:L=!0}for(const ht of Z)ht.cur&&(ht[0]=ht.cur[0],ht[1]=ht.cur[1]);F=!0,Af(st),J(st)}function J(st){const ht=Z[0],ft=ht.point0;var Ot;switch(B=ht[0]-ft[0],D=ht[1]-ft[1],b){case Of:case rb:{_&&(B=ze(T-M,Ue(k-$,B)),P=M+B,N=$+B),g&&(D=ze(E-C,Ue(W-z,D)),j=C+D,I=z+D);break}case Aa:{Z[1]?(_&&(P=ze(T,Ue(k,Z[0][0])),N=ze(T,Ue(k,Z[1][0])),_=1),g&&(j=ze(E,Ue(W,Z[0][1])),I=ze(E,Ue(W,Z[1][1])),g=1)):(_<0?(B=ze(T-M,Ue(k-M,B)),P=M+B,N=$):_>0&&(B=ze(T-$,Ue(k-$,B)),P=M,N=$+B),g<0?(D=ze(E-C,Ue(W-C,D)),j=C+D,I=z):g>0&&(D=ze(E-z,Ue(W-z,D)),j=C,I=z+D));break}case Oa:{_&&(P=ze(T,Ue(k,M-B*_)),N=ze(T,Ue(k,$+B*_))),g&&(j=ze(E,Ue(W,C-D*g)),I=ze(E,Ue(W,z+D*g)));break}}N<P&&(_*=-1,Ot=M,M=$,$=Ot,Ot=P,P=N,N=Ot,x in ob&&K.attr("cursor",jn[x=ob[x]])),I<j&&(g*=-1,Ot=C,C=z,z=Ot,Ot=j,j=I,I=Ot,x in sb&&K.attr("cursor",jn[x=sb[x]])),w.selection&&(A=w.selection),L&&(P=A[0][0],N=A[1][0]),Y&&(j=A[0][1],I=A[1][1]),(A[0][0]!==P||A[0][1]!==j||A[1][0]!==N||A[1][1]!==I)&&(w.selection=[[P,j],[N,I]],l.call(v),H.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,F),Q.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);q.attr("pointer-events","all"),K.attr("cursor",jn.overlay),w.selection&&(A=w.selection),Vj(A)&&(w.selection=null,l.call(v)),H.end(st,b.name)}function ot(st){switch(st.keyCode){case 16:{X=_&&g;break}case 18:{b===Aa&&(_&&($=N-B*_,M=P+B*_),g&&(z=I-D*g,C=j+D*g),b=Oa,J(st));break}case 32:{(b===Aa||b===Oa)&&(_<0?$=N-B:_>0&&(M=P-B),g<0?z=I-D:g>0&&(C=j-D),b=Of,K.attr("cursor",jn.selection),J(st));break}default:return}Af(st)}function yt(st){switch(st.keyCode){case 16:{X&&(L=Y=X=!1,J(st));break}case 18:{b===Oa&&(_<0?$=N:_>0&&(M=P),g<0?z=I:g>0&&(C=j),b=Aa,J(st));break}case 32:{b===Of&&(st.altKey?(_&&($=N-B*_,M=P+B*_),g&&(z=I-D*g,C=j+D*g),b=Oa):(_<0?$=N:_>0&&(M=P),g<0?z=I:g>0&&(C=j),b=Aa),K.attr("cursor",jn[x]),J(st));break}default:return}Af(st)}}function p(m){c(this,arguments).moved(m)}function y(m){c(this,arguments).ended(m)}function d(){var m=this.__brush||{selection:null};return m.extent=ab(t.apply(this,arguments)),m.dim=e,m}return u.extent=function(m){return arguments.length?(t=typeof m=="function"?m:Sf(ab(m)),u):t},u.filter=function(m){return arguments.length?(r=typeof m=="function"?m:Sf(!!m),u):r},u.touchable=function(m){return arguments.length?(n=typeof m=="function"?m:Sf(!!m),u):n},u.handleSize=function(m){return arguments.length?(o=+m,u):o},u.keyModifiers=function(m){return arguments.length?(i=!!m,u):i},u.on=function(){var m=a.on.apply(a,arguments);return m===a?u:m},u}function mi(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 cv(e){let t,r,n;e.length!==2?(t=mi,r=(s,u)=>mi(e(s),u),n=(s,u)=>e(s)-u):(t=e===mi||e===Jj?e:Qj,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 Qj(){return 0}function vT(e){return e===null?NaN:+e}function*tR(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eR=cv(mi),Su=eR.right;cv(vT).center;class ub 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(lb(this,t))}has(t){return super.has(lb(this,t))}set(t,r){return super.set(rR(this,t),r)}delete(t){return super.delete(nR(this,t))}}function lb({_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=mi){if(e===mi)return bT;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 bT(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),uR=Math.sqrt(2);function vl(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>=uR?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?vl(e,t,r*2):[s,u,l]}function hy(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?vl(t,e,r):vl(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 py(e,t,r){return t=+t,e=+e,r=+r,vl(e,t,r)[2]}function dy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?py(t,e,r):py(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function cb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function fb(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function _T(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?bT:aR(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));_T(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 lR(e,t,r){if(e=Float64Array.from(tR(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return fb(e);if(t>=1)return cb(e);var n,i=(n-1)*t,a=Math.floor(i),o=cb(_T(e,a).subarray(0,a+1)),s=fb(e.subarray(a+1));return o+(s-o)*(i-a)}}function cR(e,t,r=vT){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 Xr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Vn(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 my=Symbol("implicit");function fv(){var e=new ub,t=[],r=[],n=my;function i(a){let o=e.get(a);if(o===void 0){if(n!==my)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 ub;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 fv(t,r).unknown(n)},Xr.apply(i,arguments),i}function Ds(){var e=fv().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,d=p?n:i;a=(d-y)/Math.max(1,h-u+l*2),s&&(a=Math.floor(a)),y+=(d-y-a*(h-u))*c,o=a*(1-u),s&&(y=Math.round(y),o=Math.round(o));var m=fR(h).map(function(v){return y+a*v});return r(p?m.reverse():m)}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 Ds(t(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},Xr.apply(f(),arguments)}function xT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xT(t())},e}function ps(){return xT(Ds.apply(null,arguments).paddingInner(1))}function hR(e){return function(){return e}}function bl(e){return+e}var hb=[0,1];function er(e){return e}function yy(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=yy(i,n),a=r(o,a)):(n=yy(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]=yy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=Su(e,s,1,n)-1;return a[u](i[u](s))}}function Au(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ec(){var e=hb,t=hb,r=pa,n,i,a,o=er,s,u,l;function c(){var h=Math.min(e.length,t.length);return o!==er&&(o=pR(e[0],e[h-1])),s=h>2?mR:dR,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),rn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,bl),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=av,c()},f.clamp=function(h){return arguments.length?(o=h?!0:er,c()):o!==er},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 hv(){return Ec()(er,er)}function yR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _l(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 Ya(e){return e=_l(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],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 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 Is(e){if(!(t=bR.exec(e)))throw new Error("invalid format: "+e);var t;return new pv({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]})}Is.prototype=pv.prototype;function pv(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+""}pv.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 wT;function xR(e,t){var r=_l(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(wT=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")+_l(e,Math.max(0,t+a-1))[0]}function pb(e,t){var r=_l(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 db={"%":(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)=>pb(e*100,t),r:pb,s:xR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mb(e){return e}var yb=Array.prototype.map,gb=["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?mb:gR(yb.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?mb:vR(yb.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=Is(f);var h=f.fill,p=f.align,y=f.sign,d=f.symbol,m=f.zero,v=f.width,x=f.comma,b=f.precision,_=f.trim,g=f.type;g==="n"?(x=!0,g="g"):db[g]||(b===void 0&&(b=12),_=!0,g="g"),(m||h==="0"&&p==="=")&&(m=!0,h="0",p="=");var w=d==="$"?r:d==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=d==="$"?n:/[%p]/.test(g)?o:"",A=db[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 M(P){var E=w,C=S,j,k,$;if(g==="c")C=A(P)+C,P="";else{P=+P;var N=P<0||1/P<0;if(P=isNaN(P)?u:A(Math.abs(P),b),_&&(P=_R(P)),N&&+P==0&&y!=="+"&&(N=!1),E=(N?y==="("?y:s:y==="-"||y==="("?"":y)+E,C=(g==="s"?gb[8+wT/3]:"")+C+(N&&y==="("?")":""),T){for(j=-1,k=P.length;++j<k;)if($=P.charCodeAt(j),48>$||$>57){C=($===46?i+P.slice(j+1):P.slice(j))+C,P=P.slice(0,j);break}}}x&&!m&&(P=t(P,1/0));var W=E.length+P.length+C.length,z=W<v?new Array(v-W+1).join(h):"";switch(x&&m&&(P=t(z+P,z.length?v-C.length:1/0),z=""),p){case"<":P=E+P+C+z;break;case"=":P=E+z+P+C;break;case"^":P=z.slice(0,W=z.length>>1)+E+P+C+z.slice(W);break;default:P=z+E+P+C;break}return a(P)}return M.toString=function(){return f+""},M}function c(f,h){var p=l((f=Is(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Ya(h)/3)))*3,d=Math.pow(10,-y),m=gb[8+y/3];return function(v){return p(d*v)+m}}return{format:l,formatPrefix:c}}var qu,dv,ST;SR({thousands:",",grouping:[3],currency:["$",""]});function SR(e){return qu=wR(e),dv=qu.format,ST=qu.formatPrefix,qu}function AR(e){return Math.max(0,-Ya(Math.abs(e)))}function OR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ya(t)/3)))*3-Ya(Math.abs(e)))}function TR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ya(t)-Ya(e))+1}function AT(e,t,r,n){var i=dy(e,t,r),a;switch(n=Is(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),ST(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 dv(n)}function _i(e){var t=e.domain;return e.ticks=function(r){var n=t();return hy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return AT(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=py(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 aa(){var e=hv();return e.copy=function(){return Au(e,aa())},Xr.apply(e,arguments),_i(e)}function OT(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,bl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return OT(e).unknown(t)},e=arguments.length?Array.from(e,bl):[0,1],_i(r)}function TT(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 vb(e){return Math.log(e)}function bb(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 _b(e){return(t,r)=>-e(-t,r)}function mv(e){const t=e(vb,bb),r=t.domain;let n=10,i,a;function o(){return i=kR(n),a=MR(n),r()[0]<0?(i=_b(i),a=_b(a),e(PR,ER)):e(vb,bb),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,d;const m=s==null?10:+s;let v=[];if(!(n%1)&&p-h<m){if(h=Math.floor(h),p=Math.ceil(p),l>0){for(;h<=p;++h)for(y=1;y<n;++y)if(d=h<0?y/a(-h):y*a(h),!(d<l)){if(d>c)break;v.push(d)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(d=h>0?y/a(-h):y*a(h),!(d<l)){if(d>c)break;v.push(d)}v.length*2<m&&(v=hy(l,c,m))}else v=hy(h,p,Math.min(p-h,m)).map(a);return f?v.reverse():v},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Is(u)).precision==null&&(u.trim=!0),u=dv(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(TT(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function PT(){const e=mv(Ec()).domain([1,10]);return e.copy=()=>Au(e,PT()).base(e.base()),Xr.apply(e,arguments),e}function xb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function wb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function yv(e){var t=1,r=e(xb(t),wb(t));return r.constant=function(n){return arguments.length?e(xb(t=+n),wb(t)):t},_i(r)}function ET(){var e=yv(Ec());return e.copy=function(){return Au(e,ET()).constant(e.constant())},Xr.apply(e,arguments)}function Sb(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 gv(e){var t=e(er,er),r=1;function n(){return r===1?e(er,er):r===.5?e($R,jR):e(Sb(r),Sb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},_i(t)}function vv(){var e=gv(Ec());return e.copy=function(){return Au(e,vv()).exponent(e.exponent())},Xr.apply(e,arguments),e}function RR(){return vv.apply(null,arguments).exponent(.5)}function Ab(e){return Math.sign(e)*e*e}function DR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function CT(){var e=hv(),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(Ab(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,bl)).map(Ab)),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 CT(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xr.apply(i,arguments),_i(i)}function MT(){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[Su(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(mi),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 MT().domain(e).range(t).unknown(n)},Xr.apply(a,arguments)}function kT(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Su(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 kT().domain([e,t]).range(i).unknown(a)},Xr.apply(_i(o),arguments)}function $T(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Su(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 $T().domain(e).range(t).unknown(r)},Xr.apply(i,arguments)}const Ef=new Date,Cf=new Date;function Ee(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=>Ee(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)=>(Ef.setTime(+a),Cf.setTime(+o),e(Ef),e(Cf),Math.floor(r(Ef,Cf))),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 xl=Ee(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ee(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):xl);xl.range;const Ln=1e3,Fr=Ln*60,Bn=Fr*60,Hn=Bn*24,bv=Hn*7,Ob=Hn*30,Mf=Hn*365,zi=Ee(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ln)},(e,t)=>(t-e)/Ln,e=>e.getUTCSeconds());zi.range;const _v=Ee(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ln)},(e,t)=>{e.setTime(+e+t*Fr)},(e,t)=>(t-e)/Fr,e=>e.getMinutes());_v.range;const xv=Ee(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Fr)},(e,t)=>(t-e)/Fr,e=>e.getUTCMinutes());xv.range;const wv=Ee(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ln-e.getMinutes()*Fr)},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getHours());wv.range;const Sv=Ee(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getUTCHours());Sv.range;const Ou=Ee(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Fr)/Hn,e=>e.getDate()-1);Ou.range;const Cc=Ee(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hn,e=>e.getUTCDate()-1);Cc.range;const jT=Ee(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hn,e=>Math.floor(e/Hn));jT.range;function da(e){return Ee(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())*Fr)/bv)}const Mc=da(0),wl=da(1),IR=da(2),NR=da(3),Va=da(4),LR=da(5),BR=da(6);Mc.range;wl.range;IR.range;NR.range;Va.range;LR.range;BR.range;function ma(e){return Ee(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)/bv)}const kc=ma(0),Sl=ma(1),qR=ma(2),FR=ma(3),Za=ma(4),zR=ma(5),UR=ma(6);kc.range;Sl.range;qR.range;FR.range;Za.range;zR.range;UR.range;const Av=Ee(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());Av.range;const Ov=Ee(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());Ov.range;const Gn=Ee(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());Gn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ee(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)});Gn.range;const Kn=Ee(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());Kn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ee(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)});Kn.range;function RT(e,t,r,n,i,a){const o=[[zi,1,Ln],[zi,5,5*Ln],[zi,15,15*Ln],[zi,30,30*Ln],[a,1,Fr],[a,5,5*Fr],[a,15,15*Fr],[a,30,30*Fr],[i,1,Bn],[i,3,3*Bn],[i,6,6*Bn],[i,12,12*Bn],[n,1,Hn],[n,2,2*Hn],[r,1,bv],[t,1,Ob],[t,3,3*Ob],[e,1,Mf]];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=cv(([,,m])=>m).right(o,h);if(p===o.length)return e.every(dy(l/Mf,c/Mf,f));if(p===0)return xl.every(Math.max(dy(l,c,f),1));const[y,d]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(d)}return[s,u]}const[WR,HR]=RT(Kn,Ov,kc,jT,Sv,xv),[GR,KR]=RT(Gn,Av,Mc,Ou,wv,_v);function kf(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 $f(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 Go(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function XR(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=Ko(i),c=Xo(i),f=Ko(a),h=Xo(a),p=Ko(o),y=Xo(o),d=Ko(s),m=Xo(s),v=Ko(u),x=Xo(u),b={a:N,A:W,b:z,B:I,c:null,d:kb,e:kb,f:gD,g:PD,G:CD,H:dD,I:mD,j:yD,L:DT,m:vD,M:bD,p:B,q:D,Q:Rb,s:Db,S:_D,u:xD,U:wD,V:SD,w:AD,W:OD,x:null,X:null,y:TD,Y:ED,Z:MD,"%":jb},_={a:F,A:X,b:L,B:Y,c:null,d:$b,e:$b,f:RD,g:WD,G:GD,H:kD,I:$D,j:jD,L:NT,m:DD,M:ID,p:Z,q:H,Q:Rb,s:Db,S:ND,u:LD,U:BD,V:qD,w:FD,W:zD,x:null,X:null,y:UD,Y:HD,Z:KD,"%":jb},g={a:M,A:P,b:E,B:C,c:j,d:Cb,e:Cb,f:cD,g:Eb,G:Pb,H:Mb,I:Mb,j:oD,L:lD,m:aD,M:sD,p:T,q:iD,Q:hD,s:pD,S:uD,u:QR,U:tD,V:eD,w:JR,W:rD,x:k,X:$,y:Eb,Y:Pb,Z:nD,"%":fD};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),_.x=w(r,_),_.X=w(n,_),_.c=w(t,_);function w(q,K){return function(Q){var R=[],J=-1,U=0,ot=q.length,yt,st,ht;for(Q instanceof Date||(Q=new Date(+Q));++J<ot;)q.charCodeAt(J)===37&&(R.push(q.slice(U,J)),(st=Tb[yt=q.charAt(++J)])!=null?yt=q.charAt(++J):st=yt==="e"?" ":"0",(ht=K[yt])&&(yt=ht(Q,st)),R.push(yt),U=J+1);return R.push(q.slice(U,J)),R.join("")}}function S(q,K){return function(Q){var R=Go(1900,void 0,1),J=A(R,q,Q+="",0),U,ot;if(J!=Q.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(K&&!("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=$f(Go(R.y,0,1)),ot=U.getUTCDay(),U=ot>4||ot===0?Sl.ceil(U):Sl(U),U=Cc.offset(U,(R.V-1)*7),R.y=U.getUTCFullYear(),R.m=U.getUTCMonth(),R.d=U.getUTCDate()+(R.w+6)%7):(U=kf(Go(R.y,0,1)),ot=U.getDay(),U=ot>4||ot===0?wl.ceil(U):wl(U),U=Ou.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),ot="Z"in R?$f(Go(R.y,0,1)).getUTCDay():kf(Go(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(ot+5)%7:R.w+R.U*7-(ot+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,$f(R)):kf(R)}}function A(q,K,Q,R){for(var J=0,U=K.length,ot=Q.length,yt,st;J<U;){if(R>=ot)return-1;if(yt=K.charCodeAt(J++),yt===37){if(yt=K.charAt(J++),st=g[yt in Tb?K.charAt(J++):yt],!st||(R=st(q,Q,R))<0)return-1}else if(yt!=Q.charCodeAt(R++))return-1}return R}function T(q,K,Q){var R=l.exec(K.slice(Q));return R?(q.p=c.get(R[0].toLowerCase()),Q+R[0].length):-1}function M(q,K,Q){var R=p.exec(K.slice(Q));return R?(q.w=y.get(R[0].toLowerCase()),Q+R[0].length):-1}function P(q,K,Q){var R=f.exec(K.slice(Q));return R?(q.w=h.get(R[0].toLowerCase()),Q+R[0].length):-1}function E(q,K,Q){var R=v.exec(K.slice(Q));return R?(q.m=x.get(R[0].toLowerCase()),Q+R[0].length):-1}function C(q,K,Q){var R=d.exec(K.slice(Q));return R?(q.m=m.get(R[0].toLowerCase()),Q+R[0].length):-1}function j(q,K,Q){return A(q,t,K,Q)}function k(q,K,Q){return A(q,r,K,Q)}function $(q,K,Q){return A(q,n,K,Q)}function N(q){return o[q.getDay()]}function W(q){return a[q.getDay()]}function z(q){return u[q.getMonth()]}function I(q){return s[q.getMonth()]}function B(q){return i[+(q.getHours()>=12)]}function D(q){return 1+~~(q.getMonth()/3)}function F(q){return o[q.getUTCDay()]}function X(q){return a[q.getUTCDay()]}function L(q){return u[q.getUTCMonth()]}function Y(q){return s[q.getUTCMonth()]}function Z(q){return i[+(q.getUTCHours()>=12)]}function H(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var K=w(q+="",b);return K.toString=function(){return q},K},parse:function(q){var K=S(q+="",!1);return K.toString=function(){return q},K},utcFormat:function(q){var K=w(q+="",_);return K.toString=function(){return q},K},utcParse:function(q){var K=S(q+="",!0);return K.toString=function(){return q},K}}}var Tb={"-":"",_:" ",0:"0"},je=/^\s*\d+/,YR=/^%/,VR=/[\\^$*+?|[\]().{}]/g;function kt(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 Ko(e){return new RegExp("^(?:"+e.map(ZR).join("|")+")","i")}function Xo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function JR(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function QR(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function eD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Pb(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=je.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=je.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=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Cb(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Mb(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function uD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=je.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=YR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hD(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pD(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function kb(e,t){return kt(e.getDate(),t,2)}function dD(e,t){return kt(e.getHours(),t,2)}function mD(e,t){return kt(e.getHours()%12||12,t,2)}function yD(e,t){return kt(1+Ou.count(Gn(e),e),t,3)}function DT(e,t){return kt(e.getMilliseconds(),t,3)}function gD(e,t){return DT(e,t)+"000"}function vD(e,t){return kt(e.getMonth()+1,t,2)}function bD(e,t){return kt(e.getMinutes(),t,2)}function _D(e,t){return kt(e.getSeconds(),t,2)}function xD(e){var t=e.getDay();return t===0?7:t}function wD(e,t){return kt(Mc.count(Gn(e)-1,e),t,2)}function IT(e){var t=e.getDay();return t>=4||t===0?Va(e):Va.ceil(e)}function SD(e,t){return e=IT(e),kt(Va.count(Gn(e),e)+(Gn(e).getDay()===4),t,2)}function AD(e){return e.getDay()}function OD(e,t){return kt(wl.count(Gn(e)-1,e),t,2)}function TD(e,t){return kt(e.getFullYear()%100,t,2)}function PD(e,t){return e=IT(e),kt(e.getFullYear()%100,t,2)}function ED(e,t){return kt(e.getFullYear()%1e4,t,4)}function CD(e,t){var r=e.getDay();return e=r>=4||r===0?Va(e):Va.ceil(e),kt(e.getFullYear()%1e4,t,4)}function MD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function $b(e,t){return kt(e.getUTCDate(),t,2)}function kD(e,t){return kt(e.getUTCHours(),t,2)}function $D(e,t){return kt(e.getUTCHours()%12||12,t,2)}function jD(e,t){return kt(1+Cc.count(Kn(e),e),t,3)}function NT(e,t){return kt(e.getUTCMilliseconds(),t,3)}function RD(e,t){return NT(e,t)+"000"}function DD(e,t){return kt(e.getUTCMonth()+1,t,2)}function ID(e,t){return kt(e.getUTCMinutes(),t,2)}function ND(e,t){return kt(e.getUTCSeconds(),t,2)}function LD(e){var t=e.getUTCDay();return t===0?7:t}function BD(e,t){return kt(kc.count(Kn(e)-1,e),t,2)}function LT(e){var t=e.getUTCDay();return t>=4||t===0?Za(e):Za.ceil(e)}function qD(e,t){return e=LT(e),kt(Za.count(Kn(e),e)+(Kn(e).getUTCDay()===4),t,2)}function FD(e){return e.getUTCDay()}function zD(e,t){return kt(Sl.count(Kn(e)-1,e),t,2)}function UD(e,t){return kt(e.getUTCFullYear()%100,t,2)}function WD(e,t){return e=LT(e),kt(e.getUTCFullYear()%100,t,2)}function HD(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function GD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Za(e):Za.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function KD(){return"+0000"}function jb(){return"%"}function Rb(e){return+e}function Db(e){return Math.floor(+e/1e3)}var Ta,BT,qT;XD({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 XD(e){return Ta=XR(e),BT=Ta.format,Ta.parse,qT=Ta.utcFormat,Ta.utcParse,Ta}function YD(e){return new Date(e)}function VD(e){return e instanceof Date?+e:+new Date(+e)}function Tv(e,t,r,n,i,a,o,s,u,l){var c=hv(),f=c.invert,h=c.domain,p=l(".%L"),y=l(":%S"),d=l("%I:%M"),m=l("%I %p"),v=l("%a %d"),x=l("%b %d"),b=l("%B"),_=l("%Y");function g(w){return(u(w)<w?p:s(w)<w?y:o(w)<w?d:a(w)<w?m:n(w)<w?i(w)<w?v:x:r(w)<w?b:_)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,VD)):h().map(YD)},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?g: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(TT(S,w)):c},c.copy=function(){return Au(c,Tv(e,t,r,n,i,a,o,s,u,l))},c}function Al(){return Xr.apply(Tv(GR,KR,Gn,Av,Mc,Ou,wv,_v,zi,BT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ZD(){return Xr.apply(Tv(WR,HR,Kn,Ov,kc,Cc,Sv,xv,zi,qT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $c(){var e=0,t=1,r,n,i,a,o=er,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(pa),l.rangeRound=c(av),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 xi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function FT(){var e=_i($c()(er));return e.copy=function(){return xi(e,FT())},Vn.apply(e,arguments)}function zT(){var e=mv($c()).domain([1,10]);return e.copy=function(){return xi(e,zT()).base(e.base())},Vn.apply(e,arguments)}function UT(){var e=yv($c());return e.copy=function(){return xi(e,UT()).constant(e.constant())},Vn.apply(e,arguments)}function Pv(){var e=gv($c());return e.copy=function(){return xi(e,Pv()).exponent(e.exponent())},Vn.apply(e,arguments)}function JD(){return Pv.apply(null,arguments).exponent(.5)}function WT(){var e=[],t=er;function r(n){if(n!=null&&!isNaN(n=+n))return t((Su(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(mi),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)=>lR(e,a/n))},r.copy=function(){return WT(t).domain(e)},Vn.apply(r,arguments)}function jc(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,l=er,c,f=!1,h;function p(d){return isNaN(d=+d)?h:(d=.5+((d=+c(d))-a)*(n*d<n*a?s:u),l(f?Math.max(0,Math.min(1,d)):d))}p.domain=function(d){return arguments.length?([e,t,r]=d,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(d){return arguments.length?(f=!!d,p):f},p.interpolator=function(d){return arguments.length?(l=d,p):l};function y(d){return function(m){var v,x,b;return arguments.length?([v,x,b]=m,l=k$(d,[v,x,b]),p):[l(0),l(.5),l(1)]}}return p.range=y(pa),p.rangeRound=y(av),p.unknown=function(d){return arguments.length?(h=d,p):h},function(d){return c=d,i=d(e),a=d(t),o=d(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function HT(){var e=_i(jc()(er));return e.copy=function(){return xi(e,HT())},Vn.apply(e,arguments)}function GT(){var e=mv(jc()).domain([.1,1,10]);return e.copy=function(){return xi(e,GT()).base(e.base())},Vn.apply(e,arguments)}function KT(){var e=yv(jc());return e.copy=function(){return xi(e,KT()).constant(e.constant())},Vn.apply(e,arguments)}function Ev(){var e=gv(jc());return e.copy=function(){return xi(e,Ev()).exponent(e.exponent())},Vn.apply(e,arguments)}function QD(){return Ev.apply(null,arguments).exponent(.5)}function Zt(e){return function(){return e}}const XT=Math.cos,Ol=Math.sin,un=Math.sqrt,Ib=1e-12,Tl=Math.PI,Rc=2*Tl,gy=Math.PI,vy=2*gy,Li=1e-6,tI=vy-Li;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,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>Li)if(!(Math.abs(f*u-l*c)>Li)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,d=u*u+l*l,m=p*p+y*y,v=Math.sqrt(d),x=Math.sqrt(h),b=a*Math.tan((gy-Math.acos((d+h-m)/(2*v*x)))/2),_=b/x,g=b/v;Math.abs(_-1)>Li&&this._append`L${t+_*c},${r+_*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+g*u},${this._y1=r+g*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)>Li||Math.abs(this._y1-c)>Li)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%vy+vy),h>tI?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>Li&&this._append`A${n},${n},0,${+(h>=gy)},${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 Cv(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 Mv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VT(e){this._context=e}VT.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 oa(e){return new VT(e)}function ZT(e){return e[0]}function JT(e){return e[1]}function kv(e,t){var r=Zt(!0),n=null,i=oa,a=null,o=Cv(s);e=typeof e=="function"?e:e===void 0?ZT:Zt(e),t=typeof t=="function"?t:t===void 0?JT:Zt(t);function s(u){var l,c=(u=Mv(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:Zt(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Zt(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Zt(!!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 Ui(e,t,r){var n=null,i=Zt(!0),a=null,o=oa,s=null,u=Cv(l);e=typeof e=="function"?e:e===void 0?ZT:Zt(+e),t=typeof t=="function"?t:Zt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?JT:Zt(+r);function l(f){var h,p,y,d=(f=Mv(f)).length,m,v=!1,x,b=new Array(d),_=new Array(d);for(a==null&&(s=o(x=u())),h=0;h<=d;++h){if(!(h<d&&i(m=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(m,h,f),_[h]=+t(m,h,f),s.point(n?+n(m,h,f):b[h],r?+r(m,h,f):_[h]))}if(x)return s=null,x+""||null}function c(){return kv().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Zt(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Zt(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Zt(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:Zt(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Zt(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Zt(+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:Zt(!!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 QT{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 QT(e,!0)}function iI(e){return new QT(e,!1)}const $v={draw(e,t){const r=un(t/Tl);e.moveTo(r,0),e.arc(0,0,r,0,Rc)}},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()}},tP=un(1/3),oI=tP*2,sI={draw(e,t){const r=un(t/oI),n=r*tP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},uI={draw(e,t){const r=un(t),n=-r/2;e.rect(n,n,r,r)}},lI=.8908130915292852,eP=Ol(Tl/10)/Ol(7*Tl/10),cI=Ol(Rc/10)*eP,fI=-XT(Rc/10)*eP,hI={draw(e,t){const r=un(t*lI),n=cI*r,i=fI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Rc*a/5,s=XT(o),u=Ol(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},jf=un(3),pI={draw(e,t){const r=-un(t/(jf*3));e.moveTo(0,r*2),e.lineTo(-jf*r,-r),e.lineTo(jf*r,-r),e.closePath()}},Ir=-.5,Nr=un(3)/2,by=1/un(12),dI=(by/2+1)*3,mI={draw(e,t){const r=un(t/dI),n=r/2,i=r*by,a=n,o=r*by+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Ir*n-Nr*i,Nr*n+Ir*i),e.lineTo(Ir*a-Nr*o,Nr*a+Ir*o),e.lineTo(Ir*s-Nr*u,Nr*s+Ir*u),e.lineTo(Ir*n+Nr*i,Ir*i-Nr*n),e.lineTo(Ir*a+Nr*o,Ir*o-Nr*a),e.lineTo(Ir*s+Nr*u,Ir*u-Nr*s),e.closePath()}};function yI(e,t){let r=null,n=Cv(i);e=typeof e=="function"?e:Zt(e||$v),t=typeof t=="function"?t:Zt(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:Zt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Zt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Pl(){}function El(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 rP(e){this._context=e}rP.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:El(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:El(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gI(e){return new rP(e)}function nP(e){this._context=e}nP.prototype={areaStart:Pl,areaEnd:Pl,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:El(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vI(e){return new nP(e)}function iP(e){this._context=e}iP.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:El(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bI(e){return new iP(e)}function Nb(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 jv(e,t){this._context=e,this._k=(1-t)/6}jv.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:Nb(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:Nb(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 jv(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>Ib){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>Ib){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 aP(e,t){this._context=e,this._alpha=t}aP.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 aP(n,t):new jv(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function oP(e){this._context=e}oP.prototype={areaStart:Pl,areaEnd:Pl,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 oP(e)}function Lb(e){return e<0?-1:1}function Bb(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(Lb(a)+Lb(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function qb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Rf(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 Cl(e){this._context=e}Cl.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:Rf(this,this._t0,qb(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,Rf(this,qb(this,r=Bb(this,e,t)),r);break;default:Rf(this,this._t0,r=Bb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function sP(e){this._context=new uP(e)}(sP.prototype=Object.create(Cl.prototype)).point=function(e,t){Cl.prototype.point.call(this,t,e)};function uP(e){this._context=e}uP.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 Cl(e)}function AI(e){return new sP(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=Fb(e),i=Fb(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 Fb(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 Dc(e,t){this._context=e,this._t=t}Dc.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 Dc(e,.5)}function PI(e){return new Dc(e,0)}function EI(e){return new Dc(e,1)}function Ja(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 _y(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 Ml(){var e=Zt([]),t=_y,r=Ja,n=CI;function i(a){var o=Array.from(e.apply(this,arguments),MI),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=Mv(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:Zt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Zt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?_y:typeof a=="function"?a:Zt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ja,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}Ja(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}Ja(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,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 d=e[t[y]],m=d[n][1]||0,v=d[n-1][1]||0;p+=m-v}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,Ja(e,t)}}function In(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
1
+ "use strict";var uk=Object.defineProperty;var lk=(e,t,r)=>t in e?uk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Uo=(e,t,r)=>lk(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),tt=require("@mui/material"),O=require("react"),zO=require("@mui/icons-material");function ck(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 Hr=ck(O);function fk(e){return e}var bf=1,xf=2,ty=3,as=4,B0=1e-6;function hk(e){return"translate("+e+",0)"}function pk(e){return"translate(0,"+e+")"}function dk(e){return t=>+e(t)}function mk(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function yk(){return!this.__axis}function UO(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===bf||e===as?-1:1,c=e===as||e===xf?"x":"y",f=e===bf||e===ty?hk:pk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),d=i??(t.tickFormat?t.tickFormat.apply(t,r):fk),m=Math.max(a,0)+s,v=t.range(),_=+v[0]+u,b=+v[v.length-1]+u,x=(t.bandwidth?mk:dk)(t.copy(),u),g=p.selection?p.selection():p,w=g.selectAll(".domain").data([null]),S=g.selectAll(".tick").data(y,t).order(),A=S.exit(),T=S.enter().append("g").attr("class","tick"),M=S.select("line"),P=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(T),M=M.merge(T.append("line").attr("stroke","currentColor").attr(c+"2",l*a)),P=P.merge(T.append("text").attr("fill","currentColor").attr(c,l*m).attr("dy",e===bf?"0em":e===ty?"0.71em":"0.32em")),p!==g&&(w=w.transition(p),S=S.transition(p),M=M.transition(p),P=P.transition(p),A=A.transition(p).attr("opacity",B0).attr("transform",function(E){return isFinite(E=x(E))?f(E+u):this.getAttribute("transform")}),T.attr("opacity",B0).attr("transform",function(E){var C=this.parentNode.__axis;return f((C&&isFinite(C=C(E))?C:x(E))+u)})),A.remove(),w.attr("d",e===as||e===xf?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)}),M.attr(c+"2",l*a),P.attr(c,l*m).text(d),g.filter(yk).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===xf?"start":e===as?"end":"middle"),g.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 Cs(e){return UO(ty,e)}function Ms(e){return UO(as,e)}var gk={value:()=>{}};function tv(){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 il(r)}function il(e){this._=e}function vk(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}})}il.prototype=tv.prototype={constructor:il,on:function(e,t){var r=this._,n=vk(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=bk(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]=q0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=q0(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 il(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 bk(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function q0(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=gk,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var ey="http://www.w3.org/1999/xhtml";const F0={svg:"http://www.w3.org/2000/svg",xhtml:ey,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ac(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),F0.hasOwnProperty(t)?{space:F0[t],local:e}:e}function xk(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ey&&t.documentElement.namespaceURI===ey?t.createElement(e):t.createElementNS(r,e)}}function _k(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function WO(e){var t=Ac(e);return(t.local?_k:xk)(t)}function wk(){}function ev(e){return e==null?wk:function(){return this.querySelector(e)}}function Sk(e){typeof e!="function"&&(e=ev(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 Mr(n,this._parents)}function Ak(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ok(){return[]}function HO(e){return e==null?Ok:function(){return this.querySelectorAll(e)}}function Tk(e){return function(){return Ak(e.apply(this,arguments))}}function Pk(e){typeof e=="function"?e=Tk(e):e=HO(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 Mr(n,i)}function GO(e){return function(){return this.matches(e)}}function KO(e){return function(t){return t.matches(e)}}var Ek=Array.prototype.find;function Ck(e){return function(){return Ek.call(this.children,e)}}function Mk(){return this.firstElementChild}function kk(e){return this.select(e==null?Mk:Ck(typeof e=="function"?e:KO(e)))}var $k=Array.prototype.filter;function jk(){return Array.from(this.children)}function Rk(e){return function(){return $k.call(this.children,e)}}function Dk(e){return this.selectAll(e==null?jk:Rk(typeof e=="function"?e:KO(e)))}function Ik(e){typeof e!="function"&&(e=GO(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 Mr(n,this._parents)}function XO(e){return new Array(e.length)}function Nk(){return new Mr(this._enter||this._groups.map(XO),this._parents)}function fl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}fl.prototype={constructor:fl,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 Lk(e){return function(){return e}}function Bk(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 fl(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function qk(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 fl(e,a[s]);for(s=0;s<c;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}function Fk(e){return e.__data__}function zk(e,t){if(!arguments.length)return Array.from(this,Fk);var r=t?qk:Bk,n=this._parents,i=this._groups;typeof e!="function"&&(e=Lk(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=Uk(e.call(c,c&&c.__data__,l,n)),y=p.length,d=s[l]=new Array(y),m=o[l]=new Array(y),v=u[l]=new Array(h);r(c,f,d,m,v,p,t);for(var _=0,b=0,x,g;_<y;++_)if(x=d[_]){for(_>=b&&(b=_+1);!(g=m[b])&&++b<y;);x._next=g||null}}return o=new Mr(o,n),o._enter=s,o._exit=u,o}function Uk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Wk(){return new Mr(this._exit||this._groups.map(XO),this._parents)}function Hk(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 Mr(s,this._parents)}function Kk(){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 Xk(e){e||(e=Yk);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 Mr(i,this._parents).order()}function Yk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Vk(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Zk(){return Array.from(this)}function Jk(){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 Qk(){let e=0;for(const t of this)++e;return e}function t$(){return!this.node()}function e$(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 r$(e){return function(){this.removeAttribute(e)}}function n$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function i$(e,t){return function(){this.setAttribute(e,t)}}function a$(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function o$(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function s$(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 u$(e,t){var r=Ac(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?n$:r$:typeof t=="function"?r.local?s$:o$:r.local?a$:i$)(r,t))}function YO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function l$(e){return function(){this.style.removeProperty(e)}}function c$(e,t,r){return function(){this.style.setProperty(e,t,r)}}function f$(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function h$(e,t,r){return arguments.length>1?this.each((t==null?l$:typeof t=="function"?f$:c$)(e,t,r??"")):Ka(this.node(),e)}function Ka(e,t){return e.style.getPropertyValue(t)||YO(e).getComputedStyle(e,null).getPropertyValue(t)}function p$(e){return function(){delete this[e]}}function d$(e,t){return function(){this[e]=t}}function m$(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function y$(e,t){return arguments.length>1?this.each((t==null?p$:typeof t=="function"?m$:d$)(e,t)):this.node()[e]}function VO(e){return e.trim().split(/^|\s+/)}function rv(e){return e.classList||new ZO(e)}function ZO(e){this._node=e,this._names=VO(e.getAttribute("class")||"")}ZO.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 JO(e,t){for(var r=rv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function QO(e,t){for(var r=rv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function g$(e){return function(){JO(this,e)}}function v$(e){return function(){QO(this,e)}}function b$(e,t){return function(){(t.apply(this,arguments)?JO:QO)(this,e)}}function x$(e,t){var r=VO(e+"");if(arguments.length<2){for(var n=rv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?b$:t?g$:v$)(r,t))}function _$(){this.textContent=""}function w$(e){return function(){this.textContent=e}}function S$(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function A$(e){return arguments.length?this.each(e==null?_$:(typeof e=="function"?S$:w$)(e)):this.node().textContent}function O$(){this.innerHTML=""}function T$(e){return function(){this.innerHTML=e}}function P$(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function E$(e){return arguments.length?this.each(e==null?O$:(typeof e=="function"?P$:T$)(e)):this.node().innerHTML}function C$(){this.nextSibling&&this.parentNode.appendChild(this)}function M$(){return this.each(C$)}function k$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $$(){return this.each(k$)}function j$(e){var t=typeof e=="function"?e:WO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function R$(){return null}function D$(e,t){var r=typeof e=="function"?e:WO(e),n=t==null?R$:typeof t=="function"?t:ev(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function I$(){var e=this.parentNode;e&&e.removeChild(this)}function N$(){return this.each(I$)}function L$(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function B$(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function q$(e){return this.select(e?B$:L$)}function F$(e){return arguments.length?this.property("__data__",e):this.node().__data__}function z$(e){return function(t){e.call(this,t,this.__data__)}}function U$(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 W$(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 H$(e,t,r){return function(){var n=this.__on,i,a=z$(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=U$(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?H$:W$,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function tT(e,t,r){var n=YO(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 K$(e,t){return function(){return tT(this,e,t)}}function X$(e,t){return function(){return tT(this,e,t.apply(this,arguments))}}function Y$(e,t){return this.each((typeof t=="function"?X$:K$)(e,t))}function*V$(){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 eT=[null];function Mr(e,t){this._groups=e,this._parents=t}function Co(){return new Mr([[document.documentElement]],eT)}function Z$(){return this}Mr.prototype=Co.prototype={constructor:Mr,select:Sk,selectAll:Pk,selectChild:kk,selectChildren:Dk,filter:Ik,data:zk,enter:Nk,exit:Wk,join:Hk,merge:Gk,selection:Z$,order:Kk,sort:Xk,call:Vk,nodes:Zk,node:Jk,size:Qk,empty:t$,each:e$,attr:u$,style:h$,property:y$,classed:x$,text:A$,html:E$,raise:M$,lower:$$,append:j$,insert:D$,remove:N$,clone:q$,datum:F$,on:G$,dispatch:Y$,[Symbol.iterator]:V$};function ee(e){return typeof e=="string"?new Mr([[document.querySelector(e)]],[document.documentElement]):new Mr([[e]],eT)}function J$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ks(e,t){if(e=J$(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 ry={capture:!0,passive:!1};function ny(e){e.preventDefault(),e.stopImmediatePropagation()}function Q$(e){var t=e.document.documentElement,r=ee(e).on("dragstart.drag",ny,ry);"onselectstart"in t?r.on("selectstart.drag",ny,ry):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function tj(e,t){var r=e.document.documentElement,n=ee(e).on("dragstart.drag",null);t&&(n.on("click.drag",ny,ry),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 nv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function rT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function wu(){}var $s=.7,hl=1/$s,La="\\s*([+-]?\\d+)\\s*",js="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",On="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ej=/^#([0-9a-f]{3,8})$/,rj=new RegExp(`^rgb\\(${La},${La},${La}\\)$`),nj=new RegExp(`^rgb\\(${On},${On},${On}\\)$`),ij=new RegExp(`^rgba\\(${La},${La},${La},${js}\\)$`),aj=new RegExp(`^rgba\\(${On},${On},${On},${js}\\)$`),oj=new RegExp(`^hsl\\(${js},${On},${On}\\)$`),sj=new RegExp(`^hsla\\(${js},${On},${On},${js}\\)$`),z0={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};nv(wu,ia,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U0,formatHex:U0,formatHex8:uj,formatHsl:lj,formatRgb:W0,toString:W0});function U0(){return this.rgb().formatHex()}function uj(){return this.rgb().formatHex8()}function lj(){return nT(this).formatHsl()}function W0(){return this.rgb().formatRgb()}function ia(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ej.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?H0(t):r===3?new sr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Nu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Nu(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=rj.exec(e))?new sr(t[1],t[2],t[3],1):(t=nj.exec(e))?new sr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ij.exec(e))?Nu(t[1],t[2],t[3],t[4]):(t=aj.exec(e))?Nu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oj.exec(e))?X0(t[1],t[2]/100,t[3]/100,1):(t=sj.exec(e))?X0(t[1],t[2]/100,t[3]/100,t[4]):z0.hasOwnProperty(e)?H0(z0[e]):e==="transparent"?new sr(NaN,NaN,NaN,0):null}function H0(e){return new sr(e>>16&255,e>>8&255,e&255,1)}function Nu(e,t,r,n){return n<=0&&(e=t=r=NaN),new sr(e,t,r,n)}function cj(e){return e instanceof wu||(e=ia(e)),e?(e=e.rgb(),new sr(e.r,e.g,e.b,e.opacity)):new sr}function iy(e,t,r,n){return arguments.length===1?cj(e):new sr(e,t,r,n??1)}function sr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}nv(sr,iy,rT(wu,{brighter(e){return e=e==null?hl:Math.pow(hl,e),new sr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$s:Math.pow($s,e),new sr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sr(Vi(this.r),Vi(this.g),Vi(this.b),pl(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:G0,formatHex:G0,formatHex8:fj,formatRgb:K0,toString:K0}));function G0(){return`#${zi(this.r)}${zi(this.g)}${zi(this.b)}`}function fj(){return`#${zi(this.r)}${zi(this.g)}${zi(this.b)}${zi((isNaN(this.opacity)?1:this.opacity)*255)}`}function K0(){const e=pl(this.opacity);return`${e===1?"rgb(":"rgba("}${Vi(this.r)}, ${Vi(this.g)}, ${Vi(this.b)}${e===1?")":`, ${e})`}`}function pl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zi(e){return e=Vi(e),(e<16?"0":"")+e.toString(16)}function X0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new nn(e,t,r,n)}function nT(e){if(e instanceof nn)return new nn(e.h,e.s,e.l,e.opacity);if(e instanceof wu||(e=ia(e)),!e)return new nn;if(e instanceof nn)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 nn(o,s,u,e.opacity)}function hj(e,t,r,n){return arguments.length===1?nT(e):new nn(e,t,r,n??1)}function nn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}nv(nn,hj,rT(wu,{brighter(e){return e=e==null?hl:Math.pow(hl,e),new nn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$s:Math.pow($s,e),new nn(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 sr(_f(e>=240?e-240:e+120,i,n),_f(e,i,n),_f(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new nn(Y0(this.h),Lu(this.s),Lu(this.l),pl(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=pl(this.opacity);return`${e===1?"hsl(":"hsla("}${Y0(this.h)}, ${Lu(this.s)*100}%, ${Lu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y0(e){return e=(e||0)%360,e<0?e+360:e}function Lu(e){return Math.max(0,Math.min(1,e||0))}function _f(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 iv=e=>()=>e;function pj(e,t){return function(r){return e+r*t}}function dj(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 mj(e){return(e=+e)==1?iT:function(t,r){return r-t?dj(t,r,e):iv(isNaN(t)?r:t)}}function iT(e,t){var r=t-e;return r?pj(e,r):iv(isNaN(e)?t:e)}const dl=(function e(t){var r=mj(t);function n(i,a){var o=r((i=iy(i)).r,(a=iy(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=iT(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 yj(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 gj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vj(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]=pa(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 bj(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function rn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function xj(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]=pa(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ay=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wf=new RegExp(ay.source,"g");function _j(e){return function(){return e}}function wj(e){return function(t){return e(t)+""}}function aT(e,t){var r=ay.lastIndex=wf.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=ay.exec(e))&&(i=wf.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:rn(n,i)})),r=wf.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?wj(u[0].x):_j(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 pa(e,t){var r=typeof t,n;return t==null||r==="boolean"?iv(t):(r==="number"?rn:r==="string"?(n=ia(t))?(t=n,dl):aT:t instanceof ia?dl:t instanceof Date?bj:gj(t)?yj:Array.isArray(t)?vj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?xj:rn)(e,t)}function av(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var V0=180/Math.PI,oy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function oT(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)*V0,skewX:Math.atan(u)*V0,scaleX:o,scaleY:s}}var Bu;function Sj(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?oy:oT(t.a,t.b,t.c,t.d,t.e,t.f)}function Aj(e){return e==null||(Bu||(Bu=document.createElementNS("http://www.w3.org/2000/svg","g")),Bu.setAttribute("transform",e),!(e=Bu.transform.baseVal.consolidate()))?oy:(e=e.matrix,oT(e.a,e.b,e.c,e.d,e.e,e.f))}function sT(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 d=p.push("translate(",null,t,null,r);y.push({i:d-4,x:rn(l,f)},{i:d-2,x:rn(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:rn(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:rn(l,c)}):c&&f.push(i(f)+"skewX("+c+n)}function u(l,c,f,h,p,y){if(l!==f||c!==h){var d=p.push(i(p)+"scale(",null,",",null,")");y.push({i:d-4,x:rn(l,f)},{i:d-2,x:rn(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,d=h.length,m;++y<d;)f[(m=h[y]).i]=m.x(p);return f.join("")}}}var Oj=sT(Sj,"px, ","px)","deg)"),Tj=sT(Aj,", ",")",")");function Pj(e,t){t===void 0&&(t=e,e=pa);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 Xa=0,os=0,Wo=0,uT=1e3,ml,ss,yl=0,aa=0,Oc=0,Rs=typeof performance=="object"&&performance.now?performance:Date,lT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ov(){return aa||(lT(Ej),aa=Rs.now()+Oc)}function Ej(){aa=0}function gl(){this._call=this._time=this._next=null}gl.prototype=cT.prototype={constructor:gl,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ov():+r)+(t==null?0:+t),!this._next&&ss!==this&&(ss?ss._next=this:ml=this,ss=this),this._call=e,this._time=r,sy()},stop:function(){this._call&&(this._call=null,this._time=1/0,sy())}};function cT(e,t,r){var n=new gl;return n.restart(e,t,r),n}function Cj(){ov(),++Xa;for(var e=ml,t;e;)(t=aa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Xa}function Z0(){aa=(yl=Rs.now())+Oc,Xa=os=0;try{Cj()}finally{Xa=0,kj(),aa=0}}function Mj(){var e=Rs.now(),t=e-yl;t>uT&&(Oc-=t,yl=e)}function kj(){for(var e,t=ml,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:ml=r);ss=e,sy(n)}function sy(e){if(!Xa){os&&(os=clearTimeout(os));var t=e-aa;t>24?(e<1/0&&(os=setTimeout(Z0,e-Rs.now()-Oc)),Wo&&(Wo=clearInterval(Wo))):(Wo||(yl=Rs.now(),Wo=setInterval(Mj,uT)),Xa=1,lT(Z0))}}function J0(e,t,r){var n=new gl;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var $j=tv("start","end","cancel","interrupt"),jj=[],fT=0,Q0=1,uy=2,al=3,tb=4,ly=5,ol=6;function Tc(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;Rj(e,r,{name:t,index:n,group:i,on:$j,tween:jj,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:fT})}function sv(e,t){var r=sn(e,t);if(r.state>fT)throw new Error("too late; already scheduled");return r}function Mn(e,t){var r=sn(e,t);if(r.state>al)throw new Error("too late; already running");return r}function sn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Rj(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=cT(a,0,r.time);function a(l){r.state=Q0,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!==Q0)return u();for(c in n)if(p=n[c],p.name===r.name){if(p.state===al)return J0(o);p.state===tb?(p.state=ol,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=ol,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(J0(function(){r.state===al&&(r.state=tb,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=uy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===uy){for(r.state=al,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=ly,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===ly&&(r.on.call("end",e,e.__data__,r.index,r.group),u())}function u(){r.state=ol,r.timer.stop(),delete n[t];for(var l in n)return;delete e.__transition}}function cy(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>uy&&n.state<ly,n.state=ol,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function Dj(e){return this.each(function(){cy(this,e)})}function Ij(e,t){var r,n;return function(){var i=Mn(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 Nj(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=Mn(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 Lj(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=sn(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?Ij:Nj)(r,e,t))}function uv(e,t,r){var n=e._id;return e.each(function(){var i=Mn(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return sn(i,n).value[t]}}function hT(e,t){var r;return(typeof t=="number"?rn:t instanceof ia?dl:(r=ia(t))?(t=r,dl):aT)(e,t)}function Bj(e){return function(){this.removeAttribute(e)}}function qj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Fj(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 zj(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 Uj(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 Wj(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 Hj(e,t){var r=Ac(e),n=r==="transform"?Tj:hT;return this.attrTween(e,typeof t=="function"?(r.local?Wj:Uj)(r,n,uv(this,"attr."+e,t)):t==null?(r.local?qj:Bj)(r):(r.local?zj:Fj)(r,n,t))}function Gj(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Kj(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Xj(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Kj(e,a)),r}return i._value=t,i}function Yj(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 Vj(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=Ac(e);return this.tween(r,(n.local?Xj:Yj)(n,t))}function Zj(e,t){return function(){sv(this,e).delay=+t.apply(this,arguments)}}function Jj(e,t){return t=+t,function(){sv(this,e).delay=t}}function Qj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Zj:Jj)(t,e)):sn(this.node(),t).delay}function t2(e,t){return function(){Mn(this,e).duration=+t.apply(this,arguments)}}function e2(e,t){return t=+t,function(){Mn(this,e).duration=t}}function r2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?t2:e2)(t,e)):sn(this.node(),t).duration}function n2(e,t){if(typeof t!="function")throw new Error;return function(){Mn(this,e).ease=t}}function i2(e){var t=this._id;return arguments.length?this.each(n2(t,e)):sn(this.node(),t).ease}function a2(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Mn(this,e).ease=r}}function o2(e){if(typeof e!="function")throw new Error;return this.each(a2(this._id,e))}function s2(e){typeof e!="function"&&(e=GO(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 Wn(n,this._parents,this._name,this._id)}function u2(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 Wn(o,this._parents,this._name,this._id)}function l2(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 c2(e,t,r){var n,i,a=l2(t)?sv:Mn;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function f2(e,t){var r=this._id;return arguments.length<2?sn(this.node(),r).on.on(e):this.each(c2(r,e,t))}function h2(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function p2(){return this.on("end.remove",h2(this._id))}function d2(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ev(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,Tc(l[h],t,r,h,l,sn(c,r)));return new Wn(a,this._parents,t,r)}function m2(e){var t=this._name,r=this._id;typeof e!="function"&&(e=HO(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=sn(c,r),d=0,m=h.length;d<m;++d)(p=h[d])&&Tc(p,t,r,d,h,y);a.push(h),o.push(c)}return new Wn(a,o,t,r)}var y2=Co.prototype.constructor;function g2(){return new y2(this._groups,this._parents)}function v2(e,t){var r,n,i;return function(){var a=Ka(this,e),o=(this.style.removeProperty(e),Ka(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function pT(e){return function(){this.style.removeProperty(e)}}function b2(e,t,r){var n,i=r+"",a;return function(){var o=Ka(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function x2(e,t,r){var n,i,a;return function(){var o=Ka(this,e),s=r(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ka(this,e))),o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,s))}}function _2(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var u=Mn(this,e),l=u.on,c=u.value[a]==null?s||(s=pT(t)):void 0;(l!==r||i!==c)&&(n=(r=l).copy()).on(o,i=c),u.on=n}}function w2(e,t,r){var n=(e+="")=="transform"?Oj:hT;return t==null?this.styleTween(e,v2(e,n)).on("end.style."+e,pT(e)):typeof t=="function"?this.styleTween(e,x2(e,n,uv(this,"style."+e,t))).each(_2(this._id,e)):this.styleTween(e,b2(e,n,t),r).on("end.style."+e,null)}function S2(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function A2(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&S2(e,o,r)),n}return a._value=t,a}function O2(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,A2(e,t,r??""))}function T2(e){return function(){this.textContent=e}}function P2(e){return function(){var t=e(this);this.textContent=t??""}}function E2(e){return this.tween("text",typeof e=="function"?P2(uv(this,"text",e)):T2(e==null?"":e+""))}function C2(e){return function(t){this.textContent=e.call(this,t)}}function M2(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&C2(i)),t}return n._value=e,n}function k2(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,M2(e))}function $2(){for(var e=this._name,t=this._id,r=dT(),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=sn(u,t);Tc(u,e,r,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Wn(n,this._parents,e,r)}function j2(){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=Mn(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 R2=0;function Wn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function lv(e){return Co().transition(e)}function dT(){return++R2}var $n=Co.prototype;Wn.prototype=lv.prototype={constructor:Wn,select:d2,selectAll:m2,selectChild:$n.selectChild,selectChildren:$n.selectChildren,filter:s2,merge:u2,selection:g2,transition:$2,call:$n.call,nodes:$n.nodes,node:$n.node,size:$n.size,empty:$n.empty,each:$n.each,on:f2,attr:Hj,attrTween:Vj,style:w2,styleTween:O2,text:E2,textTween:k2,remove:p2,tween:Lj,delay:Qj,duration:r2,ease:i2,easeVarying:o2,end:j2,[Symbol.iterator]:$n[Symbol.iterator]};function D2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var I2={time:null,delay:0,duration:250,ease:D2};function N2(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 L2(e){var t,r;e instanceof Wn?(t=e._id,e=e._name):(t=dT(),(r=I2).time=ov(),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])&&Tc(u,e,t,l,o,r||N2(u,t));return new Wn(n,this._parents,e,t)}Co.prototype.interrupt=Dj;Co.prototype.transition=L2;const Sf=e=>()=>e;function B2(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 q2(e){e.stopImmediatePropagation()}function Af(e){e.preventDefault(),e.stopImmediatePropagation()}var eb={name:"drag"},Of={name:"space"},Aa={name:"handle"},Oa={name:"center"};const{abs:rb,max:ze,min:Ue}=Math;function nb(e){return[+e[0],+e[1]]}function ib(e){return[nb(e[0]),nb(e[1])]}var sl={name:"x",handles:["w","e"].map(fy),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]]}},Tf={},jn={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"},ab={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"},F2={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},z2={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function fy(e){return{type:e}}function U2(e){return!e.ctrlKey&&!e.button}function W2(){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 H2(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pf(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 Pc(){return K2(sl)}function K2(e){var t=W2,r=U2,n=H2,i=!0,a=tv("start","brush","end"),o=6,s;function u(m){var v=m.property("__brush",d).selectAll(".overlay").data([fy("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",jn.overlay).merge(v).each(function(){var b=Pf(this).extent;ee(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])}),m.selectAll(".selection").data([fy("selection")]).enter().append("rect").attr("class","selection").attr("cursor",jn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var _=m.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 jn[b.type]}),m.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(m,v,_){m.tween?m.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,g=c(b,arguments),w=x.selection,S=e.input(typeof v=="function"?v.apply(this,arguments):v,x.extent),A=pa(w,S);function T(M){x.selection=M===1&&S===null?null:A(M),l.call(b),g.brush()}return w!==null&&S!==null?T:T(1)}):m.each(function(){var b=this,x=arguments,g=b.__brush,w=e.input(typeof v=="function"?v.apply(b,x):v,g.extent),S=c(b,x).beforestart();cy(b),g.selection=w===null?null:w,l.call(b),S.start(_).brush(_).end(_)})},u.clear=function(m,v){u.move(m,null,v)};function l(){var m=ee(this),v=Pf(this).selection;v?(m.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]),m.selectAll(".handle").style("display",null).attr("x",function(_){return _.type[_.type.length-1]==="e"?v[1][0]-o/2:v[0][0]-o/2}).attr("y",function(_){return _.type[0]==="s"?v[1][1]-o/2:v[0][1]-o/2}).attr("width",function(_){return _.type==="n"||_.type==="s"?v[1][0]-v[0][0]+o:o}).attr("height",function(_){return _.type==="e"||_.type==="w"?v[1][1]-v[0][1]+o:o})):m.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(m,v,_){var b=m.__brush.emitter;return b&&(!_||!b.clean)?b:new f(m,v,_)}function f(m,v,_){this.that=m,this.args=v,this.state=m.__brush,this.active=0,this.clean=_}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(m,v){return this.starting?(this.starting=!1,this.emit("start",m,v)):this.emit("brush",m),this},brush:function(m,v){return this.emit("brush",m,v),this},end:function(m,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",m,v)),this},emit:function(m,v,_){var b=ee(this.that).datum();a.call(m,this.that,new B2(m,{sourceEvent:v,target:u,selection:e.output(this.state.selection),mode:_,dispatch:a}),b)}};function h(m){if(s&&!m.touches||!r.apply(this,arguments))return;var v=this,_=m.target.__data__.type,b=(i&&m.metaKey?_="overlay":_)==="selection"?eb:i&&m.altKey?Oa:Aa,x=e===Tf?null:F2[_],g=e===sl?null:z2[_],w=Pf(v),S=w.extent,A=w.selection,T=S[0][0],M,P,E=S[0][1],C,j,k=S[1][0],$,N,W=S[1][1],z,I,B=0,D=0,F,X=x&&g&&i&&m.shiftKey,L,Y,Z=Array.from(m.touches||[m],st=>{const ht=st.identifier;return st=ks(st,v),st.point0=st.slice(),st.identifier=ht,st});cy(v);var H=c(v,arguments,!0).beforestart();if(_==="overlay"){A&&(F=!0);const st=[Z[0],Z[1]||Z[0]];w.selection=A=[[M=e===Tf?T:Ue(st[0][0],st[1][0]),C=e===sl?E:Ue(st[0][1],st[1][1])],[$=e===Tf?k:ze(st[0][0],st[1][0]),z=e===sl?W:ze(st[0][1],st[1][1])]],Z.length>1&&J(m)}else M=A[0][0],C=A[0][1],$=A[1][0],z=A[1][1];P=M,j=C,N=$,I=z;var q=ee(v).attr("pointer-events","none"),K=q.selectAll(".overlay").attr("cursor",jn[_]);if(m.touches)H.moved=R,H.ended=U;else{var Q=ee(m.view).on("mousemove.brush",R,!0).on("mouseup.brush",U,!0);i&&Q.on("keydown.brush",ot,!0).on("keyup.brush",yt,!0),Q$(m.view)}l.call(v),H.start(m,b.name);function R(st){for(const ht of st.changedTouches||[st])for(const ft of Z)ft.identifier===ht.identifier&&(ft.cur=ks(ht,v));if(X&&!L&&!Y&&Z.length===1){const ht=Z[0];rb(ht.cur[0]-ht[0])>rb(ht.cur[1]-ht[1])?Y=!0:L=!0}for(const ht of Z)ht.cur&&(ht[0]=ht.cur[0],ht[1]=ht.cur[1]);F=!0,Af(st),J(st)}function J(st){const ht=Z[0],ft=ht.point0;var Ot;switch(B=ht[0]-ft[0],D=ht[1]-ft[1],b){case Of:case eb:{x&&(B=ze(T-M,Ue(k-$,B)),P=M+B,N=$+B),g&&(D=ze(E-C,Ue(W-z,D)),j=C+D,I=z+D);break}case Aa:{Z[1]?(x&&(P=ze(T,Ue(k,Z[0][0])),N=ze(T,Ue(k,Z[1][0])),x=1),g&&(j=ze(E,Ue(W,Z[0][1])),I=ze(E,Ue(W,Z[1][1])),g=1)):(x<0?(B=ze(T-M,Ue(k-M,B)),P=M+B,N=$):x>0&&(B=ze(T-$,Ue(k-$,B)),P=M,N=$+B),g<0?(D=ze(E-C,Ue(W-C,D)),j=C+D,I=z):g>0&&(D=ze(E-z,Ue(W-z,D)),j=C,I=z+D));break}case Oa:{x&&(P=ze(T,Ue(k,M-B*x)),N=ze(T,Ue(k,$+B*x))),g&&(j=ze(E,Ue(W,C-D*g)),I=ze(E,Ue(W,z+D*g)));break}}N<P&&(x*=-1,Ot=M,M=$,$=Ot,Ot=P,P=N,N=Ot,_ in ab&&K.attr("cursor",jn[_=ab[_]])),I<j&&(g*=-1,Ot=C,C=z,z=Ot,Ot=j,j=I,I=Ot,_ in ob&&K.attr("cursor",jn[_=ob[_]])),w.selection&&(A=w.selection),L&&(P=A[0][0],N=A[1][0]),Y&&(j=A[0][1],I=A[1][1]),(A[0][0]!==P||A[0][1]!==j||A[1][0]!==N||A[1][1]!==I)&&(w.selection=[[P,j],[N,I]],l.call(v),H.brush(st,b.name))}function U(st){if(q2(st),st.touches){if(st.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else tj(st.view,F),Q.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);q.attr("pointer-events","all"),K.attr("cursor",jn.overlay),w.selection&&(A=w.selection),G2(A)&&(w.selection=null,l.call(v)),H.end(st,b.name)}function ot(st){switch(st.keyCode){case 16:{X=x&&g;break}case 18:{b===Aa&&(x&&($=N-B*x,M=P+B*x),g&&(z=I-D*g,C=j+D*g),b=Oa,J(st));break}case 32:{(b===Aa||b===Oa)&&(x<0?$=N-B:x>0&&(M=P-B),g<0?z=I-D:g>0&&(C=j-D),b=Of,K.attr("cursor",jn.selection),J(st));break}default:return}Af(st)}function yt(st){switch(st.keyCode){case 16:{X&&(L=Y=X=!1,J(st));break}case 18:{b===Oa&&(x<0?$=N:x>0&&(M=P),g<0?z=I:g>0&&(C=j),b=Aa,J(st));break}case 32:{b===Of&&(st.altKey?(x&&($=N-B*x,M=P+B*x),g&&(z=I-D*g,C=j+D*g),b=Oa):(x<0?$=N:x>0&&(M=P),g<0?z=I:g>0&&(C=j),b=Aa),K.attr("cursor",jn[_]),J(st));break}default:return}Af(st)}}function p(m){c(this,arguments).moved(m)}function y(m){c(this,arguments).ended(m)}function d(){var m=this.__brush||{selection:null};return m.extent=ib(t.apply(this,arguments)),m.dim=e,m}return u.extent=function(m){return arguments.length?(t=typeof m=="function"?m:Sf(ib(m)),u):t},u.filter=function(m){return arguments.length?(r=typeof m=="function"?m:Sf(!!m),u):r},u.touchable=function(m){return arguments.length?(n=typeof m=="function"?m:Sf(!!m),u):n},u.handleSize=function(m){return arguments.length?(o=+m,u):o},u.keyModifiers=function(m){return arguments.length?(i=!!m,u):i},u.on=function(){var m=a.on.apply(a,arguments);return m===a?u:m},u}function mi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function X2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cv(e){let t,r,n;e.length!==2?(t=mi,r=(s,u)=>mi(e(s),u),n=(s,u)=>e(s)-u):(t=e===mi||e===X2?e:Y2,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 Y2(){return 0}function mT(e){return e===null?NaN:+e}function*V2(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Z2=cv(mi),Su=Z2.right;cv(mT).center;class sb extends Map{constructor(t,r=tR){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(ub(this,t))}has(t){return super.has(ub(this,t))}set(t,r){return super.set(J2(this,t),r)}delete(t){return super.delete(Q2(this,t))}}function ub({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function J2({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Q2({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function tR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function eR(e=mi){if(e===mi)return yT;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 yT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const rR=Math.sqrt(50),nR=Math.sqrt(10),iR=Math.sqrt(2);function vl(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>=rR?10:a>=nR?5:a>=iR?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?vl(e,t,r*2):[s,u,l]}function hy(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?vl(t,e,r):vl(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 py(e,t,r){return t=+t,e=+e,r=+r,vl(e,t,r)[2]}function dy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?py(t,e,r):py(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 cb(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function gT(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?yT:eR(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));gT(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 aR(e,t,r){if(e=Float64Array.from(V2(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return cb(e);if(t>=1)return lb(e);var n,i=(n-1)*t,a=Math.floor(i),o=lb(gT(e,a).subarray(0,a+1)),s=cb(e.subarray(a+1));return o+(s-o)*(i-a)}}function oR(e,t,r=mT){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 sR(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 Xr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Vn(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 my=Symbol("implicit");function fv(){var e=new sb,t=[],r=[],n=my;function i(a){let o=e.get(a);if(o===void 0){if(n!==my)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 sb;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 fv(t,r).unknown(n)},Xr.apply(i,arguments),i}function Ds(){var e=fv().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,d=p?n:i;a=(d-y)/Math.max(1,h-u+l*2),s&&(a=Math.floor(a)),y+=(d-y-a*(h-u))*c,o=a*(1-u),s&&(y=Math.round(y),o=Math.round(o));var m=sR(h).map(function(v){return y+a*v});return r(p?m.reverse():m)}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 Ds(t(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},Xr.apply(f(),arguments)}function vT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return vT(t())},e}function ps(){return vT(Ds.apply(null,arguments).paddingInner(1))}function uR(e){return function(){return e}}function bl(e){return+e}var fb=[0,1];function er(e){return e}function yy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:uR(isNaN(t)?NaN:.5)}function lR(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function cR(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=yy(i,n),a=r(o,a)):(n=yy(n,i),a=r(a,o)),function(s){return a(n(s))}}function fR(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]=yy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=Su(e,s,1,n)-1;return a[u](i[u](s))}}function Au(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ec(){var e=fb,t=fb,r=pa,n,i,a,o=er,s,u,l;function c(){var h=Math.min(e.length,t.length);return o!==er&&(o=lR(e[0],e[h-1])),s=h>2?fR:cR,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),rn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,bl),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=av,c()},f.clamp=function(h){return arguments.length?(o=h?!0:er,c()):o!==er},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 hv(){return Ec()(er,er)}function hR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xl(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 Ya(e){return e=xl(Math.abs(e)),e?e[1]:NaN}function pR(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 dR(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var mR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Is(e){if(!(t=mR.exec(e)))throw new Error("invalid format: "+e);var t;return new pv({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]})}Is.prototype=pv.prototype;function pv(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+""}pv.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 yR(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 bT;function gR(e,t){var r=xl(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(bT=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")+xl(e,Math.max(0,t+a-1))[0]}function hb(e,t){var r=xl(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 pb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hR,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)=>hb(e*100,t),r:hb,s:gR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function db(e){return e}var mb=Array.prototype.map,yb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function vR(e){var t=e.grouping===void 0||e.thousands===void 0?db:pR(mb.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?db:dR(mb.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=Is(f);var h=f.fill,p=f.align,y=f.sign,d=f.symbol,m=f.zero,v=f.width,_=f.comma,b=f.precision,x=f.trim,g=f.type;g==="n"?(_=!0,g="g"):pb[g]||(b===void 0&&(b=12),x=!0,g="g"),(m||h==="0"&&p==="=")&&(m=!0,h="0",p="=");var w=d==="$"?r:d==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=d==="$"?n:/[%p]/.test(g)?o:"",A=pb[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 M(P){var E=w,C=S,j,k,$;if(g==="c")C=A(P)+C,P="";else{P=+P;var N=P<0||1/P<0;if(P=isNaN(P)?u:A(Math.abs(P),b),x&&(P=yR(P)),N&&+P==0&&y!=="+"&&(N=!1),E=(N?y==="("?y:s:y==="-"||y==="("?"":y)+E,C=(g==="s"?yb[8+bT/3]:"")+C+(N&&y==="("?")":""),T){for(j=-1,k=P.length;++j<k;)if($=P.charCodeAt(j),48>$||$>57){C=($===46?i+P.slice(j+1):P.slice(j))+C,P=P.slice(0,j);break}}}_&&!m&&(P=t(P,1/0));var W=E.length+P.length+C.length,z=W<v?new Array(v-W+1).join(h):"";switch(_&&m&&(P=t(z+P,z.length?v-C.length:1/0),z=""),p){case"<":P=E+P+C+z;break;case"=":P=E+z+P+C;break;case"^":P=z.slice(0,W=z.length>>1)+E+P+C+z.slice(W);break;default:P=z+E+P+C;break}return a(P)}return M.toString=function(){return f+""},M}function c(f,h){var p=l((f=Is(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Ya(h)/3)))*3,d=Math.pow(10,-y),m=yb[8+y/3];return function(v){return p(d*v)+m}}return{format:l,formatPrefix:c}}var qu,dv,xT;bR({thousands:",",grouping:[3],currency:["$",""]});function bR(e){return qu=vR(e),dv=qu.format,xT=qu.formatPrefix,qu}function xR(e){return Math.max(0,-Ya(Math.abs(e)))}function _R(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ya(t)/3)))*3-Ya(Math.abs(e)))}function wR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ya(t)-Ya(e))+1}function _T(e,t,r,n){var i=dy(e,t,r),a;switch(n=Is(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=_R(i,o))&&(n.precision=a),xT(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=wR(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=xR(i))&&(n.precision=a-(n.type==="%")*2);break}}return dv(n)}function _i(e){var t=e.domain;return e.ticks=function(r){var n=t();return hy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return _T(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=py(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 oa(){var e=hv();return e.copy=function(){return Au(e,oa())},Xr.apply(e,arguments),_i(e)}function wT(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,bl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return wT(e).unknown(t)},e=arguments.length?Array.from(e,bl):[0,1],_i(r)}function ST(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 gb(e){return Math.log(e)}function vb(e){return Math.exp(e)}function SR(e){return-Math.log(-e)}function AR(e){return-Math.exp(-e)}function OR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function TR(e){return e===10?OR:e===Math.E?Math.exp:t=>Math.pow(e,t)}function PR(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 bb(e){return(t,r)=>-e(-t,r)}function mv(e){const t=e(gb,vb),r=t.domain;let n=10,i,a;function o(){return i=PR(n),a=TR(n),r()[0]<0?(i=bb(i),a=bb(a),e(SR,AR)):e(gb,vb),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,d;const m=s==null?10:+s;let v=[];if(!(n%1)&&p-h<m){if(h=Math.floor(h),p=Math.ceil(p),l>0){for(;h<=p;++h)for(y=1;y<n;++y)if(d=h<0?y/a(-h):y*a(h),!(d<l)){if(d>c)break;v.push(d)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(d=h>0?y/a(-h):y*a(h),!(d<l)){if(d>c)break;v.push(d)}v.length*2<m&&(v=hy(l,c,m))}else v=hy(h,p,Math.min(p-h,m)).map(a);return f?v.reverse():v},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Is(u)).precision==null&&(u.trim=!0),u=dv(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(ST(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function AT(){const e=mv(Ec()).domain([1,10]);return e.copy=()=>Au(e,AT()).base(e.base()),Xr.apply(e,arguments),e}function xb(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 yv(e){var t=1,r=e(xb(t),_b(t));return r.constant=function(n){return arguments.length?e(xb(t=+n),_b(t)):t},_i(r)}function OT(){var e=yv(Ec());return e.copy=function(){return Au(e,OT()).constant(e.constant())},Xr.apply(e,arguments)}function wb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ER(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function CR(e){return e<0?-e*e:e*e}function gv(e){var t=e(er,er),r=1;function n(){return r===1?e(er,er):r===.5?e(ER,CR):e(wb(r),wb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},_i(t)}function vv(){var e=gv(Ec());return e.copy=function(){return Au(e,vv()).exponent(e.exponent())},Xr.apply(e,arguments),e}function MR(){return vv.apply(null,arguments).exponent(.5)}function Sb(e){return Math.sign(e)*e*e}function kR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function TT(){var e=hv(),t=[0,1],r=!1,n;function i(a){var o=kR(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Sb(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,bl)).map(Sb)),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 TT(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xr.apply(i,arguments),_i(i)}function PT(){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]=oR(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Su(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(mi),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 PT().domain(e).range(t).unknown(n)},Xr.apply(a,arguments)}function ET(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Su(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 ET().domain([e,t]).range(i).unknown(a)},Xr.apply(_i(o),arguments)}function CT(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Su(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 CT().domain(e).range(t).unknown(r)},Xr.apply(i,arguments)}const Ef=new Date,Cf=new Date;function Ee(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=>Ee(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)=>(Ef.setTime(+a),Cf.setTime(+o),e(Ef),e(Cf),Math.floor(r(Ef,Cf))),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 _l=Ee(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_l.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ee(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):_l);_l.range;const Ln=1e3,Fr=Ln*60,Bn=Fr*60,Hn=Bn*24,bv=Hn*7,Ab=Hn*30,Mf=Hn*365,Ui=Ee(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ln)},(e,t)=>(t-e)/Ln,e=>e.getUTCSeconds());Ui.range;const xv=Ee(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ln)},(e,t)=>{e.setTime(+e+t*Fr)},(e,t)=>(t-e)/Fr,e=>e.getMinutes());xv.range;const _v=Ee(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Fr)},(e,t)=>(t-e)/Fr,e=>e.getUTCMinutes());_v.range;const wv=Ee(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ln-e.getMinutes()*Fr)},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getHours());wv.range;const Sv=Ee(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getUTCHours());Sv.range;const Ou=Ee(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Fr)/Hn,e=>e.getDate()-1);Ou.range;const Cc=Ee(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hn,e=>e.getUTCDate()-1);Cc.range;const MT=Ee(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hn,e=>Math.floor(e/Hn));MT.range;function da(e){return Ee(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())*Fr)/bv)}const Mc=da(0),wl=da(1),$R=da(2),jR=da(3),Va=da(4),RR=da(5),DR=da(6);Mc.range;wl.range;$R.range;jR.range;Va.range;RR.range;DR.range;function ma(e){return Ee(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)/bv)}const kc=ma(0),Sl=ma(1),IR=ma(2),NR=ma(3),Za=ma(4),LR=ma(5),BR=ma(6);kc.range;Sl.range;IR.range;NR.range;Za.range;LR.range;BR.range;const Av=Ee(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());Av.range;const Ov=Ee(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());Ov.range;const Gn=Ee(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());Gn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ee(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)});Gn.range;const Kn=Ee(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());Kn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ee(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)});Kn.range;function kT(e,t,r,n,i,a){const o=[[Ui,1,Ln],[Ui,5,5*Ln],[Ui,15,15*Ln],[Ui,30,30*Ln],[a,1,Fr],[a,5,5*Fr],[a,15,15*Fr],[a,30,30*Fr],[i,1,Bn],[i,3,3*Bn],[i,6,6*Bn],[i,12,12*Bn],[n,1,Hn],[n,2,2*Hn],[r,1,bv],[t,1,Ab],[t,3,3*Ab],[e,1,Mf]];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=cv(([,,m])=>m).right(o,h);if(p===o.length)return e.every(dy(l/Mf,c/Mf,f));if(p===0)return _l.every(Math.max(dy(l,c,f),1));const[y,d]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(d)}return[s,u]}const[qR,FR]=kT(Kn,Ov,kc,MT,Sv,_v),[zR,UR]=kT(Gn,Av,Mc,Ou,wv,xv);function kf(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 $f(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 Go(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function WR(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=Ko(i),c=Xo(i),f=Ko(a),h=Xo(a),p=Ko(o),y=Xo(o),d=Ko(s),m=Xo(s),v=Ko(u),_=Xo(u),b={a:N,A:W,b:z,B:I,c:null,d:Mb,e:Mb,f:pD,g:SD,G:OD,H:cD,I:fD,j:hD,L:$T,m:dD,M:mD,p:B,q:D,Q:jb,s:Rb,S:yD,u:gD,U:vD,V:bD,w:xD,W:_D,x:null,X:null,y:wD,Y:AD,Z:TD,"%":$b},x={a:F,A:X,b:L,B:Y,c:null,d:kb,e:kb,f:MD,g:qD,G:zD,H:PD,I:ED,j:CD,L:RT,m:kD,M:$D,p:Z,q:H,Q:jb,s:Rb,S:jD,u:RD,U:DD,V:ID,w:ND,W:LD,x:null,X:null,y:BD,Y:FD,Z:UD,"%":$b},g={a:M,A:P,b:E,B:C,c:j,d:Eb,e:Eb,f:oD,g:Pb,G:Tb,H:Cb,I:Cb,j:rD,L:aD,m:eD,M:nD,p:T,q:tD,Q:uD,s:lD,S:iD,u:YR,U:VR,V:ZR,w:XR,W:JR,x:k,X:$,y:Pb,Y:Tb,Z:QR,"%":sD};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(q,K){return function(Q){var R=[],J=-1,U=0,ot=q.length,yt,st,ht;for(Q instanceof Date||(Q=new Date(+Q));++J<ot;)q.charCodeAt(J)===37&&(R.push(q.slice(U,J)),(st=Ob[yt=q.charAt(++J)])!=null?yt=q.charAt(++J):st=yt==="e"?" ":"0",(ht=K[yt])&&(yt=ht(Q,st)),R.push(yt),U=J+1);return R.push(q.slice(U,J)),R.join("")}}function S(q,K){return function(Q){var R=Go(1900,void 0,1),J=A(R,q,Q+="",0),U,ot;if(J!=Q.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(K&&!("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=$f(Go(R.y,0,1)),ot=U.getUTCDay(),U=ot>4||ot===0?Sl.ceil(U):Sl(U),U=Cc.offset(U,(R.V-1)*7),R.y=U.getUTCFullYear(),R.m=U.getUTCMonth(),R.d=U.getUTCDate()+(R.w+6)%7):(U=kf(Go(R.y,0,1)),ot=U.getDay(),U=ot>4||ot===0?wl.ceil(U):wl(U),U=Ou.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),ot="Z"in R?$f(Go(R.y,0,1)).getUTCDay():kf(Go(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(ot+5)%7:R.w+R.U*7-(ot+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,$f(R)):kf(R)}}function A(q,K,Q,R){for(var J=0,U=K.length,ot=Q.length,yt,st;J<U;){if(R>=ot)return-1;if(yt=K.charCodeAt(J++),yt===37){if(yt=K.charAt(J++),st=g[yt in Ob?K.charAt(J++):yt],!st||(R=st(q,Q,R))<0)return-1}else if(yt!=Q.charCodeAt(R++))return-1}return R}function T(q,K,Q){var R=l.exec(K.slice(Q));return R?(q.p=c.get(R[0].toLowerCase()),Q+R[0].length):-1}function M(q,K,Q){var R=p.exec(K.slice(Q));return R?(q.w=y.get(R[0].toLowerCase()),Q+R[0].length):-1}function P(q,K,Q){var R=f.exec(K.slice(Q));return R?(q.w=h.get(R[0].toLowerCase()),Q+R[0].length):-1}function E(q,K,Q){var R=v.exec(K.slice(Q));return R?(q.m=_.get(R[0].toLowerCase()),Q+R[0].length):-1}function C(q,K,Q){var R=d.exec(K.slice(Q));return R?(q.m=m.get(R[0].toLowerCase()),Q+R[0].length):-1}function j(q,K,Q){return A(q,t,K,Q)}function k(q,K,Q){return A(q,r,K,Q)}function $(q,K,Q){return A(q,n,K,Q)}function N(q){return o[q.getDay()]}function W(q){return a[q.getDay()]}function z(q){return u[q.getMonth()]}function I(q){return s[q.getMonth()]}function B(q){return i[+(q.getHours()>=12)]}function D(q){return 1+~~(q.getMonth()/3)}function F(q){return o[q.getUTCDay()]}function X(q){return a[q.getUTCDay()]}function L(q){return u[q.getUTCMonth()]}function Y(q){return s[q.getUTCMonth()]}function Z(q){return i[+(q.getUTCHours()>=12)]}function H(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var K=w(q+="",b);return K.toString=function(){return q},K},parse:function(q){var K=S(q+="",!1);return K.toString=function(){return q},K},utcFormat:function(q){var K=w(q+="",x);return K.toString=function(){return q},K},utcParse:function(q){var K=S(q+="",!0);return K.toString=function(){return q},K}}}var Ob={"-":"",_:" ",0:"0"},je=/^\s*\d+/,HR=/^%/,GR=/[\\^$*+?|[\]().{}]/g;function kt(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 KR(e){return e.replace(GR,"\\$&")}function Ko(e){return new RegExp("^(?:"+e.map(KR).join("|")+")","i")}function Xo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function XR(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function YR(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function VR(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ZR(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function JR(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Pb(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function QR(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 tD(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function eD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Eb(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function rD(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Cb(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function nD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function iD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function aD(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=je.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function sD(e,t,r){var n=HR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function uD(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Mb(e,t){return kt(e.getDate(),t,2)}function cD(e,t){return kt(e.getHours(),t,2)}function fD(e,t){return kt(e.getHours()%12||12,t,2)}function hD(e,t){return kt(1+Ou.count(Gn(e),e),t,3)}function $T(e,t){return kt(e.getMilliseconds(),t,3)}function pD(e,t){return $T(e,t)+"000"}function dD(e,t){return kt(e.getMonth()+1,t,2)}function mD(e,t){return kt(e.getMinutes(),t,2)}function yD(e,t){return kt(e.getSeconds(),t,2)}function gD(e){var t=e.getDay();return t===0?7:t}function vD(e,t){return kt(Mc.count(Gn(e)-1,e),t,2)}function jT(e){var t=e.getDay();return t>=4||t===0?Va(e):Va.ceil(e)}function bD(e,t){return e=jT(e),kt(Va.count(Gn(e),e)+(Gn(e).getDay()===4),t,2)}function xD(e){return e.getDay()}function _D(e,t){return kt(wl.count(Gn(e)-1,e),t,2)}function wD(e,t){return kt(e.getFullYear()%100,t,2)}function SD(e,t){return e=jT(e),kt(e.getFullYear()%100,t,2)}function AD(e,t){return kt(e.getFullYear()%1e4,t,4)}function OD(e,t){var r=e.getDay();return e=r>=4||r===0?Va(e):Va.ceil(e),kt(e.getFullYear()%1e4,t,4)}function TD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function kb(e,t){return kt(e.getUTCDate(),t,2)}function PD(e,t){return kt(e.getUTCHours(),t,2)}function ED(e,t){return kt(e.getUTCHours()%12||12,t,2)}function CD(e,t){return kt(1+Cc.count(Kn(e),e),t,3)}function RT(e,t){return kt(e.getUTCMilliseconds(),t,3)}function MD(e,t){return RT(e,t)+"000"}function kD(e,t){return kt(e.getUTCMonth()+1,t,2)}function $D(e,t){return kt(e.getUTCMinutes(),t,2)}function jD(e,t){return kt(e.getUTCSeconds(),t,2)}function RD(e){var t=e.getUTCDay();return t===0?7:t}function DD(e,t){return kt(kc.count(Kn(e)-1,e),t,2)}function DT(e){var t=e.getUTCDay();return t>=4||t===0?Za(e):Za.ceil(e)}function ID(e,t){return e=DT(e),kt(Za.count(Kn(e),e)+(Kn(e).getUTCDay()===4),t,2)}function ND(e){return e.getUTCDay()}function LD(e,t){return kt(Sl.count(Kn(e)-1,e),t,2)}function BD(e,t){return kt(e.getUTCFullYear()%100,t,2)}function qD(e,t){return e=DT(e),kt(e.getUTCFullYear()%100,t,2)}function FD(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function zD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Za(e):Za.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function UD(){return"+0000"}function $b(){return"%"}function jb(e){return+e}function Rb(e){return Math.floor(+e/1e3)}var Ta,IT,NT;WD({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 WD(e){return Ta=WR(e),IT=Ta.format,Ta.parse,NT=Ta.utcFormat,Ta.utcParse,Ta}function HD(e){return new Date(e)}function GD(e){return e instanceof Date?+e:+new Date(+e)}function Tv(e,t,r,n,i,a,o,s,u,l){var c=hv(),f=c.invert,h=c.domain,p=l(".%L"),y=l(":%S"),d=l("%I:%M"),m=l("%I %p"),v=l("%a %d"),_=l("%b %d"),b=l("%B"),x=l("%Y");function g(w){return(u(w)<w?p:s(w)<w?y:o(w)<w?d:a(w)<w?m:n(w)<w?i(w)<w?v:_: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,GD)):h().map(HD)},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?g: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(ST(S,w)):c},c.copy=function(){return Au(c,Tv(e,t,r,n,i,a,o,s,u,l))},c}function Al(){return Xr.apply(Tv(zR,UR,Gn,Av,Mc,Ou,wv,xv,Ui,IT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function KD(){return Xr.apply(Tv(qR,FR,Kn,Ov,kc,Cc,Sv,_v,Ui,NT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $c(){var e=0,t=1,r,n,i,a,o=er,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(pa),l.rangeRound=c(av),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 wi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function LT(){var e=_i($c()(er));return e.copy=function(){return wi(e,LT())},Vn.apply(e,arguments)}function BT(){var e=mv($c()).domain([1,10]);return e.copy=function(){return wi(e,BT()).base(e.base())},Vn.apply(e,arguments)}function qT(){var e=yv($c());return e.copy=function(){return wi(e,qT()).constant(e.constant())},Vn.apply(e,arguments)}function Pv(){var e=gv($c());return e.copy=function(){return wi(e,Pv()).exponent(e.exponent())},Vn.apply(e,arguments)}function XD(){return Pv.apply(null,arguments).exponent(.5)}function FT(){var e=[],t=er;function r(n){if(n!=null&&!isNaN(n=+n))return t((Su(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(mi),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)=>aR(e,a/n))},r.copy=function(){return FT(t).domain(e)},Vn.apply(r,arguments)}function jc(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,l=er,c,f=!1,h;function p(d){return isNaN(d=+d)?h:(d=.5+((d=+c(d))-a)*(n*d<n*a?s:u),l(f?Math.max(0,Math.min(1,d)):d))}p.domain=function(d){return arguments.length?([e,t,r]=d,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(d){return arguments.length?(f=!!d,p):f},p.interpolator=function(d){return arguments.length?(l=d,p):l};function y(d){return function(m){var v,_,b;return arguments.length?([v,_,b]=m,l=Pj(d,[v,_,b]),p):[l(0),l(.5),l(1)]}}return p.range=y(pa),p.rangeRound=y(av),p.unknown=function(d){return arguments.length?(h=d,p):h},function(d){return c=d,i=d(e),a=d(t),o=d(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function zT(){var e=_i(jc()(er));return e.copy=function(){return wi(e,zT())},Vn.apply(e,arguments)}function UT(){var e=mv(jc()).domain([.1,1,10]);return e.copy=function(){return wi(e,UT()).base(e.base())},Vn.apply(e,arguments)}function WT(){var e=yv(jc());return e.copy=function(){return wi(e,WT()).constant(e.constant())},Vn.apply(e,arguments)}function Ev(){var e=gv(jc());return e.copy=function(){return wi(e,Ev()).exponent(e.exponent())},Vn.apply(e,arguments)}function YD(){return Ev.apply(null,arguments).exponent(.5)}function Zt(e){return function(){return e}}const HT=Math.cos,Ol=Math.sin,un=Math.sqrt,Tl=Math.PI,Rc=2*Tl,gy=Math.PI,vy=2*gy,Bi=1e-6,VD=vy-Bi;function GT(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function ZD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return GT;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 JD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?GT:ZD(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>Bi)if(!(Math.abs(f*u-l*c)>Bi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,d=u*u+l*l,m=p*p+y*y,v=Math.sqrt(d),_=Math.sqrt(h),b=a*Math.tan((gy-Math.acos((d+h-m)/(2*v*_)))/2),x=b/_,g=b/v;Math.abs(x-1)>Bi&&this._append`L${t+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+g*u},${this._y1=r+g*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)>Bi||Math.abs(this._y1-c)>Bi)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%vy+vy),h>VD?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>Bi&&this._append`A${n},${n},0,${+(h>=gy)},${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 Cv(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 JD(t)}function Mv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function KT(e){this._context=e}KT.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 vi(e){return new KT(e)}function XT(e){return e[0]}function YT(e){return e[1]}function kv(e,t){var r=Zt(!0),n=null,i=vi,a=null,o=Cv(s);e=typeof e=="function"?e:e===void 0?XT:Zt(e),t=typeof t=="function"?t:t===void 0?YT:Zt(t);function s(u){var l,c=(u=Mv(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:Zt(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Zt(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Zt(!!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 Wi(e,t,r){var n=null,i=Zt(!0),a=null,o=vi,s=null,u=Cv(l);e=typeof e=="function"?e:e===void 0?XT:Zt(+e),t=typeof t=="function"?t:Zt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?YT:Zt(+r);function l(f){var h,p,y,d=(f=Mv(f)).length,m,v=!1,_,b=new Array(d),x=new Array(d);for(a==null&&(s=o(_=u())),h=0;h<=d;++h){if(!(h<d&&i(m=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],x[y]);s.lineEnd(),s.areaEnd()}v&&(b[h]=+e(m,h,f),x[h]=+t(m,h,f),s.point(n?+n(m,h,f):b[h],r?+r(m,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:Zt(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Zt(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Zt(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:Zt(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Zt(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Zt(+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:Zt(!!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 VT{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 QD(e){return new VT(e,!0)}function tI(e){return new VT(e,!1)}const $v={draw(e,t){const r=un(t/Tl);e.moveTo(r,0),e.arc(0,0,r,0,Rc)}},eI={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()}},ZT=un(1/3),rI=ZT*2,nI={draw(e,t){const r=un(t/rI),n=r*ZT;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},iI={draw(e,t){const r=un(t),n=-r/2;e.rect(n,n,r,r)}},aI=.8908130915292852,JT=Ol(Tl/10)/Ol(7*Tl/10),oI=Ol(Rc/10)*JT,sI=-HT(Rc/10)*JT,uI={draw(e,t){const r=un(t*aI),n=oI*r,i=sI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Rc*a/5,s=HT(o),u=Ol(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},jf=un(3),lI={draw(e,t){const r=-un(t/(jf*3));e.moveTo(0,r*2),e.lineTo(-jf*r,-r),e.lineTo(jf*r,-r),e.closePath()}},Ir=-.5,Nr=un(3)/2,by=1/un(12),cI=(by/2+1)*3,fI={draw(e,t){const r=un(t/cI),n=r/2,i=r*by,a=n,o=r*by+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Ir*n-Nr*i,Nr*n+Ir*i),e.lineTo(Ir*a-Nr*o,Nr*a+Ir*o),e.lineTo(Ir*s-Nr*u,Nr*s+Ir*u),e.lineTo(Ir*n+Nr*i,Ir*i-Nr*n),e.lineTo(Ir*a+Nr*o,Ir*o-Nr*a),e.lineTo(Ir*s+Nr*u,Ir*u-Nr*s),e.closePath()}};function hI(e,t){let r=null,n=Cv(i);e=typeof e=="function"?e:Zt(e||$v),t=typeof t=="function"?t:Zt(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:Zt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Zt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Pl(){}function El(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 QT(e){this._context=e}QT.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:El(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:El(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pI(e){return new QT(e)}function tP(e){this._context=e}tP.prototype={areaStart:Pl,areaEnd:Pl,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:El(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dI(e){return new tP(e)}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(){(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:El(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mI(e){return new eP(e)}function rP(e){this._context=e}rP.prototype={areaStart:Pl,areaEnd:Pl,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 yI(e){return new rP(e)}function Db(e){return e<0?-1:1}function Ib(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(Db(a)+Db(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Nb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Rf(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 Cl(e){this._context=e}Cl.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:Rf(this,this._t0,Nb(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,Rf(this,Nb(this,r=Ib(this,e,t)),r);break;default:Rf(this,this._t0,r=Ib(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function nP(e){this._context=new iP(e)}(nP.prototype=Object.create(Cl.prototype)).point=function(e,t){Cl.prototype.point.call(this,t,e)};function iP(e){this._context=e}iP.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 gI(e){return new Cl(e)}function vI(e){return new nP(e)}function aP(e){this._context=e}aP.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=Lb(e),i=Lb(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 Lb(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 bI(e){return new aP(e)}function Dc(e,t){this._context=e,this._t=t}Dc.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 xI(e){return new Dc(e,.5)}function _I(e){return new Dc(e,0)}function wI(e){return new Dc(e,1)}function Ja(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 xy(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function SI(e,t){return e[t]}function AI(e){const t=[];return t.key=e,t}function Ml(){var e=Zt([]),t=xy,r=Ja,n=SI;function i(a){var o=Array.from(e.apply(this,arguments),AI),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=Mv(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:Zt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Zt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?xy:typeof a=="function"?a:Zt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ja,i):r},i}function OI(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}Ja(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}Ja(e,t)}}function PI(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 d=e[t[y]],m=d[n][1]||0,v=d[n-1][1]||0;p+=m-v}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,Ja(e,t)}}function In(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oP(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 Cr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qa={duration:.5,overwrite:!1,delay:0},Rv,Le,te,zr=1e8,Gt=1/zr,xy=Math.PI*2,RI=xy/4,DI=0,fP=Math.sqrt,II=Math.cos,NI=Math.sin,$e=function(t){return typeof t=="string"},ce=function(t){return typeof t=="function"},Xn=function(t){return typeof t=="number"},Dv=function(t){return typeof t>"u"},En=function(t){return typeof t=="object"},cr=function(t){return t!==!1},Iv=function(){return typeof window<"u"},Fu=function(t){return ce(t)||$e(t)},hP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ye=Array.isArray,wy=/(?:-?\.?\d|\.)+/gi,pP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ja=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Df=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,dP=/[+-]=-?[.\d]+/,mP=/[^,'"\[\]\s]+/gi,LI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,se,bn,Sy,Nv,kr={},kl={},yP,gP=function(t){return(kl=to(t,kr))&&yr},Lv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},Ns=function(t,r){return!r&&console.warn(t)},vP=function(t,r){return t&&(kr[t]=r)&&kl&&(kl[t]=r)||kr},Ls=function(){return 0},BI={suppressEvents:!0,isStart:!0,kill:!1},ul={suppressEvents:!0,kill:!1},qI={suppressEvents:!0},Bv={},yi=[],Ay={},bP,Or={},If={},zb=30,ll=[],qv="",Fv=function(t){var r=t[0],n,i;if(En(r)||ce(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=ll.length;i--&&!ll[i].targetTest(r););n=ll[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new UP(t[i],n)))||t.splice(i,1);return t},Vi=function(t){return t._gsap||Fv(Ur(t))[0]._gsap},_P=function(t,r,n){return(n=t[r])&&ce(n)?t[r]():Dv(n)&&t.getAttribute&&t.getAttribute(r)||n},fr=function(t,r){return(t=t.split(",")).forEach(r)||t},pe=function(t){return Math.round(t*1e5)/1e5||0},xe=function(t){return Math.round(t*1e7)/1e7||0},Ba=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},$l=function(){var t=yi.length,r=yi.slice(0),n,i;for(Ay={},yi.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},zv=function(t){return!!(t._initted||t._startAt||t.add)},xP=function(t,r,n,i){yi.length&&!Le&&$l(),t.render(r,n,!!(Le&&r<0&&zv(t))),yi.length&&!Le&&$l()},wP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(mP).length<2?r:$e(t)?t.trim():t},SP=function(t){return t},$r=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])}},to=function(t,r){for(var n in r)t[n]=r[n];return t},Ub=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},jl=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},ds=function(t){var r=t.parent||se,n=t.keyframes?zI(Ye(t.keyframes)):$r;if(cr(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},AP=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},Ic=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},vi=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Zi=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},Oy=function(t,r,n,i){return t._startAt&&(Le?t._startAt.revert(ul):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},HI=function e(t){return!t||t._ts&&e(t.parent)},Wb=function(t){return t._repeat?eo(t._tTime,t=t.duration()+t._rDelay)*t:0},eo=function(t,r){var n=Math.floor(t=xe(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)},Nc=function(t){return t._end=xe(t._start+(t._tDur/Math.abs(t._ts||t._rts||Gt)||0))},Lc=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=xe(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Nc(t),n._dirty||Zi(n,t)),t},OP=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||Tu(0,r.totalDuration(),n)-r._tTime>Gt)&&r.render(n,!0)),Zi(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=-Gt}},xn=function(t,r,n,i){return r.parent&&vi(r),r._start=xe((Xn(n)?n:n||t!==se?Br(t,n,r):t._time)+r._delay),r._end=xe(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),AP(t,r,"_first","_last",t._sort?"_start":0),Ty(r)||(t._recent=r),i||OP(t,r),t._ts<0&&Lc(t,t._tTime),t},TP=function(t,r){return(kr.ScrollTrigger||Lv("scrollTrigger",r))&&kr.ScrollTrigger.create(r,t)},PP=function(t,r,n,i,a){if(Wv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!Le&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&bP!==Tr.frame)return yi.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))},Ty=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&&Ty(t))||(t._ts<0||t._dp._ts<0)&&!Ty(t))?0:1,s=t._rDelay,u=0,l,c,f;if(s&&t._repeat&&(u=Tu(0,t._tDur,r),c=eo(u,s),t._yoyo&&c&1&&(o=1-o),c!==eo(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||Le||i||t._zTime===Gt||!r&&t._zTime){if(!t._initted&&PP(t,r,i,n,u))return;for(f=t._zTime,t._zTime=r||(n?Gt: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&&Oy(t,r,n,!0),t._onUpdate&&!n&&Er(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&Er(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&vi(t,1),!n&&!Le&&(Er(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},XI=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}},ro=function(t,r,n,i){var a=t._repeat,o=xe(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:xe(o*(a+1)+t._rDelay*a):o,s>0&&!i&&Lc(t,t._tTime=t._tDur*s),t.parent&&Nc(t),n||Zi(t.parent,t),t},Hb=function(t){return t instanceof Qe?Zi(t):ro(t,t._dur)},YI={_start:0,endTime:Ls,totalDuration:Ls},Br=function e(t,r,n){var i=t.labels,a=t._recent||YI,o=t.duration()>=zr?a.endTime(!1):t._dur,s,u,l;return $e(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*(Ye(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+u:o+u)):r==null?o:+r},ms=function(t,r,n){var i=Xn(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=cr(u.vars.inherit)&&u.parent;o.immediateRender=cr(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new _e(r[0],o,r[a+1])},wi=function(t,r){return t||t===0?r(t):r},Tu=function(t,r,n){return n<t?t:n>r?r:n},Xe=function(t,r){return!$e(t)||!(r=LI.exec(t))?"":r[1]},VI=function(t,r,n){return wi(n,function(i){return Tu(t,r,i)})},Py=[].slice,EP=function(t,r){return t&&En(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&En(t[0]))&&!t.nodeType&&t!==bn},ZI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return $e(i)&&!r||EP(i,1)?(a=n).push.apply(a,Ur(i)):n.push(i)})||n},Ur=function(t,r,n){return te&&!r&&te.selector?te.selector(t):$e(t)&&!n&&(Sy||!no())?Py.call((r||Nv).querySelectorAll(t),0):Ye(t)?ZI(t,n):EP(t)?Py.call(t,0):t?[t]:[]},Ey=function(t){return t=Ur(t)[0]||Ns("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Ur(r,n.querySelectorAll?n:n===t?Ns("Invalid scope")||Nv.createElement("div"):t)}},CP=function(t){return t.sort(function(){return .5-Math.random()})},MP=function(t){if(ce(t))return t;var r=En(t)?t:{each:t},n=Ji(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 $e(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&u&&(c=i[0],f=i[1]),function(h,p,y){var d=(y||r).length,m=o[d],v,x,b,_,g,w,S,A,T;if(!m){if(T=r.grid==="auto"?0:(r.grid||[1,zr])[1],!T){for(S=-zr;S<(S=y[T++].getBoundingClientRect().left)&&T<d;);T<d&&T--}for(m=o[d]=[],v=u?Math.min(T,d)*c-.5:i%T,x=T===zr?0:u?d*f/T-.5:i/T|0,S=0,A=zr,w=0;w<d;w++)b=w%T-v,_=x-(w/T|0),m[w]=g=l?Math.abs(l==="y"?_:b):fP(b*b+_*_),g>S&&(S=g),g<A&&(A=g);i==="random"&&CP(m),m.max=S-A,m.min=A,m.v=d=(parseFloat(r.amount)||parseFloat(r.each)*(T>d?d-1:l?l==="y"?d/T:T:Math.max(T,d/T))||0)*(i==="edges"?-1:1),m.b=d<0?a-d:a,m.u=Xe(r.amount||r.each)||0,n=n&&d<0?qP(n):n}return d=(m[h]-m.min)/m.max||0,xe(m.b+(n?n(d):d)*m.v)+m.u}},Cy=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=xe(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Xn(n)?0:Xe(n))}},kP=function(t,r){var n=Ye(t),i,a;return!n&&En(t)&&(i=n=t.radius||zr,t.values?(t=Ur(t.values),(a=!Xn(t[0]))&&(i*=i)):t=Cy(t.increment)),wi(r,n?ce(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=zr,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||Xn(o)?c:c+Xe(o)}:Cy(t))},$P=function(t,r,n,i){return wi(Ye(t)?!r:n===!0?!!(n=0):!i,function(){return Ye(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||Xe(n))}},tN=function(t,r,n){return RP(t,r,0,1,n)},jP=function(t,r,n){return wi(n,function(i){return t[~~r(i)]})},eN=function e(t,r,n){var i=r-t;return Ye(t)?jP(t,e(0,t.length),r):wi(n,function(a){return(i+(a-t)%i)%i+t})},rN=function e(t,r,n){var i=r-t,a=i*2;return Ye(t)?jP(t,e(0,t.length-1),r):wi(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},Bs=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?mP:wy),n+=t.substr(r,i-r)+$P(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},RP=function(t,r,n,i,a){var o=r-t,s=i-n;return wi(a,function(u){return n+((u-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=$e(t),s={},u,l,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Ye(t)&&!Ye(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 d=Math.min(h,~~y);return c[d](y-d)},n=r}else i||(t=to(Ye(t)?[]:{},t));if(!c){for(u in r)Uv.call(s,t,u,"get",r[u]);a=function(y){return Kv(y,s)||(o?t.p:t)}}}return wi(n,a)},Gb=function(t,r,n){var i=t.labels,a=zr,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},Er=function(t,r,n){var i=t.vars,a=i[r],o=te,s=t._ctx,u,l,c;if(a)return u=i[r+"Params"],l=i.callbackScope||t,n&&yi.length&&$l(),s&&(te=s),c=u?a.apply(l,u):a.call(l),te=o,c},us=function(t){return vi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Le),t.progress()<1&&Er(t,"onInterrupt"),t},Ra,DP=[],IP=function(t){if(t)if(t=!t.name&&t.default||t,Iv()||t.headless){var r=t.name,n=ce(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:Ls,render:Kv,add:Uv,kill:bN,modifier:vN,rawVars:0},o={targetTest:0,get:0,getSetter:Gv,aliases:{},register:0};if(no(),t!==i){if(Or[r])return;$r(i,$r(jl(t,a),o)),to(i.prototype,to(a,jl(t,o))),Or[i.prop=r]=i,t.targetTest&&(ll.push(i),Bv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}vP(r,i),t.register&&t.register(yr,i,hr)}else DP.push(t)},Ht=255,ls={aqua:[0,Ht,Ht],lime:[0,Ht,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ht],navy:[0,0,128],white:[Ht,Ht,Ht],olive:[128,128,0],yellow:[Ht,Ht,0],orange:[Ht,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ht,0,0],pink:[Ht,192,203],cyan:[0,Ht,Ht],transparent:[Ht,Ht,Ht,0]},Nf=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)*Ht+.5|0},NP=function(t,r,n){var i=t?Xn(t)?[t>>16,t>>8&Ht,t&Ht]:0:ls.black,a,o,s,u,l,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ls[t])i=ls[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&Ht,i&Ht,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Ht,t&Ht]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(wy),!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]=Nf(u+1/3,a,o),i[1]=Nf(u,a,o),i[2]=Nf(u-1/3,a,o);else if(~t.indexOf("="))return i=t.match(pP),n&&i.length<4&&(i[3]=1),i}else i=t.match(wy)||ls.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Ht,o=i[1]/Ht,s=i[2]/Ht,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},LP=function(t){var r=[],n=[],i=-1;return t.split(gi).forEach(function(a){var o=a.match(ja)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Kb=function(t,r,n){var i="",a=(t+i).match(gi),o=r?"hsla(":"rgba(",s=0,u,l,c,f;if(!a)return t;if(a=a.map(function(h){return(h=NP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=LP(t),u=n.c,u.join(i)!==c.c.join(i)))for(l=t.replace(gi,"1").split(ja),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(gi),f=l.length-1;s<f;s++)i+=l[s]+a[s];return i+l[f]},gi=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ls)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),iN=/hsl[a]?\(/,BP=function(t){var r=t.join(" "),n;if(gi.lastIndex=0,gi.test(r))return n=iN.test(r),t[1]=Kb(t[1],n),t[0]=Kb(t[0],n,LP(t[1])),!0},qs,Tr=(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 d(m){var v=e()-i,x=m===!0,b,_,g,w;if((v>t||v<0)&&(n+=v-r),i+=v,g=i-n,b=g-o,(b>0||x)&&(w=++f.frame,h=g-f.time*1e3,f.time=g=g/1e3,o+=b+(b>=a?4:a-b),_=1),x||(u=l(d)),_)for(p=0;p<s.length;p++)s[p](g,h,w,m)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(m){return h/(1e3/(m||60))},wake:function(){yP&&(!Sy&&Iv()&&(bn=Sy=window,Nv=bn.document||{},kr.gsap=yr,(bn.gsapVersions||(bn.gsapVersions=[])).push(yr.version),gP(kl||bn.GreenSockGlobals||!bn.gsap&&bn||{}),DP.forEach(IP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&f.sleep(),l=c||function(m){return setTimeout(m,o-f.time*1e3+1|0)},qs=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),qs=0,l=Ls},lagSmoothing:function(m,v){t=m||1/0,r=Math.min(v||33,t)},fps:function(m){a=1e3/(m||240),o=f.time*1e3+a},add:function(m,v,x){var b=v?function(_,g,w,S){m(_,g,w,S),f.remove(b)}:m;return f.remove(m),s[x?"unshift":"push"](b),no(),b},remove:function(m,v){~(v=s.indexOf(m))&&s.splice(v,1)&&p>=v&&p--},_listeners:s},f})(),no=function(){return!qs&&Tr.wake()},Pt={},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,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(oN,"").trim():+l,i=u.substr(s+1).trim();return r},uN=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)},lN=function(t){var r=(t+"").split("("),n=Pt[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[sN(r[1])]:uN(t).split(",").map(wP)):Pt._CE&&aN.test(t)?Pt._CE("",t):n},qP=function(t){return function(r){return 1-t(1-r)}},FP=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},Ji=function(t,r){return t&&(ce(t)?t:Pt[t]||lN(t))||r},ya=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 fr(t,function(s){Pt[s]=kr[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},zP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},Lf=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/xy*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*NI((c-o)*a)+1},u=t==="out"?s:t==="in"?function(l){return 1-s(1-l)}:zP(s);return a=xy/a,u.config=function(l,c){return e(t,l,c)},u},Bf=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)}:zP(n);return i.config=function(a){return e(t,a)},i};fr("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;ya(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;ya("Elastic",Lf("in"),Lf("out"),Lf());(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};ya("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);ya("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});ya("Circ",function(e){return-(fP(1-e*e)-1)});ya("Sine",function(e){return e===1?1:-II(e*RI)+1});ya("Back",Bf("in"),Bf("out"),Bf());Pt.SteppedEase=Pt.steps=kr.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-Gt;return function(s){return((i*Tu(0,o,s)|0)+a)*n}}};Qa.ease=Pt["quad.out"];fr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return qv+=e+","+e+"Params,"});var UP=function(t,r){this.id=DI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:_P,this.set=r?r.getSetter:Gv},Fs=(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,ro(this,+r.duration,1,1),this.data=r.data,te&&(this._ctx=te,te.data.push(this)),qs||Tr.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,ro(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(no(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Lc(this,n),!a._dp||a.parent||OP(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)&&xn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Gt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),xP(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Wb(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)+Wb(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?eo(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Gt?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===-Gt?0:this._rts,this.totalTime(Tu(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Nc(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):(no(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Gt&&(this._tTime-=Gt)))),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)&&xn(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(cr(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=qI);var i=Le;return Le=n,zv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Le=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,Hb(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Hb(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(Br(this,n),cr(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,cr(i)),this._dur||(this._zTime=-Gt),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?-Gt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Gt,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)-Gt)},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=ce(n)?n:SP,s=function(){var l=i.then;i.then=null,ce(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(){us(this)},e})();$r(Fs.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:-Gt,_prom:0,_ps:!1,_rts:1});var Qe=(function(e){cP(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=cr(n.sortChildren),se&&xn(n.parent||se,In(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&TP(In(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return ms(0,arguments,this),this},r.from=function(i,a,o){return ms(1,arguments,this),this},r.fromTo=function(i,a,o,s){return ms(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,ds(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new _e(i,a,Br(this,o),1),this},r.call=function(i,a,o){return xn(this,_e.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 _e(i,o,Br(this,u)),this},r.staggerFrom=function(i,a,o,s,u,l,c){return o.runBackwards=1,ds(o).immediateRender=cr(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,ds(s).immediateRender=cr(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:xe(i),f=this._zTime<0!=i<0&&(this._initted||!l),h,p,y,d,m,v,x,b,_,g,w,S;if(this!==se&&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,_=this._start,b=this._ts,v=!b,f&&(l||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,m=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,a,o);if(h=xe(c%m),c===u?(d=this._repeat,h=l):(g=xe(c/m),d=~~g,d&&d===g&&(h=l,d--),h>l&&(h=l)),g=eo(this._tTime,m),!s&&this._tTime&&g!==d&&this._tTime-g*m-this._dur<=0&&(g=d),w&&d&1&&(h=l-h,S=1),d!==g&&!this._lock){var A=w&&g&1,T=A===(w&&d&1);if(d<g&&(A=!A),s=A?0:c%l?l:c,this._lock=1,this.render(s||(S?0:xe(d*m)),a,!l)._lock=0,this._tTime=c,!a&&this.parent&&Er(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(l=this._dur,u=this._tDur,T&&(this._lock=2,s=A?l:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;FP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(x=XI(this,xe(s),xe(h)),x&&(c-=h-(h=x._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&&(Er(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&&x!==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){x=0,y&&(c+=this._zTime=-Gt);break}}p=y}else{p=this._last;for(var M=i<0?i:h;p;){if(y=p._prev,(p._act||M<=p._end)&&p._ts&&x!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(M-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(M-p._start)*p._ts,a,o||Le&&zv(p)),h!==this._time||!this._ts&&!v){x=0,y&&(c+=this._zTime=M?-Gt:Gt);break}}p=y}}if(x&&!a&&(this.pause(),x.render(h>=s?0:-Gt)._zTime=h>=s?1:-1,this._ts))return this._start=_,Nc(this),this.render(i,a,o);this._onUpdate&&!a&&Er(this,"onUpdate",!0),(c===u&&this._tTime>=this.totalDuration()||!c&&s)&&(_===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(c===u&&this._ts>0||!c&&this._ts<0)&&vi(this,1),!a&&!(i<0&&!s)&&(c||s||!u)&&(Er(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(Xn(a)||(a=Br(this,a,i)),!(i instanceof Fs)){if(Ye(i))return i.forEach(function(s){return o.add(s,a)}),this;if($e(i))return this.addLabel(i,a);if(ce(i))i=_e.delayedCall(0,i);else return this}return this!==i?xn(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=-zr);for(var u=[],l=this._first;l;)l._start>=s&&(l instanceof _e?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 $e(i)?this.removeLabel(i):ce(i)?this.killTweensOf(i):(i.parent===this&&Ic(this,i),i===this._recent&&(this._recent=this._last),Zi(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=xe(Tr.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]=Br(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=_e.delayedCall(0,a||Ls,o);return s.data="isPause",this._hasPause=1,xn(this,s,Br(this,i))},r.removePause=function(i){var a=this._first;for(i=Br(this,i);a;)a._start===i&&a.data==="isPause"&&vi(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),u=s.length;u--;)li!==s[u]&&s[u].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Ur(i),u=this._first,l=Xn(a),c;u;)u instanceof _e?FI(u._targets,s)&&(l?(!li||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=Br(o,i),u=a,l=u.startAt,c=u.onStart,f=u.onStartParams,h=u.immediateRender,p,y=_e.to(o,$r({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())||Gt,onStart:function(){if(o.pause(),!p){var m=a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale());y._dur!==m&&ro(y,m,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,$r({startAt:{time:Br(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Gb(this,Br(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Gb(this,Br(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Gt)},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 Zi(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={}),Zi(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,u=zr,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,xn(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;ro(o,o===se&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(se._ts&&(xP(se,Rl(i,se)),bP=Tr.frame),Tr.frame>=zb){zb+=Cr.autoSleep||120;var a=se._first;if((!a||!a._ts)&&Cr.autoSleep&&Tr._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Tr.sleep()}}},t})(Fs);$r(Qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var cN=function(t,r,n,i,a,o,s){var u=new hr(this._pt,t,r,0,1,YP,null,a),l=0,c=0,f,h,p,y,d,m,v,x;for(u.b=n,u.e=i,n+="",i+="",(v=~i.indexOf("random("))&&(i=Bs(i)),o&&(x=[n,i],o(x,t,r),n=x[0],i=x[1]),h=n.match(Df)||[];f=Df.exec(i);)y=f[0],d=i.substring(l,f.index),p?p=(p+1)%5:d.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(m=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:d||c===1?d:",",s:m,c:y.charAt(1)==="="?Ba(m,y)-m:parseFloat(y)-m,m:p&&p<4?Math.round:0},l=Df.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=s,(dP.test(i)||v)&&(u.e=0),this._pt=u,u},Uv=function(t,r,n,i,a,o,s,u,l,c){ce(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:ce(f)?l?t[r.indexOf("set")||!ce(t["get"+r.substr(3)])?r:"get"+r.substr(3)](l):t[r]():f,p=ce(f)?l?mN:KP:Hv,y;if($e(i)&&(~i.indexOf("random(")&&(i=Bs(i)),i.charAt(1)==="="&&(y=Ba(h,i)+(Xe(h)||0),(y||y===0)&&(i=y))),!c||h!==i||My)return!isNaN(h*i)&&i!==""?(y=new hr(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?gN:XP,0,p),l&&(y.fp=l),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Lv(r,i),cN.call(this,t,r,h,i,p,u||Cr.stringFilter,l))},fN=function(t,r,n,i,a){if(ce(t)&&(t=ys(t,a,r,n,i)),!En(t)||t.style&&t.nodeType||Ye(t)||hP(t))return $e(t)?ys(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=ys(t[s],a,r,n,i);return o},WP=function(t,r,n,i,a,o){var s,u,l,c;if(Or[t]&&(s=new Or[t]).init(a,s.rawVars?r[t]:fN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=u=new hr(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},li,My,Wv=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,d=t._startAt,m=t._targets,v=t.parent,x=v&&v.data==="nested"?v.vars.targets:m,b=t._overwrite==="auto"&&!Rv,_=t.timeline,g,w,S,A,T,M,P,E,C,j,k,$,N;if(_&&(!h||!a)&&(a="none"),t._ease=Ji(a,Qa.ease),t._yEase=f?qP(Ji(f===!0?a:f,Qa.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=m[0]?Vi(m[0]).harness:0,$=E&&i[E.prop],g=jl(i,Bv),d&&(d._zTime<0&&d.progress(1),r<0&&c&&s&&!p?d.render(-1,!0):d.revert(c&&y?ul:BI),d._lazy=0),o){if(vi(t._startAt=_e.set(m,$r({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!d&&cr(u),startAt:null,delay:0,onUpdate:l&&function(){return Er(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Le||!s&&!p)&&t._startAt.revert(ul),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!d){if(r&&(s=!1),S=$r({overwrite:!1,data:"isFromStart",lazy:s&&!d&&cr(u),immediateRender:s,stagger:0,parent:v},g),$&&(S[E.prop]=$),vi(t._startAt=_e.set(m,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Le?t._startAt.revert(ul):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Gt,Gt);else if(!r)return}for(t._pt=t._ptCache=0,u=y&&cr(u)||u&&!y,w=0;w<m.length;w++){if(T=m[w],P=T._gsap||Fv(m)[w]._gsap,t._ptLookup[w]=j={},Ay[P.id]&&yi.length&&$l(),k=x===m?w:x.indexOf(T),E&&(C=new E).init(T,$||g,t,k,x)!==!1&&(t._pt=A=new hr(t._pt,T,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(W){j[W]=A}),C.priority&&(M=1)),!E||$)for(S in g)Or[S]&&(C=WP(S,g,t,k,T,x))?C.priority&&(M=1):j[S]=A=Uv.call(t,T,S,"get",g[S],k,x,0,i.stringFilter);t._op&&t._op[w]&&t.kill(T,t._op[w]),b&&t._pt&&(li=t,se.killTweensOf(T,j,t.globalTime(r)),N=!t.parent,li=0),t._pt&&u&&(Ay[P.id]=1)}M&&VP(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!N,h&&r<=0&&_.render(zr,!0,!0)},hN=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 My=1,t.vars[r]="+=0",Wv(t,s),My=0,u?Ns(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=pe(n)+Xe(f.e)),f.b&&(f.b=c.s+Xe(f.b))},pN=function(t,r){var n=t[0]?Vi(t[0]).harness:0,i=n&&n.aliases,a,o,s,u;if(!i)return r;a=to({},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},dN=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Ye(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})},ys=function(t,r,n,i,a){return ce(t)?t.call(r,n,i,a):$e(t)&&~t.indexOf("random(")?Bs(t):t},HP=qv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",GP={};fr(HP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return GP[e]=1});var _e=(function(e){cP(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:ds(i))||this;var u=s.vars,l=u.duration,c=u.delay,f=u.immediateRender,h=u.stagger,p=u.overwrite,y=u.keyframes,d=u.defaults,m=u.scrollTrigger,v=u.yoyoEase,x=i.parent||se,b=(Ye(n)||hP(n)?Xn(n[0]):"length"in i)?[n]:Ur(n),_,g,w,S,A,T,M,P;if(s._targets=b.length?Fv(b):Ns("GSAP target "+n+" not found. https://gsap.com",!Cr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||Fu(l)||Fu(c)){if(i=s.vars,_=s.timeline=new Qe({data:"nested",defaults:d||{},targets:x&&x.data==="nested"?x.vars.targets:b}),_.kill(),_.parent=_._dp=In(s),_._start=0,h||Fu(l)||Fu(c)){if(S=b.length,M=h&&MP(h),En(h))for(A in h)~HP.indexOf(A)&&(P||(P={}),P[A]=h[A]);for(g=0;g<S;g++)w=jl(i,GP),w.stagger=0,v&&(w.yoyoEase=v),P&&to(w,P),T=b[g],w.duration=+ys(l,In(s),g,T,b),w.delay=(+ys(c,In(s),g,T,b)||0)-s._delay,!h&&S===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),_.to(T,w,M?M(g,T,b):0),_._ease=Pt.none;_.duration()?l=c=0:s.timeline=0}else if(y){ds($r(_.vars.defaults,{ease:"none"})),_._ease=Ji(y.ease||i.ease||"none");var E=0,C,j,k;if(Ye(y))y.forEach(function($){return _.to(b,$,">")}),_.duration();else{w={};for(A in y)A==="ease"||A==="easeEach"||dN(A,y[A],w,y.easeEach);for(A in w)for(C=w[A].sort(function($,N){return $.t-N.t}),E=0,g=0;g<C.length;g++)j=C[g],k={ease:j.e,duration:(j.t-(g?C[g-1].t:0))/100*l},k[A]=j.v,_.to(b,k,E),E+=k.duration;_.duration()<l&&_.to({},{duration:l-_.duration()})}}l||s.duration(l=_.duration())}else s.timeline=0;return p===!0&&!Rv&&(li=In(s),se.killTweensOf(b),li=0),xn(x,In(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!l&&!y&&s._start===xe(x._time)&&cr(f)&&HI(In(s))&&x.data!=="nested")&&(s._tTime=-Gt,s.render(Math.max(0,-c)||0)),m&&TP(In(s),m),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-Gt&&!c?u:i<Gt?0:i,h,p,y,d,m,v,x,b,_;if(!l)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(d=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(d*100+i,a,o);if(h=xe(f%d),f===u?(y=this._repeat,h=l):(m=xe(f/d),y=~~m,y&&y===m?(h=l,y--):h>l&&(h=l)),v=this._yoyo&&y&1,v&&(_=this._yEase,h=l-h),m=eo(this._tTime,d),h===s&&!o&&this._initted&&y===m)return this._tTime=f,this;y!==m&&(b&&this._yEase&&FP(b,v),this.vars.repeatRefresh&&!v&&!this._lock&&h!==d&&this._initted&&(this._lock=o=1,this.render(xe(d*y),!0).invalidate()._lock=0))}if(!this._initted){if(PP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==m))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=x=1-x),!s&&f&&!a&&!m&&(Er(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(x,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&&Oy(this,i,a,o),Er(this,"onUpdate")),this._repeat&&y!==m&&this.vars.onRepeat&&!a&&this.parent&&Er(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Oy(this,i,!0,!0),(i||!l)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&vi(this,1),!a&&!(c&&!s)&&(f||s||v)&&(Er(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){qs||Tr.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Wv(this,l),c=this._ease(l/this._dur),hN(this,i,a,o,s,c,l,u)?this.resetTo(i,a,o,s,1):(Lc(this,0),this.parent||AP(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?us(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Le),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,li&&li.vars.overwrite!==!0)._first||us(this),this.parent&&o!==this.timeline.totalDuration()&&ro(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,u=i?Ur(i):s,l=this._ptLookup,c=this._pt,f,h,p,y,d,m,v;if((!a||a==="all")&&UI(s,u))return a==="all"&&(this._pt=0),us(this);for(f=this._op=this._op||[],a!=="all"&&($e(a)&&(d={},fr(a,function(x){return d[x]=1}),a=d),a=pN(s,a)),v=s.length;v--;)if(~u.indexOf(s[v])){h=l[v],a==="all"?(f[v]=a,y=h,p={}):(p=f[v]=f[v]||{},y=a);for(d in y)m=h&&h[d],m&&((!("kill"in m.d)||m.d.kill(d)===!0)&&Ic(this,m,"_pt"),delete h[d]),p!=="all"&&(p[d]=1)}return this._initted&&!this._pt&&c&&us(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return ms(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 ms(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 se.killTweensOf(i,a,o)},t})(Fs);$r(_e.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});fr("staggerTo,staggerFrom,staggerFromTo",function(e){_e[e]=function(){var t=new Qe,r=Py.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Hv=function(t,r,n){return t[r]=n},KP=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)},Gv=function(t,r){return ce(t[r])?KP:Dv(t[r])&&t.setAttribute?yN:Hv},XP=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)},Kv=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?Ic(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)},VP=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},hr=(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||XP,this.d=u||this,this.set=l||Hv,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})();fr(qv+"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 Bv[e]=1});kr.TweenMax=kr.TweenLite=_e;kr.TimelineLite=kr.TimelineMax=Qe;se=new Qe({sortChildren:!1,defaults:Qa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Cr.stringFilter=BP;var Qi=[],cl={},xN=[],Xb=0,wN=0,qf=function(t){return(cl[t]||xN).map(function(r){return r()})},ky=function(){var t=Date.now(),r=[];t-Xb>2&&(qf("matchMediaInit"),Qi.forEach(function(n){var i=n.queries,a=n.conditions,o,s,u,l;for(s in i)o=bn.matchMedia(i[s]).matches,o&&(u=1),o!==a[s]&&(a[s]=o,l=1);l&&(n.revert(),u&&r.push(n))}),qf("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Xb=t,qf("matchMedia"))},ZP=(function(){function e(r,n){this.selector=n&&Ey(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){ce(n)&&(a=i,i=n,n=ce);var o=this,s=function(){var l=te,c=o.selector,f;return l&&l!==o&&l.data.push(o),a&&(o.selector=Ey(a)),te=o,f=i.apply(o,arguments),ce(f)&&o._r.push(f),te=l,o.selector=c,o.isReverted=!1,f};return o.last=s,n===ce?s(o,function(u){return o.add(null,u)}):n?o[n]=s:s},t.ignore=function(n){var i=te;te=null,n(this),te=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof _e&&!(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 _e)&&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=Qi.length;o--;)Qi[o].id===this.id&&Qi.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),SN=(function(){function e(r){this.contexts=[],this.scope=r,te&&te.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){En(n)||(n={matches:n});var o=new ZP(0,a||this.scope),s=o.conditions={},u,l,c;te&&!o.selector&&(o.selector=te.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(l in n)l==="all"?c=1:(u=bn.matchMedia(n[l]),u&&(Qi.indexOf(o)<0&&Qi.push(o),(s[l]=u.matches)&&(c=1),u.addListener?u.addListener(ky):u.addEventListener("change",ky)));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})(),Dl={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 IP(i)})},timeline:function(t){return new Qe(t)},getTweensOf:function(t,r){return se.getTweensOf(t,r)},getProperty:function(t,r,n,i){$e(t)&&(t=Ur(t)[0]);var a=Vi(t||{}).get,o=n?SP:wP;return n==="native"&&(n=""),t&&(r?o((Or[r]&&Or[r].get||a)(t,r,n,i)):function(s,u,l){return o((Or[s]&&Or[s].get||a)(t,s,u,l))})},quickSetter:function(t,r,n){if(t=Ur(t),t.length>1){var i=t.map(function(c){return yr.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=Or[r],s=Vi(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&&Kv(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=yr.to(t,$r((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 se.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ji(t.ease,Qa.ease)),Ub(Qa,t||{})},config:function(t){return Ub(Cr,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&&!Or[s]&&!kr[s]&&Ns(r+" effect requires "+s+" plugin.")}),If[r]=function(s,u,l){return n(Ur(s),$r(u||{},a),l)},o&&(Qe.prototype[r]=function(s,u,l){return this.add(If[r](s,En(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,r){Pt[t]=Ji(r)},parseEase:function(t,r){return arguments.length?Ji(t,r):Pt},getById:function(t){return se.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new Qe(t),i,a;for(n.smoothChildTiming=cr(t.smoothChildTiming),se.remove(n),n._dp=0,n._time=n._tTime=se._time,i=se._first;i;)a=i._next,(r||!(!i._dur&&i instanceof _e&&i.vars.onComplete===i._targets[0]))&&xn(n,i,i._start-i._delay),i=a;return xn(se,n,0),n},context:function(t,r){return t?new ZP(t,r):te},matchMedia:function(t){return new SN(t)},matchMediaRefresh:function(){return Qi.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||ky()},addEventListener:function(t,r){var n=cl[t]||(cl[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=cl[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:eN,wrapYoyo:rN,distribute:MP,random:$P,snap:kP,normalize:tN,getUnit:Xe,clamp:VI,splitColor:NP,toArray:Ur,selector:Ey,mapRange:RP,pipe:JI,unitize:QI,interpolate:nN,shuffle:CP},install:gP,effects:If,ticker:Tr,updateRoot:Qe.updateRoot,plugins:Or,globalTimeline:se,core:{PropTween:hr,globals:vP,Tween:_e,Timeline:Qe,Animation:Fs,getCache:Vi,_removeLinkedListItem:Ic,reverting:function(){return Le},context:function(t){return t&&te&&(te.data.push(t),t._ctx=te),te},suppressOverwrites:function(t){return Rv=t}}};fr("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Dl[e]=_e[e]});Tr.add(Qe.updateRoot);Ra=Dl.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))},Ff=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var u,l;if($e(a)&&(u={},fr(a,function(c){return u[c]=1}),a=u),r){u={};for(l in a)u[l]=r(a[l]);a=u}ON(s,a)}}}},yr=Dl.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;)Le?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)}},Ff("roundProps",Cy),Ff("modifiers"),Ff("snap",kP))||Dl;_e.version=Qe.version=yr.version="3.13.0";yP=1;Iv()&&no();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 Cr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qa={duration:.5,overwrite:!1,delay:0},jv,Le,te,zr=1e8,Gt=1/zr,_y=Math.PI*2,EI=_y/4,CI=0,sP=Math.sqrt,MI=Math.cos,kI=Math.sin,$e=function(t){return typeof t=="string"},ce=function(t){return typeof t=="function"},Xn=function(t){return typeof t=="number"},Rv=function(t){return typeof t>"u"},En=function(t){return typeof t=="object"},cr=function(t){return t!==!1},Dv=function(){return typeof window<"u"},Fu=function(t){return ce(t)||$e(t)},uP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ye=Array.isArray,wy=/(?:-?\.?\d|\.)+/gi,lP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ja=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Df=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,cP=/[+-]=-?[.\d]+/,fP=/[^,'"\[\]\s]+/gi,$I=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,se,bn,Sy,Iv,kr={},kl={},hP,pP=function(t){return(kl=to(t,kr))&&yr},Nv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},Ns=function(t,r){return!r&&console.warn(t)},dP=function(t,r){return t&&(kr[t]=r)&&kl&&(kl[t]=r)||kr},Ls=function(){return 0},jI={suppressEvents:!0,isStart:!0,kill:!1},ul={suppressEvents:!0,kill:!1},RI={suppressEvents:!0},Lv={},yi=[],Ay={},mP,Or={},If={},Bb=30,ll=[],Bv="",qv=function(t){var r=t[0],n,i;if(En(r)||ce(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=ll.length;i--&&!ll[i].targetTest(r););n=ll[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new BP(t[i],n)))||t.splice(i,1);return t},Zi=function(t){return t._gsap||qv(Ur(t))[0]._gsap},yP=function(t,r,n){return(n=t[r])&&ce(n)?t[r]():Rv(n)&&t.getAttribute&&t.getAttribute(r)||n},fr=function(t,r){return(t=t.split(",")).forEach(r)||t},pe=function(t){return Math.round(t*1e5)/1e5||0},_e=function(t){return Math.round(t*1e7)/1e7||0},Ba=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},DI=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},$l=function(){var t=yi.length,r=yi.slice(0),n,i;for(Ay={},yi.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Fv=function(t){return!!(t._initted||t._startAt||t.add)},gP=function(t,r,n,i){yi.length&&!Le&&$l(),t.render(r,n,!!(Le&&r<0&&Fv(t))),yi.length&&!Le&&$l()},vP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(fP).length<2?r:$e(t)?t.trim():t},bP=function(t){return t},$r=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},II=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},to=function(t,r){for(var n in r)t[n]=r[n];return t},qb=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},jl=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},ds=function(t){var r=t.parent||se,n=t.keyframes?II(Ye(t.keyframes)):$r;if(cr(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},NI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},xP=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},Ic=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},bi=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ji=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},LI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Oy=function(t,r,n,i){return t._startAt&&(Le?t._startAt.revert(ul):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},BI=function e(t){return!t||t._ts&&e(t.parent)},Fb=function(t){return t._repeat?eo(t._tTime,t=t.duration()+t._rDelay)*t:0},eo=function(t,r){var n=Math.floor(t=_e(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)},Nc=function(t){return t._end=_e(t._start+(t._tDur/Math.abs(t._ts||t._rts||Gt)||0))},Lc=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=_e(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Nc(t),n._dirty||Ji(n,t)),t},_P=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||Tu(0,r.totalDuration(),n)-r._tTime>Gt)&&r.render(n,!0)),Ji(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=-Gt}},_n=function(t,r,n,i){return r.parent&&bi(r),r._start=_e((Xn(n)?n:n||t!==se?Br(t,n,r):t._time)+r._delay),r._end=_e(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),xP(t,r,"_first","_last",t._sort?"_start":0),Ty(r)||(t._recent=r),i||_P(t,r),t._ts<0&&Lc(t,t._tTime),t},wP=function(t,r){return(kr.ScrollTrigger||Nv("scrollTrigger",r))&&kr.ScrollTrigger.create(r,t)},SP=function(t,r,n,i,a){if(Uv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!Le&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&mP!==Tr.frame)return yi.push(t),t._lazy=[a,i],1},qI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Ty=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},FI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&qI(t)&&!(!t._initted&&Ty(t))||(t._ts<0||t._dp._ts<0)&&!Ty(t))?0:1,s=t._rDelay,u=0,l,c,f;if(s&&t._repeat&&(u=Tu(0,t._tDur,r),c=eo(u,s),t._yoyo&&c&1&&(o=1-o),c!==eo(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||Le||i||t._zTime===Gt||!r&&t._zTime){if(!t._initted&&SP(t,r,i,n,u))return;for(f=t._zTime,t._zTime=r||(n?Gt: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&&Oy(t,r,n,!0),t._onUpdate&&!n&&Er(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&Er(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&bi(t,1),!n&&!Le&&(Er(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},zI=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}},ro=function(t,r,n,i){var a=t._repeat,o=_e(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:_e(o*(a+1)+t._rDelay*a):o,s>0&&!i&&Lc(t,t._tTime=t._tDur*s),t.parent&&Nc(t),n||Ji(t.parent,t),t},zb=function(t){return t instanceof Qe?Ji(t):ro(t,t._dur)},UI={_start:0,endTime:Ls,totalDuration:Ls},Br=function e(t,r,n){var i=t.labels,a=t._recent||UI,o=t.duration()>=zr?a.endTime(!1):t._dur,s,u,l;return $e(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*(Ye(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+u:o+u)):r==null?o:+r},ms=function(t,r,n){var i=Xn(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=cr(u.vars.inherit)&&u.parent;o.immediateRender=cr(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new xe(r[0],o,r[a+1])},Si=function(t,r){return t||t===0?r(t):r},Tu=function(t,r,n){return n<t?t:n>r?r:n},Xe=function(t,r){return!$e(t)||!(r=$I.exec(t))?"":r[1]},WI=function(t,r,n){return Si(n,function(i){return Tu(t,r,i)})},Py=[].slice,AP=function(t,r){return t&&En(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&En(t[0]))&&!t.nodeType&&t!==bn},HI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return $e(i)&&!r||AP(i,1)?(a=n).push.apply(a,Ur(i)):n.push(i)})||n},Ur=function(t,r,n){return te&&!r&&te.selector?te.selector(t):$e(t)&&!n&&(Sy||!no())?Py.call((r||Iv).querySelectorAll(t),0):Ye(t)?HI(t,n):AP(t)?Py.call(t,0):t?[t]:[]},Ey=function(t){return t=Ur(t)[0]||Ns("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Ur(r,n.querySelectorAll?n:n===t?Ns("Invalid scope")||Iv.createElement("div"):t)}},OP=function(t){return t.sort(function(){return .5-Math.random()})},TP=function(t){if(ce(t))return t;var r=En(t)?t:{each:t},n=Qi(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 $e(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&u&&(c=i[0],f=i[1]),function(h,p,y){var d=(y||r).length,m=o[d],v,_,b,x,g,w,S,A,T;if(!m){if(T=r.grid==="auto"?0:(r.grid||[1,zr])[1],!T){for(S=-zr;S<(S=y[T++].getBoundingClientRect().left)&&T<d;);T<d&&T--}for(m=o[d]=[],v=u?Math.min(T,d)*c-.5:i%T,_=T===zr?0:u?d*f/T-.5:i/T|0,S=0,A=zr,w=0;w<d;w++)b=w%T-v,x=_-(w/T|0),m[w]=g=l?Math.abs(l==="y"?x:b):sP(b*b+x*x),g>S&&(S=g),g<A&&(A=g);i==="random"&&OP(m),m.max=S-A,m.min=A,m.v=d=(parseFloat(r.amount)||parseFloat(r.each)*(T>d?d-1:l?l==="y"?d/T:T:Math.max(T,d/T))||0)*(i==="edges"?-1:1),m.b=d<0?a-d:a,m.u=Xe(r.amount||r.each)||0,n=n&&d<0?IP(n):n}return d=(m[h]-m.min)/m.max||0,_e(m.b+(n?n(d):d)*m.v)+m.u}},Cy=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=_e(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Xn(n)?0:Xe(n))}},PP=function(t,r){var n=Ye(t),i,a;return!n&&En(t)&&(i=n=t.radius||zr,t.values?(t=Ur(t.values),(a=!Xn(t[0]))&&(i*=i)):t=Cy(t.increment)),Si(r,n?ce(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=zr,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||Xn(o)?c:c+Xe(o)}:Cy(t))},EP=function(t,r,n,i){return Si(Ye(t)?!r:n===!0?!!(n=0):!i,function(){return Ye(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})},GI=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)}},KI=function(t,r){return function(n){return t(parseFloat(n))+(r||Xe(n))}},XI=function(t,r,n){return MP(t,r,0,1,n)},CP=function(t,r,n){return Si(n,function(i){return t[~~r(i)]})},YI=function e(t,r,n){var i=r-t;return Ye(t)?CP(t,e(0,t.length),r):Si(n,function(a){return(i+(a-t)%i)%i+t})},VI=function e(t,r,n){var i=r-t,a=i*2;return Ye(t)?CP(t,e(0,t.length-1),r):Si(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},Bs=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?fP:wy),n+=t.substr(r,i-r)+EP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},MP=function(t,r,n,i,a){var o=r-t,s=i-n;return Si(a,function(u){return n+((u-t)/o*s||0)})},ZI=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=$e(t),s={},u,l,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Ye(t)&&!Ye(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 d=Math.min(h,~~y);return c[d](y-d)},n=r}else i||(t=to(Ye(t)?[]:{},t));if(!c){for(u in r)zv.call(s,t,u,"get",r[u]);a=function(y){return Gv(y,s)||(o?t.p:t)}}}return Si(n,a)},Ub=function(t,r,n){var i=t.labels,a=zr,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},Er=function(t,r,n){var i=t.vars,a=i[r],o=te,s=t._ctx,u,l,c;if(a)return u=i[r+"Params"],l=i.callbackScope||t,n&&yi.length&&$l(),s&&(te=s),c=u?a.apply(l,u):a.call(l),te=o,c},us=function(t){return bi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Le),t.progress()<1&&Er(t,"onInterrupt"),t},Ra,kP=[],$P=function(t){if(t)if(t=!t.name&&t.default||t,Dv()||t.headless){var r=t.name,n=ce(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:Ls,render:Gv,add:zv,kill:pN,modifier:hN,rawVars:0},o={targetTest:0,get:0,getSetter:Hv,aliases:{},register:0};if(no(),t!==i){if(Or[r])return;$r(i,$r(jl(t,a),o)),to(i.prototype,to(a,jl(t,o))),Or[i.prop=r]=i,t.targetTest&&(ll.push(i),Lv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}dP(r,i),t.register&&t.register(yr,i,hr)}else kP.push(t)},Ht=255,ls={aqua:[0,Ht,Ht],lime:[0,Ht,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ht],navy:[0,0,128],white:[Ht,Ht,Ht],olive:[128,128,0],yellow:[Ht,Ht,0],orange:[Ht,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ht,0,0],pink:[Ht,192,203],cyan:[0,Ht,Ht],transparent:[Ht,Ht,Ht,0]},Nf=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)*Ht+.5|0},jP=function(t,r,n){var i=t?Xn(t)?[t>>16,t>>8&Ht,t&Ht]:0:ls.black,a,o,s,u,l,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ls[t])i=ls[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&Ht,i&Ht,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Ht,t&Ht]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(wy),!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]=Nf(u+1/3,a,o),i[1]=Nf(u,a,o),i[2]=Nf(u-1/3,a,o);else if(~t.indexOf("="))return i=t.match(lP),n&&i.length<4&&(i[3]=1),i}else i=t.match(wy)||ls.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Ht,o=i[1]/Ht,s=i[2]/Ht,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},RP=function(t){var r=[],n=[],i=-1;return t.split(gi).forEach(function(a){var o=a.match(ja)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Wb=function(t,r,n){var i="",a=(t+i).match(gi),o=r?"hsla(":"rgba(",s=0,u,l,c,f;if(!a)return t;if(a=a.map(function(h){return(h=jP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=RP(t),u=n.c,u.join(i)!==c.c.join(i)))for(l=t.replace(gi,"1").split(ja),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(gi),f=l.length-1;s<f;s++)i+=l[s]+a[s];return i+l[f]},gi=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ls)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),JI=/hsl[a]?\(/,DP=function(t){var r=t.join(" "),n;if(gi.lastIndex=0,gi.test(r))return n=JI.test(r),t[1]=Wb(t[1],n),t[0]=Wb(t[0],n,RP(t[1])),!0},qs,Tr=(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 d(m){var v=e()-i,_=m===!0,b,x,g,w;if((v>t||v<0)&&(n+=v-r),i+=v,g=i-n,b=g-o,(b>0||_)&&(w=++f.frame,h=g-f.time*1e3,f.time=g=g/1e3,o+=b+(b>=a?4:a-b),x=1),_||(u=l(d)),x)for(p=0;p<s.length;p++)s[p](g,h,w,m)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(m){return h/(1e3/(m||60))},wake:function(){hP&&(!Sy&&Dv()&&(bn=Sy=window,Iv=bn.document||{},kr.gsap=yr,(bn.gsapVersions||(bn.gsapVersions=[])).push(yr.version),pP(kl||bn.GreenSockGlobals||!bn.gsap&&bn||{}),kP.forEach($P)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&f.sleep(),l=c||function(m){return setTimeout(m,o-f.time*1e3+1|0)},qs=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),qs=0,l=Ls},lagSmoothing:function(m,v){t=m||1/0,r=Math.min(v||33,t)},fps:function(m){a=1e3/(m||240),o=f.time*1e3+a},add:function(m,v,_){var b=v?function(x,g,w,S){m(x,g,w,S),f.remove(b)}:m;return f.remove(m),s[_?"unshift":"push"](b),no(),b},remove:function(m,v){~(v=s.indexOf(m))&&s.splice(v,1)&&p>=v&&p--},_listeners:s},f})(),no=function(){return!qs&&Tr.wake()},Pt={},QI=/^[\d.\-M][\d.\-,\s]/,tN=/["']/g,eN=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(tN,"").trim():+l,i=u.substr(s+1).trim();return r},rN=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)},nN=function(t){var r=(t+"").split("("),n=Pt[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[eN(r[1])]:rN(t).split(",").map(vP)):Pt._CE&&QI.test(t)?Pt._CE("",t):n},IP=function(t){return function(r){return 1-t(1-r)}},NP=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},Qi=function(t,r){return t&&(ce(t)?t:Pt[t]||nN(t))||r},ya=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 fr(t,function(s){Pt[s]=kr[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},LP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},Lf=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/_y*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*kI((c-o)*a)+1},u=t==="out"?s:t==="in"?function(l){return 1-s(1-l)}:LP(s);return a=_y/a,u.config=function(l,c){return e(t,l,c)},u},Bf=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)}:LP(n);return i.config=function(a){return e(t,a)},i};fr("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;ya(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;ya("Elastic",Lf("in"),Lf("out"),Lf());(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};ya("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);ya("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});ya("Circ",function(e){return-(sP(1-e*e)-1)});ya("Sine",function(e){return e===1?1:-MI(e*EI)+1});ya("Back",Bf("in"),Bf("out"),Bf());Pt.SteppedEase=Pt.steps=kr.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-Gt;return function(s){return((i*Tu(0,o,s)|0)+a)*n}}};Qa.ease=Pt["quad.out"];fr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return Bv+=e+","+e+"Params,"});var BP=function(t,r){this.id=CI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:yP,this.set=r?r.getSetter:Hv},Fs=(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,ro(this,+r.duration,1,1),this.data=r.data,te&&(this._ctx=te,te.data.push(this)),qs||Tr.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,ro(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(no(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Lc(this,n),!a._dp||a.parent||_P(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)&&_n(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Gt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),gP(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Fb(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)+Fb(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?eo(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Gt?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===-Gt?0:this._rts,this.totalTime(Tu(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Nc(this),LI(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):(no(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Gt&&(this._tTime-=Gt)))),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)&&_n(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(cr(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=RI);var i=Le;return Le=n,Fv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Le=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,zb(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,zb(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(Br(this,n),cr(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,cr(i)),this._dur||(this._zTime=-Gt),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?-Gt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Gt,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)-Gt)},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=ce(n)?n:bP,s=function(){var l=i.then;i.then=null,ce(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(){us(this)},e})();$r(Fs.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:-Gt,_prom:0,_ps:!1,_rts:1});var Qe=(function(e){oP(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=cr(n.sortChildren),se&&_n(n.parent||se,In(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&wP(In(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return ms(0,arguments,this),this},r.from=function(i,a,o){return ms(1,arguments,this),this},r.fromTo=function(i,a,o,s){return ms(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,ds(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new xe(i,a,Br(this,o),1),this},r.call=function(i,a,o){return _n(this,xe.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 xe(i,o,Br(this,u)),this},r.staggerFrom=function(i,a,o,s,u,l,c){return o.runBackwards=1,ds(o).immediateRender=cr(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,ds(s).immediateRender=cr(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:_e(i),f=this._zTime<0!=i<0&&(this._initted||!l),h,p,y,d,m,v,_,b,x,g,w,S;if(this!==se&&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,v=!b,f&&(l||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,m=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,a,o);if(h=_e(c%m),c===u?(d=this._repeat,h=l):(g=_e(c/m),d=~~g,d&&d===g&&(h=l,d--),h>l&&(h=l)),g=eo(this._tTime,m),!s&&this._tTime&&g!==d&&this._tTime-g*m-this._dur<=0&&(g=d),w&&d&1&&(h=l-h,S=1),d!==g&&!this._lock){var A=w&&g&1,T=A===(w&&d&1);if(d<g&&(A=!A),s=A?0:c%l?l:c,this._lock=1,this.render(s||(S?0:_e(d*m)),a,!l)._lock=0,this._tTime=c,!a&&this.parent&&Er(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(l=this._dur,u=this._tDur,T&&(this._lock=2,s=A?l:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;NP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(_=zI(this,_e(s),_e(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&&!g&&(Er(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&&!v){_=0,y&&(c+=this._zTime=-Gt);break}}p=y}else{p=this._last;for(var M=i<0?i:h;p;){if(y=p._prev,(p._act||M<=p._end)&&p._ts&&_!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(M-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(M-p._start)*p._ts,a,o||Le&&Fv(p)),h!==this._time||!this._ts&&!v){_=0,y&&(c+=this._zTime=M?-Gt:Gt);break}}p=y}}if(_&&!a&&(this.pause(),_.render(h>=s?0:-Gt)._zTime=h>=s?1:-1,this._ts))return this._start=x,Nc(this),this.render(i,a,o);this._onUpdate&&!a&&Er(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)&&bi(this,1),!a&&!(i<0&&!s)&&(c||s||!u)&&(Er(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(Xn(a)||(a=Br(this,a,i)),!(i instanceof Fs)){if(Ye(i))return i.forEach(function(s){return o.add(s,a)}),this;if($e(i))return this.addLabel(i,a);if(ce(i))i=xe.delayedCall(0,i);else return this}return this!==i?_n(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=-zr);for(var u=[],l=this._first;l;)l._start>=s&&(l instanceof xe?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 $e(i)?this.removeLabel(i):ce(i)?this.killTweensOf(i):(i.parent===this&&Ic(this,i),i===this._recent&&(this._recent=this._last),Ji(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_e(Tr.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]=Br(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=xe.delayedCall(0,a||Ls,o);return s.data="isPause",this._hasPause=1,_n(this,s,Br(this,i))},r.removePause=function(i){var a=this._first;for(i=Br(this,i);a;)a._start===i&&a.data==="isPause"&&bi(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),u=s.length;u--;)li!==s[u]&&s[u].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Ur(i),u=this._first,l=Xn(a),c;u;)u instanceof xe?DI(u._targets,s)&&(l?(!li||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=Br(o,i),u=a,l=u.startAt,c=u.onStart,f=u.onStartParams,h=u.immediateRender,p,y=xe.to(o,$r({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())||Gt,onStart:function(){if(o.pause(),!p){var m=a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale());y._dur!==m&&ro(y,m,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,$r({startAt:{time:Br(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Ub(this,Br(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Ub(this,Br(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Gt)},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 Ji(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={}),Ji(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,u=zr,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,_n(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;ro(o,o===se&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(se._ts&&(gP(se,Rl(i,se)),mP=Tr.frame),Tr.frame>=Bb){Bb+=Cr.autoSleep||120;var a=se._first;if((!a||!a._ts)&&Cr.autoSleep&&Tr._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Tr.sleep()}}},t})(Fs);$r(Qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var iN=function(t,r,n,i,a,o,s){var u=new hr(this._pt,t,r,0,1,HP,null,a),l=0,c=0,f,h,p,y,d,m,v,_;for(u.b=n,u.e=i,n+="",i+="",(v=~i.indexOf("random("))&&(i=Bs(i)),o&&(_=[n,i],o(_,t,r),n=_[0],i=_[1]),h=n.match(Df)||[];f=Df.exec(i);)y=f[0],d=i.substring(l,f.index),p?p=(p+1)%5:d.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(m=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:d||c===1?d:",",s:m,c:y.charAt(1)==="="?Ba(m,y)-m:parseFloat(y)-m,m:p&&p<4?Math.round:0},l=Df.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=s,(cP.test(i)||v)&&(u.e=0),this._pt=u,u},zv=function(t,r,n,i,a,o,s,u,l,c){ce(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:ce(f)?l?t[r.indexOf("set")||!ce(t["get"+r.substr(3)])?r:"get"+r.substr(3)](l):t[r]():f,p=ce(f)?l?lN:UP:Wv,y;if($e(i)&&(~i.indexOf("random(")&&(i=Bs(i)),i.charAt(1)==="="&&(y=Ba(h,i)+(Xe(h)||0),(y||y===0)&&(i=y))),!c||h!==i||My)return!isNaN(h*i)&&i!==""?(y=new hr(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?fN:WP,0,p),l&&(y.fp=l),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Nv(r,i),iN.call(this,t,r,h,i,p,u||Cr.stringFilter,l))},aN=function(t,r,n,i,a){if(ce(t)&&(t=ys(t,a,r,n,i)),!En(t)||t.style&&t.nodeType||Ye(t)||uP(t))return $e(t)?ys(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=ys(t[s],a,r,n,i);return o},qP=function(t,r,n,i,a,o){var s,u,l,c;if(Or[t]&&(s=new Or[t]).init(a,s.rawVars?r[t]:aN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=u=new hr(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},li,My,Uv=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,d=t._startAt,m=t._targets,v=t.parent,_=v&&v.data==="nested"?v.vars.targets:m,b=t._overwrite==="auto"&&!jv,x=t.timeline,g,w,S,A,T,M,P,E,C,j,k,$,N;if(x&&(!h||!a)&&(a="none"),t._ease=Qi(a,Qa.ease),t._yEase=f?IP(Qi(f===!0?a:f,Qa.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=m[0]?Zi(m[0]).harness:0,$=E&&i[E.prop],g=jl(i,Lv),d&&(d._zTime<0&&d.progress(1),r<0&&c&&s&&!p?d.render(-1,!0):d.revert(c&&y?ul:jI),d._lazy=0),o){if(bi(t._startAt=xe.set(m,$r({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!d&&cr(u),startAt:null,delay:0,onUpdate:l&&function(){return Er(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Le||!s&&!p)&&t._startAt.revert(ul),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!d){if(r&&(s=!1),S=$r({overwrite:!1,data:"isFromStart",lazy:s&&!d&&cr(u),immediateRender:s,stagger:0,parent:v},g),$&&(S[E.prop]=$),bi(t._startAt=xe.set(m,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Le?t._startAt.revert(ul):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Gt,Gt);else if(!r)return}for(t._pt=t._ptCache=0,u=y&&cr(u)||u&&!y,w=0;w<m.length;w++){if(T=m[w],P=T._gsap||qv(m)[w]._gsap,t._ptLookup[w]=j={},Ay[P.id]&&yi.length&&$l(),k=_===m?w:_.indexOf(T),E&&(C=new E).init(T,$||g,t,k,_)!==!1&&(t._pt=A=new hr(t._pt,T,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(W){j[W]=A}),C.priority&&(M=1)),!E||$)for(S in g)Or[S]&&(C=qP(S,g,t,k,T,_))?C.priority&&(M=1):j[S]=A=zv.call(t,T,S,"get",g[S],k,_,0,i.stringFilter);t._op&&t._op[w]&&t.kill(T,t._op[w]),b&&t._pt&&(li=t,se.killTweensOf(T,j,t.globalTime(r)),N=!t.parent,li=0),t._pt&&u&&(Ay[P.id]=1)}M&&GP(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!N,h&&r<=0&&x.render(zr,!0,!0)},oN=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 My=1,t.vars[r]="+=0",Uv(t,s),My=0,u?Ns(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=pe(n)+Xe(f.e)),f.b&&(f.b=c.s+Xe(f.b))},sN=function(t,r){var n=t[0]?Zi(t[0]).harness:0,i=n&&n.aliases,a,o,s,u;if(!i)return r;a=to({},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},uN=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Ye(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})},ys=function(t,r,n,i,a){return ce(t)?t.call(r,n,i,a):$e(t)&&~t.indexOf("random(")?Bs(t):t},FP=Bv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",zP={};fr(FP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return zP[e]=1});var xe=(function(e){oP(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:ds(i))||this;var u=s.vars,l=u.duration,c=u.delay,f=u.immediateRender,h=u.stagger,p=u.overwrite,y=u.keyframes,d=u.defaults,m=u.scrollTrigger,v=u.yoyoEase,_=i.parent||se,b=(Ye(n)||uP(n)?Xn(n[0]):"length"in i)?[n]:Ur(n),x,g,w,S,A,T,M,P;if(s._targets=b.length?qv(b):Ns("GSAP target "+n+" not found. https://gsap.com",!Cr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||Fu(l)||Fu(c)){if(i=s.vars,x=s.timeline=new Qe({data:"nested",defaults:d||{},targets:_&&_.data==="nested"?_.vars.targets:b}),x.kill(),x.parent=x._dp=In(s),x._start=0,h||Fu(l)||Fu(c)){if(S=b.length,M=h&&TP(h),En(h))for(A in h)~FP.indexOf(A)&&(P||(P={}),P[A]=h[A]);for(g=0;g<S;g++)w=jl(i,zP),w.stagger=0,v&&(w.yoyoEase=v),P&&to(w,P),T=b[g],w.duration=+ys(l,In(s),g,T,b),w.delay=(+ys(c,In(s),g,T,b)||0)-s._delay,!h&&S===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),x.to(T,w,M?M(g,T,b):0),x._ease=Pt.none;x.duration()?l=c=0:s.timeline=0}else if(y){ds($r(x.vars.defaults,{ease:"none"})),x._ease=Qi(y.ease||i.ease||"none");var E=0,C,j,k;if(Ye(y))y.forEach(function($){return x.to(b,$,">")}),x.duration();else{w={};for(A in y)A==="ease"||A==="easeEach"||uN(A,y[A],w,y.easeEach);for(A in w)for(C=w[A].sort(function($,N){return $.t-N.t}),E=0,g=0;g<C.length;g++)j=C[g],k={ease:j.e,duration:(j.t-(g?C[g-1].t:0))/100*l},k[A]=j.v,x.to(b,k,E),E+=k.duration;x.duration()<l&&x.to({},{duration:l-x.duration()})}}l||s.duration(l=x.duration())}else s.timeline=0;return p===!0&&!jv&&(li=In(s),se.killTweensOf(b),li=0),_n(_,In(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!l&&!y&&s._start===_e(_._time)&&cr(f)&&BI(In(s))&&_.data!=="nested")&&(s._tTime=-Gt,s.render(Math.max(0,-c)||0)),m&&wP(In(s),m),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-Gt&&!c?u:i<Gt?0:i,h,p,y,d,m,v,_,b,x;if(!l)FI(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(d=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(d*100+i,a,o);if(h=_e(f%d),f===u?(y=this._repeat,h=l):(m=_e(f/d),y=~~m,y&&y===m?(h=l,y--):h>l&&(h=l)),v=this._yoyo&&y&1,v&&(x=this._yEase,h=l-h),m=eo(this._tTime,d),h===s&&!o&&this._initted&&y===m)return this._tTime=f,this;y!==m&&(b&&this._yEase&&NP(b,v),this.vars.repeatRefresh&&!v&&!this._lock&&h!==d&&this._initted&&(this._lock=o=1,this.render(_e(d*y),!0).invalidate()._lock=0))}if(!this._initted){if(SP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==m))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&&!m&&(Er(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&&Oy(this,i,a,o),Er(this,"onUpdate")),this._repeat&&y!==m&&this.vars.onRepeat&&!a&&this.parent&&Er(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Oy(this,i,!0,!0),(i||!l)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&bi(this,1),!a&&!(c&&!s)&&(f||s||v)&&(Er(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){qs||Tr.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Uv(this,l),c=this._ease(l/this._dur),oN(this,i,a,o,s,c,l,u)?this.resetTo(i,a,o,s,1):(Lc(this,0),this.parent||xP(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?us(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Le),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,li&&li.vars.overwrite!==!0)._first||us(this),this.parent&&o!==this.timeline.totalDuration()&&ro(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,u=i?Ur(i):s,l=this._ptLookup,c=this._pt,f,h,p,y,d,m,v;if((!a||a==="all")&&NI(s,u))return a==="all"&&(this._pt=0),us(this);for(f=this._op=this._op||[],a!=="all"&&($e(a)&&(d={},fr(a,function(_){return d[_]=1}),a=d),a=sN(s,a)),v=s.length;v--;)if(~u.indexOf(s[v])){h=l[v],a==="all"?(f[v]=a,y=h,p={}):(p=f[v]=f[v]||{},y=a);for(d in y)m=h&&h[d],m&&((!("kill"in m.d)||m.d.kill(d)===!0)&&Ic(this,m,"_pt"),delete h[d]),p!=="all"&&(p[d]=1)}return this._initted&&!this._pt&&c&&us(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return ms(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 ms(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 se.killTweensOf(i,a,o)},t})(Fs);$r(xe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});fr("staggerTo,staggerFrom,staggerFromTo",function(e){xe[e]=function(){var t=new Qe,r=Py.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Wv=function(t,r,n){return t[r]=n},UP=function(t,r,n){return t[r](n)},lN=function(t,r,n,i){return t[r](i.fp,n)},cN=function(t,r,n){return t.setAttribute(r,n)},Hv=function(t,r){return ce(t[r])?UP:Rv(t[r])&&t.setAttribute?cN:Wv},WP=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},fN=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},HP=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)},Gv=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},hN=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},pN=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?Ic(this,r,"_pt"):r.dep||(n=1),r=i;return!n},dN=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},GP=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},hr=(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||WP,this.d=u||this,this.set=l||Wv,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=dN,this.m=n,this.mt=a,this.tween=i},e})();fr(Bv+"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 Lv[e]=1});kr.TweenMax=kr.TweenLite=xe;kr.TimelineLite=kr.TimelineMax=Qe;se=new Qe({sortChildren:!1,defaults:Qa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Cr.stringFilter=DP;var ta=[],cl={},mN=[],Hb=0,yN=0,qf=function(t){return(cl[t]||mN).map(function(r){return r()})},ky=function(){var t=Date.now(),r=[];t-Hb>2&&(qf("matchMediaInit"),ta.forEach(function(n){var i=n.queries,a=n.conditions,o,s,u,l;for(s in i)o=bn.matchMedia(i[s]).matches,o&&(u=1),o!==a[s]&&(a[s]=o,l=1);l&&(n.revert(),u&&r.push(n))}),qf("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Hb=t,qf("matchMedia"))},KP=(function(){function e(r,n){this.selector=n&&Ey(n),this.data=[],this._r=[],this.isReverted=!1,this.id=yN++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){ce(n)&&(a=i,i=n,n=ce);var o=this,s=function(){var l=te,c=o.selector,f;return l&&l!==o&&l.data.push(o),a&&(o.selector=Ey(a)),te=o,f=i.apply(o,arguments),ce(f)&&o._r.push(f),te=l,o.selector=c,o.isReverted=!1,f};return o.last=s,n===ce?s(o,function(u){return o.add(null,u)}):n?o[n]=s:s},t.ignore=function(n){var i=te;te=null,n(this),te=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof xe&&!(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 xe)&&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=ta.length;o--;)ta[o].id===this.id&&ta.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),gN=(function(){function e(r){this.contexts=[],this.scope=r,te&&te.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){En(n)||(n={matches:n});var o=new KP(0,a||this.scope),s=o.conditions={},u,l,c;te&&!o.selector&&(o.selector=te.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(l in n)l==="all"?c=1:(u=bn.matchMedia(n[l]),u&&(ta.indexOf(o)<0&&ta.push(o),(s[l]=u.matches)&&(c=1),u.addListener?u.addListener(ky):u.addEventListener("change",ky)));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})(),Dl={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 $P(i)})},timeline:function(t){return new Qe(t)},getTweensOf:function(t,r){return se.getTweensOf(t,r)},getProperty:function(t,r,n,i){$e(t)&&(t=Ur(t)[0]);var a=Zi(t||{}).get,o=n?bP:vP;return n==="native"&&(n=""),t&&(r?o((Or[r]&&Or[r].get||a)(t,r,n,i)):function(s,u,l){return o((Or[s]&&Or[s].get||a)(t,s,u,l))})},quickSetter:function(t,r,n){if(t=Ur(t),t.length>1){var i=t.map(function(c){return yr.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=Or[r],s=Zi(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&&Gv(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=yr.to(t,$r((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 se.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Qi(t.ease,Qa.ease)),qb(Qa,t||{})},config:function(t){return qb(Cr,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&&!Or[s]&&!kr[s]&&Ns(r+" effect requires "+s+" plugin.")}),If[r]=function(s,u,l){return n(Ur(s),$r(u||{},a),l)},o&&(Qe.prototype[r]=function(s,u,l){return this.add(If[r](s,En(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,r){Pt[t]=Qi(r)},parseEase:function(t,r){return arguments.length?Qi(t,r):Pt},getById:function(t){return se.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new Qe(t),i,a;for(n.smoothChildTiming=cr(t.smoothChildTiming),se.remove(n),n._dp=0,n._time=n._tTime=se._time,i=se._first;i;)a=i._next,(r||!(!i._dur&&i instanceof xe&&i.vars.onComplete===i._targets[0]))&&_n(n,i,i._start-i._delay),i=a;return _n(se,n,0),n},context:function(t,r){return t?new KP(t,r):te},matchMedia:function(t){return new gN(t)},matchMediaRefresh:function(){return ta.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||ky()},addEventListener:function(t,r){var n=cl[t]||(cl[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=cl[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:YI,wrapYoyo:VI,distribute:TP,random:EP,snap:PP,normalize:XI,getUnit:Xe,clamp:WI,splitColor:jP,toArray:Ur,selector:Ey,mapRange:MP,pipe:GI,unitize:KI,interpolate:ZI,shuffle:OP},install:pP,effects:If,ticker:Tr,updateRoot:Qe.updateRoot,plugins:Or,globalTimeline:se,core:{PropTween:hr,globals:dP,Tween:xe,Timeline:Qe,Animation:Fs,getCache:Zi,_removeLinkedListItem:Ic,reverting:function(){return Le},context:function(t){return t&&te&&(te.data.push(t),t._ctx=te),te},suppressOverwrites:function(t){return jv=t}}};fr("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Dl[e]=xe[e]});Tr.add(Qe.updateRoot);Ra=Dl.to({},{duration:0});var vN=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},bN=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=vN(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},Ff=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var u,l;if($e(a)&&(u={},fr(a,function(c){return u[c]=1}),a=u),r){u={};for(l in a)u[l]=r(a[l]);a=u}bN(s,a)}}}},yr=Dl.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;)Le?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)}},Ff("roundProps",Cy),Ff("modifiers"),Ff("snap",PP))||Dl;xe.version=Qe.version=yr.version="3.13.0";hP=1;Dv()&&no();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;/*!
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 Yb,ci,qa,Xv,Wi,Vb,Yv,TN=function(){return typeof window<"u"},Yn={},Bi=180/Math.PI,Fa=Math.PI/180,Pa=Math.atan2,Zb=1e8,Vv=/([A-Z])/g,PN=/(left|right|width|margin|padding|x)/i,EN=/[\s,\(]\S/,wn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},$y=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)},JP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},QP=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)},ue="transform",pr=ue+"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=wn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=Nn(i,s)}):this.tfm[t]=o.x?o[t]:Nn(i,t),t===pr&&(this.tfm.zOrigin=o.zOrigin);else return wn.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ue)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(pr,r,"")),t=ue}(a||r)&&this.props.push(t,r,a[t])},tE=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(Vv,"-$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=Yv(),(!a||!a.isStart)&&!n[ue]&&(tE(n),i.zOrigin&&n[pr]&&(n[pr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},eE=function(t,r){var n={target:t,props:[],revert:BN,save:LN};return t._gsap||yr.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},rE,jy=function(t,r){var n=ci.createElementNS?ci.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ci.createElement(t);return n&&n.style?n:ci.createElement(t)},Wr=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(Vv,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,io(r)||r,1)||""},Jb="O,Moz,ms,Ms,Webkit".split(","),io=function(t,r,n){var i=r||Wi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Jb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Jb[o]:"")+t},Ry=function(){TN()&&window.document&&(Yb=window,ci=Yb.document,qa=ci.documentElement,Wi=jy("div")||{style:{}},jy("div"),ue=io(ue),pr=ue+"Origin",Wi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",rE=!!io("perspective"),Yv=yr.core.reverting,Xv=1)},Qb=function(t){var r=t.ownerSVGElement,n=jy("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),qa.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),qa.removeChild(n),a},t_=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},nE=function(t){var r,n;try{r=t.getBBox()}catch{r=Qb(t),n=1}return r&&(r.width||r.height)||n||(r=Qb(t)),r&&!r.width&&!r.x&&!r.y?{x:+t_(t,["x","cx","x1"])||0,y:+t_(t,["y","cy","y1"])||0,width:0,height:0}:r},iE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&nE(t))},sa=function(t,r){if(r){var n=t.style,i;r in Yn&&r!==pr&&(r=ue),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Vv,"-$1").toLowerCase())):n.removeAttribute(r)}},fi=function(t,r,n,i,a,o){var s=new hr(t._pt,r,n,0,1,o?QP:JP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},e_={deg:1,rad:1,turn:1},qN={grid:1,flex:1},bi=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Wi.style,u=PN.test(r),l=t.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,d,m,v;if(i===o||!a||e_[i]||e_[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),v=t.getCTM&&iE(t),(p||o==="%")&&(Yn[r]||~r.indexOf("adius")))return y=v?t.getBBox()[u?"width":"height"]:t[c],pe(p?a/y*f:a/100*y);if(s[u?"width":"height"]=f+(h?o:i),d=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(d=(t.ownerSVGElement||{}).parentNode),(!d||d===ci||!d.appendChild)&&(d=ci.body),m=d._gsap,m&&p&&m.width&&u&&m.time===Tr.time&&!m.uncache)return pe(a/m.width*f);if(p&&(r==="height"||r==="width")){var x=t.style[r];t.style[r]=f+i,y=t[c],x?t.style[r]=x:sa(t,r)}else(p||o==="%")&&!qN[Wr(d,"display")]&&(s.position=Wr(t,"position")),d===t&&(s.position="static"),d.appendChild(Wi),y=Wi[c],d.removeChild(Wi),s.position="absolute";return u&&p&&(m=Vi(d),m.time=Tr.time,m.width=d[c]),pe(h?y*a/f:y&&a?f/y*a:0)},Nn=function(t,r,n,i){var a;return Xv||Ry(),r in wn&&r!=="transform"&&(r=wn[r],~r.indexOf(",")&&(r=r.split(",")[0])),Yn[r]&&r!=="transform"?(a=Us(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Nl(Wr(t,pr))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Il[r]&&Il[r](t,r,n)||Wr(t,r)||_P(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?bi(t,r,a,n)+n:a},FN=function(t,r,n,i){if(!n||n==="none"){var a=io(r,t,1),o=a&&Wr(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Wr(t,"borderTopColor"))}var s=new hr(this._pt,t.style,r,0,1,YP),u=0,l=0,c,f,h,p,y,d,m,v,x,b,_,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Wr(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(d=t.style[r],t.style[r]=i,i=Wr(t,r)||i,d?t.style[r]=d:sa(t,r)),c=[n,i],BP(c),n=c[0],i=c[1],h=n.match(ja)||[],g=i.match(ja)||[],g.length){for(;f=ja.exec(i);)m=f[0],x=i.substring(u,f.index),y?y=(y+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(y=1),m!==(d=h[l++]||"")&&(p=parseFloat(d)||0,_=d.substr((p+"").length),m.charAt(1)==="="&&(m=Ba(p,m)+_),v=parseFloat(m),b=m.substr((v+"").length),u=ja.lastIndex-b.length,b||(b=b||Cr.units[r]||_,u===i.length&&(i+=b,s.e+=b)),_!==b&&(p=bi(t,r,d,b)||0),s._pt={_next:s._pt,p:x||l===1?x:",",s:p,c:v-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"?QP:JP;return dP.test(i)&&(s.e=0),this._pt=s,s},r_={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]=r_[n]||n,r[1]=r_[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,u,l;if(a==="all"||a===!0)i.cssText="",u=1;else for(a=a.split(","),l=a.length;--l>-1;)s=a[l],Yn[s]&&(u=1,s=s==="transformOrigin"?pr:ue),sa(n,s);u&&(sa(n,ue),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Us(n,1),o.uncache=1,tE(i)))}},Il={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new hr(t._pt,r,n,0,0,UN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},zs=[1,0,0,1,0,0],aE={},oE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},n_=function(t){var r=Wr(t,ue);return oE(r)?zs:r.substr(7).match(pP).map(pe)},Zv=function(t,r){var n=t._gsap||Vi(t),i=t.style,a=n_(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"?zs:a):(a===zs&&!t.offsetParent&&t!==qa&&!n.svg&&(u=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,s=t.nextElementSibling,qa.appendChild(t)),a=n_(t),u?i.display=u:sa(t,"display"),l&&(s?o.insertBefore(t,s):o?o.appendChild(t):qa.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Dy=function(t,r,n,i,a,o){var s=t._gsap,u=a||Zv(t,!0),l=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=u[0],y=u[1],d=u[2],m=u[3],v=u[4],x=u[5],b=r.split(" "),_=parseFloat(b[0])||0,g=parseFloat(b[1])||0,w,S,A,T;n?u!==zs&&(S=p*m-y*d)&&(A=_*(m/S)+g*(-d/S)+(d*x-m*v)/S,T=_*(-y/S)+g*(p/S)-(p*x-y*v)/S,_=A,g=T):(w=nE(t),_=w.x+(~b[0].indexOf("%")?_/100*w.width:_),g=w.y+(~(b[1]||b[0]).indexOf("%")?g/100*w.height:g)),i||i!==!1&&s.smooth?(v=_-l,x=g-c,s.xOffset=f+(v*p+x*d)-v,s.yOffset=h+(v*y+x*m)-x):s.xOffset=s.yOffset=0,s.xOrigin=_,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[pr]="0px 0px",o&&(fi(o,s,"xOrigin",l,_),fi(o,s,"yOrigin",c,g),fi(o,s,"xOffset",f,s.xOffset),fi(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",_+" "+g)},Us=function(t,r){var n=t._gsap||new UP(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=Wr(t,pr)||"0",c,f,h,p,y,d,m,v,x,b,_,g,w,S,A,T,M,P,E,C,j,k,$,N,W,z,I,B,D,F,X,L;return c=f=h=d=m=v=x=b=_=0,p=y=1,n.svg=!!(t.getCTM&&iE(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[ue]=(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[ue]!=="none"?u[ue]:"")),i.scale=i.rotate=i.translate="none"),S=Zv(t,n.svg),n.svg&&(n.uncache?(W=t.getBBox(),l=n.xOrigin-W.x+"px "+(n.yOrigin-W.y)+"px",N=""):N=!r&&t.getAttribute("data-svg-origin"),Dy(t,N||l,!!N||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,w=n.yOrigin||0,S!==zs&&(P=S[0],E=S[1],C=S[2],j=S[3],c=k=S[4],f=$=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt(j*j+C*C),d=P||E?Pa(E,P)*Bi:0,x=C||j?Pa(C,j)*Bi+d:0,x&&(y*=Math.abs(Math.cos(x*Fa))),n.svg&&(c-=g-(g*P+w*C),f-=w-(g*E+w*j))):(L=S[6],F=S[7],I=S[8],B=S[9],D=S[10],X=S[11],c=S[12],f=S[13],h=S[14],A=Pa(L,D),m=A*Bi,A&&(T=Math.cos(-A),M=Math.sin(-A),N=k*T+I*M,W=$*T+B*M,z=L*T+D*M,I=k*-M+I*T,B=$*-M+B*T,D=L*-M+D*T,X=F*-M+X*T,k=N,$=W,L=z),A=Pa(-C,D),v=A*Bi,A&&(T=Math.cos(-A),M=Math.sin(-A),N=P*T-I*M,W=E*T-B*M,z=C*T-D*M,X=j*M+X*T,P=N,E=W,C=z),A=Pa(E,P),d=A*Bi,A&&(T=Math.cos(A),M=Math.sin(A),N=P*T+E*M,W=k*T+$*M,E=E*T-P*M,$=$*T-k*M,P=N,k=W),m&&Math.abs(m)+Math.abs(d)>359.9&&(m=d=0,v=180-v),p=pe(Math.sqrt(P*P+E*E+C*C)),y=pe(Math.sqrt($*$+L*L)),A=Pa(k,$),x=Math.abs(A)>2e-4?A*Bi:0,_=X?1/(X<0?-X:X):0),n.svg&&(N=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!oE(Wr(t,ue)),N&&t.setAttribute("transform",N))),Math.abs(x)>90&&Math.abs(x)<270&&(a?(p*=-1,x+=d<=0?180:-180,d+=d<=0?180:-180):(y*=-1,x+=x<=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=pe(p),n.scaleY=pe(y),n.rotation=pe(d)+s,n.rotationX=pe(m)+s,n.rotationY=pe(v)+s,n.skewX=x+s,n.skewY=b+s,n.transformPerspective=_+o,(n.zOrigin=parseFloat(l.split(" ")[2])||!r&&n.zOrigin||0)&&(i[pr]=Nl(l)),n.xOffset=n.yOffset=0,n.force3D=Cr.force3D,n.renderTransform=n.svg?HN:rE?sE:WN,n.uncache=0,n},Nl=function(t){return(t=t.split(" "))[0]+" "+t[1]},zf=function(t,r,n){var i=Xe(r);return pe(parseFloat(r)+parseFloat(bi(t,"x",n+"px",i)))+i},WN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,sE(t,r)},Di="0deg",Yo="0px",Ii=") ",sE=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,d=n.scaleY,m=n.transformPerspective,v=n.force3D,x=n.target,b=n.zOrigin,_="",g=v==="auto"&&t&&t!==1||v===!0;if(b&&(f!==Di||c!==Di)){var w=parseFloat(c)*Fa,S=Math.sin(w),A=Math.cos(w),T;w=parseFloat(f)*Fa,T=Math.cos(w),o=zf(x,o,S*T*-b),s=zf(x,s,-Math.sin(w)*-b),u=zf(x,u,A*T*-b+b)}m!==Yo&&(_+="perspective("+m+Ii),(i||a)&&(_+="translate("+i+"%, "+a+"%) "),(g||o!==Yo||s!==Yo||u!==Yo)&&(_+=u!==Yo||g?"translate3d("+o+", "+s+", "+u+") ":"translate("+o+", "+s+Ii),l!==Di&&(_+="rotate("+l+Ii),c!==Di&&(_+="rotateY("+c+Ii),f!==Di&&(_+="rotateX("+f+Ii),(h!==Di||p!==Di)&&(_+="skew("+h+", "+p+Ii),(y!==1||d!==1)&&(_+="scale("+y+", "+d+Ii),x.style[ue]=_||"translate(0, 0)"},HN=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,d=n.yOrigin,m=n.xOffset,v=n.yOffset,x=n.forceCSS,b=parseFloat(o),_=parseFloat(s),g,w,S,A,T;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=Fa,l*=Fa,g=Math.cos(u)*f,w=Math.sin(u)*f,S=Math.sin(u-l)*-h,A=Math.cos(u-l)*h,l&&(c*=Fa,T=Math.tan(l-c),T=Math.sqrt(1+T*T),S*=T,A*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,w*=T)),g=pe(g),w=pe(w),S=pe(S),A=pe(A)):(g=f,A=h,w=S=0),(b&&!~(o+"").indexOf("px")||_&&!~(s+"").indexOf("px"))&&(b=bi(p,"x",o,"px"),_=bi(p,"y",s,"px")),(y||d||m||v)&&(b=pe(b+y-(y*g+d*S)+m),_=pe(_+d-(y*w+d*A)+v)),(i||a)&&(T=p.getBBox(),b=pe(b+i/100*T.width),_=pe(_+a/100*T.height)),T="matrix("+g+","+w+","+S+","+A+","+b+","+_+")",p.setAttribute("transform",T),x&&(p.style[ue]=T)},GN=function(t,r,n,i,a){var o=360,s=$e(a),u=parseFloat(a)*(s&&~a.indexOf("rad")?Bi: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*Zb)%o-~~(l/o)*o:f==="ccw"&&l>0&&(l=(l-o*Zb)%o-~~(l/o)*o)),t._pt=h=new hr(t._pt,r,n,i,l,CN),h.e=c,h.u="deg",t._props.push(n),h},i_=function(t,r){for(var n in r)t[n]=r[n];return t},KN=function(t,r,n){var i=i_({},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[ue]=r,s=Us(n,1),sa(n,ue),n.setAttribute("transform",l)):(l=getComputedStyle(n)[ue],o[ue]=r,s=Us(n,1),o[ue]=l);for(u in Yn)l=i[u],c=s[u],l!==c&&a.indexOf(u)<0&&(p=Xe(l),y=Xe(c),f=p!==y?bi(n,u,l,y):parseFloat(l),h=parseFloat(c),t._pt=new hr(t._pt,s,u,f,h-f,$y),t._pt.u=y||0,t._props.push(u));i_(s,i)};fr("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 Nn(s,y,l)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,d){return p[y]=h[d]=h[d]||h[(d-1)/2|0]}),s.init(u,p,f)}});var uE={name:"css",register:Ry,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,d,m,v,x,b,_,g,w,S,A;Xv||Ry(),this.styles=this.styles||eE(t),A=this.styles.props,this.tween=n;for(d in r)if(d!=="autoRound"&&(c=r[d],!(Or[d]&&WP(d,r,n,i,t,a)))){if(p=typeof c,y=Il[d],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Bs(c)),y)y(this,t,d,c,n)&&(S=1);else if(d.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(d)+"").trim(),c+="",gi.lastIndex=0,gi.test(l)||(m=Xe(l),v=Xe(c)),v?m!==v&&(l=bi(t,d,l,v)+v):m&&(c+=m),this.add(s,"setProperty",l,c,i,a,0,0,d),o.push(d),A.push(d,0,s[d]);else if(p!=="undefined"){if(u&&d in u?(l=typeof u[d]=="function"?u[d].call(n,i,t,a):u[d],$e(l)&&~l.indexOf("random(")&&(l=Bs(l)),Xe(l+"")||l==="auto"||(l+=Cr.units[d]||Xe(Nn(t,d))||""),(l+"").charAt(1)==="="&&(l=Nn(t,d))):l=Nn(t,d),h=parseFloat(l),x=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),x&&(c=c.substr(2)),f=parseFloat(c),d in wn&&(d==="autoAlpha"&&(h===1&&Nn(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),fi(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),d!=="scale"&&d!=="transform"&&(d=wn[d],~d.indexOf(",")&&(d=d.split(",")[0]))),b=d in Yn,b){if(this.styles.save(d),p==="string"&&c.substring(0,6)==="var(--"&&(c=Wr(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),_||(g=t._gsap,g.renderTransform&&!r.parseTransform||Us(t,r.parseTransform),w=r.smoothOrigin!==!1&&g.smooth,_=this._pt=new hr(this._pt,s,ue,0,1,g.renderTransform,g,0,-1),_.dep=1),d==="scale")this._pt=new hr(this._pt,g,"scaleY",g.scaleY,(x?Ba(g.scaleY,x+f):f)-g.scaleY||0,$y),this._pt.u=0,o.push("scaleY",d),d+="X";else if(d==="transformOrigin"){A.push(pr,0,s[pr]),c=zN(c),g.svg?Dy(t,c,0,w,0,this):(v=parseFloat(c.split(" ")[2])||0,v!==g.zOrigin&&fi(this,g,"zOrigin",g.zOrigin,v),fi(this,s,d,Nl(l),Nl(c)));continue}else if(d==="svgOrigin"){Dy(t,c,1,w,0,this);continue}else if(d in aE){GN(this,g,d,h,x?Ba(h,x+c):c);continue}else if(d==="smoothOrigin"){fi(this,g,"smooth",g.smooth,c);continue}else if(d==="force3D"){g[d]=c;continue}else if(d==="transform"){KN(this,c,t);continue}}else d in s||(d=io(d)||d);if(b||(f||f===0)&&(h||h===0)&&!EN.test(c)&&d in s)m=(l+"").substr((h+"").length),f||(f=0),v=Xe(c)||(d in Cr.units?Cr.units[d]:m),m!==v&&(h=bi(t,d,l,v)),this._pt=new hr(this._pt,b?g:s,d,h,(x?Ba(h,x+f):f)-h,!b&&(v==="px"||d==="zIndex")&&r.autoRound!==!1?kN:$y),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=MN);else if(d in s)FN.call(this,t,d,l,x?x+c:c);else if(d in t)this.add(t,d,l||t[d],x?x+c:c,i,a);else if(d!=="parseTransform"){Lv(d,c);continue}b||(d in s?A.push(d,0,s[d]):typeof t[d]=="function"?A.push(d,2,t[d]()):A.push(d,1,l||t[d])),o.push(d)}}S&&VP(this)},render:function(t,r){if(r.tween._time||!Yv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:Nn,aliases:wn,getSetter:function(t,r,n){var i=wn[r];return i&&i.indexOf(",")<0&&(r=i),r in Yn&&r!==pr&&(t._gsap.x||Nn(t,"x"))?n&&Vb===n?r==="scale"?DN:RN:(Vb=n||{})&&(r==="scale"?IN:NN):t.style&&!Dv(t.style[r])?$N:~r.indexOf("-")?jN:Gv(t,r)},core:{_removeProperty:sa,_getMatrix:Zv}};yr.utils.checkPrefix=io;yr.core.getStyleSaver=eE;(function(e,t,r,n){var i=fr(e+","+t+","+r,function(a){Yn[a]=1});fr(t,function(a){Cr.units[a]="deg",aE[a]=1}),wn[i[13]]=e+","+t,fr(n,function(a){var o=a.split(":");wn[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");fr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Cr.units[e]="px"});yr.registerPlugin(uE);var Iy=yr.registerPlugin(uE)||yr;Iy.core.Tween;const Ea={IN_OUT:"power2.inOut",OUT:"power2.out"},Vo={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class lE{constructor(t,r={}){Uo(this,"timeline");Uo(this,"currentStage","");Uo(this,"callbacks");Uo(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Iy.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"),u=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",u||"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:Ea.IN_OUT,stagger:Vo.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 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:Ea.IN_OUT,stagger:Vo.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:Ea.IN_OUT,stagger:Vo.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:Ea.OUT,stagger:Vo.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=Vo.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:Ea.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&&Iy.to(s,{attr:{d:l},duration:a,ease:Ea.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 XN(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,C)=>E+C.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 C=E*Math.PI/180;for(let j=s;j>=o;j-=.1){const k=j*2,$=k*u,N=Math.floor((i-c)/$);for(let W=1;W<=Math.min(N,10);W++){let z=0;for(let I=0;I<W;I++){const B=c+(I+.5)*$,D=k*u/B,F=Math.floor(C/D);z+=F}if(z>=f){const I=f/z,B=(j-o)/(s-o),D=(z-f)/f,F=D<.15?1:D<.3?.7:D<.5?.4:.1,X=1-Math.abs(E-r)/n,L=F*.5+B*.3+I*.15+X*.05;L>h.score&&(h={seatSize:j,arcAngle:E,rings:W,score:L})}}}}const d=h.seatSize,m=h.arcAngle,v=m*Math.PI/180,x=d*2,b=x*u,_=Math.floor((i-c)/b),g=[],w=-v/2-Math.PI/2,S=[];let A=0,T=[];for(let E=1;E<=_;E++){let C=0;const j=[];for(let k=0;k<E;k++){const $=c+(k+.5)*b,N=x*u/$,W=Math.floor(v/N);j.push(W),C+=W}if(C>=f){A=E,T=j;break}}if(A>0)S.push(...T);else for(let E=0;E<_;E++){const C=c+(E+.5)*b,j=x*u/C,k=Math.floor(v/j);S.push(k)}for(let E=0;E<S.length;E++){const C=c+(E+.5)*b,j=S[E]??0;if(j>0){const k=v/j;for(let $=0;$<j;$++){const N=w+($+.5)*k,W=Math.cos(N)*C,z=Math.sin(N)*C;g.push({ring:E,index:$,angle:N,x:W,y:z})}}}g.sort((E,C)=>{const j=E.angle-C.angle;return Math.abs(j)>.001?j:E.ring-C.ring});const M=[];let P=0;return e.forEach((E,C)=>{const j=Math.min(E.seats,g.length-P);for(let k=0;k<j&&P<g.length;k++){const $=g[P++];$&&M.push({x:$.x,y:$.y,category:E.name,categoryIndex:C,seatIndex:k,ring:$.ring,angle:$.angle,radius:d})}}),{arcAngle:m,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:d,seats:M,totalSeats:f}}function YN(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 dr={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},gs=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],ur={greyHatch:{background:dr.neoGrey[200],lines:dr.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",ur.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",ur.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",ur.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",ur.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",ur.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",ur.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",ur.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",ur.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",ur.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",ur.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",ur.noLstHatch.lines).attr("stroke-width",.5)}function zu(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),VN(r,t),ZN(r,t),JN(r,t)}function a_(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function Jv(e){return e.includes("greyHatchPattern")?ur.greyHatch.lines:e.includes("dataMissingHatchPattern")?ur.dataMissingHatch.lines:e.includes("noLstHatchPattern")?ur.noLstHatch.lines:e}function Ny(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,u=Ui().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(oa),l=kv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(oa),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 d=((v=y.parliamentMapping)==null?void 0:v.isSpecialCategory)??!1,m=Jv(y.color);if(d){const x=f.append("path").datum(h).attr("fill","none").attr("stroke",m).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}`;x.attr("class",b)}}else{const x=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",m).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}`;x.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,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 He(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: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(v=>v.label===p.category);if(!y)return;const d=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),m=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-${He(p.category)}`:`seat seat-${He(p.category)}`;d.attr("class",v),m.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-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 tL(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),d=n(p.y1);let m;if(o){const v=l.get(h.category)??[],x=h.seatIndex,b=v.length;if(b===1)m=(y+d)/2;else{const _=x/(b-1);m=y+(d-y)*_}}else m=d;s.set(h,{x:u,y:m})}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 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 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 Hi=new Map;ee.prototype.transition=lv;const nL=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:u=!0,showAxes:l=!0,axisLabelColor:c,formatDate:f,formatValue:h,markers:p=[],arcAngle:y=200,parliamentRadius:d=200,seatSize:m=4.5,animationDuration:v=900,onMorphComplete:x,onAnimationStateChange:b,onTimelineReady:_,onAnimationProgress:g,onHoveredDataChange:w,hoveredCategory:S,maxSeats:A=2e3,parliamentTimestamp:T,enableBrush:M=!1,onTimeRangeChange:P,minAllowedTime:E,maxAllowedTime:C,showScaleIndicator:j=!1,reposPerSeat:k=1,timelineEvents:$=[],showTimeline:N=!1,timelineHeight:W=40,timelineOffset:z=35,brushColor:I="#69b3a2"})=>{const[B,D]=O.useState("area"),[F,X]=O.useState(!1),[L,Y]=O.useState(null),[Z,H]=O.useState(0),[q,K]=O.useState(null),[Q,R]=O.useState(null),[J,U]=O.useState([]),ot=O.useRef(null),yt=O.useRef(n),st=O.useRef(!0),ht=O.useRef(!1),ft=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),Ot=O.useRef(void 0),at=O.useRef(s),pt=O.useRef(x),St=O.useRef(b),qt=O.useRef(_),ne=O.useRef(g),$t=O.useRef(w);O.useEffect(()=>{pt.current=x,St.current=b,qt.current=_,ne.current=g,$t.current=w},[x,b,_,g,w]),O.useEffect(()=>{if(e.current&&B==="parliament")if(S){const Xt=r.find(Wt=>Wt.dataKey===S);if(Xt){const Wt=Xt.label;if(Y(Wt),bs(e.current,Wt),t.length>0){const nr=t[t.length-1],Yr=Math.round(nr.values[Xt.dataKey]||0),Ve={label:Xt.label,value:Yr,color:Jv(Xt.color)};Ll(e.current,Ve,j,k,ft.current)}}}else Y(null),bs(e.current,null),Ll(e.current,null,j,k,ft.current)},[S,B,r,t,j,k]);const Ft=i-o.left-o.right,me=a-o.top-o.bottom;return O.useEffect(()=>{var bt;if(!e.current||t.length===0||r.length===0||(Ot.current&&(Ot.current(),Ot.current=void 0),ht.current))return;const Xt=ee(e.current),Wt=n!==yt.current;st.current?(Xt.selectAll("*").remove(),zu(Xt,ft.current),st.current=!1):Wt||(Xt.selectAll("*").remove(),zu(Xt,ft.current));const nr=t[t.length-1],Yr=r.reduce((ct,At)=>ct+(nr.values[At.dataKey]||0),0),Ve=t.map(ct=>{const At={timestamp:ct.timestamp};for(const Ct of r)At[Ct.dataKey]=ct.values[Ct.dataKey]||0;return At}),ir=r.map(ct=>ct.dataKey),Me=Ml().keys(ir),Vr=Me(Ve),jr=t.map(ct=>ct.timestamp),Qn=Wt||!s?Math.min(...jr):s[0],ar=Wt||!s?Math.max(...jr):s[1],cn=[...jr].sort((ct,At)=>ct-At),vr=[];for(let ct=0;ct<cn.length-1;ct++)vr.push(cn[ct+1]-cn[ct]);const Ei=vr.length>0?vr.reduce((ct,At)=>ct+At,0)/vr.length:0,ti=ar+Ei*1.15,Ze=Al().domain([new Date(Qn),new Date(ti)]).range([0,Ft]),ei=Ve.filter(ct=>ct.timestamp>=Qn&&ct.timestamp<=ar),fn=Me(ei),fe=fn.length>0?Math.max(...fn[fn.length-1].map(ct=>ct[1]??0)):0,Be=aa().domain([0,fe*1.15]).range([me,0]),Je=r.map(ct=>({...ct,color:a_(ct.color,ft.current)})),Zr=Je.map(ct=>({dataKey:ct.dataKey,label:ct.label,color:ct.color,value:nr.values[ct.dataKey]||0})),hn=YN(Zr,Yr,A).reverse(),pn=XN(hn,{arcAngle:y,radius:d,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});ot.current=pn;const et=eL(Ve,r),dt=tL(pn,et,Ze,Be,Ft,me);if(Wt&&!ht.current){ht.current=!0,X(!0),(bt=St.current)==null||bt.call(St,!0),K(null),U([]),H(0);let ct=Xt.select("g[transform]");if(ct.empty()&&(ct=Xt.select("g")),ct.empty()){Xt.selectAll("*").remove(),zu(Xt,ft.current),Uf(Xt,n==="parliament"?"parliament":"area",Vr,Je,pn,Ze,Be,Ft,me,o,u,l,c,f,h,M,P,ft.current,p,s,U,K,$,N,W,z,R,E,C,I),X(!1),D(n==="parliament"?"parliament":"area"),H(n==="parliament"?1:0),yt.current=n;return}const At=setTimeout(()=>{ht.current=!1,X(!1),yt.current=n},v*3);sL(Xt,n,Vr,Je,pn,dt,Ze,Be,Ft,me,o,v,()=>{var Ct,ie;if(clearTimeout(At),ht.current=!1,X(!1),D(n==="parliament"?"parliament":"area"),n==="parliament"&&H(1),(Ct=St.current)==null||Ct.call(St,!1),(ie=pt.current)==null||ie.call(pt),yt.current=n,n==="parliament"&&e.current&&$t.current&&(Ot.current=Wf(e.current,Je,t,L,Y,$t.current,j,k,ft.current)),n!=="parliament"&&e.current){const ae=ee(e.current),oe=ae.select(ft.current?`.main-chart-group-${ft.current}`:".main-chart-group");if(N&&R){const ye=ft.current?`.timeline-track-${ft.current}`:".timeline-track",qe=ft.current?`.timeline-brush-${ft.current}`:".timeline-brush";oe.select(ye).remove(),oe.select(qe).remove(),fE(ae,$,Ze,me,Ft,W,z,ft.current,R,M,P,E,C,I)}if(M&&P&&!N){const ye=oe.select(ft.current?`.chart-content-group-${ft.current}`:".chart-content-group");iL(ye,Ft,me,Ze,P,ft.current,ae,E,C,I)}if(p.length>0&&U&&K&&s){const qe=p.filter(Yt=>Yt.timestamp>=(s[0]??0)-1&&Yt.timestamp<=(s[1]??1/0)+1).map(Yt=>({...Yt,x:Ze(new Date(Yt.timestamp))}));if(U(qe),qe.length>0){aL(oe,qe,me,Ft,M,K,ft.current);const Yt=oe.select(ft.current?`.markers-${ft.current}`:".markers");if(!Yt.empty()){oe.selectAll(".marker-hover-overlay").remove();const Rr=oe.append("rect").attr("class","marker-hover-overlay").attr("x",0).attr("y",0).attr("width",Ft).attr("height",me).attr("fill","none").attr("pointer-events","all");let br=null;Rr.on("mousemove",function(Ci){const[xa]=ks(Ci,this);let dn=null,Mi=1/0;if(qe.forEach(Fo=>{const mn=Math.abs(xa-Fo.x);mn<Mi&&(Mi=mn,dn=Fo)}),!dn||Mi>50){br!==null&&(br=null,Yt.selectAll(".marker-line").attr("opacity",0),Yt.selectAll(".marker-label").attr("opacity",0),K(null));return}const Dr=dn;br!==Dr.timestamp&&(br=Dr.timestamp,Yt.selectAll(".marker-line").attr("opacity",0),Yt.selectAll(".marker-label").attr("opacity",0),Yt.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(Dr.timestamp)}).attr("opacity",.6),Yt.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(Dr.timestamp)}).attr("opacity",1),K(Dr))}),Rr.on("mouseleave",function(){br=null,Yt.selectAll(".marker-line").attr("opacity",0),Yt.selectAll(".marker-label").attr("opacity",0),K(null)})}}}}},l,f,h,qt.current,(Ct,ie)=>{var ae;if(n==="parliament"&&Ct>=.95){const oe=(Ct-.95)/.05;H(Math.min(oe,1))}(ae=ne.current)==null||ae.call(ne,Ct,ie)},T,ft.current)}else yt.current=n,n==="parliament"&&(K(null),U([])),Uf(Xt,n==="parliament"?"parliament":"area",Vr,Je,pn,Ze,Be,Ft,me,o,u,l,c,f,h,M,P,ft.current,p,s,U,K,$,N,W,z,R,E,C,I),D(n==="parliament"?"parliament":"area"),H(n==="parliament"?1:0),n==="parliament"&&e.current&&$t.current&&(Ot.current=Wf(e.current,Je,t,L,Y,$t.current,j,k,ft.current));return()=>{Ot.current&&(Ot.current(),Ot.current=void 0)}},[n]),O.useEffect(()=>{var ei,fn;if(!e.current||t.length===0||ht.current)return;if(st.current){at.current=s;return}if(!(s!==at.current&&((s==null?void 0:s[0])!==((ei=at.current)==null?void 0:ei[0])||(s==null?void 0:s[1])!==((fn=at.current)==null?void 0:fn[1]))))return;at.current=s;const Wt=ee(e.current),nr=t.map(fe=>{const Be={timestamp:fe.timestamp};for(const Je of r)Be[Je.dataKey]=fe.values[Je.dataKey]||0;return Be}),Yr=r.map(fe=>fe.dataKey),ir=Ml().keys(Yr)(nr),Me=t.map(fe=>fe.timestamp),Vr=s?s[0]:Math.min(...Me),jr=s?s[1]:Math.max(...Me),ar=(Me.length>1?(Me[Me.length-1]-Me[0])/(Me.length-1):0)*.5,cn=Al().domain([new Date(Vr-ar),new Date(jr+ar)]).range([0,i-o.left-o.right]),vr=Math.max(...ir[ir.length-1].map(fe=>fe[1])),Ei=aa().domain([0,vr*1.1]).range([a-o.top-o.bottom,0]);if(!ot.current)return;const ti=ot.current,Ze=r.map(fe=>({...fe,color:a_(fe.color,ft.current)}));Wt.selectAll("*").remove(),zu(Wt,ft.current),Uf(Wt,B==="parliament"?"parliament":"area",ir,Ze,ti,cn,Ei,i-o.left-o.right,a-o.top-o.bottom,o,u,l,c,f,h,M,P,ft.current,p,s,U,K,$,N,W,z,R,E,C,I),B==="parliament"&&e.current&&$t.current&&(Ot.current=Wf(e.current,Ze,t,L,Y,$t.current,j,k,ft.current))},[s]),{isMorphing:F,currentMode:B,hoveredCategory:L,scaleIndicatorOpacity:Z,visibleMarkers:J,hoveredMarker:q,setHoveredMarker:K,hoveredTimelineEvent:Q,setHoveredTimelineEvent:R}};function iL(e,t,r,n,i,a,o,s,u,l){const c=s,f=u,h=Pc().extent([[0,0],[t,r]]).on("start",y=>{if(!y.selection&&c!==void 0&&f!==void 0){const d=y.sourceEvent;if(d){const m=d.offsetX,v=+n.invert(m);if(v<c||v>f){o.select(".brush").call(h.move,null);return}}}}).on("brush",y=>{if(!y.selection)return;const[d,m]=y.selection;let v=+n.invert(d),x=+n.invert(m);c!==void 0&&(v=Math.max(v,c),x=Math.max(x,c)),f!==void 0&&(v=Math.min(v,f),x=Math.min(x,f));const b=n(new Date(v)),_=n(new Date(x));(b!==d||_!==m)&&o.select(".brush").call(h.move,[b,_])}).on("end",y=>{if(!y.selection)return;const[d,m]=y.selection,v=[+n.invert(d),+n.invert(m)];c!==void 0&&(v[0]=Math.max(v[0],c)),f!==void 0&&(v[1]=Math.min(v[1],f)),i(v),o.select(".brush").call(h.move,null)}),p=e.append("g").attr("class","brush").call(h);p.selectAll(".selection").attr("fill",l).attr("fill-opacity",.2).attr("stroke",l).attr("stroke-width",1),p.selectAll(".handle").attr("fill",l).attr("fill-opacity",.8),p.on("dblclick",()=>{const y=n.domain(),d=[+y[0],+y[1]];s!==void 0&&(d[0]=Math.max(d[0],s)),u!==void 0&&(d[1]=Math.min(d[1],u)),i(d)})}function aL(e,t,r,n,i,a,o){const s=o?`markers markers-${o}`:"markers",u=e.append("g").attr("class",s);t.forEach(l=>{u.append("line").attr("class","marker-line").attr("data-timestamp",l.timestamp).attr("x1",l.x).attr("x2",l.x).attr("y1",0).attr("y2",r).attr("stroke",l.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),l.label&&u.append("text").attr("class","marker-label").attr("data-timestamp",l.timestamp).attr("x",l.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",l.color??"#2F42FF").attr("opacity",0)})}function oL(e,t,r,n,i,a,o){let s=null,u;a?u=e.select(".brush .overlay"):u=e.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",i).attr("fill","none").attr("pointer-events","all");const l=c=>{let f=null,h=1/0;if(r.forEach(d=>{const m=Math.abs(c-d.x);m<h&&(h=m,f=d)}),!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 ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",.6),t.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",1),o(y)),!0};u.on("mousemove",function(c){const[f]=ks(c,this);l(f)}),u.on("mouseleave",function(){s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)})}function Uf(e,t,r,n,i,a,o,s,u,l,c,f,h,p,y,d=!1,m,v,x=[],b=[0,0],_,g,w=[],S=!1,A=40,T=15,M,P,E,C="#69b3a2"){const j=P,k=E;let $=null;const N=v?`main-chart-group main-chart-group-${v}`:"main-chart-group",W=e.append("g").attr("class",N).attr("transform",`translate(${l.left},${l.top})`),z=v?`chart-clip-${v}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",z).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",u);const I=v?`chart-content-group chart-content-group-${v}`:"chart-content-group",B=W.append("g").attr("class",I).attr("clip-path",`url(#${z})`);if(c&&t!=="parliament"&&(B.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Cs(a).ticks(6).tickSize(u).tickFormat(()=>"")),B.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ms(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Ny(B,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),x.length>0)){const F=x.filter(X=>X.timestamp>=b[0]-1&&X.timestamp<=b[1]+1).map(X=>({...X,x:a(new Date(X.timestamp))}));$={markersGroup:null,visibleMarkers:F},_&&_(F)}if(t==="parliament"){const D=s/2,F=i.radius+10,X=u-i.radius*.3,L=Math.max(F,X);cE(B,i,n,{centerX:D,centerY:L,addClasses:!0,instanceId:v,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const D=Cs(a).ticks(6);p&&D.tickFormat(H=>p(+H));const X=W.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).call(D).selectAll("text").attr("font-size",14).attr("font-weight",500);h&&X.attr("fill",h);const L=Ms(o).ticks(5);y&&L.tickFormat(H=>y(+H));const Z=W.append("g").attr("class","axis axis-y").call(L).selectAll("text").attr("font-size",14).attr("font-weight",500);h&&Z.attr("fill",h)}if(d&&m&&t==="area"){const D=j,F=k,X=Pc().extent([[0,0],[s,u]]).on("start",Y=>{if(!Y.selection&&D!==void 0&&F!==void 0){const Z=Y.sourceEvent;if(Z){const H=Z.offsetX-((l==null?void 0:l.left)||0),q=+a.invert(H);if(q<D||q>F){e.select(".brush").call(X.move,null);return}}}}).on("brush",Y=>{if(!Y.selection)return;const[Z,H]=Y.selection;let q=+a.invert(Z),K=+a.invert(H);D!==void 0&&(q=Math.max(q,D),K=Math.max(K,D)),F!==void 0&&(q=Math.min(q,F),K=Math.min(K,F));const Q=a(new Date(q)),R=a(new Date(K));(Q!==Z||R!==H)&&e.select(".brush").call(X.move,[Q,R])}).on("end",Y=>{if(!Y.selection)return;const[Z,H]=Y.selection,q=[+a.invert(Z),+a.invert(H)];D!==void 0&&(q[0]=Math.max(q[0],D)),F!==void 0&&(q[1]=Math.min(q[1],F)),m(q),e.select(".brush").call(X.move,null)}),L=B.append("g").attr("class","brush").call(X);L.selectAll(".selection").attr("fill",C).attr("fill-opacity",.2).attr("stroke",C).attr("stroke-width",1),L.selectAll(".handle").attr("fill",C).attr("fill-opacity",.8),L.on("dblclick",()=>{const Y=a.domain(),Z=[+Y[0],+Y[1]];m(Z)})}if(t==="area"&&$&&$.visibleMarkers.length>0){const D=W.append("g").attr("class","markers").attr("clip-path",`url(#${z})`);$.visibleMarkers.forEach(F=>{D.append("line").attr("class","marker-line").attr("data-timestamp",F.timestamp).attr("x1",F.x).attr("x2",F.x).attr("y1",0).attr("y2",u).attr("stroke",F.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),F.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",F.timestamp).attr("x",F.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",F.color??"#2F42FF").attr("opacity",0)}),$.markersGroup=D}t==="area"&&S&&M&&fE(e,w,a,u,s,A,T,v,M,d,m,j,k,C),$&&$.visibleMarkers.length>0&&g&&t==="area"&&oL(B,$.markersGroup,$.visibleMarkers,s,u,d,g)}function fE(e,t,r,n,i,a,o,s,u,l=!1,c,f,h,p="#69b3a2"){const y=n+o,d=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),m=s?`timeline-track timeline-track-${s}`:"timeline-track",v=d.append("g").attr("class",m),x=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",x).append("rect").attr("x",0).attr("y",y).attr("width",i).attr("height",a),v.append("rect").attr("class","timeline-background").attr("x",0).attr("y",y).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const b=v.append("g").attr("clip-path",`url(#${x})`),_=3,g=b.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",S=>r(new Date(S.timestamp))-_/2).attr("y",y).attr("width",_).attr("height",a).attr("fill",S=>S.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",S=>S.timestamp).attr("data-event-name",S=>S.eventName),w=6;if(g.on("mouseenter",function(S,A){const T=ee(this),M=r(new Date(A.timestamp));T.transition().duration(150).attr("x",M-w/2).attr("width",w),u&&u({timestamp:A.timestamp,eventName:A.eventName,x:M})}).on("mouseleave",function(S,A){const T=ee(this),M=r(new Date(A.timestamp));T.transition().duration(150).attr("x",M-_/2).attr("width",_),u&&u(null)}),l&&c){const S=f,A=h,T=Pc().extent([[0,y],[i,y+a]]).on("start",E=>{if(!E.selection&&S!==void 0&&A!==void 0){const C=E.sourceEvent;if(C){const j=C.offsetX,k=+r.invert(j);if(k<S||k>A){const $=s?`.timeline-brush-${s}`:".timeline-brush";e.select($).call(T.move,null);return}}}}).on("brush",E=>{if(!E.selection)return;const[C,j]=E.selection;let k=+r.invert(C),$=+r.invert(j);S!==void 0&&(k=Math.max(k,S),$=Math.max($,S)),A!==void 0&&(k=Math.min(k,A),$=Math.min($,A));const N=r(new Date(k)),W=r(new Date($));if(N!==C||W!==j){const z=s?`.timeline-brush-${s}`:".timeline-brush";e.select(z).call(T.move,[N,W])}}).on("end",E=>{if(!E.selection)return;const[C,j]=E.selection,k=[+r.invert(C),+r.invert(j)];S!==void 0&&(k[0]=Math.max(k[0],S)),A!==void 0&&(k[1]=Math.min(k[1],A)),c(k);const $=s?`.timeline-brush-${s}`:".timeline-brush";e.select($).call(T.move,null)}),M=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",P=d.append("g").attr("class",M).call(T);P.selectAll(".selection").attr("fill",p).attr("fill-opacity",.2).attr("stroke",p).attr("stroke-width",1),P.selectAll(".handle").attr("fill",p).attr("fill-opacity",.8),P.on("dblclick",()=>{const E=r.domain(),C=[+E[0],+E[1]];c(C)})}}function sL(e,t,r,n,i,a,o,s,u,l,c,f,h,p=!0,y,d,m,v,x,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"?uL(_,r,n,i,a,o,s,u,l,f,h,p,y,d,m,v,x,b):lL(_,r,n,i,a,o,s,u,l,f,h,p,y,d,m,v,x,b)}function vs(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 d=y.x,m=y.width,v=l[0],x=l[1],b=s?i:n(v),_=s?i:n(x),g=[];return g.push(`M ${d} ${b}`),g.push(`L ${d} ${_}`),g.push(`L ${d+m} ${_}`),g.push(`L ${d+m} ${b}`),g.push("Z"),g.join(" ")}function uL(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,d,m,v){var Ru;const x=v?`.seat-${v}`:".seat",b=e.selectAll(x),_=v?`.chart-content-group-${v}`:".chart-content-group";let g=e.select(_);if(g.empty()){const rt=e.attr("clip-path"),ut=rt?((Ru=rt.match(/url\(#(.+)\)/))==null?void 0:Ru[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,gt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";g=e.append("g").attr("class",gt).attr("clip-path",`url(#${ut})`)}if(b.size()===0){Ny(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const w=rL(l),S=v?Hi.get(v):void 0;S&&(S.destroy(),v&&Hi.delete(v));const A=rt=>rt<.2?"seatsToRings":rt<.35?"ringsToBar":rt<.464?"axesReveal":rt<.6?"barSlide":rt<.82?"barsGrow":"barsToArea",T=new lE({seatsToRings:w.seatsToLines,ringsToBar:w.seatsToBar,axesReveal:w.barSlideToTimeline*.3,barSlide:w.barSlideToTimeline*.7,barsGrow:w.axesAndBarsGrow,barsToArea:w.barsToArea},{onStageComplete:rt=>{},onProgress:rt=>{if(d){const ut=A(rt);d(rt,ut)}},onComplete:()=>{c()}});v&&Hi.set(v,T),y&&y(T.getControls().getTimeline());const M=t[0].map(rt=>rt.data),P=QN(M,r),E=s/2,C=n.radius+10,j=u-n.radius*.3,k=Math.max(C,j),$=M.map(rt=>rt.timestamp),N=m??Math.max(...$),W=new Map,z=[];$.forEach((rt,ut)=>{const gt=a(new Date(rt)),Mt=$[ut+1];if(Mt){const Qt=a(new Date(Mt))-gt;z.push(Qt)}});const I=z.length>0?z.reduce((rt,ut)=>rt+ut,0)/z.length:30;$.forEach((rt,ut)=>{const gt=a(new Date(rt)),Mt=$[ut+1],Qt=ut===$.length-1?I:a(new Date(Mt))-gt;W.set(rt,{x:gt,width:Qt})});const B=P.filter(rt=>rt.timestamp===N),D=W.get(N),F=666,X=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",L=g.append("g").attr("class",X);B.sort((rt,ut)=>ut.y0-rt.y0),new Map().set(N,{x:F-D.width/2,width:D.width});const Z=[],H=(n.radius-n.innerRadius)*.6,K=u*.8,Q=k,R=B.reduce((rt,ut)=>rt+(ut.y1-ut.y0),0);let J=0;r.forEach(rt=>{const ut=B.find(De=>De.dataKey===rt.dataKey);if(!ut)return;const he=(ut.y1-ut.y0)/R*K,Qt=Q-J,Fe=Q-J-he,Re=F-H/2,or=`M ${Re} ${Qt} L ${Re} ${Fe} L ${Re+H} ${Fe} L ${Re+H} ${Qt} Z`;J+=he;const _r=L.append("path").attr("class",`parliament-bar-segment category-${He(ut.dataKey)}`).attr("d",or).attr("fill",ut.color).style("opacity",0).node();_r&&Z.push(_r)}),v&&(window.orchestratorMap=Hi);const U=T.getControls().getTimeline(),ot=w.seatsToLines/1e3,yt=w.seatsToBar/1e3;U.call(()=>{d==null||d(U.progress(),"seatsToRings")},[],"seatsToRings");const st=b.nodes(),ht=E,ft=k,Ot=Math.max(...n.seats.map(rt=>rt.ring)),at=n.seats.filter(rt=>rt.ring===Ot),pt=e.append("g").attr("class",`seat-lines-${v||"default"}`),St=r.map(rt=>{const ut=b.filter(`.seat-${He(rt.dataKey)}`).size();return ut>0?{name:rt.dataKey,seatCount:ut,color:rt.color}:null}).filter(rt=>rt!==null).reverse(),qt=St.reduce((rt,ut)=>rt+ut.seatCount,0),ne=at.length,$t=n.radius-n.innerRadius,Ft=$t*.6,me=Ft/2,Xt=$t*.6,Wt=[];let nr=0;St.forEach(rt=>{const ut=Math.max(1,Math.round(rt.seatCount/qt*ne));for(let gt=0;gt<ut;gt++){const Mt=(nr+gt)/ne,he=n.arcAngle*Math.PI/180,Fe=-he/2-Math.PI/2+Mt*he,Re=(n.innerRadius+n.radius)/2,or=ht+Math.cos(Fe)*Re,_r=ft+Math.sin(Fe)*Re,De=Math.cos(Fe),ri=Math.sin(Fe),ki=or-me*De,wa=_r-me*ri,Se=or+me*De,ni=_r+me*ri,ii=pt.append("line").attr("class","seat-line").attr("x1",ki).attr("y1",wa).attr("x2",Se).attr("y2",ni).attr("stroke",rt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",Fe*180/Math.PI).attr("data-center-x",or).attr("data-center-y",_r).attr("data-initial-length",Ft).node();Wt.push({element:ii,angle:Fe})}nr+=ut});const Yr=()=>{pt.remove()},Ve=ot*.5,ir=0,Me=[];if(Me.push(...st),Me.sort((rt,ut)=>{const gt=parseInt(rt.getAttribute("data-layout-index")||"-1",10),Mt=parseInt(ut.getAttribute("data-layout-index")||"-1",10);return gt-Mt}),Me.length>0&&Wt.length>0){const rt=Wt.map(ut=>ut.element);U.to(Me,{attr:{r:1.5},duration:Ve*.3,ease:"power2.in"},`seatsToRings+=${ir}`),rt.forEach(ut=>{const gt=ut.getAttribute("x1")||"0",Mt=ut.getAttribute("y1")||"0",he=ut.getAttribute("x2")||"0",Qt=ut.getAttribute("y2")||"0";ut.setAttribute("data-final-x1",gt),ut.setAttribute("data-final-y1",Mt),ut.setAttribute("data-final-x2",he),ut.setAttribute("data-final-y2",Qt),ut.setAttribute("x1",gt),ut.setAttribute("y1",Mt),ut.setAttribute("x2",gt),ut.setAttribute("y2",Mt)}),U.to(rt,{attr:{x2:(ut,gt)=>parseFloat(gt.getAttribute("data-final-x2")||"0"),y2:(ut,gt)=>parseFloat(gt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:Ve*.6,ease:"power2.out"},`seatsToRings+=${ir+Ve*.2}`),U.to(Me,{opacity:0,duration:Ve*.3,ease:"power2.out"},`seatsToRings+=${ir+Ve*.3}`)}const Vr=ot*.05,jr=ot*.7,Qn=ir+Ve+Vr;if(Wt.length>0){const rt=F,ut=k,Mt=u*.8/Wt.length,he=ut,Qt=[...Wt].sort((or,_r)=>_r.angle-or.angle),Re=.6/Qt.length;Qt.forEach((or,_r)=>{const De=rt,ki=he-_r*Mt,wa=Re*_r*jr,Se=or.element,ni=parseFloat(Se.getAttribute("data-final-x1")||"0"),ii=parseFloat(Se.getAttribute("data-final-y1")||"0"),zo=parseFloat(Se.getAttribute("data-final-x2")||"0"),Sa=parseFloat(Se.getAttribute("data-final-y2")||"0"),Du=(ni+zo)/2,yn=(ii+Sa)/2,ai=Math.atan2(Sa-ii,zo-ni),$i=Math.sqrt(Math.pow(zo-ni,2)+Math.pow(Sa-ii,2));U.to({progress:0},{progress:1,duration:jr*.5,ease:"power2.inOut",delay:wa,onUpdate:function(){const ge=this.progress(),mf=Du+(De-Du)*ge,yf=yn+(ki-yn)*ge,gn=40*4*ge*(1-ge),ji=mf,Ri=yf-gn,vf=0-ai,kn=ai+vf*ge*ge,Iu=($i+(Xt-$i)*ge)/2,uk=ji-Iu*Math.cos(kn),lk=Ri-Iu*Math.sin(kn),ck=ji+Iu*Math.cos(kn),fk=Ri+Iu*Math.sin(kn);Se.setAttribute("x1",uk.toString()),Se.setAttribute("y1",lk.toString()),Se.setAttribute("x2",ck.toString()),Se.setAttribute("y2",fk.toString())},onComplete:function(){const ge=Xt/2;Se.setAttribute("x1",(De-ge).toString()),Se.setAttribute("y1",ki.toString()),Se.setAttribute("x2",(De+ge).toString()),Se.setAttribute("y2",ki.toString())}},`seatsToRings+=${Qn}`),U.to(or.element,{opacity:.95,duration:jr*.3,ease:"power2.out",delay:wa},`seatsToRings+=${Qn}`)})}const ar=pt,cn=[];B.forEach((rt,ut)=>{const gt=b.filter(`.seat-${He(rt.category)}`),Mt=gt.size();if(Mt===0)return;const he=o(rt.y1),Qt=o(rt.y0)-o(rt.y1),Fe=gt.nodes().sort((yn,ai)=>{const $i=parseInt(yn.getAttribute("data-layout-index")||"-1",10),ge=parseInt(ai.getAttribute("data-layout-index")||"-1",10);return $i-ge}),Re=Math.max(D.width,100),or=Qt,_r=Re/Math.max(or,1),De=Math.max(2,Math.ceil(Math.sqrt(Mt*_r))),ri=Math.ceil(Mt/De),ki=Re*.8,wa=or*.8,Se=De>1?ki/(De-1):0,ni=ri>1?wa/(ri-1):0,ii=De>1?(De-1)*Se:0,zo=ri>1?(ri-1)*ni:0,Sa=F-Re/2+(Re-ii)/2,Du=he+(or-zo)/2;Fe.forEach((yn,ai)=>{const $i=parseInt(yn.getAttribute("data-layout-index")||"-1",10),ge=$i>=0?n.seats[$i]:void 0,mf=ge?E+ge.x:parseFloat(yn.getAttribute("cx")||"0"),yf=ge?k+ge.y:parseFloat(yn.getAttribute("cy")||"0"),L0=(ge==null?void 0:ge.radius)||parseFloat(yn.getAttribute("r")||"4"),gn=Mt%De;let ji,Ri;if(gn>0&&ai<gn)Ri=0,ji=ai;else{const kn=ai-(gn>0?gn:0);ji=kn%De,Ri=Math.floor(kn/De)+(gn>0?1:0)}let gf=Sa+ji*Se;if(gn>0&&Ri===0){const kn=gn>1?(gn-1)*Se:0,B0=(ii-kn)/2;gf=Sa+B0+ji*Se}const vf=Du+Ri*ni;cn.push({element:yn,startX:mf,startY:yf,startRadius:L0,category:rt.dataKey,segmentIndex:ut,endY:vf,endX:gf})})});const vr=cn.map(rt=>{const ut=rt.startX-E,gt=rt.startY-k,Mt=Math.atan2(gt,ut);return{...rt,angle:Mt}});vr.sort((rt,ut)=>ut.angle-rt.angle);const Ei=yt*.8,ti=.6,Ze=vr.length,fn=Ei/Math.max(Ze,1)*(Ze-1)+ti,fe=yt*.3,Be=fn;U.to(Z,{opacity:1,duration:fe,ease:"power2.inOut"},`seatsToBar+=${Be}`),ar&&(U.to(ar.selectAll(".seat-line").nodes(),{opacity:0,duration:fe,ease:"power2.inOut"},`seatsToBar+=${Be}`),U.call(()=>{Yr()},[],`seatsToBar+=${Be+fe}`));const Je=w.barSlideToTimeline/1e3;let Zr=null,hn=null;if(f){const rt=Cs(a).ticks(6);h&&rt.tickFormat(gt=>h(gt.getTime())),Zr=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).attr("opacity",0),Zr.call(rt).selectAll("text").attr("font-size",14).attr("font-weight",500);const ut=Ms(o).ticks(5);p&&ut.tickFormat(gt=>p(gt)),hn=e.append("g").attr("class","axis axis-y").attr("opacity",0),hn.call(ut).selectAll("text").attr("font-size",14).attr("font-weight",500)}const pn=w.crossFadePause/1e3,et=Be+fe+pn;Z.forEach(rt=>{const ut=Array.from(rt.classList).find(Qt=>Qt.startsWith("category-"));if(!ut||!B.find(Qt=>He(Qt.dataKey)===ut.replace("category-","")))return;const Mt=r.findIndex(Qt=>He(Qt.dataKey)===ut.replace("category-",""));if(Mt===-1)return;const he=vs(t,r,W,o,u,Mt,N,!1);he&&U.to(rt,{attr:{d:he},duration:Je,ease:"power2.out"},`seatsToBar+=${et}`)});const dt=Ui().x(rt=>a(rt.data.timestamp)).y0(rt=>o(rt[0])).y1(rt=>o(rt[1])).curve(oa),bt=new Map;t.forEach((rt,ut)=>{const gt=r[ut];if(gt){const Mt=dt(rt)||"";bt.set(gt.dataKey,Mt)}});const ct=et+Je;f&&Zr&&hn&&U.to([Zr.node(),hn.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${et}`);const At=g.select(".grid-vertical"),Ct=g.select(".grid-horizontal");if(!At.empty()||!Ct.empty()){const ut=[];At.empty()||ut.push(At.node()),Ct.empty()||ut.push(Ct.node()),U.to(ut,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${et}`)}const ie=w.axesAndBarsGrow/1e3,ae=w.barsToArea/1e3,oe=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",ye=g.append("g").attr("class",oe);$.forEach(rt=>{if(rt===N)return;const ut=W.get(rt);ut&&r.forEach((gt,Mt)=>{const he=vs(t,r,W,o,u,Mt,rt,!0),Qt=vs(t,r,W,o,u,Mt,rt,!1);if(!he||!Qt)return;const Fe=v?`histogram-path histogram-path-${v} category-${He(gt.dataKey)}`:`histogram-path category-${He(gt.dataKey)}`;ye.append("path").attr("class",Fe).attr("d",he).attr("fill",gt.color).attr("stroke",gt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",gt.dataKey).attr("data-timestamp",rt).attr("data-x-position",ut.x).attr("data-full-height-path",Qt)})});const qe=v?`.histogram-path-${v}`:".histogram-path",Yt=ye.selectAll(qe);U.to(Yt.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${ct}`);const Rr=D.x+D.width/2;Yt.each(function(){var Re;const rt=this.getAttribute("data-full-height-path");if(!rt)return;const ut=parseFloat(this.getAttribute("data-x-position")||"0"),gt=parseFloat(this.getAttribute("data-timestamp")||"0"),Mt=((Re=W.get(gt))==null?void 0:Re.width)||0,he=ut+Mt/2,Fe=Math.abs(he-Rr)*8e-4;U.to(this,{attr:{d:rt},duration:ie,ease:"power2.out"},`seatsToBar+=${ct+Fe}`)});const br=ct+ie,Ci=$[$.length-1],dn=a(new Date(Ci))+I,qo=a.invert(dn).getTime(),Dr=t.map(rt=>{const ut=rt[rt.length-1],gt={...ut,data:{...ut.data,timestamp:qo}};return[...rt,gt]});Ny(e,Dr,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const Fo=v?`.area-${v}`:".area",mn=e.selectAll(Fo);mn.attr("opacity",0),U.to(Yt.nodes(),{opacity:0,duration:ae,ease:"power2.inOut"},`seatsToBar+=${br}`);const ju=L.selectAll("path").nodes();ju.length>0&&U.to(ju,{opacity:0,duration:ae,ease:"power2.inOut"},`seatsToBar+=${br}`),U.to(mn.nodes(),{opacity:1,duration:ae,ease:"power2.inOut"},`seatsToBar+=${br}`);const df=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const rt=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(rt).remove();const ut=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(ut).remove(),f&&(Zr&&Zr.attr("opacity",1),hn&&hn.attr("opacity",1)),df()}),T.play()}function lL(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,d,m,v){var pn;const x=v?`.chart-content-group-${v}`:".chart-content-group";let b=e.select(x);if(b.empty()){const et=e.attr("clip-path"),dt=et?((pn=et.match(/url\(#(.+)\)/))==null?void 0:pn[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,bt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";b=e.append("g").attr("class",bt).attr("clip-path",`url(#${dt})`)}const _=v?`.area-${v}`:".area",g=e.selectAll(_);if(g.size()===0){cL(e,r,n,s,u,v),c();return}const w={areaToBar:l*.18,barsShrink:l*.22,barSlide:l*.22,axesHide:l*.03,barToRings:l*.07,ringsExpand:l*.18,ringsHold:l*.05,ringsToSeats:l*.07},S=v?Hi.get(v):void 0;S&&(S.destroy(),v&&Hi.delete(v));const A=et=>et<.18?"areaToBar":et<.4?"barsShrink":et<.62?"barSlide":et<.65?"axesHide":et<.72?"barToRings":et<.9?"ringsExpand":et<.95?"ringsHold":"ringsToSeats",T=new lE({seatsToRings:w.ringsToSeats,ringsHold:w.ringsHold,ringsToBar:w.barToRings,axesReveal:w.axesHide,barSlide:w.barSlide,barsGrow:w.barsShrink,barsToArea:w.areaToBar},{onStageComplete:et=>{},onProgress:et=>{if(d){const dt=A(et);d(et,dt)}},onComplete:()=>{c()}});v&&Hi.set(v,T),y&&y(T.getControls().getTimeline());const P=t[0].map(et=>et.data).map(et=>et.timestamp),E=m??Math.max(...P),C=new Map,j=[];P.forEach((et,dt)=>{const bt=a(new Date(et)),ct=P[dt+1];if(ct){const Ct=a(new Date(ct))-bt;j.push(Ct)}});const k=j.length>0?j.reduce((et,dt)=>et+dt,0)/j.length:30;P.forEach((et,dt)=>{const bt=a(new Date(et)),ct=P[dt+1],Ct=dt===P.length-1?k:a(new Date(ct))-bt;C.set(et,{x:bt,width:Ct})});const $=T.getControls().getTimeline(),N=w.areaToBar/1e3,W=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",z=b.append("g").attr("class",W);P.forEach(et=>{const dt=C.get(et);dt&&r.forEach((bt,ct)=>{const At=vs(t,r,C,o,u,ct,et,!1);if(!At)return;const Ct=v?`histogram-path histogram-path-${v} category-${He(bt.dataKey)}`:`histogram-path category-${He(bt.dataKey)}`;z.append("path").attr("class",Ct).attr("d",At).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",et).attr("data-x-position",dt.x)})});const I=v?`.histogram-path-${v}`:".histogram-path",B=z.selectAll(I);$.to(g.nodes(),{opacity:0,duration:N,ease:"power2.inOut"},"areaToBar"),$.to(B.nodes(),{opacity:1,duration:N,ease:"power2.inOut"},"areaToBar");const D=w.barsShrink/1e3,F=N;B.each(function(){const et=parseFloat(this.getAttribute("data-timestamp")||"0");if(et===E)return;const dt=r.find(At=>this.classList.contains(`category-${He(At.dataKey)}`));if(!dt)return;const bt=r.indexOf(dt),ct=vs(t,r,C,o,u,bt,et,!0);ct&&$.to(this,{attr:{d:ct},duration:D,ease:"power2.in"},F)});const X=w.axesHide/1e3,L=F+D;if(f){const et=e.select(".axis-x"),dt=e.select(".axis-y");et.empty()||$.to(et.node(),{opacity:0,duration:X,ease:"power2.inOut"},L),dt.empty()||$.to(dt.node(),{opacity:0,duration:X,ease:"power2.inOut"},L)}const Y=b.select(".grid-vertical"),Z=b.select(".grid-horizontal");Y.empty()||$.to(Y.node(),{opacity:0,duration:X,ease:"power2.inOut"},L),Z.empty()||$.to(Z.node(),{opacity:0,duration:X,ease:"power2.inOut"},L);const H=[];t.forEach((et,dt)=>{const bt=et.find(At=>At.data.timestamp===E);if(!bt)return;const ct=r[dt];ct&&H.push({category:ct.label,dataKey:ct.dataKey,color:ct.color,y0:bt[0],y1:bt[1]})}),H.sort((et,dt)=>dt.y0-et.y0);const q=H.reduce((et,dt)=>et+(dt.y1-dt.y0),0),K=n.radius-n.innerRadius,Q=s/2,R=n.radius+10,J=u-n.radius*.3,U=Math.max(R,J),ot=K*.6,st=u*.8,ht=U,ft=w.barSlide/1e3,Ot=L+X,at=666,pt=B.nodes().filter(et=>parseFloat(et.getAttribute("data-timestamp")||"0")!==E);$.to(pt,{opacity:0,duration:ft*.2,ease:"power2.out"},Ot);const St=B.nodes().filter(et=>parseFloat(et.getAttribute("data-timestamp")||"0")===E);St.forEach(et=>{const dt=et.getAttribute("data-category");if(!dt)return;const bt=H.find(Yt=>Yt.dataKey===dt);if(!bt)return;const Ct=(bt.y1-bt.y0)/q*st;let ie=0;for(const Yt of r){const Rr=H.find(xa=>xa.dataKey===Yt.dataKey);if(!Rr)continue;if(Rr.dataKey===bt.dataKey)break;const Ci=(Rr.y1-Rr.y0)/q;ie+=Ci*st}const ae=ht-ie,oe=ht-ie-Ct,ye=at-ot/2,qe=`M ${ye} ${ae} L ${ye} ${oe} L ${ye+ot} ${oe} L ${ye+ot} ${ae} Z`;$.to(et,{attr:{d:qe},duration:ft,ease:"power2.inOut"},Ot)});const qt=w.barToRings/1e3,ne=Ot+ft,$t=w.ringsExpand/1e3,Ft=ne+qt,me=w.ringsHold/1e3,Xt=Ft+$t,Wt=w.ringsToSeats/1e3,nr=Xt+me,Yr=Math.max(...n.seats.map(et=>et.ring)),Ve=n.seats.filter(et=>et.ring===Yr),ir=b.append("g").attr("class",`slinky-${v||"h2p-default"}`),Me=()=>{ir.remove()};Ve.forEach((et,dt)=>{const bt=r.find(ct=>ct.label===et.category);bt&&ir.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",bt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",et.category).attr("data-category-index",et.categoryIndex).attr("data-ring-index",dt).attr("data-seat-x",Q+et.x).attr("data-seat-y",U+et.y).attr("data-seat-angle",Math.atan2(et.y,et.x)).style("opacity",0)});const Vr=ir.selectAll(".slinky-ring").nodes(),jr=at,Qn=st/Vr.length,ar=[...Vr].sort((et,dt)=>{const bt=parseFloat(et.getAttribute("data-seat-angle")||"0");return parseFloat(dt.getAttribute("data-seat-angle")||"0")-bt}),cn=ht;ar.forEach((et,dt)=>{const bt=cn-dt*Qn,At=ot/2,Ct=jr-At,ie=jr+At;et.setAttribute("x1",Ct.toString()),et.setAttribute("y1",bt.toString()),et.setAttribute("x2",ie.toString()),et.setAttribute("y2",bt.toString()),et.style.opacity="0"}),$.to(St,{opacity:0,duration:qt*.7,ease:"power2.out"},ne+qt*.3),$.to(ar,{opacity:1,duration:qt,ease:"power2.in",stagger:.005},ne);const vr=K*.8;ar.forEach((et,dt)=>{const bt=parseFloat(et.getAttribute("data-seat-x")||"0"),ct=parseFloat(et.getAttribute("data-seat-y")||"0"),At=parseFloat(et.getAttribute("data-seat-angle")||"0"),Ct=(ar.length-1-dt)/ar.length*($t*.4),ie=parseFloat(et.getAttribute("x1")||"0"),ae=parseFloat(et.getAttribute("y1")||"0"),oe=parseFloat(et.getAttribute("x2")||"0"),ye=parseFloat(et.getAttribute("y2")||"0"),qe=(ie+oe)/2,Yt=(ae+ye)/2,Rr=Math.atan2(ye-ae,oe-ie),br=Math.sqrt(Math.pow(oe-ie,2)+Math.pow(ye-ae,2)),Ci=bt-vr/2*Math.cos(At),xa=ct-vr/2*Math.sin(At);$.to({progress:0},{progress:1,duration:$t*.7,ease:"power2.out",onUpdate:function(){const dn=this.progress(),Mi=qe+(Ci-qe)*dn,qo=Yt+(xa-Yt)*dn,Dr=Rr+(At-Rr)*dn,mn=(br+(vr-br)*dn)/2,ju=Mi-mn*Math.cos(Dr),df=qo-mn*Math.sin(Dr),Ru=Mi+mn*Math.cos(Dr),rt=qo+mn*Math.sin(Dr);et.setAttribute("x1",ju.toString()),et.setAttribute("y1",df.toString()),et.setAttribute("x2",Ru.toString()),et.setAttribute("y2",rt.toString())}},Ft+Ct),$.to(et,{opacity:.9,duration:$t*.3,ease:"power2.in"},Ft+Ct)}),$.call(()=>{d&&d($.progress(),"ringsHold")},[],Xt);const Ei=v?`parliament parliament-${v}`:"parliament",ti=b.append("g").attr("class",Ei);n.seats.forEach((et,dt)=>{const bt=r.find(oe=>oe.label===et.category);if(!bt)return;const ct=Q+et.x,At=U+et.y;let Ct,ie,ae;et.ring===Yr?(Ct=ct,ie=At,ae=2):(Ct=ct,ie=At,ae=et.radius),ti.append("circle").attr("cx",Ct).attr("cy",ie).attr("r",ae).attr("fill",bt.color).attr("stroke",bt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${He(et.category)}`:`seat seat-${He(et.category)}`).attr("data-layout-index",dt).attr("data-ring",et.ring).attr("data-final-x",ct).attr("data-final-y",At).attr("data-final-r",et.radius)});const Ze=v?`.seat-${v}`:".seat",ei=ti.selectAll(Ze);$.to(Vr,{opacity:0,duration:Wt*.2,ease:"power3.out"},nr),$.to(ei.nodes(),{opacity:.8,duration:Wt*.3,ease:"power2.in"},nr+Wt*.25);const fn=ei.nodes(),fe=[],Be=[];fn.forEach(et=>{parseInt(et.getAttribute("data-ring")||"0")===Yr?fe.push(et):Be.push(et)});const Je=Wt*.2,Zr=Wt*.7;fe.forEach(et=>{const dt=parseFloat(et.getAttribute("data-final-r")||"4");$.to(et,{attr:{r:dt},opacity:1,duration:Zr*.6,ease:"power2.out"},nr+Je)}),Be.length>0&&$.to(Be,{opacity:1,duration:Zr*.5,ease:"power2.in"},nr+Je+Wt*.15);const hn=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const et=v?`.areas-${v}`:".areas",dt=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(et).remove(),e.selectAll(dt).remove(),Me(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const bt=v?`.parliament-label-${v}`:".parliament-label";if(e.select(bt).empty()){const At=s/2,Ct=n.radius+10,ie=u-n.radius*.3,ae=Math.max(Ct,ie),oe=v?`parliament-label parliament-label-${v}`:"parliament-label",ye=e.append("g").attr("class",oe).attr("transform",`translate(${At},${ae-n.radius*.15})`).style("opacity","0").style("pointer-events","none");ye.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"),ye.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 qe=ye.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");qe.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),qe.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")}hn()}),T.play()}function cL(e,t,r,n,i,a){const o=n/2,s=r.radius+10,u=i-r.radius*.3,l=Math.max(s,u);cE(e,r,t,{centerX:o,centerY:l,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function Ll(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=ee(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 Wf(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 m=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),v=m[m.length-1];if(!v)return;const x=v.substring(5),b=t.find(g=>He(g.label)===x);if(!b)return;const _=()=>{i(b.label);const g=Math.round(c.values[b.dataKey]||0),w=Jv(b.color),S={label:b.label,value:g,color:w};a&&a(S),Ll(e,S,o??!1,s??1,u),bs(e,b.label)};p.addEventListener("mouseenter",_),f.push({element:p,handler:_})});const h=()=>{i(null),a&&a(null),Ll(e,null,!1,1,u),bs(e,null)};return e.addEventListener("mouseleave",h),n&&bs(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 bs(e,t){const r=e.querySelectorAll(".seat"),n=t?He(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 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:u=!0,axisLabelColor:l,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:d=4.5,animationDuration:m=900,onMorphComplete:v,onAnimationStateChange:x,onTimelineReady:b,onAnimationProgress:_,onHoveredDataChange:g,hoveredCategory:w,maxSeats:S=500,showTooltip:A=!0,showTable:T=!1,showScaledIndicator:M=!0,parliamentTimestamp:P,enableBrush:E=!1,onTimeRangeChange:C,minAllowedTime:j,maxAllowedTime:k,timelineEvents:$=[],showTimeline:N=!1,timelineHeight:W=40,timelineOffset:z=35,brushColor:I="#69b3a2"})=>{const B=O.useRef(null),D=O.useCallback(J=>{g&&g(J)},[g]),F=e[e.length-1],X=F?t.reduce((J,U)=>J+(F.values[U.dataKey]||0),0):0,L=X>S,Y=L?Math.round(X/S):1,Z=N&&r==="stacked-area"?i+W+z:i,{isMorphing:H,currentMode:q,visibleMarkers:K,hoveredMarker:Q,hoveredTimelineEvent:R}=nL({containerRef:B,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:u,axisLabelColor:l,formatDate:c,formatValue:f,markers:h,arcAngle:p,parliamentRadius:y,seatSize:d,animationDuration:m,onMorphComplete:v,onAnimationStateChange:x,onTimelineReady:b,onAnimationProgress:_,onHoveredDataChange:D,hoveredCategory:w,maxSeats:S,parliamentTimestamp:P,enableBrush:E,onTimeRangeChange:C,minAllowedTime:j,maxAllowedTime:k,showScaleIndicator:M&&L,reposPerSeat:Y,timelineEvents:$,showTimeline:N,timelineHeight:W,timelineOffset:z,brushColor:I});return G.jsxs(tt.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[G.jsx("svg",{ref:B,viewBox:`0 0 ${n} ${Z}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),q==="area"&&K.map(J=>{const U=(J.x+a.left)/n*100,ot=a.top/i*100,yt=new Date(J.timestamp),st=c?c(J.timestamp):yt.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),ht=G.jsxs(tt.Box,{children:[G.jsx(tt.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:J.label?.5:0},children:st}),J.label&&G.jsx(tt.Box,{sx:{color:"white",fontWeight:500},children:J.label})]});return G.jsx(tt.Tooltip,{title:ht,open:(Q==null?void 0:Q.timestamp)===J.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:G.jsx(tt.Box,{sx:{position:"absolute",left:`${U}%`,top:`${ot}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},J.timestamp)}),R&&q==="area"&&G.jsx(tt.Tooltip,{title:G.jsxs(tt.Box,{children:[G.jsx(tt.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:c?c(R.timestamp):new Date(R.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),G.jsx(tt.Box,{sx:{color:"white",fontWeight:500},children:R.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:G.jsx(tt.Box,{sx:{position:"absolute",left:`${(R.x+a.left)/n*100}%`,top:`${(i+z+W/2)/Z*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),H&&G.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: ",q," → ",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}],Qv=({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)},t0=({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 Pu{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Pu.prototype.normal={};Pu.prototype.property={};Pu.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 Pu(r,n,t)}function Ws(e){return e.toLowerCase()}class gr{constructor(t,r){this.attribute=r,this.property=t}}gr.prototype.attribute="";gr.prototype.booleanish=!1;gr.prototype.boolean=!1;gr.prototype.commaOrSpaceSeparated=!1;gr.prototype.commaSeparated=!1;gr.prototype.defined=!1;gr.prototype.mustUseProperty=!1;gr.prototype.number=!1;gr.prototype.overloadedBoolean=!1;gr.prototype.property="";gr.prototype.spaceSeparated=!1;gr.prototype.space=void 0;let fL=0;const wt=ga(),ve=ga(),Ly=ga(),nt=ga(),Vt=ga(),za=ga(),xr=ga();function ga(){return 2**++fL}const By=Object.freeze(Object.defineProperty({__proto__:null,boolean:wt,booleanish:ve,commaOrSpaceSeparated:xr,commaSeparated:za,number:nt,overloadedBoolean:Ly,spaceSeparated:Vt},Symbol.toStringTag,{value:"Module"})),Hf=Object.keys(By);class e0 extends gr{constructor(t,r,n,i){let a=-1;if(super(t,r),o_(this,"space",i),typeof n=="number")for(;++a<Hf.length;){const o=Hf[a];o_(this,Hf[a],(n&By[o])===By[o])}}}e0.prototype.defined=!0;function o_(e,t,r){r&&(e[t]=r)}function Mo(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new e0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Ws(n)]=n,r[Ws(a.attribute)]=n}return new Pu(t,r,e.space)}const mE=Mo({properties:{ariaActiveDescendant:null,ariaAtomic:ve,ariaAutoComplete:null,ariaBusy:ve,ariaChecked:ve,ariaColCount:nt,ariaColIndex:nt,ariaColSpan:nt,ariaControls:Vt,ariaCurrent:null,ariaDescribedBy:Vt,ariaDetails:null,ariaDisabled:ve,ariaDropEffect:Vt,ariaErrorMessage:null,ariaExpanded:ve,ariaFlowTo:Vt,ariaGrabbed:ve,ariaHasPopup:null,ariaHidden:ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Vt,ariaLevel:nt,ariaLive:null,ariaModal:ve,ariaMultiLine:ve,ariaMultiSelectable:ve,ariaOrientation:null,ariaOwns:Vt,ariaPlaceholder:null,ariaPosInSet:nt,ariaPressed:ve,ariaReadOnly:ve,ariaRelevant:null,ariaRequired:ve,ariaRoleDescription:Vt,ariaRowCount:nt,ariaRowIndex:nt,ariaRowSpan:nt,ariaSelected:ve,ariaSetSize:nt,ariaSort:null,ariaValueMax:nt,ariaValueMin:nt,ariaValueNow:nt,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=Mo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:za,acceptCharset:Vt,accessKey:Vt,action:null,allow:null,allowFullScreen:wt,allowPaymentRequest:wt,allowUserMedia:wt,alt:null,as:null,async:wt,autoCapitalize:null,autoComplete:Vt,autoFocus:wt,autoPlay:wt,blocking:Vt,capture:null,charSet:null,checked:wt,cite:null,className:Vt,cols:nt,colSpan:null,content:null,contentEditable:ve,controls:wt,controlsList:Vt,coords:nt|za,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wt,defer:wt,dir:null,dirName:null,disabled:wt,download:Ly,draggable:ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wt,formTarget:null,headers:Vt,height:nt,hidden:Ly,high:nt,href:null,hrefLang:null,htmlFor:Vt,httpEquiv:Vt,id:null,imageSizes:null,imageSrcSet:null,inert:wt,inputMode:null,integrity:null,is:null,isMap:wt,itemId:null,itemProp:Vt,itemRef:Vt,itemScope:wt,itemType:Vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wt,low:nt,manifest:null,max:null,maxLength:nt,media:null,method:null,min:null,minLength:nt,multiple:wt,muted:wt,name:null,nonce:null,noModule:wt,noValidate:wt,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:wt,optimum:nt,pattern:null,ping:Vt,placeholder:null,playsInline:wt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wt,referrerPolicy:null,rel:Vt,required:wt,reversed:wt,rows:nt,rowSpan:nt,sandbox:Vt,scope:null,scoped:wt,seamless:wt,selected:wt,shadowRootClonable:wt,shadowRootDelegatesFocus:wt,shadowRootMode:null,shape:null,size:nt,sizes:null,slot:null,span:nt,spellCheck:ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nt,step:null,style:null,tabIndex:nt,target:null,title:null,translate:null,type:null,typeMustMatch:wt,useMap:null,value:ve,width:nt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Vt,axis:null,background:null,bgColor:null,border:nt,borderColor:null,bottomMargin:nt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wt,declare:wt,event:null,face:null,frame:null,frameBorder:null,hSpace:nt,leftMargin:nt,link:null,longDesc:null,lowSrc:null,marginHeight:nt,marginWidth:nt,noResize:wt,noHref:wt,noShade:wt,noWrap:wt,object:null,profile:null,prompt:null,rev:null,rightMargin:nt,rules:null,scheme:null,scrolling:ve,standby:null,summary:null,text:null,topMargin:nt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:wt,disableRemotePlayback:wt,prefix:null,property:null,results:nt,security:null,unselectable:null},space:"html",transform:gE}),pL=Mo({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:xr,accentHeight:nt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nt,amplitude:nt,arabicForm:null,ascent:nt,attributeName:null,attributeType:null,azimuth:nt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nt,by:null,calcMode:null,capHeight:nt,className:Vt,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:nt,diffuseConstant:nt,direction:null,display:null,dur:null,divisor:nt,dominantBaseline:null,download:wt,dx:null,dy:null,edgeMode:null,editable:null,elevation:nt,enableBackground:null,end:null,event:null,exponent:nt,externalResourcesRequired:null,fill:null,fillOpacity:nt,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:za,g2:za,glyphName:za,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nt,horizOriginX:nt,horizOriginY:nt,id:null,ideographic:nt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nt,k:nt,k1:nt,k2:nt,k3:nt,k4:nt,kernelMatrix:xr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nt,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:nt,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:nt,overlineThickness:nt,paintOrder:null,panose1:null,path:null,pathLength:nt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nt,pointsAtY:nt,pointsAtZ:nt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xr,rev:xr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xr,requiredFeatures:xr,requiredFonts:xr,requiredFormats:xr,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:nt,specularExponent:nt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nt,strikethroughThickness:nt,string:null,stroke:null,strokeDashArray:xr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nt,strokeOpacity:nt,strokeWidth:null,style:null,surfaceScale:nt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xr,tabIndex:nt,tableValues:null,target:null,targetX:nt,targetY:nt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nt,underlineThickness:nt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nt,values:null,vAlphabetic:nt,vMathematical:nt,vectorEffect:null,vHanging:nt,vIdeographic:nt,version:null,vertAdvY:nt,vertOriginX:nt,vertOriginY:nt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yE}),vE=Mo({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=Mo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gE}),_E=Mo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dL=/[A-Z]/g,s_=/-[a-z]/g,mL=/^data[-\w.:]+$/i;function xE(e,t){const r=Ws(t);let n=t,i=gr;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(s_,gL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!s_.test(a)){let o=a.replace(dL,yL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=e0}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"),r0=dE([mE,pL,vE,bE,_E],"svg");function u_(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),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 c_(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 u;if(a==null){u={type:"root",children:[]};const l=o;s.unshift(l)}else{u=bL(a,t);const l=u.tagName.toLowerCase(),c=n?n.get(l):void 0;if(u.tagName=c||l,xL(o))s.unshift(o);else for(const[f,h]of Object.entries(o))wL(e,u.properties,f,h)}for(const l of s)qy(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}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=c_(n):i.commaSeparated?a=u_(n):i.commaOrSpaceSeparated?a=c_(u_(n).join(" ")):a=f_(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(f_(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function qy(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)qy(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?qy(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function f_(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Ws(r)===Ws(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 Eu=SE(r0,"g",OL),AE=(e=Eu)=>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:dr.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:dr.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:dr.neoGrey[400],"stroke-width":.5})]),OE=(e=Eu)=>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=Eu)=>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})]),zt={greyHatch:{background:dr.neoGrey[200],lines:dr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},TL=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>G.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:G.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:[G.jsx("thead",{children:G.jsxs(tt.TableRow,{children:[G.jsx(tt.TableCell,{}),G.jsx(tt.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?G.jsxs(G.Fragment,{children:[G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):G.jsxs(G.Fragment,{children:[G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),G.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?zt.noLstHatch.lines:a.color;return G.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:[G.jsx(tt.TableCell,{align:"center",sx:{width:20},children:G.jsx(tt.Box,{sx:{width:n==="historical"?4:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?zt.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?zt.noLstHatch.background:a.color,borderRadius:n==="historical"?2:"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 Gb,ci,qa,Kv,Hi,Kb,Xv,xN=function(){return typeof window<"u"},Yn={},qi=180/Math.PI,Fa=Math.PI/180,Pa=Math.atan2,Xb=1e8,Yv=/([A-Z])/g,_N=/(left|right|width|margin|padding|x)/i,wN=/[\s,\(]\S/,wn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},$y=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},SN=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)},AN=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)},ON=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},XP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},YP=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},PN=function(t,r,n){return t.style.setProperty(r,n)},EN=function(t,r,n){return t._gsap[r]=n},CN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},MN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},kN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},ue="transform",pr=ue+"Origin",$N=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=wn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=Nn(i,s)}):this.tfm[t]=o.x?o[t]:Nn(i,t),t===pr&&(this.tfm.zOrigin=o.zOrigin);else return wn.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ue)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(pr,r,"")),t=ue}(a||r)&&this.props.push(t,r,a[t])},VP=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},jN=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=Xv(),(!a||!a.isStart)&&!n[ue]&&(VP(n),i.zOrigin&&n[pr]&&(n[pr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},ZP=function(t,r){var n={target:t,props:[],revert:jN,save:$N};return t._gsap||yr.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},JP,jy=function(t,r){var n=ci.createElementNS?ci.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ci.createElement(t);return n&&n.style?n:ci.createElement(t)},Wr=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,io(r)||r,1)||""},Yb="O,Moz,ms,Ms,Webkit".split(","),io=function(t,r,n){var i=r||Hi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Yb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Yb[o]:"")+t},Ry=function(){xN()&&window.document&&(Gb=window,ci=Gb.document,qa=ci.documentElement,Hi=jy("div")||{style:{}},jy("div"),ue=io(ue),pr=ue+"Origin",Hi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",JP=!!io("perspective"),Xv=yr.core.reverting,Kv=1)},Vb=function(t){var r=t.ownerSVGElement,n=jy("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),qa.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),qa.removeChild(n),a},Zb=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},QP=function(t){var r,n;try{r=t.getBBox()}catch{r=Vb(t),n=1}return r&&(r.width||r.height)||n||(r=Vb(t)),r&&!r.width&&!r.x&&!r.y?{x:+Zb(t,["x","cx","x1"])||0,y:+Zb(t,["y","cy","y1"])||0,width:0,height:0}:r},tE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&QP(t))},sa=function(t,r){if(r){var n=t.style,i;r in Yn&&r!==pr&&(r=ue),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)}},fi=function(t,r,n,i,a,o){var s=new hr(t._pt,r,n,0,1,o?YP:XP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},Jb={deg:1,rad:1,turn:1},RN={grid:1,flex:1},xi=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Hi.style,u=_N.test(r),l=t.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,d,m,v;if(i===o||!a||Jb[i]||Jb[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),v=t.getCTM&&tE(t),(p||o==="%")&&(Yn[r]||~r.indexOf("adius")))return y=v?t.getBBox()[u?"width":"height"]:t[c],pe(p?a/y*f:a/100*y);if(s[u?"width":"height"]=f+(h?o:i),d=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(d=(t.ownerSVGElement||{}).parentNode),(!d||d===ci||!d.appendChild)&&(d=ci.body),m=d._gsap,m&&p&&m.width&&u&&m.time===Tr.time&&!m.uncache)return pe(a/m.width*f);if(p&&(r==="height"||r==="width")){var _=t.style[r];t.style[r]=f+i,y=t[c],_?t.style[r]=_:sa(t,r)}else(p||o==="%")&&!RN[Wr(d,"display")]&&(s.position=Wr(t,"position")),d===t&&(s.position="static"),d.appendChild(Hi),y=Hi[c],d.removeChild(Hi),s.position="absolute";return u&&p&&(m=Zi(d),m.time=Tr.time,m.width=d[c]),pe(h?y*a/f:y&&a?f/y*a:0)},Nn=function(t,r,n,i){var a;return Kv||Ry(),r in wn&&r!=="transform"&&(r=wn[r],~r.indexOf(",")&&(r=r.split(",")[0])),Yn[r]&&r!=="transform"?(a=Us(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Nl(Wr(t,pr))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Il[r]&&Il[r](t,r,n)||Wr(t,r)||yP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?xi(t,r,a,n)+n:a},DN=function(t,r,n,i){if(!n||n==="none"){var a=io(r,t,1),o=a&&Wr(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Wr(t,"borderTopColor"))}var s=new hr(this._pt,t.style,r,0,1,HP),u=0,l=0,c,f,h,p,y,d,m,v,_,b,x,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Wr(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(d=t.style[r],t.style[r]=i,i=Wr(t,r)||i,d?t.style[r]=d:sa(t,r)),c=[n,i],DP(c),n=c[0],i=c[1],h=n.match(ja)||[],g=i.match(ja)||[],g.length){for(;f=ja.exec(i);)m=f[0],_=i.substring(u,f.index),y?y=(y+1)%5:(_.substr(-5)==="rgba("||_.substr(-5)==="hsla(")&&(y=1),m!==(d=h[l++]||"")&&(p=parseFloat(d)||0,x=d.substr((p+"").length),m.charAt(1)==="="&&(m=Ba(p,m)+x),v=parseFloat(m),b=m.substr((v+"").length),u=ja.lastIndex-b.length,b||(b=b||Cr.units[r]||x,u===i.length&&(i+=b,s.e+=b)),x!==b&&(p=xi(t,r,d,b)||0),s._pt={_next:s._pt,p:_||l===1?_:",",s:p,c:v-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"?YP:XP;return cP.test(i)&&(s.e=0),this._pt=s,s},Qb={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},IN=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]=Qb[n]||n,r[1]=Qb[i]||i,r.join(" ")},NN=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],Yn[s]&&(u=1,s=s==="transformOrigin"?pr:ue),sa(n,s);u&&(sa(n,ue),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Us(n,1),o.uncache=1,VP(i)))}},Il={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new hr(t._pt,r,n,0,0,NN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},zs=[1,0,0,1,0,0],eE={},rE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},tx=function(t){var r=Wr(t,ue);return rE(r)?zs:r.substr(7).match(lP).map(pe)},Vv=function(t,r){var n=t._gsap||Zi(t),i=t.style,a=tx(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"?zs:a):(a===zs&&!t.offsetParent&&t!==qa&&!n.svg&&(u=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,s=t.nextElementSibling,qa.appendChild(t)),a=tx(t),u?i.display=u:sa(t,"display"),l&&(s?o.insertBefore(t,s):o?o.appendChild(t):qa.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Dy=function(t,r,n,i,a,o){var s=t._gsap,u=a||Vv(t,!0),l=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=u[0],y=u[1],d=u[2],m=u[3],v=u[4],_=u[5],b=r.split(" "),x=parseFloat(b[0])||0,g=parseFloat(b[1])||0,w,S,A,T;n?u!==zs&&(S=p*m-y*d)&&(A=x*(m/S)+g*(-d/S)+(d*_-m*v)/S,T=x*(-y/S)+g*(p/S)-(p*_-y*v)/S,x=A,g=T):(w=QP(t),x=w.x+(~b[0].indexOf("%")?x/100*w.width:x),g=w.y+(~(b[1]||b[0]).indexOf("%")?g/100*w.height:g)),i||i!==!1&&s.smooth?(v=x-l,_=g-c,s.xOffset=f+(v*p+_*d)-v,s.yOffset=h+(v*y+_*m)-_):s.xOffset=s.yOffset=0,s.xOrigin=x,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[pr]="0px 0px",o&&(fi(o,s,"xOrigin",l,x),fi(o,s,"yOrigin",c,g),fi(o,s,"xOffset",f,s.xOffset),fi(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",x+" "+g)},Us=function(t,r){var n=t._gsap||new BP(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=Wr(t,pr)||"0",c,f,h,p,y,d,m,v,_,b,x,g,w,S,A,T,M,P,E,C,j,k,$,N,W,z,I,B,D,F,X,L;return c=f=h=d=m=v=_=b=x=0,p=y=1,n.svg=!!(t.getCTM&&tE(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[ue]=(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[ue]!=="none"?u[ue]:"")),i.scale=i.rotate=i.translate="none"),S=Vv(t,n.svg),n.svg&&(n.uncache?(W=t.getBBox(),l=n.xOrigin-W.x+"px "+(n.yOrigin-W.y)+"px",N=""):N=!r&&t.getAttribute("data-svg-origin"),Dy(t,N||l,!!N||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,w=n.yOrigin||0,S!==zs&&(P=S[0],E=S[1],C=S[2],j=S[3],c=k=S[4],f=$=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt(j*j+C*C),d=P||E?Pa(E,P)*qi:0,_=C||j?Pa(C,j)*qi+d:0,_&&(y*=Math.abs(Math.cos(_*Fa))),n.svg&&(c-=g-(g*P+w*C),f-=w-(g*E+w*j))):(L=S[6],F=S[7],I=S[8],B=S[9],D=S[10],X=S[11],c=S[12],f=S[13],h=S[14],A=Pa(L,D),m=A*qi,A&&(T=Math.cos(-A),M=Math.sin(-A),N=k*T+I*M,W=$*T+B*M,z=L*T+D*M,I=k*-M+I*T,B=$*-M+B*T,D=L*-M+D*T,X=F*-M+X*T,k=N,$=W,L=z),A=Pa(-C,D),v=A*qi,A&&(T=Math.cos(-A),M=Math.sin(-A),N=P*T-I*M,W=E*T-B*M,z=C*T-D*M,X=j*M+X*T,P=N,E=W,C=z),A=Pa(E,P),d=A*qi,A&&(T=Math.cos(A),M=Math.sin(A),N=P*T+E*M,W=k*T+$*M,E=E*T-P*M,$=$*T-k*M,P=N,k=W),m&&Math.abs(m)+Math.abs(d)>359.9&&(m=d=0,v=180-v),p=pe(Math.sqrt(P*P+E*E+C*C)),y=pe(Math.sqrt($*$+L*L)),A=Pa(k,$),_=Math.abs(A)>2e-4?A*qi:0,x=X?1/(X<0?-X:X):0),n.svg&&(N=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!rE(Wr(t,ue)),N&&t.setAttribute("transform",N))),Math.abs(_)>90&&Math.abs(_)<270&&(a?(p*=-1,_+=d<=0?180:-180,d+=d<=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=pe(p),n.scaleY=pe(y),n.rotation=pe(d)+s,n.rotationX=pe(m)+s,n.rotationY=pe(v)+s,n.skewX=_+s,n.skewY=b+s,n.transformPerspective=x+o,(n.zOrigin=parseFloat(l.split(" ")[2])||!r&&n.zOrigin||0)&&(i[pr]=Nl(l)),n.xOffset=n.yOffset=0,n.force3D=Cr.force3D,n.renderTransform=n.svg?BN:JP?nE:LN,n.uncache=0,n},Nl=function(t){return(t=t.split(" "))[0]+" "+t[1]},zf=function(t,r,n){var i=Xe(r);return pe(parseFloat(r)+parseFloat(xi(t,"x",n+"px",i)))+i},LN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,nE(t,r)},Ii="0deg",Yo="0px",Ni=") ",nE=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,d=n.scaleY,m=n.transformPerspective,v=n.force3D,_=n.target,b=n.zOrigin,x="",g=v==="auto"&&t&&t!==1||v===!0;if(b&&(f!==Ii||c!==Ii)){var w=parseFloat(c)*Fa,S=Math.sin(w),A=Math.cos(w),T;w=parseFloat(f)*Fa,T=Math.cos(w),o=zf(_,o,S*T*-b),s=zf(_,s,-Math.sin(w)*-b),u=zf(_,u,A*T*-b+b)}m!==Yo&&(x+="perspective("+m+Ni),(i||a)&&(x+="translate("+i+"%, "+a+"%) "),(g||o!==Yo||s!==Yo||u!==Yo)&&(x+=u!==Yo||g?"translate3d("+o+", "+s+", "+u+") ":"translate("+o+", "+s+Ni),l!==Ii&&(x+="rotate("+l+Ni),c!==Ii&&(x+="rotateY("+c+Ni),f!==Ii&&(x+="rotateX("+f+Ni),(h!==Ii||p!==Ii)&&(x+="skew("+h+", "+p+Ni),(y!==1||d!==1)&&(x+="scale("+y+", "+d+Ni),_.style[ue]=x||"translate(0, 0)"},BN=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,d=n.yOrigin,m=n.xOffset,v=n.yOffset,_=n.forceCSS,b=parseFloat(o),x=parseFloat(s),g,w,S,A,T;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=Fa,l*=Fa,g=Math.cos(u)*f,w=Math.sin(u)*f,S=Math.sin(u-l)*-h,A=Math.cos(u-l)*h,l&&(c*=Fa,T=Math.tan(l-c),T=Math.sqrt(1+T*T),S*=T,A*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,w*=T)),g=pe(g),w=pe(w),S=pe(S),A=pe(A)):(g=f,A=h,w=S=0),(b&&!~(o+"").indexOf("px")||x&&!~(s+"").indexOf("px"))&&(b=xi(p,"x",o,"px"),x=xi(p,"y",s,"px")),(y||d||m||v)&&(b=pe(b+y-(y*g+d*S)+m),x=pe(x+d-(y*w+d*A)+v)),(i||a)&&(T=p.getBBox(),b=pe(b+i/100*T.width),x=pe(x+a/100*T.height)),T="matrix("+g+","+w+","+S+","+A+","+b+","+x+")",p.setAttribute("transform",T),_&&(p.style[ue]=T)},qN=function(t,r,n,i,a){var o=360,s=$e(a),u=parseFloat(a)*(s&&~a.indexOf("rad")?qi: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*Xb)%o-~~(l/o)*o:f==="ccw"&&l>0&&(l=(l-o*Xb)%o-~~(l/o)*o)),t._pt=h=new hr(t._pt,r,n,i,l,SN),h.e=c,h.u="deg",t._props.push(n),h},ex=function(t,r){for(var n in r)t[n]=r[n];return t},FN=function(t,r,n){var i=ex({},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[ue]=r,s=Us(n,1),sa(n,ue),n.setAttribute("transform",l)):(l=getComputedStyle(n)[ue],o[ue]=r,s=Us(n,1),o[ue]=l);for(u in Yn)l=i[u],c=s[u],l!==c&&a.indexOf(u)<0&&(p=Xe(l),y=Xe(c),f=p!==y?xi(n,u,l,y):parseFloat(l),h=parseFloat(c),t._pt=new hr(t._pt,s,u,f,h-f,$y),t._pt.u=y||0,t._props.push(u));ex(s,i)};fr("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 Nn(s,y,l)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,d){return p[y]=h[d]=h[d]||h[(d-1)/2|0]}),s.init(u,p,f)}});var iE={name:"css",register:Ry,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,d,m,v,_,b,x,g,w,S,A;Kv||Ry(),this.styles=this.styles||ZP(t),A=this.styles.props,this.tween=n;for(d in r)if(d!=="autoRound"&&(c=r[d],!(Or[d]&&qP(d,r,n,i,t,a)))){if(p=typeof c,y=Il[d],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Bs(c)),y)y(this,t,d,c,n)&&(S=1);else if(d.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(d)+"").trim(),c+="",gi.lastIndex=0,gi.test(l)||(m=Xe(l),v=Xe(c)),v?m!==v&&(l=xi(t,d,l,v)+v):m&&(c+=m),this.add(s,"setProperty",l,c,i,a,0,0,d),o.push(d),A.push(d,0,s[d]);else if(p!=="undefined"){if(u&&d in u?(l=typeof u[d]=="function"?u[d].call(n,i,t,a):u[d],$e(l)&&~l.indexOf("random(")&&(l=Bs(l)),Xe(l+"")||l==="auto"||(l+=Cr.units[d]||Xe(Nn(t,d))||""),(l+"").charAt(1)==="="&&(l=Nn(t,d))):l=Nn(t,d),h=parseFloat(l),_=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),_&&(c=c.substr(2)),f=parseFloat(c),d in wn&&(d==="autoAlpha"&&(h===1&&Nn(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),fi(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),d!=="scale"&&d!=="transform"&&(d=wn[d],~d.indexOf(",")&&(d=d.split(",")[0]))),b=d in Yn,b){if(this.styles.save(d),p==="string"&&c.substring(0,6)==="var(--"&&(c=Wr(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),x||(g=t._gsap,g.renderTransform&&!r.parseTransform||Us(t,r.parseTransform),w=r.smoothOrigin!==!1&&g.smooth,x=this._pt=new hr(this._pt,s,ue,0,1,g.renderTransform,g,0,-1),x.dep=1),d==="scale")this._pt=new hr(this._pt,g,"scaleY",g.scaleY,(_?Ba(g.scaleY,_+f):f)-g.scaleY||0,$y),this._pt.u=0,o.push("scaleY",d),d+="X";else if(d==="transformOrigin"){A.push(pr,0,s[pr]),c=IN(c),g.svg?Dy(t,c,0,w,0,this):(v=parseFloat(c.split(" ")[2])||0,v!==g.zOrigin&&fi(this,g,"zOrigin",g.zOrigin,v),fi(this,s,d,Nl(l),Nl(c)));continue}else if(d==="svgOrigin"){Dy(t,c,1,w,0,this);continue}else if(d in eE){qN(this,g,d,h,_?Ba(h,_+c):c);continue}else if(d==="smoothOrigin"){fi(this,g,"smooth",g.smooth,c);continue}else if(d==="force3D"){g[d]=c;continue}else if(d==="transform"){FN(this,c,t);continue}}else d in s||(d=io(d)||d);if(b||(f||f===0)&&(h||h===0)&&!wN.test(c)&&d in s)m=(l+"").substr((h+"").length),f||(f=0),v=Xe(c)||(d in Cr.units?Cr.units[d]:m),m!==v&&(h=xi(t,d,l,v)),this._pt=new hr(this._pt,b?g:s,d,h,(_?Ba(h,_+f):f)-h,!b&&(v==="px"||d==="zIndex")&&r.autoRound!==!1?ON:$y),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=AN);else if(d in s)DN.call(this,t,d,l,_?_+c:c);else if(d in t)this.add(t,d,l||t[d],_?_+c:c,i,a);else if(d!=="parseTransform"){Nv(d,c);continue}b||(d in s?A.push(d,0,s[d]):typeof t[d]=="function"?A.push(d,2,t[d]()):A.push(d,1,l||t[d])),o.push(d)}}S&&GP(this)},render:function(t,r){if(r.tween._time||!Xv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:Nn,aliases:wn,getSetter:function(t,r,n){var i=wn[r];return i&&i.indexOf(",")<0&&(r=i),r in Yn&&r!==pr&&(t._gsap.x||Nn(t,"x"))?n&&Kb===n?r==="scale"?CN:EN:(Kb=n||{})&&(r==="scale"?MN:kN):t.style&&!Rv(t.style[r])?TN:~r.indexOf("-")?PN:Hv(t,r)},core:{_removeProperty:sa,_getMatrix:Vv}};yr.utils.checkPrefix=io;yr.core.getStyleSaver=ZP;(function(e,t,r,n){var i=fr(e+","+t+","+r,function(a){Yn[a]=1});fr(t,function(a){Cr.units[a]="deg",eE[a]=1}),wn[i[13]]=e+","+t,fr(n,function(a){var o=a.split(":");wn[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");fr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Cr.units[e]="px"});yr.registerPlugin(iE);var Iy=yr.registerPlugin(iE)||yr;Iy.core.Tween;const Ea={IN_OUT:"power2.inOut",OUT:"power2.out"},Vo={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class aE{constructor(t,r={}){Uo(this,"timeline");Uo(this,"currentStage","");Uo(this,"callbacks");Uo(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Iy.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"),u=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",u||"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:Ea.IN_OUT,stagger:Vo.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 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:Ea.IN_OUT,stagger:Vo.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:Ea.IN_OUT,stagger:Vo.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:Ea.OUT,stagger:Vo.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=Vo.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:Ea.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&&Iy.to(s,{attr:{d:l},duration:a,ease:Ea.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 zN(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,C)=>E+C.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 C=E*Math.PI/180;for(let j=s;j>=o;j-=.1){const k=j*2,$=k*u,N=Math.floor((i-c)/$);for(let W=1;W<=Math.min(N,10);W++){let z=0;for(let I=0;I<W;I++){const B=c+(I+.5)*$,D=k*u/B,F=Math.floor(C/D);z+=F}if(z>=f){const I=f/z,B=(j-o)/(s-o),D=(z-f)/f,F=D<.15?1:D<.3?.7:D<.5?.4:.1,X=1-Math.abs(E-r)/n,L=F*.5+B*.3+I*.15+X*.05;L>h.score&&(h={seatSize:j,arcAngle:E,rings:W,score:L})}}}}const d=h.seatSize,m=h.arcAngle,v=m*Math.PI/180,_=d*2,b=_*u,x=Math.floor((i-c)/b),g=[],w=-v/2-Math.PI/2,S=[];let A=0,T=[];for(let E=1;E<=x;E++){let C=0;const j=[];for(let k=0;k<E;k++){const $=c+(k+.5)*b,N=_*u/$,W=Math.floor(v/N);j.push(W),C+=W}if(C>=f){A=E,T=j;break}}if(A>0)S.push(...T);else for(let E=0;E<x;E++){const C=c+(E+.5)*b,j=_*u/C,k=Math.floor(v/j);S.push(k)}for(let E=0;E<S.length;E++){const C=c+(E+.5)*b,j=S[E]??0;if(j>0){const k=v/j;for(let $=0;$<j;$++){const N=w+($+.5)*k,W=Math.cos(N)*C,z=Math.sin(N)*C;g.push({ring:E,index:$,angle:N,x:W,y:z})}}}g.sort((E,C)=>{const j=E.angle-C.angle;return Math.abs(j)>.001?j:E.ring-C.ring});const M=[];let P=0;return e.forEach((E,C)=>{const j=Math.min(E.seats,g.length-P);for(let k=0;k<j&&P<g.length;k++){const $=g[P++];$&&M.push({x:$.x,y:$.y,category:E.name,categoryIndex:C,seatIndex:k,ring:$.ring,angle:$.angle,radius:d})}}),{arcAngle:m,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:d,seats:M,totalSeats:f}}function UN(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 dr={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},gs=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],ur={greyHatch:{background:dr.neoGrey[200],lines:dr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function WN(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",ur.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",ur.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",ur.greyHatch.lines).attr("stroke-width",.5)}function HN(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",ur.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",ur.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",ur.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",ur.dataMissingHatch.lines).attr("stroke-width",.5)}function GN(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",ur.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",ur.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",ur.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",ur.noLstHatch.lines).attr("stroke-width",.5)}function zu(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),WN(r,t),HN(r,t),GN(r,t)}function rx(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function Zv(e){return e.includes("greyHatchPattern")?ur.greyHatch.lines:e.includes("dataMissingHatchPattern")?ur.dataMissingHatch.lines:e.includes("noLstHatchPattern")?ur.noLstHatch.lines:e}function Ny(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,u=Wi().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(vi),l=kv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(vi),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 d=((v=y.parliamentMapping)==null?void 0:v.isSpecialCategory)??!1,m=Zv(y.color);if(d){const _=f.append("path").datum(h).attr("fill","none").attr("stroke",m).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",m).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 KN(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 He(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function oE(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(v=>v.label===p.category);if(!y)return;const d=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),m=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-${He(p.category)}`:`seat seat-${He(p.category)}`;d.attr("class",v),m.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-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 XN(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),d=n(p.y1);let m;if(o){const v=l.get(h.category)??[],_=h.seatIndex,b=v.length;if(b===1)m=(y+d)/2;else{const x=_/(b-1);m=y+(d-y)*x}}else m=d;s.set(h,{x:u,y:m})}return s}function YN(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 VN(e){const t=e;return{seatsToLines:t*.2,seatsToBar:t*.07,crossFadePause:t*.003,barSlideToTimeline:t*.22,axesAndBarsGrow:t*.22,barsToArea:t*.287}}const Gi=new Map;ee.prototype.transition=lv;const ZN=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:u=!0,showAxes:l=!0,axisLabelColor:c,formatDate:f,formatValue:h,markers:p=[],arcAngle:y=200,parliamentRadius:d=200,seatSize:m=4.5,animationDuration:v=900,onMorphComplete:_,onAnimationStateChange:b,onTimelineReady:x,onAnimationProgress:g,onHoveredDataChange:w,hoveredCategory:S,maxSeats:A=2e3,parliamentTimestamp:T,enableBrush:M=!1,onTimeRangeChange:P,minAllowedTime:E,maxAllowedTime:C,showScaleIndicator:j=!1,reposPerSeat:k=1,timelineEvents:$=[],showTimeline:N=!1,timelineHeight:W=40,timelineOffset:z=35,brushColor:I="#69b3a2"})=>{const[B,D]=O.useState("area"),[F,X]=O.useState(!1),[L,Y]=O.useState(null),[Z,H]=O.useState(0),[q,K]=O.useState(null),[Q,R]=O.useState(null),[J,U]=O.useState([]),ot=O.useRef(null),yt=O.useRef(n),st=O.useRef(!0),ht=O.useRef(!1),ft=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),Ot=O.useRef(void 0),at=O.useRef(s),pt=O.useRef(_),St=O.useRef(b),qt=O.useRef(x),ne=O.useRef(g),$t=O.useRef(w);O.useEffect(()=>{pt.current=_,St.current=b,qt.current=x,ne.current=g,$t.current=w},[_,b,x,g,w]),O.useEffect(()=>{if(e.current&&B==="parliament")if(S){const Xt=r.find(Wt=>Wt.dataKey===S);if(Xt){const Wt=Xt.label;if(Y(Wt),bs(e.current,Wt),t.length>0){const nr=t[t.length-1],Yr=Math.round(nr.values[Xt.dataKey]||0),Ve={label:Xt.label,value:Yr,color:Zv(Xt.color)};Ll(e.current,Ve,j,k,ft.current)}}}else Y(null),bs(e.current,null),Ll(e.current,null,j,k,ft.current)},[S,B,r,t,j,k]);const Ft=i-o.left-o.right,me=a-o.top-o.bottom;return O.useEffect(()=>{var bt;if(!e.current||t.length===0||r.length===0||(Ot.current&&(Ot.current(),Ot.current=void 0),ht.current))return;const Xt=ee(e.current),Wt=n!==yt.current;st.current?(Xt.selectAll("*").remove(),zu(Xt,ft.current),st.current=!1):Wt||(Xt.selectAll("*").remove(),zu(Xt,ft.current));const nr=t[t.length-1],Yr=r.reduce((ct,At)=>ct+(nr.values[At.dataKey]||0),0),Ve=t.map(ct=>{const At={timestamp:ct.timestamp};for(const Ct of r)At[Ct.dataKey]=ct.values[Ct.dataKey]||0;return At}),ir=r.map(ct=>ct.dataKey),Me=Ml().keys(ir),Vr=Me(Ve),jr=t.map(ct=>ct.timestamp),Qn=Wt||!s?Math.min(...jr):s[0],ar=Wt||!s?Math.max(...jr):s[1],cn=[...jr].sort((ct,At)=>ct-At),vr=[];for(let ct=0;ct<cn.length-1;ct++)vr.push(cn[ct+1]-cn[ct]);const Ci=vr.length>0?vr.reduce((ct,At)=>ct+At,0)/vr.length:0,ti=ar+Ci*1.15,Ze=Al().domain([new Date(Qn),new Date(ti)]).range([0,Ft]),ei=Ve.filter(ct=>ct.timestamp>=Qn&&ct.timestamp<=ar),fn=Me(ei),fe=fn.length>0?Math.max(...fn[fn.length-1].map(ct=>ct[1]??0)):0,Be=oa().domain([0,fe*1.15]).range([me,0]),Je=r.map(ct=>({...ct,color:rx(ct.color,ft.current)})),Zr=Je.map(ct=>({dataKey:ct.dataKey,label:ct.label,color:ct.color,value:nr.values[ct.dataKey]||0})),hn=UN(Zr,Yr,A).reverse(),pn=zN(hn,{arcAngle:y,radius:d,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});ot.current=pn;const et=YN(Ve,r),dt=XN(pn,et,Ze,Be,Ft,me);if(Wt&&!ht.current){ht.current=!0,X(!0),(bt=St.current)==null||bt.call(St,!0),K(null),U([]),H(0);let ct=Xt.select("g[transform]");if(ct.empty()&&(ct=Xt.select("g")),ct.empty()){Xt.selectAll("*").remove(),zu(Xt,ft.current),Uf(Xt,n==="parliament"?"parliament":"area",Vr,Je,pn,Ze,Be,Ft,me,o,u,l,c,f,h,M,P,ft.current,p,s,U,K,$,N,W,z,R,E,C,I),X(!1),D(n==="parliament"?"parliament":"area"),H(n==="parliament"?1:0),yt.current=n;return}const At=setTimeout(()=>{ht.current=!1,X(!1),yt.current=n},v*3);eL(Xt,n,Vr,Je,pn,dt,Ze,Be,Ft,me,o,v,()=>{var Ct,ie;if(clearTimeout(At),ht.current=!1,X(!1),D(n==="parliament"?"parliament":"area"),n==="parliament"&&H(1),(Ct=St.current)==null||Ct.call(St,!1),(ie=pt.current)==null||ie.call(pt),yt.current=n,n==="parliament"&&e.current&&$t.current&&(Ot.current=Wf(e.current,Je,t,L,Y,$t.current,j,k,ft.current)),n!=="parliament"&&e.current){const ae=ee(e.current),oe=ae.select(ft.current?`.main-chart-group-${ft.current}`:".main-chart-group");if(N&&R){const ye=ft.current?`.timeline-track-${ft.current}`:".timeline-track",qe=ft.current?`.timeline-brush-${ft.current}`:".timeline-brush";oe.select(ye).remove(),oe.select(qe).remove(),sE(ae,$,Ze,me,Ft,W,z,ft.current,R,M,P,E,C,I)}if(M&&P&&!N){const ye=oe.select(ft.current?`.chart-content-group-${ft.current}`:".chart-content-group");JN(ye,Ft,me,Ze,P,ft.current,ae,E,C,I)}if(p.length>0&&U&&K&&s){const qe=p.filter(Yt=>Yt.timestamp>=(s[0]??0)-1&&Yt.timestamp<=(s[1]??1/0)+1).map(Yt=>({...Yt,x:Ze(new Date(Yt.timestamp))}));if(U(qe),qe.length>0){QN(oe,qe,me,Ft,M,K,ft.current);const Yt=oe.select(ft.current?`.markers-${ft.current}`:".markers");if(!Yt.empty()){oe.selectAll(".marker-hover-overlay").remove();const Rr=oe.append("rect").attr("class","marker-hover-overlay").attr("x",0).attr("y",0).attr("width",Ft).attr("height",me).attr("fill","none").attr("pointer-events","all");let br=null;Rr.on("mousemove",function(Mi){const[_a]=ks(Mi,this);let dn=null,ki=1/0;if(qe.forEach(Fo=>{const mn=Math.abs(_a-Fo.x);mn<ki&&(ki=mn,dn=Fo)}),!dn||ki>50){br!==null&&(br=null,Yt.selectAll(".marker-line").attr("opacity",0),Yt.selectAll(".marker-label").attr("opacity",0),K(null));return}const Dr=dn;br!==Dr.timestamp&&(br=Dr.timestamp,Yt.selectAll(".marker-line").attr("opacity",0),Yt.selectAll(".marker-label").attr("opacity",0),Yt.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(Dr.timestamp)}).attr("opacity",.6),Yt.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(Dr.timestamp)}).attr("opacity",1),K(Dr))}),Rr.on("mouseleave",function(){br=null,Yt.selectAll(".marker-line").attr("opacity",0),Yt.selectAll(".marker-label").attr("opacity",0),K(null)})}}}}},l,f,h,qt.current,(Ct,ie)=>{var ae;if(n==="parliament"&&Ct>=.95){const oe=(Ct-.95)/.05;H(Math.min(oe,1))}(ae=ne.current)==null||ae.call(ne,Ct,ie)},T,ft.current)}else yt.current=n,n==="parliament"&&(K(null),U([])),Uf(Xt,n==="parliament"?"parliament":"area",Vr,Je,pn,Ze,Be,Ft,me,o,u,l,c,f,h,M,P,ft.current,p,s,U,K,$,N,W,z,R,E,C,I),D(n==="parliament"?"parliament":"area"),H(n==="parliament"?1:0),n==="parliament"&&e.current&&$t.current&&(Ot.current=Wf(e.current,Je,t,L,Y,$t.current,j,k,ft.current));return()=>{Ot.current&&(Ot.current(),Ot.current=void 0)}},[n]),O.useEffect(()=>{var ei,fn;if(!e.current||t.length===0||ht.current)return;if(st.current){at.current=s;return}if(!(s!==at.current&&((s==null?void 0:s[0])!==((ei=at.current)==null?void 0:ei[0])||(s==null?void 0:s[1])!==((fn=at.current)==null?void 0:fn[1]))))return;at.current=s;const Wt=ee(e.current),nr=t.map(fe=>{const Be={timestamp:fe.timestamp};for(const Je of r)Be[Je.dataKey]=fe.values[Je.dataKey]||0;return Be}),Yr=r.map(fe=>fe.dataKey),ir=Ml().keys(Yr)(nr),Me=t.map(fe=>fe.timestamp),Vr=s?s[0]:Math.min(...Me),jr=s?s[1]:Math.max(...Me),ar=(Me.length>1?(Me[Me.length-1]-Me[0])/(Me.length-1):0)*.5,cn=Al().domain([new Date(Vr-ar),new Date(jr+ar)]).range([0,i-o.left-o.right]),vr=Math.max(...ir[ir.length-1].map(fe=>fe[1])),Ci=oa().domain([0,vr*1.1]).range([a-o.top-o.bottom,0]);if(!ot.current)return;const ti=ot.current,Ze=r.map(fe=>({...fe,color:rx(fe.color,ft.current)}));Wt.selectAll("*").remove(),zu(Wt,ft.current),Uf(Wt,B==="parliament"?"parliament":"area",ir,Ze,ti,cn,Ci,i-o.left-o.right,a-o.top-o.bottom,o,u,l,c,f,h,M,P,ft.current,p,s,U,K,$,N,W,z,R,E,C,I),B==="parliament"&&e.current&&$t.current&&(Ot.current=Wf(e.current,Ze,t,L,Y,$t.current,j,k,ft.current))},[s]),{isMorphing:F,currentMode:B,hoveredCategory:L,scaleIndicatorOpacity:Z,visibleMarkers:J,hoveredMarker:q,setHoveredMarker:K,hoveredTimelineEvent:Q,setHoveredTimelineEvent:R}};function JN(e,t,r,n,i,a,o,s,u,l){const c=s,f=u,h=Pc().extent([[0,0],[t,r]]).on("start",y=>{if(!y.selection&&c!==void 0&&f!==void 0){const d=y.sourceEvent;if(d){const m=d.offsetX,v=+n.invert(m);if(v<c||v>f){o.select(".brush").call(h.move,null);return}}}}).on("brush",y=>{if(!y.selection)return;const[d,m]=y.selection;let v=+n.invert(d),_=+n.invert(m);c!==void 0&&(v=Math.max(v,c),_=Math.max(_,c)),f!==void 0&&(v=Math.min(v,f),_=Math.min(_,f));const b=n(new Date(v)),x=n(new Date(_));(b!==d||x!==m)&&o.select(".brush").call(h.move,[b,x])}).on("end",y=>{if(!y.selection)return;const[d,m]=y.selection,v=[+n.invert(d),+n.invert(m)];c!==void 0&&(v[0]=Math.max(v[0],c)),f!==void 0&&(v[1]=Math.min(v[1],f)),i(v),o.select(".brush").call(h.move,null)}),p=e.append("g").attr("class","brush").call(h);p.selectAll(".selection").attr("fill",l).attr("fill-opacity",.2).attr("stroke",l).attr("stroke-width",1),p.selectAll(".handle").attr("fill",l).attr("fill-opacity",.8),p.on("dblclick",()=>{const y=n.domain(),d=[+y[0],+y[1]];s!==void 0&&(d[0]=Math.max(d[0],s)),u!==void 0&&(d[1]=Math.min(d[1],u)),i(d)})}function QN(e,t,r,n,i,a,o){const s=o?`markers markers-${o}`:"markers",u=e.append("g").attr("class",s);t.forEach(l=>{u.append("line").attr("class","marker-line").attr("data-timestamp",l.timestamp).attr("x1",l.x).attr("x2",l.x).attr("y1",0).attr("y2",r).attr("stroke",l.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),l.label&&u.append("text").attr("class","marker-label").attr("data-timestamp",l.timestamp).attr("x",l.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",l.color??"#2F42FF").attr("opacity",0)})}function tL(e,t,r,n,i,a,o){let s=null,u;a?u=e.select(".brush .overlay"):u=e.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",i).attr("fill","none").attr("pointer-events","all");const l=c=>{let f=null,h=1/0;if(r.forEach(d=>{const m=Math.abs(c-d.x);m<h&&(h=m,f=d)}),!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 ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",.6),t.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",1),o(y)),!0};u.on("mousemove",function(c){const[f]=ks(c,this);l(f)}),u.on("mouseleave",function(){s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)})}function Uf(e,t,r,n,i,a,o,s,u,l,c,f,h,p,y,d=!1,m,v,_=[],b=[0,0],x,g,w=[],S=!1,A=40,T=15,M,P,E,C="#69b3a2"){const j=P,k=E;let $=null;const N=v?`main-chart-group main-chart-group-${v}`:"main-chart-group",W=e.append("g").attr("class",N).attr("transform",`translate(${l.left},${l.top})`),z=v?`chart-clip-${v}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",z).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",u);const I=v?`chart-content-group chart-content-group-${v}`:"chart-content-group",B=W.append("g").attr("class",I).attr("clip-path",`url(#${z})`);if(c&&t!=="parliament"&&(B.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Cs(a).ticks(6).tickSize(u).tickFormat(()=>"")),B.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ms(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Ny(B,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),_.length>0)){const F=_.filter(X=>X.timestamp>=b[0]-1&&X.timestamp<=b[1]+1).map(X=>({...X,x:a(new Date(X.timestamp))}));$={markersGroup:null,visibleMarkers:F},x&&x(F)}if(t==="parliament"){const D=s/2,F=i.radius+10,X=u-i.radius*.3,L=Math.max(F,X);oE(B,i,n,{centerX:D,centerY:L,addClasses:!0,instanceId:v,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const D=Cs(a).ticks(6);p&&D.tickFormat(H=>p(+H));const X=W.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).call(D).selectAll("text").attr("font-size",14).attr("font-weight",500);h&&X.attr("fill",h);const L=Ms(o).ticks(5);y&&L.tickFormat(H=>y(+H));const Z=W.append("g").attr("class","axis axis-y").call(L).selectAll("text").attr("font-size",14).attr("font-weight",500);h&&Z.attr("fill",h)}if(d&&m&&t==="area"){const D=j,F=k,X=Pc().extent([[0,0],[s,u]]).on("start",Y=>{if(!Y.selection&&D!==void 0&&F!==void 0){const Z=Y.sourceEvent;if(Z){const H=Z.offsetX-((l==null?void 0:l.left)||0),q=+a.invert(H);if(q<D||q>F){e.select(".brush").call(X.move,null);return}}}}).on("brush",Y=>{if(!Y.selection)return;const[Z,H]=Y.selection;let q=+a.invert(Z),K=+a.invert(H);D!==void 0&&(q=Math.max(q,D),K=Math.max(K,D)),F!==void 0&&(q=Math.min(q,F),K=Math.min(K,F));const Q=a(new Date(q)),R=a(new Date(K));(Q!==Z||R!==H)&&e.select(".brush").call(X.move,[Q,R])}).on("end",Y=>{if(!Y.selection)return;const[Z,H]=Y.selection,q=[+a.invert(Z),+a.invert(H)];D!==void 0&&(q[0]=Math.max(q[0],D)),F!==void 0&&(q[1]=Math.min(q[1],F)),m(q),e.select(".brush").call(X.move,null)}),L=B.append("g").attr("class","brush").call(X);L.selectAll(".selection").attr("fill",C).attr("fill-opacity",.2).attr("stroke",C).attr("stroke-width",1),L.selectAll(".handle").attr("fill",C).attr("fill-opacity",.8),L.on("dblclick",()=>{const Y=a.domain(),Z=[+Y[0],+Y[1]];m(Z)})}if(t==="area"&&$&&$.visibleMarkers.length>0){const D=W.append("g").attr("class","markers").attr("clip-path",`url(#${z})`);$.visibleMarkers.forEach(F=>{D.append("line").attr("class","marker-line").attr("data-timestamp",F.timestamp).attr("x1",F.x).attr("x2",F.x).attr("y1",0).attr("y2",u).attr("stroke",F.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),F.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",F.timestamp).attr("x",F.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",F.color??"#2F42FF").attr("opacity",0)}),$.markersGroup=D}t==="area"&&S&&M&&sE(e,w,a,u,s,A,T,v,M,d,m,j,k,C),$&&$.visibleMarkers.length>0&&g&&t==="area"&&tL(B,$.markersGroup,$.visibleMarkers,s,u,d,g)}function sE(e,t,r,n,i,a,o,s,u,l=!1,c,f,h,p="#69b3a2"){const y=n+o,d=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),m=s?`timeline-track timeline-track-${s}`:"timeline-track",v=d.append("g").attr("class",m),_=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",_).append("rect").attr("x",0).attr("y",y).attr("width",i).attr("height",a),v.append("rect").attr("class","timeline-background").attr("x",0).attr("y",y).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const b=v.append("g").attr("clip-path",`url(#${_})`),x=3,g=b.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",S=>r(new Date(S.timestamp))-x/2).attr("y",y).attr("width",x).attr("height",a).attr("fill",S=>S.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",S=>S.timestamp).attr("data-event-name",S=>S.eventName),w=6;if(g.on("mouseenter",function(S,A){const T=ee(this),M=r(new Date(A.timestamp));T.transition().duration(150).attr("x",M-w/2).attr("width",w),u&&u({timestamp:A.timestamp,eventName:A.eventName,x:M})}).on("mouseleave",function(S,A){const T=ee(this),M=r(new Date(A.timestamp));T.transition().duration(150).attr("x",M-x/2).attr("width",x),u&&u(null)}),l&&c){const S=f,A=h,T=Pc().extent([[0,y],[i,y+a]]).on("start",E=>{if(!E.selection&&S!==void 0&&A!==void 0){const C=E.sourceEvent;if(C){const j=C.offsetX,k=+r.invert(j);if(k<S||k>A){const $=s?`.timeline-brush-${s}`:".timeline-brush";e.select($).call(T.move,null);return}}}}).on("brush",E=>{if(!E.selection)return;const[C,j]=E.selection;let k=+r.invert(C),$=+r.invert(j);S!==void 0&&(k=Math.max(k,S),$=Math.max($,S)),A!==void 0&&(k=Math.min(k,A),$=Math.min($,A));const N=r(new Date(k)),W=r(new Date($));if(N!==C||W!==j){const z=s?`.timeline-brush-${s}`:".timeline-brush";e.select(z).call(T.move,[N,W])}}).on("end",E=>{if(!E.selection)return;const[C,j]=E.selection,k=[+r.invert(C),+r.invert(j)];S!==void 0&&(k[0]=Math.max(k[0],S)),A!==void 0&&(k[1]=Math.min(k[1],A)),c(k);const $=s?`.timeline-brush-${s}`:".timeline-brush";e.select($).call(T.move,null)}),M=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",P=d.append("g").attr("class",M).call(T);P.selectAll(".selection").attr("fill",p).attr("fill-opacity",.2).attr("stroke",p).attr("stroke-width",1),P.selectAll(".handle").attr("fill",p).attr("fill-opacity",.8),P.on("dblclick",()=>{const E=r.domain(),C=[+E[0],+E[1]];c(C)})}}function eL(e,t,r,n,i,a,o,s,u,l,c,f,h,p=!0,y,d,m,v,_,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"?rL(x,r,n,i,a,o,s,u,l,f,h,p,y,d,m,v,_,b):nL(x,r,n,i,a,o,s,u,l,f,h,p,y,d,m,v,_,b)}function vs(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 d=y.x,m=y.width,v=l[0],_=l[1],b=s?i:n(v),x=s?i:n(_),g=[];return g.push(`M ${d} ${b}`),g.push(`L ${d} ${x}`),g.push(`L ${d+m} ${x}`),g.push(`L ${d+m} ${b}`),g.push("Z"),g.join(" ")}function rL(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,d,m,v){var Ru;const _=v?`.seat-${v}`:".seat",b=e.selectAll(_),x=v?`.chart-content-group-${v}`:".chart-content-group";let g=e.select(x);if(g.empty()){const rt=e.attr("clip-path"),ut=rt?((Ru=rt.match(/url\(#(.+)\)/))==null?void 0:Ru[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,gt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";g=e.append("g").attr("class",gt).attr("clip-path",`url(#${ut})`)}if(b.size()===0){Ny(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const w=VN(l),S=v?Gi.get(v):void 0;S&&(S.destroy(),v&&Gi.delete(v));const A=rt=>rt<.2?"seatsToRings":rt<.35?"ringsToBar":rt<.464?"axesReveal":rt<.6?"barSlide":rt<.82?"barsGrow":"barsToArea",T=new aE({seatsToRings:w.seatsToLines,ringsToBar:w.seatsToBar,axesReveal:w.barSlideToTimeline*.3,barSlide:w.barSlideToTimeline*.7,barsGrow:w.axesAndBarsGrow,barsToArea:w.barsToArea},{onStageComplete:rt=>{},onProgress:rt=>{if(d){const ut=A(rt);d(rt,ut)}},onComplete:()=>{c()}});v&&Gi.set(v,T),y&&y(T.getControls().getTimeline());const M=t[0].map(rt=>rt.data),P=KN(M,r),E=s/2,C=n.radius+10,j=u-n.radius*.3,k=Math.max(C,j),$=M.map(rt=>rt.timestamp),N=m??Math.max(...$),W=new Map,z=[];$.forEach((rt,ut)=>{const gt=a(new Date(rt)),Mt=$[ut+1];if(Mt){const Qt=a(new Date(Mt))-gt;z.push(Qt)}});const I=z.length>0?z.reduce((rt,ut)=>rt+ut,0)/z.length:30;$.forEach((rt,ut)=>{const gt=a(new Date(rt)),Mt=$[ut+1],Qt=ut===$.length-1?I:a(new Date(Mt))-gt;W.set(rt,{x:gt,width:Qt})});const B=P.filter(rt=>rt.timestamp===N),D=W.get(N),F=666,X=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",L=g.append("g").attr("class",X);B.sort((rt,ut)=>ut.y0-rt.y0),new Map().set(N,{x:F-D.width/2,width:D.width});const Z=[],H=(n.radius-n.innerRadius)*.6,K=u*.8,Q=k,R=B.reduce((rt,ut)=>rt+(ut.y1-ut.y0),0);let J=0;r.forEach(rt=>{const ut=B.find(De=>De.dataKey===rt.dataKey);if(!ut)return;const he=(ut.y1-ut.y0)/R*K,Qt=Q-J,Fe=Q-J-he,Re=F-H/2,or=`M ${Re} ${Qt} L ${Re} ${Fe} L ${Re+H} ${Fe} L ${Re+H} ${Qt} Z`;J+=he;const xr=L.append("path").attr("class",`parliament-bar-segment category-${He(ut.dataKey)}`).attr("d",or).attr("fill",ut.color).style("opacity",0).node();xr&&Z.push(xr)}),v&&(window.orchestratorMap=Gi);const U=T.getControls().getTimeline(),ot=w.seatsToLines/1e3,yt=w.seatsToBar/1e3;U.call(()=>{d==null||d(U.progress(),"seatsToRings")},[],"seatsToRings");const st=b.nodes(),ht=E,ft=k,Ot=Math.max(...n.seats.map(rt=>rt.ring)),at=n.seats.filter(rt=>rt.ring===Ot),pt=e.append("g").attr("class",`seat-lines-${v||"default"}`),St=r.map(rt=>{const ut=b.filter(`.seat-${He(rt.dataKey)}`).size();return ut>0?{name:rt.dataKey,seatCount:ut,color:rt.color}:null}).filter(rt=>rt!==null).reverse(),qt=St.reduce((rt,ut)=>rt+ut.seatCount,0),ne=at.length,$t=n.radius-n.innerRadius,Ft=$t*.6,me=Ft/2,Xt=$t*.6,Wt=[];let nr=0;St.forEach(rt=>{const ut=Math.max(1,Math.round(rt.seatCount/qt*ne));for(let gt=0;gt<ut;gt++){const Mt=(nr+gt)/ne,he=n.arcAngle*Math.PI/180,Fe=-he/2-Math.PI/2+Mt*he,Re=(n.innerRadius+n.radius)/2,or=ht+Math.cos(Fe)*Re,xr=ft+Math.sin(Fe)*Re,De=Math.cos(Fe),ri=Math.sin(Fe),$i=or-me*De,wa=xr-me*ri,Se=or+me*De,ni=xr+me*ri,ii=pt.append("line").attr("class","seat-line").attr("x1",$i).attr("y1",wa).attr("x2",Se).attr("y2",ni).attr("stroke",rt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",Fe*180/Math.PI).attr("data-center-x",or).attr("data-center-y",xr).attr("data-initial-length",Ft).node();Wt.push({element:ii,angle:Fe})}nr+=ut});const Yr=()=>{pt.remove()},Ve=ot*.5,ir=0,Me=[];if(Me.push(...st),Me.sort((rt,ut)=>{const gt=parseInt(rt.getAttribute("data-layout-index")||"-1",10),Mt=parseInt(ut.getAttribute("data-layout-index")||"-1",10);return gt-Mt}),Me.length>0&&Wt.length>0){const rt=Wt.map(ut=>ut.element);U.to(Me,{attr:{r:1.5},duration:Ve*.3,ease:"power2.in"},`seatsToRings+=${ir}`),rt.forEach(ut=>{const gt=ut.getAttribute("x1")||"0",Mt=ut.getAttribute("y1")||"0",he=ut.getAttribute("x2")||"0",Qt=ut.getAttribute("y2")||"0";ut.setAttribute("data-final-x1",gt),ut.setAttribute("data-final-y1",Mt),ut.setAttribute("data-final-x2",he),ut.setAttribute("data-final-y2",Qt),ut.setAttribute("x1",gt),ut.setAttribute("y1",Mt),ut.setAttribute("x2",gt),ut.setAttribute("y2",Mt)}),U.to(rt,{attr:{x2:(ut,gt)=>parseFloat(gt.getAttribute("data-final-x2")||"0"),y2:(ut,gt)=>parseFloat(gt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:Ve*.6,ease:"power2.out"},`seatsToRings+=${ir+Ve*.2}`),U.to(Me,{opacity:0,duration:Ve*.3,ease:"power2.out"},`seatsToRings+=${ir+Ve*.3}`)}const Vr=ot*.05,jr=ot*.7,Qn=ir+Ve+Vr;if(Wt.length>0){const rt=F,ut=k,Mt=u*.8/Wt.length,he=ut,Qt=[...Wt].sort((or,xr)=>xr.angle-or.angle),Re=.6/Qt.length;Qt.forEach((or,xr)=>{const De=rt,$i=he-xr*Mt,wa=Re*xr*jr,Se=or.element,ni=parseFloat(Se.getAttribute("data-final-x1")||"0"),ii=parseFloat(Se.getAttribute("data-final-y1")||"0"),zo=parseFloat(Se.getAttribute("data-final-x2")||"0"),Sa=parseFloat(Se.getAttribute("data-final-y2")||"0"),Du=(ni+zo)/2,yn=(ii+Sa)/2,ai=Math.atan2(Sa-ii,zo-ni),ji=Math.sqrt(Math.pow(zo-ni,2)+Math.pow(Sa-ii,2));U.to({progress:0},{progress:1,duration:jr*.5,ease:"power2.inOut",delay:wa,onUpdate:function(){const ge=this.progress(),mf=Du+(De-Du)*ge,yf=yn+($i-yn)*ge,gn=40*4*ge*(1-ge),Ri=mf,Di=yf-gn,vf=0-ai,kn=ai+vf*ge*ge,Iu=(ji+(Xt-ji)*ge)/2,ik=Ri-Iu*Math.cos(kn),ak=Di-Iu*Math.sin(kn),ok=Ri+Iu*Math.cos(kn),sk=Di+Iu*Math.sin(kn);Se.setAttribute("x1",ik.toString()),Se.setAttribute("y1",ak.toString()),Se.setAttribute("x2",ok.toString()),Se.setAttribute("y2",sk.toString())},onComplete:function(){const ge=Xt/2;Se.setAttribute("x1",(De-ge).toString()),Se.setAttribute("y1",$i.toString()),Se.setAttribute("x2",(De+ge).toString()),Se.setAttribute("y2",$i.toString())}},`seatsToRings+=${Qn}`),U.to(or.element,{opacity:.95,duration:jr*.3,ease:"power2.out",delay:wa},`seatsToRings+=${Qn}`)})}const ar=pt,cn=[];B.forEach((rt,ut)=>{const gt=b.filter(`.seat-${He(rt.category)}`),Mt=gt.size();if(Mt===0)return;const he=o(rt.y1),Qt=o(rt.y0)-o(rt.y1),Fe=gt.nodes().sort((yn,ai)=>{const ji=parseInt(yn.getAttribute("data-layout-index")||"-1",10),ge=parseInt(ai.getAttribute("data-layout-index")||"-1",10);return ji-ge}),Re=Math.max(D.width,100),or=Qt,xr=Re/Math.max(or,1),De=Math.max(2,Math.ceil(Math.sqrt(Mt*xr))),ri=Math.ceil(Mt/De),$i=Re*.8,wa=or*.8,Se=De>1?$i/(De-1):0,ni=ri>1?wa/(ri-1):0,ii=De>1?(De-1)*Se:0,zo=ri>1?(ri-1)*ni:0,Sa=F-Re/2+(Re-ii)/2,Du=he+(or-zo)/2;Fe.forEach((yn,ai)=>{const ji=parseInt(yn.getAttribute("data-layout-index")||"-1",10),ge=ji>=0?n.seats[ji]:void 0,mf=ge?E+ge.x:parseFloat(yn.getAttribute("cx")||"0"),yf=ge?k+ge.y:parseFloat(yn.getAttribute("cy")||"0"),N0=(ge==null?void 0:ge.radius)||parseFloat(yn.getAttribute("r")||"4"),gn=Mt%De;let Ri,Di;if(gn>0&&ai<gn)Di=0,Ri=ai;else{const kn=ai-(gn>0?gn:0);Ri=kn%De,Di=Math.floor(kn/De)+(gn>0?1:0)}let gf=Sa+Ri*Se;if(gn>0&&Di===0){const kn=gn>1?(gn-1)*Se:0,L0=(ii-kn)/2;gf=Sa+L0+Ri*Se}const vf=Du+Di*ni;cn.push({element:yn,startX:mf,startY:yf,startRadius:N0,category:rt.dataKey,segmentIndex:ut,endY:vf,endX:gf})})});const vr=cn.map(rt=>{const ut=rt.startX-E,gt=rt.startY-k,Mt=Math.atan2(gt,ut);return{...rt,angle:Mt}});vr.sort((rt,ut)=>ut.angle-rt.angle);const Ci=yt*.8,ti=.6,Ze=vr.length,fn=Ci/Math.max(Ze,1)*(Ze-1)+ti,fe=yt*.3,Be=fn;U.to(Z,{opacity:1,duration:fe,ease:"power2.inOut"},`seatsToBar+=${Be}`),ar&&(U.to(ar.selectAll(".seat-line").nodes(),{opacity:0,duration:fe,ease:"power2.inOut"},`seatsToBar+=${Be}`),U.call(()=>{Yr()},[],`seatsToBar+=${Be+fe}`));const Je=w.barSlideToTimeline/1e3;let Zr=null,hn=null;if(f){const rt=Cs(a).ticks(6);h&&rt.tickFormat(gt=>h(gt.getTime())),Zr=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).attr("opacity",0),Zr.call(rt).selectAll("text").attr("font-size",14).attr("font-weight",500);const ut=Ms(o).ticks(5);p&&ut.tickFormat(gt=>p(gt)),hn=e.append("g").attr("class","axis axis-y").attr("opacity",0),hn.call(ut).selectAll("text").attr("font-size",14).attr("font-weight",500)}const pn=w.crossFadePause/1e3,et=Be+fe+pn;Z.forEach(rt=>{const ut=Array.from(rt.classList).find(Qt=>Qt.startsWith("category-"));if(!ut||!B.find(Qt=>He(Qt.dataKey)===ut.replace("category-","")))return;const Mt=r.findIndex(Qt=>He(Qt.dataKey)===ut.replace("category-",""));if(Mt===-1)return;const he=vs(t,r,W,o,u,Mt,N,!1);he&&U.to(rt,{attr:{d:he},duration:Je,ease:"power2.out"},`seatsToBar+=${et}`)});const dt=Wi().x(rt=>a(rt.data.timestamp)).y0(rt=>o(rt[0])).y1(rt=>o(rt[1])).curve(vi),bt=new Map;t.forEach((rt,ut)=>{const gt=r[ut];if(gt){const Mt=dt(rt)||"";bt.set(gt.dataKey,Mt)}});const ct=et+Je;f&&Zr&&hn&&U.to([Zr.node(),hn.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${et}`);const At=g.select(".grid-vertical"),Ct=g.select(".grid-horizontal");if(!At.empty()||!Ct.empty()){const ut=[];At.empty()||ut.push(At.node()),Ct.empty()||ut.push(Ct.node()),U.to(ut,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${et}`)}const ie=w.axesAndBarsGrow/1e3,ae=w.barsToArea/1e3,oe=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",ye=g.append("g").attr("class",oe);$.forEach(rt=>{if(rt===N)return;const ut=W.get(rt);ut&&r.forEach((gt,Mt)=>{const he=vs(t,r,W,o,u,Mt,rt,!0),Qt=vs(t,r,W,o,u,Mt,rt,!1);if(!he||!Qt)return;const Fe=v?`histogram-path histogram-path-${v} category-${He(gt.dataKey)}`:`histogram-path category-${He(gt.dataKey)}`;ye.append("path").attr("class",Fe).attr("d",he).attr("fill",gt.color).attr("stroke",gt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",gt.dataKey).attr("data-timestamp",rt).attr("data-x-position",ut.x).attr("data-full-height-path",Qt)})});const qe=v?`.histogram-path-${v}`:".histogram-path",Yt=ye.selectAll(qe);U.to(Yt.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${ct}`);const Rr=D.x+D.width/2;Yt.each(function(){var Re;const rt=this.getAttribute("data-full-height-path");if(!rt)return;const ut=parseFloat(this.getAttribute("data-x-position")||"0"),gt=parseFloat(this.getAttribute("data-timestamp")||"0"),Mt=((Re=W.get(gt))==null?void 0:Re.width)||0,he=ut+Mt/2,Fe=Math.abs(he-Rr)*8e-4;U.to(this,{attr:{d:rt},duration:ie,ease:"power2.out"},`seatsToBar+=${ct+Fe}`)});const br=ct+ie,Mi=$[$.length-1],dn=a(new Date(Mi))+I,qo=a.invert(dn).getTime(),Dr=t.map(rt=>{const ut=rt[rt.length-1],gt={...ut,data:{...ut.data,timestamp:qo}};return[...rt,gt]});Ny(e,Dr,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const Fo=v?`.area-${v}`:".area",mn=e.selectAll(Fo);mn.attr("opacity",0),U.to(Yt.nodes(),{opacity:0,duration:ae,ease:"power2.inOut"},`seatsToBar+=${br}`);const ju=L.selectAll("path").nodes();ju.length>0&&U.to(ju,{opacity:0,duration:ae,ease:"power2.inOut"},`seatsToBar+=${br}`),U.to(mn.nodes(),{opacity:1,duration:ae,ease:"power2.inOut"},`seatsToBar+=${br}`);const df=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const rt=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(rt).remove();const ut=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(ut).remove(),f&&(Zr&&Zr.attr("opacity",1),hn&&hn.attr("opacity",1)),df()}),T.play()}function nL(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,d,m,v){var pn;const _=v?`.chart-content-group-${v}`:".chart-content-group";let b=e.select(_);if(b.empty()){const et=e.attr("clip-path"),dt=et?((pn=et.match(/url\(#(.+)\)/))==null?void 0:pn[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,bt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";b=e.append("g").attr("class",bt).attr("clip-path",`url(#${dt})`)}const x=v?`.area-${v}`:".area",g=e.selectAll(x);if(g.size()===0){iL(e,r,n,s,u,v),c();return}const w={areaToBar:l*.18,barsShrink:l*.22,barSlide:l*.22,axesHide:l*.03,barToRings:l*.07,ringsExpand:l*.18,ringsHold:l*.05,ringsToSeats:l*.07},S=v?Gi.get(v):void 0;S&&(S.destroy(),v&&Gi.delete(v));const A=et=>et<.18?"areaToBar":et<.4?"barsShrink":et<.62?"barSlide":et<.65?"axesHide":et<.72?"barToRings":et<.9?"ringsExpand":et<.95?"ringsHold":"ringsToSeats",T=new aE({seatsToRings:w.ringsToSeats,ringsHold:w.ringsHold,ringsToBar:w.barToRings,axesReveal:w.axesHide,barSlide:w.barSlide,barsGrow:w.barsShrink,barsToArea:w.areaToBar},{onStageComplete:et=>{},onProgress:et=>{if(d){const dt=A(et);d(et,dt)}},onComplete:()=>{c()}});v&&Gi.set(v,T),y&&y(T.getControls().getTimeline());const P=t[0].map(et=>et.data).map(et=>et.timestamp),E=m??Math.max(...P),C=new Map,j=[];P.forEach((et,dt)=>{const bt=a(new Date(et)),ct=P[dt+1];if(ct){const Ct=a(new Date(ct))-bt;j.push(Ct)}});const k=j.length>0?j.reduce((et,dt)=>et+dt,0)/j.length:30;P.forEach((et,dt)=>{const bt=a(new Date(et)),ct=P[dt+1],Ct=dt===P.length-1?k:a(new Date(ct))-bt;C.set(et,{x:bt,width:Ct})});const $=T.getControls().getTimeline(),N=w.areaToBar/1e3,W=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",z=b.append("g").attr("class",W);P.forEach(et=>{const dt=C.get(et);dt&&r.forEach((bt,ct)=>{const At=vs(t,r,C,o,u,ct,et,!1);if(!At)return;const Ct=v?`histogram-path histogram-path-${v} category-${He(bt.dataKey)}`:`histogram-path category-${He(bt.dataKey)}`;z.append("path").attr("class",Ct).attr("d",At).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",et).attr("data-x-position",dt.x)})});const I=v?`.histogram-path-${v}`:".histogram-path",B=z.selectAll(I);$.to(g.nodes(),{opacity:0,duration:N,ease:"power2.inOut"},"areaToBar"),$.to(B.nodes(),{opacity:1,duration:N,ease:"power2.inOut"},"areaToBar");const D=w.barsShrink/1e3,F=N;B.each(function(){const et=parseFloat(this.getAttribute("data-timestamp")||"0");if(et===E)return;const dt=r.find(At=>this.classList.contains(`category-${He(At.dataKey)}`));if(!dt)return;const bt=r.indexOf(dt),ct=vs(t,r,C,o,u,bt,et,!0);ct&&$.to(this,{attr:{d:ct},duration:D,ease:"power2.in"},F)});const X=w.axesHide/1e3,L=F+D;if(f){const et=e.select(".axis-x"),dt=e.select(".axis-y");et.empty()||$.to(et.node(),{opacity:0,duration:X,ease:"power2.inOut"},L),dt.empty()||$.to(dt.node(),{opacity:0,duration:X,ease:"power2.inOut"},L)}const Y=b.select(".grid-vertical"),Z=b.select(".grid-horizontal");Y.empty()||$.to(Y.node(),{opacity:0,duration:X,ease:"power2.inOut"},L),Z.empty()||$.to(Z.node(),{opacity:0,duration:X,ease:"power2.inOut"},L);const H=[];t.forEach((et,dt)=>{const bt=et.find(At=>At.data.timestamp===E);if(!bt)return;const ct=r[dt];ct&&H.push({category:ct.label,dataKey:ct.dataKey,color:ct.color,y0:bt[0],y1:bt[1]})}),H.sort((et,dt)=>dt.y0-et.y0);const q=H.reduce((et,dt)=>et+(dt.y1-dt.y0),0),K=n.radius-n.innerRadius,Q=s/2,R=n.radius+10,J=u-n.radius*.3,U=Math.max(R,J),ot=K*.6,st=u*.8,ht=U,ft=w.barSlide/1e3,Ot=L+X,at=666,pt=B.nodes().filter(et=>parseFloat(et.getAttribute("data-timestamp")||"0")!==E);$.to(pt,{opacity:0,duration:ft*.2,ease:"power2.out"},Ot);const St=B.nodes().filter(et=>parseFloat(et.getAttribute("data-timestamp")||"0")===E);St.forEach(et=>{const dt=et.getAttribute("data-category");if(!dt)return;const bt=H.find(Yt=>Yt.dataKey===dt);if(!bt)return;const Ct=(bt.y1-bt.y0)/q*st;let ie=0;for(const Yt of r){const Rr=H.find(_a=>_a.dataKey===Yt.dataKey);if(!Rr)continue;if(Rr.dataKey===bt.dataKey)break;const Mi=(Rr.y1-Rr.y0)/q;ie+=Mi*st}const ae=ht-ie,oe=ht-ie-Ct,ye=at-ot/2,qe=`M ${ye} ${ae} L ${ye} ${oe} L ${ye+ot} ${oe} L ${ye+ot} ${ae} Z`;$.to(et,{attr:{d:qe},duration:ft,ease:"power2.inOut"},Ot)});const qt=w.barToRings/1e3,ne=Ot+ft,$t=w.ringsExpand/1e3,Ft=ne+qt,me=w.ringsHold/1e3,Xt=Ft+$t,Wt=w.ringsToSeats/1e3,nr=Xt+me,Yr=Math.max(...n.seats.map(et=>et.ring)),Ve=n.seats.filter(et=>et.ring===Yr),ir=b.append("g").attr("class",`slinky-${v||"h2p-default"}`),Me=()=>{ir.remove()};Ve.forEach((et,dt)=>{const bt=r.find(ct=>ct.label===et.category);bt&&ir.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",bt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",et.category).attr("data-category-index",et.categoryIndex).attr("data-ring-index",dt).attr("data-seat-x",Q+et.x).attr("data-seat-y",U+et.y).attr("data-seat-angle",Math.atan2(et.y,et.x)).style("opacity",0)});const Vr=ir.selectAll(".slinky-ring").nodes(),jr=at,Qn=st/Vr.length,ar=[...Vr].sort((et,dt)=>{const bt=parseFloat(et.getAttribute("data-seat-angle")||"0");return parseFloat(dt.getAttribute("data-seat-angle")||"0")-bt}),cn=ht;ar.forEach((et,dt)=>{const bt=cn-dt*Qn,At=ot/2,Ct=jr-At,ie=jr+At;et.setAttribute("x1",Ct.toString()),et.setAttribute("y1",bt.toString()),et.setAttribute("x2",ie.toString()),et.setAttribute("y2",bt.toString()),et.style.opacity="0"}),$.to(St,{opacity:0,duration:qt*.7,ease:"power2.out"},ne+qt*.3),$.to(ar,{opacity:1,duration:qt,ease:"power2.in",stagger:.005},ne);const vr=K*.8;ar.forEach((et,dt)=>{const bt=parseFloat(et.getAttribute("data-seat-x")||"0"),ct=parseFloat(et.getAttribute("data-seat-y")||"0"),At=parseFloat(et.getAttribute("data-seat-angle")||"0"),Ct=(ar.length-1-dt)/ar.length*($t*.4),ie=parseFloat(et.getAttribute("x1")||"0"),ae=parseFloat(et.getAttribute("y1")||"0"),oe=parseFloat(et.getAttribute("x2")||"0"),ye=parseFloat(et.getAttribute("y2")||"0"),qe=(ie+oe)/2,Yt=(ae+ye)/2,Rr=Math.atan2(ye-ae,oe-ie),br=Math.sqrt(Math.pow(oe-ie,2)+Math.pow(ye-ae,2)),Mi=bt-vr/2*Math.cos(At),_a=ct-vr/2*Math.sin(At);$.to({progress:0},{progress:1,duration:$t*.7,ease:"power2.out",onUpdate:function(){const dn=this.progress(),ki=qe+(Mi-qe)*dn,qo=Yt+(_a-Yt)*dn,Dr=Rr+(At-Rr)*dn,mn=(br+(vr-br)*dn)/2,ju=ki-mn*Math.cos(Dr),df=qo-mn*Math.sin(Dr),Ru=ki+mn*Math.cos(Dr),rt=qo+mn*Math.sin(Dr);et.setAttribute("x1",ju.toString()),et.setAttribute("y1",df.toString()),et.setAttribute("x2",Ru.toString()),et.setAttribute("y2",rt.toString())}},Ft+Ct),$.to(et,{opacity:.9,duration:$t*.3,ease:"power2.in"},Ft+Ct)}),$.call(()=>{d&&d($.progress(),"ringsHold")},[],Xt);const Ci=v?`parliament parliament-${v}`:"parliament",ti=b.append("g").attr("class",Ci);n.seats.forEach((et,dt)=>{const bt=r.find(oe=>oe.label===et.category);if(!bt)return;const ct=Q+et.x,At=U+et.y;let Ct,ie,ae;et.ring===Yr?(Ct=ct,ie=At,ae=2):(Ct=ct,ie=At,ae=et.radius),ti.append("circle").attr("cx",Ct).attr("cy",ie).attr("r",ae).attr("fill",bt.color).attr("stroke",bt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${He(et.category)}`:`seat seat-${He(et.category)}`).attr("data-layout-index",dt).attr("data-ring",et.ring).attr("data-final-x",ct).attr("data-final-y",At).attr("data-final-r",et.radius)});const Ze=v?`.seat-${v}`:".seat",ei=ti.selectAll(Ze);$.to(Vr,{opacity:0,duration:Wt*.2,ease:"power3.out"},nr),$.to(ei.nodes(),{opacity:.8,duration:Wt*.3,ease:"power2.in"},nr+Wt*.25);const fn=ei.nodes(),fe=[],Be=[];fn.forEach(et=>{parseInt(et.getAttribute("data-ring")||"0")===Yr?fe.push(et):Be.push(et)});const Je=Wt*.2,Zr=Wt*.7;fe.forEach(et=>{const dt=parseFloat(et.getAttribute("data-final-r")||"4");$.to(et,{attr:{r:dt},opacity:1,duration:Zr*.6,ease:"power2.out"},nr+Je)}),Be.length>0&&$.to(Be,{opacity:1,duration:Zr*.5,ease:"power2.in"},nr+Je+Wt*.15);const hn=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const et=v?`.areas-${v}`:".areas",dt=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(et).remove(),e.selectAll(dt).remove(),Me(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const bt=v?`.parliament-label-${v}`:".parliament-label";if(e.select(bt).empty()){const At=s/2,Ct=n.radius+10,ie=u-n.radius*.3,ae=Math.max(Ct,ie),oe=v?`parliament-label parliament-label-${v}`:"parliament-label",ye=e.append("g").attr("class",oe).attr("transform",`translate(${At},${ae-n.radius*.15})`).style("opacity","0").style("pointer-events","none");ye.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"),ye.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 qe=ye.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");qe.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),qe.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")}hn()}),T.play()}function iL(e,t,r,n,i,a){const o=n/2,s=r.radius+10,u=i-r.radius*.3,l=Math.max(s,u);oE(e,r,t,{centerX:o,centerY:l,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function Ll(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=ee(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 Wf(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 m=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),v=m[m.length-1];if(!v)return;const _=v.substring(5),b=t.find(g=>He(g.label)===_);if(!b)return;const x=()=>{i(b.label);const g=Math.round(c.values[b.dataKey]||0),w=Zv(b.color),S={label:b.label,value:g,color:w};a&&a(S),Ll(e,S,o??!1,s??1,u),bs(e,b.label)};p.addEventListener("mouseenter",x),f.push({element:p,handler:x})});const h=()=>{i(null),a&&a(null),Ll(e,null,!1,1,u),bs(e,null)};return e.addEventListener("mouseleave",h),n&&bs(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 bs(e,t){const r=e.querySelectorAll(".seat"),n=t?He(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 uE=({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,axisLabelColor:l,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:d=4.5,animationDuration:m=900,onMorphComplete:v,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:g,hoveredCategory:w,maxSeats:S=500,showTooltip:A=!0,showTable:T=!1,showScaledIndicator:M=!0,parliamentTimestamp:P,enableBrush:E=!1,onTimeRangeChange:C,minAllowedTime:j,maxAllowedTime:k,timelineEvents:$=[],showTimeline:N=!1,timelineHeight:W=40,timelineOffset:z=35,brushColor:I="#69b3a2"})=>{const B=O.useRef(null),D=O.useCallback(J=>{g&&g(J)},[g]),F=e[e.length-1],X=F?t.reduce((J,U)=>J+(F.values[U.dataKey]||0),0):0,L=X>S,Y=L?Math.round(X/S):1,Z=N&&r==="stacked-area"?i+W+z:i,{isMorphing:H,currentMode:q,visibleMarkers:K,hoveredMarker:Q,hoveredTimelineEvent:R}=ZN({containerRef:B,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:u,axisLabelColor:l,formatDate:c,formatValue:f,markers:h,arcAngle:p,parliamentRadius:y,seatSize:d,animationDuration:m,onMorphComplete:v,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:D,hoveredCategory:w,maxSeats:S,parliamentTimestamp:P,enableBrush:E,onTimeRangeChange:C,minAllowedTime:j,maxAllowedTime:k,showScaleIndicator:M&&L,reposPerSeat:Y,timelineEvents:$,showTimeline:N,timelineHeight:W,timelineOffset:z,brushColor:I});return G.jsxs(tt.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[G.jsx("svg",{ref:B,viewBox:`0 0 ${n} ${Z}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),q==="area"&&K.map(J=>{const U=(J.x+a.left)/n*100,ot=a.top/i*100,yt=new Date(J.timestamp),st=c?c(J.timestamp):yt.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),ht=G.jsxs(tt.Box,{children:[G.jsx(tt.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:J.label?.5:0},children:st}),J.label&&G.jsx(tt.Box,{sx:{color:"white",fontWeight:500},children:J.label})]});return G.jsx(tt.Tooltip,{title:ht,open:(Q==null?void 0:Q.timestamp)===J.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:G.jsx(tt.Box,{sx:{position:"absolute",left:`${U}%`,top:`${ot}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},J.timestamp)}),R&&q==="area"&&G.jsx(tt.Tooltip,{title:G.jsxs(tt.Box,{children:[G.jsx(tt.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:c?c(R.timestamp):new Date(R.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),G.jsx(tt.Box,{sx:{color:"white",fontWeight:500},children:R.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:G.jsx(tt.Box,{sx:{position:"absolute",left:`${(R.x+a.left)/n*100}%`,top:`${(i+z+W/2)/Z*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),H&&G.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: ",q," → ",r]})]})},lE=[{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}],Jv=({repositoryCount:e})=>{const t=lE.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)},Qv=({repositoryCount:e})=>{const t=lE.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 Pu{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Pu.prototype.normal={};Pu.prototype.property={};Pu.prototype.space=void 0;function cE(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Pu(r,n,t)}function Ws(e){return e.toLowerCase()}class gr{constructor(t,r){this.attribute=r,this.property=t}}gr.prototype.attribute="";gr.prototype.booleanish=!1;gr.prototype.boolean=!1;gr.prototype.commaOrSpaceSeparated=!1;gr.prototype.commaSeparated=!1;gr.prototype.defined=!1;gr.prototype.mustUseProperty=!1;gr.prototype.number=!1;gr.prototype.overloadedBoolean=!1;gr.prototype.property="";gr.prototype.spaceSeparated=!1;gr.prototype.space=void 0;let aL=0;const wt=ga(),ve=ga(),Ly=ga(),nt=ga(),Vt=ga(),za=ga(),_r=ga();function ga(){return 2**++aL}const By=Object.freeze(Object.defineProperty({__proto__:null,boolean:wt,booleanish:ve,commaOrSpaceSeparated:_r,commaSeparated:za,number:nt,overloadedBoolean:Ly,spaceSeparated:Vt},Symbol.toStringTag,{value:"Module"})),Hf=Object.keys(By);class t0 extends gr{constructor(t,r,n,i){let a=-1;if(super(t,r),nx(this,"space",i),typeof n=="number")for(;++a<Hf.length;){const o=Hf[a];nx(this,Hf[a],(n&By[o])===By[o])}}}t0.prototype.defined=!0;function nx(e,t,r){r&&(e[t]=r)}function Mo(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new t0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Ws(n)]=n,r[Ws(a.attribute)]=n}return new Pu(t,r,e.space)}const fE=Mo({properties:{ariaActiveDescendant:null,ariaAtomic:ve,ariaAutoComplete:null,ariaBusy:ve,ariaChecked:ve,ariaColCount:nt,ariaColIndex:nt,ariaColSpan:nt,ariaControls:Vt,ariaCurrent:null,ariaDescribedBy:Vt,ariaDetails:null,ariaDisabled:ve,ariaDropEffect:Vt,ariaErrorMessage:null,ariaExpanded:ve,ariaFlowTo:Vt,ariaGrabbed:ve,ariaHasPopup:null,ariaHidden:ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Vt,ariaLevel:nt,ariaLive:null,ariaModal:ve,ariaMultiLine:ve,ariaMultiSelectable:ve,ariaOrientation:null,ariaOwns:Vt,ariaPlaceholder:null,ariaPosInSet:nt,ariaPressed:ve,ariaReadOnly:ve,ariaRelevant:null,ariaRequired:ve,ariaRoleDescription:Vt,ariaRowCount:nt,ariaRowIndex:nt,ariaRowSpan:nt,ariaSelected:ve,ariaSetSize:nt,ariaSort:null,ariaValueMax:nt,ariaValueMin:nt,ariaValueNow:nt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hE(e,t){return t in e?e[t]:t}function pE(e,t){return hE(e,t.toLowerCase())}const oL=Mo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:za,acceptCharset:Vt,accessKey:Vt,action:null,allow:null,allowFullScreen:wt,allowPaymentRequest:wt,allowUserMedia:wt,alt:null,as:null,async:wt,autoCapitalize:null,autoComplete:Vt,autoFocus:wt,autoPlay:wt,blocking:Vt,capture:null,charSet:null,checked:wt,cite:null,className:Vt,cols:nt,colSpan:null,content:null,contentEditable:ve,controls:wt,controlsList:Vt,coords:nt|za,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wt,defer:wt,dir:null,dirName:null,disabled:wt,download:Ly,draggable:ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wt,formTarget:null,headers:Vt,height:nt,hidden:Ly,high:nt,href:null,hrefLang:null,htmlFor:Vt,httpEquiv:Vt,id:null,imageSizes:null,imageSrcSet:null,inert:wt,inputMode:null,integrity:null,is:null,isMap:wt,itemId:null,itemProp:Vt,itemRef:Vt,itemScope:wt,itemType:Vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wt,low:nt,manifest:null,max:null,maxLength:nt,media:null,method:null,min:null,minLength:nt,multiple:wt,muted:wt,name:null,nonce:null,noModule:wt,noValidate:wt,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:wt,optimum:nt,pattern:null,ping:Vt,placeholder:null,playsInline:wt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wt,referrerPolicy:null,rel:Vt,required:wt,reversed:wt,rows:nt,rowSpan:nt,sandbox:Vt,scope:null,scoped:wt,seamless:wt,selected:wt,shadowRootClonable:wt,shadowRootDelegatesFocus:wt,shadowRootMode:null,shape:null,size:nt,sizes:null,slot:null,span:nt,spellCheck:ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nt,step:null,style:null,tabIndex:nt,target:null,title:null,translate:null,type:null,typeMustMatch:wt,useMap:null,value:ve,width:nt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Vt,axis:null,background:null,bgColor:null,border:nt,borderColor:null,bottomMargin:nt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wt,declare:wt,event:null,face:null,frame:null,frameBorder:null,hSpace:nt,leftMargin:nt,link:null,longDesc:null,lowSrc:null,marginHeight:nt,marginWidth:nt,noResize:wt,noHref:wt,noShade:wt,noWrap:wt,object:null,profile:null,prompt:null,rev:null,rightMargin:nt,rules:null,scheme:null,scrolling:ve,standby:null,summary:null,text:null,topMargin:nt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:wt,disableRemotePlayback:wt,prefix:null,property:null,results:nt,security:null,unselectable:null},space:"html",transform:pE}),sL=Mo({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:_r,accentHeight:nt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nt,amplitude:nt,arabicForm:null,ascent:nt,attributeName:null,attributeType:null,azimuth:nt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nt,by:null,calcMode:null,capHeight:nt,className:Vt,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:nt,diffuseConstant:nt,direction:null,display:null,dur:null,divisor:nt,dominantBaseline:null,download:wt,dx:null,dy:null,edgeMode:null,editable:null,elevation:nt,enableBackground:null,end:null,event:null,exponent:nt,externalResourcesRequired:null,fill:null,fillOpacity:nt,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:za,g2:za,glyphName:za,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nt,horizOriginX:nt,horizOriginY:nt,id:null,ideographic:nt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nt,k:nt,k1:nt,k2:nt,k3:nt,k4:nt,kernelMatrix:_r,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nt,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:nt,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:nt,overlineThickness:nt,paintOrder:null,panose1:null,path:null,pathLength:nt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nt,pointsAtY:nt,pointsAtZ:nt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_r,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_r,rev:_r,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_r,requiredFeatures:_r,requiredFonts:_r,requiredFormats:_r,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:nt,specularExponent:nt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nt,strikethroughThickness:nt,string:null,stroke:null,strokeDashArray:_r,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nt,strokeOpacity:nt,strokeWidth:null,style:null,surfaceScale:nt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_r,tabIndex:nt,tableValues:null,target:null,targetX:nt,targetY:nt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_r,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nt,underlineThickness:nt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nt,values:null,vAlphabetic:nt,vMathematical:nt,vectorEffect:null,vHanging:nt,vIdeographic:nt,version:null,vertAdvY:nt,vertOriginX:nt,vertOriginY:nt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hE}),dE=Mo({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()}}),mE=Mo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pE}),yE=Mo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),uL=/[A-Z]/g,ix=/-[a-z]/g,lL=/^data[-\w.:]+$/i;function gE(e,t){const r=Ws(t);let n=t,i=gr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&lL.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ix,fL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ix.test(a)){let o=a.replace(uL,cL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=t0}return new i(n,t)}function cL(e){return"-"+e.toLowerCase()}function fL(e){return e.charAt(1).toUpperCase()}const vE=cE([fE,oL,dE,mE,yE],"html"),e0=cE([fE,sL,dE,mE,yE],"svg");function ax(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 hL(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const ox=/[#.]/g;function pL(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){ox.lastIndex=i;const s=ox.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 sx(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function dL(e){return e.join(" ").trim()}function bE(e,t,r){const n=r?vL(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=pL(a,t);const l=u.tagName.toLowerCase(),c=n?n.get(l):void 0;if(u.tagName=c||l,mL(o))s.unshift(o);else for(const[f,h]of Object.entries(o))yL(e,u.properties,f,h)}for(const l of s)qy(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function mL(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 yL(e,t,r,n){const i=gE(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=sx(n):i.commaSeparated?a=ax(n):i.commaOrSpaceSeparated?a=sx(ax(n).join(" ")):a=ux(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?gL(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(ux(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function qy(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)qy(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?qy(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ux(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Ws(r)===Ws(t)))return!0}return r}function gL(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function vL(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const bL=["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"];bE(vE,"div");const Eu=bE(e0,"g",bL),xE=(e=Eu)=>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:dr.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:dr.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:dr.neoGrey[400],"stroke-width":.5})]),_E=(e=Eu)=>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})]),wE=(e=Eu)=>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})]),zt={greyHatch:{background:dr.neoGrey[200],lines:dr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},xL=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>G.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:G.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:[G.jsx("thead",{children:G.jsxs(tt.TableRow,{children:[G.jsx(tt.TableCell,{}),G.jsx(tt.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?G.jsxs(G.Fragment,{children:[G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):G.jsxs(G.Fragment,{children:[G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),G.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?zt.noLstHatch.lines:a.color;return G.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:[G.jsx(tt.TableCell,{align:"center",sx:{width:20},children:G.jsx(tt.Box,{sx:{width:n==="historical"?4:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?zt.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?zt.noLstHatch.background:a.color,borderRadius:n==="historical"?2:"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,
@@ -30,13 +30,13 @@
30
30
  transparent 3px,
31
31
  ${zt.noLstHatch.lines} 3px,
32
32
  ${zt.noLstHatch.lines} 4px
33
- )`,borderRadius:n==="historical"?2:"50%"}}}})}),G.jsx(tt.TableCell,{children:G.jsxs(tt.Stack,{direction:"row",alignItems:"center",gap:.5,children:[G.jsx("span",{children:a.label}),a.tooltip&&G.jsx(tt.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:G.jsx(HO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?G.jsxs(G.Fragment,{children:[G.jsx(tt.TableCell,{align:"right",children:a.value}),G.jsxs(tt.TableCell,{align:"right",children:[a.percentage,"%"]})]}):G.jsxs(G.Fragment,{children:[G.jsx(tt.TableCell,{align:"right",children:a.value}),G.jsx(tt.TableCell,{align:"right",children:a.max??"-"}),G.jsx(tt.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),h_={"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,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),d={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:h_[f.label]};if(u){const m=u.get(f.id);m&&(d.max=m.max,d.min=m.min)}return d}),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,d=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(d),color:h.color,tooltip:h_[h.label]})}}}return[...l,...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:u,minAllowedTime:l,maxAllowedTime:c,enableBrush:f=!1,showLegend:h=!0,showTooltip:p=!0,showGrid:y=!0,axisLabelColor:d,enableAnimation:m=!0,animationDuration:v=5439,disableTimeline:x=!1,formatDate:b,formatValue:_,onAnimationStateChange:g,onTimelineReady:w,onAnimationProgress:S,brushColor:A="#69b3a2"})=>{CL(e);const[T,M]=O.useState(null),[P,E]=O.useState(!0),C=O.useRef("historical"),j=O.useRef(void 0),k=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),$=O.useMemo(()=>{var U;let J;return t!==void 0&&e.timeSeries[t]?(J=e.timeSeries[t].timestamp,j.current=J):C.current==="point-in-time"&&k==="historical"&&j.current!==void 0?J=j.current:J=(U=e.timeSeries[e.timeSeries.length-1])==null?void 0:U.timestamp,C.current=k,J},[t,e.timeSeries,k]),N=e.timeSeries[0].timestamp,W=e.timeSeries[e.timeSeries.length-1].timestamp,[z,I]=O.useState([N,W]),B=s??z,D=O.useCallback(J=>{const U=[l!==void 0?Math.max(J[0],l):J[0],c!==void 0?Math.min(J[1],c):J[1]];u?u(U):I(U)},[u,l,c]);O.useEffect(()=>{M(null)},[k]);const F=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),X=O.useMemo(()=>EL(e),[e]),L=O.useMemo(()=>PL(e,k),[e,k]),Y=O.useMemo(()=>{const J=e.timeSeries[e.timeSeries.length-1];return J?Object.values(J.values).reduce((U,ot)=>U+ot,0):0},[e.timeSeries]),Z=O.useMemo(()=>Qv({repositoryCount:Y}),[Y]),H=O.useMemo(()=>t0({repositoryCount:Y}),[Y]),q=O.useMemo(()=>{const J=o-F.top-F.bottom;return Math.round(J*.9)},[o,F]),K=O.useMemo(()=>e.events?e.events.map(J=>({timestamp:J.timestamp,label:J.eventName,color:typeof J.color=="string"?J.color:"#2F42FF"})):[],[e.events]),Q=O.useCallback(J=>{if(J){const U=e.categories.find(ot=>ot.label===J.label);M((U==null?void 0:U.id)??null)}else M(null)},[e.categories]),R=O.useCallback(J=>{E(!J),g&&g(J)},[g]);return G.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&G.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&G.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&G.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),G.jsx(tt.Box,{sx:{position:"relative",width:"100%"},children:G.jsx(hE,{data:X.data,categories:X.categories,mode:k==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:B,onTimeRangeChange:D,minAllowedTime:l,maxAllowedTime:c,enableBrush:f,showGrid:y,showAxes:!0,axisLabelColor:d,margin:F,markers:K,formatDate:b,formatValue:_,animationDuration:v,onAnimationStateChange:R,onTimelineReady:w,onAnimationProgress:S,onHoveredDataChange:Q,hoveredCategory:T,arcAngle:Z,parliamentRadius:q,seatSize:H,parliamentTimestamp:$,timelineEvents:e.events??[],showTimeline:k==="historical"&&!x,brushColor:A})}),G.jsx(TL,{categories:L,activeCategory:T,onCategoryHover:M,mode:k,visible:P})]})},ML=({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:d=[],markerVisibilityMode:m="hover",onMarkerHoverChange:v})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const x=ee(e.current),b=n-a.left-a.right,_=i-a.top-a.bottom;x.selectAll("*").remove();const g=x.append("g").attr("transform",`translate(${a.left},${a.top})`),w=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;x.append("defs").append("clipPath").attr("id",w).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",_);const S=g.append("g").attr("clip-path",`url(#${w})`),A=[...t].sort((D,F)=>D.timestamp-F.timestamp),T=r.map(D=>D.dataKey),M=Ml().keys(T),P=M(A),E=t.map(D=>D.timestamp),C=o?o[0]:Math.min(...E),j=o?o[1]:Math.max(...E),k=Al().domain([new Date(C),new Date(j)]).range([0,b]),$=A.filter(D=>D.timestamp>=C&&D.timestamp<=j),N=M($),W=N.length>0?Math.max(...N[N.length-1].map(D=>D[1]??0)):0,z=aa().domain([0,W*1.1]).range([_,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Cs(k).ticks(6).tickSize(_).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ms(z).ticks(5).tickSize(-b).tickFormat(()=>"")));const I=Ui().x(D=>k(new Date(D.data.timestamp))).y0(D=>z(D[0])).y1(D=>z(D[1])).curve(xI.alpha(.5)),B=S.append("g").attr("class","areas");if(P.forEach((D,F)=>{const X=r[F];if(!X)return;const L=B.append("path").datum(D).attr("class",`area area-${X.dataKey}`).attr("fill",X.color).attr("fill-opacity",X.fillOpacity??.7).attr("stroke",X.color).attr("stroke-width",X.strokeWidth??1.5).attr("d",I);X.strokeDasharray&&L.attr("stroke-dasharray",X.strokeDasharray)}),d.length>0){const D=S.append("g").attr("class","markers"),F=m==="hover"?0:.6,X=d.filter(L=>L.timestamp>=C&&L.timestamp<=j).map(L=>({...L,x:k(new Date(L.timestamp))}));if(X.forEach(L=>{const Y=D.append("line").attr("class","marker-line").attr("data-timestamp",L.timestamp).attr("x1",L.x).attr("x2",L.x).attr("y1",0).attr("y2",_).attr("stroke",L.color??"#131E7A").attr("stroke-width",2).attr("opacity",F);L.strokeDasharray&&Y.attr("stroke-dasharray",L.strokeDasharray),L.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",L.timestamp).attr("x",L.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",L.color??"#131E7A").attr("opacity",F).text(L.label)}),m==="hover"&&X.length>0){const L=x.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),Y=L.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=L.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let H=null;const q=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",_).attr("fill","none").attr("pointer-events","all"),K=Q=>{let R=null,J=1/0;if(X.forEach(ne=>{const $t=Math.abs(Q-ne.x);$t<J&&(J=$t,R=ne)}),!R||J>50)return H!==null&&(H=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),L.style("display","none"),v==null||v(!1)),!1;const ot=R;if(H===null&&(v==null||v(!0)),H===ot.timestamp)return!0;H=ot.timestamp,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),D.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(ot.timestamp)}).attr("opacity",.6),D.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(ot.timestamp)}).attr("opacity",1);const yt=new Date(ot.timestamp),st=p?p(ot.timestamp):yt.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),ht=ot.label?`${ot.label}: ${st}`:st;Z.text(ht);const ft=Z.node().getBBox(),Ot=8,at=ft.width+Ot*2,pt=ft.height+Ot*2;Y.attr("width",at).attr("height",pt);let St=ot.x-at/2;const qt=10;return St<0?St=0:St+at>b&&(St=b-at),L.attr("transform",`translate(${a.left+St},${a.top+qt})`),Z.attr("x",at/2).attr("y",pt/2+4),L.style("display","block"),!0};q.on("mousemove",function(Q){const[R]=ks(Q,this);K(R)&&Q.stopPropagation()}),q.on("mouseleave",function(){H=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),L.style("display","none"),v==null||v(!1)})}}if(u){const D=Cs(k).ticks(6);p&&D.tickFormat(F=>p(+F)),g.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${_})`).call(D).selectAll("text").attr("font-size",11)}if(l){const D=Ms(z).ticks(5);y&&D.tickFormat(F=>y(+F)),g.append("g").attr("class","axis axis-y").call(D).selectAll("text").attr("font-size",11)}if(c&&h){const D=Pc().extent([[0,0],[b,_]]).on("end",X=>{if(!X.selection)return;const[L,Y]=X.selection,Z=[+k.invert(L),+k.invert(Y)];h(Z),f&&x.select(".brush").call(D.move,null)}),F=S.append("g").attr("class","brush").call(D);F.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),F.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{x.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,u,l,c,f,h,p,y,d,m,v])},kL=({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:d,formatValue:m,onTimeRangeChange:v,enableBrush:x=!1,zoomToSelection:b=!1,markers:_=[],markerVisibilityMode:g="hover"})=>{const w=O.useRef(null),[S,A]=O.useState(null),[T,M]=O.useState(!1);O.useEffect(()=>{T&&A(null)},[T]),ML({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:x,zoomToSelection:b,onTimeRangeChange:v,formatDate:d,formatValue:m,markers:_,markerVisibilityMode:g,onMarkerHoverChange:M});const C=k=>{if(!o||!w.current||T)return;const $=w.current.getBoundingClientRect(),N=k.clientX-$.left-l.left,W=k.clientY-$.top,z=s-l.left-l.right;if(N<0||N>z){A(null);return}const I=e.map(K=>K.timestamp),B=c?c[0]:Math.min(...I),D=c?c[1]:Math.max(...I),F=N/z*(D-B)+B,L=((K,Q)=>{let R=0,J=K.length;for(;R<J;){const U=R+J>>>1;K[U]<Q?R=U+1:J=U}return R})(I,F),Y=e[L-1],Z=e[L];let H=Z;if(Y&&Z?H=F-Y.timestamp>Z.timestamp-F?Z:Y:Y&&(H=Y),!H){A(null);return}const q=t.map(K=>({label:K.label,value:H[K.dataKey]??0,color:K.color}));A({visible:!0,x:k.clientX-$.left,y:W,timestamp:H.timestamp,values:q})},j=()=>{o&&A(null)};return G.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&G.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&G.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&G.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),G.jsxs(tt.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[G.jsx("svg",{ref:w,viewBox:`0 0 ${s} ${u}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:C,onMouseLeave:j}),o&&S&&S.visible&&G.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:[G.jsx(tt.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:d?d(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),G.jsx(tt.Stack,{spacing:.5,sx:{mt:1},children:S.values.map(k=>G.jsxs(tt.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[G.jsxs(tt.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[G.jsx(tt.Box,{sx:{width:8,height:8,backgroundColor:k.color,borderRadius:"50%"}}),G.jsxs(tt.Typography,{variant:"caption",children:[k.label,":"]})]}),G.jsx(tt.Typography,{variant:"caption",sx:{fontWeight:600},children:m?m(k.value):k.value})]},k.label))})]})]}),a&&G.jsx(tt.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map(k=>G.jsxs(tt.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[G.jsx(tt.Box,{sx:{width:16,height:16,backgroundColor:k.color,opacity:k.fillOpacity??.7,border:`2px solid ${k.color}`,borderRadius:"2px",...k.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
33
+ )`,borderRadius:n==="historical"?2:"50%"}}}})}),G.jsx(tt.TableCell,{children:G.jsxs(tt.Stack,{direction:"row",alignItems:"center",gap:.5,children:[G.jsx("span",{children:a.label}),a.tooltip&&G.jsx(tt.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:G.jsx(zO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?G.jsxs(G.Fragment,{children:[G.jsx(tt.TableCell,{align:"right",children:a.value}),G.jsxs(tt.TableCell,{align:"right",children:[a.percentage,"%"]})]}):G.jsxs(G.Fragment,{children:[G.jsx(tt.TableCell,{align:"right",children:a.value}),G.jsx(tt.TableCell,{align:"right",children:a.max??"-"}),G.jsx(tt.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),lx={"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."},_L=(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),d={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:lx[f.label]};if(u){const m=u.get(f.id);m&&(d.max=m.max,d.min=m.min)}return d}),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,d=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(d),color:h.color,tooltip:lx[h.label]})}}}return[...l,...c]},wL=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}},SL=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`)}},SE=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:u,minAllowedTime:l,maxAllowedTime:c,enableBrush:f=!1,showLegend:h=!0,showTooltip:p=!0,showGrid:y=!0,axisLabelColor:d,enableAnimation:m=!0,animationDuration:v=5439,disableTimeline:_=!1,formatDate:b,formatValue:x,onAnimationStateChange:g,onTimelineReady:w,onAnimationProgress:S,brushColor:A="#69b3a2"})=>{SL(e);const[T,M]=O.useState(null),[P,E]=O.useState(!0),C=O.useRef("historical"),j=O.useRef(void 0),k=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),$=O.useMemo(()=>{var U;let J;return t!==void 0&&e.timeSeries[t]?(J=e.timeSeries[t].timestamp,j.current=J):C.current==="point-in-time"&&k==="historical"&&j.current!==void 0?J=j.current:J=(U=e.timeSeries[e.timeSeries.length-1])==null?void 0:U.timestamp,C.current=k,J},[t,e.timeSeries,k]),N=e.timeSeries[0].timestamp,W=e.timeSeries[e.timeSeries.length-1].timestamp,[z,I]=O.useState([N,W]),B=s??z,D=O.useCallback(J=>{const U=[l!==void 0?Math.max(J[0],l):J[0],c!==void 0?Math.min(J[1],c):J[1]];u?u(U):I(U)},[u,l,c]);O.useEffect(()=>{M(null)},[k]);const F=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),X=O.useMemo(()=>wL(e),[e]),L=O.useMemo(()=>_L(e,k),[e,k]),Y=O.useMemo(()=>{const J=e.timeSeries[e.timeSeries.length-1];return J?Object.values(J.values).reduce((U,ot)=>U+ot,0):0},[e.timeSeries]),Z=O.useMemo(()=>Jv({repositoryCount:Y}),[Y]),H=O.useMemo(()=>Qv({repositoryCount:Y}),[Y]),q=O.useMemo(()=>{const J=o-F.top-F.bottom;return Math.round(J*.9)},[o,F]),K=O.useMemo(()=>e.events?e.events.map(J=>({timestamp:J.timestamp,label:J.eventName,color:typeof J.color=="string"?J.color:"#2F42FF"})):[],[e.events]),Q=O.useCallback(J=>{if(J){const U=e.categories.find(ot=>ot.label===J.label);M((U==null?void 0:U.id)??null)}else M(null)},[e.categories]),R=O.useCallback(J=>{E(!J),g&&g(J)},[g]);return G.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&G.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&G.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&G.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),G.jsx(tt.Box,{sx:{position:"relative",width:"100%"},children:G.jsx(uE,{data:X.data,categories:X.categories,mode:k==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:B,onTimeRangeChange:D,minAllowedTime:l,maxAllowedTime:c,enableBrush:f,showGrid:y,showAxes:!0,axisLabelColor:d,margin:F,markers:K,formatDate:b,formatValue:x,animationDuration:v,onAnimationStateChange:R,onTimelineReady:w,onAnimationProgress:S,onHoveredDataChange:Q,hoveredCategory:T,arcAngle:Z,parliamentRadius:q,seatSize:H,parliamentTimestamp:$,timelineEvents:e.events??[],showTimeline:k==="historical"&&!_,brushColor:A})}),G.jsx(xL,{categories:L,activeCategory:T,onCategoryHover:M,mode:k,visible:P})]})},AL=({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:d=[],markerVisibilityMode:m="hover",onMarkerHoverChange:v})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const _=ee(e.current),b=n-a.left-a.right,x=i-a.top-a.bottom;_.selectAll("*").remove();const g=_.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=g.append("g").attr("clip-path",`url(#${w})`),A=[...t].sort((D,F)=>D.timestamp-F.timestamp),T=r.map(D=>D.dataKey),M=Ml().keys(T),P=M(A),E=t.map(D=>D.timestamp),C=o?o[0]:Math.min(...E),j=o?o[1]:Math.max(...E),k=Al().domain([new Date(C),new Date(j)]).range([0,b]),$=A.filter(D=>D.timestamp>=C&&D.timestamp<=j),N=M($),W=N.length>0?Math.max(...N[N.length-1].map(D=>D[1]??0)):0,z=oa().domain([0,W*1.1]).range([x,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Cs(k).ticks(6).tickSize(x).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ms(z).ticks(5).tickSize(-b).tickFormat(()=>"")));const I=Wi().x(D=>k(new Date(D.data.timestamp))).y0(D=>z(D[0])).y1(D=>z(D[1])).curve(vi),B=S.append("g").attr("class","areas");if(P.forEach((D,F)=>{const X=r[F];if(!X)return;const L=B.append("path").datum(D).attr("class",`area area-${X.dataKey}`).attr("fill",X.color).attr("fill-opacity",X.fillOpacity??.7).attr("stroke",X.color).attr("stroke-width",X.strokeWidth??1.5).attr("d",I);X.strokeDasharray&&L.attr("stroke-dasharray",X.strokeDasharray)}),d.length>0){const D=S.append("g").attr("class","markers"),F=m==="hover"?0:.6,X=d.filter(L=>L.timestamp>=C&&L.timestamp<=j).map(L=>({...L,x:k(new Date(L.timestamp))}));if(X.forEach(L=>{const Y=D.append("line").attr("class","marker-line").attr("data-timestamp",L.timestamp).attr("x1",L.x).attr("x2",L.x).attr("y1",0).attr("y2",x).attr("stroke",L.color??"#131E7A").attr("stroke-width",2).attr("opacity",F);L.strokeDasharray&&Y.attr("stroke-dasharray",L.strokeDasharray),L.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",L.timestamp).attr("x",L.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",L.color??"#131E7A").attr("opacity",F).text(L.label)}),m==="hover"&&X.length>0){const L=_.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),Y=L.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=L.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let H=null;const q=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",x).attr("fill","none").attr("pointer-events","all"),K=Q=>{let R=null,J=1/0;if(X.forEach(ne=>{const $t=Math.abs(Q-ne.x);$t<J&&(J=$t,R=ne)}),!R||J>50)return H!==null&&(H=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),L.style("display","none"),v==null||v(!1)),!1;const ot=R;if(H===null&&(v==null||v(!0)),H===ot.timestamp)return!0;H=ot.timestamp,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),D.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(ot.timestamp)}).attr("opacity",.6),D.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(ot.timestamp)}).attr("opacity",1);const yt=new Date(ot.timestamp),st=p?p(ot.timestamp):yt.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),ht=ot.label?`${ot.label}: ${st}`:st;Z.text(ht);const ft=Z.node().getBBox(),Ot=8,at=ft.width+Ot*2,pt=ft.height+Ot*2;Y.attr("width",at).attr("height",pt);let St=ot.x-at/2;const qt=10;return St<0?St=0:St+at>b&&(St=b-at),L.attr("transform",`translate(${a.left+St},${a.top+qt})`),Z.attr("x",at/2).attr("y",pt/2+4),L.style("display","block"),!0};q.on("mousemove",function(Q){const[R]=ks(Q,this);K(R)&&Q.stopPropagation()}),q.on("mouseleave",function(){H=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),L.style("display","none"),v==null||v(!1)})}}if(u){const D=Cs(k).ticks(6);p&&D.tickFormat(F=>p(+F)),g.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${x})`).call(D).selectAll("text").attr("font-size",11)}if(l){const D=Ms(z).ticks(5);y&&D.tickFormat(F=>y(+F)),g.append("g").attr("class","axis axis-y").call(D).selectAll("text").attr("font-size",11)}if(c&&h){const D=Pc().extent([[0,0],[b,x]]).on("end",X=>{if(!X.selection)return;const[L,Y]=X.selection,Z=[+k.invert(L),+k.invert(Y)];h(Z),f&&_.select(".brush").call(D.move,null)}),F=S.append("g").attr("class","brush").call(D);F.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),F.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,d,m,v])},OL=({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:d,formatValue:m,onTimeRangeChange:v,enableBrush:_=!1,zoomToSelection:b=!1,markers:x=[],markerVisibilityMode:g="hover"})=>{const w=O.useRef(null),[S,A]=O.useState(null),[T,M]=O.useState(!1);O.useEffect(()=>{T&&A(null)},[T]),AL({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:v,formatDate:d,formatValue:m,markers:x,markerVisibilityMode:g,onMarkerHoverChange:M});const C=k=>{if(!o||!w.current||T)return;const $=w.current.getBoundingClientRect(),N=k.clientX-$.left-l.left,W=k.clientY-$.top,z=s-l.left-l.right;if(N<0||N>z){A(null);return}const I=e.map(K=>K.timestamp),B=c?c[0]:Math.min(...I),D=c?c[1]:Math.max(...I),F=N/z*(D-B)+B,L=((K,Q)=>{let R=0,J=K.length;for(;R<J;){const U=R+J>>>1;K[U]<Q?R=U+1:J=U}return R})(I,F),Y=e[L-1],Z=e[L];let H=Z;if(Y&&Z?H=F-Y.timestamp>Z.timestamp-F?Z:Y:Y&&(H=Y),!H){A(null);return}const q=t.map(K=>({label:K.label,value:H[K.dataKey]??0,color:K.color}));A({visible:!0,x:k.clientX-$.left,y:W,timestamp:H.timestamp,values:q})},j=()=>{o&&A(null)};return G.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&G.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&G.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&G.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),G.jsxs(tt.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[G.jsx("svg",{ref:w,viewBox:`0 0 ${s} ${u}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:C,onMouseLeave:j}),o&&S&&S.visible&&G.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:[G.jsx(tt.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:d?d(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),G.jsx(tt.Stack,{spacing:.5,sx:{mt:1},children:S.values.map(k=>G.jsxs(tt.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[G.jsxs(tt.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[G.jsx(tt.Box,{sx:{width:8,height:8,backgroundColor:k.color,borderRadius:"50%"}}),G.jsxs(tt.Typography,{variant:"caption",children:[k.label,":"]})]}),G.jsx(tt.Typography,{variant:"caption",sx:{fontWeight:600},children:m?m(k.value):k.value})]},k.label))})]})]}),a&&G.jsx(tt.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map(k=>G.jsxs(tt.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[G.jsx(tt.Box,{sx:{width:16,height:16,backgroundColor:k.color,opacity:k.fillOpacity??.7,border:`2px solid ${k.color}`,borderRadius:"2px",...k.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
34
34
  45deg,
35
35
  transparent,
36
36
  transparent 4px,
37
37
  ${k.color} 4px,
38
38
  ${k.color} 8px
39
- )`}}}),G.jsx(tt.Typography,{variant:"body2",children:k.label})]},k.dataKey))})]})},$L=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],p_={}.hasOwnProperty;function jL(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&p_.call(i,e)){const u=String(i[e]);o=p_.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 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,d_=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=d_.get(e);return t||(t=qL(e),d_.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"],Gf={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,Fy={};let Uu;for(Uu in Gf)EE.call(Gf,Uu)&&(Fy[Gf[Uu]]=Uu);const KL=/[^\dA-Za-z]/;function XL(e,t,r,n){const i=String.fromCharCode(e);if(EE.call(Fy,i)){const a=Fy[i],o="&"+a;return r&&HL.includes(a)&&!GL.includes(a)&&(!n||t&&t!==61&&KL.test(String.fromCharCode(t)))?o:o+";"}return""}function YL(e,t,r){let n=zL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=XL(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 Ua(e,t){return LL(e,Object.assign({format:YL},t))}const VL=/^>|^->|<!--|-->|--!>|<!-$/g,ZL=[">"],JL=["<",">"];function QL(e,t,r,n){return n.settings.bogusComments?"<?"+Ua(e.value,Object.assign({},n.settings.characterReferences,{subset:ZL}))+">":"<!--"+e.value.replace(VL,i)+"-->";function i(a){return Ua(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 m_(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 n0(e){return typeof e=="object"?e.type==="text"?y_(e.value):!1:y_(e)}function y_(e){return e.replace(eB,"")===""}const Ce=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&&n0(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 i0=kE({body:aB,caption:Kf,colgroup:Kf,dd:lB,dt:uB,head:Kf,html:iB,li:sB,optgroup:cB,option:fB,p:oB,rp:g_,rt:g_,tbody:pB,td:v_,tfoot:dB,th:v_,thead:hB,tr:mB});function Kf(e,t,r){const n=Ce(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&n0(n.value.charAt(0)))}function iB(e,t,r){const n=Ce(r,t);return!n||n.type!=="comment"}function aB(e,t,r){const n=Ce(r,t);return!n||n.type!=="comment"}function oB(e,t,r){const n=Ce(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=Ce(r,t);return!n||n.type==="element"&&n.tagName==="li"}function uB(e,t,r){const n=Ce(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function lB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function g_(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function cB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function fB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function hB(e,t,r){const n=Ce(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function pB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function dB(e,t,r){return!Ce(r,t)}function mB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function v_(e,t,r){const n=Ce(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=Ce(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=Ce(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&n0(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=Ce(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&i0(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=Ce(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&i0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Wu={name:[[`
39
+ )`}}}),G.jsx(tt.Typography,{variant:"body2",children:k.label})]},k.dataKey))})]})},TL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],cx={}.hasOwnProperty;function PL(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&cx.call(i,e)){const u=String(i[e]);o=cx.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,CL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ML=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,kL=/[|\\{}()[\]^$+*?.]/g,fx=new WeakMap;function $L(e,t){if(e=e.replace(t.subset?jL(t.subset):EL,n),t.subset||t.escapeOnly)return e;return e.replace(CL,r).replace(ML,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 jL(e){let t=fx.get(e);return t||(t=RL(e),fx.set(e,t)),t}function RL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(kL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const DL=/[\dA-Fa-f]/;function IL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!DL.test(String.fromCharCode(t))?n:n+";"}const NL=/\d/;function LL(e,t,r){const n="&#"+String(e);return r&&t&&!NL.test(String.fromCharCode(t))?n:n+";"}const BL=["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"],Gf={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:"€"},qL=["cent","copy","divide","gt","lt","not","para","times"],AE={}.hasOwnProperty,Fy={};let Uu;for(Uu in Gf)AE.call(Gf,Uu)&&(Fy[Gf[Uu]]=Uu);const FL=/[^\dA-Za-z]/;function zL(e,t,r,n){const i=String.fromCharCode(e);if(AE.call(Fy,i)){const a=Fy[i],o="&"+a;return r&&BL.includes(a)&&!qL.includes(a)&&(!n||t&&t!==61&&FL.test(String.fromCharCode(t)))?o:o+";"}return""}function UL(e,t,r){let n=IL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=zL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=LL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Ua(e,t){return $L(e,Object.assign({format:UL},t))}const WL=/^>|^->|<!--|-->|--!>|<!-$/g,HL=[">"],GL=["<",">"];function KL(e,t,r,n){return n.settings.bogusComments?"<?"+Ua(e.value,Object.assign({},n.settings.characterReferences,{subset:HL}))+">":"<!--"+e.value.replace(WL,i)+"-->";function i(a){return Ua(a,Object.assign({},n.settings.characterReferences,{subset:GL}))}}function XL(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function hx(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 YL=/[ \t\n\f\r]/g;function r0(e){return typeof e=="object"?e.type==="text"?px(e.value):!1:px(e)}function px(e){return e.replace(YL,"")===""}const Ce=TE(1),OE=TE(-1),VL=[];function TE(e){return t;function t(r,n,i){const a=r?r.children:VL;let o=(n||0)+e,s=a[o];if(!i)for(;s&&r0(s);)o+=e,s=a[o];return s}}const ZL={}.hasOwnProperty;function PE(e){return t;function t(r,n,i){return ZL.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const n0=PE({body:QL,caption:Kf,colgroup:Kf,dd:nB,dt:rB,head:Kf,html:JL,li:eB,optgroup:iB,option:aB,p:tB,rp:dx,rt:dx,tbody:sB,td:mx,tfoot:uB,th:mx,thead:oB,tr:lB});function Kf(e,t,r){const n=Ce(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&r0(n.value.charAt(0)))}function JL(e,t,r){const n=Ce(r,t);return!n||n.type!=="comment"}function QL(e,t,r){const n=Ce(r,t);return!n||n.type!=="comment"}function tB(e,t,r){const n=Ce(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 eB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&n.tagName==="li"}function rB(e,t,r){const n=Ce(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function nB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function dx(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function iB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function aB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function oB(e,t,r){const n=Ce(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function sB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function uB(e,t,r){return!Ce(r,t)}function lB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function mx(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const cB=PE({body:pB,colgroup:dB,head:hB,html:fB,tbody:mB});function fB(e){const t=Ce(e,-1);return!t||t.type!=="comment"}function hB(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 pB(e){const t=Ce(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&r0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function dB(e,t,r){const n=OE(r,t),i=Ce(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&n0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function mB(e,t,r){const n=OE(r,t),i=Ce(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&n0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Wu={name:[[`
40
40
  \f\r &/=>`.split(""),`
41
41
  \f\r "&'/=>\``.split("")],[`\0
42
42
  \f\r "&'/<=>`.split(""),`\0
@@ -44,7 +44,7 @@
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 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 u;i.space==="html"&&e.tagName==="svg"&&(n.schema=r0);const l=SB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(l||!a||!yB(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||!i0(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 u=Ua(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Wu.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)?u:(e.settings.preferUnquoted&&(s=Ua(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Wu.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&m_(r,o)>m_(r,e.alternative)&&(o=e.alternative),s=o+Ua(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Wu.single:Wu.double)[i][a],attribute:!0}))+o),u+(s&&"="+s))}const OB=["<","&"];function $E(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ua(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"?r0: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 tr={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}},Wa={COMPLETED:dr.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},_s="N/A",xs="No LST",ws="Data Missing";function NB(e,t,r,n="left-to-right",i=900,a){ee.prototype.transition=lv;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 m=x=>{const b=r*1.5,_=Math.cos(x)*b,g=Math.sin(x)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,A=u-x>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",m(s)),ee(h).transition().duration(i).ease(x=>1-Math.pow(1-x,3)).tween("arc-sweep",()=>x=>{const b=s+(u-s)*x;h.setAttribute("d",m(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const m=x=>{const b=r*1.5,_=Math.cos(x)*b,g=Math.sin(x)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,A=u-x>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",m(u)),ee(h).transition().duration(i).ease(x=>1-Math.pow(1-x,3)).tween("arc-sweep",()=>x=>{const b=u-(u-s)*x;h.setAttribute("d",m(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xf,b_;function jE(){if(b_)return Xf;b_=1;var e=typeof Hu=="object"&&Hu&&Hu.Object===Object&&Hu;return Xf=e,Xf}var Yf,__;function ln(){if(__)return Yf;__=1;var e=jE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Yf=r,Yf}var Vf,x_;function LB(){if(x_)return Vf;x_=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Vf=t,Vf}var Zf,w_;function BB(){if(w_)return Zf;w_=1;var e=LB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Zf=r,Zf}var Jf,S_;function Si(){if(S_)return Jf;S_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Jf=e,Jf}var Qf,A_;function Cu(){if(A_)return Qf;A_=1;var e=ln(),t=e.Symbol;return Qf=t,Qf}var th,O_;function qB(){if(O_)return th;O_=1;var e=Cu(),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 th=a,th}var eh,T_;function FB(){if(T_)return eh;T_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return eh=r,eh}var rh,P_;function Zn(){if(P_)return rh;P_=1;var e=Cu(),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 rh=o,rh}var nh,E_;function Jn(){if(E_)return nh;E_=1;function e(t){return t!=null&&typeof t=="object"}return nh=e,nh}var ih,C_;function ko(){if(C_)return ih;C_=1;var e=Zn(),t=Jn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ih=n,ih}var ah,M_;function a0(){if(M_)return ah;M_=1;var e=BB(),t=Si(),r=ko(),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 ah=u,ah}var oh,k_;function RE(){if(k_)return oh;k_=1;var e=a0(),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 oh=n,oh}var sh,$_;function o0(){if($_)return sh;$_=1;var e=RE();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return sh=t,sh}var uh,j_;function Bc(){if(j_)return uh;j_=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 uh=e,uh}var lh,R_;function rr(){if(R_)return lh;R_=1;var e=Array.isArray;return lh=e,lh}var ch,D_;function zB(){if(D_)return ch;D_=1;var e=Cu(),t=Bc(),r=rr(),n=ko(),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 ch=o,ch}var fh,I_;function s0(){if(I_)return fh;I_=1;var e=zB();function t(r){return r==null?"":e(r)}return fh=t,fh}var hh,N_;function UB(){if(N_)return hh;N_=1;var e=ln(),t=o0(),r=a0(),n=s0(),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 hh=o,hh}var ph,L_;function WB(){if(L_)return ph;L_=1;var e=UB(),t=e("round");return ph=t,ph}var HB=WB();const GB=Bt(HB);var dh,B_;function DE(){if(B_)return dh;B_=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 dh=e,dh}var mh,q_;function KB(){if(q_)return mh;q_=1;var e=Zn(),t=Jn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return mh=n,mh}var yh,F_;function u0(){if(F_)return yh;F_=1;var e=KB(),t=Jn(),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 yh=a,yh}var gh,z_;function XB(){if(z_)return gh;z_=1;var e=Cu(),t=u0(),r=rr(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return gh=i,gh}var vh,U_;function IE(){if(U_)return vh;U_=1;var e=DE(),t=XB();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 vh=r,vh}var bh,W_;function l0(){if(W_)return bh;W_=1;var e=rr(),t=ko(),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 bh=i,bh}var _h,H_;function c0(){if(H_)return _h;H_=1;var e=Zn(),t=Si(),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 _h=o,_h}var xh,G_;function YB(){if(G_)return xh;G_=1;var e=ln(),t=e["__core-js_shared__"];return xh=t,xh}var wh,K_;function VB(){if(K_)return wh;K_=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 wh=r,wh}var Sh,X_;function NE(){if(X_)return Sh;X_=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 Sh=r,Sh}var Ah,Y_;function ZB(){if(Y_)return Ah;Y_=1;var e=c0(),t=VB(),r=Si(),n=NE(),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 Ah=f,Ah}var Oh,V_;function JB(){if(V_)return Oh;V_=1;function e(t,r){return t==null?void 0:t[r]}return Oh=e,Oh}var Th,Z_;function va(){if(Z_)return Th;Z_=1;var e=ZB(),t=JB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Th=r,Th}var Ph,J_;function qc(){if(J_)return Ph;J_=1;var e=va(),t=e(Object,"create");return Ph=t,Ph}var Eh,Q_;function QB(){if(Q_)return Eh;Q_=1;var e=qc();function t(){this.__data__=e?e(null):{},this.size=0}return Eh=t,Eh}var Ch,tx;function tq(){if(tx)return Ch;tx=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ch=e,Ch}var Mh,ex;function eq(){if(ex)return Mh;ex=1;var e=qc(),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 Mh=i,Mh}var kh,rx;function rq(){if(rx)return kh;rx=1;var e=qc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return kh=n,kh}var $h,nx;function nq(){if(nx)return $h;nx=1;var e=qc(),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 $h=r,$h}var jh,ix;function iq(){if(ix)return jh;ix=1;var e=QB(),t=tq(),r=eq(),n=rq(),i=nq();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,jh=a,jh}var Rh,ax;function aq(){if(ax)return Rh;ax=1;function e(){this.__data__=[],this.size=0}return Rh=e,Rh}var Dh,ox;function f0(){if(ox)return Dh;ox=1;function e(t,r){return t===r||t!==t&&r!==r}return Dh=e,Dh}var Ih,sx;function Fc(){if(sx)return Ih;sx=1;var e=f0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Ih=t,Ih}var Nh,ux;function oq(){if(ux)return Nh;ux=1;var e=Fc(),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 Nh=n,Nh}var Lh,lx;function sq(){if(lx)return Lh;lx=1;var e=Fc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Lh=t,Lh}var Bh,cx;function uq(){if(cx)return Bh;cx=1;var e=Fc();function t(r){return e(this.__data__,r)>-1}return Bh=t,Bh}var qh,fx;function lq(){if(fx)return qh;fx=1;var e=Fc();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 qh=t,qh}var Fh,hx;function zc(){if(hx)return Fh;hx=1;var e=aq(),t=oq(),r=sq(),n=uq(),i=lq();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,Fh=a,Fh}var zh,px;function h0(){if(px)return zh;px=1;var e=va(),t=ln(),r=e(t,"Map");return zh=r,zh}var Uh,dx;function cq(){if(dx)return Uh;dx=1;var e=iq(),t=zc(),r=h0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Uh=n,Uh}var Wh,mx;function fq(){if(mx)return Wh;mx=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Wh=e,Wh}var Hh,yx;function Uc(){if(yx)return Hh;yx=1;var e=fq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Hh=t,Hh}var Gh,gx;function hq(){if(gx)return Gh;gx=1;var e=Uc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Gh=t,Gh}var Kh,vx;function pq(){if(vx)return Kh;vx=1;var e=Uc();function t(r){return e(this,r).get(r)}return Kh=t,Kh}var Xh,bx;function dq(){if(bx)return Xh;bx=1;var e=Uc();function t(r){return e(this,r).has(r)}return Xh=t,Xh}var Yh,_x;function mq(){if(_x)return Yh;_x=1;var e=Uc();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 Yh=t,Yh}var Vh,xx;function p0(){if(xx)return Vh;xx=1;var e=cq(),t=hq(),r=pq(),n=dq(),i=mq();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,Vh=a,Vh}var Zh,wx;function LE(){if(wx)return Zh;wx=1;var e=p0(),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,Zh=r,Zh}var Jh,Sx;function yq(){if(Sx)return Jh;Sx=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 Jh=r,Jh}var Qh,Ax;function gq(){if(Ax)return Qh;Ax=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,u,l){a.push(u?l.replace(r,"$1"):s||o)}),a});return Qh=n,Qh}var tp,Ox;function BE(){if(Ox)return tp;Ox=1;var e=rr(),t=l0(),r=gq(),n=s0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return tp=i,tp}var ep,Tx;function Wc(){if(Tx)return ep;Tx=1;var e=ko();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ep=t,ep}var rp,Px;function d0(){if(Px)return rp;Px=1;var e=BE(),t=Wc();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 rp=r,rp}var np,Ex;function vq(){if(Ex)return np;Ex=1;var e=zc();function t(){this.__data__=new e,this.size=0}return np=t,np}var ip,Cx;function bq(){if(Cx)return ip;Cx=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ip=e,ip}var ap,Mx;function _q(){if(Mx)return ap;Mx=1;function e(t){return this.__data__.get(t)}return ap=e,ap}var op,kx;function xq(){if(kx)return op;kx=1;function e(t){return this.__data__.has(t)}return op=e,op}var sp,$x;function wq(){if($x)return sp;$x=1;var e=zc(),t=h0(),r=p0(),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 sp=i,sp}var up,jx;function qE(){if(jx)return up;jx=1;var e=zc(),t=vq(),r=bq(),n=_q(),i=xq(),a=wq();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,up=o,up}var lp,Rx;function Sq(){if(Rx)return lp;Rx=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return lp=t,lp}var cp,Dx;function Aq(){if(Dx)return cp;Dx=1;function e(t){return this.__data__.has(t)}return cp=e,cp}var fp,Ix;function FE(){if(Ix)return fp;Ix=1;var e=p0(),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,fp=n,fp}var hp,Nx;function zE(){if(Nx)return hp;Nx=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 hp=e,hp}var pp,Lx;function UE(){if(Lx)return pp;Lx=1;function e(t,r){return t.has(r)}return pp=e,pp}var dp,Bx;function WE(){if(Bx)return dp;Bx=1;var e=FE(),t=zE(),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 d=f.get(o),m=f.get(s);if(d&&m)return d==s&&m==o;var v=-1,x=!0,b=u&i?new e:void 0;for(f.set(o,s),f.set(s,o);++v<p;){var _=o[v],g=s[v];if(l)var w=h?l(g,_,v,s,o,f):l(_,g,v,o,s,f);if(w!==void 0){if(w)continue;x=!1;break}if(b){if(!t(s,function(S,A){if(!r(b,A)&&(_===S||c(_,S,u,l,f)))return b.push(A)})){x=!1;break}}else if(!(_===g||c(_,g,u,l,f))){x=!1;break}}return f.delete(o),f.delete(s),x}return dp=a,dp}var mp,qx;function Oq(){if(qx)return mp;qx=1;var e=ln(),t=e.Uint8Array;return mp=t,mp}var yp,Fx;function Tq(){if(Fx)return yp;Fx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return yp=e,yp}var gp,zx;function m0(){if(zx)return gp;zx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return gp=e,gp}var vp,Ux;function Pq(){if(Ux)return vp;Ux=1;var e=Cu(),t=Oq(),r=f0(),n=WE(),i=Tq(),a=m0(),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]",d="[object String]",m="[object Symbol]",v="[object ArrayBuffer]",x="[object DataView]",b=e?e.prototype:void 0,_=b?b.valueOf:void 0;function g(w,S,A,T,M,P,E){switch(A){case x:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case v:return!(w.byteLength!=S.byteLength||!P(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 d:return w==S+"";case f:var C=i;case y:var j=T&o;if(C||(C=a),w.size!=S.size&&!j)return!1;var k=E.get(w);if(k)return k==S;T|=s,E.set(w,S);var $=n(C(w),C(S),T,M,P,E);return E.delete(w),$;case m:if(_)return _.call(w)==_.call(S)}return!1}return vp=g,vp}var bp,Wx;function Eq(){if(Wx)return bp;Wx=1;var e=DE(),t=rr();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return bp=r,bp}var _p,Hx;function Cq(){if(Hx)return _p;Hx=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 _p=e,_p}var xp,Gx;function Mq(){if(Gx)return xp;Gx=1;function e(){return[]}return xp=e,xp}var wp,Kx;function kq(){if(Kx)return wp;Kx=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 wp=a,wp}var Sp,Xx;function $q(){if(Xx)return Sp;Xx=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Sp=e,Sp}var cs={exports:{}},Ap,Yx;function jq(){if(Yx)return Ap;Yx=1;function e(){return!1}return Ap=e,Ap}cs.exports;var Vx;function HE(){return Vx||(Vx=1,(function(e,t){var r=ln(),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,u=s?s.isBuffer:void 0,l=u||n;e.exports=l})(cs,cs.exports)),cs.exports}var Op,Zx;function y0(){if(Zx)return Op;Zx=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 Op=r,Op}var Tp,Jx;function g0(){if(Jx)return Tp;Jx=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Tp=t,Tp}var Pp,Qx;function Rq(){if(Qx)return Pp;Qx=1;var e=Zn(),t=g0(),r=Jn(),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]",d="[object WeakMap]",m="[object ArrayBuffer]",v="[object DataView]",x="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",g="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",P={};P[x]=P[b]=P[_]=P[g]=P[w]=P[S]=P[A]=P[T]=P[M]=!0,P[n]=P[i]=P[m]=P[a]=P[v]=P[o]=P[s]=P[u]=P[l]=P[c]=P[f]=P[h]=P[p]=P[y]=P[d]=!1;function E(C){return r(C)&&t(C.length)&&!!P[e(C)]}return Pp=E,Pp}var Ep,t1;function GE(){if(t1)return Ep;t1=1;function e(t){return function(r){return t(r)}}return Ep=e,Ep}var fs={exports:{}};fs.exports;var e1;function Dq(){return e1||(e1=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 u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(fs,fs.exports)),fs.exports}var Cp,r1;function KE(){if(r1)return Cp;r1=1;var e=Rq(),t=GE(),r=Dq(),n=r&&r.isTypedArray,i=n?t(n):e;return Cp=i,Cp}var Mp,n1;function Iq(){if(n1)return Mp;n1=1;var e=$q(),t=u0(),r=rr(),n=HE(),i=y0(),a=KE(),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),d=f||h||p||y,m=d?e(l.length,String):[],v=m.length;for(var x in l)(c||s.call(l,x))&&!(d&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,v)))&&m.push(x);return m}return Mp=u,Mp}var kp,i1;function Nq(){if(i1)return kp;i1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return kp=t,kp}var $p,a1;function XE(){if(a1)return $p;a1=1;function e(t,r){return function(n){return t(r(n))}}return $p=e,$p}var jp,o1;function Lq(){if(o1)return jp;o1=1;var e=XE(),t=e(Object.keys,Object);return jp=t,jp}var Rp,s1;function Bq(){if(s1)return Rp;s1=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 Rp=i,Rp}var Dp,u1;function Mu(){if(u1)return Dp;u1=1;var e=c0(),t=g0();function r(n){return n!=null&&t(n.length)&&!e(n)}return Dp=r,Dp}var Ip,l1;function ku(){if(l1)return Ip;l1=1;var e=Iq(),t=Bq(),r=Mu();function n(i){return r(i)?e(i):t(i)}return Ip=n,Ip}var Np,c1;function qq(){if(c1)return Np;c1=1;var e=Eq(),t=kq(),r=ku();function n(i){return e(i,r,t)}return Np=n,Np}var Lp,f1;function Fq(){if(f1)return Lp;f1=1;var e=qq(),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),d=y.length;if(p!=d&&!f)return!1;for(var m=p;m--;){var v=h[m];if(!(f?v in o:n.call(o,v)))return!1}var x=c.get(a),b=c.get(o);if(x&&b)return x==o&&b==a;var _=!0;c.set(a,o),c.set(o,a);for(var g=f;++m<p;){v=h[m];var w=a[v],S=o[v];if(u)var A=f?u(S,w,v,o,a,c):u(w,S,v,a,o,c);if(!(A===void 0?w===S||l(w,S,s,u,c):A)){_=!1;break}g||(g=v=="constructor")}if(_&&!g){var T=a.constructor,M=o.constructor;T!=M&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof M=="function"&&M instanceof M)&&(_=!1)}return c.delete(a),c.delete(o),_}return Lp=i,Lp}var Bp,h1;function zq(){if(h1)return Bp;h1=1;var e=va(),t=ln(),r=e(t,"DataView");return Bp=r,Bp}var qp,p1;function Uq(){if(p1)return qp;p1=1;var e=va(),t=ln(),r=e(t,"Promise");return qp=r,qp}var Fp,d1;function YE(){if(d1)return Fp;d1=1;var e=va(),t=ln(),r=e(t,"Set");return Fp=r,Fp}var zp,m1;function Wq(){if(m1)return zp;m1=1;var e=va(),t=ln(),r=e(t,"WeakMap");return zp=r,zp}var Up,y1;function Hq(){if(y1)return Up;y1=1;var e=zq(),t=h0(),r=Uq(),n=YE(),i=Wq(),a=Zn(),o=NE(),s="[object Map]",u="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),d=o(r),m=o(n),v=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=s||r&&x(r.resolve())!=l||n&&x(new n)!=c||i&&x(new i)!=f)&&(x=function(b){var _=a(b),g=_==u?b.constructor:void 0,w=g?o(g):"";if(w)switch(w){case p:return h;case y:return s;case d:return l;case m:return c;case v:return f}return _}),Up=x,Up}var Wp,g1;function Gq(){if(g1)return Wp;g1=1;var e=qE(),t=WE(),r=Pq(),n=Fq(),i=Hq(),a=rr(),o=HE(),s=KE(),u=1,l="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(d,m,v,x,b,_){var g=a(d),w=a(m),S=g?c:i(d),A=w?c:i(m);S=S==l?f:S,A=A==l?f:A;var T=S==f,M=A==f,P=S==A;if(P&&o(d)){if(!o(m))return!1;g=!0,T=!1}if(P&&!T)return _||(_=new e),g||s(d)?t(d,m,v,x,b,_):r(d,m,S,v,x,b,_);if(!(v&u)){var E=T&&p.call(d,"__wrapped__"),C=M&&p.call(m,"__wrapped__");if(E||C){var j=E?d.value():d,k=C?m.value():m;return _||(_=new e),b(j,k,v,x,_)}}return P?(_||(_=new e),n(d,m,v,x,b,_)):!1}return Wp=y,Wp}var Hp,v1;function v0(){if(v1)return Hp;v1=1;var e=Gq(),t=Jn();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 Hp=r,Hp}var Gp,b1;function Kq(){if(b1)return Gp;b1=1;var e=qE(),t=v0(),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],d=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var m=new e;if(u)var v=u(y,d,p,a,o,m);if(!(v===void 0?t(d,y,r|n,u,m):v))return!1}}return!0}return Gp=i,Gp}var Kp,_1;function VE(){if(_1)return Kp;_1=1;var e=Si();function t(r){return r===r&&!e(r)}return Kp=t,Kp}var Xp,x1;function Xq(){if(x1)return Xp;x1=1;var e=VE(),t=ku();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 Xp=r,Xp}var Yp,w1;function ZE(){if(w1)return Yp;w1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Yp=e,Yp}var Vp,S1;function Yq(){if(S1)return Vp;S1=1;var e=Kq(),t=Xq(),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 Vp=n,Vp}var Zp,A1;function JE(){if(A1)return Zp;A1=1;var e=d0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Zp=t,Zp}var Jp,O1;function Vq(){if(O1)return Jp;O1=1;function e(t,r){return t!=null&&r in Object(t)}return Jp=e,Jp}var Qp,T1;function Zq(){if(T1)return Qp;T1=1;var e=BE(),t=u0(),r=rr(),n=y0(),i=g0(),a=Wc();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 Qp=o,Qp}var td,P1;function Jq(){if(P1)return td;P1=1;var e=Vq(),t=Zq();function r(n,i){return n!=null&&t(n,i,e)}return td=r,td}var ed,E1;function Qq(){if(E1)return ed;E1=1;var e=v0(),t=JE(),r=Jq(),n=l0(),i=VE(),a=ZE(),o=Wc(),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 ed=l,ed}var rd,C1;function $o(){if(C1)return rd;C1=1;function e(t){return t}return rd=e,rd}var nd,M1;function tF(){if(M1)return nd;M1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return nd=e,nd}var id,k1;function eF(){if(k1)return id;k1=1;var e=d0();function t(r){return function(n){return e(n,r)}}return id=t,id}var ad,$1;function rF(){if($1)return ad;$1=1;var e=tF(),t=eF(),r=l0(),n=Wc();function i(a){return r(a)?e(n(a)):t(a)}return ad=i,ad}var od,j1;function Ai(){if(j1)return od;j1=1;var e=Yq(),t=Qq(),r=$o(),n=rr(),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 od=a,od}var sd,R1;function nF(){if(R1)return sd;R1=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 sd=e,sd}var ud,D1;function iF(){if(D1)return ud;D1=1;var e=nF(),t=e();return ud=t,ud}var ld,I1;function QE(){if(I1)return ld;I1=1;var e=iF(),t=ku();function r(n,i){return n&&e(n,i,t)}return ld=r,ld}var cd,N1;function aF(){if(N1)return cd;N1=1;var e=Mu();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 cd=t,cd}var fd,L1;function b0(){if(L1)return fd;L1=1;var e=QE(),t=aF(),r=t(e);return fd=r,fd}var hd,B1;function tC(){if(B1)return hd;B1=1;var e=b0(),t=Mu();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 hd=r,hd}var pd,q1;function oF(){if(q1)return pd;q1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return pd=e,pd}var dd,F1;function sF(){if(F1)return dd;F1=1;var e=ko();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 dd=t,dd}var md,z1;function uF(){if(z1)return md;z1=1;var e=sF();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 md=t,md}var yd,U1;function lF(){if(U1)return yd;U1=1;var e=Bc(),t=d0(),r=Ai(),n=tC(),i=oF(),a=GE(),o=uF(),s=$o(),u=rr();function l(c,f,h){f.length?f=e(f,function(d){return u(d)?function(m){return t(m,d.length===1?d[0]:d)}:d}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(d,m,v){var x=e(f,function(b){return b(d)});return{criteria:x,index:++p,value:d}});return i(y,function(d,m){return o(d,m,h)})}return yd=l,yd}var gd,W1;function cF(){if(W1)return gd;W1=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 gd=e,gd}var vd,H1;function fF(){if(H1)return vd;H1=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,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 vd=r,vd}var bd,G1;function hF(){if(G1)return bd;G1=1;function e(t){return function(){return t}}return bd=e,bd}var _d,K1;function eC(){if(K1)return _d;K1=1;var e=va(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return _d=t,_d}var xd,X1;function pF(){if(X1)return xd;X1=1;var e=hF(),t=eC(),r=$o(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return xd=n,xd}var wd,Y1;function dF(){if(Y1)return wd;Y1=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 wd=n,wd}var Sd,V1;function mF(){if(V1)return Sd;V1=1;var e=pF(),t=dF(),r=t(e);return Sd=r,Sd}var Ad,Z1;function yF(){if(Z1)return Ad;Z1=1;var e=$o(),t=fF(),r=mF();function n(i,a){return r(t(i,a,e),i+"")}return Ad=n,Ad}var Od,J1;function $u(){if(J1)return Od;J1=1;var e=f0(),t=Mu(),r=y0(),n=Si();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 Od=i,Od}var Td,Q1;function gF(){if(Q1)return Td;Q1=1;var e=IE(),t=lF(),r=yF(),n=$u(),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 Td=i,Td}var vF=gF();const Hc=Bt(vF);var Pd,tw;function bF(){if(tw)return Pd;tw=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 Pd=e,Pd}var _F=bF();const ew=Bt(_F);var Ed,rw;function xF(){if(rw)return Ed;rw=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 Ed=r,Ed}var Cd,nw;function wF(){if(nw)return Cd;nw=1;var e=xF(),t=$u(),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 Cd=n,Cd}var Md,iw;function SF(){if(iw)return Md;iw=1;var e=wF(),t=e();return Md=t,Md}var AF=SF();const Hs=Bt(AF);var kd,aw;function OF(){if(aw)return kd;aw=1;var e=Bc(),t=Ai(),r=tC(),n=rr();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return kd=i,kd}var $d,ow;function TF(){if(ow)return $d;ow=1;var e=IE(),t=OF();function r(n,i){return e(t(n,i),1)}return $d=r,$d}var PF=TF();const rC=Bt(PF);var jd,sw;function nC(){if(sw)return jd;sw=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 jd=e,jd}var Rd,uw;function EF(){if(uw)return Rd;uw=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 Rd=e,Rd}var Dd,lw;function CF(){if(lw)return Dd;lw=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Dd=r,Dd}var Id,cw;function iC(){if(cw)return Id;cw=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),u=r[s];r[s]=r[i],r[i]=u}return r.length=n,r}return Id=t,Id}var Nd,fw;function MF(){if(fw)return Nd;fw=1;var e=nC(),t=EF(),r=iC();function n(i,a){return r(t(i),e(a,0,i.length))}return Nd=n,Nd}var Ld,hw;function kF(){if(hw)return Ld;hw=1;var e=Bc();function t(r,n){return e(n,function(i){return r[i]})}return Ld=t,Ld}var Bd,pw;function $F(){if(pw)return Bd;pw=1;var e=kF(),t=ku();function r(n){return n==null?[]:e(n,t(n))}return Bd=r,Bd}var qd,dw;function jF(){if(dw)return qd;dw=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 qd=n,qd}var Fd,mw;function RF(){if(mw)return Fd;mw=1;var e=MF(),t=jF(),r=rr(),n=$u(),i=o0();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 Fd=a,Fd}var DF=RF();const IF=Bt(DF),NF=e=>GB(e,14),yw=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=yw(e),a=ew(Object.entries(e).map(([y,d])=>{const m=Math.max(t-Object.keys(e).length,0),v=Math.round(m*d/i);return[y,v]})),o=ew(Object.entries(e).map(([y,d])=>{const m=t+Object.keys(e).length,v=Math.min(Math.round(m*d/i),t);return[y,v]})),s=rC(Object.entries(e).map(([y,d])=>{const m=a[y],v=o[y];return Hs(m,v).map(x=>{const b=NF(d/(x+.5));return{party:y,quotient:b}})})),u=yw(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(...IF(p,l-h.length))}return h.reduce((y,{party:d})=>(y[d]+=1,y),a)},Bl=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:Bl(e*Math.cos(i)),y:Bl(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},Zo=(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=Zo(e,n,t,r),a=0;for(Zo(e,n+1,t,r)<i&&(a=1),Zo(e,n-1,t,r)<i&&n>1&&(a=-1);Zo(e,n+a,t,r)<i&&n>0;)i=Zo(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=Bl((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=Bl((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 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={...FF(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=UF(s,f),d=s[y],m=f[y]??0,v=d==null?void 0:d[m];v&&(v.fill=h.colour,v.party=String(h.id)),f[y]=m+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:Eu},KF=(e,t={})=>{var m;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),u=(((m=s[0])==null?void 0:m.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",[AE(i),OE(i),TE(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-u/2,p,2*o+u,h].join(",")},[y,...l])},XF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Eu},YF=(e,t={})=>{const r={...XF,...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((H,q)=>H+q.seats,0);let d={seatSize:o,arcAngle:n,score:-1};const m=n-i,v=n+i;for(let H=m;H<=v;H+=2.5){const q=H*Math.PI/180;for(let K=u;K>=s;K-=.1){const Q=K*2,R=Q*l,J=Math.floor((a-p)/R);for(let U=1;U<=Math.min(J,10);U++){let ot=0;for(let yt=0;yt<U;yt++){const st=p+(yt+.5)*R,ht=Q*l/st,ft=Math.floor(q/ht);ot+=ft}if(ot>=y){const yt=y/ot,st=(K-s)/(u-s),ht=(ot-y)/y,ft=ht<.15?1:ht<.3?.7:ht<.5?.4:.1,Ot=1-Math.abs(H-n)/i,at=ft*.5+st*.3+yt*.15+Ot*.05;at>d.score&&(d={seatSize:K,arcAngle:H,rings:U,score:at})}}}}const x=d.seatSize,b=d.arcAngle,_=b*Math.PI/180,g=x*2,w=g*l,S=Math.floor((a-p)/w),A=[],T=-_/2-Math.PI/2,M=[];let P=0,E=[];for(let H=1;H<=S;H++){let q=0;const K=[];for(let Q=0;Q<H;Q++){const R=p+(Q+.5)*w,J=g*l/R,U=Math.floor(_/J);K.push(U),q+=U}if(q>=y){P=H,E=K;break}}if(P>0)M.push(...E);else for(let H=0;H<S;H++){const q=p+(H+.5)*w,K=g*l/q,Q=Math.floor(_/K);M.push(Q)}for(let H=0;H<M.length;H++){const q=p+(H+.5)*w,K=M[H]??0;if(K>0){const Q=_/K;for(let R=0;R<K;R++){const J=T+(R+.5)*Q,U=Math.cos(J)*q,ot=Math.sin(J)*q;A.push({ring:H,index:R,angle:J,x:U,y:ot})}}}A.sort((H,q)=>{const K=H.angle-q.angle;return Math.abs(K)>.001?K:H.ring-q.ring});const C=[];let j=0;e.forEach(H=>{const q=[],K=Math.min(H.seats,A.length-j);let Q=1/0,R=-1/0;for(let U=0;U<K&&j<A.length;U++){const ot=A[j++];ot&&(Q=Math.min(Q,ot.angle),R=Math.max(R,ot.angle),Math.sqrt(ot.x*ot.x+ot.y*ot.y),q.push(h("circle",{fill:H.colour,stroke:H.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${ot.x}, ${ot.y})`,r:x,"data-party":H.name,"data-party-id":String(H.id),style:"pointer-events: all; cursor: pointer;"})))}const J=q;C.push(h("g",{className:"party-group","data-party":H.name,style:"opacity: 1; outline: none;"},J))});const k=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})]),$=h("g",{className:"points-container"},C),N=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,W=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)]),B=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[k,$,N].filter(Boolean)),D=_/2;let F;if(b<=180)F=a*Math.sin(D)+x;else{const H=D-Math.PI/2;F=a*(1+Math.sin(H))+x}const X=a+x,L=a*2,Y=Math.max(F,X);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${L} ${Y}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[B,W])};function oC(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?Wa.COMPLETED:e.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:e.color}function zy(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=tr.animation.hoverOpacity.active:i.style.opacity=tr.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Uy(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",tr.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,d=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)"?Wa.COMPLETED:w.color}}),m=i?YF(d,{arcAngle:n,arcAngleFlexibility:l.arcAngleFlexibility,radius:l.radius,seatSize:c,minSeatSize:l.minSeatSize,maxSeatSize:l.maxSeatSize,spacing:l.spacing,innerRadiusRatio:l.innerRadiusRatio,showLabels:!0}):KF(d,{arcAngle:n});m.properties&&(m.properties.width="100%",m.properties.height="100%",m.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",m.properties.preserveAspectRatio="xMidYMid meet");const v=RB(m),_=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(_,d,t,o,s,u):JF(_,d,t,o,s,u);const g=()=>{if(o(null),u(null),i)zy(_,null);else{const w=_.querySelectorAll("circle");Uy(w,null)}};return _&&_.addEventListener("mouseleave",g),e.current.appendChild(_),f&&_&&NB(_,n,l.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,u,e,l,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(u=>{if(u){const l=u;l.style.stroke=tr.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${tr.animation.transitionDuration} ease, stroke-opacity ${tr.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=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),zy(e,h.name)}}}};u.addEventListener("mouseenter",f)}),i&&zy(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 u=s;u.style.cursor="pointer",u.style.stroke=tr.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${tr.animation.transitionDuration} ease, stroke-opacity ${tr.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=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),Uy(o,u)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(u=>u.name===i);if(s){const u=t.indexOf(s);Uy(o,String(u))}}}const zd=gs,gw={[_s]:Wa.NOT_APPLICABLE,[xs]:Wa.NO_LST,[ws]:Wa.DATA_MISSING},Jo=(e,t,r)=>{if(e in gw)return gw[e];const n=r-1-t,i=zd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return zd[o]??zd[0]??"#000000"},sC=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,d)=>([_s,xs,ws].includes(y.label)?p.special.push({...y,originalIndex:d}):p.regular.push({...y,originalIndex:d}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:Jo(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:Jo(p.label,y,i.length)})),u=n,l={id:"no-lst",label:xs,value:r,color:Jo(xs,0,1)},c={id:"data-missing",label:ws,value:u,color:Jo(ws,0,1)},f={id:"n/a",label:_s,value:t,color:Jo(_s,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},vw={"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=tr.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,d]=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}}),x=a??Qv({repositoryCount:t}),b=t0({repositoryCount:t});VF({containerRef:f,processedData:v,totalRepositories:t,arcAngle:x,useEnhanced:o,maxSeats:tr.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:d,chartConfig:tr.chartConfig,seatSize:b,shouldAnimate:u,animationDirection:l,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>tr.maxSeats,w=g?Math.round(t/tr.maxSeats):1;return G.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:[G.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:[G.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"}}}}),G.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&&G.jsxs(O.Fragment,{children:[G.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}),G.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&&G.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:[G.jsx(tt.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),G.jsxs(tt.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&G.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),d(null)},children:G.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:[G.jsx("thead",{children:G.jsxs(tt.TableRow,{children:[G.jsx(tt.TableCell,{}),G.jsx(tt.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),G.jsx("tbody",{children:_.map(S=>{const A=S.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?zt.noLstHatch.lines:S.color;return G.jsxs(tt.TableRow,{onMouseEnter:()=>{d(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?zt.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:[G.jsx(tt.TableCell,{align:"center",sx:{width:20},children:G.jsx(tt.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?zt.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?zt.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 yB(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=e0);const l=gB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(l||!a||!cB(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||!n0(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function gB(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=vB(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 vB(e,t,r){const n=gE(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=Ua(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Wu.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?hL:dL)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(s=Ua(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Wu.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&hx(r,o)>hx(r,e.alternative)&&(o=e.alternative),s=o+Ua(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Wu.single:Wu.double)[i][a],attribute:!0}))+o),u+(s&&"="+s))}const bB=["<","&"];function EE(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ua(e.value,Object.assign({},n.settings.characterReferences,{subset:bB}))}function xB(e,t,r,n){return n.settings.allowDangerousHtml?e.value:EE(e,t,r,n)}function _B(e,t,r,n){return n.all(e)}const wB=PL("type",{invalid:SB,unknown:AB,handlers:{comment:KL,doctype:XL,element:yB,raw:xB,root:_B,text:EE}});function SB(e){throw new Error("Expected node, not `"+e+"`")}function AB(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const OB={},TB={},PB=[];function EB(e,t){const r=OB,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:CB,all:MB,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||TL,characterReferences:r.characterReferences||TB,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?e0:vE,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function CB(e,t,r){return wB(e,t,r,this)}function MB(e){const t=[],r=e&&e.children||PB;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const tr={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}},Wa={COMPLETED:dr.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},xs="N/A",_s="No LST",ws="Data Missing";function kB(e,t,r,n="left-to-right",i=900,a){ee.prototype.transition=lv;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 m=_=>{const b=r*1.5,x=Math.cos(_)*b,g=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},${g} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",m(s)),ee(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=s+(u-s)*_;h.setAttribute("d",m(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const m=_=>{const b=r*1.5,x=Math.cos(_)*b,g=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},${g} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",m(u)),ee(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=u-(u-s)*_;h.setAttribute("d",m(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xf,yx;function CE(){if(yx)return Xf;yx=1;var e=typeof Hu=="object"&&Hu&&Hu.Object===Object&&Hu;return Xf=e,Xf}var Yf,gx;function ln(){if(gx)return Yf;gx=1;var e=CE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Yf=r,Yf}var Vf,vx;function $B(){if(vx)return Vf;vx=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Vf=t,Vf}var Zf,bx;function jB(){if(bx)return Zf;bx=1;var e=$B(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Zf=r,Zf}var Jf,xx;function Ai(){if(xx)return Jf;xx=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Jf=e,Jf}var Qf,_x;function Cu(){if(_x)return Qf;_x=1;var e=ln(),t=e.Symbol;return Qf=t,Qf}var th,wx;function RB(){if(wx)return th;wx=1;var e=Cu(),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 th=a,th}var eh,Sx;function DB(){if(Sx)return eh;Sx=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return eh=r,eh}var rh,Ax;function Zn(){if(Ax)return rh;Ax=1;var e=Cu(),t=RB(),r=DB(),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 rh=o,rh}var nh,Ox;function Jn(){if(Ox)return nh;Ox=1;function e(t){return t!=null&&typeof t=="object"}return nh=e,nh}var ih,Tx;function ko(){if(Tx)return ih;Tx=1;var e=Zn(),t=Jn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ih=n,ih}var ah,Px;function i0(){if(Px)return ah;Px=1;var e=jB(),t=Ai(),r=ko(),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 ah=u,ah}var oh,Ex;function ME(){if(Ex)return oh;Ex=1;var e=i0(),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 oh=n,oh}var sh,Cx;function a0(){if(Cx)return sh;Cx=1;var e=ME();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return sh=t,sh}var uh,Mx;function Bc(){if(Mx)return uh;Mx=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 uh=e,uh}var lh,kx;function rr(){if(kx)return lh;kx=1;var e=Array.isArray;return lh=e,lh}var ch,$x;function IB(){if($x)return ch;$x=1;var e=Cu(),t=Bc(),r=rr(),n=ko(),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 ch=o,ch}var fh,jx;function o0(){if(jx)return fh;jx=1;var e=IB();function t(r){return r==null?"":e(r)}return fh=t,fh}var hh,Rx;function NB(){if(Rx)return hh;Rx=1;var e=ln(),t=a0(),r=i0(),n=o0(),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 hh=o,hh}var ph,Dx;function LB(){if(Dx)return ph;Dx=1;var e=NB(),t=e("round");return ph=t,ph}var BB=LB();const qB=Bt(BB);var dh,Ix;function kE(){if(Ix)return dh;Ix=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 dh=e,dh}var mh,Nx;function FB(){if(Nx)return mh;Nx=1;var e=Zn(),t=Jn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return mh=n,mh}var yh,Lx;function s0(){if(Lx)return yh;Lx=1;var e=FB(),t=Jn(),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 yh=a,yh}var gh,Bx;function zB(){if(Bx)return gh;Bx=1;var e=Cu(),t=s0(),r=rr(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return gh=i,gh}var vh,qx;function $E(){if(qx)return vh;qx=1;var e=kE(),t=zB();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 vh=r,vh}var bh,Fx;function u0(){if(Fx)return bh;Fx=1;var e=rr(),t=ko(),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 bh=i,bh}var xh,zx;function l0(){if(zx)return xh;zx=1;var e=Zn(),t=Ai(),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 xh=o,xh}var _h,Ux;function UB(){if(Ux)return _h;Ux=1;var e=ln(),t=e["__core-js_shared__"];return _h=t,_h}var wh,Wx;function WB(){if(Wx)return wh;Wx=1;var e=UB(),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 wh=r,wh}var Sh,Hx;function jE(){if(Hx)return Sh;Hx=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 Sh=r,Sh}var Ah,Gx;function HB(){if(Gx)return Ah;Gx=1;var e=l0(),t=WB(),r=Ai(),n=jE(),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 Ah=f,Ah}var Oh,Kx;function GB(){if(Kx)return Oh;Kx=1;function e(t,r){return t==null?void 0:t[r]}return Oh=e,Oh}var Th,Xx;function va(){if(Xx)return Th;Xx=1;var e=HB(),t=GB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Th=r,Th}var Ph,Yx;function qc(){if(Yx)return Ph;Yx=1;var e=va(),t=e(Object,"create");return Ph=t,Ph}var Eh,Vx;function KB(){if(Vx)return Eh;Vx=1;var e=qc();function t(){this.__data__=e?e(null):{},this.size=0}return Eh=t,Eh}var Ch,Zx;function XB(){if(Zx)return Ch;Zx=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ch=e,Ch}var Mh,Jx;function YB(){if(Jx)return Mh;Jx=1;var e=qc(),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 Mh=i,Mh}var kh,Qx;function VB(){if(Qx)return kh;Qx=1;var e=qc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return kh=n,kh}var $h,t_;function ZB(){if(t_)return $h;t_=1;var e=qc(),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 $h=r,$h}var jh,e_;function JB(){if(e_)return jh;e_=1;var e=KB(),t=XB(),r=YB(),n=VB(),i=ZB();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,jh=a,jh}var Rh,r_;function QB(){if(r_)return Rh;r_=1;function e(){this.__data__=[],this.size=0}return Rh=e,Rh}var Dh,n_;function c0(){if(n_)return Dh;n_=1;function e(t,r){return t===r||t!==t&&r!==r}return Dh=e,Dh}var Ih,i_;function Fc(){if(i_)return Ih;i_=1;var e=c0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Ih=t,Ih}var Nh,a_;function tq(){if(a_)return Nh;a_=1;var e=Fc(),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 Nh=n,Nh}var Lh,o_;function eq(){if(o_)return Lh;o_=1;var e=Fc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Lh=t,Lh}var Bh,s_;function rq(){if(s_)return Bh;s_=1;var e=Fc();function t(r){return e(this.__data__,r)>-1}return Bh=t,Bh}var qh,u_;function nq(){if(u_)return qh;u_=1;var e=Fc();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 qh=t,qh}var Fh,l_;function zc(){if(l_)return Fh;l_=1;var e=QB(),t=tq(),r=eq(),n=rq(),i=nq();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,Fh=a,Fh}var zh,c_;function f0(){if(c_)return zh;c_=1;var e=va(),t=ln(),r=e(t,"Map");return zh=r,zh}var Uh,f_;function iq(){if(f_)return Uh;f_=1;var e=JB(),t=zc(),r=f0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Uh=n,Uh}var Wh,h_;function aq(){if(h_)return Wh;h_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Wh=e,Wh}var Hh,p_;function Uc(){if(p_)return Hh;p_=1;var e=aq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Hh=t,Hh}var Gh,d_;function oq(){if(d_)return Gh;d_=1;var e=Uc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Gh=t,Gh}var Kh,m_;function sq(){if(m_)return Kh;m_=1;var e=Uc();function t(r){return e(this,r).get(r)}return Kh=t,Kh}var Xh,y_;function uq(){if(y_)return Xh;y_=1;var e=Uc();function t(r){return e(this,r).has(r)}return Xh=t,Xh}var Yh,g_;function lq(){if(g_)return Yh;g_=1;var e=Uc();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 Yh=t,Yh}var Vh,v_;function h0(){if(v_)return Vh;v_=1;var e=iq(),t=oq(),r=sq(),n=uq(),i=lq();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,Vh=a,Vh}var Zh,b_;function RE(){if(b_)return Zh;b_=1;var e=h0(),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,Zh=r,Zh}var Jh,x_;function cq(){if(x_)return Jh;x_=1;var e=RE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Jh=r,Jh}var Qh,__;function fq(){if(__)return Qh;__=1;var e=cq(),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 Qh=n,Qh}var tp,w_;function DE(){if(w_)return tp;w_=1;var e=rr(),t=u0(),r=fq(),n=o0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return tp=i,tp}var ep,S_;function Wc(){if(S_)return ep;S_=1;var e=ko();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ep=t,ep}var rp,A_;function p0(){if(A_)return rp;A_=1;var e=DE(),t=Wc();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 rp=r,rp}var np,O_;function hq(){if(O_)return np;O_=1;var e=zc();function t(){this.__data__=new e,this.size=0}return np=t,np}var ip,T_;function pq(){if(T_)return ip;T_=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ip=e,ip}var ap,P_;function dq(){if(P_)return ap;P_=1;function e(t){return this.__data__.get(t)}return ap=e,ap}var op,E_;function mq(){if(E_)return op;E_=1;function e(t){return this.__data__.has(t)}return op=e,op}var sp,C_;function yq(){if(C_)return sp;C_=1;var e=zc(),t=f0(),r=h0(),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 sp=i,sp}var up,M_;function IE(){if(M_)return up;M_=1;var e=zc(),t=hq(),r=pq(),n=dq(),i=mq(),a=yq();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,up=o,up}var lp,k_;function gq(){if(k_)return lp;k_=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return lp=t,lp}var cp,$_;function vq(){if($_)return cp;$_=1;function e(t){return this.__data__.has(t)}return cp=e,cp}var fp,j_;function NE(){if(j_)return fp;j_=1;var e=h0(),t=gq(),r=vq();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,fp=n,fp}var hp,R_;function LE(){if(R_)return hp;R_=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 hp=e,hp}var pp,D_;function BE(){if(D_)return pp;D_=1;function e(t,r){return t.has(r)}return pp=e,pp}var dp,I_;function qE(){if(I_)return dp;I_=1;var e=NE(),t=LE(),r=BE(),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 d=f.get(o),m=f.get(s);if(d&&m)return d==s&&m==o;var v=-1,_=!0,b=u&i?new e:void 0;for(f.set(o,s),f.set(s,o);++v<p;){var x=o[v],g=s[v];if(l)var w=h?l(g,x,v,s,o,f):l(x,g,v,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===g||c(x,g,u,l,f))){_=!1;break}}return f.delete(o),f.delete(s),_}return dp=a,dp}var mp,N_;function bq(){if(N_)return mp;N_=1;var e=ln(),t=e.Uint8Array;return mp=t,mp}var yp,L_;function xq(){if(L_)return yp;L_=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return yp=e,yp}var gp,B_;function d0(){if(B_)return gp;B_=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return gp=e,gp}var vp,q_;function _q(){if(q_)return vp;q_=1;var e=Cu(),t=bq(),r=c0(),n=qE(),i=xq(),a=d0(),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]",d="[object String]",m="[object Symbol]",v="[object ArrayBuffer]",_="[object DataView]",b=e?e.prototype:void 0,x=b?b.valueOf:void 0;function g(w,S,A,T,M,P,E){switch(A){case _:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case v:return!(w.byteLength!=S.byteLength||!P(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 d:return w==S+"";case f:var C=i;case y:var j=T&o;if(C||(C=a),w.size!=S.size&&!j)return!1;var k=E.get(w);if(k)return k==S;T|=s,E.set(w,S);var $=n(C(w),C(S),T,M,P,E);return E.delete(w),$;case m:if(x)return x.call(w)==x.call(S)}return!1}return vp=g,vp}var bp,F_;function wq(){if(F_)return bp;F_=1;var e=kE(),t=rr();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return bp=r,bp}var xp,z_;function Sq(){if(z_)return xp;z_=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 xp=e,xp}var _p,U_;function Aq(){if(U_)return _p;U_=1;function e(){return[]}return _p=e,_p}var wp,W_;function Oq(){if(W_)return wp;W_=1;var e=Sq(),t=Aq(),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 wp=a,wp}var Sp,H_;function Tq(){if(H_)return Sp;H_=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Sp=e,Sp}var cs={exports:{}},Ap,G_;function Pq(){if(G_)return Ap;G_=1;function e(){return!1}return Ap=e,Ap}cs.exports;var K_;function FE(){return K_||(K_=1,(function(e,t){var r=ln(),n=Pq(),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})(cs,cs.exports)),cs.exports}var Op,X_;function m0(){if(X_)return Op;X_=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 Op=r,Op}var Tp,Y_;function y0(){if(Y_)return Tp;Y_=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Tp=t,Tp}var Pp,V_;function Eq(){if(V_)return Pp;V_=1;var e=Zn(),t=y0(),r=Jn(),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]",d="[object WeakMap]",m="[object ArrayBuffer]",v="[object DataView]",_="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",g="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",P={};P[_]=P[b]=P[x]=P[g]=P[w]=P[S]=P[A]=P[T]=P[M]=!0,P[n]=P[i]=P[m]=P[a]=P[v]=P[o]=P[s]=P[u]=P[l]=P[c]=P[f]=P[h]=P[p]=P[y]=P[d]=!1;function E(C){return r(C)&&t(C.length)&&!!P[e(C)]}return Pp=E,Pp}var Ep,Z_;function zE(){if(Z_)return Ep;Z_=1;function e(t){return function(r){return t(r)}}return Ep=e,Ep}var fs={exports:{}};fs.exports;var J_;function Cq(){return J_||(J_=1,(function(e,t){var r=CE(),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})(fs,fs.exports)),fs.exports}var Cp,Q_;function UE(){if(Q_)return Cp;Q_=1;var e=Eq(),t=zE(),r=Cq(),n=r&&r.isTypedArray,i=n?t(n):e;return Cp=i,Cp}var Mp,t1;function Mq(){if(t1)return Mp;t1=1;var e=Tq(),t=s0(),r=rr(),n=FE(),i=m0(),a=UE(),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),d=f||h||p||y,m=d?e(l.length,String):[],v=m.length;for(var _ in l)(c||s.call(l,_))&&!(d&&(_=="length"||p&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,v)))&&m.push(_);return m}return Mp=u,Mp}var kp,e1;function kq(){if(e1)return kp;e1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return kp=t,kp}var $p,r1;function WE(){if(r1)return $p;r1=1;function e(t,r){return function(n){return t(r(n))}}return $p=e,$p}var jp,n1;function $q(){if(n1)return jp;n1=1;var e=WE(),t=e(Object.keys,Object);return jp=t,jp}var Rp,i1;function jq(){if(i1)return Rp;i1=1;var e=kq(),t=$q(),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 Rp=i,Rp}var Dp,a1;function Mu(){if(a1)return Dp;a1=1;var e=l0(),t=y0();function r(n){return n!=null&&t(n.length)&&!e(n)}return Dp=r,Dp}var Ip,o1;function ku(){if(o1)return Ip;o1=1;var e=Mq(),t=jq(),r=Mu();function n(i){return r(i)?e(i):t(i)}return Ip=n,Ip}var Np,s1;function Rq(){if(s1)return Np;s1=1;var e=wq(),t=Oq(),r=ku();function n(i){return e(i,r,t)}return Np=n,Np}var Lp,u1;function Dq(){if(u1)return Lp;u1=1;var e=Rq(),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),d=y.length;if(p!=d&&!f)return!1;for(var m=p;m--;){var v=h[m];if(!(f?v in o:n.call(o,v)))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 g=f;++m<p;){v=h[m];var w=a[v],S=o[v];if(u)var A=f?u(S,w,v,o,a,c):u(w,S,v,a,o,c);if(!(A===void 0?w===S||l(w,S,s,u,c):A)){x=!1;break}g||(g=v=="constructor")}if(x&&!g){var T=a.constructor,M=o.constructor;T!=M&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof M=="function"&&M instanceof M)&&(x=!1)}return c.delete(a),c.delete(o),x}return Lp=i,Lp}var Bp,l1;function Iq(){if(l1)return Bp;l1=1;var e=va(),t=ln(),r=e(t,"DataView");return Bp=r,Bp}var qp,c1;function Nq(){if(c1)return qp;c1=1;var e=va(),t=ln(),r=e(t,"Promise");return qp=r,qp}var Fp,f1;function HE(){if(f1)return Fp;f1=1;var e=va(),t=ln(),r=e(t,"Set");return Fp=r,Fp}var zp,h1;function Lq(){if(h1)return zp;h1=1;var e=va(),t=ln(),r=e(t,"WeakMap");return zp=r,zp}var Up,p1;function Bq(){if(p1)return Up;p1=1;var e=Iq(),t=f0(),r=Nq(),n=HE(),i=Lq(),a=Zn(),o=jE(),s="[object Map]",u="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),d=o(r),m=o(n),v=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),g=x==u?b.constructor:void 0,w=g?o(g):"";if(w)switch(w){case p:return h;case y:return s;case d:return l;case m:return c;case v:return f}return x}),Up=_,Up}var Wp,d1;function qq(){if(d1)return Wp;d1=1;var e=IE(),t=qE(),r=_q(),n=Dq(),i=Bq(),a=rr(),o=FE(),s=UE(),u=1,l="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(d,m,v,_,b,x){var g=a(d),w=a(m),S=g?c:i(d),A=w?c:i(m);S=S==l?f:S,A=A==l?f:A;var T=S==f,M=A==f,P=S==A;if(P&&o(d)){if(!o(m))return!1;g=!0,T=!1}if(P&&!T)return x||(x=new e),g||s(d)?t(d,m,v,_,b,x):r(d,m,S,v,_,b,x);if(!(v&u)){var E=T&&p.call(d,"__wrapped__"),C=M&&p.call(m,"__wrapped__");if(E||C){var j=E?d.value():d,k=C?m.value():m;return x||(x=new e),b(j,k,v,_,x)}}return P?(x||(x=new e),n(d,m,v,_,b,x)):!1}return Wp=y,Wp}var Hp,m1;function g0(){if(m1)return Hp;m1=1;var e=qq(),t=Jn();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 Hp=r,Hp}var Gp,y1;function Fq(){if(y1)return Gp;y1=1;var e=IE(),t=g0(),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],d=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var m=new e;if(u)var v=u(y,d,p,a,o,m);if(!(v===void 0?t(d,y,r|n,u,m):v))return!1}}return!0}return Gp=i,Gp}var Kp,g1;function GE(){if(g1)return Kp;g1=1;var e=Ai();function t(r){return r===r&&!e(r)}return Kp=t,Kp}var Xp,v1;function zq(){if(v1)return Xp;v1=1;var e=GE(),t=ku();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 Xp=r,Xp}var Yp,b1;function KE(){if(b1)return Yp;b1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Yp=e,Yp}var Vp,x1;function Uq(){if(x1)return Vp;x1=1;var e=Fq(),t=zq(),r=KE();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 Vp=n,Vp}var Zp,_1;function XE(){if(_1)return Zp;_1=1;var e=p0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Zp=t,Zp}var Jp,w1;function Wq(){if(w1)return Jp;w1=1;function e(t,r){return t!=null&&r in Object(t)}return Jp=e,Jp}var Qp,S1;function Hq(){if(S1)return Qp;S1=1;var e=DE(),t=s0(),r=rr(),n=m0(),i=y0(),a=Wc();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 Qp=o,Qp}var td,A1;function Gq(){if(A1)return td;A1=1;var e=Wq(),t=Hq();function r(n,i){return n!=null&&t(n,i,e)}return td=r,td}var ed,O1;function Kq(){if(O1)return ed;O1=1;var e=g0(),t=XE(),r=Gq(),n=u0(),i=GE(),a=KE(),o=Wc(),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 ed=l,ed}var rd,T1;function $o(){if(T1)return rd;T1=1;function e(t){return t}return rd=e,rd}var nd,P1;function Xq(){if(P1)return nd;P1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return nd=e,nd}var id,E1;function Yq(){if(E1)return id;E1=1;var e=p0();function t(r){return function(n){return e(n,r)}}return id=t,id}var ad,C1;function Vq(){if(C1)return ad;C1=1;var e=Xq(),t=Yq(),r=u0(),n=Wc();function i(a){return r(a)?e(n(a)):t(a)}return ad=i,ad}var od,M1;function Oi(){if(M1)return od;M1=1;var e=Uq(),t=Kq(),r=$o(),n=rr(),i=Vq();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 od=a,od}var sd,k1;function Zq(){if(k1)return sd;k1=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 sd=e,sd}var ud,$1;function Jq(){if($1)return ud;$1=1;var e=Zq(),t=e();return ud=t,ud}var ld,j1;function YE(){if(j1)return ld;j1=1;var e=Jq(),t=ku();function r(n,i){return n&&e(n,i,t)}return ld=r,ld}var cd,R1;function Qq(){if(R1)return cd;R1=1;var e=Mu();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 cd=t,cd}var fd,D1;function v0(){if(D1)return fd;D1=1;var e=YE(),t=Qq(),r=t(e);return fd=r,fd}var hd,I1;function VE(){if(I1)return hd;I1=1;var e=v0(),t=Mu();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 hd=r,hd}var pd,N1;function tF(){if(N1)return pd;N1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return pd=e,pd}var dd,L1;function eF(){if(L1)return dd;L1=1;var e=ko();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 dd=t,dd}var md,B1;function rF(){if(B1)return md;B1=1;var e=eF();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 md=t,md}var yd,q1;function nF(){if(q1)return yd;q1=1;var e=Bc(),t=p0(),r=Oi(),n=VE(),i=tF(),a=zE(),o=rF(),s=$o(),u=rr();function l(c,f,h){f.length?f=e(f,function(d){return u(d)?function(m){return t(m,d.length===1?d[0]:d)}:d}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(d,m,v){var _=e(f,function(b){return b(d)});return{criteria:_,index:++p,value:d}});return i(y,function(d,m){return o(d,m,h)})}return yd=l,yd}var gd,F1;function iF(){if(F1)return gd;F1=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 gd=e,gd}var vd,z1;function aF(){if(z1)return vd;z1=1;var e=iF(),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 vd=r,vd}var bd,U1;function oF(){if(U1)return bd;U1=1;function e(t){return function(){return t}}return bd=e,bd}var xd,W1;function ZE(){if(W1)return xd;W1=1;var e=va(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return xd=t,xd}var _d,H1;function sF(){if(H1)return _d;H1=1;var e=oF(),t=ZE(),r=$o(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return _d=n,_d}var wd,G1;function uF(){if(G1)return wd;G1=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 wd=n,wd}var Sd,K1;function lF(){if(K1)return Sd;K1=1;var e=sF(),t=uF(),r=t(e);return Sd=r,Sd}var Ad,X1;function cF(){if(X1)return Ad;X1=1;var e=$o(),t=aF(),r=lF();function n(i,a){return r(t(i,a,e),i+"")}return Ad=n,Ad}var Od,Y1;function $u(){if(Y1)return Od;Y1=1;var e=c0(),t=Mu(),r=m0(),n=Ai();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 Od=i,Od}var Td,V1;function fF(){if(V1)return Td;V1=1;var e=$E(),t=nF(),r=cF(),n=$u(),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 Td=i,Td}var hF=fF();const Hc=Bt(hF);var Pd,Z1;function pF(){if(Z1)return Pd;Z1=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 Pd=e,Pd}var dF=pF();const J1=Bt(dF);var Ed,Q1;function mF(){if(Q1)return Ed;Q1=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 Ed=r,Ed}var Cd,tw;function yF(){if(tw)return Cd;tw=1;var e=mF(),t=$u(),r=ME();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 Cd=n,Cd}var Md,ew;function gF(){if(ew)return Md;ew=1;var e=yF(),t=e();return Md=t,Md}var vF=gF();const Hs=Bt(vF);var kd,rw;function bF(){if(rw)return kd;rw=1;var e=Bc(),t=Oi(),r=VE(),n=rr();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return kd=i,kd}var $d,nw;function xF(){if(nw)return $d;nw=1;var e=$E(),t=bF();function r(n,i){return e(t(n,i),1)}return $d=r,$d}var _F=xF();const JE=Bt(_F);var jd,iw;function QE(){if(iw)return jd;iw=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 jd=e,jd}var Rd,aw;function wF(){if(aw)return Rd;aw=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 Rd=e,Rd}var Dd,ow;function SF(){if(ow)return Dd;ow=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Dd=r,Dd}var Id,sw;function tC(){if(sw)return Id;sw=1;var e=SF();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 Id=t,Id}var Nd,uw;function AF(){if(uw)return Nd;uw=1;var e=QE(),t=wF(),r=tC();function n(i,a){return r(t(i),e(a,0,i.length))}return Nd=n,Nd}var Ld,lw;function OF(){if(lw)return Ld;lw=1;var e=Bc();function t(r,n){return e(n,function(i){return r[i]})}return Ld=t,Ld}var Bd,cw;function TF(){if(cw)return Bd;cw=1;var e=OF(),t=ku();function r(n){return n==null?[]:e(n,t(n))}return Bd=r,Bd}var qd,fw;function PF(){if(fw)return qd;fw=1;var e=QE(),t=tC(),r=TF();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return qd=n,qd}var Fd,hw;function EF(){if(hw)return Fd;hw=1;var e=AF(),t=PF(),r=rr(),n=$u(),i=a0();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 Fd=a,Fd}var CF=EF();const MF=Bt(CF),kF=e=>qB(e,14),pw=e=>Object.values(e).reduce((t,r)=>t+r,0),$F=(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=pw(e),a=J1(Object.entries(e).map(([y,d])=>{const m=Math.max(t-Object.keys(e).length,0),v=Math.round(m*d/i);return[y,v]})),o=J1(Object.entries(e).map(([y,d])=>{const m=t+Object.keys(e).length,v=Math.min(Math.round(m*d/i),t);return[y,v]})),s=JE(Object.entries(e).map(([y,d])=>{const m=a[y],v=o[y];return Hs(m,v).map(_=>{const b=kF(d/(_+.5));return{party:y,quotient:b}})})),u=pw(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(...MF(p,l-h.length))}return h.reduce((y,{party:d})=>(y[d]+=1,y),a)},Bl=e=>Math.round(e*1e10)/1e10,jF=e=>e.reduce((t,r)=>t+r.seats,0),RF=e=>e.flat(),DF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:Bl(e*Math.cos(i)),y:Bl(e*Math.sin(i))}},eC=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},Zo=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(eC(e,t,r,n)*t/r-i)},IF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=Zo(e,n,t,r),a=0;for(Zo(e,n+1,t,r)<i&&(a=1),Zo(e,n-1,t,r)<i&&n>1&&(a=-1);Zo(e,n+a,t,r)<i&&n>0;)i=Zo(e,n+a,t,r),n+=a;return n},NF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=Bl((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=Bl((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},LF=(e,t,r)=>{const n=jF(e),i=IF(n,t,r),a=eC(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=$F(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={...DF(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=NF(s,f),d=s[y],m=f[y]??0,v=d==null?void 0:d[m];v&&(v.fill=h.colour,v.party=String(h.id)),f[y]=m+1}return RF(s)},BF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),qF={seatCount:!1,arcAngle:180,hFunction:Eu},FF=(e,t={})=>{var m;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},qF,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=LF(e,o,a),u=(((m=s[0])==null?void 0:m.r)??0)/.4||0,l=s.map(BF(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",[xE(i),_E(i),wE(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-u/2,p,2*o+u,h].join(",")},[y,...l])},zF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Eu},UF=(e,t={})=>{const r={...zF,...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((H,q)=>H+q.seats,0);let d={seatSize:o,arcAngle:n,score:-1};const m=n-i,v=n+i;for(let H=m;H<=v;H+=2.5){const q=H*Math.PI/180;for(let K=u;K>=s;K-=.1){const Q=K*2,R=Q*l,J=Math.floor((a-p)/R);for(let U=1;U<=Math.min(J,10);U++){let ot=0;for(let yt=0;yt<U;yt++){const st=p+(yt+.5)*R,ht=Q*l/st,ft=Math.floor(q/ht);ot+=ft}if(ot>=y){const yt=y/ot,st=(K-s)/(u-s),ht=(ot-y)/y,ft=ht<.15?1:ht<.3?.7:ht<.5?.4:.1,Ot=1-Math.abs(H-n)/i,at=ft*.5+st*.3+yt*.15+Ot*.05;at>d.score&&(d={seatSize:K,arcAngle:H,rings:U,score:at})}}}}const _=d.seatSize,b=d.arcAngle,x=b*Math.PI/180,g=_*2,w=g*l,S=Math.floor((a-p)/w),A=[],T=-x/2-Math.PI/2,M=[];let P=0,E=[];for(let H=1;H<=S;H++){let q=0;const K=[];for(let Q=0;Q<H;Q++){const R=p+(Q+.5)*w,J=g*l/R,U=Math.floor(x/J);K.push(U),q+=U}if(q>=y){P=H,E=K;break}}if(P>0)M.push(...E);else for(let H=0;H<S;H++){const q=p+(H+.5)*w,K=g*l/q,Q=Math.floor(x/K);M.push(Q)}for(let H=0;H<M.length;H++){const q=p+(H+.5)*w,K=M[H]??0;if(K>0){const Q=x/K;for(let R=0;R<K;R++){const J=T+(R+.5)*Q,U=Math.cos(J)*q,ot=Math.sin(J)*q;A.push({ring:H,index:R,angle:J,x:U,y:ot})}}}A.sort((H,q)=>{const K=H.angle-q.angle;return Math.abs(K)>.001?K:H.ring-q.ring});const C=[];let j=0;e.forEach(H=>{const q=[],K=Math.min(H.seats,A.length-j);let Q=1/0,R=-1/0;for(let U=0;U<K&&j<A.length;U++){const ot=A[j++];ot&&(Q=Math.min(Q,ot.angle),R=Math.max(R,ot.angle),Math.sqrt(ot.x*ot.x+ot.y*ot.y),q.push(h("circle",{fill:H.colour,stroke:H.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${ot.x}, ${ot.y})`,r:_,"data-party":H.name,"data-party-id":String(H.id),style:"pointer-events: all; cursor: pointer;"})))}const J=q;C.push(h("g",{className:"party-group","data-party":H.name,style:"opacity: 1; outline: none;"},J))});const k=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})]),$=h("g",{className:"points-container"},C),N=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,W=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})]),xE(h),_E(h),wE(h)]),B=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[k,$,N].filter(Boolean)),D=x/2;let F;if(b<=180)F=a*Math.sin(D)+_;else{const H=D-Math.PI/2;F=a*(1+Math.sin(H))+_}const X=a+_,L=a*2,Y=Math.max(F,X);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${L} ${Y}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[B,W])};function rC(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?Wa.COMPLETED:e.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:e.color}function zy(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=tr.animation.hoverOpacity.active:i.style.opacity=tr.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Uy(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",tr.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const WF=({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,d=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)"?Wa.COMPLETED:w.color}}),m=i?UF(d,{arcAngle:n,arcAngleFlexibility:l.arcAngleFlexibility,radius:l.radius,seatSize:c,minSeatSize:l.minSeatSize,maxSeatSize:l.maxSeatSize,spacing:l.spacing,innerRadiusRatio:l.innerRadiusRatio,showLabels:!0}):FF(d,{arcAngle:n});m.properties&&(m.properties.width="100%",m.properties.height="100%",m.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",m.properties.preserveAspectRatio="xMidYMid meet");const v=EB(m),x=new DOMParser().parseFromString(v,"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?HF(x,d,t,o,s,u):GF(x,d,t,o,s,u);const g=()=>{if(o(null),u(null),i)zy(x,null);else{const w=x.querySelectorAll("circle");Uy(w,null)}};return x&&x.addEventListener("mouseleave",g),e.current.appendChild(x),f&&x&&kB(x,n,l.radius,h,900,p),()=>{if(x&&x.removeEventListener("mouseleave",g),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 HF(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=tr.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${tr.animation.transitionDuration} ease, stroke-opacity ${tr.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=rC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),zy(e,h.name)}}}};u.addEventListener("mouseenter",f)}),i&&zy(e,i)}function GF(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=tr.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${tr.animation.transitionDuration} ease, stroke-opacity ${tr.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=rC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),Uy(o,u)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(u=>u.name===i);if(s){const u=t.indexOf(s);Uy(o,String(u))}}}const zd=gs,dw={[xs]:Wa.NOT_APPLICABLE,[_s]:Wa.NO_LST,[ws]:Wa.DATA_MISSING},Jo=(e,t,r)=>{if(e in dw)return dw[e];const n=r-1-t,i=zd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return zd[o]??zd[0]??"#000000"},nC=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,d)=>([xs,_s,ws].includes(y.label)?p.special.push({...y,originalIndex:d}):p.regular.push({...y,originalIndex:d}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:Jo(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:Jo(p.label,y,i.length)})),u=n,l={id:"no-lst",label:_s,value:r,color:Jo(_s,0,1)},c={id:"data-missing",label:ws,value:u,color:Jo(ws,0,1)},f={id:"n/a",label:xs,value:t,color:Jo(xs,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},mw={"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."},KF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=tr.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,d]=O.useState(null),v=nC({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}}),_=a??Jv({repositoryCount:t}),b=Qv({repositoryCount:t});WF({containerRef:f,processedData:v,totalRepositories:t,arcAngle:_,useEnhanced:o,maxSeats:tr.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:d,chartConfig:tr.chartConfig,seatSize:b,shouldAnimate:u,animationDirection:l,onAnimationComplete:c});const x=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>tr.maxSeats,w=g?Math.round(t/tr.maxSeats):1;return G.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:[G.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:[G.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"}}}}),G.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&&G.jsxs(O.Fragment,{children:[G.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}),G.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&&G.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:[G.jsx(tt.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),G.jsxs(tt.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&G.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),d(null)},children:G.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:[G.jsx("thead",{children:G.jsxs(tt.TableRow,{children:[G.jsx(tt.TableCell,{}),G.jsx(tt.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),G.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),G.jsx("tbody",{children:x.map(S=>{const A=S.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?zt.noLstHatch.lines:S.color;return G.jsxs(tt.TableRow,{onMouseEnter:()=>{d(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?zt.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:[G.jsx(tt.TableCell,{align:"center",sx:{width:20},children:G.jsx(tt.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?zt.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?zt.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,
@@ -62,7 +62,7 @@
62
62
  transparent 3px,
63
63
  ${zt.noLstHatch.lines} 3px,
64
64
  ${zt.noLstHatch.lines} 4px
65
- )`,borderRadius:"50%"}}}})}),G.jsx(tt.TableCell,{children:G.jsxs(tt.Stack,{direction:"row",alignItems:"center",gap:.5,children:[G.jsx("span",{children:S.label}),vw[S.label]&&G.jsx(tt.Tooltip,{title:vw[S.label],placement:"right",arrow:!0,children:G.jsx(HO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),G.jsx(tt.TableCell,{align:"right",children:S.value}),G.jsxs(tt.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function uC(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=uC(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=uC(e))&&(n&&(n+=" "),n+=t);return n}var t5=JE();const Gr=Bt(t5);var Ud,bw;function e5(){if(bw)return Ud;bw=1;function e(t){return t==null}return Ud=e,Ud}var r5=e5();const vt=Bt(r5);var Wd,_w;function n5(){if(_w)return Wd;_w=1;var e=Zn(),t=rr(),r=Jn(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Wd=i,Wd}var i5=n5();const ua=Bt(i5);var a5=c0();const xt=Bt(a5);var o5=Si();const jo=Bt(o5);var Gu={exports:{}},Rt={};/**
65
+ )`,borderRadius:"50%"}}}})}),G.jsx(tt.TableCell,{children:G.jsxs(tt.Stack,{direction:"row",alignItems:"center",gap:.5,children:[G.jsx("span",{children:S.label}),mw[S.label]&&G.jsx(tt.Tooltip,{title:mw[S.label],placement:"right",arrow:!0,children:G.jsx(zO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),G.jsx(tt.TableCell,{align:"right",children:S.value}),G.jsxs(tt.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function iC(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=iC(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=iC(e))&&(n&&(n+=" "),n+=t);return n}var XF=XE();const Gr=Bt(XF);var Ud,yw;function YF(){if(yw)return Ud;yw=1;function e(t){return t==null}return Ud=e,Ud}var VF=YF();const vt=Bt(VF);var Wd,gw;function ZF(){if(gw)return Wd;gw=1;var e=Zn(),t=rr(),r=Jn(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Wd=i,Wd}var JF=ZF();const ua=Bt(JF);var QF=l0();const _t=Bt(QF);var t5=Ai();const jo=Bt(t5);var Gu={exports:{}},Rt={};/**
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 xw;function s5(){if(xw)return Rt;xw=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 d(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case e:switch(m=m.type,m){case r:case i:case n:case l:case c:return m;default:switch(m=m&&m.$$typeof,m){case s:case o:case u:case h:case f:case a:return m;default:return v}}case t:return v}}}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(m){return d(m)===o},Rt.isContextProvider=function(m){return d(m)===a},Rt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Rt.isForwardRef=function(m){return d(m)===u},Rt.isFragment=function(m){return d(m)===r},Rt.isLazy=function(m){return d(m)===h},Rt.isMemo=function(m){return d(m)===f},Rt.isPortal=function(m){return d(m)===t},Rt.isProfiler=function(m){return d(m)===i},Rt.isStrictMode=function(m){return d(m)===n},Rt.isSuspense=function(m){return d(m)===l},Rt.isSuspenseList=function(m){return d(m)===c},Rt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===i||m===n||m===l||m===c||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===f||m.$$typeof===a||m.$$typeof===o||m.$$typeof===u||m.$$typeof===y||m.getModuleId!==void 0)},Rt.typeOf=d,Rt}var Dt={};/**
73
+ */var vw;function e5(){if(vw)return Rt;vw=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 d(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case e:switch(m=m.type,m){case r:case i:case n:case l:case c:return m;default:switch(m=m&&m.$$typeof,m){case s:case o:case u:case h:case f:case a:return m;default:return v}}case t:return v}}}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(m){return d(m)===o},Rt.isContextProvider=function(m){return d(m)===a},Rt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Rt.isForwardRef=function(m){return d(m)===u},Rt.isFragment=function(m){return d(m)===r},Rt.isLazy=function(m){return d(m)===h},Rt.isMemo=function(m){return d(m)===f},Rt.isPortal=function(m){return d(m)===t},Rt.isProfiler=function(m){return d(m)===i},Rt.isStrictMode=function(m){return d(m)===n},Rt.isSuspense=function(m){return d(m)===l},Rt.isSuspenseList=function(m){return d(m)===c},Rt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===i||m===n||m===l||m===c||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===f||m.$$typeof===a||m.$$typeof===o||m.$$typeof===u||m.$$typeof===y||m.getModuleId!==void 0)},Rt.typeOf=d,Rt}var Dt={};/**
74
74
  * @license React
75
75
  * react-is.development.js
76
76
  *
@@ -78,70 +78,70 @@
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 ww;function u5(){return ww||(ww=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,d=!1,m=!1,v=!1,x=!1,b;b=Symbol.for("react.module.reference");function _(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===i||x||U===n||U===l||U===c||v||U===p||y||d||m||typeof U=="object"&&U!==null&&(U.$$typeof===h||U.$$typeof===f||U.$$typeof===a||U.$$typeof===o||U.$$typeof===u||U.$$typeof===b||U.getModuleId!==void 0))}function g(U){if(typeof U=="object"&&U!==null){var ot=U.$$typeof;switch(ot){case e:var yt=U.type;switch(yt){case r:case i:case n:case l:case c:return yt;default:var st=yt&&yt.$$typeof;switch(st){case s:case o:case u:case h:case f:case a:return st;default:return ot}}case t:return ot}}}var w=o,S=a,A=e,T=u,M=r,P=h,E=f,C=t,j=i,k=n,$=l,N=c,W=!1,z=!1;function I(U){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(U){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(U){return g(U)===o}function F(U){return g(U)===a}function X(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function L(U){return g(U)===u}function Y(U){return g(U)===r}function Z(U){return g(U)===h}function H(U){return g(U)===f}function q(U){return g(U)===t}function K(U){return g(U)===i}function Q(U){return g(U)===n}function R(U){return g(U)===l}function J(U){return g(U)===c}Dt.ContextConsumer=w,Dt.ContextProvider=S,Dt.Element=A,Dt.ForwardRef=T,Dt.Fragment=M,Dt.Lazy=P,Dt.Memo=E,Dt.Portal=C,Dt.Profiler=j,Dt.StrictMode=k,Dt.Suspense=$,Dt.SuspenseList=N,Dt.isAsyncMode=I,Dt.isConcurrentMode=B,Dt.isContextConsumer=D,Dt.isContextProvider=F,Dt.isElement=X,Dt.isForwardRef=L,Dt.isFragment=Y,Dt.isLazy=Z,Dt.isMemo=H,Dt.isPortal=q,Dt.isProfiler=K,Dt.isStrictMode=Q,Dt.isSuspense=R,Dt.isSuspenseList=J,Dt.isValidElementType=_,Dt.typeOf=g})()),Dt}var Sw;function l5(){return Sw||(Sw=1,process.env.NODE_ENV==="production"?Gu.exports=s5():Gu.exports=u5()),Gu.exports}var c5=l5(),Hd,Aw;function lC(){if(Aw)return Hd;Aw=1;var e=Zn(),t=Jn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Hd=n,Hd}var Gd,Ow;function f5(){if(Ow)return Gd;Ow=1;var e=lC();function t(r){return e(r)&&r!=+r}return Gd=t,Gd}var h5=f5();const Ro=Bt(h5);var p5=lC();const d5=Bt(p5);var an=function(t){return t===0?0:t>0?1:-1},Gi=function(t){return ua(t)&&t.indexOf("%")===t.length-1},it=function(t){return d5(t)&&!Ro(t)},m5=function(t){return vt(t)},Te=function(t){return it(t)||ua(t)},y5=0,ba=function(t){var r=++y5;return"".concat(t||"").concat(r)},la=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)&&!ua(t))return n;var a;if(Gi(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},ui=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},de=function(t,r){return it(t)&&it(r)?function(n){return t+n*(r-t)}:function(){return r}};function ql(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Gr(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,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}},b5=function(t,r){return it(t)&&it(r)?t-r:ua(t)&&ua(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ha(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 Wy(e){"@babel/helpers - typeof";return Wy=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},Wy(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"],Tw=["points","pathLength"],Kd={svg:_5,polygon:Tw,polyline:Tw},_0=["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"],Fl=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!jo(n))return null;var i={};return Object.keys(n).forEach(function(a){_0.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}},Gs=function(t,r,n){if(!jo(t)||Wy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];_0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=w5(o,r,n))}),i},S5=["children"],A5=["children"];function Pw(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 Hy(e){"@babel/helpers - typeof";return Hy=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},Hy(e)}var Ew={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"},Fn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Cw=null,Xd=null,x0=function e(t){if(t===Cw&&Array.isArray(Xd))return Xd;var r=[];return O.Children.forEach(t,function(n){vt(n)||(c5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Xd=r,Cw=t,r};function mr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Fn(i)}):n=[Fn(t)],x0(e).forEach(function(i){var a=Gr(i,"type.displayName")||Gr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ar(e,t){var r=mr(e,t);return r&&r[0]}var Mw=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&&ua(t.type)&&T5.indexOf(t.type)>=0},cC=function(t){return t&&Hy(t)==="object"&&"clipDot"in t},E5=function(t,r,n,i){var a,o=(a=Kd==null?void 0:Kd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!xt(t)&&(i&&o.includes(r)||x5.includes(r))||n&&_0.includes(r)},_t=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!jo(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},Gy=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 kw(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(!kw(a,o))return!1}return!0},kw=function(t,r){if(vt(t)&&vt(r))return!0;if(!vt(t)&&!vt(r)){var n=t.props||{},i=n.children,a=Pw(n,S5),o=r.props||{},s=o.children,u=Pw(o,A5);return i&&s?Ha(a,u)&&Gy(i,s):!i&&!s?Ha(a,u):!1}return!1},$w=function(t,r){var n=[],i={};return x0(t).forEach(function(a,o){if(P5(a))n.push(a);else if(a){var s=Fn(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},C5=function(t){var r=t&&t.type;return r&&Ew[r]?Ew[r]:null},M5=function(t,r){return x0(r).indexOf(t)},k5=["children","width","height","viewBox","className","style","title","desc"];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 $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 Xy(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=$5(e,k5),c=i||{width:r,height:n,x:0,y:0},f=Tt("recharts-surface",a);return O.createElement("svg",Ky({},_t(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 R5=["children","className"];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 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 jt=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=D5(e,R5),a=Tt("recharts-layer",n);return O.createElement("g",Yy({className:a},_t(i,!0),{ref:t}),r)}),N5=process.env.NODE_ENV!=="production",zn=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++]}))}},Yd,jw;function L5(){if(jw)return Yd;jw=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 Yd=e,Yd}var Vd,Rw;function B5(){if(Rw)return Vd;Rw=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 Vd=t,Vd}var Zd,Dw;function fC(){if(Dw)return Zd;Dw=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 Zd=u,Zd}var Jd,Iw;function q5(){if(Iw)return Jd;Iw=1;function e(t){return t.split("")}return Jd=e,Jd}var Qd,Nw;function F5(){if(Nw)return Qd;Nw=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+"?",d="["+a+"]?",m="(?:"+p+"(?:"+[c,f,h].join("|")+")"+d+y+")*",v=d+y+m,x="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(u+"(?="+u+")|"+x+v,"g");function _(g){return g.match(b)||[]}return Qd=_,Qd}var tm,Lw;function z5(){if(Lw)return tm;Lw=1;var e=q5(),t=fC(),r=F5();function n(i){return t(i)?r(i):e(i)}return tm=n,tm}var em,Bw;function U5(){if(Bw)return em;Bw=1;var e=B5(),t=fC(),r=z5(),n=s0();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 em=i,em}var rm,qw;function W5(){if(qw)return rm;qw=1;var e=U5(),t=e("toUpperCase");return rm=t,rm}var H5=W5();const Gc=Bt(H5);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)}var G5=["type","size","sizeType"];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)}function Fw(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 zw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(r),!0).forEach(function(n){K5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K5(e,t,r){return t=X5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X5(e){var t=Y5(e,"string");return Ks(t)=="symbol"?t:t+""}function Y5(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)}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:$v,symbolCross:aI,symbolDiamond:sI,symbolSquare:uI,symbolStar:hI,symbolTriangle:pI,symbolWye:mI},J5=Math.PI/180,Q5=function(t){var r="symbol".concat(Gc(t));return hC[r]||$v},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(Gc(t))]=r},Kc=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=V5(t,G5),l=zw(zw({},u),{},{type:n,size:a,sizeType:s}),c=function(){var m=Q5(n),v=yI().type(m).size(tz(a,s,n));return v()},f=l.className,h=l.cx,p=l.cy,y=_t(l,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",Vy({},y,{className:Tt("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Kc.registerSymbol=ez;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 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 Uw(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?Uw(Object(r),!0).forEach(function(n){Xs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uw(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=zl(t),sz(e,pC()?Reflect.construct(t,r||[],zl(e).constructor):t.apply(e,r))}function sz(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 uz(e)}function uz(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 zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zl(e)}function lz(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 Xs(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 ao(t)=="symbol"?t:t+""}function cz(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 Lr=32,w0=(function(e){function t(){return nz(this,t),oz(this,t,arguments)}return lz(t,e),az(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Lr/2,o=Lr/6,s=Lr/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:Lr,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 bw;function r5(){return bw||(bw=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,d=!1,m=!1,v=!1,_=!1,b;b=Symbol.for("react.module.reference");function x(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===i||_||U===n||U===l||U===c||v||U===p||y||d||m||typeof U=="object"&&U!==null&&(U.$$typeof===h||U.$$typeof===f||U.$$typeof===a||U.$$typeof===o||U.$$typeof===u||U.$$typeof===b||U.getModuleId!==void 0))}function g(U){if(typeof U=="object"&&U!==null){var ot=U.$$typeof;switch(ot){case e:var yt=U.type;switch(yt){case r:case i:case n:case l:case c:return yt;default:var st=yt&&yt.$$typeof;switch(st){case s:case o:case u:case h:case f:case a:return st;default:return ot}}case t:return ot}}}var w=o,S=a,A=e,T=u,M=r,P=h,E=f,C=t,j=i,k=n,$=l,N=c,W=!1,z=!1;function I(U){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(U){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(U){return g(U)===o}function F(U){return g(U)===a}function X(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function L(U){return g(U)===u}function Y(U){return g(U)===r}function Z(U){return g(U)===h}function H(U){return g(U)===f}function q(U){return g(U)===t}function K(U){return g(U)===i}function Q(U){return g(U)===n}function R(U){return g(U)===l}function J(U){return g(U)===c}Dt.ContextConsumer=w,Dt.ContextProvider=S,Dt.Element=A,Dt.ForwardRef=T,Dt.Fragment=M,Dt.Lazy=P,Dt.Memo=E,Dt.Portal=C,Dt.Profiler=j,Dt.StrictMode=k,Dt.Suspense=$,Dt.SuspenseList=N,Dt.isAsyncMode=I,Dt.isConcurrentMode=B,Dt.isContextConsumer=D,Dt.isContextProvider=F,Dt.isElement=X,Dt.isForwardRef=L,Dt.isFragment=Y,Dt.isLazy=Z,Dt.isMemo=H,Dt.isPortal=q,Dt.isProfiler=K,Dt.isStrictMode=Q,Dt.isSuspense=R,Dt.isSuspenseList=J,Dt.isValidElementType=x,Dt.typeOf=g})()),Dt}var xw;function n5(){return xw||(xw=1,process.env.NODE_ENV==="production"?Gu.exports=e5():Gu.exports=r5()),Gu.exports}var i5=n5(),Hd,_w;function aC(){if(_w)return Hd;_w=1;var e=Zn(),t=Jn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Hd=n,Hd}var Gd,ww;function a5(){if(ww)return Gd;ww=1;var e=aC();function t(r){return e(r)&&r!=+r}return Gd=t,Gd}var o5=a5();const Ro=Bt(o5);var s5=aC();const u5=Bt(s5);var an=function(t){return t===0?0:t>0?1:-1},Ki=function(t){return ua(t)&&t.indexOf("%")===t.length-1},it=function(t){return u5(t)&&!Ro(t)},l5=function(t){return vt(t)},Te=function(t){return it(t)||ua(t)},c5=0,ba=function(t){var r=++c5;return"".concat(t||"").concat(r)},la=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)&&!ua(t))return n;var a;if(Ki(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},ui=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},f5=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},de=function(t,r){return it(t)&&it(r)?function(n){return t+n*(r-t)}:function(){return r}};function ql(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Gr(n,t))===r})}var h5=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}},p5=function(t,r){return it(t)&&it(r)?t-r:ua(t)&&ua(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ha(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 Wy(e){"@babel/helpers - typeof";return Wy=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},Wy(e)}var d5=["viewBox","children"],m5=["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"],Sw=["points","pathLength"],Kd={svg:d5,polygon:Sw,polyline:Sw},b0=["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"],Fl=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!jo(n))return null;var i={};return Object.keys(n).forEach(function(a){b0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},y5=function(t,r,n){return function(i){return t(r,n,i),null}},Gs=function(t,r,n){if(!jo(t)||Wy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];b0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=y5(o,r,n))}),i},g5=["children"],v5=["children"];function Aw(e,t){if(e==null)return{};var r=b5(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 b5(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 Hy(e){"@babel/helpers - typeof";return Hy=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},Hy(e)}var Ow={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"},Fn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Tw=null,Xd=null,x0=function e(t){if(t===Tw&&Array.isArray(Xd))return Xd;var r=[];return O.Children.forEach(t,function(n){vt(n)||(i5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Xd=r,Tw=t,r};function mr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Fn(i)}):n=[Fn(t)],x0(e).forEach(function(i){var a=Gr(i,"type.displayName")||Gr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ar(e,t){var r=mr(e,t);return r&&r[0]}var Pw=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)},x5=["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"],_5=function(t){return t&&t.type&&ua(t.type)&&x5.indexOf(t.type)>=0},oC=function(t){return t&&Hy(t)==="object"&&"clipDot"in t},w5=function(t,r,n,i){var a,o=(a=Kd==null?void 0:Kd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!_t(t)&&(i&&o.includes(r)||m5.includes(r))||n&&b0.includes(r)},xt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!jo(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;w5((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Gy=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 Ew(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(!Ew(a,o))return!1}return!0},Ew=function(t,r){if(vt(t)&&vt(r))return!0;if(!vt(t)&&!vt(r)){var n=t.props||{},i=n.children,a=Aw(n,g5),o=r.props||{},s=o.children,u=Aw(o,v5);return i&&s?Ha(a,u)&&Gy(i,s):!i&&!s?Ha(a,u):!1}return!1},Cw=function(t,r){var n=[],i={};return x0(t).forEach(function(a,o){if(_5(a))n.push(a);else if(a){var s=Fn(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},S5=function(t){var r=t&&t.type;return r&&Ow[r]?Ow[r]:null},A5=function(t,r){return x0(r).indexOf(t)},O5=["children","width","height","viewBox","className","style","title","desc"];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 T5(e,t){if(e==null)return{};var r=P5(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 P5(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 Xy(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=T5(e,O5),c=i||{width:r,height:n,x:0,y:0},f=Tt("recharts-surface",a);return O.createElement("svg",Ky({},xt(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 E5=["children","className"];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 C5(e,t){if(e==null)return{};var r=M5(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 M5(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=C5(e,E5),a=Tt("recharts-layer",n);return O.createElement("g",Yy({className:a},xt(i,!0),{ref:t}),r)}),k5=process.env.NODE_ENV!=="production",zn=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(k5&&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++]}))}},Yd,Mw;function $5(){if(Mw)return Yd;Mw=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 Yd=e,Yd}var Vd,kw;function j5(){if(kw)return Vd;kw=1;var e=$5();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 Vd=t,Vd}var Zd,$w;function sC(){if($w)return Zd;$w=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 Zd=u,Zd}var Jd,jw;function R5(){if(jw)return Jd;jw=1;function e(t){return t.split("")}return Jd=e,Jd}var Qd,Rw;function D5(){if(Rw)return Qd;Rw=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+"?",d="["+a+"]?",m="(?:"+p+"(?:"+[c,f,h].join("|")+")"+d+y+")*",v=d+y+m,_="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(u+"(?="+u+")|"+_+v,"g");function x(g){return g.match(b)||[]}return Qd=x,Qd}var tm,Dw;function I5(){if(Dw)return tm;Dw=1;var e=R5(),t=sC(),r=D5();function n(i){return t(i)?r(i):e(i)}return tm=n,tm}var em,Iw;function N5(){if(Iw)return em;Iw=1;var e=j5(),t=sC(),r=I5(),n=o0();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 em=i,em}var rm,Nw;function L5(){if(Nw)return rm;Nw=1;var e=N5(),t=e("toUpperCase");return rm=t,rm}var B5=L5();const Gc=Bt(B5);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)}var q5=["type","size","sizeType"];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)}function Lw(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 Bw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lw(Object(r),!0).forEach(function(n){F5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F5(e,t,r){return t=z5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z5(e){var t=U5(e,"string");return Ks(t)=="symbol"?t:t+""}function U5(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)}function W5(e,t){if(e==null)return{};var r=H5(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 H5(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 uC={symbolCircle:$v,symbolCross:eI,symbolDiamond:nI,symbolSquare:iI,symbolStar:uI,symbolTriangle:lI,symbolWye:fI},G5=Math.PI/180,K5=function(t){var r="symbol".concat(Gc(t));return uC[r]||$v},X5=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*G5;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}},Y5=function(t,r){uC["symbol".concat(Gc(t))]=r},Kc=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=W5(t,q5),l=Bw(Bw({},u),{},{type:n,size:a,sizeType:s}),c=function(){var m=K5(n),v=hI().type(m).size(X5(a,s,n));return v()},f=l.className,h=l.cx,p=l.cy,y=xt(l,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",Vy({},y,{className:Tt("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Kc.registerSymbol=Y5;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 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 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 V5(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){Xs(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 Z5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J5(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,cC(n.key),n)}}function Q5(e,t,r){return t&&J5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tz(e,t,r){return t=zl(t),ez(e,lC()?Reflect.construct(t,r||[],zl(e).constructor):t.apply(e,r))}function ez(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 rz(e)}function rz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lC=function(){return!!e})()}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zl(e)}function nz(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 Xs(e,t,r){return t=cC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cC(e){var t=iz(e,"string");return ao(t)=="symbol"?t:t+""}function iz(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 Lr=32,_0=(function(e){function t(){return Z5(this,t),tz(this,t,arguments)}return nz(t,e),Q5(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Lr/2,o=Lr/6,s=Lr/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:Lr,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,`
82
82
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
83
83
  H`).concat(Lr,"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(Lr/8,"h").concat(Lr,"v").concat(Lr*3/4,"h").concat(-Lr,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var l=rz({},n);return delete l.legendIcon,O.cloneElement(n.legendIcon,l)}return O.createElement(Kc,{fill:u,cx:a,cy:a,size:Lr,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:Lr,height:Lr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var d=p.formatter||u,m=Tt(Xs(Xs({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=xt(p.value)?null:p.value;zn(!xt(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 x=p.inactive?l:p.color;return O.createElement("li",Zy({className:m,style:f,key:"legend-item-".concat(y)},Gs(n.props,p,y)),O.createElement(Xy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},d?d(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);Xs(w0,"displayName","Legend");Xs(w0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var nm,Ww;function mC(){if(Ww)return nm;Ww=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 nm=e,nm}var im,Hw;function fz(){if(Hw)return im;Hw=1;function e(t){return t!==t}return im=e,im}var am,Gw;function hz(){if(Gw)return am;Gw=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 am=e,am}var om,Kw;function pz(){if(Kw)return om;Kw=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 om=n,om}var sm,Xw;function dz(){if(Xw)return sm;Xw=1;var e=pz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return sm=t,sm}var um,Yw;function mz(){if(Yw)return um;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 um=e,um}var lm,Vw;function yz(){if(Vw)return lm;Vw=1;function e(){}return lm=e,lm}var cm,Zw;function gz(){if(Zw)return cm;Zw=1;var e=YE(),t=yz(),r=m0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return cm=i,cm}var fm,Jw;function vz(){if(Jw)return fm;Jw=1;var e=FE(),t=dz(),r=mz(),n=UE(),i=gz(),a=m0(),o=200;function s(u,l,c){var f=-1,h=t,p=u.length,y=!0,d=[],m=d;if(c)y=!1,h=r;else if(p>=o){var v=l?null:i(u);if(v)return a(v);y=!1,h=n,m=new e}else m=l?[]:d;t:for(;++f<p;){var x=u[f],b=l?l(x):x;if(x=c||x!==0?x:0,y&&b===b){for(var _=m.length;_--;)if(m[_]===b)continue t;l&&m.push(b),d.push(x)}else h(m,b,c)||(m!==d&&m.push(b),d.push(x))}return d}return fm=s,fm}var hm,Qw;function bz(){if(Qw)return hm;Qw=1;var e=Ai(),t=vz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return hm=r,hm}var _z=bz();const tS=Bt(_z);function yC(e,t,r){return t===!0?tS(e,r):xt(t)?tS(e,t):e}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)}var xz=["ref"];function eS(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 Rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eS(Object(r),!0).forEach(function(n){Xc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eS(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 rS(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&&rS(e.prototype,t),r&&rS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Az(e,t,r){return t=Ul(t),Oz(e,gC()?Reflect.construct(t,r||[],Ul(e).constructor):t.apply(e,r))}function Oz(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 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 Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ul(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&&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 Xc(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 oo(t)=="symbol"?t:t+""}function Ez(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 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(w0,r)}var nS=1,ta=(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)),Xc(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)>nS||Math.abs(i.height-this.lastBoundingBox.height)>nS)&&(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?Rn({},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 Rn(Rn({},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=Rn(Rn({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}},$z(a,Rn(Rn({},this.props),{},{payload:yC(c,l,kz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Rn(Rn({},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);Xc(ta,"displayName","Legend");Xc(ta,"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 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 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 iS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iS(e,t)}}function iS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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=[],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 Nz(e){if(Array.isArray(e))return e}function aS(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 pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aS(Object(r),!0).forEach(function(n){Lz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aS(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 Ys(t)=="symbol"?t:t+""}function qz(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 Fz(e){return Array.isArray(e)&&Te(e[0])&&Te(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,u=t.labelStyle,l=u===void 0?{}:u,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,d=t.label,m=t.labelFormatter,v=t.accessibilityLayer,x=v===void 0?!1:v,b=function(){if(c&&c.length){var E={padding:0,margin:0},C=(h?Hc(c,h):c).map(function(j,k){if(j.type==="none")return null;var $=pm({display:"block",paddingTop:4,paddingBottom:4,color:j.color||"#000"},s),N=j.formatter||f||Fz,W=j.value,z=j.name,I=W,B=z;if(N&&I!=null&&B!=null){var D=N(W,z,j,k,c);if(Array.isArray(D)){var F=jz(D,2);I=F[0],B=F[1]}else I=D}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:$},Te(B)?O.createElement("span",{className:"recharts-tooltip-item-name"},B):null,Te(B)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},j.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},_=pm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=pm({margin:0},l),w=!vt(d),S=w?d:"",A=Tt("recharts-default-tooltip",p),T=Tt("recharts-tooltip-label",y);w&&m&&c!==void 0&&c!==null&&(S=m(d,c));var M=x?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",tg({className:A,style:_},M),O.createElement("p",{className:T,style:g},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 Ku(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 Vs(t)=="symbol"?t:t+""}function Wz(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 Qo="recharts-tooltip-wrapper",Hz={visibility:"hidden"};function Gz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Tt(Qo,Ku(Ku(Ku(Ku({},"".concat(Qo,"-right"),it(r)&&t&&it(t.x)&&r>=t.x),"".concat(Qo,"-left"),it(r)&&t&&it(t.x)&&r<t.x),"".concat(Qo,"-bottom"),it(n)&&t&&it(t.y)&&n>=t.y),"".concat(Qo,"-top"),it(n)&&t&&it(t.y)&&n<t.y))}function oS(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&&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=u[n];return h<p?Math.max(f,u[n]):Math.max(c,u[n])}var y=f+s,d=u[n]+l;return y>d?Math.max(c,u[n]):Math.max(f,u[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 Xz(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=oS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=oS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),l=Kz({translateX:c,translateY:f,useTranslate3d:s})):l=Hz,{cssProperties:l,cssClasses:Gz({translateX:c,translateY:f,coordinate:r})}}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 sS(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 uS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sS(Object(r),!0).forEach(function(n){rg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yz(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=Wl(t),Qz(e,bC()?Reflect.construct(t,r||[],Wl(e).constructor):t.apply(e,r))}function Qz(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 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 Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wl(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&&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 rg(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 so(t)=="symbol"?t:t+""}function r3(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 lS=1,n3=(function(e){function t(){var r;Yz(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)),rg(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),rg(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 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,u=i.animationEasing,l=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,d=i.reverseDirection,m=i.useTranslate3d,v=i.viewBox,x=i.wrapperStyle,b=Xz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:v}),_=b.cssClasses,g=b.cssProperties,w=uS(uS({transition:h&&a?"transform ".concat(s,"ms ").concat(u):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return O.createElement("div",{tabIndex:-1,className:_,style:w,ref:function(A){n.wrapperNode=A}},l)}}])})(O.PureComponent),i3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Oi={isSsr:i3()};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)}function cS(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 fS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cS(Object(r),!0).forEach(function(n){S0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cS(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 u3(e,t,r){return t=Hl(t),l3(e,xC()?Reflect.construct(t,r||[],Hl(e).constructor):t.apply(e,r))}function l3(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 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 Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hl(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&&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 S0(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 uo(t)=="symbol"?t:t+""}function h3(e,t){if(uo(e)!="object"||!e)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 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 _n=(function(e){function t(){return a3(this,t),u3(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,u=i.animationEasing,l=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,d=i.payloadUniqBy,m=i.position,v=i.reverseDirection,x=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)}),d,p3));var w=g.length>0;return O.createElement(n3,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:p,position:m,reverseDirection:v,useTranslate3d:x,viewBox:b,wrapperStyle:_},d3(l,fS(fS({},this.props),{},{payload:g})))}}])})(O.PureComponent);S0(_n,"displayName","Tooltip");S0(_n,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Oi.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 dm,hS;function m3(){if(hS)return dm;hS=1;var e=ln(),t=function(){return e.Date.now()};return dm=t,dm}var mm,pS;function y3(){if(pS)return mm;pS=1;var e=Si(),t=m3(),r=a0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,u,l){var c,f,h,p,y,d,m=0,v=!1,x=!1,b=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(v=!!l.leading,x="maxWait"in l,h=x?i(r(l.maxWait)||0,u):h,b="trailing"in l?!!l.trailing:b);function _(C){var j=c,k=f;return c=f=void 0,m=C,p=s.apply(k,j),p}function g(C){return m=C,y=setTimeout(A,u),v?_(C):p}function w(C){var j=C-d,k=C-m,$=u-j;return x?a($,h-k):$}function S(C){var j=C-d,k=C-m;return d===void 0||j>=u||j<0||x&&k>=h}function A(){var C=t();if(S(C))return T(C);y=setTimeout(A,w(C))}function T(C){return y=void 0,b&&c?_(C):(c=f=void 0,p)}function M(){y!==void 0&&clearTimeout(y),m=0,c=d=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var C=t(),j=S(C);if(c=arguments,f=this,d=C,j){if(y===void 0)return g(d);if(x)return clearTimeout(y),y=setTimeout(A,u),_(d)}return y===void 0&&(y=setTimeout(A,u)),p}return E.cancel=M,E.flush=P,E}return mm=o,mm}var ym,dS;function g3(){if(dS)return ym;dS=1;var e=y3(),t=Si(),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 ym=n,ym}var v3=g3();const SC=Bt(v3);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 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 Xu(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){b3(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 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 Zs(t)=="symbol"?t:t+""}function x3(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 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 yS(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 yS(e,t)}}function yS(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=[],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 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,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,d=y===void 0?0:y,m=e.id,v=e.className,x=e.onResize,b=e.style,_=b===void 0?{}:b,g=O.useRef(null),w=O.useRef();w.current=x,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],M=A[1],P=O.useCallback(function(C,j){M(function(k){var $=Math.round(C),N=Math.round(j);return k.containerWidth===$&&k.containerHeight===N?k:{containerWidth:$,containerHeight:N}})},[]);O.useEffect(function(){var C=function(z){var I,B=z[0].contentRect,D=B.width,F=B.height;P(D,F),(I=w.current)===null||I===void 0||I.call(w,D,F)};d>0&&(C=SC(C,d,{trailing:!0,leading:!1}));var j=new ResizeObserver(C),k=g.current.getBoundingClientRect(),$=k.width,N=k.height;return P($,N),j.observe(g.current),function(){j.disconnect()}},[P,d]);var E=O.useMemo(function(){var C=T.containerWidth,j=T.containerHeight;if(C<0||j<0)return null;zn(Gi(o)||Gi(u),`The width(%s) and height(%s) are both fixed numbers,
87
- maybe you don't need to use a ResponsiveContainer.`,o,u),zn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=Gi(o)?C:o,$=Gi(u)?j:u;r&&r>0&&(k?$=k/r:$&&(k=$*r),h&&$>h&&($=h)),zn(k>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0,
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(Lr/8,"h").concat(Lr,"v").concat(Lr*3/4,"h").concat(-Lr,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var l=V5({},n);return delete l.legendIcon,O.cloneElement(n.legendIcon,l)}return O.createElement(Kc,{fill:u,cx:a,cy:a,size:Lr,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:Lr,height:Lr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var d=p.formatter||u,m=Tt(Xs(Xs({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=_t(p.value)?null:p.value;zn(!_t(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",Zy({className:m,style:f,key:"legend-item-".concat(y)},Gs(n.props,p,y)),O.createElement(Xy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},d?d(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);Xs(_0,"displayName","Legend");Xs(_0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var nm,Fw;function fC(){if(Fw)return nm;Fw=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 nm=e,nm}var im,zw;function az(){if(zw)return im;zw=1;function e(t){return t!==t}return im=e,im}var am,Uw;function oz(){if(Uw)return am;Uw=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 am=e,am}var om,Ww;function sz(){if(Ww)return om;Ww=1;var e=fC(),t=az(),r=oz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return om=n,om}var sm,Hw;function uz(){if(Hw)return sm;Hw=1;var e=sz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return sm=t,sm}var um,Gw;function lz(){if(Gw)return um;Gw=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 um=e,um}var lm,Kw;function cz(){if(Kw)return lm;Kw=1;function e(){}return lm=e,lm}var cm,Xw;function fz(){if(Xw)return cm;Xw=1;var e=HE(),t=cz(),r=d0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return cm=i,cm}var fm,Yw;function hz(){if(Yw)return fm;Yw=1;var e=NE(),t=uz(),r=lz(),n=BE(),i=fz(),a=d0(),o=200;function s(u,l,c){var f=-1,h=t,p=u.length,y=!0,d=[],m=d;if(c)y=!1,h=r;else if(p>=o){var v=l?null:i(u);if(v)return a(v);y=!1,h=n,m=new e}else m=l?[]:d;t:for(;++f<p;){var _=u[f],b=l?l(_):_;if(_=c||_!==0?_:0,y&&b===b){for(var x=m.length;x--;)if(m[x]===b)continue t;l&&m.push(b),d.push(_)}else h(m,b,c)||(m!==d&&m.push(b),d.push(_))}return d}return fm=s,fm}var hm,Vw;function pz(){if(Vw)return hm;Vw=1;var e=Oi(),t=hz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return hm=r,hm}var dz=pz();const Zw=Bt(dz);function hC(e,t,r){return t===!0?Zw(e,r):_t(t)?Zw(e,t):e}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)}var mz=["ref"];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 Rn(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){Xc(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 yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qw(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 gz(e,t,r){return t&&Qw(e.prototype,t),r&&Qw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vz(e,t,r){return t=Ul(t),bz(e,pC()?Reflect.construct(t,r||[],Ul(e).constructor):t.apply(e,r))}function bz(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 xz(e)}function xz(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 Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ul(e)}function _z(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 Xc(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=wz(e,"string");return oo(t)=="symbol"?t:t+""}function wz(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 Sz(e,t){if(e==null)return{};var r=Az(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 Az(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 Oz(e){return e.value}function Tz(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Sz(t,mz);return O.createElement(_0,r)}var tS=1,ea=(function(e){function t(){var r;yz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=vz(this,t,[].concat(i)),Xc(r,"lastBoundingBox",{width:-1,height:-1}),r}return _z(t,e),gz(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)>tS||Math.abs(i.height-this.lastBoundingBox.height)>tS)&&(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?Rn({},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 Rn(Rn({},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=Rn(Rn({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}},Tz(a,Rn(Rn({},this.props),{},{payload:hC(c,l,Oz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Rn(Rn({},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);Xc(ea,"displayName","Legend");Xc(ea,"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 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 Pz(e,t){return kz(e)||Mz(e,t)||Cz(e,t)||Ez()}function Ez(){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 Cz(e,t){if(e){if(typeof e=="string")return eS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eS(e,t)}}function eS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Mz(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 kz(e){if(Array.isArray(e))return e}function rS(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 pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rS(Object(r),!0).forEach(function(n){$z(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $z(e,t,r){return t=jz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jz(e){var t=Rz(e,"string");return Ys(t)=="symbol"?t:t+""}function Rz(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 Dz(e){return Array.isArray(e)&&Te(e[0])&&Te(e[1])?e.join(" ~ "):e}var Iz=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,d=t.label,m=t.labelFormatter,v=t.accessibilityLayer,_=v===void 0?!1:v,b=function(){if(c&&c.length){var E={padding:0,margin:0},C=(h?Hc(c,h):c).map(function(j,k){if(j.type==="none")return null;var $=pm({display:"block",paddingTop:4,paddingBottom:4,color:j.color||"#000"},s),N=j.formatter||f||Dz,W=j.value,z=j.name,I=W,B=z;if(N&&I!=null&&B!=null){var D=N(W,z,j,k,c);if(Array.isArray(D)){var F=Pz(D,2);I=F[0],B=F[1]}else I=D}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:$},Te(B)?O.createElement("span",{className:"recharts-tooltip-item-name"},B):null,Te(B)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},j.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},x=pm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=pm({margin:0},l),w=!vt(d),S=w?d:"",A=Tt("recharts-default-tooltip",p),T=Tt("recharts-tooltip-label",y);w&&m&&c!==void 0&&c!==null&&(S=m(d,c));var M=_?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",tg({className:A,style:x},M),O.createElement("p",{className:T,style:g},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 Ku(e,t,r){return t=Nz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nz(e){var t=Lz(e,"string");return Vs(t)=="symbol"?t:t+""}function Lz(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 Qo="recharts-tooltip-wrapper",Bz={visibility:"hidden"};function qz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Tt(Qo,Ku(Ku(Ku(Ku({},"".concat(Qo,"-right"),it(r)&&t&&it(t.x)&&r>=t.x),"".concat(Qo,"-left"),it(r)&&t&&it(t.x)&&r<t.x),"".concat(Qo,"-bottom"),it(n)&&t&&it(t.y)&&n>=t.y),"".concat(Qo,"-top"),it(n)&&t&&it(t.y)&&n<t.y))}function nS(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&&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=u[n];return h<p?Math.max(f,u[n]):Math.max(c,u[n])}var y=f+s,d=u[n]+l;return y>d?Math.max(c,u[n]):Math.max(f,u[n])}function Fz(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 zz(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=nS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=nS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),l=Fz({translateX:c,translateY:f,useTranslate3d:s})):l=Bz,{cssProperties:l,cssClasses:qz({translateX:c,translateY:f,coordinate:r})}}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 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 aS(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){rg(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 Uz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wz(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,yC(n.key),n)}}function Hz(e,t,r){return t&&Wz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gz(e,t,r){return t=Wl(t),Kz(e,mC()?Reflect.construct(t,r||[],Wl(e).constructor):t.apply(e,r))}function Kz(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 Xz(e)}function Xz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mC=function(){return!!e})()}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wl(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&&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 rg(e,t,r){return t=yC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yC(e){var t=Vz(e,"string");return so(t)=="symbol"?t:t+""}function Vz(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 oS=1,Zz=(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)),rg(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),rg(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 Yz(t,e),Hz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>oS||Math.abs(n.height-this.state.lastBoundingBox.height)>oS)&&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,d=i.reverseDirection,m=i.useTranslate3d,v=i.viewBox,_=i.wrapperStyle,b=zz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:v}),x=b.cssClasses,g=b.cssProperties,w=aS(aS({transition:h&&a?"transform ".concat(s,"ms ").concat(u):void 0},g),{},{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),Jz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ti={isSsr:Jz()};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)}function sS(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 uS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sS(Object(r),!0).forEach(function(n){w0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t3(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 e3(e,t,r){return t&&t3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r3(e,t,r){return t=Hl(t),n3(e,gC()?Reflect.construct(t,r||[],Hl(e).constructor):t.apply(e,r))}function n3(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 i3(e)}function i3(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 Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hl(e)}function a3(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 w0(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=o3(e,"string");return uo(t)=="symbol"?t:t+""}function o3(e,t){if(uo(e)!="object"||!e)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 String(e)}function s3(e){return e.dataKey}function u3(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(Iz,t)}var xn=(function(e){function t(){return Qz(this,t),r3(this,t,arguments)}return a3(t,e),e3(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,d=i.payloadUniqBy,m=i.position,v=i.reverseDirection,_=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,g=y??[];f&&g.length&&(g=hC(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),d,s3));var w=g.length>0;return O.createElement(Zz,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:p,position:m,reverseDirection:v,useTranslate3d:_,viewBox:b,wrapperStyle:x},u3(l,uS(uS({},this.props),{},{payload:g})))}}])})(O.PureComponent);w0(xn,"displayName","Tooltip");w0(xn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ti.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 dm,lS;function l3(){if(lS)return dm;lS=1;var e=ln(),t=function(){return e.Date.now()};return dm=t,dm}var mm,cS;function c3(){if(cS)return mm;cS=1;var e=Ai(),t=l3(),r=i0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,u,l){var c,f,h,p,y,d,m=0,v=!1,_=!1,b=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(v=!!l.leading,_="maxWait"in l,h=_?i(r(l.maxWait)||0,u):h,b="trailing"in l?!!l.trailing:b);function x(C){var j=c,k=f;return c=f=void 0,m=C,p=s.apply(k,j),p}function g(C){return m=C,y=setTimeout(A,u),v?x(C):p}function w(C){var j=C-d,k=C-m,$=u-j;return _?a($,h-k):$}function S(C){var j=C-d,k=C-m;return d===void 0||j>=u||j<0||_&&k>=h}function A(){var C=t();if(S(C))return T(C);y=setTimeout(A,w(C))}function T(C){return y=void 0,b&&c?x(C):(c=f=void 0,p)}function M(){y!==void 0&&clearTimeout(y),m=0,c=d=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var C=t(),j=S(C);if(c=arguments,f=this,d=C,j){if(y===void 0)return g(d);if(_)return clearTimeout(y),y=setTimeout(A,u),x(d)}return y===void 0&&(y=setTimeout(A,u)),p}return E.cancel=M,E.flush=P,E}return mm=o,mm}var ym,fS;function f3(){if(fS)return ym;fS=1;var e=c3(),t=Ai(),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 ym=n,ym}var h3=f3();const bC=Bt(h3);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 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 Xu(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){p3(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 p3(e,t,r){return t=d3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d3(e){var t=m3(e,"string");return Zs(t)=="symbol"?t:t+""}function m3(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 y3(e,t){return x3(e)||b3(e,t)||v3(e,t)||g3()}function g3(){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 v3(e,t){if(e){if(typeof e=="string")return pS(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 pS(e,t)}}function pS(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 b3(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 x3(e){if(Array.isArray(e))return e}var _3=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,d=y===void 0?0:y,m=e.id,v=e.className,_=e.onResize,b=e.style,x=b===void 0?{}:b,g=O.useRef(null),w=O.useRef();w.current=_,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=y3(S,2),T=A[0],M=A[1],P=O.useCallback(function(C,j){M(function(k){var $=Math.round(C),N=Math.round(j);return k.containerWidth===$&&k.containerHeight===N?k:{containerWidth:$,containerHeight:N}})},[]);O.useEffect(function(){var C=function(z){var I,B=z[0].contentRect,D=B.width,F=B.height;P(D,F),(I=w.current)===null||I===void 0||I.call(w,D,F)};d>0&&(C=bC(C,d,{trailing:!0,leading:!1}));var j=new ResizeObserver(C),k=g.current.getBoundingClientRect(),$=k.width,N=k.height;return P($,N),j.observe(g.current),function(){j.disconnect()}},[P,d]);var E=O.useMemo(function(){var C=T.containerWidth,j=T.containerHeight;if(C<0||j<0)return null;zn(Ki(o)||Ki(u),`The width(%s) and height(%s) are both fixed numbers,
87
+ maybe you don't need to use a ResponsiveContainer.`,o,u),zn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=Ki(o)?C:o,$=Ki(u)?j:u;r&&r>0&&(k?$=k/r:$&&(k=$*r),h&&$>h&&($=h)),zn(k>0||$>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.`,k,$,o,u,c,f,r);var N=!Array.isArray(p)&&Fn(p.type).endsWith("Chart");return O.Children.map(p,function(W){return O.isValidElement(W)?O.cloneElement(W,Xu({width:k,height:$},N?{style:Xu({height:"100%",width:"100%",maxHeight:$,maxWidth:k},W.props.style)}:{})):W})},[r,p,u,h,f,c,T,o]);return O.createElement("div",{id:m?"".concat(m):void 0,className:Tt("recharts-responsive-container",v),style:Xu(Xu({},_),{},{width:o,height:u,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),A0=function(t){return null};A0.displayName="Cell";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 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 ig(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){E3(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 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 Js(t)=="symbol"?t:t+""}function M3(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 Ca={widthCache:{},cacheCount:0},k3=2e3,$3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},vS="recharts_measurement_span";function j3(e){var t=ig({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Ss=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Oi.isSsr)return{width:0,height:0};var n=j3(r),i=JSON.stringify({text:t,copyStyle:n});if(Ca.widthCache[i])return Ca.widthCache[i];try{var a=document.getElementById(vS);a||(a=document.createElement("span"),a.setAttribute("id",vS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ig(ig({},$3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return Ca.widthCache[i]=u,++Ca.cacheCount>k3&&(Ca.cacheCount=0,Ca.widthCache={}),u}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 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 Gl(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 bS(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 bS(e,t)}}function bS(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=[],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 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 _S(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&&_S(e.prototype,t),r&&_S(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F3(e){var t=z3(e,"string");return Qs(t)=="symbol"?t:t+""}function z3(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 String(e)}var xS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,wS=/(-?\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),Da="NaN";function G3(e,t){return e*AC[t]}var Yu=(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=Gl(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function OC(e){if(e.includes(Da))return Da;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=xS.exec(t))!==null&&r!==void 0?r:[],i=Gl(n,4),a=i[1],o=i[2],s=i[3],u=Yu.parse(a??""),l=Yu.parse(s??""),c=o==="*"?u.multiply(l):u.divide(l);if(c.isNaN())return Da;t=t.replace(xS,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=wS.exec(t))!==null&&f!==void 0?f:[],p=Gl(h,4),y=p[1],d=p[2],m=p[3],v=Yu.parse(y??""),x=Yu.parse(m??""),b=d==="+"?v.add(x):v.subtract(x);if(b.isNaN())return Da;t=t.replace(wS,b.toString())}return t}var SS=/\(([^()]*)\)/;function K3(e){for(var t=e;t.includes("(");){var r=SS.exec(t),n=Gl(r,2),i=n[1];t=t.replace(SS,OC(i))}return t}function X3(e){var t=e.replace(/\s+/g,"");return t=K3(t),t=OC(t),t}function Y3(e){try{return X3(e)}catch{return Da}}function gm(e){var t=Y3(e.slice(5,-1));return t===Da?"":t}var V3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Z3=["dx","dy","angle","className","breakAll"];function ag(){return ag=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},ag.apply(this,arguments)}function AS(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 OS(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 TS(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 TS(e,t)}}function TS(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=[],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 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=[];vt(r)||(n?a=r.toString().split(""):a=r.toString().split(TC));var o=a.map(function(u){return{word:u,width:Ss(u,i).width}}),s=n?0:Ss(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},nU=function(t,r,n,i,a){var o=t.maxLines,s=t.children,u=t.style,l=t.breakAll,c=it(o),f=s,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function($,N){var W=N.word,z=N.width,I=$[$.length-1];if(I&&(i==null||a||I.width+z+n<Number(i)))I.words.push(W),I.width+=z+n;else{var B={words:[W],width:z};$.push(B)}return $},[])},p=h(r),y=function(k){return k.reduce(function($,N){return $.width>N.width?$:N})};if(!c)return p;for(var d="…",m=function(k){var $=f.slice(0,k),N=PC({breakAll:l,style:u,children:$+d}).wordsWithComputedWidth,W=h(N),z=W.length>o||y(W).width>Number(i);return[z,W]},v=0,x=f.length-1,b=0,_;v<=x&&b<=f.length-1;){var g=Math.floor((v+x)/2),w=g-1,S=m(w),A=OS(S,2),T=A[0],M=A[1],P=m(g),E=OS(P,1),C=E[0];if(!T&&!C&&(v=g+1),T&&C&&(x=g-1),!T&&C){_=M;break}b++}return _||p},PS=function(t){var r=vt(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)&&!Oi.isSsr){var u,l,c=PC({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;u=f,l=h}else return PS(i);return nU({breakAll:o,children:i,maxLines:s,style:a},u,l,r,n)}return PS(i)},ES="#808080",Kl=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,d=y===void 0?"end":y,m=t.fill,v=m===void 0?ES:m,x=AS(t,V3),b=O.useMemo(function(){return iU({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:f,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,f,x.style,x.width]),_=x.dx,g=x.dy,w=x.angle,S=x.className,A=x.breakAll,T=AS(x,Z3);if(!Te(n)||!Te(a))return null;var M=n+(it(_)?_:0),P=a+(it(g)?g:0),E;switch(d){case"start":E=gm("calc(".concat(l,")"));break;case"middle":E=gm("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:E=gm("calc(".concat(b.length-1," * -").concat(s,")"));break}var C=[];if(f){var j=b[0].width,k=x.width;C.push("scale(".concat((it(k)?k/j:1)/j,")"))}return w&&C.push("rotate(".concat(w,", ").concat(M,", ").concat(P,")")),C.length&&(T.transform=C.join(" ")),O.createElement("text",ag({},_t(T,!0),{x:M,y:P,className:Tt("recharts-text",S),textAnchor:p,fill:v.includes("url")?ES:v}),b.map(function($,N){var W=$.words.join(A?"":" ");return O.createElement("tspan",{x:M,dy:N===0?E:s,key:"".concat(W,"-").concat(N)},W)}))};const CS=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ds,scaleDiverging:HT,scaleDivergingLog:GT,scaleDivergingPow:Ev,scaleDivergingSqrt:QD,scaleDivergingSymlog:KT,scaleIdentity:OT,scaleImplicit:my,scaleLinear:aa,scaleLog:PT,scaleOrdinal:fv,scalePoint:ps,scalePow:vv,scaleQuantile:MT,scaleQuantize:kT,scaleRadial:CT,scaleSequential:FT,scaleSequentialLog:zT,scaleSequentialPow:Pv,scaleSequentialQuantile:WT,scaleSequentialSqrt:JD,scaleSequentialSymlog:UT,scaleSqrt:RR,scaleSymlog:ET,scaleThreshold:$T,scaleTime:Al,scaleUtc:ZD,tickFormat:AT},Symbol.toStringTag,{value:"Module"}));var vm,MS;function EC(){if(MS)return vm;MS=1;var e=ko();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 vm=t,vm}var bm,kS;function aU(){if(kS)return bm;kS=1;function e(t,r){return t>r}return bm=e,bm}var _m,$S;function oU(){if($S)return _m;$S=1;var e=EC(),t=aU(),r=$o();function n(i){return i&&i.length?e(i,r,t):void 0}return _m=n,_m}var sU=oU();const hi=Bt(sU);var xm,jS;function uU(){if(jS)return xm;jS=1;function e(t,r){return t<r}return xm=e,xm}var wm,RS;function lU(){if(RS)return wm;RS=1;var e=EC(),t=uU(),r=$o();function n(i){return i&&i.length?e(i,r,t):void 0}return wm=n,wm}var cU=lU();const Yc=Bt(cU);var Sm,DS;function fU(){if(DS)return Sm;DS=1;var e=v0();function t(r,n){return e(r,n)}return Sm=t,Sm}var hU=fU();const ca=Bt(hU);var Do=1e9,pU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},T0,re=!0,Kr="[DecimalError] ",ea=Kr+"Invalid argument: ",O0=Kr+"Exponent out of range: ",Io=Math.floor,qi=Math.pow,dU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Pr,ke=1e7,Jt=7,CC=9007199254740991,Xl=Io(CC/Jt),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)*Jt;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 Un(this,new this.constructor(e))};lt.dividedToIntegerBy=lt.idiv=function(e){var t=this,r=t.constructor;return Kt(Un(t,new r(e),0,1),r.precision)};lt.equals=lt.eq=function(e){return!this.cmp(e)};lt.exponent=function(){return we(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(Pr))throw Error(Kr+"NaN");if(r.s<1)throw Error(Kr+(r.s?"NaN":"-Infinity"));return r.eq(Pr)?new n(0):(re=!1,t=Un(tu(r,a),tu(e,a),a),re=!0,Kt(t,i))};lt.minus=lt.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))};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(Kr+"NaN");return r.s?(re=!1,t=Un(r,e,0,1).times(e),re=!0,r.minus(t)):Kt(new n(r),i)};lt.naturalExponential=lt.exp=function(){return kC(this)};lt.naturalLogarithm=lt.ln=function(){return tu(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?MC(t,e):$C(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(ea+e);if(t=we(i)+1,n=i.d.length-1,r=n*Jt+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(Kr+"NaN")}for(e=we(s),re=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Sn(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(Un(s,a,o+2)).times(.5),Sn(a.d).slice(0,o)===(t=Sn(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Kt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return re=!0,Kt(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%ke|0,t=s/ke|0;a[i]=(a[i]+t)%ke|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,re?Kt(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:(Cn(e,0,Do),t===void 0?t=n.rounding:Cn(t,0,8),Kt(r,e+we(r)+1,t))};lt.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=fa(n,!0):(Cn(e,0,Do),t===void 0?t=i.rounding:Cn(t,0,8),n=Kt(new i(n),e+1,t),r=fa(n,!0,e+1)),r};lt.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?fa(i):(Cn(e,0,Do),t===void 0?t=a.rounding:Cn(t,0,8),n=Kt(new a(i),e+we(i)+1,t),r=fa(n.abs(),!1,e+we(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};lt.toInteger=lt.toint=function(){var e=this,t=e.constructor;return Kt(new t(e),we(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(Pr);if(s=new u(s),!s.s){if(e.s<1)throw Error(Kr+"Infinity");return s}if(s.eq(Pr))return s;if(n=u.precision,e.eq(Pr))return Kt(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 u(Pr),t=Math.ceil(n/Jt+4),re=!1;r%2&&(i=i.times(s),NS(i.d,t)),r=Io(r/2),r!==0;)s=s.times(s),NS(s.d,t);return re=!0,e.s<0?new u(Pr).div(i):Kt(i,n)}}else if(a<0)throw Error(Kr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,re=!1,i=e.times(tu(s,n+l)),re=!0,i=kC(i),i.s=a,i};lt.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=we(i),n=fa(i,r<=a.toExpNeg||r>=a.toExpPos)):(Cn(e,1,Do),t===void 0?t=a.rounding:Cn(t,0,8),i=Kt(new a(i),e,t),r=we(i),n=fa(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):(Cn(e,1,Do),t===void 0?t=n.rounding:Cn(t,0,8)),Kt(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=we(e),r=e.constructor;return fa(e,t<=r.toExpNeg||t>=r.toExpPos)};function MC(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)),re?Kt(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/Jt),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)/ke|0,u[a]%=ke;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,re?Kt(t,f):t}function Cn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ea+e)}function Sn(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=Jt-n.length,r&&(a+=si(r)),a+=n;o=e[t],n=o+"",r=Jt-n.length,r&&(a+=si(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Un=(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%ke|0,o=a/ke|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*ke+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,d,m,v,x,b,_,g,w,S,A,T=n.constructor,M=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Kr+"Division by zero");for(u=n.e-i.e,S=E.length,g=P.length,p=new T(M),y=p.d=[],l=0;E[l]==(P[l]||0);)++l;if(E[l]>(P[l]||0)&&--u,a==null?x=a=T.precision:o?x=a+(we(n)-we(i))+1:x=a,x<0)return new T(0);if(x=x/Jt+2|0,l=0,S==1)for(c=0,E=E[0],x++;(l<g||c)&&x--;l++)b=c*ke+(P[l]||0),y[l]=b/E|0,c=b%E|0;else{for(c=ke/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),_=S,d=P.slice(0,S),m=d.length;m<S;)d[m++]=0;A=E.slice(),A.unshift(0),w=E[0],E[1]>=ke/2&&++w;do c=0,s=t(E,d,S,m),s<0?(v=d[0],S!=m&&(v=v*ke+(d[1]||0)),c=v/w|0,c>1?(c>=ke&&(c=ke-1),f=e(E,c),h=f.length,m=d.length,s=t(f,d,h,m),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<m&&f.unshift(0),r(d,f,m),s==-1&&(m=d.length,s=t(E,d,S,m),s<1&&(c++,r(d,S<m?A:E,m))),m=d.length):s===0&&(c++,d=[0]),y[l++]=c,s&&d[0]?d[m++]=P[_]||0:(d=[P[_]],m=1);while((_++<g||d[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=u,Kt(p,o?a+we(p)+1:a)}})();function kC(e,t){var r,n,i,a,o,s,u=0,l=0,c=e.constructor,f=c.precision;if(we(e)>16)throw Error(O0+we(e));if(!e.s)return new c(Pr);for(re=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(qi(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new c(Pr),c.precision=s;;){if(i=Kt(i.times(e),s),r=r.times(++u),o=a.plus(Un(i,r,s)),Sn(o.d).slice(0,s)===Sn(a.d).slice(0,s)){for(;l--;)a=Kt(a.times(a),s);return c.precision=f,t==null?(re=!0,Kt(a,f)):a}a=o}}function we(e){for(var t=e.e*Jt,r=e.d[0];r>=10;r/=10)t++;return t}function Am(e,t,r){if(t>e.LN10.sd())throw re=!0,r&&(e.precision=r),Error(Kr+"LN10 precision limit exceeded");return Kt(new e(e.LN10),t)}function si(e){for(var t="";e--;)t+="0";return t}function tu(e,t){var r,n,i,a,o,s,u,l,c,f=1,h=10,p=e,y=p.d,d=p.constructor,m=d.precision;if(p.s<1)throw Error(Kr+(p.s?"NaN":"-Infinity"));if(p.eq(Pr))return new d(0);if(t==null?(re=!1,l=m):l=t,p.eq(10))return t==null&&(re=!0),Am(d,l);if(l+=h,d.precision=l,r=Sn(y),n=r.charAt(0),a=we(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Sn(p.d),n=r.charAt(0),f++;a=we(p),n>1?(p=new d("0."+r),a++):p=new d(n+"."+r.slice(1))}else return u=Am(d,l+2,m).times(a+""),p=tu(new d(n+"."+r.slice(1)),l-h).plus(u),d.precision=m,t==null?(re=!0,Kt(p,m)):p;for(s=o=p=Un(p.minus(Pr),p.plus(Pr),l),c=Kt(p.times(p),l),i=3;;){if(o=Kt(o.times(c),l),u=s.plus(Un(o,new d(i),l)),Sn(u.d).slice(0,l)===Sn(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(Am(d,l+2,m).times(a+""))),s=Un(s,new d(f),l),d.precision=m,t==null?(re=!0,Kt(s,m)):s;s=u,i+=2}}function IS(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/Jt),e.d=[],n=(r+1)%Jt,r<0&&(n+=Jt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Jt;n<i;)e.d.push(+t.slice(n,n+=Jt));t=t.slice(n),n=Jt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),re&&(e.e>Xl||e.e<-Xl))throw Error(O0+r)}else e.s=0,e.e=0,e.d=[0];return e}function Kt(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+=Jt,i=t,l=f[c=0];else{if(c=Math.ceil((n+1)/Jt),a=f.length,c>=a)return e;for(l=a=f[c],o=1;a>=10;a/=10)o++;n%=Jt,i=n-Jt+o}if(r!==void 0&&(a=qi(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/qi(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=we(e),f.length=1,t=t-a-1,f[0]=qi(10,(Jt-t%Jt)%Jt),e.e=Io(-t/Jt)||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=qi(10,Jt-n),f[c]=i>0?(l/qi(10,o-i)%qi(10,i)|0)*a:0),u)for(;;)if(c==0){(f[0]+=a)==ke&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=ke)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(re&&(e.e>Xl||e.e<-Xl))throw Error(O0+we(e));return e}function $C(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),re?Kt(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/Jt),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]=ke-1;--u[a],u[i]+=ke}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,re?Kt(t,p):t):new h(0)}function fa(e,t,r){var n,i=we(e),a=Sn(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+si(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+si(-i-1)+a,r&&(n=r-o)>0&&(a+=si(n))):i>=o?(a+=si(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+si(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=si(n))),e.s<0?"-"+a:a}function NS(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(ea+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 IS(o,a.toString())}else if(typeof a!="string")throw Error(ea+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,dU.test(a))IS(o,a);else throw Error(ea+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=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(Kr+"Object expected");var t,r,n,i=["precision",1,Do,"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(ea+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ea+r+": "+n);return this}var T0=jC(pU);Pr=new T0(1);const Ut=T0;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 og(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 og(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 og(e)}function og(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},LS=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:LS(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,LS(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 DC(f)?u.shift():f});return r.apply(void 0,yU(c).concat(u))}))})},Vc=function(t){return wU(t.length,t)},sg=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},SU=Vc(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,u){return u(s)},a.apply(void 0,arguments))}},ug=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,u){return s===r[u]})||(r=a,n=t.apply(void 0,a)),n}};function OU(e){var t;return e===0?t=1:t=Math.floor(new Ut(e).abs().log(10).toNumber())+1,t}function TU(e,t,r){for(var n=new Ut(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var PU=Vc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),EU=Vc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),CU=Vc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Zc={rangeStep:TU,getDigitCount:OU,interpolateNumber:PU,uninterpolateNumber:EU,uninterpolateTruncation:CU};function lg(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 cg(e)}function eu(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 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 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 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(u){i=!0,a=u}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=eu(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 Ut(0);var n=Zc.getDigitCount(e.toNumber()),i=new Ut(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ut(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?u:new Ut(Math.ceil(u))}function IU(e,t,r){var n=1,i=new Ut(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ut(10).pow(Zc.getDigitCount(e)-1),i=new Ut(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ut(Math.floor(e)))}else e===0?i=new Ut(Math.floor((t-1)/2)):r||(i=new Ut(Math.floor(e)));var o=Math.floor((t-1)/2),s=AU(SU(function(u){return i.add(new Ut(u-o).mul(n)).toNumber()}),sg);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 Ut(0),tickMin:new Ut(0),tickMax:new Ut(0)};var a=BC(new Ut(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ut(0):(o=new Ut(e).add(t).div(2),o=o.sub(new Ut(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new Ut(t).sub(o).div(a).toNumber()),l=s+u+1;return l>r?qC(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 Ut(s).mul(a)),tickMax:o.add(new Ut(u).mul(a))})}function NU(e){var t=eu(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]),u=eu(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(lg(sg(0,i-1).map(function(){return 1/0}))):[].concat(lg(sg(0,i-1).map(function(){return-1/0})),[c]);return r>n?ug(f):f}if(l===c)return IU(l,i,a);var h=qC(l,c,o,a),p=h.step,y=h.tickMin,d=h.tickMax,m=Zc.rangeStep(y,d.add(new Ut(.1).mul(p)),p);return r>n?ug(m):m}function LU(e,t){var r=eu(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=LC([n,i]),s=eu(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=BC(new Ut(l).sub(u).div(c-1),a,0),h=[].concat(lg(Zc.rangeStep(new Ut(u),new Ut(l).sub(new Ut(.99).mul(f)),f)),[l]);return n>i?ug(h):h}var BU=IC(NU),qU=IC(LU),FU=process.env.NODE_ENV==="production",Om="Invariant failed";function lr(e,t){if(FU)throw new Error(Om);var r=typeof t=="function"?t():t,n=r?"".concat(Om,": ").concat(r):Om;throw new Error(n)}var zU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function lo(e){"@babel/helpers - typeof";return lo=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},lo(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 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 BS(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 BS(e,t)}}function BS(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=[],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 KU(e){if(Array.isArray(e))return e}function XU(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 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=Vl(t),tW(e,FC()?Reflect.construct(t,r||[],Vl(e).constructor):t.apply(e,r))}function tW(e,t){if(t&&(lo(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 Vl(e){return Vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vl(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&&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 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 lo(t)=="symbol"?t:t+""}function nW(e,t){if(lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var No=(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,u=n.data,l=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=XU(n,zU),p=_t(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?lr(!1,'ErrorBar requires Axis type property to be "number".'):lr());var y=u.map(function(d){var m=l(d,s),v=m.x,x=m.y,b=m.value,_=m.errorVal;if(!_)return null;var g=[],w,S;if(Array.isArray(_)){var A=UU(_,2);w=A[0],S=A[1]}else w=S=_;if(a==="vertical"){var T=c.scale,M=x+i,P=M+o,E=M-o,C=T(b-w),j=T(b+S);g.push({x1:j,y1:P,x2:j,y2:E}),g.push({x1:C,y1:M,x2:j,y2:M}),g.push({x1:C,y1:P,x2:C,y2:E})}else if(a==="horizontal"){var k=f.scale,$=v+i,N=$-o,W=$+o,z=k(b-w),I=k(b+S);g.push({x1:N,y1:I,x2:W,y2:I}),g.push({x1:$,y1:z,x2:$,y2:I}),g.push({x1:N,y1:z,x2:W,y2:z})}return O.createElement(jt,Yl({className:"recharts-errorBar",key:"bar-".concat(g.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},p),g.map(function(B){return O.createElement("line",Yl({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return O.createElement(jt,{className:"recharts-errorBars"},y)}}])})(O.Component);zC(No,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});zC(No,"displayName","ErrorBar");function ru(e){"@babel/helpers - typeof";return ru=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},ru(e)}function qS(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 Ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qS(Object(r),!0).forEach(function(n){iW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qS(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 ru(t)=="symbol"?t:t+""}function oW(e,t){if(ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ru(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=Ar(r,ta);if(!o)return null;var s=ta.defaultProps,u=s!==void 0?Ni(Ni({},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(d){return{type:o.props.iconType||h.props.legendType,value:d.name,color:d.fill,payload:d}}))},[]):l=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?Ni(Ni({},h),f.props):{},y=p.dataKey,d=p.name,m=p.legendType,v=p.hide;return{inactive:v,dataKey:y,type:u.iconType||m||"square",color:P0(f),value:d||y,payload:p}}),Ni(Ni(Ni({},u),ta.getWithHeight(o,i)),{},{payload:l,item:o})};function nu(e){"@babel/helpers - typeof";return nu=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},nu(e)}function FS(e){return cW(e)||lW(e)||uW(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 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 lW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cW(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 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 le(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){Ga(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 Ga(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 nu(t)=="symbol"?t:t+""}function hW(e,t){if(nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pe(e,t,r){return vt(e)||vt(t)?r:Te(t)?Gr(e,t,r):xt(t)?t(e):r}function As(e,t,r,n){var i=rC(e,function(s){return Pe(s,t)});if(r==="number"){var a=i.filter(function(s){return it(s)||parseFloat(s)});return a.length?[Yc(a),hi(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!vt(s)}):i;return o.map(function(s){return Te(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 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(an(f-c)!==an(h-f)){var y=[];if(an(h-f)===an(u[1]-u[0])){p=h;var d=f+u[1]-u[0];y[0]=Math.min(d,(d+c)/2),y[1]=Math.max(d,(d+c)/2)}else{p=c;var m=h+u[1]-u[0];y[0]=Math.min(f,(m+f)/2),y[1]=Math.max(f,(m+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[l].index;break}}else{var x=Math.min(c,h),b=Math.max(c,h);if(t>(x+f)/2&&t<=(b+f)/2){o=i[l].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},P0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?le(le({},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},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),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]],d=y.items,m=y.cateAxisId,v=d.filter(function(S){return Fn(S.type).indexOf("Bar")>=0});if(v&&v.length){var x=v[0].type.defaultProps,b=x!==void 0?le(le({},x),v[0].props):v[0].props,_=b.barSize,g=b[m];o[g]||(o[g]=[]);var w=vt(_)?r:_;o[g].push({item:v[0],stackList:v.slice(1),barSize:vt(w)?void 0:la(w,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,u=o.length;if(u<1)return null;var l=la(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/u,y=o.reduce(function(_,g){return _+g.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 d=(i-y)/2>>0,m={offset:d-l,size:0};c=o.reduce(function(_,g){var w={item:g.item,position:{offset:m.offset+m.size+l,size:h?p:g.barSize}},S=[].concat(FS(_),[w]);return m=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:m})}),S},f)}else{var v=la(n,i,0,!0);i-2*v-(u-1)*l<=0&&(l=0);var x=(i-2*v-(u-1)*l)/u;x>1&&(x>>=0);var b=s===+s?Math.min(x,s):x;c=o.reduce(function(_,g,w){var S=[].concat(FS(_),[{item:g.item,position:{offset:v+(x+l)*w+(x-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,u=o-(s.left||0)-(s.right||0),l=WC({children:a,legendWidth:u});if(l){var c=i||{},f=c.width,h=c.height,p=l.align,y=l.verticalAlign,d=l.layout;if((d==="vertical"||d==="horizontal"&&y==="middle")&&p!=="center"&&it(t[p]))return le(le({},t),{},Ga({},p,t[p]+(f||0)));if((d==="horizontal"||d==="vertical"&&p==="center")&&y!=="middle"&&it(t[y]))return le(le({},t),{},Ga({},y,t[y]+(h||0)))}return t},gW=function(t,r,n){return vt(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=mr(o,No).filter(function(l){return gW(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=Pe(c,n);if(vt(f))return l;var h=Array.isArray(f)?[Yc(f),hi(f)]:[f,f],p=u.reduce(function(y,d){var m=Pe(c,d,0),v=h[0]-Math.abs(Array.isArray(m)?m[0]:m),x=h[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(v,y[0]),Math.max(x,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},vW=function(t,r,n,i,a){var o=r.map(function(s){return HC(t,s,n,a,i)}).filter(function(s){return!vt(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},GC=function(t,r,n,i,a){var o=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&HC(t,u,l,i)||As(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},[])},KC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},XC=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},qn=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?an(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}})},Tm=new WeakMap,Vu=function(t,r){if(typeof r!="function")return t;Tm.has(t)||Tm.set(t,new WeakMap);var n=Tm.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:Ds(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:aa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ps(),realScaleType:"point"}:a==="category"?{scale:Ds(),realScaleType:"band"}:{scale:aa(),realScaleType:"linear"};if(ua(i)){var u="scale".concat(Gc(i));return{scale:(CS[u]||ps)(),realScaleType:CS[u]?u:"point"}}return xt(i)?{scale:i}:{scale:ps(),realScaleType:"point"}},US=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])-US,o=Math.max(i[0],i[1])+US,s=t(r[0]),u=t(r[n-1]);(s<a||s>o||u<a||u>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 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])}},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=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)}},OW={sign:SW,expand:kI,none:Ja,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=Ml().keys(i).value(function(s,u){return+Pe(s,u,0)}).order(_y).offset(a);return o(t)},PW=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?le(le({},h.type.defaultProps),h.props):h.props,d=y.stackId,m=y.hide;if(m)return f;var v=y[n],x=f[v]||{hasStack:!1,stackGroups:{}};if(Te(d)){var b=x.stackGroups[d]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),x.hasStack=!0,x.stackGroups[d]=b}else x.stackGroups[ba("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return le(le({},f),{},Ga({},v,x))},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(d,m){var v=p.stackGroups[m];return le(le({},d),{},Ga({},m,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:TW(t,v.items,a)}))},y)}return le(le({},f),{},Ga({},h,p))},c)},EW=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=BU(l,a,s);return t.domain([Yc(c),hi(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=qU(f,a,s);return{niceTicks:h}}return null};function co(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&&!vt(i[t.dataKey])){var s=ql(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=Pe(i,vt(o)?t.dataKey:o);return vt(u)?null:t.scale(u)}var WS=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=Pe(o,r.dataKey,r.domain[s]);return vt(u)?null:r.scale(u)-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?le(le({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Te(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[Yc(n.concat([r[0]]).filter(it)),hi(n.concat([r[1]]).filter(it))]},[1/0,-1/0])},YC=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=kW(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})},HS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,GS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pg=function(t,r,n){if(xt(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(HS.test(t[0])){var a=+HS.exec(t[0])[1];i[0]=r[0]-a}else xt(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(GS.test(t[1])){var o=+GS.exec(t[1])[1];i[1]=r[1]+o}else xt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Zl=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},KS=function(t,r,n){return!t||!t.length||ca(t,Gr(n,"type.defaultProps.domain"))?r:t},VC=function(t,r){var n=t.type.defaultProps?le(le({},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 le(le({},_t(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:P0(t),value:Pe(r,i),type:u,payload:r,chartType:l,hide:c})};function iu(e){"@babel/helpers - typeof";return iu=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},iu(e)}function XS(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?XS(Object(r),!0).forEach(function(n){$W(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XS(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 iu(t)=="symbol"?t:t+""}function RW(e,t){if(iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jl=Math.PI/180,DW=function(t){return t*180/Math.PI},Ne=function(t,r,n,i){return{x:t+Math.cos(-Jl*i)*n,y:r+Math.sin(-Jl*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 u=(n-a)/s,l=Math.acos(u);return i>o&&(l=2*Math.PI-l),{radius:s,angle:DW(l),angleInRadian:l}},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},VS=function(t,r){var n=t.x,i=t.y,a=NW({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=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 au(e){"@babel/helpers - typeof";return au=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},au(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 dg(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 dg(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 dg(e)}function dg(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 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 Oe(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){XW(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 XW(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 au(t)=="symbol"?t:t+""}function VW(e,t){if(au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ou(){return ou=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},ou.apply(this,arguments)}var ZW=function(t){var r=t.value,n=t.formatter,i=vt(t.children)?r:t.children;return xt(n)?n(i):i},JW=function(t,r){var n=an(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,u=a,l=u.cx,c=u.cy,f=u.innerRadius,h=u.outerRadius,p=u.startAngle,y=u.endAngle,d=u.clockWise,m=(f+h)/2,v=JW(p,y),x=v>=0?1:-1,b,_;i==="insideStart"?(b=p+x*o,_=d):i==="insideEnd"?(b=y-x*o,_=!d):i==="end"&&(b=y+x*o,_=d),_=v<=0?_:!_;var g=Ne(l,c,m,b),w=Ne(l,c,m,b+(_?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
99
- A`).concat(m,",").concat(m,",0,1,").concat(_?0:1,`,
100
- `).concat(w.x,",").concat(w.y),A=vt(t.id)?ba("recharts-radial-line-"):t.id;return O.createElement("text",ou({},n,{dominantBaseline:"central",className:Tt("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,u=a.innerRadius,l=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=Ne(o,s,l+n,h),y=p.x,d=p.y;return{x:y,y:d,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 m=(u+l)/2,v=Ne(o,s,m,h),x=v.x,b=v.y;return{x,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,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",d=l>=0?1:-1,m=d*i,v=d>0?"end":"start",x=d>0?"start":"end";if(a==="top"){var b={x:s+l/2,y:u-f*i,textAnchor:"middle",verticalAnchor:p};return Oe(Oe({},b),n?{height:Math.max(u-n.y,0),width:l}:{})}if(a==="bottom"){var _={x:s+l/2,y:u+c+h,textAnchor:"middle",verticalAnchor:y};return Oe(Oe({},_),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{})}if(a==="left"){var g={x:s-m,y:u+c/2,textAnchor:v,verticalAnchor:"middle"};return Oe(Oe({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+l+m,y:u+c/2,textAnchor:x,verticalAnchor:"middle"};return Oe(Oe({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:l,height:c}:{};return a==="insideLeft"?Oe({x:s+m,y:u+c/2,textAnchor:x,verticalAnchor:"middle"},S):a==="insideRight"?Oe({x:s+l-m,y:u+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideTop"?Oe({x:s+l/2,y:u+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?Oe({x:s+l/2,y:u+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?Oe({x:s+m,y:u+h,textAnchor:x,verticalAnchor:y},S):a==="insideTopRight"?Oe({x:s+l-m,y:u+h,textAnchor:v,verticalAnchor:y},S):a==="insideBottomLeft"?Oe({x:s+m,y:u+c-h,textAnchor:x,verticalAnchor:p},S):a==="insideBottomRight"?Oe({x:s+l-m,y:u+c-h,textAnchor:v,verticalAnchor:p},S):jo(a)&&(it(a.x)||Gi(a.x))&&(it(a.y)||Gi(a.y))?Oe({x:s+la(a.x,l),y:u+la(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):Oe({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},r8=function(t){return"cx"in t&&it(t.cx)};function Ge(e){var t=e.offset,r=t===void 0?5:t,n=GW(e,qW),i=Oe({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||vt(s)&&vt(u)&&!O.isValidElement(l)&&!xt(l))return null;if(O.isValidElement(l))return O.cloneElement(l,i);var p;if(xt(l)){if(p=O.createElement(l,i),O.isValidElement(p))return p}else p=ZW(i);var y=r8(a),d=_t(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return QW(i,p,d);var m=y?t8(i):e8(i);return O.createElement(Kl,ou({className:Tt("recharts-label",f)},d,m,{breakAll:h}),p)}Ge.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,u=t.radius,l=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,d=t.width,m=t.height,v=t.clockWise,x=t.labelViewBox;if(x)return x;if(it(d)&&it(m)){if(it(f)&&it(h))return{x:f,y:h,width:d,height:m};if(it(p)&&it(y))return{x:p,y,width:d,height:m}}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:l||0,outerRadius:c||u||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},n8=function(t,r){return t?t===!0?O.createElement(Ge,{key:"label-implicit",viewBox:r}):Te(t)?O.createElement(Ge,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Ge?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):xt(t)?O.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):jo(t)?O.createElement(Ge,ou({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=mr(i,Ge).map(function(u,l){return O.cloneElement(u,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=n8(t.label,r||a);return[s].concat(FW(o))};Ge.parseViewBox=ZC;Ge.renderCallByParent=i8;var Pm,JS;function a8(){if(JS)return Pm;JS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Pm=e,Pm}var o8=a8();const s8=Bt(o8);function su(e){"@babel/helpers - typeof";return su=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},su(e)}var u8=["valueAccessor"],l8=["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 mg(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 mg(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 mg(e)}function mg(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 Ql(){return Ql=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},Ql.apply(this,arguments)}function QS(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 tA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(r),!0).forEach(function(n){m8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QS(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 su(t)=="symbol"?t:t+""}function g8(e,t){if(su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eA(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 Tn(e){var t=e.valueAccessor,r=t===void 0?b8:t,n=eA(e,u8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,l=eA(n,l8);return!i||!i.length?null:O.createElement(jt,{className:"recharts-label-list"},i.map(function(c,f){var h=vt(a)?r(c,f):Pe(c&&c.payload,a),p=vt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(Ge,Ql({},_t(c,!0),l,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:u,viewBox:Ge.parseViewBox(vt(o)?c:tA(tA({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Tn.displayName="LabelList";function _8(e,t){return e?e===!0?O.createElement(Tn,{key:"labelList-implicit",data:t}):O.isValidElement(e)||xt(e)?O.createElement(Tn,{key:"labelList-implicit",data:t,content:e}):jo(e)?O.createElement(Tn,Ql({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=mr(n,Tn).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))}Tn.renderCallByParent=x8;function uu(e){"@babel/helpers - typeof";return uu=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},uu(e)}function yg(){return yg=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},yg.apply(this,arguments)}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 nA(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){w8(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 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 uu(t)=="symbol"?t:t+""}function A8(e,t){if(uu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uu(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=an(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Zu=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)/Jl,h=l?a:a+o*f,p=Ne(r,n,c,h),y=Ne(r,n,i,h),d=l?a-o*f:a,m=Ne(r,n,c*Math.cos(f*Jl),d);return{center:p,circleTangency:y,lineTangency:m,theta:f}},JC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,u=O8(o,s),l=o+u,c=Ne(r,n,a,o),f=Ne(r,n,a,l),h="M ".concat(c.x,",").concat(c.y,`
90
+ height and width.`,k,$,o,u,c,f,r);var N=!Array.isArray(p)&&Fn(p.type).endsWith("Chart");return O.Children.map(p,function(W){return O.isValidElement(W)?O.cloneElement(W,Xu({width:k,height:$},N?{style:Xu({height:"100%",width:"100%",maxHeight:$,maxWidth:k},W.props.style)}:{})):W})},[r,p,u,h,f,c,T,o]);return O.createElement("div",{id:m?"".concat(m):void 0,className:Tt("recharts-responsive-container",v),style:Xu(Xu({},x),{},{width:o,height:u,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),S0=function(t){return null};S0.displayName="Cell";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 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 ig(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){w3(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 w3(e,t,r){return t=S3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S3(e){var t=A3(e,"string");return Js(t)=="symbol"?t:t+""}function A3(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 Ca={widthCache:{},cacheCount:0},O3=2e3,T3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},mS="recharts_measurement_span";function P3(e){var t=ig({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Ss=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ti.isSsr)return{width:0,height:0};var n=P3(r),i=JSON.stringify({text:t,copyStyle:n});if(Ca.widthCache[i])return Ca.widthCache[i];try{var a=document.getElementById(mS);a||(a=document.createElement("span"),a.setAttribute("id",mS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ig(ig({},T3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return Ca.widthCache[i]=u,++Ca.cacheCount>O3&&(Ca.cacheCount=0,Ca.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 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 Gl(e,t){return $3(e)||k3(e,t)||M3(e,t)||C3()}function C3(){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 M3(e,t){if(e){if(typeof e=="string")return yS(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 yS(e,t)}}function yS(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 k3(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 $3(e){if(Array.isArray(e))return e}function j3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gS(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,D3(n.key),n)}}function R3(e,t,r){return t&&gS(e.prototype,t),r&&gS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D3(e){var t=I3(e,"string");return Qs(t)=="symbol"?t:t+""}function I3(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 String(e)}var vS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,N3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,L3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,xC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},B3=Object.keys(xC),Da="NaN";function q3(e,t){return e*xC[t]}var Yu=(function(){function e(t,r){j3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!N3.test(r)&&(this.num=NaN,this.unit=""),B3.includes(r)&&(this.num=q3(t,r),this.unit="px")}return R3(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=L3.exec(r))!==null&&n!==void 0?n:[],a=Gl(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function _C(e){if(e.includes(Da))return Da;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=vS.exec(t))!==null&&r!==void 0?r:[],i=Gl(n,4),a=i[1],o=i[2],s=i[3],u=Yu.parse(a??""),l=Yu.parse(s??""),c=o==="*"?u.multiply(l):u.divide(l);if(c.isNaN())return Da;t=t.replace(vS,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=bS.exec(t))!==null&&f!==void 0?f:[],p=Gl(h,4),y=p[1],d=p[2],m=p[3],v=Yu.parse(y??""),_=Yu.parse(m??""),b=d==="+"?v.add(_):v.subtract(_);if(b.isNaN())return Da;t=t.replace(bS,b.toString())}return t}var xS=/\(([^()]*)\)/;function F3(e){for(var t=e;t.includes("(");){var r=xS.exec(t),n=Gl(r,2),i=n[1];t=t.replace(xS,_C(i))}return t}function z3(e){var t=e.replace(/\s+/g,"");return t=F3(t),t=_C(t),t}function U3(e){try{return z3(e)}catch{return Da}}function gm(e){var t=U3(e.slice(5,-1));return t===Da?"":t}var W3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],H3=["dx","dy","angle","className","breakAll"];function ag(){return ag=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},ag.apply(this,arguments)}function _S(e,t){if(e==null)return{};var r=G3(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 G3(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 wS(e,t){return V3(e)||Y3(e,t)||X3(e,t)||K3()}function K3(){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 SS(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 SS(e,t)}}function SS(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 Y3(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 V3(e){if(Array.isArray(e))return e}var wC=/[ \f\n\r\t\v\u2028\u2029]+/,SC=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];vt(r)||(n?a=r.toString().split(""):a=r.toString().split(wC));var o=a.map(function(u){return{word:u,width:Ss(u,i).width}}),s=n?0:Ss(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},Z3=function(t,r,n,i,a){var o=t.maxLines,s=t.children,u=t.style,l=t.breakAll,c=it(o),f=s,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function($,N){var W=N.word,z=N.width,I=$[$.length-1];if(I&&(i==null||a||I.width+z+n<Number(i)))I.words.push(W),I.width+=z+n;else{var B={words:[W],width:z};$.push(B)}return $},[])},p=h(r),y=function(k){return k.reduce(function($,N){return $.width>N.width?$:N})};if(!c)return p;for(var d="…",m=function(k){var $=f.slice(0,k),N=SC({breakAll:l,style:u,children:$+d}).wordsWithComputedWidth,W=h(N),z=W.length>o||y(W).width>Number(i);return[z,W]},v=0,_=f.length-1,b=0,x;v<=_&&b<=f.length-1;){var g=Math.floor((v+_)/2),w=g-1,S=m(w),A=wS(S,2),T=A[0],M=A[1],P=m(g),E=wS(P,1),C=E[0];if(!T&&!C&&(v=g+1),T&&C&&(_=g-1),!T&&C){x=M;break}b++}return x||p},AS=function(t){var r=vt(t)?[]:t.toString().split(wC);return[{words:r}]},J3=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Ti.isSsr){var u,l,c=SC({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;u=f,l=h}else return AS(i);return Z3({breakAll:o,children:i,maxLines:s,style:a},u,l,r,n)}return AS(i)},OS="#808080",Kl=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,d=y===void 0?"end":y,m=t.fill,v=m===void 0?OS:m,_=_S(t,W3),b=O.useMemo(function(){return J3({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:f,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,f,_.style,_.width]),x=_.dx,g=_.dy,w=_.angle,S=_.className,A=_.breakAll,T=_S(_,H3);if(!Te(n)||!Te(a))return null;var M=n+(it(x)?x:0),P=a+(it(g)?g:0),E;switch(d){case"start":E=gm("calc(".concat(l,")"));break;case"middle":E=gm("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:E=gm("calc(".concat(b.length-1," * -").concat(s,")"));break}var C=[];if(f){var j=b[0].width,k=_.width;C.push("scale(".concat((it(k)?k/j:1)/j,")"))}return w&&C.push("rotate(".concat(w,", ").concat(M,", ").concat(P,")")),C.length&&(T.transform=C.join(" ")),O.createElement("text",ag({},xt(T,!0),{x:M,y:P,className:Tt("recharts-text",S),textAnchor:p,fill:v.includes("url")?OS:v}),b.map(function($,N){var W=$.words.join(A?"":" ");return O.createElement("tspan",{x:M,dy:N===0?E:s,key:"".concat(W,"-").concat(N)},W)}))};const TS=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ds,scaleDiverging:zT,scaleDivergingLog:UT,scaleDivergingPow:Ev,scaleDivergingSqrt:YD,scaleDivergingSymlog:WT,scaleIdentity:wT,scaleImplicit:my,scaleLinear:oa,scaleLog:AT,scaleOrdinal:fv,scalePoint:ps,scalePow:vv,scaleQuantile:PT,scaleQuantize:ET,scaleRadial:TT,scaleSequential:LT,scaleSequentialLog:BT,scaleSequentialPow:Pv,scaleSequentialQuantile:FT,scaleSequentialSqrt:XD,scaleSequentialSymlog:qT,scaleSqrt:MR,scaleSymlog:OT,scaleThreshold:CT,scaleTime:Al,scaleUtc:KD,tickFormat:_T},Symbol.toStringTag,{value:"Module"}));var vm,PS;function AC(){if(PS)return vm;PS=1;var e=ko();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 vm=t,vm}var bm,ES;function Q3(){if(ES)return bm;ES=1;function e(t,r){return t>r}return bm=e,bm}var xm,CS;function tU(){if(CS)return xm;CS=1;var e=AC(),t=Q3(),r=$o();function n(i){return i&&i.length?e(i,r,t):void 0}return xm=n,xm}var eU=tU();const hi=Bt(eU);var _m,MS;function rU(){if(MS)return _m;MS=1;function e(t,r){return t<r}return _m=e,_m}var wm,kS;function nU(){if(kS)return wm;kS=1;var e=AC(),t=rU(),r=$o();function n(i){return i&&i.length?e(i,r,t):void 0}return wm=n,wm}var iU=nU();const Yc=Bt(iU);var Sm,$S;function aU(){if($S)return Sm;$S=1;var e=g0();function t(r,n){return e(r,n)}return Sm=t,Sm}var oU=aU();const ca=Bt(oU);var Do=1e9,sU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},O0,re=!0,Kr="[DecimalError] ",ra=Kr+"Invalid argument: ",A0=Kr+"Exponent out of range: ",Io=Math.floor,Fi=Math.pow,uU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Pr,ke=1e7,Jt=7,OC=9007199254740991,Xl=Io(OC/Jt),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)*Jt;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 Un(this,new this.constructor(e))};lt.dividedToIntegerBy=lt.idiv=function(e){var t=this,r=t.constructor;return Kt(Un(t,new r(e),0,1),r.precision)};lt.equals=lt.eq=function(e){return!this.cmp(e)};lt.exponent=function(){return we(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(Pr))throw Error(Kr+"NaN");if(r.s<1)throw Error(Kr+(r.s?"NaN":"-Infinity"));return r.eq(Pr)?new n(0):(re=!1,t=Un(tu(r,a),tu(e,a),a),re=!0,Kt(t,i))};lt.minus=lt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?EC(t,e):TC(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(Kr+"NaN");return r.s?(re=!1,t=Un(r,e,0,1).times(e),re=!0,r.minus(t)):Kt(new n(r),i)};lt.naturalExponential=lt.exp=function(){return PC(this)};lt.naturalLogarithm=lt.ln=function(){return tu(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?TC(t,e):EC(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(ra+e);if(t=we(i)+1,n=i.d.length-1,r=n*Jt+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(Kr+"NaN")}for(e=we(s),re=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Sn(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(Un(s,a,o+2)).times(.5),Sn(a.d).slice(0,o)===(t=Sn(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Kt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return re=!0,Kt(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%ke|0,t=s/ke|0;a[i]=(a[i]+t)%ke|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,re?Kt(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:(Cn(e,0,Do),t===void 0?t=n.rounding:Cn(t,0,8),Kt(r,e+we(r)+1,t))};lt.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=fa(n,!0):(Cn(e,0,Do),t===void 0?t=i.rounding:Cn(t,0,8),n=Kt(new i(n),e+1,t),r=fa(n,!0,e+1)),r};lt.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?fa(i):(Cn(e,0,Do),t===void 0?t=a.rounding:Cn(t,0,8),n=Kt(new a(i),e+we(i)+1,t),r=fa(n.abs(),!1,e+we(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};lt.toInteger=lt.toint=function(){var e=this,t=e.constructor;return Kt(new t(e),we(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(Pr);if(s=new u(s),!s.s){if(e.s<1)throw Error(Kr+"Infinity");return s}if(s.eq(Pr))return s;if(n=u.precision,e.eq(Pr))return Kt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=OC){for(i=new u(Pr),t=Math.ceil(n/Jt+4),re=!1;r%2&&(i=i.times(s),RS(i.d,t)),r=Io(r/2),r!==0;)s=s.times(s),RS(s.d,t);return re=!0,e.s<0?new u(Pr).div(i):Kt(i,n)}}else if(a<0)throw Error(Kr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,re=!1,i=e.times(tu(s,n+l)),re=!0,i=PC(i),i.s=a,i};lt.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=we(i),n=fa(i,r<=a.toExpNeg||r>=a.toExpPos)):(Cn(e,1,Do),t===void 0?t=a.rounding:Cn(t,0,8),i=Kt(new a(i),e,t),r=we(i),n=fa(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):(Cn(e,1,Do),t===void 0?t=n.rounding:Cn(t,0,8)),Kt(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=we(e),r=e.constructor;return fa(e,t<=r.toExpNeg||t>=r.toExpPos)};function TC(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)),re?Kt(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/Jt),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)/ke|0,u[a]%=ke;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,re?Kt(t,f):t}function Cn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ra+e)}function Sn(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=Jt-n.length,r&&(a+=si(r)),a+=n;o=e[t],n=o+"",r=Jt-n.length,r&&(a+=si(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Un=(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%ke|0,o=a/ke|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*ke+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,d,m,v,_,b,x,g,w,S,A,T=n.constructor,M=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Kr+"Division by zero");for(u=n.e-i.e,S=E.length,g=P.length,p=new T(M),y=p.d=[],l=0;E[l]==(P[l]||0);)++l;if(E[l]>(P[l]||0)&&--u,a==null?_=a=T.precision:o?_=a+(we(n)-we(i))+1:_=a,_<0)return new T(0);if(_=_/Jt+2|0,l=0,S==1)for(c=0,E=E[0],_++;(l<g||c)&&_--;l++)b=c*ke+(P[l]||0),y[l]=b/E|0,c=b%E|0;else{for(c=ke/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),x=S,d=P.slice(0,S),m=d.length;m<S;)d[m++]=0;A=E.slice(),A.unshift(0),w=E[0],E[1]>=ke/2&&++w;do c=0,s=t(E,d,S,m),s<0?(v=d[0],S!=m&&(v=v*ke+(d[1]||0)),c=v/w|0,c>1?(c>=ke&&(c=ke-1),f=e(E,c),h=f.length,m=d.length,s=t(f,d,h,m),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<m&&f.unshift(0),r(d,f,m),s==-1&&(m=d.length,s=t(E,d,S,m),s<1&&(c++,r(d,S<m?A:E,m))),m=d.length):s===0&&(c++,d=[0]),y[l++]=c,s&&d[0]?d[m++]=P[x]||0:(d=[P[x]],m=1);while((x++<g||d[0]!==void 0)&&_--)}return y[0]||y.shift(),p.e=u,Kt(p,o?a+we(p)+1:a)}})();function PC(e,t){var r,n,i,a,o,s,u=0,l=0,c=e.constructor,f=c.precision;if(we(e)>16)throw Error(A0+we(e));if(!e.s)return new c(Pr);for(re=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(Fi(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new c(Pr),c.precision=s;;){if(i=Kt(i.times(e),s),r=r.times(++u),o=a.plus(Un(i,r,s)),Sn(o.d).slice(0,s)===Sn(a.d).slice(0,s)){for(;l--;)a=Kt(a.times(a),s);return c.precision=f,t==null?(re=!0,Kt(a,f)):a}a=o}}function we(e){for(var t=e.e*Jt,r=e.d[0];r>=10;r/=10)t++;return t}function Am(e,t,r){if(t>e.LN10.sd())throw re=!0,r&&(e.precision=r),Error(Kr+"LN10 precision limit exceeded");return Kt(new e(e.LN10),t)}function si(e){for(var t="";e--;)t+="0";return t}function tu(e,t){var r,n,i,a,o,s,u,l,c,f=1,h=10,p=e,y=p.d,d=p.constructor,m=d.precision;if(p.s<1)throw Error(Kr+(p.s?"NaN":"-Infinity"));if(p.eq(Pr))return new d(0);if(t==null?(re=!1,l=m):l=t,p.eq(10))return t==null&&(re=!0),Am(d,l);if(l+=h,d.precision=l,r=Sn(y),n=r.charAt(0),a=we(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Sn(p.d),n=r.charAt(0),f++;a=we(p),n>1?(p=new d("0."+r),a++):p=new d(n+"."+r.slice(1))}else return u=Am(d,l+2,m).times(a+""),p=tu(new d(n+"."+r.slice(1)),l-h).plus(u),d.precision=m,t==null?(re=!0,Kt(p,m)):p;for(s=o=p=Un(p.minus(Pr),p.plus(Pr),l),c=Kt(p.times(p),l),i=3;;){if(o=Kt(o.times(c),l),u=s.plus(Un(o,new d(i),l)),Sn(u.d).slice(0,l)===Sn(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(Am(d,l+2,m).times(a+""))),s=Un(s,new d(f),l),d.precision=m,t==null?(re=!0,Kt(s,m)):s;s=u,i+=2}}function jS(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/Jt),e.d=[],n=(r+1)%Jt,r<0&&(n+=Jt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Jt;n<i;)e.d.push(+t.slice(n,n+=Jt));t=t.slice(n),n=Jt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),re&&(e.e>Xl||e.e<-Xl))throw Error(A0+r)}else e.s=0,e.e=0,e.d=[0];return e}function Kt(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+=Jt,i=t,l=f[c=0];else{if(c=Math.ceil((n+1)/Jt),a=f.length,c>=a)return e;for(l=a=f[c],o=1;a>=10;a/=10)o++;n%=Jt,i=n-Jt+o}if(r!==void 0&&(a=Fi(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/Fi(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=we(e),f.length=1,t=t-a-1,f[0]=Fi(10,(Jt-t%Jt)%Jt),e.e=Io(-t/Jt)||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=Fi(10,Jt-n),f[c]=i>0?(l/Fi(10,o-i)%Fi(10,i)|0)*a:0),u)for(;;)if(c==0){(f[0]+=a)==ke&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=ke)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(re&&(e.e>Xl||e.e<-Xl))throw Error(A0+we(e));return e}function EC(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),re?Kt(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/Jt),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]=ke-1;--u[a],u[i]+=ke}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,re?Kt(t,p):t):new h(0)}function fa(e,t,r){var n,i=we(e),a=Sn(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+si(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+si(-i-1)+a,r&&(n=r-o)>0&&(a+=si(n))):i>=o?(a+=si(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+si(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=si(n))),e.s<0?"-"+a:a}function RS(e,t){if(e.length>t)return e.length=t,!0}function CC(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(ra+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 jS(o,a.toString())}else if(typeof a!="string")throw Error(ra+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,uU.test(a))jS(o,a);else throw Error(ra+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=CC,i.config=i.set=lU,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 lU(e){if(!e||typeof e!="object")throw Error(Kr+"Object expected");var t,r,n,i=["precision",1,Do,"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(ra+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ra+r+": "+n);return this}var O0=CC(sU);Pr=new O0(1);const Ut=O0;function cU(e){return dU(e)||pU(e)||hU(e)||fU()}function fU(){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 hU(e,t){if(e){if(typeof e=="string")return og(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 og(e,t)}}function pU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function dU(e){if(Array.isArray(e))return og(e)}function og(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 mU=function(t){return t},MC={},kC=function(t){return t===MC},DS=function(t){return function r(){return arguments.length===0||arguments.length===1&&kC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},yU=function e(t,r){return t===1?r:DS(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!==MC}).length;return o>=t?r.apply(void 0,i):e(t-o,DS(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 kC(f)?u.shift():f});return r.apply(void 0,cU(c).concat(u))}))})},Vc=function(t){return yU(t.length,t)},sg=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},gU=Vc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),vU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return mU;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))}},ug=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},$C=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 bU(e){var t;return e===0?t=1:t=Math.floor(new Ut(e).abs().log(10).toNumber())+1,t}function xU(e,t,r){for(var n=new Ut(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var _U=Vc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),wU=Vc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),SU=Vc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Zc={rangeStep:xU,getDigitCount:bU,interpolateNumber:_U,uninterpolateNumber:wU,uninterpolateTruncation:SU};function lg(e){return TU(e)||OU(e)||jC(e)||AU()}function AU(){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 OU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TU(e){if(Array.isArray(e))return cg(e)}function eu(e,t){return CU(e)||EU(e,t)||jC(e,t)||PU()}function PU(){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 jC(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 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 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 CU(e){if(Array.isArray(e))return e}function RC(e){var t=eu(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function DC(e,t,r){if(e.lte(0))return new Ut(0);var n=Zc.getDigitCount(e.toNumber()),i=new Ut(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ut(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?u:new Ut(Math.ceil(u))}function MU(e,t,r){var n=1,i=new Ut(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ut(10).pow(Zc.getDigitCount(e)-1),i=new Ut(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ut(Math.floor(e)))}else e===0?i=new Ut(Math.floor((t-1)/2)):r||(i=new Ut(Math.floor(e)));var o=Math.floor((t-1)/2),s=vU(gU(function(u){return i.add(new Ut(u-o).mul(n)).toNumber()}),sg);return s(0,t)}function IC(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 Ut(0),tickMin:new Ut(0),tickMax:new Ut(0)};var a=DC(new Ut(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ut(0):(o=new Ut(e).add(t).div(2),o=o.sub(new Ut(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new Ut(t).sub(o).div(a).toNumber()),l=s+u+1;return l>r?IC(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 Ut(s).mul(a)),tickMax:o.add(new Ut(u).mul(a))})}function kU(e){var t=eu(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=RC([r,n]),u=eu(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(lg(sg(0,i-1).map(function(){return 1/0}))):[].concat(lg(sg(0,i-1).map(function(){return-1/0})),[c]);return r>n?ug(f):f}if(l===c)return MU(l,i,a);var h=IC(l,c,o,a),p=h.step,y=h.tickMin,d=h.tickMax,m=Zc.rangeStep(y,d.add(new Ut(.1).mul(p)),p);return r>n?ug(m):m}function $U(e,t){var r=eu(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=RC([n,i]),s=eu(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=DC(new Ut(l).sub(u).div(c-1),a,0),h=[].concat(lg(Zc.rangeStep(new Ut(u),new Ut(l).sub(new Ut(.99).mul(f)),f)),[l]);return n>i?ug(h):h}var jU=$C(kU),RU=$C($U),DU=process.env.NODE_ENV==="production",Om="Invariant failed";function lr(e,t){if(DU)throw new Error(Om);var r=typeof t=="function"?t():t,n=r?"".concat(Om,": ").concat(r):Om;throw new Error(n)}var IU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function lo(e){"@babel/helpers - typeof";return lo=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},lo(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 NU(e,t){return FU(e)||qU(e,t)||BU(e,t)||LU()}function LU(){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 BU(e,t){if(e){if(typeof e=="string")return IS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return IS(e,t)}}function IS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qU(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 FU(e){if(Array.isArray(e))return e}function zU(e,t){if(e==null)return{};var r=UU(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 UU(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 WU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HU(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,BC(n.key),n)}}function GU(e,t,r){return t&&HU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KU(e,t,r){return t=Vl(t),XU(e,NC()?Reflect.construct(t,r||[],Vl(e).constructor):t.apply(e,r))}function XU(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YU(e)}function YU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NC=function(){return!!e})()}function Vl(e){return Vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vl(e)}function VU(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 LC(e,t,r){return t=BC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BC(e){var t=ZU(e,"string");return lo(t)=="symbol"?t:t+""}function ZU(e,t){if(lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var No=(function(e){function t(){return WU(this,t),KU(this,t,arguments)}return VU(t,e),GU(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=zU(n,IU),p=xt(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?lr(!1,'ErrorBar requires Axis type property to be "number".'):lr());var y=u.map(function(d){var m=l(d,s),v=m.x,_=m.y,b=m.value,x=m.errorVal;if(!x)return null;var g=[],w,S;if(Array.isArray(x)){var A=NU(x,2);w=A[0],S=A[1]}else w=S=x;if(a==="vertical"){var T=c.scale,M=_+i,P=M+o,E=M-o,C=T(b-w),j=T(b+S);g.push({x1:j,y1:P,x2:j,y2:E}),g.push({x1:C,y1:M,x2:j,y2:M}),g.push({x1:C,y1:P,x2:C,y2:E})}else if(a==="horizontal"){var k=f.scale,$=v+i,N=$-o,W=$+o,z=k(b-w),I=k(b+S);g.push({x1:N,y1:I,x2:W,y2:I}),g.push({x1:$,y1:z,x2:$,y2:I}),g.push({x1:N,y1:z,x2:W,y2:z})}return O.createElement(jt,Yl({className:"recharts-errorBar",key:"bar-".concat(g.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},p),g.map(function(B){return O.createElement("line",Yl({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return O.createElement(jt,{className:"recharts-errorBars"},y)}}])})(O.Component);LC(No,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});LC(No,"displayName","ErrorBar");function ru(e){"@babel/helpers - typeof";return ru=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},ru(e)}function NS(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 Li(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NS(Object(r),!0).forEach(function(n){JU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JU(e,t,r){return t=QU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QU(e){var t=tW(e,"string");return ru(t)=="symbol"?t:t+""}function tW(e,t){if(ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ar(r,ea);if(!o)return null;var s=ea.defaultProps,u=s!==void 0?Li(Li({},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(d){return{type:o.props.iconType||h.props.legendType,value:d.name,color:d.fill,payload:d}}))},[]):l=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?Li(Li({},h),f.props):{},y=p.dataKey,d=p.name,m=p.legendType,v=p.hide;return{inactive:v,dataKey:y,type:u.iconType||m||"square",color:T0(f),value:d||y,payload:p}}),Li(Li(Li({},u),ea.getWithHeight(o,i)),{},{payload:l,item:o})};function nu(e){"@babel/helpers - typeof";return nu=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},nu(e)}function LS(e){return iW(e)||nW(e)||rW(e)||eW()}function eW(){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 rW(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 nW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iW(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 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 le(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){Ga(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 Ga(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 nu(t)=="symbol"?t:t+""}function oW(e,t){if(nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pe(e,t,r){return vt(e)||vt(t)?r:Te(t)?Gr(e,t,r):_t(t)?t(e):r}function As(e,t,r,n){var i=JE(e,function(s){return Pe(s,t)});if(r==="number"){var a=i.filter(function(s){return it(s)||parseFloat(s)});return a.length?[Yc(a),hi(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!vt(s)}):i;return o.map(function(s){return Te(s)||s instanceof Date?s:""})}var sW=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(an(f-c)!==an(h-f)){var y=[];if(an(h-f)===an(u[1]-u[0])){p=h;var d=f+u[1]-u[0];y[0]=Math.min(d,(d+c)/2),y[1]=Math.max(d,(d+c)/2)}else{p=c;var m=h+u[1]-u[0];y[0]=Math.min(f,(m+f)/2),y[1]=Math.max(f,(m+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[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},T0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?le(le({},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},uW=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]],d=y.items,m=y.cateAxisId,v=d.filter(function(S){return Fn(S.type).indexOf("Bar")>=0});if(v&&v.length){var _=v[0].type.defaultProps,b=_!==void 0?le(le({},_),v[0].props):v[0].props,x=b.barSize,g=b[m];o[g]||(o[g]=[]);var w=vt(x)?r:x;o[g].push({item:v[0],stackList:v.slice(1),barSize:vt(w)?void 0:la(w,n,0)})}}return o},lW=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=la(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/u,y=o.reduce(function(x,g){return x+g.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 d=(i-y)/2>>0,m={offset:d-l,size:0};c=o.reduce(function(x,g){var w={item:g.item,position:{offset:m.offset+m.size+l,size:h?p:g.barSize}},S=[].concat(LS(x),[w]);return m=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:m})}),S},f)}else{var v=la(n,i,0,!0);i-2*v-(u-1)*l<=0&&(l=0);var _=(i-2*v-(u-1)*l)/u;_>1&&(_>>=0);var b=s===+s?Math.min(_,s):_;c=o.reduce(function(x,g,w){var S=[].concat(LS(x),[{item:g.item,position:{offset:v+(_+l)*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},cW=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),l=qC({children:a,legendWidth:u});if(l){var c=i||{},f=c.width,h=c.height,p=l.align,y=l.verticalAlign,d=l.layout;if((d==="vertical"||d==="horizontal"&&y==="middle")&&p!=="center"&&it(t[p]))return le(le({},t),{},Ga({},p,t[p]+(f||0)));if((d==="horizontal"||d==="vertical"&&p==="center")&&y!=="middle"&&it(t[y]))return le(le({},t),{},Ga({},y,t[y]+(h||0)))}return t},fW=function(t,r,n){return vt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},FC=function(t,r,n,i,a){var o=r.props.children,s=mr(o,No).filter(function(l){return fW(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=Pe(c,n);if(vt(f))return l;var h=Array.isArray(f)?[Yc(f),hi(f)]:[f,f],p=u.reduce(function(y,d){var m=Pe(c,d,0),v=h[0]-Math.abs(Array.isArray(m)?m[0]:m),_=h[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(v,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},hW=function(t,r,n,i,a){var o=r.map(function(s){return FC(t,s,n,a,i)}).filter(function(s){return!vt(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},zC=function(t,r,n,i,a){var o=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&FC(t,u,l,i)||As(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},[])},UC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},WC=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},qn=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?an(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}})},Tm=new WeakMap,Vu=function(t,r){if(typeof r!="function")return t;Tm.has(t)||Tm.set(t,new WeakMap);var n=Tm.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},pW=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:Ds(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:oa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ps(),realScaleType:"point"}:a==="category"?{scale:Ds(),realScaleType:"band"}:{scale:oa(),realScaleType:"linear"};if(ua(i)){var u="scale".concat(Gc(i));return{scale:(TS[u]||ps)(),realScaleType:TS[u]?u:"point"}}return _t(i)?{scale:i}:{scale:ps(),realScaleType:"point"}},qS=1e-4,dW=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])-qS,o=Math.max(i[0],i[1])+qS,s=t(r[0]),u=t(r[n-1]);(s<a||s>o||u<a||u>o)&&t.domain([r[0],r[n-1]])}},mW=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},yW=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},gW=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])}},vW=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)}},bW={sign:gW,expand:OI,none:Ja,silhouette:TI,wiggle:PI,positive:vW},xW=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=bW[n],o=Ml().keys(i).value(function(s,u){return+Pe(s,u,0)}).order(xy).offset(a);return o(t)},_W=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?le(le({},h.type.defaultProps),h.props):h.props,d=y.stackId,m=y.hide;if(m)return f;var v=y[n],_=f[v]||{hasStack:!1,stackGroups:{}};if(Te(d)){var b=_.stackGroups[d]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),_.hasStack=!0,_.stackGroups[d]=b}else _.stackGroups[ba("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return le(le({},f),{},Ga({},v,_))},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(d,m){var v=p.stackGroups[m];return le(le({},d),{},Ga({},m,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:xW(t,v.items,a)}))},y)}return le(le({},f),{},Ga({},h,p))},c)},wW=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=jU(l,a,s);return t.domain([Yc(c),hi(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=RU(f,a,s);return{niceTicks:h}}return null};function co(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&&!vt(i[t.dataKey])){var s=ql(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=Pe(i,vt(o)?t.dataKey:o);return vt(u)?null:t.scale(u)}var FS=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=Pe(o,r.dataKey,r.domain[s]);return vt(u)?null:r.scale(u)-a/2+i},SW=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]},AW=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?le(le({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Te(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},OW=function(t){return t.reduce(function(r,n){return[Yc(n.concat([r[0]]).filter(it)),hi(n.concat([r[1]]).filter(it))]},[1/0,-1/0])},HC=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=OW(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})},zS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,US=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pg=function(t,r,n){if(_t(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(zS.test(t[0])){var a=+zS.exec(t[0])[1];i[0]=r[0]-a}else _t(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(US.test(t[1])){var o=+US.exec(t[1])[1];i[1]=r[1]+o}else _t(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Zl=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},WS=function(t,r,n){return!t||!t.length||ca(t,Gr(n,"type.defaultProps.domain"))?r:t},GC=function(t,r){var n=t.type.defaultProps?le(le({},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 le(le({},xt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:T0(t),value:Pe(r,i),type:u,payload:r,chartType:l,hide:c})};function iu(e){"@babel/helpers - typeof";return iu=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},iu(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 GS(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){TW(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 TW(e,t,r){return t=PW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PW(e){var t=EW(e,"string");return iu(t)=="symbol"?t:t+""}function EW(e,t){if(iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jl=Math.PI/180,CW=function(t){return t*180/Math.PI},Ne=function(t,r,n,i){return{x:t+Math.cos(-Jl*i)*n,y:r+Math.sin(-Jl*i)*n}},MW=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))},kW=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=MW({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:CW(l),angleInRadian:l}},$W=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}},jW=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},KS=function(t,r){var n=t.x,i=t.y,a=kW({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=$W(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?GS(GS({},r),{},{radius:o,angle:jW(p,r)}):null};function au(e){"@babel/helpers - typeof";return au=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},au(e)}var RW=["offset"];function DW(e){return BW(e)||LW(e)||NW(e)||IW()}function IW(){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 NW(e,t){if(e){if(typeof e=="string")return dg(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 dg(e,t)}}function LW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BW(e){if(Array.isArray(e))return dg(e)}function dg(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 qW(e,t){if(e==null)return{};var r=FW(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 FW(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 XS(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 Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(r),!0).forEach(function(n){zW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zW(e,t,r){return t=UW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UW(e){var t=WW(e,"string");return au(t)=="symbol"?t:t+""}function WW(e,t){if(au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ou(){return ou=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},ou.apply(this,arguments)}var HW=function(t){var r=t.value,n=t.formatter,i=vt(t.children)?r:t.children;return _t(n)?n(i):i},GW=function(t,r){var n=an(r-t),i=Math.min(Math.abs(r-t),360);return n*i},KW=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,d=u.clockWise,m=(f+h)/2,v=GW(p,y),_=v>=0?1:-1,b,x;i==="insideStart"?(b=p+_*o,x=d):i==="insideEnd"?(b=y-_*o,x=!d):i==="end"&&(b=y+_*o,x=d),x=v<=0?x:!x;var g=Ne(l,c,m,b),w=Ne(l,c,m,b+(x?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
99
+ A`).concat(m,",").concat(m,",0,1,").concat(x?0:1,`,
100
+ `).concat(w.x,",").concat(w.y),A=vt(t.id)?ba("recharts-radial-line-"):t.id;return O.createElement("text",ou({},n,{dominantBaseline:"central",className:Tt("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=Ne(o,s,l+n,h),y=p.x,d=p.y;return{x:y,y:d,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 m=(u+l)/2,v=Ne(o,s,m,h),_=v.x,b=v.y;return{x:_,y:b,textAnchor:"middle",verticalAnchor:"middle"}},YW=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",d=l>=0?1:-1,m=d*i,v=d>0?"end":"start",_=d>0?"start":"end";if(a==="top"){var b={x:s+l/2,y:u-f*i,textAnchor:"middle",verticalAnchor:p};return Oe(Oe({},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 Oe(Oe({},x),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{})}if(a==="left"){var g={x:s-m,y:u+c/2,textAnchor:v,verticalAnchor:"middle"};return Oe(Oe({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+l+m,y:u+c/2,textAnchor:_,verticalAnchor:"middle"};return Oe(Oe({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:l,height:c}:{};return a==="insideLeft"?Oe({x:s+m,y:u+c/2,textAnchor:_,verticalAnchor:"middle"},S):a==="insideRight"?Oe({x:s+l-m,y:u+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideTop"?Oe({x:s+l/2,y:u+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?Oe({x:s+l/2,y:u+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?Oe({x:s+m,y:u+h,textAnchor:_,verticalAnchor:y},S):a==="insideTopRight"?Oe({x:s+l-m,y:u+h,textAnchor:v,verticalAnchor:y},S):a==="insideBottomLeft"?Oe({x:s+m,y:u+c-h,textAnchor:_,verticalAnchor:p},S):a==="insideBottomRight"?Oe({x:s+l-m,y:u+c-h,textAnchor:v,verticalAnchor:p},S):jo(a)&&(it(a.x)||Ki(a.x))&&(it(a.y)||Ki(a.y))?Oe({x:s+la(a.x,l),y:u+la(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):Oe({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},VW=function(t){return"cx"in t&&it(t.cx)};function Ge(e){var t=e.offset,r=t===void 0?5:t,n=qW(e,RW),i=Oe({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||vt(s)&&vt(u)&&!O.isValidElement(l)&&!_t(l))return null;if(O.isValidElement(l))return O.cloneElement(l,i);var p;if(_t(l)){if(p=O.createElement(l,i),O.isValidElement(p))return p}else p=HW(i);var y=VW(a),d=xt(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return KW(i,p,d);var m=y?XW(i):YW(i);return O.createElement(Kl,ou({className:Tt("recharts-label",f)},d,m,{breakAll:h}),p)}Ge.displayName="Label";var KC=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,d=t.width,m=t.height,v=t.clockWise,_=t.labelViewBox;if(_)return _;if(it(d)&&it(m)){if(it(f)&&it(h))return{x:f,y:h,width:d,height:m};if(it(p)&&it(y))return{x:p,y,width:d,height:m}}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:l||0,outerRadius:c||u||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},ZW=function(t,r){return t?t===!0?O.createElement(Ge,{key:"label-implicit",viewBox:r}):Te(t)?O.createElement(Ge,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Ge?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):_t(t)?O.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):jo(t)?O.createElement(Ge,ou({viewBox:r},t,{key:"label-implicit"})):null:null},JW=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=KC(t),o=mr(i,Ge).map(function(u,l){return O.cloneElement(u,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=ZW(t.label,r||a);return[s].concat(DW(o))};Ge.parseViewBox=KC;Ge.renderCallByParent=JW;var Pm,YS;function QW(){if(YS)return Pm;YS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Pm=e,Pm}var t8=QW();const e8=Bt(t8);function su(e){"@babel/helpers - typeof";return su=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},su(e)}var r8=["valueAccessor"],n8=["data","dataKey","clockWise","id","textBreakAll"];function i8(e){return u8(e)||s8(e)||o8(e)||a8()}function a8(){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 o8(e,t){if(e){if(typeof e=="string")return mg(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 mg(e,t)}}function s8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u8(e){if(Array.isArray(e))return mg(e)}function mg(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 Ql(){return Ql=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},Ql.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 ZS(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){l8(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 l8(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=f8(e,"string");return su(t)=="symbol"?t:t+""}function f8(e,t){if(su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JS(e,t){if(e==null)return{};var r=h8(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 h8(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 p8=function(t){return Array.isArray(t.value)?e8(t.value):t.value};function Tn(e){var t=e.valueAccessor,r=t===void 0?p8:t,n=JS(e,r8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,l=JS(n,n8);return!i||!i.length?null:O.createElement(jt,{className:"recharts-label-list"},i.map(function(c,f){var h=vt(a)?r(c,f):Pe(c&&c.payload,a),p=vt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(Ge,Ql({},xt(c,!0),l,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:u,viewBox:Ge.parseViewBox(vt(o)?c:ZS(ZS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Tn.displayName="LabelList";function d8(e,t){return e?e===!0?O.createElement(Tn,{key:"labelList-implicit",data:t}):O.isValidElement(e)||_t(e)?O.createElement(Tn,{key:"labelList-implicit",data:t,content:e}):jo(e)?O.createElement(Tn,Ql({data:t},e,{key:"labelList-implicit"})):null:null}function m8(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=mr(n,Tn).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=d8(e.label,t);return[a].concat(i8(i))}Tn.renderCallByParent=m8;function uu(e){"@babel/helpers - typeof";return uu=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},uu(e)}function yg(){return yg=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},yg.apply(this,arguments)}function QS(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 tA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(r),!0).forEach(function(n){y8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y8(e,t,r){return t=g8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g8(e){var t=v8(e,"string");return uu(t)=="symbol"?t:t+""}function v8(e,t){if(uu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b8=function(t,r){var n=an(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Zu=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)/Jl,h=l?a:a+o*f,p=Ne(r,n,c,h),y=Ne(r,n,i,h),d=l?a-o*f:a,m=Ne(r,n,c*Math.cos(f*Jl),d);return{center:p,circleTangency:y,lineTangency:m,theta:f}},XC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,u=b8(o,s),l=o+u,c=Ne(r,n,a,o),f=Ne(r,n,a,l),h="M ".concat(c.x,",").concat(c.y,`
102
102
  A `).concat(a,",").concat(a,`,0,
103
103
  `).concat(+(Math.abs(u)>180),",").concat(+(o>l),`,
104
104
  `).concat(f.x,",").concat(f.y,`
105
105
  `);if(i>0){var p=Ne(r,n,i,o),y=Ne(r,n,i,l);h+="L ".concat(y.x,",").concat(y.y,`
106
106
  A `).concat(i,",").concat(i,`,0,
107
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},T8=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=an(c-l),h=Zu({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),p=h.circleTangency,y=h.lineTangency,d=h.theta,m=Zu({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),v=m.circleTangency,x=m.lineTangency,b=m.theta,_=u?Math.abs(l-c):Math.abs(l-c)-d-b;if(_<0)return s?"M ".concat(y.x,",").concat(y.y,`
108
+ `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},x8=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=an(c-l),h=Zu({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),p=h.circleTangency,y=h.lineTangency,d=h.theta,m=Zu({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),v=m.circleTangency,_=m.lineTangency,b=m.theta,x=u?Math.abs(l-c):Math.abs(l-c)-d-b;if(x<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
- `):JC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c});var g="M ".concat(y.x,",").concat(y.y,`
111
+ `):XC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,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(+(_>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
114
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,`
113
+ A`).concat(a,",").concat(a,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
114
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,`
115
115
  `);if(i>0){var w=Zu({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),S=w.circleTangency,A=w.lineTangency,T=w.theta,M=Zu({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),P=M.circleTangency,E=M.lineTangency,C=M.theta,j=u?Math.abs(l-c):Math.abs(l-c)-T-C;if(j<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
116
116
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
117
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 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=nA(nA({},P8),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=Tt("recharts-sector",h),y=o-a,d=la(s,y,0,!0),m;return d>0&&Math.abs(c-f)<360?m=T8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(d,y/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:c,endAngle:f}):m=JC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",yg({},_t(r,!0),{className:p,d:m,role:"img"}))};function lu(e){"@babel/helpers - typeof";return lu=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},lu(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)}function iA(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 aA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iA(Object(r),!0).forEach(function(n){E8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iA(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 lu(t)=="symbol"?t:t+""}function M8(e,t){if(lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oA={curveBasisClosed:vI,curveBasisOpen:bI,curveBasis:gI,curveBumpX:nI,curveBumpY:iI,curveLinearClosed:wI,curveLinear:oa,curveMonotoneX:SI,curveMonotoneY:AI,curveNatural:OI,curveStep:TI,curveStepAfter:EI,curveStepBefore:PI},Ju=function(t){return t.x===+t.x&&t.y===+t.y},ts=function(t){return t.x},es=function(t){return t.y},k8=function(t,r){if(xt(t))return t;var n="curve".concat(Gc(t));return(n==="curveMonotone"||n==="curveBump")&&r?oA["".concat(n).concat(r==="vertical"?"Y":"X")]:oA[n]||oa},$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,u=t.connectNulls,l=u===void 0?!1:u,c=k8(n,s),f=l?a.filter(function(d){return Ju(d)}):a,h;if(Array.isArray(o)){var p=l?o.filter(function(d){return Ju(d)}):o,y=f.map(function(d,m){return aA(aA({},d),{},{base:p[m]})});return s==="vertical"?h=Ui().y(es).x1(ts).x0(function(d){return d.base.x}):h=Ui().x(ts).y1(es).y0(function(d){return d.base.y}),h.defined(Ju).curve(c),h(y)}return s==="vertical"&&it(o)?h=Ui().y(es).x1(ts).x0(o):it(o)?h=Ui().x(ts).y1(es).y0(o):h=kv().x(ts).y(es),h.defined(Ju).curve(c),h(f)},ra=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 Hr.createElement("path",gg({},_t(t,!1),Fl(t),{className:Tt("recharts-curve",r),d:o,ref:a}))},Qu={exports:{}},tl={exports:{}},It={};/** @license React v16.13.1
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},_8={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},YC=function(t){var r=tA(tA({},_8),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=Tt("recharts-sector",h),y=o-a,d=la(s,y,0,!0),m;return d>0&&Math.abs(c-f)<360?m=x8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(d,y/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:c,endAngle:f}):m=XC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",yg({},xt(r,!0),{className:p,d:m,role:"img"}))};function lu(e){"@babel/helpers - typeof";return lu=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},lu(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)}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 lu(t)=="symbol"?t:t+""}function A8(e,t){if(lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nA={curveBasisClosed:dI,curveBasisOpen:mI,curveBasis:pI,curveBumpX:QD,curveBumpY:tI,curveLinearClosed:yI,curveLinear:vi,curveMonotoneX:gI,curveMonotoneY:vI,curveNatural:bI,curveStep:xI,curveStepAfter:wI,curveStepBefore:_I},Ju=function(t){return t.x===+t.x&&t.y===+t.y},ts=function(t){return t.x},es=function(t){return t.y},O8=function(t,r){if(_t(t))return t;var n="curve".concat(Gc(t));return(n==="curveMonotone"||n==="curveBump")&&r?nA["".concat(n).concat(r==="vertical"?"Y":"X")]:nA[n]||vi},T8=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=O8(n,s),f=l?a.filter(function(d){return Ju(d)}):a,h;if(Array.isArray(o)){var p=l?o.filter(function(d){return Ju(d)}):o,y=f.map(function(d,m){return rA(rA({},d),{},{base:p[m]})});return s==="vertical"?h=Wi().y(es).x1(ts).x0(function(d){return d.base.x}):h=Wi().x(ts).y1(es).y0(function(d){return d.base.y}),h.defined(Ju).curve(c),h(y)}return s==="vertical"&&it(o)?h=Wi().y(es).x1(ts).x0(o):it(o)?h=Wi().x(ts).y1(es).y0(o):h=kv().x(ts).y(es),h.defined(Ju).curve(c),h(f)},na=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?T8(t):i;return Hr.createElement("path",gg({},xt(t,!1),Fl(t),{className:Tt("recharts-curve",r),d:o,ref:a}))},Qu={exports:{}},tl={exports:{}},It={};/** @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 sA;function j8(){if(sA)return It;sA=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,d=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case t:switch(g=g.type,g){case u:case l: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 w}}case r:return w}}}function _(g){return b(g)===l}return It.AsyncMode=u,It.ConcurrentMode=l,It.ContextConsumer=s,It.ContextProvider=o,It.Element=t,It.ForwardRef=c,It.Fragment=n,It.Lazy=y,It.Memo=p,It.Portal=r,It.Profiler=a,It.StrictMode=i,It.Suspense=f,It.isAsyncMode=function(g){return _(g)||b(g)===u},It.isConcurrentMode=_,It.isContextConsumer=function(g){return b(g)===s},It.isContextProvider=function(g){return b(g)===o},It.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},It.isForwardRef=function(g){return b(g)===c},It.isFragment=function(g){return b(g)===n},It.isLazy=function(g){return b(g)===y},It.isMemo=function(g){return b(g)===p},It.isPortal=function(g){return b(g)===r},It.isProfiler=function(g){return b(g)===a},It.isStrictMode=function(g){return b(g)===i},It.isSuspense=function(g){return b(g)===f},It.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===l||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===m||g.$$typeof===v||g.$$typeof===x||g.$$typeof===d)},It.typeOf=b,It}var Nt={};/** @license React v16.13.1
125
+ */var iA;function P8(){if(iA)return It;iA=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,d=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case t:switch(g=g.type,g){case u:case l: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 w}}case r:return w}}}function x(g){return b(g)===l}return It.AsyncMode=u,It.ConcurrentMode=l,It.ContextConsumer=s,It.ContextProvider=o,It.Element=t,It.ForwardRef=c,It.Fragment=n,It.Lazy=y,It.Memo=p,It.Portal=r,It.Profiler=a,It.StrictMode=i,It.Suspense=f,It.isAsyncMode=function(g){return x(g)||b(g)===u},It.isConcurrentMode=x,It.isContextConsumer=function(g){return b(g)===s},It.isContextProvider=function(g){return b(g)===o},It.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},It.isForwardRef=function(g){return b(g)===c},It.isFragment=function(g){return b(g)===n},It.isLazy=function(g){return b(g)===y},It.isMemo=function(g){return b(g)===p},It.isPortal=function(g){return b(g)===r},It.isProfiler=function(g){return b(g)===a},It.isStrictMode=function(g){return b(g)===i},It.isSuspense=function(g){return b(g)===f},It.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===l||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===m||g.$$typeof===v||g.$$typeof===_||g.$$typeof===d)},It.typeOf=b,It}var Nt={};/** @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 uA;function R8(){return uA||(uA=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,d=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(R){return typeof R=="string"||typeof R=="function"||R===n||R===l||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===m||R.$$typeof===v||R.$$typeof===x||R.$$typeof===d)}function _(R){if(typeof R=="object"&&R!==null){var J=R.$$typeof;switch(J){case t:var U=R.type;switch(U){case u:case l:case n:case a:case i:case f:return U;default:var ot=U&&U.$$typeof;switch(ot){case s:case c:case y:case p:case o:return ot;default:return J}}case r:return J}}}var g=u,w=l,S=s,A=o,T=t,M=c,P=n,E=y,C=p,j=r,k=a,$=i,N=f,W=!1;function z(R){return W||(W=!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.")),I(R)||_(R)===u}function I(R){return _(R)===l}function B(R){return _(R)===s}function D(R){return _(R)===o}function F(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function X(R){return _(R)===c}function L(R){return _(R)===n}function Y(R){return _(R)===y}function Z(R){return _(R)===p}function H(R){return _(R)===r}function q(R){return _(R)===a}function K(R){return _(R)===i}function Q(R){return _(R)===f}Nt.AsyncMode=g,Nt.ConcurrentMode=w,Nt.ContextConsumer=S,Nt.ContextProvider=A,Nt.Element=T,Nt.ForwardRef=M,Nt.Fragment=P,Nt.Lazy=E,Nt.Memo=C,Nt.Portal=j,Nt.Profiler=k,Nt.StrictMode=$,Nt.Suspense=N,Nt.isAsyncMode=z,Nt.isConcurrentMode=I,Nt.isContextConsumer=B,Nt.isContextProvider=D,Nt.isElement=F,Nt.isForwardRef=X,Nt.isFragment=L,Nt.isLazy=Y,Nt.isMemo=Z,Nt.isPortal=H,Nt.isProfiler=q,Nt.isStrictMode=K,Nt.isSuspense=Q,Nt.isValidElementType=b,Nt.typeOf=_})()),Nt}var lA;function tM(){return lA||(lA=1,process.env.NODE_ENV==="production"?tl.exports=j8():tl.exports=R8()),tl.exports}/*
132
+ */var aA;function E8(){return aA||(aA=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,d=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(R){return typeof R=="string"||typeof R=="function"||R===n||R===l||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===m||R.$$typeof===v||R.$$typeof===_||R.$$typeof===d)}function x(R){if(typeof R=="object"&&R!==null){var J=R.$$typeof;switch(J){case t:var U=R.type;switch(U){case u:case l:case n:case a:case i:case f:return U;default:var ot=U&&U.$$typeof;switch(ot){case s:case c:case y:case p:case o:return ot;default:return J}}case r:return J}}}var g=u,w=l,S=s,A=o,T=t,M=c,P=n,E=y,C=p,j=r,k=a,$=i,N=f,W=!1;function z(R){return W||(W=!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.")),I(R)||x(R)===u}function I(R){return x(R)===l}function B(R){return x(R)===s}function D(R){return x(R)===o}function F(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function X(R){return x(R)===c}function L(R){return x(R)===n}function Y(R){return x(R)===y}function Z(R){return x(R)===p}function H(R){return x(R)===r}function q(R){return x(R)===a}function K(R){return x(R)===i}function Q(R){return x(R)===f}Nt.AsyncMode=g,Nt.ConcurrentMode=w,Nt.ContextConsumer=S,Nt.ContextProvider=A,Nt.Element=T,Nt.ForwardRef=M,Nt.Fragment=P,Nt.Lazy=E,Nt.Memo=C,Nt.Portal=j,Nt.Profiler=k,Nt.StrictMode=$,Nt.Suspense=N,Nt.isAsyncMode=z,Nt.isConcurrentMode=I,Nt.isContextConsumer=B,Nt.isContextProvider=D,Nt.isElement=F,Nt.isForwardRef=X,Nt.isFragment=L,Nt.isLazy=Y,Nt.isMemo=Z,Nt.isPortal=H,Nt.isProfiler=q,Nt.isStrictMode=K,Nt.isSuspense=Q,Nt.isValidElementType=b,Nt.typeOf=x})()),Nt}var oA;function VC(){return oA||(oA=1,process.env.NODE_ENV==="production"?tl.exports=P8():tl.exports=E8()),tl.exports}/*
133
133
  object-assign
134
134
  (c) Sindre Sorhus
135
135
  @license MIT
136
- */var Em,cA;function D8(){if(cA)return Em;cA=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 Em=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},Em}var Cm,fA;function E0(){if(fA)return Cm;fA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cm=e,Cm}var Mm,hA;function eM(){return hA||(hA=1,Mm=Function.call.bind(Object.prototype.hasOwnProperty)),Mm}var km,pA;function I8(){if(pA)return km;pA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=E0(),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,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={})},km=i,km}var $m,dA;function N8(){if(dA)return $m;dA=1;var e=tM(),t=D8(),r=E0(),n=eM(),i=I8(),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 $m=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var B=I&&(l&&I[l]||I[c]);if(typeof B=="function")return B}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:x(),arrayOf:b,element:_(),elementType:g(),instanceOf:w,node:M(),objectOf:A,oneOf:S,oneOfType:T,shape:E,exact:C};function y(I,B){return I===B?I!==0||1/I===1/B:I!==I&&B!==B}function d(I,B){this.message=I,this.data=B&&typeof B=="object"?B:{},this.stack=""}d.prototype=Error.prototype;function m(I){if(process.env.NODE_ENV!=="production")var B={},D=0;function F(L,Y,Z,H,q,K,Q){if(H=H||h,K=K||Z,Q!==r){if(u){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 J=H+":"+Z;!B[J]&&D<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+H+"`. 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."),B[J]=!0,D++)}}return Y[Z]==null?L?Y[Z]===null?new d("The "+q+" `"+K+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new d("The "+q+" `"+K+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:I(Y,Z,H,q,K)}var X=F.bind(null,!1);return X.isRequired=F.bind(null,!0),X}function v(I){function B(D,F,X,L,Y,Z){var H=D[F],q=$(H);if(q!==I){var K=N(H);return new d("Invalid "+L+" `"+Y+"` of type "+("`"+K+"` supplied to `"+X+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return m(B)}function x(){return m(o)}function b(I){function B(D,F,X,L,Y){if(typeof I!="function")return new d("Property `"+Y+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var Z=D[F];if(!Array.isArray(Z)){var H=$(Z);return new d("Invalid "+L+" `"+Y+"` of type "+("`"+H+"` supplied to `"+X+"`, expected an array."))}for(var q=0;q<Z.length;q++){var K=I(Z,q,X,L,Y+"["+q+"]",r);if(K instanceof Error)return K}return null}return m(B)}function _(){function I(B,D,F,X,L){var Y=B[D];if(!s(Y)){var Z=$(Y);return new d("Invalid "+X+" `"+L+"` of type "+("`"+Z+"` supplied to `"+F+"`, expected a single ReactElement."))}return null}return m(I)}function g(){function I(B,D,F,X,L){var Y=B[D];if(!e.isValidElementType(Y)){var Z=$(Y);return new d("Invalid "+X+" `"+L+"` of type "+("`"+Z+"` supplied to `"+F+"`, expected a single ReactElement type."))}return null}return m(I)}function w(I){function B(D,F,X,L,Y){if(!(D[F]instanceof I)){var Z=I.name||h,H=z(D[F]);return new d("Invalid "+L+" `"+Y+"` of type "+("`"+H+"` supplied to `"+X+"`, expected ")+("instance of `"+Z+"`."))}return null}return m(B)}function S(I){if(!Array.isArray(I))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 B(D,F,X,L,Y){for(var Z=D[F],H=0;H<I.length;H++)if(y(Z,I[H]))return null;var q=JSON.stringify(I,function(Q,R){var J=N(R);return J==="symbol"?String(R):R});return new d("Invalid "+L+" `"+Y+"` of value `"+String(Z)+"` "+("supplied to `"+X+"`, expected one of "+q+"."))}return m(B)}function A(I){function B(D,F,X,L,Y){if(typeof I!="function")return new d("Property `"+Y+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var Z=D[F],H=$(Z);if(H!=="object")return new d("Invalid "+L+" `"+Y+"` of type "+("`"+H+"` supplied to `"+X+"`, expected an object."));for(var q in Z)if(n(Z,q)){var K=I(Z,q,X,L,Y+"."+q,r);if(K instanceof Error)return K}return null}return m(B)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var B=0;B<I.length;B++){var D=I[B];if(typeof D!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(D)+" at index "+B+"."),o}function F(X,L,Y,Z,H){for(var q=[],K=0;K<I.length;K++){var Q=I[K],R=Q(X,L,Y,Z,H,r);if(R==null)return null;R.data&&n(R.data,"expectedType")&&q.push(R.data.expectedType)}var J=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new d("Invalid "+Z+" `"+H+"` supplied to "+("`"+Y+"`"+J+"."))}return m(F)}function M(){function I(B,D,F,X,L){return j(B[D])?null:new d("Invalid "+X+" `"+L+"` supplied to "+("`"+F+"`, expected a ReactNode."))}return m(I)}function P(I,B,D,F,X){return new d((I||"React class")+": "+B+" type `"+D+"."+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function E(I){function B(D,F,X,L,Y){var Z=D[F],H=$(Z);if(H!=="object")return new d("Invalid "+L+" `"+Y+"` of type `"+H+"` "+("supplied to `"+X+"`, expected `object`."));for(var q in I){var K=I[q];if(typeof K!="function")return P(X,L,Y,q,N(K));var Q=K(Z,q,X,L,Y+"."+q,r);if(Q)return Q}return null}return m(B)}function C(I){function B(D,F,X,L,Y){var Z=D[F],H=$(Z);if(H!=="object")return new d("Invalid "+L+" `"+Y+"` of type `"+H+"` "+("supplied to `"+X+"`, expected `object`."));var q=t({},D[F],I);for(var K in q){var Q=I[K];if(n(I,K)&&typeof Q!="function")return P(X,L,Y,K,N(Q));if(!Q)return new d("Invalid "+L+" `"+Y+"` key `"+K+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(D[F],null," ")+`
137
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var R=Q(Z,K,X,L,Y+"."+K,r);if(R)return R}return null}return m(B)}function j(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(j);if(I===null||s(I))return!0;var B=f(I);if(B){var D=B.call(I),F;if(B!==I.entries){for(;!(F=D.next()).done;)if(!j(F.value))return!1}else for(;!(F=D.next()).done;){var X=F.value;if(X&&!j(X[1]))return!1}}else return!1;return!0;default:return!1}}function k(I,B){return I==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function $(I){var B=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":k(B,I)?"symbol":B}function N(I){if(typeof I>"u"||I===null)return""+I;var B=$(I);if(B==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return B}function W(I){var B=N(I);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function z(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},$m}var jm,mA;function L8(){if(mA)return jm;mA=1;var e=E0();function t(){}function r(){}return r.resetWarningCache=t,jm=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},jm}var yA;function B8(){if(yA)return Qu.exports;if(yA=1,process.env.NODE_ENV!=="production"){var e=tM(),t=!0;Qu.exports=N8()(e.isElement,t)}else Qu.exports=L8()();return Qu.exports}var q8=B8();const Lt=Bt(q8);var F8=Object.getOwnPropertyNames,z8=Object.getOwnPropertySymbols,U8=Object.prototype.hasOwnProperty;function gA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function el(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 W8(e){return e!=null?e[Symbol.toStringTag]:void 0}function vA(e){return F8(e).concat(z8(e))}var H8=Object.hasOwn||(function(e,t){return U8.call(e,t)});function _a(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var G8="__v",K8="__o",X8="_owner",bA=Object.getOwnPropertyDescriptor,_A=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 _a(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 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.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 Q8=_a;function tH(e,t,r){var n=_A(e),i=n.length;if(_A(t).length!==i)return!1;for(;i-- >0;)if(!rM(e,t,r,n[i]))return!1;return!0}function rs(e,t,r){var n=vA(e),i=n.length;if(vA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!rM(e,t,r,a)||(o=bA(e,a),s=bA(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 _a(e.valueOf(),t.valueOf())}function rH(e,t){return e.source===t.source&&e.flags===t.flags}function wA(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 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===X8||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]",uH="[object Error]",lH="[object Map]",cH="[object Number]",fH="[object Object]",hH="[object RegExp]",pH="[object Set]",dH="[object String]",mH="[object URL]",yH=Array.isArray,SA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,AA=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,u=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(d,m,v){if(d===m)return!0;if(d==null||m==null)return!1;var x=typeof d;if(x!==typeof m)return!1;if(x!=="object")return x==="number"?o(d,m,v):x==="function"?i(d,m,v):!1;var b=d.constructor;if(b!==m.constructor)return!1;if(b===Object)return s(d,m,v);if(yH(d))return t(d,m,v);if(SA!=null&&SA(d))return f(d,m,v);if(b===Date)return r(d,m,v);if(b===RegExp)return l(d,m,v);if(b===Map)return a(d,m,v);if(b===Set)return c(d,m,v);var _=gH(d);if(_===sH)return r(d,m,v);if(_===hH)return l(d,m,v);if(_===lH)return a(d,m,v);if(_===pH)return c(d,m,v);if(_===fH)return typeof d.then!="function"&&typeof m.then!="function"&&s(d,m,v);if(_===mH)return h(d,m,v);if(_===uH)return n(d,m,v);if(_===aH)return s(d,m,v);if(_===oH||_===cH||_===dH)return u(d,m,v);if(p){var g=p[_];if(!g){var w=W8(d);w&&(g=p[w])}if(g)return g(d,m,v)}return!1}}function bH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?rs:Y8,areDatesEqual:V8,areErrorsEqual:Z8,areFunctionsEqual:J8,areMapsEqual:n?gA(xA,rs):xA,areNumbersEqual:Q8,areObjectsEqual:n?rs:tH,arePrimitiveWrappersEqual:eH,areRegExpsEqual:rH,areSetsEqual:n?gA(wA,rs):wA,areTypedArraysEqual:n?rs:nH,areUrlsEqual:iH,unknownTagComparators:void 0};if(r&&(i=AA({},i,r(i))),t){var a=el(i.areArraysEqual),o=el(i.areMapsEqual),s=el(i.areObjectsEqual),u=el(i.areSetsEqual);i=AA({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}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(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 wH=Ti();Ti({strict:!0});Ti({circular:!0});Ti({circular:!0,strict:!0});Ti({createInternalComparator:function(){return _a}});Ti({strict:!0,createInternalComparator:function(){return _a}});Ti({circular:!0,createInternalComparator:function(){return _a}});Ti({circular:!0,createInternalComparator:function(){return _a},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=bH(e),u=vH(s),l=n?n(u):_H(u);return xH({circular:r,comparator:u,createState:i,equals:l,strict:o})}function SH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function OA(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 vg(e){"@babel/helpers - typeof";return vg=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},vg(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 TA(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 TA(e,t)}}function TA(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),u=s[0],l=s.slice(1);if(typeof u=="number"){OA(i.bind(null,l),u);return}i(u),OA(i.bind(null,l));return}vg(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 cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function PA(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 EA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PA(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PA(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 cu(t)==="symbol"?t:String(t)}function kH(e,t){if(cu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cu(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())})},Os=function(t,r){return Object.keys(r).reduce(function(n,i){return EA(EA({},n),{},nM({},i,t(i,r[i])))},{})},CA=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",tc=function(t,r,n,i,a,o,s,u){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 l=[n,i,a,o,s,u],c=0;console.warn(r.replace(/%s/g,function(){return l[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=[],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 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 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 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 bg(e)}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}var ec=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})},MA=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)}},kA=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(m){return parseFloat(m)}),c=IH(l,4);i=c[0],a=c[1],o=c[2],s=c[3]}else tc(!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)}}tc([i,o,a,s].every(function(m){return typeof m=="number"&&m>=0&&m<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=MA(i,o),h=MA(a,s),p=WH(i,o),y=function(v){return v>1?1:v<0?0:v},d=function(v){for(var x=v>1?1:v,b=x,_=0;_<8;++_){var g=f(b)-x,w=p(b);if(Math.abs(g-x)<ec||w<ec)return h(b);b=y(b-g/w)}return h(b)};return d.isStepper=!1,d},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,u=function(c,f,h){var p=-(c-f)*n,y=h*a,d=h+(p-y)*s/1e3,m=h*s/1e3+c;return Math.abs(m-f)<ec&&Math.abs(d)<ec?[f,0]:[m,d]};return u.isStepper=!0,u.dt=s,u},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 kA(i);case"spring":return HH();default:if(i.split("(")[0]==="cubic-bezier")return kA(i);tc(!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:(tc(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}function $A(e){return YH(e)||XH(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 XH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YH(e){if(Array.isArray(e))return xg(e)}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 Ie(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){_g(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 _g(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 fu(t)==="symbol"?t:String(t)}function ZH(e,t){if(fu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JH(e,t){return eG(e)||tG(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 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 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 tG(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 eG(e){if(Array.isArray(e))return e}var rc=function(t,r,n){return t+(r-t)*n},wg=function(t){var r=t.from,n=t.to;return r!==n},rG=function e(t,r,n){var i=Os(function(a,o){if(wg(o)){var s=t(o.from,o.to,o.velocity),u=JH(s,2),l=u[0],c=u[1];return Ie(Ie({},o),{},{from:l,velocity:c})}return o},r);return n<1?Os(function(a,o){return wg(o)?Ie(Ie({},o),{},{velocity:rc(o.velocity,i[a].velocity,n),from:rc(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const nG=(function(e,t,r,n,i){var a=$H(e,t),o=a.reduce(function(m,v){return Ie(Ie({},m),{},_g({},v,[e[v],t[v]]))},{}),s=a.reduce(function(m,v){return Ie(Ie({},m),{},_g({},v,{from:e[v],velocity:0,to:t[v]}))},{}),u=-1,l,c,f=function(){return null},h=function(){return Os(function(v,x){return x.from},s)},p=function(){return!Object.values(s).filter(wg).length},y=function(v){l||(l=v);var x=v-l,b=x/r.dt;s=rG(r,s,b),i(Ie(Ie(Ie({},e),t),h())),l=v,p()||(u=requestAnimationFrame(f))},d=function(v){c||(c=v);var x=(v-c)/n,b=Os(function(g,w){return rc.apply(void 0,$A(w).concat([r(x)]))},o);if(i(Ie(Ie(Ie({},e),t),b)),x<1)u=requestAnimationFrame(f);else{var _=Os(function(g,w){return rc.apply(void 0,$A(w).concat([r(1)]))},o);i(Ie(Ie(Ie({},e),t),_))}};return f=r.isStepper?y:d,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}});function fo(e){"@babel/helpers - typeof";return fo=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},fo(e)}var iG=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function aG(e,t){if(e==null)return{};var r=oG(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 oG(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 Rm(e){return cG(e)||lG(e)||uG(e)||sG()}function sG(){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 uG(e,t){if(e){if(typeof e=="string")return Sg(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 Sg(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 Sg(e)}function Sg(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 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 Jr(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){hs(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 hs(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 fG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hG(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 pG(e,t,r){return t&&hG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uM(e){var t=dG(e,"string");return fo(t)==="symbol"?t:String(t)}function dG(e,t){if(fo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mG(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&&Ag(e,t)}function Ag(e,t){return Ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ag(e,t)}function yG(e){var t=gG();return function(){var n=nc(e),i;if(t){var a=nc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Og(this,i)}}function Og(e,t){if(t&&(fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tg(e)}function Tg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gG(){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 nc(e){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nc(e)}var on=(function(e){mG(r,e);var t=yG(r);function r(n,i){var a;fG(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(Tg(a)),a.changeStyle=a.changeStyle.bind(Tg(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Og(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof h=="function")return a.state={style:l},Og(a);a.state={style:u?hs({},u,l):l}}else a.state={style:{}};return a}return pG(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?hs({},u,c):c};this.state&&h&&(u&&h[u]!==c||!u&&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 d=y||l?f:i.to;if(this.state&&h){var m={style:u?hs({},u,d):d};(u&&h[u]!==d||!u&&h!==d)&&this.setState(m)}this.runAnimation(Jr(Jr({},this.props),{},{from:d,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=nG(o,s,GH(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(d,m,v){if(v===0)return d;var x=m.duration,b=m.easing,_=b===void 0?"ease":b,g=m.style,w=m.properties,S=m.onAnimationEnd,A=v>0?o[v-1]:m,T=w||Object.keys(g);if(typeof _=="function"||_==="spring")return[].concat(Rm(d),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:x,easing:_}),x]);var M=CA(T,x,_),P=Jr(Jr(Jr({},A.style),g),{},{transition:M});return[].concat(Rm(d),[P,x,S]).filter(jH)};return this.manager.start([u].concat(Rm(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,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 d=s?hs({},s,u):u,m=CA(Object.keys(d),o,l);y.start([c,a,Jr(Jr({},d),{},{transition:m}),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=aG(i,iG),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,d=y.style,m=d===void 0?{}:d,v=y.className,x=O.cloneElement(p,Jr(Jr({},u),{},{style:Jr(Jr({},m),c),className:v}));return x};return l===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);on.displayName="Animate";on.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};on.propTypes={from:Lt.oneOfType([Lt.object,Lt.string]),to:Lt.oneOfType([Lt.object,Lt.string]),attributeName:Lt.string,duration:Lt.number,begin:Lt.number,easing:Lt.oneOfType([Lt.string,Lt.func]),steps:Lt.arrayOf(Lt.shape({duration:Lt.number.isRequired,style:Lt.object.isRequired,easing:Lt.oneOfType([Lt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Lt.func]),properties:Lt.arrayOf("string"),onAnimationEnd:Lt.func})),children:Lt.oneOfType([Lt.node,Lt.func]),isActive:Lt.bool,canBegin:Lt.bool,onAnimationEnd:Lt.func,shouldReAnimate:Lt.bool,onAnimationStart:Lt.func,onAnimationReStart:Lt.func};function hu(e){"@babel/helpers - typeof";return hu=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},hu(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 vG(e,t){return wG(e)||xG(e,t)||_G(e,t)||bG()}function bG(){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 _G(e,t){if(e){if(typeof e=="string")return DA(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 DA(e,t)}}function DA(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}function IA(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 NA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(r),!0).forEach(function(n){SG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SG(e,t,r){return t=AG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AG(e){var t=OG(e,"string");return hu(t)=="symbol"?t:t+""}function OG(e,t){if(hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LA=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,`,
136
+ */var Em,sA;function C8(){if(sA)return Em;sA=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 Em=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},Em}var Cm,uA;function P0(){if(uA)return Cm;uA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cm=e,Cm}var Mm,lA;function ZC(){return lA||(lA=1,Mm=Function.call.bind(Object.prototype.hasOwnProperty)),Mm}var km,cA;function M8(){if(cA)return km;cA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=P0(),r={},n=ZC();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={})},km=i,km}var $m,fA;function k8(){if(fA)return $m;fA=1;var e=VC(),t=C8(),r=P0(),n=ZC(),i=M8(),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 $m=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var B=I&&(l&&I[l]||I[c]);if(typeof B=="function")return B}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:_(),arrayOf:b,element:x(),elementType:g(),instanceOf:w,node:M(),objectOf:A,oneOf:S,oneOfType:T,shape:E,exact:C};function y(I,B){return I===B?I!==0||1/I===1/B:I!==I&&B!==B}function d(I,B){this.message=I,this.data=B&&typeof B=="object"?B:{},this.stack=""}d.prototype=Error.prototype;function m(I){if(process.env.NODE_ENV!=="production")var B={},D=0;function F(L,Y,Z,H,q,K,Q){if(H=H||h,K=K||Z,Q!==r){if(u){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 J=H+":"+Z;!B[J]&&D<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+H+"`. 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."),B[J]=!0,D++)}}return Y[Z]==null?L?Y[Z]===null?new d("The "+q+" `"+K+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new d("The "+q+" `"+K+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:I(Y,Z,H,q,K)}var X=F.bind(null,!1);return X.isRequired=F.bind(null,!0),X}function v(I){function B(D,F,X,L,Y,Z){var H=D[F],q=$(H);if(q!==I){var K=N(H);return new d("Invalid "+L+" `"+Y+"` of type "+("`"+K+"` supplied to `"+X+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return m(B)}function _(){return m(o)}function b(I){function B(D,F,X,L,Y){if(typeof I!="function")return new d("Property `"+Y+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var Z=D[F];if(!Array.isArray(Z)){var H=$(Z);return new d("Invalid "+L+" `"+Y+"` of type "+("`"+H+"` supplied to `"+X+"`, expected an array."))}for(var q=0;q<Z.length;q++){var K=I(Z,q,X,L,Y+"["+q+"]",r);if(K instanceof Error)return K}return null}return m(B)}function x(){function I(B,D,F,X,L){var Y=B[D];if(!s(Y)){var Z=$(Y);return new d("Invalid "+X+" `"+L+"` of type "+("`"+Z+"` supplied to `"+F+"`, expected a single ReactElement."))}return null}return m(I)}function g(){function I(B,D,F,X,L){var Y=B[D];if(!e.isValidElementType(Y)){var Z=$(Y);return new d("Invalid "+X+" `"+L+"` of type "+("`"+Z+"` supplied to `"+F+"`, expected a single ReactElement type."))}return null}return m(I)}function w(I){function B(D,F,X,L,Y){if(!(D[F]instanceof I)){var Z=I.name||h,H=z(D[F]);return new d("Invalid "+L+" `"+Y+"` of type "+("`"+H+"` supplied to `"+X+"`, expected ")+("instance of `"+Z+"`."))}return null}return m(B)}function S(I){if(!Array.isArray(I))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 B(D,F,X,L,Y){for(var Z=D[F],H=0;H<I.length;H++)if(y(Z,I[H]))return null;var q=JSON.stringify(I,function(Q,R){var J=N(R);return J==="symbol"?String(R):R});return new d("Invalid "+L+" `"+Y+"` of value `"+String(Z)+"` "+("supplied to `"+X+"`, expected one of "+q+"."))}return m(B)}function A(I){function B(D,F,X,L,Y){if(typeof I!="function")return new d("Property `"+Y+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var Z=D[F],H=$(Z);if(H!=="object")return new d("Invalid "+L+" `"+Y+"` of type "+("`"+H+"` supplied to `"+X+"`, expected an object."));for(var q in Z)if(n(Z,q)){var K=I(Z,q,X,L,Y+"."+q,r);if(K instanceof Error)return K}return null}return m(B)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var B=0;B<I.length;B++){var D=I[B];if(typeof D!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(D)+" at index "+B+"."),o}function F(X,L,Y,Z,H){for(var q=[],K=0;K<I.length;K++){var Q=I[K],R=Q(X,L,Y,Z,H,r);if(R==null)return null;R.data&&n(R.data,"expectedType")&&q.push(R.data.expectedType)}var J=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new d("Invalid "+Z+" `"+H+"` supplied to "+("`"+Y+"`"+J+"."))}return m(F)}function M(){function I(B,D,F,X,L){return j(B[D])?null:new d("Invalid "+X+" `"+L+"` supplied to "+("`"+F+"`, expected a ReactNode."))}return m(I)}function P(I,B,D,F,X){return new d((I||"React class")+": "+B+" type `"+D+"."+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function E(I){function B(D,F,X,L,Y){var Z=D[F],H=$(Z);if(H!=="object")return new d("Invalid "+L+" `"+Y+"` of type `"+H+"` "+("supplied to `"+X+"`, expected `object`."));for(var q in I){var K=I[q];if(typeof K!="function")return P(X,L,Y,q,N(K));var Q=K(Z,q,X,L,Y+"."+q,r);if(Q)return Q}return null}return m(B)}function C(I){function B(D,F,X,L,Y){var Z=D[F],H=$(Z);if(H!=="object")return new d("Invalid "+L+" `"+Y+"` of type `"+H+"` "+("supplied to `"+X+"`, expected `object`."));var q=t({},D[F],I);for(var K in q){var Q=I[K];if(n(I,K)&&typeof Q!="function")return P(X,L,Y,K,N(Q));if(!Q)return new d("Invalid "+L+" `"+Y+"` key `"+K+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(D[F],null," ")+`
137
+ Valid keys: `+JSON.stringify(Object.keys(I),null," "));var R=Q(Z,K,X,L,Y+"."+K,r);if(R)return R}return null}return m(B)}function j(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(j);if(I===null||s(I))return!0;var B=f(I);if(B){var D=B.call(I),F;if(B!==I.entries){for(;!(F=D.next()).done;)if(!j(F.value))return!1}else for(;!(F=D.next()).done;){var X=F.value;if(X&&!j(X[1]))return!1}}else return!1;return!0;default:return!1}}function k(I,B){return I==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function $(I){var B=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":k(B,I)?"symbol":B}function N(I){if(typeof I>"u"||I===null)return""+I;var B=$(I);if(B==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return B}function W(I){var B=N(I);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function z(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},$m}var jm,hA;function $8(){if(hA)return jm;hA=1;var e=P0();function t(){}function r(){}return r.resetWarningCache=t,jm=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},jm}var pA;function j8(){if(pA)return Qu.exports;if(pA=1,process.env.NODE_ENV!=="production"){var e=VC(),t=!0;Qu.exports=k8()(e.isElement,t)}else Qu.exports=$8()();return Qu.exports}var R8=j8();const Lt=Bt(R8);var D8=Object.getOwnPropertyNames,I8=Object.getOwnPropertySymbols,N8=Object.prototype.hasOwnProperty;function dA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function el(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 L8(e){return e!=null?e[Symbol.toStringTag]:void 0}function mA(e){return D8(e).concat(I8(e))}var B8=Object.hasOwn||(function(e,t){return N8.call(e,t)});function xa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var q8="__v",F8="__o",z8="_owner",yA=Object.getOwnPropertyDescriptor,gA=Object.keys;function U8(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 W8(e,t){return xa(e.getTime(),t.getTime())}function H8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function G8(e,t){return e===t}function vA(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 K8=xa;function X8(e,t,r){var n=gA(e),i=n.length;if(gA(t).length!==i)return!1;for(;i-- >0;)if(!JC(e,t,r,n[i]))return!1;return!0}function rs(e,t,r){var n=mA(e),i=n.length;if(mA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!JC(e,t,r,a)||(o=yA(e,a),s=yA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function Y8(e,t){return xa(e.valueOf(),t.valueOf())}function V8(e,t){return e.source===t.source&&e.flags===t.flags}function bA(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 Z8(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 J8(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 JC(e,t,r,n){return(n===z8||n===F8||n===q8)&&(e.$$typeof||t.$$typeof)?!0:B8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var Q8="[object Arguments]",tH="[object Boolean]",eH="[object Date]",rH="[object Error]",nH="[object Map]",iH="[object Number]",aH="[object Object]",oH="[object RegExp]",sH="[object Set]",uH="[object String]",lH="[object URL]",cH=Array.isArray,xA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,_A=Object.assign,fH=Object.prototype.toString.call.bind(Object.prototype.toString);function hH(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(d,m,v){if(d===m)return!0;if(d==null||m==null)return!1;var _=typeof d;if(_!==typeof m)return!1;if(_!=="object")return _==="number"?o(d,m,v):_==="function"?i(d,m,v):!1;var b=d.constructor;if(b!==m.constructor)return!1;if(b===Object)return s(d,m,v);if(cH(d))return t(d,m,v);if(xA!=null&&xA(d))return f(d,m,v);if(b===Date)return r(d,m,v);if(b===RegExp)return l(d,m,v);if(b===Map)return a(d,m,v);if(b===Set)return c(d,m,v);var x=fH(d);if(x===eH)return r(d,m,v);if(x===oH)return l(d,m,v);if(x===nH)return a(d,m,v);if(x===sH)return c(d,m,v);if(x===aH)return typeof d.then!="function"&&typeof m.then!="function"&&s(d,m,v);if(x===lH)return h(d,m,v);if(x===rH)return n(d,m,v);if(x===Q8)return s(d,m,v);if(x===tH||x===iH||x===uH)return u(d,m,v);if(p){var g=p[x];if(!g){var w=L8(d);w&&(g=p[w])}if(g)return g(d,m,v)}return!1}}function pH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?rs:U8,areDatesEqual:W8,areErrorsEqual:H8,areFunctionsEqual:G8,areMapsEqual:n?dA(vA,rs):vA,areNumbersEqual:K8,areObjectsEqual:n?rs:X8,arePrimitiveWrappersEqual:Y8,areRegExpsEqual:V8,areSetsEqual:n?dA(bA,rs):bA,areTypedArraysEqual:n?rs:Z8,areUrlsEqual:J8,unknownTagComparators:void 0};if(r&&(i=_A({},i,r(i))),t){var a=el(i.areArraysEqual),o=el(i.areMapsEqual),s=el(i.areObjectsEqual),u=el(i.areSetsEqual);i=_A({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function dH(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function mH(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 yH=Pi();Pi({strict:!0});Pi({circular:!0});Pi({circular:!0,strict:!0});Pi({createInternalComparator:function(){return xa}});Pi({strict:!0,createInternalComparator:function(){return xa}});Pi({circular:!0,createInternalComparator:function(){return xa}});Pi({circular:!0,createInternalComparator:function(){return xa},strict:!0});function Pi(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=pH(e),u=hH(s),l=n?n(u):dH(u);return mH({circular:r,comparator:u,createState:i,equals:l,strict:o})}function gH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function wA(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):gH(i)};requestAnimationFrame(n)}function vg(e){"@babel/helpers - typeof";return vg=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},vg(e)}function vH(e){return wH(e)||_H(e)||xH(e)||bH()}function bH(){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 xH(e,t){if(e){if(typeof e=="string")return SA(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 SA(e,t)}}function SA(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 _H(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wH(e){if(Array.isArray(e))return e}function SH(){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=vH(o),u=s[0],l=s.slice(1);if(typeof u=="number"){wA(i.bind(null,l),u);return}i(u),wA(i.bind(null,l));return}vg(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 cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}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 OA(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){QC(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 QC(e,t,r){return t=AH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AH(e){var t=OH(e,"string");return cu(t)==="symbol"?t:String(t)}function OH(e,t){if(cu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TH=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},PH=function(t){return t},EH=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Os=function(t,r){return Object.keys(r).reduce(function(n,i){return OA(OA({},n),{},QC({},i,t(i,r[i])))},{})},TA=function(t,r,n){return t.map(function(i){return"".concat(EH(i)," ").concat(r,"ms ").concat(n)}).join(",")},CH=process.env.NODE_ENV!=="production",tc=function(t,r,n,i,a,o,s,u){if(CH&&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 MH(e,t){return jH(e)||$H(e,t)||tM(e,t)||kH()}function kH(){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 $H(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 jH(e){if(Array.isArray(e))return e}function RH(e){return NH(e)||IH(e)||tM(e)||DH()}function DH(){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 tM(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 IH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NH(e){if(Array.isArray(e))return bg(e)}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}var ec=1e-4,eM=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},rM=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},PA=function(t,r){return function(n){var i=eM(t,r);return rM(i,n)}},LH=function(t,r){return function(n){var i=eM(t,r),a=[].concat(RH(i.map(function(o,s){return o*s}).slice(1)),[0]);return rM(a,n)}},EA=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(m){return parseFloat(m)}),c=MH(l,4);i=c[0],a=c[1],o=c[2],s=c[3]}else tc(!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)}}tc([i,o,a,s].every(function(m){return typeof m=="number"&&m>=0&&m<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=PA(i,o),h=PA(a,s),p=LH(i,o),y=function(v){return v>1?1:v<0?0:v},d=function(v){for(var _=v>1?1:v,b=_,x=0;x<8;++x){var g=f(b)-_,w=p(b);if(Math.abs(g-_)<ec||w<ec)return h(b);b=y(b-g/w)}return h(b)};return d.isStepper=!1,d},BH=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,d=h+(p-y)*s/1e3,m=h*s/1e3+c;return Math.abs(m-f)<ec&&Math.abs(d)<ec?[f,0]:[m,d]};return u.isStepper=!0,u.dt=s,u},qH=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 EA(i);case"spring":return BH();default:if(i.split("(")[0]==="cubic-bezier")return EA(i);tc(!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:(tc(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}function CA(e){return UH(e)||zH(e)||nM(e)||FH()}function FH(){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 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 _g(e)}function MA(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?MA(Object(r),!0).forEach(function(n){xg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xg(e,t,r){return t=WH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WH(e){var t=HH(e,"string");return fu(t)==="symbol"?t:String(t)}function HH(e,t){if(fu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GH(e,t){return YH(e)||XH(e,t)||nM(e,t)||KH()}function KH(){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 nM(e,t){if(e){if(typeof e=="string")return _g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _g(e,t)}}function _g(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XH(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 YH(e){if(Array.isArray(e))return e}var rc=function(t,r,n){return t+(r-t)*n},wg=function(t){var r=t.from,n=t.to;return r!==n},VH=function e(t,r,n){var i=Os(function(a,o){if(wg(o)){var s=t(o.from,o.to,o.velocity),u=GH(s,2),l=u[0],c=u[1];return Ie(Ie({},o),{},{from:l,velocity:c})}return o},r);return n<1?Os(function(a,o){return wg(o)?Ie(Ie({},o),{},{velocity:rc(o.velocity,i[a].velocity,n),from:rc(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const ZH=(function(e,t,r,n,i){var a=TH(e,t),o=a.reduce(function(m,v){return Ie(Ie({},m),{},xg({},v,[e[v],t[v]]))},{}),s=a.reduce(function(m,v){return Ie(Ie({},m),{},xg({},v,{from:e[v],velocity:0,to:t[v]}))},{}),u=-1,l,c,f=function(){return null},h=function(){return Os(function(v,_){return _.from},s)},p=function(){return!Object.values(s).filter(wg).length},y=function(v){l||(l=v);var _=v-l,b=_/r.dt;s=VH(r,s,b),i(Ie(Ie(Ie({},e),t),h())),l=v,p()||(u=requestAnimationFrame(f))},d=function(v){c||(c=v);var _=(v-c)/n,b=Os(function(g,w){return rc.apply(void 0,CA(w).concat([r(_)]))},o);if(i(Ie(Ie(Ie({},e),t),b)),_<1)u=requestAnimationFrame(f);else{var x=Os(function(g,w){return rc.apply(void 0,CA(w).concat([r(1)]))},o);i(Ie(Ie(Ie({},e),t),x))}};return f=r.isStepper?y:d,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}});function fo(e){"@babel/helpers - typeof";return fo=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},fo(e)}var JH=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function QH(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 Rm(e){return iG(e)||nG(e)||rG(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 rG(e,t){if(e){if(typeof e=="string")return Sg(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 Sg(e,t)}}function nG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iG(e){if(Array.isArray(e))return Sg(e)}function Sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kA(e,t){var r=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?kA(Object(r),!0).forEach(function(n){hs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hs(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 aG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oG(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 sG(e,t,r){return t&&oG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iM(e){var t=uG(e,"string");return fo(t)==="symbol"?t:String(t)}function uG(e,t){if(fo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lG(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&&Ag(e,t)}function Ag(e,t){return Ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ag(e,t)}function cG(e){var t=fG();return function(){var n=nc(e),i;if(t){var a=nc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Og(this,i)}}function Og(e,t){if(t&&(fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tg(e)}function Tg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fG(){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 nc(e){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nc(e)}var on=(function(e){lG(r,e);var t=cG(r);function r(n,i){var a;aG(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(Tg(a)),a.changeStyle=a.changeStyle.bind(Tg(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Og(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof h=="function")return a.state={style:l},Og(a);a.state={style:u?hs({},u,l):l}}else a.state={style:{}};return a}return sG(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?hs({},u,c):c};this.state&&h&&(u&&h[u]!==c||!u&&h!==c)&&this.setState(p);return}if(!(yH(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=y||l?f:i.to;if(this.state&&h){var m={style:u?hs({},u,d):d};(u&&h[u]!==d||!u&&h!==d)&&this.setState(m)}this.runAnimation(Jr(Jr({},this.props),{},{from:d,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=ZH(o,s,qH(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(d,m,v){if(v===0)return d;var _=m.duration,b=m.easing,x=b===void 0?"ease":b,g=m.style,w=m.properties,S=m.onAnimationEnd,A=v>0?o[v-1]:m,T=w||Object.keys(g);if(typeof x=="function"||x==="spring")return[].concat(Rm(d),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:_,easing:x}),_]);var M=TA(T,_,x),P=Jr(Jr(Jr({},A.style),g),{},{transition:M});return[].concat(Rm(d),[P,_,S]).filter(PH)};return this.manager.start([u].concat(Rm(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=SH());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 d=s?hs({},s,u):u,m=TA(Object.keys(d),o,l);y.start([c,a,Jr(Jr({},d),{},{transition:m}),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=QH(i,JH),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,d=y.style,m=d===void 0?{}:d,v=y.className,_=O.cloneElement(p,Jr(Jr({},u),{},{style:Jr(Jr({},m),c),className:v}));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);on.displayName="Animate";on.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};on.propTypes={from:Lt.oneOfType([Lt.object,Lt.string]),to:Lt.oneOfType([Lt.object,Lt.string]),attributeName:Lt.string,duration:Lt.number,begin:Lt.number,easing:Lt.oneOfType([Lt.string,Lt.func]),steps:Lt.arrayOf(Lt.shape({duration:Lt.number.isRequired,style:Lt.object.isRequired,easing:Lt.oneOfType([Lt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Lt.func]),properties:Lt.arrayOf("string"),onAnimationEnd:Lt.func})),children:Lt.oneOfType([Lt.node,Lt.func]),isActive:Lt.bool,canBegin:Lt.bool,onAnimationEnd:Lt.func,shouldReAnimate:Lt.bool,onAnimationStart:Lt.func,onAnimationReStart:Lt.func};function hu(e){"@babel/helpers - typeof";return hu=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},hu(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 hG(e,t){return yG(e)||mG(e,t)||dG(e,t)||pG()}function pG(){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 dG(e,t){if(e){if(typeof e=="string")return $A(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 $A(e,t)}}function $A(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 mG(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 yG(e){if(Array.isArray(e))return e}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 RA(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){gG(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 gG(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=bG(e,"string");return hu(t)=="symbol"?t:t+""}function bG(e,t){if(hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DA=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
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
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,`,
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,`
@@ -151,10 +151,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
151
151
  L `).concat(t+n,",").concat(r+i-s*y,`
152
152
  A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n-u*y,",").concat(r+i,`
153
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},TG=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},PG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},C0=function(t){var r=NA(NA({},PG),t),n=O.useRef(),i=O.useState(-1),a=vG(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 u=r.x,l=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,d=r.animationDuration,m=r.animationBegin,v=r.isAnimationActive,x=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var b=Tt("recharts-rectangle",p);return x?O.createElement(on,{canBegin:o>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:d,animationEasing:y,isActive:x},function(_){var g=_.width,w=_.height,S=_.x,A=_.y;return O.createElement(on,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:d,isActive:v,easing:y},O.createElement("path",ic({},_t(r,!0),{className:b,d:LA(S,A,g,w,h),ref:n})))}):O.createElement("path",ic({},_t(r,!0),{className:b,d:LA(u,l,c,f,h)}))};function Pg(){return Pg=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},Pg.apply(this,arguments)}var Jc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Tt("recharts-dot",a);return r===+r&&n===+n&&i===+i?Hr.createElement("circle",Pg({},_t(t,!1),Fl(t),{className:o,cx:r,cy:n,r:i})):null};function pu(e){"@babel/helpers - typeof";return pu=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},pu(e)}var EG=["x","y","top","left","width","height","className"];function Eg(){return Eg=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},Eg.apply(this,arguments)}function BA(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 CG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(r),!0).forEach(function(n){MG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MG(e,t,r){return t=kG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kG(e){var t=$G(e,"string");return pu(t)=="symbol"?t:t+""}function $G(e,t){if(pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jG(e,t){if(e==null)return{};var r=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}var DG=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},IG=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,d=jG(t,EG),m=CG({x:n,y:a,top:s,left:l,width:f,height:p},d);return!it(n)||!it(a)||!it(f)||!it(p)||!it(s)||!it(l)?null:O.createElement("path",Eg({},_t(m,!0),{className:Tt("recharts-cross",y),d:DG(n,a,f,p,s,l)}))},Dm,qA;function NG(){if(qA)return Dm;qA=1;var e=XE(),t=e(Object.getPrototypeOf,Object);return Dm=t,Dm}var Im,FA;function LG(){if(FA)return Im;FA=1;var e=Zn(),t=NG(),r=Jn(),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 Im=l,Im}var BG=LG();const qG=Bt(BG);var Nm,zA;function FG(){if(zA)return Nm;zA=1;var e=Zn(),t=Jn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Nm=n,Nm}var zG=FG();const UG=Bt(zG);function du(e){"@babel/helpers - typeof";return du=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},du(e)}function ac(){return ac=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},ac.apply(this,arguments)}function WG(e,t){return XG(e)||KG(e,t)||GG(e,t)||HG()}function HG(){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 GG(e,t){if(e){if(typeof e=="string")return UA(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 UA(e,t)}}function UA(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 KG(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 XG(e){if(Array.isArray(e))return e}function WA(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 HA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(r),!0).forEach(function(n){YG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YG(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=ZG(e,"string");return du(t)=="symbol"?t:t+""}function ZG(e,t){if(du(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GA=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},JG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QG=function(t){var r=HA(HA({},JG),t),n=O.useRef(),i=O.useState(-1),a=WG(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,d=r.animationDuration,m=r.animationBegin,v=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var x=Tt("recharts-trapezoid",p);return v?O.createElement(on,{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:d,animationEasing:y,isActive:v},function(b){var _=b.upperWidth,g=b.lowerWidth,w=b.height,S=b.x,A=b.y;return O.createElement(on,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:d,easing:y},O.createElement("path",ac({},_t(r,!0),{className:x,d:GA(S,A,_,g,w),ref:n})))}):O.createElement("g",null,O.createElement("path",ac({},_t(r,!0),{className:x,d:GA(u,l,c,f,h)})))},t6=["option","shapeType","propTransformer","activeClassName","isActive"];function mu(e){"@babel/helpers - typeof";return mu=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},mu(e)}function e6(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}function KA(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 oc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KA(Object(r),!0).forEach(function(n){n6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n6(e,t,r){return t=i6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i6(e){var t=a6(e,"string");return mu(t)=="symbol"?t:t+""}function a6(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o6(e,t){return oc(oc({},t),e)}function s6(e,t){return e==="symbols"}function XA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(C0,r);case"trapezoid":return O.createElement(QG,r);case"sector":return O.createElement(QC,r);case"symbols":if(s6(t))return O.createElement(Kc,r);break;default:return null}}function u6(e){return O.isValidElement(e)?e.props:e}function Cg(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?o6:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,u=e6(e,t6),l;if(O.isValidElement(t))l=O.cloneElement(t,oc(oc({},u),u6(t)));else if(xt(t))l=t(u);else if(qG(t)&&!UG(t)){var c=i(t,u);l=O.createElement(XA,{shapeType:r,elementProps:c})}else{var f=u;l=O.createElement(XA,{shapeType:r,elementProps:f})}return s?O.createElement(jt,{className:o},l):l}function Qc(e,t){return t!=null&&"trapezoids"in e.props}function tf(e,t){return t!=null&&"sectors"in e.props}function yu(e,t){return t!=null&&"points"in e.props}function l6(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 c6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function f6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function h6(e,t){var r;return Qc(e,t)?r=l6:tf(e,t)?r=c6:yu(e,t)&&(r=f6),r}function p6(e,t){var r;return Qc(e,t)?r="trapezoids":tf(e,t)?r="sectors":yu(e,t)&&(r="points"),r}function d6(e,t){if(Qc(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(tf(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 yu(e,t)?t.payload:{}}function m6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=p6(r,t),a=d6(r,t),o=n.filter(function(u,l){var c=ca(a,u),f=r.props[i].filter(function(y){var d=h6(r,t);return d(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 gu(e){"@babel/helpers - typeof";return gu=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},gu(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 VA(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){lM(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 lM(e,t,r){return t=y6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y6(e){var t=g6(e,"string");return gu(t)=="symbol"?t:t+""}function g6(e,t){if(gu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v6=["Webkit","Moz","O","ms"],b6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=v6.reduce(function(a,o){return VA(VA({},a),{},lM({},o+n,r))},{});return i[t]=r,i};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 sc(){return sc=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},sc.apply(this,arguments)}function ZA(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 Lm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZA(Object(r),!0).forEach(function(n){Sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JA(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 x6(e,t,r){return t&&JA(e.prototype,t),r&&JA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w6(e,t,r){return t=uc(t),S6(e,cM()?Reflect.construct(t,r||[],uc(e).constructor):t.apply(e,r))}function S6(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A6(e)}function A6(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 uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uc(e)}function O6(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 Sr(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=T6(e,"string");return ho(t)=="symbol"?t:t+""}function T6(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 String(e)}var P6=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=ps().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}},QA=function(t){return t.changedTouches&&!!t.changedTouches.length},po=(function(e){function t(r){var n;return _6(this,t),n=w6(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=QA(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 O6(t,e),x6(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=Pe(a[n],s,n);return xt(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,d=n.pageX-a;d>0?d=Math.min(d,l+c-f-s,l+c-f-o):d<0&&(d=Math.max(d,l-o,l-s));var m=this.getIndex({startX:o+d,endX:s+d});(m.startIndex!==h||m.endIndex!==p)&&y&&y(m),this.setState({startX:o+d,endX:s+d,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=QA(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,d=c.gap,m=c.data,v={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,f+h-p-l):x<0&&(x=Math.max(x,f-l)),v[o]=l+x;var b=this.getIndex(v),_=b.startIndex,g=b.endIndex,w=function(){var A=m.length-1;return o==="startX"&&(s>u?_%d===0:g%d===0)||s<u&&g===A||o==="endX"&&(s>u?g%d===0:_%d===0)||s>u&&g===A};this.setState(Sr(Sr({},o,l+x),"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,d=u.startIndex,m=u.endIndex,v=Math.max(n,this.props.x),x=Lm(Lm({},_t(this.props,!1)),{},{x:v,y:l,width:c,height:f}),b=p||"Min value: ".concat((a=y[d])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[m])===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(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,x))}},{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(Kl,sc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Kl,sc({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,d=h.isTextActive,m=h.isSlideMoving,v=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!it(s)||!it(u)||!it(l)||!it(c)||l<=0||c<=0)return null;var b=Tt("recharts-brush",a),_=O.Children.count(o)===1,g=b6("userSelect","none");return O.createElement(jt,{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"),(d||m||v||x||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):xt(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 Lm({prevData:a,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:o},a&&a.length?P6({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(po,"displayName","Brush");Sr(po,"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 Bm,tO;function E6(){if(tO)return Bm;tO=1;var e=b0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Bm=t,Bm}var qm,eO;function C6(){if(eO)return qm;eO=1;var e=zE(),t=Ai(),r=E6(),n=rr(),i=$u();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 qm=a,qm}var M6=C6();const k6=Bt(M6);var Pn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Fm,rO;function $6(){if(rO)return Fm;rO=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 Fm=t,Fm}var zm,nO;function j6(){if(nO)return zm;nO=1;var e=$6(),t=QE(),r=Ai();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 zm=n,zm}var R6=j6();const D6=Bt(R6);var Um,iO;function I6(){if(iO)return Um;iO=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 Um=e,Um}var Wm,aO;function N6(){if(aO)return Wm;aO=1;var e=b0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Wm=t,Wm}var Hm,oO;function L6(){if(oO)return Hm;oO=1;var e=I6(),t=N6(),r=Ai(),n=rr(),i=$u();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 Hm=a,Hm}var B6=L6();const hM=Bt(B6);var q6=["x","y"];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 kg(){return kg=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},kg.apply(this,arguments)}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 ns(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){F6(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 F6(e,t,r){return t=z6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z6(e){var t=U6(e,"string");return mo(t)=="symbol"?t:t+""}function U6(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(t==="string"?String:Number)(e)}function W6(e,t){if(e==null)return{};var r=H6(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 H6(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 G6(e,t){var r=e.x,n=e.y,i=W6(e,q6),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 ns(ns(ns(ns(ns({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function uO(e){return O.createElement(Cg,kg({shapeType:"rectangle",propTransformer:G6,activeClassName:"recharts-active-bar"},e))}var K6=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"?lr(!1,"minPointSize callback function received a value with type of ".concat(mo(n),". Currently only numbers or null/undefined are supported.")):lr()),r)}},X6=["value","background"],pM;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 Y6(e,t){if(e==null)return{};var r=V6(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 V6(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 lc(){return lc=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},lc.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 be(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){pi(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 Z6(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,mM(n.key),n)}}function J6(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q6(e,t,r){return t=cc(t),t4(e,dM()?Reflect.construct(t,r||[],cc(e).constructor):t.apply(e,r))}function t4(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 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 cc(e){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cc(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&&$g(e,t)}function $g(e,t){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$g(e,t)}function pi(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 yo(t)=="symbol"?t:t+""}function n4(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(t==="string"?String:Number)(e)}var Lo=(function(e){function t(){var r;Z6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Q6(this,t,[].concat(i)),pi(r,"state",{isAnimationFinished:!1}),pi(r,"id",ba("recharts-bar-")),pi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),pi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return r4(t,e),J6(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=_t(this.props,!1);return n&&n.map(function(f,h){var p=h===u,y=p?l:o,d=be(be(be({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(jt,lc({className:"recharts-bar-rectangle"},Gs(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(uO,d))})}},{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(on,{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,d=a.map(function(m,v){var x=h&&h[v];if(x){var b=de(x.x,m.x),_=de(x.y,m.y),g=de(x.width,m.width),w=de(x.height,m.height);return be(be({},m),{},{x:b(y),y:_(y),width:g(y),height:w(y)})}if(o==="horizontal"){var S=de(0,m.height),A=S(y);return be(be({},m),{},{y:m.y+m.height-A,height:A})}var T=de(0,m.width),M=T(y);return be(be({},m),{},{width:M})});return O.createElement(jt,null,n.renderRectanglesStatically(d))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!ca(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=_t(this.props.background,!1);return a.map(function(l,c){l.value;var f=l.background,h=Y6(l,X6);if(!f)return null;var p=be(be(be(be(be({},h),{},{fill:"#eee"},f),u),Gs(n.props,l,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(uO,lc({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=mr(c,No);if(!f)return null;var h=l==="vertical"?o[0].height/2:o[0].width/2,p=function(m,v){var x=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:x,errorVal:Pe(m,v)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(jt,y,f.map(function(d){return O.cloneElement(d,{key:"error-bar-".concat(i,"-").concat(d.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,d=n.id;if(i||!a||!a.length)return null;var m=this.state.isAnimationFinished,v=Tt("recharts-bar",o),x=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,_=x||b,g=vt(d)?this.id:d;return O.createElement(jt,{className:v},x||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:x?l:l-f/2,y:b?c:c-h/2,width:x?f:f*2,height:b?h:h*2}))):null,O.createElement(jt,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,g),(!p||m)&&Tn.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=Lo;pi(Lo,"displayName","Bar");pi(Lo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Oi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});pi(Lo,"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=xW(n,r);if(!p)return null;var y=t.layout,d=r.type.defaultProps,m=d!==void 0?be(be({},d),r.props):r.props,v=m.dataKey,x=m.children,b=m.minPointSize,_=y==="horizontal"?o:a,g=l?_.scale.domain():null,w=CW({numericAxis:_}),S=mr(x,A0),A=f.map(function(T,M){var P,E,C,j,k,$;l?P=wW(l[c+M],g):(P=Pe(T,v),Array.isArray(P)||(P=[w,P]));var N=K6(b,pM.defaultProps.minPointSize)(P[1],M);if(y==="horizontal"){var W,z=[o.scale(P[0]),o.scale(P[1])],I=z[0],B=z[1];E=WS({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:M}),C=(W=B??I)!==null&&W!==void 0?W:void 0,j=p.size;var D=I-B;if(k=Number.isNaN(D)?0:D,$={x:E,y:o.y,width:j,height:o.height},Math.abs(N)>0&&Math.abs(k)<Math.abs(N)){var F=an(k||N)*(Math.abs(N)-Math.abs(k));C-=F,k+=F}}else{var X=[a.scale(P[0]),a.scale(P[1])],L=X[0],Y=X[1];if(E=L,C=WS({axis:o,ticks:u,bandSize:i,offset:p.offset,entry:T,index:M}),j=Y-L,k=p.size,$={x:a.x,y:C,width:a.width,height:k},Math.abs(N)>0&&Math.abs(j)<Math.abs(N)){var Z=an(j||N)*(Math.abs(N)-Math.abs(j));j+=Z}}return be(be(be({},T),{},{x:E,y:C,width:j,height:k,value:l?P:P[1],payload:T,background:$},S&&S[M]&&S[M].props),{},{tooltipPayload:[VC(r,T)],tooltipPosition:{x:E+j/2,y:C+k/2}})});return be({data:A,layout:y},h)});function vu(e){"@babel/helpers - typeof";return vu=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},vu(e)}function i4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fO(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&&fO(e.prototype,t),r&&fO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hO(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 tn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){ef(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ef(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 vu(t)=="symbol"?t:t+""}function o4(e,t){if(vu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vu(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,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=!!Ar(l,Lo);return c.reduce(function(p,y){var d=r[y],m=d.orientation,v=d.domain,x=d.padding,b=x===void 0?{}:x,_=d.mirror,g=d.reversed,w="".concat(m).concat(_?"Mirror":""),S,A,T,M,P;if(d.type==="number"&&(d.padding==="gap"||d.padding==="no-gap")){var E=v[1]-v[0],C=1/0,j=d.categoricalDomain.sort(b5);if(j.forEach(function(X,L){L>0&&(C=Math.min((X||0)-(j[L-1]||0),C))}),Number.isFinite(C)){var k=C/E,$=d.layout==="vertical"?n.height:n.width;if(d.padding==="gap"&&(S=k*$/2),d.padding==="no-gap"){var N=la(t.barCategoryGap,k*$),W=k*$/2;S=W-N-(W-N)/$*N}}}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=d.range,g&&(A=[A[1],A[0]]);var z=bW(d,a,h),I=z.scale,B=z.realScaleType;I.domain(v).range(A),_W(I);var D=EW(I,tn(tn({},d),{},{realScaleType:B}));i==="xAxis"?(P=m==="top"&&!_||m==="bottom"&&_,T=n.left,M=f[w]-P*d.height):i==="yAxis"&&(P=m==="left"&&!_||m==="right"&&_,T=f[w]-P*d.width,M=n.top);var F=tn(tn(tn({},d),D),{},{realScaleType:B,x:T,y:M,scale:I,width:i==="xAxis"?n.width:d.width,height:i==="yAxis"?n.height:d.height});return F.bandSize=Zl(F,D),!d.hide&&i==="xAxis"?f[w]+=(P?-1:1)*F.height:d.hide||(f[w]+=(P?-1:1)*F.width),tn(tn({},p),{},ef({},y,F))},{})},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)}},u4=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 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)}}])})();ef(vM,"EPS",1e-4);var M0=function(t){var r=Object.keys(t).reduce(function(n,i){return tn(tn({},n),{},ef({},i,vM.create(t[i])))},{});return tn(tn({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return D6(i,function(u,l){return r[l].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return hM(i,function(a,o){return r[o].isInRange(a)})}})};function l4(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=l4(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)},Gm,pO;function f4(){if(pO)return Gm;pO=1;var e=Ai(),t=Mu(),r=ku();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 Gm=n,Gm}var Km,dO;function h4(){if(dO)return Km;dO=1;var e=mC(),t=Ai(),r=o0(),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 Km=i,Km}var Xm,mO;function p4(){if(mO)return Xm;mO=1;var e=f4(),t=h4(),r=e(t);return Xm=r,Xm}var d4=p4();const m4=Bt(d4);var y4=LE();const g4=Bt(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 fc(e){"@babel/helpers - typeof";return fc=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},fc(e)}var k0=O.createContext(void 0),$0=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),yO=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=v4(a);return O.createElement(k0.Provider,{value:n},O.createElement($0.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:l},O.createElement(SM.Provider,{value:u},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(k0);r==null&&(process.env.NODE_ENV!=="production"?lr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):lr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?lr(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(fc(t),"]. ").concat(AM(r))):lr()),n},_4=function(){var t=O.useContext(k0);return ui(t)},x4=function(){var t=O.useContext($0),r=m4(t,function(n){return hM(n.domain,Number.isFinite)});return r||ui(t)},TM=function(t){var r=O.useContext($0);r==null&&(process.env.NODE_ENV!=="production"?lr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):lr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?lr(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(fc(t),"]. ").concat(AM(r))):lr()),n},w4=function(){var t=O.useContext(bM);return t},S4=function(){return O.useContext(_M)},j0=function(){return O.useContext(SM)},R0=function(){return O.useContext(wM)};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 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=hc(t),E4(e,PM()?Reflect.construct(t,r||[],hc(e).constructor):t.apply(e,r))}function E4(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 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 hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hc(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&&jg(e,t)}function jg(e,t){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jg(e,t)}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 vO(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){D0(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 D0(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 go(t)=="symbol"?t:t+""}function k4(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)}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 bO(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 bO(e,t)}}function bO(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=[],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 I4(e){if(Array.isArray(e))return e}function Rg(){return Rg=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},Rg.apply(this,arguments)}var N4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):xt(t)?n=t(r):n=O.createElement("line",Rg({},r,{className:"recharts-reference-line-line"})),n},L4=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,d=t.y.apply(y,{position:o});if(Pn(l,"discard")&&!t.y.isInRange(d))return null;var m=[{x:c+h,y:d},{x:c,y:d}];return u==="left"?m.reverse():m}if(r){var v=l.x,x=t.x.apply(v,{position:o});if(Pn(l,"discard")&&!t.x.isInRange(x))return null;var b=[{x,y:f+p},{x,y:f}];return s==="top"?b.reverse():b}if(i){var _=l.segment,g=_.map(function(w){return t.apply(w,{position:o})});return Pn(l,"discard")&&k6(g,function(w){return!t.isInRange(w)})?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,u=e.alwaysShow,l=b4(),c=OM(i),f=TM(a),h=w4();if(!l||!h)return null;zn(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=M0({x:c.scale,y:f.scale}),y=Te(t),d=Te(r),m=n&&n.length===2,v=L4(p,y,d,m,h,e.position,c.orientation,f.orientation,e);if(!v)return null;var x=$4(v,2),b=x[0],_=b.x,g=b.y,w=x[1],S=w.x,A=w.y,T=Pn(e,"hidden")?"url(#".concat(l,")"):void 0,M=vO(vO({clipPath:T},_t(e,!0)),{},{x1:_,y1:g,x2:S,y2:A});return O.createElement(jt,{className:Tt("recharts-reference-line",s)},N4(o,M),Ge.renderCallByParent(e,u4({x1:_,y1:g,x2:S,y2:A})))}var rf=(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);D0(rf,"displayName","ReferenceLine");D0(rf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});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 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 _O(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 xO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_O(Object(r),!0).forEach(function(n){nf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_O(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=pc(t),W4(e,CM()?Reflect.construct(t,r||[],pc(e).constructor):t.apply(e,r))}function W4(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 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 pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pc(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&&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 nf(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 vo(t)=="symbol"?t:t+""}function K4(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 X4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=M0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Pn(t,"discard")&&!o.isInRange(s)?null:s},af=(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,u=n.clipPathId,l=Te(i),c=Te(a);if(zn(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var f=X4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,d=y.shape,m=y.className,v=Pn(this.props,"hidden")?"url(#".concat(u,")"):void 0,x=xO(xO({clipPath:v},_t(this.props,!0)),{},{cx:h,cy:p});return O.createElement(jt,{className:Tt("recharts-reference-dot",m)},t.renderDot(d,x),Ge.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);nf(af,"displayName","ReferenceDot");nf(af,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});nf(af,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):xt(e)?r=e(t):r=O.createElement(Jc,Dg({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});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 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 wO(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 SO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(r),!0).forEach(function(n){of(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wO(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,$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=dc(t),Q4(e,kM()?Reflect.construct(t,r||[],dc(e).constructor):t.apply(e,r))}function Q4(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 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 dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(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&&Lg(e,t)}function Lg(e,t){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lg(e,t)}function of(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 bo(t)=="symbol"?t:t+""}function rK(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 String(e)}var nK=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=M0({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 Pn(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:gM(p,y)},sf=(function(e){function t(){return Y4(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,u=n.className,l=n.alwaysShow,c=n.clipPathId;zn(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Te(i),h=Te(a),p=Te(o),y=Te(s),d=this.props.shape;if(!f&&!h&&!p&&!y&&!d)return null;var m=nK(f,h,p,y,this.props);if(!m&&!d)return null;var v=Pn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(jt,{className:Tt("recharts-reference-area",u)},t.renderRect(d,SO(SO({clipPath:v},_t(this.props,!0)),m)),Ge.renderCallByParent(this.props,m))}}])})(O.Component);of(sf,"displayName","ReferenceArea");of(sf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});of(sf,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):xt(e)?r=e(t):r=O.createElement(C0,Ng({},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 mc(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,u=0,l=1,c=o,f=function(){var y=n==null?void 0:n[u];if(y===void 0)return{v:jM(n,l)};var d=u,m,v=function(){return m===void 0&&(m=r(y,d)),m},x=y.coordinate,b=u===0||mc(e,x,v,c,s);b||(u=0,c=o,l+=1),b&&(c=x+e*(v()/2+i),u+=l)},h;l<=a.length;)if(h=f(),h)return h.v;return[]}function bu(e){"@babel/helpers - typeof";return bu=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},bu(e)}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 We(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){uK(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 uK(e,t,r){return t=lK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lK(e){var t=cK(e,"string");return bu(t)=="symbol"?t:t+""}function cK(e,t){if(bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bu(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,u=t.end,l=function(h){var p=a[h],y,d=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var m=e*(p.coordinate+e*d()/2-u);a[h]=p=We(We({},p),{},{tickCoord:m>0?p.coordinate-m*e:p.coordinate})}else a[h]=p=We(We({},p),{},{tickCoord:p.coordinate});var v=mc(e,p.tickCoord,d,s,u);v&&(u=p.tickCoord-e*(d()/2+i),a[h]=We(We({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)l(c);return a}function hK(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=We(We({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=mc(e,c.tickCoord,function(){return f},u,l);p&&(l=c.tickCoord-e*(f/2+i),o[s-1]=We(We({},c),{},{isShow:!0}))}for(var y=a?s-1:s,d=function(x){var b=o[x],_,g=function(){return _===void 0&&(_=r(b,x)),_};if(x===0){var w=e*(b.coordinate-e*g()/2-u);o[x]=b=We(We({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else o[x]=b=We(We({},b),{},{tickCoord:b.coordinate});var S=mc(e,b.tickCoord,g,u,l);S&&(u=b.tickCoord+e*(g()/2+i),o[x]=We(We({},b),{},{isShow:!0}))},m=0;m<y;m++)d(m);return o}function I0(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(it(u)||Oi.isSsr)return oK(i,typeof u=="number"&&it(u)?u:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?Ss(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},d=function(b,_){var g=xt(l)?l(b.value,_):b.value;return p==="width"?iK(Ss(g,{fontSize:t,letterSpacing:r}),y,f):Ss(g,{fontSize:t,letterSpacing:r})[p]},m=i.length>=2?an(i[1].coordinate-i[0].coordinate):1,v=aK(a,m,p);return u==="equidistantPreserveStart"?sK(m,v,d,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=hK(m,v,d,i,o,u==="preserveStartEnd"):h=fK(m,v,d,i,o),h.filter(function(x){return x.isShow}))}var pK=["viewBox"],dK=["viewBox"],mK=["ticks"];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 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 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 Ae(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){N0(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 Ym(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 TO(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&&TO(e.prototype,t),r&&TO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bK(e,t,r){return t=yc(t),_K(e,RM()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function _K(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 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 yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(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&&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 N0(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 _o(t)=="symbol"?t:t+""}function SK(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 Bo=(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=Ym(n,pK),s=this.props,u=s.viewBox,l=Ym(s,dK);return!Ha(a,u)||!Ha(o,l)||!Ha(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,d,m,v,x,b=f?-1:1,_=n.tickSize||c,g=it(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=y=n.coordinate,m=o+ +!f*u,d=m-b*_,x=d-b*h,v=g;break;case"left":d=m=n.coordinate,y=a+ +!f*s,p=y-b*_,v=p-b*h,x=g;break;case"right":d=m=n.coordinate,y=a+ +f*s,p=y+b*_,v=p+b*h,x=g;break;default:p=y=n.coordinate,m=o+ +f*u,d=m+b*_,x=d+b*h,v=g;break}return{line:{x1:p,y1:d,x2:y,y2:m},tick:{x:v,y:x}}}},{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=Ae(Ae(Ae({},_t(this.props,!1)),_t(c,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!l||u==="bottom"&&l);f=Ae(Ae({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(u==="left"&&!l||u==="right"&&l);f=Ae(Ae({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",Ia({},f,{className:Tt("recharts-cartesian-axis-line",Gr(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=I0(Ae(Ae({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),m=_t(this.props,!1),v=_t(c,!1),x=Ae(Ae({},m),{},{fill:"none"},_t(u,!1)),b=p.map(function(_,g){var w=o.getTickLineCoord(_),S=w.line,A=w.tick,T=Ae(Ae(Ae(Ae({textAnchor:y,verticalAnchor:d},m),{},{stroke:"none",fill:l},v),A),{},{index:g,payload:_,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(jt,Ia({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},Gs(o.props,_,g)),u&&O.createElement("line",Ia({},x,S,{className:Tt("recharts-cartesian-axis-tick-line",Gr(u,"className"))})),c&&t.renderTickItem(c,T,"".concat(xt(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,u=i.ticksGenerator,l=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=Ym(f,mK),y=h;return xt(u)&&(y=h&&h.length>0?u(this.props):u(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(jt,{className:Tt("recharts-cartesian-axis",l),ref:function(m){n.layerReference=m}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ge.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Tt(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,Ae(Ae({},i),{},{className:s})):xt(n)?o=n(Ae(Ae({},i),{},{className:s})):o=O.createElement(Kl,Ia({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);N0(Bo,"displayName","CartesianAxis");N0(Bo,"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 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 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 Ke(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){TK(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 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 ha(t)=="symbol"?t:t+""}function EK(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)}function Ki(){return Ki=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},Ki.apply(this,arguments)}function EO(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,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 IM(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(xt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,u=EO(t,AK),l=_t(u,!1);l.offset;var c=EO(l,OK);r=O.createElement("line",Ki({},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,u){var l=Ke(Ke({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return IM(i,l)});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,u){var l=Ke(Ke({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return IM(i,l)});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,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],d=y?i+o-h:c[p+1]-h;if(d<=0)return null;var m=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:d,width:a,stroke:"none",fill:t[m],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,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],d=y?a+s-h:c[p+1]-h;if(d<=0)return null;var m=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:d,height:u,stroke:"none",fill:n[m],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 XC(I0(Ke(Ke(Ke({},Bo.defaultProps),n),{},{ticks:qn(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 XC(I0(Ke(Ke(Ke({},Bo.defaultProps),n),{},{ticks:qn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ma={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function NM(e){var t,r,n,i,a,o,s=j0(),u=R0(),l=S4(),c=Ke(Ke({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ma.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ma.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ma.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ma.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ma.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ma.verticalFill,x:it(e.x)?e.x:l.left,y:it(e.y)?e.y:l.top,width:it(e.width)?e.width:l.width,height:it(e.height)?e.height:l.height}),f=c.x,h=c.y,p=c.width,y=c.height,d=c.syncWithTicks,m=c.horizontalValues,v=c.verticalValues,x=_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,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&xt(g)){var A=m&&m.length,T=g({yAxis:b?Ke(Ke({},b),{},{ticks:A?m:b.ticks}):void 0,width:s,height:u,offset:l},A?!0:d);zn(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ha(T),"]")),Array.isArray(T)&&(w=T)}if((!S||!S.length)&&xt(_)){var M=v&&v.length,P=_({xAxis:x?Ke(Ke({},x),{},{ticks:M?v:x.ticks}):void 0,width:s,height:u,offset:l},M?!0:d);zn(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ha(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,Ki({},c,{offset:l,horizontalPoints:w,xAxis:x,yAxis:b})),O.createElement($K,Ki({},c,{offset:l,verticalPoints:S,xAxis:x,yAxis:b})),O.createElement(jK,Ki({},c,{horizontalPoints:w})),O.createElement(RK,Ki({},c,{verticalPoints:S})))}NM.displayName="CartesianGrid";var NK=["type","layout","connectNulls","ref"],LK=["key"];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 CO(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 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)}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 wr(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){en(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 ka(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 qg(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 qg(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 qg(e)}function qg(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 kO(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&&kO(e.prototype,t),r&&kO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GK(e,t,r){return t=gc(t),KK(e,LM()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function KK(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 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 LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(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&&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 en(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 xo(t)=="symbol"?t:t+""}function VK(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 uf=(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)),en(r,"state",{isAnimationFinished:!0,totalLength:0}),en(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),en(r,"getStrokeDasharray",function(o,s,u){var l=u.reduce(function(v,x){return v+x});if(!l)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/l),f=o%l,h=s-o,p=[],y=0,d=0;y<u.length;d+=u[y],++y)if(d+u[y]>f){p=[].concat(ka(u.slice(0,y)),[f-d]);break}var m=p.length%2===0?[0,h]:[h];return[].concat(ka(t.repeat(u,c)),ka(p),m).map(function(v){return"".concat(v,"px")}).join(", ")}),en(r,"id",ba("recharts-line-")),en(r,"pathRef",function(o){r.mainCurve=o}),en(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),en(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=mr(c,No);if(!f)return null;var h=function(d,m){return{x:d.x,y:d.y,value:d.value,errorVal:Pe(d.payload,m)}},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=_t(this.props,!1),h=_t(u,!0),p=l.map(function(d,m){var v=wr(wr(wr({key:"dot-".concat(m),r:3},f),h),{},{index:m,cx:d.x,cy:d.y,value:d.value,dataKey:c,payload:d.payload,points:l});return t.renderDotItem(u,v)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(jt,Ts({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=CO(s,NK),h=wr(wr(wr({},_t(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(ra,Ts({},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,d=o.width,m=o.height,v=this.state,x=v.prevPoints,b=v.totalLength;return O.createElement(on,{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(_){var g=_.t;if(x){var w=x.length/s.length,S=s.map(function(E,C){var j=Math.floor(C*w);if(x[j]){var k=x[j],$=de(k.x,E.x),N=de(k.y,E.y);return wr(wr({},E),{},{x:$(g),y:N(g)})}if(y){var W=de(d*2,E.x),z=de(m/2,E.y);return wr(wr({},E),{},{x:W(g),y:z(g)})}return wr(wr({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=de(0,b),T=A(g),M;if(u){var P="".concat(u).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});M=a.getStrokeDasharray(T,b,P)}else M=a.generateSimpleStrokeDasharray(b,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:M})})}},{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||!ca(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,d=i.isAnimationActive,m=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,x=s.length===1,b=Tt("recharts-line",u),_=l&&l.allowDataOverflow,g=c&&c.allowDataOverflow,w=_||g,S=vt(m)?this.id:m,A=(n=_t(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=cC(o)?o:{},j=C.clipDot,k=j===void 0?!0:j,$=M*2+E;return O.createElement(jt,{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})),!k&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-$/2,y:f-$/2,width:p+$,height:y+$}))):null,!x&&this.renderCurve(w,S),this.renderErrorBar(w,S),(x||o)&&this.renderDots(w,k,S),(!d||v)&&Tn.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(ka(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(ka(o),ka(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(xt(n))a=n(i);else{var o=i.key,s=CO(i,LK),u=Tt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Jc,Ts({key:o},s,{className:u}))}return a}}])})(O.PureComponent);en(uf,"displayName","Line");en(uf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Oi.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});en(uf,"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=Pe(h,o);return c==="horizontal"?{x:co({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:vt(y)?null:n.scale(y),value:y,payload:h}:{x:vt(y)?null:r.scale(y),y:co({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return wr({points:f,layout:c},l)});var ZK=["layout","type","stroke","connectNulls","isRange","ref"],JK=["key"],qM;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 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 Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(this,arguments)}function $O(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?$O(Object(r),!0).forEach(function(n){An(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jO(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 eX(e,t,r){return t&&jO(e.prototype,t),r&&jO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rX(e,t,r){return t=vc(t),nX(e,zM()?Reflect.construct(t,r||[],vc(e).constructor):t.apply(e,r))}function nX(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 iX(e)}function iX(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 vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(e)}function aX(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 An(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=oX(e,"string");return wo(t)=="symbol"?t:t+""}function oX(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 String(e)}var Pi=(function(e){function t(){var r;tX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=rX(this,t,[].concat(i)),An(r,"state",{isAnimationFinished:!0}),An(r,"id",ba("recharts-area-")),An(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),xt(o)&&o()}),An(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),xt(o)&&o()}),r}return aX(t,e),eX(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=_t(this.props,!1),p=_t(l,!0),y=c.map(function(m,v){var x=oi(oi(oi({key:"dot-".concat(v),r:3},h),p),{},{index:v,cx:m.x,cy:m.y,dataKey:f,value:m.value,payload:m.payload,points:c});return t.renderDotItem(l,x)}),d={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(jt,Xi({className:"recharts-area-dots"},d),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=hi(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(hi(a.map(function(h){return h.y||0})),f)),it(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=hi(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(hi(a.map(function(h){return h.x||0})),f)),it(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=FM(s,ZK);return O.createElement(jt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(ra,Xi({},_t(p,!0),{points:n,connectNulls:f,type:l,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(ra,Xi({},_t(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(ra,Xi({},_t(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,d=y.prevPoints,m=y.prevBaseLine;return O.createElement(on,{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(v){var x=v.t;if(d){var b=d.length/s.length,_=s.map(function(A,T){var M=Math.floor(T*b);if(d[M]){var P=d[M],E=de(P.x,A.x),C=de(P.y,A.y);return oi(oi({},A),{},{x:E(x),y:C(x)})}return A}),g;if(it(u)&&typeof u=="number"){var w=de(m,u);g=w(x)}else if(vt(u)||Ro(u)){var S=de(m,0);g=S(x)}else g=u.map(function(A,T){var M=Math.floor(T*b);if(m[M]){var P=m[M],E=de(P.x,A.x),C=de(P.y,A.y);return oi(oi({},A),{},{x:E(x),y:C(x)})}return A});return a.renderAreaStatically(_,g,n,i)}return O.createElement(jt,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),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||!ca(c,o)||!ca(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,d=i.isAnimationActive,m=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,x=s.length===1,b=Tt("recharts-area",u),_=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,w=_||g,S=vt(m)?this.id:m,A=(n=_t(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=cC(o)?o:{},j=C.clipDot,k=j===void 0?!0:j,$=M*2+E;return O.createElement(jt,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?c:c-p/2,y:g?l:l-y/2,width:_?p:p*2,height:g?y:y*2})),!k&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-$/2,y:l-$/2,width:p+$,height:y+$}))):null,x?null:this.renderArea(w,S),(o||x)&&this.renderDots(w,k,S),(!d||v)&&Tn.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=Pi;An(Pi,"displayName","Area");An(Pi,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Oi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});An(Pi,"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 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]});An(Pi,"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,d=qM.getBaseValue(t,r,n,i),m=p==="horizontal",v=!1,x=f.map(function(_,g){var w;y?w=l[c+g]:(w=Pe(_,u),Array.isArray(w)?v=!0:w=[d,w]);var S=w[1]==null||y&&Pe(_,u)==null;return m?{x:co({axis:n,ticks:a,bandSize:s,entry:_,index:g}),y:S?null:i.scale(w[1]),value:w,payload:_}:{x:S?null:n.scale(w[1]),y:co({axis:i,ticks:o,bandSize:s,entry:_,index:g}),value:w,payload:_}}),b;return y||v?b=x.map(function(_){var g=Array.isArray(_.value)?_.value[0]:null;return m?{x:_.x,y:g!=null&&_.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:_.y}}):b=m?i.scale(d):n.scale(d),oi({points:x,baseLine:b,layout:p,isRange:v},h)});An(Pi,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(xt(e))r=e(t);else{var n=Tt("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=FM(t,JK);r=O.createElement(Jc,Xi({},a,{key:i,className:n}))}return r});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 sX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uX(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 lX(e,t,r){return t&&uX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cX(e,t,r){return t=bc(t),fX(e,WM()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function fX(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 hX(e)}function hX(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 bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function pX(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 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=dX(e,"string");return So(t)=="symbol"?t:t+""}function dX(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(t==="string"?String:Number)(e)}var lf=(function(e){function t(){return sX(this,t),cX(this,t,arguments)}return pX(t,e),lX(t,[{key:"render",value:function(){return null}}])})(Hr.Component);HM(lf,"displayName","ZAxis");HM(lf,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var mX=["option","isActive"];function Ps(){return Ps=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},Ps.apply(this,arguments)}function yX(e,t){if(e==null)return{};var r=gX(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 gX(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 vX(e){var t=e.option,r=e.isActive,n=yX(e,mX);return typeof t=="string"?Hr.createElement(Cg,Ps({option:Hr.createElement(Kc,Ps({type:t},n)),isActive:r,shapeType:"symbols"},n)):Hr.createElement(Cg,Ps({option:t,isActive:r,shapeType:"symbols"},n))}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 Es(){return Es=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},Es.apply(this,arguments)}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 qr(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){di(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 bX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DO(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,XM(n.key),n)}}function _X(e,t,r){return t&&DO(e.prototype,t),r&&DO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xX(e,t,r){return t=_c(t),wX(e,KM()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function wX(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 SX(e)}function SX(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 _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function AX(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 di(e,t,r){return t=XM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XM(e){var t=OX(e,"string");return Ao(t)=="symbol"?t:t+""}function OX(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(t==="string"?String:Number)(e)}var cf=(function(e){function t(){var r;bX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xX(this,t,[].concat(i)),di(r,"state",{isAnimationFinished:!1}),di(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),di(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),di(r,"id",ba("recharts-scatter-")),r}return AX(t,e),_X(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,u=a.activeIndex,l=_t(this.props,!1);return n.map(function(c,f){var h=u===f,p=h?s:o,y=qr(qr({},l),c);return O.createElement(jt,Es({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)},Gs(i.props,c,f),{role:"img"}),O.createElement(vX,Es({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(on,{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(d,m){var v=f&&f[m];if(v){var x=de(v.cx,d.cx),b=de(v.cy,d.cy),_=de(v.size,d.size);return qr(qr({},d),{},{cx:x(p),cy:b(p),size:_(p)})}var g=de(0,d.size);return qr(qr({},d),{},{size:g(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||!ca(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=mr(u,No);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(m,v){return{x:m.cx,y:m.cy,value:p==="x"?+m.node.x:+m.node.y,errorVal:Pe(m,v)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,u=_t(this.props,!1),l=_t(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,d=h.a,m=h.b,v=function(_){return d*_+m};c=[{x:p,y:v(p)},{x:y,y:v(y)}]}var x=qr(qr(qr({},u),{},{fill:"none",stroke:u&&u.fill},l),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,x):xt(a)?f=a(x):f=O.createElement(ra,Es({},x,{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,d=n.isAnimationActive;if(i||!a||!a.length)return null;var m=this.state.isAnimationFinished,v=Tt("recharts-scatter",s),x=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,_=x||b,g=vt(y)?this.id:y;return O.createElement(jt,{className:v,clipPath:_?"url(#clipPath-".concat(g,")"):null},x||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:x?c:c-h/2,y:b?f:f-p/2,width:x?h:h*2,height:b?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(jt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||m)&&Tn.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);di(cf,"displayName","Scatter");di(cf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Oi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});di(cf,"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=mr(i.props.children,A0),f=vt(t.dataKey)?i.props.dataKey:t.dataKey,h=vt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:lf.defaultProps.range,d=y&&y[0],m=t.scale.bandwidth?t.scale.bandwidth():0,v=r.scale.bandwidth?r.scale.bandwidth():0,x=a.map(function(b,_){var g=Pe(b,f),w=Pe(b,h),S=!vt(p)&&Pe(b,p)||"-",A=[{name:vt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:b,dataKey:f,type:l},{name:vt(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 T=co({axis:t,ticks:o,bandSize:m,entry:b,index:_,dataKey:f}),M=co({axis:r,ticks:s,bandSize:v,entry:b,index:_,dataKey:h}),P=S!=="-"?n.scale(S):d,E=Math.sqrt(Math.max(P,0)/Math.PI);return qr(qr({},b),{},{cx:T,cy:M,x:T-E,y:M-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:g,y:w,z:S},tooltipPayload:A,tooltipPosition:{x:T,y:M},payload:b},c&&c[_]&&c[_].props)});return qr({points:x},u)});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 TX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PX(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 EX(e,t,r){return t&&PX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CX(e,t,r){return t=xc(t),MX(e,YM()?Reflect.construct(t,r||[],xc(e).constructor):t.apply(e,r))}function MX(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 kX(e)}function kX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YM=function(){return!!e})()}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xc(e)}function $X(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 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=jX(e,"string");return Oo(t)=="symbol"?t:t+""}function jX(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 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)}function RX(e){var t=e.xAxisId,r=j0(),n=R0(),i=OM(t);return i==null?null:Hr.createElement(Bo,Gg({},i,{className:Tt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return qn(o,!0)}}))}var ff=(function(e){function t(){return TX(this,t),CX(this,t,arguments)}return $X(t,e),EX(t,[{key:"render",value:function(){return Hr.createElement(RX,this.props)}}])})(Hr.Component);VM(ff,"displayName","XAxis");VM(ff,"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 To(e){"@babel/helpers - typeof";return To=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},To(e)}function DX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IX(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 NX(e,t,r){return t&&IX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LX(e,t,r){return t=wc(t),BX(e,JM()?Reflect.construct(t,r||[],wc(e).constructor):t.apply(e,r))}function BX(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qX(e)}function qX(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 wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wc(e)}function FX(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 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=zX(e,"string");return To(t)=="symbol"?t:t+""}function zX(e,t){if(To(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(To(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xg(){return Xg=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},Xg.apply(this,arguments)}var UX=function(t){var r=t.yAxisId,n=j0(),i=R0(),a=TM(r);return a==null?null:Hr.createElement(Bo,Xg({},a,{className:Tt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return qn(s,!0)}}))},hf=(function(e){function t(){return DX(this,t),LX(this,t,arguments)}return FX(t,e),NX(t,[{key:"render",value:function(){return Hr.createElement(UX,this.props)}}])})(Hr.Component);QM(hf,"displayName","YAxis");QM(hf,"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 IO(e){return KX(e)||GX(e)||HX(e)||WX()}function WX(){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 HX(e,t){if(e){if(typeof e=="string")return Yg(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 Yg(e,t)}}function GX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KX(e){if(Array.isArray(e))return Yg(e)}function Yg(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 Vg=function(t,r,n,i,a){var o=mr(t,rf),s=mr(t,af),u=[].concat(IO(o),IO(s)),l=mr(t,sf),c="".concat(i,"Id"),f=i[0],h=r;if(u.length&&(h=u.reduce(function(d,m){if(m.props[c]===n&&Pn(m.props,"extendDomain")&&it(m.props[f])){var v=m.props[f];return[Math.min(d[0],v),Math.max(d[1],v)]}return d},h)),l.length){var p="".concat(f,"1"),y="".concat(f,"2");h=l.reduce(function(d,m){if(m.props[c]===n&&Pn(m.props,"extendDomain")&&it(m.props[p])&&it(m.props[y])){var v=m.props[p],x=m.props[y];return[Math.min(d[0],v,x),Math.max(d[1],v,x)]}return d},h)}return a&&a.length&&(h=a.reduce(function(d,m){return it(m)?[Math.min(d[0],m),Math.max(d[1],m)]:d},h)),h},Vm={exports:{}},NO;function XX(){return NO||(NO=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 d=r?r+l:l;if(!this._events[d])return!1;var m=this._events[d],v=arguments.length,x,b;if(m.fn){switch(m.once&&this.removeListener(l,m.fn,void 0,!0),v){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,c),!0;case 3:return m.fn.call(m.context,c,f),!0;case 4:return m.fn.call(m.context,c,f,h),!0;case 5:return m.fn.call(m.context,c,f,h,p),!0;case 6:return m.fn.call(m.context,c,f,h,p,y),!0}for(b=1,x=new Array(v-1);b<v;b++)x[b-1]=arguments[b];m.fn.apply(m.context,x)}else{var _=m.length,g;for(b=0;b<_;b++)switch(m[b].once&&this.removeListener(l,m[b].fn,void 0,!0),v){case 1:m[b].fn.call(m[b].context);break;case 2:m[b].fn.call(m[b].context,c);break;case 3:m[b].fn.call(m[b].context,c,f);break;case 4:m[b].fn.call(m[b].context,c,f,h);break;default:if(!x)for(g=1,x=new Array(v-1);g<v;g++)x[g-1]=arguments[g];m[b].fn.apply(m[b].context,x)}}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 d=0,m=[],v=y.length;d<v;d++)(y[d].fn!==c||h&&!y[d].once||f&&y[d].context!==f)&&m.push(y[d]);m.length?this._events[p]=m.length===1?m[0]:m: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})(Vm)),Vm.exports}var YX=XX();const VX=Bt(YX);var Zm=new VX,Jm="recharts.syncMouseEvents";function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function ZX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JX(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 QX(e,t,r){return t&&JX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qm(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=tY(e,"string");return _u(t)=="symbol"?t:t+""}function tY(e,t){if(_u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eY=(function(){function e(){ZX(this,e),Qm(this,"activeIndex",0),Qm(this,"coordinateList",[]),Qm(this,"layout","horizontal")}return QX(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 rY(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 nY(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=Ne(t,r,n,i),s=Ne(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function iY(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=Ne(s,u,l,f),p=Ne(s,u,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 xu(e){"@babel/helpers - typeof";return xu=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},xu(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 rl(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){aY(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 aY(e,t,r){return t=oY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oY(e){var t=sY(e,"string");return xu(t)=="symbol"?t:t+""}function sY(e,t){if(xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uY(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,d=ra;if(h==="ScatterChart")y=o,d=IG;else if(h==="BarChart")y=nY(f,o,u,c),d=C0;else if(f==="radial"){var m=rk(o),v=m.cx,x=m.cy,b=m.radius,_=m.startAngle,g=m.endAngle;y={cx:v,cy:x,startAngle:_,endAngle:g,innerRadius:b,outerRadius:b},d=QC}else y={points:iY(f,o,u)},d=ra;var w=rl(rl(rl(rl({stroke:"#ccc",pointerEvents:"none"},u),y),_t(p,!1)),{},{payload:s,payloadIndex:l,className:Tt("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(d,w)}var lY=["item"],cY=["children","className","width","height","style","compact","title","desc"];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 Na(){return Na=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},Na.apply(this,arguments)}function BO(e,t){return pY(e)||hY(e,t)||ik(e,t)||fY()}function fY(){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 hY(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 pY(e){if(Array.isArray(e))return e}function qO(e,t){if(e==null)return{};var r=dY(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 dY(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 mY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yY(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 gY(e,t,r){return t&&yY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vY(e,t,r){return t=Sc(t),bY(e,nk()?Reflect.construct(t,r||[],Sc(e).constructor):t.apply(e,r))}function bY(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 _Y(e)}function _Y(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 Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sc(e)}function xY(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 Eo(e){return AY(e)||SY(e)||ik(e)||wY()}function wY(){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 Jg(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 Jg(e,t)}}function SY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AY(e){if(Array.isArray(e))return Jg(e)}function Jg(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 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 V(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){mt(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 mt(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=OY(e,"string");return Po(t)=="symbol"?t:t+""}function OY(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 TY={xAxis:["bottom","top"],yAxis:["left","right"]},PY={width:"100%",height:"100%"},ok={x:0,y:0};function nl(e){return e}var EY=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},CY=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 V(V(V({},i),Ne(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var u=a.coordinate,l=i.angle;return V(V(V({},i),Ne(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}return ok},pf=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(Eo(s),Eo(l)):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 Qg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=pf(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=ql(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Eo(u),[VC(l,h)]):u},[])},zO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=EY(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=pW(o,s,l,u);if(c>=0&&l){var f=l[c]&&l[c].value,h=Qg(t,r,c,f),p=CY(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},MY=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=KC(c,a);return n.reduce(function(y,d){var m,v=d.type.defaultProps!==void 0?V(V({},d.type.defaultProps),d.props):d.props,x=v.type,b=v.dataKey,_=v.allowDataOverflow,g=v.allowDuplicatedCategory,w=v.scale,S=v.ticks,A=v.includeHidden,T=v[o];if(y[T])return y;var M=pf(t.data,{graphicalItems:i.filter(function(D){var F,X=o in D.props?D.props[o]:(F=D.type.defaultProps)===null||F===void 0?void 0:F[o];return X===T}),dataStartIndex:u,dataEndIndex:l}),P=M.length,E,C,j;rY(v.domain,_,x)&&(E=pg(v.domain,null,_),p&&(x==="number"||w!=="auto")&&(j=As(M,b,"category")));var k=sk(x);if(!E||E.length===0){var $,N=($=v.domain)!==null&&$!==void 0?$:k;if(b){if(E=As(M,b,x),x==="category"&&p){var W=g5(E);g&&W?(C=E,E=Hs(0,P)):g||(E=KS(N,E,d).reduce(function(D,F){return D.indexOf(F)>=0?D:[].concat(Eo(D),[F])},[]))}else if(x==="category")g?E=E.filter(function(D){return D!==""&&!vt(D)}):E=KS(N,E,d).reduce(function(D,F){return D.indexOf(F)>=0||F===""||vt(F)?D:[].concat(Eo(D),[F])},[]);else if(x==="number"){var z=vW(M,i.filter(function(D){var F,X,L=o in D.props?D.props[o]:(F=D.type.defaultProps)===null||F===void 0?void 0:F[o],Y="hide"in D.props?D.props.hide:(X=D.type.defaultProps)===null||X===void 0?void 0:X.hide;return L===T&&(A||!Y)}),b,a,c);z&&(E=z)}p&&(x==="number"||w!=="auto")&&(j=As(M,b,"category"))}else p?E=Hs(0,P):s&&s[T]&&s[T].hasStack&&x==="number"?E=h==="expand"?[0,1]:YC(s[T].stackGroups,u,l):E=GC(M,i.filter(function(D){var F=o in D.props?D.props[o]:D.type.defaultProps[o],X="hide"in D.props?D.props.hide:D.type.defaultProps.hide;return F===T&&(A||!X)}),x,c,!0);if(x==="number")E=Vg(f,E,T,a,S),N&&(E=pg(N,E,_));else if(x==="category"&&N){var I=N,B=E.every(function(D){return I.indexOf(D)>=0});B&&(E=I)}}return V(V({},y),{},mt({},T,V(V({},v),{},{axisType:a,domain:E,categoricalDomain:j,duplicateDomain:C,originalDomain:(m=v.domain)!==null&&m!==void 0?m:k,isCategorical:p,layout:c})))},{})},kY=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=pf(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),p=h.length,y=KC(c,a),d=-1;return n.reduce(function(m,v){var x=v.type.defaultProps!==void 0?V(V({},v.type.defaultProps),v.props):v.props,b=x[o],_=sk("number");if(!m[b]){d++;var g;return y?g=Hs(0,p):s&&s[b]&&s[b].hasStack?(g=YC(s[b].stackGroups,u,l),g=Vg(f,g,b,a)):(g=pg(_,GC(h,n.filter(function(w){var S,A,T=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],M="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===b&&!M}),"number",c),i.defaultProps.allowDataOverflow),g=Vg(f,g,b,a)),V(V({},m),{},mt({},b,V(V({axisType:a},i.defaultProps),{},{hide:!0,orientation:Gr(TY,"".concat(a,".").concat(d%2),null),domain:g,originalDomain:_,isCategorical:y,layout:c})))}return m},{})},$Y=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=mr(c,a),p={};return h&&h.length?p=MY(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(p=kY(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),p},jY=function(t){var r=ui(t),n=qn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Hc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Zl(r,n)}},UO=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ar(r,po),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}},RY=function(t){return!t||!t.length?!1:t.some(function(r){var n=Fn(r&&r.type);return n&&n.indexOf("Bar")>=0})},WO=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"}},DY=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=Ar(f,po),y=Ar(f,ta),d=Object.keys(u).reduce(function(g,w){var S=u[w],A=S.orientation;return!S.mirror&&!S.hide?V(V({},g),{},mt({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),m=Object.keys(o).reduce(function(g,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?V(V({},g),{},mt({},A,Gr(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),v=V(V({},m),d),x=v.bottom;p&&(v.bottom+=p.props.height||po.defaultProps.height),y&&r&&(v=yW(v,i,n,r));var b=l-v.left-v.right,_=c-v.top-v.bottom;return V(V({brushBottom:x},v),{},{width:Math.max(b,0),height:Math.max(_,0)})},IY=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},NY=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(v,x){var b=x.graphicalItems,_=x.stackGroups,g=x.offset,w=x.updateId,S=x.dataStartIndex,A=x.dataEndIndex,T=v.barSize,M=v.layout,P=v.barGap,E=v.barCategoryGap,C=v.maxBarSize,j=WO(M),k=j.numericAxisName,$=j.cateAxisName,N=RY(b),W=[];return b.forEach(function(z,I){var B=pf(v.data,{graphicalItems:[z],dataStartIndex:S,dataEndIndex:A}),D=z.type.defaultProps!==void 0?V(V({},z.type.defaultProps),z.props):z.props,F=D.dataKey,X=D.maxBarSize,L=D["".concat(k,"Id")],Y=D["".concat($,"Id")],Z={},H=u.reduce(function(at,pt){var St,qt,ne=x["".concat(pt.axisType,"Map")],$t=D["".concat(pt.axisType,"Id")];ne&&ne[$t]||pt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?lr(!1,"Specifying a(n) ".concat(pt.axisType,"Id requires a corresponding ").concat(pt.axisType,"Id on the targeted graphical component ").concat((St=z==null||(qt=z.type)===null||qt===void 0?void 0:qt.displayName)!==null&&St!==void 0?St:"")):lr());var Ft=ne[$t];return V(V({},at),{},mt(mt({},pt.axisType,Ft),"".concat(pt.axisType,"Ticks"),qn(Ft)))},Z),q=H[$],K=H["".concat($,"Ticks")],Q=_&&_[L]&&_[L].hasStack&&MW(z,_[L].stackGroups),R=Fn(z.type).indexOf("Bar")>=0,J=Zl(q,K),U=[],ot=N&&dW({barSize:T,stackGroups:_,totalSize:IY(H,$)});if(R){var yt,st,ht=vt(X)?C:X,ft=(yt=(st=Zl(q,K,!0))!==null&&st!==void 0?st:ht)!==null&&yt!==void 0?yt:0;U=mW({barGap:P,barCategoryGap:E,bandSize:ft!==J?ft:J,sizeList:ot[Y],maxBarSize:ht}),ft!==J&&(U=U.map(function(at){return V(V({},at),{},{position:V(V({},at.position),{},{offset:at.position.offset-ft/2})})}))}var Ot=z&&z.type&&z.type.getComposedData;Ot&&W.push({props:V(V({},Ot(V(V({},H),{},{displayedData:B,props:v,dataKey:F,item:z,bandSize:J,barPosition:U,offset:g,stackedData:Q,layout:M,dataStartIndex:S,dataEndIndex:A}))),{},mt(mt(mt({key:z.key||"item-".concat(I)},k,H[k]),$,H[$]),"animationId",w)),childIndex:M5(z,v.children),item:z})}),W},p=function(v,x){var b=v.props,_=v.dataStartIndex,g=v.dataEndIndex,w=v.updateId;if(!Mw({props:b}))return null;var S=b.children,A=b.layout,T=b.stackOffset,M=b.data,P=b.reverseStackOrder,E=WO(A),C=E.numericAxisName,j=E.cateAxisName,k=mr(S,n),$=PW(M,k,"".concat(C,"Id"),"".concat(j,"Id"),T,P),N=u.reduce(function(D,F){var X="".concat(F.axisType,"Map");return V(V({},D),{},mt({},X,$Y(b,V(V({},F),{},{graphicalItems:k,stackGroups:F.axisType===C&&$,dataStartIndex:_,dataEndIndex:g}))))},{}),W=DY(V(V({},N),{},{props:b,graphicalItems:k}),x==null?void 0:x.legendBBox);Object.keys(N).forEach(function(D){N[D]=c(b,N[D],W,D.replace("Map",""),r)});var z=N["".concat(j,"Map")],I=jY(z),B=h(b,V(V({},N),{},{dataStartIndex:_,dataEndIndex:g,updateId:w,graphicalItems:k,stackGroups:$,offset:W}));return V(V({formattedGraphicalItems:B,graphicalItems:k,offset:W,stackGroups:$},I),N)},y=(function(m){function v(x){var b,_,g;return mY(this,v),g=vY(this,v,[x]),mt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),mt(g,"accessibilityManager",new eY),mt(g,"handleLegendBBoxUpdate",function(w){if(w){var S=g.state,A=S.dataStartIndex,T=S.dataEndIndex,M=S.updateId;g.setState(V({legendBBox:w},p({props:g.props,dataStartIndex:A,dataEndIndex:T,updateId:M},V(V({},g.state),{},{legendBBox:w}))))}}),mt(g,"handleReceiveSyncEvent",function(w,S,A){if(g.props.syncId===w){if(A===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),mt(g,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==g.state.dataStartIndex||A!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return V({dataStartIndex:S,dataEndIndex:A},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),mt(g,"handleMouseEnter",function(w){var S=g.getMouseInfo(w);if(S){var A=V(V({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseEnter;xt(T)&&T(A,w)}}),mt(g,"triggeredAfterMouseMove",function(w){var S=g.getMouseInfo(w),A=S?V(V({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseMove;xt(T)&&T(A,w)}),mt(g,"handleItemMouseEnter",function(w){g.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),mt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),mt(g,"handleMouseMove",function(w){w.persist(),g.throttleTriggeredAfterMouseMove(w)}),mt(g,"handleMouseLeave",function(w){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseLeave;xt(A)&&A(S,w)}),mt(g,"handleOuterEvent",function(w){var S=C5(w),A=Gr(g.props,"".concat(S));if(S&&xt(A)){var T,M;/.*touch.*/i.test(S)?M=g.getMouseInfo(w.changedTouches[0]):M=g.getMouseInfo(w),A((T=M)!==null&&T!==void 0?T:{},w)}}),mt(g,"handleClick",function(w){var S=g.getMouseInfo(w);if(S){var A=V(V({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onClick;xt(T)&&T(A,w)}}),mt(g,"handleMouseDown",function(w){var S=g.props.onMouseDown;if(xt(S)){var A=g.getMouseInfo(w);S(A,w)}}),mt(g,"handleMouseUp",function(w){var S=g.props.onMouseUp;if(xt(S)){var A=g.getMouseInfo(w);S(A,w)}}),mt(g,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),mt(g,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseDown(w.changedTouches[0])}),mt(g,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseUp(w.changedTouches[0])}),mt(g,"handleDoubleClick",function(w){var S=g.props.onDoubleClick;if(xt(S)){var A=g.getMouseInfo(w);S(A,w)}}),mt(g,"handleContextMenu",function(w){var S=g.props.onContextMenu;if(xt(S)){var A=g.getMouseInfo(w);S(A,w)}}),mt(g,"triggerSyncEvent",function(w){g.props.syncId!==void 0&&Zm.emit(Jm,g.props.syncId,w,g.eventEmitterSymbol)}),mt(g,"applySyncEvent",function(w){var S=g.props,A=S.layout,T=S.syncMethod,M=g.state.updateId,P=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)g.setState(V({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:M},g.state)));else if(w.activeTooltipIndex!==void 0){var C=w.chartX,j=w.chartY,k=w.activeTooltipIndex,$=g.state,N=$.offset,W=$.tooltipTicks;if(!N)return;if(typeof T=="function")k=T(W,w);else if(T==="value"){k=-1;for(var z=0;z<W.length;z++)if(W[z].value===w.activeLabel){k=z;break}}var I=V(V({},N),{},{x:N.left,y:N.top}),B=Math.min(C,I.x+I.width),D=Math.min(j,I.y+I.height),F=W[k]&&W[k].value,X=Qg(g.state,g.props.data,k),L=W[k]?{x:A==="horizontal"?W[k].coordinate:B,y:A==="horizontal"?D:W[k].coordinate}:ok;g.setState(V(V({},w),{},{activeLabel:F,activeCoordinate:L,activePayload:X,activeTooltipIndex:k}))}else g.setState(w)}),mt(g,"renderCursor",function(w){var S,A=g.state,T=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,E=A.offset,C=A.activeTooltipIndex,j=A.tooltipAxisBandSize,k=g.getTooltipEventType(),$=(S=w.props.active)!==null&&S!==void 0?S:T,N=g.props.layout,W=w.key||"_recharts-cursor";return O.createElement(uY,{key:W,activeCoordinate:M,activePayload:P,activeTooltipIndex:C,chartName:r,element:w,isActive:$,layout:N,offset:E,tooltipAxisBandSize:j,tooltipEventType:k})}),mt(g,"renderPolarAxis",function(w,S,A){var T=Gr(w,"type.axisType"),M=Gr(g.state,"".concat(T,"Map")),P=w.type.defaultProps,E=P!==void 0?V(V({},P),w.props):w.props,C=M&&M[E["".concat(T,"Id")]];return O.cloneElement(w,V(V({},C),{},{className:Tt(T,C.className),key:w.key||"".concat(S,"-").concat(A),ticks:qn(C,!0)}))}),mt(g,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,T=S.polarAngles,M=S.polarRadius,P=g.state,E=P.radiusAxisMap,C=P.angleAxisMap,j=ui(E),k=ui(C),$=k.cx,N=k.cy,W=k.innerRadius,z=k.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(T)?T:qn(k,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(M)?M:qn(j,!0).map(function(I){return I.coordinate}),cx:$,cy:N,innerRadius:W,outerRadius:z,key:w.key||"polar-grid",radialLines:A})}),mt(g,"renderLegend",function(){var w=g.state.formattedGraphicalItems,S=g.props,A=S.children,T=S.width,M=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),C=WC({children:A,formattedGraphicalItems:w,legendWidth:E,legendContent:l});if(!C)return null;var j=C.item,k=qO(C,lY);return O.cloneElement(j,V(V({},k),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),mt(g,"renderTooltip",function(){var w,S=g.props,A=S.children,T=S.accessibilityLayer,M=Ar(A,_n);if(!M)return null;var P=g.state,E=P.isTooltipActive,C=P.activeCoordinate,j=P.activePayload,k=P.activeLabel,$=P.offset,N=(w=M.props.active)!==null&&w!==void 0?w:E;return O.cloneElement(M,{viewBox:V(V({},$),{},{x:$.left,y:$.top}),active:N,label:k,payload:N?j:[],coordinate:C,accessibilityLayer:T})}),mt(g,"renderBrush",function(w){var S=g.props,A=S.margin,T=S.data,M=g.state,P=M.offset,E=M.dataStartIndex,C=M.dataEndIndex,j=M.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Vu(g.handleBrushChange,w.props.onChange),data:T,x:it(w.props.x)?w.props.x:P.left,y:it(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:it(w.props.width)?w.props.width:P.width,startIndex:E,endIndex:C,updateId:"brush-".concat(j)})}),mt(g,"renderReferenceElement",function(w,S,A){if(!w)return null;var T=g,M=T.clipPathId,P=g.state,E=P.xAxisMap,C=P.yAxisMap,j=P.offset,k=w.type.defaultProps||{},$=w.props,N=$.xAxisId,W=N===void 0?k.xAxisId:N,z=$.yAxisId,I=z===void 0?k.yAxisId:z;return O.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:E[W],yAxis:C[I],viewBox:{x:j.left,y:j.top,width:j.width,height:j.height},clipPathId:M})}),mt(g,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,T=w.basePoint,M=w.childIndex,P=w.isRange,E=[],C=S.props.key,j=S.item.type.defaultProps!==void 0?V(V({},S.item.type.defaultProps),S.item.props):S.item.props,k=j.activeDot,$=j.dataKey,N=V(V({index:M,dataKey:$,cx:A.x,cy:A.y,r:4,fill:P0(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},_t(k,!1)),Fl(k));return E.push(v.renderActiveDot(k,N,"".concat(C,"-activePoint-").concat(M))),T?E.push(v.renderActiveDot(k,V(V({},N),{},{cx:T.x,cy:T.y}),"".concat(C,"-basePoint-").concat(M))):P&&E.push(null),E}),mt(g,"renderGraphicChild",function(w,S,A){var T=g.filterFormatItem(w,S,A);if(!T)return null;var M=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,C=P.tooltipAxis,j=P.activeTooltipIndex,k=P.activeLabel,$=g.props.children,N=Ar($,_n),W=T.props,z=W.points,I=W.isRange,B=W.baseLine,D=T.item.type.defaultProps!==void 0?V(V({},T.item.type.defaultProps),T.item.props):T.item.props,F=D.activeDot,X=D.hide,L=D.activeBar,Y=D.activeShape,Z=!!(!X&&E&&N&&(F||L||Y)),H={};M!=="axis"&&N&&N.props.trigger==="click"?H={onClick:Vu(g.handleItemMouseEnter,w.props.onClick)}:M!=="axis"&&(H={onMouseLeave:Vu(g.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Vu(g.handleItemMouseEnter,w.props.onMouseEnter)});var q=O.cloneElement(w,V(V({},T.props),H));function K(pt){return typeof C.dataKey=="function"?C.dataKey(pt.payload):null}if(Z)if(j>=0){var Q,R;if(C.dataKey&&!C.allowDuplicatedCategory){var J=typeof C.dataKey=="function"?K:"payload.".concat(C.dataKey.toString());Q=ql(z,J,k),R=I&&B&&ql(B,J,k)}else Q=z==null?void 0:z[j],R=I&&B&&B[j];if(Y||L){var U=w.props.activeIndex!==void 0?w.props.activeIndex:j;return[O.cloneElement(w,V(V(V({},T.props),H),{},{activeIndex:U})),null,null]}if(!vt(Q))return[q].concat(Eo(g.renderActivePoints({item:T,activePoint:Q,basePoint:R,childIndex:j,isRange:I})))}else{var ot,yt=(ot=g.getItemByXY(g.state.activeCoordinate))!==null&&ot!==void 0?ot:{graphicalItem:q},st=yt.graphicalItem,ht=st.item,ft=ht===void 0?w:ht,Ot=st.childIndex,at=V(V(V({},T.props),H),{},{activeIndex:Ot});return[O.cloneElement(ft,at),null,null]}return I?[q,null,null]:[q,null]}),mt(g,"renderCustomized",function(w,S,A){return O.cloneElement(w,V(V({key:"recharts-customized-".concat(A)},g.props),g.state))}),mt(g,"renderMap",{CartesianGrid:{handler:nl,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:nl},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:nl},YAxis:{handler:nl},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=x.id)!==null&&b!==void 0?b:ba("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=SC(g.triggeredAfterMouseMove,(_=x.throttleDelay)!==null&&_!==void 0?_:1e3/60),g.state={},g}return xY(v,m),gY(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,w=b.height,S=b.layout,A=Ar(_,_n);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Qg(this.state,g,T,M),E=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+w)/2,j=S==="horizontal",k=j?{x:E,y:C}:{y:E,x:C},$=this.state.formattedGraphicalItems.find(function(W){var z=W.item;return z.type.name==="Scatter"});$&&(k=V(V({},k),$.props.points[T].tooltipPosition),P=$.props.points[T].tooltipPayload);var N={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:k};this.setState(N),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,w;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){Gy([Ar(b.children,_n)],[Ar(this.props.children,_n)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Ar(this.props.children,_n);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(),w=R3(g),S={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},A=g.width/_.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var M=this.state,P=M.xAxisMap,E=M.yAxisMap,C=this.getTooltipEventType(),j=zO(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&P&&E){var k=ui(P).scale,$=ui(E).scale,N=k&&k.invert?k.invert(S.chartX):null,W=$&&$.invert?$.invert(S.chartY):null;return V(V({},S),{},{xValue:N,yValue:W},j)}return j?V(V({},S),j):null}},{key:"inRange",value:function(b,_){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=b/g,A=_/g;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,M=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return M?{x:S,y:A}:null}var P=this.state,E=P.angleAxisMap,C=P.radiusAxisMap;if(E&&C){var j=ui(E);return VS({x:S,y:A},j)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,_=this.getTooltipEventType(),g=Ar(b,_n),w={};g&&_==="axis"&&(g.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=Fl(this.props,this.handleOuterEvent);return V(V({},S),w)}},{key:"addListener",value:function(){Zm.on(Jm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Zm.removeListener(Jm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,_,g){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var T=w[S];if(T.item===b||T.props.key===b.key||_===Fn(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,_=this.state.offset,g=_.left,w=_.top,S=_.height,A=_.width;return O.createElement("defs",null,O.createElement("clipPath",{id:b},O.createElement("rect",{x:g,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(_,g){var w=BO(g,2),S=w[0],A=w[1];return V(V({},_),{},mt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(_,g){var w=BO(g,2),S=w[0],A=w[1];return V(V({},_),{},mt({},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,w=_.activeItem;if(g&&g.length)for(var S=0,A=g.length;S<A;S++){var T=g[S],M=T.props,P=T.item,E=P.type.defaultProps!==void 0?V(V({},P.type.defaultProps),P.props):P.props,C=Fn(P.type);if(C==="Bar"){var j=(M.data||[]).find(function(W){return TG(b,W)});if(j)return{graphicalItem:T,payload:j}}else if(C==="RadialBar"){var k=(M.data||[]).find(function(W){return VS(b,W)});if(k)return{graphicalItem:T,payload:k}}else if(Qc(T,w)||tf(T,w)||yu(T,w)){var $=m6({graphicalItem:T,activeTooltipItem:w,itemData:E.data}),N=E.activeIndex===void 0?$:E.activeIndex;return{graphicalItem:V(V({},T),{},{childIndex:N}),payload:yu(T,w)?E.data[$]:T.props.data[$]}}}return null}},{key:"render",value:function(){var b=this;if(!Mw(this))return null;var _=this.props,g=_.children,w=_.className,S=_.width,A=_.height,T=_.style,M=_.compact,P=_.title,E=_.desc,C=qO(_,cY),j=_t(C,!1);if(M)return O.createElement(yO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Xy,Na({},j,{width:S,height:A,title:P,desc:E}),this.renderClipPath(),$w(g,this.renderMap)));if(this.props.accessibilityLayer){var k,$;j.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,j.role=($=this.props.role)!==null&&$!==void 0?$:"application",j.onKeyDown=function(W){b.accessibilityManager.keyboardEvent(W)},j.onFocus=function(){b.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return O.createElement(yO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Na({className:Tt("recharts-wrapper",w),style:V({position:"relative",cursor:"default",width:S,height:A},T)},N,{ref:function(z){b.container=z}}),O.createElement(Xy,Na({},j,{width:S,height:A,title:P,desc:E,style:PY}),this.renderClipPath(),$w(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);mt(y,"displayName",r),mt(y,"defaultProps",V({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),mt(y,"getDerivedStateFromProps",function(m,v){var x=m.dataKey,b=m.data,_=m.children,g=m.width,w=m.height,S=m.layout,A=m.stackOffset,T=m.margin,M=v.dataStartIndex,P=v.dataEndIndex;if(v.updateId===void 0){var E=UO(m);return V(V(V({},E),{},{updateId:0},p(V(V({props:m},E),{},{updateId:0}),v)),{},{prevDataKey:x,prevData:b,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(x!==v.prevDataKey||b!==v.prevData||g!==v.prevWidth||w!==v.prevHeight||S!==v.prevLayout||A!==v.prevStackOffset||!Ha(T,v.prevMargin)){var C=UO(m),j={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},k=V(V({},zO(v,b,S)),{},{updateId:v.updateId+1}),$=V(V(V({},C),j),k);return V(V(V({},$),p(V({props:m},$),v)),{},{prevDataKey:x,prevData:b,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(!Gy(_,v.prevChildren)){var N,W,z,I,B=Ar(_,po),D=B&&(N=(W=B.props)===null||W===void 0?void 0:W.startIndex)!==null&&N!==void 0?N:M,F=B&&(z=(I=B.props)===null||I===void 0?void 0:I.endIndex)!==null&&z!==void 0?z:P,X=D!==M||F!==P,L=!vt(b),Y=L&&!X?v.updateId:v.updateId+1;return V(V({updateId:Y},p(V(V({props:m},v),{},{updateId:Y,dataStartIndex:D,dataEndIndex:F}),v)),{},{prevChildren:_,dataStartIndex:D,dataEndIndex:F})}return null}),mt(y,"renderActiveDot",function(m,v,x){var b;return O.isValidElement(m)?b=O.cloneElement(m,v):xt(m)?b=m(v):b=O.createElement(Jc,v),O.createElement(jt,{className:"recharts-active-dot",key:x},b)});var d=O.forwardRef(function(v,x){return O.createElement(y,Na({},v,{ref:x}))});return d.displayName=y.displayName,d},LY=NY({chartName:"ComposedChart",GraphicalChild:[uf,Pi,Lo,cf],axisComponents:[{axisType:"xAxis",AxisComp:ff},{axisType:"yAxis",AxisComp:hf},{axisType:"zAxis",AxisComp:lf}],formatAxisMap:s4});const is=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},BY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),qY=e=>new Intl.NumberFormat("en-US").format(e);function FY(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return is()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,d)=>y.timestamp-d.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&is()&&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 is()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(is()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(is()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),d=h.filter(m=>!y.has(m.dataKey));d.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",d.map(m=>m.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 d=h[y.dataKey];return p+(typeof d=="number"?d:0)},0))),[a,o]),c=O.useMemo(()=>n||BY,[n]),f=O.useMemo(()=>i||qY,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:u,maxTotalValue:l,dateFormatter:c,valueFormatter:f}}function zY(e,t){const r=t-1-e,n=gs.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return gs[a]??gs[0]??"#000000"}function UY(e){return Array.from({length:e},(t,r)=>zY(r,e))}const $a=UY(5),Dn={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:dr.neoDigitalGreen[600],inProgress:"#007bff",farthest:$a[0],far:$a[1],close:$a[2],closest:$a[3],completed:$a[4],primary:"#007bff",secondary:"#6c757d",success:dr.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:dr.neoGrey[200],dark:"#343a40"},Et={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:dr.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:dr.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"}},WY={migration:$a,severity:[Dn.critical,Dn.high,Dn.medium,Dn.low,Dn.info],status:[Dn.danger,Dn.warning,Dn.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},HY={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"},GY=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=Et.display.showHeader,height:o=Et.dimensions.height,width:s=Et.dimensions.width,showLegend:u=Et.display.showLegend,showTooltip:l=Et.display.showTooltip,showXAxis:c=Et.display.showXAxis,showYAxis:f=Et.display.showYAxis,showGrid:h=Et.display.showGrid,enableAnimation:p=Et.animation.enabled,animationDuration:y=Et.animation.duration,animationEasing:d=Et.animation.easing,formatDate:m,formatValue:v,tooltipFormatter:x,slotProps:b,margin:_=Et.margin,curveType:g=Et.curve.type,stackOffset:w=Et.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:T=!1,zoomToSelection:M=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:C,valueFormatter:j}=FY({data:e,categories:t,formatDate:m,formatValue:v}),[k,$]=O.useState(null),[N,W]=O.useState(!1),[z,I]=O.useState(null),[B,D]=O.useState(null),F=O.useRef(null),X=S?[S[0],S[1]]:["dataMin","dataMax"],L=P.length>0?P[0].timestamp:0,Y=P.length>0?P[P.length-1].timestamp:0,Z=O.useMemo(()=>{const at=S?S[0]:L,pt=S?S[1]:Y,St=6;if(at===pt||at===0)return[];const qt=(pt-at)/(St-1);return Array.from({length:St},(ne,$t)=>Math.round(at+qt*$t))},[S,L,Y]),H=O.useCallback((at,pt)=>{const St=at/pt*100,qt=Y-L;return L+St/100*qt},[L,Y]),q=O.useCallback(at=>{const pt=Y-L;return pt===0?0:(at-L)/pt*100},[L,Y]),K=O.useCallback(at=>{if(!T)return;const pt=at.currentTarget.getBoundingClientRect(),St=at.clientX-pt.left,qt=H(St,pt.width);W(!0),I(qt),D(qt)},[T,H]),Q=O.useCallback(at=>{if(!F.current)return;const pt=at.currentTarget.getBoundingClientRect(),St=at.clientX-pt.left,qt=pt.width,ne=H(St,qt);if(N)z!==null&&D(ne);else{const Ft=r.find(me=>Math.abs(me.timestamp-ne)<2592e5);$((Ft==null?void 0:Ft.timestamp)??null)}},[N,z,H,r]),R=O.useCallback(()=>{if(N&&z!==null&&B!==null&&A){const at=Math.min(z,B),pt=Math.max(z,B);at!==pt&&A([at,pt])}W(!1),I(null),D(null)},[N,z,B,A]),J=O.useCallback(()=>{R(),$(null)},[R]),ot=(M?N:!0)&&N&&z!==null&&B!==null?{left:q(Math.min(z,B)),width:Math.abs(q(B)-q(z))}:null,st=(S?P.filter(at=>at.timestamp>=S[0]&&at.timestamp<=S[1]):P).slice().reverse().map(at=>{const pt=r.find(St=>St.timestamp===at.timestamp);return pt&&pt.label?{...at,__markerLabel:pt.label}:at}),ht=at=>C(at),ft=at=>j(at),Ot=({active:at,payload:pt,label:St})=>{if(!at||!pt||pt.length===0)return null;const qt=st.find($t=>$t.timestamp===St);if(qt&&"__markerLabel"in qt){const Ft=String(qt.__markerLabel).split(" - "),me=Ft[0]||"",Xt=Ft[1]||"";return G.jsxs(tt.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[G.jsx(tt.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Xt}),G.jsx(tt.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:me})]})}return G.jsxs(tt.Box,{sx:{backgroundColor:Et.tooltip.backgroundColor,border:`${Et.tooltip.borderWidth}px solid ${Et.tooltip.borderColor}`,borderRadius:Et.tooltip.borderRadius,padding:Et.tooltip.padding},children:[G.jsx(tt.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:C(St)}),pt.map(($t,Ft)=>G.jsxs(tt.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[G.jsx(tt.Box,{sx:{width:10,height:10,backgroundColor:$t.color,borderRadius:"2px"}}),G.jsxs(tt.Typography,{sx:{fontSize:"14px"},children:[$t.name,": ",j($t.value)]})]},`item-${Ft}`))]})};return G.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&G.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&G.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&G.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),G.jsxs(tt.Box,{ref:F,sx:{width:"100%",height:`${o}px`,minHeight:Et.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[G.jsx(P3,{width:s,height:"100%",children:G.jsxs(LY,{data:st,margin:_,stackOffset:w,children:[h&&G.jsx(NM,{strokeDasharray:"3 3",stroke:Et.axis.strokeColor,opacity:.3}),c&&G.jsx(ff,{dataKey:"timestamp",type:"number",domain:X,tickFormatter:ht,stroke:Et.axis.strokeColor,tick:{fill:Et.axis.tickColor},scale:"time",ticks:Z}),f&&G.jsx(hf,{tickFormatter:ft,stroke:Et.axis.strokeColor,tick:{fill:Et.axis.tickColor}}),l&&G.jsx(_n,{content:G.jsx(Ot,{})}),u&&G.jsx(ta,{iconSize:Et.legend.iconSize,iconType:Et.legend.iconType,layout:Et.legend.layout,align:Et.legend.align,verticalAlign:Et.legend.verticalAlign}),E.map((at,pt)=>G.jsx(Pi,{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:d,animationBegin:p?(E.length-1-pt)*100:0},at.dataKey)),r.filter(at=>k===null||at.timestamp===k).map((at,pt)=>G.jsx(rf,{x:at.timestamp,stroke:at.color??Et.marker.strokeColor,strokeWidth:at.strokeWidth??Et.marker.strokeWidth,strokeDasharray:at.strokeDasharray??Et.marker.strokeDasharray,strokeOpacity:k===null?0:1},`marker-${at.timestamp}-${pt}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&G.jsxs(tt.Box,{sx:{position:"absolute",top:_.top||0,left:_.left||0,right:_.right||0,bottom:_.bottom||0,cursor:N?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:K,onMouseMove:Q,onMouseUp:R,onMouseLeave:J,children:[ot&&G.jsx(tt.Box,{sx:{position:"absolute",left:`${ot.left}%`,width:`${ot.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),k&&G.jsx(G.Fragment,{children:r.filter(at=>at.timestamp===k).map(at=>G.jsx(tt.Box,{sx:{position:"absolute",left:`${q(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||C(at.timestamp)},`tooltip-${at.timestamp}`))})]})]})]})},vn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(31, 41, 55, 0.14)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},KY=(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}}}}),Qr={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:vn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${vn.dimensions.height}px`,backgroundColor:vn.colors.background,borderRadius:0,overflow:"visible",border:`1px solid ${vn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${vn.dimensions.eventWidth}px`,height:"100%",backgroundColor:vn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:vn.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 ${vn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:vn.colors.tooltipText,fontSize:"11px"}}},XY=(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%)`}}}}),YY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},VY=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{YY()&&e.length>1&&(e.every((Y,Z)=>Z===0||Y.timestamp>=e[Z-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(null),[p,y]=O.useState({start:null,end:null}),[d,m]=O.useState({start:null,end:null}),[v,x]=O.useState(null),b=O.useRef(null),_=t??p,g=a??d,w=O.useMemo(()=>{var L;return e.length>0?((L=e[0])==null?void 0:L.timestamp)??0:0},[e]),S=O.useMemo(()=>{var L;return e.length>0?((L=e[e.length-1])==null?void 0:L.timestamp)??0:0},[e]),A=O.useMemo(()=>i&&g.start&&g.end?g.start:w,[i,g,w]),T=O.useMemo(()=>i&&g.start&&g.end?g.end:S,[i,g,S]),M=O.useMemo(()=>T-A,[T,A]),P=O.useMemo(()=>!n&&_.start!==null&&_.end!==null,[n,_]),E=O.useCallback(L=>M===0?0:(L-A)/M*100,[A,M]),C=O.useCallback((L,Y)=>{const Z=L/Y*100;return A+Z/100*M},[A,M]),j=O.useCallback(L=>{t===void 0&&y(L),r==null||r(L)},[t,r]),k=O.useCallback(L=>{const Y=L.currentTarget.getBoundingClientRect(),Z=L.clientX-Y.left,H=C(Z,Y.width);u(!0),c(H),j({start:H,end:H})},[C,j]),$=O.useCallback(L=>{if(!s||l===null)return;const Y=L.currentTarget.getBoundingClientRect(),Z=L.clientX-Y.left,H=C(Z,Y.width);if(f==="start"){const q=Math.min(H,_.end-M*.01);j({start:Math.max(q,A),end:_.end})}else if(f==="end"){const q=Math.max(H,_.start+M*.01);j({start:_.start,end:Math.min(q,T)})}else if(f==="body"){const q=H-l,K=_.end-_.start;let Q=_.start+q,R=_.end+q;Q<A&&(Q=A,R=A+K),R>T&&(R=T,Q=T-K),j({start:Q,end:R}),c(H)}else j({start:Math.min(l,H),end:Math.max(l,H)})},[s,l,f,_,M,A,T,C,j]),N=O.useCallback(()=>{const L=s;if(u(!1),h(null),L&&i&&_.start&&_.end&&_.start!==_.end){const Y={start:_.start,end:_.end};a===void 0&&m(Y),o==null||o(Y)}},[s,i,_,a,o]);O.useEffect(()=>{if(!s||l===null||!b.current)return;const L=Z=>{const H=b.current;if(!H)return;const q=H.getBoundingClientRect(),K=Z.clientX-q.left,Q=C(K,q.width);if(f==="start"){const R=Math.min(Q,_.end-M*.01);j({start:Math.max(R,A),end:_.end})}else if(f==="end"){const R=Math.max(Q,_.start+M*.01);j({start:_.start,end:Math.min(R,T)})}else if(f==="body"){const R=Q-l,J=_.end-_.start;let U=_.start+R,ot=_.end+R;U<A&&(U=A,ot=A+J),ot>T&&(ot=T,U=T-J),j({start:U,end:ot}),c(Q)}else j({start:Math.min(l,Q),end:Math.max(l,Q)})},Y=()=>{N()};return document.addEventListener("mousemove",L),document.addEventListener("mouseup",Y),()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",Y)}},[s,l,f,_,M,A,T,C,j,N]);const W=O.useCallback(L=>{L.stopPropagation(),_.start!==null&&(u(!0),c(_.start),h("start"))},[_]),z=O.useCallback(L=>{L.stopPropagation(),_.end!==null&&(u(!0),c(_.end),h("end"))},[_]),I=O.useCallback(L=>{L.stopPropagation();const Y=b.current;if(!Y)return;const Z=Y.getBoundingClientRect(),H=L.clientX-Z.left,q=C(H,Z.width);u(!0),c(q),h("body")},[C]),B=O.useCallback(L=>{if(L.cancelable&&n&&L.preventDefault(),!n||!_.start||!_.end||M===0)return;const Y=(_.start+_.end)/2,Z=_.end-_.start,H=L.deltaY>0?1.1:.9,q=Math.max(Z*H,M*.01),K=M*1.5,Q=Math.min(q,K);let R=Y-Q/2,J=Y+Q/2;R<A&&(R=A,J=Math.min(A+Q,T)),J>T&&(J=T,R=Math.max(T-Q,A)),j({start:R,end:J})},[n,_,M,A,T,j]),D=O.useCallback(()=>!_.start||!_.end?[]:e.filter(L=>L.timestamp>=_.start&&L.timestamp<=_.end),[e,_]),F=O.useCallback(()=>{const L={start:w,end:S};a===void 0&&m({start:null,end:null}),o==null||o(L)},[w,S,a,o]),X=O.useCallback(()=>{i&&F()},[i,F]);return{isDragging:s,dragStart:l,dragHandleType:f,internalSelectedRange:_,internalVisibleRange:g,hoveredEvent:v,minDate:A,maxDate:T,timeSpan:M,timelineContainerRef:b,getPositionFromTimestamp:E,getTimestampFromPosition:C,handleMouseDown:k,handleMouseMove:$,handleMouseUp:N,handleWheel:B,handleDoubleClick:X,handleStartHandleMouseDown:W,handleEndHandleMouseDown:z,handleSelectionBodyMouseDown:I,setHoveredEvent:x,getEventsInRange:D,resetZoom:F,showHandles:P}},ZY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),JY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),QY=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"?XY(r||"#9CA3AF"):KY(r||"#4B5563");return{header:{...Qr.header,...e==null?void 0:e.header},title:{...Qr.title,...e==null?void 0:e.title},instructions:{...Qr.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...Qr.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...Qr.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...Qr.timeline,...e==null?void 0:e.timeline},event:{...Qr.event,...e==null?void 0:e.event},selection:{...Qr.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:{...Qr.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...Qr.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...Qr.tooltipDate,...e==null?void 0:e.tooltipDate}}},rV=({events:e,onSelectionChange:t,selectedRange:r,height:n=vn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=ZY,formatMonthYear:o=JY,showMonthLabels:s=!0,monthLabelCount:u=6,enableZoom:l=!0,dragHandleVariant:c="arrow",dragHandleColor:f,showHeader:h=!0,title:p="Event Timeline Selector",zoomToSelection:y=!1,visibleRange:d,onVisibleRangeChange:m,timeRange:v,onTimeRangeChange:x,slotProps:b})=>{const _=v?{start:v[0],end:v[1]}:d,g=x?L=>{L.start!==null&&L.end!==null&&x([L.start,L.end])}:m;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 w=O.useMemo(()=>eV(b,c,f),[b,c,f]),{isDragging:S,dragHandleType:A,internalSelectedRange:T,hoveredEvent:M,minDate:P,timeSpan:E,timelineContainerRef:C,getPositionFromTimestamp:j,handleMouseDown:k,handleWheel:$,handleDoubleClick:N,handleStartHandleMouseDown:W,handleEndHandleMouseDown:z,handleSelectionBodyMouseDown:I,setHoveredEvent:B,getEventsInRange:D,showHandles:F}=VY({events:e,selectedRange:r,onSelectionChange:t,enableZoom:l,zoomToSelection:y,visibleRange:_,onVisibleRangeChange:g}),X=T.start&&T.end?`Selected: ${a(T.start)} - ${a(T.end)} (${D().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return G.jsxs(tt.Stack,{sx:{width:"100%"},children:[h&&G.jsxs(tt.Stack,{spacing:1,sx:{mb:3},...w.header,children:[G.jsx(tt.Typography,{variant:"h5",...w.title,children:p}),G.jsx(tt.Typography,{variant:"body2",...w.instructions,children:X})]}),s&&G.jsx(tt.Stack,{direction:"row",...w.monthLabelsContainer,sx:{...w.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:u},(L,Y)=>{const Z=P+E/(u-1)*Y,H=QY(E);return G.jsx(tt.Typography,{variant:"caption",...w.monthLabel,children:H(Z)},Y)})}),G.jsxs(tt.Box,{...w.timeline,sx:{...w.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[G.jsx(tt.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((L,Y)=>{const Z=j(L.timestamp);return G.jsx(tt.Box,{onMouseEnter:()=>B(L),onMouseLeave:()=>B(null),"aria-label":`Event: ${L.eventName} at ${a(L.timestamp)}`,...w.event,sx:{...w.event.sx,left:`${Z}%`,transform:(M==null?void 0:M.timestamp)===L.timestamp?"scaleX(2)":"scaleX(1)"}},`${L.timestamp}-${Y}`)})}),T.start&&T.end&&(!y||S)&&G.jsx(tt.Box,{...w.selection,onMouseDown:F&&!S?I:void 0,sx:{...w.selection.sx,left:`${j(T.start)}%`,width:`${j(T.end)-j(T.start)}%`,pointerEvents:F?"all":"none",zIndex:2,cursor:F&&!S?A==="body"?"grabbing":"grab":"default"},children:F&&!(S&&A===null)&&G.jsxs(G.Fragment,{children:[G.jsx(tt.Box,{...w.startHandle,onMouseDown:W,sx:{...w.startHandle.sx,cursor:"ew-resize",opacity:S&&A!=="start"?.5:1},"aria-label":"Drag to adjust start of selection"}),G.jsx(tt.Box,{...w.endHandle,onMouseDown:z,sx:{...w.endHandle.sx,cursor:"ew-resize",opacity:S&&A!=="end"?.5:1},"aria-label":"Drag to adjust end of selection"})]})}),G.jsx(tt.Box,{ref:C,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:k,onWheel:$,onDoubleClick:N}),!h&&G.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:X}),M&&G.jsxs(tt.Box,{role:"tooltip","aria-live":"polite",...w.tooltip,sx:{...w.tooltip.sx,left:`${j(M.timestamp)}%`,transform:"translateX(-50%)"},children:[G.jsx(tt.Typography,{variant:"body2",...w.tooltipEventName,children:M.eventName}),G.jsx(tt.Typography,{variant:"caption",...w.tooltipDate,children:a(M.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:G.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[G.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),G.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>G.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[G.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),G.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=ws;exports.CAMPAIGN_NOT_APPLICABLE=_s;exports.CAMPAIGN_NO_LST=xs;exports.CATEGORY_LABELS=HY;exports.ChronoChart=PE;exports.ChronoPerspectiveChart=PE;exports.D3StackedAreaChart=kL;exports.DEFAULT_CHART_COLORS=dr;exports.DEFAULT_CHART_CONFIG=tr;exports.DEFAULT_STACKED_AREA_COLORS=Dn;exports.DEFAULT_STACKED_AREA_CONFIG=Et;exports.MEASURE_GRADIENT_COLORS=gs;exports.MODERNE_VULNERABILITY_COLORS=Wa;exports.MorphChart=hE;exports.ParliamentChart=QF;exports.STACKED_AREA_PALETTES=WY;exports.StackedAreaChart=GY;exports.TimelineChart=rV;exports.TimelineSelectedEvents=aV;exports.calculateDataSeries=sC;exports.calculateOptimalArcAngle=Qv;exports.calculateOptimalSeatSize=t0;
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},xG=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},_G={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},E0=function(t){var r=RA(RA({},_G),t),n=O.useRef(),i=O.useState(-1),a=hG(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,d=r.animationDuration,m=r.animationBegin,v=r.isAnimationActive,_=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var b=Tt("recharts-rectangle",p);return _?O.createElement(on,{canBegin:o>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:d,animationEasing:y,isActive:_},function(x){var g=x.width,w=x.height,S=x.x,A=x.y;return O.createElement(on,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:d,isActive:v,easing:y},O.createElement("path",ic({},xt(r,!0),{className:b,d:DA(S,A,g,w,h),ref:n})))}):O.createElement("path",ic({},xt(r,!0),{className:b,d:DA(u,l,c,f,h)}))};function Pg(){return Pg=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},Pg.apply(this,arguments)}var Jc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Tt("recharts-dot",a);return r===+r&&n===+n&&i===+i?Hr.createElement("circle",Pg({},xt(t,!1),Fl(t),{className:o,cx:r,cy:n,r:i})):null};function pu(e){"@babel/helpers - typeof";return pu=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},pu(e)}var wG=["x","y","top","left","width","height","className"];function Eg(){return Eg=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},Eg.apply(this,arguments)}function IA(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 SG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(r),!0).forEach(function(n){AG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AG(e,t,r){return t=OG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OG(e){var t=TG(e,"string");return pu(t)=="symbol"?t:t+""}function TG(e,t){if(pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PG(e,t){if(e==null)return{};var r=EG(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 EG(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 CG=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},MG=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,d=PG(t,wG),m=SG({x:n,y:a,top:s,left:l,width:f,height:p},d);return!it(n)||!it(a)||!it(f)||!it(p)||!it(s)||!it(l)?null:O.createElement("path",Eg({},xt(m,!0),{className:Tt("recharts-cross",y),d:CG(n,a,f,p,s,l)}))},Dm,NA;function kG(){if(NA)return Dm;NA=1;var e=WE(),t=e(Object.getPrototypeOf,Object);return Dm=t,Dm}var Im,LA;function $G(){if(LA)return Im;LA=1;var e=Zn(),t=kG(),r=Jn(),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 Im=l,Im}var jG=$G();const RG=Bt(jG);var Nm,BA;function DG(){if(BA)return Nm;BA=1;var e=Zn(),t=Jn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Nm=n,Nm}var IG=DG();const NG=Bt(IG);function du(e){"@babel/helpers - typeof";return du=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},du(e)}function ac(){return ac=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},ac.apply(this,arguments)}function LG(e,t){return zG(e)||FG(e,t)||qG(e,t)||BG()}function BG(){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 qG(e,t){if(e){if(typeof e=="string")return qA(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 qA(e,t)}}function qA(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 FG(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 zG(e){if(Array.isArray(e))return e}function FA(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 zA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FA(Object(r),!0).forEach(function(n){UG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UG(e,t,r){return t=WG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WG(e){var t=HG(e,"string");return du(t)=="symbol"?t:t+""}function HG(e,t){if(du(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UA=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},GG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},KG=function(t){var r=zA(zA({},GG),t),n=O.useRef(),i=O.useState(-1),a=LG(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,d=r.animationDuration,m=r.animationBegin,v=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var _=Tt("recharts-trapezoid",p);return v?O.createElement(on,{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:d,animationEasing:y,isActive:v},function(b){var x=b.upperWidth,g=b.lowerWidth,w=b.height,S=b.x,A=b.y;return O.createElement(on,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:d,easing:y},O.createElement("path",ac({},xt(r,!0),{className:_,d:UA(S,A,x,g,w),ref:n})))}):O.createElement("g",null,O.createElement("path",ac({},xt(r,!0),{className:_,d:UA(u,l,c,f,h)})))},XG=["option","shapeType","propTransformer","activeClassName","isActive"];function mu(e){"@babel/helpers - typeof";return mu=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},mu(e)}function YG(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 WA(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 oc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(r),!0).forEach(function(n){ZG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WA(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 mu(t)=="symbol"?t:t+""}function QG(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t6(e,t){return oc(oc({},t),e)}function e6(e,t){return e==="symbols"}function HA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(E0,r);case"trapezoid":return O.createElement(KG,r);case"sector":return O.createElement(YC,r);case"symbols":if(e6(t))return O.createElement(Kc,r);break;default:return null}}function r6(e){return O.isValidElement(e)?e.props:e}function Cg(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=YG(e,XG),l;if(O.isValidElement(t))l=O.cloneElement(t,oc(oc({},u),r6(t)));else if(_t(t))l=t(u);else if(RG(t)&&!NG(t)){var c=i(t,u);l=O.createElement(HA,{shapeType:r,elementProps:c})}else{var f=u;l=O.createElement(HA,{shapeType:r,elementProps:f})}return s?O.createElement(jt,{className:o},l):l}function Qc(e,t){return t!=null&&"trapezoids"in e.props}function tf(e,t){return t!=null&&"sectors"in e.props}function yu(e,t){return t!=null&&"points"in e.props}function n6(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 i6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function a6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function o6(e,t){var r;return Qc(e,t)?r=n6:tf(e,t)?r=i6:yu(e,t)&&(r=a6),r}function s6(e,t){var r;return Qc(e,t)?r="trapezoids":tf(e,t)?r="sectors":yu(e,t)&&(r="points"),r}function u6(e,t){if(Qc(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(tf(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 yu(e,t)?t.payload:{}}function l6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=s6(r,t),a=u6(r,t),o=n.filter(function(u,l){var c=ca(a,u),f=r.props[i].filter(function(y){var d=o6(r,t);return d(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 gu(e){"@babel/helpers - typeof";return gu=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},gu(e)}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 KA(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){aM(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 aM(e,t,r){return t=c6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c6(e){var t=f6(e,"string");return gu(t)=="symbol"?t:t+""}function f6(e,t){if(gu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var h6=["Webkit","Moz","O","ms"],p6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=h6.reduce(function(a,o){return KA(KA({},a),{},aM({},o+n,r))},{});return i[t]=r,i};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 sc(){return sc=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},sc.apply(this,arguments)}function XA(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 Lm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XA(Object(r),!0).forEach(function(n){Sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YA(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,sM(n.key),n)}}function m6(e,t,r){return t&&YA(e.prototype,t),r&&YA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y6(e,t,r){return t=uc(t),g6(e,oM()?Reflect.construct(t,r||[],uc(e).constructor):t.apply(e,r))}function g6(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v6(e)}function v6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oM=function(){return!!e})()}function uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uc(e)}function b6(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 Sr(e,t,r){return t=sM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sM(e){var t=x6(e,"string");return ho(t)=="symbol"?t:t+""}function x6(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 String(e)}var _6=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=ps().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}},VA=function(t){return t.changedTouches&&!!t.changedTouches.length},po=(function(e){function t(r){var n;return d6(this,t),n=y6(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=VA(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 b6(t,e),m6(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=Pe(a[n],s,n);return _t(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,d=n.pageX-a;d>0?d=Math.min(d,l+c-f-s,l+c-f-o):d<0&&(d=Math.max(d,l-o,l-s));var m=this.getIndex({startX:o+d,endX:s+d});(m.startIndex!==h||m.endIndex!==p)&&y&&y(m),this.setState({startX:o+d,endX:s+d,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=VA(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,d=c.gap,m=c.data,v={startX:this.state.startX,endX:this.state.endX},_=n.pageX-a;_>0?_=Math.min(_,f+h-p-l):_<0&&(_=Math.max(_,f-l)),v[o]=l+_;var b=this.getIndex(v),x=b.startIndex,g=b.endIndex,w=function(){var A=m.length-1;return o==="startX"&&(s>u?x%d===0:g%d===0)||s<u&&g===A||o==="endX"&&(s>u?g%d===0:x%d===0)||s>u&&g===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,d=u.startIndex,m=u.endIndex,v=Math.max(n,this.props.x),_=Lm(Lm({},xt(this.props,!1)),{},{x:v,y:l,width:c,height:f}),b=p||"Min value: ".concat((a=y[d])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[m])===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(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,_))}},{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(Kl,sc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Kl,sc({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,d=h.isTextActive,m=h.isSlideMoving,v=h.isTravellerMoving,_=h.isTravellerFocused;if(!i||!i.length||!it(s)||!it(u)||!it(l)||!it(c)||l<=0||c<=0)return null;var b=Tt("recharts-brush",a),x=O.Children.count(o)===1,g=p6("userSelect","none");return O.createElement(jt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(d||m||v||_||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):_t(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 Lm({prevData:a,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:o},a&&a.length?_6({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(po,"displayName","Brush");Sr(po,"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 Bm,ZA;function w6(){if(ZA)return Bm;ZA=1;var e=v0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Bm=t,Bm}var qm,JA;function S6(){if(JA)return qm;JA=1;var e=LE(),t=Oi(),r=w6(),n=rr(),i=$u();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 qm=a,qm}var A6=S6();const O6=Bt(A6);var Pn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Fm,QA;function T6(){if(QA)return Fm;QA=1;var e=ZE();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Fm=t,Fm}var zm,tO;function P6(){if(tO)return zm;tO=1;var e=T6(),t=YE(),r=Oi();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 zm=n,zm}var E6=P6();const C6=Bt(E6);var Um,eO;function M6(){if(eO)return Um;eO=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 Um=e,Um}var Wm,rO;function k6(){if(rO)return Wm;rO=1;var e=v0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Wm=t,Wm}var Hm,nO;function $6(){if(nO)return Hm;nO=1;var e=M6(),t=k6(),r=Oi(),n=rr(),i=$u();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 Hm=a,Hm}var j6=$6();const uM=Bt(j6);var R6=["x","y"];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 kg(){return kg=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},kg.apply(this,arguments)}function iO(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 ns(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iO(Object(r),!0).forEach(function(n){D6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D6(e,t,r){return t=I6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I6(e){var t=N6(e,"string");return mo(t)=="symbol"?t:t+""}function N6(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(t==="string"?String:Number)(e)}function L6(e,t){if(e==null)return{};var r=B6(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 B6(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 q6(e,t){var r=e.x,n=e.y,i=L6(e,R6),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 ns(ns(ns(ns(ns({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function aO(e){return O.createElement(Cg,kg({shapeType:"rectangle",propTransformer:q6,activeClassName:"recharts-active-bar"},e))}var F6=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)||l5(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?lr(!1,"minPointSize callback function received a value with type of ".concat(mo(n),". Currently only numbers or null/undefined are supported.")):lr()),r)}},z6=["value","background"],lM;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 U6(e,t){if(e==null)return{};var r=W6(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 W6(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 lc(){return lc=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},lc.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 be(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){pi(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 H6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sO(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 G6(e,t,r){return t&&sO(e.prototype,t),r&&sO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function K6(e,t,r){return t=cc(t),X6(e,cM()?Reflect.construct(t,r||[],cc(e).constructor):t.apply(e,r))}function X6(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 Y6(e)}function Y6(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 V6(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&&$g(e,t)}function $g(e,t){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$g(e,t)}function pi(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=Z6(e,"string");return yo(t)=="symbol"?t:t+""}function Z6(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(t==="string"?String:Number)(e)}var Lo=(function(e){function t(){var r;H6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=K6(this,t,[].concat(i)),pi(r,"state",{isAnimationFinished:!1}),pi(r,"id",ba("recharts-bar-")),pi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),pi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return V6(t,e),G6(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=xt(this.props,!1);return n&&n.map(function(f,h){var p=h===u,y=p?l:o,d=be(be(be({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(jt,lc({className:"recharts-bar-rectangle"},Gs(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(aO,d))})}},{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(on,{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,d=a.map(function(m,v){var _=h&&h[v];if(_){var b=de(_.x,m.x),x=de(_.y,m.y),g=de(_.width,m.width),w=de(_.height,m.height);return be(be({},m),{},{x:b(y),y:x(y),width:g(y),height:w(y)})}if(o==="horizontal"){var S=de(0,m.height),A=S(y);return be(be({},m),{},{y:m.y+m.height-A,height:A})}var T=de(0,m.width),M=T(y);return be(be({},m),{},{width:M})});return O.createElement(jt,null,n.renderRectanglesStatically(d))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!ca(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=xt(this.props.background,!1);return a.map(function(l,c){l.value;var f=l.background,h=U6(l,z6);if(!f)return null;var p=be(be(be(be(be({},h),{},{fill:"#eee"},f),u),Gs(n.props,l,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(aO,lc({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=mr(c,No);if(!f)return null;var h=l==="vertical"?o[0].height/2:o[0].width/2,p=function(m,v){var _=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:_,errorVal:Pe(m,v)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(jt,y,f.map(function(d){return O.cloneElement(d,{key:"error-bar-".concat(i,"-").concat(d.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,d=n.id;if(i||!a||!a.length)return null;var m=this.state.isAnimationFinished,v=Tt("recharts-bar",o),_=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,x=_||b,g=vt(d)?this.id:d;return O.createElement(jt,{className:v},_||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},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(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,g),(!p||m)&&Tn.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);lM=Lo;pi(Lo,"displayName","Bar");pi(Lo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ti.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});pi(Lo,"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=mW(n,r);if(!p)return null;var y=t.layout,d=r.type.defaultProps,m=d!==void 0?be(be({},d),r.props):r.props,v=m.dataKey,_=m.children,b=m.minPointSize,x=y==="horizontal"?o:a,g=l?x.scale.domain():null,w=SW({numericAxis:x}),S=mr(_,S0),A=f.map(function(T,M){var P,E,C,j,k,$;l?P=yW(l[c+M],g):(P=Pe(T,v),Array.isArray(P)||(P=[w,P]));var N=F6(b,lM.defaultProps.minPointSize)(P[1],M);if(y==="horizontal"){var W,z=[o.scale(P[0]),o.scale(P[1])],I=z[0],B=z[1];E=FS({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:M}),C=(W=B??I)!==null&&W!==void 0?W:void 0,j=p.size;var D=I-B;if(k=Number.isNaN(D)?0:D,$={x:E,y:o.y,width:j,height:o.height},Math.abs(N)>0&&Math.abs(k)<Math.abs(N)){var F=an(k||N)*(Math.abs(N)-Math.abs(k));C-=F,k+=F}}else{var X=[a.scale(P[0]),a.scale(P[1])],L=X[0],Y=X[1];if(E=L,C=FS({axis:o,ticks:u,bandSize:i,offset:p.offset,entry:T,index:M}),j=Y-L,k=p.size,$={x:a.x,y:C,width:a.width,height:k},Math.abs(N)>0&&Math.abs(j)<Math.abs(N)){var Z=an(j||N)*(Math.abs(N)-Math.abs(j));j+=Z}}return be(be(be({},T),{},{x:E,y:C,width:j,height:k,value:l?P:P[1],payload:T,background:$},S&&S[M]&&S[M].props),{},{tooltipPayload:[GC(r,T)],tooltipPosition:{x:E+j/2,y:C+k/2}})});return be({data:A,layout:y},h)});function vu(e){"@babel/helpers - typeof";return vu=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},vu(e)}function J6(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,hM(n.key),n)}}function Q6(e,t,r){return t&&uO(e.prototype,t),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),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 tn(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){ef(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 ef(e,t,r){return t=hM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hM(e){var t=t4(e,"string");return vu(t)=="symbol"?t:t+""}function t4(e,t){if(vu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var e4=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=!!Ar(l,Lo);return c.reduce(function(p,y){var d=r[y],m=d.orientation,v=d.domain,_=d.padding,b=_===void 0?{}:_,x=d.mirror,g=d.reversed,w="".concat(m).concat(x?"Mirror":""),S,A,T,M,P;if(d.type==="number"&&(d.padding==="gap"||d.padding==="no-gap")){var E=v[1]-v[0],C=1/0,j=d.categoricalDomain.sort(p5);if(j.forEach(function(X,L){L>0&&(C=Math.min((X||0)-(j[L-1]||0),C))}),Number.isFinite(C)){var k=C/E,$=d.layout==="vertical"?n.height:n.width;if(d.padding==="gap"&&(S=k*$/2),d.padding==="no-gap"){var N=la(t.barCategoryGap,k*$),W=k*$/2;S=W-N-(W-N)/$*N}}}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=d.range,g&&(A=[A[1],A[0]]);var z=pW(d,a,h),I=z.scale,B=z.realScaleType;I.domain(v).range(A),dW(I);var D=wW(I,tn(tn({},d),{},{realScaleType:B}));i==="xAxis"?(P=m==="top"&&!x||m==="bottom"&&x,T=n.left,M=f[w]-P*d.height):i==="yAxis"&&(P=m==="left"&&!x||m==="right"&&x,T=f[w]-P*d.width,M=n.top);var F=tn(tn(tn({},d),D),{},{realScaleType:B,x:T,y:M,scale:I,width:i==="xAxis"?n.width:d.width,height:i==="yAxis"?n.height:d.height});return F.bandSize=Zl(F,D),!d.hide&&i==="xAxis"?f[w]+=(P?-1:1)*F.height:d.hide||(f[w]+=(P?-1:1)*F.width),tn(tn({},p),{},ef({},y,F))},{})},pM=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)}},r4=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return pM({x:r,y:n},{x:i,y:a})},dM=(function(){function e(t){J6(this,e),this.scale=t}return Q6(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)}}])})();ef(dM,"EPS",1e-4);var C0=function(t){var r=Object.keys(t).reduce(function(n,i){return tn(tn({},n),{},ef({},i,dM.create(t[i])))},{});return tn(tn({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return C6(i,function(u,l){return r[l].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return uM(i,function(a,o){return r[o].isInRange(a)})}})};function n4(e){return(e%180+180)%180}var i4=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=n4(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)},Gm,cO;function a4(){if(cO)return Gm;cO=1;var e=Oi(),t=Mu(),r=ku();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 Gm=n,Gm}var Km,fO;function o4(){if(fO)return Km;fO=1;var e=fC(),t=Oi(),r=a0(),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 Km=i,Km}var Xm,hO;function s4(){if(hO)return Xm;hO=1;var e=a4(),t=o4(),r=e(t);return Xm=r,Xm}var u4=s4();const l4=Bt(u4);var c4=RE();const f4=Bt(c4);var h4=f4(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 fc(e){"@babel/helpers - typeof";return fc=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},fc(e)}var M0=O.createContext(void 0),k0=O.createContext(void 0),mM=O.createContext(void 0),yM=O.createContext({}),gM=O.createContext(void 0),vM=O.createContext(0),bM=O.createContext(0),pO=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=h4(a);return O.createElement(M0.Provider,{value:n},O.createElement(k0.Provider,{value:i},O.createElement(yM.Provider,{value:a},O.createElement(mM.Provider,{value:c},O.createElement(gM.Provider,{value:o},O.createElement(vM.Provider,{value:l},O.createElement(bM.Provider,{value:u},s)))))))},p4=function(){return O.useContext(gM)};function xM(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var _M=function(t){var r=O.useContext(M0);r==null&&(process.env.NODE_ENV!=="production"?lr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):lr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?lr(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(fc(t),"]. ").concat(xM(r))):lr()),n},d4=function(){var t=O.useContext(M0);return ui(t)},m4=function(){var t=O.useContext(k0),r=l4(t,function(n){return uM(n.domain,Number.isFinite)});return r||ui(t)},wM=function(t){var r=O.useContext(k0);r==null&&(process.env.NODE_ENV!=="production"?lr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):lr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?lr(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(fc(t),"]. ").concat(xM(r))):lr()),n},y4=function(){var t=O.useContext(mM);return t},g4=function(){return O.useContext(yM)},$0=function(){return O.useContext(bM)},j0=function(){return O.useContext(vM)};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 v4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b4(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,AM(n.key),n)}}function x4(e,t,r){return t&&b4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _4(e,t,r){return t=hc(t),w4(e,SM()?Reflect.construct(t,r||[],hc(e).constructor):t.apply(e,r))}function w4(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 S4(e)}function S4(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 hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hc(e)}function A4(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&&jg(e,t)}function jg(e,t){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jg(e,t)}function dO(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 mO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dO(Object(r),!0).forEach(function(n){R0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R0(e,t,r){return t=AM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AM(e){var t=O4(e,"string");return go(t)=="symbol"?t:t+""}function O4(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)}function T4(e,t){return M4(e)||C4(e,t)||E4(e,t)||P4()}function P4(){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 yO(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 yO(e,t)}}function yO(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 C4(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 M4(e){if(Array.isArray(e))return e}function Rg(){return Rg=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},Rg.apply(this,arguments)}var k4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):_t(t)?n=t(r):n=O.createElement("line",Rg({},r,{className:"recharts-reference-line-line"})),n},$4=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,d=t.y.apply(y,{position:o});if(Pn(l,"discard")&&!t.y.isInRange(d))return null;var m=[{x:c+h,y:d},{x:c,y:d}];return u==="left"?m.reverse():m}if(r){var v=l.x,_=t.x.apply(v,{position:o});if(Pn(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,g=x.map(function(w){return t.apply(w,{position:o})});return Pn(l,"discard")&&O6(g,function(w){return!t.isInRange(w)})?null:g}return null};function j4(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=p4(),c=_M(i),f=wM(a),h=y4();if(!l||!h)return null;zn(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=C0({x:c.scale,y:f.scale}),y=Te(t),d=Te(r),m=n&&n.length===2,v=$4(p,y,d,m,h,e.position,c.orientation,f.orientation,e);if(!v)return null;var _=T4(v,2),b=_[0],x=b.x,g=b.y,w=_[1],S=w.x,A=w.y,T=Pn(e,"hidden")?"url(#".concat(l,")"):void 0,M=mO(mO({clipPath:T},xt(e,!0)),{},{x1:x,y1:g,x2:S,y2:A});return O.createElement(jt,{className:Tt("recharts-reference-line",s)},k4(o,M),Ge.renderCallByParent(e,r4({x1:x,y1:g,x2:S,y2:A})))}var rf=(function(e){function t(){return v4(this,t),_4(this,t,arguments)}return A4(t,e),x4(t,[{key:"render",value:function(){return O.createElement(j4,this.props)}}])})(O.Component);R0(rf,"displayName","ReferenceLine");R0(rf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});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 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 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 vO(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){nf(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 R4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D4(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 I4(e,t,r){return t&&D4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N4(e,t,r){return t=pc(t),L4(e,OM()?Reflect.construct(t,r||[],pc(e).constructor):t.apply(e,r))}function L4(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 B4(e)}function B4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OM=function(){return!!e})()}function pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pc(e)}function q4(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 nf(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=F4(e,"string");return vo(t)=="symbol"?t:t+""}function F4(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 z4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=C0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Pn(t,"discard")&&!o.isInRange(s)?null:s},af=(function(e){function t(){return R4(this,t),N4(this,t,arguments)}return q4(t,e),I4(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=Te(i),c=Te(a);if(zn(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var f=z4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,d=y.shape,m=y.className,v=Pn(this.props,"hidden")?"url(#".concat(u,")"):void 0,_=vO(vO({clipPath:v},xt(this.props,!0)),{},{cx:h,cy:p});return O.createElement(jt,{className:Tt("recharts-reference-dot",m)},t.renderDot(d,_),Ge.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);nf(af,"displayName","ReferenceDot");nf(af,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});nf(af,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):_t(e)?r=e(t):r=O.createElement(Jc,Dg({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});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 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 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 xO(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){of(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 U4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W4(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 H4(e,t,r){return t&&W4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G4(e,t,r){return t=dc(t),K4(e,PM()?Reflect.construct(t,r||[],dc(e).constructor):t.apply(e,r))}function K4(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 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 PM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PM=function(){return!!e})()}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(e)}function Y4(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&&Lg(e,t)}function Lg(e,t){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lg(e,t)}function of(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=V4(e,"string");return bo(t)=="symbol"?t:t+""}function V4(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 String(e)}var Z4=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=C0({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 Pn(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:pM(p,y)},sf=(function(e){function t(){return U4(this,t),G4(this,t,arguments)}return Y4(t,e),H4(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;zn(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Te(i),h=Te(a),p=Te(o),y=Te(s),d=this.props.shape;if(!f&&!h&&!p&&!y&&!d)return null;var m=Z4(f,h,p,y,this.props);if(!m&&!d)return null;var v=Pn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(jt,{className:Tt("recharts-reference-area",u)},t.renderRect(d,xO(xO({clipPath:v},xt(this.props,!0)),m)),Ge.renderCallByParent(this.props,m))}}])})(O.Component);of(sf,"displayName","ReferenceArea");of(sf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});of(sf,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):_t(e)?r=e(t):r=O.createElement(E0,Ng({},t,{className:"recharts-reference-area-rect"})),r});function CM(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 J4(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return i4(n,r)}function Q4(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 mc(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 tK(e,t){return CM(e,t+1)}function eK(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:CM(n,l)};var d=u,m,v=function(){return m===void 0&&(m=r(y,d)),m},_=y.coordinate,b=u===0||mc(e,_,v,c,s);b||(u=0,c=o,l+=1),b&&(c=_+e*(v()/2+i),u+=l)},h;l<=a.length;)if(h=f(),h)return h.v;return[]}function bu(e){"@babel/helpers - typeof";return bu=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},bu(e)}function _O(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 We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_O(Object(r),!0).forEach(function(n){rK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rK(e,t,r){return t=nK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nK(e){var t=iK(e,"string");return bu(t)=="symbol"?t:t+""}function iK(e,t){if(bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aK(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,d=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var m=e*(p.coordinate+e*d()/2-u);a[h]=p=We(We({},p),{},{tickCoord:m>0?p.coordinate-m*e:p.coordinate})}else a[h]=p=We(We({},p),{},{tickCoord:p.coordinate});var v=mc(e,p.tickCoord,d,s,u);v&&(u=p.tickCoord-e*(d()/2+i),a[h]=We(We({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)l(c);return a}function oK(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=We(We({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=mc(e,c.tickCoord,function(){return f},u,l);p&&(l=c.tickCoord-e*(f/2+i),o[s-1]=We(We({},c),{},{isShow:!0}))}for(var y=a?s-1:s,d=function(_){var b=o[_],x,g=function(){return x===void 0&&(x=r(b,_)),x};if(_===0){var w=e*(b.coordinate-e*g()/2-u);o[_]=b=We(We({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else o[_]=b=We(We({},b),{},{tickCoord:b.coordinate});var S=mc(e,b.tickCoord,g,u,l);S&&(u=b.tickCoord+e*(g()/2+i),o[_]=We(We({},b),{},{isShow:!0}))},m=0;m<y;m++)d(m);return o}function D0(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(it(u)||Ti.isSsr)return tK(i,typeof u=="number"&&it(u)?u:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?Ss(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},d=function(b,x){var g=_t(l)?l(b.value,x):b.value;return p==="width"?J4(Ss(g,{fontSize:t,letterSpacing:r}),y,f):Ss(g,{fontSize:t,letterSpacing:r})[p]},m=i.length>=2?an(i[1].coordinate-i[0].coordinate):1,v=Q4(a,m,p);return u==="equidistantPreserveStart"?eK(m,v,d,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=oK(m,v,d,i,o,u==="preserveStartEnd"):h=aK(m,v,d,i,o),h.filter(function(_){return _.isShow}))}var sK=["viewBox"],uK=["viewBox"],lK=["ticks"];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 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 wO(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?wO(Object(r),!0).forEach(function(n){I0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ym(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}function fK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SO(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,kM(n.key),n)}}function hK(e,t,r){return t&&SO(e.prototype,t),r&&SO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pK(e,t,r){return t=yc(t),dK(e,MM()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function dK(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 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 MM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MM=function(){return!!e})()}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(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&&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 I0(e,t,r){return t=kM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kM(e){var t=gK(e,"string");return xo(t)=="symbol"?t:t+""}function gK(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 String(e)}var Bo=(function(e){function t(r){var n;return fK(this,t),n=pK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return yK(t,e),hK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Ym(n,sK),s=this.props,u=s.viewBox,l=Ym(s,uK);return!Ha(a,u)||!Ha(o,l)||!Ha(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,d,m,v,_,b=f?-1:1,x=n.tickSize||c,g=it(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=y=n.coordinate,m=o+ +!f*u,d=m-b*x,_=d-b*h,v=g;break;case"left":d=m=n.coordinate,y=a+ +!f*s,p=y-b*x,v=p-b*h,_=g;break;case"right":d=m=n.coordinate,y=a+ +f*s,p=y+b*x,v=p+b*h,_=g;break;default:p=y=n.coordinate,m=o+ +f*u,d=m+b*x,_=d+b*h,v=g;break}return{line:{x1:p,y1:d,x2:y,y2:m},tick:{x:v,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=Ae(Ae(Ae({},xt(this.props,!1)),xt(c,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!l||u==="bottom"&&l);f=Ae(Ae({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(u==="left"&&!l||u==="right"&&l);f=Ae(Ae({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",Ia({},f,{className:Tt("recharts-cartesian-axis-line",Gr(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=D0(Ae(Ae({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),m=xt(this.props,!1),v=xt(c,!1),_=Ae(Ae({},m),{},{fill:"none"},xt(u,!1)),b=p.map(function(x,g){var w=o.getTickLineCoord(x),S=w.line,A=w.tick,T=Ae(Ae(Ae(Ae({textAnchor:y,verticalAnchor:d},m),{},{stroke:"none",fill:l},v),A),{},{index:g,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)},Gs(o.props,x,g)),u&&O.createElement("line",Ia({},_,S,{className:Tt("recharts-cartesian-axis-tick-line",Gr(u,"className"))})),c&&t.renderTickItem(c,T,"".concat(_t(f)?f(x.value,g):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=Ym(f,lK),y=h;return _t(u)&&(y=h&&h.length>0?u(this.props):u(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(jt,{className:Tt("recharts-cartesian-axis",l),ref:function(m){n.layerReference=m}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ge.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Tt(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,Ae(Ae({},i),{},{className:s})):_t(n)?o=n(Ae(Ae({},i),{},{className:s})):o=O.createElement(Kl,Ia({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);I0(Bo,"displayName","CartesianAxis");I0(Bo,"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 vK=["x1","y1","x2","y2","key"],bK=["offset"];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 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 Ke(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){xK(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 xK(e,t,r){return t=_K(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _K(e){var t=wK(e,"string");return ha(t)=="symbol"?t:t+""}function wK(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)}function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(this,arguments)}function OO(e,t){if(e==null)return{};var r=SK(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 SK(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 AK=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 $M(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(_t(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,u=OO(t,vK),l=xt(u,!1);l.offset;var c=OO(l,bK);r=O.createElement("line",Xi({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function OK(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=Ke(Ke({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return $M(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function TK(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=Ke(Ke({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return $M(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function PK(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],d=y?i+o-h:c[p+1]-h;if(d<=0)return null;var m=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:d,width:a,stroke:"none",fill:t[m],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],d=y?a+s-h:c[p+1]-h;if(d<=0)return null;var m=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:d,height:u,stroke:"none",fill:n[m],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var CK=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return WC(D0(Ke(Ke(Ke({},Bo.defaultProps),n),{},{ticks:qn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},MK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return WC(D0(Ke(Ke(Ke({},Bo.defaultProps),n),{},{ticks:qn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ma={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function jM(e){var t,r,n,i,a,o,s=$0(),u=j0(),l=g4(),c=Ke(Ke({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ma.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ma.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ma.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ma.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ma.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ma.verticalFill,x:it(e.x)?e.x:l.left,y:it(e.y)?e.y:l.top,width:it(e.width)?e.width:l.width,height:it(e.height)?e.height:l.height}),f=c.x,h=c.y,p=c.width,y=c.height,d=c.syncWithTicks,m=c.horizontalValues,v=c.verticalValues,_=d4(),b=m4();if(!it(p)||p<=0||!it(y)||y<=0||!it(f)||f!==+f||!it(h)||h!==+h)return null;var x=c.verticalCoordinatesGenerator||CK,g=c.horizontalCoordinatesGenerator||MK,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&_t(g)){var A=m&&m.length,T=g({yAxis:b?Ke(Ke({},b),{},{ticks:A?m:b.ticks}):void 0,width:s,height:u,offset:l},A?!0:d);zn(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ha(T),"]")),Array.isArray(T)&&(w=T)}if((!S||!S.length)&&_t(x)){var M=v&&v.length,P=x({xAxis:_?Ke(Ke({},_),{},{ticks:M?v:_.ticks}):void 0,width:s,height:u,offset:l},M?!0:d);zn(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ha(P),"]")),Array.isArray(P)&&(S=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(AK,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(OK,Xi({},c,{offset:l,horizontalPoints:w,xAxis:_,yAxis:b})),O.createElement(TK,Xi({},c,{offset:l,verticalPoints:S,xAxis:_,yAxis:b})),O.createElement(PK,Xi({},c,{horizontalPoints:w})),O.createElement(EK,Xi({},c,{verticalPoints:S})))}jM.displayName="CartesianGrid";var kK=["type","layout","connectNulls","ref"],$K=["key"];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 TO(e,t){if(e==null)return{};var r=jK(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 jK(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 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)}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 wr(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){en(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 ka(e){return NK(e)||IK(e)||DK(e)||RK()}function RK(){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 DK(e,t){if(e){if(typeof e=="string")return qg(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 qg(e,t)}}function IK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NK(e){if(Array.isArray(e))return qg(e)}function qg(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 LK(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,DM(n.key),n)}}function BK(e,t,r){return t&&EO(e.prototype,t),r&&EO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qK(e,t,r){return t=gc(t),FK(e,RM()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function FK(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 zK(e)}function zK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RM=function(){return!!e})()}function gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(e)}function UK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 en(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=WK(e,"string");return _o(t)=="symbol"?t:t+""}function WK(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(t==="string"?String:Number)(e)}var uf=(function(e){function t(){var r;LK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=qK(this,t,[].concat(i)),en(r,"state",{isAnimationFinished:!0,totalLength:0}),en(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),en(r,"getStrokeDasharray",function(o,s,u){var l=u.reduce(function(v,_){return v+_});if(!l)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/l),f=o%l,h=s-o,p=[],y=0,d=0;y<u.length;d+=u[y],++y)if(d+u[y]>f){p=[].concat(ka(u.slice(0,y)),[f-d]);break}var m=p.length%2===0?[0,h]:[h];return[].concat(ka(t.repeat(u,c)),ka(p),m).map(function(v){return"".concat(v,"px")}).join(", ")}),en(r,"id",ba("recharts-line-")),en(r,"pathRef",function(o){r.mainCurve=o}),en(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),en(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return UK(t,e),BK(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=mr(c,No);if(!f)return null;var h=function(d,m){return{x:d.x,y:d.y,value:d.value,errorVal:Pe(d.payload,m)}},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=xt(this.props,!1),h=xt(u,!0),p=l.map(function(d,m){var v=wr(wr(wr({key:"dot-".concat(m),r:3},f),h),{},{index:m,cx:d.x,cy:d.y,value:d.value,dataKey:c,payload:d.payload,points:l});return t.renderDotItem(u,v)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(jt,Ts({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=TO(s,kK),h=wr(wr(wr({},xt(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(na,Ts({},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,d=o.width,m=o.height,v=this.state,_=v.prevPoints,b=v.totalLength;return O.createElement(on,{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 g=x.t;if(_){var w=_.length/s.length,S=s.map(function(E,C){var j=Math.floor(C*w);if(_[j]){var k=_[j],$=de(k.x,E.x),N=de(k.y,E.y);return wr(wr({},E),{},{x:$(g),y:N(g)})}if(y){var W=de(d*2,E.x),z=de(m/2,E.y);return wr(wr({},E),{},{x:W(g),y:z(g)})}return wr(wr({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=de(0,b),T=A(g),M;if(u){var P="".concat(u).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});M=a.getStrokeDasharray(T,b,P)}else M=a.generateSimpleStrokeDasharray(b,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:M})})}},{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||!ca(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,d=i.isAnimationActive,m=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,_=s.length===1,b=Tt("recharts-line",u),x=l&&l.allowDataOverflow,g=c&&c.allowDataOverflow,w=x||g,S=vt(m)?this.id:m,A=(n=xt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=oC(o)?o:{},j=C.clipDot,k=j===void 0?!0:j,$=M*2+E;return O.createElement(jt,{className:b},x||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:x?h:h-p/2,y:g?f:f-y/2,width:x?p:p*2,height:g?y:y*2})),!k&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-$/2,y:f-$/2,width:p+$,height:y+$}))):null,!_&&this.renderCurve(w,S),this.renderErrorBar(w,S),(_||o)&&this.renderDots(w,k,S),(!d||v)&&Tn.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(ka(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(ka(o),ka(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(_t(n))a=n(i);else{var o=i.key,s=TO(i,$K),u=Tt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Jc,Ts({key:o},s,{className:u}))}return a}}])})(O.PureComponent);en(uf,"displayName","Line");en(uf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ti.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});en(uf,"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=Pe(h,o);return c==="horizontal"?{x:co({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:vt(y)?null:n.scale(y),value:y,payload:h}:{x:vt(y)?null:r.scale(y),y:co({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return wr({points:f,layout:c},l)});var HK=["layout","type","stroke","connectNulls","isRange","ref"],GK=["key"],IM;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 NM(e,t){if(e==null)return{};var r=KK(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 KK(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 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 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 oi(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){An(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 XK(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 YK(e,t,r){return t&&MO(e.prototype,t),r&&MO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VK(e,t,r){return t=vc(t),ZK(e,LM()?Reflect.construct(t,r||[],vc(e).constructor):t.apply(e,r))}function ZK(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 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 vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(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&&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 An(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=tX(e,"string");return wo(t)=="symbol"?t:t+""}function tX(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 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=VK(this,t,[].concat(i)),An(r,"state",{isAnimationFinished:!0}),An(r,"id",ba("recharts-area-")),An(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),_t(o)&&o()}),An(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),_t(o)&&o()}),r}return QK(t,e),YK(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=xt(this.props,!1),p=xt(l,!0),y=c.map(function(m,v){var _=oi(oi(oi({key:"dot-".concat(v),r:3},h),p),{},{index:v,cx:m.x,cy:m.y,dataKey:f,value:m.value,payload:m.payload,points:c});return t.renderDotItem(l,_)}),d={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(jt,Yi({className:"recharts-area-dots"},d),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=hi(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(hi(a.map(function(h){return h.y||0})),f)),it(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=hi(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(hi(a.map(function(h){return h.x||0})),f)),it(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=NM(s,HK);return O.createElement(jt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(na,Yi({},xt(p,!0),{points:n,connectNulls:f,type:l,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(na,Yi({},xt(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(na,Yi({},xt(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,d=y.prevPoints,m=y.prevBaseLine;return O.createElement(on,{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(v){var _=v.t;if(d){var b=d.length/s.length,x=s.map(function(A,T){var M=Math.floor(T*b);if(d[M]){var P=d[M],E=de(P.x,A.x),C=de(P.y,A.y);return oi(oi({},A),{},{x:E(_),y:C(_)})}return A}),g;if(it(u)&&typeof u=="number"){var w=de(m,u);g=w(_)}else if(vt(u)||Ro(u)){var S=de(m,0);g=S(_)}else g=u.map(function(A,T){var M=Math.floor(T*b);if(m[M]){var P=m[M],E=de(P.x,A.x),C=de(P.y,A.y);return oi(oi({},A),{},{x:E(_),y:C(_)})}return A});return a.renderAreaStatically(x,g,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||!ca(c,o)||!ca(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,d=i.isAnimationActive,m=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,_=s.length===1,b=Tt("recharts-area",u),x=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,w=x||g,S=vt(m)?this.id:m,A=(n=xt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=oC(o)?o:{},j=C.clipDot,k=j===void 0?!0:j,$=M*2+E;return O.createElement(jt,{className:b},x||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:x?c:c-p/2,y:g?l:l-y/2,width:x?p:p*2,height:g?y:y*2})),!k&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-$/2,y:l-$/2,width:p+$,height:y+$}))):null,_?null:this.renderArea(w,S),(o||_)&&this.renderDots(w,k,S),(!d||v)&&Tn.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);IM=Ei;An(Ei,"displayName","Area");An(Ei,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ti.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});An(Ei,"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 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]});An(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,d=IM.getBaseValue(t,r,n,i),m=p==="horizontal",v=!1,_=f.map(function(x,g){var w;y?w=l[c+g]:(w=Pe(x,u),Array.isArray(w)?v=!0:w=[d,w]);var S=w[1]==null||y&&Pe(x,u)==null;return m?{x:co({axis:n,ticks:a,bandSize:s,entry:x,index:g}),y:S?null:i.scale(w[1]),value:w,payload:x}:{x:S?null:n.scale(w[1]),y:co({axis:i,ticks:o,bandSize:s,entry:x,index:g}),value:w,payload:x}}),b;return y||v?b=_.map(function(x){var g=Array.isArray(x.value)?x.value[0]:null;return m?{x:x.x,y:g!=null&&x.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:x.y}}):b=m?i.scale(d):n.scale(d),oi({points:_,baseLine:b,layout:p,isRange:v},h)});An(Ei,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(_t(e))r=e(t);else{var n=Tt("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=NM(t,GK);r=O.createElement(Jc,Yi({},a,{key:i,className:n}))}return r});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 eX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rX(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 nX(e,t,r){return t&&rX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iX(e,t,r){return t=bc(t),aX(e,qM()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function aX(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 oX(e)}function oX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qM=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function sX(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 FM(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=uX(e,"string");return So(t)=="symbol"?t:t+""}function uX(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(t==="string"?String:Number)(e)}var lf=(function(e){function t(){return eX(this,t),iX(this,t,arguments)}return sX(t,e),nX(t,[{key:"render",value:function(){return null}}])})(Hr.Component);FM(lf,"displayName","ZAxis");FM(lf,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var lX=["option","isActive"];function Ps(){return Ps=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},Ps.apply(this,arguments)}function cX(e,t){if(e==null)return{};var r=fX(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 fX(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 hX(e){var t=e.option,r=e.isActive,n=cX(e,lX);return typeof t=="string"?Hr.createElement(Cg,Ps({option:Hr.createElement(Kc,Ps({type:t},n)),isActive:r,shapeType:"symbols"},n)):Hr.createElement(Cg,Ps({option:t,isActive:r,shapeType:"symbols"},n))}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 Es(){return Es=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},Es.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 qr(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){di(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 pX(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,WM(n.key),n)}}function dX(e,t,r){return t&&$O(e.prototype,t),r&&$O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mX(e,t,r){return t=xc(t),yX(e,UM()?Reflect.construct(t,r||[],xc(e).constructor):t.apply(e,r))}function yX(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 gX(e)}function gX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UM=function(){return!!e})()}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xc(e)}function vX(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 di(e,t,r){return t=WM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WM(e){var t=bX(e,"string");return Ao(t)=="symbol"?t:t+""}function bX(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(t==="string"?String:Number)(e)}var cf=(function(e){function t(){var r;pX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=mX(this,t,[].concat(i)),di(r,"state",{isAnimationFinished:!1}),di(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),di(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),di(r,"id",ba("recharts-scatter-")),r}return vX(t,e),dX(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,u=a.activeIndex,l=xt(this.props,!1);return n.map(function(c,f){var h=u===f,p=h?s:o,y=qr(qr({},l),c);return O.createElement(jt,Es({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)},Gs(i.props,c,f),{role:"img"}),O.createElement(hX,Es({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(on,{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(d,m){var v=f&&f[m];if(v){var _=de(v.cx,d.cx),b=de(v.cy,d.cy),x=de(v.size,d.size);return qr(qr({},d),{},{cx:_(p),cy:b(p),size:x(p)})}var g=de(0,d.size);return qr(qr({},d),{},{size:g(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||!ca(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=mr(u,No);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(m,v){return{x:m.cx,y:m.cy,value:p==="x"?+m.node.x:+m.node.y,errorVal:Pe(m,v)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,u=xt(this.props,!1),l=xt(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=h5(i),p=h.xmin,y=h.xmax,d=h.a,m=h.b,v=function(x){return d*x+m};c=[{x:p,y:v(p)},{x:y,y:v(y)}]}var _=qr(qr(qr({},u),{},{fill:"none",stroke:u&&u.fill},l),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,_):_t(a)?f=a(_):f=O.createElement(na,Es({},_,{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,d=n.isAnimationActive;if(i||!a||!a.length)return null;var m=this.state.isAnimationFinished,v=Tt("recharts-scatter",s),_=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,x=_||b,g=vt(y)?this.id:y;return O.createElement(jt,{className:v,clipPath:x?"url(#clipPath-".concat(g,")"):null},_||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},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()),(!d||m)&&Tn.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);di(cf,"displayName","Scatter");di(cf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Ti.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});di(cf,"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=mr(i.props.children,S0),f=vt(t.dataKey)?i.props.dataKey:t.dataKey,h=vt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:lf.defaultProps.range,d=y&&y[0],m=t.scale.bandwidth?t.scale.bandwidth():0,v=r.scale.bandwidth?r.scale.bandwidth():0,_=a.map(function(b,x){var g=Pe(b,f),w=Pe(b,h),S=!vt(p)&&Pe(b,p)||"-",A=[{name:vt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:b,dataKey:f,type:l},{name:vt(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 T=co({axis:t,ticks:o,bandSize:m,entry:b,index:x,dataKey:f}),M=co({axis:r,ticks:s,bandSize:v,entry:b,index:x,dataKey:h}),P=S!=="-"?n.scale(S):d,E=Math.sqrt(Math.max(P,0)/Math.PI);return qr(qr({},b),{},{cx:T,cy:M,x:T-E,y:M-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:g,y:w,z:S},tooltipPayload:A,tooltipPosition:{x:T,y:M},payload:b},c&&c[x]&&c[x].props)});return qr({points:_},u)});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 xX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _X(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,KM(n.key),n)}}function wX(e,t,r){return t&&_X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SX(e,t,r){return t=_c(t),AX(e,HM()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function AX(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 OX(e)}function OX(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 _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function TX(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 GM(e,t,r){return t=KM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KM(e){var t=PX(e,"string");return Oo(t)=="symbol"?t:t+""}function PX(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 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)}function EX(e){var t=e.xAxisId,r=$0(),n=j0(),i=_M(t);return i==null?null:Hr.createElement(Bo,Gg({},i,{className:Tt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return qn(o,!0)}}))}var ff=(function(e){function t(){return xX(this,t),SX(this,t,arguments)}return TX(t,e),wX(t,[{key:"render",value:function(){return Hr.createElement(EX,this.props)}}])})(Hr.Component);GM(ff,"displayName","XAxis");GM(ff,"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 To(e){"@babel/helpers - typeof";return To=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},To(e)}function CX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VM(n.key),n)}}function kX(e,t,r){return t&&MX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $X(e,t,r){return t=wc(t),jX(e,XM()?Reflect.construct(t,r||[],wc(e).constructor):t.apply(e,r))}function jX(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RX(e)}function RX(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 wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wc(e)}function DX(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 YM(e,t,r){return t=VM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VM(e){var t=IX(e,"string");return To(t)=="symbol"?t:t+""}function IX(e,t){if(To(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(To(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xg(){return Xg=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},Xg.apply(this,arguments)}var NX=function(t){var r=t.yAxisId,n=$0(),i=j0(),a=wM(r);return a==null?null:Hr.createElement(Bo,Xg({},a,{className:Tt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return qn(s,!0)}}))},hf=(function(e){function t(){return CX(this,t),$X(this,t,arguments)}return DX(t,e),kX(t,[{key:"render",value:function(){return Hr.createElement(NX,this.props)}}])})(Hr.Component);YM(hf,"displayName","YAxis");YM(hf,"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 jO(e){return FX(e)||qX(e)||BX(e)||LX()}function LX(){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 BX(e,t){if(e){if(typeof e=="string")return Yg(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 Yg(e,t)}}function qX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FX(e){if(Array.isArray(e))return Yg(e)}function Yg(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 Vg=function(t,r,n,i,a){var o=mr(t,rf),s=mr(t,af),u=[].concat(jO(o),jO(s)),l=mr(t,sf),c="".concat(i,"Id"),f=i[0],h=r;if(u.length&&(h=u.reduce(function(d,m){if(m.props[c]===n&&Pn(m.props,"extendDomain")&&it(m.props[f])){var v=m.props[f];return[Math.min(d[0],v),Math.max(d[1],v)]}return d},h)),l.length){var p="".concat(f,"1"),y="".concat(f,"2");h=l.reduce(function(d,m){if(m.props[c]===n&&Pn(m.props,"extendDomain")&&it(m.props[p])&&it(m.props[y])){var v=m.props[p],_=m.props[y];return[Math.min(d[0],v,_),Math.max(d[1],v,_)]}return d},h)}return a&&a.length&&(h=a.reduce(function(d,m){return it(m)?[Math.min(d[0],m),Math.max(d[1],m)]:d},h)),h},Vm={exports:{}},RO;function zX(){return RO||(RO=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 d=r?r+l:l;if(!this._events[d])return!1;var m=this._events[d],v=arguments.length,_,b;if(m.fn){switch(m.once&&this.removeListener(l,m.fn,void 0,!0),v){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,c),!0;case 3:return m.fn.call(m.context,c,f),!0;case 4:return m.fn.call(m.context,c,f,h),!0;case 5:return m.fn.call(m.context,c,f,h,p),!0;case 6:return m.fn.call(m.context,c,f,h,p,y),!0}for(b=1,_=new Array(v-1);b<v;b++)_[b-1]=arguments[b];m.fn.apply(m.context,_)}else{var x=m.length,g;for(b=0;b<x;b++)switch(m[b].once&&this.removeListener(l,m[b].fn,void 0,!0),v){case 1:m[b].fn.call(m[b].context);break;case 2:m[b].fn.call(m[b].context,c);break;case 3:m[b].fn.call(m[b].context,c,f);break;case 4:m[b].fn.call(m[b].context,c,f,h);break;default:if(!_)for(g=1,_=new Array(v-1);g<v;g++)_[g-1]=arguments[g];m[b].fn.apply(m[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 d=0,m=[],v=y.length;d<v;d++)(y[d].fn!==c||h&&!y[d].once||f&&y[d].context!==f)&&m.push(y[d]);m.length?this._events[p]=m.length===1?m[0]:m: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})(Vm)),Vm.exports}var UX=zX();const WX=Bt(UX);var Zm=new WX,Jm="recharts.syncMouseEvents";function xu(e){"@babel/helpers - typeof";return xu=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},xu(e)}function HX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GX(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 KX(e,t,r){return t&&GX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qm(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=XX(e,"string");return xu(t)=="symbol"?t:t+""}function XX(e,t){if(xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var YX=(function(){function e(){HX(this,e),Qm(this,"activeIndex",0),Qm(this,"coordinateList",[]),Qm(this,"layout","horizontal")}return KX(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 VX(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 ZX(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 JM(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ne(t,r,n,i),s=Ne(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function JX(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=Ne(s,u,l,f),p=Ne(s,u,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return JM(t);return[{x:n,y:i},{x:a,y:o}]}function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function DO(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 rl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){QX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QX(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 _u(t)=="symbol"?t:t+""}function eY(e,t){if(_u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rY(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,d=na;if(h==="ScatterChart")y=o,d=MG;else if(h==="BarChart")y=ZX(f,o,u,c),d=E0;else if(f==="radial"){var m=JM(o),v=m.cx,_=m.cy,b=m.radius,x=m.startAngle,g=m.endAngle;y={cx:v,cy:_,startAngle:x,endAngle:g,innerRadius:b,outerRadius:b},d=YC}else y={points:JX(f,o,u)},d=na;var w=rl(rl(rl(rl({stroke:"#ccc",pointerEvents:"none"},u),y),xt(p,!1)),{},{payload:s,payloadIndex:l,className:Tt("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(d,w)}var nY=["item"],iY=["children","className","width","height","style","compact","title","desc"];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 Na(){return Na=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},Na.apply(this,arguments)}function IO(e,t){return sY(e)||oY(e,t)||tk(e,t)||aY()}function aY(){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 oY(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 sY(e){if(Array.isArray(e))return e}function NO(e,t){if(e==null)return{};var r=uY(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 uY(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 lY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ek(n.key),n)}}function fY(e,t,r){return t&&cY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hY(e,t,r){return t=Sc(t),pY(e,QM()?Reflect.construct(t,r||[],Sc(e).constructor):t.apply(e,r))}function pY(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 dY(e)}function dY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QM=function(){return!!e})()}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sc(e)}function mY(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 Eo(e){return vY(e)||gY(e)||tk(e)||yY()}function yY(){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 tk(e,t){if(e){if(typeof e=="string")return Jg(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 Jg(e,t)}}function gY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vY(e){if(Array.isArray(e))return Jg(e)}function Jg(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 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 V(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){mt(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 mt(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=bY(e,"string");return Po(t)=="symbol"?t:t+""}function bY(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 xY={xAxis:["bottom","top"],yAxis:["left","right"]},_Y={width:"100%",height:"100%"},rk={x:0,y:0};function nl(e){return e}var wY=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},SY=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 V(V(V({},i),Ne(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var u=a.coordinate,l=i.angle;return V(V(V({},i),Ne(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}return rk},pf=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(Eo(s),Eo(l)):s},[]);return o.length>0?o:t&&t.length&&it(i)&&it(a)?t.slice(i,a+1):[]};function nk(e){return e==="number"?[0,"auto"]:void 0}var Qg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=pf(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=ql(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Eo(u),[GC(l,h)]):u},[])},BO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=wY(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=sW(o,s,l,u);if(c>=0&&l){var f=l[c]&&l[c].value,h=Qg(t,r,c,f),p=SY(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},AY=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=UC(c,a);return n.reduce(function(y,d){var m,v=d.type.defaultProps!==void 0?V(V({},d.type.defaultProps),d.props):d.props,_=v.type,b=v.dataKey,x=v.allowDataOverflow,g=v.allowDuplicatedCategory,w=v.scale,S=v.ticks,A=v.includeHidden,T=v[o];if(y[T])return y;var M=pf(t.data,{graphicalItems:i.filter(function(D){var F,X=o in D.props?D.props[o]:(F=D.type.defaultProps)===null||F===void 0?void 0:F[o];return X===T}),dataStartIndex:u,dataEndIndex:l}),P=M.length,E,C,j;VX(v.domain,x,_)&&(E=pg(v.domain,null,x),p&&(_==="number"||w!=="auto")&&(j=As(M,b,"category")));var k=nk(_);if(!E||E.length===0){var $,N=($=v.domain)!==null&&$!==void 0?$:k;if(b){if(E=As(M,b,_),_==="category"&&p){var W=f5(E);g&&W?(C=E,E=Hs(0,P)):g||(E=WS(N,E,d).reduce(function(D,F){return D.indexOf(F)>=0?D:[].concat(Eo(D),[F])},[]))}else if(_==="category")g?E=E.filter(function(D){return D!==""&&!vt(D)}):E=WS(N,E,d).reduce(function(D,F){return D.indexOf(F)>=0||F===""||vt(F)?D:[].concat(Eo(D),[F])},[]);else if(_==="number"){var z=hW(M,i.filter(function(D){var F,X,L=o in D.props?D.props[o]:(F=D.type.defaultProps)===null||F===void 0?void 0:F[o],Y="hide"in D.props?D.props.hide:(X=D.type.defaultProps)===null||X===void 0?void 0:X.hide;return L===T&&(A||!Y)}),b,a,c);z&&(E=z)}p&&(_==="number"||w!=="auto")&&(j=As(M,b,"category"))}else p?E=Hs(0,P):s&&s[T]&&s[T].hasStack&&_==="number"?E=h==="expand"?[0,1]:HC(s[T].stackGroups,u,l):E=zC(M,i.filter(function(D){var F=o in D.props?D.props[o]:D.type.defaultProps[o],X="hide"in D.props?D.props.hide:D.type.defaultProps.hide;return F===T&&(A||!X)}),_,c,!0);if(_==="number")E=Vg(f,E,T,a,S),N&&(E=pg(N,E,x));else if(_==="category"&&N){var I=N,B=E.every(function(D){return I.indexOf(D)>=0});B&&(E=I)}}return V(V({},y),{},mt({},T,V(V({},v),{},{axisType:a,domain:E,categoricalDomain:j,duplicateDomain:C,originalDomain:(m=v.domain)!==null&&m!==void 0?m:k,isCategorical:p,layout:c})))},{})},OY=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=pf(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),p=h.length,y=UC(c,a),d=-1;return n.reduce(function(m,v){var _=v.type.defaultProps!==void 0?V(V({},v.type.defaultProps),v.props):v.props,b=_[o],x=nk("number");if(!m[b]){d++;var g;return y?g=Hs(0,p):s&&s[b]&&s[b].hasStack?(g=HC(s[b].stackGroups,u,l),g=Vg(f,g,b,a)):(g=pg(x,zC(h,n.filter(function(w){var S,A,T=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],M="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===b&&!M}),"number",c),i.defaultProps.allowDataOverflow),g=Vg(f,g,b,a)),V(V({},m),{},mt({},b,V(V({axisType:a},i.defaultProps),{},{hide:!0,orientation:Gr(xY,"".concat(a,".").concat(d%2),null),domain:g,originalDomain:x,isCategorical:y,layout:c})))}return m},{})},TY=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=mr(c,a),p={};return h&&h.length?p=AY(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(p=OY(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),p},PY=function(t){var r=ui(t),n=qn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Hc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Zl(r,n)}},qO=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ar(r,po),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}},EY=function(t){return!t||!t.length?!1:t.some(function(r){var n=Fn(r&&r.type);return n&&n.indexOf("Bar")>=0})},FO=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"}},CY=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=Ar(f,po),y=Ar(f,ea),d=Object.keys(u).reduce(function(g,w){var S=u[w],A=S.orientation;return!S.mirror&&!S.hide?V(V({},g),{},mt({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),m=Object.keys(o).reduce(function(g,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?V(V({},g),{},mt({},A,Gr(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),v=V(V({},m),d),_=v.bottom;p&&(v.bottom+=p.props.height||po.defaultProps.height),y&&r&&(v=cW(v,i,n,r));var b=l-v.left-v.right,x=c-v.top-v.bottom;return V(V({brushBottom:_},v),{},{width:Math.max(b,0),height:Math.max(x,0)})},MY=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},kY=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(v,_){var b=_.graphicalItems,x=_.stackGroups,g=_.offset,w=_.updateId,S=_.dataStartIndex,A=_.dataEndIndex,T=v.barSize,M=v.layout,P=v.barGap,E=v.barCategoryGap,C=v.maxBarSize,j=FO(M),k=j.numericAxisName,$=j.cateAxisName,N=EY(b),W=[];return b.forEach(function(z,I){var B=pf(v.data,{graphicalItems:[z],dataStartIndex:S,dataEndIndex:A}),D=z.type.defaultProps!==void 0?V(V({},z.type.defaultProps),z.props):z.props,F=D.dataKey,X=D.maxBarSize,L=D["".concat(k,"Id")],Y=D["".concat($,"Id")],Z={},H=u.reduce(function(at,pt){var St,qt,ne=_["".concat(pt.axisType,"Map")],$t=D["".concat(pt.axisType,"Id")];ne&&ne[$t]||pt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?lr(!1,"Specifying a(n) ".concat(pt.axisType,"Id requires a corresponding ").concat(pt.axisType,"Id on the targeted graphical component ").concat((St=z==null||(qt=z.type)===null||qt===void 0?void 0:qt.displayName)!==null&&St!==void 0?St:"")):lr());var Ft=ne[$t];return V(V({},at),{},mt(mt({},pt.axisType,Ft),"".concat(pt.axisType,"Ticks"),qn(Ft)))},Z),q=H[$],K=H["".concat($,"Ticks")],Q=x&&x[L]&&x[L].hasStack&&AW(z,x[L].stackGroups),R=Fn(z.type).indexOf("Bar")>=0,J=Zl(q,K),U=[],ot=N&&uW({barSize:T,stackGroups:x,totalSize:MY(H,$)});if(R){var yt,st,ht=vt(X)?C:X,ft=(yt=(st=Zl(q,K,!0))!==null&&st!==void 0?st:ht)!==null&&yt!==void 0?yt:0;U=lW({barGap:P,barCategoryGap:E,bandSize:ft!==J?ft:J,sizeList:ot[Y],maxBarSize:ht}),ft!==J&&(U=U.map(function(at){return V(V({},at),{},{position:V(V({},at.position),{},{offset:at.position.offset-ft/2})})}))}var Ot=z&&z.type&&z.type.getComposedData;Ot&&W.push({props:V(V({},Ot(V(V({},H),{},{displayedData:B,props:v,dataKey:F,item:z,bandSize:J,barPosition:U,offset:g,stackedData:Q,layout:M,dataStartIndex:S,dataEndIndex:A}))),{},mt(mt(mt({key:z.key||"item-".concat(I)},k,H[k]),$,H[$]),"animationId",w)),childIndex:A5(z,v.children),item:z})}),W},p=function(v,_){var b=v.props,x=v.dataStartIndex,g=v.dataEndIndex,w=v.updateId;if(!Pw({props:b}))return null;var S=b.children,A=b.layout,T=b.stackOffset,M=b.data,P=b.reverseStackOrder,E=FO(A),C=E.numericAxisName,j=E.cateAxisName,k=mr(S,n),$=_W(M,k,"".concat(C,"Id"),"".concat(j,"Id"),T,P),N=u.reduce(function(D,F){var X="".concat(F.axisType,"Map");return V(V({},D),{},mt({},X,TY(b,V(V({},F),{},{graphicalItems:k,stackGroups:F.axisType===C&&$,dataStartIndex:x,dataEndIndex:g}))))},{}),W=CY(V(V({},N),{},{props:b,graphicalItems:k}),_==null?void 0:_.legendBBox);Object.keys(N).forEach(function(D){N[D]=c(b,N[D],W,D.replace("Map",""),r)});var z=N["".concat(j,"Map")],I=PY(z),B=h(b,V(V({},N),{},{dataStartIndex:x,dataEndIndex:g,updateId:w,graphicalItems:k,stackGroups:$,offset:W}));return V(V({formattedGraphicalItems:B,graphicalItems:k,offset:W,stackGroups:$},I),N)},y=(function(m){function v(_){var b,x,g;return lY(this,v),g=hY(this,v,[_]),mt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),mt(g,"accessibilityManager",new YX),mt(g,"handleLegendBBoxUpdate",function(w){if(w){var S=g.state,A=S.dataStartIndex,T=S.dataEndIndex,M=S.updateId;g.setState(V({legendBBox:w},p({props:g.props,dataStartIndex:A,dataEndIndex:T,updateId:M},V(V({},g.state),{},{legendBBox:w}))))}}),mt(g,"handleReceiveSyncEvent",function(w,S,A){if(g.props.syncId===w){if(A===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),mt(g,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==g.state.dataStartIndex||A!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return V({dataStartIndex:S,dataEndIndex:A},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),mt(g,"handleMouseEnter",function(w){var S=g.getMouseInfo(w);if(S){var A=V(V({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseEnter;_t(T)&&T(A,w)}}),mt(g,"triggeredAfterMouseMove",function(w){var S=g.getMouseInfo(w),A=S?V(V({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseMove;_t(T)&&T(A,w)}),mt(g,"handleItemMouseEnter",function(w){g.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),mt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),mt(g,"handleMouseMove",function(w){w.persist(),g.throttleTriggeredAfterMouseMove(w)}),mt(g,"handleMouseLeave",function(w){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseLeave;_t(A)&&A(S,w)}),mt(g,"handleOuterEvent",function(w){var S=S5(w),A=Gr(g.props,"".concat(S));if(S&&_t(A)){var T,M;/.*touch.*/i.test(S)?M=g.getMouseInfo(w.changedTouches[0]):M=g.getMouseInfo(w),A((T=M)!==null&&T!==void 0?T:{},w)}}),mt(g,"handleClick",function(w){var S=g.getMouseInfo(w);if(S){var A=V(V({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onClick;_t(T)&&T(A,w)}}),mt(g,"handleMouseDown",function(w){var S=g.props.onMouseDown;if(_t(S)){var A=g.getMouseInfo(w);S(A,w)}}),mt(g,"handleMouseUp",function(w){var S=g.props.onMouseUp;if(_t(S)){var A=g.getMouseInfo(w);S(A,w)}}),mt(g,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),mt(g,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseDown(w.changedTouches[0])}),mt(g,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseUp(w.changedTouches[0])}),mt(g,"handleDoubleClick",function(w){var S=g.props.onDoubleClick;if(_t(S)){var A=g.getMouseInfo(w);S(A,w)}}),mt(g,"handleContextMenu",function(w){var S=g.props.onContextMenu;if(_t(S)){var A=g.getMouseInfo(w);S(A,w)}}),mt(g,"triggerSyncEvent",function(w){g.props.syncId!==void 0&&Zm.emit(Jm,g.props.syncId,w,g.eventEmitterSymbol)}),mt(g,"applySyncEvent",function(w){var S=g.props,A=S.layout,T=S.syncMethod,M=g.state.updateId,P=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)g.setState(V({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:M},g.state)));else if(w.activeTooltipIndex!==void 0){var C=w.chartX,j=w.chartY,k=w.activeTooltipIndex,$=g.state,N=$.offset,W=$.tooltipTicks;if(!N)return;if(typeof T=="function")k=T(W,w);else if(T==="value"){k=-1;for(var z=0;z<W.length;z++)if(W[z].value===w.activeLabel){k=z;break}}var I=V(V({},N),{},{x:N.left,y:N.top}),B=Math.min(C,I.x+I.width),D=Math.min(j,I.y+I.height),F=W[k]&&W[k].value,X=Qg(g.state,g.props.data,k),L=W[k]?{x:A==="horizontal"?W[k].coordinate:B,y:A==="horizontal"?D:W[k].coordinate}:rk;g.setState(V(V({},w),{},{activeLabel:F,activeCoordinate:L,activePayload:X,activeTooltipIndex:k}))}else g.setState(w)}),mt(g,"renderCursor",function(w){var S,A=g.state,T=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,E=A.offset,C=A.activeTooltipIndex,j=A.tooltipAxisBandSize,k=g.getTooltipEventType(),$=(S=w.props.active)!==null&&S!==void 0?S:T,N=g.props.layout,W=w.key||"_recharts-cursor";return O.createElement(rY,{key:W,activeCoordinate:M,activePayload:P,activeTooltipIndex:C,chartName:r,element:w,isActive:$,layout:N,offset:E,tooltipAxisBandSize:j,tooltipEventType:k})}),mt(g,"renderPolarAxis",function(w,S,A){var T=Gr(w,"type.axisType"),M=Gr(g.state,"".concat(T,"Map")),P=w.type.defaultProps,E=P!==void 0?V(V({},P),w.props):w.props,C=M&&M[E["".concat(T,"Id")]];return O.cloneElement(w,V(V({},C),{},{className:Tt(T,C.className),key:w.key||"".concat(S,"-").concat(A),ticks:qn(C,!0)}))}),mt(g,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,T=S.polarAngles,M=S.polarRadius,P=g.state,E=P.radiusAxisMap,C=P.angleAxisMap,j=ui(E),k=ui(C),$=k.cx,N=k.cy,W=k.innerRadius,z=k.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(T)?T:qn(k,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(M)?M:qn(j,!0).map(function(I){return I.coordinate}),cx:$,cy:N,innerRadius:W,outerRadius:z,key:w.key||"polar-grid",radialLines:A})}),mt(g,"renderLegend",function(){var w=g.state.formattedGraphicalItems,S=g.props,A=S.children,T=S.width,M=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),C=qC({children:A,formattedGraphicalItems:w,legendWidth:E,legendContent:l});if(!C)return null;var j=C.item,k=NO(C,nY);return O.cloneElement(j,V(V({},k),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),mt(g,"renderTooltip",function(){var w,S=g.props,A=S.children,T=S.accessibilityLayer,M=Ar(A,xn);if(!M)return null;var P=g.state,E=P.isTooltipActive,C=P.activeCoordinate,j=P.activePayload,k=P.activeLabel,$=P.offset,N=(w=M.props.active)!==null&&w!==void 0?w:E;return O.cloneElement(M,{viewBox:V(V({},$),{},{x:$.left,y:$.top}),active:N,label:k,payload:N?j:[],coordinate:C,accessibilityLayer:T})}),mt(g,"renderBrush",function(w){var S=g.props,A=S.margin,T=S.data,M=g.state,P=M.offset,E=M.dataStartIndex,C=M.dataEndIndex,j=M.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Vu(g.handleBrushChange,w.props.onChange),data:T,x:it(w.props.x)?w.props.x:P.left,y:it(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:it(w.props.width)?w.props.width:P.width,startIndex:E,endIndex:C,updateId:"brush-".concat(j)})}),mt(g,"renderReferenceElement",function(w,S,A){if(!w)return null;var T=g,M=T.clipPathId,P=g.state,E=P.xAxisMap,C=P.yAxisMap,j=P.offset,k=w.type.defaultProps||{},$=w.props,N=$.xAxisId,W=N===void 0?k.xAxisId:N,z=$.yAxisId,I=z===void 0?k.yAxisId:z;return O.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:E[W],yAxis:C[I],viewBox:{x:j.left,y:j.top,width:j.width,height:j.height},clipPathId:M})}),mt(g,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,T=w.basePoint,M=w.childIndex,P=w.isRange,E=[],C=S.props.key,j=S.item.type.defaultProps!==void 0?V(V({},S.item.type.defaultProps),S.item.props):S.item.props,k=j.activeDot,$=j.dataKey,N=V(V({index:M,dataKey:$,cx:A.x,cy:A.y,r:4,fill:T0(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},xt(k,!1)),Fl(k));return E.push(v.renderActiveDot(k,N,"".concat(C,"-activePoint-").concat(M))),T?E.push(v.renderActiveDot(k,V(V({},N),{},{cx:T.x,cy:T.y}),"".concat(C,"-basePoint-").concat(M))):P&&E.push(null),E}),mt(g,"renderGraphicChild",function(w,S,A){var T=g.filterFormatItem(w,S,A);if(!T)return null;var M=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,C=P.tooltipAxis,j=P.activeTooltipIndex,k=P.activeLabel,$=g.props.children,N=Ar($,xn),W=T.props,z=W.points,I=W.isRange,B=W.baseLine,D=T.item.type.defaultProps!==void 0?V(V({},T.item.type.defaultProps),T.item.props):T.item.props,F=D.activeDot,X=D.hide,L=D.activeBar,Y=D.activeShape,Z=!!(!X&&E&&N&&(F||L||Y)),H={};M!=="axis"&&N&&N.props.trigger==="click"?H={onClick:Vu(g.handleItemMouseEnter,w.props.onClick)}:M!=="axis"&&(H={onMouseLeave:Vu(g.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Vu(g.handleItemMouseEnter,w.props.onMouseEnter)});var q=O.cloneElement(w,V(V({},T.props),H));function K(pt){return typeof C.dataKey=="function"?C.dataKey(pt.payload):null}if(Z)if(j>=0){var Q,R;if(C.dataKey&&!C.allowDuplicatedCategory){var J=typeof C.dataKey=="function"?K:"payload.".concat(C.dataKey.toString());Q=ql(z,J,k),R=I&&B&&ql(B,J,k)}else Q=z==null?void 0:z[j],R=I&&B&&B[j];if(Y||L){var U=w.props.activeIndex!==void 0?w.props.activeIndex:j;return[O.cloneElement(w,V(V(V({},T.props),H),{},{activeIndex:U})),null,null]}if(!vt(Q))return[q].concat(Eo(g.renderActivePoints({item:T,activePoint:Q,basePoint:R,childIndex:j,isRange:I})))}else{var ot,yt=(ot=g.getItemByXY(g.state.activeCoordinate))!==null&&ot!==void 0?ot:{graphicalItem:q},st=yt.graphicalItem,ht=st.item,ft=ht===void 0?w:ht,Ot=st.childIndex,at=V(V(V({},T.props),H),{},{activeIndex:Ot});return[O.cloneElement(ft,at),null,null]}return I?[q,null,null]:[q,null]}),mt(g,"renderCustomized",function(w,S,A){return O.cloneElement(w,V(V({key:"recharts-customized-".concat(A)},g.props),g.state))}),mt(g,"renderMap",{CartesianGrid:{handler:nl,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:nl},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:nl},YAxis:{handler:nl},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=_.id)!==null&&b!==void 0?b:ba("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=bC(g.triggeredAfterMouseMove,(x=_.throttleDelay)!==null&&x!==void 0?x:1e3/60),g.state={},g}return mY(v,m),fY(v,[{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,g=b.data,w=b.height,S=b.layout,A=Ar(x,xn);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Qg(this.state,g,T,M),E=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+w)/2,j=S==="horizontal",k=j?{x:E,y:C}:{y:E,x:C},$=this.state.formattedGraphicalItems.find(function(W){var z=W.item;return z.type.name==="Scatter"});$&&(k=V(V({},k),$.props.points[T].tooltipPosition),P=$.props.points[T].tooltipPayload);var N={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:k};this.setState(N),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{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 g,w;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){Gy([Ar(b.children,xn)],[Ar(this.props.children,xn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Ar(this.props.children,xn);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,g=x.getBoundingClientRect(),w=E3(g),S={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},A=g.width/x.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var M=this.state,P=M.xAxisMap,E=M.yAxisMap,C=this.getTooltipEventType(),j=BO(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&P&&E){var k=ui(P).scale,$=ui(E).scale,N=k&&k.invert?k.invert(S.chartX):null,W=$&&$.invert?$.invert(S.chartY):null;return V(V({},S),{},{xValue:N,yValue:W},j)}return j?V(V({},S),j):null}},{key:"inRange",value:function(b,x){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=b/g,A=x/g;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,M=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return M?{x:S,y:A}:null}var P=this.state,E=P.angleAxisMap,C=P.radiusAxisMap;if(E&&C){var j=ui(E);return KS({x:S,y:A},j)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,x=this.getTooltipEventType(),g=Ar(b,xn),w={};g&&x==="axis"&&(g.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=Fl(this.props,this.handleOuterEvent);return V(V({},S),w)}},{key:"addListener",value:function(){Zm.on(Jm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Zm.removeListener(Jm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,x,g){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var T=w[S];if(T.item===b||T.props.key===b.key||x===Fn(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,x=this.state.offset,g=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:g,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(x,g){var w=IO(g,2),S=w[0],A=w[1];return V(V({},x),{},mt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(x,g){var w=IO(g,2),S=w[0],A=w[1];return V(V({},x),{},mt({},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,g=x.formattedGraphicalItems,w=x.activeItem;if(g&&g.length)for(var S=0,A=g.length;S<A;S++){var T=g[S],M=T.props,P=T.item,E=P.type.defaultProps!==void 0?V(V({},P.type.defaultProps),P.props):P.props,C=Fn(P.type);if(C==="Bar"){var j=(M.data||[]).find(function(W){return xG(b,W)});if(j)return{graphicalItem:T,payload:j}}else if(C==="RadialBar"){var k=(M.data||[]).find(function(W){return KS(b,W)});if(k)return{graphicalItem:T,payload:k}}else if(Qc(T,w)||tf(T,w)||yu(T,w)){var $=l6({graphicalItem:T,activeTooltipItem:w,itemData:E.data}),N=E.activeIndex===void 0?$:E.activeIndex;return{graphicalItem:V(V({},T),{},{childIndex:N}),payload:yu(T,w)?E.data[$]:T.props.data[$]}}}return null}},{key:"render",value:function(){var b=this;if(!Pw(this))return null;var x=this.props,g=x.children,w=x.className,S=x.width,A=x.height,T=x.style,M=x.compact,P=x.title,E=x.desc,C=NO(x,iY),j=xt(C,!1);if(M)return O.createElement(pO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Xy,Na({},j,{width:S,height:A,title:P,desc:E}),this.renderClipPath(),Cw(g,this.renderMap)));if(this.props.accessibilityLayer){var k,$;j.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,j.role=($=this.props.role)!==null&&$!==void 0?$:"application",j.onKeyDown=function(W){b.accessibilityManager.keyboardEvent(W)},j.onFocus=function(){b.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return O.createElement(pO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Na({className:Tt("recharts-wrapper",w),style:V({position:"relative",cursor:"default",width:S,height:A},T)},N,{ref:function(z){b.container=z}}),O.createElement(Xy,Na({},j,{width:S,height:A,title:P,desc:E,style:_Y}),this.renderClipPath(),Cw(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);mt(y,"displayName",r),mt(y,"defaultProps",V({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),mt(y,"getDerivedStateFromProps",function(m,v){var _=m.dataKey,b=m.data,x=m.children,g=m.width,w=m.height,S=m.layout,A=m.stackOffset,T=m.margin,M=v.dataStartIndex,P=v.dataEndIndex;if(v.updateId===void 0){var E=qO(m);return V(V(V({},E),{},{updateId:0},p(V(V({props:m},E),{},{updateId:0}),v)),{},{prevDataKey:_,prevData:b,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:x})}if(_!==v.prevDataKey||b!==v.prevData||g!==v.prevWidth||w!==v.prevHeight||S!==v.prevLayout||A!==v.prevStackOffset||!Ha(T,v.prevMargin)){var C=qO(m),j={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},k=V(V({},BO(v,b,S)),{},{updateId:v.updateId+1}),$=V(V(V({},C),j),k);return V(V(V({},$),p(V({props:m},$),v)),{},{prevDataKey:_,prevData:b,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:x})}if(!Gy(x,v.prevChildren)){var N,W,z,I,B=Ar(x,po),D=B&&(N=(W=B.props)===null||W===void 0?void 0:W.startIndex)!==null&&N!==void 0?N:M,F=B&&(z=(I=B.props)===null||I===void 0?void 0:I.endIndex)!==null&&z!==void 0?z:P,X=D!==M||F!==P,L=!vt(b),Y=L&&!X?v.updateId:v.updateId+1;return V(V({updateId:Y},p(V(V({props:m},v),{},{updateId:Y,dataStartIndex:D,dataEndIndex:F}),v)),{},{prevChildren:x,dataStartIndex:D,dataEndIndex:F})}return null}),mt(y,"renderActiveDot",function(m,v,_){var b;return O.isValidElement(m)?b=O.cloneElement(m,v):_t(m)?b=m(v):b=O.createElement(Jc,v),O.createElement(jt,{className:"recharts-active-dot",key:_},b)});var d=O.forwardRef(function(v,_){return O.createElement(y,Na({},v,{ref:_}))});return d.displayName=y.displayName,d},$Y=kY({chartName:"ComposedChart",GraphicalChild:[uf,Ei,Lo,cf],axisComponents:[{axisType:"xAxis",AxisComp:ff},{axisType:"yAxis",AxisComp:hf},{axisType:"zAxis",AxisComp:lf}],formatAxisMap:e4});const is=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},jY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),RY=e=>new Intl.NumberFormat("en-US").format(e);function DY(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return is()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,d)=>y.timestamp-d.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&is()&&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 is()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(is()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(is()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),d=h.filter(m=>!y.has(m.dataKey));d.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",d.map(m=>m.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 d=h[y.dataKey];return p+(typeof d=="number"?d:0)},0))),[a,o]),c=O.useMemo(()=>n||jY,[n]),f=O.useMemo(()=>i||RY,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:u,maxTotalValue:l,dateFormatter:c,valueFormatter:f}}function IY(e,t){const r=t-1-e,n=gs.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return gs[a]??gs[0]??"#000000"}function NY(e){return Array.from({length:e},(t,r)=>IY(r,e))}const $a=NY(5),Dn={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:dr.neoDigitalGreen[600],inProgress:"#007bff",farthest:$a[0],far:$a[1],close:$a[2],closest:$a[3],completed:$a[4],primary:"#007bff",secondary:"#6c757d",success:dr.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:dr.neoGrey[200],dark:"#343a40"},Et={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:dr.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:dr.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"}},LY={migration:$a,severity:[Dn.critical,Dn.high,Dn.medium,Dn.low,Dn.info],status:[Dn.danger,Dn.warning,Dn.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},BY={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"},qY=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=Et.display.showHeader,height:o=Et.dimensions.height,width:s=Et.dimensions.width,showLegend:u=Et.display.showLegend,showTooltip:l=Et.display.showTooltip,showXAxis:c=Et.display.showXAxis,showYAxis:f=Et.display.showYAxis,showGrid:h=Et.display.showGrid,enableAnimation:p=Et.animation.enabled,animationDuration:y=Et.animation.duration,animationEasing:d=Et.animation.easing,formatDate:m,formatValue:v,tooltipFormatter:_,slotProps:b,margin:x=Et.margin,curveType:g=Et.curve.type,stackOffset:w=Et.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:T=!1,zoomToSelection:M=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:C,valueFormatter:j}=DY({data:e,categories:t,formatDate:m,formatValue:v}),[k,$]=O.useState(null),[N,W]=O.useState(!1),[z,I]=O.useState(null),[B,D]=O.useState(null),F=O.useRef(null),X=S?[S[0],S[1]]:["dataMin","dataMax"],L=P.length>0?P[0].timestamp:0,Y=P.length>0?P[P.length-1].timestamp:0,Z=O.useMemo(()=>{const at=S?S[0]:L,pt=S?S[1]:Y,St=6;if(at===pt||at===0)return[];const qt=(pt-at)/(St-1);return Array.from({length:St},(ne,$t)=>Math.round(at+qt*$t))},[S,L,Y]),H=O.useCallback((at,pt)=>{const St=at/pt*100,qt=Y-L;return L+St/100*qt},[L,Y]),q=O.useCallback(at=>{const pt=Y-L;return pt===0?0:(at-L)/pt*100},[L,Y]),K=O.useCallback(at=>{if(!T)return;const pt=at.currentTarget.getBoundingClientRect(),St=at.clientX-pt.left,qt=H(St,pt.width);W(!0),I(qt),D(qt)},[T,H]),Q=O.useCallback(at=>{if(!F.current)return;const pt=at.currentTarget.getBoundingClientRect(),St=at.clientX-pt.left,qt=pt.width,ne=H(St,qt);if(N)z!==null&&D(ne);else{const Ft=r.find(me=>Math.abs(me.timestamp-ne)<2592e5);$((Ft==null?void 0:Ft.timestamp)??null)}},[N,z,H,r]),R=O.useCallback(()=>{if(N&&z!==null&&B!==null&&A){const at=Math.min(z,B),pt=Math.max(z,B);at!==pt&&A([at,pt])}W(!1),I(null),D(null)},[N,z,B,A]),J=O.useCallback(()=>{R(),$(null)},[R]),ot=(M?N:!0)&&N&&z!==null&&B!==null?{left:q(Math.min(z,B)),width:Math.abs(q(B)-q(z))}:null,st=(S?P.filter(at=>at.timestamp>=S[0]&&at.timestamp<=S[1]):P).slice().reverse().map(at=>{const pt=r.find(St=>St.timestamp===at.timestamp);return pt&&pt.label?{...at,__markerLabel:pt.label}:at}),ht=at=>C(at),ft=at=>j(at),Ot=({active:at,payload:pt,label:St})=>{if(!at||!pt||pt.length===0)return null;const qt=st.find($t=>$t.timestamp===St);if(qt&&"__markerLabel"in qt){const Ft=String(qt.__markerLabel).split(" - "),me=Ft[0]||"",Xt=Ft[1]||"";return G.jsxs(tt.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[G.jsx(tt.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Xt}),G.jsx(tt.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:me})]})}return G.jsxs(tt.Box,{sx:{backgroundColor:Et.tooltip.backgroundColor,border:`${Et.tooltip.borderWidth}px solid ${Et.tooltip.borderColor}`,borderRadius:Et.tooltip.borderRadius,padding:Et.tooltip.padding},children:[G.jsx(tt.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:C(St)}),pt.map(($t,Ft)=>G.jsxs(tt.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[G.jsx(tt.Box,{sx:{width:10,height:10,backgroundColor:$t.color,borderRadius:"2px"}}),G.jsxs(tt.Typography,{sx:{fontSize:"14px"},children:[$t.name,": ",j($t.value)]})]},`item-${Ft}`))]})};return G.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&G.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&G.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&G.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),G.jsxs(tt.Box,{ref:F,sx:{width:"100%",height:`${o}px`,minHeight:Et.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[G.jsx(_3,{width:s,height:"100%",children:G.jsxs($Y,{data:st,margin:x,stackOffset:w,children:[h&&G.jsx(jM,{strokeDasharray:"3 3",stroke:Et.axis.strokeColor,opacity:.3}),c&&G.jsx(ff,{dataKey:"timestamp",type:"number",domain:X,tickFormatter:ht,stroke:Et.axis.strokeColor,tick:{fill:Et.axis.tickColor},scale:"time",ticks:Z}),f&&G.jsx(hf,{tickFormatter:ft,stroke:Et.axis.strokeColor,tick:{fill:Et.axis.tickColor}}),l&&G.jsx(xn,{content:G.jsx(Ot,{})}),u&&G.jsx(ea,{iconSize:Et.legend.iconSize,iconType:Et.legend.iconType,layout:Et.legend.layout,align:Et.legend.align,verticalAlign:Et.legend.verticalAlign}),E.map((at,pt)=>G.jsx(Ei,{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:d,animationBegin:p?(E.length-1-pt)*100:0},at.dataKey)),r.filter(at=>k===null||at.timestamp===k).map((at,pt)=>G.jsx(rf,{x:at.timestamp,stroke:at.color??Et.marker.strokeColor,strokeWidth:at.strokeWidth??Et.marker.strokeWidth,strokeDasharray:at.strokeDasharray??Et.marker.strokeDasharray,strokeOpacity:k===null?0:1},`marker-${at.timestamp}-${pt}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&G.jsxs(tt.Box,{sx:{position:"absolute",top:x.top||0,left:x.left||0,right:x.right||0,bottom:x.bottom||0,cursor:N?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:K,onMouseMove:Q,onMouseUp:R,onMouseLeave:J,children:[ot&&G.jsx(tt.Box,{sx:{position:"absolute",left:`${ot.left}%`,width:`${ot.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),k&&G.jsx(G.Fragment,{children:r.filter(at=>at.timestamp===k).map(at=>G.jsx(tt.Box,{sx:{position:"absolute",left:`${q(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||C(at.timestamp)},`tooltip-${at.timestamp}`))})]})]})]})},vn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(31, 41, 55, 0.14)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},FY=(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}}}}),Qr={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:vn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${vn.dimensions.height}px`,backgroundColor:vn.colors.background,borderRadius:0,overflow:"visible",border:`1px solid ${vn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${vn.dimensions.eventWidth}px`,height:"100%",backgroundColor:vn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:vn.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 ${vn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:vn.colors.tooltipText,fontSize:"11px"}}},zY=(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%)`}}}}),UY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},WY=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{UY()&&e.length>1&&(e.every((Y,Z)=>Z===0||Y.timestamp>=e[Z-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(null),[p,y]=O.useState({start:null,end:null}),[d,m]=O.useState({start:null,end:null}),[v,_]=O.useState(null),b=O.useRef(null),x=t??p,g=a??d,w=O.useMemo(()=>{var L;return e.length>0?((L=e[0])==null?void 0:L.timestamp)??0:0},[e]),S=O.useMemo(()=>{var L;return e.length>0?((L=e[e.length-1])==null?void 0:L.timestamp)??0:0},[e]),A=O.useMemo(()=>i&&g.start&&g.end?g.start:w,[i,g,w]),T=O.useMemo(()=>i&&g.start&&g.end?g.end:S,[i,g,S]),M=O.useMemo(()=>T-A,[T,A]),P=O.useMemo(()=>!n&&x.start!==null&&x.end!==null,[n,x]),E=O.useCallback(L=>M===0?0:(L-A)/M*100,[A,M]),C=O.useCallback((L,Y)=>{const Z=L/Y*100;return A+Z/100*M},[A,M]),j=O.useCallback(L=>{t===void 0&&y(L),r==null||r(L)},[t,r]),k=O.useCallback(L=>{const Y=L.currentTarget.getBoundingClientRect(),Z=L.clientX-Y.left,H=C(Z,Y.width);u(!0),c(H),j({start:H,end:H})},[C,j]),$=O.useCallback(L=>{if(!s||l===null)return;const Y=L.currentTarget.getBoundingClientRect(),Z=L.clientX-Y.left,H=C(Z,Y.width);if(f==="start"){const q=Math.min(H,x.end-M*.01);j({start:Math.max(q,A),end:x.end})}else if(f==="end"){const q=Math.max(H,x.start+M*.01);j({start:x.start,end:Math.min(q,T)})}else if(f==="body"){const q=H-l,K=x.end-x.start;let Q=x.start+q,R=x.end+q;Q<A&&(Q=A,R=A+K),R>T&&(R=T,Q=T-K),j({start:Q,end:R}),c(H)}else j({start:Math.min(l,H),end:Math.max(l,H)})},[s,l,f,x,M,A,T,C,j]),N=O.useCallback(()=>{const L=s;if(u(!1),h(null),L&&i&&x.start&&x.end&&x.start!==x.end){const Y={start:x.start,end:x.end};a===void 0&&m(Y),o==null||o(Y)}},[s,i,x,a,o]);O.useEffect(()=>{if(!s||l===null||!b.current)return;const L=Z=>{const H=b.current;if(!H)return;const q=H.getBoundingClientRect(),K=Z.clientX-q.left,Q=C(K,q.width);if(f==="start"){const R=Math.min(Q,x.end-M*.01);j({start:Math.max(R,A),end:x.end})}else if(f==="end"){const R=Math.max(Q,x.start+M*.01);j({start:x.start,end:Math.min(R,T)})}else if(f==="body"){const R=Q-l,J=x.end-x.start;let U=x.start+R,ot=x.end+R;U<A&&(U=A,ot=A+J),ot>T&&(ot=T,U=T-J),j({start:U,end:ot}),c(Q)}else j({start:Math.min(l,Q),end:Math.max(l,Q)})},Y=()=>{N()};return document.addEventListener("mousemove",L),document.addEventListener("mouseup",Y),()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",Y)}},[s,l,f,x,M,A,T,C,j,N]);const W=O.useCallback(L=>{L.stopPropagation(),x.start!==null&&(u(!0),c(x.start),h("start"))},[x]),z=O.useCallback(L=>{L.stopPropagation(),x.end!==null&&(u(!0),c(x.end),h("end"))},[x]),I=O.useCallback(L=>{L.stopPropagation();const Y=b.current;if(!Y)return;const Z=Y.getBoundingClientRect(),H=L.clientX-Z.left,q=C(H,Z.width);u(!0),c(q),h("body")},[C]),B=O.useCallback(L=>{if(L.cancelable&&n&&L.preventDefault(),!n||!x.start||!x.end||M===0)return;const Y=(x.start+x.end)/2,Z=x.end-x.start,H=L.deltaY>0?1.1:.9,q=Math.max(Z*H,M*.01),K=M*1.5,Q=Math.min(q,K);let R=Y-Q/2,J=Y+Q/2;R<A&&(R=A,J=Math.min(A+Q,T)),J>T&&(J=T,R=Math.max(T-Q,A)),j({start:R,end:J})},[n,x,M,A,T,j]),D=O.useCallback(()=>!x.start||!x.end?[]:e.filter(L=>L.timestamp>=x.start&&L.timestamp<=x.end),[e,x]),F=O.useCallback(()=>{const L={start:w,end:S};a===void 0&&m({start:null,end:null}),o==null||o(L)},[w,S,a,o]),X=O.useCallback(()=>{i&&F()},[i,F]);return{isDragging:s,dragStart:l,dragHandleType:f,internalSelectedRange:x,internalVisibleRange:g,hoveredEvent:v,minDate:A,maxDate:T,timeSpan:M,timelineContainerRef:b,getPositionFromTimestamp:E,getTimestampFromPosition:C,handleMouseDown:k,handleMouseMove:$,handleMouseUp:N,handleWheel:B,handleDoubleClick:X,handleStartHandleMouseDown:W,handleEndHandleMouseDown:z,handleSelectionBodyMouseDown:I,setHoveredEvent:_,getEventsInRange:D,resetZoom:F,showHandles:P}},HY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),GY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),KY=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})},XY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},YY=(e,t="arrow",r)=>{const n=t==="grip"?zY(r||"#9CA3AF"):FY(r||"#4B5563");return{header:{...Qr.header,...e==null?void 0:e.header},title:{...Qr.title,...e==null?void 0:e.title},instructions:{...Qr.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...Qr.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...Qr.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...Qr.timeline,...e==null?void 0:e.timeline},event:{...Qr.event,...e==null?void 0:e.event},selection:{...Qr.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:{...Qr.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...Qr.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...Qr.tooltipDate,...e==null?void 0:e.tooltipDate}}},VY=({events:e,onSelectionChange:t,selectedRange:r,height:n=vn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=HY,formatMonthYear:o=GY,showMonthLabels:s=!0,monthLabelCount:u=6,enableZoom:l=!0,dragHandleVariant:c="arrow",dragHandleColor:f,showHeader:h=!0,title:p="Event Timeline Selector",zoomToSelection:y=!1,visibleRange:d,onVisibleRangeChange:m,timeRange:v,onTimeRangeChange:_,slotProps:b})=>{const x=v?{start:v[0],end:v[1]}:d,g=_?L=>{L.start!==null&&L.end!==null&&_([L.start,L.end])}:m;XY()&&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 w=O.useMemo(()=>YY(b,c,f),[b,c,f]),{isDragging:S,dragHandleType:A,internalSelectedRange:T,hoveredEvent:M,minDate:P,timeSpan:E,timelineContainerRef:C,getPositionFromTimestamp:j,handleMouseDown:k,handleWheel:$,handleDoubleClick:N,handleStartHandleMouseDown:W,handleEndHandleMouseDown:z,handleSelectionBodyMouseDown:I,setHoveredEvent:B,getEventsInRange:D,showHandles:F}=WY({events:e,selectedRange:r,onSelectionChange:t,enableZoom:l,zoomToSelection:y,visibleRange:x,onVisibleRangeChange:g}),X=T.start&&T.end?`Selected: ${a(T.start)} - ${a(T.end)} (${D().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return G.jsxs(tt.Stack,{sx:{width:"100%"},children:[h&&G.jsxs(tt.Stack,{spacing:1,sx:{mb:3},...w.header,children:[G.jsx(tt.Typography,{variant:"h5",...w.title,children:p}),G.jsx(tt.Typography,{variant:"body2",...w.instructions,children:X})]}),s&&G.jsx(tt.Stack,{direction:"row",...w.monthLabelsContainer,sx:{...w.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:u},(L,Y)=>{const Z=P+E/(u-1)*Y,H=KY(E);return G.jsx(tt.Typography,{variant:"caption",...w.monthLabel,children:H(Z)},Y)})}),G.jsxs(tt.Box,{...w.timeline,sx:{...w.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[G.jsx(tt.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((L,Y)=>{const Z=j(L.timestamp);return G.jsx(tt.Box,{onMouseEnter:()=>B(L),onMouseLeave:()=>B(null),"aria-label":`Event: ${L.eventName} at ${a(L.timestamp)}`,...w.event,sx:{...w.event.sx,left:`${Z}%`,transform:(M==null?void 0:M.timestamp)===L.timestamp?"scaleX(2)":"scaleX(1)"}},`${L.timestamp}-${Y}`)})}),T.start&&T.end&&(!y||S)&&G.jsx(tt.Box,{...w.selection,onMouseDown:F&&!S?I:void 0,sx:{...w.selection.sx,left:`${j(T.start)}%`,width:`${j(T.end)-j(T.start)}%`,pointerEvents:F?"all":"none",zIndex:2,cursor:F&&!S?A==="body"?"grabbing":"grab":"default"},children:F&&!(S&&A===null)&&G.jsxs(G.Fragment,{children:[G.jsx(tt.Box,{...w.startHandle,onMouseDown:W,sx:{...w.startHandle.sx,cursor:"ew-resize",opacity:S&&A!=="start"?.5:1},"aria-label":"Drag to adjust start of selection"}),G.jsx(tt.Box,{...w.endHandle,onMouseDown:z,sx:{...w.endHandle.sx,cursor:"ew-resize",opacity:S&&A!=="end"?.5:1},"aria-label":"Drag to adjust end of selection"})]})}),G.jsx(tt.Box,{ref:C,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:k,onWheel:$,onDoubleClick:N}),!h&&G.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:X}),M&&G.jsxs(tt.Box,{role:"tooltip","aria-live":"polite",...w.tooltip,sx:{...w.tooltip.sx,left:`${j(M.timestamp)}%`,transform:"translateX(-50%)"},children:[G.jsx(tt.Typography,{variant:"body2",...w.tooltipEventName,children:M.eventName}),G.jsx(tt.Typography,{variant:"caption",...w.tooltipDate,children:a(M.timestamp)})]})]})]})},ZY="#8b5cf6",JY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),QY=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=JY,primaryColor:i=ZY})=>e.length===0?null:G.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[G.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),G.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>G.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[G.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),G.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=ws;exports.CAMPAIGN_NOT_APPLICABLE=xs;exports.CAMPAIGN_NO_LST=_s;exports.CATEGORY_LABELS=BY;exports.ChronoChart=SE;exports.ChronoPerspectiveChart=SE;exports.D3StackedAreaChart=OL;exports.DEFAULT_CHART_COLORS=dr;exports.DEFAULT_CHART_CONFIG=tr;exports.DEFAULT_STACKED_AREA_COLORS=Dn;exports.DEFAULT_STACKED_AREA_CONFIG=Et;exports.MEASURE_GRADIENT_COLORS=gs;exports.MODERNE_VULNERABILITY_COLORS=Wa;exports.MorphChart=uE;exports.ParliamentChart=KF;exports.STACKED_AREA_PALETTES=LY;exports.StackedAreaChart=qY;exports.TimelineChart=VY;exports.TimelineSelectedEvents=QY;exports.calculateDataSeries=nC;exports.calculateOptimalArcAngle=Jv;exports.calculateOptimalSeatSize=Qv;