@moderneinc/react-charts 1.2.0-next.2d0a72 → 1.2.0-next.32e773

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 (28) hide show
  1. package/dist/components/chrono-chart/chrono-chart.component.d.ts +10 -0
  2. package/dist/components/chrono-chart/chrono-chart.types.d.ts +114 -0
  3. package/dist/components/chrono-chart/components/category-table.component.d.ts +13 -0
  4. package/dist/components/chrono-chart/components/category-table.types.d.ts +42 -0
  5. package/dist/components/chrono-chart/utils/data-transformer.d.ts +41 -0
  6. package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +21 -1
  7. package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +7 -2
  8. package/dist/components/morph-chart/hooks/shared/computations.d.ts +12 -8
  9. package/dist/components/morph-chart/hooks/shared/types.d.ts +9 -5
  10. package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +42 -1
  11. package/dist/components/morph-chart/morph-chart.types.d.ts +12 -0
  12. package/dist/components/morph-chart/utils/accordion-generator.d.ts +102 -0
  13. package/dist/components/morph-chart/utils/area-renderer.d.ts +1 -0
  14. package/dist/components/morph-chart/utils/bar-renderer.d.ts +0 -9
  15. package/dist/components/morph-chart/utils/gsap-orchestrator.d.ts +55 -16
  16. package/dist/components/morph-chart/utils/parliament-renderer.d.ts +2 -0
  17. package/dist/components/morph-chart/utils/slinky-3d-generator.d.ts +35 -0
  18. package/dist/components/morph-chart/utils/svg-slinky-generator.d.ts +25 -0
  19. package/dist/components/timeline-chart/timeline-chart.types.d.ts +13 -0
  20. package/dist/index.cjs +81 -75
  21. package/dist/index.d.ts +3 -3
  22. package/dist/index.js +17330 -16237
  23. package/package.json +3 -1
  24. package/dist/components/chrono-perspective-chart/chrono-perspective-chart.component.d.ts +0 -3
  25. package/dist/components/chrono-perspective-chart/chrono-perspective-chart.types.d.ts +0 -62
  26. package/dist/components/chrono-perspective-chart/components/category-table.component.d.ts +0 -3
  27. package/dist/components/chrono-perspective-chart/components/category-table.types.d.ts +0 -13
  28. package/dist/components/chrono-perspective-chart/utils/data-transformer.d.ts +0 -9
package/dist/index.cjs CHANGED
@@ -1,36 +1,42 @@
1
- "use strict";var hM=Object.defineProperty;var dM=(t,e,r)=>e in t?hM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Wa=(t,e,r)=>dM(t,typeof e!="symbol"?e+"":e,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),ee=require("@mui/material"),O=require("react"),GO=require("@mui/icons-material");function pM(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const yr=pM(O);function mM(t){return t}var vc=1,gc=2,Jp=3,oo=4,qg=1e-6;function yM(t){return"translate("+t+",0)"}function vM(t){return"translate(0,"+t+")"}function gM(t){return e=>+t(e)}function bM(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function _M(){return!this.__axis}function KO(t,e){var r=[],n=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=t===vc||t===oo?-1:1,c=t===oo||t===gc?"x":"y",f=t===vc||t===Jp?yM:vM;function h(d){var y=n??(e.ticks?e.ticks.apply(e,r):e.domain()),m=i??(e.tickFormat?e.tickFormat.apply(e,r):mM),p=Math.max(a,0)+s,g=e.range(),_=+g[0]+u,b=+g[g.length-1]+u,x=(e.bandwidth?bM:gM)(e.copy(),u),v=d.selection?d.selection():d,w=v.selectAll(".domain").data([null]),S=v.selectAll(".tick").data(y,e).order(),A=S.exit(),P=S.enter().append("g").attr("class","tick"),M=S.select("line"),T=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(P),M=M.merge(P.append("line").attr("stroke","currentColor").attr(c+"2",l*a)),T=T.merge(P.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===vc?"0em":t===Jp?"0.71em":"0.32em")),d!==v&&(w=w.transition(d),S=S.transition(d),M=M.transition(d),T=T.transition(d),A=A.transition(d).attr("opacity",qg).attr("transform",function(E){return isFinite(E=x(E))?f(E+u):this.getAttribute("transform")}),P.attr("opacity",qg).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",t===oo||t===gc?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),T.attr(c,l*p).text(m),v.filter(_M).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===gc?"start":t===oo?"end":"middle"),v.each(function(){this.__axis=x})}return h.scale=function(d){return arguments.length?(e=d,h):e},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(r=d==null?[]:Array.from(d),h):r.slice()},h.tickValues=function(d){return arguments.length?(n=d==null?null:Array.from(d),h):n&&n.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(a=o=+d,h):a},h.tickSizeInner=function(d){return arguments.length?(a=+d,h):a},h.tickSizeOuter=function(d){return arguments.length?(o=+d,h):o},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(u=+d,h):u},h}function ko(t){return KO(Jp,t)}function jo(t){return KO(oo,t)}function Pn(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xM(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qy(t){let e,r,n;t.length!==2?(e=Pn,r=(s,u)=>Pn(t(s),u),n=(s,u)=>t(s)-u):(e=t===Pn||t===xM?t:wM,r=t,n=t);function i(s,u,l=0,c=s.length){if(l<c){if(e(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(e(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 wM(){return 0}function XO(t){return t===null?NaN:+t}function*SM(t,e){for(let r of t)r!=null&&(r=+r)>=r&&(yield r)}const OM=Qy(Pn),Ss=OM.right;Qy(XO).center;class Bg extends Map{constructor(e,r=TM){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(Fg(this,e))}has(e){return super.has(Fg(this,e))}set(e,r){return super.set(AM(this,e),r)}delete(e){return super.delete(PM(this,e))}}function Fg({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function AM({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function PM({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function TM(t){return t!==null&&typeof t=="object"?t.valueOf():t}function EM(t=Pn){if(t===Pn)return YO;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||n===0?n:(t(r,r)===0)-(t(e,e)===0)}}function YO(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const CM=Math.sqrt(50),MM=Math.sqrt(10),kM=Math.sqrt(2);function mu(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=CM?10:a>=MM?5:a>=kM?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),u=Math.round(e*l),s/l<t&&++s,u/l>e&&--u,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),u=Math.round(e/l),s*l<t&&++s,u*l>e&&--u),u<s&&.5<=r&&r<2?mu(t,e,r*2):[s,u,l]}function Qp(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[i,a,o]=n?mu(e,t,r):mu(t,e,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 em(t,e,r){return e=+e,t=+t,r=+r,mu(t,e,r)[2]}function tm(t,e,r){e=+e,t=+t,r=+r;const n=e<t,i=n?em(e,t,r):em(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function zg(t,e){let r;for(const n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Ug(t,e){let r;for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function VO(t,e,r=0,n=1/0,i){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(i=i===void 0?YO:EM(i);n>r;){if(n-r>600){const u=n-r+1,l=e-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),d=Math.max(r,Math.floor(e-l*f/u+h)),y=Math.min(n,Math.floor(e+(u-l)*f/u+h));VO(t,e,d,y,i)}const a=t[e];let o=r,s=n;for(Ha(t,r,e),i(t[n],a)>0&&Ha(t,r,n);o<s;){for(Ha(t,o,s),++o,--s;i(t[o],a)<0;)++o;for(;i(t[s],a)>0;)--s}i(t[r],a)===0?Ha(t,r,s):(++s,Ha(t,s,n)),s<=e&&(r=s+1),e<=s&&(n=s-1)}return t}function Ha(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function jM(t,e,r){if(t=Float64Array.from(SM(t)),!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return Ug(t);if(e>=1)return zg(t);var n,i=(n-1)*e,a=Math.floor(i),o=zg(VO(t,a).subarray(0,a+1)),s=Ug(t.subarray(a+1));return o+(s-o)*(i-a)}}function IM(t,e,r=XO){if(!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t),s=+r(t[a+1],a+1,t);return o+(s-o)*(i-a)}}function RM(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n<i;)a[n]=t+n*r;return a}function br(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function dn(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const rm=Symbol("implicit");function ev(){var t=new Bg,e=[],r=[],n=rm;function i(a){let o=t.get(a);if(o===void 0){if(n!==rm)return n;t.set(a,o=e.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new Bg;for(const o of a)t.has(o)||t.set(o,e.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 ev(e,r).unknown(n)},br.apply(i,arguments),i}function Io(){var t=ev().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,a,o,s=!1,u=0,l=0,c=.5;delete t.unknown;function f(){var h=e().length,d=i<n,y=d?i:n,m=d?n:i;a=(m-y)/Math.max(1,h-u+l*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-u))*c,o=a*(1-u),s&&(y=Math.round(y),o=Math.round(o));var p=RM(h).map(function(g){return y+a*g});return r(d?p.reverse():p)}return t.domain=function(h){return arguments.length?(e(h),f()):e()},t.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},t.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},t.bandwidth=function(){return o},t.step=function(){return a},t.round=function(h){return arguments.length?(s=!!h,f()):s},t.padding=function(h){return arguments.length?(u=Math.min(1,l=+h),f()):u},t.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},t.paddingOuter=function(h){return arguments.length?(l=+h,f()):l},t.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},t.copy=function(){return Io(e(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},br.apply(f(),arguments)}function ZO(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return ZO(e())},t}function mo(){return ZO(Io.apply(null,arguments).paddingInner(1))}function tv(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function JO(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Os(){}var Ro=.7,yu=1/Ro,Fi="\\s*([+-]?\\d+)\\s*",$o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$M=/^#([0-9a-f]{3,8})$/,DM=new RegExp(`^rgb\\(${Fi},${Fi},${Fi}\\)$`),NM=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),LM=new RegExp(`^rgba\\(${Fi},${Fi},${Fi},${$o}\\)$`),qM=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${$o}\\)$`),BM=new RegExp(`^hsl\\(${$o},${Fr},${Fr}\\)$`),FM=new RegExp(`^hsla\\(${$o},${Fr},${Fr},${$o}\\)$`),Wg={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};tv(Os,ci,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Hg,formatHex:Hg,formatHex8:zM,formatHsl:UM,formatRgb:Gg,toString:Gg});function Hg(){return this.rgb().formatHex()}function zM(){return this.rgb().formatHex8()}function UM(){return QO(this).formatHsl()}function Gg(){return this.rgb().formatRgb()}function ci(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=$M.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Kg(e):r===3?new Nt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Fs(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Fs(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=DM.exec(t))?new Nt(e[1],e[2],e[3],1):(e=NM.exec(t))?new Nt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=LM.exec(t))?Fs(e[1],e[2],e[3],e[4]):(e=qM.exec(t))?Fs(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=BM.exec(t))?Vg(e[1],e[2]/100,e[3]/100,1):(e=FM.exec(t))?Vg(e[1],e[2]/100,e[3]/100,e[4]):Wg.hasOwnProperty(t)?Kg(Wg[t]):t==="transparent"?new Nt(NaN,NaN,NaN,0):null}function Kg(t){return new Nt(t>>16&255,t>>8&255,t&255,1)}function Fs(t,e,r,n){return n<=0&&(t=e=r=NaN),new Nt(t,e,r,n)}function WM(t){return t instanceof Os||(t=ci(t)),t?(t=t.rgb(),new Nt(t.r,t.g,t.b,t.opacity)):new Nt}function nm(t,e,r,n){return arguments.length===1?WM(t):new Nt(t,e,r,n??1)}function Nt(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}tv(Nt,nm,JO(Os,{brighter(t){return t=t==null?yu:Math.pow(yu,t),new Nt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ro:Math.pow(Ro,t),new Nt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Nt(ri(this.r),ri(this.g),ri(this.b),vu(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:Xg,formatHex:Xg,formatHex8:HM,formatRgb:Yg,toString:Yg}));function Xg(){return`#${Yn(this.r)}${Yn(this.g)}${Yn(this.b)}`}function HM(){return`#${Yn(this.r)}${Yn(this.g)}${Yn(this.b)}${Yn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yg(){const t=vu(this.opacity);return`${t===1?"rgb(":"rgba("}${ri(this.r)}, ${ri(this.g)}, ${ri(this.b)}${t===1?")":`, ${t})`}`}function vu(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ri(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Yn(t){return t=ri(t),(t<16?"0":"")+t.toString(16)}function Vg(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ar(t,e,r,n)}function QO(t){if(t instanceof Ar)return new Ar(t.h,t.s,t.l,t.opacity);if(t instanceof Os||(t=ci(t)),!t)return new Ar;if(t instanceof Ar)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(e===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-e)/s+2:o=(e-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new Ar(o,s,u,t.opacity)}function GM(t,e,r,n){return arguments.length===1?QO(t):new Ar(t,e,r,n??1)}function Ar(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}tv(Ar,GM,JO(Os,{brighter(t){return t=t==null?yu:Math.pow(yu,t),new Ar(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ro:Math.pow(Ro,t),new Ar(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Nt(bc(t>=240?t-240:t+120,i,n),bc(t,i,n),bc(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Ar(Zg(this.h),zs(this.s),zs(this.l),vu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=vu(this.opacity);return`${t===1?"hsl(":"hsla("}${Zg(this.h)}, ${zs(this.s)*100}%, ${zs(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Zg(t){return t=(t||0)%360,t<0?t+360:t}function zs(t){return Math.max(0,Math.min(1,t||0))}function bc(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const rv=t=>()=>t;function KM(t,e){return function(r){return t+r*e}}function XM(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function YM(t){return(t=+t)==1?eA:function(e,r){return r-e?XM(e,r,t):rv(isNaN(e)?r:e)}}function eA(t,e){var r=e-t;return r?KM(t,r):rv(isNaN(t)?e:t)}const gu=(function t(e){var r=YM(e);function n(i,a){var o=r((i=nm(i)).r,(a=nm(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=eA(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=t,n})(1);function VM(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=t[i]*(1-a)+e[i]*a;return n}}function ZM(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function JM(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=gi(t[o],e[o]);for(;o<r;++o)a[o]=e[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function QM(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Or(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ek(t,e){var r={},n={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?r[i]=gi(t[i],e[i]):n[i]=e[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var im=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_c=new RegExp(im.source,"g");function tk(t){return function(){return t}}function rk(t){return function(e){return t(e)+""}}function tA(t,e){var r=im.lastIndex=_c.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(t=t+"",e=e+"";(n=im.exec(t))&&(i=_c.exec(e));)(a=i.index)>r&&(a=e.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:Or(n,i)})),r=_c.lastIndex;return r<e.length&&(a=e.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?rk(u[0].x):tk(e):(e=u.length,function(l){for(var c=0,f;c<e;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function gi(t,e){var r=typeof e,n;return e==null||r==="boolean"?rv(e):(r==="number"?Or:r==="string"?(n=ci(e))?(e=n,gu):tA:e instanceof ci?gu:e instanceof Date?QM:ZM(e)?VM:Array.isArray(e)?JM:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?ek:Or)(t,e)}function nv(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var Jg=180/Math.PI,am={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rA(t,e,r,n,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*r+e*n)&&(r-=t*u,n-=e*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),t*n<e*r&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*Jg,skewX:Math.atan(u)*Jg,scaleX:o,scaleY:s}}var Us;function nk(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?am:rA(e.a,e.b,e.c,e.d,e.e,e.f)}function ik(t){return t==null||(Us||(Us=document.createElementNS("http://www.w3.org/2000/svg","g")),Us.setAttribute("transform",t),!(t=Us.transform.baseVal.consolidate()))?am:(t=t.matrix,rA(t.a,t.b,t.c,t.d,t.e,t.f))}function nA(t,e,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,c,f,h,d,y){if(l!==f||c!==h){var m=d.push("translate(",null,e,null,r);y.push({i:m-4,x:Or(l,f)},{i:m-2,x:Or(c,h)})}else(f||h)&&d.push("translate("+f+e+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:Or(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:Or(l,c)}):c&&f.push(i(f)+"skewX("+c+n)}function u(l,c,f,h,d,y){if(l!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");y.push({i:m-4,x:Or(l,f)},{i:m-2,x:Or(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=t(l),c=t(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(d){for(var y=-1,m=h.length,p;++y<m;)f[(p=h[y]).i]=p.x(d);return f.join("")}}}var ak=nA(nk,"px, ","px)","deg)"),ok=nA(ik,", ",")",")");function sk(t,e){e===void 0&&(e=t,t=gi);for(var r=0,n=e.length-1,i=e[0],a=new Array(n<0?0:n);r<n;)a[r]=t(i,i=e[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function uk(t){return function(){return t}}function bu(t){return+t}var Qg=[0,1];function Rt(t){return t}function om(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:uk(isNaN(e)?NaN:.5)}function lk(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function ck(t,e,r){var n=t[0],i=t[1],a=e[0],o=e[1];return i<n?(n=om(i,n),a=r(o,a)):(n=om(n,i),a=r(a,o)),function(s){return a(n(s))}}function fk(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),a=new Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)i[o]=om(t[o],t[o+1]),a[o]=r(e[o],e[o+1]);return function(s){var u=Ss(t,s,1,n)-1;return a[u](i[u](s))}}function As(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Al(){var t=Qg,e=Qg,r=gi,n,i,a,o=Rt,s,u,l;function c(){var h=Math.min(t.length,e.length);return o!==Rt&&(o=lk(t[0],t[h-1])),s=h>2?fk:ck,u=l=null,f}function f(h){return h==null||isNaN(h=+h)?a:(u||(u=s(t.map(n),e,r)))(n(o(h)))}return f.invert=function(h){return o(i((l||(l=s(e,t.map(n),Or)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,bu),c()):t.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),c()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),r=nv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:Rt,c()):o!==Rt},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,d){return n=h,i=d,c()}}function iv(){return Al()(Rt,Rt)}function hk(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function _u(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Vi(t){return t=_u(Math.abs(t)),t?t[1]:NaN}function dk(t,e){return function(r,n){for(var i=r.length,a=[],o=0,s=t[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=t[o=(o+1)%t.length];return a.reverse().join(e)}}function pk(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var mk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Do(t){if(!(e=mk.exec(t)))throw new Error("invalid format: "+t);var e;return new av({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Do.prototype=av.prototype;function av(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}av.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 yk(t){e:for(var e=t.length,r=1,n=-1,i;r<e;++r)switch(t[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+t[r])break e;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var iA;function vk(t,e){var r=_u(t,e);if(!r)return t+"";var n=r[0],i=r[1],a=i-(iA=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")+_u(t,Math.max(0,e+a-1))[0]}function eb(t,e){var r=_u(t,e);if(!r)return t+"";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 tb={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:hk,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>eb(t*100,e),r:eb,s:vk,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function rb(t){return t}var nb=Array.prototype.map,ib=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gk(t){var e=t.grouping===void 0||t.thousands===void 0?rb:dk(nb.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?rb:pk(nb.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function l(f){f=Do(f);var h=f.fill,d=f.align,y=f.sign,m=f.symbol,p=f.zero,g=f.width,_=f.comma,b=f.precision,x=f.trim,v=f.type;v==="n"?(_=!0,v="g"):tb[v]||(b===void 0&&(b=12),x=!0,v="g"),(p||h==="0"&&d==="=")&&(p=!0,h="0",d="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",S=m==="$"?n:/[%p]/.test(v)?o:"",A=tb[v],P=/[defgprs%]/.test(v);b=b===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function M(T){var E=w,C=S,I,k,j;if(v==="c")C=A(T)+C,T="";else{T=+T;var $=T<0||1/T<0;if(T=isNaN(T)?u:A(Math.abs(T),b),x&&(T=yk(T)),$&&+T==0&&y!=="+"&&($=!1),E=($?y==="("?y:s:y==="-"||y==="("?"":y)+E,C=(v==="s"?ib[8+iA/3]:"")+C+($&&y==="("?")":""),P){for(I=-1,k=T.length;++I<k;)if(j=T.charCodeAt(I),48>j||j>57){C=(j===46?i+T.slice(I+1):T.slice(I))+C,T=T.slice(0,I);break}}}_&&!p&&(T=e(T,1/0));var N=E.length+T.length+C.length,B=N<g?new Array(g-N+1).join(h):"";switch(_&&p&&(T=e(B+T,B.length?g-C.length:1/0),B=""),d){case"<":T=E+T+C+B;break;case"=":T=E+B+T+C;break;case"^":T=B.slice(0,N=B.length>>1)+E+T+C+B.slice(N);break;default:T=B+E+T+C;break}return a(T)}return M.toString=function(){return f+""},M}function c(f,h){var d=l((f=Do(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Vi(h)/3)))*3,m=Math.pow(10,-y),p=ib[8+y/3];return function(g){return d(m*g)+p}}return{format:l,formatPrefix:c}}var Ws,ov,aA;bk({thousands:",",grouping:[3],currency:["$",""]});function bk(t){return Ws=gk(t),ov=Ws.format,aA=Ws.formatPrefix,Ws}function _k(t){return Math.max(0,-Vi(Math.abs(t)))}function xk(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vi(e)/3)))*3-Vi(Math.abs(t)))}function wk(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Vi(e)-Vi(t))+1}function oA(t,e,r,n){var i=tm(t,e,r),a;switch(n=Do(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=xk(i,o))&&(n.precision=a),aA(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=wk(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=_k(i))&&(n.precision=a-(n.type==="%")*2);break}}return ov(n)}function kn(t){var e=t.domain;return t.ticks=function(r){var n=e();return Qp(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return oA(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),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=em(o,s,r),l===u)return n[i]=o,n[a]=s,e(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 t},t}function Zi(){var t=iv();return t.copy=function(){return As(t,Zi())},br.apply(t,arguments),kn(t)}function sA(t){var e;function r(n){return n==null||isNaN(n=+n)?e:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(t=Array.from(n,bu),r):t.slice()},r.unknown=function(n){return arguments.length?(e=n,r):e},r.copy=function(){return sA(t).unknown(e)},t=arguments.length?Array.from(t,bu):[0,1],kn(r)}function uA(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),t[r]=e.floor(i),t[n]=e.ceil(a),t}function ab(t){return Math.log(t)}function ob(t){return Math.exp(t)}function Sk(t){return-Math.log(-t)}function Ok(t){return-Math.exp(-t)}function Ak(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Pk(t){return t===10?Ak:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Tk(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function sb(t){return(e,r)=>-t(-e,r)}function sv(t){const e=t(ab,ob),r=e.domain;let n=10,i,a;function o(){return i=Tk(n),a=Pk(n),r()[0]<0?(i=sb(i),a=sb(a),t(Sk,Ok)):t(ab,ob),e}return e.base=function(s){return arguments.length?(n=+s,o()):n},e.domain=function(s){return arguments.length?(r(s),o()):r()},e.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),d=i(c),y,m;const p=s==null?10:+s;let g=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<l)){if(m>c)break;g.push(m)}}else for(;h<=d;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<l)){if(m>c)break;g.push(m)}g.length*2<p&&(g=Qp(l,c,p))}else g=Qp(h,d,Math.min(d-h,p)).map(a);return f?g.reverse():g},e.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Do(u)).precision==null&&(u.trim=!0),u=ov(u)),s===1/0)return u;const l=Math.max(1,n*s/e.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=l?u(c):""}},e.nice=()=>r(uA(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),e}function lA(){const t=sv(Al()).domain([1,10]);return t.copy=()=>As(t,lA()).base(t.base()),br.apply(t,arguments),t}function ub(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function lb(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function uv(t){var e=1,r=t(ub(e),lb(e));return r.constant=function(n){return arguments.length?t(ub(e=+n),lb(e)):e},kn(r)}function cA(){var t=uv(Al());return t.copy=function(){return As(t,cA()).constant(t.constant())},br.apply(t,arguments)}function cb(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ek(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Ck(t){return t<0?-t*t:t*t}function lv(t){var e=t(Rt,Rt),r=1;function n(){return r===1?t(Rt,Rt):r===.5?t(Ek,Ck):t(cb(r),cb(1/r))}return e.exponent=function(i){return arguments.length?(r=+i,n()):r},kn(e)}function cv(){var t=lv(Al());return t.copy=function(){return As(t,cv()).exponent(t.exponent())},br.apply(t,arguments),t}function Mk(){return cv.apply(null,arguments).exponent(.5)}function fb(t){return Math.sign(t)*t*t}function kk(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function fA(){var t=iv(),e=[0,1],r=!1,n;function i(a){var o=kk(t(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return t.invert(fb(a))},i.domain=function(a){return arguments.length?(t.domain(a),i):t.domain()},i.range=function(a){return arguments.length?(t.range((e=Array.from(a,bu)).map(fb)),i):e.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?(t.clamp(a),i):t.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return fA(t.domain(),e).round(r).clamp(t.clamp()).unknown(n)},br.apply(i,arguments),kn(i)}function hA(){var t=[],e=[],r=[],n;function i(){var o=0,s=Math.max(1,e.length);for(r=new Array(s-1);++o<s;)r[o-1]=IM(t,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:e[Ss(r,o)]}return a.invertExtent=function(o){var s=e.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:t[0],s<r.length?r[s]:t[t.length-1]]},a.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let s of o)s!=null&&!isNaN(s=+s)&&t.push(s);return t.sort(Pn),i()},a.range=function(o){return arguments.length?(e=Array.from(o),i()):e.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return hA().domain(t).range(e).unknown(n)},br.apply(a,arguments)}function dA(){var t=0,e=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Ss(n,u,0,r)]:a}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*e-(u-r)*t)/(r+1);return o}return o.domain=function(u){return arguments.length?([t,e]=u,t=+t,e=+e,s()):[t,e]},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?[t,n[0]]:l>=r?[n[r-1],e]:[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 dA().domain([t,e]).range(i).unknown(a)},br.apply(kn(o),arguments)}function pA(){var t=[.5],e=[0,1],r,n=1;function i(a){return a!=null&&a<=a?e[Ss(t,a,0,n)]:r}return i.domain=function(a){return arguments.length?(t=Array.from(a),n=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(a){return arguments.length?(e=Array.from(a),n=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(a){var o=e.indexOf(a);return[t[o-1],t[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return pA().domain(t).range(e).unknown(r)},br.apply(i,arguments)}const xc=new Date,wc=new Date;function ht(t,e,r,n){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(e(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)),e(a,s),t(a);while(l<a&&a<o);return u},i.filter=a=>ht(o=>{if(o>=o)for(;t(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;e(o,-1),!a(o););else for(;--s>=0;)for(;e(o,1),!a(o););}),r&&(i.count=(a,o)=>(xc.setTime(+a),wc.setTime(+o),t(xc),t(wc),Math.floor(r(xc,wc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const xu=ht(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);xu.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ht(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):xu);xu.range;const en=1e3,hr=en*60,tn=hr*60,sn=tn*24,fv=sn*7,hb=sn*30,Sc=sn*365,Vn=ht(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*en)},(t,e)=>(e-t)/en,t=>t.getUTCSeconds());Vn.range;const hv=ht(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*en)},(t,e)=>{t.setTime(+t+e*hr)},(t,e)=>(e-t)/hr,t=>t.getMinutes());hv.range;const dv=ht(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*hr)},(t,e)=>(e-t)/hr,t=>t.getUTCMinutes());dv.range;const pv=ht(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*en-t.getMinutes()*hr)},(t,e)=>{t.setTime(+t+e*tn)},(t,e)=>(e-t)/tn,t=>t.getHours());pv.range;const mv=ht(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*tn)},(t,e)=>(e-t)/tn,t=>t.getUTCHours());mv.range;const Ps=ht(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*hr)/sn,t=>t.getDate()-1);Ps.range;const Pl=ht(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/sn,t=>t.getUTCDate()-1);Pl.range;const mA=ht(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/sn,t=>Math.floor(t/sn));mA.range;function bi(t){return ht(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*hr)/fv)}const Tl=bi(0),wu=bi(1),jk=bi(2),Ik=bi(3),Ji=bi(4),Rk=bi(5),$k=bi(6);Tl.range;wu.range;jk.range;Ik.range;Ji.range;Rk.range;$k.range;function _i(t){return ht(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/fv)}const El=_i(0),Su=_i(1),Dk=_i(2),Nk=_i(3),Qi=_i(4),Lk=_i(5),qk=_i(6);El.range;Su.range;Dk.range;Nk.range;Qi.range;Lk.range;qk.range;const yv=ht(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());yv.range;const vv=ht(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());vv.range;const un=ht(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());un.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ht(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});un.range;const ln=ht(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());ln.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ht(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});ln.range;function yA(t,e,r,n,i,a){const o=[[Vn,1,en],[Vn,5,5*en],[Vn,15,15*en],[Vn,30,30*en],[a,1,hr],[a,5,5*hr],[a,15,15*hr],[a,30,30*hr],[i,1,tn],[i,3,3*tn],[i,6,6*tn],[i,12,12*tn],[n,1,sn],[n,2,2*sn],[r,1,fv],[e,1,hb],[e,3,3*hb],[t,1,Sc]];function s(l,c,f){const h=c<l;h&&([l,c]=[c,l]);const d=f&&typeof f.range=="function"?f:u(l,c,f),y=d?d.range(l,+c+1):[];return h?y.reverse():y}function u(l,c,f){const h=Math.abs(c-l)/f,d=Qy(([,,p])=>p).right(o,h);if(d===o.length)return t.every(tm(l/Sc,c/Sc,f));if(d===0)return xu.every(Math.max(tm(l,c,f),1));const[y,m]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return y.every(m)}return[s,u]}const[Bk,Fk]=yA(ln,vv,El,mA,mv,dv),[zk,Uk]=yA(un,yv,Tl,Ps,pv,hv);function Oc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ac(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ga(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Wk(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,u=t.shortMonths,l=Ka(i),c=Xa(i),f=Ka(a),h=Xa(a),d=Ka(o),y=Xa(o),m=Ka(s),p=Xa(s),g=Ka(u),_=Xa(u),b={a:$,A:N,b:B,B:R,c:null,d:gb,e:gb,f:dj,g:Sj,G:Aj,H:cj,I:fj,j:hj,L:vA,m:pj,M:mj,p:L,q,Q:xb,s:wb,S:yj,u:vj,U:gj,V:bj,w:_j,W:xj,x:null,X:null,y:wj,Y:Oj,Z:Pj,"%":_b},x={a:U,A:X,b:V,B:te,c:null,d:bb,e:bb,f:Mj,g:Bj,G:zj,H:Tj,I:Ej,j:Cj,L:bA,m:kj,M:jj,p:re,q:H,Q:xb,s:wb,S:Ij,u:Rj,U:$j,V:Dj,w:Nj,W:Lj,x:null,X:null,y:qj,Y:Fj,Z:Uj,"%":_b},v={a:M,A:T,b:E,B:C,c:I,d:yb,e:yb,f:oj,g:mb,G:pb,H:vb,I:vb,j:rj,L:aj,m:tj,M:nj,p:P,q:ej,Q:uj,s:lj,S:ij,u:Yk,U:Vk,V:Zk,w:Xk,W:Jk,x:k,X:j,y:mb,Y:pb,Z:Qk,"%":sj};b.x=w(r,b),b.X=w(n,b),b.c=w(e,b),x.x=w(r,x),x.X=w(n,x),x.c=w(e,x);function w(F,K){return function(Q){var D=[],se=-1,W=0,ue=F.length,de,ie,fe;for(Q instanceof Date||(Q=new Date(+Q));++se<ue;)F.charCodeAt(se)===37&&(D.push(F.slice(W,se)),(ie=db[de=F.charAt(++se)])!=null?de=F.charAt(++se):ie=de==="e"?" ":"0",(fe=K[de])&&(de=fe(Q,ie)),D.push(de),W=se+1);return D.push(F.slice(W,se)),D.join("")}}function S(F,K){return function(Q){var D=Ga(1900,void 0,1),se=A(D,F,Q+="",0),W,ue;if(se!=Q.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(K&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(W=Ac(Ga(D.y,0,1)),ue=W.getUTCDay(),W=ue>4||ue===0?Su.ceil(W):Su(W),W=Pl.offset(W,(D.V-1)*7),D.y=W.getUTCFullYear(),D.m=W.getUTCMonth(),D.d=W.getUTCDate()+(D.w+6)%7):(W=Oc(Ga(D.y,0,1)),ue=W.getDay(),W=ue>4||ue===0?wu.ceil(W):wu(W),W=Ps.offset(W,(D.V-1)*7),D.y=W.getFullYear(),D.m=W.getMonth(),D.d=W.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),ue="Z"in D?Ac(Ga(D.y,0,1)).getUTCDay():Oc(Ga(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(ue+5)%7:D.w+D.U*7-(ue+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Ac(D)):Oc(D)}}function A(F,K,Q,D){for(var se=0,W=K.length,ue=Q.length,de,ie;se<W;){if(D>=ue)return-1;if(de=K.charCodeAt(se++),de===37){if(de=K.charAt(se++),ie=v[de in db?K.charAt(se++):de],!ie||(D=ie(F,Q,D))<0)return-1}else if(de!=Q.charCodeAt(D++))return-1}return D}function P(F,K,Q){var D=l.exec(K.slice(Q));return D?(F.p=c.get(D[0].toLowerCase()),Q+D[0].length):-1}function M(F,K,Q){var D=d.exec(K.slice(Q));return D?(F.w=y.get(D[0].toLowerCase()),Q+D[0].length):-1}function T(F,K,Q){var D=f.exec(K.slice(Q));return D?(F.w=h.get(D[0].toLowerCase()),Q+D[0].length):-1}function E(F,K,Q){var D=g.exec(K.slice(Q));return D?(F.m=_.get(D[0].toLowerCase()),Q+D[0].length):-1}function C(F,K,Q){var D=m.exec(K.slice(Q));return D?(F.m=p.get(D[0].toLowerCase()),Q+D[0].length):-1}function I(F,K,Q){return A(F,e,K,Q)}function k(F,K,Q){return A(F,r,K,Q)}function j(F,K,Q){return A(F,n,K,Q)}function $(F){return o[F.getDay()]}function N(F){return a[F.getDay()]}function B(F){return u[F.getMonth()]}function R(F){return s[F.getMonth()]}function L(F){return i[+(F.getHours()>=12)]}function q(F){return 1+~~(F.getMonth()/3)}function U(F){return o[F.getUTCDay()]}function X(F){return a[F.getUTCDay()]}function V(F){return u[F.getUTCMonth()]}function te(F){return s[F.getUTCMonth()]}function re(F){return i[+(F.getUTCHours()>=12)]}function H(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var K=w(F+="",b);return K.toString=function(){return F},K},parse:function(F){var K=S(F+="",!1);return K.toString=function(){return F},K},utcFormat:function(F){var K=w(F+="",x);return K.toString=function(){return F},K},utcParse:function(F){var K=S(F+="",!0);return K.toString=function(){return F},K}}}var db={"-":"",_:" ",0:"0"},vt=/^\s*\d+/,Hk=/^%/,Gk=/[\\^$*+?|[\]().{}]/g;function Pe(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function Kk(t){return t.replace(Gk,"\\$&")}function Ka(t){return new RegExp("^(?:"+t.map(Kk).join("|")+")","i")}function Xa(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Xk(t,e,r){var n=vt.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Yk(t,e,r){var n=vt.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Vk(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Zk(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Jk(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function pb(t,e,r){var n=vt.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function mb(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Qk(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ej(t,e,r){var n=vt.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function tj(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function yb(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function rj(t,e,r){var n=vt.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function vb(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function nj(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function ij(t,e,r){var n=vt.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function aj(t,e,r){var n=vt.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function oj(t,e,r){var n=vt.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function sj(t,e,r){var n=Hk.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function uj(t,e,r){var n=vt.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function lj(t,e,r){var n=vt.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function gb(t,e){return Pe(t.getDate(),e,2)}function cj(t,e){return Pe(t.getHours(),e,2)}function fj(t,e){return Pe(t.getHours()%12||12,e,2)}function hj(t,e){return Pe(1+Ps.count(un(t),t),e,3)}function vA(t,e){return Pe(t.getMilliseconds(),e,3)}function dj(t,e){return vA(t,e)+"000"}function pj(t,e){return Pe(t.getMonth()+1,e,2)}function mj(t,e){return Pe(t.getMinutes(),e,2)}function yj(t,e){return Pe(t.getSeconds(),e,2)}function vj(t){var e=t.getDay();return e===0?7:e}function gj(t,e){return Pe(Tl.count(un(t)-1,t),e,2)}function gA(t){var e=t.getDay();return e>=4||e===0?Ji(t):Ji.ceil(t)}function bj(t,e){return t=gA(t),Pe(Ji.count(un(t),t)+(un(t).getDay()===4),e,2)}function _j(t){return t.getDay()}function xj(t,e){return Pe(wu.count(un(t)-1,t),e,2)}function wj(t,e){return Pe(t.getFullYear()%100,e,2)}function Sj(t,e){return t=gA(t),Pe(t.getFullYear()%100,e,2)}function Oj(t,e){return Pe(t.getFullYear()%1e4,e,4)}function Aj(t,e){var r=t.getDay();return t=r>=4||r===0?Ji(t):Ji.ceil(t),Pe(t.getFullYear()%1e4,e,4)}function Pj(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Pe(e/60|0,"0",2)+Pe(e%60,"0",2)}function bb(t,e){return Pe(t.getUTCDate(),e,2)}function Tj(t,e){return Pe(t.getUTCHours(),e,2)}function Ej(t,e){return Pe(t.getUTCHours()%12||12,e,2)}function Cj(t,e){return Pe(1+Pl.count(ln(t),t),e,3)}function bA(t,e){return Pe(t.getUTCMilliseconds(),e,3)}function Mj(t,e){return bA(t,e)+"000"}function kj(t,e){return Pe(t.getUTCMonth()+1,e,2)}function jj(t,e){return Pe(t.getUTCMinutes(),e,2)}function Ij(t,e){return Pe(t.getUTCSeconds(),e,2)}function Rj(t){var e=t.getUTCDay();return e===0?7:e}function $j(t,e){return Pe(El.count(ln(t)-1,t),e,2)}function _A(t){var e=t.getUTCDay();return e>=4||e===0?Qi(t):Qi.ceil(t)}function Dj(t,e){return t=_A(t),Pe(Qi.count(ln(t),t)+(ln(t).getUTCDay()===4),e,2)}function Nj(t){return t.getUTCDay()}function Lj(t,e){return Pe(Su.count(ln(t)-1,t),e,2)}function qj(t,e){return Pe(t.getUTCFullYear()%100,e,2)}function Bj(t,e){return t=_A(t),Pe(t.getUTCFullYear()%100,e,2)}function Fj(t,e){return Pe(t.getUTCFullYear()%1e4,e,4)}function zj(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Qi(t):Qi.ceil(t),Pe(t.getUTCFullYear()%1e4,e,4)}function Uj(){return"+0000"}function _b(){return"%"}function xb(t){return+t}function wb(t){return Math.floor(+t/1e3)}var Ei,xA,wA;Wj({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 Wj(t){return Ei=Wk(t),xA=Ei.format,Ei.parse,wA=Ei.utcFormat,Ei.utcParse,Ei}function Hj(t){return new Date(t)}function Gj(t){return t instanceof Date?+t:+new Date(+t)}function gv(t,e,r,n,i,a,o,s,u,l){var c=iv(),f=c.invert,h=c.domain,d=l(".%L"),y=l(":%S"),m=l("%I:%M"),p=l("%I %p"),g=l("%a %d"),_=l("%b %d"),b=l("%B"),x=l("%Y");function v(w){return(u(w)<w?d:s(w)<w?y:o(w)<w?m:a(w)<w?p:n(w)<w?i(w)<w?g:_:r(w)<w?b:x)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,Gj)):h().map(Hj)},c.ticks=function(w){var S=h();return t(S[0],S[S.length-1],w??10)},c.tickFormat=function(w,S){return S==null?v:l(S)},c.nice=function(w){var S=h();return(!w||typeof w.range!="function")&&(w=e(S[0],S[S.length-1],w??10)),w?h(uA(S,w)):c},c.copy=function(){return As(c,gv(t,e,r,n,i,a,o,s,u,l))},c}function bv(){return br.apply(gv(zk,Uk,un,yv,Tl,Ps,pv,hv,Vn,xA).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Kj(){return br.apply(gv(Bk,Fk,ln,vv,El,Pl,mv,dv,Vn,wA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Cl(){var t=0,e=1,r,n,i,a,o=Rt,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?([t,e]=f,r=a(t=+t),n=a(e=+e),i=r===n?0:1/(n-r),l):[t,e]},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 d,y;return arguments.length?([d,y]=h,o=f(d,y),l):[o(0),o(1)]}}return l.range=c(gi),l.rangeRound=c(nv),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return a=f,r=f(t),n=f(e),i=r===n?0:1/(n-r),l}}function jn(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function SA(){var t=kn(Cl()(Rt));return t.copy=function(){return jn(t,SA())},dn.apply(t,arguments)}function OA(){var t=sv(Cl()).domain([1,10]);return t.copy=function(){return jn(t,OA()).base(t.base())},dn.apply(t,arguments)}function AA(){var t=uv(Cl());return t.copy=function(){return jn(t,AA()).constant(t.constant())},dn.apply(t,arguments)}function _v(){var t=lv(Cl());return t.copy=function(){return jn(t,_v()).exponent(t.exponent())},dn.apply(t,arguments)}function Xj(){return _v.apply(null,arguments).exponent(.5)}function PA(){var t=[],e=Rt;function r(n){if(n!=null&&!isNaN(n=+n))return e((Ss(t,n,1)-1)/(t.length-1))}return r.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let i of n)i!=null&&!isNaN(i=+i)&&t.push(i);return t.sort(Pn),r},r.interpolator=function(n){return arguments.length?(e=n,r):e},r.range=function(){return t.map((n,i)=>e(i/(t.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>jM(t,a/n))},r.copy=function(){return PA(e).domain(t)},dn.apply(r,arguments)}function Ml(){var t=0,e=.5,r=1,n=1,i,a,o,s,u,l=Rt,c,f=!1,h;function d(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:u),l(f?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([t,e,r]=m,i=c(t=+t),a=c(e=+e),o=c(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,d):[t,e,r]},d.clamp=function(m){return arguments.length?(f=!!m,d):f},d.interpolator=function(m){return arguments.length?(l=m,d):l};function y(m){return function(p){var g,_,b;return arguments.length?([g,_,b]=p,l=sk(m,[g,_,b]),d):[l(0),l(.5),l(1)]}}return d.range=y(gi),d.rangeRound=y(nv),d.unknown=function(m){return arguments.length?(h=m,d):h},function(m){return c=m,i=m(t),a=m(e),o=m(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function TA(){var t=kn(Ml()(Rt));return t.copy=function(){return jn(t,TA())},dn.apply(t,arguments)}function EA(){var t=sv(Ml()).domain([.1,1,10]);return t.copy=function(){return jn(t,EA()).base(t.base())},dn.apply(t,arguments)}function CA(){var t=uv(Ml());return t.copy=function(){return jn(t,CA()).constant(t.constant())},dn.apply(t,arguments)}function xv(){var t=lv(Ml());return t.copy=function(){return jn(t,xv()).exponent(t.exponent())},dn.apply(t,arguments)}function Yj(){return xv.apply(null,arguments).exponent(.5)}var sm="http://www.w3.org/1999/xhtml";const Sb={svg:"http://www.w3.org/2000/svg",xhtml:sm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kl(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Sb.hasOwnProperty(e)?{space:Sb[e],local:t}:t}function Vj(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===sm&&e.documentElement.namespaceURI===sm?e.createElement(t):e.createElementNS(r,t)}}function Zj(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function MA(t){var e=kl(t);return(e.local?Zj:Vj)(e)}function Jj(){}function wv(t){return t==null?Jj:function(){return this.querySelector(t)}}function Qj(t){typeof t!="function"&&(t=wv(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],o=a.length,s=n[i]=new Array(o),u,l,c=0;c<o;++c)(u=a[c])&&(l=t.call(u,u.__data__,c,a))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new ir(n,this._parents)}function eI(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function tI(){return[]}function kA(t){return t==null?tI:function(){return this.querySelectorAll(t)}}function rI(t){return function(){return eI(t.apply(this,arguments))}}function nI(t){typeof t=="function"?t=rI(t):t=kA(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a<r;++a)for(var o=e[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&(n.push(t.call(u,u.__data__,l,o)),i.push(u));return new ir(n,i)}function jA(t){return function(){return this.matches(t)}}function IA(t){return function(e){return e.matches(t)}}var iI=Array.prototype.find;function aI(t){return function(){return iI.call(this.children,t)}}function oI(){return this.firstElementChild}function sI(t){return this.select(t==null?oI:aI(typeof t=="function"?t:IA(t)))}var uI=Array.prototype.filter;function lI(){return Array.from(this.children)}function cI(t){return function(){return uI.call(this.children,t)}}function fI(t){return this.selectAll(t==null?lI:cI(typeof t=="function"?t:IA(t)))}function hI(t){typeof t!="function"&&(t=jA(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],o=a.length,s=n[i]=[],u,l=0;l<o;++l)(u=a[l])&&t.call(u,u.__data__,l,a)&&s.push(u);return new ir(n,this._parents)}function RA(t){return new Array(t.length)}function dI(){return new ir(this._enter||this._groups.map(RA),this._parents)}function Ou(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ou.prototype={constructor:Ou,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function pI(t){return function(){return t}}function mI(t,e,r,n,i,a){for(var o=0,s,u=e.length,l=a.length;o<l;++o)(s=e[o])?(s.__data__=a[o],n[o]=s):r[o]=new Ou(t,a[o]);for(;o<u;++o)(s=e[o])&&(i[o]=s)}function yI(t,e,r,n,i,a,o){var s,u,l=new Map,c=e.length,f=a.length,h=new Array(c),d;for(s=0;s<c;++s)(u=e[s])&&(h[s]=d=o.call(u,u.__data__,s,e)+"",l.has(d)?i[s]=u:l.set(d,u));for(s=0;s<f;++s)d=o.call(t,a[s],s,a)+"",(u=l.get(d))?(n[s]=u,u.__data__=a[s],l.delete(d)):r[s]=new Ou(t,a[s]);for(s=0;s<c;++s)(u=e[s])&&l.get(h[s])===u&&(i[s]=u)}function vI(t){return t.__data__}function gI(t,e){if(!arguments.length)return Array.from(this,vI);var r=e?yI:mI,n=this._parents,i=this._groups;typeof t!="function"&&(t=pI(t));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,d=bI(t.call(c,c&&c.__data__,l,n)),y=d.length,m=s[l]=new Array(y),p=o[l]=new Array(y),g=u[l]=new Array(h);r(c,f,m,p,g,d,e);for(var _=0,b=0,x,v;_<y;++_)if(x=m[_]){for(_>=b&&(b=_+1);!(v=p[b])&&++b<y;);x._next=v||null}}return o=new ir(o,n),o._enter=s,o._exit=u,o}function bI(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function _I(){return new ir(this._exit||this._groups.map(RA),this._parents)}function xI(t,e,r){var n=this.enter(),i=this,a=this.exit();return typeof t=="function"?(n=t(n),n&&(n=n.selection())):n=n.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function wI(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._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),d,y=0;y<f;++y)(d=l[y]||c[y])&&(h[y]=d);for(;u<i;++u)s[u]=r[u];return new ir(s,this._parents)}function SI(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n=t[e],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 OI(t){t||(t=AI);function e(f,h){return f&&h?t(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(e)}return new ir(i,this._parents).order()}function AI(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function PI(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function TI(){return Array.from(this)}function EI(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function CI(){let t=0;for(const e of this)++t;return t}function MI(){return!this.node()}function kI(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i=e[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&t.call(s,s.__data__,a,i);return this}function jI(t){return function(){this.removeAttribute(t)}}function II(t){return function(){this.removeAttributeNS(t.space,t.local)}}function RI(t,e){return function(){this.setAttribute(t,e)}}function $I(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function DI(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function NI(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function LI(t,e){var r=kl(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((e==null?r.local?II:jI:typeof e=="function"?r.local?NI:DI:r.local?$I:RI)(r,e))}function $A(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function qI(t){return function(){this.style.removeProperty(t)}}function BI(t,e,r){return function(){this.style.setProperty(t,e,r)}}function FI(t,e,r){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function zI(t,e,r){return arguments.length>1?this.each((e==null?qI:typeof e=="function"?FI:BI)(t,e,r??"")):ea(this.node(),t)}function ea(t,e){return t.style.getPropertyValue(e)||$A(t).getComputedStyle(t,null).getPropertyValue(e)}function UI(t){return function(){delete this[t]}}function WI(t,e){return function(){this[t]=e}}function HI(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function GI(t,e){return arguments.length>1?this.each((e==null?UI:typeof e=="function"?HI:WI)(t,e)):this.node()[t]}function DA(t){return t.trim().split(/^|\s+/)}function Sv(t){return t.classList||new NA(t)}function NA(t){this._node=t,this._names=DA(t.getAttribute("class")||"")}NA.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function LA(t,e){for(var r=Sv(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function qA(t,e){for(var r=Sv(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function KI(t){return function(){LA(this,t)}}function XI(t){return function(){qA(this,t)}}function YI(t,e){return function(){(e.apply(this,arguments)?LA:qA)(this,t)}}function VI(t,e){var r=DA(t+"");if(arguments.length<2){for(var n=Sv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof e=="function"?YI:e?KI:XI)(r,e))}function ZI(){this.textContent=""}function JI(t){return function(){this.textContent=t}}function QI(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function eR(t){return arguments.length?this.each(t==null?ZI:(typeof t=="function"?QI:JI)(t)):this.node().textContent}function tR(){this.innerHTML=""}function rR(t){return function(){this.innerHTML=t}}function nR(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function iR(t){return arguments.length?this.each(t==null?tR:(typeof t=="function"?nR:rR)(t)):this.node().innerHTML}function aR(){this.nextSibling&&this.parentNode.appendChild(this)}function oR(){return this.each(aR)}function sR(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function uR(){return this.each(sR)}function lR(t){var e=typeof t=="function"?t:MA(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function cR(){return null}function fR(t,e){var r=typeof t=="function"?t:MA(t),n=e==null?cR:typeof e=="function"?e:wv(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function hR(){var t=this.parentNode;t&&t.removeChild(this)}function dR(){return this.each(hR)}function pR(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function mR(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yR(t){return this.select(t?mR:pR)}function vR(t){return arguments.length?this.property("__data__",t):this.node().__data__}function gR(t){return function(e){t.call(this,e,this.__data__)}}function bR(t){return t.trim().split(/^|\s+/).map(function(e){var r="",n=e.indexOf(".");return n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function _R(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r<i;++r)a=e[r],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++n]=a;++n?e.length=n:delete this.__on}}}function xR(t,e,r){return function(){var n=this.__on,i,a=gR(e);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=e;return}}this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},n?n.push(i):this.__on=[i]}}function wR(t,e,r){var n=bR(t+""),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=e?xR:_R,i=0;i<a;++i)this.each(s(n[i],e,r));return this}function BA(t,e,r){var n=$A(t),i=n.CustomEvent;typeof i=="function"?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function SR(t,e){return function(){return BA(this,t,e)}}function OR(t,e){return function(){return BA(this,t,e.apply(this,arguments))}}function AR(t,e){return this.each((typeof e=="function"?OR:SR)(t,e))}function*PR(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var FA=[null];function ir(t,e){this._groups=t,this._parents=e}function ja(){return new ir([[document.documentElement]],FA)}function TR(){return this}ir.prototype=ja.prototype={constructor:ir,select:Qj,selectAll:nI,selectChild:sI,selectChildren:fI,filter:hI,data:gI,enter:dI,exit:_I,join:xI,merge:wI,selection:TR,order:SI,sort:OI,call:PI,nodes:TI,node:EI,size:CI,empty:MI,each:kI,attr:LI,style:zI,property:GI,classed:VI,text:eR,html:iR,raise:oR,lower:uR,append:lR,insert:fR,remove:dR,clone:yR,datum:vR,on:wR,dispatch:AR,[Symbol.iterator]:PR};function Qt(t){return typeof t=="string"?new ir([[document.querySelector(t)]],[document.documentElement]):new ir([[t]],FA)}function ER(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ob(t,e){if(t=ER(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n=n.matrixTransform(e.getScreenCTM().inverse()),[n.x,n.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}function We(t){return function(){return t}}const zA=Math.cos,Au=Math.sin,Er=Math.sqrt,Ab=1e-12,Pu=Math.PI,jl=2*Pu,um=Math.PI,lm=2*um,Gn=1e-6,CR=lm-Gn;function UA(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function MR(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return UA;const r=10**e;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 kR{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?UA:MR(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,i){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(e,r,n,i,a,o){this._append`C${+e},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(e,r,n,i,a){if(e=+e,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-e,l=i-r,c=o-e,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(h>Gn)if(!(Math.abs(f*u-l*c)>Gn)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let d=n-o,y=i-s,m=u*u+l*l,p=d*d+y*y,g=Math.sqrt(m),_=Math.sqrt(h),b=a*Math.tan((um-Math.acos((m+h-p)/(2*g*_)))/2),x=b/_,v=b/g;Math.abs(x-1)>Gn&&this._append`L${e+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*d>c*y)},${this._x1=e+v*u},${this._y1=r+v*l}`}}arc(e,r,n,i,a,o){if(e=+e,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=e+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)>Gn||Math.abs(this._y1-c)>Gn)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%lm+lm),h>CR?this._append`A${n},${n},0,1,${f},${e-s},${r-u}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:h>Gn&&this._append`A${n},${n},0,${+(h>=um)},${f},${this._x1=e+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Ov(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new kR(e)}function Av(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function WA(t){this._context=t}WA.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Il(t){return new WA(t)}function HA(t){return t[0]}function GA(t){return t[1]}function Pv(t,e){var r=We(!0),n=null,i=Il,a=null,o=Ov(s);t=typeof t=="function"?t:t===void 0?HA:We(t),e=typeof e=="function"?e:e===void 0?GA:We(e);function s(u){var l,c=(u=Av(u)).length,f,h=!1,d;for(n==null&&(a=i(d=o())),l=0;l<=c;++l)!(l<c&&r(f=u[l],l,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(f,l,u),+e(f,l,u));if(d)return a=null,d+""||null}return s.x=function(u){return arguments.length?(t=typeof u=="function"?u:We(+u),s):t},s.y=function(u){return arguments.length?(e=typeof u=="function"?u:We(+u),s):e},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:We(!!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 Zn(t,e,r){var n=null,i=We(!0),a=null,o=Il,s=null,u=Ov(l);t=typeof t=="function"?t:t===void 0?HA:We(+t),e=typeof e=="function"?e:We(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?GA:We(+r);function l(f){var h,d,y,m=(f=Av(f)).length,p,g=!1,_,b=new Array(m),x=new Array(m);for(a==null&&(s=o(_=u())),h=0;h<=m;++h){if(!(h<m&&i(p=f[h],h,f))===g)if(g=!g)d=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=d;--y)s.point(b[y],x[y]);s.lineEnd(),s.areaEnd()}g&&(b[h]=+t(p,h,f),x[h]=+e(p,h,f),s.point(n?+n(p,h,f):b[h],r?+r(p,h,f):x[h]))}if(_)return s=null,_+""||null}function c(){return Pv().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:We(+f),n=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:We(+f),l):t},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:We(+f),l):n},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:We(+f),r=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:We(+f),l):e},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:We(+f),l):r},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(r)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:We(!!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 KA{constructor(e,r){this._context=e,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(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function jR(t){return new KA(t,!0)}function IR(t){return new KA(t,!1)}const Tv={draw(t,e){const r=Er(e/Pu);t.moveTo(r,0),t.arc(0,0,r,0,jl)}},RR={draw(t,e){const r=Er(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},XA=Er(1/3),$R=XA*2,DR={draw(t,e){const r=Er(e/$R),n=r*XA;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},NR={draw(t,e){const r=Er(e),n=-r/2;t.rect(n,n,r,r)}},LR=.8908130915292852,YA=Au(Pu/10)/Au(7*Pu/10),qR=Au(jl/10)*YA,BR=-zA(jl/10)*YA,FR={draw(t,e){const r=Er(e*LR),n=qR*r,i=BR*r;t.moveTo(0,-r),t.lineTo(n,i);for(let a=1;a<5;++a){const o=jl*a/5,s=zA(o),u=Au(o);t.lineTo(u*r,-s*r),t.lineTo(s*n-u*i,u*n+s*i)}t.closePath()}},Pc=Er(3),zR={draw(t,e){const r=-Er(e/(Pc*3));t.moveTo(0,r*2),t.lineTo(-Pc*r,-r),t.lineTo(Pc*r,-r),t.closePath()}},sr=-.5,ur=Er(3)/2,cm=1/Er(12),UR=(cm/2+1)*3,WR={draw(t,e){const r=Er(e/UR),n=r/2,i=r*cm,a=n,o=r*cm+r,s=-a,u=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,u),t.lineTo(sr*n-ur*i,ur*n+sr*i),t.lineTo(sr*a-ur*o,ur*a+sr*o),t.lineTo(sr*s-ur*u,ur*s+sr*u),t.lineTo(sr*n+ur*i,sr*i-ur*n),t.lineTo(sr*a+ur*o,sr*o-ur*a),t.lineTo(sr*s+ur*u,sr*u-ur*s),t.closePath()}};function HR(t,e){let r=null,n=Ov(i);t=typeof t=="function"?t:We(t||Tv),e=typeof e=="function"?e:We(e===void 0?64:+e);function i(){let a;if(r||(r=a=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(t=typeof a=="function"?a:We(a),i):t},i.size=function(a){return arguments.length?(e=typeof a=="function"?a:We(+a),i):e},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Tu(){}function Eu(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function VA(t){this._context=t}VA.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:Eu(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Eu(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function GR(t){return new VA(t)}function ZA(t){this._context=t}ZA.prototype={areaStart:Tu,areaEnd:Tu,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Eu(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function KR(t){return new ZA(t)}function JA(t){this._context=t}JA.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Eu(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function XR(t){return new JA(t)}function Pb(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Ev(t,e){this._context=t,this._k=(1-e)/6}Ev.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:Pb(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Pb(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(n){return new Ev(n,e)}return r.tension=function(n){return t(+n)},r})(0);function YR(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Ab){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Ab){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*l+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function QA(t,e){this._context=t,this._alpha=e}QA.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(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:YR(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const fm=(function t(e){function r(n){return e?new QA(n,e):new Ev(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function eP(t){this._context=t}eP.prototype={areaStart:Tu,areaEnd:Tu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function VR(t){return new eP(t)}function Tb(t){return t<0?-1:1}function Eb(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Tb(a)+Tb(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Cb(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Tc(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Cu(t){this._context=t}Cu.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:Tc(this,this._t0,Cb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Tc(this,Cb(this,r=Eb(this,t,e)),r);break;default:Tc(this,this._t0,r=Eb(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function tP(t){this._context=new rP(t)}(tP.prototype=Object.create(Cu.prototype)).point=function(t,e){Cu.prototype.point.call(this,e,t)};function rP(t){this._context=t}rP.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}};function nP(t){return new Cu(t)}function ZR(t){return new tP(t)}function iP(t){this._context=t}iP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=Mb(t),i=Mb(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Mb(t){var e,r=t.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function JR(t){return new iP(t)}function Rl(t,e){this._context=t,this._t=e}Rl.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function QR(t){return new Rl(t,.5)}function e$(t){return new Rl(t,0)}function t$(t){return new Rl(t,1)}function ta(t,e){if((o=t.length)>1)for(var r=1,n,i,a=t[e[0]],o,s=a.length;r<o;++r)for(i=a,a=t[e[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function hm(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function r$(t,e){return t[e]}function n$(t){const e=[];return e.key=t,e}function Cv(){var t=We([]),e=hm,r=ta,n=r$;function i(a){var o=Array.from(t.apply(this,arguments),n$),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=Av(e(o));s<u;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(t=typeof a=="function"?a:We(Array.from(a)),i):t},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:We(+a),i):n},i.order=function(a){return arguments.length?(e=a==null?hm:typeof a=="function"?a:We(Array.from(a)),i):e},i.offset=function(a){return arguments.length?(r=a??ta,i):r},i}function i$(t,e){if((n=t.length)>0){for(var r,n,i=0,a=t[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}ta(t,e)}}function a$(t,e){if((i=t.length)>0){for(var r=0,n=t[e[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=t[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}ta(t,e)}}function o$(t,e){if(!(!((o=t.length)>0)||!((a=(i=t[e[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=t[e[s]],f=c[n][1]||0,h=c[n-1][1]||0,d=(f-h)/2,y=0;y<s;++y){var m=t[e[y]],p=m[n][1]||0,g=m[n-1][1]||0;d+=p-g}u+=f,l+=d*f}i[n-1][1]+=i[n-1][0]=r,u&&(r-=l/u)}i[n-1][1]+=i[n-1][0]=r,ta(t,e)}}var s$={value:()=>{}};function Mv(){for(var t=0,e=arguments.length,r={},n;t<e;++t){if(!(n=arguments[t]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new uu(r)}function uu(t){this._=t}function u$(t,e){return t.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&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}uu.prototype=Mv.prototype={constructor:uu,on:function(t,e){var r=this._,n=u$(t+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(t=n[a]).type)&&(i=l$(r[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<o;)if(i=(t=n[a]).type)r[i]=kb(r[i],t.name,e);else if(e==null)for(i in r)r[i]=kb(r[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new uu(t)},call:function(t,e){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(t))throw new Error("unknown type: "+t);for(a=this._[t],n=0,i=a.length;n<i;++n)a[n].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};function l$(t,e){for(var r=0,n=t.length,i;r<n;++r)if((i=t[r]).name===e)return i.value}function kb(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=s$,t=t.slice(0,n).concat(t.slice(n+1));break}return r!=null&&t.push({name:e,value:r}),t}var ra=0,so=0,Ya=0,aP=1e3,Mu,uo,ku=0,fi=0,$l=0,No=typeof performance=="object"&&performance.now?performance:Date,oP=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function kv(){return fi||(oP(c$),fi=No.now()+$l)}function c$(){fi=0}function ju(){this._call=this._time=this._next=null}ju.prototype=sP.prototype={constructor:ju,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?kv():+r)+(e==null?0:+e),!this._next&&uo!==this&&(uo?uo._next=this:Mu=this,uo=this),this._call=t,this._time=r,dm()},stop:function(){this._call&&(this._call=null,this._time=1/0,dm())}};function sP(t,e,r){var n=new ju;return n.restart(t,e,r),n}function f$(){kv(),++ra;for(var t=Mu,e;t;)(e=fi-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ra}function jb(){fi=(ku=No.now())+$l,ra=so=0;try{f$()}finally{ra=0,d$(),fi=0}}function h$(){var t=No.now(),e=t-ku;e>aP&&($l-=e,ku=t)}function d$(){for(var t,e=Mu,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Mu=r);uo=t,dm(n)}function dm(t){if(!ra){so&&(so=clearTimeout(so));var e=t-fi;e>24?(t<1/0&&(so=setTimeout(jb,t-No.now()-$l)),Ya&&(Ya=clearInterval(Ya))):(Ya||(ku=No.now(),Ya=setInterval(h$,aP)),ra=1,oP(jb))}}function Ib(t,e,r){var n=new ju;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var p$=Mv("start","end","cancel","interrupt"),m$=[],uP=0,Rb=1,pm=2,lu=3,$b=4,mm=5,cu=6;function Dl(t,e,r,n,i,a){var o=t.__transition;if(!o)t.__transition={};else if(r in o)return;y$(t,r,{name:e,index:n,group:i,on:p$,tween:m$,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:uP})}function jv(t,e){var r=Cr(t,e);if(r.state>uP)throw new Error("too late; already scheduled");return r}function Gr(t,e){var r=Cr(t,e);if(r.state>lu)throw new Error("too late; already running");return r}function Cr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function y$(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=sP(a,0,r.time);function a(l){r.state=Rb,r.timer.restart(o,r.delay,r.time),r.delay<=l&&o(l-r.delay)}function o(l){var c,f,h,d;if(r.state!==Rb)return u();for(c in n)if(d=n[c],d.name===r.name){if(d.state===lu)return Ib(o);d.state===$b?(d.state=cu,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[c]):+c<e&&(d.state=cu,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete n[c])}if(Ib(function(){r.state===lu&&(r.state=$b,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=pm,r.on.call("start",t,t.__data__,r.index,r.group),r.state===pm){for(r.state=lu,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(d=r.tween[c].value.call(t,t.__data__,r.index,r.group))&&(i[++f]=d);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=mm,1),f=-1,h=i.length;++f<h;)i[f].call(t,c);r.state===mm&&(r.on.call("end",t,t.__data__,r.index,r.group),u())}function u(){r.state=cu,r.timer.stop(),delete n[e];for(var l in n)return;delete t.__transition}}function ym(t,e){var r=t.__transition,n,i,a=!0,o;if(r){e=e==null?null:e+"";for(o in r){if((n=r[o]).name!==e){a=!1;continue}i=n.state>pm&&n.state<mm,n.state=cu,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[o]}a&&delete t.__transition}}function v$(t){return this.each(function(){ym(this,t)})}function g$(t,e){var r,n;return function(){var i=Gr(this,t),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===e){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function b$(t,e,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=Gr(this,t),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:e,value:r},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=s;break}u===l&&i.push(s)}a.tween=i}}function _$(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n=Cr(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===t)return o.value;return null}return this.each((e==null?g$:b$)(r,t,e))}function Iv(t,e,r){var n=t._id;return t.each(function(){var i=Gr(this,n);(i.value||(i.value={}))[e]=r.apply(this,arguments)}),function(i){return Cr(i,n).value[e]}}function lP(t,e){var r;return(typeof e=="number"?Or:e instanceof ci?gu:(r=ci(e))?(e=r,gu):tA)(t,e)}function x$(t){return function(){this.removeAttribute(t)}}function w$(t){return function(){this.removeAttributeNS(t.space,t.local)}}function S$(t,e,r){var n,i=r+"",a;return function(){var o=this.getAttribute(t);return o===i?null:o===n?a:a=e(n=o,r)}}function O$(t,e,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===n?a:a=e(n=o,r)}}function A$(t,e,r){var n,i,a;return function(){var o,s=r(this),u;return s==null?void this.removeAttribute(t):(o=this.getAttribute(t),u=s+"",o===u?null:o===n&&u===i?a:(i=u,a=e(n=o,s)))}}function P$(t,e,r){var n,i,a;return function(){var o,s=r(this),u;return s==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),u=s+"",o===u?null:o===n&&u===i?a:(i=u,a=e(n=o,s)))}}function T$(t,e){var r=kl(t),n=r==="transform"?ok:lP;return this.attrTween(t,typeof e=="function"?(r.local?P$:A$)(r,n,Iv(this,"attr."+t,e)):e==null?(r.local?w$:x$)(r):(r.local?O$:S$)(r,n,e))}function E$(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function C$(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function M$(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&C$(t,a)),r}return i._value=e,i}function k$(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&E$(t,a)),r}return i._value=e,i}function j$(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var n=kl(t);return this.tween(r,(n.local?M$:k$)(n,e))}function I$(t,e){return function(){jv(this,t).delay=+e.apply(this,arguments)}}function R$(t,e){return e=+e,function(){jv(this,t).delay=e}}function $$(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?I$:R$)(e,t)):Cr(this.node(),e).delay}function D$(t,e){return function(){Gr(this,t).duration=+e.apply(this,arguments)}}function N$(t,e){return e=+e,function(){Gr(this,t).duration=e}}function L$(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?D$:N$)(e,t)):Cr(this.node(),e).duration}function q$(t,e){if(typeof e!="function")throw new Error;return function(){Gr(this,t).ease=e}}function B$(t){var e=this._id;return arguments.length?this.each(q$(e,t)):Cr(this.node(),e).ease}function F$(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Gr(this,t).ease=r}}function z$(t){if(typeof t!="function")throw new Error;return this.each(F$(this._id,t))}function U$(t){typeof t!="function"&&(t=jA(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],o=a.length,s=n[i]=[],u,l=0;l<o;++l)(u=a[l])&&t.call(u,u.__data__,l,a)&&s.push(u);return new cn(n,this._parents,this._name,this._id)}function W$(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var u=e[s],l=r[s],c=u.length,f=o[s]=new Array(c),h,d=0;d<c;++d)(h=u[d]||l[d])&&(f[d]=h);for(;s<n;++s)o[s]=e[s];return new cn(o,this._parents,this._name,this._id)}function H$(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function G$(t,e,r){var n,i,a=H$(e)?jv:Gr;return function(){var o=a(this,t),s=o.on;s!==n&&(i=(n=s).copy()).on(e,r),o.on=i}}function K$(t,e){var r=this._id;return arguments.length<2?Cr(this.node(),r).on.on(t):this.each(G$(r,t,e))}function X$(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Y$(){return this.on("end.remove",X$(this._id))}function V$(t){var e=this._name,r=this._id;typeof t!="function"&&(t=wv(t));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=t.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),l[h]=f,Dl(l[h],e,r,h,l,Cr(c,r)));return new cn(a,this._parents,e,r)}function Z$(t){var e=this._name,r=this._id;typeof t!="function"&&(t=kA(t));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=t.call(c,c.__data__,f,u),d,y=Cr(c,r),m=0,p=h.length;m<p;++m)(d=h[m])&&Dl(d,e,r,m,h,y);a.push(h),o.push(c)}return new cn(a,o,e,r)}var J$=ja.prototype.constructor;function Q$(){return new J$(this._groups,this._parents)}function eD(t,e){var r,n,i;return function(){var a=ea(this,t),o=(this.style.removeProperty(t),ea(this,t));return a===o?null:a===r&&o===n?i:i=e(r=a,n=o)}}function cP(t){return function(){this.style.removeProperty(t)}}function tD(t,e,r){var n,i=r+"",a;return function(){var o=ea(this,t);return o===i?null:o===n?a:a=e(n=o,r)}}function rD(t,e,r){var n,i,a;return function(){var o=ea(this,t),s=r(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(t),ea(this,t))),o===u?null:o===n&&u===i?a:(i=u,a=e(n=o,s))}}function nD(t,e){var r,n,i,a="style."+e,o="end."+a,s;return function(){var u=Gr(this,t),l=u.on,c=u.value[a]==null?s||(s=cP(e)):void 0;(l!==r||i!==c)&&(n=(r=l).copy()).on(o,i=c),u.on=n}}function iD(t,e,r){var n=(t+="")=="transform"?ak:lP;return e==null?this.styleTween(t,eD(t,n)).on("end.style."+t,cP(t)):typeof e=="function"?this.styleTween(t,rD(t,n,Iv(this,"style."+t,e))).each(nD(this._id,t)):this.styleTween(t,tD(t,n,e),r).on("end.style."+t,null)}function aD(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function oD(t,e,r){var n,i;function a(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&aD(t,o,r)),n}return a._value=e,a}function sD(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,oD(t,e,r??""))}function uD(t){return function(){this.textContent=t}}function lD(t){return function(){var e=t(this);this.textContent=e??""}}function cD(t){return this.tween("text",typeof t=="function"?lD(Iv(this,"text",t)):uD(t==null?"":t+""))}function fD(t){return function(e){this.textContent=t.call(this,e)}}function hD(t){var e,r;function n(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&fD(i)),e}return n._value=t,n}function dD(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,hD(t))}function pD(){for(var t=this._name,e=this._id,r=fP(),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=Cr(u,e);Dl(u,t,r,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new cn(n,this._parents,t,r)}function mD(){var t,e,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=Gr(this,n),c=l.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),l.on=e}),i===0&&a()})}var yD=0;function cn(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function Rv(t){return ja().transition(t)}function fP(){return++yD}var Xr=ja.prototype;cn.prototype=Rv.prototype={constructor:cn,select:V$,selectAll:Z$,selectChild:Xr.selectChild,selectChildren:Xr.selectChildren,filter:U$,merge:W$,selection:Q$,transition:pD,call:Xr.call,nodes:Xr.nodes,node:Xr.node,size:Xr.size,empty:Xr.empty,each:Xr.each,on:K$,attr:T$,attrTween:j$,style:iD,styleTween:sD,text:cD,textTween:dD,remove:Y$,tween:_$,delay:$$,duration:L$,ease:B$,easeVarying:z$,end:mD,[Symbol.iterator]:Xr[Symbol.iterator]};function vD(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var gD={time:null,delay:0,duration:250,ease:vD};function bD(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function _D(t){var e,r;t instanceof cn?(e=t._id,t=t._name):(e=fP(),(r=gD).time=kv(),t=t==null?null:t+"");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])&&Dl(u,t,e,l,o,r||bD(u,e));return new cn(n,this._parents,t,e)}ja.prototype.interrupt=v$;ja.prototype.transition=_D;function Jr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hP(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
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 Bo=(e,t,r)=>pk(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react/jsx-runtime"),Z=require("@mui/material"),A=require("react"),WO=require("@mui/icons-material");function dk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const qr=dk(A);function mk(e){return e}var gf=1,vf=2,Jm=3,es=4,L0=1e-6;function yk(e){return"translate("+e+",0)"}function gk(e){return"translate(0,"+e+")"}function vk(e){return t=>+e(t)}function bk(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function _k(){return!this.__axis}function 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===gf||e===es?-1:1,c=e===es||e===vf?"x":"y",f=e===gf||e===Jm?yk:gk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):mk),d=Math.max(a,0)+s,v=t.range(),_=+v[0]+u,b=+v[v.length-1]+u,x=(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(),O=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*d).attr("dy",e===gf?"0em":e===Jm?"0.71em":"0.32em")),p!==g&&(w=w.transition(p),S=S.transition(p),M=M.transition(p),P=P.transition(p),O=O.transition(p).attr("opacity",L0).attr("transform",function(E){return isFinite(E=x(E))?f(E+u):this.getAttribute("transform")}),T.attr("opacity",L0).attr("transform",function(E){var k=this.parentNode.__axis;return f((k&&isFinite(k=k(E))?k:x(E))+u)})),O.remove(),w.attr("d",e===es||e===vf?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*d).text(m),g.filter(_k).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===vf?"start":e===es?"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 Os(e){return GO(Jm,e)}function Ts(e){return GO(es,e)}var xk={value:()=>{}};function Jg(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new rl(r)}function rl(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}})}rl.prototype=Jg.prototype={constructor:rl,on:function(e,t){var r=this._,n=wk(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=Sk(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=B0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=B0(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new rl(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function Sk(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function B0(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=xk,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var Qm="http://www.w3.org/1999/xhtml";const q0={svg:"http://www.w3.org/2000/svg",xhtml:Qm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),q0.hasOwnProperty(t)?{space:q0[t],local:e}:e}function Ak(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Qm&&t.documentElement.namespaceURI===Qm?t.createElement(e):t.createElementNS(r,e)}}function Ok(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function HO(e){var t=xc(e);return(t.local?Ok:Ak)(t)}function Tk(){}function Qg(e){return e==null?Tk:function(){return this.querySelector(e)}}function Pk(e){typeof e!="function"&&(e=Qg(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),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 Ar(n,this._parents)}function Ek(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ck(){return[]}function KO(e){return e==null?Ck:function(){return this.querySelectorAll(e)}}function Mk(e){return function(){return Ek(e.apply(this,arguments))}}function kk(e){typeof e=="function"?e=Mk(e):e=KO(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&(n.push(e.call(u,u.__data__,l,o)),i.push(u));return new Ar(n,i)}function YO(e){return function(){return this.matches(e)}}function XO(e){return function(t){return t.matches(e)}}var $k=Array.prototype.find;function jk(e){return function(){return $k.call(this.children,e)}}function Rk(){return this.firstElementChild}function Dk(e){return this.select(e==null?Rk:jk(typeof e=="function"?e:XO(e)))}var Ik=Array.prototype.filter;function Nk(){return Array.from(this.children)}function Lk(e){return function(){return Ik.call(this.children,e)}}function Bk(e){return this.selectAll(e==null?Nk:Lk(typeof e=="function"?e:XO(e)))}function qk(e){typeof e!="function"&&(e=YO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new Ar(n,this._parents)}function VO(e){return new Array(e.length)}function Fk(){return new Ar(this._enter||this._groups.map(VO),this._parents)}function ll(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ll.prototype={constructor:ll,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 ll(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 ll(e,a[s]);for(s=0;s<c;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}function Gk(e){return e.__data__}function Hk(e,t){if(!arguments.length)return Array.from(this,Gk);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,m=s[l]=new Array(y),d=o[l]=new Array(y),v=u[l]=new Array(h);r(c,f,m,d,v,p,t);for(var _=0,b=0,x,g;_<y;++_)if(x=m[_]){for(_>=b&&(b=_+1);!(g=d[b])&&++b<y;);x._next=g||null}}return o=new Ar(o,n),o._enter=s,o._exit=u,o}function Kk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Yk(){return new Ar(this._exit||this._groups.map(VO),this._parents)}function Xk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Vk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),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 Ar(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 Ar(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=xc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?s2:o2:typeof t=="function"?r.local?f2:c2:r.local?l2:u2)(r,t))}function ZO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function p2(e){return function(){this.style.removeProperty(e)}}function d2(e,t,r){return function(){this.style.setProperty(e,t,r)}}function m2(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function y2(e,t,r){return arguments.length>1?this.each((t==null?p2:typeof t=="function"?m2:d2)(e,t,r??"")):Ua(this.node(),e)}function Ua(e,t){return e.style.getPropertyValue(t)||ZO(e).getComputedStyle(e,null).getPropertyValue(t)}function g2(e){return function(){delete this[e]}}function v2(e,t){return function(){this[e]=t}}function b2(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _2(e,t){return arguments.length>1?this.each((t==null?g2:typeof t=="function"?b2:v2)(e,t)):this.node()[e]}function JO(e){return e.trim().split(/^|\s+/)}function tv(e){return e.classList||new QO(e)}function QO(e){this._node=e,this._names=JO(e.getAttribute("class")||"")}QO.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tT(e,t){for(var r=tv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function eT(e,t){for(var r=tv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function x2(e){return function(){tT(this,e)}}function w2(e){return function(){eT(this,e)}}function S2(e,t){return function(){(t.apply(this,arguments)?tT:eT)(this,e)}}function A2(e,t){var r=JO(e+"");if(arguments.length<2){for(var n=tv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?S2:t?x2:w2)(r,t))}function O2(){this.textContent=""}function T2(e){return function(){this.textContent=e}}function P2(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function E2(e){return arguments.length?this.each(e==null?O2:(typeof e=="function"?P2:T2)(e)):this.node().textContent}function C2(){this.innerHTML=""}function M2(e){return function(){this.innerHTML=e}}function k2(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function $2(e){return arguments.length?this.each(e==null?C2:(typeof e=="function"?k2:M2)(e)):this.node().innerHTML}function j2(){this.nextSibling&&this.parentNode.appendChild(this)}function R2(){return this.each(j2)}function D2(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function I2(){return this.each(D2)}function N2(e){var t=typeof e=="function"?e:HO(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:HO(e),n=t==null?L2:typeof t=="function"?t:Qg(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function q2(){var e=this.parentNode;e&&e.removeChild(this)}function F2(){return this.each(q2)}function z2(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function U2(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W2(e){return this.select(e?U2:z2)}function G2(e){return arguments.length?this.property("__data__",e):this.node().__data__}function H2(e){return function(t){e.call(this,t,this.__data__)}}function K2(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function Y2(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function X2(e,t,r){return function(){var n=this.__on,i,a=H2(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?X2:Y2,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function rT(e,t,r){var n=ZO(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Z2(e,t){return function(){return rT(this,e,t)}}function J2(e,t){return function(){return rT(this,e,t.apply(this,arguments))}}function Q2(e,t){return this.each((typeof t=="function"?J2:Z2)(e,t))}function*t$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var nT=[null];function Ar(e,t){this._groups=e,this._parents=t}function Oo(){return new Ar([[document.documentElement]],nT)}function e$(){return this}Ar.prototype=Oo.prototype={constructor:Ar,select:Pk,selectAll:kk,selectChild:Dk,selectChildren:Bk,filter:qk,data:Hk,enter:Fk,exit:Yk,join:Xk,merge:Vk,selection:e$,order:Zk,sort:Jk,call:t2,nodes:e2,node:r2,size:n2,empty:i2,each:a2,attr:h2,style:y2,property:_2,classed:A2,text:E2,html:$2,raise:R2,lower:I2,append:N2,insert:B2,remove:F2,clone:W2,datum:G2,on:V2,dispatch:Q2,[Symbol.iterator]:t$};function te(e){return typeof e=="string"?new Ar([[document.querySelector(e)]],[document.documentElement]):new Ar([[e]],nT)}function r$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ps(e,t){if(e=r$(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const ty={capture:!0,passive:!1};function ey(e){e.preventDefault(),e.stopImmediatePropagation()}function n$(e){var t=e.document.documentElement,r=te(e).on("dragstart.drag",ey,ty);"onselectstart"in t?r.on("selectstart.drag",ey,ty):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function i$(e,t){var r=e.document.documentElement,n=te(e).on("dragstart.drag",null);t&&(n.on("click.drag",ey,ty),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function ev(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function iT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function vu(){}var Es=.7,cl=1/Es,Ra="\\s*([+-]?\\d+)\\s*",Cs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a$=/^#([0-9a-f]{3,8})$/,o$=new RegExp(`^rgb\\(${Ra},${Ra},${Ra}\\)$`),s$=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),u$=new RegExp(`^rgba\\(${Ra},${Ra},${Ra},${Cs}\\)$`),l$=new RegExp(`^rgba\\(${bn},${bn},${bn},${Cs}\\)$`),c$=new RegExp(`^hsl\\(${Cs},${bn},${bn}\\)$`),f$=new RegExp(`^hsla\\(${Cs},${bn},${bn},${Cs}\\)$`),F0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ev(vu,Ji,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z0,formatHex:z0,formatHex8:h$,formatHsl:p$,formatRgb:U0,toString:U0});function z0(){return this.rgb().formatHex()}function h$(){return this.rgb().formatHex8()}function p$(){return aT(this).formatHsl()}function U0(){return this.rgb().formatRgb()}function Ji(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=a$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?W0(t):r===3?new Qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Du(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Du(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 Qe(t[1],t[2],t[3],1):(t=s$.exec(e))?new Qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=u$.exec(e))?Du(t[1],t[2],t[3],t[4]):(t=l$.exec(e))?Du(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=c$.exec(e))?K0(t[1],t[2]/100,t[3]/100,1):(t=f$.exec(e))?K0(t[1],t[2]/100,t[3]/100,t[4]):F0.hasOwnProperty(e)?W0(F0[e]):e==="transparent"?new Qe(NaN,NaN,NaN,0):null}function W0(e){return new Qe(e>>16&255,e>>8&255,e&255,1)}function Du(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qe(e,t,r,n)}function d$(e){return e instanceof vu||(e=Ji(e)),e?(e=e.rgb(),new Qe(e.r,e.g,e.b,e.opacity)):new Qe}function ry(e,t,r,n){return arguments.length===1?d$(e):new Qe(e,t,r,n??1)}function Qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ev(Qe,ry,iT(vu,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Es:Math.pow(Es,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qe(Wi(this.r),Wi(this.g),Wi(this.b),fl(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:m$,formatRgb:H0,toString:H0}));function G0(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}`}function m$(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}${Ii((isNaN(this.opacity)?1:this.opacity)*255)}`}function H0(){const e=fl(this.opacity);return`${e===1?"rgb(":"rgba("}${Wi(this.r)}, ${Wi(this.g)}, ${Wi(this.b)}${e===1?")":`, ${e})`}`}function fl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ii(e){return e=Wi(e),(e<16?"0":"")+e.toString(16)}function K0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tn(e,t,r,n)}function aT(e){if(e instanceof tn)return new tn(e.h,e.s,e.l,e.opacity);if(e instanceof vu||(e=Ji(e)),!e)return new tn;if(e instanceof tn)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 tn(o,s,u,e.opacity)}function y$(e,t,r,n){return arguments.length===1?aT(e):new tn(e,t,r,n??1)}function tn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ev(tn,y$,iT(vu,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Es:Math.pow(Es,e),new tn(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 Qe(bf(e>=240?e-240:e+120,i,n),bf(e,i,n),bf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new tn(Y0(this.h),Iu(this.s),Iu(this.l),fl(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=fl(this.opacity);return`${e===1?"hsl(":"hsla("}${Y0(this.h)}, ${Iu(this.s)*100}%, ${Iu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y0(e){return e=(e||0)%360,e<0?e+360:e}function Iu(e){return Math.max(0,Math.min(1,e||0))}function bf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const rv=e=>()=>e;function g$(e,t){return function(r){return e+r*t}}function v$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function b$(e){return(e=+e)==1?oT:function(t,r){return r-t?v$(t,r,e):rv(isNaN(t)?r:t)}}function oT(e,t){var r=t-e;return r?g$(e,r):rv(isNaN(e)?t:e)}const hl=(function e(t){var r=b$(t);function n(i,a){var o=r((i=ry(i)).r,(a=ry(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=oT(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]=ua(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 Qr(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]=ua(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ny=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_f=new RegExp(ny.source,"g");function O$(e){return function(){return e}}function T$(e){return function(t){return e(t)+""}}function sT(e,t){var r=ny.lastIndex=_f.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=ny.exec(e))&&(i=_f.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Qr(n,i)})),r=_f.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 ua(e,t){var r=typeof t,n;return t==null||r==="boolean"?rv(t):(r==="number"?Qr:r==="string"?(n=Ji(t))?(t=n,hl):sT:t instanceof Ji?hl:t instanceof Date?S$:x$(t)?_$:Array.isArray(t)?w$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A$:Qr)(e,t)}function nv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var X0=180/Math.PI,iy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uT(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)*X0,skewX:Math.atan(u)*X0,scaleX:o,scaleY:s}}var Nu;function P$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?iy:uT(t.a,t.b,t.c,t.d,t.e,t.f)}function E$(e){return e==null||(Nu||(Nu=document.createElementNS("http://www.w3.org/2000/svg","g")),Nu.setAttribute("transform",e),!(e=Nu.transform.baseVal.consolidate()))?iy:(e=e.matrix,uT(e.a,e.b,e.c,e.d,e.e,e.f))}function lT(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,c,f,h,p,y){if(l!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:Qr(l,f)},{i:m-2,x:Qr(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:Qr(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:Qr(l,c)}):c&&f.push(i(f)+"skewX("+c+n)}function u(l,c,f,h,p,y){if(l!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:Qr(l,f)},{i:m-2,x:Qr(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),a(l.translateX,l.translateY,c.translateX,c.translateY,f,h),o(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var C$=lT(P$,"px, ","px)","deg)"),M$=lT(E$,", ",")",")");function k$(e,t){t===void 0&&(t=e,e=ua);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 Wa=0,rs=0,qo=0,cT=1e3,pl,ns,dl=0,Qi=0,wc=0,Ms=typeof performance=="object"&&performance.now?performance:Date,fT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function iv(){return Qi||(fT($$),Qi=Ms.now()+wc)}function $$(){Qi=0}function ml(){this._call=this._time=this._next=null}ml.prototype=hT.prototype={constructor:ml,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?iv():+r)+(t==null?0:+t),!this._next&&ns!==this&&(ns?ns._next=this:pl=this,ns=this),this._call=e,this._time=r,ay()},stop:function(){this._call&&(this._call=null,this._time=1/0,ay())}};function hT(e,t,r){var n=new ml;return n.restart(e,t,r),n}function j$(){iv(),++Wa;for(var e=pl,t;e;)(t=Qi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Wa}function V0(){Qi=(dl=Ms.now())+wc,Wa=rs=0;try{j$()}finally{Wa=0,D$(),Qi=0}}function R$(){var e=Ms.now(),t=e-dl;t>cT&&(wc-=t,dl=e)}function D$(){for(var e,t=pl,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:pl=r);ns=e,ay(n)}function ay(e){if(!Wa){rs&&(rs=clearTimeout(rs));var t=e-Qi;t>24?(e<1/0&&(rs=setTimeout(V0,e-Ms.now()-wc)),qo&&(qo=clearInterval(qo))):(qo||(dl=Ms.now(),qo=setInterval(R$,cT)),Wa=1,fT(V0))}}function Z0(e,t,r){var n=new ml;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var I$=Jg("start","end","cancel","interrupt"),N$=[],pT=0,J0=1,oy=2,nl=3,Q0=4,sy=5,il=6;function Sc(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;L$(e,r,{name:t,index:n,group:i,on:I$,tween:N$,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:pT})}function av(e,t){var r=nn(e,t);if(r.state>pT)throw new Error("too late; already scheduled");return r}function An(e,t){var r=nn(e,t);if(r.state>nl)throw new Error("too late; already running");return r}function nn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function L$(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=hT(a,0,r.time);function a(l){r.state=J0,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!==J0)return u();for(c in n)if(p=n[c],p.name===r.name){if(p.state===nl)return Z0(o);p.state===Q0?(p.state=il,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=il,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(Z0(function(){r.state===nl&&(r.state=Q0,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=oy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===oy){for(r.state=nl,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=sy,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===sy&&(r.on.call("end",e,e.__data__,r.index,r.group),u())}function u(){r.state=il,r.timer.stop(),delete n[t];for(var l in n)return;delete e.__transition}}function uy(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>oy&&n.state<sy,n.state=il,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(){uy(this,e)})}function q$(e,t){var r,n;return function(){var i=An(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=An(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=nn(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?q$:F$)(r,e,t))}function ov(e,t,r){var n=e._id;return e.each(function(){var i=An(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return nn(i,n).value[t]}}function dT(e,t){var r;return(typeof t=="number"?Qr:t instanceof Ji?hl:(r=Ji(t))?(t=r,hl):sT)(e,t)}function U$(e){return function(){this.removeAttribute(e)}}function W$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function G$(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 H$(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 Y$(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 X$(e,t){var r=xc(e),n=r==="transform"?M$:dT;return this.attrTween(e,typeof t=="function"?(r.local?Y$:K$)(r,n,ov(this,"attr."+e,t)):t==null?(r.local?W$:U$)(r):(r.local?H$:G$)(r,n,t))}function V$(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Z$(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function J$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Z$(e,a)),r}return i._value=t,i}function Q$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&V$(e,a)),r}return i._value=t,i}function tj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=xc(e);return this.tween(r,(n.local?J$:Q$)(n,t))}function ej(e,t){return function(){av(this,e).delay=+t.apply(this,arguments)}}function rj(e,t){return t=+t,function(){av(this,e).delay=t}}function nj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ej:rj)(t,e)):nn(this.node(),t).delay}function ij(e,t){return function(){An(this,e).duration=+t.apply(this,arguments)}}function aj(e,t){return t=+t,function(){An(this,e).duration=t}}function oj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ij:aj)(t,e)):nn(this.node(),t).duration}function sj(e,t){if(typeof t!="function")throw new Error;return function(){An(this,e).ease=t}}function uj(e){var t=this._id;return arguments.length?this.each(sj(t,e)):nn(this.node(),t).ease}function lj(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;An(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 Fn(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 Fn(o,this._parents,this._name,this._id)}function pj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function dj(e,t,r){var n,i,a=pj(t)?av:An;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?nn(this.node(),r).on.on(e):this.each(dj(r,e,t))}function yj(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function gj(){return this.on("end.remove",yj(this._id))}function vj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Qg(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],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,Sc(l[h],t,r,h,l,nn(c,r)));return new Fn(a,this._parents,t,r)}function bj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=KO(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var 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=nn(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Sc(p,t,r,m,h,y);a.push(h),o.push(c)}return new Fn(a,o,t,r)}var _j=Oo.prototype.constructor;function xj(){return new _j(this._groups,this._parents)}function wj(e,t){var r,n,i;return function(){var a=Ua(this,e),o=(this.style.removeProperty(e),Ua(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function mT(e){return function(){this.style.removeProperty(e)}}function Sj(e,t,r){var n,i=r+"",a;return function(){var o=Ua(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=Ua(this,e),s=r(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ua(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=An(this,e),l=u.on,c=u.value[a]==null?s||(s=mT(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$:dT;return t==null?this.styleTween(e,wj(e,n)).on("end.style."+e,mT(e)):typeof t=="function"?this.styleTween(e,Aj(e,n,ov(this,"style."+e,t))).each(Oj(this._id,e)):this.styleTween(e,Sj(e,n,t),r).on("end.style."+e,null)}function Pj(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Ej(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&Pj(e,o,r)),n}return a._value=t,a}function Cj(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Ej(e,t,r??""))}function Mj(e){return function(){this.textContent=e}}function kj(e){return function(){var t=e(this);this.textContent=t??""}}function $j(e){return this.tween("text",typeof e=="function"?kj(ov(this,"text",e)):Mj(e==null?"":e+""))}function jj(e){return function(t){this.textContent=e.call(this,t)}}function Rj(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&jj(i)),t}return n._value=e,n}function Dj(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Rj(e))}function Ij(){for(var e=this._name,t=this._id,r=yT(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,u,l=0;l<s;++l)if(u=o[l]){var c=nn(u,t);Sc(u,e,r,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Fn(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=An(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 Fn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function sv(e){return Oo().transition(e)}function yT(){return++Lj}var Cn=Oo.prototype;Fn.prototype=sv.prototype={constructor:Fn,select:vj,selectAll:bj,selectChild:Cn.selectChild,selectChildren:Cn.selectChildren,filter:fj,merge:hj,selection:xj,transition:Ij,call:Cn.call,nodes:Cn.nodes,node:Cn.node,size:Cn.size,empty:Cn.empty,each:Cn.each,on:mj,attr:X$,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]:Cn[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 Fn?(t=e._id,e=e._name):(t=yT(),(r=qj).time=iv(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&Sc(u,e,t,l,o,r||Fj(u,t));return new Fn(n,this._parents,e,t)}Oo.prototype.interrupt=B$;Oo.prototype.transition=zj;const xf=e=>()=>e;function Uj(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Wj(e){e.stopImmediatePropagation()}function wf(e){e.preventDefault(),e.stopImmediatePropagation()}var tb={name:"drag"},Sf={name:"space"},_a={name:"handle"},xa={name:"center"};const{abs:eb,max:Ie,min:Ne}=Math;function rb(e){return[+e[0],+e[1]]}function nb(e){return[rb(e[0]),rb(e[1])]}var al={name:"x",handles:["w","e"].map(ly),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Af={},Mn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ib={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ab={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Gj={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Hj={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ly(e){return{type:e}}function Kj(e){return!e.ctrlKey&&!e.button}function Yj(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Xj(){return navigator.maxTouchPoints||"ontouchstart"in this}function Of(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Vj(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Ac(){return Zj(al)}function Zj(e){var t=Yj,r=Kj,n=Xj,i=!0,a=Jg("start","brush","end"),o=6,s;function u(d){var v=d.property("__brush",m).selectAll(".overlay").data([ly("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Mn.overlay).merge(v).each(function(){var b=Of(this).extent;te(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),d.selectAll(".selection").data([ly("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Mn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var _=d.selectAll(".handle").data(e.handles,function(b){return b.type});_.exit().remove(),_.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return Mn[b.type]}),d.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(d,v,_){d.tween?d.on("start.brush",function(b){c(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){c(this,arguments).end(b)}).tween("brush",function(){var b=this,x=b.__brush,g=c(b,arguments),w=x.selection,S=e.input(typeof v=="function"?v.apply(this,arguments):v,x.extent),O=ua(w,S);function T(M){x.selection=M===1&&S===null?null:O(M),l.call(b),g.brush()}return w!==null&&S!==null?T:T(1)}):d.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();uy(b),g.selection=w===null?null:w,l.call(b),S.start(_).brush(_).end(_)})},u.clear=function(d,v){u.move(d,null,v)};function l(){var d=te(this),v=Of(this).selection;v?(d.selectAll(".selection").style("display",null).attr("x",v[0][0]).attr("y",v[0][1]).attr("width",v[1][0]-v[0][0]).attr("height",v[1][1]-v[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(_){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})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,v,_){var b=d.__brush.emitter;return b&&(!_||!b.clean)?b:new f(d,v,_)}function f(d,v,_){this.that=d,this.args=v,this.state=d.__brush,this.active=0,this.clean=_}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,v){return this.starting?(this.starting=!1,this.emit("start",d,v)):this.emit("brush",d),this},brush:function(d,v){return this.emit("brush",d,v),this},end:function(d,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,v)),this},emit:function(d,v,_){var b=te(this.that).datum();a.call(d,this.that,new Uj(d,{sourceEvent:v,target:u,selection:e.output(this.state.selection),mode:_,dispatch:a}),b)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var v=this,_=d.target.__data__.type,b=(i&&d.metaKey?_="overlay":_)==="selection"?tb:i&&d.altKey?xa:_a,x=e===Af?null:Gj[_],g=e===al?null:Hj[_],w=Of(v),S=w.extent,O=w.selection,T=S[0][0],M,P,E=S[0][1],k,R,$=S[1][0],C,I,L=S[1][1],q,D,j=0,B=0,W,G=x&&g&&i&&d.shiftKey,X,J,et=Array.from(d.touches||[d],at=>{const ht=at.identifier;return at=Ps(at,v),at.point0=at.slice(),at.identifier=ht,at});uy(v);var K=c(v,arguments,!0).beforestart();if(_==="overlay"){O&&(W=!0);const at=[et[0],et[1]||et[0]];w.selection=O=[[M=e===Af?T:Ne(at[0][0],at[1][0]),k=e===al?E:Ne(at[0][1],at[1][1])],[C=e===Af?$:Ie(at[0][0],at[1][0]),q=e===al?L:Ie(at[0][1],at[1][1])]],et.length>1&&ut(d)}else M=O[0][0],k=O[0][1],C=O[1][0],q=O[1][1];P=M,R=k,I=C,D=q;var F=te(v).attr("pointer-events","none"),H=F.selectAll(".overlay").attr("cursor",Mn[_]);if(d.touches)K.moved=N,K.ended=z;else{var Q=te(d.view).on("mousemove.brush",N,!0).on("mouseup.brush",z,!0);i&&Q.on("keydown.brush",st,!0).on("keyup.brush",ft,!0),n$(d.view)}l.call(v),K.start(d,b.name);function N(at){for(const ht of at.changedTouches||[at])for(const Tt of et)Tt.identifier===ht.identifier&&(Tt.cur=Ps(ht,v));if(G&&!X&&!J&&et.length===1){const ht=et[0];eb(ht.cur[0]-ht[0])>eb(ht.cur[1]-ht[1])?J=!0:X=!0}for(const ht of et)ht.cur&&(ht[0]=ht.cur[0],ht[1]=ht.cur[1]);W=!0,wf(at),ut(at)}function ut(at){const ht=et[0],Tt=ht.point0;var it;switch(j=ht[0]-Tt[0],B=ht[1]-Tt[1],b){case Sf:case tb:{x&&(j=Ie(T-M,Ne($-C,j)),P=M+j,I=C+j),g&&(B=Ie(E-k,Ne(L-q,B)),R=k+B,D=q+B);break}case _a:{et[1]?(x&&(P=Ie(T,Ne($,et[0][0])),I=Ie(T,Ne($,et[1][0])),x=1),g&&(R=Ie(E,Ne(L,et[0][1])),D=Ie(E,Ne(L,et[1][1])),g=1)):(x<0?(j=Ie(T-M,Ne($-M,j)),P=M+j,I=C):x>0&&(j=Ie(T-C,Ne($-C,j)),P=M,I=C+j),g<0?(B=Ie(E-k,Ne(L-k,B)),R=k+B,D=q):g>0&&(B=Ie(E-q,Ne(L-q,B)),R=k,D=q+B));break}case xa:{x&&(P=Ie(T,Ne($,M-j*x)),I=Ie(T,Ne($,C+j*x))),g&&(R=Ie(E,Ne(L,k-B*g)),D=Ie(E,Ne(L,q+B*g)));break}}I<P&&(x*=-1,it=M,M=C,C=it,it=P,P=I,I=it,_ in ib&&H.attr("cursor",Mn[_=ib[_]])),D<R&&(g*=-1,it=k,k=q,q=it,it=R,R=D,D=it,_ in ab&&H.attr("cursor",Mn[_=ab[_]])),w.selection&&(O=w.selection),X&&(P=O[0][0],I=O[1][0]),J&&(R=O[0][1],D=O[1][1]),(O[0][0]!==P||O[0][1]!==R||O[1][0]!==I||O[1][1]!==D)&&(w.selection=[[P,R],[I,D]],l.call(v),K.brush(at,b.name))}function z(at){if(Wj(at),at.touches){if(at.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else i$(at.view,W),Q.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),H.attr("cursor",Mn.overlay),w.selection&&(O=w.selection),Vj(O)&&(w.selection=null,l.call(v)),K.end(at,b.name)}function st(at){switch(at.keyCode){case 16:{G=x&&g;break}case 18:{b===_a&&(x&&(C=I-j*x,M=P+j*x),g&&(q=D-B*g,k=R+B*g),b=xa,ut(at));break}case 32:{(b===_a||b===xa)&&(x<0?C=I-j:x>0&&(M=P-j),g<0?q=D-B:g>0&&(k=R-B),b=Sf,H.attr("cursor",Mn.selection),ut(at));break}default:return}wf(at)}function ft(at){switch(at.keyCode){case 16:{G&&(X=J=G=!1,ut(at));break}case 18:{b===xa&&(x<0?C=I:x>0&&(M=P),g<0?q=D:g>0&&(k=R),b=_a,ut(at));break}case 32:{b===Sf&&(at.altKey?(x&&(C=I-j*x,M=P+j*x),g&&(q=D-B*g,k=R+B*g),b=xa):(x<0?C=I:x>0&&(M=P),g<0?q=D:g>0&&(k=R),b=_a),H.attr("cursor",Mn[_]),ut(at));break}default:return}wf(at)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=nb(t.apply(this,arguments)),d.dim=e,d}return u.extent=function(d){return arguments.length?(t=typeof d=="function"?d:xf(nb(d)),u):t},u.filter=function(d){return arguments.length?(r=typeof d=="function"?d:xf(!!d),u):r},u.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:xf(!!d),u):n},u.handleSize=function(d){return arguments.length?(o=+d,u):o},u.keyModifiers=function(d){return arguments.length?(i=!!d,u):i},u.on=function(){var d=a.on.apply(a,arguments);return d===a?u:d},u}function ci(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 uv(e){let t,r,n;e.length!==2?(t=ci,r=(s,u)=>ci(e(s),u),n=(s,u)=>e(s)-u):(t=e===ci||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 gT(e){return e===null?NaN:+e}function*tR(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eR=uv(ci),bu=eR.right;uv(gT).center;class ob extends Map{constructor(t,r=iR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(sb(this,t))}has(t){return super.has(sb(this,t))}set(t,r){return super.set(rR(this,t),r)}delete(t){return super.delete(nR(this,t))}}function sb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function rR({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function nR({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function iR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aR(e=ci){if(e===ci)return vT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function vT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const oR=Math.sqrt(50),sR=Math.sqrt(10),uR=Math.sqrt(2);function yl(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?yl(e,t,r*2):[s,u,l]}function cy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?yl(t,e,r):yl(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 fy(e,t,r){return t=+t,e=+e,r=+r,yl(e,t,r)[2]}function hy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?fy(t,e,r):fy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function ub(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}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 bT(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?vT:aR(i);n>r;){if(n-r>600){const 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));bT(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(Fo(e,r,t),i(e[n],a)>0&&Fo(e,r,n);o<s;){for(Fo(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Fo(e,r,s):(++s,Fo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Fo(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 lb(e);if(t>=1)return ub(e);var n,i=(n-1)*t,a=Math.floor(i),o=ub(bT(e,a).subarray(0,a+1)),s=lb(e.subarray(a+1));return o+(s-o)*(i-a)}}function cR(e,t,r=gT){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function fR(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ur(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Kn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const py=Symbol("implicit");function lv(){var e=new ob,t=[],r=[],n=py;function i(a){let o=e.get(a);if(o===void 0){if(n!==py)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ob;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return lv(t,r).unknown(n)},Ur.apply(i,arguments),i}function ks(){var e=lv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,u=0,l=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-u+l*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-u))*c,o=a*(1-u),s&&(y=Math.round(y),o=Math.round(o));var d=fR(h).map(function(v){return y+a*v});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(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 ks(t(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},Ur.apply(f(),arguments)}function _T(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _T(t())},e}function ls(){return _T(ks.apply(null,arguments).paddingInner(1))}function hR(e){return function(){return e}}function gl(e){return+e}var cb=[0,1];function Ye(e){return e}function dy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:hR(isNaN(t)?NaN:.5)}function pR(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function dR(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=dy(i,n),a=r(o,a)):(n=dy(n,i),a=r(a,o)),function(s){return a(n(s))}}function mR(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=dy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=bu(e,s,1,n)-1;return a[u](i[u](s))}}function _u(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Oc(){var e=cb,t=cb,r=ua,n,i,a,o=Ye,s,u,l;function c(){var h=Math.min(e.length,t.length);return o!==Ye&&(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),Qr)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,gl),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=nv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:Ye,c()):o!==Ye},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function cv(){return Oc()(Ye,Ye)}function yR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ga(e){return e=vl(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 $s(e){if(!(t=bR.exec(e)))throw new Error("invalid format: "+e);var t;return new fv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}$s.prototype=fv.prototype;function fv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _R(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var xT;function xR(e,t){var r=vl(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(xT=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+vl(e,Math.max(0,t+a-1))[0]}function fb(e,t){var r=vl(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const hb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fb(e*100,t),r:fb,s:xR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pb(e){return e}var db=Array.prototype.map,mb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wR(e){var t=e.grouping===void 0||e.thousands===void 0?pb:gR(db.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pb:vR(db.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=$s(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,v=f.width,_=f.comma,b=f.precision,x=f.trim,g=f.type;g==="n"?(_=!0,g="g"):hb[g]||(b===void 0&&(b=12),x=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?n:/[%p]/.test(g)?o:"",O=hb[g],T=/[defgprs%]/.test(g);b=b===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function M(P){var E=w,k=S,R,$,C;if(g==="c")k=O(P)+k,P="";else{P=+P;var I=P<0||1/P<0;if(P=isNaN(P)?u:O(Math.abs(P),b),x&&(P=_R(P)),I&&+P==0&&y!=="+"&&(I=!1),E=(I?y==="("?y:s:y==="-"||y==="("?"":y)+E,k=(g==="s"?mb[8+xT/3]:"")+k+(I&&y==="("?")":""),T){for(R=-1,$=P.length;++R<$;)if(C=P.charCodeAt(R),48>C||C>57){k=(C===46?i+P.slice(R+1):P.slice(R))+k,P=P.slice(0,R);break}}}_&&!d&&(P=t(P,1/0));var L=E.length+P.length+k.length,q=L<v?new Array(v-L+1).join(h):"";switch(_&&d&&(P=t(q+P,q.length?v-k.length:1/0),q=""),p){case"<":P=E+P+k+q;break;case"=":P=E+q+P+k;break;case"^":P=q.slice(0,L=q.length>>1)+E+P+k+q.slice(L);break;default:P=q+E+P+k;break}return a(P)}return M.toString=function(){return f+""},M}function c(f,h){var p=l((f=$s(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Ga(h)/3)))*3,m=Math.pow(10,-y),d=mb[8+y/3];return function(v){return p(m*v)+d}}return{format:l,formatPrefix:c}}var Lu,hv,wT;SR({thousands:",",grouping:[3],currency:["$",""]});function SR(e){return Lu=wR(e),hv=Lu.format,wT=Lu.formatPrefix,Lu}function AR(e){return Math.max(0,-Ga(Math.abs(e)))}function OR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ga(t)/3)))*3-Ga(Math.abs(e)))}function TR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ga(t)-Ga(e))+1}function ST(e,t,r,n){var i=hy(e,t,r),a;switch(n=$s(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=OR(i,o))&&(n.precision=a),wT(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=TR(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=AR(i))&&(n.precision=a-(n.type==="%")*2);break}}return hv(n)}function mi(e){var t=e.domain;return e.ticks=function(r){var n=t();return cy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ST(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,l,c=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);c-- >0;){if(l=fy(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 ta(){var e=cv();return e.copy=function(){return _u(e,ta())},Ur.apply(e,arguments),mi(e)}function AT(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,gl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return AT(e).unknown(t)},e=arguments.length?Array.from(e,gl):[0,1],mi(r)}function OT(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function yb(e){return Math.log(e)}function gb(e){return Math.exp(e)}function PR(e){return-Math.log(-e)}function ER(e){return-Math.exp(-e)}function CR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MR(e){return e===10?CR:e===Math.E?Math.exp:t=>Math.pow(e,t)}function kR(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vb(e){return(t,r)=>-e(-t,r)}function pv(e){const t=e(yb,gb),r=t.domain;let n=10,i,a;function o(){return i=kR(n),a=MR(n),r()[0]<0?(i=vb(i),a=vb(a),e(PR,ER)):e(yb,gb),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let l=u[0],c=u[u.length-1];const f=c<l;f&&([l,c]=[c,l]);let h=i(l),p=i(c),y,m;const d=s==null?10:+s;let v=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),l>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<l)){if(m>c)break;v.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<l)){if(m>c)break;v.push(m)}v.length*2<d&&(v=cy(l,c,d))}else v=cy(h,p,Math.min(p-h,d)).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=$s(u)).precision==null&&(u.trim=!0),u=hv(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(OT(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function TT(){const e=pv(Oc()).domain([1,10]);return e.copy=()=>_u(e,TT()).base(e.base()),Ur.apply(e,arguments),e}function bb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _b(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function dv(e){var t=1,r=e(bb(t),_b(t));return r.constant=function(n){return arguments.length?e(bb(t=+n),_b(t)):t},mi(r)}function PT(){var e=dv(Oc());return e.copy=function(){return _u(e,PT()).constant(e.constant())},Ur.apply(e,arguments)}function xb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $R(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jR(e){return e<0?-e*e:e*e}function mv(e){var t=e(Ye,Ye),r=1;function n(){return r===1?e(Ye,Ye):r===.5?e($R,jR):e(xb(r),xb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},mi(t)}function yv(){var e=mv(Oc());return e.copy=function(){return _u(e,yv()).exponent(e.exponent())},Ur.apply(e,arguments),e}function RR(){return yv.apply(null,arguments).exponent(.5)}function wb(e){return Math.sign(e)*e*e}function DR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ET(){var e=cv(),t=[0,1],r=!1,n;function i(a){var o=DR(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(wb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,gl)).map(wb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ET(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ur.apply(i,arguments),mi(i)}function CT(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=cR(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[bu(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(ci),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return CT().domain(e).range(t).unknown(n)},Ur.apply(a,arguments)}function MT(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[bu(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 MT().domain([e,t]).range(i).unknown(a)},Ur.apply(mi(o),arguments)}function kT(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[bu(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return kT().domain(e).range(t).unknown(r)},Ur.apply(i,arguments)}const Tf=new Date,Pf=new Date;function xe(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=>xe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Tf.setTime(+a),Pf.setTime(+o),e(Tf),e(Pf),Math.floor(r(Tf,Pf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const bl=xe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bl);bl.range;const Dn=1e3,Ir=Dn*60,In=Ir*60,zn=In*24,gv=zn*7,Sb=zn*30,Ef=zn*365,Ni=xe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Dn)},(e,t)=>(t-e)/Dn,e=>e.getUTCSeconds());Ni.range;const vv=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dn)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getMinutes());vv.range;const bv=xe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getUTCMinutes());bv.range;const _v=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dn-e.getMinutes()*Ir)},(e,t)=>{e.setTime(+e+t*In)},(e,t)=>(t-e)/In,e=>e.getHours());_v.range;const xv=xe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*In)},(e,t)=>(t-e)/In,e=>e.getUTCHours());xv.range;const xu=xe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ir)/zn,e=>e.getDate()-1);xu.range;const Tc=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zn,e=>e.getUTCDate()-1);Tc.range;const $T=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zn,e=>Math.floor(e/zn));$T.range;function la(e){return xe(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())*Ir)/gv)}const Pc=la(0),_l=la(1),IR=la(2),NR=la(3),Ha=la(4),LR=la(5),BR=la(6);Pc.range;_l.range;IR.range;NR.range;Ha.range;LR.range;BR.range;function ca(e){return xe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/gv)}const Ec=ca(0),xl=ca(1),qR=ca(2),FR=ca(3),Ka=ca(4),zR=ca(5),UR=ca(6);Ec.range;xl.range;qR.range;FR.range;Ka.range;zR.range;UR.range;const wv=xe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wv.range;const Sv=xe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Sv.range;const Un=xe(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());Un.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(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)});Un.range;const Wn=xe(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());Wn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(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)});Wn.range;function jT(e,t,r,n,i,a){const o=[[Ni,1,Dn],[Ni,5,5*Dn],[Ni,15,15*Dn],[Ni,30,30*Dn],[a,1,Ir],[a,5,5*Ir],[a,15,15*Ir],[a,30,30*Ir],[i,1,In],[i,3,3*In],[i,6,6*In],[i,12,12*In],[n,1,zn],[n,2,2*zn],[r,1,gv],[t,1,Sb],[t,3,3*Sb],[e,1,Ef]];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=uv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(hy(l/Ef,c/Ef,f));if(p===0)return bl.every(Math.max(hy(l,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,u]}const[WR,GR]=jT(Wn,Sv,Ec,$T,xv,bv),[HR,KR]=jT(Un,wv,Pc,xu,_v,vv);function Cf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Mf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function zo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function YR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,l=Uo(i),c=Wo(i),f=Uo(a),h=Wo(a),p=Uo(o),y=Wo(o),m=Uo(s),d=Wo(s),v=Uo(u),_=Wo(u),b={a:I,A:L,b:q,B:D,c:null,d:Cb,e:Cb,f:gD,g:PD,G:CD,H:dD,I:mD,j:yD,L:RT,m:vD,M:bD,p:j,q:B,Q:$b,s:jb,S:_D,u:xD,U:wD,V:SD,w:AD,W:OD,x:null,X:null,y:TD,Y:ED,Z:MD,"%":kb},x={a:W,A:G,b:X,B:J,c:null,d:Mb,e:Mb,f:RD,g:WD,G:HD,H:kD,I:$D,j:jD,L:IT,m:DD,M:ID,p:et,q:K,Q:$b,s:jb,S:ND,u:LD,U:BD,V:qD,w:FD,W:zD,x:null,X:null,y:UD,Y:GD,Z:KD,"%":kb},g={a:M,A:P,b:E,B:k,c:R,d:Pb,e:Pb,f:cD,g:Tb,G:Ob,H:Eb,I:Eb,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:$,X:C,y:Tb,Y:Ob,Z:nD,"%":fD};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),x.x=w(r,x),x.X=w(n,x),x.c=w(t,x);function w(F,H){return function(Q){var N=[],ut=-1,z=0,st=F.length,ft,at,ht;for(Q instanceof Date||(Q=new Date(+Q));++ut<st;)F.charCodeAt(ut)===37&&(N.push(F.slice(z,ut)),(at=Ab[ft=F.charAt(++ut)])!=null?ft=F.charAt(++ut):at=ft==="e"?" ":"0",(ht=H[ft])&&(ft=ht(Q,at)),N.push(ft),z=ut+1);return N.push(F.slice(z,ut)),N.join("")}}function S(F,H){return function(Q){var N=zo(1900,void 0,1),ut=O(N,F,Q+="",0),z,st;if(ut!=Q.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(H&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(z=Mf(zo(N.y,0,1)),st=z.getUTCDay(),z=st>4||st===0?xl.ceil(z):xl(z),z=Tc.offset(z,(N.V-1)*7),N.y=z.getUTCFullYear(),N.m=z.getUTCMonth(),N.d=z.getUTCDate()+(N.w+6)%7):(z=Cf(zo(N.y,0,1)),st=z.getDay(),z=st>4||st===0?_l.ceil(z):_l(z),z=xu.offset(z,(N.V-1)*7),N.y=z.getFullYear(),N.m=z.getMonth(),N.d=z.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),st="Z"in N?Mf(zo(N.y,0,1)).getUTCDay():Cf(zo(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(st+5)%7:N.w+N.U*7-(st+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Mf(N)):Cf(N)}}function O(F,H,Q,N){for(var ut=0,z=H.length,st=Q.length,ft,at;ut<z;){if(N>=st)return-1;if(ft=H.charCodeAt(ut++),ft===37){if(ft=H.charAt(ut++),at=g[ft in Ab?H.charAt(ut++):ft],!at||(N=at(F,Q,N))<0)return-1}else if(ft!=Q.charCodeAt(N++))return-1}return N}function T(F,H,Q){var N=l.exec(H.slice(Q));return N?(F.p=c.get(N[0].toLowerCase()),Q+N[0].length):-1}function M(F,H,Q){var N=p.exec(H.slice(Q));return N?(F.w=y.get(N[0].toLowerCase()),Q+N[0].length):-1}function P(F,H,Q){var N=f.exec(H.slice(Q));return N?(F.w=h.get(N[0].toLowerCase()),Q+N[0].length):-1}function E(F,H,Q){var N=v.exec(H.slice(Q));return N?(F.m=_.get(N[0].toLowerCase()),Q+N[0].length):-1}function k(F,H,Q){var N=m.exec(H.slice(Q));return N?(F.m=d.get(N[0].toLowerCase()),Q+N[0].length):-1}function R(F,H,Q){return O(F,t,H,Q)}function $(F,H,Q){return O(F,r,H,Q)}function C(F,H,Q){return O(F,n,H,Q)}function I(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function q(F){return u[F.getMonth()]}function D(F){return s[F.getMonth()]}function j(F){return i[+(F.getHours()>=12)]}function B(F){return 1+~~(F.getMonth()/3)}function W(F){return o[F.getUTCDay()]}function G(F){return a[F.getUTCDay()]}function X(F){return u[F.getUTCMonth()]}function J(F){return s[F.getUTCMonth()]}function et(F){return i[+(F.getUTCHours()>=12)]}function K(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var H=w(F+="",b);return H.toString=function(){return F},H},parse:function(F){var H=S(F+="",!1);return H.toString=function(){return F},H},utcFormat:function(F){var H=w(F+="",x);return H.toString=function(){return F},H},utcParse:function(F){var H=S(F+="",!0);return H.toString=function(){return F},H}}}var Ab={"-":"",_:" ",0:"0"},Ee=/^\s*\d+/,XR=/^%/,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 Uo(e){return new RegExp("^(?:"+e.map(ZR).join("|")+")","i")}function Wo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function JR(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function QR(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function eD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ob(e,t,r){var n=Ee.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=Ee.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=Ee.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=Ee.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Pb(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function uD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=Ee.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fD(e,t,r){var n=XR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hD(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pD(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Cb(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+xu.count(Un(e),e),t,3)}function RT(e,t){return kt(e.getMilliseconds(),t,3)}function gD(e,t){return RT(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(Pc.count(Un(e)-1,e),t,2)}function DT(e){var t=e.getDay();return t>=4||t===0?Ha(e):Ha.ceil(e)}function SD(e,t){return e=DT(e),kt(Ha.count(Un(e),e)+(Un(e).getDay()===4),t,2)}function AD(e){return e.getDay()}function OD(e,t){return kt(_l.count(Un(e)-1,e),t,2)}function TD(e,t){return kt(e.getFullYear()%100,t,2)}function PD(e,t){return e=DT(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?Ha(e):Ha.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 Mb(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+Tc.count(Wn(e),e),t,3)}function IT(e,t){return kt(e.getUTCMilliseconds(),t,3)}function RD(e,t){return IT(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(Ec.count(Wn(e)-1,e),t,2)}function NT(e){var t=e.getUTCDay();return t>=4||t===0?Ka(e):Ka.ceil(e)}function qD(e,t){return e=NT(e),kt(Ka.count(Wn(e),e)+(Wn(e).getUTCDay()===4),t,2)}function FD(e){return e.getUTCDay()}function zD(e,t){return kt(xl.count(Wn(e)-1,e),t,2)}function UD(e,t){return kt(e.getUTCFullYear()%100,t,2)}function WD(e,t){return e=NT(e),kt(e.getUTCFullYear()%100,t,2)}function GD(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function HD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ka(e):Ka.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function KD(){return"+0000"}function kb(){return"%"}function $b(e){return+e}function jb(e){return Math.floor(+e/1e3)}var wa,LT,BT;YD({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function YD(e){return wa=YR(e),LT=wa.format,wa.parse,BT=wa.utcFormat,wa.utcParse,wa}function XD(e){return new Date(e)}function VD(e){return e instanceof Date?+e:+new Date(+e)}function Av(e,t,r,n,i,a,o,s,u,l){var c=cv(),f=c.invert,h=c.domain,p=l(".%L"),y=l(":%S"),m=l("%I:%M"),d=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?m:a(w)<w?d: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,VD)):h().map(XD)},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(OT(S,w)):c},c.copy=function(){return _u(c,Av(e,t,r,n,i,a,o,s,u,l))},c}function wl(){return Ur.apply(Av(HR,KR,Un,wv,Pc,xu,_v,vv,Ni,LT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ZD(){return Ur.apply(Av(WR,GR,Wn,Sv,Ec,Tc,xv,bv,Ni,BT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Cc(){var e=0,t=1,r,n,i,a,o=Ye,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(ua),l.rangeRound=c(nv),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 yi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qT(){var e=mi(Cc()(Ye));return e.copy=function(){return yi(e,qT())},Kn.apply(e,arguments)}function FT(){var e=pv(Cc()).domain([1,10]);return e.copy=function(){return yi(e,FT()).base(e.base())},Kn.apply(e,arguments)}function zT(){var e=dv(Cc());return e.copy=function(){return yi(e,zT()).constant(e.constant())},Kn.apply(e,arguments)}function Ov(){var e=mv(Cc());return e.copy=function(){return yi(e,Ov()).exponent(e.exponent())},Kn.apply(e,arguments)}function JD(){return Ov.apply(null,arguments).exponent(.5)}function UT(){var e=[],t=Ye;function r(n){if(n!=null&&!isNaN(n=+n))return t((bu(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(ci),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 UT(t).domain(e)},Kn.apply(r,arguments)}function Mc(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,l=Ye,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:u),l(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(l=m,p):l};function y(m){return function(d){var v,_,b;return arguments.length?([v,_,b]=d,l=k$(m,[v,_,b]),p):[l(0),l(.5),l(1)]}}return p.range=y(ua),p.rangeRound=y(nv),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function WT(){var e=mi(Mc()(Ye));return e.copy=function(){return yi(e,WT())},Kn.apply(e,arguments)}function GT(){var e=pv(Mc()).domain([.1,1,10]);return e.copy=function(){return yi(e,GT()).base(e.base())},Kn.apply(e,arguments)}function HT(){var e=dv(Mc());return e.copy=function(){return yi(e,HT()).constant(e.constant())},Kn.apply(e,arguments)}function Tv(){var e=mv(Mc());return e.copy=function(){return yi(e,Tv()).exponent(e.exponent())},Kn.apply(e,arguments)}function QD(){return Tv.apply(null,arguments).exponent(.5)}function Xt(e){return function(){return e}}const KT=Math.cos,Sl=Math.sin,an=Math.sqrt,Rb=1e-12,Al=Math.PI,kc=2*Al,my=Math.PI,yy=2*my,ji=1e-6,tI=yy-ji;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>ji)if(!(Math.abs(f*u-l*c)>ji)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=u*u+l*l,d=p*p+y*y,v=Math.sqrt(m),_=Math.sqrt(h),b=a*Math.tan((my-Math.acos((m+h-d)/(2*v*_)))/2),x=b/_,g=b/v;Math.abs(x-1)>ji&&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)>ji||Math.abs(this._y1-c)>ji)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%yy+yy),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>ji&&this._append`A${n},${n},0,${+(h>=my)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Pv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new rI(t)}function Ev(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function XT(e){this._context=e}XT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ea(e){return new XT(e)}function VT(e){return e[0]}function ZT(e){return e[1]}function Cv(e,t){var r=Xt(!0),n=null,i=ea,a=null,o=Pv(s);e=typeof e=="function"?e:e===void 0?VT:Xt(e),t=typeof t=="function"?t:t===void 0?ZT:Xt(t);function s(u){var l,c=(u=Ev(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:Xt(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Xt(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Xt(!!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 Li(e,t,r){var n=null,i=Xt(!0),a=null,o=ea,s=null,u=Pv(l);e=typeof e=="function"?e:e===void 0?VT:Xt(+e),t=typeof t=="function"?t:Xt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ZT:Xt(+r);function l(f){var h,p,y,m=(f=Ev(f)).length,d,v=!1,_,b=new Array(m),x=new Array(m);for(a==null&&(s=o(_=u())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===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(d,h,f),x[h]=+t(d,h,f),s.point(n?+n(d,h,f):b[h],r?+r(d,h,f):x[h]))}if(_)return s=null,_+""||null}function c(){return Cv().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Xt(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Xt(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Xt(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:Xt(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Xt(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Xt(+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:Xt(!!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 JT{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function nI(e){return new JT(e,!0)}function iI(e){return new JT(e,!1)}const Mv={draw(e,t){const r=an(t/Al);e.moveTo(r,0),e.arc(0,0,r,0,kc)}},aI={draw(e,t){const r=an(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},QT=an(1/3),oI=QT*2,sI={draw(e,t){const r=an(t/oI),n=r*QT;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},uI={draw(e,t){const r=an(t),n=-r/2;e.rect(n,n,r,r)}},lI=.8908130915292852,tP=Sl(Al/10)/Sl(7*Al/10),cI=Sl(kc/10)*tP,fI=-KT(kc/10)*tP,hI={draw(e,t){const r=an(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=kc*a/5,s=KT(o),u=Sl(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},kf=an(3),pI={draw(e,t){const r=-an(t/(kf*3));e.moveTo(0,r*2),e.lineTo(-kf*r,-r),e.lineTo(kf*r,-r),e.closePath()}},kr=-.5,$r=an(3)/2,gy=1/an(12),dI=(gy/2+1)*3,mI={draw(e,t){const r=an(t/dI),n=r/2,i=r*gy,a=n,o=r*gy+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(kr*n-$r*i,$r*n+kr*i),e.lineTo(kr*a-$r*o,$r*a+kr*o),e.lineTo(kr*s-$r*u,$r*s+kr*u),e.lineTo(kr*n+$r*i,kr*i-$r*n),e.lineTo(kr*a+$r*o,kr*o-$r*a),e.lineTo(kr*s+$r*u,kr*u-$r*s),e.closePath()}};function yI(e,t){let r=null,n=Pv(i);e=typeof e=="function"?e:Xt(e||Mv),t=typeof t=="function"?t:Xt(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:Xt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Xt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ol(){}function Tl(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function eP(e){this._context=e}eP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Tl(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:Tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gI(e){return new eP(e)}function rP(e){this._context=e}rP.prototype={areaStart:Ol,areaEnd:Ol,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:Tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vI(e){return new rP(e)}function nP(e){this._context=e}nP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bI(e){return new nP(e)}function Db(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function kv(e,t){this._context=e,this._k=(1-t)/6}kv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Db(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Db(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function r(n){return new kv(n,t)}return r.tension=function(n){return e(+n)},r})(0);function _I(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Rb){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,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>Rb){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 iP(e,t){this._context=e,this._alpha=t}iP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_I(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xI=(function e(t){function r(n){return t?new iP(n,t):new kv(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function aP(e){this._context=e}aP.prototype={areaStart:Ol,areaEnd:Ol,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function wI(e){return new aP(e)}function Ib(e){return e<0?-1:1}function Nb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Ib(a)+Ib(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Lb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function $f(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Pl(e){this._context=e}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$f(this,this._t0,Lb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,$f(this,Lb(this,r=Nb(this,e,t)),r);break;default:$f(this,this._t0,r=Nb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function oP(e){this._context=new sP(e)}(oP.prototype=Object.create(Pl.prototype)).point=function(e,t){Pl.prototype.point.call(this,t,e)};function sP(e){this._context=e}sP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function SI(e){return new Pl(e)}function AI(e){return new oP(e)}function uP(e){this._context=e}uP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Bb(e),i=Bb(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Bb(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function OI(e){return new uP(e)}function $c(e,t){this._context=e,this._t=t}$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function TI(e){return new $c(e,.5)}function PI(e){return new $c(e,0)}function EI(e){return new $c(e,1)}function Ya(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function vy(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function CI(e,t){return e[t]}function MI(e){const t=[];return t.key=e,t}function El(){var e=Xt([]),t=vy,r=Ya,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=Ev(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:Xt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Xt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?vy:typeof a=="function"?a:Xt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ya,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}Ya(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}Ya(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 m=e[t[y]],d=m[n][1]||0,v=m[n-1][1]||0;p+=d-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,Ya(e,t)}}function jn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lP(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 nr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},na={duration:.5,overwrite:!1,delay:0},$v,wt,Ke,dr=1e8,qe=1/dr,vm=Math.PI*2,xD=vm/4,wD=0,dP=Math.sqrt,SD=Math.cos,OD=Math.sin,yt=function(e){return typeof e=="string"},Qe=function(e){return typeof e=="function"},fn=function(e){return typeof e=="number"},Dv=function(e){return typeof e>"u"},Wr=function(e){return typeof e=="object"},Bt=function(e){return e!==!1},Nv=function(){return typeof window<"u"},Hs=function(e){return Qe(e)||yt(e)},pP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Mt=Array.isArray,gm=/(?:-?\.?\d|\.)+/gi,mP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Di=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ec=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,yP=/[+-]=-?[.\d]+/,vP=/[^,'"\[\]\s]+/gi,AD=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ve,Rr,bm,Lv,ar={},Iu={},gP,bP=function(e){return(Iu=ia(e,ar))&&Gt},qv=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},Lo=function(e,r){return!r&&console.warn(e)},_P=function(e,r){return e&&(ar[e]=r)&&Iu&&(Iu[e]=r)||ar},qo=function(){return 0},PD={suppressEvents:!0,isStart:!0,kill:!1},fu={suppressEvents:!0,kill:!1},TD={suppressEvents:!0},Bv={},Tn=[],_m={},xP,Jt={},Cc={},Db=30,hu=[],Fv="",zv=function(e){var r=e[0],n,i;if(Wr(r)||Qe(r)||(e=[e]),!(n=(r._gsap||{}).harness)){for(i=hu.length;i--&&!hu[i].targetTest(r););n=hu[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new HP(e[i],n)))||e.splice(i,1);return e},ni=function(e){return e._gsap||zv(pr(e))[0]._gsap},wP=function(e,r,n){return(n=e[r])&&Qe(n)?e[r]():Dv(n)&&e.getAttribute&&e.getAttribute(r)||n},Ft=function(e,r){return(e=e.split(",")).forEach(r)||e},et=function(e){return Math.round(e*1e5)/1e5||0},at=function(e){return Math.round(e*1e7)/1e7||0},zi=function(e,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),n==="+"?e+i:n==="-"?e-i:n==="*"?e*i:e/i},ED=function(e,r){for(var n=r.length,i=0;e.indexOf(r[i])<0&&++i<n;);return i<n},Ru=function(){var e=Tn.length,r=Tn.slice(0),n,i;for(_m={},Tn.length=0,n=0;n<e;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Uv=function(e){return!!(e._initted||e._startAt||e.add)},SP=function(e,r,n,i){Tn.length&&!wt&&Ru(),e.render(r,n,!!(wt&&r<0&&Uv(e))),Tn.length&&!wt&&Ru()},OP=function(e){var r=parseFloat(e);return(r||r===0)&&(e+"").match(vP).length<2?r:yt(e)?e.trim():e},AP=function(e){return e},or=function(e,r){for(var n in r)n in e||(e[n]=r[n]);return e},CD=function(e){return function(r,n){for(var i in n)i in r||i==="duration"&&e||i==="ease"||(r[i]=n[i])}},ia=function(e,r){for(var n in r)e[n]=r[n];return e},Nb=function t(e,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(e[n]=Wr(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},$u=function(e,r){var n={},i;for(i in e)i in r||(n[i]=e[i]);return n},yo=function(e){var r=e.parent||Ve,n=e.keyframes?CD(Mt(e.keyframes)):or;if(Bt(e.inherit))for(;r;)n(e,r.vars.defaults),r=r.parent||r._dp;return e},MD=function(e,r){for(var n=e.length,i=n===r.length;i&&n--&&e[n]===r[n];);return n<0},PP=function(e,r,n,i,a){var o=e[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=e[n],e[n]=r),r._next?r._next._prev=r:e[i]=r,r._prev=o,r.parent=r._dp=e,r},Nl=function(e,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:e[n]===r&&(e[n]=o),o?o._prev=a:e[i]===r&&(e[i]=a),r._next=r._prev=r.parent=null},Cn=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ii=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},kD=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},xm=function(e,r,n,i){return e._startAt&&(wt?e._startAt.revert(fu):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},jD=function t(e){return!e||e._ts&&t(e.parent)},Lb=function(e){return e._repeat?aa(e._tTime,e=e.duration()+e._rDelay)*e:0},aa=function(e,r){var n=Math.floor(e=at(e/r));return e&&n===e?n-1:n},Du=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Ll=function(e){return e._end=at(e._start+(e._tDur/Math.abs(e._ts||e._rts||qe)||0))},ql=function(e,r){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=at(n._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),Ll(e),n._dirty||ii(n,e)),e},TP=function(e,r){var n;if((r._time||!r._dur&&r._initted||r._start<e._time&&(r._dur||!r.add))&&(n=Du(e.rawTime(),r),(!r._dur||Ts(0,r.totalDuration(),n)-r._tTime>qe)&&r.render(n,!0)),ii(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-qe}},Dr=function(e,r,n,i){return r.parent&&Cn(r),r._start=at((fn(n)?n:n||e!==Ve?cr(e,n,r):e._time)+r._delay),r._end=at(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),PP(e,r,"_first","_last",e._sort?"_start":0),wm(r)||(e._recent=r),i||TP(e,r),e._ts<0&&ql(e,e._tTime),e},EP=function(e,r){return(ar.ScrollTrigger||qv("scrollTrigger",r))&&ar.ScrollTrigger.create(r,e)},CP=function(e,r,n,i,a){if(Hv(e,r,a),!e._initted)return 1;if(!n&&e._pt&&!wt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&xP!==er.frame)return Tn.push(e),e._lazy=[a,i],1},ID=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},wm=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},RD=function(e,r,n,i){var a=e.ratio,o=r<0||!r&&(!e._start&&ID(e)&&!(!e._initted&&wm(e))||(e._ts<0||e._dp._ts<0)&&!wm(e))?0:1,s=e._rDelay,u=0,l,c,f;if(s&&e._repeat&&(u=Ts(0,e._tDur,r),c=aa(u,s),e._yoyo&&c&1&&(o=1-o),c!==aa(e._tTime,s)&&(a=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==a||wt||i||e._zTime===qe||!r&&e._zTime){if(!e._initted&&CP(e,r,i,n,u))return;for(f=e._zTime,e._zTime=r||(n?qe:0),n||(n=r&&!f),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=u,l=e._pt;l;)l.r(o,l.d),l=l._next;r<0&&xm(e,r,n,!0),e._onUpdate&&!n&&rr(e,"onUpdate"),u&&e._repeat&&!n&&e.parent&&rr(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===o&&(o&&Cn(e,1),!n&&!wt&&(rr(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},$D=function(e,r,n){var i;if(n>r)for(i=e._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},oa=function(e,r,n,i){var a=e._repeat,o=at(r)||0,s=e._tTime/e._tDur;return s&&!i&&(e._time*=o/e._dur),e._dur=o,e._tDur=a?a<0?1e10:at(o*(a+1)+e._rDelay*a):o,s>0&&!i&&ql(e,e._tTime=e._tDur*s),e.parent&&Ll(e),n||ii(e.parent,e),e},qb=function(e){return e instanceof jt?ii(e):oa(e,e._dur)},DD={_start:0,endTime:qo,totalDuration:qo},cr=function t(e,r,n){var i=e.labels,a=e._recent||DD,o=e.duration()>=dr?a.endTime(!1):e._dur,s,u,l;return yt(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*(Mt(n)?n[0]:n).totalDuration()),s>1?t(e,r.substr(0,s-1),n)+u:o+u)):r==null?o:+r},vo=function(e,r,n){var i=fn(r[1]),a=(i?2:1)+(e<2?0:1),o=r[a],s,u;if(i&&(o.duration=r[1]),o.parent=n,e){for(s=o,u=n;u&&!("immediateRender"in s);)s=u.vars.defaults||{},u=Bt(u.vars.inherit)&&u.parent;o.immediateRender=Bt(s.immediateRender),e<2?o.runBackwards=1:o.startAt=r[a-1]}return new it(r[0],o,r[a+1])},In=function(e,r){return e||e===0?r(e):r},Ts=function(e,r,n){return n<e?e:n>r?r:n},Ct=function(e,r){return!yt(e)||!(r=AD.exec(e))?"":r[1]},ND=function(e,r,n){return In(n,function(i){return Ts(e,r,i)})},Sm=[].slice,MP=function(e,r){return e&&Wr(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&Wr(e[0]))&&!e.nodeType&&e!==Rr},LD=function(e,r,n){return n===void 0&&(n=[]),e.forEach(function(i){var a;return yt(i)&&!r||MP(i,1)?(a=n).push.apply(a,pr(i)):n.push(i)})||n},pr=function(e,r,n){return Ke&&!r&&Ke.selector?Ke.selector(e):yt(e)&&!n&&(bm||!sa())?Sm.call((r||Lv).querySelectorAll(e),0):Mt(e)?LD(e,n):MP(e)?Sm.call(e,0):e?[e]:[]},Om=function(e){return e=pr(e)[0]||Lo("Invalid scope")||{},function(r){var n=e.current||e.nativeElement||e;return pr(r,n.querySelectorAll?n:n===e?Lo("Invalid scope")||Lv.createElement("div"):e)}},kP=function(e){return e.sort(function(){return .5-Math.random()})},jP=function(e){if(Qe(e))return e;var r=Wr(e)?e:{each:e},n=ai(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 yt(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&u&&(c=i[0],f=i[1]),function(h,d,y){var m=(y||r).length,p=o[m],g,_,b,x,v,w,S,A,P;if(!p){if(P=r.grid==="auto"?0:(r.grid||[1,dr])[1],!P){for(S=-dr;S<(S=y[P++].getBoundingClientRect().left)&&P<m;);P<m&&P--}for(p=o[m]=[],g=u?Math.min(P,m)*c-.5:i%P,_=P===dr?0:u?m*f/P-.5:i/P|0,S=0,A=dr,w=0;w<m;w++)b=w%P-g,x=_-(w/P|0),p[w]=v=l?Math.abs(l==="y"?x:b):dP(b*b+x*x),v>S&&(S=v),v<A&&(A=v);i==="random"&&kP(p),p.max=S-A,p.min=A,p.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(P>m?m-1:l?l==="y"?m/P:P:Math.max(P,m/P))||0)*(i==="edges"?-1:1),p.b=m<0?a-m:a,p.u=Ct(r.amount||r.each)||0,n=n&&m<0?zP(n):n}return m=(p[h]-p.min)/p.max||0,at(p.b+(n?n(m):m)*p.v)+p.u}},Am=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var i=at(Math.round(parseFloat(n)/e)*e*r);return(i-i%1)/r+(fn(n)?0:Ct(n))}},IP=function(e,r){var n=Mt(e),i,a;return!n&&Wr(e)&&(i=n=e.radius||dr,e.values?(e=pr(e.values),(a=!fn(e[0]))&&(i*=i)):e=Am(e.increment)),In(r,n?Qe(e)?function(o){return a=e(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=dr,c=0,f=e.length,h,d;f--;)a?(h=e[f].x-s,d=e[f].y-u,h=h*h+d*d):h=Math.abs(e[f]-s),h<l&&(l=h,c=f);return c=!i||l<=i?e[c]:o,a||c===o||fn(o)?c:c+Ct(o)}:Am(e))},RP=function(e,r,n,i){return In(Mt(e)?!r:n===!0?!!(n=0):!i,function(){return Mt(e)?e[~~(Math.random()*e.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(r-e+n*.99))/n)*n*i)/i})},qD=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},BD=function(e,r){return function(n){return e(parseFloat(n))+(r||Ct(n))}},FD=function(e,r,n){return DP(e,r,0,1,n)},$P=function(e,r,n){return In(n,function(i){return e[~~r(i)]})},zD=function t(e,r,n){var i=r-e;return Mt(e)?$P(e,t(0,e.length),r):In(n,function(a){return(i+(a-e)%i)%i+e})},UD=function t(e,r,n){var i=r-e,a=i*2;return Mt(e)?$P(e,t(0,e.length-1),r):In(n,function(o){return o=(a+(o-e)%a)%a||0,e+(o>i?a-o:o)})},Bo=function(e){for(var r=0,n="",i,a,o,s;~(i=e.indexOf("random(",r));)o=e.indexOf(")",i),s=e.charAt(i+7)==="[",a=e.substr(i+7,o-i-7).match(s?vP:gm),n+=e.substr(r,i-r)+RP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+e.substr(r,e.length-r)},DP=function(e,r,n,i,a){var o=r-e,s=i-n;return In(a,function(u){return n+((u-e)/o*s||0)})},WD=function t(e,r,n,i){var a=isNaN(e+r)?0:function(d){return(1-d)*e+d*r};if(!a){var o=yt(e),s={},u,l,c,f,h;if(n===!0&&(i=1)&&(n=null),o)e={p:e},r={p:r};else if(Mt(e)&&!Mt(r)){for(c=[],f=e.length,h=f-2,l=1;l<f;l++)c.push(t(e[l-1],e[l]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(e=ia(Mt(e)?[]:{},e));if(!c){for(u in r)Wv.call(s,e,u,"get",r[u]);a=function(y){return Xv(y,s)||(o?e.p:e)}}}return In(n,a)},Bb=function(e,r,n){var i=e.labels,a=dr,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},rr=function(e,r,n){var i=e.vars,a=i[r],o=Ke,s=e._ctx,u,l,c;if(a)return u=i[r+"Params"],l=i.callbackScope||e,n&&Tn.length&&Ru(),s&&(Ke=s),c=u?a.apply(l,u):a.call(l),Ke=o,c},lo=function(e){return Cn(e),e.scrollTrigger&&e.scrollTrigger.kill(!!wt),e.progress()<1&&rr(e,"onInterrupt"),e},Ni,NP=[],LP=function(e){if(e)if(e=!e.name&&e.default||e,Nv()||e.headless){var r=e.name,n=Qe(e),i=r&&!n&&e.init?function(){this._props=[]}:e,a={init:qo,render:Xv,add:Wv,kill:o2,modifier:a2,rawVars:0},o={targetTest:0,get:0,getSetter:Kv,aliases:{},register:0};if(sa(),e!==i){if(Jt[r])return;or(i,or($u(e,a),o)),ia(i.prototype,ia(a,$u(e,o))),Jt[i.prop=r]=i,e.targetTest&&(hu.push(i),Bv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}_P(r,i),e.register&&e.register(Gt,i,zt)}else NP.push(e)},Le=255,co={aqua:[0,Le,Le],lime:[0,Le,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Le],navy:[0,0,128],white:[Le,Le,Le],olive:[128,128,0],yellow:[Le,Le,0],orange:[Le,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Le,0,0],pink:[Le,192,203],cyan:[0,Le,Le],transparent:[Le,Le,Le,0]},Mc=function(e,r,n){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(n-r)*e*6:e<.5?n:e*3<2?r+(n-r)*(2/3-e)*6:r)*Le+.5|0},qP=function(e,r,n){var i=e?fn(e)?[e>>16,e>>8&Le,e&Le]:0:co.black,a,o,s,u,l,c,f,h,d,y;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),co[e])i=co[e];else if(e.charAt(0)==="#"){if(e.length<6&&(a=e.charAt(1),o=e.charAt(2),s=e.charAt(3),e="#"+a+a+o+o+s+s+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&Le,i&Le,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&Le,e&Le]}else if(e.substr(0,3)==="hsl"){if(i=y=e.match(gm),!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]=Mc(u+1/3,a,o),i[1]=Mc(u,a,o),i[2]=Mc(u-1/3,a,o);else if(~e.indexOf("="))return i=e.match(mP),n&&i.length<4&&(i[3]=1),i}else i=e.match(gm)||co.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Le,o=i[1]/Le,s=i[2]/Le,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?u=l=0:(d=f-h,l=c>.5?d/(2-f-h):d/(f+h),u=f===a?(o-s)/d+(o<s?6:0):f===o?(s-a)/d+2:(a-o)/d+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},BP=function(e){var r=[],n=[],i=-1;return e.split(En).forEach(function(a){var o=a.match(Di)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Fb=function(e,r,n){var i="",a=(e+i).match(En),o=r?"hsla(":"rgba(",s=0,u,l,c,f;if(!a)return e;if(a=a.map(function(h){return(h=qP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=BP(e),u=n.c,u.join(i)!==c.c.join(i)))for(l=e.replace(En,"1").split(Di),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=e.split(En),f=l.length-1;s<f;s++)i+=l[s]+a[s];return i+l[f]},En=(function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in co)t+="|"+e+"\\b";return new RegExp(t+")","gi")})(),HD=/hsl[a]?\(/,FP=function(e){var r=e.join(" "),n;if(En.lastIndex=0,En.test(r))return n=HD.test(r),e[1]=Fb(e[1],n),e[0]=Fb(e[0],n,BP(e[1])),!0},Fo,er=(function(){var t=Date.now,e=500,r=33,n=t(),i=n,a=1e3/240,o=a,s=[],u,l,c,f,h,d,y=function m(p){var g=t()-i,_=p===!0,b,x,v,w;if((g>e||g<0)&&(n+=g-r),i+=g,v=i-n,b=v-o,(b>0||_)&&(w=++f.frame,h=v-f.time*1e3,f.time=v=v/1e3,o+=b+(b>=a?4:a-b),x=1),_||(u=l(m)),x)for(d=0;d<s.length;d++)s[d](v,h,w,p)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(p){return h/(1e3/(p||60))},wake:function(){gP&&(!bm&&Nv()&&(Rr=bm=window,Lv=Rr.document||{},ar.gsap=Gt,(Rr.gsapVersions||(Rr.gsapVersions=[])).push(Gt.version),bP(Iu||Rr.GreenSockGlobals||!Rr.gsap&&Rr||{}),NP.forEach(LP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&f.sleep(),l=c||function(p){return setTimeout(p,o-f.time*1e3+1|0)},Fo=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),Fo=0,l=qo},lagSmoothing:function(p,g){e=p||1/0,r=Math.min(g||33,e)},fps:function(p){a=1e3/(p||240),o=f.time*1e3+a},add:function(p,g,_){var b=g?function(x,v,w,S){p(x,v,w,S),f.remove(b)}:p;return f.remove(p),s[_?"unshift":"push"](b),sa(),b},remove:function(p,g){~(g=s.indexOf(p))&&s.splice(g,1)&&d>=g&&d--},_listeners:s},f})(),sa=function(){return!Fo&&er.wake()},xe={},GD=/^[\d.\-M][\d.\-,\s]/,KD=/["']/g,XD=function(e){for(var r={},n=e.substr(1,e.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(KD,"").trim():+l,i=u.substr(s+1).trim();return r},YD=function(e){var r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r);return e.substring(r,~i&&i<n?e.indexOf(")",n+1):n)},VD=function(e){var r=(e+"").split("("),n=xe[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[XD(r[1])]:YD(e).split(",").map(OP)):xe._CE&&GD.test(e)?xe._CE("",e):n},zP=function(e){return function(r){return 1-e(1-r)}},UP=function t(e,r){for(var n=e._first,i;n;)n instanceof jt?t(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?t(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},ai=function(e,r){return e&&(Qe(e)?e:xe[e]||VD(e))||r},xi=function(e,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 Ft(e,function(s){xe[s]=ar[s]=a,xe[o=s.toLowerCase()]=n;for(var u in a)xe[o+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=xe[s+"."+u]=a[u]}),a},WP=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},kc=function t(e,r,n){var i=r>=1?r:1,a=(n||(e?.3:.45))/(r<1?r:1),o=a/vm*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*OD((c-o)*a)+1},u=e==="out"?s:e==="in"?function(l){return 1-s(1-l)}:WP(s);return a=vm/a,u.config=function(l,c){return t(e,l,c)},u},jc=function t(e,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=e==="out"?n:e==="in"?function(a){return 1-n(1-a)}:WP(n);return i.config=function(a){return t(e,a)},i};Ft("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;xi(t+",Power"+(r-1),e?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})});xe.Linear.easeNone=xe.none=xe.Linear.easeIn;xi("Elastic",kc("in"),kc("out"),kc());(function(t,e){var r=1/e,n=2*r,i=2.5*r,a=function(s){return s<r?t*s*s:s<n?t*Math.pow(s-1.5/e,2)+.75:s<i?t*(s-=2.25/e)*s+.9375:t*Math.pow(s-2.625/e,2)+.984375};xi("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);xi("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});xi("Circ",function(t){return-(dP(1-t*t)-1)});xi("Sine",function(t){return t===1?1:-SD(t*xD)+1});xi("Back",jc("in"),jc("out"),jc());xe.SteppedEase=xe.steps=ar.SteppedEase={config:function(e,r){e===void 0&&(e=1);var n=1/e,i=e+(r?0:1),a=r?1:0,o=1-qe;return function(s){return((i*Ts(0,o,s)|0)+a)*n}}};na.ease=xe["quad.out"];Ft("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Fv+=t+","+t+"Params,"});var HP=function(e,r){this.id=wD++,e._gsap=this,this.target=e,this.harness=r,this.get=r?r.get:wP,this.set=r?r.getSetter:Kv},zo=(function(){function t(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,oa(this,+r.duration,1,1),this.data=r.data,Ke&&(this._ctx=Ke,Ke.data.push(this)),Fo||er.wake()}var e=t.prototype;return e.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},e.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},e.totalDuration=function(n){return arguments.length?(this._dirty=0,oa(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(n,i){if(sa(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(ql(this,n),!a._dp||a.parent||TP(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)&&Dr(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===qe||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),SP(this,n,i)),this},e.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Lb(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},e.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},e.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+Lb(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?aa(this._tTime,a)+1:1},e.timeScale=function(n,i){if(!arguments.length)return this._rts===-qe?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?Du(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-qe?0:this._rts,this.totalTime(Ts(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Ll(this),kD(this)},e.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):(sa(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==qe&&(this._tTime-=qe)))),this):this._ps},e.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Dr(i,this,n-this._delay),this}return this._start},e.endTime=function(n){return this._start+(Bt(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.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?Du(i.rawTime(n),this):this._tTime:this._tTime},e.revert=function(n){n===void 0&&(n=TD);var i=wt;return wt=n,Uv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),wt=i,this},e.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},e.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,qb(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,qb(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},e.seek=function(n,i){return this.totalTime(cr(this,n),Bt(i))},e.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,Bt(i)),this._dur||(this._zTime=-qe),this},e.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},e.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-qe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-qe,this},e.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)-qe)},e.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]},e.then=function(n){var i=this;return new Promise(function(a){var o=Qe(n)?n:AP,s=function(){var l=i.then;i.then=null,Qe(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})},e.kill=function(){lo(this)},t})();or(zo.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:-qe,_prom:0,_ps:!1,_rts:1});var jt=(function(t){hP(e,t);function e(n,i){var a;return n===void 0&&(n={}),a=t.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=Bt(n.sortChildren),Ve&&Dr(n.parent||Ve,Jr(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&EP(Jr(a),n.scrollTrigger),a}var r=e.prototype;return r.to=function(i,a,o){return vo(0,arguments,this),this},r.from=function(i,a,o){return vo(1,arguments,this),this},r.fromTo=function(i,a,o,s){return vo(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,yo(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new it(i,a,cr(this,o),1),this},r.call=function(i,a,o){return Dr(this,it.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 it(i,o,cr(this,u)),this},r.staggerFrom=function(i,a,o,s,u,l,c){return o.runBackwards=1,yo(o).immediateRender=Bt(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,yo(s).immediateRender=Bt(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:at(i),f=this._zTime<0!=i<0&&(this._initted||!l),h,d,y,m,p,g,_,b,x,v,w,S;if(this!==Ve&&c>u&&i>=0&&(c=u),c!==this._tTime||o||f){if(s!==this._time&&l&&(c+=this._time-s,i+=this._time-s),h=c,x=this._start,b=this._ts,g=!b,f&&(l||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,p=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(p*100+i,a,o);if(h=at(c%p),c===u?(m=this._repeat,h=l):(v=at(c/p),m=~~v,m&&m===v&&(h=l,m--),h>l&&(h=l)),v=aa(this._tTime,p),!s&&this._tTime&&v!==m&&this._tTime-v*p-this._dur<=0&&(v=m),w&&m&1&&(h=l-h,S=1),m!==v&&!this._lock){var A=w&&v&1,P=A===(w&&m&1);if(m<v&&(A=!A),s=A?0:c%l?l:c,this._lock=1,this.render(s||(S?0:at(m*p)),a,!l)._lock=0,this._tTime=c,!a&&this.parent&&rr(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||g!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,P&&(this._lock=2,s=A?l:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!g)return this;UP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(_=$D(this,at(s),at(h)),_&&(c-=h-(h=_._start))),this._tTime=c,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!v&&(rr(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(d=this._first;d;){if(y=d._next,(d._act||h>=d._start)&&d._ts&&_!==d){if(d.parent!==this)return this.render(i,a,o);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,a,o),h!==this._time||!this._ts&&!g){_=0,y&&(c+=this._zTime=-qe);break}}d=y}else{d=this._last;for(var M=i<0?i:h;d;){if(y=d._prev,(d._act||M<=d._end)&&d._ts&&_!==d){if(d.parent!==this)return this.render(i,a,o);if(d.render(d._ts>0?(M-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(M-d._start)*d._ts,a,o||wt&&Uv(d)),h!==this._time||!this._ts&&!g){_=0,y&&(c+=this._zTime=M?-qe:qe);break}}d=y}}if(_&&!a&&(this.pause(),_.render(h>=s?0:-qe)._zTime=h>=s?1:-1,this._ts))return this._start=x,Ll(this),this.render(i,a,o);this._onUpdate&&!a&&rr(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)&&Cn(this,1),!a&&!(i<0&&!s)&&(c||s||!u)&&(rr(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(fn(a)||(a=cr(this,a,i)),!(i instanceof zo)){if(Mt(i))return i.forEach(function(s){return o.add(s,a)}),this;if(yt(i))return this.addLabel(i,a);if(Qe(i))i=it.delayedCall(0,i);else return this}return this!==i?Dr(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=-dr);for(var u=[],l=this._first;l;)l._start>=s&&(l instanceof it?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 yt(i)?this.removeLabel(i):Qe(i)?this.killTweensOf(i):(i.parent===this&&Nl(this,i),i===this._recent&&(this._recent=this._last),ii(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=at(er.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=cr(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=it.delayedCall(0,a||qo,o);return s.data="isPause",this._hasPause=1,Dr(this,s,cr(this,i))},r.removePause=function(i){var a=this._first;for(i=cr(this,i);a;)a._start===i&&a.data==="isPause"&&Cn(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),u=s.length;u--;)bn!==s[u]&&s[u].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=pr(i),u=this._first,l=fn(a),c;u;)u instanceof it?ED(u._targets,s)&&(l?(!bn||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=cr(o,i),u=a,l=u.startAt,c=u.onStart,f=u.onStartParams,h=u.immediateRender,d,y=it.to(o,or({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())||qe,onStart:function(){if(o.pause(),!d){var p=a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale());y._dur!==p&&oa(y,p,0,1).render(y._time,!0,!0),d=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,or({startAt:{time:cr(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Bb(this,cr(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Bb(this,cr(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+qe)},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 ii(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return t.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={}),ii(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,u=dr,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,Dr(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;oa(o,o===Ve&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(Ve._ts&&(SP(Ve,Du(i,Ve)),xP=er.frame),er.frame>=Db){Db+=nr.autoSleep||120;var a=Ve._first;if((!a||!a._ts)&&nr.autoSleep&&er._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||er.sleep()}}},e})(zo);or(jt.prototype,{_lock:0,_hasPause:0,_forcing:0});var ZD=function(e,r,n,i,a,o,s){var u=new zt(this._pt,e,r,0,1,ZP,null,a),l=0,c=0,f,h,d,y,m,p,g,_;for(u.b=n,u.e=i,n+="",i+="",(g=~i.indexOf("random("))&&(i=Bo(i)),o&&(_=[n,i],o(_,e,r),n=_[0],i=_[1]),h=n.match(Ec)||[];f=Ec.exec(i);)y=f[0],m=i.substring(l,f.index),d?d=(d+1)%5:m.substr(-5)==="rgba("&&(d=1),y!==h[c++]&&(p=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:m||c===1?m:",",s:p,c:y.charAt(1)==="="?zi(p,y)-p:parseFloat(y)-p,m:d&&d<4?Math.round:0},l=Ec.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=s,(yP.test(i)||g)&&(u.e=0),this._pt=u,u},Wv=function(e,r,n,i,a,o,s,u,l,c){Qe(i)&&(i=i(a||0,e,o));var f=e[r],h=n!=="get"?n:Qe(f)?l?e[r.indexOf("set")||!Qe(e["get"+r.substr(3)])?r:"get"+r.substr(3)](l):e[r]():f,d=Qe(f)?l?r2:YP:Gv,y;if(yt(i)&&(~i.indexOf("random(")&&(i=Bo(i)),i.charAt(1)==="="&&(y=zi(h,i)+(Ct(h)||0),(y||y===0)&&(i=y))),!c||h!==i||Pm)return!isNaN(h*i)&&i!==""?(y=new zt(this._pt,e,r,+h||0,i-(h||0),typeof f=="boolean"?i2:VP,0,d),l&&(y.fp=l),s&&y.modifier(s,this,e),this._pt=y):(!f&&!(r in e)&&qv(r,i),ZD.call(this,e,r,h,i,d,u||nr.stringFilter,l))},JD=function(e,r,n,i,a){if(Qe(e)&&(e=go(e,a,r,n,i)),!Wr(e)||e.style&&e.nodeType||Mt(e)||pP(e))return yt(e)?go(e,a,r,n,i):e;var o={},s;for(s in e)o[s]=go(e[s],a,r,n,i);return o},GP=function(e,r,n,i,a,o){var s,u,l,c;if(Jt[e]&&(s=new Jt[e]).init(a,s.rawVars?r[e]:JD(r[e],i,a,o,n),n,i,o)!==!1&&(n._pt=u=new zt(n._pt,a,e,0,1,s.render,s,0,s.priority),n!==Ni))for(l=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)l[s._props[c]]=u;return s},bn,Pm,Hv=function t(e,r,n){var i=e.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,d=i.autoRevert,y=e._dur,m=e._startAt,p=e._targets,g=e.parent,_=g&&g.data==="nested"?g.vars.targets:p,b=e._overwrite==="auto"&&!$v,x=e.timeline,v,w,S,A,P,M,T,E,C,I,k,j,$;if(x&&(!h||!a)&&(a="none"),e._ease=ai(a,na.ease),e._yEase=f?zP(ai(f===!0?a:f,na.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!x&&!!i.runBackwards,!x||h&&!i.stagger){if(E=p[0]?ni(p[0]).harness:0,j=E&&i[E.prop],v=$u(i,Bv),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!d?m.render(-1,!0):m.revert(c&&y?fu:PD),m._lazy=0),o){if(Cn(e._startAt=it.set(p,or({data:"isStart",overwrite:!1,parent:g,immediateRender:!0,lazy:!m&&Bt(u),startAt:null,delay:0,onUpdate:l&&function(){return rr(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(wt||!s&&!d)&&e._startAt.revert(fu),s&&y&&r<=0&&n<=0){r&&(e._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=or({overwrite:!1,data:"isFromStart",lazy:s&&!m&&Bt(u),immediateRender:s,stagger:0,parent:g},v),j&&(S[E.prop]=j),Cn(e._startAt=it.set(p,S)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(wt?e._startAt.revert(fu):e._startAt.render(-1,!0)),e._zTime=r,!s)t(e._startAt,qe,qe);else if(!r)return}for(e._pt=e._ptCache=0,u=y&&Bt(u)||u&&!y,w=0;w<p.length;w++){if(P=p[w],T=P._gsap||zv(p)[w]._gsap,e._ptLookup[w]=I={},_m[T.id]&&Tn.length&&Ru(),k=_===p?w:_.indexOf(P),E&&(C=new E).init(P,j||v,e,k,_)!==!1&&(e._pt=A=new zt(e._pt,P,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(N){I[N]=A}),C.priority&&(M=1)),!E||j)for(S in v)Jt[S]&&(C=GP(S,v,e,k,P,_))?C.priority&&(M=1):I[S]=A=Wv.call(e,P,S,"get",v[S],k,_,0,i.stringFilter);e._op&&e._op[w]&&e.kill(P,e._op[w]),b&&e._pt&&(bn=e,Ve.killTweensOf(P,I,e.globalTime(r)),$=!e.parent,bn=0),e._pt&&u&&(_m[T.id]=1)}M&&JP(e),e._onInit&&e._onInit(e)}e._onUpdate=l,e._initted=(!e._op||e._pt)&&!$,h&&r<=0&&x.render(dr,!0,!0)},QD=function(e,r,n,i,a,o,s,u){var l=(e._pt&&e._ptCache||(e._ptCache={}))[r],c,f,h,d;if(!l)for(l=e._ptCache[r]=[],h=e._ptLookup,d=e._targets.length;d--;){if(c=h[d][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 Pm=1,e.vars[r]="+=0",Hv(e,s),Pm=0,u?Lo(r+" not eligible for reset"):1;l.push(c)}for(d=l.length;d--;)f=l[d],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=et(n)+Ct(f.e)),f.b&&(f.b=c.s+Ct(f.b))},e2=function(e,r){var n=e[0]?ni(e[0]).harness:0,i=n&&n.aliases,a,o,s,u;if(!i)return r;a=ia({},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},t2=function(e,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Mt(r))s=n[e]||(n[e]=[]),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(e),v:r[o],e:a})},go=function(e,r,n,i,a){return Qe(e)?e.call(r,n,i,a):yt(e)&&~e.indexOf("random(")?Bo(e):e},KP=Fv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",XP={};Ft(KP+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return XP[t]=1});var it=(function(t){hP(e,t);function e(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=t.call(this,o?i:yo(i))||this;var u=s.vars,l=u.duration,c=u.delay,f=u.immediateRender,h=u.stagger,d=u.overwrite,y=u.keyframes,m=u.defaults,p=u.scrollTrigger,g=u.yoyoEase,_=i.parent||Ve,b=(Mt(n)||pP(n)?fn(n[0]):"length"in i)?[n]:pr(n),x,v,w,S,A,P,M,T;if(s._targets=b.length?zv(b):Lo("GSAP target "+n+" not found. https://gsap.com",!nr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=d,y||h||Hs(l)||Hs(c)){if(i=s.vars,x=s.timeline=new jt({data:"nested",defaults:m||{},targets:_&&_.data==="nested"?_.vars.targets:b}),x.kill(),x.parent=x._dp=Jr(s),x._start=0,h||Hs(l)||Hs(c)){if(S=b.length,M=h&&jP(h),Wr(h))for(A in h)~KP.indexOf(A)&&(T||(T={}),T[A]=h[A]);for(v=0;v<S;v++)w=$u(i,XP),w.stagger=0,g&&(w.yoyoEase=g),T&&ia(w,T),P=b[v],w.duration=+go(l,Jr(s),v,P,b),w.delay=(+go(c,Jr(s),v,P,b)||0)-s._delay,!h&&S===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),x.to(P,w,M?M(v,P,b):0),x._ease=xe.none;x.duration()?l=c=0:s.timeline=0}else if(y){yo(or(x.vars.defaults,{ease:"none"})),x._ease=ai(y.ease||i.ease||"none");var E=0,C,I,k;if(Mt(y))y.forEach(function(j){return x.to(b,j,">")}),x.duration();else{w={};for(A in y)A==="ease"||A==="easeEach"||t2(A,y[A],w,y.easeEach);for(A in w)for(C=w[A].sort(function(j,$){return j.t-$.t}),E=0,v=0;v<C.length;v++)I=C[v],k={ease:I.e,duration:(I.t-(v?C[v-1].t:0))/100*l},k[A]=I.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 d===!0&&!$v&&(bn=Jr(s),Ve.killTweensOf(b),bn=0),Dr(_,Jr(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!l&&!y&&s._start===at(_._time)&&Bt(f)&&jD(Jr(s))&&_.data!=="nested")&&(s._tTime=-qe,s.render(Math.max(0,-c)||0)),p&&EP(Jr(s),p),s}var r=e.prototype;return r.render=function(i,a,o){var s=this._time,u=this._tDur,l=this._dur,c=i<0,f=i>u-qe&&!c?u:i<qe?0:i,h,d,y,m,p,g,_,b,x;if(!l)RD(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,b=this.timeline,this._repeat){if(m=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=at(f%m),f===u?(y=this._repeat,h=l):(p=at(f/m),y=~~p,y&&y===p?(h=l,y--):h>l&&(h=l)),g=this._yoyo&&y&1,g&&(x=this._yEase,h=l-h),p=aa(this._tTime,m),h===s&&!o&&this._initted&&y===p)return this._tTime=f,this;y!==p&&(b&&this._yEase&&UP(b,g),this.vars.repeatRefresh&&!g&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(at(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(CP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==p))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&&!p&&(rr(this,"onStart"),this._tTime!==f))return this;for(d=this._pt;d;)d.r(_,d.d),d=d._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&&xm(this,i,a,o),rr(this,"onUpdate")),this._repeat&&y!==p&&this.vars.onRepeat&&!a&&this.parent&&rr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&xm(this,i,!0,!0),(i||!l)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Cn(this,1),!a&&!(c&&!s)&&(f||s||g)&&(rr(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),t.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,u){Fo||er.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Hv(this,l),c=this._ease(l/this._dur),QD(this,i,a,o,s,c,l,u)?this.resetTo(i,a,o,s,1):(ql(this,0),this.parent||PP(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?lo(this):this.scrollTrigger&&this.scrollTrigger.kill(!!wt),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,bn&&bn.vars.overwrite!==!0)._first||lo(this),this.parent&&o!==this.timeline.totalDuration()&&oa(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,u=i?pr(i):s,l=this._ptLookup,c=this._pt,f,h,d,y,m,p,g;if((!a||a==="all")&&MD(s,u))return a==="all"&&(this._pt=0),lo(this);for(f=this._op=this._op||[],a!=="all"&&(yt(a)&&(m={},Ft(a,function(_){return m[_]=1}),a=m),a=e2(s,a)),g=s.length;g--;)if(~u.indexOf(s[g])){h=l[g],a==="all"?(f[g]=a,y=h,d={}):(d=f[g]=f[g]||{},y=a);for(m in y)p=h&&h[m],p&&((!("kill"in p.d)||p.d.kill(m)===!0)&&Nl(this,p,"_pt"),delete h[m]),d!=="all"&&(d[m]=1)}return this._initted&&!this._pt&&c&&lo(this),this},e.to=function(i,a){return new e(i,a,arguments[2])},e.from=function(i,a){return vo(1,arguments)},e.delayedCall=function(i,a,o,s){return new e(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},e.fromTo=function(i,a,o){return vo(2,arguments)},e.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new e(i,a)},e.killTweensOf=function(i,a,o){return Ve.killTweensOf(i,a,o)},e})(zo);or(it.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ft("staggerTo,staggerFrom,staggerFromTo",function(t){it[t]=function(){var e=new jt,r=Sm.call(arguments,0);return r.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,r)}});var Gv=function(e,r,n){return e[r]=n},YP=function(e,r,n){return e[r](n)},r2=function(e,r,n,i){return e[r](i.fp,n)},n2=function(e,r,n){return e.setAttribute(r,n)},Kv=function(e,r){return Qe(e[r])?YP:Dv(e[r])&&e.setAttribute?n2:Gv},VP=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},i2=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},ZP=function(e,r){var n=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},Xv=function(e,r){for(var n=r._pt;n;)n.r(e,n.d),n=n._next},a2=function(e,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(e,r,n),a=o},o2=function(e){for(var r=this._pt,n,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?Nl(this,r,"_pt"):r.dep||(n=1),r=i;return!n},s2=function(e,r,n,i){i.mSet(e,r,i.m.call(i.tween,n,i.mt),i)},JP=function(e){for(var r=e._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}e._pt=a},zt=(function(){function t(r,n,i,a,o,s,u,l,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||VP,this.d=u||this,this.set=l||Gv,this.pr=c||0,this._next=r,r&&(r._prev=this)}var e=t.prototype;return e.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=s2,this.m=n,this.mt=a,this.tween=i},t})();Ft(Fv+"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(t){return Bv[t]=1});ar.TweenMax=ar.TweenLite=it;ar.TimelineLite=ar.TimelineMax=jt;Ve=new jt({sortChildren:!1,defaults:na,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});nr.stringFilter=FP;var oi=[],du={},u2=[],zb=0,l2=0,Ic=function(e){return(du[e]||u2).map(function(r){return r()})},Tm=function(){var e=Date.now(),r=[];e-zb>2&&(Ic("matchMediaInit"),oi.forEach(function(n){var i=n.queries,a=n.conditions,o,s,u,l;for(s in i)o=Rr.matchMedia(i[s]).matches,o&&(u=1),o!==a[s]&&(a[s]=o,l=1);l&&(n.revert(),u&&r.push(n))}),Ic("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),zb=e,Ic("matchMedia"))},QP=(function(){function t(r,n){this.selector=n&&Om(n),this.data=[],this._r=[],this.isReverted=!1,this.id=l2++,r&&this.add(r)}var e=t.prototype;return e.add=function(n,i,a){Qe(n)&&(a=i,i=n,n=Qe);var o=this,s=function(){var l=Ke,c=o.selector,f;return l&&l!==o&&l.data.push(o),a&&(o.selector=Om(a)),Ke=o,f=i.apply(o,arguments),Qe(f)&&o._r.push(f),Ke=l,o.selector=c,o.isReverted=!1,f};return o.last=s,n===Qe?s(o,function(u){return o.add(null,u)}):n?o[n]=s:s},e.ignore=function(n){var i=Ke;Ke=null,n(this),Ke=i},e.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof t?n.push.apply(n,i.getTweens()):i instanceof it&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},e.clear=function(){this._r.length=this.data.length=0},e.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 jt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof it)&&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=oi.length;o--;)oi[o].id===this.id&&oi.splice(o,1)},e.revert=function(n){this.kill(n||{})},t})(),c2=(function(){function t(r){this.contexts=[],this.scope=r,Ke&&Ke.data.push(this)}var e=t.prototype;return e.add=function(n,i,a){Wr(n)||(n={matches:n});var o=new QP(0,a||this.scope),s=o.conditions={},u,l,c;Ke&&!o.selector&&(o.selector=Ke.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(l in n)l==="all"?c=1:(u=Rr.matchMedia(n[l]),u&&(oi.indexOf(o)<0&&oi.push(o),(s[l]=u.matches)&&(c=1),u.addListener?u.addListener(Tm):u.addEventListener("change",Tm)));return c&&i(o,function(f){return o.add(null,f)}),this},e.revert=function(n){this.kill(n||{})},e.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},t})(),Nu={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(i){return LP(i)})},timeline:function(e){return new jt(e)},getTweensOf:function(e,r){return Ve.getTweensOf(e,r)},getProperty:function(e,r,n,i){yt(e)&&(e=pr(e)[0]);var a=ni(e||{}).get,o=n?AP:OP;return n==="native"&&(n=""),e&&(r?o((Jt[r]&&Jt[r].get||a)(e,r,n,i)):function(s,u,l){return o((Jt[s]&&Jt[s].get||a)(e,s,u,l))})},quickSetter:function(e,r,n){if(e=pr(e),e.length>1){var i=e.map(function(c){return Gt.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}e=e[0]||{};var o=Jt[r],s=ni(e),u=s.harness&&(s.harness.aliases||{})[r]||r,l=o?function(c){var f=new o;Ni._pt=0,f.init(e,n?c+n:c,Ni,0,[e]),f.render(1,f),Ni._pt&&Xv(1,Ni)}:s.set(e,u);return o?l:function(c){return l(e,u,n?c+n:c,s,1)}},quickTo:function(e,r,n){var i,a=Gt.to(e,or((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(e){return Ve.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ai(e.ease,na.ease)),Nb(na,e||{})},config:function(e){return Nb(nr,e||{})},registerEffect:function(e){var r=e.name,n=e.effect,i=e.plugins,a=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!Jt[s]&&!ar[s]&&Lo(r+" effect requires "+s+" plugin.")}),Cc[r]=function(s,u,l){return n(pr(s),or(u||{},a),l)},o&&(jt.prototype[r]=function(s,u,l){return this.add(Cc[r](s,Wr(u)?u:(l=u)&&{},this),l)})},registerEase:function(e,r){xe[e]=ai(r)},parseEase:function(e,r){return arguments.length?ai(e,r):xe},getById:function(e){return Ve.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var n=new jt(e),i,a;for(n.smoothChildTiming=Bt(e.smoothChildTiming),Ve.remove(n),n._dp=0,n._time=n._tTime=Ve._time,i=Ve._first;i;)a=i._next,(r||!(!i._dur&&i instanceof it&&i.vars.onComplete===i._targets[0]))&&Dr(n,i,i._start-i._delay),i=a;return Dr(Ve,n,0),n},context:function(e,r){return e?new QP(e,r):Ke},matchMedia:function(e){return new c2(e)},matchMediaRefresh:function(){return oi.forEach(function(e){var r=e.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&e.revert()})||Tm()},addEventListener:function(e,r){var n=du[e]||(du[e]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(e,r){var n=du[e],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:zD,wrapYoyo:UD,distribute:jP,random:RP,snap:IP,normalize:FD,getUnit:Ct,clamp:ND,splitColor:qP,toArray:pr,selector:Om,mapRange:DP,pipe:qD,unitize:BD,interpolate:WD,shuffle:kP},install:bP,effects:Cc,ticker:er,updateRoot:jt.updateRoot,plugins:Jt,globalTimeline:Ve,core:{PropTween:zt,globals:_P,Tween:it,Timeline:jt,Animation:zo,getCache:ni,_removeLinkedListItem:Nl,reverting:function(){return wt},context:function(e){return e&&Ke&&(Ke.data.push(e),e._ctx=Ke),Ke},suppressOverwrites:function(e){return $v=e}}};Ft("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Nu[t]=it[t]});er.add(jt.updateRoot);Ni=Nu.to({},{duration:0});var f2=function(e,r){for(var n=e._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},h2=function(e,r){var n=e._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=e._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=f2(o,i)),o&&o.modifier&&o.modifier(r[i],e,n[a],i))},Rc=function(e,r){return{name:e,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var u,l;if(yt(a)&&(u={},Ft(a,function(c){return u[c]=1}),a=u),r){u={};for(l in a)u[l]=r(a[l]);a=u}h2(s,a)}}}},Gt=Nu.registerPlugin({name:"attr",init:function(e,r,n,i,a){var o,s,u;this.tween=n;for(o in r)u=e.getAttribute(o)||"",s=this.add(e,"setAttribute",(u||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=u,this._props.push(o)},render:function(e,r){for(var n=r._pt;n;)wt?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,r){for(var n=r.length;n--;)this.add(e,n,e[n]||0,r[n],0,0,0,0,0,1)}},Rc("roundProps",Am),Rc("modifiers"),Rc("snap",IP))||Nu;it.version=jt.version=Gt.version="3.13.0";gP=1;Nv()&&sa();xe.Power0;xe.Power1;xe.Power2;xe.Power3;xe.Power4;xe.Linear;xe.Quad;xe.Cubic;xe.Quart;xe.Quint;xe.Strong;xe.Elastic;xe.Back;xe.SteppedEase;xe.Bounce;xe.Sine;xe.Expo;xe.Circ;/*!
8
+ */var Sr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Xa={duration:.5,overwrite:!1,delay:0},$v,je,Qt,Nr=1e8,Gt=1/Nr,by=Math.PI*2,RI=by/4,DI=0,cP=Math.sqrt,II=Math.cos,NI=Math.sin,Pe=function(t){return typeof t=="string"},ae=function(t){return typeof t=="function"},Gn=function(t){return typeof t=="number"},jv=function(t){return typeof t>"u"},wn=function(t){return typeof t=="object"},rr=function(t){return t!==!1},Rv=function(){return typeof window<"u"},Bu=function(t){return ae(t)||Pe(t)},fP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ue=Array.isArray,_y=/(?:-?\.?\d|\.)+/gi,hP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ca=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,jf=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pP=/[+-]=-?[.\d]+/,dP=/[^,'"\[\]\s]+/gi,LI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,re,pn,xy,Dv,Or={},Cl={},mP,yP=function(t){return(Cl=Va(t,Or))&&ur},Iv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},js=function(t,r){return!r&&console.warn(t)},gP=function(t,r){return t&&(Or[t]=r)&&Cl&&(Cl[t]=r)||Or},Rs=function(){return 0},BI={suppressEvents:!0,isStart:!0,kill:!1},ol={suppressEvents:!0,kill:!1},qI={suppressEvents:!0},Nv={},fi=[],wy={},vP,br={},Rf={},qb=30,sl=[],Lv="",Bv=function(t){var r=t[0],n,i;if(wn(r)||ae(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=sl.length;i--&&!sl[i].targetTest(r););n=sl[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new zP(t[i],n)))||t.splice(i,1);return t},Gi=function(t){return t._gsap||Bv(Lr(t))[0]._gsap},bP=function(t,r,n){return(n=t[r])&&ae(n)?t[r]():jv(n)&&t.getAttribute&&t.getAttribute(r)||n},nr=function(t,r){return(t=t.split(",")).forEach(r)||t},se=function(t){return Math.round(t*1e5)/1e5||0},pe=function(t){return Math.round(t*1e7)/1e7||0},Da=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},Ml=function(){var t=fi.length,r=fi.slice(0),n,i;for(wy={},fi.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},qv=function(t){return!!(t._initted||t._startAt||t.add)},_P=function(t,r,n,i){fi.length&&!je&&Ml(),t.render(r,n,!!(je&&r<0&&qv(t))),fi.length&&!je&&Ml()},xP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(dP).length<2?r:Pe(t)?t.trim():t},wP=function(t){return t},Tr=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])}},Va=function(t,r){for(var n in r)t[n]=r[n];return t},Fb=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=wn(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},kl=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},cs=function(t){var r=t.parent||re,n=t.keyframes?zI(Ue(t.keyframes)):Tr;if(rr(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},UI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},SP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},jc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},pi=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Hi=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},WI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Sy=function(t,r,n,i){return t._startAt&&(je?t._startAt.revert(ol):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},GI=function e(t){return!t||t._ts&&e(t.parent)},zb=function(t){return t._repeat?Za(t._tTime,t=t.duration()+t._rDelay)*t:0},Za=function(t,r){var n=Math.floor(t=pe(t/r));return t&&n===t?n-1:n},$l=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Rc=function(t){return t._end=pe(t._start+(t._tDur/Math.abs(t._ts||t._rts||Gt)||0))},Dc=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=pe(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Rc(t),n._dirty||Hi(n,t)),t},AP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=$l(t.rawTime(),r),(!r._dur||wu(0,r.totalDuration(),n)-r._tTime>Gt)&&r.render(n,!0)),Hi(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}},mn=function(t,r,n,i){return r.parent&&pi(r),r._start=pe((Gn(n)?n:n||t!==re?Rr(t,n,r):t._time)+r._delay),r._end=pe(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),SP(t,r,"_first","_last",t._sort?"_start":0),Ay(r)||(t._recent=r),i||AP(t,r),t._ts<0&&Dc(t,t._tTime),t},OP=function(t,r){return(Or.ScrollTrigger||Iv("scrollTrigger",r))&&Or.ScrollTrigger.create(r,t)},TP=function(t,r,n,i,a){if(zv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!je&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&vP!==_r.frame)return fi.push(t),t._lazy=[a,i],1},HI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Ay=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},KI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&HI(t)&&!(!t._initted&&Ay(t))||(t._ts<0||t._dp._ts<0)&&!Ay(t))?0:1,s=t._rDelay,u=0,l,c,f;if(s&&t._repeat&&(u=wu(0,t._tDur,r),c=Za(u,s),t._yoyo&&c&1&&(o=1-o),c!==Za(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||je||i||t._zTime===Gt||!r&&t._zTime){if(!t._initted&&TP(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&&Sy(t,r,n,!0),t._onUpdate&&!n&&wr(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&wr(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&pi(t,1),!n&&!je&&(wr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},YI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},Ja=function(t,r,n,i){var a=t._repeat,o=pe(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:pe(o*(a+1)+t._rDelay*a):o,s>0&&!i&&Dc(t,t._tTime=t._tDur*s),t.parent&&Rc(t),n||Hi(t.parent,t),t},Ub=function(t){return t instanceof He?Hi(t):Ja(t,t._dur)},XI={_start:0,endTime:Rs,totalDuration:Rs},Rr=function e(t,r,n){var i=t.labels,a=t._recent||XI,o=t.duration()>=Nr?a.endTime(!1):t._dur,s,u,l;return Pe(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*(Ue(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+u:o+u)):r==null?o:+r},fs=function(t,r,n){var i=Gn(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=rr(u.vars.inherit)&&u.parent;o.immediateRender=rr(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new he(r[0],o,r[a+1])},gi=function(t,r){return t||t===0?r(t):r},wu=function(t,r,n){return n<t?t:n>r?r:n},ze=function(t,r){return!Pe(t)||!(r=LI.exec(t))?"":r[1]},VI=function(t,r,n){return gi(n,function(i){return wu(t,r,i)})},Oy=[].slice,PP=function(t,r){return t&&wn(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&wn(t[0]))&&!t.nodeType&&t!==pn},ZI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return Pe(i)&&!r||PP(i,1)?(a=n).push.apply(a,Lr(i)):n.push(i)})||n},Lr=function(t,r,n){return Qt&&!r&&Qt.selector?Qt.selector(t):Pe(t)&&!n&&(xy||!Qa())?Oy.call((r||Dv).querySelectorAll(t),0):Ue(t)?ZI(t,n):PP(t)?Oy.call(t,0):t?[t]:[]},Ty=function(t){return t=Lr(t)[0]||js("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Lr(r,n.querySelectorAll?n:n===t?js("Invalid scope")||Dv.createElement("div"):t)}},EP=function(t){return t.sort(function(){return .5-Math.random()})},CP=function(t){if(ae(t))return t;var r=wn(t)?t:{each:t},n=Ki(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 Pe(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&u&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],v,_,b,x,g,w,S,O,T;if(!d){if(T=r.grid==="auto"?0:(r.grid||[1,Nr])[1],!T){for(S=-Nr;S<(S=y[T++].getBoundingClientRect().left)&&T<m;);T<m&&T--}for(d=o[m]=[],v=u?Math.min(T,m)*c-.5:i%T,_=T===Nr?0:u?m*f/T-.5:i/T|0,S=0,O=Nr,w=0;w<m;w++)b=w%T-v,x=_-(w/T|0),d[w]=g=l?Math.abs(l==="y"?x:b):cP(b*b+x*x),g>S&&(S=g),g<O&&(O=g);i==="random"&&EP(d),d.max=S-O,d.min=O,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(T>m?m-1:l?l==="y"?m/T:T:Math.max(T,m/T))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=ze(r.amount||r.each)||0,n=n&&m<0?BP(n):n}return m=(d[h]-d.min)/d.max||0,pe(d.b+(n?n(m):m)*d.v)+d.u}},Py=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=pe(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Gn(n)?0:ze(n))}},MP=function(t,r){var n=Ue(t),i,a;return!n&&wn(t)&&(i=n=t.radius||Nr,t.values?(t=Lr(t.values),(a=!Gn(t[0]))&&(i*=i)):t=Py(t.increment)),gi(r,n?ae(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),u=parseFloat(a?o.y:0),l=Nr,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||Gn(o)?c:c+ze(o)}:Py(t))},kP=function(t,r,n,i){return gi(Ue(t)?!r:n===!0?!!(n=0):!i,function(){return Ue(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||ze(n))}},tN=function(t,r,n){return jP(t,r,0,1,n)},$P=function(t,r,n){return gi(n,function(i){return t[~~r(i)]})},eN=function e(t,r,n){var i=r-t;return Ue(t)?$P(t,e(0,t.length),r):gi(n,function(a){return(i+(a-t)%i)%i+t})},rN=function e(t,r,n){var i=r-t,a=i*2;return Ue(t)?$P(t,e(0,t.length-1),r):gi(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},Ds=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?dP:_y),n+=t.substr(r,i-r)+kP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},jP=function(t,r,n,i,a){var o=r-t,s=i-n;return gi(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=Pe(t),s={},u,l,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Ue(t)&&!Ue(r)){for(c=[],f=t.length,h=f-2,l=1;l<f;l++)c.push(e(t[l-1],t[l]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=Va(Ue(t)?[]:{},t));if(!c){for(u in r)Fv.call(s,t,u,"get",r[u]);a=function(y){return Gv(y,s)||(o?t.p:t)}}}return gi(n,a)},Wb=function(t,r,n){var i=t.labels,a=Nr,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},wr=function(t,r,n){var i=t.vars,a=i[r],o=Qt,s=t._ctx,u,l,c;if(a)return u=i[r+"Params"],l=i.callbackScope||t,n&&fi.length&&Ml(),s&&(Qt=s),c=u?a.apply(l,u):a.call(l),Qt=o,c},is=function(t){return pi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!je),t.progress()<1&&wr(t,"onInterrupt"),t},Ma,RP=[],DP=function(t){if(t)if(t=!t.name&&t.default||t,Rv()||t.headless){var r=t.name,n=ae(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:Rs,render:Gv,add:Fv,kill:bN,modifier:vN,rawVars:0},o={targetTest:0,get:0,getSetter:Wv,aliases:{},register:0};if(Qa(),t!==i){if(br[r])return;Tr(i,Tr(kl(t,a),o)),Va(i.prototype,Va(a,kl(t,o))),br[i.prop=r]=i,t.targetTest&&(sl.push(i),Nv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}gP(r,i),t.register&&t.register(ur,i,ir)}else RP.push(t)},Wt=255,as={aqua:[0,Wt,Wt],lime:[0,Wt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Wt],navy:[0,0,128],white:[Wt,Wt,Wt],olive:[128,128,0],yellow:[Wt,Wt,0],orange:[Wt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Wt,0,0],pink:[Wt,192,203],cyan:[0,Wt,Wt],transparent:[Wt,Wt,Wt,0]},Df=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*Wt+.5|0},IP=function(t,r,n){var i=t?Gn(t)?[t>>16,t>>8&Wt,t&Wt]:0:as.black,a,o,s,u,l,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),as[t])i=as[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&Wt,i&Wt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Wt,t&Wt]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(_y),!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]=Df(u+1/3,a,o),i[1]=Df(u,a,o),i[2]=Df(u-1/3,a,o);else if(~t.indexOf("="))return i=t.match(hP),n&&i.length<4&&(i[3]=1),i}else i=t.match(_y)||as.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Wt,o=i[1]/Wt,s=i[2]/Wt,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},NP=function(t){var r=[],n=[],i=-1;return t.split(hi).forEach(function(a){var o=a.match(Ca)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Gb=function(t,r,n){var i="",a=(t+i).match(hi),o=r?"hsla(":"rgba(",s=0,u,l,c,f;if(!a)return t;if(a=a.map(function(h){return(h=IP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=NP(t),u=n.c,u.join(i)!==c.c.join(i)))for(l=t.replace(hi,"1").split(Ca),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(hi),f=l.length-1;s<f;s++)i+=l[s]+a[s];return i+l[f]},hi=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in as)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),iN=/hsl[a]?\(/,LP=function(t){var r=t.join(" "),n;if(hi.lastIndex=0,hi.test(r))return n=iN.test(r),t[1]=Gb(t[1],n),t[0]=Gb(t[0],n,NP(t[1])),!0},Is,_r=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],u,l,c,f,h,p,y=function m(d){var v=e()-i,_=d===!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(m)),x)for(p=0;p<s.length;p++)s[p](g,h,w,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){mP&&(!xy&&Rv()&&(pn=xy=window,Dv=pn.document||{},Or.gsap=ur,(pn.gsapVersions||(pn.gsapVersions=[])).push(ur.version),yP(Cl||pn.GreenSockGlobals||!pn.gsap&&pn||{}),RP.forEach(DP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&f.sleep(),l=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},Is=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),Is=0,l=Rs},lagSmoothing:function(d,v){t=d||1/0,r=Math.min(v||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,v,_){var b=v?function(x,g,w,S){d(x,g,w,S),f.remove(b)}:d;return f.remove(d),s[_?"unshift":"push"](b),Qa(),b},remove:function(d,v){~(v=s.indexOf(d))&&s.splice(v,1)&&p>=v&&p--},_listeners:s},f})(),Qa=function(){return!Is&&_r.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(xP)):Pt._CE&&aN.test(t)?Pt._CE("",t):n},BP=function(t){return function(r){return 1-t(1-r)}},qP=function e(t,r){for(var n=t._first,i;n;)n instanceof He?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},Ki=function(t,r){return t&&(ae(t)?t:Pt[t]||lN(t))||r},fa=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 nr(t,function(s){Pt[s]=Or[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},FP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},If=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/by*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*NI((c-o)*a)+1},u=t==="out"?s:t==="in"?function(l){return 1-s(1-l)}:FP(s);return a=by/a,u.config=function(l,c){return e(t,l,c)},u},Nf=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:FP(n);return i.config=function(a){return e(t,a)},i};nr("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;fa(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;fa("Elastic",If("in"),If("out"),If());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};fa("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);fa("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});fa("Circ",function(e){return-(cP(1-e*e)-1)});fa("Sine",function(e){return e===1?1:-II(e*RI)+1});fa("Back",Nf("in"),Nf("out"),Nf());Pt.SteppedEase=Pt.steps=Or.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*wu(0,o,s)|0)+a)*n}}};Xa.ease=Pt["quad.out"];nr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return Lv+=e+","+e+"Params,"});var zP=function(t,r){this.id=DI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:bP,this.set=r?r.getSetter:Wv},Ns=(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,Ja(this,+r.duration,1,1),this.data=r.data,Qt&&(this._ctx=Qt,Qt.data.push(this)),Is||_r.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,Ja(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(Qa(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Dc(this,n),!a._dp||a.parent||AP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&mn(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),_P(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+zb(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+zb(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?Za(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?$l(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Gt?0:this._rts,this.totalTime(wu(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Rc(this),WI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Qa(),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)&&mn(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(rr(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?$l(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=qI);var i=je;return je=n,qv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),je=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Ub(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Ub(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Rr(this,n),rr(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,rr(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=ae(n)?n:wP,s=function(){var l=i.then;i.then=null,ae(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(){is(this)},e})();Tr(Ns.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 He=(function(e){lP(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=rr(n.sortChildren),re&&mn(n.parent||re,jn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&OP(jn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return fs(0,arguments,this),this},r.from=function(i,a,o){return fs(1,arguments,this),this},r.fromTo=function(i,a,o,s){return fs(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,cs(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new he(i,a,Rr(this,o),1),this},r.call=function(i,a,o){return mn(this,he.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 he(i,o,Rr(this,u)),this},r.staggerFrom=function(i,a,o,s,u,l,c){return o.runBackwards=1,cs(o).immediateRender=rr(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,cs(s).immediateRender=rr(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:pe(i),f=this._zTime<0!=i<0&&(this._initted||!l),h,p,y,m,d,v,_,b,x,g,w,S;if(this!==re&&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,d=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=pe(c%d),c===u?(m=this._repeat,h=l):(g=pe(c/d),m=~~g,m&&m===g&&(h=l,m--),h>l&&(h=l)),g=Za(this._tTime,d),!s&&this._tTime&&g!==m&&this._tTime-g*d-this._dur<=0&&(g=m),w&&m&1&&(h=l-h,S=1),m!==g&&!this._lock){var O=w&&g&1,T=O===(w&&m&1);if(m<g&&(O=!O),s=O?0:c%l?l:c,this._lock=1,this.render(s||(S?0:pe(m*d)),a,!l)._lock=0,this._tTime=c,!a&&this.parent&&wr(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=O?l:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;qP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(_=YI(this,pe(s),pe(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&&(wr(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||je&&qv(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,Rc(this),this.render(i,a,o);this._onUpdate&&!a&&wr(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)&&pi(this,1),!a&&!(i<0&&!s)&&(c||s||!u)&&(wr(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(Gn(a)||(a=Rr(this,a,i)),!(i instanceof Ns)){if(Ue(i))return i.forEach(function(s){return o.add(s,a)}),this;if(Pe(i))return this.addLabel(i,a);if(ae(i))i=he.delayedCall(0,i);else return this}return this!==i?mn(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=-Nr);for(var u=[],l=this._first;l;)l._start>=s&&(l instanceof he?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 Pe(i)?this.removeLabel(i):ae(i)?this.killTweensOf(i):(i.parent===this&&jc(this,i),i===this._recent&&(this._recent=this._last),Hi(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=pe(_r.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]=Rr(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=he.delayedCall(0,a||Rs,o);return s.data="isPause",this._hasPause=1,mn(this,s,Rr(this,i))},r.removePause=function(i){var a=this._first;for(i=Rr(this,i);a;)a._start===i&&a.data==="isPause"&&pi(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),u=s.length;u--;)ii!==s[u]&&s[u].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Lr(i),u=this._first,l=Gn(a),c;u;)u instanceof he?FI(u._targets,s)&&(l?(!ii||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=Rr(o,i),u=a,l=u.startAt,c=u.onStart,f=u.onStartParams,h=u.immediateRender,p,y=he.to(o,Tr({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 d=a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale());y._dur!==d&&Ja(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,Tr({startAt:{time:Rr(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Rr(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Rr(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 Hi(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={}),Hi(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,u=Nr,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,mn(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;Ja(o,o===re&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(re._ts&&(_P(re,$l(i,re)),vP=_r.frame),_r.frame>=qb){qb+=Sr.autoSleep||120;var a=re._first;if((!a||!a._ts)&&Sr.autoSleep&&_r._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||_r.sleep()}}},t})(Ns);Tr(He.prototype,{_lock:0,_hasPause:0,_forcing:0});var cN=function(t,r,n,i,a,o,s){var u=new ir(this._pt,t,r,0,1,YP,null,a),l=0,c=0,f,h,p,y,m,d,v,_;for(u.b=n,u.e=i,n+="",i+="",(v=~i.indexOf("random("))&&(i=Ds(i)),o&&(_=[n,i],o(_,t,r),n=_[0],i=_[1]),h=n.match(jf)||[];f=jf.exec(i);)y=f[0],m=i.substring(l,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?Da(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},l=jf.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=s,(pP.test(i)||v)&&(u.e=0),this._pt=u,u},Fv=function(t,r,n,i,a,o,s,u,l,c){ae(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:ae(f)?l?t[r.indexOf("set")||!ae(t["get"+r.substr(3)])?r:"get"+r.substr(3)](l):t[r]():f,p=ae(f)?l?mN:HP:Uv,y;if(Pe(i)&&(~i.indexOf("random(")&&(i=Ds(i)),i.charAt(1)==="="&&(y=Da(h,i)+(ze(h)||0),(y||y===0)&&(i=y))),!c||h!==i||Ey)return!isNaN(h*i)&&i!==""?(y=new ir(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?gN:KP,0,p),l&&(y.fp=l),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Iv(r,i),cN.call(this,t,r,h,i,p,u||Sr.stringFilter,l))},fN=function(t,r,n,i,a){if(ae(t)&&(t=hs(t,a,r,n,i)),!wn(t)||t.style&&t.nodeType||Ue(t)||fP(t))return Pe(t)?hs(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=hs(t[s],a,r,n,i);return o},UP=function(t,r,n,i,a,o){var s,u,l,c;if(br[t]&&(s=new br[t]).init(a,s.rawVars?r[t]:fN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=u=new ir(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==Ma))for(l=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)l[s._props[c]]=u;return s},ii,Ey,zv=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,u=i.lazy,l=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,v=t.parent,_=v&&v.data==="nested"?v.vars.targets:d,b=t._overwrite==="auto"&&!$v,x=t.timeline,g,w,S,O,T,M,P,E,k,R,$,C,I;if(x&&(!h||!a)&&(a="none"),t._ease=Ki(a,Xa.ease),t._yEase=f?BP(Ki(f===!0?a:f,Xa.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!x&&!!i.runBackwards,!x||h&&!i.stagger){if(E=d[0]?Gi(d[0]).harness:0,C=E&&i[E.prop],g=kl(i,Nv),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?ol:BI),m._lazy=0),o){if(pi(t._startAt=he.set(d,Tr({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!m&&rr(u),startAt:null,delay:0,onUpdate:l&&function(){return wr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(je||!s&&!p)&&t._startAt.revert(ol),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=Tr({overwrite:!1,data:"isFromStart",lazy:s&&!m&&rr(u),immediateRender:s,stagger:0,parent:v},g),C&&(S[E.prop]=C),pi(t._startAt=he.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(je?t._startAt.revert(ol):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&&rr(u)||u&&!y,w=0;w<d.length;w++){if(T=d[w],P=T._gsap||Bv(d)[w]._gsap,t._ptLookup[w]=R={},wy[P.id]&&fi.length&&Ml(),$=_===d?w:_.indexOf(T),E&&(k=new E).init(T,C||g,t,$,_)!==!1&&(t._pt=O=new ir(t._pt,T,k.name,0,1,k.render,k,0,k.priority),k._props.forEach(function(L){R[L]=O}),k.priority&&(M=1)),!E||C)for(S in g)br[S]&&(k=UP(S,g,t,$,T,_))?k.priority&&(M=1):R[S]=O=Fv.call(t,T,S,"get",g[S],$,_,0,i.stringFilter);t._op&&t._op[w]&&t.kill(T,t._op[w]),b&&t._pt&&(ii=t,re.killTweensOf(T,R,t.globalTime(r)),I=!t.parent,ii=0),t._pt&&u&&(wy[P.id]=1)}M&&XP(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!I,h&&r<=0&&x.render(Nr,!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 Ey=1,t.vars[r]="+=0",zv(t,s),Ey=0,u?js(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=se(n)+ze(f.e)),f.b&&(f.b=c.s+ze(f.b))},pN=function(t,r){var n=t[0]?Gi(t[0]).harness:0,i=n&&n.aliases,a,o,s,u;if(!i)return r;a=Va({},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(Ue(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})},hs=function(t,r,n,i,a){return ae(t)?t.call(r,n,i,a):Pe(t)&&~t.indexOf("random(")?Ds(t):t},WP=Lv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",GP={};nr(WP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return GP[e]=1});var he=(function(e){lP(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:cs(i))||this;var u=s.vars,l=u.duration,c=u.delay,f=u.immediateRender,h=u.stagger,p=u.overwrite,y=u.keyframes,m=u.defaults,d=u.scrollTrigger,v=u.yoyoEase,_=i.parent||re,b=(Ue(n)||fP(n)?Gn(n[0]):"length"in i)?[n]:Lr(n),x,g,w,S,O,T,M,P;if(s._targets=b.length?Bv(b):js("GSAP target "+n+" not found. https://gsap.com",!Sr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||Bu(l)||Bu(c)){if(i=s.vars,x=s.timeline=new He({data:"nested",defaults:m||{},targets:_&&_.data==="nested"?_.vars.targets:b}),x.kill(),x.parent=x._dp=jn(s),x._start=0,h||Bu(l)||Bu(c)){if(S=b.length,M=h&&CP(h),wn(h))for(O in h)~WP.indexOf(O)&&(P||(P={}),P[O]=h[O]);for(g=0;g<S;g++)w=kl(i,GP),w.stagger=0,v&&(w.yoyoEase=v),P&&Va(w,P),T=b[g],w.duration=+hs(l,jn(s),g,T,b),w.delay=(+hs(c,jn(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){cs(Tr(x.vars.defaults,{ease:"none"})),x._ease=Ki(y.ease||i.ease||"none");var E=0,k,R,$;if(Ue(y))y.forEach(function(C){return x.to(b,C,">")}),x.duration();else{w={};for(O in y)O==="ease"||O==="easeEach"||dN(O,y[O],w,y.easeEach);for(O in w)for(k=w[O].sort(function(C,I){return C.t-I.t}),E=0,g=0;g<k.length;g++)R=k[g],$={ease:R.e,duration:(R.t-(g?k[g-1].t:0))/100*l},$[O]=R.v,x.to(b,$,E),E+=$.duration;x.duration()<l&&x.to({},{duration:l-x.duration()})}}l||s.duration(l=x.duration())}else s.timeline=0;return p===!0&&!$v&&(ii=jn(s),re.killTweensOf(b),ii=0),mn(_,jn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!l&&!y&&s._start===pe(_._time)&&rr(f)&&GI(jn(s))&&_.data!=="nested")&&(s._tTime=-Gt,s.render(Math.max(0,-c)||0)),d&&OP(jn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,u=this._tDur,l=this._dur,c=i<0,f=i>u-Gt&&!c?u:i<Gt?0:i,h,p,y,m,d,v,_,b,x;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(m=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=pe(f%m),f===u?(y=this._repeat,h=l):(d=pe(f/m),y=~~d,y&&y===d?(h=l,y--):h>l&&(h=l)),v=this._yoyo&&y&1,v&&(x=this._yEase,h=l-h),d=Za(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(b&&this._yEase&&qP(b,v),this.vars.repeatRefresh&&!v&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(pe(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(TP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(l!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=_=(x||this._ease)(h/l),this._from&&(this.ratio=_=1-_),!s&&f&&!a&&!d&&(wr(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&&Sy(this,i,a,o),wr(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&wr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Sy(this,i,!0,!0),(i||!l)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&pi(this,1),!a&&!(c&&!s)&&(f||s||v)&&(wr(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){Is||_r.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||zv(this,l),c=this._ease(l/this._dur),hN(this,i,a,o,s,c,l,u)?this.resetTo(i,a,o,s,1):(Dc(this,0),this.parent||SP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?is(this):this.scrollTrigger&&this.scrollTrigger.kill(!!je),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,ii&&ii.vars.overwrite!==!0)._first||is(this),this.parent&&o!==this.timeline.totalDuration()&&Ja(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,u=i?Lr(i):s,l=this._ptLookup,c=this._pt,f,h,p,y,m,d,v;if((!a||a==="all")&&UI(s,u))return a==="all"&&(this._pt=0),is(this);for(f=this._op=this._op||[],a!=="all"&&(Pe(a)&&(m={},nr(a,function(_){return m[_]=1}),a=m),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(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&jc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&is(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return fs(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 fs(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return re.killTweensOf(i,a,o)},t})(Ns);Tr(he.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});nr("staggerTo,staggerFrom,staggerFromTo",function(e){he[e]=function(){var t=new He,r=Oy.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Uv=function(t,r,n){return t[r]=n},HP=function(t,r,n){return t[r](n)},mN=function(t,r,n,i){return t[r](i.fp,n)},yN=function(t,r,n){return t.setAttribute(r,n)},Wv=function(t,r){return ae(t[r])?HP:jv(t[r])&&t.setAttribute?yN:Uv},KP=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},gN=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},YP=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},Gv=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},vN=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},bN=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?jc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},_N=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},XP=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},ir=(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||KP,this.d=u||this,this.set=l||Uv,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=_N,this.m=n,this.mt=a,this.tween=i},e})();nr(Lv+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return Nv[e]=1});Or.TweenMax=Or.TweenLite=he;Or.TimelineLite=Or.TimelineMax=He;re=new He({sortChildren:!1,defaults:Xa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Sr.stringFilter=LP;var Yi=[],ul={},xN=[],Hb=0,wN=0,Lf=function(t){return(ul[t]||xN).map(function(r){return r()})},Cy=function(){var t=Date.now(),r=[];t-Hb>2&&(Lf("matchMediaInit"),Yi.forEach(function(n){var i=n.queries,a=n.conditions,o,s,u,l;for(s in i)o=pn.matchMedia(i[s]).matches,o&&(u=1),o!==a[s]&&(a[s]=o,l=1);l&&(n.revert(),u&&r.push(n))}),Lf("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Hb=t,Lf("matchMedia"))},VP=(function(){function e(r,n){this.selector=n&&Ty(n),this.data=[],this._r=[],this.isReverted=!1,this.id=wN++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){ae(n)&&(a=i,i=n,n=ae);var o=this,s=function(){var l=Qt,c=o.selector,f;return l&&l!==o&&l.data.push(o),a&&(o.selector=Ty(a)),Qt=o,f=i.apply(o,arguments),ae(f)&&o._r.push(f),Qt=l,o.selector=c,o.isReverted=!1,f};return o.last=s,n===ae?s(o,function(u){return o.add(null,u)}):n?o[n]=s:s},t.ignore=function(n){var i=Qt;Qt=null,n(this),Qt=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof he&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),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 He?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof he)&&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=Yi.length;o--;)Yi[o].id===this.id&&Yi.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),SN=(function(){function e(r){this.contexts=[],this.scope=r,Qt&&Qt.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){wn(n)||(n={matches:n});var o=new VP(0,a||this.scope),s=o.conditions={},u,l,c;Qt&&!o.selector&&(o.selector=Qt.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(l in n)l==="all"?c=1:(u=pn.matchMedia(n[l]),u&&(Yi.indexOf(o)<0&&Yi.push(o),(s[l]=u.matches)&&(c=1),u.addListener?u.addListener(Cy):u.addEventListener("change",Cy)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),jl={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return DP(i)})},timeline:function(t){return new He(t)},getTweensOf:function(t,r){return re.getTweensOf(t,r)},getProperty:function(t,r,n,i){Pe(t)&&(t=Lr(t)[0]);var a=Gi(t||{}).get,o=n?wP:xP;return n==="native"&&(n=""),t&&(r?o((br[r]&&br[r].get||a)(t,r,n,i)):function(s,u,l){return o((br[s]&&br[s].get||a)(t,s,u,l))})},quickSetter:function(t,r,n){if(t=Lr(t),t.length>1){var i=t.map(function(c){return ur.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=br[r],s=Gi(t),u=s.harness&&(s.harness.aliases||{})[r]||r,l=o?function(c){var f=new o;Ma._pt=0,f.init(t,n?c+n:c,Ma,0,[t]),f.render(1,f),Ma._pt&&Gv(1,Ma)}: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=ur.to(t,Tr((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 re.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ki(t.ease,Xa.ease)),Fb(Xa,t||{})},config:function(t){return Fb(Sr,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&&!br[s]&&!Or[s]&&js(r+" effect requires "+s+" plugin.")}),Rf[r]=function(s,u,l){return n(Lr(s),Tr(u||{},a),l)},o&&(He.prototype[r]=function(s,u,l){return this.add(Rf[r](s,wn(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,r){Pt[t]=Ki(r)},parseEase:function(t,r){return arguments.length?Ki(t,r):Pt},getById:function(t){return re.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new He(t),i,a;for(n.smoothChildTiming=rr(t.smoothChildTiming),re.remove(n),n._dp=0,n._time=n._tTime=re._time,i=re._first;i;)a=i._next,(r||!(!i._dur&&i instanceof he&&i.vars.onComplete===i._targets[0]))&&mn(n,i,i._start-i._delay),i=a;return mn(re,n,0),n},context:function(t,r){return t?new VP(t,r):Qt},matchMedia:function(t){return new SN(t)},matchMediaRefresh:function(){return Yi.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||Cy()},addEventListener:function(t,r){var n=ul[t]||(ul[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=ul[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:eN,wrapYoyo:rN,distribute:CP,random:kP,snap:MP,normalize:tN,getUnit:ze,clamp:VI,splitColor:IP,toArray:Lr,selector:Ty,mapRange:jP,pipe:JI,unitize:QI,interpolate:nN,shuffle:EP},install:yP,effects:Rf,ticker:_r,updateRoot:He.updateRoot,plugins:br,globalTimeline:re,core:{PropTween:ir,globals:gP,Tween:he,Timeline:He,Animation:Ns,getCache:Gi,_removeLinkedListItem:jc,reverting:function(){return je},context:function(t){return t&&Qt&&(Qt.data.push(t),t._ctx=Qt),Qt},suppressOverwrites:function(t){return $v=t}}};nr("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return jl[e]=he[e]});_r.add(He.updateRoot);Ma=jl.to({},{duration:0});var AN=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},ON=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=AN(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},Bf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var u,l;if(Pe(a)&&(u={},nr(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)}}}},ur=jl.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;)je?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},Bf("roundProps",Py),Bf("modifiers"),Bf("snap",MP))||jl;he.version=He.version=ur.version="3.13.0";mP=1;Rv()&&Qa();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 Ub,_n,Ui,Yv,Jn,Wb,Vv,d2=function(){return typeof window<"u"},hn={},Kn=180/Math.PI,Wi=Math.PI/180,Ci=Math.atan2,Hb=1e8,Zv=/([A-Z])/g,p2=/(left|right|width|margin|padding|x)/i,m2=/[\s,\(]\S/,Nr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Em=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},y2=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},v2=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},g2=function(e,r){var n=r.s+r.c*e;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},eT=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},tT=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},b2=function(e,r,n){return e.style[r]=n},_2=function(e,r,n){return e.style.setProperty(r,n)},x2=function(e,r,n){return e._gsap[r]=n},w2=function(e,r,n){return e._gsap.scaleX=e._gsap.scaleY=n},S2=function(e,r,n,i,a){var o=e._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},O2=function(e,r,n,i,a){var o=e._gsap;o[r]=n,o.renderTransform(a,o)},Ze="transform",Ut=Ze+"Origin",A2=function t(e,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(e in hn&&a){if(this.tfm=this.tfm||{},e!=="transform")e=Nr[e]||e,~e.indexOf(",")?e.split(",").forEach(function(s){return n.tfm[s]=Qr(i,s)}):this.tfm[e]=o.x?o[e]:Qr(i,e),e===Ut&&(this.tfm.zOrigin=o.zOrigin);else return Nr.transform.split(",").forEach(function(s){return t.call(n,s,r)});if(this.props.indexOf(Ze)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ut,r,"")),e=Ze}(a||r)&&this.props.push(e,r,a[e])},rT=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},P2=function(){var e=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<e.length;a+=3)e[a+1]?e[a+1]===2?r[e[a]](e[a+2]):r[e[a]]=e[a+2]:e[a+2]?n[e[a]]=e[a+2]:n.removeProperty(e[a].substr(0,2)==="--"?e[a]:e[a].replace(Zv,"-$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=Vv(),(!a||!a.isStart)&&!n[Ze]&&(rT(n),i.zOrigin&&n[Ut]&&(n[Ut]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},nT=function(e,r){var n={target:e,props:[],revert:P2,save:A2};return e._gsap||Gt.core.getCache(e),r&&e.style&&e.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},iT,Cm=function(e,r){var n=_n.createElementNS?_n.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):_n.createElement(e);return n&&n.style?n:_n.createElement(e)},mr=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Zv,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,ua(r)||r,1)||""},Gb="O,Moz,ms,Ms,Webkit".split(","),ua=function(e,r,n){var i=r||Jn,a=i.style,o=5;if(e in a&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(Gb[o]+e in a););return o<0?null:(o===3?"ms":o>=0?Gb[o]:"")+e},Mm=function(){d2()&&window.document&&(Ub=window,_n=Ub.document,Ui=_n.documentElement,Jn=Cm("div")||{style:{}},Cm("div"),Ze=ua(Ze),Ut=Ze+"Origin",Jn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",iT=!!ua("perspective"),Vv=Gt.core.reverting,Yv=1)},Kb=function(e){var r=e.ownerSVGElement,n=Cm("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),a;i.style.display="block",n.appendChild(i),Ui.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),Ui.removeChild(n),a},Xb=function(e,r){for(var n=r.length;n--;)if(e.hasAttribute(r[n]))return e.getAttribute(r[n])},aT=function(e){var r,n;try{r=e.getBBox()}catch{r=Kb(e),n=1}return r&&(r.width||r.height)||n||(r=Kb(e)),r&&!r.width&&!r.x&&!r.y?{x:+Xb(e,["x","cx","x1"])||0,y:+Xb(e,["y","cy","y1"])||0,width:0,height:0}:r},oT=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&aT(e))},hi=function(e,r){if(r){var n=e.style,i;r in hn&&r!==Ut&&(r=Ze),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Zv,"-$1").toLowerCase())):n.removeAttribute(r)}},xn=function(e,r,n,i,a,o){var s=new zt(e._pt,r,n,0,1,o?tT:eT);return e._pt=s,s.b=i,s.e=a,e._props.push(n),s},Yb={deg:1,rad:1,turn:1},T2={grid:1,flex:1},Mn=function t(e,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Jn.style,u=p2.test(r),l=e.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),f=100,h=i==="px",d=i==="%",y,m,p,g;if(i===o||!a||Yb[i]||Yb[o])return a;if(o!=="px"&&!h&&(a=t(e,r,n,"px")),g=e.getCTM&&oT(e),(d||o==="%")&&(hn[r]||~r.indexOf("adius")))return y=g?e.getBBox()[u?"width":"height"]:e[c],et(d?a/y*f:a/100*y);if(s[u?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&e.appendChild&&!l?e:e.parentNode,g&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===_n||!m.appendChild)&&(m=_n.body),p=m._gsap,p&&d&&p.width&&u&&p.time===er.time&&!p.uncache)return et(a/p.width*f);if(d&&(r==="height"||r==="width")){var _=e.style[r];e.style[r]=f+i,y=e[c],_?e.style[r]=_:hi(e,r)}else(d||o==="%")&&!T2[mr(m,"display")]&&(s.position=mr(e,"position")),m===e&&(s.position="static"),m.appendChild(Jn),y=Jn[c],m.removeChild(Jn),s.position="absolute";return u&&d&&(p=ni(m),p.time=er.time,p.width=m[c]),et(h?y*a/f:y&&a?f/y*a:0)},Qr=function(e,r,n,i){var a;return Yv||Mm(),r in Nr&&r!=="transform"&&(r=Nr[r],~r.indexOf(",")&&(r=r.split(",")[0])),hn[r]&&r!=="transform"?(a=Wo(e,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:qu(mr(e,Ut))+" "+a.zOrigin+"px"):(a=e.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Lu[r]&&Lu[r](e,r,n)||mr(e,r)||wP(e,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?Mn(e,r,a,n)+n:a},E2=function(e,r,n,i){if(!n||n==="none"){var a=ua(r,e,1),o=a&&mr(e,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=mr(e,"borderTopColor"))}var s=new zt(this._pt,e.style,r,0,1,ZP),u=0,l=0,c,f,h,d,y,m,p,g,_,b,x,v;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=mr(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=e.style[r],e.style[r]=i,i=mr(e,r)||i,m?e.style[r]=m:hi(e,r)),c=[n,i],FP(c),n=c[0],i=c[1],h=n.match(Di)||[],v=i.match(Di)||[],v.length){for(;f=Di.exec(i);)p=f[0],_=i.substring(u,f.index),y?y=(y+1)%5:(_.substr(-5)==="rgba("||_.substr(-5)==="hsla(")&&(y=1),p!==(m=h[l++]||"")&&(d=parseFloat(m)||0,x=m.substr((d+"").length),p.charAt(1)==="="&&(p=zi(d,p)+x),g=parseFloat(p),b=p.substr((g+"").length),u=Di.lastIndex-b.length,b||(b=b||nr.units[r]||x,u===i.length&&(i+=b,s.e+=b)),x!==b&&(d=Mn(e,r,m,b)||0),s._pt={_next:s._pt,p:_||l===1?_:",",s:d,c:g-d,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"?tT:eT;return yP.test(i)&&(s.e=0),this._pt=s,s},Vb={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},C2=function(e){var r=e.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(e=n,n=i,i=e),r[0]=Vb[n]||n,r[1]=Vb[i]||i,r.join(" ")},M2=function(e,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],hn[s]&&(u=1,s=s==="transformOrigin"?Ut:Ze),hi(n,s);u&&(hi(n,Ze),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Wo(n,1),o.uncache=1,rT(i)))}},Lu={clearProps:function(e,r,n,i,a){if(a.data!=="isFromStart"){var o=e._pt=new zt(e._pt,r,n,0,0,M2);return o.u=i,o.pr=-10,o.tween=a,e._props.push(n),1}}},Uo=[1,0,0,1,0,0],sT={},uT=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Zb=function(e){var r=mr(e,Ze);return uT(r)?Uo:r.substr(7).match(mP).map(et)},Jv=function(e,r){var n=e._gsap||ni(e),i=e.style,a=Zb(e),o,s,u,l;return n.svg&&e.getAttribute("transform")?(u=e.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"?Uo:a):(a===Uo&&!e.offsetParent&&e!==Ui&&!n.svg&&(u=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(l=1,s=e.nextElementSibling,Ui.appendChild(e)),a=Zb(e),u?i.display=u:hi(e,"display"),l&&(s?o.insertBefore(e,s):o?o.appendChild(e):Ui.removeChild(e))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},km=function(e,r,n,i,a,o){var s=e._gsap,u=a||Jv(e,!0),l=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,d=u[0],y=u[1],m=u[2],p=u[3],g=u[4],_=u[5],b=r.split(" "),x=parseFloat(b[0])||0,v=parseFloat(b[1])||0,w,S,A,P;n?u!==Uo&&(S=d*p-y*m)&&(A=x*(p/S)+v*(-m/S)+(m*_-p*g)/S,P=x*(-y/S)+v*(d/S)-(d*_-y*g)/S,x=A,v=P):(w=aT(e),x=w.x+(~b[0].indexOf("%")?x/100*w.width:x),v=w.y+(~(b[1]||b[0]).indexOf("%")?v/100*w.height:v)),i||i!==!1&&s.smooth?(g=x-l,_=v-c,s.xOffset=f+(g*d+_*m)-g,s.yOffset=h+(g*y+_*p)-_):s.xOffset=s.yOffset=0,s.xOrigin=x,s.yOrigin=v,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,e.style[Ut]="0px 0px",o&&(xn(o,s,"xOrigin",l,x),xn(o,s,"yOrigin",c,v),xn(o,s,"xOffset",f,s.xOffset),xn(o,s,"yOffset",h,s.yOffset)),e.setAttribute("data-svg-origin",x+" "+v)},Wo=function(e,r){var n=e._gsap||new HP(e);if("x"in n&&!r&&!n.uncache)return n;var i=e.style,a=n.scaleX<0,o="px",s="deg",u=getComputedStyle(e),l=mr(e,Ut)||"0",c,f,h,d,y,m,p,g,_,b,x,v,w,S,A,P,M,T,E,C,I,k,j,$,N,B,R,L,q,U,X,V;return c=f=h=m=p=g=_=b=x=0,d=y=1,n.svg=!!(e.getCTM&&oT(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[Ze]=(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[Ze]!=="none"?u[Ze]:"")),i.scale=i.rotate=i.translate="none"),S=Jv(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),l=n.xOrigin-N.x+"px "+(n.yOrigin-N.y)+"px",$=""):$=!r&&e.getAttribute("data-svg-origin"),km(e,$||l,!!$||n.originIsAbsolute,n.smooth!==!1,S)),v=n.xOrigin||0,w=n.yOrigin||0,S!==Uo&&(T=S[0],E=S[1],C=S[2],I=S[3],c=k=S[4],f=j=S[5],S.length===6?(d=Math.sqrt(T*T+E*E),y=Math.sqrt(I*I+C*C),m=T||E?Ci(E,T)*Kn:0,_=C||I?Ci(C,I)*Kn+m:0,_&&(y*=Math.abs(Math.cos(_*Wi))),n.svg&&(c-=v-(v*T+w*C),f-=w-(v*E+w*I))):(V=S[6],U=S[7],R=S[8],L=S[9],q=S[10],X=S[11],c=S[12],f=S[13],h=S[14],A=Ci(V,q),p=A*Kn,A&&(P=Math.cos(-A),M=Math.sin(-A),$=k*P+R*M,N=j*P+L*M,B=V*P+q*M,R=k*-M+R*P,L=j*-M+L*P,q=V*-M+q*P,X=U*-M+X*P,k=$,j=N,V=B),A=Ci(-C,q),g=A*Kn,A&&(P=Math.cos(-A),M=Math.sin(-A),$=T*P-R*M,N=E*P-L*M,B=C*P-q*M,X=I*M+X*P,T=$,E=N,C=B),A=Ci(E,T),m=A*Kn,A&&(P=Math.cos(A),M=Math.sin(A),$=T*P+E*M,N=k*P+j*M,E=E*P-T*M,j=j*P-k*M,T=$,k=N),p&&Math.abs(p)+Math.abs(m)>359.9&&(p=m=0,g=180-g),d=et(Math.sqrt(T*T+E*E+C*C)),y=et(Math.sqrt(j*j+V*V)),A=Ci(k,j),_=Math.abs(A)>2e-4?A*Kn:0,x=X?1/(X<0?-X:X):0),n.svg&&($=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!uT(mr(e,Ze)),$&&e.setAttribute("transform",$))),Math.abs(_)>90&&Math.abs(_)<270&&(a?(d*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,_+=_<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=et(d),n.scaleY=et(y),n.rotation=et(m)+s,n.rotationX=et(p)+s,n.rotationY=et(g)+s,n.skewX=_+s,n.skewY=b+s,n.transformPerspective=x+o,(n.zOrigin=parseFloat(l.split(" ")[2])||!r&&n.zOrigin||0)&&(i[Ut]=qu(l)),n.xOffset=n.yOffset=0,n.force3D=nr.force3D,n.renderTransform=n.svg?j2:iT?lT:k2,n.uncache=0,n},qu=function(e){return(e=e.split(" "))[0]+" "+e[1]},$c=function(e,r,n){var i=Ct(r);return et(parseFloat(r)+parseFloat(Mn(e,"x",n+"px",i)))+i},k2=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,lT(e,r)},Un="0deg",Va="0px",Wn=") ",lT=function(e,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,d=n.skewY,y=n.scaleX,m=n.scaleY,p=n.transformPerspective,g=n.force3D,_=n.target,b=n.zOrigin,x="",v=g==="auto"&&e&&e!==1||g===!0;if(b&&(f!==Un||c!==Un)){var w=parseFloat(c)*Wi,S=Math.sin(w),A=Math.cos(w),P;w=parseFloat(f)*Wi,P=Math.cos(w),o=$c(_,o,S*P*-b),s=$c(_,s,-Math.sin(w)*-b),u=$c(_,u,A*P*-b+b)}p!==Va&&(x+="perspective("+p+Wn),(i||a)&&(x+="translate("+i+"%, "+a+"%) "),(v||o!==Va||s!==Va||u!==Va)&&(x+=u!==Va||v?"translate3d("+o+", "+s+", "+u+") ":"translate("+o+", "+s+Wn),l!==Un&&(x+="rotate("+l+Wn),c!==Un&&(x+="rotateY("+c+Wn),f!==Un&&(x+="rotateX("+f+Wn),(h!==Un||d!==Un)&&(x+="skew("+h+", "+d+Wn),(y!==1||m!==1)&&(x+="scale("+y+", "+m+Wn),_.style[Ze]=x||"translate(0, 0)"},j2=function(e,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,d=n.target,y=n.xOrigin,m=n.yOrigin,p=n.xOffset,g=n.yOffset,_=n.forceCSS,b=parseFloat(o),x=parseFloat(s),v,w,S,A,P;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=Wi,l*=Wi,v=Math.cos(u)*f,w=Math.sin(u)*f,S=Math.sin(u-l)*-h,A=Math.cos(u-l)*h,l&&(c*=Wi,P=Math.tan(l-c),P=Math.sqrt(1+P*P),S*=P,A*=P,c&&(P=Math.tan(c),P=Math.sqrt(1+P*P),v*=P,w*=P)),v=et(v),w=et(w),S=et(S),A=et(A)):(v=f,A=h,w=S=0),(b&&!~(o+"").indexOf("px")||x&&!~(s+"").indexOf("px"))&&(b=Mn(d,"x",o,"px"),x=Mn(d,"y",s,"px")),(y||m||p||g)&&(b=et(b+y-(y*v+m*S)+p),x=et(x+m-(y*w+m*A)+g)),(i||a)&&(P=d.getBBox(),b=et(b+i/100*P.width),x=et(x+a/100*P.height)),P="matrix("+v+","+w+","+S+","+A+","+b+","+x+")",d.setAttribute("transform",P),_&&(d.style[Ze]=P)},I2=function(e,r,n,i,a){var o=360,s=yt(a),u=parseFloat(a)*(s&&~a.indexOf("rad")?Kn: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*Hb)%o-~~(l/o)*o:f==="ccw"&&l>0&&(l=(l-o*Hb)%o-~~(l/o)*o)),e._pt=h=new zt(e._pt,r,n,i,l,y2),h.e=c,h.u="deg",e._props.push(n),h},Jb=function(e,r){for(var n in r)e[n]=r[n];return e},R2=function(e,r,n){var i=Jb({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,u,l,c,f,h,d,y;i.svg?(l=n.getAttribute("transform"),n.setAttribute("transform",""),o[Ze]=r,s=Wo(n,1),hi(n,Ze),n.setAttribute("transform",l)):(l=getComputedStyle(n)[Ze],o[Ze]=r,s=Wo(n,1),o[Ze]=l);for(u in hn)l=i[u],c=s[u],l!==c&&a.indexOf(u)<0&&(d=Ct(l),y=Ct(c),f=d!==y?Mn(n,u,l,y):parseFloat(l),h=parseFloat(c),e._pt=new zt(e._pt,s,u,f,h-f,Em),e._pt.u=y||0,e._props.push(u));Jb(s,i)};Ft("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",a="Left",o=(e<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return e<2?t+s:"border"+s+t});Lu[e>1?"border"+t:t]=function(s,u,l,c,f){var h,d;if(arguments.length<4)return h=o.map(function(y){return Qr(s,y,l)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(c+"").split(" "),d={},o.forEach(function(y,m){return d[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(u,d,f)}});var cT={name:"css",register:Mm,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,n,i,a){var o=this._props,s=e.style,u=n.vars.startAt,l,c,f,h,d,y,m,p,g,_,b,x,v,w,S,A;Yv||Mm(),this.styles=this.styles||nT(e),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(Jt[m]&&GP(m,r,n,i,e,a)))){if(d=typeof c,y=Lu[m],d==="function"&&(c=c.call(n,i,e,a),d=typeof c),d==="string"&&~c.indexOf("random(")&&(c=Bo(c)),y)y(this,e,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(m)+"").trim(),c+="",En.lastIndex=0,En.test(l)||(p=Ct(l),g=Ct(c)),g?p!==g&&(l=Mn(e,m,l,g)+g):p&&(c+=p),this.add(s,"setProperty",l,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(d!=="undefined"){if(u&&m in u?(l=typeof u[m]=="function"?u[m].call(n,i,e,a):u[m],yt(l)&&~l.indexOf("random(")&&(l=Bo(l)),Ct(l+"")||l==="auto"||(l+=nr.units[m]||Ct(Qr(e,m))||""),(l+"").charAt(1)==="="&&(l=Qr(e,m))):l=Qr(e,m),h=parseFloat(l),_=d==="string"&&c.charAt(1)==="="&&c.substr(0,2),_&&(c=c.substr(2)),f=parseFloat(c),m in Nr&&(m==="autoAlpha"&&(h===1&&Qr(e,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),xn(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=Nr[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in hn,b){if(this.styles.save(m),d==="string"&&c.substring(0,6)==="var(--"&&(c=mr(e,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),x||(v=e._gsap,v.renderTransform&&!r.parseTransform||Wo(e,r.parseTransform),w=r.smoothOrigin!==!1&&v.smooth,x=this._pt=new zt(this._pt,s,Ze,0,1,v.renderTransform,v,0,-1),x.dep=1),m==="scale")this._pt=new zt(this._pt,v,"scaleY",v.scaleY,(_?zi(v.scaleY,_+f):f)-v.scaleY||0,Em),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(Ut,0,s[Ut]),c=C2(c),v.svg?km(e,c,0,w,0,this):(g=parseFloat(c.split(" ")[2])||0,g!==v.zOrigin&&xn(this,v,"zOrigin",v.zOrigin,g),xn(this,s,m,qu(l),qu(c)));continue}else if(m==="svgOrigin"){km(e,c,1,w,0,this);continue}else if(m in sT){I2(this,v,m,h,_?zi(h,_+c):c);continue}else if(m==="smoothOrigin"){xn(this,v,"smooth",v.smooth,c);continue}else if(m==="force3D"){v[m]=c;continue}else if(m==="transform"){R2(this,c,e);continue}}else m in s||(m=ua(m)||m);if(b||(f||f===0)&&(h||h===0)&&!m2.test(c)&&m in s)p=(l+"").substr((h+"").length),f||(f=0),g=Ct(c)||(m in nr.units?nr.units[m]:p),p!==g&&(h=Mn(e,m,l,g)),this._pt=new zt(this._pt,b?v:s,m,h,(_?zi(h,_+f):f)-h,!b&&(g==="px"||m==="zIndex")&&r.autoRound!==!1?g2:Em),this._pt.u=g||0,p!==g&&g!=="%"&&(this._pt.b=l,this._pt.r=v2);else if(m in s)E2.call(this,e,m,l,_?_+c:c);else if(m in e)this.add(e,m,l||e[m],_?_+c:c,i,a);else if(m!=="parseTransform"){qv(m,c);continue}b||(m in s?A.push(m,0,s[m]):typeof e[m]=="function"?A.push(m,2,e[m]()):A.push(m,1,l||e[m])),o.push(m)}}S&&JP(this)},render:function(e,r){if(r.tween._time||!Vv())for(var n=r._pt;n;)n.r(e,n.d),n=n._next;else r.styles.revert()},get:Qr,aliases:Nr,getSetter:function(e,r,n){var i=Nr[r];return i&&i.indexOf(",")<0&&(r=i),r in hn&&r!==Ut&&(e._gsap.x||Qr(e,"x"))?n&&Wb===n?r==="scale"?w2:x2:(Wb=n||{})&&(r==="scale"?S2:O2):e.style&&!Dv(e.style[r])?b2:~r.indexOf("-")?_2:Kv(e,r)},core:{_removeProperty:hi,_getMatrix:Jv}};Gt.utils.checkPrefix=ua;Gt.core.getStyleSaver=nT;(function(t,e,r,n){var i=Ft(t+","+e+","+r,function(a){hn[a]=1});Ft(e,function(a){nr.units[a]="deg",sT[a]=1}),Nr[i[13]]=t+","+e,Ft(n,function(a){var o=a.split(":");Nr[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");Ft("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){nr.units[t]="px"});Gt.registerPlugin(cT);var jm=Gt.registerPlugin(cT)||Gt;jm.core.Tween;const Za={IN_OUT:"power2.inOut",OUT:"power2.out"},Gs={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class fT{constructor(e,r={}){Wa(this,"timeline");Wa(this,"currentStage","");Wa(this,"callbacks");Wa(this,"durations");this.durations=e,this.callbacks=r,this.timeline=jm.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToBar",n),n+=e.seatsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=e.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=e.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=e.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToBar(e,r){const n=this.durations.seatsToBar/1e3;return e.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(e.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:Za.IN_OUT,stagger:Gs.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToBar")}},"seatsToBar"),this}animateAxesReveal(e,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([e.node(),r.node()],{opacity:1,duration:n,ease:Za.IN_OUT,stagger:Gs.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(e,r){const n=this.durations.barSlide/1e3;return this.timeline.to(e.nodes(),{x:r,duration:n,ease:Za.OUT,stagger:Gs.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(e,r,n=Gs.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return e.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"),d=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:d,ease:Za.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(e,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return e.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(e.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,u=s.getAttribute("data-category");if(!u)return;const l=n.get(u);l&&jm.to(s,{attr:{d:l},duration:a,ease:Za.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 e=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,e)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:e=>this.timeline.progress(e),seekToStage:e=>{const r=this.timeline.labels[e];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 $2(t,e){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:u,innerRadiusRatio:l}=e,c=i*l,f=t.reduce((E,C)=>E+C.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const d=r-n,y=r+n;for(let E=d;E<=y;E+=2.5){const C=E*Math.PI/180;for(let I=s;I>=o;I-=.1){const k=I*2,j=k*u,$=Math.floor((i-c)/j);for(let N=1;N<=Math.min($,10);N++){let B=0;for(let R=0;R<N;R++){const L=c+(R+.5)*j,q=k*u/L,U=Math.floor(C/q);B+=U}if(B>=f){const R=f/B,L=(I-o)/(s-o),q=(B-f)/f,U=q<.15?1:q<.3?.7:q<.5?.4:.1,X=1-Math.abs(E-r)/n,V=U*.5+L*.3+R*.15+X*.05;V>h.score&&(h={seatSize:I,arcAngle:E,rings:N,score:V})}}}}const m=h.seatSize,p=h.arcAngle,g=p*Math.PI/180,_=m*2,b=_*u,x=Math.floor((i-c)/b),v=[],w=-g/2-Math.PI/2,S=[];let A=0,P=[];for(let E=1;E<=x;E++){let C=0;const I=[];for(let k=0;k<E;k++){const j=c+(k+.5)*b,$=_*u/j,N=Math.floor(g/$);I.push(N),C+=N}if(C>=f){A=E,P=I;break}}if(A>0)S.push(...P);else for(let E=0;E<x;E++){const C=c+(E+.5)*b,I=_*u/C,k=Math.floor(g/I);S.push(k)}for(let E=0;E<S.length;E++){const C=c+(E+.5)*b,I=S[E]??0;if(I>0){const k=g/I;for(let j=0;j<I;j++){const $=w+(j+.5)*k,N=Math.cos($)*C,B=Math.sin($)*C;v.push({ring:E,index:j,angle:$,x:N,y:B})}}}v.sort((E,C)=>{const I=E.angle-C.angle;return Math.abs(I)>.001?I:E.ring-C.ring});const M=[];let T=0;return t.forEach((E,C)=>{const I=Math.min(E.seats,v.length-T);for(let k=0;k<I&&T<v.length;k++){const j=v[T++];j&&M.push({x:j.x,y:j.y,category:E.name,categoryIndex:C,seatIndex:k,ring:j.ring,angle:j.angle,radius:m})}}),{arcAngle:p,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:M,totalSeats:f}}function D2(t,e,r){const n=e<=r?1:r/e;return t.filter(i=>i.value>0).map(i=>{const a=e<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}const Wt={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},bo=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],Lt={greyHatch:{background:Wt.neoGrey[200],lines:Wt.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function N2(t,e){const r=t.append("pattern").attr("id",`${e}-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",Lt.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",Lt.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",Lt.greyHatch.lines).attr("stroke-width",.5)}function L2(t,e){const r=t.append("pattern").attr("id",`${e}-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",Lt.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",Lt.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",Lt.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",Lt.dataMissingHatch.lines).attr("stroke-width",.5)}function q2(t,e){const r=t.append("pattern").attr("id",`${e}-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",Lt.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",Lt.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",Lt.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",Lt.noLstHatch.lines).attr("stroke-width",.5)}function Dc(t,e){let r=t.select("defs");r.empty()&&(r=t.append("defs")),N2(r,e),L2(r,e),q2(r,e)}function B2(t,e){if(t.startsWith("url(#")&&t.endsWith(")")){const r=t.slice(5,-1);return`url(#${e}-${r})`}return t}function hT(t){return t.includes("greyHatchPattern")?Lt.greyHatch.lines:t.includes("dataMissingHatchPattern")?Lt.dataMissingHatch.lines:t.includes("noLstHatchPattern")?Lt.noLstHatch.lines:t}function Im(t,e,r,n){const{xScale:i,yScale:a,addClasses:o=!0}=n,s=Zn().x(c=>i(new Date(c.data.timestamp))).y0(c=>a(c[0])).y1(c=>a(c[1])).curve(fm.alpha(.5)),u=Pv().x(c=>i(new Date(c.data.timestamp))).y(c=>a(c[1])).curve(fm.alpha(.5));let l=t.select(".areas");l.empty()&&(l=t.append("g").attr("class","areas")),e.forEach((c,f)=>{var m;const h=r[f];if(!h)return;const d=((m=h.parliamentMapping)==null?void 0:m.isSpecialCategory)??!1,y=hT(h.color);if(d){const p=l.append("path").datum(c).attr("fill","none").attr("stroke",y).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",u);o&&p.attr("class",`area area-${h.dataKey}`)}else{const p=l.append("path").datum(c).attr("fill",h.color).attr("fill-opacity",h.fillOpacity??.7).attr("stroke",y).attr("stroke-width",h.strokeWidth??1.5).attr("d",s);o&&p.attr("class",`area area-${h.dataKey}`)}})}function F2(t,e){var n;const r=[];for(const i of t){let a=0;for(const o of e){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 Lr(t){return t.replace(/[^a-zA-Z0-9-_]/g,"-")}function dT(t,e,r,n){const{centerX:i,centerY:a,addClasses:o=!0}=n;let s=t.select(".parliament");s.empty()&&(s=t.append("g").attr("class","parliament")),e.seats.forEach(u=>{const l=r.find(f=>f.label===u.category);if(!l)return;const c=s.append("circle").attr("cx",i+u.x).attr("cy",a+u.y).attr("r",u.radius).attr("fill",l.color).attr("stroke",l.color).attr("stroke-width",.5);o&&c.attr("class",`seat seat-${Lr(u.category)}`)})}function z2(t,e,r,n,i,a,o=!1){var f;const s=new Map;let u=i;if(e.length>0&&((f=e[0])==null?void 0:f.timestamp)!==void 0){const h=e[0].timestamp;u=r(new Date(h))}const l=new Map;for(const h of t.seats)l.has(h.category)||l.set(h.category,[]),l.get(h.category).push(h);const c=new Map;for(const h of e)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 t.seats){const d=c.get(h.category);if(!d){s.set(h,{x:u,y:a/2});continue}const y=n(d.y0),m=n(d.y1);let p;if(o){const g=l.get(h.category)??[],_=h.seatIndex,b=g.length;if(b===1)p=(y+m)/2;else{const x=_/(b-1);p=y+(m-y)*x}}else p=m;s.set(h,{x:u,y:p})}return s}function U2(t,e,r){var o;if(t.length===0)return[];const n=t[t.length-1],i=[];let a=0;for(const s of e){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 W2(t){const e=t;return{seatsToBar:e*.3,barSlideToTimeline:e*.25,axesAndBarsGrow:e*.25,barsToArea:e*.2}}let wn=null;Qt.prototype.transition=Rv;const H2=({containerRef:t,data:e,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:u=!0,showAxes:l=!0,formatDate:c,formatValue:f,markers:h=[],arcAngle:d=200,parliamentRadius:y=200,seatSize:m=4.5,animationDuration:p=900,onMorphComplete:g,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:v,hoveredCategory:w,maxSeats:S=2e3,parliamentTimestamp:A})=>{const[P,M]=O.useState("area"),[T,E]=O.useState(!1),[C,I]=O.useState(null),k=O.useRef(null),j=O.useRef(n),$=O.useRef(!0),N=O.useRef(!1),B=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),R=O.useRef(void 0),L=O.useRef(g),q=O.useRef(_),U=O.useRef(b),X=O.useRef(x),V=O.useRef(v);O.useEffect(()=>{L.current=g,q.current=_,U.current=b,X.current=x,V.current=v},[g,_,b,x,v]),O.useEffect(()=>{if(w!==C&&I(w??null),t.current&&P==="parliament")if(w){const H=r.find(K=>K.dataKey===w),F=(H==null?void 0:H.label)??null;xo(t.current,F)}else xo(t.current,null)},[w,P,r]);const te=i-o.left-o.right,re=a-o.top-o.bottom;return O.useEffect(()=>{var Bn;if(!t.current||e.length===0||r.length===0||(R.current&&(R.current(),R.current=void 0),N.current))return;const H=Qt(t.current),F=n!==j.current;$.current?(H.selectAll("*").remove(),Dc(H,B.current),$.current=!1):F||(H.selectAll("*").remove(),Dc(H,B.current));const K=e[e.length-1],Q=r.reduce((Y,le)=>Y+(K.values[le.dataKey]||0),0),D=e.map(Y=>{const le={timestamp:Y.timestamp};for(const ve of r)le[ve.dataKey]=Y.values[ve.dataKey]||0;return le}),se=r.map(Y=>Y.dataKey),W=Cv().keys(se),ue=W(D),de=e.map(Y=>Y.timestamp),ie=s?s[0]:Math.min(...de),fe=s?s[1]:Math.max(...de),we=bv().domain([new Date(ie),new Date(fe)]).range([0,te]),ae=D.filter(Y=>Y.timestamp>=ie&&Y.timestamp<=fe),he=W(ae),Ie=he.length>0?Math.max(...he[he.length-1].map(Y=>Y[1]??0)):0,Fe=Zi().domain([0,Ie*1.1]).range([re,0]).nice(),Ye=r.map(Y=>({...Y,color:B2(Y.color,B.current)})),gt=Ye.map(Y=>({dataKey:Y.dataKey,label:Y.label,color:Y.color,value:K.values[Y.dataKey]||0})),St=D2(gt,Q,S).reverse(),pt=$2(St,{arcAngle:d,radius:y,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});k.current=pt;const qn=U2(D,r),Pi=z2(pt,qn,we,Fe,te,re);if(F&&!N.current){N.current=!0,E(!0),(Bn=q.current)==null||Bn.call(q,!0);let Y=H.select("g[transform]");if(Y.empty()&&(Y=H.select("g")),Y.empty()){H.selectAll("*").remove(),Dc(H,B.current),Qb(H,n==="parliament"?"parliament":"area",ue,Ye,pt,we,Fe,te,re,o,u,l,c,f),E(!1),M(n==="parliament"?"parliament":"area"),j.current=n;return}const le=setTimeout(()=>{N.current=!1,E(!1),j.current=n},p*3);G2(H,n,ue,Ye,pt,Pi,we,Fe,te,re,o,p,()=>{var ve,Ae;clearTimeout(le),N.current=!1,E(!1),M(n==="parliament"?"parliament":"area"),(ve=q.current)==null||ve.call(q,!1),(Ae=L.current)==null||Ae.call(L),j.current=n,n==="parliament"&&t.current&&V.current&&(R.current=e0(t.current,Ye,e,C,I,V.current))},l,c,f,U.current,X.current,A)}else j.current=n,Qb(H,n==="parliament"?"parliament":"area",ue,Ye,pt,we,Fe,te,re,o,u,l,c,f),M(n==="parliament"?"parliament":"area"),n==="parliament"&&t.current&&V.current&&(R.current=e0(t.current,Ye,e,C,I,V.current));return()=>{R.current&&(R.current(),R.current=void 0)}},[n]),{isMorphing:T,currentMode:P,hoveredCategory:C}};function Qb(t,e,r,n,i,a,o,s,u,l,c,f,h,d){const y=t.append("g").attr("class","main-chart-group").attr("transform",`translate(${l.left},${l.top})`);if(c&&e!=="parliament"&&(y.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(ko(a).ticks(6).tickSize(u).tickFormat(()=>"")),y.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(jo(o).ticks(5).tickSize(-s).tickFormat(()=>""))),e==="area"&&Im(y,r,n,{xScale:a,yScale:o,addClasses:!0}),e==="parliament"){const m=s/2,p=u-i.radius*.3;dT(y,i,n,{centerX:m,centerY:p,addClasses:!0})}if(f&&e!=="parliament"){const m=ko(a).ticks(6);h&&m.tickFormat(g=>h(+g)),y.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).call(m).selectAll("text").attr("font-size",11);const p=jo(o).ticks(5);d&&p.tickFormat(g=>d(+g)),y.append("g").attr("class","axis axis-y").call(p).selectAll("text").attr("font-size",11)}}function G2(t,e,r,n,i,a,o,s,u,l,c,f,h,d=!0,y,m,p,g,_){const b=t.select(".main-chart-group");e==="stacked-area"||e==="area"?K2(b,r,n,i,a,o,s,u,l,f,h,d,y,m,p,g,_):X2(b,r,n,i,a,o,s,u,l,f,h,d,y,m,p,g,_)}function _o(t,e,r,n,i,a,o,s){const u=t[a];if(!u)return"";const l=u.find(w=>w.data.timestamp===o);if(!l)return"";const c=l.data,f=e[a];if(!f)return"";const h=f.dataKey,d=c[h];if(!d||d<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,p=y.width,g=l[0],_=l[1],b=s?i:n(g),x=s?i:n(_),v=[];return v.push(`M ${m} ${b}`),v.push(`L ${m} ${x}`),v.push(`L ${m+p} ${x}`),v.push(`L ${m+p} ${b}`),v.push("Z"),v.join(" ")}function K2(t,e,r,n,i,a,o,s,u,l,c,f=!0,h,d,y,m,p){const g=t.selectAll(".seat");if(g.size()===0){Im(t,e,r,{xScale:a,yScale:o,addClasses:!0}),c();return}const _=W2(l);wn&&(wn.destroy(),wn=null);const b=ne=>ne<.3?"seatsToBar":ne<.425?"axesReveal":ne<.55?"barSlide":ne<.8?"barsGrow":"barsToArea",x=new fT({seatsToBar:_.seatsToBar,axesReveal:_.barSlideToTimeline*.3,barSlide:_.barSlideToTimeline*.7,barsGrow:_.axesAndBarsGrow,barsToArea:_.barsToArea},{onStageComplete:ne=>{},onProgress:ne=>{if(m){const Se=b(ne);m(ne,Se)}},onComplete:()=>{c()}});wn=x,y&&y(x.getControls().getTimeline());const v=e[0].map(ne=>ne.data),w=F2(v,r),S=v.map(ne=>ne.timestamp),A=p??Math.max(...S),P=new Map,M=[];S.forEach((ne,Se)=>{const Re=a(new Date(ne)),st=S[Se+1];if(st){const He=a(new Date(st))-Re;M.push(He)}});const T=M.length>0?M.reduce((ne,Se)=>ne+Se,0)/M.length:30;S.forEach((ne,Se)=>{const Re=a(new Date(ne)),st=S[Se+1],He=Se===S.length-1?T:a(new Date(st))-Re;P.set(ne,{x:Re,width:He})});const E=w.filter(ne=>ne.timestamp===A),C=P.get(A),k=g.nodes().map(ne=>parseFloat(ne.getAttribute("cx")||"0")),j=Math.max(...k),$=t.append("g").attr("class","morph-bar");E.sort((ne,Se)=>Se.y0-ne.y0);const N=$.selectAll(".bar-segment").data(E).enter().append("rect").attr("class",ne=>`bar-segment category-${Lr(ne.dataKey)}`).attr("x",j-C.width/2).attr("y",ne=>o(ne.y1)).attr("width",C.width).attr("height",ne=>o(ne.y0)-o(ne.y1)).attr("fill",ne=>ne.color).attr("opacity",0);window.globalOrchestrator=x;const B=x.getControls().getTimeline(),R=_.seatsToBar/1e3,L=[];E.forEach((ne,Se)=>{const Re=g.filter(`.seat-${Lr(ne.dataKey)}`),st=Re.size();if(st===0)return;const kt=o(ne.y1),He=o(ne.y0)-o(ne.y1),Kr=Re.nodes(),jr=1.5,Ns=Math.max(st-1,0)*jr,Ls=kt+(He-Ns)/2;Kr.forEach((Ti,mc)=>{const qs=parseFloat(Ti.getAttribute("cx")||"0"),Ua=parseFloat(Ti.getAttribute("cy")||"0"),Bs=parseFloat(Ti.getAttribute("r")||"4"),yc=Ls+mc*jr;L.push({element:Ti,startX:qs,startY:Ua,startRadius:Bs,category:ne.dataKey,segmentIndex:Se,endY:yc})})});const q=L.map(ne=>ne.startX),U=Math.min(...q),V=Math.max(...q)-U,te=Math.min(7,Math.max(3,Math.floor(L.length/15))),re=V/te,H=[];for(let ne=0;ne<te;ne++){const Se=U+ne*re,Re=Se+re,st=ne===te-1,kt=L.filter(He=>He.startX>=Se&&(st?He.startX<=Re:He.startX<Re));if(kt.length>0){const He=kt.reduce((Kr,jr)=>Kr+jr.startX,0)/kt.length;H.push({index:ne,seats:kt,avgX:He})}}H.sort((ne,Se)=>Se.avgX-ne.avgX);const F=.5,K=.7,Q=R*.95,D=H.length*F*(1-K)+F*K,se=Math.min(1,Q/D),W=F*se,ue=W*(1-K);H.forEach((ne,Se)=>{const Re=Se*ue,st=[...ne.seats].sort((He,Kr)=>Kr.startY-He.startY),kt=W/Math.max(st.length,4);st.forEach((He,Kr)=>{const jr=Re+Kr*kt,Ns=j,Ls=He.endY,Ti=n.radius,mc=Ns-He.startX,qs=W*.8;B.to(He.element,{attr:{cx:Ns,cy:Ls},duration:qs,ease:"power2.out",onUpdate:function(){const Ua=this.progress(),Bs=this.targets()[0],yc=He.startX+mc*Ua,cM=Math.sin(Ua*Math.PI)*Ti*.3,fM=He.startY+(Ls-He.startY)*Ua-cM;Bs.setAttribute("cx",yc.toString()),Bs.setAttribute("cy",fM.toString())}},`seatsToBar+=${jr}`),B.to(He.element,{attr:{r:3},opacity:.5,duration:qs*.3,ease:"power2.inOut"},`seatsToBar+=${jr}`)})});const de=ue*(H.length-1)+W;B.to(N.nodes(),{opacity:1,duration:R*.5,ease:"power2.inOut"},`seatsToBar+=${de*.5}`),B.to(g.nodes(),{opacity:0,duration:.01},`seatsToBar+=${de}`);const ie=_.barSlideToTimeline/1e3;let fe=null,we=null;if(f){const ne=ko(a).ticks(6);h&&ne.tickFormat(Re=>h(Re.getTime())),fe=t.append("g").attr("class","x-axis").attr("transform",`translate(0,${u})`).attr("opacity",0),fe.call(ne).selectAll("text").attr("font-size",11);const Se=jo(o).ticks(5);d&&Se.tickFormat(Re=>d(Re)),we=t.append("g").attr("class","y-axis").attr("opacity",0),we.call(Se).selectAll("text").attr("font-size",11)}const ae=C.x,he=10,Ie=he,Fe=s-C.width-he;let Ye=ae;Ye<Ie?Ye=Ie:Ye>Fe&&(Ye=Fe);const gt=j,pt=Ye+C.width/2-gt;B.to(N.nodes(),{x:Ye,duration:ie,ease:"power2.out"},"barSlide"),B.to(g.nodes(),{attr:{cx:(ne,Se)=>parseFloat(Se.getAttribute("cx")||"0")+pt},duration:ie,ease:"power2.out"},"barSlide");const qn=Zn().x(ne=>a(ne.data.timestamp)).y0(ne=>o(ne[0])).y1(ne=>o(ne[1])).curve(nP),Pi=new Map;e.forEach((ne,Se)=>{const Re=r[Se];if(Re){const st=qn(ne)||"";Pi.set(Re.dataKey,st)}});const Bn=R,le=Bn+ie;f&&fe&&we&&B.to([fe.node(),we.node()],{opacity:1,duration:.6,ease:"power2.inOut"},Bn);const ve=_.axesAndBarsGrow/1e3,Ae=_.barsToArea/1e3,ze=t.append("g").attr("class","histogram-paths");S.forEach(ne=>{const Se=P.get(ne);Se&&r.forEach((Re,st)=>{const kt=_o(e,r,P,o,u,st,ne,!0),He=_o(e,r,P,o,u,st,ne,!1);!kt||!He||ze.append("path").attr("class",`histogram-path category-${Lr(Re.dataKey)}`).attr("d",kt).attr("fill",Re.color).attr("stroke",Re.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",Re.dataKey).attr("data-timestamp",ne).attr("data-x-position",Se.x).attr("data-full-height-path",He)})});const be=ze.selectAll(".histogram-path");B.to(be.nodes(),{opacity:1,duration:.4,ease:"power2.inOut"},"barSlide");const bt=C.x+C.width/2;be.each(function(){var jr;const ne=this.getAttribute("data-full-height-path");if(!ne)return;const Se=parseFloat(this.getAttribute("data-x-position")||"0"),Re=parseFloat(this.getAttribute("data-timestamp")||"0"),st=((jr=P.get(Re))==null?void 0:jr.width)||0,kt=Se+st/2,Kr=Math.abs(kt-bt)*8e-4;B.to(this,{attr:{d:ne},duration:ve,ease:"power2.out"},le+Kr)});const Dt=le+ve,kr=S[S.length-1],zn=a(new Date(kr))+T,$s=a.invert(zn).getTime(),pc=e.map(ne=>{const Se=ne[ne.length-1],Re={...Se,data:{...Se.data,timestamp:$s}};return[...ne,Re]});Im(t,pc,r,{xScale:a,yScale:o,addClasses:!0});const Ds=t.selectAll(".area");Ds.attr("opacity",0),B.to(be.nodes(),{opacity:0,duration:Ae,ease:"power2.inOut"},Dt),B.to(Ds.nodes(),{opacity:1,duration:Ae,ease:"power2.inOut"},Dt);const Lg=c;x.getControls().getTimeline().eventCallback("onComplete",()=>{t.selectAll(".morph-bar").remove(),t.selectAll(".histogram-paths").remove(),f&&(fe&&fe.attr("opacity",1),we&&we.attr("opacity",1)),Lg()}),x.play()}function X2(t,e,r,n,i,a,o,s,u,l,c,f=!0,h,d,y,m,p){const g=t.selectAll(".area");if(g.size()===0){Y2(t,r,n,s,u),c();return}const _={areaToBar:l*.2,barsShrink:l*.25,barSlide:l*.175,axesHide:l*.025,barToSeats:l*.3};wn&&(wn.destroy(),wn=null);const b=Y=>Y<.2?"areaToBar":Y<.45?"barsShrink":Y<.625?"barSlide":Y<.65?"axesHide":"barToSeats",x=new fT({seatsToBar:_.barToSeats,axesReveal:_.axesHide,barSlide:_.barSlide,barsGrow:_.barsShrink,barsToArea:_.areaToBar},{onStageComplete:Y=>{},onProgress:Y=>{if(m){const le=b(Y);m(Y,le)}},onComplete:()=>{c()}});wn=x,y&&y(x.getControls().getTimeline());const w=e[0].map(Y=>Y.data).map(Y=>Y.timestamp),S=p??Math.max(...w),A=new Map,P=[];w.forEach((Y,le)=>{const ve=a(new Date(Y)),Ae=w[le+1];if(Ae){const be=a(new Date(Ae))-ve;P.push(be)}});const M=P.length>0?P.reduce((Y,le)=>Y+le,0)/P.length:30;w.forEach((Y,le)=>{const ve=a(new Date(Y)),Ae=w[le+1],be=le===w.length-1?M:a(new Date(Ae))-ve;A.set(Y,{x:ve,width:be})});const T=A.get(S),E=x.getControls().getTimeline(),C=_.areaToBar/1e3,I=t.append("g").attr("class","histogram-paths");w.forEach(Y=>{const le=A.get(Y);le&&r.forEach((ve,Ae)=>{const ze=_o(e,r,A,o,u,Ae,Y,!1);ze&&I.append("path").attr("class",`histogram-path category-${Lr(ve.dataKey)}`).attr("d",ze).attr("fill",ve.color).attr("stroke",ve.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",ve.dataKey).attr("data-timestamp",Y).attr("data-x-position",le.x)})});const k=I.selectAll(".histogram-path");E.to(g.nodes(),{opacity:0,duration:C,ease:"power2.inOut"},"areaToBar"),E.to(k.nodes(),{opacity:1,duration:C,ease:"power2.inOut"},"areaToBar");const j=_.barsShrink/1e3,$=C,N=T.x+T.width/2;k.each(function(){var Fn;const Y=parseFloat(this.getAttribute("data-timestamp")||"0");if(Y===S)return;const le=parseFloat(this.getAttribute("data-x-position")||"0"),ve=((Fn=A.get(Y))==null?void 0:Fn.width)||0,Ae=le+ve/2,be=Math.abs(Ae-N)*8e-4,bt=r.find(zn=>this.classList.contains(`category-${Lr(zn.dataKey)}`));if(!bt)return;const Dt=r.indexOf(bt),kr=_o(e,r,A,o,u,Dt,Y,!0);kr&&E.to(this,{attr:{d:kr},duration:j,ease:"power2.in"},$+be)});const B=_.barSlide/1e3,R=$+j,L=T.x+T.width/2;k.each(function(){var bt;const Y=parseFloat(this.getAttribute("data-timestamp")||"0"),le=((bt=A.get(Y))==null?void 0:bt.width)||0,ve=r.find(Dt=>this.classList.contains(`category-${Lr(Dt.dataKey)}`));if(!ve)return;const Ae=r.indexOf(ve),ze=new Map(A);ze.set(Y,{x:L-le/2,width:le});const be=_o(e,r,ze,o,u,Ae,Y,!0);be&&(E.to(this,{attr:{d:be},duration:B,ease:"power2.out"},R),this.setAttribute("data-x-position",(L-le/2).toString()))});const q=_.axesHide/1e3,U=R+B;if(f){const Y=t.select(".x-axis"),le=t.select(".y-axis");Y.empty()||E.to(Y.node(),{opacity:0,duration:q,ease:"power2.inOut"},U),le.empty()||E.to(le.node(),{opacity:0,duration:q,ease:"power2.inOut"},U)}const X=_.barToSeats/1e3,V=U+q,te=s/2,re=u-n.radius*.3,H=t.append("g").attr("class","parliament"),F=T.x+T.width/2,K=[];e.forEach((Y,le)=>{const ve=Y.find(ze=>ze.data.timestamp===S);if(!ve)return;const Ae=r[le];Ae&&K.push({category:Ae.label,dataKey:Ae.dataKey,color:Ae.color,y0:ve[0],y1:ve[1]})}),K.sort((Y,le)=>le.y0-Y.y0);const Q=new Map;K.forEach(Y=>{const le=n.seats.filter(kr=>kr.category===Y.category),ve=o(Y.y1),Ae=o(Y.y0)-o(Y.y1),ze=le.length,be=1.5,bt=Math.max(ze-1,0)*be,Dt=ve+(Ae-bt)/2;le.forEach((kr,Fn)=>{const zn=Dt+Fn*be;Q.set(kr,{x:F,y:zn})})}),n.seats.forEach(Y=>{const le=r.find(Dt=>Dt.label===Y.category);if(!le)return;const ve=Q.get(Y),Ae=ve?ve.x:te+Y.x,ze=ve?ve.y:re+Y.y,be=te+Y.x,bt=re+Y.y;H.append("circle").attr("cx",Ae).attr("cy",ze).attr("r",2).attr("fill",le.color).attr("stroke",le.color).attr("stroke-width",.5).attr("opacity",.5).attr("class",`seat seat-${Lr(Y.category)}`).attr("data-final-x",be).attr("data-final-y",bt).attr("data-final-r",Y.radius)});const D=H.selectAll(".seat");E.to(k.nodes(),{opacity:0,duration:X*.2,ease:"power2.inOut"},V);const W=D.nodes().map(Y=>{const le=parseFloat(Y.getAttribute("cx")||"0"),ve=parseFloat(Y.getAttribute("cy")||"0"),Ae=parseFloat(Y.getAttribute("data-final-x")||"0"),ze=parseFloat(Y.getAttribute("data-final-y")||"0"),be=parseFloat(Y.getAttribute("data-final-r")||"4");return{element:Y,startX:le,startY:ve,finalX:Ae,finalY:ze,finalR:be}}),ue=W.map(Y=>Y.startX),de=Math.min(...ue),ie=Math.max(...ue),fe=ie-de,we=Math.min(7,Math.max(3,Math.floor(W.length/15))),ae=fe/we,he=[];for(let Y=0;Y<we;Y++){const le=de+Y*ae,ve=le+ae,Ae=Y===we-1,ze=W.filter(be=>be.startX>=le&&(Ae?be.startX<=ve:be.startX<ve));if(ze.length>0){const be=ze.reduce((bt,Dt)=>bt+Dt.startX,0)/ze.length;he.push({index:Y,seats:ze,avgX:be})}}const Ie=.5,Fe=.7,Ye=X*.95,gt=he.length*Ie*(1-Fe)+Ie*Fe,St=Math.min(1,Ye/gt),pt=Ie*St,qn=pt*(1-Fe),Pi=(de+ie)/2;he.sort((Y,le)=>Math.abs(Y.avgX-Pi)-Math.abs(le.avgX-Pi)),he.forEach((Y,le)=>{const ve=le*qn,Ae=[...Y.seats].sort((be,bt)=>be.startY-bt.startY),ze=pt/Math.max(Ae.length,4);Ae.forEach((be,bt)=>{const Dt=ve+bt*ze,kr=be.finalX-be.startX,Fn=n.radius,zn=pt*.8;E.to(be.element,{attr:{cx:be.finalX,cy:be.finalY,r:be.finalR},opacity:1,duration:zn,ease:"power2.out",onUpdate:function(){const Rs=this.progress(),$s=this.targets()[0],pc=be.startX+kr*Rs,Ds=Math.sin(Rs*Math.PI)*Fn*.3,ne=be.startY+(be.finalY-be.startY)*Rs-Ds;$s.setAttribute("cx",pc.toString()),$s.setAttribute("cy",ne.toString())}},`barToSeats+=${V+Dt}`)})});const Bn=c;x.getControls().getTimeline().eventCallback("onComplete",()=>{t.selectAll(".areas").remove(),t.selectAll(".histogram-paths").remove(),Bn()}),x.play()}function Y2(t,e,r,n,i){const a=n/2,o=i-r.radius*.8;dT(t,r,e,{centerX:a,centerY:o,addClasses:!0})}function e0(t,e,r,n,i,a){const o=t.querySelectorAll(".seat");if(!o||o.length===0)return;const s=r[r.length-1];if(!s)return;const u=[];o.forEach(c=>{const f=c;f.style.cursor="pointer",f.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),o.forEach(c=>{const h=(c.getAttribute("class")||"").match(/seat-(.+)/);if(!h||!h[1])return;const d=h[1],y=e.find(p=>Lr(p.label)===d);if(!y)return;const m=()=>{if(y.label!==n){i(y.label);const p=Math.round(s.values[y.dataKey]||0),g=hT(y.color);a&&a({label:y.label,value:p,color:g}),xo(t,y.label)}};c.addEventListener("mouseenter",m),u.push({element:c,handler:m})});const l=()=>{i(null),a&&a(null),xo(t,null)};return t.addEventListener("mouseleave",l),n&&xo(t,n),()=>{u.forEach(({element:c,handler:f})=>{c.removeEventListener("mouseenter",f)}),t.removeEventListener("mouseleave",l),o.forEach(c=>{const f=c;f.style.cursor="",f.style.transition=""})}}function xo(t,e){const r=t.querySelectorAll(".seat"),n=e?Lr(e):null;r.forEach(i=>{const a=i,s=(i.getAttribute("class")||"").match(/seat-(.+)/);if(!s||!s[1])return;const u=s[1];n?u===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 pT=({data:t,categories:e,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:u=!0,formatDate:l,formatValue:c,markers:f=[],arcAngle:h=200,parliamentRadius:d=200,seatSize:y=4.5,animationDuration:m=900,onMorphComplete:p,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:x,hoveredCategory:v,maxSeats:w=500,showTooltip:S=!0,showTable:A=!1,showScaledIndicator:P=!0,parliamentTimestamp:M})=>{const T=O.useRef(null),[E,C]=O.useState(null),I=O.useCallback(L=>{C(L),x&&x(L)},[x]),{isMorphing:k,currentMode:j}=H2({containerRef:T,data:t,categories:e,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:u,formatDate:l,formatValue:c,markers:f,arcAngle:h,parliamentRadius:d,seatSize:y,animationDuration:m,onMorphComplete:p,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:I,hoveredCategory:v,maxSeats:w,parliamentTimestamp:M}),$=t[t.length-1],N=$?e.reduce((L,q)=>L+($.values[q.dataKey]||0),0):0,B=N>w,R=B?Math.round(N/w):1;return G.jsxs(ee.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[G.jsx("svg",{ref:T,width:n,height:i,style:{maxWidth:"100%",height:"auto"}}),S&&r==="parliament"&&G.jsxs(ee.Box,{sx:{position:"absolute",bottom:a.bottom+60,left:`calc(50% + ${(a.left-a.right)/2}px)`,transform:"translateX(-50%)",pointerEvents:"none",textAlign:"center",zIndex:10},children:[E&&G.jsxs(G.Fragment,{children:[G.jsx(ee.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block"},children:E.label}),G.jsxs(ee.Typography,{sx:{fontWeight:"bold",color:E.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)"},children:[E.value," ",E.value>1?"repos":"repo"]})]}),P&&B&&G.jsxs(ee.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:E?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[G.jsx(ee.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),G.jsxs(ee.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",R," repos"]})]})]}),k&&G.jsxs(ee.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: ",j," → ",r]})]})},mT=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:18,maxSeatSize:18},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:14,maxSeatSize:14},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:10,maxSeatSize:10},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:7,maxSeatSize:7},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:5.5,maxSeatSize:5.5},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:5,maxSeatSize:5}],Qv=({repositoryCount:t})=>{const e=mT.find(s=>t>=s.minRepos&&t<s.maxRepos);if(!e)return 180;if(e.minArc===e.maxArc)return e.minArc;const r=e.maxRepos-e.minRepos,i=(t-e.minRepos)/r,a=e.maxArc-e.minArc,o=e.minArc+a*i;return Math.round(o)},eg=({repositoryCount:t})=>{const e=mT.find(s=>t>=s.minRepos&&t<s.maxRepos);if(!e)return 5;if(e.minSeatSize===e.maxSeatSize)return e.minSeatSize;const r=e.maxRepos-e.minRepos,i=(t-e.minRepos)/r,a=e.maxSeatSize-e.minSeatSize,o=e.minSeatSize+a*i;return Math.round(o*10)/10},Ir={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(229, 231, 235, 0.5)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},_r={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:Ir.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${Ir.dimensions.height}px`,backgroundColor:Ir.colors.background,borderRadius:0,overflow:"hidden",border:`1px solid ${Ir.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${Ir.dimensions.eventWidth}px`,height:"100%",backgroundColor:Ir.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:Ir.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 ${Ir.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:Ir.colors.tooltipText,fontSize:"11px"}}},V2=()=>{var t,e;try{return((e=(t=globalThis.process)==null?void 0:t.env)==null?void 0:e.NODE_ENV)==="development"}catch{return!1}},Z2=({events:t,selectedRange:e,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{V2()&&t.length>1&&(t.every((B,R)=>R===0||B.timestamp>=t[R-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,u]=O.useState(!1),[l,c]=O.useState(null),[f,h]=O.useState({start:null,end:null}),[d,y]=O.useState({start:null,end:null}),[m,p]=O.useState(null),g=e??f,_=a??d,b=O.useMemo(()=>{var N;return t.length>0?((N=t[0])==null?void 0:N.timestamp)??0:0},[t]),x=O.useMemo(()=>{var N;return t.length>0?((N=t[t.length-1])==null?void 0:N.timestamp)??0:0},[t]),v=O.useMemo(()=>i&&_.start&&_.end?_.start:b,[i,_,b]),w=O.useMemo(()=>i&&_.start&&_.end?_.end:x,[i,_,x]),S=O.useMemo(()=>w-v,[w,v]),A=O.useCallback(N=>S===0?0:(N-v)/S*100,[v,S]),P=O.useCallback((N,B)=>{const R=N/B*100;return v+R/100*S},[v,S]),M=O.useCallback(N=>{e===void 0&&h(N),r==null||r(N)},[e,r]),T=O.useCallback(N=>{const B=N.currentTarget.getBoundingClientRect(),R=N.clientX-B.left,L=P(R,B.width);u(!0),c(L),M({start:L,end:L})},[P,M]),E=O.useCallback(N=>{if(!s||l===null)return;const B=N.currentTarget.getBoundingClientRect(),R=N.clientX-B.left,L=P(R,B.width);M({start:Math.min(l,L),end:Math.max(l,L)})},[s,l,P,M]),C=O.useCallback(()=>{const N=s;if(u(!1),N&&i&&g.start&&g.end&&g.start!==g.end){const B={start:g.start,end:g.end};a===void 0&&y(B),o==null||o(B)}},[s,i,g,a,o]),I=O.useCallback(N=>{if(N.preventDefault(),!n||!g.start||!g.end||S===0)return;const B=(g.start+g.end)/2,R=g.end-g.start,L=N.deltaY>0?1.1:.9,q=Math.max(R*L,S*.01),U=S*1.5,X=Math.min(q,U);let V=B-X/2,te=B+X/2;V<v&&(V=v,te=Math.min(v+X,w)),te>w&&(te=w,V=Math.max(w-X,v)),M({start:V,end:te})},[n,g,S,v,w,M]),k=O.useCallback(()=>!g.start||!g.end?[]:t.filter(N=>N.timestamp>=g.start&&N.timestamp<=g.end),[t,g]),j=O.useCallback(()=>{const N={start:b,end:x};a===void 0&&y({start:null,end:null}),o==null||o(N)},[b,x,a,o]),$=O.useCallback(()=>{i&&j()},[i,j]);return{isDragging:s,dragStart:l,internalSelectedRange:g,internalVisibleRange:_,hoveredEvent:m,minDate:v,maxDate:w,timeSpan:S,getPositionFromTimestamp:A,getTimestampFromPosition:P,handleMouseDown:T,handleMouseMove:E,handleMouseUp:C,handleWheel:I,handleDoubleClick:$,setHoveredEvent:p,getEventsInRange:k,resetZoom:j}},J2=t=>new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Q2=t=>new Date(t).toLocaleDateString("en-US",{month:"short",year:"numeric"}),eN=t=>{const e=t/864e5;return e>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):e>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})},tN=()=>{var t,e;try{return((e=(t=globalThis.process)==null?void 0:t.env)==null?void 0:e.NODE_ENV)==="development"}catch{return!1}},rN=t=>({header:{..._r.header,...t==null?void 0:t.header},title:{..._r.title,...t==null?void 0:t.title},instructions:{..._r.instructions,...t==null?void 0:t.instructions},monthLabelsContainer:{..._r.monthLabelsContainer,...t==null?void 0:t.monthLabelsContainer},monthLabel:{..._r.monthLabel,...t==null?void 0:t.monthLabel},timeline:{..._r.timeline,...t==null?void 0:t.timeline},event:{..._r.event,...t==null?void 0:t.event},selection:{..._r.selection,...t==null?void 0:t.selection},tooltip:{..._r.tooltip,...t==null?void 0:t.tooltip},tooltipEventName:{..._r.tooltipEventName,...t==null?void 0:t.tooltipEventName},tooltipDate:{..._r.tooltipDate,...t==null?void 0:t.tooltipDate}}),yT=({events:t,onSelectionChange:e,selectedRange:r,height:n=Ir.dimensions.height,formatDate:i=J2,formatMonthYear:a=Q2,showMonthLabels:o=!0,monthLabelCount:s=6,enableZoom:u=!0,showHeader:l=!0,title:c="Event Timeline Selector",zoomToSelection:f=!1,visibleRange:h,onVisibleRangeChange:d,timeRange:y,onTimeRangeChange:m,slotProps:p})=>{const g=y?{start:y[0],end:y[1]}:h,_=m?N=>{N.start!==null&&N.end!==null&&m([N.start,N.end])}:d;tN()&&t.length>500&&console.warn(`TimelineChart: Rendering ${t.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const b=O.useMemo(()=>rN(p),[p]),{isDragging:x,internalSelectedRange:v,hoveredEvent:w,minDate:S,timeSpan:A,getPositionFromTimestamp:P,handleMouseDown:M,handleMouseMove:T,handleMouseUp:E,handleWheel:C,handleDoubleClick:I,setHoveredEvent:k,getEventsInRange:j}=Z2({events:t,selectedRange:r,onSelectionChange:e,enableZoom:u,zoomToSelection:f,visibleRange:g,onVisibleRangeChange:_}),$=v.start&&v.end?`Selected: ${i(v.start)} - ${i(v.end)} (${j().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return G.jsxs(ee.Stack,{sx:{width:"100%"},children:[l&&G.jsxs(ee.Stack,{spacing:1,sx:{mb:3},...b.header,children:[G.jsx(ee.Typography,{variant:"h5",...b.title,children:c}),G.jsx(ee.Typography,{variant:"body2",...b.instructions,children:$})]}),o&&G.jsx(ee.Stack,{direction:"row",...b.monthLabelsContainer,children:Array.from({length:s},(N,B)=>{const R=S+A/(s-1)*B,L=eN(A);return G.jsx(ee.Typography,{variant:"caption",...b.monthLabel,children:L(R)},B)})}),G.jsxs(ee.Box,{...b.timeline,sx:{...b.timeline.sx,height:`${n}px`},children:[G.jsx(ee.Box,{sx:{position:"absolute",top:0,left:0,right:0,height:"100%"},children:t.map((N,B)=>{const R=P(N.timestamp);return G.jsx(ee.Box,{onMouseEnter:()=>k(N),onMouseLeave:()=>k(null),"aria-label":`Event: ${N.eventName} at ${i(N.timestamp)}`,...b.event,sx:{...b.event.sx,left:`${R}%`,transform:(w==null?void 0:w.timestamp)===N.timestamp?"scaleX(2)":"scaleX(1)"}},`${N.timestamp}-${B}`)})}),v.start&&v.end&&(!f||x)&&G.jsx(ee.Box,{...b.selection,sx:{...b.selection.sx,left:`${P(v.start)}%`,width:`${P(v.end)-P(v.start)}%`}}),G.jsx(ee.Box,{role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":l?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair"},onMouseDown:M,onMouseMove:T,onMouseUp:E,onMouseLeave:E,onWheel:C,onDoubleClick:I}),!l&&G.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:$}),w&&G.jsxs(ee.Box,{role:"tooltip","aria-live":"polite",...b.tooltip,sx:{...b.tooltip.sx,left:`${P(w.timestamp)}%`,transform:"translateX(-50%)"},children:[G.jsx(ee.Typography,{variant:"body2",...b.tooltipEventName,children:w.eventName}),G.jsx(ee.Typography,{variant:"caption",...b.tooltipDate,children:i(w.timestamp)})]})]})]})};class Es{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}Es.prototype.normal={};Es.prototype.property={};Es.prototype.space=void 0;function vT(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new Es(r,n,e)}function Ho(t){return t.toLowerCase()}class Kt{constructor(e,r){this.attribute=r,this.property=e}}Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let nN=0;const ge=wi(),rt=wi(),Rm=wi(),Z=wi(),Ue=wi(),Hi=wi(),Xt=wi();function wi(){return 2**++nN}const $m=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:rt,commaOrSpaceSeparated:Xt,commaSeparated:Hi,number:Z,overloadedBoolean:Rm,spaceSeparated:Ue},Symbol.toStringTag,{value:"Module"})),Nc=Object.keys($m);class tg extends Kt{constructor(e,r,n,i){let a=-1;if(super(e,r),t0(this,"space",i),typeof n=="number")for(;++a<Nc.length;){const o=Nc[a];t0(this,Nc[a],(n&$m[o])===$m[o])}}}tg.prototype.defined=!0;function t0(t,e,r){r&&(t[e]=r)}function Ia(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const a=new tg(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),e[n]=a,r[Ho(n)]=n,r[Ho(a.attribute)]=n}return new Es(e,r,t.space)}const gT=Ia({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Ue,ariaCurrent:null,ariaDescribedBy:Ue,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Ue,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Ue,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ue,ariaLevel:Z,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Ue,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Ue,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:rt,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function bT(t,e){return e in t?t[e]:e}function _T(t,e){return bT(t,e.toLowerCase())}const iN=Ia({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hi,acceptCharset:Ue,accessKey:Ue,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:Ue,autoFocus:ge,autoPlay:ge,blocking:Ue,capture:null,charSet:null,checked:ge,cite:null,className:Ue,cols:Z,colSpan:null,content:null,contentEditable:rt,controls:ge,controlsList:Ue,coords:Z|Hi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:Rm,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:Ue,height:Z,hidden:Rm,high:Z,href:null,hrefLang:null,htmlFor:Ue,httpEquiv:Ue,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:Ue,itemRef:Ue,itemScope:ge,itemType:Ue,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,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:ge,optimum:Z,pattern:null,ping:Ue,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:Ue,required:ge,reversed:ge,rows:Z,rowSpan:Z,sandbox:Ue,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:rt,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ue,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ge,disableRemotePlayback:ge,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:_T}),aN=Ia({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:Xt,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Ue,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Hi,g2:Hi,glyphName:Hi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Xt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ue,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xt,rev:Xt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xt,requiredFeatures:Xt,requiredFonts:Xt,requiredFormats:Xt,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Xt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xt,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bT}),xT=Ia({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),wT=Ia({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_T}),ST=Ia({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),oN=/[A-Z]/g,r0=/-[a-z]/g,sN=/^data[-\w.:]+$/i;function OT(t,e){const r=Ho(e);let n=e,i=Kt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&sN.test(e)){if(e.charAt(4)==="-"){const a=e.slice(5).replace(r0,lN);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=e.slice(4);if(!r0.test(a)){let o=a.replace(oN,uN);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=tg}return new i(n,e)}function uN(t){return"-"+t.toLowerCase()}function lN(t){return t.charAt(1).toUpperCase()}const AT=vT([gT,iN,xT,wT,ST],"html"),rg=vT([gT,aN,xT,wT,ST],"svg");function n0(t){const e=[],r=String(t||"");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)&&e.push(o),i=n+1,n=r.indexOf(",",i)}return e}function cN(t,e){const r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const i0=/[#.]/g;function fN(t,e){const r=t||"",n={};let i=0,a,o;for(;i<r.length;){i0.lastIndex=i;const s=i0.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||e||"div",properties:n,children:[]}}function a0(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function hN(t){return t.join(" ").trim()}function PT(t,e,r){const n=r?yN(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=fN(a,e);const l=u.tagName.toLowerCase(),c=n?n.get(l):void 0;if(u.tagName=c||l,dN(o))s.unshift(o);else for(const[f,h]of Object.entries(o))pN(t,u.properties,f,h)}for(const l of s)Dm(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function dN(t){if(t===null||typeof t!="object"||Array.isArray(t))return!0;if(typeof t.type!="string")return!1;const e=t,r=Object.keys(t);for(const n of r){const i=e[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 t&&Array.isArray(t.children))}function pN(t,e,r,n){const i=OT(t,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=a0(n):i.commaSeparated?a=n0(n):i.commaOrSpaceSeparated?a=a0(n0(n).join(" ")):a=o0(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?mN(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(o0(i,i.property,s));a=o}i.property==="className"&&Array.isArray(e.className)&&(a=e.className.concat(a)),e[i.property]=a}}function Dm(t,e){if(e!=null)if(typeof e=="number"||typeof e=="string")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const r of e)Dm(t,r);else if(typeof e=="object"&&"type"in e)e.type==="root"?Dm(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function o0(t,e,r){if(typeof r=="string"){if(t.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((t.boolean||t.overloadedBoolean)&&(r===""||Ho(r)===Ho(e)))return!0}return r}function mN(t){const e=[];for(const[r,n]of Object.entries(t))e.push([r,n].join(": "));return e.join("; ")}function yN(t){const e=new Map;for(const r of t)e.set(r.toLowerCase(),r);return e}const vN=["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"];PT(AT,"div");const Cs=PT(rg,"g",vN),TT=(t=Cs)=>t("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[t("rect",{x:0,y:0,width:8,height:8,fill:Wt.neoGrey[200]}),t("path",{d:"M0,2 L8,2",stroke:Wt.neoGrey[400],"stroke-width":.5}),t("path",{d:"M0,6 L8,6",stroke:Wt.neoGrey[400],"stroke-width":.5})]),ET=(t=Cs)=>t("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[t("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),t("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),t("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),t("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),CT=(t=Cs)=>t("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[t("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),t("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),t("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),t("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),De={greyHatch:{background:Wt.neoGrey[200],lines:Wt.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},gN=({categories:t,activeCategory:e,onCategoryHover:r})=>G.jsx(ee.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:G.jsxs(ee.Table,{"aria-label":"Repository 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(ee.TableRow,{children:[G.jsx(ee.TableCell,{}),G.jsx(ee.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),G.jsx(ee.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),G.jsx(ee.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),G.jsx("tbody",{children:t.map(n=>{const i=n.color==="url(#greyHatchPattern)"?De.greyHatch.lines:n.color==="url(#dataMissingHatchPattern)"?De.dataMissingHatch.lines:n.color==="url(#noLstHatchPattern)"?De.noLstHatch.lines:n.color;return G.jsxs(ee.TableRow,{onMouseEnter:()=>r(n.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:e===n.id?`${i}15`:"transparent","&:hover":{backgroundColor:`${i}15`}},children:[G.jsx(ee.TableCell,{align:"center",sx:{width:20},children:G.jsx(ee.Box,{sx:{width:12,height:12,backgroundColor:n.color==="url(#greyHatchPattern)"?De.greyHatch.background:n.color==="url(#dataMissingHatchPattern)"?De.dataMissingHatch.background:n.color==="url(#noLstHatchPattern)"?De.noLstHatch.background:n.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:e===n.id?"scale(1.2)":"scale(1)",...n.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
15
+ */var Kb,ai,Ia,Hv,Bi,Yb,Kv,TN=function(){return typeof window<"u"},Hn={},Ri=180/Math.PI,Na=Math.PI/180,Sa=Math.atan2,Xb=1e8,Yv=/([A-Z])/g,PN=/(left|right|width|margin|padding|x)/i,EN=/[\s,\(]\S/,yn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},My=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},CN=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},MN=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},kN=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},ZP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},JP=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},$N=function(t,r,n){return t.style[r]=n},jN=function(t,r,n){return t.style.setProperty(r,n)},RN=function(t,r,n){return t._gsap[r]=n},DN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},IN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},NN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},ne="transform",ar=ne+"Origin",LN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in Hn&&a){if(this.tfm=this.tfm||{},t!=="transform")t=yn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=Rn(i,s)}):this.tfm[t]=o.x?o[t]:Rn(i,t),t===ar&&(this.tfm.zOrigin=o.zOrigin);else return yn.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ne)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ar,r,"")),t=ne}(a||r)&&this.props.push(t,r,a[t])},QP=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},BN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(Yv,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=Kv(),(!a||!a.isStart)&&!n[ne]&&(QP(n),i.zOrigin&&n[ar]&&(n[ar]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},tE=function(t,r){var n={target:t,props:[],revert:BN,save:LN};return t._gsap||ur.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},eE,ky=function(t,r){var n=ai.createElementNS?ai.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ai.createElement(t);return n&&n.style?n:ai.createElement(t)},Br=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,to(r)||r,1)||""},Vb="O,Moz,ms,Ms,Webkit".split(","),to=function(t,r,n){var i=r||Bi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Vb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Vb[o]:"")+t},$y=function(){TN()&&window.document&&(Kb=window,ai=Kb.document,Ia=ai.documentElement,Bi=ky("div")||{style:{}},ky("div"),ne=to(ne),ar=ne+"Origin",Bi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",eE=!!to("perspective"),Kv=ur.core.reverting,Hv=1)},Zb=function(t){var r=t.ownerSVGElement,n=ky("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),Ia.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),Ia.removeChild(n),a},Jb=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},rE=function(t){var r,n;try{r=t.getBBox()}catch{r=Zb(t),n=1}return r&&(r.width||r.height)||n||(r=Zb(t)),r&&!r.width&&!r.x&&!r.y?{x:+Jb(t,["x","cx","x1"])||0,y:+Jb(t,["y","cy","y1"])||0,width:0,height:0}:r},nE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&rE(t))},ra=function(t,r){if(r){var n=t.style,i;r in Hn&&r!==ar&&(r=ne),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Yv,"-$1").toLowerCase())):n.removeAttribute(r)}},oi=function(t,r,n,i,a,o){var s=new ir(t._pt,r,n,0,1,o?JP:ZP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},Qb={deg:1,rad:1,turn:1},qN={grid:1,flex:1},di=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Bi.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,m,d,v;if(i===o||!a||Qb[i]||Qb[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),v=t.getCTM&&nE(t),(p||o==="%")&&(Hn[r]||~r.indexOf("adius")))return y=v?t.getBBox()[u?"width":"height"]:t[c],se(p?a/y*f:a/100*y);if(s[u?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===ai||!m.appendChild)&&(m=ai.body),d=m._gsap,d&&p&&d.width&&u&&d.time===_r.time&&!d.uncache)return se(a/d.width*f);if(p&&(r==="height"||r==="width")){var _=t.style[r];t.style[r]=f+i,y=t[c],_?t.style[r]=_:ra(t,r)}else(p||o==="%")&&!qN[Br(m,"display")]&&(s.position=Br(t,"position")),m===t&&(s.position="static"),m.appendChild(Bi),y=Bi[c],m.removeChild(Bi),s.position="absolute";return u&&p&&(d=Gi(m),d.time=_r.time,d.width=m[c]),se(h?y*a/f:y&&a?f/y*a:0)},Rn=function(t,r,n,i){var a;return Hv||$y(),r in yn&&r!=="transform"&&(r=yn[r],~r.indexOf(",")&&(r=r.split(",")[0])),Hn[r]&&r!=="transform"?(a=Bs(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Dl(Br(t,ar))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Rl[r]&&Rl[r](t,r,n)||Br(t,r)||bP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?di(t,r,a,n)+n:a},FN=function(t,r,n,i){if(!n||n==="none"){var a=to(r,t,1),o=a&&Br(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Br(t,"borderTopColor"))}var s=new ir(this._pt,t.style,r,0,1,YP),u=0,l=0,c,f,h,p,y,m,d,v,_,b,x,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Br(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=Br(t,r)||i,m?t.style[r]=m:ra(t,r)),c=[n,i],LP(c),n=c[0],i=c[1],h=n.match(Ca)||[],g=i.match(Ca)||[],g.length){for(;f=Ca.exec(i);)d=f[0],_=i.substring(u,f.index),y?y=(y+1)%5:(_.substr(-5)==="rgba("||_.substr(-5)==="hsla(")&&(y=1),d!==(m=h[l++]||"")&&(p=parseFloat(m)||0,x=m.substr((p+"").length),d.charAt(1)==="="&&(d=Da(p,d)+x),v=parseFloat(d),b=d.substr((v+"").length),u=Ca.lastIndex-b.length,b||(b=b||Sr.units[r]||x,u===i.length&&(i+=b,s.e+=b)),x!==b&&(p=di(t,r,m,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"?JP:ZP;return pP.test(i)&&(s.e=0),this._pt=s,s},t_={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},zN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=t_[n]||n,r[1]=t_[i]||i,r.join(" ")},UN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,u,l;if(a==="all"||a===!0)i.cssText="",u=1;else for(a=a.split(","),l=a.length;--l>-1;)s=a[l],Hn[s]&&(u=1,s=s==="transformOrigin"?ar:ne),ra(n,s);u&&(ra(n,ne),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Bs(n,1),o.uncache=1,QP(i)))}},Rl={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new ir(t._pt,r,n,0,0,UN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},Ls=[1,0,0,1,0,0],iE={},aE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},e_=function(t){var r=Br(t,ne);return aE(r)?Ls:r.substr(7).match(hP).map(se)},Xv=function(t,r){var n=t._gsap||Gi(t),i=t.style,a=e_(t),o,s,u,l;return n.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,a=[u.a,u.b,u.c,u.d,u.e,u.f],a.join(",")==="1,0,0,1,0,0"?Ls:a):(a===Ls&&!t.offsetParent&&t!==Ia&&!n.svg&&(u=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,s=t.nextElementSibling,Ia.appendChild(t)),a=e_(t),u?i.display=u:ra(t,"display"),l&&(s?o.insertBefore(t,s):o?o.appendChild(t):Ia.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},jy=function(t,r,n,i,a,o){var s=t._gsap,u=a||Xv(t,!0),l=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=u[0],y=u[1],m=u[2],d=u[3],v=u[4],_=u[5],b=r.split(" "),x=parseFloat(b[0])||0,g=parseFloat(b[1])||0,w,S,O,T;n?u!==Ls&&(S=p*d-y*m)&&(O=x*(d/S)+g*(-m/S)+(m*_-d*v)/S,T=x*(-y/S)+g*(p/S)-(p*_-y*v)/S,x=O,g=T):(w=rE(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+_*m)-v,s.yOffset=h+(v*y+_*d)-_):s.xOffset=s.yOffset=0,s.xOrigin=x,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[ar]="0px 0px",o&&(oi(o,s,"xOrigin",l,x),oi(o,s,"yOrigin",c,g),oi(o,s,"xOffset",f,s.xOffset),oi(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",x+" "+g)},Bs=function(t,r){var n=t._gsap||new zP(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",u=getComputedStyle(t),l=Br(t,ar)||"0",c,f,h,p,y,m,d,v,_,b,x,g,w,S,O,T,M,P,E,k,R,$,C,I,L,q,D,j,B,W,G,X;return c=f=h=m=d=v=_=b=x=0,p=y=1,n.svg=!!(t.getCTM&&nE(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[ne]=(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[ne]!=="none"?u[ne]:"")),i.scale=i.rotate=i.translate="none"),S=Xv(t,n.svg),n.svg&&(n.uncache?(L=t.getBBox(),l=n.xOrigin-L.x+"px "+(n.yOrigin-L.y)+"px",I=""):I=!r&&t.getAttribute("data-svg-origin"),jy(t,I||l,!!I||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,w=n.yOrigin||0,S!==Ls&&(P=S[0],E=S[1],k=S[2],R=S[3],c=$=S[4],f=C=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt(R*R+k*k),m=P||E?Sa(E,P)*Ri:0,_=k||R?Sa(k,R)*Ri+m:0,_&&(y*=Math.abs(Math.cos(_*Na))),n.svg&&(c-=g-(g*P+w*k),f-=w-(g*E+w*R))):(X=S[6],W=S[7],D=S[8],j=S[9],B=S[10],G=S[11],c=S[12],f=S[13],h=S[14],O=Sa(X,B),d=O*Ri,O&&(T=Math.cos(-O),M=Math.sin(-O),I=$*T+D*M,L=C*T+j*M,q=X*T+B*M,D=$*-M+D*T,j=C*-M+j*T,B=X*-M+B*T,G=W*-M+G*T,$=I,C=L,X=q),O=Sa(-k,B),v=O*Ri,O&&(T=Math.cos(-O),M=Math.sin(-O),I=P*T-D*M,L=E*T-j*M,q=k*T-B*M,G=R*M+G*T,P=I,E=L,k=q),O=Sa(E,P),m=O*Ri,O&&(T=Math.cos(O),M=Math.sin(O),I=P*T+E*M,L=$*T+C*M,E=E*T-P*M,C=C*T-$*M,P=I,$=L),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,v=180-v),p=se(Math.sqrt(P*P+E*E+k*k)),y=se(Math.sqrt(C*C+X*X)),O=Sa($,C),_=Math.abs(O)>2e-4?O*Ri:0,x=G?1/(G<0?-G:G):0),n.svg&&(I=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!aE(Br(t,ne)),I&&t.setAttribute("transform",I))),Math.abs(_)>90&&Math.abs(_)<270&&(a?(p*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,_+=_<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=se(p),n.scaleY=se(y),n.rotation=se(m)+s,n.rotationX=se(d)+s,n.rotationY=se(v)+s,n.skewX=_+s,n.skewY=b+s,n.transformPerspective=x+o,(n.zOrigin=parseFloat(l.split(" ")[2])||!r&&n.zOrigin||0)&&(i[ar]=Dl(l)),n.xOffset=n.yOffset=0,n.force3D=Sr.force3D,n.renderTransform=n.svg?GN:eE?oE:WN,n.uncache=0,n},Dl=function(t){return(t=t.split(" "))[0]+" "+t[1]},qf=function(t,r,n){var i=ze(r);return se(parseFloat(r)+parseFloat(di(t,"x",n+"px",i)))+i},WN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,oE(t,r)},Mi="0deg",Go="0px",ki=") ",oE=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,u=n.z,l=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,v=n.force3D,_=n.target,b=n.zOrigin,x="",g=v==="auto"&&t&&t!==1||v===!0;if(b&&(f!==Mi||c!==Mi)){var w=parseFloat(c)*Na,S=Math.sin(w),O=Math.cos(w),T;w=parseFloat(f)*Na,T=Math.cos(w),o=qf(_,o,S*T*-b),s=qf(_,s,-Math.sin(w)*-b),u=qf(_,u,O*T*-b+b)}d!==Go&&(x+="perspective("+d+ki),(i||a)&&(x+="translate("+i+"%, "+a+"%) "),(g||o!==Go||s!==Go||u!==Go)&&(x+=u!==Go||g?"translate3d("+o+", "+s+", "+u+") ":"translate("+o+", "+s+ki),l!==Mi&&(x+="rotate("+l+ki),c!==Mi&&(x+="rotateY("+c+ki),f!==Mi&&(x+="rotateX("+f+ki),(h!==Mi||p!==Mi)&&(x+="skew("+h+", "+p+ki),(y!==1||m!==1)&&(x+="scale("+y+", "+m+ki),_.style[ne]=x||"translate(0, 0)"},GN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,u=n.rotation,l=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,v=n.yOffset,_=n.forceCSS,b=parseFloat(o),x=parseFloat(s),g,w,S,O,T;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=Na,l*=Na,g=Math.cos(u)*f,w=Math.sin(u)*f,S=Math.sin(u-l)*-h,O=Math.cos(u-l)*h,l&&(c*=Na,T=Math.tan(l-c),T=Math.sqrt(1+T*T),S*=T,O*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,w*=T)),g=se(g),w=se(w),S=se(S),O=se(O)):(g=f,O=h,w=S=0),(b&&!~(o+"").indexOf("px")||x&&!~(s+"").indexOf("px"))&&(b=di(p,"x",o,"px"),x=di(p,"y",s,"px")),(y||m||d||v)&&(b=se(b+y-(y*g+m*S)+d),x=se(x+m-(y*w+m*O)+v)),(i||a)&&(T=p.getBBox(),b=se(b+i/100*T.width),x=se(x+a/100*T.height)),T="matrix("+g+","+w+","+S+","+O+","+b+","+x+")",p.setAttribute("transform",T),_&&(p.style[ne]=T)},HN=function(t,r,n,i,a){var o=360,s=Pe(a),u=parseFloat(a)*(s&&~a.indexOf("rad")?Ri: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 ir(t._pt,r,n,i,l,CN),h.e=c,h.u="deg",t._props.push(n),h},r_=function(t,r){for(var n in r)t[n]=r[n];return t},KN=function(t,r,n){var i=r_({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,u,l,c,f,h,p,y;i.svg?(l=n.getAttribute("transform"),n.setAttribute("transform",""),o[ne]=r,s=Bs(n,1),ra(n,ne),n.setAttribute("transform",l)):(l=getComputedStyle(n)[ne],o[ne]=r,s=Bs(n,1),o[ne]=l);for(u in Hn)l=i[u],c=s[u],l!==c&&a.indexOf(u)<0&&(p=ze(l),y=ze(c),f=p!==y?di(n,u,l,y):parseFloat(l),h=parseFloat(c),t._pt=new ir(t._pt,s,u,f,h-f,My),t._pt.u=y||0,t._props.push(u));r_(s,i)};nr("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});Rl[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 Rn(s,y,l)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(u,p,f)}});var sE={name:"css",register:$y,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,u=n.vars.startAt,l,c,f,h,p,y,m,d,v,_,b,x,g,w,S,O;Hv||$y(),this.styles=this.styles||tE(t),O=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(br[m]&&UP(m,r,n,i,t,a)))){if(p=typeof c,y=Rl[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Ds(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",hi.lastIndex=0,hi.test(l)||(d=ze(l),v=ze(c)),v?d!==v&&(l=di(t,m,l,v)+v):d&&(c+=d),this.add(s,"setProperty",l,c,i,a,0,0,m),o.push(m),O.push(m,0,s[m]);else if(p!=="undefined"){if(u&&m in u?(l=typeof u[m]=="function"?u[m].call(n,i,t,a):u[m],Pe(l)&&~l.indexOf("random(")&&(l=Ds(l)),ze(l+"")||l==="auto"||(l+=Sr.units[m]||ze(Rn(t,m))||""),(l+"").charAt(1)==="="&&(l=Rn(t,m))):l=Rn(t,m),h=parseFloat(l),_=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),_&&(c=c.substr(2)),f=parseFloat(c),m in yn&&(m==="autoAlpha"&&(h===1&&Rn(t,"visibility")==="hidden"&&f&&(h=0),O.push("visibility",0,s.visibility),oi(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=yn[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in Hn,b){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=Br(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),x||(g=t._gsap,g.renderTransform&&!r.parseTransform||Bs(t,r.parseTransform),w=r.smoothOrigin!==!1&&g.smooth,x=this._pt=new ir(this._pt,s,ne,0,1,g.renderTransform,g,0,-1),x.dep=1),m==="scale")this._pt=new ir(this._pt,g,"scaleY",g.scaleY,(_?Da(g.scaleY,_+f):f)-g.scaleY||0,My),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){O.push(ar,0,s[ar]),c=zN(c),g.svg?jy(t,c,0,w,0,this):(v=parseFloat(c.split(" ")[2])||0,v!==g.zOrigin&&oi(this,g,"zOrigin",g.zOrigin,v),oi(this,s,m,Dl(l),Dl(c)));continue}else if(m==="svgOrigin"){jy(t,c,1,w,0,this);continue}else if(m in iE){HN(this,g,m,h,_?Da(h,_+c):c);continue}else if(m==="smoothOrigin"){oi(this,g,"smooth",g.smooth,c);continue}else if(m==="force3D"){g[m]=c;continue}else if(m==="transform"){KN(this,c,t);continue}}else m in s||(m=to(m)||m);if(b||(f||f===0)&&(h||h===0)&&!EN.test(c)&&m in s)d=(l+"").substr((h+"").length),f||(f=0),v=ze(c)||(m in Sr.units?Sr.units[m]:d),d!==v&&(h=di(t,m,l,v)),this._pt=new ir(this._pt,b?g:s,m,h,(_?Da(h,_+f):f)-h,!b&&(v==="px"||m==="zIndex")&&r.autoRound!==!1?kN:My),this._pt.u=v||0,d!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=MN);else if(m in s)FN.call(this,t,m,l,_?_+c:c);else if(m in t)this.add(t,m,l||t[m],_?_+c:c,i,a);else if(m!=="parseTransform"){Iv(m,c);continue}b||(m in s?O.push(m,0,s[m]):typeof t[m]=="function"?O.push(m,2,t[m]()):O.push(m,1,l||t[m])),o.push(m)}}S&&XP(this)},render:function(t,r){if(r.tween._time||!Kv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:Rn,aliases:yn,getSetter:function(t,r,n){var i=yn[r];return i&&i.indexOf(",")<0&&(r=i),r in Hn&&r!==ar&&(t._gsap.x||Rn(t,"x"))?n&&Yb===n?r==="scale"?DN:RN:(Yb=n||{})&&(r==="scale"?IN:NN):t.style&&!jv(t.style[r])?$N:~r.indexOf("-")?jN:Wv(t,r)},core:{_removeProperty:ra,_getMatrix:Xv}};ur.utils.checkPrefix=to;ur.core.getStyleSaver=tE;(function(e,t,r,n){var i=nr(e+","+t+","+r,function(a){Hn[a]=1});nr(t,function(a){Sr.units[a]="deg",iE[a]=1}),yn[i[13]]=e+","+t,nr(n,function(a){var o=a.split(":");yn[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");nr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Sr.units[e]="px"});ur.registerPlugin(sE);var Ry=ur.registerPlugin(sE)||ur;Ry.core.Tween;const Aa={IN_OUT:"power2.inOut",OUT:"power2.out"},Ho={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class uE{constructor(t,r={}){Bo(this,"timeline");Bo(this,"currentStage","");Bo(this,"callbacks");Bo(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Ry.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToRings",n),n+=t.seatsToRings/1e3,this.timeline.addLabel("ringsToBar",n),n+=t.ringsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToRings(t,r){const n=this.durations.seatsToRings/1e3;return t.each(function(){const i=this;if(!i.getAttribute("data-orig-x")){const a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("width"),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:Aa.IN_OUT,stagger:Ho.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:Aa.IN_OUT,stagger:Ho.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:Aa.IN_OUT,stagger:Ho.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:Aa.OUT,stagger:Ho.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=Ho.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:Aa.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&&Ry.to(s,{attr:{d:l},duration:a,ease:Aa.IN_OUT})}),this.timeline.call(()=>{var s,u;this.currentStage="barsToArea",(u=(s=this.callbacks).onStageComplete)==null||u.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function YN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:u,innerRadiusRatio:l}=t,c=i*l,f=e.reduce((E,k)=>E+k.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const k=E*Math.PI/180;for(let R=s;R>=o;R-=.1){const $=R*2,C=$*u,I=Math.floor((i-c)/C);for(let L=1;L<=Math.min(I,10);L++){let q=0;for(let D=0;D<L;D++){const j=c+(D+.5)*C,B=$*u/j,W=Math.floor(k/B);q+=W}if(q>=f){const D=f/q,j=(R-o)/(s-o),B=(q-f)/f,W=B<.15?1:B<.3?.7:B<.5?.4:.1,G=1-Math.abs(E-r)/n,X=W*.5+j*.3+D*.15+G*.05;X>h.score&&(h={seatSize:R,arcAngle:E,rings:L,score:X})}}}}const m=h.seatSize,d=h.arcAngle,v=d*Math.PI/180,_=m*2,b=_*u,x=Math.floor((i-c)/b),g=[],w=-v/2-Math.PI/2,S=[];let O=0,T=[];for(let E=1;E<=x;E++){let k=0;const R=[];for(let $=0;$<E;$++){const C=c+($+.5)*b,I=_*u/C,L=Math.floor(v/I);R.push(L),k+=L}if(k>=f){O=E,T=R;break}}if(O>0)S.push(...T);else for(let E=0;E<x;E++){const k=c+(E+.5)*b,R=_*u/k,$=Math.floor(v/R);S.push($)}for(let E=0;E<S.length;E++){const k=c+(E+.5)*b,R=S[E]??0;if(R>0){const $=v/R;for(let C=0;C<R;C++){const I=w+(C+.5)*$,L=Math.cos(I)*k,q=Math.sin(I)*k;g.push({ring:E,index:C,angle:I,x:L,y:q})}}}g.sort((E,k)=>{const R=E.angle-k.angle;return Math.abs(R)>.001?R:E.ring-k.ring});const M=[];let P=0;return e.forEach((E,k)=>{const R=Math.min(E.seats,g.length-P);for(let $=0;$<R&&P<g.length;$++){const C=g[P++];C&&M.push({x:C.x,y:C.y,category:E.name,categoryIndex:k,seatIndex:$,ring:C.ring,angle:C.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:M,totalSeats:f}}function XN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}const or={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},ps=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],tr={greyHatch:{background:or.neoGrey[200],lines:or.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",tr.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",tr.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",tr.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",tr.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",tr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",tr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",tr.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",tr.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",tr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",tr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",tr.noLstHatch.lines).attr("stroke-width",.5)}function qu(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),VN(r,t),ZN(r,t),JN(r,t)}function n_(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function lE(e){return e.includes("greyHatchPattern")?tr.greyHatch.lines:e.includes("dataMissingHatchPattern")?tr.dataMissingHatch.lines:e.includes("noLstHatchPattern")?tr.noLstHatch.lines:e}function Dy(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,u=Li().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(ea),l=Cv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(ea),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var v;const y=r[p];if(!y)return;const m=((v=y.parliamentMapping)==null?void 0:v.isSpecialCategory)??!1,d=lE(y.color);if(m){const _=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",l).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;_.attr("class",b)}}else{const _=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",u).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;_.attr("class",b)}}})}function 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 Be(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 m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const v=s?`seat seat-${s} seat-${Be(p.category)}`:`seat seat-${Be(p.category)}`;m.attr("class",v),d.attr("class",v)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-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),m=n(p.y1);let d;if(o){const v=l.get(h.category)??[],_=h.seatIndex,b=v.length;if(b===1)d=(y+m)/2;else{const x=_/(b-1);d=y+(m-y)*x}}else d=m;s.set(h,{x:u,y:d})}return s}function 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 qi=new Map;te.prototype.transition=sv;const nL=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:u=!0,showAxes:l=!0,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:m=4.5,animationDuration:d=900,onMorphComplete:v,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:g,hoveredCategory:w,maxSeats:S=2e3,parliamentTimestamp:O,enableBrush:T=!1,onTimeRangeChange:M,showScaleIndicator:P=!1,reposPerSeat:E=1,timelineEvents:k=[],showTimeline:R=!1,timelineHeight:$=40,timelineOffset:C=35})=>{const[I,L]=A.useState("area"),[q,D]=A.useState(!1),[j,B]=A.useState(null),[W,G]=A.useState(0),[X,J]=A.useState(null),[et,K]=A.useState(null),[F,H]=A.useState([]),Q=A.useRef(null),N=A.useRef(n),ut=A.useRef(!0),z=A.useRef(!1),st=A.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),ft=A.useRef(void 0),at=A.useRef(s),ht=A.useRef(v),Tt=A.useRef(_),it=A.useRef(b),dt=A.useRef(x),xt=A.useRef(g);A.useEffect(()=>{ht.current=v,Tt.current=_,it.current=b,dt.current=x,xt.current=g},[v,_,b,x,g]),A.useEffect(()=>{if(e.current&&I==="parliament")if(w){const St=r.find(Ct=>Ct.dataKey===w);if(St){const Ct=St.label;B(Ct),ms(e.current,Ct)}}else B(null),ms(e.current,null)},[w,I,r,t]);const $t=i-o.left-o.right,Kt=a-o.top-o.bottom;return A.useEffect(()=>{var Yr;if(!e.current||t.length===0||r.length===0||(ft.current&&(ft.current(),ft.current=void 0),z.current))return;const St=te(e.current),Ct=n!==N.current;ut.current?(St.selectAll("*").remove(),qu(St,st.current),ut.current=!1):Ct||(St.selectAll("*").remove(),qu(St,st.current));const Se=t[t.length-1],Pr=r.reduce((wt,V)=>wt+(Se.values[V.dataKey]||0),0),sn=t.map(wt=>{const V={timestamp:wt.timestamp};for(const ct of r)V[ct.dataKey]=wt.values[ct.dataKey]||0;return V}),me=r.map(wt=>wt.dataKey),Ae=El().keys(me),Wr=Ae(sn),Ve=t.map(wt=>wt.timestamp),Er=Ct||!s?Math.min(...Ve):s[0],cr=Ct||!s?Math.max(...Ve):s[1],Gr=[...Ve].sort((wt,V)=>wt-V),fr=[];for(let wt=0;wt<Gr.length-1;wt++)fr.push(Gr[wt+1]-Gr[wt]);const Vn=fr.length>0?fr.reduce((wt,V)=>wt+V,0)/fr.length:0,Cr=cr+Vn*1.15,We=wl().domain([new Date(Er),new Date(Cr)]).range([0,$t]),Hr=sn.filter(wt=>wt.timestamp>=Er&&wt.timestamp<=cr),un=Ae(Hr),Oe=un.length>0?Math.max(...un[un.length-1].map(wt=>wt[1]??0)):0,Mr=ta().domain([0,Oe*1.15]).range([Kt,0]),hr=r.map(wt=>({...wt,color:n_(wt.color,st.current)})),Io=hr.map(wt=>({dataKey:wt.dataKey,label:wt.label,color:wt.color,value:Se.values[wt.dataKey]||0})),On=XN(Io,Pr,S).reverse(),Ze=YN(On,{arcAngle:p,radius:y,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});Q.current=Ze;const Si=eL(sn,r),Kr=tL(Ze,Si,We,Mr,$t,Kt);if(Ct&&!z.current){z.current=!0,D(!0),(Yr=Tt.current)==null||Yr.call(Tt,!0),J(null),H([]),G(0);let wt=St.select("g[transform]");if(wt.empty()&&(wt=St.select("g")),wt.empty()){St.selectAll("*").remove(),qu(St,st.current),Ff(St,n==="parliament"?"parliament":"area",Wr,hr,Ze,We,Mr,$t,Kt,o,u,l,c,f,T,M,st.current,h,s,H,J,k,R,$,C,K),D(!1),L(n==="parliament"?"parliament":"area"),G(n==="parliament"?1:0),N.current=n;return}const V=setTimeout(()=>{z.current=!1,D(!1),N.current=n},d*3);oL(St,n,Wr,hr,Ze,Kr,We,Mr,$t,Kt,o,d,()=>{var ct,mt;if(clearTimeout(V),z.current=!1,D(!1),L(n==="parliament"?"parliament":"area"),n==="parliament"&&G(1),(ct=Tt.current)==null||ct.call(Tt,!1),(mt=ht.current)==null||mt.call(ht),N.current=n,n==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,hr,t,j,B,xt.current,P,E,st.current)),n!=="parliament"&&e.current){const At=te(e.current),jt=At.select(st.current?`.main-chart-group-${st.current}`:".main-chart-group");if(R&&K&&fE(At,k,We,Kt,$t,$,C,st.current,K,T,M),T&&M&&!R){const Ft=jt.select(st.current?`.chart-content-group-${st.current}`:".chart-content-group");iL(Ft,$t,Kt,We,M,st.current,At)}if(h.length>0&&H&&J&&s){const Ft=h.filter(Zt=>Zt.timestamp>=(s[0]??0)&&Zt.timestamp<=(s[1]??1/0)).map(Zt=>({...Zt,x:We(new Date(Zt.timestamp))}));H(Ft),Ft.length>0&&aL(jt,Ft,Kt,$t,T,J,st.current)}}},l,c,f,it.current,(ct,mt)=>{var At;if(n==="parliament"&&ct>=.95){const jt=(ct-.95)/.05;G(Math.min(jt,1))}(At=dt.current)==null||At.call(dt,ct,mt)},O,st.current)}else N.current=n,n==="parliament"&&(J(null),H([])),Ff(St,n==="parliament"?"parliament":"area",Wr,hr,Ze,We,Mr,$t,Kt,o,u,l,c,f,T,M,st.current,h,s,H,J,k,R,$,C,K),L(n==="parliament"?"parliament":"area"),G(n==="parliament"?1:0),n==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,hr,t,j,B,xt.current,P,E,st.current));return()=>{ft.current&&(ft.current(),ft.current=void 0)}},[n]),A.useEffect(()=>{var Hr,un;if(!e.current||t.length===0||z.current)return;if(ut.current){at.current=s;return}if(!(s!==at.current&&((s==null?void 0:s[0])!==((Hr=at.current)==null?void 0:Hr[0])||(s==null?void 0:s[1])!==((un=at.current)==null?void 0:un[1]))))return;at.current=s;const Ct=te(e.current),Se=t.map(Oe=>{const Mr={timestamp:Oe.timestamp};for(const hr of r)Mr[hr.dataKey]=Oe.values[hr.dataKey]||0;return Mr}),Pr=r.map(Oe=>Oe.dataKey),me=El().keys(Pr)(Se),Ae=t.map(Oe=>Oe.timestamp),Wr=s?s[0]:Math.min(...Ae),Ve=s?s[1]:Math.max(...Ae),cr=(Ae.length>1?(Ae[Ae.length-1]-Ae[0])/(Ae.length-1):0)*.5,Gr=wl().domain([new Date(Wr-cr),new Date(Ve+cr)]).range([0,i-o.left-o.right]),fr=Math.max(...me[me.length-1].map(Oe=>Oe[1])),Vn=ta().domain([0,fr*1.1]).range([a-o.top-o.bottom,0]);if(!Q.current)return;const Cr=Q.current,We=r.map(Oe=>({...Oe,color:n_(Oe.color,st.current)}));Ct.selectAll("*").remove(),qu(Ct,st.current),Ff(Ct,I==="parliament"?"parliament":"area",me,We,Cr,Gr,Vn,i-o.left-o.right,a-o.top-o.bottom,o,u,l,c,f,T,M,st.current,h,s,H,J,k,R,$,C,K),I==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,We,t,j,B,xt.current,P,E,st.current))},[s]),{isMorphing:q,currentMode:I,hoveredCategory:j,scaleIndicatorOpacity:W,visibleMarkers:F,hoveredMarker:X,setHoveredMarker:J,hoveredTimelineEvent:et,setHoveredTimelineEvent:K}};function iL(e,t,r,n,i,a,o){const s=Ac().extent([[0,0],[t,r]]).on("end",l=>{if(!l.selection)return;const[c,f]=l.selection,h=[+n.invert(c),+n.invert(f)];i(h),o.select(".brush").call(s.move,null)}),u=e.append("g").attr("class","brush").call(s);u.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),u.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),u.on("dblclick",()=>{const l=n.domain(),c=[+l[0],+l[1]];i(c)})}function aL(e,t,r,n,i,a,o){const s=e.select(o?`.chart-content-group-${o}`:".chart-content-group"),u=o?`markers markers-${o}`:"markers",l=e.append("g").attr("class",u);t.forEach(h=>{l.append("line").attr("class","marker-line").attr("data-timestamp",h.timestamp).attr("x1",h.x).attr("x2",h.x).attr("y1",0).attr("y2",r).attr("stroke",h.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),h.label&&l.append("text").attr("class","marker-label").attr("data-timestamp",h.timestamp).attr("x",h.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",h.color??"#2F42FF").attr("opacity",0)});let c=null,f;i?f=s.select(".brush .overlay"):f=s.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",r).attr("fill","none").attr("pointer-events","all"),f.on("mousemove",function(h){const[p]=Ps(h,this);let y=null,m=1/0;if(t.forEach(_=>{const b=Math.abs(p-_.x);b<m&&(m=b,y=_)}),!y||m>50){c!==null&&(c=null,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),a(null));return}const v=y;c!==v.timestamp&&(c=v.timestamp,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),l.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(v.timestamp)}).attr("opacity",.6),l.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(v.timestamp)}).attr("opacity",1),a(v))}),f.on("mouseleave",function(){c=null,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),a(null)})}function Ff(e,t,r,n,i,a,o,s,u,l,c,f,h,p,y=!1,m,d,v=[],_=[0,0],b,x,g=[],w=!1,S=40,O=15,T){let M=null;const P=d?`main-chart-group main-chart-group-${d}`:"main-chart-group",E=e.append("g").attr("class",P).attr("transform",`translate(${l.left},${l.top})`),k=d?`chart-clip-${d}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",k).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",u);const R=d?`chart-content-group chart-content-group-${d}`:"chart-content-group",$=E.append("g").attr("class",R).attr("clip-path",`url(#${k})`);if(c&&t!=="parliament"&&($.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Os(a).ticks(6).tickSize(u).tickFormat(()=>"")),$.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ts(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Dy($,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:d}),v.length>0)){const C=v.filter(I=>I.timestamp>=_[0]&&I.timestamp<=_[1]).map(I=>({...I,x:a(new Date(I.timestamp))}));M={markersGroup:null,visibleMarkers:C},b&&b(C)}if(t==="parliament"){const C=s/2,I=i.radius+10,L=u-i.radius*.3,q=Math.max(I,L);cE($,i,n,{centerX:C,centerY:q,addClasses:!0,instanceId:d,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const C=Os(a).ticks(6);h&&C.tickFormat(L=>h(+L)),E.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).call(C).selectAll("text").attr("font-size",14).attr("font-weight",500);const I=Ts(o).ticks(5);p&&I.tickFormat(L=>p(+L)),E.append("g").attr("class","axis axis-y").call(I).selectAll("text").attr("font-size",14).attr("font-weight",500)}if(y&&m&&t==="area"){const C=Ac().extent([[0,0],[s,u]]).on("end",L=>{if(!L.selection)return;const[q,D]=L.selection,j=[+a.invert(q),+a.invert(D)];m(j),e.select(".brush").call(C.move,null)}),I=$.append("g").attr("class","brush").call(C);I.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),I.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),I.on("dblclick",()=>{const L=a.domain(),q=[+L[0],+L[1]];m(q)})}if(t==="area"&&M&&M.visibleMarkers.length>0){const C=E.append("g").attr("class","markers").attr("clip-path",`url(#${k})`);M.visibleMarkers.forEach(I=>{C.append("line").attr("class","marker-line").attr("data-timestamp",I.timestamp).attr("x1",I.x).attr("x2",I.x).attr("y1",0).attr("y2",u).attr("stroke",I.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),I.label&&C.append("text").attr("class","marker-label").attr("data-timestamp",I.timestamp).attr("x",I.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",I.color??"#2F42FF").attr("opacity",0)}),M.markersGroup=C}if(t==="area"&&w&&T&&fE(e,g,a,u,s,S,O,d,T,y,m),M&&M.visibleMarkers.length>0&&x&&t==="area"){const{markersGroup:C,visibleMarkers:I}=M;let L=null,q;y?q=$.select(".brush .overlay"):q=$.append("rect").attr("class","marker-hover-overlay").attr("width",s).attr("height",u).attr("fill","none").attr("pointer-events","all");const D=j=>{let B=null,W=1/0;if(I.forEach(J=>{const et=Math.abs(j-J.x);et<W&&(W=et,B=J)}),!B||W>50)return L!==null&&(L=null,C.selectAll(".marker-line").attr("opacity",0),C.selectAll(".marker-label").attr("opacity",0),x(null)),!1;const X=B;return L===X.timestamp||(L=X.timestamp,C.selectAll(".marker-line").attr("opacity",0),C.selectAll(".marker-label").attr("opacity",0),C.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(X.timestamp)}).attr("opacity",.6),C.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(X.timestamp)}).attr("opacity",1),x(X)),!0};q.on("mousemove",function(j){const[B]=Ps(j,this);D(B)}),q.on("mouseleave",function(){L=null,C.selectAll(".marker-line").attr("opacity",0),C.selectAll(".marker-label").attr("opacity",0),x(null)})}}function fE(e,t,r,n,i,a,o,s,u,l=!1,c){const f=n+o,h=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),p=s?`timeline-track timeline-track-${s}`:"timeline-track",y=h.append("g").attr("class",p),m=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",m).append("rect").attr("x",0).attr("y",f).attr("width",i).attr("height",a),y.append("rect").attr("class","timeline-background").attr("x",0).attr("y",f).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const d=y.append("g").attr("clip-path",`url(#${m})`),v=3,_=d.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",x=>r(new Date(x.timestamp))-v/2).attr("y",f).attr("width",v).attr("height",a).attr("fill",x=>x.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",x=>x.timestamp).attr("data-event-name",x=>x.eventName),b=6;if(_.on("mouseenter",function(x,g){const w=te(this),S=r(new Date(g.timestamp));w.transition().duration(150).attr("x",S-b/2).attr("width",b),u&&u({timestamp:g.timestamp,eventName:g.eventName,x:S})}).on("mouseleave",function(x,g){const w=te(this),S=r(new Date(g.timestamp));w.transition().duration(150).attr("x",S-v/2).attr("width",v),u&&u(null)}),l&&c){const x=Ac().extent([[0,f],[i,f+a]]).on("end",S=>{if(!S.selection)return;const[O,T]=S.selection,M=[+r.invert(O),+r.invert(T)];c(M);const P=s?`.timeline-brush-${s}`:".timeline-brush";e.select(P).call(x.move,null)}),g=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",w=h.append("g").attr("class",g).call(x);w.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),w.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),w.on("dblclick",()=>{const S=r.domain(),O=[+S[0],+S[1]];c(O)})}}function oL(e,t,r,n,i,a,o,s,u,l,c,f,h,p=!0,y,m,d,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"?sL(x,r,n,i,a,o,s,u,l,f,h,p,y,m,d,v,_,b):uL(x,r,n,i,a,o,s,u,l,f,h,p,y,m,d,v,_,b)}function ds(e,t,r,n,i,a,o,s){const u=e[a];if(!u)return"";const l=u.find(w=>w.data.timestamp===o);if(!l)return"";const c=l.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,v=l[0],_=l[1],b=s?i:n(v),x=s?i:n(_),g=[];return g.push(`M ${m} ${b}`),g.push(`L ${m} ${x}`),g.push(`L ${m+d} ${x}`),g.push(`L ${m+d} ${b}`),g.push("Z"),g.join(" ")}function sL(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,m,d,v){var $u;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 tt=e.attr("clip-path"),ot=tt?(($u=tt.match(/url\(#(.+)\)/))==null?void 0:$u[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,yt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";g=e.append("g").attr("class",yt).attr("clip-path",`url(#${ot})`)}if(b.size()===0){Dy(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const w=rL(l),S=v?qi.get(v):void 0;S&&(S.destroy(),v&&qi.delete(v));const O=tt=>tt<.2?"seatsToRings":tt<.35?"ringsToBar":tt<.464?"axesReveal":tt<.6?"barSlide":tt<.82?"barsGrow":"barsToArea",T=new uE({seatsToRings:w.seatsToLines,ringsToBar:w.seatsToBar,axesReveal:w.barSlideToTimeline*.3,barSlide:w.barSlideToTimeline*.7,barsGrow:w.axesAndBarsGrow,barsToArea:w.barsToArea},{onStageComplete:tt=>{},onProgress:tt=>{if(m){const ot=O(tt);m(tt,ot)}},onComplete:()=>{c()}});v&&qi.set(v,T),y&&y(T.getControls().getTimeline());const M=t[0].map(tt=>tt.data),P=QN(M,r),E=s/2,k=n.radius+10,R=u-n.radius*.3,$=Math.max(k,R),C=M.map(tt=>tt.timestamp),I=d??Math.max(...C),L=new Map,q=[];C.forEach((tt,ot)=>{const yt=a(new Date(tt)),Mt=C[ot+1];if(Mt){const Jt=a(new Date(Mt))-yt;q.push(Jt)}});const D=q.length>0?q.reduce((tt,ot)=>tt+ot,0)/q.length:30;C.forEach((tt,ot)=>{const yt=a(new Date(tt)),Mt=C[ot+1],Jt=ot===C.length-1?D:a(new Date(Mt))-yt;L.set(tt,{x:yt,width:Jt})});const j=P.filter(tt=>tt.timestamp===I),B=L.get(I),W=666,G=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",X=g.append("g").attr("class",G);j.sort((tt,ot)=>ot.y0-tt.y0),new Map().set(I,{x:W-B.width/2,width:B.width});const et=[],K=(n.radius-n.innerRadius)*.6,H=u*.8,Q=$,N=j.reduce((tt,ot)=>tt+(ot.y1-ot.y0),0);let ut=0;r.forEach(tt=>{const ot=j.find(Me=>Me.dataKey===tt.dataKey);if(!ot)return;const oe=(ot.y1-ot.y0)/N*H,Jt=Q-ut,De=Q-ut-oe,Ce=W-K/2,Je=`M ${Ce} ${Jt} L ${Ce} ${De} L ${Ce+K} ${De} L ${Ce+K} ${Jt} Z`;ut+=oe;const dr=X.append("path").attr("class",`parliament-bar-segment category-${Be(ot.dataKey)}`).attr("d",Je).attr("fill",ot.color).style("opacity",0).node();dr&&et.push(dr)}),v&&(window.orchestratorMap=qi);const z=T.getControls().getTimeline(),st=w.seatsToLines/1e3,ft=w.seatsToBar/1e3;z.call(()=>{m==null||m(z.progress(),"seatsToRings")},[],"seatsToRings");const at=b.nodes(),ht=E,Tt=$,it=Math.max(...n.seats.map(tt=>tt.ring)),dt=n.seats.filter(tt=>tt.ring===it),xt=e.append("g").attr("class",`seat-lines-${v||"default"}`),$t=r.map(tt=>{const ot=b.filter(`.seat-${Be(tt.dataKey)}`).size();return ot>0?{name:tt.dataKey,seatCount:ot,color:tt.color}:null}).filter(tt=>tt!==null).reverse(),Kt=$t.reduce((tt,ot)=>tt+ot.seatCount,0),St=dt.length,Ct=n.radius-n.innerRadius,Se=Ct*.6,Pr=Se/2,sn=Ct*.6,me=[];let Ae=0;$t.forEach(tt=>{const ot=Math.max(1,Math.round(tt.seatCount/Kt*St));for(let yt=0;yt<ot;yt++){const Mt=(Ae+yt)/St,oe=n.arcAngle*Math.PI/180,De=-oe/2-Math.PI/2+Mt*oe,Ce=(n.innerRadius+n.radius)/2,Je=ht+Math.cos(De)*Ce,dr=Tt+Math.sin(De)*Ce,Me=Math.cos(De),Zn=Math.sin(De),Ti=Je-Pr*Me,va=dr-Pr*Zn,ye=Je+Pr*Me,Jn=dr+Pr*Zn,Qn=xt.append("line").attr("class","seat-line").attr("x1",Ti).attr("y1",va).attr("x2",ye).attr("y2",Jn).attr("stroke",tt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",De*180/Math.PI).attr("data-center-x",Je).attr("data-center-y",dr).attr("data-initial-length",Se).node();me.push({element:Qn,angle:De})}Ae+=ot});const Wr=()=>{xt.remove()},Ve=st*.5,Er=0,cr=[];if(cr.push(...at),cr.sort((tt,ot)=>{const yt=parseInt(tt.getAttribute("data-layout-index")||"-1",10),Mt=parseInt(ot.getAttribute("data-layout-index")||"-1",10);return yt-Mt}),cr.length>0&&me.length>0){const tt=me.map(ot=>ot.element);z.to(cr,{attr:{r:1.5},duration:Ve*.3,ease:"power2.in"},`seatsToRings+=${Er}`),tt.forEach(ot=>{const yt=ot.getAttribute("x1")||"0",Mt=ot.getAttribute("y1")||"0",oe=ot.getAttribute("x2")||"0",Jt=ot.getAttribute("y2")||"0";ot.setAttribute("data-final-x1",yt),ot.setAttribute("data-final-y1",Mt),ot.setAttribute("data-final-x2",oe),ot.setAttribute("data-final-y2",Jt),ot.setAttribute("x1",yt),ot.setAttribute("y1",Mt),ot.setAttribute("x2",yt),ot.setAttribute("y2",Mt)}),z.to(tt,{attr:{x2:(ot,yt)=>parseFloat(yt.getAttribute("data-final-x2")||"0"),y2:(ot,yt)=>parseFloat(yt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:Ve*.6,ease:"power2.out"},`seatsToRings+=${Er+Ve*.2}`),z.to(cr,{opacity:0,duration:Ve*.3,ease:"power2.out"},`seatsToRings+=${Er+Ve*.3}`)}const Gr=st*.05,fr=st*.7,Vn=Er+Ve+Gr;if(me.length>0){const tt=W,ot=$,Mt=u*.8/me.length,oe=ot,Jt=[...me].sort((Je,dr)=>dr.angle-Je.angle),Ce=.6/Jt.length;Jt.forEach((Je,dr)=>{const Me=tt,Ti=oe-dr*Mt,va=Ce*dr*fr,ye=Je.element,Jn=parseFloat(ye.getAttribute("data-final-x1")||"0"),Qn=parseFloat(ye.getAttribute("data-final-y1")||"0"),Lo=parseFloat(ye.getAttribute("data-final-x2")||"0"),ba=parseFloat(ye.getAttribute("data-final-y2")||"0"),ju=(Jn+Lo)/2,cn=(Qn+ba)/2,ti=Math.atan2(ba-Qn,Lo-Jn),Pi=Math.sqrt(Math.pow(Lo-Jn,2)+Math.pow(ba-Qn,2));z.to({progress:0},{progress:1,duration:fr*.5,ease:"power2.inOut",delay:va,onUpdate:function(){const le=this.progress(),pf=ju+(Me-ju)*le,df=cn+(Ti-cn)*le,fn=40*4*le*(1-le),Ei=pf,Ci=df-fn,yf=0-ti,En=ti+yf*le*le,Ru=(Pi+(sn-Pi)*le)/2,uk=Ei-Ru*Math.cos(En),lk=Ci-Ru*Math.sin(En),ck=Ei+Ru*Math.cos(En),fk=Ci+Ru*Math.sin(En);ye.setAttribute("x1",uk.toString()),ye.setAttribute("y1",lk.toString()),ye.setAttribute("x2",ck.toString()),ye.setAttribute("y2",fk.toString())},onComplete:function(){const le=sn/2;ye.setAttribute("x1",(Me-le).toString()),ye.setAttribute("y1",Ti.toString()),ye.setAttribute("x2",(Me+le).toString()),ye.setAttribute("y2",Ti.toString())}},`seatsToRings+=${Vn}`),z.to(Je.element,{opacity:.95,duration:fr*.3,ease:"power2.out",delay:va},`seatsToRings+=${Vn}`)})}const Cr=xt,We=[];j.forEach((tt,ot)=>{const yt=b.filter(`.seat-${Be(tt.category)}`),Mt=yt.size();if(Mt===0)return;const oe=o(tt.y1),Jt=o(tt.y0)-o(tt.y1),De=yt.nodes().sort((cn,ti)=>{const Pi=parseInt(cn.getAttribute("data-layout-index")||"-1",10),le=parseInt(ti.getAttribute("data-layout-index")||"-1",10);return Pi-le}),Ce=Math.max(B.width,100),Je=Jt,dr=Ce/Math.max(Je,1),Me=Math.max(2,Math.ceil(Math.sqrt(Mt*dr))),Zn=Math.ceil(Mt/Me),Ti=Ce*.8,va=Je*.8,ye=Me>1?Ti/(Me-1):0,Jn=Zn>1?va/(Zn-1):0,Qn=Me>1?(Me-1)*ye:0,Lo=Zn>1?(Zn-1)*Jn:0,ba=W-Ce/2+(Ce-Qn)/2,ju=oe+(Je-Lo)/2;De.forEach((cn,ti)=>{const Pi=parseInt(cn.getAttribute("data-layout-index")||"-1",10),le=Pi>=0?n.seats[Pi]:void 0,pf=le?E+le.x:parseFloat(cn.getAttribute("cx")||"0"),df=le?$+le.y:parseFloat(cn.getAttribute("cy")||"0"),I0=(le==null?void 0:le.radius)||parseFloat(cn.getAttribute("r")||"4"),fn=Mt%Me;let Ei,Ci;if(fn>0&&ti<fn)Ci=0,Ei=ti;else{const En=ti-(fn>0?fn:0);Ei=En%Me,Ci=Math.floor(En/Me)+(fn>0?1:0)}let mf=ba+Ei*ye;if(fn>0&&Ci===0){const En=fn>1?(fn-1)*ye:0,N0=(Qn-En)/2;mf=ba+N0+Ei*ye}const yf=ju+Ci*Jn;We.push({element:cn,startX:pf,startY:df,startRadius:I0,category:tt.dataKey,segmentIndex:ot,endY:yf,endX:mf})})});const Hr=We.map(tt=>{const ot=tt.startX-E,yt=tt.startY-$,Mt=Math.atan2(yt,ot);return{...tt,angle:Mt}});Hr.sort((tt,ot)=>ot.angle-tt.angle);const un=ft*.8,Oe=.6,Mr=Hr.length,Io=un/Math.max(Mr,1)*(Mr-1)+Oe,On=ft*.3,Ze=Io;z.to(et,{opacity:1,duration:On,ease:"power2.inOut"},`seatsToBar+=${Ze}`),Cr&&(z.to(Cr.selectAll(".seat-line").nodes(),{opacity:0,duration:On,ease:"power2.inOut"},`seatsToBar+=${Ze}`),z.call(()=>{Wr()},[],`seatsToBar+=${Ze+On}`));const Si=w.barSlideToTimeline/1e3;let Kr=null,Yr=null;if(f){const tt=Os(a).ticks(6);h&&tt.tickFormat(yt=>h(yt.getTime())),Kr=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).attr("opacity",0),Kr.call(tt).selectAll("text").attr("font-size",14).attr("font-weight",500);const ot=Ts(o).ticks(5);p&&ot.tickFormat(yt=>p(yt)),Yr=e.append("g").attr("class","axis axis-y").attr("opacity",0),Yr.call(ot).selectAll("text").attr("font-size",14).attr("font-weight",500)}const wt=w.crossFadePause/1e3,V=Ze+On+wt;et.forEach(tt=>{const ot=Array.from(tt.classList).find(Jt=>Jt.startsWith("category-"));if(!ot||!j.find(Jt=>Be(Jt.dataKey)===ot.replace("category-","")))return;const Mt=r.findIndex(Jt=>Be(Jt.dataKey)===ot.replace("category-",""));if(Mt===-1)return;const oe=ds(t,r,L,o,u,Mt,I,!1);oe&&z.to(tt,{attr:{d:oe},duration:Si,ease:"power2.out"},`seatsToBar+=${V}`)});const ct=Li().x(tt=>a(tt.data.timestamp)).y0(tt=>o(tt[0])).y1(tt=>o(tt[1])).curve(ea),mt=new Map;t.forEach((tt,ot)=>{const yt=r[ot];if(yt){const Mt=ct(tt)||"";mt.set(yt.dataKey,Mt)}});const At=V+Si;f&&Kr&&Yr&&z.to([Kr.node(),Yr.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${V}`);const jt=g.select(".grid-vertical"),Ft=g.select(".grid-horizontal");if(!jt.empty()||!Ft.empty()){const ot=[];jt.empty()||ot.push(jt.node()),Ft.empty()||ot.push(Ft.node()),z.to(ot,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${V}`)}const Zt=w.axesAndBarsGrow/1e3,Re=w.barsToArea/1e3,pr=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",Ge=g.append("g").attr("class",pr);C.forEach(tt=>{if(tt===I)return;const ot=L.get(tt);ot&&r.forEach((yt,Mt)=>{const oe=ds(t,r,L,o,u,Mt,tt,!0),Jt=ds(t,r,L,o,u,Mt,tt,!1);if(!oe||!Jt)return;const De=v?`histogram-path histogram-path-${v} category-${Be(yt.dataKey)}`:`histogram-path category-${Be(yt.dataKey)}`;Ge.append("path").attr("class",De).attr("d",oe).attr("fill",yt.color).attr("stroke",yt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",yt.dataKey).attr("data-timestamp",tt).attr("data-x-position",ot.x).attr("data-full-height-path",Jt)})});const Tn=v?`.histogram-path-${v}`:".histogram-path",ln=Ge.selectAll(Tn);z.to(ln.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${At}`);const Pn=B.x+B.width/2;ln.each(function(){var Ce;const tt=this.getAttribute("data-full-height-path");if(!tt)return;const ot=parseFloat(this.getAttribute("data-x-position")||"0"),yt=parseFloat(this.getAttribute("data-timestamp")||"0"),Mt=((Ce=L.get(yt))==null?void 0:Ce.width)||0,oe=ot+Mt/2,De=Math.abs(oe-Pn)*8e-4;z.to(this,{attr:{d:tt},duration:Zt,ease:"power2.out"},`seatsToBar+=${At+De}`)});const Ai=At+Zt,No=C[C.length-1],ya=a(new Date(No))+D,Mu=a.invert(ya).getTime(),ga=t.map(tt=>{const ot=tt[tt.length-1],yt={...ot,data:{...ot.data,timestamp:Mu}};return[...tt,yt]});Dy(e,ga,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const D0=v?`.area-${v}`:".area",Oi=e.selectAll(D0);Oi.attr("opacity",0),z.to(ln.nodes(),{opacity:0,duration:Re,ease:"power2.inOut"},`seatsToBar+=${Ai}`);const ku=X.selectAll("path").nodes();ku.length>0&&z.to(ku,{opacity:0,duration:Re,ease:"power2.inOut"},`seatsToBar+=${Ai}`),z.to(Oi.nodes(),{opacity:1,duration:Re,ease:"power2.inOut"},`seatsToBar+=${Ai}`);const hf=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const tt=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(tt).remove();const ot=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(ot).remove(),f&&(Kr&&Kr.attr("opacity",1),Yr&&Yr.attr("opacity",1)),hf()}),T.play()}function uL(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,m,d,v){var wt;const _=v?`.chart-content-group-${v}`:".chart-content-group";let b=e.select(_);if(b.empty()){const V=e.attr("clip-path"),ct=V?((wt=V.match(/url\(#(.+)\)/))==null?void 0:wt[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,mt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";b=e.append("g").attr("class",mt).attr("clip-path",`url(#${ct})`)}const x=v?`.area-${v}`:".area",g=e.selectAll(x);if(g.size()===0){lL(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?qi.get(v):void 0;S&&(S.destroy(),v&&qi.delete(v));const O=V=>V<.18?"areaToBar":V<.4?"barsShrink":V<.62?"barSlide":V<.65?"axesHide":V<.72?"barToRings":V<.9?"ringsExpand":V<.95?"ringsHold":"ringsToSeats",T=new uE({seatsToRings:w.ringsToSeats,ringsHold:w.ringsHold,ringsToBar:w.barToRings,axesReveal:w.axesHide,barSlide:w.barSlide,barsGrow:w.barsShrink,barsToArea:w.areaToBar},{onStageComplete:V=>{},onProgress:V=>{if(m){const ct=O(V);m(V,ct)}},onComplete:()=>{c()}});v&&qi.set(v,T),y&&y(T.getControls().getTimeline());const P=t[0].map(V=>V.data).map(V=>V.timestamp),E=d??Math.max(...P),k=new Map,R=[];P.forEach((V,ct)=>{const mt=a(new Date(V)),At=P[ct+1];if(At){const Ft=a(new Date(At))-mt;R.push(Ft)}});const $=R.length>0?R.reduce((V,ct)=>V+ct,0)/R.length:30;P.forEach((V,ct)=>{const mt=a(new Date(V)),At=P[ct+1],Ft=ct===P.length-1?$:a(new Date(At))-mt;k.set(V,{x:mt,width:Ft})});const C=T.getControls().getTimeline(),I=w.areaToBar/1e3,L=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",q=b.append("g").attr("class",L);P.forEach(V=>{const ct=k.get(V);ct&&r.forEach((mt,At)=>{const jt=ds(t,r,k,o,u,At,V,!1);if(!jt)return;const Ft=v?`histogram-path histogram-path-${v} category-${Be(mt.dataKey)}`:`histogram-path category-${Be(mt.dataKey)}`;q.append("path").attr("class",Ft).attr("d",jt).attr("fill",mt.color).attr("stroke",mt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",mt.dataKey).attr("data-timestamp",V).attr("data-x-position",ct.x)})});const D=v?`.histogram-path-${v}`:".histogram-path",j=q.selectAll(D);C.to(g.nodes(),{opacity:0,duration:I,ease:"power2.inOut"},"areaToBar"),C.to(j.nodes(),{opacity:1,duration:I,ease:"power2.inOut"},"areaToBar");const B=w.barsShrink/1e3,W=I;j.each(function(){const V=parseFloat(this.getAttribute("data-timestamp")||"0");if(V===E)return;const ct=r.find(jt=>this.classList.contains(`category-${Be(jt.dataKey)}`));if(!ct)return;const mt=r.indexOf(ct),At=ds(t,r,k,o,u,mt,V,!0);At&&C.to(this,{attr:{d:At},duration:B,ease:"power2.in"},W)});const G=w.axesHide/1e3,X=W+B;if(f){const V=e.select(".axis-x"),ct=e.select(".axis-y");V.empty()||C.to(V.node(),{opacity:0,duration:G,ease:"power2.inOut"},X),ct.empty()||C.to(ct.node(),{opacity:0,duration:G,ease:"power2.inOut"},X)}const J=b.select(".grid-vertical"),et=b.select(".grid-horizontal");J.empty()||C.to(J.node(),{opacity:0,duration:G,ease:"power2.inOut"},X),et.empty()||C.to(et.node(),{opacity:0,duration:G,ease:"power2.inOut"},X);const K=[];t.forEach((V,ct)=>{const mt=V.find(jt=>jt.data.timestamp===E);if(!mt)return;const At=r[ct];At&&K.push({category:At.label,dataKey:At.dataKey,color:At.color,y0:mt[0],y1:mt[1]})}),K.sort((V,ct)=>ct.y0-V.y0);const F=K.reduce((V,ct)=>V+(ct.y1-ct.y0),0),H=n.radius-n.innerRadius,Q=s/2,N=n.radius+10,ut=u-n.radius*.3,z=Math.max(N,ut),st=H*.6,at=u*.8,ht=z,Tt=w.barSlide/1e3,it=X+G,dt=666,xt=j.nodes().filter(V=>parseFloat(V.getAttribute("data-timestamp")||"0")!==E);C.to(xt,{opacity:0,duration:Tt*.2,ease:"power2.out"},it);const $t=j.nodes().filter(V=>parseFloat(V.getAttribute("data-timestamp")||"0")===E);$t.forEach(V=>{const ct=V.getAttribute("data-category");if(!ct)return;const mt=K.find(ln=>ln.dataKey===ct);if(!mt)return;const Ft=(mt.y1-mt.y0)/F*at;let Zt=0;for(const ln of r){const Pn=K.find(Cu=>Cu.dataKey===ln.dataKey);if(!Pn)continue;if(Pn.dataKey===mt.dataKey)break;const No=(Pn.y1-Pn.y0)/F;Zt+=No*at}const Re=ht-Zt,pr=ht-Zt-Ft,Ge=dt-st/2,Tn=`M ${Ge} ${Re} L ${Ge} ${pr} L ${Ge+st} ${pr} L ${Ge+st} ${Re} Z`;C.to(V,{attr:{d:Tn},duration:Tt,ease:"power2.inOut"},it)});const Kt=w.barToRings/1e3,St=it+Tt,Ct=w.ringsExpand/1e3,Se=St+Kt,Pr=w.ringsHold/1e3,sn=Se+Ct,me=w.ringsToSeats/1e3,Ae=sn+Pr,Wr=Math.max(...n.seats.map(V=>V.ring)),Ve=n.seats.filter(V=>V.ring===Wr),Er=b.append("g").attr("class",`slinky-${v||"h2p-default"}`),cr=()=>{Er.remove()};Ve.forEach((V,ct)=>{const mt=r.find(At=>At.label===V.category);mt&&Er.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",mt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",V.category).attr("data-category-index",V.categoryIndex).attr("data-ring-index",ct).attr("data-seat-x",Q+V.x).attr("data-seat-y",z+V.y).attr("data-seat-angle",Math.atan2(V.y,V.x)).style("opacity",0)});const Gr=Er.selectAll(".slinky-ring").nodes(),fr=dt,Vn=at/Gr.length,Cr=[...Gr].sort((V,ct)=>{const mt=parseFloat(V.getAttribute("data-seat-angle")||"0");return parseFloat(ct.getAttribute("data-seat-angle")||"0")-mt}),We=ht;Cr.forEach((V,ct)=>{const mt=We-ct*Vn,jt=st/2,Ft=fr-jt,Zt=fr+jt;V.setAttribute("x1",Ft.toString()),V.setAttribute("y1",mt.toString()),V.setAttribute("x2",Zt.toString()),V.setAttribute("y2",mt.toString()),V.style.opacity="0"}),C.to($t,{opacity:0,duration:Kt*.7,ease:"power2.out"},St+Kt*.3),C.to(Cr,{opacity:1,duration:Kt,ease:"power2.in",stagger:.005},St);const Hr=H*.8;Cr.forEach((V,ct)=>{const mt=parseFloat(V.getAttribute("data-seat-x")||"0"),At=parseFloat(V.getAttribute("data-seat-y")||"0"),jt=parseFloat(V.getAttribute("data-seat-angle")||"0"),Ft=(Cr.length-1-ct)/Cr.length*(Ct*.4),Zt=parseFloat(V.getAttribute("x1")||"0"),Re=parseFloat(V.getAttribute("y1")||"0"),pr=parseFloat(V.getAttribute("x2")||"0"),Ge=parseFloat(V.getAttribute("y2")||"0"),Tn=(Zt+pr)/2,ln=(Re+Ge)/2,Pn=Math.atan2(Ge-Re,pr-Zt),Ai=Math.sqrt(Math.pow(pr-Zt,2)+Math.pow(Ge-Re,2)),No=mt-Hr/2*Math.cos(jt),Cu=At-Hr/2*Math.sin(jt);C.to({progress:0},{progress:1,duration:Ct*.7,ease:"power2.out",onUpdate:function(){const ya=this.progress(),ff=Tn+(No-Tn)*ya,Mu=ln+(Cu-ln)*ya,ga=Pn+(jt-Pn)*ya,Oi=(Ai+(Hr-Ai)*ya)/2,ku=ff-Oi*Math.cos(ga),hf=Mu-Oi*Math.sin(ga),$u=ff+Oi*Math.cos(ga),tt=Mu+Oi*Math.sin(ga);V.setAttribute("x1",ku.toString()),V.setAttribute("y1",hf.toString()),V.setAttribute("x2",$u.toString()),V.setAttribute("y2",tt.toString())}},Se+Ft),C.to(V,{opacity:.9,duration:Ct*.3,ease:"power2.in"},Se+Ft)}),C.call(()=>{m&&m(C.progress(),"ringsHold")},[],sn);const un=v?`parliament parliament-${v}`:"parliament",Oe=b.append("g").attr("class",un);n.seats.forEach((V,ct)=>{const mt=r.find(pr=>pr.label===V.category);if(!mt)return;const At=Q+V.x,jt=z+V.y;let Ft,Zt,Re;V.ring===Wr?(Ft=At,Zt=jt,Re=2):(Ft=At,Zt=jt,Re=V.radius),Oe.append("circle").attr("cx",Ft).attr("cy",Zt).attr("r",Re).attr("fill",mt.color).attr("stroke",mt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${Be(V.category)}`:`seat seat-${Be(V.category)}`).attr("data-layout-index",ct).attr("data-ring",V.ring).attr("data-final-x",At).attr("data-final-y",jt).attr("data-final-r",V.radius)});const Mr=v?`.seat-${v}`:".seat",hr=Oe.selectAll(Mr);C.to(Gr,{opacity:0,duration:me*.2,ease:"power3.out"},Ae),C.to(hr.nodes(),{opacity:.8,duration:me*.3,ease:"power2.in"},Ae+me*.25);const Io=hr.nodes(),On=[],Ze=[];Io.forEach(V=>{parseInt(V.getAttribute("data-ring")||"0")===Wr?On.push(V):Ze.push(V)});const Si=me*.2,Kr=me*.7;On.forEach(V=>{const ct=parseFloat(V.getAttribute("data-final-r")||"4");C.to(V,{attr:{r:ct},opacity:1,duration:Kr*.6,ease:"power2.out"},Ae+Si)}),Ze.length>0&&C.to(Ze,{opacity:1,duration:Kr*.5,ease:"power2.in"},Ae+Si+me*.15);const Yr=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const V=v?`.areas-${v}`:".areas",ct=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(V).remove(),e.selectAll(ct).remove(),cr(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const mt=v?`.parliament-label-${v}`:".parliament-label";if(e.select(mt).empty()){const jt=s/2,Ft=n.radius+10,Zt=u-n.radius*.3,Re=Math.max(Ft,Zt),pr=v?`parliament-label parliament-label-${v}`:"parliament-label",Ge=e.append("g").attr("class",pr).attr("transform",`translate(${jt},${Re-n.radius*.15})`).style("opacity","0").style("pointer-events","none");Ge.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"),Ge.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 Tn=Ge.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");Tn.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),Tn.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")}Yr()}),T.play()}function lL(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 i_(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=te(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const 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 zf(e,t,r,n,i,a,o,s,u){const l=e.querySelectorAll(".seat");if(!l||l.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];l.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),l.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),v=d[d.length-1];if(!v)return;const _=v.substring(5),b=t.find(g=>Be(g.label)===_);if(!b)return;const x=()=>{i(b.label);const g=Math.round(c.values[b.dataKey]||0),w=lE(b.color),S={label:b.label,value:g,color:w};a&&a(S),i_(e,S,o??!1,s??1,u),ms(e,b.label)};p.addEventListener("mouseenter",x),f.push({element:p,handler:x})});const h=()=>{i(null),a&&a(null),i_(e,null,!1,1,u),ms(e,null)};return e.addEventListener("mouseleave",h),n&&ms(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 ms(e,t){const r=e.querySelectorAll(".seat"),n=t?Be(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,formatDate:l,formatValue:c,markers:f=[],arcAngle:h=200,parliamentRadius:p=200,seatSize:y=4.5,animationDuration:m=900,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:x,hoveredCategory:g,maxSeats:w=500,showTooltip:S=!0,showTable:O=!1,showScaledIndicator:T=!0,parliamentTimestamp:M,enableBrush:P=!1,onTimeRangeChange:E,timelineEvents:k=[],showTimeline:R=!1,timelineHeight:$=40,timelineOffset:C=35})=>{const I=A.useRef(null),L=A.useCallback(F=>{x&&x(F)},[x]),q=e[e.length-1],D=q?t.reduce((F,H)=>F+(q.values[H.dataKey]||0),0):0,j=D>w,B=j?Math.round(D/w):1,W=R&&r==="stacked-area"?i+$+C:i,{isMorphing:G,currentMode:X,visibleMarkers:J,hoveredMarker:et,hoveredTimelineEvent:K}=nL({containerRef:I,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:u,formatDate:l,formatValue:c,markers:f,arcAngle:h,parliamentRadius:p,seatSize:y,animationDuration:m,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:L,hoveredCategory:g,maxSeats:w,parliamentTimestamp:M,enableBrush:P,onTimeRangeChange:E,showScaleIndicator:T&&j,reposPerSeat:B,timelineEvents:k,showTimeline:R,timelineHeight:$,timelineOffset:C});return U.jsxs(Z.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[U.jsx("svg",{ref:I,viewBox:`0 0 ${n} ${W}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),X==="area"&&J.map(F=>{const H=(F.x+a.left)/n*100,Q=a.top/i*100,N=new Date(F.timestamp),ut=l?l(F.timestamp):N.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),z=U.jsxs(Z.Box,{children:[U.jsx(Z.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:F.label?.5:0},children:ut}),F.label&&U.jsx(Z.Box,{sx:{color:"white",fontWeight:500},children:F.label})]});return U.jsx(Z.Tooltip,{title:z,open:(et==null?void 0:et.timestamp)===F.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:U.jsx(Z.Box,{sx:{position:"absolute",left:`${H}%`,top:`${Q}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},F.timestamp)}),K&&X==="area"&&U.jsx(Z.Tooltip,{title:U.jsxs(Z.Box,{children:[U.jsx(Z.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:l?l(K.timestamp):new Date(K.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),U.jsx(Z.Box,{sx:{color:"white",fontWeight:500},children:K.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:U.jsx(Z.Box,{sx:{position:"absolute",left:`${(K.x+a.left)/n*100}%`,top:`${(i+C+$/2)/W*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),G&&U.jsxs(Z.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",X," → ",r]})]})},pE=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:20,maxSeatSize:20},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:16,maxSeatSize:16},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:12,maxSeatSize:12},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:8.5,maxSeatSize:8.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:7,maxSeatSize:7},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:6.5,maxSeatSize:6.5}],Vv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},Zv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class Su{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Su.prototype.normal={};Su.prototype.property={};Su.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 Su(r,n,t)}function qs(e){return e.toLowerCase()}class lr{constructor(t,r){this.attribute=r,this.property=t}}lr.prototype.attribute="";lr.prototype.booleanish=!1;lr.prototype.boolean=!1;lr.prototype.commaOrSpaceSeparated=!1;lr.prototype.commaSeparated=!1;lr.prototype.defined=!1;lr.prototype.mustUseProperty=!1;lr.prototype.number=!1;lr.prototype.overloadedBoolean=!1;lr.prototype.property="";lr.prototype.spaceSeparated=!1;lr.prototype.space=void 0;let cL=0;const _t=ha(),ce=ha(),Iy=ha(),rt=ha(),Yt=ha(),La=ha(),mr=ha();function ha(){return 2**++cL}const Ny=Object.freeze(Object.defineProperty({__proto__:null,boolean:_t,booleanish:ce,commaOrSpaceSeparated:mr,commaSeparated:La,number:rt,overloadedBoolean:Iy,spaceSeparated:Yt},Symbol.toStringTag,{value:"Module"})),Uf=Object.keys(Ny);class Jv extends lr{constructor(t,r,n,i){let a=-1;if(super(t,r),a_(this,"space",i),typeof n=="number")for(;++a<Uf.length;){const o=Uf[a];a_(this,Uf[a],(n&Ny[o])===Ny[o])}}}Jv.prototype.defined=!0;function a_(e,t,r){r&&(e[t]=r)}function To(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Jv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[qs(n)]=n,r[qs(a.attribute)]=n}return new Su(t,r,e.space)}const mE=To({properties:{ariaActiveDescendant:null,ariaAtomic:ce,ariaAutoComplete:null,ariaBusy:ce,ariaChecked:ce,ariaColCount:rt,ariaColIndex:rt,ariaColSpan:rt,ariaControls:Yt,ariaCurrent:null,ariaDescribedBy:Yt,ariaDetails:null,ariaDisabled:ce,ariaDropEffect:Yt,ariaErrorMessage:null,ariaExpanded:ce,ariaFlowTo:Yt,ariaGrabbed:ce,ariaHasPopup:null,ariaHidden:ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yt,ariaLevel:rt,ariaLive:null,ariaModal:ce,ariaMultiLine:ce,ariaMultiSelectable:ce,ariaOrientation:null,ariaOwns:Yt,ariaPlaceholder:null,ariaPosInSet:rt,ariaPressed:ce,ariaReadOnly:ce,ariaRelevant:null,ariaRequired:ce,ariaRoleDescription:Yt,ariaRowCount:rt,ariaRowIndex:rt,ariaRowSpan:rt,ariaSelected:ce,ariaSetSize:rt,ariaSort:null,ariaValueMax:rt,ariaValueMin:rt,ariaValueNow:rt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yE(e,t){return t in e?e[t]:t}function gE(e,t){return yE(e,t.toLowerCase())}const fL=To({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:La,acceptCharset:Yt,accessKey:Yt,action:null,allow:null,allowFullScreen:_t,allowPaymentRequest:_t,allowUserMedia:_t,alt:null,as:null,async:_t,autoCapitalize:null,autoComplete:Yt,autoFocus:_t,autoPlay:_t,blocking:Yt,capture:null,charSet:null,checked:_t,cite:null,className:Yt,cols:rt,colSpan:null,content:null,contentEditable:ce,controls:_t,controlsList:Yt,coords:rt|La,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_t,defer:_t,dir:null,dirName:null,disabled:_t,download:Iy,draggable:ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_t,formTarget:null,headers:Yt,height:rt,hidden:Iy,high:rt,href:null,hrefLang:null,htmlFor:Yt,httpEquiv:Yt,id:null,imageSizes:null,imageSrcSet:null,inert:_t,inputMode:null,integrity:null,is:null,isMap:_t,itemId:null,itemProp:Yt,itemRef:Yt,itemScope:_t,itemType:Yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_t,low:rt,manifest:null,max:null,maxLength:rt,media:null,method:null,min:null,minLength:rt,multiple:_t,muted:_t,name:null,nonce:null,noModule:_t,noValidate:_t,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_t,optimum:rt,pattern:null,ping:Yt,placeholder:null,playsInline:_t,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_t,referrerPolicy:null,rel:Yt,required:_t,reversed:_t,rows:rt,rowSpan:rt,sandbox:Yt,scope:null,scoped:_t,seamless:_t,selected:_t,shadowRootClonable:_t,shadowRootDelegatesFocus:_t,shadowRootMode:null,shape:null,size:rt,sizes:null,slot:null,span:rt,spellCheck:ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rt,step:null,style:null,tabIndex:rt,target:null,title:null,translate:null,type:null,typeMustMatch:_t,useMap:null,value:ce,width:rt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yt,axis:null,background:null,bgColor:null,border:rt,borderColor:null,bottomMargin:rt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_t,declare:_t,event:null,face:null,frame:null,frameBorder:null,hSpace:rt,leftMargin:rt,link:null,longDesc:null,lowSrc:null,marginHeight:rt,marginWidth:rt,noResize:_t,noHref:_t,noShade:_t,noWrap:_t,object:null,profile:null,prompt:null,rev:null,rightMargin:rt,rules:null,scheme:null,scrolling:ce,standby:null,summary:null,text:null,topMargin:rt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_t,disableRemotePlayback:_t,prefix:null,property:null,results:rt,security:null,unselectable:null},space:"html",transform:gE}),hL=To({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:mr,accentHeight:rt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rt,amplitude:rt,arabicForm:null,ascent:rt,attributeName:null,attributeType:null,azimuth:rt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rt,by:null,calcMode:null,capHeight:rt,className:Yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:rt,diffuseConstant:rt,direction:null,display:null,dur:null,divisor:rt,dominantBaseline:null,download:_t,dx:null,dy:null,edgeMode:null,editable:null,elevation:rt,enableBackground:null,end:null,event:null,exponent:rt,externalResourcesRequired:null,fill:null,fillOpacity:rt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:La,g2:La,glyphName:La,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rt,horizOriginX:rt,horizOriginY:rt,id:null,ideographic:rt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rt,k:rt,k1:rt,k2:rt,k3:rt,k4:rt,kernelMatrix:mr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:rt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:rt,overlineThickness:rt,paintOrder:null,panose1:null,path:null,pathLength:rt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rt,pointsAtY:rt,pointsAtZ:rt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mr,rev:mr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mr,requiredFeatures:mr,requiredFonts:mr,requiredFormats:mr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:rt,specularExponent:rt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rt,strikethroughThickness:rt,string:null,stroke:null,strokeDashArray:mr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rt,strokeOpacity:rt,strokeWidth:null,style:null,surfaceScale:rt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mr,tabIndex:rt,tableValues:null,target:null,targetX:rt,targetY:rt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:rt,underlineThickness:rt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rt,values:null,vAlphabetic:rt,vMathematical:rt,vectorEffect:null,vHanging:rt,vIdeographic:rt,version:null,vertAdvY:rt,vertOriginX:rt,vertOriginY:rt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yE}),vE=To({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=To({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gE}),_E=To({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),pL=/[A-Z]/g,o_=/-[a-z]/g,dL=/^data[-\w.:]+$/i;function xE(e,t){const r=qs(t);let n=t,i=lr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&dL.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(o_,yL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!o_.test(a)){let o=a.replace(pL,mL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Jv}return new i(n,t)}function mL(e){return"-"+e.toLowerCase()}function yL(e){return e.charAt(1).toUpperCase()}const wE=dE([mE,fL,vE,bE,_E],"html"),Qv=dE([mE,hL,vE,bE,_E],"svg");function s_(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function gL(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const u_=/[#.]/g;function vL(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){u_.lastIndex=i;const s=u_.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 l_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function bL(e){return e.join(" ").trim()}function SE(e,t,r){const n=r?SL(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=vL(a,t);const l=u.tagName.toLowerCase(),c=n?n.get(l):void 0;if(u.tagName=c||l,_L(o))s.unshift(o);else for(const[f,h]of Object.entries(o))xL(e,u.properties,f,h)}for(const l of s)Ly(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function _L(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 xL(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=l_(n):i.commaSeparated?a=s_(n):i.commaOrSpaceSeparated?a=l_(s_(n).join(" ")):a=c_(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?wL(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(c_(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Ly(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Ly(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ly(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function c_(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||qs(r)===qs(t)))return!0}return r}function wL(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function SL(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const AL=["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 Au=SE(Qv,"g",AL),AE=(e=Au)=>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:or.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:or.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:or.neoGrey[400],"stroke-width":.5})]),OE=(e=Au)=>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=Au)=>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:or.neoGrey[200],lines:or.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},OL=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>U.jsx(Z.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:U.jsxs(Z.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:[U.jsx("thead",{children:U.jsxs(Z.TableRow,{children:[U.jsx(Z.TableCell,{}),U.jsx(Z.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?U.jsxs(U.Fragment,{children:[U.jsx(Z.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),U.jsx(Z.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):U.jsxs(U.Fragment,{children:[U.jsx(Z.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),U.jsx(Z.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),U.jsx(Z.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),U.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 U.jsxs(Z.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:[U.jsx(Z.TableCell,{align:"center",sx:{width:20},children:U.jsx(Z.Box,{sx:{width: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:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
16
16
  0deg,
17
17
  transparent,
18
18
  transparent 3px,
19
- ${De.greyHatch.lines} 3px,
20
- ${De.greyHatch.lines} 4px
21
- )`,borderRadius:"50%"}},...n.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
19
+ ${zt.greyHatch.lines} 3px,
20
+ ${zt.greyHatch.lines} 4px
21
+ )`,borderRadius:"50%"}},...a.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
22
22
  45deg,
23
23
  transparent,
24
24
  transparent 3px,
25
- ${De.dataMissingHatch.lines} 3px,
26
- ${De.dataMissingHatch.lines} 4px
27
- )`,borderRadius:"50%"}},...n.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
25
+ ${zt.dataMissingHatch.lines} 3px,
26
+ ${zt.dataMissingHatch.lines} 4px
27
+ )`,borderRadius:"50%"}},...a.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
28
28
  -45deg,
29
29
  transparent,
30
30
  transparent 3px,
31
- ${De.noLstHatch.lines} 3px,
32
- ${De.noLstHatch.lines} 4px
33
- )`,borderRadius:"50%"}}}})}),G.jsx(ee.TableCell,{children:G.jsxs(ee.Stack,{direction:"row",alignItems:"center",gap:.5,children:[G.jsx("span",{children:n.label}),n.tooltip&&G.jsx(ee.Tooltip,{title:n.tooltip,placement:"right",arrow:!0,children:G.jsx(GO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),G.jsx(ee.TableCell,{align:"right",children:n.value}),G.jsxs(ee.TableCell,{align:"right",children:[n.percentage,"%"]})]},n.id)})})]})}),s0={"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."},bN=t=>{const e=t.timeSeries[t.timeSeries.length-1];if(!e)return[];const r=t.categories.filter(l=>{var c;return!((c=l.parliamentMapping)!=null&&c.isSpecialCategory)}),n=r.reduce((l,c)=>l+(e.values[c.id]??0),0),i=t.metadata.specialCounts,a=i?(i.notApplicable??0)+(i.noLst??0)+(i.unavailable??0):0,o=n+a,s=r.map(l=>{const c=Math.round(e.values[l.id]??0),f=c/o*100,h=f>0&&f<1?"< 1":f.toFixed(0);return{id:l.id,label:l.label,value:c,percentage:Number.parseFloat(h),color:l.color,tooltip:s0[l.label]}}),u=[];if(i){const l=t.categories.filter(c=>{var f;return(f=c.parliamentMapping)==null?void 0:f.isSpecialCategory});for(const c of l){let f=0;if(c.label==="N/A"?f=Math.round(i.notApplicable??0):c.label==="No LST"?f=Math.round(i.noLst??0):c.label==="Data Missing"&&(f=Math.round(i.unavailable??0)),f>0){const h=f/o*100,d=h>0&&h<1?"< 1":h.toFixed(0);u.push({id:c.id,label:c.label,value:f,percentage:Number.parseFloat(d),color:c.color,tooltip:s0[c.label]})}}}return[...s,...u]},_N=t=>{if(!t.timeSeries[t.timeSeries.length-1])throw new Error("ChronoPerspectiveChart: No data points available");const r=t.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=t.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,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},xN=t=>{if(!t.timeSeries||t.timeSeries.length===0)throw new Error("ChronoPerspectiveChart: timeSeries must not be empty");if(!t.categories||t.categories.length===0)throw new Error("ChronoPerspectiveChart: categories must not be empty");if(!t.metadata||typeof t.metadata.totalRepositories!="number")throw new Error("ChronoPerspectiveChart: metadata.totalRepositories is required");if(!t.timeSeries.every((n,i)=>i===0||n.timestamp>=t.timeSeries[i-1].timestamp))throw new Error("ChronoPerspectiveChart: timeSeries must be sorted by timestamp (ascending)");const r=t.timeSeries[0];if(r){for(const n of t.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoPerspectiveChart: Category "${n.id}" not found in timeSeries data`)}},wN=({data:t,mode:e,selectedIndex:r,title:n,subtitle:i,showHeader:a=!0,height:o=400,timeRange:s,onTimeRangeChange:u,enableBrush:l=!1,showLegend:c=!0,showTooltip:f=!0,showGrid:h=!0,enableAnimation:d=!0,animationDuration:y=800,formatDate:m,formatValue:p,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b})=>{xN(t);const[x,v]=O.useState(null),w=O.useMemo(()=>t.timeSeries.length===1||r!==void 0?"point-in-time":e!==void 0?e:"historical",[r,e,t.timeSeries.length]),S=O.useMemo(()=>{var q;return r!==void 0&&t.timeSeries[r]?t.timeSeries[r].timestamp:(q=t.timeSeries[t.timeSeries.length-1])==null?void 0:q.timestamp},[r,t.timeSeries]),A=t.timeSeries[0].timestamp,P=t.timeSeries[t.timeSeries.length-1].timestamp,[M,T]=O.useState([A,P]),E=s??M,C=O.useCallback(q=>{u?u(q):T(q)},[u]);O.useEffect(()=>{v(null)},[]);const I=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),k=O.useMemo(()=>_N(t),[t]),j=O.useMemo(()=>bN(t),[t]),$=O.useMemo(()=>{const q=t.timeSeries[t.timeSeries.length-1];return q?Object.values(q.values).reduce((U,X)=>U+X,0):0},[t.timeSeries]),N=O.useMemo(()=>Qv({repositoryCount:$}),[$]),B=O.useMemo(()=>eg({repositoryCount:$}),[$]),R=O.useMemo(()=>t.events?t.events.map(q=>({timestamp:q.timestamp,label:q.eventName,color:"#992FB9"})):[],[t.events]),L=O.useCallback(q=>{if(q){const U=t.categories.find(X=>X.label===q.label);v((U==null?void 0:U.id)??null)}else v(null)},[t.categories]);return G.jsxs(ee.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[a&&(n||i)&&G.jsxs(ee.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[n&&G.jsx(ee.Typography,{variant:"h5",sx:{fontWeight:500},children:n}),i&&G.jsx(ee.Typography,{variant:"body2",sx:{color:"text.secondary"},children:i})]}),G.jsxs(ee.Box,{sx:{position:"relative",width:"100%",minHeight:o},children:[G.jsx(pT,{data:k.data,categories:k.categories,mode:w==="point-in-time"?"parliament":"stacked-area",width:900,height:o,timeRange:E,onTimeRangeChange:C,enableBrush:l,showGrid:h,showAxes:!0,margin:I,markers:R,formatDate:m,formatValue:p,animationDuration:y,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:L,hoveredCategory:x,arcAngle:N,parliamentRadius:200,seatSize:B,parliamentTimestamp:S}),t.events&&t.events.length>0&&G.jsx(ee.Box,{sx:{mt:2,ml:"120px",mr:"30px"},children:G.jsx(yT,{events:t.events,showHeader:!1,showMonthLabels:!1,timeRange:E,onTimeRangeChange:C,zoomToSelection:!0,height:32,formatDate:m})})]}),G.jsx(gN,{categories:j,activeCategory:x,onCategoryHover:v})]})},Nm={capture:!0,passive:!1};function Lm(t){t.preventDefault(),t.stopImmediatePropagation()}function SN(t){var e=t.document.documentElement,r=Qt(t).on("dragstart.drag",Lm,Nm);"onselectstart"in e?r.on("selectstart.drag",Lm,Nm):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ON(t,e){var r=t.document.documentElement,n=Qt(t).on("dragstart.drag",null);e&&(n.on("click.drag",Lm,Nm),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Lc=t=>()=>t;function AN(t,{sourceEvent:e,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,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 PN(t){t.stopImmediatePropagation()}function qc(t){t.preventDefault(),t.stopImmediatePropagation()}var u0={name:"drag"},Bc={name:"space"},Mi={name:"handle"},ki={name:"center"};const{abs:l0,max:Ot,min:At}=Math;function c0(t){return[+t[0],+t[1]]}function f0(t){return[c0(t[0]),c0(t[1])]}var pu={name:"x",handles:["w","e"].map(qm),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Fc={},Yr={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"},h0={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},d0={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},TN={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},EN={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function qm(t){return{type:t}}function CN(t){return!t.ctrlKey&&!t.button}function MN(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function kN(){return navigator.maxTouchPoints||"ontouchstart"in this}function zc(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function jN(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function IN(){return RN(pu)}function RN(t){var e=MN,r=CN,n=kN,i=!0,a=Mv("start","brush","end"),o=6,s;function u(p){var g=p.property("__brush",m).selectAll(".overlay").data([qm("overlay")]);g.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Yr.overlay).merge(g).each(function(){var b=zc(this).extent;Qt(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),p.selectAll(".selection").data([qm("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Yr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var _=p.selectAll(".handle").data(t.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 Yr[b.type]}),p.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(p,g,_){p.tween?p.on("start.brush",function(b){c(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){c(this,arguments).end(b)}).tween("brush",function(){var b=this,x=b.__brush,v=c(b,arguments),w=x.selection,S=t.input(typeof g=="function"?g.apply(this,arguments):g,x.extent),A=gi(w,S);function P(M){x.selection=M===1&&S===null?null:A(M),l.call(b),v.brush()}return w!==null&&S!==null?P:P(1)}):p.each(function(){var b=this,x=arguments,v=b.__brush,w=t.input(typeof g=="function"?g.apply(b,x):g,v.extent),S=c(b,x).beforestart();ym(b),v.selection=w===null?null:w,l.call(b),S.start(_).brush(_).end(_)})},u.clear=function(p,g){u.move(p,null,g)};function l(){var p=Qt(this),g=zc(this).selection;g?(p.selectAll(".selection").style("display",null).attr("x",g[0][0]).attr("y",g[0][1]).attr("width",g[1][0]-g[0][0]).attr("height",g[1][1]-g[0][1]),p.selectAll(".handle").style("display",null).attr("x",function(_){return _.type[_.type.length-1]==="e"?g[1][0]-o/2:g[0][0]-o/2}).attr("y",function(_){return _.type[0]==="s"?g[1][1]-o/2:g[0][1]-o/2}).attr("width",function(_){return _.type==="n"||_.type==="s"?g[1][0]-g[0][0]+o:o}).attr("height",function(_){return _.type==="e"||_.type==="w"?g[1][1]-g[0][1]+o:o})):p.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(p,g,_){var b=p.__brush.emitter;return b&&(!_||!b.clean)?b:new f(p,g,_)}function f(p,g,_){this.that=p,this.args=g,this.state=p.__brush,this.active=0,this.clean=_}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(p,g){return this.starting?(this.starting=!1,this.emit("start",p,g)):this.emit("brush",p),this},brush:function(p,g){return this.emit("brush",p,g),this},end:function(p,g){return--this.active===0&&(delete this.state.emitter,this.emit("end",p,g)),this},emit:function(p,g,_){var b=Qt(this.that).datum();a.call(p,this.that,new AN(p,{sourceEvent:g,target:u,selection:t.output(this.state.selection),mode:_,dispatch:a}),b)}};function h(p){if(s&&!p.touches||!r.apply(this,arguments))return;var g=this,_=p.target.__data__.type,b=(i&&p.metaKey?_="overlay":_)==="selection"?u0:i&&p.altKey?ki:Mi,x=t===Fc?null:TN[_],v=t===pu?null:EN[_],w=zc(g),S=w.extent,A=w.selection,P=S[0][0],M,T,E=S[0][1],C,I,k=S[1][0],j,$,N=S[1][1],B,R,L=0,q=0,U,X=x&&v&&i&&p.shiftKey,V,te,re=Array.from(p.touches||[p],ie=>{const fe=ie.identifier;return ie=Ob(ie,g),ie.point0=ie.slice(),ie.identifier=fe,ie});ym(g);var H=c(g,arguments,!0).beforestart();if(_==="overlay"){A&&(U=!0);const ie=[re[0],re[1]||re[0]];w.selection=A=[[M=t===Fc?P:At(ie[0][0],ie[1][0]),C=t===pu?E:At(ie[0][1],ie[1][1])],[j=t===Fc?k:Ot(ie[0][0],ie[1][0]),B=t===pu?N:Ot(ie[0][1],ie[1][1])]],re.length>1&&se(p)}else M=A[0][0],C=A[0][1],j=A[1][0],B=A[1][1];T=M,I=C,$=j,R=B;var F=Qt(g).attr("pointer-events","none"),K=F.selectAll(".overlay").attr("cursor",Yr[_]);if(p.touches)H.moved=D,H.ended=W;else{var Q=Qt(p.view).on("mousemove.brush",D,!0).on("mouseup.brush",W,!0);i&&Q.on("keydown.brush",ue,!0).on("keyup.brush",de,!0),SN(p.view)}l.call(g),H.start(p,b.name);function D(ie){for(const fe of ie.changedTouches||[ie])for(const we of re)we.identifier===fe.identifier&&(we.cur=Ob(fe,g));if(X&&!V&&!te&&re.length===1){const fe=re[0];l0(fe.cur[0]-fe[0])>l0(fe.cur[1]-fe[1])?te=!0:V=!0}for(const fe of re)fe.cur&&(fe[0]=fe.cur[0],fe[1]=fe.cur[1]);U=!0,qc(ie),se(ie)}function se(ie){const fe=re[0],we=fe.point0;var ae;switch(L=fe[0]-we[0],q=fe[1]-we[1],b){case Bc:case u0:{x&&(L=Ot(P-M,At(k-j,L)),T=M+L,$=j+L),v&&(q=Ot(E-C,At(N-B,q)),I=C+q,R=B+q);break}case Mi:{re[1]?(x&&(T=Ot(P,At(k,re[0][0])),$=Ot(P,At(k,re[1][0])),x=1),v&&(I=Ot(E,At(N,re[0][1])),R=Ot(E,At(N,re[1][1])),v=1)):(x<0?(L=Ot(P-M,At(k-M,L)),T=M+L,$=j):x>0&&(L=Ot(P-j,At(k-j,L)),T=M,$=j+L),v<0?(q=Ot(E-C,At(N-C,q)),I=C+q,R=B):v>0&&(q=Ot(E-B,At(N-B,q)),I=C,R=B+q));break}case ki:{x&&(T=Ot(P,At(k,M-L*x)),$=Ot(P,At(k,j+L*x))),v&&(I=Ot(E,At(N,C-q*v)),R=Ot(E,At(N,B+q*v)));break}}$<T&&(x*=-1,ae=M,M=j,j=ae,ae=T,T=$,$=ae,_ in h0&&K.attr("cursor",Yr[_=h0[_]])),R<I&&(v*=-1,ae=C,C=B,B=ae,ae=I,I=R,R=ae,_ in d0&&K.attr("cursor",Yr[_=d0[_]])),w.selection&&(A=w.selection),V&&(T=A[0][0],$=A[1][0]),te&&(I=A[0][1],R=A[1][1]),(A[0][0]!==T||A[0][1]!==I||A[1][0]!==$||A[1][1]!==R)&&(w.selection=[[T,I],[$,R]],l.call(g),H.brush(ie,b.name))}function W(ie){if(PN(ie),ie.touches){if(ie.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else ON(ie.view,U),Q.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),K.attr("cursor",Yr.overlay),w.selection&&(A=w.selection),jN(A)&&(w.selection=null,l.call(g)),H.end(ie,b.name)}function ue(ie){switch(ie.keyCode){case 16:{X=x&&v;break}case 18:{b===Mi&&(x&&(j=$-L*x,M=T+L*x),v&&(B=R-q*v,C=I+q*v),b=ki,se(ie));break}case 32:{(b===Mi||b===ki)&&(x<0?j=$-L:x>0&&(M=T-L),v<0?B=R-q:v>0&&(C=I-q),b=Bc,K.attr("cursor",Yr.selection),se(ie));break}default:return}qc(ie)}function de(ie){switch(ie.keyCode){case 16:{X&&(V=te=X=!1,se(ie));break}case 18:{b===ki&&(x<0?j=$:x>0&&(M=T),v<0?B=R:v>0&&(C=I),b=Mi,se(ie));break}case 32:{b===Bc&&(ie.altKey?(x&&(j=$-L*x,M=T+L*x),v&&(B=R-q*v,C=I+q*v),b=ki):(x<0?j=$:x>0&&(M=T),v<0?B=R:v>0&&(C=I),b=Mi),K.attr("cursor",Yr[_]),se(ie));break}default:return}qc(ie)}}function d(p){c(this,arguments).moved(p)}function y(p){c(this,arguments).ended(p)}function m(){var p=this.__brush||{selection:null};return p.extent=f0(e.apply(this,arguments)),p.dim=t,p}return u.extent=function(p){return arguments.length?(e=typeof p=="function"?p:Lc(f0(p)),u):e},u.filter=function(p){return arguments.length?(r=typeof p=="function"?p:Lc(!!p),u):r},u.touchable=function(p){return arguments.length?(n=typeof p=="function"?p:Lc(!!p),u):n},u.handleSize=function(p){return arguments.length?(o=+p,u):o},u.keyModifiers=function(p){return arguments.length?(i=!!p,u):i},u.on=function(){var p=a.on.apply(a,arguments);return p===a?u:p},u}const $N=({containerRef:t,data:e,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showAxes:u=!0,enableBrush:l=!1,onTimeRangeChange:c,formatDate:f,formatValue:h,markers:d=[]})=>{O.useEffect(()=>{if(!t.current||e.length===0||r.length===0)return;const y=Qt(t.current),m=n-a.left-a.right,p=i-a.top-a.bottom;y.selectAll("*").remove();const g=y.append("g").attr("transform",`translate(${a.left},${a.top})`),_=r.map(k=>k.dataKey),b=Cv().keys(_),x=b(e),v=e.map(k=>k.timestamp),w=o?o[0]:Math.min(...v),S=o?o[1]:Math.max(...v),A=bv().domain([new Date(w),new Date(S)]).range([0,m]),P=e.filter(k=>k.timestamp>=w&&k.timestamp<=S),M=b(P),T=M.length>0?Math.max(...M[M.length-1].map(k=>k[1]??0)):0,E=Zi().domain([0,T*1.1]).range([p,0]).nice();s&&(g.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(ko(A).ticks(6).tickSize(p).tickFormat(()=>"")),g.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(jo(E).ticks(5).tickSize(-m).tickFormat(()=>"")));const C=Zn().x(k=>A(new Date(k.data.timestamp))).y0(k=>E(k[0])).y1(k=>E(k[1])).curve(fm.alpha(.5)),I=g.append("g").attr("class","areas");if(x.forEach((k,j)=>{const $=r[j];$&&I.append("path").datum(k).attr("class",`area area-${$.dataKey}`).attr("fill",$.color).attr("fill-opacity",$.fillOpacity??.7).attr("stroke",$.color).attr("stroke-width",$.strokeWidth??1.5).attr("d",C)}),d.length>0){const k=g.append("g").attr("class","markers");d.forEach(j=>{if(j.timestamp>=w&&j.timestamp<=S){const $=A(new Date(j.timestamp));k.append("line").attr("x1",$).attr("x2",$).attr("y1",0).attr("y2",p).attr("stroke",j.color??"#992FB9").attr("stroke-width",2).attr("stroke-dasharray","5,5").attr("opacity",.6),j.label&&k.append("text").attr("x",$).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",j.color??"#992FB9").text(j.label)}})}if(u){const k=ko(A).ticks(6);f&&k.tickFormat($=>f(+$)),g.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${p})`).call(k).selectAll("text").attr("font-size",11);const j=jo(E).ticks(5);h&&j.tickFormat($=>h(+$)),g.append("g").attr("class","axis axis-y").call(j).selectAll("text").attr("font-size",11)}if(l&&c){const k=IN().extent([[0,0],[m,p]]).on("end",j=>{if(!j.selection)return;const[$,N]=j.selection,B=[+A.invert($),+A.invert(N)];c(B),y.select(".brush").call(k.move,null)});g.append("g").attr("class","brush").call(k)}return()=>{y.selectAll("*").remove()}},[t,e,r,n,i,a,o,s,u,l,c,f,h,d])},DN=({data:t,categories:e,width:r=800,height:n=400,margin:i={top:20,right:30,bottom:40,left:60},timeRange:a,showGrid:o=!0,showAxes:s=!0,formatDate:u,formatValue:l,onTimeRangeChange:c,enableBrush:f=!1,markers:h=[]})=>{const d=O.useRef(null);return $N({containerRef:d,data:t,categories:e,width:r,height:n,margin:i,timeRange:a,showGrid:o,showAxes:s,enableBrush:f,onTimeRangeChange:c,formatDate:u,formatValue:l,markers:h}),G.jsx(ee.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:G.jsx("svg",{ref:d,width:r,height:n,style:{maxWidth:"100%",height:"auto"}})})},NN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],p0={}.hasOwnProperty;function LN(t,e){const r=e||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&p0.call(i,t)){const u=String(i[t]);o=p0.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 qN=/["&'<>`]/g,BN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FN=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,zN=/[|\\{}()[\]^$+*?.]/g,m0=new WeakMap;function UN(t,e){if(t=t.replace(e.subset?WN(e.subset):qN,n),e.subset||e.escapeOnly)return t;return t.replace(BN,r).replace(FN,n);function r(i,a,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),e)}function n(i,a,o){return e.format(i.charCodeAt(0),o.charCodeAt(a+1),e)}}function WN(t){let e=m0.get(t);return e||(e=HN(t),m0.set(t,e)),e}function HN(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(zN,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const GN=/[\dA-Fa-f]/;function KN(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!GN.test(String.fromCharCode(e))?n:n+";"}const XN=/\d/;function YN(t,e,r){const n="&#"+String(t);return r&&e&&!XN.test(String.fromCharCode(e))?n:n+";"}const VN=["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"],Uc={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:"€"},ZN=["cent","copy","divide","gt","lt","not","para","times"],MT={}.hasOwnProperty,Bm={};let Ks;for(Ks in Uc)MT.call(Uc,Ks)&&(Bm[Uc[Ks]]=Ks);const JN=/[^\dA-Za-z]/;function QN(t,e,r,n){const i=String.fromCharCode(t);if(MT.call(Bm,i)){const a=Bm[i],o="&"+a;return r&&VN.includes(a)&&!ZN.includes(a)&&(!n||e&&e!==61&&JN.test(String.fromCharCode(e)))?o:o+";"}return""}function eL(t,e,r){let n=KN(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=QN(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=YN(t,e,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Gi(t,e){return UN(t,Object.assign({format:eL},e))}const tL=/^>|^->|<!--|-->|--!>|<!-$/g,rL=[">"],nL=["<",">"];function iL(t,e,r,n){return n.settings.bogusComments?"<?"+Gi(t.value,Object.assign({},n.settings.characterReferences,{subset:rL}))+">":"<!--"+t.value.replace(tL,i)+"-->";function i(a){return Gi(a,Object.assign({},n.settings.characterReferences,{subset:nL}))}}function aL(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function y0(t,e){const r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}const oL=/[ \t\n\f\r]/g;function ng(t){return typeof t=="object"?t.type==="text"?v0(t.value):!1:v0(t)}function v0(t){return t.replace(oL,"")===""}const dt=jT(1),kT=jT(-1),sL=[];function jT(t){return e;function e(r,n,i){const a=r?r.children:sL;let o=(n||0)+t,s=a[o];if(!i)for(;s&&ng(s);)o+=t,s=a[o];return s}}const uL={}.hasOwnProperty;function IT(t){return e;function e(r,n,i){return uL.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const ig=IT({body:cL,caption:Wc,colgroup:Wc,dd:pL,dt:dL,head:Wc,html:lL,li:hL,optgroup:mL,option:yL,p:fL,rp:g0,rt:g0,tbody:gL,td:b0,tfoot:bL,th:b0,thead:vL,tr:_L});function Wc(t,e,r){const n=dt(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ng(n.value.charAt(0)))}function lL(t,e,r){const n=dt(r,e);return!n||n.type!=="comment"}function cL(t,e,r){const n=dt(r,e);return!n||n.type!=="comment"}function fL(t,e,r){const n=dt(r,e);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 hL(t,e,r){const n=dt(r,e);return!n||n.type==="element"&&n.tagName==="li"}function dL(t,e,r){const n=dt(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function pL(t,e,r){const n=dt(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function g0(t,e,r){const n=dt(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function mL(t,e,r){const n=dt(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function yL(t,e,r){const n=dt(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function vL(t,e,r){const n=dt(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function gL(t,e,r){const n=dt(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function bL(t,e,r){return!dt(r,e)}function _L(t,e,r){const n=dt(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function b0(t,e,r){const n=dt(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const xL=IT({body:OL,colgroup:AL,head:SL,html:wL,tbody:PL});function wL(t){const e=dt(t,-1);return!e||e.type!=="comment"}function SL(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function OL(t){const e=dt(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&ng(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function AL(t,e,r){const n=kT(r,e),i=dt(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&ig(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function PL(t,e,r){const n=kT(r,e),i=dt(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&ig(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Xs={name:[[`
31
+ ${zt.noLstHatch.lines} 3px,
32
+ ${zt.noLstHatch.lines} 4px
33
+ )`,borderRadius:"50%"}}}})}),U.jsx(Z.TableCell,{children:U.jsxs(Z.Stack,{direction:"row",alignItems:"center",gap:.5,children:[U.jsx("span",{children:a.label}),a.tooltip&&U.jsx(Z.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:U.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?U.jsxs(U.Fragment,{children:[U.jsx(Z.TableCell,{align:"right",children:a.value}),U.jsxs(Z.TableCell,{align:"right",children:[a.percentage,"%"]})]}):U.jsxs(U.Fragment,{children:[U.jsx(Z.TableCell,{align:"right",children:a.value}),U.jsx(Z.TableCell,{align:"right",children:a.max??"-"}),U.jsx(Z.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),f_={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},TL=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,u=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,l=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:f_[f.label]};if(u){const d=u.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:f_[h.label]})}}}return[...l,...c]},PL=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}},EL=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,enableBrush:l=!1,showLegend:c=!0,showTooltip:f=!0,showGrid:h=!0,enableAnimation:p=!0,animationDuration:y=5439,disableTimeline:m=!1,formatDate:d,formatValue:v,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x})=>{EL(e);const[g,w]=A.useState(null),[S,O]=A.useState(!0),T=A.useRef("historical"),M=A.useRef(void 0),P=A.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),E=A.useMemo(()=>{var H;let F;return t!==void 0&&e.timeSeries[t]?(F=e.timeSeries[t].timestamp,M.current=F):T.current==="point-in-time"&&P==="historical"&&M.current!==void 0?F=M.current:F=(H=e.timeSeries[e.timeSeries.length-1])==null?void 0:H.timestamp,T.current=P,F},[t,e.timeSeries,P]),k=e.timeSeries[0].timestamp,R=e.timeSeries[e.timeSeries.length-1].timestamp,[$,C]=A.useState([k,R]),I=s??$,L=A.useCallback(F=>{u?u(F):C(F)},[u]);A.useEffect(()=>{w(null)},[P]);const q=A.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),D=A.useMemo(()=>PL(e),[e]),j=A.useMemo(()=>TL(e,P),[e,P]),B=A.useMemo(()=>{const F=e.timeSeries[e.timeSeries.length-1];return F?Object.values(F.values).reduce((H,Q)=>H+Q,0):0},[e.timeSeries]),W=A.useMemo(()=>Vv({repositoryCount:B}),[B]),G=A.useMemo(()=>Zv({repositoryCount:B}),[B]),X=A.useMemo(()=>{const F=o-q.top-q.bottom;return Math.round(F*.9)},[o,q]),J=A.useMemo(()=>e.events?e.events.map(F=>({timestamp:F.timestamp,label:F.eventName,color:typeof F.color=="string"?F.color:"#2F42FF"})):[],[e.events]),et=A.useCallback(F=>{if(F){const H=e.categories.find(Q=>Q.label===F.label);w((H==null?void 0:H.id)??null)}else w(null)},[e.categories]),K=A.useCallback(F=>{O(!F),_&&_(F)},[_]);return U.jsxs(Z.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&U.jsxs(Z.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&U.jsx(Z.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&U.jsx(Z.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),U.jsx(Z.Box,{sx:{position:"relative",width:"100%"},children:U.jsx(hE,{data:D.data,categories:D.categories,mode:P==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:I,onTimeRangeChange:L,enableBrush:l,showGrid:h,showAxes:!0,margin:q,markers:J,formatDate:d,formatValue:v,animationDuration:y,onAnimationStateChange:K,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:et,hoveredCategory:g,arcAngle:W,parliamentRadius:X,seatSize:G,parliamentTimestamp:E,timelineEvents:e.events??[],showTimeline:P==="historical"&&!m})}),U.jsx(OL,{categories:j,activeCategory:g,onCategoryHover:w,mode:P,visible:S})]})},CL=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:u=!0,showYAxis:l=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:v})=>{A.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const _=te(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})`),O=r.map(j=>j.dataKey),T=El().keys(O),M=T(t),P=t.map(j=>j.timestamp),E=o?o[0]:Math.min(...P),k=o?o[1]:Math.max(...P),R=wl().domain([new Date(E),new Date(k)]).range([0,b]),$=t.filter(j=>j.timestamp>=E&&j.timestamp<=k),C=T($),I=C.length>0?Math.max(...C[C.length-1].map(j=>j[1]??0)):0,L=ta().domain([0,I*1.1]).range([x,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Os(R).ticks(6).tickSize(x).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ts(L).ticks(5).tickSize(-b).tickFormat(()=>"")));const q=Li().x(j=>R(new Date(j.data.timestamp))).y0(j=>L(j[0])).y1(j=>L(j[1])).curve(xI.alpha(.5)),D=S.append("g").attr("class","areas");if(M.forEach((j,B)=>{const W=r[B];if(!W)return;const G=D.append("path").datum(j).attr("class",`area area-${W.dataKey}`).attr("fill",W.color).attr("fill-opacity",W.fillOpacity??.7).attr("stroke",W.color).attr("stroke-width",W.strokeWidth??1.5).attr("d",q);W.strokeDasharray&&G.attr("stroke-dasharray",W.strokeDasharray)}),m.length>0){const j=S.append("g").attr("class","markers"),B=d==="hover"?0:.6,W=m.filter(G=>G.timestamp>=E&&G.timestamp<=k).map(G=>({...G,x:R(new Date(G.timestamp))}));if(W.forEach(G=>{const X=j.append("line").attr("class","marker-line").attr("data-timestamp",G.timestamp).attr("x1",G.x).attr("x2",G.x).attr("y1",0).attr("y2",x).attr("stroke",G.color??"#131E7A").attr("stroke-width",2).attr("opacity",B);G.strokeDasharray&&X.attr("stroke-dasharray",G.strokeDasharray),G.label&&j.append("text").attr("class","marker-label").attr("data-timestamp",G.timestamp).attr("x",G.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",G.color??"#131E7A").attr("opacity",B).text(G.label)}),d==="hover"&&W.length>0){const G=_.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),X=G.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),J=G.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let et=null;const K=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",x).attr("fill","none").attr("pointer-events","all"),F=H=>{let Q=null,N=1/0;if(W.forEach(Kt=>{const St=Math.abs(H-Kt.x);St<N&&(N=St,Q=Kt)}),!Q||N>50)return et!==null&&(et=null,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),G.style("display","none"),v==null||v(!1)),!1;const z=Q;if(et===null&&(v==null||v(!0)),et===z.timestamp)return!0;et=z.timestamp,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),j.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(z.timestamp)}).attr("opacity",.6),j.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(z.timestamp)}).attr("opacity",1);const st=new Date(z.timestamp),ft=p?p(z.timestamp):st.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),at=z.label?`${z.label}: ${ft}`:ft;J.text(at);const ht=J.node().getBBox(),Tt=8,it=ht.width+Tt*2,dt=ht.height+Tt*2;X.attr("width",it).attr("height",dt);let xt=z.x-it/2;const $t=10;return xt<0?xt=0:xt+it>b&&(xt=b-it),G.attr("transform",`translate(${a.left+xt},${a.top+$t})`),J.attr("x",it/2).attr("y",dt/2+4),G.style("display","block"),!0};K.on("mousemove",function(H){const[Q]=Ps(H,this);F(Q)&&H.stopPropagation()}),K.on("mouseleave",function(){et=null,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),G.style("display","none"),v==null||v(!1)})}}if(u){const j=Os(R).ticks(6);p&&j.tickFormat(B=>p(+B)),g.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${x})`).call(j).selectAll("text").attr("font-size",11)}if(l){const j=Ts(L).ticks(5);y&&j.tickFormat(B=>y(+B)),g.append("g").attr("class","axis axis-y").call(j).selectAll("text").attr("font-size",11)}if(c&&h){const j=Ac().extent([[0,0],[b,x]]).on("end",W=>{if(!W.selection)return;const[G,X]=W.selection,J=[+R.invert(G),+R.invert(X)];h(J),f&&_.select(".brush").call(j.move,null)}),B=S.append("g").attr("class","brush").call(j);B.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),B.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{_.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,u,l,c,f,h,p,y,m,d,v])},ML=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:u=400,margin:l={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:v,enableBrush:_=!1,zoomToSelection:b=!1,markers:x=[],markerVisibilityMode:g="hover"})=>{const w=A.useRef(null),[S,O]=A.useState(null),[T,M]=A.useState(!1);A.useEffect(()=>{T&&O(null)},[T]),CL({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:m,formatValue:d,markers:x,markerVisibilityMode:g,onMarkerHoverChange:M});const k=$=>{if(!o||!w.current||T)return;const C=w.current.getBoundingClientRect(),I=$.clientX-C.left-l.left,L=$.clientY-C.top,q=s-l.left-l.right;if(I<0||I>q){O(null);return}const D=e.map(H=>H.timestamp),j=c?c[0]:Math.min(...D),B=c?c[1]:Math.max(...D),W=I/q*(B-j)+j,X=((H,Q)=>{let N=0,ut=H.length;for(;N<ut;){const z=N+ut>>>1;H[z]<Q?N=z+1:ut=z}return N})(D,W),J=e[X-1],et=e[X];let K=et;if(J&&et?K=W-J.timestamp>et.timestamp-W?et:J:J&&(K=J),!K){O(null);return}const F=t.map(H=>({label:H.label,value:K[H.dataKey]??0,color:H.color}));O({visible:!0,x:$.clientX-C.left,y:L,timestamp:K.timestamp,values:F})},R=()=>{o&&O(null)};return U.jsxs(Z.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&U.jsxs(Z.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&U.jsx(Z.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&U.jsx(Z.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),U.jsxs(Z.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[U.jsx("svg",{ref:w,viewBox:`0 0 ${s} ${u}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:k,onMouseLeave:R}),o&&S&&S.visible&&U.jsxs(Z.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:[U.jsx(Z.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),U.jsx(Z.Stack,{spacing:.5,sx:{mt:1},children:S.values.map($=>U.jsxs(Z.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[U.jsxs(Z.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[U.jsx(Z.Box,{sx:{width:8,height:8,backgroundColor:$.color,borderRadius:"50%"}}),U.jsxs(Z.Typography,{variant:"caption",children:[$.label,":"]})]}),U.jsx(Z.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d($.value):$.value})]},$.label))})]})]}),a&&U.jsx(Z.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map($=>U.jsxs(Z.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[U.jsx(Z.Box,{sx:{width:16,height:16,backgroundColor:$.color,opacity:$.fillOpacity??.7,border:`2px solid ${$.color}`,borderRadius:"2px",...$.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
34
+ 45deg,
35
+ transparent,
36
+ transparent 4px,
37
+ ${$.color} 4px,
38
+ ${$.color} 8px
39
+ )`}}}),U.jsx(Z.Typography,{variant:"body2",children:$.label})]},$.dataKey))})]})},kL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],h_={}.hasOwnProperty;function $L(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&h_.call(i,e)){const u=String(i[e]);o=h_.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 jL=/["&'<>`]/g,RL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,DL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,IL=/[|\\{}()[\]^$+*?.]/g,p_=new WeakMap;function NL(e,t){if(e=e.replace(t.subset?LL(t.subset):jL,n),t.subset||t.escapeOnly)return e;return e.replace(RL,r).replace(DL,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 LL(e){let t=p_.get(e);return t||(t=BL(e),p_.set(e,t)),t}function BL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(IL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const qL=/[\dA-Fa-f]/;function FL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!qL.test(String.fromCharCode(t))?n:n+";"}const zL=/\d/;function UL(e,t,r){const n="&#"+String(e);return r&&t&&!zL.test(String.fromCharCode(t))?n:n+";"}const WL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Wf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},GL=["cent","copy","divide","gt","lt","not","para","times"],EE={}.hasOwnProperty,By={};let Fu;for(Fu in Wf)EE.call(Wf,Fu)&&(By[Wf[Fu]]=Fu);const HL=/[^\dA-Za-z]/;function KL(e,t,r,n){const i=String.fromCharCode(e);if(EE.call(By,i)){const a=By[i],o="&"+a;return r&&WL.includes(a)&&!GL.includes(a)&&(!n||t&&t!==61&&HL.test(String.fromCharCode(t)))?o:o+";"}return""}function YL(e,t,r){let n=FL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=KL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=UL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Ba(e,t){return NL(e,Object.assign({format:YL},t))}const XL=/^>|^->|<!--|-->|--!>|<!-$/g,VL=[">"],ZL=["<",">"];function JL(e,t,r,n){return n.settings.bogusComments?"<?"+Ba(e.value,Object.assign({},n.settings.characterReferences,{subset:VL}))+">":"<!--"+e.value.replace(XL,i)+"-->";function i(a){return Ba(a,Object.assign({},n.settings.characterReferences,{subset:ZL}))}}function QL(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function d_(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const tB=/[ \t\n\f\r]/g;function t0(e){return typeof e=="object"?e.type==="text"?m_(e.value):!1:m_(e)}function m_(e){return e.replace(tB,"")===""}const we=ME(1),CE=ME(-1),eB=[];function ME(e){return t;function t(r,n,i){const a=r?r.children:eB;let o=(n||0)+e,s=a[o];if(!i)for(;s&&t0(s);)o+=e,s=a[o];return s}}const rB={}.hasOwnProperty;function kE(e){return t;function t(r,n,i){return rB.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const e0=kE({body:iB,caption:Gf,colgroup:Gf,dd:uB,dt:sB,head:Gf,html:nB,li:oB,optgroup:lB,option:cB,p:aB,rp:y_,rt:y_,tbody:hB,td:g_,tfoot:pB,th:g_,thead:fB,tr:dB});function Gf(e,t,r){const n=we(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&t0(n.value.charAt(0)))}function nB(e,t,r){const n=we(r,t);return!n||n.type!=="comment"}function iB(e,t,r){const n=we(r,t);return!n||n.type!=="comment"}function aB(e,t,r){const n=we(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 oB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="li"}function sB(e,t,r){const n=we(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function uB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function y_(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function lB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function cB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function fB(e,t,r){const n=we(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function hB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function pB(e,t,r){return!we(r,t)}function dB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function g_(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const mB=kE({body:vB,colgroup:bB,head:gB,html:yB,tbody:_B});function yB(e){const t=we(e,-1);return!t||t.type!=="comment"}function gB(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 vB(e){const t=we(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&t0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function bB(e,t,r){const n=CE(r,t),i=we(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&e0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function _B(e,t,r){const n=CE(r,t),i=we(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&e0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const zu={name:[[`
34
40
  \f\r &/=>`.split(""),`
35
41
  \f\r "&'/=>\``.split("")],[`\0
36
42
  \f\r "&'/<=>`.split(""),`\0
@@ -38,25 +44,25 @@
38
44
  \f\r &>`.split(""),`\0
39
45
  \f\r "&'<=>\``.split("")],[`\0
40
46
  \f\r "&'<=>\``.split(""),`\0
41
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function TL(t,e,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(t.tagName.toLowerCase());const s=[];let u;i.space==="html"&&t.tagName==="svg"&&(n.schema=rg);const l=EL(n,t.properties),c=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,c&&(o=!1),(l||!a||!xL(t,e,r))&&(s.push("<",t.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||!ig(t,e,r))&&s.push("</"+t.tagName+">"),s.join("")}function EL(t,e){const r=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const a=CL(t,i,e[i]);a&&r.push(a)}}for(;++n<r.length;){const a=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function CL(t,e,r){const n=OT(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,a=t.settings.allowDangerousCharacters?0:1;let o=t.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=Gi(n.attribute,Object.assign({},t.settings.characterReferences,{subset:Xs.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?cN:hN)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?u:(t.settings.preferUnquoted&&(s=Gi(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Xs.unquoted[i][a]}))),s!==r&&(t.settings.quoteSmart&&y0(r,o)>y0(r,t.alternative)&&(o=t.alternative),s=o+Gi(r,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?Xs.single:Xs.double)[i][a],attribute:!0}))+o),u+(s&&"="+s))}const ML=["<","&"];function RT(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:Gi(t.value,Object.assign({},n.settings.characterReferences,{subset:ML}))}function kL(t,e,r,n){return n.settings.allowDangerousHtml?t.value:RT(t,e,r,n)}function jL(t,e,r,n){return n.all(t)}const IL=LN("type",{invalid:RL,unknown:$L,handlers:{comment:iL,doctype:aL,element:TL,raw:kL,root:jL,text:RT}});function RL(t){throw new Error("Expected node, not `"+t+"`")}function $L(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const DL={},NL={},LL=[];function qL(t,e){const r=DL,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:BL,all:FL,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||NN,characterReferences:r.characterReferences||NL,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?rg:AT,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function BL(t,e,r){return IL(t,e,r,this)}function FL(t){const e=[],r=t&&t.children||LL;let n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}const It={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}},Ki={COMPLETED:Wt.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},wo="N/A",So="No LST",Oo="Data Missing";function zL(t,e,r,n="left-to-right",i=900,a){Qt.prototype.transition=Rv;const o=e*Math.PI/180,s=-o/2-Math.PI/2,u=o/2-Math.PI/2;let l=t.querySelector("defs");l||(l=document.createElementNS("http://www.w3.org/2000/svg","defs"),t.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 d=t.querySelector(".arc-container"),y=t.querySelector(".points-container");if(y&&d)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const p=_=>{const b=r*1.5,x=Math.cos(_)*b,v=Math.sin(_)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,A=u-_>Math.PI?1:0;return`M 0,0 L ${x},${v} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",p(s)),Qt(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=s+(u-s)*_;h.setAttribute("d",p(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const p=_=>{const b=r*1.5,x=Math.cos(_)*b,v=Math.sin(_)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,A=u-_>Math.PI?1:0;return`M 0,0 L ${x},${v} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",p(u)),Qt(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=u-(u-s)*_;h.setAttribute("d",p(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hc,_0;function $T(){if(_0)return Hc;_0=1;var t=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys;return Hc=t,Hc}var Gc,x0;function Mr(){if(x0)return Gc;x0=1;var t=$T(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return Gc=r,Gc}var Kc,w0;function UL(){if(w0)return Kc;w0=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return Kc=e,Kc}var Xc,S0;function WL(){if(S0)return Xc;S0=1;var t=UL(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return Xc=r,Xc}var Yc,O0;function Rn(){if(O0)return Yc;O0=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return Yc=t,Yc}var Vc,A0;function Ms(){if(A0)return Vc;A0=1;var t=Mr(),e=t.Symbol;return Vc=e,Vc}var Zc,P0;function HL(){if(P0)return Zc;P0=1;var t=Ms(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.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 Zc=a,Zc}var Jc,T0;function GL(){if(T0)return Jc;T0=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return Jc=r,Jc}var Qc,E0;function pn(){if(E0)return Qc;E0=1;var t=Ms(),e=HL(),r=GL(),n="[object Null]",i="[object Undefined]",a=t?t.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?e(s):r(s)}return Qc=o,Qc}var ef,C0;function mn(){if(C0)return ef;C0=1;function t(e){return e!=null&&typeof e=="object"}return ef=t,ef}var tf,M0;function Ra(){if(M0)return tf;M0=1;var t=pn(),e=mn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||e(i)&&t(i)==r}return tf=n,tf}var rf,k0;function ag(){if(k0)return rf;k0=1;var t=WL(),e=Rn(),r=Ra(),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(e(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=e(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=t(l);var f=a.test(l);return f||o.test(l)?s(l.slice(2),f?2:8):i.test(l)?n:+l}return rf=u,rf}var nf,j0;function DT(){if(j0)return nf;j0=1;var t=ag(),e=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=t(i),i===e||i===-e){var a=i<0?-1:1;return a*r}return i===i?i:0}return nf=n,nf}var af,I0;function og(){if(I0)return af;I0=1;var t=DT();function e(r){var n=t(r),i=n%1;return n===n?i?n-i:n:0}return af=e,af}var of,R0;function Bl(){if(R0)return of;R0=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=Array(i);++n<i;)a[n]=r(e[n],n,e);return a}return of=t,of}var sf,$0;function $t(){if($0)return sf;$0=1;var t=Array.isArray;return sf=t,sf}var uf,D0;function KL(){if(D0)return uf;D0=1;var t=Ms(),e=Bl(),r=$t(),n=Ra(),i=t?t.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return e(s,o)+"";if(n(s))return a?a.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return uf=o,uf}var lf,N0;function sg(){if(N0)return lf;N0=1;var t=KL();function e(r){return r==null?"":t(r)}return lf=e,lf}var cf,L0;function XL(){if(L0)return cf;L0=1;var t=Mr(),e=og(),r=ag(),n=sg(),i=t.isFinite,a=Math.min;function o(s){var u=Math[s];return function(l,c){if(l=r(l),c=c==null?0:a(e(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 cf=o,cf}var ff,q0;function YL(){if(q0)return ff;q0=1;var t=XL(),e=t("round");return ff=e,ff}var VL=YL();const ZL=$e(VL);var hf,B0;function NT(){if(B0)return hf;B0=1;function t(e,r){for(var n=-1,i=r.length,a=e.length;++n<i;)e[a+n]=r[n];return e}return hf=t,hf}var df,F0;function JL(){if(F0)return df;F0=1;var t=pn(),e=mn(),r="[object Arguments]";function n(i){return e(i)&&t(i)==r}return df=n,df}var pf,z0;function ug(){if(z0)return pf;z0=1;var t=JL(),e=mn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=t((function(){return arguments})())?t:function(o){return e(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return pf=a,pf}var mf,U0;function QL(){if(U0)return mf;U0=1;var t=Ms(),e=ug(),r=$t(),n=t?t.isConcatSpreadable:void 0;function i(a){return r(a)||e(a)||!!(n&&a&&a[n])}return mf=i,mf}var yf,W0;function LT(){if(W0)return yf;W0=1;var t=NT(),e=QL();function r(n,i,a,o,s){var u=-1,l=n.length;for(a||(a=e),s||(s=[]);++u<l;){var c=n[u];i>0&&a(c)?i>1?r(c,i-1,a,o,s):t(s,c):o||(s[s.length]=c)}return s}return yf=r,yf}var vf,H0;function lg(){if(H0)return vf;H0=1;var t=$t(),e=Ra(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(t(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||e(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return vf=i,vf}var gf,G0;function cg(){if(G0)return gf;G0=1;var t=pn(),e=Rn(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!e(s))return!1;var u=t(s);return u==n||u==i||u==r||u==a}return gf=o,gf}var bf,K0;function eq(){if(K0)return bf;K0=1;var t=Mr(),e=t["__core-js_shared__"];return bf=e,bf}var _f,X0;function tq(){if(X0)return _f;X0=1;var t=eq(),e=(function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!e&&e in n}return _f=r,_f}var xf,Y0;function qT(){if(Y0)return xf;Y0=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return xf=r,xf}var wf,V0;function rq(){if(V0)return wf;V0=1;var t=cg(),e=tq(),r=Rn(),n=qT(),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)||e(h))return!1;var d=t(h)?c:a;return d.test(n(h))}return wf=f,wf}var Sf,Z0;function nq(){if(Z0)return Sf;Z0=1;function t(e,r){return e==null?void 0:e[r]}return Sf=t,Sf}var Of,J0;function Si(){if(J0)return Of;J0=1;var t=rq(),e=nq();function r(n,i){var a=e(n,i);return t(a)?a:void 0}return Of=r,Of}var Af,Q0;function Fl(){if(Q0)return Af;Q0=1;var t=Si(),e=t(Object,"create");return Af=e,Af}var Pf,e_;function iq(){if(e_)return Pf;e_=1;var t=Fl();function e(){this.__data__=t?t(null):{},this.size=0}return Pf=e,Pf}var Tf,t_;function aq(){if(t_)return Tf;t_=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return Tf=t,Tf}var Ef,r_;function oq(){if(r_)return Ef;r_=1;var t=Fl(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(t){var s=o[a];return s===e?void 0:s}return n.call(o,a)?o[a]:void 0}return Ef=i,Ef}var Cf,n_;function sq(){if(n_)return Cf;n_=1;var t=Fl(),e=Object.prototype,r=e.hasOwnProperty;function n(i){var a=this.__data__;return t?a[i]!==void 0:r.call(a,i)}return Cf=n,Cf}var Mf,i_;function uq(){if(i_)return Mf;i_=1;var t=Fl(),e="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=t&&i===void 0?e:i,this}return Mf=r,Mf}var kf,a_;function lq(){if(a_)return kf;a_=1;var t=iq(),e=aq(),r=oq(),n=sq(),i=uq();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=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,kf=a,kf}var jf,o_;function cq(){if(o_)return jf;o_=1;function t(){this.__data__=[],this.size=0}return jf=t,jf}var If,s_;function fg(){if(s_)return If;s_=1;function t(e,r){return e===r||e!==e&&r!==r}return If=t,If}var Rf,u_;function zl(){if(u_)return Rf;u_=1;var t=fg();function e(r,n){for(var i=r.length;i--;)if(t(r[i][0],n))return i;return-1}return Rf=e,Rf}var $f,l_;function fq(){if(l_)return $f;l_=1;var t=zl(),e=Array.prototype,r=e.splice;function n(i){var a=this.__data__,o=t(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 $f=n,$f}var Df,c_;function hq(){if(c_)return Df;c_=1;var t=zl();function e(r){var n=this.__data__,i=t(n,r);return i<0?void 0:n[i][1]}return Df=e,Df}var Nf,f_;function dq(){if(f_)return Nf;f_=1;var t=zl();function e(r){return t(this.__data__,r)>-1}return Nf=e,Nf}var Lf,h_;function pq(){if(h_)return Lf;h_=1;var t=zl();function e(r,n){var i=this.__data__,a=t(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Lf=e,Lf}var qf,d_;function Ul(){if(d_)return qf;d_=1;var t=cq(),e=fq(),r=hq(),n=dq(),i=pq();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=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,qf=a,qf}var Bf,p_;function hg(){if(p_)return Bf;p_=1;var t=Si(),e=Mr(),r=t(e,"Map");return Bf=r,Bf}var Ff,m_;function mq(){if(m_)return Ff;m_=1;var t=lq(),e=Ul(),r=hg();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return Ff=n,Ff}var zf,y_;function yq(){if(y_)return zf;y_=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return zf=t,zf}var Uf,v_;function Wl(){if(v_)return Uf;v_=1;var t=yq();function e(r,n){var i=r.__data__;return t(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Uf=e,Uf}var Wf,g_;function vq(){if(g_)return Wf;g_=1;var t=Wl();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return Wf=e,Wf}var Hf,b_;function gq(){if(b_)return Hf;b_=1;var t=Wl();function e(r){return t(this,r).get(r)}return Hf=e,Hf}var Gf,__;function bq(){if(__)return Gf;__=1;var t=Wl();function e(r){return t(this,r).has(r)}return Gf=e,Gf}var Kf,x_;function _q(){if(x_)return Kf;x_=1;var t=Wl();function e(r,n){var i=t(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Kf=e,Kf}var Xf,w_;function dg(){if(w_)return Xf;w_=1;var t=mq(),e=vq(),r=gq(),n=bq(),i=_q();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=t,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Xf=a,Xf}var Yf,S_;function BT(){if(S_)return Yf;S_=1;var t=dg(),e="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(e);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||t),a}return r.Cache=t,Yf=r,Yf}var Vf,O_;function xq(){if(O_)return Vf;O_=1;var t=BT(),e=500;function r(n){var i=t(n,function(o){return a.size===e&&a.clear(),o}),a=i.cache;return i}return Vf=r,Vf}var Zf,A_;function wq(){if(A_)return Zf;A_=1;var t=xq(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(e,function(o,s,u,l){a.push(u?l.replace(r,"$1"):s||o)}),a});return Zf=n,Zf}var Jf,P_;function FT(){if(P_)return Jf;P_=1;var t=$t(),e=lg(),r=wq(),n=sg();function i(a,o){return t(a)?a:e(a,o)?[a]:r(n(a))}return Jf=i,Jf}var Qf,T_;function Hl(){if(T_)return Qf;T_=1;var t=Ra();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Qf=e,Qf}var eh,E_;function pg(){if(E_)return eh;E_=1;var t=FT(),e=Hl();function r(n,i){i=t(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[e(i[a++])];return a&&a==o?n:void 0}return eh=r,eh}var th,C_;function Sq(){if(C_)return th;C_=1;var t=Ul();function e(){this.__data__=new t,this.size=0}return th=e,th}var rh,M_;function Oq(){if(M_)return rh;M_=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return rh=t,rh}var nh,k_;function Aq(){if(k_)return nh;k_=1;function t(e){return this.__data__.get(e)}return nh=t,nh}var ih,j_;function Pq(){if(j_)return ih;j_=1;function t(e){return this.__data__.has(e)}return ih=t,ih}var ah,I_;function Tq(){if(I_)return ah;I_=1;var t=Ul(),e=hg(),r=dg(),n=200;function i(a,o){var s=this.__data__;if(s instanceof t){var u=s.__data__;if(!e||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 ah=i,ah}var oh,R_;function zT(){if(R_)return oh;R_=1;var t=Ul(),e=Sq(),r=Oq(),n=Aq(),i=Pq(),a=Tq();function o(s){var u=this.__data__=new t(s);this.size=u.size}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,oh=o,oh}var sh,$_;function Eq(){if($_)return sh;$_=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return sh=e,sh}var uh,D_;function Cq(){if(D_)return uh;D_=1;function t(e){return this.__data__.has(e)}return uh=t,uh}var lh,N_;function UT(){if(N_)return lh;N_=1;var t=dg(),e=Eq(),r=Cq();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new t;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,lh=n,lh}var ch,L_;function WT(){if(L_)return ch;L_=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(e[n],n,e))return!0;return!1}return ch=t,ch}var fh,q_;function HT(){if(q_)return fh;q_=1;function t(e,r){return e.has(r)}return fh=t,fh}var hh,B_;function GT(){if(B_)return hh;B_=1;var t=UT(),e=WT(),r=HT(),n=1,i=2;function a(o,s,u,l,c,f){var h=u&n,d=o.length,y=s.length;if(d!=y&&!(h&&y>d))return!1;var m=f.get(o),p=f.get(s);if(m&&p)return m==s&&p==o;var g=-1,_=!0,b=u&i?new t:void 0;for(f.set(o,s),f.set(s,o);++g<d;){var x=o[g],v=s[g];if(l)var w=h?l(v,x,g,s,o,f):l(x,v,g,o,s,f);if(w!==void 0){if(w)continue;_=!1;break}if(b){if(!e(s,function(S,A){if(!r(b,A)&&(x===S||c(x,S,u,l,f)))return b.push(A)})){_=!1;break}}else if(!(x===v||c(x,v,u,l,f))){_=!1;break}}return f.delete(o),f.delete(s),_}return hh=a,hh}var dh,F_;function Mq(){if(F_)return dh;F_=1;var t=Mr(),e=t.Uint8Array;return dh=e,dh}var ph,z_;function kq(){if(z_)return ph;z_=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i,a){n[++r]=[a,i]}),n}return ph=t,ph}var mh,U_;function mg(){if(U_)return mh;U_=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i){n[++r]=i}),n}return mh=t,mh}var yh,W_;function jq(){if(W_)return yh;W_=1;var t=Ms(),e=Mq(),r=fg(),n=GT(),i=kq(),a=mg(),o=1,s=2,u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",d="[object RegExp]",y="[object Set]",m="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",_="[object DataView]",b=t?t.prototype:void 0,x=b?b.valueOf:void 0;function v(w,S,A,P,M,T,E){switch(A){case _:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case g:return!(w.byteLength!=S.byteLength||!T(new e(w),new e(S)));case u:case l:case h:return r(+w,+S);case c:return w.name==S.name&&w.message==S.message;case d:case m:return w==S+"";case f:var C=i;case y:var I=P&o;if(C||(C=a),w.size!=S.size&&!I)return!1;var k=E.get(w);if(k)return k==S;P|=s,E.set(w,S);var j=n(C(w),C(S),P,M,T,E);return E.delete(w),j;case p:if(x)return x.call(w)==x.call(S)}return!1}return yh=v,yh}var vh,H_;function Iq(){if(H_)return vh;H_=1;var t=NT(),e=$t();function r(n,i,a){var o=i(n);return e(n)?o:t(o,a(n))}return vh=r,vh}var gh,G_;function Rq(){if(G_)return gh;G_=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,a=0,o=[];++n<i;){var s=e[n];r(s,n,e)&&(o[a++]=s)}return o}return gh=t,gh}var bh,K_;function $q(){if(K_)return bh;K_=1;function t(){return[]}return bh=t,bh}var _h,X_;function Dq(){if(X_)return _h;X_=1;var t=Rq(),e=$q(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),t(i(o),function(s){return n.call(o,s)}))}:e;return _h=a,_h}var xh,Y_;function Nq(){if(Y_)return xh;Y_=1;function t(e,r){for(var n=-1,i=Array(e);++n<e;)i[n]=r(n);return i}return xh=t,xh}var fo={exports:{}},wh,V_;function Lq(){if(V_)return wh;V_=1;function t(){return!1}return wh=t,wh}fo.exports;var Z_;function KT(){return Z_||(Z_=1,(function(t,e){var r=Mr(),n=Lq(),i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(fo,fo.exports)),fo.exports}var Sh,J_;function yg(){if(J_)return Sh;J_=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??t,!!i&&(a=="number"||a!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Sh=r,Sh}var Oh,Q_;function vg(){if(Q_)return Oh;Q_=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Oh=e,Oh}var Ah,ex;function qq(){if(ex)return Ah;ex=1;var t=pn(),e=vg(),r=mn(),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]",d="[object Set]",y="[object String]",m="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",_="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",v="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",M="[object Uint32Array]",T={};T[_]=T[b]=T[x]=T[v]=T[w]=T[S]=T[A]=T[P]=T[M]=!0,T[n]=T[i]=T[p]=T[a]=T[g]=T[o]=T[s]=T[u]=T[l]=T[c]=T[f]=T[h]=T[d]=T[y]=T[m]=!1;function E(C){return r(C)&&e(C.length)&&!!T[t(C)]}return Ah=E,Ah}var Ph,tx;function XT(){if(tx)return Ph;tx=1;function t(e){return function(r){return e(r)}}return Ph=t,Ph}var ho={exports:{}};ho.exports;var rx;function Bq(){return rx||(rx=1,(function(t,e){var r=$T(),n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,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{}})();t.exports=s})(ho,ho.exports)),ho.exports}var Th,nx;function YT(){if(nx)return Th;nx=1;var t=qq(),e=XT(),r=Bq(),n=r&&r.isTypedArray,i=n?e(n):t;return Th=i,Th}var Eh,ix;function Fq(){if(ix)return Eh;ix=1;var t=Nq(),e=ug(),r=$t(),n=KT(),i=yg(),a=YT(),o=Object.prototype,s=o.hasOwnProperty;function u(l,c){var f=r(l),h=!f&&e(l),d=!f&&!h&&n(l),y=!f&&!h&&!d&&a(l),m=f||h||d||y,p=m?t(l.length,String):[],g=p.length;for(var _ in l)(c||s.call(l,_))&&!(m&&(_=="length"||d&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,g)))&&p.push(_);return p}return Eh=u,Eh}var Ch,ax;function zq(){if(ax)return Ch;ax=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||t;return r===i}return Ch=e,Ch}var Mh,ox;function VT(){if(ox)return Mh;ox=1;function t(e,r){return function(n){return e(r(n))}}return Mh=t,Mh}var kh,sx;function Uq(){if(sx)return kh;sx=1;var t=VT(),e=t(Object.keys,Object);return kh=e,kh}var jh,ux;function Wq(){if(ux)return jh;ux=1;var t=zq(),e=Uq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!t(a))return e(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return jh=i,jh}var Ih,lx;function ks(){if(lx)return Ih;lx=1;var t=cg(),e=vg();function r(n){return n!=null&&e(n.length)&&!t(n)}return Ih=r,Ih}var Rh,cx;function js(){if(cx)return Rh;cx=1;var t=Fq(),e=Wq(),r=ks();function n(i){return r(i)?t(i):e(i)}return Rh=n,Rh}var $h,fx;function Hq(){if(fx)return $h;fx=1;var t=Iq(),e=Dq(),r=js();function n(i){return t(i,r,e)}return $h=n,$h}var Dh,hx;function Gq(){if(hx)return Dh;hx=1;var t=Hq(),e=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,u,l,c){var f=s&e,h=t(a),d=h.length,y=t(o),m=y.length;if(d!=m&&!f)return!1;for(var p=d;p--;){var g=h[p];if(!(f?g in o:n.call(o,g)))return!1}var _=c.get(a),b=c.get(o);if(_&&b)return _==o&&b==a;var x=!0;c.set(a,o),c.set(o,a);for(var v=f;++p<d;){g=h[p];var w=a[g],S=o[g];if(u)var A=f?u(S,w,g,o,a,c):u(w,S,g,a,o,c);if(!(A===void 0?w===S||l(w,S,s,u,c):A)){x=!1;break}v||(v=g=="constructor")}if(x&&!v){var P=a.constructor,M=o.constructor;P!=M&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof M=="function"&&M instanceof M)&&(x=!1)}return c.delete(a),c.delete(o),x}return Dh=i,Dh}var Nh,dx;function Kq(){if(dx)return Nh;dx=1;var t=Si(),e=Mr(),r=t(e,"DataView");return Nh=r,Nh}var Lh,px;function Xq(){if(px)return Lh;px=1;var t=Si(),e=Mr(),r=t(e,"Promise");return Lh=r,Lh}var qh,mx;function ZT(){if(mx)return qh;mx=1;var t=Si(),e=Mr(),r=t(e,"Set");return qh=r,qh}var Bh,yx;function Yq(){if(yx)return Bh;yx=1;var t=Si(),e=Mr(),r=t(e,"WeakMap");return Bh=r,Bh}var Fh,vx;function Vq(){if(vx)return Fh;vx=1;var t=Kq(),e=hg(),r=Xq(),n=ZT(),i=Yq(),a=pn(),o=qT(),s="[object Map]",u="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",d=o(t),y=o(e),m=o(r),p=o(n),g=o(i),_=a;return(t&&_(new t(new ArrayBuffer(1)))!=h||e&&_(new e)!=s||r&&_(r.resolve())!=l||n&&_(new n)!=c||i&&_(new i)!=f)&&(_=function(b){var x=a(b),v=x==u?b.constructor:void 0,w=v?o(v):"";if(w)switch(w){case d:return h;case y:return s;case m:return l;case p:return c;case g:return f}return x}),Fh=_,Fh}var zh,gx;function Zq(){if(gx)return zh;gx=1;var t=zT(),e=GT(),r=jq(),n=Gq(),i=Vq(),a=$t(),o=KT(),s=YT(),u=1,l="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(m,p,g,_,b,x){var v=a(m),w=a(p),S=v?c:i(m),A=w?c:i(p);S=S==l?f:S,A=A==l?f:A;var P=S==f,M=A==f,T=S==A;if(T&&o(m)){if(!o(p))return!1;v=!0,P=!1}if(T&&!P)return x||(x=new t),v||s(m)?e(m,p,g,_,b,x):r(m,p,S,g,_,b,x);if(!(g&u)){var E=P&&d.call(m,"__wrapped__"),C=M&&d.call(p,"__wrapped__");if(E||C){var I=E?m.value():m,k=C?p.value():p;return x||(x=new t),b(I,k,g,_,x)}}return T?(x||(x=new t),n(m,p,g,_,b,x)):!1}return zh=y,zh}var Uh,bx;function gg(){if(bx)return Uh;bx=1;var t=Zq(),e=mn();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:t(n,i,a,o,r,s)}return Uh=r,Uh}var Wh,_x;function Jq(){if(_x)return Wh;_x=1;var t=zT(),e=gg(),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 d=h[0],y=a[d],m=h[1];if(f&&h[2]){if(y===void 0&&!(d in a))return!1}else{var p=new t;if(u)var g=u(y,m,d,a,o,p);if(!(g===void 0?e(m,y,r|n,u,p):g))return!1}}return!0}return Wh=i,Wh}var Hh,xx;function JT(){if(xx)return Hh;xx=1;var t=Rn();function e(r){return r===r&&!t(r)}return Hh=e,Hh}var Gh,wx;function Qq(){if(wx)return Gh;wx=1;var t=JT(),e=js();function r(n){for(var i=e(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,t(s)]}return i}return Gh=r,Gh}var Kh,Sx;function QT(){if(Sx)return Kh;Sx=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return Kh=t,Kh}var Xh,Ox;function eB(){if(Ox)return Xh;Ox=1;var t=Jq(),e=Qq(),r=QT();function n(i){var a=e(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||t(o,i,a)}}return Xh=n,Xh}var Yh,Ax;function eE(){if(Ax)return Yh;Ax=1;var t=pg();function e(r,n,i){var a=r==null?void 0:t(r,n);return a===void 0?i:a}return Yh=e,Yh}var Vh,Px;function tB(){if(Px)return Vh;Px=1;function t(e,r){return e!=null&&r in Object(e)}return Vh=t,Vh}var Zh,Tx;function rB(){if(Tx)return Zh;Tx=1;var t=FT(),e=ug(),r=$t(),n=yg(),i=vg(),a=Hl();function o(s,u,l){u=t(u,s);for(var c=-1,f=u.length,h=!1;++c<f;){var d=a(u[c]);if(!(h=s!=null&&l(s,d)))break;s=s[d]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(d,f)&&(r(s)||e(s)))}return Zh=o,Zh}var Jh,Ex;function nB(){if(Ex)return Jh;Ex=1;var t=tB(),e=rB();function r(n,i){return n!=null&&e(n,i,t)}return Jh=r,Jh}var Qh,Cx;function iB(){if(Cx)return Qh;Cx=1;var t=gg(),e=eE(),r=nB(),n=lg(),i=JT(),a=QT(),o=Hl(),s=1,u=2;function l(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var d=e(h,c);return d===void 0&&d===f?r(h,c):t(f,d,s|u)}}return Qh=l,Qh}var ed,Mx;function $a(){if(Mx)return ed;Mx=1;function t(e){return e}return ed=t,ed}var td,kx;function aB(){if(kx)return td;kx=1;function t(e){return function(r){return r==null?void 0:r[e]}}return td=t,td}var rd,jx;function oB(){if(jx)return rd;jx=1;var t=pg();function e(r){return function(n){return t(n,r)}}return rd=e,rd}var nd,Ix;function sB(){if(Ix)return nd;Ix=1;var t=aB(),e=oB(),r=lg(),n=Hl();function i(a){return r(a)?t(n(a)):e(a)}return nd=i,nd}var id,Rx;function $n(){if(Rx)return id;Rx=1;var t=eB(),e=iB(),r=$a(),n=$t(),i=sB();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?e(o[0],o[1]):t(o):i(o)}return id=a,id}var ad,$x;function uB(){if($x)return ad;$x=1;function t(e){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),u=s.length;u--;){var l=s[e?u:++a];if(n(o[l],l,o)===!1)break}return r}}return ad=t,ad}var od,Dx;function lB(){if(Dx)return od;Dx=1;var t=uB(),e=t();return od=e,od}var sd,Nx;function tE(){if(Nx)return sd;Nx=1;var t=lB(),e=js();function r(n,i){return n&&t(n,i,e)}return sd=r,sd}var ud,Lx;function cB(){if(Lx)return ud;Lx=1;var t=ks();function e(r,n){return function(i,a){if(i==null)return i;if(!t(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 ud=e,ud}var ld,qx;function bg(){if(qx)return ld;qx=1;var t=tE(),e=cB(),r=e(t);return ld=r,ld}var cd,Bx;function rE(){if(Bx)return cd;Bx=1;var t=bg(),e=ks();function r(n,i){var a=-1,o=e(n)?Array(n.length):[];return t(n,function(s,u,l){o[++a]=i(s,u,l)}),o}return cd=r,cd}var fd,Fx;function fB(){if(Fx)return fd;Fx=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return fd=t,fd}var hd,zx;function hB(){if(zx)return hd;zx=1;var t=Ra();function e(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=t(r),u=n!==void 0,l=n===null,c=n===n,f=t(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 hd=e,hd}var dd,Ux;function dB(){if(Ux)return dd;Ux=1;var t=hB();function e(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,u=o.length,l=i.length;++a<u;){var c=t(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 dd=e,dd}var pd,Wx;function pB(){if(Wx)return pd;Wx=1;var t=Bl(),e=pg(),r=$n(),n=rE(),i=fB(),a=XT(),o=dB(),s=$a(),u=$t();function l(c,f,h){f.length?f=t(f,function(m){return u(m)?function(p){return e(p,m.length===1?m[0]:m)}:m}):f=[s];var d=-1;f=t(f,a(r));var y=n(c,function(m,p,g){var _=t(f,function(b){return b(m)});return{criteria:_,index:++d,value:m}});return i(y,function(m,p){return o(m,p,h)})}return pd=l,pd}var md,Hx;function mB(){if(Hx)return md;Hx=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return md=t,md}var yd,Gx;function yB(){if(Gx)return yd;Gx=1;var t=mB(),e=Math.max;function r(n,i,a){return i=e(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,u=e(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),t(n,this,c)}}return yd=r,yd}var vd,Kx;function vB(){if(Kx)return vd;Kx=1;function t(e){return function(){return e}}return vd=t,vd}var gd,Xx;function nE(){if(Xx)return gd;Xx=1;var t=Si(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return gd=e,gd}var bd,Yx;function gB(){if(Yx)return bd;Yx=1;var t=vB(),e=nE(),r=$a(),n=e?function(i,a){return e(i,"toString",{configurable:!0,enumerable:!1,value:t(a),writable:!0})}:r;return bd=n,bd}var _d,Vx;function bB(){if(Vx)return _d;Vx=1;var t=800,e=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),u=e-(s-o);if(o=s,u>0){if(++a>=t)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return _d=n,_d}var xd,Zx;function _B(){if(Zx)return xd;Zx=1;var t=gB(),e=bB(),r=e(t);return xd=r,xd}var wd,Jx;function xB(){if(Jx)return wd;Jx=1;var t=$a(),e=yB(),r=_B();function n(i,a){return r(e(i,a,t),i+"")}return wd=n,wd}var Sd,Qx;function Is(){if(Qx)return Sd;Qx=1;var t=fg(),e=ks(),r=yg(),n=Rn();function i(a,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?e(s)&&r(o,s.length):u=="string"&&o in s)?t(s[o],a):!1}return Sd=i,Sd}var Od,e1;function wB(){if(e1)return Od;e1=1;var t=LT(),e=pB(),r=xB(),n=Is(),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]]),e(a,t(o,1),[])});return Od=i,Od}var SB=wB();const Gl=$e(SB);var Ad,t1;function OB(){if(t1)return Ad;t1=1;function t(e){for(var r=-1,n=e==null?0:e.length,i={};++r<n;){var a=e[r];i[a[0]]=a[1]}return i}return Ad=t,Ad}var AB=OB();const r1=$e(AB);var Pd,n1;function PB(){if(n1)return Pd;n1=1;var t=Math.ceil,e=Math.max;function r(n,i,a,o){for(var s=-1,u=e(t((i-n)/(a||1)),0),l=Array(u);u--;)l[o?u:++s]=n,n+=a;return l}return Pd=r,Pd}var Td,i1;function TB(){if(i1)return Td;i1=1;var t=PB(),e=Is(),r=DT();function n(i){return function(a,o,s){return s&&typeof s!="number"&&e(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),t(a,o,s,i)}}return Td=n,Td}var Ed,a1;function EB(){if(a1)return Ed;a1=1;var t=TB(),e=t();return Ed=e,Ed}var CB=EB();const Go=$e(CB);var Cd,o1;function MB(){if(o1)return Cd;o1=1;var t=Bl(),e=$n(),r=rE(),n=$t();function i(a,o){var s=n(a)?t:r;return s(a,e(o,3))}return Cd=i,Cd}var Md,s1;function kB(){if(s1)return Md;s1=1;var t=LT(),e=MB();function r(n,i){return t(e(n,i),1)}return Md=r,Md}var jB=kB();const iE=$e(jB);var kd,u1;function aE(){if(u1)return kd;u1=1;function t(e,r,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),r!==void 0&&(e=e>=r?e:r)),e}return kd=t,kd}var jd,l1;function IB(){if(l1)return jd;l1=1;function t(e,r){var n=-1,i=e.length;for(r||(r=Array(i));++n<i;)r[n]=e[n];return r}return jd=t,jd}var Id,c1;function RB(){if(c1)return Id;c1=1;var t=Math.floor,e=Math.random;function r(n,i){return n+t(e()*(i-n+1))}return Id=r,Id}var Rd,f1;function oE(){if(f1)return Rd;f1=1;var t=RB();function e(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=t(i,o),u=r[s];r[s]=r[i],r[i]=u}return r.length=n,r}return Rd=e,Rd}var $d,h1;function $B(){if(h1)return $d;h1=1;var t=aE(),e=IB(),r=oE();function n(i,a){return r(e(i),t(a,0,i.length))}return $d=n,$d}var Dd,d1;function DB(){if(d1)return Dd;d1=1;var t=Bl();function e(r,n){return t(n,function(i){return r[i]})}return Dd=e,Dd}var Nd,p1;function NB(){if(p1)return Nd;p1=1;var t=DB(),e=js();function r(n){return n==null?[]:t(n,e(n))}return Nd=r,Nd}var Ld,m1;function LB(){if(m1)return Ld;m1=1;var t=aE(),e=oE(),r=NB();function n(i,a){var o=r(i);return e(o,t(a,0,o.length))}return Ld=n,Ld}var qd,y1;function qB(){if(y1)return qd;y1=1;var t=$B(),e=LB(),r=$t(),n=Is(),i=og();function a(o,s,u){(u?n(o,s,u):s===void 0)?s=1:s=i(s);var l=r(o)?t:e;return l(o,s)}return qd=a,qd}var BB=qB();const FB=$e(BB),zB=t=>ZL(t,14),v1=t=>Object.values(t).reduce((e,r)=>e+r,0),UB=(t,e,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(t).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(t).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(e)||e<=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=v1(t),a=r1(Object.entries(t).map(([y,m])=>{const p=Math.max(e-Object.keys(t).length,0),g=Math.round(p*m/i);return[y,g]})),o=r1(Object.entries(t).map(([y,m])=>{const p=e+Object.keys(t).length,g=Math.min(Math.round(p*m/i),e);return[y,g]})),s=iE(Object.entries(t).map(([y,m])=>{const p=a[y],g=o[y];return Go(p,g).map(_=>{const b=zB(m/(_+.5));return{party:y,quotient:b}})})),u=v1(a),l=e-u,c=Gl(s,({quotient:y})=>-y),f=c[l-1].quotient,h=c.filter(({quotient:y})=>y>f),d=c.filter(({quotient:y})=>y===f);if(h.length+d.length===l)h.push(...d);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...FB(d,l-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},Bu=t=>Math.round(t*1e10)/1e10,WB=t=>t.reduce((e,r)=>e+r.seats,0),HB=t=>t.flat(),GB=(t,e,r)=>{const n=(Math.PI-r)/2,i=e/t+n-Math.PI;return{x:Bu(t*Math.cos(i)),y:Bu(t*Math.sin(i))}},sE=(t,e,r,n)=>{const i=n*e*r/(t-e),a=1+n*(e-1)*e/2/(t-e);return i/a},Ja=(t,e,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(sE(t,e,r,n)*e/r-i)},KB=(t,e,r)=>{let n=Math.floor(Math.log(t)/Math.log(2))||1,i=Ja(t,n,e,r),a=0;for(Ja(t,n+1,e,r)<i&&(a=1),Ja(t,n-1,e,r)<i&&n>1&&(a=-1);Ja(t,n+a,e,r)<i&&n>0;)i=Ja(t,n+a,e,r),n+=a;return n},XB=(t,e)=>{var i,a;let r,n;for(let o=0;o<t.length;o++)n=Bu((e[o]||0)/(((i=t[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<t.length;o++)if(n=Bu((e[o]||0)/(((a=t[o])==null?void 0:a.length)??1)),n===r)return o;return 0},YB=(t,e,r)=>{const n=WB(t),i=KB(n,e,r),a=sE(n,i,e,r);let o={};for(let h=1;h<=i;h++)o[h]=e-(h-1)*a;o=UB(o,n);const s=[];let u,l,c;for(let h=1;h<=i;h++){const d=[];u=e-(h-1)*a,l=r*u/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...GB(u,y*l,r),r:.4*a},d.push(c);s.push(d)}const f=Array(s.length).fill(0);for(const h of t)for(let d=0;d<h.seats;d++){const y=XB(s,f),m=s[y],p=f[y]??0,g=m==null?void 0:m[p];g&&(g.fill=h.colour,g.party=String(h.id)),f[y]=p+1}return HB(s)},VB=t=>e=>t("circle",{cx:e.x,cy:e.y,r:e.r,fill:e.fill,class:e.party}),ZB={seatCount:!1,arcAngle:180,hFunction:Cs},JB=(t,e={})=>{var p;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},ZB,e);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=YB(t,o,a),u=(((p=s[0])==null?void 0:p.r)??0)/.4||0,l=s.map(VB(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),d=n<=180?-o-u/2:-o*(1+Math.sin((a-Math.PI)/2))-u/2,y=i("defs",[TT(i),ET(i),CT(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-u/2,d,2*o+u,h].join(",")},[y,...l])},QB={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Cs},eF=(t,e={})=>{const r={...QB,...e},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:u,spacing:l,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,d=a*c,y=t.reduce((H,F)=>H+F.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const p=n-i,g=n+i;for(let H=p;H<=g;H+=2.5){const F=H*Math.PI/180;for(let K=u;K>=s;K-=.1){const Q=K*2,D=Q*l,se=Math.floor((a-d)/D);for(let W=1;W<=Math.min(se,10);W++){let ue=0;for(let de=0;de<W;de++){const ie=d+(de+.5)*D,fe=Q*l/ie,we=Math.floor(F/fe);ue+=we}if(ue>=y){const de=y/ue,ie=(K-s)/(u-s),fe=(ue-y)/y,we=fe<.15?1:fe<.3?.7:fe<.5?.4:.1,ae=1-Math.abs(H-n)/i,he=we*.5+ie*.3+de*.15+ae*.05;he>m.score&&(m={seatSize:K,arcAngle:H,rings:W,score:he})}}}}const _=m.seatSize,b=m.arcAngle,x=b*Math.PI/180,v=_*2,w=v*l,S=Math.floor((a-d)/w),A=[],P=-x/2-Math.PI/2,M=[];let T=0,E=[];for(let H=1;H<=S;H++){let F=0;const K=[];for(let Q=0;Q<H;Q++){const D=d+(Q+.5)*w,se=v*l/D,W=Math.floor(x/se);K.push(W),F+=W}if(F>=y){T=H,E=K;break}}if(T>0)M.push(...E);else for(let H=0;H<S;H++){const F=d+(H+.5)*w,K=v*l/F,Q=Math.floor(x/K);M.push(Q)}for(let H=0;H<M.length;H++){const F=d+(H+.5)*w,K=M[H]??0;if(K>0){const Q=x/K;for(let D=0;D<K;D++){const se=P+(D+.5)*Q,W=Math.cos(se)*F,ue=Math.sin(se)*F;A.push({ring:H,index:D,angle:se,x:W,y:ue})}}}A.sort((H,F)=>{const K=H.angle-F.angle;return Math.abs(K)>.001?K:H.ring-F.ring});const C=[];let I=0;t.forEach(H=>{const F=[],K=Math.min(H.seats,A.length-I);let Q=1/0,D=-1/0;for(let W=0;W<K&&I<A.length;W++){const ue=A[I++];ue&&(Q=Math.min(Q,ue.angle),D=Math.max(D,ue.angle),Math.sqrt(ue.x*ue.x+ue.y*ue.y),F.push(h("circle",{fill:H.colour,stroke:H.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${ue.x}, ${ue.y})`,r:_,"data-party":H.name,"data-party-id":String(H.id),style:"pointer-events: all; cursor: pointer;"})))}const se=F;C.push(h("g",{className:"party-group","data-party":H.name,style:"opacity: 1; outline: none;"},se))});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:d})]),j=h("g",{className:"points-container"},C),$=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,N=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:d})]),TT(h),ET(h),CT(h)]),L=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[k,j,$].filter(Boolean)),q=x/2;let U;if(b<=180)U=a*Math.sin(q)+_;else{const H=q-Math.PI/2;U=a*(1+Math.sin(H))+_}const X=a+_,V=a*2,te=Math.max(U,X);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${V} ${te}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[L,N])};function uE(t){return!t||!t.color?"#cccccc":t.color==="url(#hatchPattern)"?Ki.COMPLETED:t.color==="url(#greyHatchPattern)"?De.greyHatch.lines:t.color}function Fm(t,e){if(!t)return;const r=t.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");e?a===e?i.style.opacity=It.animation.hoverOpacity.active:i.style.opacity=It.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function zm(t,e){t.forEach(r=>{const n=r,i=r.getAttribute("class")||"";e?i===e?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",It.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const tF=({containerRef:t,processedData:e,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:d})=>{O.useEffect(()=>{if(!t.current||e.length===0)return;for(;t.current.firstChild;)t.current.removeChild(t.current.firstChild);const y=r<=a?1:a/r,m=e.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)"?Ki.COMPLETED:w.color}}),p=i?eF(m,{arcAngle:n,arcAngleFlexibility:l.arcAngleFlexibility,radius:l.radius,seatSize:c,minSeatSize:l.minSeatSize,maxSeatSize:l.maxSeatSize,spacing:l.spacing,innerRadiusRatio:l.innerRadiusRatio,showLabels:!0}):JB(m,{arcAngle:n});p.properties&&(p.properties.width="100%",p.properties.height="100%",p.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",p.properties.preserveAspectRatio="xMidYMid meet");const g=qL(p),x=new DOMParser().parseFromString(g,"image/svg+xml").documentElement;if(!x)return;x.setAttribute("width","100%"),x.setAttribute("height","100%"),x.style.width="100%",x.style.height="auto",x.style.display="block",i?rF(x,m,e,o,s,u):nF(x,m,e,o,s,u);const v=()=>{if(o(null),u(null),i)Fm(x,null);else{const w=x.querySelectorAll("circle");zm(w,null)}};return x&&x.addEventListener("mouseleave",v),t.current.appendChild(x),f&&x&&zL(x,n,l.radius,h,900,d),()=>{if(x&&x.removeEventListener("mouseleave",v),t.current)for(;t.current.firstChild;)t.current.removeChild(t.current.firstChild)}},[e,r,n,i,a,o,s,u,t,l,c,f,h,d])};function rF(t,e,r,n,i,a){if(!t)return;const o=t.querySelectorAll(".seat-hover-zone"),s=t.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(u=>{if(u){const l=u;l.style.stroke=It.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${It.animation.transitionDuration} ease, stroke-opacity ${It.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=e.find(d=>d.name===l||String(d.id)===c);if(h){const d=r.find(y=>y.label===h.name||String(y.id)===h.id);if(d){const y=uE(d);n({label:d.label||"Unknown",value:d.value||0,color:y}),a(h.name),Fm(t,h.name)}}}};u.addEventListener("mouseenter",f)}),i&&Fm(t,i)}function nF(t,e,r,n,i,a){if(!t)return;const o=t.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const u=s;u.style.cursor="pointer",u.style.stroke=It.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${It.animation.transitionDuration} ease, stroke-opacity ${It.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const u=s.getAttribute("class")||"",l=parseInt(u,10),c=e[l],f=()=>{if(c){const h=c.name;if(h&&h!==i){const d=r.find(y=>y.label===c.name||String(y.id)===c.id);if(d){const y=uE(d);n({label:d.label||"Unknown",value:d.value||0,color:y}),a(h),zm(o,u)}}}};s.addEventListener("mouseenter",f)})),i){const s=e.find(u=>u.name===i);if(s){const u=e.indexOf(s);zm(o,String(u))}}}const Bd=bo,g1={[wo]:Ki.NOT_APPLICABLE,[So]:Ki.NO_LST,[Oo]:Ki.DATA_MISSING},Qa=(t,e,r)=>{if(t in g1)return g1[t];const n=r-1-e,i=Bd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return Bd[o]??Bd[0]??"#000000"},lE=({dataSeries:t,notApplicableRepositories:e,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=t.reduce((d,y,m)=>([wo,So,Oo].includes(y.label)?d.special.push({...y,originalIndex:m}):d.regular.push({...y,originalIndex:m}),d),{special:[],regular:[]}),o=a.reverse().map((d,y)=>({id:`measure-${y}`,label:d.label,value:d.value,color:Qa(d.label,a.length-1-y,a.length)})),s=i.map((d,y)=>({id:d.label.toLowerCase().replace(" ","-"),label:d.label,value:d.value,color:Qa(d.label,y,i.length)})),u=n,l={id:"no-lst",label:So,value:r,color:Qa(So,0,1)},c={id:"data-missing",label:Oo,value:u,color:Qa(Oo,0,1)},f={id:"n/a",label:wo,value:e,color:Qa(wo,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},b1={"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."},iF=({dataSeries:t,totalRepositories:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=It.useEnhanced,showTable:s=!0,shouldAnimate:u=!1,animationDirection:l="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,d]=O.useState(null),[y,m]=O.useState(null),g=lE({dataSeries:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,P=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:P}}),_=a??Qv({repositoryCount:e}),b=eg({repositoryCount:e});tF({containerRef:f,processedData:g,totalRepositories:e,arcAngle:_,useEnhanced:o,maxSeats:It.maxSeats,setHoveredData:d,activePartyName:y,setActivePartyName:m,chartConfig:It.chartConfig,seatSize:b,shouldAnimate:u,animationDirection:l,onAnimationComplete:c});const x=g.map(S=>{const A=S.value/e*100,P=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:P,color:S.color}}),v=e>It.maxSeats,w=v?Math.round(e/It.maxSeats):1;return G.jsxs(ee.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(ee.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(ee.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(ee.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(ee.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(ee.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),v&&G.jsxs(ee.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(ee.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),G.jsxs(ee.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&G.jsx(ee.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:()=>{d(null),m(null)},children:G.jsxs(ee.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(ee.TableRow,{children:[G.jsx(ee.TableCell,{}),G.jsx(ee.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),G.jsx(ee.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),G.jsx(ee.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),G.jsx("tbody",{children:x.map(S=>{const A=S.color==="url(#greyHatchPattern)"?De.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?De.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?De.noLstHatch.lines:S.color;return G.jsxs(ee.TableRow,{onMouseEnter:()=>{m(S.label),d({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?De.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?De.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?De.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(ee.TableCell,{align:"center",sx:{width:20},children:G.jsx(ee.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?De.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?De.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?De.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 xB(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=Qv);const l=wB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(l||!a||!mB(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||!e0(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function wB(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=SB(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 SB(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=Ba(n.attribute,Object.assign({},e.settings.characterReferences,{subset:zu.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?gL:bL)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(s=Ba(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:zu.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&d_(r,o)>d_(r,e.alternative)&&(o=e.alternative),s=o+Ba(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?zu.single:zu.double)[i][a],attribute:!0}))+o),u+(s&&"="+s))}const AB=["<","&"];function $E(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ba(e.value,Object.assign({},n.settings.characterReferences,{subset:AB}))}function OB(e,t,r,n){return n.settings.allowDangerousHtml?e.value:$E(e,t,r,n)}function TB(e,t,r,n){return n.all(e)}const PB=$L("type",{invalid:EB,unknown:CB,handlers:{comment:JL,doctype:QL,element:xB,raw:OB,root:TB,text:$E}});function EB(e){throw new Error("Expected node, not `"+e+"`")}function CB(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const MB={},kB={},$B=[];function jB(e,t){const r=MB,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:RB,all:DB,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||kL,characterReferences:r.characterReferences||kB,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Qv:wE,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function RB(e,t,r){return PB(e,t,r,this)}function DB(e){const t=[],r=e&&e.children||$B;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const Ke={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}},qa={COMPLETED:or.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},ys="N/A",gs="No LST",vs="Data Missing";function IB(e,t,r,n="left-to-right",i=900,a){te.prototype.transition=sv;const o=t*Math.PI/180,s=-o/2-Math.PI/2,u=o/2-Math.PI/2;let l=e.querySelector("defs");l||(l=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(l));const c="arc-sweep-clip";let f=l.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),l.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=_=>{const b=r*1.5,x=Math.cos(_)*b,g=Math.sin(_)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,O=u-_>Math.PI?1:0;return`M 0,0 L ${x},${g} A ${b},${b} 0 ${O},1 ${w},${S} Z`};h.setAttribute("d",d(s)),te(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=s+(u-s)*_;h.setAttribute("d",d(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=_=>{const b=r*1.5,x=Math.cos(_)*b,g=Math.sin(_)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,O=u-_>Math.PI?1:0;return`M 0,0 L ${x},${g} A ${b},${b} 0 ${O},1 ${w},${S} Z`};h.setAttribute("d",d(u)),te(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=u-(u-s)*_;h.setAttribute("d",d(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Uu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hf,v_;function jE(){if(v_)return Hf;v_=1;var e=typeof Uu=="object"&&Uu&&Uu.Object===Object&&Uu;return Hf=e,Hf}var Kf,b_;function on(){if(b_)return Kf;b_=1;var e=jE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Kf=r,Kf}var Yf,__;function NB(){if(__)return Yf;__=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Yf=t,Yf}var Xf,x_;function LB(){if(x_)return Xf;x_=1;var e=NB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Xf=r,Xf}var Vf,w_;function vi(){if(w_)return Vf;w_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Vf=e,Vf}var Zf,S_;function Ou(){if(S_)return Zf;S_=1;var e=on(),t=e.Symbol;return Zf=t,Zf}var Jf,A_;function BB(){if(A_)return Jf;A_=1;var e=Ou(),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 Jf=a,Jf}var Qf,O_;function qB(){if(O_)return Qf;O_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qf=r,Qf}var th,T_;function Yn(){if(T_)return th;T_=1;var e=Ou(),t=BB(),r=qB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return th=o,th}var eh,P_;function Xn(){if(P_)return eh;P_=1;function e(t){return t!=null&&typeof t=="object"}return eh=e,eh}var rh,E_;function Po(){if(E_)return rh;E_=1;var e=Yn(),t=Xn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return rh=n,rh}var nh,C_;function r0(){if(C_)return nh;C_=1;var e=LB(),t=vi(),r=Po(),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 nh=u,nh}var ih,M_;function RE(){if(M_)return ih;M_=1;var e=r0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return ih=n,ih}var ah,k_;function n0(){if(k_)return ah;k_=1;var e=RE();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return ah=t,ah}var oh,$_;function Ic(){if($_)return oh;$_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return oh=e,oh}var sh,j_;function Xe(){if(j_)return sh;j_=1;var e=Array.isArray;return sh=e,sh}var uh,R_;function FB(){if(R_)return uh;R_=1;var e=Ou(),t=Ic(),r=Xe(),n=Po(),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 uh=o,uh}var lh,D_;function i0(){if(D_)return lh;D_=1;var e=FB();function t(r){return r==null?"":e(r)}return lh=t,lh}var ch,I_;function zB(){if(I_)return ch;I_=1;var e=on(),t=n0(),r=r0(),n=i0(),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 ch=o,ch}var fh,N_;function UB(){if(N_)return fh;N_=1;var e=zB(),t=e("round");return fh=t,fh}var WB=UB();const GB=qt(WB);var hh,L_;function DE(){if(L_)return hh;L_=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return hh=e,hh}var ph,B_;function HB(){if(B_)return ph;B_=1;var e=Yn(),t=Xn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ph=n,ph}var dh,q_;function a0(){if(q_)return dh;q_=1;var e=HB(),t=Xn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return dh=a,dh}var mh,F_;function KB(){if(F_)return mh;F_=1;var e=Ou(),t=a0(),r=Xe(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return mh=i,mh}var yh,z_;function IE(){if(z_)return yh;z_=1;var e=DE(),t=KB();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 yh=r,yh}var gh,U_;function o0(){if(U_)return gh;U_=1;var e=Xe(),t=Po(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return gh=i,gh}var vh,W_;function s0(){if(W_)return vh;W_=1;var e=Yn(),t=vi(),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 vh=o,vh}var bh,G_;function YB(){if(G_)return bh;G_=1;var e=on(),t=e["__core-js_shared__"];return bh=t,bh}var _h,H_;function XB(){if(H_)return _h;H_=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 _h=r,_h}var xh,K_;function NE(){if(K_)return xh;K_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return xh=r,xh}var wh,Y_;function VB(){if(Y_)return wh;Y_=1;var e=s0(),t=XB(),r=vi(),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 wh=f,wh}var Sh,X_;function ZB(){if(X_)return Sh;X_=1;function e(t,r){return t==null?void 0:t[r]}return Sh=e,Sh}var Ah,V_;function pa(){if(V_)return Ah;V_=1;var e=VB(),t=ZB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Ah=r,Ah}var Oh,Z_;function Nc(){if(Z_)return Oh;Z_=1;var e=pa(),t=e(Object,"create");return Oh=t,Oh}var Th,J_;function JB(){if(J_)return Th;J_=1;var e=Nc();function t(){this.__data__=e?e(null):{},this.size=0}return Th=t,Th}var Ph,Q_;function QB(){if(Q_)return Ph;Q_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ph=e,Ph}var Eh,tx;function tq(){if(tx)return Eh;tx=1;var e=Nc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return Eh=i,Eh}var Ch,ex;function eq(){if(ex)return Ch;ex=1;var e=Nc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Ch=n,Ch}var Mh,rx;function rq(){if(rx)return Mh;rx=1;var e=Nc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Mh=r,Mh}var kh,nx;function nq(){if(nx)return kh;nx=1;var e=JB(),t=QB(),r=tq(),n=eq(),i=rq();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,kh=a,kh}var $h,ix;function iq(){if(ix)return $h;ix=1;function e(){this.__data__=[],this.size=0}return $h=e,$h}var jh,ax;function u0(){if(ax)return jh;ax=1;function e(t,r){return t===r||t!==t&&r!==r}return jh=e,jh}var Rh,ox;function Lc(){if(ox)return Rh;ox=1;var e=u0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Rh=t,Rh}var Dh,sx;function aq(){if(sx)return Dh;sx=1;var e=Lc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Dh=n,Dh}var Ih,ux;function oq(){if(ux)return Ih;ux=1;var e=Lc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ih=t,Ih}var Nh,lx;function sq(){if(lx)return Nh;lx=1;var e=Lc();function t(r){return e(this.__data__,r)>-1}return Nh=t,Nh}var Lh,cx;function uq(){if(cx)return Lh;cx=1;var e=Lc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Lh=t,Lh}var Bh,fx;function Bc(){if(fx)return Bh;fx=1;var e=iq(),t=aq(),r=oq(),n=sq(),i=uq();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,Bh=a,Bh}var qh,hx;function l0(){if(hx)return qh;hx=1;var e=pa(),t=on(),r=e(t,"Map");return qh=r,qh}var Fh,px;function lq(){if(px)return Fh;px=1;var e=nq(),t=Bc(),r=l0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Fh=n,Fh}var zh,dx;function cq(){if(dx)return zh;dx=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return zh=e,zh}var Uh,mx;function qc(){if(mx)return Uh;mx=1;var e=cq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Uh=t,Uh}var Wh,yx;function fq(){if(yx)return Wh;yx=1;var e=qc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Wh=t,Wh}var Gh,gx;function hq(){if(gx)return Gh;gx=1;var e=qc();function t(r){return e(this,r).get(r)}return Gh=t,Gh}var Hh,vx;function pq(){if(vx)return Hh;vx=1;var e=qc();function t(r){return e(this,r).has(r)}return Hh=t,Hh}var Kh,bx;function dq(){if(bx)return Kh;bx=1;var e=qc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Kh=t,Kh}var Yh,_x;function c0(){if(_x)return Yh;_x=1;var e=lq(),t=fq(),r=hq(),n=pq(),i=dq();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,Yh=a,Yh}var Xh,xx;function LE(){if(xx)return Xh;xx=1;var e=c0(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],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,Xh=r,Xh}var Vh,wx;function mq(){if(wx)return Vh;wx=1;var e=LE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Vh=r,Vh}var Zh,Sx;function yq(){if(Sx)return Zh;Sx=1;var e=mq(),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 Zh=n,Zh}var Jh,Ax;function BE(){if(Ax)return Jh;Ax=1;var e=Xe(),t=o0(),r=yq(),n=i0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Jh=i,Jh}var Qh,Ox;function Fc(){if(Ox)return Qh;Ox=1;var e=Po();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Qh=t,Qh}var tp,Tx;function f0(){if(Tx)return tp;Tx=1;var e=BE(),t=Fc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return tp=r,tp}var ep,Px;function gq(){if(Px)return ep;Px=1;var e=Bc();function t(){this.__data__=new e,this.size=0}return ep=t,ep}var rp,Ex;function vq(){if(Ex)return rp;Ex=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return rp=e,rp}var np,Cx;function bq(){if(Cx)return np;Cx=1;function e(t){return this.__data__.get(t)}return np=e,np}var ip,Mx;function _q(){if(Mx)return ip;Mx=1;function e(t){return this.__data__.has(t)}return ip=e,ip}var ap,kx;function xq(){if(kx)return ap;kx=1;var e=Bc(),t=l0(),r=c0(),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 ap=i,ap}var op,$x;function qE(){if($x)return op;$x=1;var e=Bc(),t=gq(),r=vq(),n=bq(),i=_q(),a=xq();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,op=o,op}var sp,jx;function wq(){if(jx)return sp;jx=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return sp=t,sp}var up,Rx;function Sq(){if(Rx)return up;Rx=1;function e(t){return this.__data__.has(t)}return up=e,up}var lp,Dx;function FE(){if(Dx)return lp;Dx=1;var e=c0(),t=wq(),r=Sq();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,lp=n,lp}var cp,Ix;function zE(){if(Ix)return cp;Ix=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return cp=e,cp}var fp,Nx;function UE(){if(Nx)return fp;Nx=1;function e(t,r){return t.has(r)}return fp=e,fp}var hp,Lx;function WE(){if(Lx)return hp;Lx=1;var e=FE(),t=zE(),r=UE(),n=1,i=2;function a(o,s,u,l,c,f){var h=u&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var 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,O){if(!r(b,O)&&(x===S||c(x,S,u,l,f)))return b.push(O)})){_=!1;break}}else if(!(x===g||c(x,g,u,l,f))){_=!1;break}}return f.delete(o),f.delete(s),_}return hp=a,hp}var pp,Bx;function Aq(){if(Bx)return pp;Bx=1;var e=on(),t=e.Uint8Array;return pp=t,pp}var dp,qx;function Oq(){if(qx)return dp;qx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return dp=e,dp}var mp,Fx;function h0(){if(Fx)return mp;Fx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return mp=e,mp}var yp,zx;function Tq(){if(zx)return yp;zx=1;var e=Ou(),t=Aq(),r=u0(),n=WE(),i=Oq(),a=h0(),o=1,s=2,u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",v="[object ArrayBuffer]",_="[object DataView]",b=e?e.prototype:void 0,x=b?b.valueOf:void 0;function g(w,S,O,T,M,P,E){switch(O){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 m:return w==S+"";case f:var k=i;case y:var R=T&o;if(k||(k=a),w.size!=S.size&&!R)return!1;var $=E.get(w);if($)return $==S;T|=s,E.set(w,S);var C=n(k(w),k(S),T,M,P,E);return E.delete(w),C;case d:if(x)return x.call(w)==x.call(S)}return!1}return yp=g,yp}var gp,Ux;function Pq(){if(Ux)return gp;Ux=1;var e=DE(),t=Xe();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return gp=r,gp}var vp,Wx;function Eq(){if(Wx)return vp;Wx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return vp=e,vp}var bp,Gx;function Cq(){if(Gx)return bp;Gx=1;function e(){return[]}return bp=e,bp}var _p,Hx;function Mq(){if(Hx)return _p;Hx=1;var e=Eq(),t=Cq(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return _p=a,_p}var xp,Kx;function kq(){if(Kx)return xp;Kx=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return xp=e,xp}var os={exports:{}},wp,Yx;function $q(){if(Yx)return wp;Yx=1;function e(){return!1}return wp=e,wp}os.exports;var Xx;function GE(){return Xx||(Xx=1,(function(e,t){var r=on(),n=$q(),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})(os,os.exports)),os.exports}var Sp,Vx;function p0(){if(Vx)return Sp;Vx=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Sp=r,Sp}var Ap,Zx;function d0(){if(Zx)return Ap;Zx=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ap=t,Ap}var Op,Jx;function jq(){if(Jx)return Op;Jx=1;var e=Yn(),t=d0(),r=Xn(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",v="[object DataView]",_="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",g="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",P={};P[_]=P[b]=P[x]=P[g]=P[w]=P[S]=P[O]=P[T]=P[M]=!0,P[n]=P[i]=P[d]=P[a]=P[v]=P[o]=P[s]=P[u]=P[l]=P[c]=P[f]=P[h]=P[p]=P[y]=P[m]=!1;function E(k){return r(k)&&t(k.length)&&!!P[e(k)]}return Op=E,Op}var Tp,Qx;function HE(){if(Qx)return Tp;Qx=1;function e(t){return function(r){return t(r)}}return Tp=e,Tp}var ss={exports:{}};ss.exports;var t1;function Rq(){return t1||(t1=1,(function(e,t){var r=jE(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(ss,ss.exports)),ss.exports}var Pp,e1;function KE(){if(e1)return Pp;e1=1;var e=jq(),t=HE(),r=Rq(),n=r&&r.isTypedArray,i=n?t(n):e;return Pp=i,Pp}var Ep,r1;function Dq(){if(r1)return Ep;r1=1;var e=kq(),t=a0(),r=Xe(),n=GE(),i=p0(),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),m=f||h||p||y,d=m?e(l.length,String):[],v=d.length;for(var _ in l)(c||s.call(l,_))&&!(m&&(_=="length"||p&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,v)))&&d.push(_);return d}return Ep=u,Ep}var Cp,n1;function Iq(){if(n1)return Cp;n1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Cp=t,Cp}var Mp,i1;function YE(){if(i1)return Mp;i1=1;function e(t,r){return function(n){return t(r(n))}}return Mp=e,Mp}var kp,a1;function Nq(){if(a1)return kp;a1=1;var e=YE(),t=e(Object.keys,Object);return kp=t,kp}var $p,o1;function Lq(){if(o1)return $p;o1=1;var e=Iq(),t=Nq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return $p=i,$p}var jp,s1;function Tu(){if(s1)return jp;s1=1;var e=s0(),t=d0();function r(n){return n!=null&&t(n.length)&&!e(n)}return jp=r,jp}var Rp,u1;function Pu(){if(u1)return Rp;u1=1;var e=Dq(),t=Lq(),r=Tu();function n(i){return r(i)?e(i):t(i)}return Rp=n,Rp}var Dp,l1;function Bq(){if(l1)return Dp;l1=1;var e=Pq(),t=Mq(),r=Pu();function n(i){return e(i,r,t)}return Dp=n,Dp}var Ip,c1;function qq(){if(c1)return Ip;c1=1;var e=Bq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,u,l,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var v=h[d];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;++d<p;){v=h[d];var w=a[v],S=o[v];if(u)var O=f?u(S,w,v,o,a,c):u(w,S,v,a,o,c);if(!(O===void 0?w===S||l(w,S,s,u,c):O)){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 Ip=i,Ip}var Np,f1;function Fq(){if(f1)return Np;f1=1;var e=pa(),t=on(),r=e(t,"DataView");return Np=r,Np}var Lp,h1;function zq(){if(h1)return Lp;h1=1;var e=pa(),t=on(),r=e(t,"Promise");return Lp=r,Lp}var Bp,p1;function XE(){if(p1)return Bp;p1=1;var e=pa(),t=on(),r=e(t,"Set");return Bp=r,Bp}var qp,d1;function Uq(){if(d1)return qp;d1=1;var e=pa(),t=on(),r=e(t,"WeakMap");return qp=r,qp}var Fp,m1;function Wq(){if(m1)return Fp;m1=1;var e=Fq(),t=l0(),r=zq(),n=XE(),i=Uq(),a=Yn(),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),m=o(r),d=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 m:return l;case d:return c;case v:return f}return x}),Fp=_,Fp}var zp,y1;function Gq(){if(y1)return zp;y1=1;var e=qE(),t=WE(),r=Tq(),n=qq(),i=Wq(),a=Xe(),o=GE(),s=KE(),u=1,l="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,v,_,b,x){var g=a(m),w=a(d),S=g?c:i(m),O=w?c:i(d);S=S==l?f:S,O=O==l?f:O;var T=S==f,M=O==f,P=S==O;if(P&&o(m)){if(!o(d))return!1;g=!0,T=!1}if(P&&!T)return x||(x=new e),g||s(m)?t(m,d,v,_,b,x):r(m,d,S,v,_,b,x);if(!(v&u)){var E=T&&p.call(m,"__wrapped__"),k=M&&p.call(d,"__wrapped__");if(E||k){var R=E?m.value():m,$=k?d.value():d;return x||(x=new e),b(R,$,v,_,x)}}return P?(x||(x=new e),n(m,d,v,_,b,x)):!1}return zp=y,zp}var Up,g1;function m0(){if(g1)return Up;g1=1;var e=Gq(),t=Xn();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Up=r,Up}var Wp,v1;function Hq(){if(v1)return Wp;v1=1;var e=qE(),t=m0(),r=1,n=2;function i(a,o,s,u){var l=s.length,c=l,f=!u;if(a==null)return!c;for(a=Object(a);l--;){var h=s[l];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++l<c;){h=s[l];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(u)var v=u(y,m,p,a,o,d);if(!(v===void 0?t(m,y,r|n,u,d):v))return!1}}return!0}return Wp=i,Wp}var Gp,b1;function VE(){if(b1)return Gp;b1=1;var e=vi();function t(r){return r===r&&!e(r)}return Gp=t,Gp}var Hp,_1;function Kq(){if(_1)return Hp;_1=1;var e=VE(),t=Pu();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 Hp=r,Hp}var Kp,x1;function ZE(){if(x1)return Kp;x1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Kp=e,Kp}var Yp,w1;function Yq(){if(w1)return Yp;w1=1;var e=Hq(),t=Kq(),r=ZE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Yp=n,Yp}var Xp,S1;function JE(){if(S1)return Xp;S1=1;var e=f0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Xp=t,Xp}var Vp,A1;function Xq(){if(A1)return Vp;A1=1;function e(t,r){return t!=null&&r in Object(t)}return Vp=e,Vp}var Zp,O1;function Vq(){if(O1)return Zp;O1=1;var e=BE(),t=a0(),r=Xe(),n=p0(),i=d0(),a=Fc();function o(s,u,l){u=e(u,s);for(var c=-1,f=u.length,h=!1;++c<f;){var p=a(u[c]);if(!(h=s!=null&&l(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return Zp=o,Zp}var Jp,T1;function Zq(){if(T1)return Jp;T1=1;var e=Xq(),t=Vq();function r(n,i){return n!=null&&t(n,i,e)}return Jp=r,Jp}var Qp,P1;function Jq(){if(P1)return Qp;P1=1;var e=m0(),t=JE(),r=Zq(),n=o0(),i=VE(),a=ZE(),o=Fc(),s=1,u=2;function l(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|u)}}return Qp=l,Qp}var td,E1;function Eo(){if(E1)return td;E1=1;function e(t){return t}return td=e,td}var ed,C1;function Qq(){if(C1)return ed;C1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ed=e,ed}var rd,M1;function tF(){if(M1)return rd;M1=1;var e=f0();function t(r){return function(n){return e(n,r)}}return rd=t,rd}var nd,k1;function eF(){if(k1)return nd;k1=1;var e=Qq(),t=tF(),r=o0(),n=Fc();function i(a){return r(a)?e(n(a)):t(a)}return nd=i,nd}var id,$1;function bi(){if($1)return id;$1=1;var e=Yq(),t=Jq(),r=Eo(),n=Xe(),i=eF();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return id=a,id}var ad,j1;function rF(){if(j1)return ad;j1=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 ad=e,ad}var od,R1;function nF(){if(R1)return od;R1=1;var e=rF(),t=e();return od=t,od}var sd,D1;function QE(){if(D1)return sd;D1=1;var e=nF(),t=Pu();function r(n,i){return n&&e(n,i,t)}return sd=r,sd}var ud,I1;function iF(){if(I1)return ud;I1=1;var e=Tu();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 ud=t,ud}var ld,N1;function y0(){if(N1)return ld;N1=1;var e=QE(),t=iF(),r=t(e);return ld=r,ld}var cd,L1;function tC(){if(L1)return cd;L1=1;var e=y0(),t=Tu();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 cd=r,cd}var fd,B1;function aF(){if(B1)return fd;B1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return fd=e,fd}var hd,q1;function oF(){if(q1)return hd;q1=1;var e=Po();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 hd=t,hd}var pd,F1;function sF(){if(F1)return pd;F1=1;var e=oF();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 pd=t,pd}var dd,z1;function uF(){if(z1)return dd;z1=1;var e=Ic(),t=f0(),r=bi(),n=tC(),i=aF(),a=HE(),o=sF(),s=Eo(),u=Xe();function l(c,f,h){f.length?f=e(f,function(m){return u(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,v){var _=e(f,function(b){return b(m)});return{criteria:_,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return dd=l,dd}var md,U1;function lF(){if(U1)return md;U1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return md=e,md}var yd,W1;function cF(){if(W1)return yd;W1=1;var e=lF(),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 yd=r,yd}var gd,G1;function fF(){if(G1)return gd;G1=1;function e(t){return function(){return t}}return gd=e,gd}var vd,H1;function eC(){if(H1)return vd;H1=1;var e=pa(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return vd=t,vd}var bd,K1;function hF(){if(K1)return bd;K1=1;var e=fF(),t=eC(),r=Eo(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return bd=n,bd}var _d,Y1;function pF(){if(Y1)return _d;Y1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),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 _d=n,_d}var xd,X1;function dF(){if(X1)return xd;X1=1;var e=hF(),t=pF(),r=t(e);return xd=r,xd}var wd,V1;function mF(){if(V1)return wd;V1=1;var e=Eo(),t=cF(),r=dF();function n(i,a){return r(t(i,a,e),i+"")}return wd=n,wd}var Sd,Z1;function Eu(){if(Z1)return Sd;Z1=1;var e=u0(),t=Tu(),r=p0(),n=vi();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 Sd=i,Sd}var Ad,J1;function yF(){if(J1)return Ad;J1=1;var e=IE(),t=uF(),r=mF(),n=Eu(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Ad=i,Ad}var gF=yF();const zc=qt(gF);var Od,Q1;function vF(){if(Q1)return Od;Q1=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Od=e,Od}var bF=vF();const tw=qt(bF);var Td,ew;function _F(){if(ew)return Td;ew=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 Td=r,Td}var Pd,rw;function xF(){if(rw)return Pd;rw=1;var e=_F(),t=Eu(),r=RE();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Pd=n,Pd}var Ed,nw;function wF(){if(nw)return Ed;nw=1;var e=xF(),t=e();return Ed=t,Ed}var SF=wF();const Fs=qt(SF);var Cd,iw;function AF(){if(iw)return Cd;iw=1;var e=Ic(),t=bi(),r=tC(),n=Xe();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return Cd=i,Cd}var Md,aw;function OF(){if(aw)return Md;aw=1;var e=IE(),t=AF();function r(n,i){return e(t(n,i),1)}return Md=r,Md}var TF=OF();const rC=qt(TF);var kd,ow;function nC(){if(ow)return kd;ow=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return kd=e,kd}var $d,sw;function PF(){if(sw)return $d;sw=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return $d=e,$d}var jd,uw;function EF(){if(uw)return jd;uw=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return jd=r,jd}var Rd,lw;function iC(){if(lw)return Rd;lw=1;var e=EF();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 Rd=t,Rd}var Dd,cw;function CF(){if(cw)return Dd;cw=1;var e=nC(),t=PF(),r=iC();function n(i,a){return r(t(i),e(a,0,i.length))}return Dd=n,Dd}var Id,fw;function MF(){if(fw)return Id;fw=1;var e=Ic();function t(r,n){return e(n,function(i){return r[i]})}return Id=t,Id}var Nd,hw;function kF(){if(hw)return Nd;hw=1;var e=MF(),t=Pu();function r(n){return n==null?[]:e(n,t(n))}return Nd=r,Nd}var Ld,pw;function $F(){if(pw)return Ld;pw=1;var e=nC(),t=iC(),r=kF();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return Ld=n,Ld}var Bd,dw;function jF(){if(dw)return Bd;dw=1;var e=CF(),t=$F(),r=Xe(),n=Eu(),i=n0();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 Bd=a,Bd}var RF=jF();const DF=qt(RF),IF=e=>GB(e,14),mw=e=>Object.values(e).reduce((t,r)=>t+r,0),NF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=mw(e),a=tw(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),v=Math.round(d*m/i);return[y,v]})),o=tw(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,v=Math.min(Math.round(d*m/i),t);return[y,v]})),s=rC(Object.entries(e).map(([y,m])=>{const d=a[y],v=o[y];return Fs(d,v).map(_=>{const b=IF(m/(_+.5));return{party:y,quotient:b}})})),u=mw(a),l=t-u,c=zc(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(...DF(p,l-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},Il=e=>Math.round(e*1e10)/1e10,LF=e=>e.reduce((t,r)=>t+r.seats,0),BF=e=>e.flat(),qF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:Il(e*Math.cos(i)),y:Il(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},Ko=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(aC(e,t,r,n)*t/r-i)},FF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=Ko(e,n,t,r),a=0;for(Ko(e,n+1,t,r)<i&&(a=1),Ko(e,n-1,t,r)<i&&n>1&&(a=-1);Ko(e,n+a,t,r)<i&&n>0;)i=Ko(e,n+a,t,r),n+=a;return n},zF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=Il((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=Il((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},UF=(e,t,r)=>{const n=LF(e),i=FF(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=NF(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={...qF(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=zF(s,f),m=s[y],d=f[y]??0,v=m==null?void 0:m[d];v&&(v.fill=h.colour,v.party=String(h.id)),f[y]=d+1}return BF(s)},WF=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:Au},HF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},GF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=UF(e,o,a),u=(((d=s[0])==null?void 0:d.r)??0)/.4||0,l=s.map(WF(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])},KF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Au},YF=(e,t={})=>{const r={...KF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:u,spacing:l,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((K,F)=>K+F.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,v=n+i;for(let K=d;K<=v;K+=2.5){const F=K*Math.PI/180;for(let H=u;H>=s;H-=.1){const Q=H*2,N=Q*l,ut=Math.floor((a-p)/N);for(let z=1;z<=Math.min(ut,10);z++){let st=0;for(let ft=0;ft<z;ft++){const at=p+(ft+.5)*N,ht=Q*l/at,Tt=Math.floor(F/ht);st+=Tt}if(st>=y){const ft=y/st,at=(H-s)/(u-s),ht=(st-y)/y,Tt=ht<.15?1:ht<.3?.7:ht<.5?.4:.1,it=1-Math.abs(K-n)/i,dt=Tt*.5+at*.3+ft*.15+it*.05;dt>m.score&&(m={seatSize:H,arcAngle:K,rings:z,score:dt})}}}}const _=m.seatSize,b=m.arcAngle,x=b*Math.PI/180,g=_*2,w=g*l,S=Math.floor((a-p)/w),O=[],T=-x/2-Math.PI/2,M=[];let P=0,E=[];for(let K=1;K<=S;K++){let F=0;const H=[];for(let Q=0;Q<K;Q++){const N=p+(Q+.5)*w,ut=g*l/N,z=Math.floor(x/ut);H.push(z),F+=z}if(F>=y){P=K,E=H;break}}if(P>0)M.push(...E);else for(let K=0;K<S;K++){const F=p+(K+.5)*w,H=g*l/F,Q=Math.floor(x/H);M.push(Q)}for(let K=0;K<M.length;K++){const F=p+(K+.5)*w,H=M[K]??0;if(H>0){const Q=x/H;for(let N=0;N<H;N++){const ut=T+(N+.5)*Q,z=Math.cos(ut)*F,st=Math.sin(ut)*F;O.push({ring:K,index:N,angle:ut,x:z,y:st})}}}O.sort((K,F)=>{const H=K.angle-F.angle;return Math.abs(H)>.001?H:K.ring-F.ring});const k=[];let R=0;e.forEach(K=>{const F=[],H=Math.min(K.seats,O.length-R);let Q=1/0,N=-1/0;for(let z=0;z<H&&R<O.length;z++){const st=O[R++];st&&(Q=Math.min(Q,st.angle),N=Math.max(N,st.angle),Math.sqrt(st.x*st.x+st.y*st.y),F.push(h("circle",{fill:K.colour,stroke:K.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${st.x}, ${st.y})`,r:_,"data-party":K.name,"data-party-id":String(K.id),style:"pointer-events: all; cursor: pointer;"})))}const ut=F;k.push(h("g",{className:"party-group","data-party":K.name,style:"opacity: 1; outline: none;"},ut))});const $=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),C=h("g",{className:"points-container"},k),I=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,L=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),AE(h),OE(h),TE(h)]),j=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[$,C,I].filter(Boolean)),B=x/2;let W;if(b<=180)W=a*Math.sin(B)+_;else{const K=B-Math.PI/2;W=a*(1+Math.sin(K))+_}const G=a+_,X=a*2,J=Math.max(W,G);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${X} ${J}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[j,L])};function oC(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?qa.COMPLETED:e.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:e.color}function qy(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=Ke.animation.hoverOpacity.active:i.style.opacity=Ke.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Fy(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",Ke.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const XF=({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})=>{A.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(w=>w.value>0).map(w=>{const S=r<=a?w.value:Math.max(1,Math.floor(w.value*y));return{id:String(w.id),name:w.label,seats:S,colour:w.color==="url(#hatchPattern)"?qa.COMPLETED:w.color}}),d=i?YF(m,{arcAngle:n,arcAngleFlexibility:l.arcAngleFlexibility,radius:l.radius,seatSize:c,minSeatSize:l.minSeatSize,maxSeatSize:l.maxSeatSize,spacing:l.spacing,innerRadiusRatio:l.innerRadiusRatio,showLabels:!0}):HF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const v=jB(d),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?VF(x,m,t,o,s,u):ZF(x,m,t,o,s,u);const g=()=>{if(o(null),u(null),i)qy(x,null);else{const w=x.querySelectorAll("circle");Fy(w,null)}};return x&&x.addEventListener("mouseleave",g),e.current.appendChild(x),f&&x&&IB(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 VF(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=Ke.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${Ke.animation.transitionDuration} ease, stroke-opacity ${Ke.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),qy(e,h.name)}}}};u.addEventListener("mouseenter",f)}),i&&qy(e,i)}function ZF(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=Ke.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${Ke.animation.transitionDuration} ease, stroke-opacity ${Ke.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),Fy(o,u)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(u=>u.name===i);if(s){const u=t.indexOf(s);Fy(o,String(u))}}}const qd=ps,yw={[ys]:qa.NOT_APPLICABLE,[gs]:qa.NO_LST,[vs]:qa.DATA_MISSING},Yo=(e,t,r)=>{if(e in yw)return yw[e];const n=r-1-t,i=qd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return qd[o]??qd[0]??"#000000"},sC=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([ys,gs,vs].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:Yo(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:Yo(p.label,y,i.length)})),u=n,l={id:"no-lst",label:gs,value:r,color:Yo(gs,0,1)},c={id:"data-missing",label:vs,value:u,color:Yo(vs,0,1)},f={id:"n/a",label:ys,value:t,color:Yo(ys,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},gw={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},JF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=Ke.useEnhanced,showTable:s=!0,shouldAnimate:u=!1,animationDirection:l="left-to-right",onAnimationComplete:c})=>{const f=A.useRef(null),[h,p]=A.useState(null),[y,m]=A.useState(null),v=sC({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const O=typeof S.color=="function"?S.color("arc"):S.color,T=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:O,label:T}}),_=a??Vv({repositoryCount:t}),b=Zv({repositoryCount:t});XF({containerRef:f,processedData:v,totalRepositories:t,arcAngle:_,useEnhanced:o,maxSeats:Ke.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:Ke.chartConfig,seatSize:b,shouldAnimate:u,animationDirection:l,onAnimationComplete:c});const x=v.map(S=>{const O=S.value/t*100,T=O>0&&O<1?"< 1":O.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:T,color:S.color}}),g=t>Ke.maxSeats,w=g?Math.round(t/Ke.maxSeats):1;return U.jsxs(Z.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:[U.jsxs(Z.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:[U.jsx(Z.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"}}}}),U.jsxs(Z.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&&U.jsxs(A.Fragment,{children:[U.jsx(Z.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}),U.jsxs(Z.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&&U.jsxs(Z.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:[U.jsx(Z.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),U.jsxs(Z.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&U.jsx(Z.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:U.jsxs(Z.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:[U.jsx("thead",{children:U.jsxs(Z.TableRow,{children:[U.jsx(Z.TableCell,{}),U.jsx(Z.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),U.jsx(Z.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),U.jsx(Z.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),U.jsx("tbody",{children:x.map(S=>{const O=S.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?zt.noLstHatch.lines:S.color;return U.jsxs(Z.TableRow,{onMouseEnter:()=>{m(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?`${O}15`:"transparent","&:hover":{backgroundColor:`${O}15`}},children:[U.jsx(Z.TableCell,{align:"center",sx:{width:20},children:U.jsx(Z.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(
42
48
  0deg,
43
49
  transparent,
44
50
  transparent 3px,
45
- ${De.greyHatch.lines} 3px,
46
- ${De.greyHatch.lines} 4px
51
+ ${zt.greyHatch.lines} 3px,
52
+ ${zt.greyHatch.lines} 4px
47
53
  )`,borderRadius:"50%"}},...S.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
48
54
  45deg,
49
55
  transparent,
50
56
  transparent 3px,
51
- ${De.dataMissingHatch.lines} 3px,
52
- ${De.dataMissingHatch.lines} 4px
57
+ ${zt.dataMissingHatch.lines} 3px,
58
+ ${zt.dataMissingHatch.lines} 4px
53
59
  )`,borderRadius:"50%"}},...S.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
54
60
  -45deg,
55
61
  transparent,
56
62
  transparent 3px,
57
- ${De.noLstHatch.lines} 3px,
58
- ${De.noLstHatch.lines} 4px
59
- )`,borderRadius:"50%"}}}})}),G.jsx(ee.TableCell,{children:G.jsxs(ee.Stack,{direction:"row",alignItems:"center",gap:.5,children:[G.jsx("span",{children:S.label}),b1[S.label]&&G.jsx(ee.Tooltip,{title:b1[S.label],placement:"right",arrow:!0,children:G.jsx(GO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),G.jsx(ee.TableCell,{align:"right",children:S.value}),G.jsxs(ee.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function cE(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=cE(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function _e(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=cE(t))&&(n&&(n+=" "),n+=e);return n}var aF=eE();const vr=$e(aF);var Fd,_1;function oF(){if(_1)return Fd;_1=1;function t(e){return e==null}return Fd=t,Fd}var sF=oF();const pe=$e(sF);var zd,x1;function uF(){if(x1)return zd;x1=1;var t=pn(),e=$t(),r=mn(),n="[object String]";function i(a){return typeof a=="string"||!e(a)&&r(a)&&t(a)==n}return zd=i,zd}var lF=uF();const di=$e(lF);var cF=cg();const ye=$e(cF);var fF=Rn();const Da=$e(fF);var Vs={exports:{}},Ee={};/**
63
+ ${zt.noLstHatch.lines} 3px,
64
+ ${zt.noLstHatch.lines} 4px
65
+ )`,borderRadius:"50%"}}}})}),U.jsx(Z.TableCell,{children:U.jsxs(Z.Stack,{direction:"row",alignItems:"center",gap:.5,children:[U.jsx("span",{children:S.label}),gw[S.label]&&U.jsx(Z.Tooltip,{title:gw[S.label],placement:"right",arrow:!0,children:U.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),U.jsx(Z.TableCell,{align:"right",children:S.value}),U.jsxs(Z.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 Ot(){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 QF=JE();const Fr=qt(QF);var Fd,vw;function tz(){if(vw)return Fd;vw=1;function e(t){return t==null}return Fd=e,Fd}var ez=tz();const gt=qt(ez);var zd,bw;function rz(){if(bw)return zd;bw=1;var e=Yn(),t=Xe(),r=Xn(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return zd=i,zd}var nz=rz();const na=qt(nz);var iz=s0();const bt=qt(iz);var az=vi();const Co=qt(az);var Wu={exports:{}},Dt={};/**
60
66
  * @license React
61
67
  * react-is.production.min.js
62
68
  *
@@ -64,7 +70,7 @@
64
70
  *
65
71
  * This source code is licensed under the MIT license found in the
66
72
  * LICENSE file in the root directory of this source tree.
67
- */var w1;function hF(){if(w1)return Ee;w1=1;var t=Symbol.for("react.element"),e=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"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case t:switch(p=p.type,p){case r:case i:case n:case l:case c:return p;default:switch(p=p&&p.$$typeof,p){case s:case o:case u:case h:case f:case a:return p;default:return g}}case e:return g}}}return Ee.ContextConsumer=o,Ee.ContextProvider=a,Ee.Element=t,Ee.ForwardRef=u,Ee.Fragment=r,Ee.Lazy=h,Ee.Memo=f,Ee.Portal=e,Ee.Profiler=i,Ee.StrictMode=n,Ee.Suspense=l,Ee.SuspenseList=c,Ee.isAsyncMode=function(){return!1},Ee.isConcurrentMode=function(){return!1},Ee.isContextConsumer=function(p){return m(p)===o},Ee.isContextProvider=function(p){return m(p)===a},Ee.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},Ee.isForwardRef=function(p){return m(p)===u},Ee.isFragment=function(p){return m(p)===r},Ee.isLazy=function(p){return m(p)===h},Ee.isMemo=function(p){return m(p)===f},Ee.isPortal=function(p){return m(p)===e},Ee.isProfiler=function(p){return m(p)===i},Ee.isStrictMode=function(p){return m(p)===n},Ee.isSuspense=function(p){return m(p)===l},Ee.isSuspenseList=function(p){return m(p)===c},Ee.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===l||p===c||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===f||p.$$typeof===a||p.$$typeof===o||p.$$typeof===u||p.$$typeof===y||p.getModuleId!==void 0)},Ee.typeOf=m,Ee}var Ce={};/**
73
+ */var _w;function oz(){if(_w)return Dt;_w=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var v=d.$$typeof;switch(v){case e:switch(d=d.type,d){case r:case i:case n:case l:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case u:case h:case f:case a:return d;default:return v}}case t:return v}}}return Dt.ContextConsumer=o,Dt.ContextProvider=a,Dt.Element=e,Dt.ForwardRef=u,Dt.Fragment=r,Dt.Lazy=h,Dt.Memo=f,Dt.Portal=t,Dt.Profiler=i,Dt.StrictMode=n,Dt.Suspense=l,Dt.SuspenseList=c,Dt.isAsyncMode=function(){return!1},Dt.isConcurrentMode=function(){return!1},Dt.isContextConsumer=function(d){return m(d)===o},Dt.isContextProvider=function(d){return m(d)===a},Dt.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},Dt.isForwardRef=function(d){return m(d)===u},Dt.isFragment=function(d){return m(d)===r},Dt.isLazy=function(d){return m(d)===h},Dt.isMemo=function(d){return m(d)===f},Dt.isPortal=function(d){return m(d)===t},Dt.isProfiler=function(d){return m(d)===i},Dt.isStrictMode=function(d){return m(d)===n},Dt.isSuspense=function(d){return m(d)===l},Dt.isSuspenseList=function(d){return m(d)===c},Dt.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===l||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===u||d.$$typeof===y||d.getModuleId!==void 0)},Dt.typeOf=m,Dt}var It={};/**
68
74
  * @license React
69
75
  * react-is.development.js
70
76
  *
@@ -72,83 +78,83 @@
72
78
  *
73
79
  * This source code is licensed under the MIT license found in the
74
80
  * LICENSE file in the root directory of this source tree.
75
- */var S1;function dF(){return S1||(S1=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),e=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"),d=Symbol.for("react.offscreen"),y=!1,m=!1,p=!1,g=!1,_=!1,b;b=Symbol.for("react.module.reference");function x(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===i||_||W===n||W===l||W===c||g||W===d||y||m||p||typeof W=="object"&&W!==null&&(W.$$typeof===h||W.$$typeof===f||W.$$typeof===a||W.$$typeof===o||W.$$typeof===u||W.$$typeof===b||W.getModuleId!==void 0))}function v(W){if(typeof W=="object"&&W!==null){var ue=W.$$typeof;switch(ue){case t:var de=W.type;switch(de){case r:case i:case n:case l:case c:return de;default:var ie=de&&de.$$typeof;switch(ie){case s:case o:case u:case h:case f:case a:return ie;default:return ue}}case e:return ue}}}var w=o,S=a,A=t,P=u,M=r,T=h,E=f,C=e,I=i,k=n,j=l,$=c,N=!1,B=!1;function R(W){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(W){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(W){return v(W)===o}function U(W){return v(W)===a}function X(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function V(W){return v(W)===u}function te(W){return v(W)===r}function re(W){return v(W)===h}function H(W){return v(W)===f}function F(W){return v(W)===e}function K(W){return v(W)===i}function Q(W){return v(W)===n}function D(W){return v(W)===l}function se(W){return v(W)===c}Ce.ContextConsumer=w,Ce.ContextProvider=S,Ce.Element=A,Ce.ForwardRef=P,Ce.Fragment=M,Ce.Lazy=T,Ce.Memo=E,Ce.Portal=C,Ce.Profiler=I,Ce.StrictMode=k,Ce.Suspense=j,Ce.SuspenseList=$,Ce.isAsyncMode=R,Ce.isConcurrentMode=L,Ce.isContextConsumer=q,Ce.isContextProvider=U,Ce.isElement=X,Ce.isForwardRef=V,Ce.isFragment=te,Ce.isLazy=re,Ce.isMemo=H,Ce.isPortal=F,Ce.isProfiler=K,Ce.isStrictMode=Q,Ce.isSuspense=D,Ce.isSuspenseList=se,Ce.isValidElementType=x,Ce.typeOf=v})()),Ce}var O1;function pF(){return O1||(O1=1,process.env.NODE_ENV==="production"?Vs.exports=hF():Vs.exports=dF()),Vs.exports}var mF=pF(),Ud,A1;function fE(){if(A1)return Ud;A1=1;var t=pn(),e=mn(),r="[object Number]";function n(i){return typeof i=="number"||e(i)&&t(i)==r}return Ud=n,Ud}var Wd,P1;function yF(){if(P1)return Wd;P1=1;var t=fE();function e(r){return t(r)&&r!=+r}return Wd=e,Wd}var vF=yF();const Na=$e(vF);var gF=fE();const bF=$e(gF);var Pr=function(e){return e===0?0:e>0?1:-1},Qn=function(e){return di(e)&&e.indexOf("%")===e.length-1},J=function(e){return bF(e)&&!Na(e)},_F=function(e){return pe(e)},ct=function(e){return J(e)||di(e)},xF=0,Oi=function(e){var r=++xF;return"".concat(e||"").concat(r)},pi=function(e,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(!J(e)&&!di(e))return n;var a;if(Qn(e)){var o=e.indexOf("%");a=r*parseFloat(e.slice(0,o))/100}else a=+e;return Na(a)&&(a=n),i&&a>r&&(a=r),a},gn=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},wF=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},i=0;i<r;i++)if(!n[e[i]])n[e[i]]=!0;else return!0;return!1},tt=function(e,r){return J(e)&&J(r)?function(n){return e+n*(r-e)}:function(){return r}};function Fu(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):vr(n,e))===r})}var SF=function(e){if(!e||!e.length)return null;for(var r=e.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=e[f].cx||0,c=e[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}},OF=function(e,r){return J(e)&&J(r)?e-r:di(e)&&di(r)?e.localeCompare(r):e instanceof Date&&r instanceof Date?e.getTime()-r.getTime():String(e).localeCompare(String(r))};function Xi(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function Um(t){"@babel/helpers - typeof";return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Um(t)}var AF=["viewBox","children"],PF=["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"],T1=["points","pathLength"],Hd={svg:AF,polygon:T1,polyline:T1},_g=["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"],zu=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(O.isValidElement(e)&&(n=e.props),!Da(n))return null;var i={};return Object.keys(n).forEach(function(a){_g.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},TF=function(e,r,n){return function(i){return e(r,n,i),null}},Ko=function(e,r,n){if(!Da(e)||Um(e)!=="object")return null;var i=null;return Object.keys(e).forEach(function(a){var o=e[a];_g.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=TF(o,r,n))}),i},EF=["children"],CF=["children"];function E1(t,e){if(t==null)return{};var r=MF(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function MF(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Wm(t){"@babel/helpers - typeof";return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wm(t)}var C1={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"},nn=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},M1=null,Gd=null,xg=function t(e){if(e===M1&&Array.isArray(Gd))return Gd;var r=[];return O.Children.forEach(e,function(n){pe(n)||(mF.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),Gd=r,M1=e,r};function Ht(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(i){return nn(i)}):n=[nn(e)],xg(t).forEach(function(i){var a=vr(i,"type.displayName")||vr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Zt(t,e){var r=Ht(t,e);return r&&r[0]}var k1=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,i=r.height;return!(!J(n)||n<=0||!J(i)||i<=0)},kF=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],jF=function(e){return e&&e.type&&di(e.type)&&kF.indexOf(e.type)>=0},hE=function(e){return e&&Wm(e)==="object"&&"clipDot"in e},IF=function(e,r,n,i){var a,o=(a=Hd==null?void 0:Hd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!ye(e)&&(i&&o.includes(r)||PF.includes(r))||n&&_g.includes(r)},me=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var i=e;if(O.isValidElement(e)&&(i=e.props),!Da(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;IF((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Hm=function t(e,r){if(e===r)return!0;var n=O.Children.count(e);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return j1(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=e[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!t(a,o))return!1}else if(!j1(a,o))return!1}return!0},j1=function(e,r){if(pe(e)&&pe(r))return!0;if(!pe(e)&&!pe(r)){var n=e.props||{},i=n.children,a=E1(n,EF),o=r.props||{},s=o.children,u=E1(o,CF);return i&&s?Xi(a,u)&&Hm(i,s):!i&&!s?Xi(a,u):!1}return!1},I1=function(e,r){var n=[],i={};return xg(e).forEach(function(a,o){if(jF(a))n.push(a);else if(a){var s=nn(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},RF=function(e){var r=e&&e.type;return r&&C1[r]?C1[r]:null},$F=function(e,r){return xg(r).indexOf(e)},DF=["children","width","height","viewBox","className","style","title","desc"];function Gm(){return Gm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gm.apply(this,arguments)}function NF(t,e){if(t==null)return{};var r=LF(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function LF(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Km(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,a=t.className,o=t.style,s=t.title,u=t.desc,l=NF(t,DF),c=i||{width:r,height:n,x:0,y:0},f=_e("recharts-surface",a);return O.createElement("svg",Gm({},me(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),e)}var qF=["children","className"];function Xm(){return Xm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xm.apply(this,arguments)}function BF(t,e){if(t==null)return{};var r=FF(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function FF(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var Te=O.forwardRef(function(t,e){var r=t.children,n=t.className,i=BF(t,qF),a=_e("recharts-layer",n);return O.createElement("g",Xm({className:a},me(i,!0),{ref:e}),r)}),zF=process.env.NODE_ENV!=="production",an=function(e,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(zF&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!e))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Kd,R1;function UF(){if(R1)return Kd;R1=1;function t(e,r,n){var i=-1,a=e.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]=e[i+r];return o}return Kd=t,Kd}var Xd,$1;function WF(){if($1)return Xd;$1=1;var t=UF();function e(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:t(r,n,i)}return Xd=e,Xd}var Yd,D1;function dE(){if(D1)return Yd;D1=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+t+i+a+"]");function u(l){return s.test(l)}return Yd=u,Yd}var Vd,N1;function HF(){if(N1)return Vd;N1=1;function t(e){return e.split("")}return Vd=t,Vd}var Zd,L1;function GF(){if(L1)return Zd;L1=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,a="\\ufe0e\\ufe0f",o="["+t+"]",s="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+u+")",c="[^"+t+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=l+"?",m="["+a+"]?",p="(?:"+d+"(?:"+[c,f,h].join("|")+")"+m+y+")*",g=m+y+p,_="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(u+"(?="+u+")|"+_+g,"g");function x(v){return v.match(b)||[]}return Zd=x,Zd}var Jd,q1;function KF(){if(q1)return Jd;q1=1;var t=HF(),e=dE(),r=GF();function n(i){return e(i)?r(i):t(i)}return Jd=n,Jd}var Qd,B1;function XF(){if(B1)return Qd;B1=1;var t=WF(),e=dE(),r=KF(),n=sg();function i(a){return function(o){o=n(o);var s=e(o)?r(o):void 0,u=s?s[0]:o.charAt(0),l=s?t(s,1).join(""):o.slice(1);return u[a]()+l}}return Qd=i,Qd}var ep,F1;function YF(){if(F1)return ep;F1=1;var t=XF(),e=t("toUpperCase");return ep=e,ep}var VF=YF();const Kl=$e(VF);function Xo(t){"@babel/helpers - typeof";return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xo(t)}var ZF=["type","size","sizeType"];function Ym(){return Ym=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ym.apply(this,arguments)}function z1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function U1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?z1(Object(r),!0).forEach(function(n){JF(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z1(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function JF(t,e,r){return e=QF(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QF(t){var e=ez(t,"string");return Xo(e)=="symbol"?e:e+""}function ez(t,e){if(Xo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function tz(t,e){if(t==null)return{};var r=rz(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function rz(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var pE={symbolCircle:Tv,symbolCross:RR,symbolDiamond:DR,symbolSquare:NR,symbolStar:FR,symbolTriangle:zR,symbolWye:WR},nz=Math.PI/180,iz=function(e){var r="symbol".concat(Kl(e));return pE[r]||Tv},az=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*nz;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},oz=function(e,r){pE["symbol".concat(Kl(e))]=r},Xl=function(e){var r=e.type,n=r===void 0?"circle":r,i=e.size,a=i===void 0?64:i,o=e.sizeType,s=o===void 0?"area":o,u=tz(e,ZF),l=U1(U1({},u),{},{type:n,size:a,sizeType:s}),c=function(){var p=iz(n),g=HR().type(p).size(az(a,s,n));return g()},f=l.className,h=l.cx,d=l.cy,y=me(l,!0);return h===+h&&d===+d&&a===+a?O.createElement("path",Ym({},y,{className:_e("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(d,")"),d:c()})):null};Xl.registerSymbol=oz;function la(t){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},la(t)}function Vm(){return Vm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vm.apply(this,arguments)}function W1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function sz(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?W1(Object(r),!0).forEach(function(n){Yo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):W1(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function uz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lz(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yE(n.key),n)}}function cz(t,e,r){return e&&lz(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function fz(t,e,r){return e=Uu(e),hz(t,mE()?Reflect.construct(e,r||[],Uu(t).constructor):e.apply(t,r))}function hz(t,e){if(e&&(la(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dz(t)}function dz(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mE=function(){return!!t})()}function Uu(t){return Uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uu(t)}function pz(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zm(t,e)}function Zm(t,e){return Zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zm(t,e)}function Yo(t,e,r){return e=yE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yE(t){var e=mz(t,"string");return la(e)=="symbol"?e:e+""}function mz(t,e){if(la(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(la(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var lr=32,wg=(function(t){function e(){return uz(this,e),fz(this,e,arguments)}return pz(e,t),cz(e,[{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 xw;function sz(){return xw||(xw=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,v=!1,_=!1,b;b=Symbol.for("react.module.reference");function x(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===i||_||z===n||z===l||z===c||v||z===p||y||m||d||typeof z=="object"&&z!==null&&(z.$$typeof===h||z.$$typeof===f||z.$$typeof===a||z.$$typeof===o||z.$$typeof===u||z.$$typeof===b||z.getModuleId!==void 0))}function g(z){if(typeof z=="object"&&z!==null){var st=z.$$typeof;switch(st){case e:var ft=z.type;switch(ft){case r:case i:case n:case l:case c:return ft;default:var at=ft&&ft.$$typeof;switch(at){case s:case o:case u:case h:case f:case a:return at;default:return st}}case t:return st}}}var w=o,S=a,O=e,T=u,M=r,P=h,E=f,k=t,R=i,$=n,C=l,I=c,L=!1,q=!1;function D(z){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(z){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(z){return g(z)===o}function W(z){return g(z)===a}function G(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function X(z){return g(z)===u}function J(z){return g(z)===r}function et(z){return g(z)===h}function K(z){return g(z)===f}function F(z){return g(z)===t}function H(z){return g(z)===i}function Q(z){return g(z)===n}function N(z){return g(z)===l}function ut(z){return g(z)===c}It.ContextConsumer=w,It.ContextProvider=S,It.Element=O,It.ForwardRef=T,It.Fragment=M,It.Lazy=P,It.Memo=E,It.Portal=k,It.Profiler=R,It.StrictMode=$,It.Suspense=C,It.SuspenseList=I,It.isAsyncMode=D,It.isConcurrentMode=j,It.isContextConsumer=B,It.isContextProvider=W,It.isElement=G,It.isForwardRef=X,It.isFragment=J,It.isLazy=et,It.isMemo=K,It.isPortal=F,It.isProfiler=H,It.isStrictMode=Q,It.isSuspense=N,It.isSuspenseList=ut,It.isValidElementType=x,It.typeOf=g})()),It}var ww;function uz(){return ww||(ww=1,process.env.NODE_ENV==="production"?Wu.exports=oz():Wu.exports=sz()),Wu.exports}var lz=uz(),Ud,Sw;function lC(){if(Sw)return Ud;Sw=1;var e=Yn(),t=Xn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Ud=n,Ud}var Wd,Aw;function cz(){if(Aw)return Wd;Aw=1;var e=lC();function t(r){return e(r)&&r!=+r}return Wd=t,Wd}var fz=cz();const Mo=qt(fz);var hz=lC();const pz=qt(hz);var en=function(t){return t===0?0:t>0?1:-1},Fi=function(t){return na(t)&&t.indexOf("%")===t.length-1},nt=function(t){return pz(t)&&!Mo(t)},dz=function(t){return gt(t)},be=function(t){return nt(t)||na(t)},mz=0,da=function(t){var r=++mz;return"".concat(t||"").concat(r)},ia=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!nt(t)&&!na(t))return n;var a;if(Fi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Mo(a)&&(a=n),i&&a>r&&(a=r),a},ni=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},yz=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},ue=function(t,r){return nt(t)&&nt(r)?function(n){return t+n*(r-t)}:function(){return r}};function Nl(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Fr(n,t))===r})}var gz=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}},vz=function(t,r){return nt(t)&&nt(r)?t-r:na(t)&&na(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Fa(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function zy(e){"@babel/helpers - typeof";return zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zy(e)}var bz=["viewBox","children"],_z=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ow=["points","pathLength"],Gd={svg:bz,polygon:Ow,polyline:Ow},g0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ll=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(A.isValidElement(t)&&(n=t.props),!Co(n))return null;var i={};return Object.keys(n).forEach(function(a){g0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},xz=function(t,r,n){return function(i){return t(r,n,i),null}},zs=function(t,r,n){if(!Co(t)||zy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];g0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=xz(o,r,n))}),i},wz=["children"],Sz=["children"];function Tw(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 Uy(e){"@babel/helpers - typeof";return Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uy(e)}var Pw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ln=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Ew=null,Hd=null,v0=function e(t){if(t===Ew&&Array.isArray(Hd))return Hd;var r=[];return A.Children.forEach(t,function(n){gt(n)||(lz.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Hd=r,Ew=t,r};function sr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ln(i)}):n=[Ln(t)],v0(e).forEach(function(i){var a=Fr(i,"type.displayName")||Fr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function vr(e,t){var r=sr(e,t);return r&&r[0]}var Cw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!nt(n)||n<=0||!nt(i)||i<=0)},Oz=["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"],Tz=function(t){return t&&t.type&&na(t.type)&&Oz.indexOf(t.type)>=0},cC=function(t){return t&&Uy(t)==="object"&&"clipDot"in t},Pz=function(t,r,n,i){var a,o=(a=Gd==null?void 0:Gd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!bt(t)&&(i&&o.includes(r)||_z.includes(r))||n&&g0.includes(r)},vt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(A.isValidElement(t)&&(i=t.props),!Co(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;Pz((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Wy=function e(t,r){if(t===r)return!0;var n=A.Children.count(t);if(n!==A.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Mw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Mw(a,o))return!1}return!0},Mw=function(t,r){if(gt(t)&&gt(r))return!0;if(!gt(t)&&!gt(r)){var n=t.props||{},i=n.children,a=Tw(n,wz),o=r.props||{},s=o.children,u=Tw(o,Sz);return i&&s?Fa(a,u)&&Wy(i,s):!i&&!s?Fa(a,u):!1}return!1},kw=function(t,r){var n=[],i={};return v0(t).forEach(function(a,o){if(Tz(a))n.push(a);else if(a){var s=Ln(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},Ez=function(t){var r=t&&t.type;return r&&Pw[r]?Pw[r]:null},Cz=function(t,r){return v0(r).indexOf(t)},Mz=["children","width","height","viewBox","className","style","title","desc"];function Gy(){return Gy=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},Gy.apply(this,arguments)}function kz(e,t){if(e==null)return{};var r=$z(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 $z(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){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=kz(e,Mz),c=i||{width:r,height:n,x:0,y:0},f=Ot("recharts-surface",a);return A.createElement("svg",Gy({},vt(l,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),A.createElement("title",null,s),A.createElement("desc",null,u),t)}var jz=["children","className"];function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky.apply(this,arguments)}function Rz(e,t){if(e==null)return{};var r=Dz(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 Dz(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 Rt=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=Rz(e,jz),a=Ot("recharts-layer",n);return A.createElement("g",Ky({className:a},vt(i,!0),{ref:t}),r)}),Iz=process.env.NODE_ENV!=="production",Bn=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(Iz&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Kd,$w;function Nz(){if($w)return Kd;$w=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Kd=e,Kd}var Yd,jw;function Lz(){if(jw)return Yd;jw=1;var e=Nz();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Yd=t,Yd}var Xd,Rw;function fC(){if(Rw)return Xd;Rw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function u(l){return s.test(l)}return Xd=u,Xd}var Vd,Dw;function Bz(){if(Dw)return Vd;Dw=1;function e(t){return t.split("")}return Vd=e,Vd}var Zd,Iw;function qz(){if(Iw)return Zd;Iw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+u+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=l+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",v=m+y+d,_="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(u+"(?="+u+")|"+_+v,"g");function x(g){return g.match(b)||[]}return Zd=x,Zd}var Jd,Nw;function Fz(){if(Nw)return Jd;Nw=1;var e=Bz(),t=fC(),r=qz();function n(i){return t(i)?r(i):e(i)}return Jd=n,Jd}var Qd,Lw;function zz(){if(Lw)return Qd;Lw=1;var e=Lz(),t=fC(),r=Fz(),n=i0();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 Qd=i,Qd}var tm,Bw;function Uz(){if(Bw)return tm;Bw=1;var e=zz(),t=e("toUpperCase");return tm=t,tm}var Wz=Uz();const Uc=qt(Wz);function Us(e){"@babel/helpers - typeof";return Us=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},Us(e)}var Gz=["type","size","sizeType"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){Hz(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 Hz(e,t,r){return t=Kz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kz(e){var t=Yz(e,"string");return Us(t)=="symbol"?t:t+""}function Yz(e,t){if(Us(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Us(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xz(e,t){if(e==null)return{};var r=Vz(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 Vz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hC={symbolCircle:Mv,symbolCross:aI,symbolDiamond:sI,symbolSquare:uI,symbolStar:hI,symbolTriangle:pI,symbolWye:mI},Zz=Math.PI/180,Jz=function(t){var r="symbol".concat(Uc(t));return hC[r]||Mv},Qz=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*Zz;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}},t5=function(t,r){hC["symbol".concat(Uc(t))]=r},Wc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,u=Xz(t,Gz),l=Fw(Fw({},u),{},{type:n,size:a,sizeType:s}),c=function(){var d=Jz(n),v=yI().type(d).size(Qz(a,s,n));return v()},f=l.className,h=l.cx,p=l.cy,y=vt(l,!0);return h===+h&&p===+p&&a===+a?A.createElement("path",Yy({},y,{className:Ot("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Wc.registerSymbol=t5;function eo(e){"@babel/helpers - typeof";return eo=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},eo(e)}function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xy.apply(this,arguments)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function e5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){Ws(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n5(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 i5(e,t,r){return t&&n5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a5(e,t,r){return t=Bl(t),o5(e,pC()?Reflect.construct(t,r||[],Bl(e).constructor):t.apply(e,r))}function o5(e,t){if(t&&(eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s5(e)}function s5(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 Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bl(e)}function u5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vy(e,t)}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vy(e,t)}function Ws(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=l5(e,"string");return eo(t)=="symbol"?t:t+""}function l5(e,t){if(eo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jr=32,b0=(function(e){function t(){return r5(this,t),a5(this,t,arguments)}return u5(t,e),i5(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=jr/2,o=jr/6,s=jr/3,u=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:jr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(s,`
76
82
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
77
- H`).concat(lr,"M").concat(2*s,",").concat(a,`
78
- 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=sz({},n);return delete l.legendIcon,O.cloneElement(n.legendIcon,l)}return O.createElement(Xl,{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(d,y){var m=d.formatter||u,p=_e(Yo(Yo({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var g=ye(d.value)?null:d.value;an(!ye(d.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 _=d.inactive?l:d.color;return O.createElement("li",Vm({className:p,style:f,key:"legend-item-".concat(y)},Ko(n.props,d,y)),O.createElement(Km,{width:o,height:o,viewBox:c,style:h},n.renderIcon(d)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},m?m(g,d,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);Yo(wg,"displayName","Legend");Yo(wg,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var tp,H1;function vE(){if(H1)return tp;H1=1;function t(e,r,n,i){for(var a=e.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(e[o],o,e))return o;return-1}return tp=t,tp}var rp,G1;function yz(){if(G1)return rp;G1=1;function t(e){return e!==e}return rp=t,rp}var np,K1;function vz(){if(K1)return np;K1=1;function t(e,r,n){for(var i=n-1,a=e.length;++i<a;)if(e[i]===r)return i;return-1}return np=t,np}var ip,X1;function gz(){if(X1)return ip;X1=1;var t=vE(),e=yz(),r=vz();function n(i,a,o){return a===a?r(i,a,o):t(i,e,o)}return ip=n,ip}var ap,Y1;function bz(){if(Y1)return ap;Y1=1;var t=gz();function e(r,n){var i=r==null?0:r.length;return!!i&&t(r,n,0)>-1}return ap=e,ap}var op,V1;function _z(){if(V1)return op;V1=1;function t(e,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;)if(n(r,e[i]))return!0;return!1}return op=t,op}var sp,Z1;function xz(){if(Z1)return sp;Z1=1;function t(){}return sp=t,sp}var up,J1;function wz(){if(J1)return up;J1=1;var t=ZT(),e=xz(),r=mg(),n=1/0,i=t&&1/r(new t([,-0]))[1]==n?function(a){return new t(a)}:e;return up=i,up}var lp,Q1;function Sz(){if(Q1)return lp;Q1=1;var t=UT(),e=bz(),r=_z(),n=HT(),i=wz(),a=mg(),o=200;function s(u,l,c){var f=-1,h=e,d=u.length,y=!0,m=[],p=m;if(c)y=!1,h=r;else if(d>=o){var g=l?null:i(u);if(g)return a(g);y=!1,h=n,p=new t}else p=l?[]:m;e:for(;++f<d;){var _=u[f],b=l?l(_):_;if(_=c||_!==0?_:0,y&&b===b){for(var x=p.length;x--;)if(p[x]===b)continue e;l&&p.push(b),m.push(_)}else h(p,b,c)||(p!==m&&p.push(b),m.push(_))}return m}return lp=s,lp}var cp,ew;function Oz(){if(ew)return cp;ew=1;var t=$n(),e=Sz();function r(n,i){return n&&n.length?e(n,t(i,2)):[]}return cp=r,cp}var Az=Oz();const tw=$e(Az);function gE(t,e,r){return e===!0?tw(t,r):ye(e)?tw(t,e):t}function ca(t){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ca(t)}var Pz=["ref"];function rw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Vr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rw(Object(r),!0).forEach(function(n){Yl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Tz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_E(n.key),n)}}function Ez(t,e,r){return e&&nw(t.prototype,e),r&&nw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Cz(t,e,r){return e=Wu(e),Mz(t,bE()?Reflect.construct(e,r||[],Wu(t).constructor):e.apply(t,r))}function Mz(t,e){if(e&&(ca(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kz(t)}function kz(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bE=function(){return!!t})()}function Wu(t){return Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wu(t)}function jz(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jm(t,e)}function Jm(t,e){return Jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jm(t,e)}function Yl(t,e,r){return e=_E(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _E(t){var e=Iz(t,"string");return ca(e)=="symbol"?e:e+""}function Iz(t,e){if(ca(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Rz(t,e){if(t==null)return{};var r=$z(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function $z(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Dz(t){return t.value}function Nz(t,e){if(O.isValidElement(t))return O.cloneElement(t,e);if(typeof t=="function")return O.createElement(t,e);e.ref;var r=Rz(e,Pz);return O.createElement(wg,r)}var iw=1,si=(function(t){function e(){var r;Tz(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Cz(this,e,[].concat(i)),Yl(r,"lastBoundingBox",{width:-1,height:-1}),r}return jz(e,t),Ez(e,[{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)>iw||Math.abs(i.height-this.lastBoundingBox.height)>iw)&&(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?Vr({},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 d=this.getBBoxSnapshot();f={left:((l||0)-d.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 Vr(Vr({},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=Vr(Vr({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(d){n.wrapperNode=d}},Nz(a,Vr(Vr({},this.props),{},{payload:gE(c,l,Dz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Vr(Vr({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&J(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Yl(si,"displayName","Legend");Yl(si,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Vo(t){"@babel/helpers - typeof";return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(t)}function Qm(){return Qm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qm.apply(this,arguments)}function Lz(t,e){return zz(t)||Fz(t,e)||Bz(t,e)||qz()}function qz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
79
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bz(t,e){if(t){if(typeof t=="string")return aw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aw(t,e)}}function aw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Fz(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 zz(t){if(Array.isArray(t))return t}function ow(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function fp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ow(Object(r),!0).forEach(function(n){Uz(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ow(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Uz(t,e,r){return e=Wz(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wz(t){var e=Hz(t,"string");return Vo(e)=="symbol"?e:e+""}function Hz(t,e){if(Vo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gz(t){return Array.isArray(t)&&ct(t[0])&&ct(t[1])?t.join(" ~ "):t}var Kz=function(e){var r=e.separator,n=r===void 0?" : ":r,i=e.contentStyle,a=i===void 0?{}:i,o=e.itemStyle,s=o===void 0?{}:o,u=e.labelStyle,l=u===void 0?{}:u,c=e.payload,f=e.formatter,h=e.itemSorter,d=e.wrapperClassName,y=e.labelClassName,m=e.label,p=e.labelFormatter,g=e.accessibilityLayer,_=g===void 0?!1:g,b=function(){if(c&&c.length){var E={padding:0,margin:0},C=(h?Gl(c,h):c).map(function(I,k){if(I.type==="none")return null;var j=fp({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},s),$=I.formatter||f||Gz,N=I.value,B=I.name,R=N,L=B;if($&&R!=null&&L!=null){var q=$(N,B,I,k,c);if(Array.isArray(q)){var U=Lz(q,2);R=U[0],L=U[1]}else R=q}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:j},ct(L)?O.createElement("span",{className:"recharts-tooltip-item-name"},L):null,ct(L)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},R),O.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},x=fp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),v=fp({margin:0},l),w=!pe(m),S=w?m:"",A=_e("recharts-default-tooltip",d),P=_e("recharts-tooltip-label",y);w&&p&&c!==void 0&&c!==null&&(S=p(m,c));var M=_?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",Qm({className:A,style:x},M),O.createElement("p",{className:P,style:v},O.isValidElement(S)?S:"".concat(S)),b())};function Zo(t){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zo(t)}function Zs(t,e,r){return e=Xz(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xz(t){var e=Yz(t,"string");return Zo(e)=="symbol"?e:e+""}function Yz(t,e){if(Zo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var eo="recharts-tooltip-wrapper",Vz={visibility:"hidden"};function Zz(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return _e(eo,Zs(Zs(Zs(Zs({},"".concat(eo,"-right"),J(r)&&e&&J(e.x)&&r>=e.x),"".concat(eo,"-left"),J(r)&&e&&J(e.x)&&r<e.x),"".concat(eo,"-bottom"),J(n)&&e&&J(e.y)&&n>=e.y),"".concat(eo,"-top"),J(n)&&e&&J(e.y)&&n<e.y))}function sw(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,a=t.position,o=t.reverseDirection,s=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(a&&J(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(e[n])return o[n]?c:f;if(o[n]){var h=c,d=u[n];return h<d?Math.max(f,u[n]):Math.max(c,u[n])}var y=f+s,m=u[n]+l;return y>m?Math.max(c,u[n]):Math.max(f,u[n])}function Jz(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function Qz(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.offsetTopLeft,i=t.position,a=t.reverseDirection,o=t.tooltipBox,s=t.useTranslate3d,u=t.viewBox,l,c,f;return o.height>0&&o.width>0&&r?(c=sw({allowEscapeViewBox:e,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=sw({allowEscapeViewBox:e,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),l=Jz({translateX:c,translateY:f,useTranslate3d:s})):l=Vz,{cssProperties:l,cssClasses:Zz({translateX:c,translateY:f,coordinate:r})}}function fa(t){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(t)}function uw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function lw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?uw(Object(r),!0).forEach(function(n){ty(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function e5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t5(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wE(n.key),n)}}function r5(t,e,r){return e&&t5(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function n5(t,e,r){return e=Hu(e),i5(t,xE()?Reflect.construct(e,r||[],Hu(t).constructor):e.apply(t,r))}function i5(t,e){if(e&&(fa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a5(t)}function a5(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xE=function(){return!!t})()}function Hu(t){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hu(t)}function o5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ey(t,e)}function ey(t,e){return ey=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ey(t,e)}function ty(t,e,r){return e=wE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wE(t){var e=s5(t,"string");return fa(e)=="symbol"?e:e+""}function s5(t,e){if(fa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(fa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var cw=1,u5=(function(t){function e(){var r;e5(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=n5(this,e,[].concat(i)),ty(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ty(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 o5(e,t),r5(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>cw||Math.abs(n.height-this.state.lastBoundingBox.height)>cw)&&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,d=i.offset,y=i.position,m=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,_=i.wrapperStyle,b=Qz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:d,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),x=b.cssClasses,v=b.cssProperties,w=lw(lw({transition:h&&a?"transform ".concat(s,"ms ").concat(u):void 0},v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},_);return O.createElement("div",{tabIndex:-1,className:x,style:w,ref:function(A){n.wrapperNode=A}},l)}}])})(O.PureComponent),l5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Dn={isSsr:l5()};function ha(t){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ha(t)}function fw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function hw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fw(Object(r),!0).forEach(function(n){Sg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function c5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f5(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,OE(n.key),n)}}function h5(t,e,r){return e&&f5(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function d5(t,e,r){return e=Gu(e),p5(t,SE()?Reflect.construct(e,r||[],Gu(t).constructor):e.apply(t,r))}function p5(t,e){if(e&&(ha(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m5(t)}function m5(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SE=function(){return!!t})()}function Gu(t){return Gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gu(t)}function y5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ry(t,e)}function ry(t,e){return ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ry(t,e)}function Sg(t,e,r){return e=OE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OE(t){var e=v5(t,"string");return ha(e)=="symbol"?e:e+""}function v5(t,e){if(ha(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ha(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function g5(t){return t.dataKey}function b5(t,e){return O.isValidElement(t)?O.cloneElement(t,e):typeof t=="function"?O.createElement(t,e):O.createElement(Kz,e)}var $r=(function(t){function e(){return c5(this,e),d5(this,e,arguments)}return y5(e,t),h5(e,[{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,d=i.offset,y=i.payload,m=i.payloadUniqBy,p=i.position,g=i.reverseDirection,_=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,v=y??[];f&&v.length&&(v=gE(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,g5));var w=v.length>0;return O.createElement(u5,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:d,position:p,reverseDirection:g,useTranslate3d:_,viewBox:b,wrapperStyle:x},b5(l,hw(hw({},this.props),{},{payload:v})))}}])})(O.PureComponent);Sg($r,"displayName","Tooltip");Sg($r,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Dn.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 hp,dw;function _5(){if(dw)return hp;dw=1;var t=Mr(),e=function(){return t.Date.now()};return hp=e,hp}var dp,pw;function x5(){if(pw)return dp;pw=1;var t=Rn(),e=_5(),r=ag(),n="Expected a function",i=Math.max,a=Math.min;function o(s,u,l){var c,f,h,d,y,m,p=0,g=!1,_=!1,b=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,t(l)&&(g=!!l.leading,_="maxWait"in l,h=_?i(r(l.maxWait)||0,u):h,b="trailing"in l?!!l.trailing:b);function x(C){var I=c,k=f;return c=f=void 0,p=C,d=s.apply(k,I),d}function v(C){return p=C,y=setTimeout(A,u),g?x(C):d}function w(C){var I=C-m,k=C-p,j=u-I;return _?a(j,h-k):j}function S(C){var I=C-m,k=C-p;return m===void 0||I>=u||I<0||_&&k>=h}function A(){var C=e();if(S(C))return P(C);y=setTimeout(A,w(C))}function P(C){return y=void 0,b&&c?x(C):(c=f=void 0,d)}function M(){y!==void 0&&clearTimeout(y),p=0,c=m=f=y=void 0}function T(){return y===void 0?d:P(e())}function E(){var C=e(),I=S(C);if(c=arguments,f=this,m=C,I){if(y===void 0)return v(m);if(_)return clearTimeout(y),y=setTimeout(A,u),x(m)}return y===void 0&&(y=setTimeout(A,u)),d}return E.cancel=M,E.flush=T,E}return dp=o,dp}var pp,mw;function w5(){if(mw)return pp;mw=1;var t=x5(),e=Rn(),r="Expected a function";function n(i,a,o){var s=!0,u=!0;if(typeof i!="function")throw new TypeError(r);return e(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),t(i,a,{leading:s,maxWait:a,trailing:u})}return pp=n,pp}var S5=w5();const AE=$e(S5);function Jo(t){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}function yw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Js(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yw(Object(r),!0).forEach(function(n){O5(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function O5(t,e,r){return e=A5(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function A5(t){var e=P5(t,"string");return Jo(e)=="symbol"?e:e+""}function P5(t,e){if(Jo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Jo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function T5(t,e){return k5(t)||M5(t,e)||C5(t,e)||E5()}function E5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
80
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C5(t,e){if(t){if(typeof t=="string")return vw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vw(t,e)}}function vw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function M5(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function k5(t){if(Array.isArray(t))return t}var j5=O.forwardRef(function(t,e){var r=t.aspect,n=t.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=t.width,o=a===void 0?"100%":a,s=t.height,u=s===void 0?"100%":s,l=t.minWidth,c=l===void 0?0:l,f=t.minHeight,h=t.maxHeight,d=t.children,y=t.debounce,m=y===void 0?0:y,p=t.id,g=t.className,_=t.onResize,b=t.style,x=b===void 0?{}:b,v=O.useRef(null),w=O.useRef();w.current=_,O.useImperativeHandle(e,function(){return Object.defineProperty(v.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),v.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=T5(S,2),P=A[0],M=A[1],T=O.useCallback(function(C,I){M(function(k){var j=Math.round(C),$=Math.round(I);return k.containerWidth===j&&k.containerHeight===$?k:{containerWidth:j,containerHeight:$}})},[]);O.useEffect(function(){var C=function(B){var R,L=B[0].contentRect,q=L.width,U=L.height;T(q,U),(R=w.current)===null||R===void 0||R.call(w,q,U)};m>0&&(C=AE(C,m,{trailing:!0,leading:!1}));var I=new ResizeObserver(C),k=v.current.getBoundingClientRect(),j=k.width,$=k.height;return T(j,$),I.observe(v.current),function(){I.disconnect()}},[T,m]);var E=O.useMemo(function(){var C=P.containerWidth,I=P.containerHeight;if(C<0||I<0)return null;an(Qn(o)||Qn(u),`The width(%s) and height(%s) are both fixed numbers,
81
- maybe you don't need to use a ResponsiveContainer.`,o,u),an(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=Qn(o)?C:o,j=Qn(u)?I:u;r&&r>0&&(k?j=k/r:j&&(k=j*r),h&&j>h&&(j=h)),an(k>0||j>0,`The width(%s) and height(%s) of chart should be greater than 0,
83
+ H`).concat(jr,"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 A.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(jr/8,"h").concat(jr,"v").concat(jr*3/4,"h").concat(-jr,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var l=e5({},n);return delete l.legendIcon,A.cloneElement(n.legendIcon,l)}return A.createElement(Wc,{fill:u,cx:a,cy:a,size:jr,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:jr,height:jr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||u,d=Ot(Ws(Ws({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=bt(p.value)?null:p.value;Bn(!bt(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=p.inactive?l:p.color;return A.createElement("li",Xy({className:d,style:f,key:"legend-item-".concat(y)},zs(n.props,p,y)),A.createElement(Hy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},m?m(v,p,y):v))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(A.PureComponent);Ws(b0,"displayName","Legend");Ws(b0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var em,Uw;function mC(){if(Uw)return em;Uw=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return em=e,em}var rm,Ww;function c5(){if(Ww)return rm;Ww=1;function e(t){return t!==t}return rm=e,rm}var nm,Gw;function f5(){if(Gw)return nm;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 nm=e,nm}var im,Hw;function h5(){if(Hw)return im;Hw=1;var e=mC(),t=c5(),r=f5();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return im=n,im}var am,Kw;function p5(){if(Kw)return am;Kw=1;var e=h5();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return am=t,am}var om,Yw;function d5(){if(Yw)return om;Yw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return om=e,om}var sm,Xw;function m5(){if(Xw)return sm;Xw=1;function e(){}return sm=e,sm}var um,Vw;function y5(){if(Vw)return um;Vw=1;var e=XE(),t=m5(),r=h0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return um=i,um}var lm,Zw;function g5(){if(Zw)return lm;Zw=1;var e=FE(),t=p5(),r=d5(),n=UE(),i=y5(),a=h0(),o=200;function s(u,l,c){var f=-1,h=t,p=u.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var v=l?null:i(u);if(v)return a(v);y=!1,h=n,d=new e}else d=l?[]:m;t:for(;++f<p;){var _=u[f],b=l?l(_):_;if(_=c||_!==0?_:0,y&&b===b){for(var x=d.length;x--;)if(d[x]===b)continue t;l&&d.push(b),m.push(_)}else h(d,b,c)||(d!==m&&d.push(b),m.push(_))}return m}return lm=s,lm}var cm,Jw;function v5(){if(Jw)return cm;Jw=1;var e=bi(),t=g5();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return cm=r,cm}var b5=v5();const Qw=qt(b5);function yC(e,t,r){return t===!0?Qw(e,r):bt(t)?Qw(e,t):e}function ro(e){"@babel/helpers - typeof";return ro=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},ro(e)}var _5=["ref"];function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){Gc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vC(n.key),n)}}function w5(e,t,r){return t&&eS(e.prototype,t),r&&eS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function S5(e,t,r){return t=ql(t),A5(e,gC()?Reflect.construct(t,r||[],ql(e).constructor):t.apply(e,r))}function A5(e,t){if(t&&(ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O5(e)}function O5(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 ql(e){return ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ql(e)}function T5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zy(e,t)}function Gc(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=P5(e,"string");return ro(t)=="symbol"?t:t+""}function P5(e,t){if(ro(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ro(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function E5(e,t){if(e==null)return{};var r=C5(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 C5(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 M5(e){return e.value}function k5(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=E5(t,_5);return A.createElement(b0,r)}var rS=1,Xi=(function(e){function t(){var r;x5(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=S5(this,t,[].concat(i)),Gc(r,"lastBoundingBox",{width:-1,height:-1}),r}return T5(t,e),w5(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>rS||Math.abs(i.height-this.lastBoundingBox.height)>rS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?kn({},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 kn(kn({},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=kn(kn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return A.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},k5(a,kn(kn({},this.props),{},{payload:yC(c,l,M5)})))}}],[{key:"getWithHeight",value:function(n,i){var a=kn(kn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&nt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(A.PureComponent);Gc(Xi,"displayName","Legend");Gc(Xi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function $5(e,t){return I5(e)||D5(e,t)||R5(e,t)||j5()}function j5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R5(e,t){if(e){if(typeof e=="string")return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D5(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function I5(e){if(Array.isArray(e))return e}function iS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(r),!0).forEach(function(n){N5(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 N5(e,t,r){return t=L5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L5(e){var t=B5(e,"string");return Gs(t)=="symbol"?t:t+""}function B5(e,t){if(Gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q5(e){return Array.isArray(e)&&be(e[0])&&be(e[1])?e.join(" ~ "):e}var F5=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,u=t.labelStyle,l=u===void 0?{}:u,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,v=t.accessibilityLayer,_=v===void 0?!1:v,b=function(){if(c&&c.length){var E={padding:0,margin:0},k=(h?zc(c,h):c).map(function(R,$){if(R.type==="none")return null;var C=fm({display:"block",paddingTop:4,paddingBottom:4,color:R.color||"#000"},s),I=R.formatter||f||q5,L=R.value,q=R.name,D=L,j=q;if(I&&D!=null&&j!=null){var B=I(L,q,R,$,c);if(Array.isArray(B)){var W=$5(B,2);D=W[0],j=W[1]}else D=B}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:C},be(j)?A.createElement("span",{className:"recharts-tooltip-item-name"},j):null,be(j)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},D),A.createElement("span",{className:"recharts-tooltip-item-unit"},R.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:E},k)}return null},x=fm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=fm({margin:0},l),w=!gt(m),S=w?m:"",O=Ot("recharts-default-tooltip",p),T=Ot("recharts-tooltip-label",y);w&&d&&c!==void 0&&c!==null&&(S=d(m,c));var M=_?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",Jy({className:O,style:x},M),A.createElement("p",{className:T,style:g},A.isValidElement(S)?S:"".concat(S)),b())};function Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}function Gu(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 Hs(t)=="symbol"?t:t+""}function U5(e,t){if(Hs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xo="recharts-tooltip-wrapper",W5={visibility:"hidden"};function G5(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Ot(Xo,Gu(Gu(Gu(Gu({},"".concat(Xo,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(Xo,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(Xo,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(Xo,"-top"),nt(n)&&t&&nt(t.y)&&n<t.y))}function aS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,u=e.viewBox,l=e.viewBoxDimension;if(a&&nt(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=u[n];return h<p?Math.max(f,u[n]):Math.max(c,u[n])}var y=f+s,m=u[n]+l;return y>m?Math.max(c,u[n]):Math.max(f,u[n])}function H5(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 K5(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=aS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=aS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),l=H5({translateX:c,translateY:f,useTranslate3d:s})):l=W5,{cssProperties:l,cssClasses:G5({translateX:c,translateY:f,coordinate:r})}}function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function oS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oS(Object(r),!0).forEach(function(n){tg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X5(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 V5(e,t,r){return t&&X5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z5(e,t,r){return t=Fl(t),J5(e,bC()?Reflect.construct(t,r||[],Fl(e).constructor):t.apply(e,r))}function J5(e,t){if(t&&(no(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q5(e)}function Q5(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 Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fl(e)}function t3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function tg(e,t,r){return t=_C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _C(e){var t=e3(e,"string");return no(t)=="symbol"?t:t+""}function e3(e,t){if(no(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(no(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uS=1,r3=(function(e){function t(){var r;Y5(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Z5(this,t,[].concat(i)),tg(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),tg(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,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 t3(t,e),V5(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>uS||Math.abs(n.height-this.state.lastBoundingBox.height)>uS)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,l=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,v=i.viewBox,_=i.wrapperStyle,b=K5({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:v}),x=b.cssClasses,g=b.cssProperties,w=sS(sS({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 A.createElement("div",{tabIndex:-1,className:x,style:w,ref:function(O){n.wrapperNode=O}},l)}}])})(A.PureComponent),n3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},_i={isSsr:n3()};function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function lS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lS(Object(r),!0).forEach(function(n){_0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a3(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 o3(e,t,r){return t&&a3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s3(e,t,r){return t=zl(t),u3(e,xC()?Reflect.construct(t,r||[],zl(e).constructor):t.apply(e,r))}function u3(e,t){if(t&&(io(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l3(e)}function l3(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 zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zl(e)}function c3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eg(e,t)}function _0(e,t,r){return t=wC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wC(e){var t=f3(e,"string");return io(t)=="symbol"?t:t+""}function f3(e,t){if(io(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(io(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function h3(e){return e.dataKey}function p3(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(F5,t)}var dn=(function(e){function t(){return i3(this,t),s3(this,t,arguments)}return c3(t,e),o3(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,l=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,v=i.reverseDirection,_=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,g=y??[];f&&g.length&&(g=yC(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,h3));var w=g.length>0;return A.createElement(r3,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:p,position:d,reverseDirection:v,useTranslate3d:_,viewBox:b,wrapperStyle:x},p3(l,cS(cS({},this.props),{},{payload:g})))}}])})(A.PureComponent);_0(dn,"displayName","Tooltip");_0(dn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!_i.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var hm,fS;function d3(){if(fS)return hm;fS=1;var e=on(),t=function(){return e.Date.now()};return hm=t,hm}var pm,hS;function m3(){if(hS)return pm;hS=1;var e=vi(),t=d3(),r=r0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,u,l){var c,f,h,p,y,m,d=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(k){var R=c,$=f;return c=f=void 0,d=k,p=s.apply($,R),p}function g(k){return d=k,y=setTimeout(O,u),v?x(k):p}function w(k){var R=k-m,$=k-d,C=u-R;return _?a(C,h-$):C}function S(k){var R=k-m,$=k-d;return m===void 0||R>=u||R<0||_&&$>=h}function O(){var k=t();if(S(k))return T(k);y=setTimeout(O,w(k))}function T(k){return y=void 0,b&&c?x(k):(c=f=void 0,p)}function M(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var k=t(),R=S(k);if(c=arguments,f=this,m=k,R){if(y===void 0)return g(m);if(_)return clearTimeout(y),y=setTimeout(O,u),x(m)}return y===void 0&&(y=setTimeout(O,u)),p}return E.cancel=M,E.flush=P,E}return pm=o,pm}var dm,pS;function y3(){if(pS)return dm;pS=1;var e=m3(),t=vi(),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 dm=n,dm}var g3=y3();const SC=qt(g3);function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function 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 Hu(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){v3(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 v3(e,t,r){return t=b3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b3(e){var t=_3(e,"string");return Ks(t)=="symbol"?t:t+""}function _3(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 x3(e,t){return O3(e)||A3(e,t)||S3(e,t)||w3()}function w3(){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 S3(e,t){if(e){if(typeof e=="string")return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A3(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 O3(e){if(Array.isArray(e))return e}var T3=A.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,u=s===void 0?"100%":s,l=e.minWidth,c=l===void 0?0:l,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,v=e.className,_=e.onResize,b=e.style,x=b===void 0?{}:b,g=A.useRef(null),w=A.useRef();w.current=_,A.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=A.useState({containerWidth:i.width,containerHeight:i.height}),O=x3(S,2),T=O[0],M=O[1],P=A.useCallback(function(k,R){M(function($){var C=Math.round(k),I=Math.round(R);return $.containerWidth===C&&$.containerHeight===I?$:{containerWidth:C,containerHeight:I}})},[]);A.useEffect(function(){var k=function(q){var D,j=q[0].contentRect,B=j.width,W=j.height;P(B,W),(D=w.current)===null||D===void 0||D.call(w,B,W)};m>0&&(k=SC(k,m,{trailing:!0,leading:!1}));var R=new ResizeObserver(k),$=g.current.getBoundingClientRect(),C=$.width,I=$.height;return P(C,I),R.observe(g.current),function(){R.disconnect()}},[P,m]);var E=A.useMemo(function(){var k=T.containerWidth,R=T.containerHeight;if(k<0||R<0)return null;Bn(Fi(o)||Fi(u),`The width(%s) and height(%s) are both fixed numbers,
87
+ maybe you don't need to use a ResponsiveContainer.`,o,u),Bn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=Fi(o)?k:o,C=Fi(u)?R:u;r&&r>0&&($?C=$/r:C&&($=C*r),h&&C>h&&(C=h)),Bn($>0||C>0,`The width(%s) and height(%s) of chart should be greater than 0,
82
88
  please check the style of container, or the props width(%s) and height(%s),
83
89
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
84
- height and width.`,k,j,o,u,c,f,r);var $=!Array.isArray(d)&&nn(d.type).endsWith("Chart");return O.Children.map(d,function(N){return O.isValidElement(N)?O.cloneElement(N,Js({width:k,height:j},$?{style:Js({height:"100%",width:"100%",maxHeight:j,maxWidth:k},N.props.style)}:{})):N})},[r,d,u,h,f,c,P,o]);return O.createElement("div",{id:p?"".concat(p):void 0,className:_e("recharts-responsive-container",g),style:Js(Js({},x),{},{width:o,height:u,minWidth:c,minHeight:f,maxHeight:h}),ref:v},E)}),Og=function(e){return null};Og.displayName="Cell";function Qo(t){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(t)}function gw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ny(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gw(Object(r),!0).forEach(function(n){I5(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function I5(t,e,r){return e=R5(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R5(t){var e=$5(t,"string");return Qo(e)=="symbol"?e:e+""}function $5(t,e){if(Qo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Qo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ji={widthCache:{},cacheCount:0},D5=2e3,N5={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},bw="recharts_measurement_span";function L5(t){var e=ny({},t);return Object.keys(e).forEach(function(r){e[r]||delete e[r]}),e}var Ao=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Dn.isSsr)return{width:0,height:0};var n=L5(r),i=JSON.stringify({text:e,copyStyle:n});if(ji.widthCache[i])return ji.widthCache[i];try{var a=document.getElementById(bw);a||(a=document.createElement("span"),a.setAttribute("id",bw),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ny(ny({},N5),n);Object.assign(a.style,o),a.textContent="".concat(e);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return ji.widthCache[i]=u,++ji.cacheCount>D5&&(ji.cacheCount=0,ji.widthCache={}),u}catch{return{width:0,height:0}}},q5=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function es(t){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},es(t)}function Ku(t,e){return U5(t)||z5(t,e)||F5(t,e)||B5()}function B5(){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 F5(t,e){if(t){if(typeof t=="string")return _w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _w(t,e)}}function _w(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function z5(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 U5(t){if(Array.isArray(t))return t}function W5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,G5(n.key),n)}}function H5(t,e,r){return e&&xw(t.prototype,e),r&&xw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function G5(t){var e=K5(t,"string");return es(e)=="symbol"?e:e+""}function K5(t,e){if(es(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(es(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ww=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Sw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,X5=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Y5=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,PE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},V5=Object.keys(PE),Li="NaN";function Z5(t,e){return t*PE[e]}var Qs=(function(){function t(e,r){W5(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),r!==""&&!X5.test(r)&&(this.num=NaN,this.unit=""),V5.includes(r)&&(this.num=Z5(e,r),this.unit="px")}return H5(t,[{key:"add",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(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=Y5.exec(r))!==null&&n!==void 0?n:[],a=Ku(i,3),o=a[1],s=a[2];return new t(parseFloat(o),s??"")}}])})();function TE(t){if(t.includes(Li))return Li;for(var e=t;e.includes("*")||e.includes("/");){var r,n=(r=ww.exec(e))!==null&&r!==void 0?r:[],i=Ku(n,4),a=i[1],o=i[2],s=i[3],u=Qs.parse(a??""),l=Qs.parse(s??""),c=o==="*"?u.multiply(l):u.divide(l);if(c.isNaN())return Li;e=e.replace(ww,c.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var f,h=(f=Sw.exec(e))!==null&&f!==void 0?f:[],d=Ku(h,4),y=d[1],m=d[2],p=d[3],g=Qs.parse(y??""),_=Qs.parse(p??""),b=m==="+"?g.add(_):g.subtract(_);if(b.isNaN())return Li;e=e.replace(Sw,b.toString())}return e}var Ow=/\(([^()]*)\)/;function J5(t){for(var e=t;e.includes("(");){var r=Ow.exec(e),n=Ku(r,2),i=n[1];e=e.replace(Ow,TE(i))}return e}function Q5(t){var e=t.replace(/\s+/g,"");return e=J5(e),e=TE(e),e}function e3(t){try{return Q5(t)}catch{return Li}}function mp(t){var e=e3(t.slice(5,-1));return e===Li?"":e}var t3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],r3=["dx","dy","angle","className","breakAll"];function iy(){return iy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},iy.apply(this,arguments)}function Aw(t,e){if(t==null)return{};var r=n3(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function n3(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Pw(t,e){return s3(t)||o3(t,e)||a3(t,e)||i3()}function i3(){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(t,e){if(t){if(typeof t=="string")return Tw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tw(t,e)}}function Tw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o3(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function s3(t){if(Array.isArray(t))return t}var EE=/[ \f\n\r\t\v\u2028\u2029]+/,CE=function(e){var r=e.children,n=e.breakAll,i=e.style;try{var a=[];pe(r)||(n?a=r.toString().split(""):a=r.toString().split(EE));var o=a.map(function(u){return{word:u,width:Ao(u,i).width}}),s=n?0:Ao(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},u3=function(e,r,n,i,a){var o=e.maxLines,s=e.children,u=e.style,l=e.breakAll,c=J(o),f=s,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(j,$){var N=$.word,B=$.width,R=j[j.length-1];if(R&&(i==null||a||R.width+B+n<Number(i)))R.words.push(N),R.width+=B+n;else{var L={words:[N],width:B};j.push(L)}return j},[])},d=h(r),y=function(k){return k.reduce(function(j,$){return j.width>$.width?j:$})};if(!c)return d;for(var m="…",p=function(k){var j=f.slice(0,k),$=CE({breakAll:l,style:u,children:j+m}).wordsWithComputedWidth,N=h($),B=N.length>o||y(N).width>Number(i);return[B,N]},g=0,_=f.length-1,b=0,x;g<=_&&b<=f.length-1;){var v=Math.floor((g+_)/2),w=v-1,S=p(w),A=Pw(S,2),P=A[0],M=A[1],T=p(v),E=Pw(T,1),C=E[0];if(!P&&!C&&(g=v+1),P&&C&&(_=v-1),!P&&C){x=M;break}b++}return x||d},Ew=function(e){var r=pe(e)?[]:e.toString().split(EE);return[{words:r}]},l3=function(e){var r=e.width,n=e.scaleToFit,i=e.children,a=e.style,o=e.breakAll,s=e.maxLines;if((r||n)&&!Dn.isSsr){var u,l,c=CE({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;u=f,l=h}else return Ew(i);return u3({breakAll:o,children:i,maxLines:s,style:a},u,l,r,n)}return Ew(i)},Cw="#808080",Xu=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.lineHeight,s=o===void 0?"1em":o,u=e.capHeight,l=u===void 0?"0.71em":u,c=e.scaleToFit,f=c===void 0?!1:c,h=e.textAnchor,d=h===void 0?"start":h,y=e.verticalAnchor,m=y===void 0?"end":y,p=e.fill,g=p===void 0?Cw:p,_=Aw(e,t3),b=O.useMemo(function(){return l3({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:f,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,f,_.style,_.width]),x=_.dx,v=_.dy,w=_.angle,S=_.className,A=_.breakAll,P=Aw(_,r3);if(!ct(n)||!ct(a))return null;var M=n+(J(x)?x:0),T=a+(J(v)?v:0),E;switch(m){case"start":E=mp("calc(".concat(l,")"));break;case"middle":E=mp("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:E=mp("calc(".concat(b.length-1," * -").concat(s,")"));break}var C=[];if(f){var I=b[0].width,k=_.width;C.push("scale(".concat((J(k)?k/I:1)/I,")"))}return w&&C.push("rotate(".concat(w,", ").concat(M,", ").concat(T,")")),C.length&&(P.transform=C.join(" ")),O.createElement("text",iy({},me(P,!0),{x:M,y:T,className:_e("recharts-text",S),textAnchor:d,fill:g.includes("url")?Cw:g}),b.map(function(j,$){var N=j.words.join(A?"":" ");return O.createElement("tspan",{x:M,dy:$===0?E:s,key:"".concat(N,"-").concat($)},N)}))};const Mw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Io,scaleDiverging:TA,scaleDivergingLog:EA,scaleDivergingPow:xv,scaleDivergingSqrt:Yj,scaleDivergingSymlog:CA,scaleIdentity:sA,scaleImplicit:rm,scaleLinear:Zi,scaleLog:lA,scaleOrdinal:ev,scalePoint:mo,scalePow:cv,scaleQuantile:hA,scaleQuantize:dA,scaleRadial:fA,scaleSequential:SA,scaleSequentialLog:OA,scaleSequentialPow:_v,scaleSequentialQuantile:PA,scaleSequentialSqrt:Xj,scaleSequentialSymlog:AA,scaleSqrt:Mk,scaleSymlog:cA,scaleThreshold:pA,scaleTime:bv,scaleUtc:Kj,tickFormat:oA},Symbol.toStringTag,{value:"Module"}));var yp,kw;function ME(){if(kw)return yp;kw=1;var t=Ra();function e(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&&!t(u):i(u,l)))var l=u,c=s}return c}return yp=e,yp}var vp,jw;function c3(){if(jw)return vp;jw=1;function t(e,r){return e>r}return vp=t,vp}var gp,Iw;function f3(){if(Iw)return gp;Iw=1;var t=ME(),e=c3(),r=$a();function n(i){return i&&i.length?t(i,r,e):void 0}return gp=n,gp}var h3=f3();const Sn=$e(h3);var bp,Rw;function d3(){if(Rw)return bp;Rw=1;function t(e,r){return e<r}return bp=t,bp}var _p,$w;function p3(){if($w)return _p;$w=1;var t=ME(),e=d3(),r=$a();function n(i){return i&&i.length?t(i,r,e):void 0}return _p=n,_p}var m3=p3();const Vl=$e(m3);var xp,Dw;function y3(){if(Dw)return xp;Dw=1;var t=gg();function e(r,n){return t(r,n)}return xp=e,xp}var v3=y3();const mi=$e(v3);var La=1e9,g3={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Pg,Xe=!0,gr="[DecimalError] ",ui=gr+"Invalid argument: ",Ag=gr+"Exponent out of range: ",qa=Math.floor,Xn=Math.pow,b3=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tr,mt=1e7,Ge=7,kE=9007199254740991,Yu=qa(kE/Ge),oe={};oe.absoluteValue=oe.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};oe.comparedTo=oe.cmp=function(t){var e,r,n,i,a=this;if(t=new a.constructor(t),a.s!==t.s)return a.s||-t.s;if(a.e!==t.e)return a.e>t.e^a.s<0?1:-1;for(n=a.d.length,i=t.d.length,e=0,r=n<i?n:i;e<r;++e)if(a.d[e]!==t.d[e])return a.d[e]>t.d[e]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};oe.decimalPlaces=oe.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*Ge;if(e=t.d[e],e)for(;e%10==0;e/=10)r--;return r<0?0:r};oe.dividedBy=oe.div=function(t){return on(this,new this.constructor(t))};oe.dividedToIntegerBy=oe.idiv=function(t){var e=this,r=e.constructor;return Be(on(e,new r(t),0,1),r.precision)};oe.equals=oe.eq=function(t){return!this.cmp(t)};oe.exponent=function(){return ot(this)};oe.greaterThan=oe.gt=function(t){return this.cmp(t)>0};oe.greaterThanOrEqualTo=oe.gte=function(t){return this.cmp(t)>=0};oe.isInteger=oe.isint=function(){return this.e>this.d.length-2};oe.isNegative=oe.isneg=function(){return this.s<0};oe.isPositive=oe.ispos=function(){return this.s>0};oe.isZero=function(){return this.s===0};oe.lessThan=oe.lt=function(t){return this.cmp(t)<0};oe.lessThanOrEqualTo=oe.lte=function(t){return this.cmp(t)<1};oe.logarithm=oe.log=function(t){var e,r=this,n=r.constructor,i=n.precision,a=i+5;if(t===void 0)t=new n(10);else if(t=new n(t),t.s<1||t.eq(tr))throw Error(gr+"NaN");if(r.s<1)throw Error(gr+(r.s?"NaN":"-Infinity"));return r.eq(tr)?new n(0):(Xe=!1,e=on(ts(r,a),ts(t,a),a),Xe=!0,Be(e,i))};oe.minus=oe.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?RE(e,t):jE(e,(t.s=-t.s,t))};oe.modulo=oe.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(t=new n(t),!t.s)throw Error(gr+"NaN");return r.s?(Xe=!1,e=on(r,t,0,1).times(t),Xe=!0,r.minus(e)):Be(new n(r),i)};oe.naturalExponential=oe.exp=function(){return IE(this)};oe.naturalLogarithm=oe.ln=function(){return ts(this)};oe.negated=oe.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};oe.plus=oe.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?jE(e,t):RE(e,(t.s=-t.s,t))};oe.precision=oe.sd=function(t){var e,r,n,i=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(ui+t);if(e=ot(i)+1,n=i.d.length-1,r=n*Ge+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r};oe.squareRoot=oe.sqrt=function(){var t,e,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(gr+"NaN")}for(t=ot(s),Xe=!1,i=Math.sqrt(+s),i==0||i==1/0?(e=qr(s.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=qa((t+1)/2)-(t<0||t%2),i==1/0?e="5e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),n=new u(e)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(on(s,a,o+2)).times(.5),qr(a.d).slice(0,o)===(e=qr(n.d)).slice(0,o)){if(e=e.slice(o-3,o+1),i==o&&e=="4999"){if(Be(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(e!="9999")break;o+=4}return Xe=!0,Be(n,r)};oe.times=oe.mul=function(t){var e,r,n,i,a,o,s,u,l,c=this,f=c.constructor,h=c.d,d=(t=new f(t)).d;if(!c.s||!t.s)return new f(0);for(t.s*=c.s,r=c.e+t.e,u=h.length,l=d.length,u<l&&(a=h,h=d,d=a,o=u,u=l,l=o),a=[],o=u+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)s=a[i]+d[n]*h[i-n-1]+e,a[i--]=s%mt|0,e=s/mt|0;a[i]=(a[i]+e)%mt|0}for(;!a[--o];)a.pop();return e?++r:a.shift(),t.d=a,t.e=r,Xe?Be(t,f.precision):t};oe.toDecimalPlaces=oe.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),t===void 0?r:(Hr(t,0,La),e===void 0?e=n.rounding:Hr(e,0,8),Be(r,t+ot(r)+1,e))};oe.toExponential=function(t,e){var r,n=this,i=n.constructor;return t===void 0?r=yi(n,!0):(Hr(t,0,La),e===void 0?e=i.rounding:Hr(e,0,8),n=Be(new i(n),t+1,e),r=yi(n,!0,t+1)),r};oe.toFixed=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?yi(i):(Hr(t,0,La),e===void 0?e=a.rounding:Hr(e,0,8),n=Be(new a(i),t+ot(i)+1,e),r=yi(n.abs(),!1,t+ot(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};oe.toInteger=oe.toint=function(){var t=this,e=t.constructor;return Be(new e(t),ot(t)+1,e.rounding)};oe.toNumber=function(){return+this};oe.toPower=oe.pow=function(t){var e,r,n,i,a,o,s=this,u=s.constructor,l=12,c=+(t=new u(t));if(!t.s)return new u(tr);if(s=new u(s),!s.s){if(t.s<1)throw Error(gr+"Infinity");return s}if(s.eq(tr))return s;if(n=u.precision,t.eq(tr))return Be(s,n);if(e=t.e,r=t.d.length-1,o=e>=r,a=s.s,o){if((r=c<0?-c:c)<=kE){for(i=new u(tr),e=Math.ceil(n/Ge+4),Xe=!1;r%2&&(i=i.times(s),Lw(i.d,e)),r=qa(r/2),r!==0;)s=s.times(s),Lw(s.d,e);return Xe=!0,t.s<0?new u(tr).div(i):Be(i,n)}}else if(a<0)throw Error(gr+"NaN");return a=a<0&&t.d[Math.max(e,r)]&1?-1:1,s.s=1,Xe=!1,i=t.times(ts(s,n+l)),Xe=!0,i=IE(i),i.s=a,i};oe.toPrecision=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?(r=ot(i),n=yi(i,r<=a.toExpNeg||r>=a.toExpPos)):(Hr(t,1,La),e===void 0?e=a.rounding:Hr(e,0,8),i=Be(new a(i),t,e),r=ot(i),n=yi(i,t<=r||r<=a.toExpNeg,t)),n};oe.toSignificantDigits=oe.tosd=function(t,e){var r=this,n=r.constructor;return t===void 0?(t=n.precision,e=n.rounding):(Hr(t,1,La),e===void 0?e=n.rounding:Hr(e,0,8)),Be(new n(r),t,e)};oe.toString=oe.valueOf=oe.val=oe.toJSON=oe[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=ot(t),r=t.constructor;return yi(t,e<=r.toExpNeg||e>=r.toExpPos)};function jE(t,e){var r,n,i,a,o,s,u,l,c=t.constructor,f=c.precision;if(!t.s||!e.s)return e.s||(e=new c(t)),Xe?Be(e,f):e;if(u=t.d,l=e.d,o=t.e,i=e.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/Ge),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)/mt|0,u[a]%=mt;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=i,Xe?Be(e,f):e}function Hr(t,e,r){if(t!==~~t||t<e||t>r)throw Error(ui+t)}function qr(t){var e,r,n,i=t.length-1,a="",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)n=t[e]+"",r=Ge-n.length,r&&(a+=vn(r)),a+=n;o=t[e],n=o+"",r=Ge-n.length,r&&(a+=vn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var on=(function(){function t(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%mt|0,o=a/mt|0;return o&&n.unshift(o),n}function e(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*mt+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,d,y,m,p,g,_,b,x,v,w,S,A,P=n.constructor,M=n.s==i.s?1:-1,T=n.d,E=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(gr+"Division by zero");for(u=n.e-i.e,S=E.length,v=T.length,d=new P(M),y=d.d=[],l=0;E[l]==(T[l]||0);)++l;if(E[l]>(T[l]||0)&&--u,a==null?_=a=P.precision:o?_=a+(ot(n)-ot(i))+1:_=a,_<0)return new P(0);if(_=_/Ge+2|0,l=0,S==1)for(c=0,E=E[0],_++;(l<v||c)&&_--;l++)b=c*mt+(T[l]||0),y[l]=b/E|0,c=b%E|0;else{for(c=mt/(E[0]+1)|0,c>1&&(E=t(E,c),T=t(T,c),S=E.length,v=T.length),x=S,m=T.slice(0,S),p=m.length;p<S;)m[p++]=0;A=E.slice(),A.unshift(0),w=E[0],E[1]>=mt/2&&++w;do c=0,s=e(E,m,S,p),s<0?(g=m[0],S!=p&&(g=g*mt+(m[1]||0)),c=g/w|0,c>1?(c>=mt&&(c=mt-1),f=t(E,c),h=f.length,p=m.length,s=e(f,m,h,p),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<p&&f.unshift(0),r(m,f,p),s==-1&&(p=m.length,s=e(E,m,S,p),s<1&&(c++,r(m,S<p?A:E,p))),p=m.length):s===0&&(c++,m=[0]),y[l++]=c,s&&m[0]?m[p++]=T[x]||0:(m=[T[x]],p=1);while((x++<v||m[0]!==void 0)&&_--)}return y[0]||y.shift(),d.e=u,Be(d,o?a+ot(d)+1:a)}})();function IE(t,e){var r,n,i,a,o,s,u=0,l=0,c=t.constructor,f=c.precision;if(ot(t)>16)throw Error(Ag+ot(t));if(!t.s)return new c(tr);for(Xe=!1,s=f,o=new c(.03125);t.abs().gte(.1);)t=t.times(o),l+=5;for(n=Math.log(Xn(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new c(tr),c.precision=s;;){if(i=Be(i.times(t),s),r=r.times(++u),o=a.plus(on(i,r,s)),qr(o.d).slice(0,s)===qr(a.d).slice(0,s)){for(;l--;)a=Be(a.times(a),s);return c.precision=f,e==null?(Xe=!0,Be(a,f)):a}a=o}}function ot(t){for(var e=t.e*Ge,r=t.d[0];r>=10;r/=10)e++;return e}function wp(t,e,r){if(e>t.LN10.sd())throw Xe=!0,r&&(t.precision=r),Error(gr+"LN10 precision limit exceeded");return Be(new t(t.LN10),e)}function vn(t){for(var e="";t--;)e+="0";return e}function ts(t,e){var r,n,i,a,o,s,u,l,c,f=1,h=10,d=t,y=d.d,m=d.constructor,p=m.precision;if(d.s<1)throw Error(gr+(d.s?"NaN":"-Infinity"));if(d.eq(tr))return new m(0);if(e==null?(Xe=!1,l=p):l=e,d.eq(10))return e==null&&(Xe=!0),wp(m,l);if(l+=h,m.precision=l,r=qr(y),n=r.charAt(0),a=ot(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(t),r=qr(d.d),n=r.charAt(0),f++;a=ot(d),n>1?(d=new m("0."+r),a++):d=new m(n+"."+r.slice(1))}else return u=wp(m,l+2,p).times(a+""),d=ts(new m(n+"."+r.slice(1)),l-h).plus(u),m.precision=p,e==null?(Xe=!0,Be(d,p)):d;for(s=o=d=on(d.minus(tr),d.plus(tr),l),c=Be(d.times(d),l),i=3;;){if(o=Be(o.times(c),l),u=s.plus(on(o,new m(i),l)),qr(u.d).slice(0,l)===qr(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(wp(m,l+2,p).times(a+""))),s=on(s,new m(f),l),m.precision=p,e==null?(Xe=!0,Be(s,p)):s;s=u,i+=2}}function Nw(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;e.charCodeAt(n)===48;)++n;for(i=e.length;e.charCodeAt(i-1)===48;)--i;if(e=e.slice(n,i),e){if(i-=n,r=r-n-1,t.e=qa(r/Ge),t.d=[],n=(r+1)%Ge,r<0&&(n+=Ge),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=Ge;n<i;)t.d.push(+e.slice(n,n+=Ge));e=e.slice(n),n=Ge-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),Xe&&(t.e>Yu||t.e<-Yu))throw Error(Ag+r)}else t.s=0,t.e=0,t.d=[0];return t}function Be(t,e,r){var n,i,a,o,s,u,l,c,f=t.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=e-o,n<0)n+=Ge,i=e,l=f[c=0];else{if(c=Math.ceil((n+1)/Ge),a=f.length,c>=a)return t;for(l=a=f[c],o=1;a>=10;a/=10)o++;n%=Ge,i=n-Ge+o}if(r!==void 0&&(a=Xn(10,o-i-1),s=l/a%10|0,u=e<0||f[c+1]!==void 0||l%a,u=r<4?(s||u)&&(r==0||r==(t.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?l/Xn(10,o-i):0:f[c-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(a=ot(t),f.length=1,e=e-a-1,f[0]=Xn(10,(Ge-e%Ge)%Ge),t.e=qa(-e/Ge)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Xn(10,Ge-n),f[c]=i>0?(l/Xn(10,o-i)%Xn(10,i)|0)*a:0),u)for(;;)if(c==0){(f[0]+=a)==mt&&(f[0]=1,++t.e);break}else{if(f[c]+=a,f[c]!=mt)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Xe&&(t.e>Yu||t.e<-Yu))throw Error(Ag+ot(t));return t}function RE(t,e){var r,n,i,a,o,s,u,l,c,f,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),Xe?Be(e,d):e;if(u=t.d,f=e.d,n=e.e,l=t.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(d/Ge),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,e.s=-e.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]=mt-1;--u[a],u[i]+=mt}u[i]-=f[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(e.d=u,e.e=n,Xe?Be(e,d):e):new h(0)}function yi(t,e,r){var n,i=ot(t),a=qr(t.d),o=a.length;return e?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+vn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+vn(-i-1)+a,r&&(n=r-o)>0&&(a+=vn(n))):i>=o?(a+=vn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+vn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=vn(n))),t.s<0?"-"+a:a}function Lw(t,e){if(t.length>e)return t.length=e,!0}function $E(t){var e,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(ui+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 Nw(o,a.toString())}else if(typeof a!="string")throw Error(ui+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,b3.test(a))Nw(o,a);else throw Error(ui+a)}if(i.prototype=oe,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=$E,i.config=i.set=_3,t===void 0&&(t={}),t)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<n.length;)t.hasOwnProperty(r=n[e++])||(t[r]=this[r]);return i.config(t),i}function _3(t){if(!t||typeof t!="object")throw Error(gr+"Object expected");var e,r,n,i=["precision",1,La,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if((n=t[r=i[e]])!==void 0)if(qa(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(ui+r+": "+n);if((n=t[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ui+r+": "+n);return this}var Pg=$E(g3);tr=new Pg(1);const Ne=Pg;function x3(t){return A3(t)||O3(t)||S3(t)||w3()}function w3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
87
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S3(t,e){if(t){if(typeof t=="string")return ay(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ay(t,e)}}function O3(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function A3(t){if(Array.isArray(t))return ay(t)}function ay(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var P3=function(e){return e},DE={},NE=function(e){return e===DE},qw=function(e){return function r(){return arguments.length===0||arguments.length===1&&NE(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},T3=function t(e,r){return e===1?r:qw(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!==DE}).length;return o>=e?r.apply(void 0,i):t(e-o,qw(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 NE(f)?u.shift():f});return r.apply(void 0,x3(c).concat(u))}))})},Zl=function(e){return T3(e.length,e)},oy=function(e,r){for(var n=[],i=e;i<r;++i)n[i-e]=i;return n},E3=Zl(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return e[r]}).map(t)}),C3=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.length)return P3;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))}},sy=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},LE=function(e){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=e.apply(void 0,a)),n}};function M3(t){var e;return t===0?e=1:e=Math.floor(new Ne(t).abs().log(10).toNumber())+1,e}function k3(t,e,r){for(var n=new Ne(t),i=0,a=[];n.lt(e)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var j3=Zl(function(t,e,r){var n=+t,i=+e;return n+r*(i-n)}),I3=Zl(function(t,e,r){var n=e-+t;return n=n||1/0,(r-t)/n}),R3=Zl(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const Jl={rangeStep:k3,getDigitCount:M3,interpolateNumber:j3,uninterpolateNumber:I3,uninterpolateTruncation:R3};function uy(t){return N3(t)||D3(t)||qE(t)||$3()}function $3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
88
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D3(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function N3(t){if(Array.isArray(t))return ly(t)}function rs(t,e){return B3(t)||q3(t,e)||qE(t,e)||L3()}function L3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
89
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qE(t,e){if(t){if(typeof t=="string")return ly(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ly(t,e)}}function ly(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function q3(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=t[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(e&&r.length===e));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function B3(t){if(Array.isArray(t))return t}function BE(t){var e=rs(t,2),r=e[0],n=e[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function FE(t,e,r){if(t.lte(0))return new Ne(0);var n=Jl.getDigitCount(t.toNumber()),i=new Ne(10).pow(n),a=t.div(i),o=n!==1?.05:.1,s=new Ne(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return e?u:new Ne(Math.ceil(u))}function F3(t,e,r){var n=1,i=new Ne(t);if(!i.isint()&&r){var a=Math.abs(t);a<1?(n=new Ne(10).pow(Jl.getDigitCount(t)-1),i=new Ne(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ne(Math.floor(t)))}else t===0?i=new Ne(Math.floor((e-1)/2)):r||(i=new Ne(Math.floor(t)));var o=Math.floor((e-1)/2),s=C3(E3(function(u){return i.add(new Ne(u-o).mul(n)).toNumber()}),oy);return s(0,e)}function zE(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Ne(0),tickMin:new Ne(0),tickMax:new Ne(0)};var a=FE(new Ne(e).sub(t).div(r-1),n,i),o;t<=0&&e>=0?o=new Ne(0):(o=new Ne(t).add(e).div(2),o=o.sub(new Ne(o).mod(a)));var s=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new Ne(e).sub(o).div(a).toNumber()),l=s+u+1;return l>r?zE(t,e,r,n,i+1):(l<r&&(u=e>0?u+(r-l):u,s=e>0?s:s+(r-l)),{step:a,tickMin:o.sub(new Ne(s).mul(a)),tickMax:o.add(new Ne(u).mul(a))})}function z3(t){var e=rs(t,2),r=e[0],n=e[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=BE([r,n]),u=rs(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(uy(oy(0,i-1).map(function(){return 1/0}))):[].concat(uy(oy(0,i-1).map(function(){return-1/0})),[c]);return r>n?sy(f):f}if(l===c)return F3(l,i,a);var h=zE(l,c,o,a),d=h.step,y=h.tickMin,m=h.tickMax,p=Jl.rangeStep(y,m.add(new Ne(.1).mul(d)),d);return r>n?sy(p):p}function U3(t,e){var r=rs(t,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=BE([n,i]),s=rs(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(e,2),f=FE(new Ne(l).sub(u).div(c-1),a,0),h=[].concat(uy(Jl.rangeStep(new Ne(u),new Ne(l).sub(new Ne(.99).mul(f)),f)),[l]);return n>i?sy(h):h}var W3=LE(z3),H3=LE(U3),G3=process.env.NODE_ENV==="production",Sp="Invariant failed";function qt(t,e){if(G3)throw new Error(Sp);var r=typeof e=="function"?e():e,n=r?"".concat(Sp,": ").concat(r):Sp;throw new Error(n)}var K3=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function da(t){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},da(t)}function Vu(){return Vu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vu.apply(this,arguments)}function X3(t,e){return J3(t)||Z3(t,e)||V3(t,e)||Y3()}function Y3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
90
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V3(t,e){if(t){if(typeof t=="string")return Bw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bw(t,e)}}function Bw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Z3(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 J3(t){if(Array.isArray(t))return t}function Q3(t,e){if(t==null)return{};var r=eU(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function eU(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function tU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rU(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HE(n.key),n)}}function nU(t,e,r){return e&&rU(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function iU(t,e,r){return e=Zu(e),aU(t,UE()?Reflect.construct(e,r||[],Zu(t).constructor):e.apply(t,r))}function aU(t,e){if(e&&(da(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oU(t)}function oU(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function UE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UE=function(){return!!t})()}function Zu(t){return Zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zu(t)}function sU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cy(t,e)}function cy(t,e){return cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cy(t,e)}function WE(t,e,r){return e=HE(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HE(t){var e=uU(t,"string");return da(e)=="symbol"?e:e+""}function uU(t,e){if(da(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(da(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ba=(function(t){function e(){return tU(this,e),iU(this,e,arguments)}return sU(e,t),nU(e,[{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=Q3(n,K3),d=me(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?qt(!1,'ErrorBar requires Axis type property to be "number".'):qt());var y=u.map(function(m){var p=l(m,s),g=p.x,_=p.y,b=p.value,x=p.errorVal;if(!x)return null;var v=[],w,S;if(Array.isArray(x)){var A=X3(x,2);w=A[0],S=A[1]}else w=S=x;if(a==="vertical"){var P=c.scale,M=_+i,T=M+o,E=M-o,C=P(b-w),I=P(b+S);v.push({x1:I,y1:T,x2:I,y2:E}),v.push({x1:C,y1:M,x2:I,y2:M}),v.push({x1:C,y1:T,x2:C,y2:E})}else if(a==="horizontal"){var k=f.scale,j=g+i,$=j-o,N=j+o,B=k(b-w),R=k(b+S);v.push({x1:$,y1:R,x2:N,y2:R}),v.push({x1:j,y1:B,x2:j,y2:R}),v.push({x1:$,y1:B,x2:N,y2:B})}return O.createElement(Te,Vu({className:"recharts-errorBar",key:"bar-".concat(v.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},d),v.map(function(L){return O.createElement("line",Vu({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return O.createElement(Te,{className:"recharts-errorBars"},y)}}])})(O.Component);WE(Ba,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});WE(Ba,"displayName","ErrorBar");function ns(t){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ns(t)}function Fw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fw(Object(r),!0).forEach(function(n){lU(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lU(t,e,r){return e=cU(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cU(t){var e=fU(t,"string");return ns(e)=="symbol"?e:e+""}function fU(t,e){if(ns(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ns(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var GE=function(e){var r=e.children,n=e.formattedGraphicalItems,i=e.legendWidth,a=e.legendContent,o=Zt(r,si);if(!o)return null;var s=si.defaultProps,u=s!==void 0?Hn(Hn({},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,d=f.props,y=d.sectors||d.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):l=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,d=h!==void 0?Hn(Hn({},h),f.props):{},y=d.dataKey,m=d.name,p=d.legendType,g=d.hide;return{inactive:g,dataKey:y,type:u.iconType||p||"square",color:Tg(f),value:m||y,payload:d}}),Hn(Hn(Hn({},u),si.getWithHeight(o,i)),{},{payload:l,item:o})};function is(t){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(t)}function zw(t){return mU(t)||pU(t)||dU(t)||hU()}function hU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
91
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dU(t,e){if(t){if(typeof t=="string")return fy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fy(t,e)}}function pU(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mU(t){if(Array.isArray(t))return fy(t)}function fy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Uw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Je(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Uw(Object(r),!0).forEach(function(n){Yi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yi(t,e,r){return e=yU(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yU(t){var e=vU(t,"string");return is(e)=="symbol"?e:e+""}function vU(t,e){if(is(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(is(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ft(t,e,r){return pe(t)||pe(e)?r:ct(e)?vr(t,e,r):ye(e)?e(t):r}function Po(t,e,r,n){var i=iE(t,function(s){return ft(s,e)});if(r==="number"){var a=i.filter(function(s){return J(s)||parseFloat(s)});return a.length?[Vl(a),Sn(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!pe(s)}):i;return o.map(function(s){return ct(s)||s instanceof Date?s:""})}var gU=function(e){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,d=void 0;if(Pr(f-c)!==Pr(h-f)){var y=[];if(Pr(h-f)===Pr(u[1]-u[0])){d=h;var m=f+u[1]-u[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{d=c;var p=h+u[1]-u[0];y[0]=Math.min(f,(p+f)/2),y[1]=Math.max(f,(p+f)/2)}var g=[Math.min(f,(d+f)/2),Math.max(f,(d+f)/2)];if(e>g[0]&&e<=g[1]||e>=y[0]&&e<=y[1]){o=i[l].index;break}}else{var _=Math.min(c,h),b=Math.max(c,h);if(e>(_+f)/2&&e<=(b+f)/2){o=i[l].index;break}}}else for(var x=0;x<s;x++)if(x===0&&e<=(n[x].coordinate+n[x+1].coordinate)/2||x>0&&x<s-1&&e>(n[x].coordinate+n[x-1].coordinate)/2&&e<=(n[x].coordinate+n[x+1].coordinate)/2||x===s-1&&e>(n[x].coordinate+n[x-1].coordinate)/2){o=n[x].index;break}return o},Tg=function(e){var r,n=e,i=n.type.displayName,a=(r=e.type)!==null&&r!==void 0&&r.defaultProps?Je(Je({},e.type.defaultProps),e.props):e.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},bU=function(e){var r=e.barSize,n=e.totalSize,i=e.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,d=f.length;h<d;h++){var y=c[f[h]],m=y.items,p=y.cateAxisId,g=m.filter(function(S){return nn(S.type).indexOf("Bar")>=0});if(g&&g.length){var _=g[0].type.defaultProps,b=_!==void 0?Je(Je({},_),g[0].props):g[0].props,x=b.barSize,v=b[p];o[v]||(o[v]=[]);var w=pe(x)?r:x;o[v].push({item:g[0],stackList:g.slice(1),barSize:pe(w)?void 0:pi(w,n,0)})}}return o},_U=function(e){var r=e.barGap,n=e.barCategoryGap,i=e.bandSize,a=e.sizeList,o=a===void 0?[]:a,s=e.maxBarSize,u=o.length;if(u<1)return null;var l=pi(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/u,y=o.reduce(function(x,v){return x+v.barSize||0},0);y+=(u-1)*l,y>=i&&(y-=(u-1)*l,l=0),y>=i&&d>0&&(h=!0,d*=.9,y=u*d);var m=(i-y)/2>>0,p={offset:m-l,size:0};c=o.reduce(function(x,v){var w={item:v.item,position:{offset:p.offset+p.size+l,size:h?d:v.barSize}},S=[].concat(zw(x),[w]);return p=S[S.length-1].position,v.stackList&&v.stackList.length&&v.stackList.forEach(function(A){S.push({item:A,position:p})}),S},f)}else{var g=pi(n,i,0,!0);i-2*g-(u-1)*l<=0&&(l=0);var _=(i-2*g-(u-1)*l)/u;_>1&&(_>>=0);var b=s===+s?Math.min(_,s):_;c=o.reduce(function(x,v,w){var S=[].concat(zw(x),[{item:v.item,position:{offset:g+(_+l)*w+(_-b)/2,size:b}}]);return v.stackList&&v.stackList.length&&v.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},xU=function(e,r,n,i){var a=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),l=GE({children:a,legendWidth:u});if(l){var c=i||{},f=c.width,h=c.height,d=l.align,y=l.verticalAlign,m=l.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&d!=="center"&&J(e[d]))return Je(Je({},e),{},Yi({},d,e[d]+(f||0)));if((m==="horizontal"||m==="vertical"&&d==="center")&&y!=="middle"&&J(e[y]))return Je(Je({},e),{},Yi({},y,e[y]+(h||0)))}return e},wU=function(e,r,n){return pe(r)?!0:e==="horizontal"?r==="yAxis":e==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},KE=function(e,r,n,i,a){var o=r.props.children,s=Ht(o,Ba).filter(function(l){return wU(i,a,l.props.direction)});if(s&&s.length){var u=s.map(function(l){return l.props.dataKey});return e.reduce(function(l,c){var f=ft(c,n);if(pe(f))return l;var h=Array.isArray(f)?[Vl(f),Sn(f)]:[f,f],d=u.reduce(function(y,m){var p=ft(c,m,0),g=h[0]-Math.abs(Array.isArray(p)?p[0]:p),_=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,y[0]),Math.max(_,y[1])]},[1/0,-1/0]);return[Math.min(d[0],l[0]),Math.max(d[1],l[1])]},[1/0,-1/0])}return null},SU=function(e,r,n,i,a){var o=r.map(function(s){return KE(e,s,n,a,i)}).filter(function(s){return!pe(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},XE=function(e,r,n,i,a){var o=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&KE(e,u,l,i)||Po(e,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},[])},YE=function(e,r){return e==="horizontal"&&r==="xAxis"||e==="vertical"&&r==="yAxis"||e==="centric"&&r==="angleAxis"||e==="radial"&&r==="radiusAxis"},VE=function(e,r,n,i){if(i)return e.map(function(u){return u.coordinate});var a,o,s=e.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},rn=function(e,r,n){if(!e)return null;var i=e.scale,a=e.duplicateDomain,o=e.type,s=e.range,u=e.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/u:0;if(l=e.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Pr(s[0]-s[1])*2*l:l,r&&(e.ticks||e.niceTicks)){var c=(e.ticks||e.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!Na(f.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(f,h){return{coordinate:i(f)+l,value:f,index:h,offset:l}}):i.ticks&&!n?i.ticks(e.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}})},Op=new WeakMap,eu=function(e,r){if(typeof r!="function")return e;Op.has(e)||Op.set(e,new WeakMap);var n=Op.get(e);if(n.has(r))return n.get(r);var i=function(){e.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},OU=function(e,r,n){var i=e.scale,a=e.type,o=e.layout,s=e.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Io(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Zi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:mo(),realScaleType:"point"}:a==="category"?{scale:Io(),realScaleType:"band"}:{scale:Zi(),realScaleType:"linear"};if(di(i)){var u="scale".concat(Kl(i));return{scale:(Mw[u]||mo)(),realScaleType:Mw[u]?u:"point"}}return ye(i)?{scale:i}:{scale:mo(),realScaleType:"point"}},Ww=1e-4,AU=function(e){var r=e.domain();if(!(!r||r.length<=2)){var n=r.length,i=e.range(),a=Math.min(i[0],i[1])-Ww,o=Math.max(i[0],i[1])+Ww,s=e(r[0]),u=e(r[n-1]);(s<a||s>o||u<a||u>o)&&e.domain([r[0],r[n-1]])}},PU=function(e,r){if(!e)return null;for(var n=0,i=e.length;n<i;n++)if(e[n].item===r)return e[n].position;return null},TU=function(e,r){if(!r||r.length!==2||!J(r[0])||!J(r[1]))return e;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[e[0],e[1]];return(!J(e[0])||e[0]<n)&&(a[0]=n),(!J(e[1])||e[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},EU=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var u=Na(e[s][n][1])?e[s][n][0]:e[s][n][1];u>=0?(e[s][n][0]=a,e[s][n][1]=a+u,a=e[s][n][1]):(e[s][n][0]=o,e[s][n][1]=o+u,o=e[s][n][1])}},CU=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Na(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=a,e[o][n][1]=a+s,a=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},MU={sign:EU,expand:i$,none:ta,silhouette:a$,wiggle:o$,positive:CU},kU=function(e,r,n){var i=r.map(function(s){return s.props.dataKey}),a=MU[n],o=Cv().keys(i).value(function(s,u){return+ft(s,u,0)}).order(hm).offset(a);return o(e)},jU=function(e,r,n,i,a,o){if(!e)return null;var s=o?r.reverse():r,u={},l=s.reduce(function(f,h){var d,y=(d=h.type)!==null&&d!==void 0&&d.defaultProps?Je(Je({},h.type.defaultProps),h.props):h.props,m=y.stackId,p=y.hide;if(p)return f;var g=y[n],_=f[g]||{hasStack:!1,stackGroups:{}};if(ct(m)){var b=_.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),_.hasStack=!0,_.stackGroups[m]=b}else _.stackGroups[Oi("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return Je(Je({},f),{},Yi({},g,_))},u),c={};return Object.keys(l).reduce(function(f,h){var d=l[h];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(m,p){var g=d.stackGroups[p];return Je(Je({},m),{},Yi({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:kU(e,g.items,a)}))},y)}return Je(Je({},f),{},Yi({},h,d))},c)},IU=function(e,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=e.domain();if(!l.length)return null;var c=W3(l,a,s);return e.domain([Vl(c),Sn(c)]),{niceTicks:c}}if(a&&i==="number"){var f=e.domain(),h=H3(f,a,s);return{niceTicks:h}}return null};function pa(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,a=t.index,o=t.dataKey;if(e.type==="category"){if(!e.allowDuplicatedCategory&&e.dataKey&&!pe(i[e.dataKey])){var s=Fu(r,"value",i[e.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=ft(i,pe(o)?e.dataKey:o);return pe(u)?null:e.scale(u)}var Hw=function(e){var r=e.axis,n=e.ticks,i=e.offset,a=e.bandSize,o=e.entry,s=e.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=ft(o,r.dataKey,r.domain[s]);return pe(u)?null:r.scale(u)-a/2+i},RU=function(e){var r=e.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]},$U=function(e,r){var n,i=(n=e.type)!==null&&n!==void 0&&n.defaultProps?Je(Je({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(ct(a)){var o=r[a];if(o){var s=o.items.indexOf(e);return s>=0?o.stackedData[s]:null}}return null},DU=function(e){return e.reduce(function(r,n){return[Vl(n.concat([r[0]]).filter(J)),Sn(n.concat([r[1]]).filter(J))]},[1/0,-1/0])},ZE=function(e,r,n){return Object.keys(e).reduce(function(i,a){var o=e[a],s=o.stackedData,u=s.reduce(function(l,c){var f=DU(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})},Gw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Kw=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hy=function(e,r,n){if(ye(e))return e(r,n);if(!Array.isArray(e))return r;var i=[];if(J(e[0]))i[0]=n?e[0]:Math.min(e[0],r[0]);else if(Gw.test(e[0])){var a=+Gw.exec(e[0])[1];i[0]=r[0]-a}else ye(e[0])?i[0]=e[0](r[0]):i[0]=r[0];if(J(e[1]))i[1]=n?e[1]:Math.max(e[1],r[1]);else if(Kw.test(e[1])){var o=+Kw.exec(e[1])[1];i[1]=r[1]+o}else ye(e[1])?i[1]=e[1](r[1]):i[1]=r[1];return i},Ju=function(e,r,n){if(e&&e.scale&&e.scale.bandwidth){var i=e.scale.bandwidth();if(!n||i>0)return i}if(e&&r&&r.length>=2){for(var a=Gl(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},Xw=function(e,r,n){return!e||!e.length||mi(e,vr(n,"type.defaultProps.domain"))?r:e},JE=function(e,r){var n=e.type.defaultProps?Je(Je({},e.type.defaultProps),e.props):e.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,u=n.tooltipType,l=n.chartType,c=n.hide;return Je(Je({},me(e,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:Tg(e),value:ft(r,i),type:u,payload:r,chartType:l,hide:c})};function as(t){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},as(t)}function Yw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Vw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yw(Object(r),!0).forEach(function(n){NU(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function NU(t,e,r){return e=LU(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function LU(t){var e=qU(t,"string");return as(e)=="symbol"?e:e+""}function qU(t,e){if(as(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(as(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qu=Math.PI/180,BU=function(e){return e*180/Math.PI},xt=function(e,r,n,i){return{x:e+Math.cos(-Qu*i)*n,y:r+Math.sin(-Qu*i)*n}},FU=function(e,r){var n=e.x,i=e.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},zU=function(e,r){var n=e.x,i=e.y,a=r.cx,o=r.cy,s=FU({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:BU(l),angleInRadian:l}},UU=function(e){var r=e.startAngle,n=e.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}},WU=function(e,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return e+s*360},Zw=function(e,r){var n=e.x,i=e.y,a=zU({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=UU(r),f=c.startAngle,h=c.endAngle,d=s,y;if(f<=h){for(;d>h;)d-=360;for(;d<f;)d+=360;y=d>=f&&d<=h}else{for(;d>f;)d-=360;for(;d<h;)d+=360;y=d>=h&&d<=f}return y?Vw(Vw({},r),{},{radius:o,angle:WU(d,r)}):null};function os(t){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},os(t)}var HU=["offset"];function GU(t){return VU(t)||YU(t)||XU(t)||KU()}function KU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XU(t,e){if(t){if(typeof t=="string")return dy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dy(t,e)}}function YU(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function VU(t){if(Array.isArray(t))return dy(t)}function dy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ZU(t,e){if(t==null)return{};var r=JU(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function JU(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Jw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function lt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jw(Object(r),!0).forEach(function(n){QU(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jw(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function QU(t,e,r){return e=eW(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eW(t){var e=tW(t,"string");return os(e)=="symbol"?e:e+""}function tW(t,e){if(os(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(os(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ss(){return ss=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ss.apply(this,arguments)}var rW=function(e){var r=e.value,n=e.formatter,i=pe(e.children)?r:e.children;return ye(n)?n(i):i},nW=function(e,r){var n=Pr(r-e),i=Math.min(Math.abs(r-e),360);return n*i},iW=function(e,r,n){var i=e.position,a=e.viewBox,o=e.offset,s=e.className,u=a,l=u.cx,c=u.cy,f=u.innerRadius,h=u.outerRadius,d=u.startAngle,y=u.endAngle,m=u.clockWise,p=(f+h)/2,g=nW(d,y),_=g>=0?1:-1,b,x;i==="insideStart"?(b=d+_*o,x=m):i==="insideEnd"?(b=y-_*o,x=!m):i==="end"&&(b=y+_*o,x=m),x=g<=0?x:!x;var v=xt(l,c,p,b),w=xt(l,c,p,b+(x?1:-1)*359),S="M".concat(v.x,",").concat(v.y,`
93
- A`).concat(p,",").concat(p,",0,1,").concat(x?0:1,`,
94
- `).concat(w.x,",").concat(w.y),A=pe(e.id)?Oi("recharts-radial-line-"):e.id;return O.createElement("text",ss({},n,{dominantBaseline:"central",className:_e("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},aW=function(e){var r=e.viewBox,n=e.offset,i=e.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 d=xt(o,s,l+n,h),y=d.x,m=d.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var p=(u+l)/2,g=xt(o,s,p,h),_=g.x,b=g.y;return{x:_,y:b,textAnchor:"middle",verticalAnchor:"middle"}},oW=function(e){var r=e.viewBox,n=e.parentViewBox,i=e.offset,a=e.position,o=r,s=o.x,u=o.y,l=o.width,c=o.height,f=c>=0?1:-1,h=f*i,d=f>0?"end":"start",y=f>0?"start":"end",m=l>=0?1:-1,p=m*i,g=m>0?"end":"start",_=m>0?"start":"end";if(a==="top"){var b={x:s+l/2,y:u-f*i,textAnchor:"middle",verticalAnchor:d};return lt(lt({},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 lt(lt({},x),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{})}if(a==="left"){var v={x:s-p,y:u+c/2,textAnchor:g,verticalAnchor:"middle"};return lt(lt({},v),n?{width:Math.max(v.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+l+p,y:u+c/2,textAnchor:_,verticalAnchor:"middle"};return lt(lt({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:l,height:c}:{};return a==="insideLeft"?lt({x:s+p,y:u+c/2,textAnchor:_,verticalAnchor:"middle"},S):a==="insideRight"?lt({x:s+l-p,y:u+c/2,textAnchor:g,verticalAnchor:"middle"},S):a==="insideTop"?lt({x:s+l/2,y:u+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?lt({x:s+l/2,y:u+c-h,textAnchor:"middle",verticalAnchor:d},S):a==="insideTopLeft"?lt({x:s+p,y:u+h,textAnchor:_,verticalAnchor:y},S):a==="insideTopRight"?lt({x:s+l-p,y:u+h,textAnchor:g,verticalAnchor:y},S):a==="insideBottomLeft"?lt({x:s+p,y:u+c-h,textAnchor:_,verticalAnchor:d},S):a==="insideBottomRight"?lt({x:s+l-p,y:u+c-h,textAnchor:g,verticalAnchor:d},S):Da(a)&&(J(a.x)||Qn(a.x))&&(J(a.y)||Qn(a.y))?lt({x:s+pi(a.x,l),y:u+pi(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):lt({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},sW=function(e){return"cx"in e&&J(e.cx)};function Tt(t){var e=t.offset,r=e===void 0?5:e,n=ZU(t,HU),i=lt({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||pe(s)&&pe(u)&&!O.isValidElement(l)&&!ye(l))return null;if(O.isValidElement(l))return O.cloneElement(l,i);var d;if(ye(l)){if(d=O.createElement(l,i),O.isValidElement(d))return d}else d=rW(i);var y=sW(a),m=me(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return iW(i,d,m);var p=y?aW(i):oW(i);return O.createElement(Xu,ss({className:_e("recharts-label",f)},m,p,{breakAll:h}),d)}Tt.displayName="Label";var QE=function(e){var r=e.cx,n=e.cy,i=e.angle,a=e.startAngle,o=e.endAngle,s=e.r,u=e.radius,l=e.innerRadius,c=e.outerRadius,f=e.x,h=e.y,d=e.top,y=e.left,m=e.width,p=e.height,g=e.clockWise,_=e.labelViewBox;if(_)return _;if(J(m)&&J(p)){if(J(f)&&J(h))return{x:f,y:h,width:m,height:p};if(J(d)&&J(y))return{x:d,y,width:m,height:p}}return J(f)&&J(h)?{x:f,y:h,width:0,height:0}:J(r)&&J(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:c||u||s||0,clockWise:g}:e.viewBox?e.viewBox:{}},uW=function(e,r){return e?e===!0?O.createElement(Tt,{key:"label-implicit",viewBox:r}):ct(e)?O.createElement(Tt,{key:"label-implicit",viewBox:r,value:e}):O.isValidElement(e)?e.type===Tt?O.cloneElement(e,{key:"label-implicit",viewBox:r}):O.createElement(Tt,{key:"label-implicit",content:e,viewBox:r}):ye(e)?O.createElement(Tt,{key:"label-implicit",content:e,viewBox:r}):Da(e)?O.createElement(Tt,ss({viewBox:r},e,{key:"label-implicit"})):null:null},lW=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var i=e.children,a=QE(e),o=Ht(i,Tt).map(function(u,l){return O.cloneElement(u,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=uW(e.label,r||a);return[s].concat(GU(o))};Tt.parseViewBox=QE;Tt.renderCallByParent=lW;var Ap,Qw;function cW(){if(Qw)return Ap;Qw=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return Ap=t,Ap}var fW=cW();const hW=$e(fW);function us(t){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},us(t)}var dW=["valueAccessor"],pW=["data","dataKey","clockWise","id","textBreakAll"];function mW(t){return bW(t)||gW(t)||vW(t)||yW()}function yW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vW(t,e){if(t){if(typeof t=="string")return py(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return py(t,e)}}function gW(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function bW(t){if(Array.isArray(t))return py(t)}function py(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function el(){return el=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},el.apply(this,arguments)}function eS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function tS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eS(Object(r),!0).forEach(function(n){_W(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _W(t,e,r){return e=xW(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xW(t){var e=wW(t,"string");return us(e)=="symbol"?e:e+""}function wW(t,e){if(us(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(us(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rS(t,e){if(t==null)return{};var r=SW(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function SW(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var OW=function(e){return Array.isArray(e.value)?hW(e.value):e.value};function zr(t){var e=t.valueAccessor,r=e===void 0?OW:e,n=rS(t,dW),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,l=rS(n,pW);return!i||!i.length?null:O.createElement(Te,{className:"recharts-label-list"},i.map(function(c,f){var h=pe(a)?r(c,f):ft(c&&c.payload,a),d=pe(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(Tt,el({},me(c,!0),l,d,{parentViewBox:c.parentViewBox,value:h,textBreakAll:u,viewBox:Tt.parseViewBox(pe(o)?c:tS(tS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}zr.displayName="LabelList";function AW(t,e){return t?t===!0?O.createElement(zr,{key:"labelList-implicit",data:e}):O.isValidElement(t)||ye(t)?O.createElement(zr,{key:"labelList-implicit",data:e,content:t}):Da(t)?O.createElement(zr,el({data:e},t,{key:"labelList-implicit"})):null:null}function PW(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=Ht(n,zr).map(function(o,s){return O.cloneElement(o,{data:e,key:"labelList-".concat(s)})});if(!r)return i;var a=AW(t.label,e);return[a].concat(mW(i))}zr.renderCallByParent=PW;function ls(t){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ls(t)}function my(){return my=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},my.apply(this,arguments)}function nS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function iS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nS(Object(r),!0).forEach(function(n){TW(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function TW(t,e,r){return e=EW(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function EW(t){var e=CW(t,"string");return ls(e)=="symbol"?e:e+""}function CW(t,e){if(ls(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var MW=function(e,r){var n=Pr(r-e),i=Math.min(Math.abs(r-e),359.999);return n*i},tu=function(e){var r=e.cx,n=e.cy,i=e.radius,a=e.angle,o=e.sign,s=e.isExternal,u=e.cornerRadius,l=e.cornerIsExternal,c=u*(s?1:-1)+i,f=Math.asin(u/c)/Qu,h=l?a:a+o*f,d=xt(r,n,c,h),y=xt(r,n,i,h),m=l?a-o*f:a,p=xt(r,n,c*Math.cos(f*Qu),m);return{center:d,circleTangency:y,lineTangency:p,theta:f}},eC=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.startAngle,s=e.endAngle,u=MW(o,s),l=o+u,c=xt(r,n,a,o),f=xt(r,n,a,l),h="M ".concat(c.x,",").concat(c.y,`
90
+ height and width.`,$,C,o,u,c,f,r);var I=!Array.isArray(p)&&Ln(p.type).endsWith("Chart");return A.Children.map(p,function(L){return A.isValidElement(L)?A.cloneElement(L,Hu({width:$,height:C},I?{style:Hu({height:"100%",width:"100%",maxHeight:C,maxWidth:$},L.props.style)}:{})):L})},[r,p,u,h,f,c,T,o]);return A.createElement("div",{id:d?"".concat(d):void 0,className:Ot("recharts-responsive-container",v),style:Hu(Hu({},x),{},{width:o,height:u,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),x0=function(t){return null};x0.displayName="Cell";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 yS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(r),!0).forEach(function(n){P3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P3(e,t,r){return t=E3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E3(e){var t=C3(e,"string");return Ys(t)=="symbol"?t:t+""}function C3(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)}var Oa={widthCache:{},cacheCount:0},M3=2e3,k3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},gS="recharts_measurement_span";function $3(e){var t=rg({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var bs=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||_i.isSsr)return{width:0,height:0};var n=$3(r),i=JSON.stringify({text:t,copyStyle:n});if(Oa.widthCache[i])return Oa.widthCache[i];try{var a=document.getElementById(gS);a||(a=document.createElement("span"),a.setAttribute("id",gS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=rg(rg({},k3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return Oa.widthCache[i]=u,++Oa.cacheCount>M3&&(Oa.cacheCount=0,Oa.widthCache={}),u}catch{return{width:0,height:0}}},j3=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function Ul(e,t){return N3(e)||I3(e,t)||D3(e,t)||R3()}function R3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D3(e,t){if(e){if(typeof e=="string")return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(e,t)}}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function N3(e){if(Array.isArray(e))return e}function L3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q3(n.key),n)}}function B3(e,t,r){return t&&bS(e.prototype,t),r&&bS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function q3(e){var t=F3(e,"string");return Xs(t)=="symbol"?t:t+""}function F3(e,t){if(Xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _S=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,z3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,U3=/(-?\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},W3=Object.keys(AC),ka="NaN";function G3(e,t){return e*AC[t]}var Ku=(function(){function e(t,r){L3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!z3.test(r)&&(this.num=NaN,this.unit=""),W3.includes(r)&&(this.num=G3(t,r),this.unit="px")}return B3(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=U3.exec(r))!==null&&n!==void 0?n:[],a=Ul(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function OC(e){if(e.includes(ka))return ka;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=_S.exec(t))!==null&&r!==void 0?r:[],i=Ul(n,4),a=i[1],o=i[2],s=i[3],u=Ku.parse(a??""),l=Ku.parse(s??""),c=o==="*"?u.multiply(l):u.divide(l);if(c.isNaN())return ka;t=t.replace(_S,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=xS.exec(t))!==null&&f!==void 0?f:[],p=Ul(h,4),y=p[1],m=p[2],d=p[3],v=Ku.parse(y??""),_=Ku.parse(d??""),b=m==="+"?v.add(_):v.subtract(_);if(b.isNaN())return ka;t=t.replace(xS,b.toString())}return t}var wS=/\(([^()]*)\)/;function H3(e){for(var t=e;t.includes("(");){var r=wS.exec(t),n=Ul(r,2),i=n[1];t=t.replace(wS,OC(i))}return t}function K3(e){var t=e.replace(/\s+/g,"");return t=H3(t),t=OC(t),t}function Y3(e){try{return K3(e)}catch{return ka}}function mm(e){var t=Y3(e.slice(5,-1));return t===ka?"":t}var X3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],V3=["dx","dy","angle","className","breakAll"];function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ng.apply(this,arguments)}function SS(e,t){if(e==null)return{};var r=Z3(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 Z3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AS(e,t){return eU(e)||tU(e,t)||Q3(e,t)||J3()}function J3(){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 Q3(e,t){if(e){if(typeof e=="string")return OS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tU(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 eU(e){if(Array.isArray(e))return e}var TC=/[ \f\n\r\t\v\u2028\u2029]+/,PC=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];gt(r)||(n?a=r.toString().split(""):a=r.toString().split(TC));var o=a.map(function(u){return{word:u,width:bs(u,i).width}}),s=n?0:bs(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},rU=function(t,r,n,i,a){var o=t.maxLines,s=t.children,u=t.style,l=t.breakAll,c=nt(o),f=s,h=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(C,I){var L=I.word,q=I.width,D=C[C.length-1];if(D&&(i==null||a||D.width+q+n<Number(i)))D.words.push(L),D.width+=q+n;else{var j={words:[L],width:q};C.push(j)}return C},[])},p=h(r),y=function($){return $.reduce(function(C,I){return C.width>I.width?C:I})};if(!c)return p;for(var m="…",d=function($){var C=f.slice(0,$),I=PC({breakAll:l,style:u,children:C+m}).wordsWithComputedWidth,L=h(I),q=L.length>o||y(L).width>Number(i);return[q,L]},v=0,_=f.length-1,b=0,x;v<=_&&b<=f.length-1;){var g=Math.floor((v+_)/2),w=g-1,S=d(w),O=AS(S,2),T=O[0],M=O[1],P=d(g),E=AS(P,1),k=E[0];if(!T&&!k&&(v=g+1),T&&k&&(_=g-1),!T&&k){x=M;break}b++}return x||p},TS=function(t){var r=gt(t)?[]:t.toString().split(TC);return[{words:r}]},nU=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!_i.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 TS(i);return rU({breakAll:o,children:i,maxLines:s,style:a},u,l,r,n)}return TS(i)},PS="#808080",Wl=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,u=t.capHeight,l=u===void 0?"0.71em":u,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,v=d===void 0?PS:d,_=SS(t,X3),b=A.useMemo(function(){return nU({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,O=_.breakAll,T=SS(_,V3);if(!be(n)||!be(a))return null;var M=n+(nt(x)?x:0),P=a+(nt(g)?g:0),E;switch(m){case"start":E=mm("calc(".concat(l,")"));break;case"middle":E=mm("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:E=mm("calc(".concat(b.length-1," * -").concat(s,")"));break}var k=[];if(f){var R=b[0].width,$=_.width;k.push("scale(".concat((nt($)?$/R:1)/R,")"))}return w&&k.push("rotate(".concat(w,", ").concat(M,", ").concat(P,")")),k.length&&(T.transform=k.join(" ")),A.createElement("text",ng({},vt(T,!0),{x:M,y:P,className:Ot("recharts-text",S),textAnchor:p,fill:v.includes("url")?PS:v}),b.map(function(C,I){var L=C.words.join(O?"":" ");return A.createElement("tspan",{x:M,dy:I===0?E:s,key:"".concat(L,"-").concat(I)},L)}))};const ES=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ks,scaleDiverging:WT,scaleDivergingLog:GT,scaleDivergingPow:Tv,scaleDivergingSqrt:QD,scaleDivergingSymlog:HT,scaleIdentity:AT,scaleImplicit:py,scaleLinear:ta,scaleLog:TT,scaleOrdinal:lv,scalePoint:ls,scalePow:yv,scaleQuantile:CT,scaleQuantize:MT,scaleRadial:ET,scaleSequential:qT,scaleSequentialLog:FT,scaleSequentialPow:Ov,scaleSequentialQuantile:UT,scaleSequentialSqrt:JD,scaleSequentialSymlog:zT,scaleSqrt:RR,scaleSymlog:PT,scaleThreshold:kT,scaleTime:wl,scaleUtc:ZD,tickFormat:ST},Symbol.toStringTag,{value:"Module"}));var ym,CS;function EC(){if(CS)return ym;CS=1;var e=Po();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 ym=t,ym}var gm,MS;function iU(){if(MS)return gm;MS=1;function e(t,r){return t>r}return gm=e,gm}var vm,kS;function aU(){if(kS)return vm;kS=1;var e=EC(),t=iU(),r=Eo();function n(i){return i&&i.length?e(i,r,t):void 0}return vm=n,vm}var oU=aU();const si=qt(oU);var bm,$S;function sU(){if($S)return bm;$S=1;function e(t,r){return t<r}return bm=e,bm}var _m,jS;function uU(){if(jS)return _m;jS=1;var e=EC(),t=sU(),r=Eo();function n(i){return i&&i.length?e(i,r,t):void 0}return _m=n,_m}var lU=uU();const Hc=qt(lU);var xm,RS;function cU(){if(RS)return xm;RS=1;var e=m0();function t(r,n){return e(r,n)}return xm=t,xm}var fU=cU();const aa=qt(fU);var ko=1e9,hU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},S0,ee=!0,zr="[DecimalError] ",Vi=zr+"Invalid argument: ",w0=zr+"Exponent out of range: ",$o=Math.floor,Di=Math.pow,pU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xr,Te=1e7,Vt=7,CC=9007199254740991,Gl=$o(CC/Vt),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)*Vt;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 qn(this,new this.constructor(e))};lt.dividedToIntegerBy=lt.idiv=function(e){var t=this,r=t.constructor;return Ht(qn(t,new r(e),0,1),r.precision)};lt.equals=lt.eq=function(e){return!this.cmp(e)};lt.exponent=function(){return de(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(xr))throw Error(zr+"NaN");if(r.s<1)throw Error(zr+(r.s?"NaN":"-Infinity"));return r.eq(xr)?new n(0):(ee=!1,t=qn(Vs(r,a),Vs(e,a),a),ee=!0,Ht(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(zr+"NaN");return r.s?(ee=!1,t=qn(r,e,0,1).times(e),ee=!0,r.minus(t)):Ht(new n(r),i)};lt.naturalExponential=lt.exp=function(){return kC(this)};lt.naturalLogarithm=lt.ln=function(){return Vs(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(Vi+e);if(t=de(i)+1,n=i.d.length-1,r=n*Vt+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(zr+"NaN")}for(e=de(s),ee=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=gn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=$o((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(qn(s,a,o+2)).times(.5),gn(a.d).slice(0,o)===(t=gn(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ht(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ee=!0,Ht(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%Te|0,t=s/Te|0;a[i]=(a[i]+t)%Te|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ee?Ht(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:(Sn(e,0,ko),t===void 0?t=n.rounding:Sn(t,0,8),Ht(r,e+de(r)+1,t))};lt.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=oa(n,!0):(Sn(e,0,ko),t===void 0?t=i.rounding:Sn(t,0,8),n=Ht(new i(n),e+1,t),r=oa(n,!0,e+1)),r};lt.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?oa(i):(Sn(e,0,ko),t===void 0?t=a.rounding:Sn(t,0,8),n=Ht(new a(i),e+de(i)+1,t),r=oa(n.abs(),!1,e+de(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};lt.toInteger=lt.toint=function(){var e=this,t=e.constructor;return Ht(new t(e),de(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(xr);if(s=new u(s),!s.s){if(e.s<1)throw Error(zr+"Infinity");return s}if(s.eq(xr))return s;if(n=u.precision,e.eq(xr))return Ht(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(xr),t=Math.ceil(n/Vt+4),ee=!1;r%2&&(i=i.times(s),IS(i.d,t)),r=$o(r/2),r!==0;)s=s.times(s),IS(s.d,t);return ee=!0,e.s<0?new u(xr).div(i):Ht(i,n)}}else if(a<0)throw Error(zr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ee=!1,i=e.times(Vs(s,n+l)),ee=!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=de(i),n=oa(i,r<=a.toExpNeg||r>=a.toExpPos)):(Sn(e,1,ko),t===void 0?t=a.rounding:Sn(t,0,8),i=Ht(new a(i),e,t),r=de(i),n=oa(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):(Sn(e,1,ko),t===void 0?t=n.rounding:Sn(t,0,8)),Ht(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=de(e),r=e.constructor;return oa(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)),ee?Ht(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/Vt),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)/Te|0,u[a]%=Te;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,ee?Ht(t,f):t}function Sn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Vi+e)}function gn(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=Vt-n.length,r&&(a+=ri(r)),a+=n;o=e[t],n=o+"",r=Vt-n.length,r&&(a+=ri(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var qn=(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%Te|0,o=a/Te|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*Te+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,u,l,c,f,h,p,y,m,d,v,_,b,x,g,w,S,O,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(zr+"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+(de(n)-de(i))+1:_=a,_<0)return new T(0);if(_=_/Vt+2|0,l=0,S==1)for(c=0,E=E[0],_++;(l<g||c)&&_--;l++)b=c*Te+(P[l]||0),y[l]=b/E|0,c=b%E|0;else{for(c=Te/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),x=S,m=P.slice(0,S),d=m.length;d<S;)m[d++]=0;O=E.slice(),O.unshift(0),w=E[0],E[1]>=Te/2&&++w;do c=0,s=t(E,m,S,d),s<0?(v=m[0],S!=d&&(v=v*Te+(m[1]||0)),c=v/w|0,c>1?(c>=Te&&(c=Te-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?O:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?O:E,d))),d=m.length):s===0&&(c++,m=[0]),y[l++]=c,s&&m[0]?m[d++]=P[x]||0:(m=[P[x]],d=1);while((x++<g||m[0]!==void 0)&&_--)}return y[0]||y.shift(),p.e=u,Ht(p,o?a+de(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(de(e)>16)throw Error(w0+de(e));if(!e.s)return new c(xr);for(ee=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(Di(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new c(xr),c.precision=s;;){if(i=Ht(i.times(e),s),r=r.times(++u),o=a.plus(qn(i,r,s)),gn(o.d).slice(0,s)===gn(a.d).slice(0,s)){for(;l--;)a=Ht(a.times(a),s);return c.precision=f,t==null?(ee=!0,Ht(a,f)):a}a=o}}function de(e){for(var t=e.e*Vt,r=e.d[0];r>=10;r/=10)t++;return t}function wm(e,t,r){if(t>e.LN10.sd())throw ee=!0,r&&(e.precision=r),Error(zr+"LN10 precision limit exceeded");return Ht(new e(e.LN10),t)}function ri(e){for(var t="";e--;)t+="0";return t}function Vs(e,t){var r,n,i,a,o,s,u,l,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(zr+(p.s?"NaN":"-Infinity"));if(p.eq(xr))return new m(0);if(t==null?(ee=!1,l=d):l=t,p.eq(10))return t==null&&(ee=!0),wm(m,l);if(l+=h,m.precision=l,r=gn(y),n=r.charAt(0),a=de(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=gn(p.d),n=r.charAt(0),f++;a=de(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return u=wm(m,l+2,d).times(a+""),p=Vs(new m(n+"."+r.slice(1)),l-h).plus(u),m.precision=d,t==null?(ee=!0,Ht(p,d)):p;for(s=o=p=qn(p.minus(xr),p.plus(xr),l),c=Ht(p.times(p),l),i=3;;){if(o=Ht(o.times(c),l),u=s.plus(qn(o,new m(i),l)),gn(u.d).slice(0,l)===gn(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(wm(m,l+2,d).times(a+""))),s=qn(s,new m(f),l),m.precision=d,t==null?(ee=!0,Ht(s,d)):s;s=u,i+=2}}function DS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=$o(r/Vt),e.d=[],n=(r+1)%Vt,r<0&&(n+=Vt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Vt;n<i;)e.d.push(+t.slice(n,n+=Vt));t=t.slice(n),n=Vt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ee&&(e.e>Gl||e.e<-Gl))throw Error(w0+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ht(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+=Vt,i=t,l=f[c=0];else{if(c=Math.ceil((n+1)/Vt),a=f.length,c>=a)return e;for(l=a=f[c],o=1;a>=10;a/=10)o++;n%=Vt,i=n-Vt+o}if(r!==void 0&&(a=Di(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/Di(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=de(e),f.length=1,t=t-a-1,f[0]=Di(10,(Vt-t%Vt)%Vt),e.e=$o(-t/Vt)||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=Di(10,Vt-n),f[c]=i>0?(l/Di(10,o-i)%Di(10,i)|0)*a:0),u)for(;;)if(c==0){(f[0]+=a)==Te&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Te)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ee&&(e.e>Gl||e.e<-Gl))throw Error(w0+de(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),ee?Ht(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/Vt),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]=Te-1;--u[a],u[i]+=Te}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,ee?Ht(t,p):t):new h(0)}function oa(e,t,r){var n,i=de(e),a=gn(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+ri(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ri(-i-1)+a,r&&(n=r-o)>0&&(a+=ri(n))):i>=o?(a+=ri(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+ri(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=ri(n))),e.s<0?"-"+a:a}function IS(e,t){if(e.length>t)return e.length=t,!0}function jC(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Vi+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return DS(o,a.toString())}else if(typeof a!="string")throw Error(Vi+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,pU.test(a))DS(o,a);else throw Error(Vi+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=dU,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 dU(e){if(!e||typeof e!="object")throw Error(zr+"Object expected");var t,r,n,i=["precision",1,ko,"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($o(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Vi+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Vi+r+": "+n);return this}var S0=jC(hU);xr=new S0(1);const Ut=S0;function mU(e){return bU(e)||vU(e)||gU(e)||yU()}function yU(){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 gU(e,t){if(e){if(typeof e=="string")return ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ig(e,t)}}function vU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bU(e){if(Array.isArray(e))return ig(e)}function ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _U=function(t){return t},RC={},DC=function(t){return t===RC},NS=function(t){return function r(){return arguments.length===0||arguments.length===1&&DC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},xU=function e(t,r){return t===1?r:NS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==RC}).length;return o>=t?r.apply(void 0,i):e(t-o,NS(function(){for(var s=arguments.length,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,mU(c).concat(u))}))})},Kc=function(t){return xU(t.length,t)},ag=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},wU=Kc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),SU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return _U;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))}},og=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},IC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,u){return s===r[u]})||(r=a,n=t.apply(void 0,a)),n}};function AU(e){var t;return e===0?t=1:t=Math.floor(new Ut(e).abs().log(10).toNumber())+1,t}function OU(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 TU=Kc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),PU=Kc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),EU=Kc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Yc={rangeStep:OU,getDigitCount:AU,interpolateNumber:TU,uninterpolateNumber:PU,uninterpolateTruncation:EU};function sg(e){return kU(e)||MU(e)||NC(e)||CU()}function CU(){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 MU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function kU(e){if(Array.isArray(e))return ug(e)}function Zs(e,t){return RU(e)||jU(e,t)||NC(e,t)||$U()}function $U(){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 ug(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 ug(e,t)}}function ug(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 jU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function RU(e){if(Array.isArray(e))return e}function LC(e){var t=Zs(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=Yc.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 DU(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(Yc.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=SU(wU(function(u){return i.add(new Ut(u-o).mul(n)).toNumber()}),ag);return s(0,t)}function qC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new 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 IU(e){var t=Zs(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=Zs(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(sg(ag(0,i-1).map(function(){return 1/0}))):[].concat(sg(ag(0,i-1).map(function(){return-1/0})),[c]);return r>n?og(f):f}if(l===c)return DU(l,i,a);var h=qC(l,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=Yc.rangeStep(y,m.add(new Ut(.1).mul(p)),p);return r>n?og(d):d}function NU(e,t){var r=Zs(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=LC([n,i]),s=Zs(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(sg(Yc.rangeStep(new Ut(u),new Ut(l).sub(new Ut(.99).mul(f)),f)),[l]);return n>i?og(h):h}var LU=IC(IU),BU=IC(NU),qU=process.env.NODE_ENV==="production",Sm="Invariant failed";function er(e,t){if(qU)throw new Error(Sm);var r=typeof t=="function"?t():t,n=r?"".concat(Sm,": ").concat(r):Sm;throw new Error(n)}var FU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Hl(){return Hl=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},Hl.apply(this,arguments)}function zU(e,t){return HU(e)||GU(e,t)||WU(e,t)||UU()}function UU(){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 WU(e,t){if(e){if(typeof e=="string")return LS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LS(e,t)}}function LS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],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 HU(e){if(Array.isArray(e))return e}function KU(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 XU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VU(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 ZU(e,t,r){return t&&VU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JU(e,t,r){return t=Kl(t),QU(e,FC()?Reflect.construct(t,r||[],Kl(e).constructor):t.apply(e,r))}function QU(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 tW(e)}function tW(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 Kl(e){return Kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kl(e)}function eW(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 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=rW(e,"string");return ao(t)=="symbol"?t:t+""}function rW(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 jo=(function(e){function t(){return XU(this,t),JU(this,t,arguments)}return eW(t,e),ZU(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=KU(n,FU),p=vt(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?er(!1,'ErrorBar requires Axis type property to be "number".'):er());var y=u.map(function(m){var d=l(m,s),v=d.x,_=d.y,b=d.value,x=d.errorVal;if(!x)return null;var g=[],w,S;if(Array.isArray(x)){var O=zU(x,2);w=O[0],S=O[1]}else w=S=x;if(a==="vertical"){var T=c.scale,M=_+i,P=M+o,E=M-o,k=T(b-w),R=T(b+S);g.push({x1:R,y1:P,x2:R,y2:E}),g.push({x1:k,y1:M,x2:R,y2:M}),g.push({x1:k,y1:P,x2:k,y2:E})}else if(a==="horizontal"){var $=f.scale,C=v+i,I=C-o,L=C+o,q=$(b-w),D=$(b+S);g.push({x1:I,y1:D,x2:L,y2:D}),g.push({x1:C,y1:q,x2:C,y2:D}),g.push({x1:I,y1:q,x2:L,y2:q})}return A.createElement(Rt,Hl({className:"recharts-errorBar",key:"bar-".concat(g.map(function(j){return"".concat(j.x1,"-").concat(j.x2,"-").concat(j.y1,"-").concat(j.y2)}))},p),g.map(function(j){return A.createElement("line",Hl({},j,{key:"line-".concat(j.x1,"-").concat(j.x2,"-").concat(j.y1,"-").concat(j.y2)}))}))});return A.createElement(Rt,{className:"recharts-errorBars"},y)}}])})(A.Component);zC(jo,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});zC(jo,"displayName","ErrorBar");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 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 $i(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){nW(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 nW(e,t,r){return t=iW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iW(e){var t=aW(e,"string");return Js(t)=="symbol"?t:t+""}function aW(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 WC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=vr(r,Xi);if(!o)return null;var s=Xi.defaultProps,u=s!==void 0?$i($i({},s),o.props):{},l;return o.props&&o.props.payload?l=o.props&&o.props.payload:a==="children"?l=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):l=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?$i($i({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,v=p.hide;return{inactive:v,dataKey:y,type:u.iconType||d||"square",color:A0(f),value:m||y,payload:p}}),$i($i($i({},u),Xi.getWithHeight(o,i)),{},{payload:l,item:o})};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 qS(e){return lW(e)||uW(e)||sW(e)||oW()}function oW(){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 sW(e,t){if(e){if(typeof e=="string")return cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cg(e,t)}}function uW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lW(e){if(Array.isArray(e))return cg(e)}function cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){za(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function za(e,t,r){return t=cW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cW(e){var t=fW(e,"string");return Qs(t)=="symbol"?t:t+""}function fW(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _e(e,t,r){return gt(e)||gt(t)?r:be(t)?Fr(e,t,r):bt(t)?t(e):r}function _s(e,t,r,n){var i=rC(e,function(s){return _e(s,t)});if(r==="number"){var a=i.filter(function(s){return nt(s)||parseFloat(s)});return a.length?[Hc(a),si(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!gt(s)}):i;return o.map(function(s){return be(s)||s instanceof Date?s:""})}var hW=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(en(f-c)!==en(h-f)){var y=[];if(en(h-f)===en(u[1]-u[0])){p=h;var m=f+u[1]-u[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+u[1]-u[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var 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},A0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,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},pW=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),u=0,l=s.length;u<l;u++)for(var c=a[s[u]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,v=m.filter(function(S){return Ln(S.type).indexOf("Bar")>=0});if(v&&v.length){var _=v[0].type.defaultProps,b=_!==void 0?ie(ie({},_),v[0].props):v[0].props,x=b.barSize,g=b[d];o[g]||(o[g]=[]);var w=gt(x)?r:x;o[g].push({item:v[0],stackList:v.slice(1),barSize:gt(w)?void 0:ia(w,n,0)})}}return o},dW=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=ia(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 m=(i-y)/2>>0,d={offset:m-l,size:0};c=o.reduce(function(x,g){var w={item:g.item,position:{offset:d.offset+d.size+l,size:h?p:g.barSize}},S=[].concat(qS(x),[w]);return d=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(O){S.push({item:O,position:d})}),S},f)}else{var v=ia(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(qS(x),[{item:g.item,position:{offset:v+(_+l)*w+(_-b)/2,size:b}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(O){S.push({item:O,position:S[S.length-1].position})}),S},f)}return c},mW=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,m=l.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&nt(t[p]))return ie(ie({},t),{},za({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&nt(t[y]))return ie(ie({},t),{},za({},y,t[y]+(h||0)))}return t},yW=function(t,r,n){return gt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},GC=function(t,r,n,i,a){var o=r.props.children,s=sr(o,jo).filter(function(l){return yW(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=_e(c,n);if(gt(f))return l;var h=Array.isArray(f)?[Hc(f),si(f)]:[f,f],p=u.reduce(function(y,m){var d=_e(c,m,0),v=h[0]-Math.abs(Array.isArray(d)?d[0]:d),_=h[1]+Math.abs(Array.isArray(d)?d[1]:d);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},gW=function(t,r,n,i,a){var o=r.map(function(s){return GC(t,s,n,a,i)}).filter(function(s){return!gt(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},HC=function(t,r,n,i,a){var o=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&GC(t,u,l,i)||_s(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"},YC=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},Nn=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?en(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!Mo(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}})},Am=new WeakMap,Yu=function(t,r){if(typeof r!="function")return t;Am.has(t)||Am.set(t,new WeakMap);var n=Am.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},vW=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:ks(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:ta(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ls(),realScaleType:"point"}:a==="category"?{scale:ks(),realScaleType:"band"}:{scale:ta(),realScaleType:"linear"};if(na(i)){var u="scale".concat(Uc(i));return{scale:(ES[u]||ls)(),realScaleType:ES[u]?u:"point"}}return bt(i)?{scale:i}:{scale:ls(),realScaleType:"point"}},zS=1e-4,bW=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-zS,o=Math.max(i[0],i[1])+zS,s=t(r[0]),u=t(r[n-1]);(s<a||s>o||u<a||u>o)&&t.domain([r[0],r[n-1]])}},_W=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},xW=function(t,r){if(!r||r.length!==2||!nt(r[0])||!nt(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!nt(t[0])||t[0]<n)&&(a[0]=n),(!nt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},wW=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=Mo(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])}},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;o<r;++o){var s=Mo(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)}},AW={sign:wW,expand:kI,none:Ya,silhouette:$I,wiggle:jI,positive:SW},OW=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=AW[n],o=El().keys(i).value(function(s,u){return+_e(s,u,0)}).order(vy).offset(a);return o(t)},TW=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?ie(ie({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var v=y[n],_=f[v]||{hasStack:!1,stackGroups:{}};if(be(m)){var b=_.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),_.hasStack=!0,_.stackGroups[m]=b}else _.stackGroups[da("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ie(ie({},f),{},za({},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(m,d){var v=p.stackGroups[d];return ie(ie({},m),{},za({},d,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:OW(t,v.items,a)}))},y)}return ie(ie({},f),{},za({},h,p))},c)},PW=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=LU(l,a,s);return t.domain([Hc(c),si(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=BU(f,a,s);return{niceTicks:h}}return null};function oo(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!gt(i[t.dataKey])){var s=Nl(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=_e(i,gt(o)?t.dataKey:o);return gt(u)?null:t.scale(u)}var US=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=_e(o,r.dataKey,r.domain[s]);return gt(u)?null:r.scale(u)-a/2+i},EW=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]},CW=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(be(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},MW=function(t){return t.reduce(function(r,n){return[Hc(n.concat([r[0]]).filter(nt)),si(n.concat([r[1]]).filter(nt))]},[1/0,-1/0])},XC=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=MW(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})},WS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,GS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fg=function(t,r,n){if(bt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(nt(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(WS.test(t[0])){var a=+WS.exec(t[0])[1];i[0]=r[0]-a}else bt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(nt(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 bt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Yl=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=zc(r,function(f){return f.coordinate}),o=1/0,s=1,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},HS=function(t,r,n){return!t||!t.length||aa(t,Fr(n,"type.defaultProps.domain"))?r:t},VC=function(t,r){var n=t.type.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,u=n.tooltipType,l=n.chartType,c=n.hide;return ie(ie({},vt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:A0(t),value:_e(r,i),type:u,payload:r,chartType:l,hide:c})};function tu(e){"@babel/helpers - typeof";return tu=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},tu(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){kW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kW(e,t,r){return t=$W(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $W(e){var t=jW(e,"string");return tu(t)=="symbol"?t:t+""}function jW(e,t){if(tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xl=Math.PI/180,RW=function(t){return t*180/Math.PI},$e=function(t,r,n,i){return{x:t+Math.cos(-Xl*i)*n,y:r+Math.sin(-Xl*i)*n}},DW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},IW=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=DW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var u=(n-a)/s,l=Math.acos(u);return i>o&&(l=2*Math.PI-l),{radius:s,angle:RW(l),angleInRadian:l}},NW=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}},LW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},XS=function(t,r){var n=t.x,i=t.y,a=IW({x:n,y:i},r),o=a.radius,s=a.angle,u=r.innerRadius,l=r.outerRadius;if(o<u||o>l)return!1;if(o===0)return!0;var c=NW(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:LW(p,r)}):null};function eu(e){"@babel/helpers - typeof";return eu=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},eu(e)}var BW=["offset"];function qW(e){return WW(e)||UW(e)||zW(e)||FW()}function FW(){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 zW(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 UW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WW(e){if(Array.isArray(e))return hg(e)}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GW(e,t){if(e==null)return{};var r=HW(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 HW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(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){KW(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 KW(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=XW(e,"string");return eu(t)=="symbol"?t:t+""}function XW(e,t){if(eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ru(){return ru=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},ru.apply(this,arguments)}var VW=function(t){var r=t.value,n=t.formatter,i=gt(t.children)?r:t.children;return bt(n)?n(i):i},ZW=function(t,r){var n=en(r-t),i=Math.min(Math.abs(r-t),360);return n*i},JW=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,u=a,l=u.cx,c=u.cy,f=u.innerRadius,h=u.outerRadius,p=u.startAngle,y=u.endAngle,m=u.clockWise,d=(f+h)/2,v=ZW(p,y),_=v>=0?1:-1,b,x;i==="insideStart"?(b=p+_*o,x=m):i==="insideEnd"?(b=y-_*o,x=!m):i==="end"&&(b=y+_*o,x=m),x=v<=0?x:!x;var g=$e(l,c,d,b),w=$e(l,c,d,b+(x?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
99
+ A`).concat(d,",").concat(d,",0,1,").concat(x?0:1,`,
100
+ `).concat(w.x,",").concat(w.y),O=gt(t.id)?da("recharts-radial-line-"):t.id;return A.createElement("text",ru({},n,{dominantBaseline:"central",className:Ot("recharts-radial-bar-label",s)}),A.createElement("defs",null,A.createElement("path",{id:O,d:S})),A.createElement("textPath",{xlinkHref:"#".concat(O)},r))},QW=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=$e(o,s,l+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(u+l)/2,v=$e(o,s,d,h),_=v.x,b=v.y;return{x:_,y:b,textAnchor:"middle",verticalAnchor:"middle"}},t8=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,u=o.y,l=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=l>=0?1:-1,d=m*i,v=m>0?"end":"start",_=m>0?"start":"end";if(a==="top"){var b={x:s+l/2,y:u-f*i,textAnchor:"middle",verticalAnchor:p};return ve(ve({},b),n?{height:Math.max(u-n.y,0),width:l}:{})}if(a==="bottom"){var x={x:s+l/2,y:u+c+h,textAnchor:"middle",verticalAnchor:y};return ve(ve({},x),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{})}if(a==="left"){var g={x:s-d,y:u+c/2,textAnchor:v,verticalAnchor:"middle"};return ve(ve({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+l+d,y:u+c/2,textAnchor:_,verticalAnchor:"middle"};return ve(ve({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:l,height:c}:{};return a==="insideLeft"?ve({x:s+d,y:u+c/2,textAnchor:_,verticalAnchor:"middle"},S):a==="insideRight"?ve({x:s+l-d,y:u+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideTop"?ve({x:s+l/2,y:u+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?ve({x:s+l/2,y:u+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?ve({x:s+d,y:u+h,textAnchor:_,verticalAnchor:y},S):a==="insideTopRight"?ve({x:s+l-d,y:u+h,textAnchor:v,verticalAnchor:y},S):a==="insideBottomLeft"?ve({x:s+d,y:u+c-h,textAnchor:_,verticalAnchor:p},S):a==="insideBottomRight"?ve({x:s+l-d,y:u+c-h,textAnchor:v,verticalAnchor:p},S):Co(a)&&(nt(a.x)||Fi(a.x))&&(nt(a.y)||Fi(a.y))?ve({x:s+ia(a.x,l),y:u+ia(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):ve({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},e8=function(t){return"cx"in t&&nt(t.cx)};function qe(e){var t=e.offset,r=t===void 0?5:t,n=GW(e,BW),i=ve({offset:r},n),a=i.viewBox,o=i.position,s=i.value,u=i.children,l=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||gt(s)&&gt(u)&&!A.isValidElement(l)&&!bt(l))return null;if(A.isValidElement(l))return A.cloneElement(l,i);var p;if(bt(l)){if(p=A.createElement(l,i),A.isValidElement(p))return p}else p=VW(i);var y=e8(a),m=vt(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return JW(i,p,m);var d=y?QW(i):t8(i);return A.createElement(Wl,ru({className:Ot("recharts-label",f)},m,d,{breakAll:h}),p)}qe.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,m=t.width,d=t.height,v=t.clockWise,_=t.labelViewBox;if(_)return _;if(nt(m)&&nt(d)){if(nt(f)&&nt(h))return{x:f,y:h,width:m,height:d};if(nt(p)&&nt(y))return{x:p,y,width:m,height:d}}return nt(f)&&nt(h)?{x:f,y:h,width:0,height:0}:nt(r)&&nt(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:c||u||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},r8=function(t,r){return t?t===!0?A.createElement(qe,{key:"label-implicit",viewBox:r}):be(t)?A.createElement(qe,{key:"label-implicit",viewBox:r,value:t}):A.isValidElement(t)?t.type===qe?A.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(qe,{key:"label-implicit",content:t,viewBox:r}):bt(t)?A.createElement(qe,{key:"label-implicit",content:t,viewBox:r}):Co(t)?A.createElement(qe,ru({viewBox:r},t,{key:"label-implicit"})):null:null},n8=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=sr(i,qe).map(function(u,l){return A.cloneElement(u,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=r8(t.label,r||a);return[s].concat(qW(o))};qe.parseViewBox=ZC;qe.renderCallByParent=n8;var Om,ZS;function i8(){if(ZS)return Om;ZS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Om=e,Om}var a8=i8();const o8=qt(a8);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)}var s8=["valueAccessor"],u8=["data","dataKey","clockWise","id","textBreakAll"];function l8(e){return p8(e)||h8(e)||f8(e)||c8()}function c8(){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 f8(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pg(e,t)}}function h8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p8(e){if(Array.isArray(e))return pg(e)}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vl.apply(this,arguments)}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(r),!0).forEach(function(n){d8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d8(e,t,r){return t=m8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m8(e){var t=y8(e,"string");return nu(t)=="symbol"?t:t+""}function y8(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 tA(e,t){if(e==null)return{};var r=g8(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 g8(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 v8=function(t){return Array.isArray(t.value)?o8(t.value):t.value};function _n(e){var t=e.valueAccessor,r=t===void 0?v8:t,n=tA(e,s8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,l=tA(n,u8);return!i||!i.length?null:A.createElement(Rt,{className:"recharts-label-list"},i.map(function(c,f){var h=gt(a)?r(c,f):_e(c&&c.payload,a),p=gt(s)?{}:{id:"".concat(s,"-").concat(f)};return A.createElement(qe,Vl({},vt(c,!0),l,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:u,viewBox:qe.parseViewBox(gt(o)?c:QS(QS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}_n.displayName="LabelList";function b8(e,t){return e?e===!0?A.createElement(_n,{key:"labelList-implicit",data:t}):A.isValidElement(e)||bt(e)?A.createElement(_n,{key:"labelList-implicit",data:t,content:e}):Co(e)?A.createElement(_n,Vl({data:t},e,{key:"labelList-implicit"})):null:null}function _8(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=sr(n,_n).map(function(o,s){return A.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=b8(e.label,t);return[a].concat(l8(i))}_n.renderCallByParent=_8;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 dg(){return dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dg.apply(this,arguments)}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(n){x8(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 x8(e,t,r){return t=w8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w8(e){var t=S8(e,"string");return iu(t)=="symbol"?t:t+""}function S8(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 A8=function(t,r){var n=en(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Xu=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)/Xl,h=l?a:a+o*f,p=$e(r,n,c,h),y=$e(r,n,i,h),m=l?a-o*f:a,d=$e(r,n,c*Math.cos(f*Xl),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},JC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,u=A8(o,s),l=o+u,c=$e(r,n,a,o),f=$e(r,n,a,l),h="M ".concat(c.x,",").concat(c.y,`
96
102
  A `).concat(a,",").concat(a,`,0,
97
103
  `).concat(+(Math.abs(u)>180),",").concat(+(o>l),`,
98
104
  `).concat(f.x,",").concat(f.y,`
99
- `);if(i>0){var d=xt(r,n,i,o),y=xt(r,n,i,l);h+="L ".concat(y.x,",").concat(y.y,`
105
+ `);if(i>0){var p=$e(r,n,i,o),y=$e(r,n,i,l);h+="L ".concat(y.x,",").concat(y.y,`
100
106
  A `).concat(i,",").concat(i,`,0,
101
107
  `).concat(+(Math.abs(u)>180),",").concat(+(o<=l),`,
102
- `).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},kW=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.cornerRadius,s=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,f=Pr(c-l),h=tu({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),d=h.circleTangency,y=h.lineTangency,m=h.theta,p=tu({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),g=p.circleTangency,_=p.lineTangency,b=p.theta,x=u?Math.abs(l-c):Math.abs(l-c)-m-b;if(x<0)return s?"M ".concat(y.x,",").concat(y.y,`
108
+ `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},O8=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=en(c-l),h=Xu({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=Xu({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),v=d.circleTangency,_=d.lineTangency,b=d.theta,x=u?Math.abs(l-c):Math.abs(l-c)-m-b;if(x<0)return s?"M ".concat(y.x,",").concat(y.y,`
103
109
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
104
110
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
105
- `):eC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c});var v="M ".concat(y.x,",").concat(y.y,`
106
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(d.x,",").concat(d.y,`
107
- A`).concat(a,",").concat(a,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
111
+ `):JC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c});var g="M ".concat(y.x,",").concat(y.y,`
112
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
113
+ A`).concat(a,",").concat(a,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
108
114
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,`
109
- `);if(i>0){var w=tu({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),S=w.circleTangency,A=w.lineTangency,P=w.theta,M=tu({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),T=M.circleTangency,E=M.lineTangency,C=M.theta,I=u?Math.abs(l-c):Math.abs(l-c)-P-C;if(I<0&&o===0)return"".concat(v,"L").concat(r,",").concat(n,"Z");v+="L".concat(E.x,",").concat(E.y,`
110
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,`
111
- A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
112
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else v+="L".concat(r,",").concat(n,"Z");return v},jW={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},tC=function(e){var r=iS(iS({},jW),e),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 d=_e("recharts-sector",h),y=o-a,m=pi(s,y,0,!0),p;return m>0&&Math.abs(c-f)<360?p=kW({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:c,endAngle:f}):p=eC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",my({},me(r,!0),{className:d,d:p,role:"img"}))};function cs(t){"@babel/helpers - typeof";return cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(t)}function yy(){return yy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yy.apply(this,arguments)}function aS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function oS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?aS(Object(r),!0).forEach(function(n){IW(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function IW(t,e,r){return e=RW(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RW(t){var e=$W(t,"string");return cs(e)=="symbol"?e:e+""}function $W(t,e){if(cs(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(cs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sS={curveBasisClosed:KR,curveBasisOpen:XR,curveBasis:GR,curveBumpX:jR,curveBumpY:IR,curveLinearClosed:VR,curveLinear:Il,curveMonotoneX:nP,curveMonotoneY:ZR,curveNatural:JR,curveStep:QR,curveStepAfter:t$,curveStepBefore:e$},ru=function(e){return e.x===+e.x&&e.y===+e.y},to=function(e){return e.x},ro=function(e){return e.y},DW=function(e,r){if(ye(e))return e;var n="curve".concat(Kl(e));return(n==="curveMonotone"||n==="curveBump")&&r?sS["".concat(n).concat(r==="vertical"?"Y":"X")]:sS[n]||Il},NW=function(e){var r=e.type,n=r===void 0?"linear":r,i=e.points,a=i===void 0?[]:i,o=e.baseLine,s=e.layout,u=e.connectNulls,l=u===void 0?!1:u,c=DW(n,s),f=l?a.filter(function(m){return ru(m)}):a,h;if(Array.isArray(o)){var d=l?o.filter(function(m){return ru(m)}):o,y=f.map(function(m,p){return oS(oS({},m),{},{base:d[p]})});return s==="vertical"?h=Zn().y(ro).x1(to).x0(function(m){return m.base.x}):h=Zn().x(to).y1(ro).y0(function(m){return m.base.y}),h.defined(ru).curve(c),h(y)}return s==="vertical"&&J(o)?h=Zn().y(ro).x1(to).x0(o):J(o)?h=Zn().x(to).y1(ro).y0(o):h=Pv().x(to).y(ro),h.defined(ru).curve(c),h(f)},li=function(e){var r=e.className,n=e.points,i=e.path,a=e.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?NW(e):i;return yr.createElement("path",yy({},me(e,!1),zu(e),{className:_e("recharts-curve",r),d:o,ref:a}))},nu={exports:{}},iu={exports:{}},Me={};/** @license React v16.13.1
115
+ `);if(i>0){var w=Xu({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),S=w.circleTangency,O=w.lineTangency,T=w.theta,M=Xu({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),P=M.circleTangency,E=M.lineTangency,k=M.theta,R=u?Math.abs(l-c):Math.abs(l-c)-T-k;if(R<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
116
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
117
+ A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
118
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(O.x,",").concat(O.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},T8={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QC=function(t){var r=rA(rA({},T8),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=Ot("recharts-sector",h),y=o-a,m=ia(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=O8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:c,endAngle:f}):d=JC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),A.createElement("path",dg({},vt(r,!0),{className:p,d,role:"img"}))};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)}function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mg.apply(this,arguments)}function nA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(n){P8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P8(e,t,r){return t=E8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E8(e){var t=C8(e,"string");return au(t)=="symbol"?t:t+""}function C8(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)}var aA={curveBasisClosed:vI,curveBasisOpen:bI,curveBasis:gI,curveBumpX:nI,curveBumpY:iI,curveLinearClosed:wI,curveLinear:ea,curveMonotoneX:SI,curveMonotoneY:AI,curveNatural:OI,curveStep:TI,curveStepAfter:EI,curveStepBefore:PI},Vu=function(t){return t.x===+t.x&&t.y===+t.y},Vo=function(t){return t.x},Zo=function(t){return t.y},M8=function(t,r){if(bt(t))return t;var n="curve".concat(Uc(t));return(n==="curveMonotone"||n==="curveBump")&&r?aA["".concat(n).concat(r==="vertical"?"Y":"X")]:aA[n]||ea},k8=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=M8(n,s),f=l?a.filter(function(m){return Vu(m)}):a,h;if(Array.isArray(o)){var p=l?o.filter(function(m){return Vu(m)}):o,y=f.map(function(m,d){return iA(iA({},m),{},{base:p[d]})});return s==="vertical"?h=Li().y(Zo).x1(Vo).x0(function(m){return m.base.x}):h=Li().x(Vo).y1(Zo).y0(function(m){return m.base.y}),h.defined(Vu).curve(c),h(y)}return s==="vertical"&&nt(o)?h=Li().y(Zo).x1(Vo).x0(o):nt(o)?h=Li().x(Vo).y1(Zo).y0(o):h=Cv().x(Vo).y(Zo),h.defined(Vu).curve(c),h(f)},Zi=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?k8(t):i;return qr.createElement("path",mg({},vt(t,!1),Ll(t),{className:Ot("recharts-curve",r),d:o,ref:a}))},Zu={exports:{}},Ju={exports:{}},Nt={};/** @license React v16.13.1
113
119
  * react-is.production.min.js
114
120
  *
115
121
  * Copyright (c) Facebook, Inc. and its affiliates.
116
122
  *
117
123
  * This source code is licensed under the MIT license found in the
118
124
  * LICENSE file in the root directory of this source tree.
119
- */var uS;function LW(){if(uS)return Me;uS=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,p=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case u:case l:case n:case a:case i:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case c:case y:case d:case o:return v;default:return w}}case r:return w}}}function x(v){return b(v)===l}return Me.AsyncMode=u,Me.ConcurrentMode=l,Me.ContextConsumer=s,Me.ContextProvider=o,Me.Element=e,Me.ForwardRef=c,Me.Fragment=n,Me.Lazy=y,Me.Memo=d,Me.Portal=r,Me.Profiler=a,Me.StrictMode=i,Me.Suspense=f,Me.isAsyncMode=function(v){return x(v)||b(v)===u},Me.isConcurrentMode=x,Me.isContextConsumer=function(v){return b(v)===s},Me.isContextProvider=function(v){return b(v)===o},Me.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Me.isForwardRef=function(v){return b(v)===c},Me.isFragment=function(v){return b(v)===n},Me.isLazy=function(v){return b(v)===y},Me.isMemo=function(v){return b(v)===d},Me.isPortal=function(v){return b(v)===r},Me.isProfiler=function(v){return b(v)===a},Me.isStrictMode=function(v){return b(v)===i},Me.isSuspense=function(v){return b(v)===f},Me.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===l||v===a||v===i||v===f||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===d||v.$$typeof===o||v.$$typeof===s||v.$$typeof===c||v.$$typeof===p||v.$$typeof===g||v.$$typeof===_||v.$$typeof===m)},Me.typeOf=b,Me}var ke={};/** @license React v16.13.1
125
+ */var oA;function $8(){if(oA)return Nt;oA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,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 Nt.AsyncMode=u,Nt.ConcurrentMode=l,Nt.ContextConsumer=s,Nt.ContextProvider=o,Nt.Element=t,Nt.ForwardRef=c,Nt.Fragment=n,Nt.Lazy=y,Nt.Memo=p,Nt.Portal=r,Nt.Profiler=a,Nt.StrictMode=i,Nt.Suspense=f,Nt.isAsyncMode=function(g){return x(g)||b(g)===u},Nt.isConcurrentMode=x,Nt.isContextConsumer=function(g){return b(g)===s},Nt.isContextProvider=function(g){return b(g)===o},Nt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Nt.isForwardRef=function(g){return b(g)===c},Nt.isFragment=function(g){return b(g)===n},Nt.isLazy=function(g){return b(g)===y},Nt.isMemo=function(g){return b(g)===p},Nt.isPortal=function(g){return b(g)===r},Nt.isProfiler=function(g){return b(g)===a},Nt.isStrictMode=function(g){return b(g)===i},Nt.isSuspense=function(g){return b(g)===f},Nt.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===d||g.$$typeof===v||g.$$typeof===_||g.$$typeof===m)},Nt.typeOf=b,Nt}var Lt={};/** @license React v16.13.1
120
126
  * react-is.development.js
121
127
  *
122
128
  * Copyright (c) Facebook, Inc. and its affiliates.
123
129
  *
124
130
  * This source code is licensed under the MIT license found in the
125
131
  * LICENSE file in the root directory of this source tree.
126
- */var lS;function qW(){return lS||(lS=1,process.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,p=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function b(D){return typeof D=="string"||typeof D=="function"||D===n||D===l||D===a||D===i||D===f||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===d||D.$$typeof===o||D.$$typeof===s||D.$$typeof===c||D.$$typeof===p||D.$$typeof===g||D.$$typeof===_||D.$$typeof===m)}function x(D){if(typeof D=="object"&&D!==null){var se=D.$$typeof;switch(se){case e:var W=D.type;switch(W){case u:case l:case n:case a:case i:case f:return W;default:var ue=W&&W.$$typeof;switch(ue){case s:case c:case y:case d:case o:return ue;default:return se}}case r:return se}}}var v=u,w=l,S=s,A=o,P=e,M=c,T=n,E=y,C=d,I=r,k=a,j=i,$=f,N=!1;function B(D){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(D)||x(D)===u}function R(D){return x(D)===l}function L(D){return x(D)===s}function q(D){return x(D)===o}function U(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function X(D){return x(D)===c}function V(D){return x(D)===n}function te(D){return x(D)===y}function re(D){return x(D)===d}function H(D){return x(D)===r}function F(D){return x(D)===a}function K(D){return x(D)===i}function Q(D){return x(D)===f}ke.AsyncMode=v,ke.ConcurrentMode=w,ke.ContextConsumer=S,ke.ContextProvider=A,ke.Element=P,ke.ForwardRef=M,ke.Fragment=T,ke.Lazy=E,ke.Memo=C,ke.Portal=I,ke.Profiler=k,ke.StrictMode=j,ke.Suspense=$,ke.isAsyncMode=B,ke.isConcurrentMode=R,ke.isContextConsumer=L,ke.isContextProvider=q,ke.isElement=U,ke.isForwardRef=X,ke.isFragment=V,ke.isLazy=te,ke.isMemo=re,ke.isPortal=H,ke.isProfiler=F,ke.isStrictMode=K,ke.isSuspense=Q,ke.isValidElementType=b,ke.typeOf=x})()),ke}var cS;function rC(){return cS||(cS=1,process.env.NODE_ENV==="production"?iu.exports=LW():iu.exports=qW()),iu.exports}/*
132
+ */var sA;function j8(){return sA||(sA=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(N){return typeof N=="string"||typeof N=="function"||N===n||N===l||N===a||N===i||N===f||N===h||typeof N=="object"&&N!==null&&(N.$$typeof===y||N.$$typeof===p||N.$$typeof===o||N.$$typeof===s||N.$$typeof===c||N.$$typeof===d||N.$$typeof===v||N.$$typeof===_||N.$$typeof===m)}function x(N){if(typeof N=="object"&&N!==null){var ut=N.$$typeof;switch(ut){case t:var z=N.type;switch(z){case u:case l:case n:case a:case i:case f:return z;default:var st=z&&z.$$typeof;switch(st){case s:case c:case y:case p:case o:return st;default:return ut}}case r:return ut}}}var g=u,w=l,S=s,O=o,T=t,M=c,P=n,E=y,k=p,R=r,$=a,C=i,I=f,L=!1;function q(N){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(N)||x(N)===u}function D(N){return x(N)===l}function j(N){return x(N)===s}function B(N){return x(N)===o}function W(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function G(N){return x(N)===c}function X(N){return x(N)===n}function J(N){return x(N)===y}function et(N){return x(N)===p}function K(N){return x(N)===r}function F(N){return x(N)===a}function H(N){return x(N)===i}function Q(N){return x(N)===f}Lt.AsyncMode=g,Lt.ConcurrentMode=w,Lt.ContextConsumer=S,Lt.ContextProvider=O,Lt.Element=T,Lt.ForwardRef=M,Lt.Fragment=P,Lt.Lazy=E,Lt.Memo=k,Lt.Portal=R,Lt.Profiler=$,Lt.StrictMode=C,Lt.Suspense=I,Lt.isAsyncMode=q,Lt.isConcurrentMode=D,Lt.isContextConsumer=j,Lt.isContextProvider=B,Lt.isElement=W,Lt.isForwardRef=G,Lt.isFragment=X,Lt.isLazy=J,Lt.isMemo=et,Lt.isPortal=K,Lt.isProfiler=F,Lt.isStrictMode=H,Lt.isSuspense=Q,Lt.isValidElementType=b,Lt.typeOf=x})()),Lt}var uA;function tM(){return uA||(uA=1,process.env.NODE_ENV==="production"?Ju.exports=$8():Ju.exports=j8()),Ju.exports}/*
127
133
  object-assign
128
134
  (c) Sindre Sorhus
129
135
  @license MIT
130
- */var Pp,fS;function BW(){if(fS)return Pp;fS=1;var t=Object.getOwnPropertySymbols,e=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 Pp=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)e.call(s,f)&&(u[f]=s[f]);if(t){l=t(s);for(var h=0;h<l.length;h++)r.call(s,l[h])&&(u[l[h]]=s[l[h]])}}return u},Pp}var Tp,hS;function Eg(){if(hS)return Tp;hS=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tp=t,Tp}var Ep,dS;function nC(){return dS||(dS=1,Ep=Function.call.bind(Object.prototype.hasOwnProperty)),Ep}var Cp,pS;function FW(){if(pS)return Cp;pS=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Eg(),r={},n=nC();t=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,e)}catch(y){f=y}if(f&&!(f instanceof Error)&&t((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 d=l?l():"";t("Failed "+s+" type: "+f.message+(d??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Cp=i,Cp}var Mp,mS;function zW(){if(mS)return Mp;mS=1;var t=rC(),e=BW(),r=Eg(),n=nC(),i=FW(),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 Mp=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(R){var L=R&&(l&&R[l]||R[c]);if(typeof L=="function")return L}var h="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:_(),arrayOf:b,element:x(),elementType:v(),instanceOf:w,node:M(),objectOf:A,oneOf:S,oneOfType:P,shape:E,exact:C};function y(R,L){return R===L?R!==0||1/R===1/L:R!==R&&L!==L}function m(R,L){this.message=R,this.data=L&&typeof L=="object"?L:{},this.stack=""}m.prototype=Error.prototype;function p(R){if(process.env.NODE_ENV!=="production")var L={},q=0;function U(V,te,re,H,F,K,Q){if(H=H||h,K=K||re,Q!==r){if(u){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=H+":"+re;!L[se]&&q<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."),L[se]=!0,q++)}}return te[re]==null?V?te[re]===null?new m("The "+F+" `"+K+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new m("The "+F+" `"+K+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:R(te,re,H,F,K)}var X=U.bind(null,!1);return X.isRequired=U.bind(null,!0),X}function g(R){function L(q,U,X,V,te,re){var H=q[U],F=j(H);if(F!==R){var K=$(H);return new m("Invalid "+V+" `"+te+"` of type "+("`"+K+"` supplied to `"+X+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return p(L)}function _(){return p(o)}function b(R){function L(q,U,X,V,te){if(typeof R!="function")return new m("Property `"+te+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var re=q[U];if(!Array.isArray(re)){var H=j(re);return new m("Invalid "+V+" `"+te+"` of type "+("`"+H+"` supplied to `"+X+"`, expected an array."))}for(var F=0;F<re.length;F++){var K=R(re,F,X,V,te+"["+F+"]",r);if(K instanceof Error)return K}return null}return p(L)}function x(){function R(L,q,U,X,V){var te=L[q];if(!s(te)){var re=j(te);return new m("Invalid "+X+" `"+V+"` of type "+("`"+re+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return p(R)}function v(){function R(L,q,U,X,V){var te=L[q];if(!t.isValidElementType(te)){var re=j(te);return new m("Invalid "+X+" `"+V+"` of type "+("`"+re+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return p(R)}function w(R){function L(q,U,X,V,te){if(!(q[U]instanceof R)){var re=R.name||h,H=B(q[U]);return new m("Invalid "+V+" `"+te+"` of type "+("`"+H+"` supplied to `"+X+"`, expected ")+("instance of `"+re+"`."))}return null}return p(L)}function S(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function L(q,U,X,V,te){for(var re=q[U],H=0;H<R.length;H++)if(y(re,R[H]))return null;var F=JSON.stringify(R,function(Q,D){var se=$(D);return se==="symbol"?String(D):D});return new m("Invalid "+V+" `"+te+"` of value `"+String(re)+"` "+("supplied to `"+X+"`, expected one of "+F+"."))}return p(L)}function A(R){function L(q,U,X,V,te){if(typeof R!="function")return new m("Property `"+te+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var re=q[U],H=j(re);if(H!=="object")return new m("Invalid "+V+" `"+te+"` of type "+("`"+H+"` supplied to `"+X+"`, expected an object."));for(var F in re)if(n(re,F)){var K=R(re,F,X,V,te+"."+F,r);if(K instanceof Error)return K}return null}return p(L)}function P(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var L=0;L<R.length;L++){var q=R[L];if(typeof q!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(q)+" at index "+L+"."),o}function U(X,V,te,re,H){for(var F=[],K=0;K<R.length;K++){var Q=R[K],D=Q(X,V,te,re,H,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&F.push(D.data.expectedType)}var se=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+re+" `"+H+"` supplied to "+("`"+te+"`"+se+"."))}return p(U)}function M(){function R(L,q,U,X,V){return I(L[q])?null:new m("Invalid "+X+" `"+V+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return p(R)}function T(R,L,q,U,X){return new m((R||"React class")+": "+L+" type `"+q+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function E(R){function L(q,U,X,V,te){var re=q[U],H=j(re);if(H!=="object")return new m("Invalid "+V+" `"+te+"` of type `"+H+"` "+("supplied to `"+X+"`, expected `object`."));for(var F in R){var K=R[F];if(typeof K!="function")return T(X,V,te,F,$(K));var Q=K(re,F,X,V,te+"."+F,r);if(Q)return Q}return null}return p(L)}function C(R){function L(q,U,X,V,te){var re=q[U],H=j(re);if(H!=="object")return new m("Invalid "+V+" `"+te+"` of type `"+H+"` "+("supplied to `"+X+"`, expected `object`."));var F=e({},q[U],R);for(var K in F){var Q=R[K];if(n(R,K)&&typeof Q!="function")return T(X,V,te,K,$(Q));if(!Q)return new m("Invalid "+V+" `"+te+"` key `"+K+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(q[U],null," ")+`
131
- Valid keys: `+JSON.stringify(Object.keys(R),null," "));var D=Q(re,K,X,V,te+"."+K,r);if(D)return D}return null}return p(L)}function I(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(I);if(R===null||s(R))return!0;var L=f(R);if(L){var q=L.call(R),U;if(L!==R.entries){for(;!(U=q.next()).done;)if(!I(U.value))return!1}else for(;!(U=q.next()).done;){var X=U.value;if(X&&!I(X[1]))return!1}}else return!1;return!0;default:return!1}}function k(R,L){return R==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function j(R){var L=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":k(L,R)?"symbol":L}function $(R){if(typeof R>"u"||R===null)return""+R;var L=j(R);if(L==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return L}function N(R){var L=$(R);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function B(R){return!R.constructor||!R.constructor.name?h:R.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Mp}var kp,yS;function UW(){if(yS)return kp;yS=1;var t=Eg();function e(){}function r(){}return r.resetWarningCache=e,kp=function(){function n(o,s,u,l,c,f){if(f!==t){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:e};return a.PropTypes=a,a},kp}var vS;function WW(){if(vS)return nu.exports;if(vS=1,process.env.NODE_ENV!=="production"){var t=rC(),e=!0;nu.exports=zW()(t.isElement,e)}else nu.exports=UW()();return nu.exports}var HW=WW();const je=$e(HW);var GW=Object.getOwnPropertyNames,KW=Object.getOwnPropertySymbols,XW=Object.prototype.hasOwnProperty;function gS(t,e){return function(n,i,a){return t(n,i,a)&&e(n,i,a)}}function au(t){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return t(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=t(r,n,i);return a.delete(r),a.delete(n),u}}function YW(t){return t!=null?t[Symbol.toStringTag]:void 0}function bS(t){return GW(t).concat(KW(t))}var VW=Object.hasOwn||(function(t,e){return XW.call(t,e)});function Ai(t,e){return t===e||!t&&!e&&t!==t&&e!==e}var ZW="__v",JW="__o",QW="_owner",_S=Object.getOwnPropertyDescriptor,xS=Object.keys;function eH(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function tH(t,e){return Ai(t.getTime(),e.getTime())}function rH(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function nH(t,e){return t===e}function wS(t,e,r){var n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var i=new Array(n),a=t.entries(),o,s,u=0;(o=a.next())&&!o.done;){for(var l=e.entries(),c=!1,f=0;(s=l.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,d=s.value;if(r.equals(h[0],d[0],u,f,t,e,r)&&r.equals(h[1],d[1],h[0],d[0],t,e,r)){c=i[f]=!0;break}f++}if(!c)return!1;u++}return!0}var iH=Ai;function aH(t,e,r){var n=xS(t),i=n.length;if(xS(e).length!==i)return!1;for(;i-- >0;)if(!iC(t,e,r,n[i]))return!1;return!0}function no(t,e,r){var n=bS(t),i=n.length;if(bS(e).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!iC(t,e,r,a)||(o=_S(t,a),s=_S(e,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function oH(t,e){return Ai(t.valueOf(),e.valueOf())}function sH(t,e){return t.source===e.source&&t.flags===e.flags}function SS(t,e,r){var n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var i=new Array(n),a=t.values(),o,s;(o=a.next())&&!o.done;){for(var u=e.values(),l=!1,c=0;(s=u.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,t,e,r)){l=i[c]=!0;break}c++}if(!l)return!1}return!0}function uH(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function lH(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function iC(t,e,r,n){return(n===QW||n===JW||n===ZW)&&(t.$$typeof||e.$$typeof)?!0:VW(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var cH="[object Arguments]",fH="[object Boolean]",hH="[object Date]",dH="[object Error]",pH="[object Map]",mH="[object Number]",yH="[object Object]",vH="[object RegExp]",gH="[object Set]",bH="[object String]",_H="[object URL]",xH=Array.isArray,OS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,AS=Object.assign,wH=Object.prototype.toString.call.bind(Object.prototype.toString);function SH(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areErrorsEqual,i=t.areFunctionsEqual,a=t.areMapsEqual,o=t.areNumbersEqual,s=t.areObjectsEqual,u=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,c=t.areSetsEqual,f=t.areTypedArraysEqual,h=t.areUrlsEqual,d=t.unknownTagComparators;return function(m,p,g){if(m===p)return!0;if(m==null||p==null)return!1;var _=typeof m;if(_!==typeof p)return!1;if(_!=="object")return _==="number"?o(m,p,g):_==="function"?i(m,p,g):!1;var b=m.constructor;if(b!==p.constructor)return!1;if(b===Object)return s(m,p,g);if(xH(m))return e(m,p,g);if(OS!=null&&OS(m))return f(m,p,g);if(b===Date)return r(m,p,g);if(b===RegExp)return l(m,p,g);if(b===Map)return a(m,p,g);if(b===Set)return c(m,p,g);var x=wH(m);if(x===hH)return r(m,p,g);if(x===vH)return l(m,p,g);if(x===pH)return a(m,p,g);if(x===gH)return c(m,p,g);if(x===yH)return typeof m.then!="function"&&typeof p.then!="function"&&s(m,p,g);if(x===_H)return h(m,p,g);if(x===dH)return n(m,p,g);if(x===cH)return s(m,p,g);if(x===fH||x===mH||x===bH)return u(m,p,g);if(d){var v=d[x];if(!v){var w=YW(m);w&&(v=d[w])}if(v)return v(m,p,g)}return!1}}function OH(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?no:eH,areDatesEqual:tH,areErrorsEqual:rH,areFunctionsEqual:nH,areMapsEqual:n?gS(wS,no):wS,areNumbersEqual:iH,areObjectsEqual:n?no:aH,arePrimitiveWrappersEqual:oH,areRegExpsEqual:sH,areSetsEqual:n?gS(SS,no):SS,areTypedArraysEqual:n?no:uH,areUrlsEqual:lH,unknownTagComparators:void 0};if(r&&(i=AS({},i,r(i))),e){var a=au(i.areArraysEqual),o=au(i.areMapsEqual),s=au(i.areObjectsEqual),u=au(i.areSetsEqual);i=AS({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function AH(t){return function(e,r,n,i,a,o,s){return t(e,r,s)}}function PH(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,a=t.strict;if(n)return function(u,l){var c=n(),f=c.cache,h=f===void 0?e?new WeakMap:void 0:f,d=c.meta;return r(u,l,{cache:h,equals:i,meta:d,strict:a})};if(e)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 TH=Nn();Nn({strict:!0});Nn({circular:!0});Nn({circular:!0,strict:!0});Nn({createInternalComparator:function(){return Ai}});Nn({strict:!0,createInternalComparator:function(){return Ai}});Nn({circular:!0,createInternalComparator:function(){return Ai}});Nn({circular:!0,createInternalComparator:function(){return Ai},strict:!0});function Nn(t){t===void 0&&(t={});var e=t.circular,r=e===void 0?!1:e,n=t.createInternalComparator,i=t.createState,a=t.strict,o=a===void 0?!1:a,s=OH(t),u=SH(s),l=n?n(u):AH(u);return PH({circular:r,comparator:u,createState:i,equals:l,strict:o})}function EH(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function PS(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>e?(t(a),r=-1):EH(i)};requestAnimationFrame(n)}function vy(t){"@babel/helpers - typeof";return vy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vy(t)}function CH(t){return IH(t)||jH(t)||kH(t)||MH()}function MH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
132
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kH(t,e){if(t){if(typeof t=="string")return TS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TS(t,e)}}function TS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jH(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function IH(t){if(Array.isArray(t))return t}function RH(){var t={},e=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=CH(o),u=s[0],l=s.slice(1);if(typeof u=="number"){PS(i.bind(null,l),u);return}i(u),PS(i.bind(null,l));return}vy(a)==="object"&&(t=a,e(t)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return e=a,function(){e=function(){return null}}}}}function fs(t){"@babel/helpers - typeof";return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fs(t)}function ES(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function CS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ES(Object(r),!0).forEach(function(n){aC(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ES(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function aC(t,e,r){return e=$H(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $H(t){var e=DH(t,"string");return fs(e)==="symbol"?e:String(e)}function DH(t,e){if(fs(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(fs(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var NH=function(e,r){return[Object.keys(e),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},LH=function(e){return e},qH=function(e){return e.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},To=function(e,r){return Object.keys(r).reduce(function(n,i){return CS(CS({},n),{},aC({},i,e(i,r[i])))},{})},MS=function(e,r,n){return e.map(function(i){return"".concat(qH(i)," ").concat(r,"ms ").concat(n)}).join(",")},BH=process.env.NODE_ENV!=="production",tl=function(e,r,n,i,a,o,s,u){if(BH&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!e))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 FH(t,e){return WH(t)||UH(t,e)||oC(t,e)||zH()}function zH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
133
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UH(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 WH(t){if(Array.isArray(t))return t}function HH(t){return XH(t)||KH(t)||oC(t)||GH()}function GH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
134
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oC(t,e){if(t){if(typeof t=="string")return gy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gy(t,e)}}function KH(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function XH(t){if(Array.isArray(t))return gy(t)}function gy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var rl=1e-4,sC=function(e,r){return[0,3*e,3*r-6*e,3*e-3*r+1]},uC=function(e,r){return e.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},kS=function(e,r){return function(n){var i=sC(e,r);return uC(i,n)}},YH=function(e,r){return function(n){var i=sC(e,r),a=[].concat(HH(i.map(function(o,s){return o*s}).slice(1)),[0]);return uC(a,n)}},jS=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;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(p){return parseFloat(p)}),c=FH(l,4);i=c[0],a=c[1],o=c[2],s=c[3]}else tl(!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)}}tl([i,o,a,s].every(function(p){return typeof p=="number"&&p>=0&&p<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=kS(i,o),h=kS(a,s),d=YH(i,o),y=function(g){return g>1?1:g<0?0:g},m=function(g){for(var _=g>1?1:g,b=_,x=0;x<8;++x){var v=f(b)-_,w=d(b);if(Math.abs(v-_)<rl||w<rl)return h(b);b=y(b-v/w)}return h(b)};return m.isStepper=!1,m},VH=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.stiff,n=r===void 0?100:r,i=e.damping,a=i===void 0?8:i,o=e.dt,s=o===void 0?17:o,u=function(c,f,h){var d=-(c-f)*n,y=h*a,m=h+(d-y)*s/1e3,p=h*s/1e3+c;return Math.abs(p-f)<rl&&Math.abs(m)<rl?[f,0]:[p,m]};return u.isStepper=!0,u.dt=s,u},ZH=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;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 jS(i);case"spring":return VH();default:if(i.split("(")[0]==="cubic-bezier")return jS(i);tl(!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:(tl(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function hs(t){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hs(t)}function IS(t){return e8(t)||QH(t)||lC(t)||JH()}function JH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
135
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QH(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function e8(t){if(Array.isArray(t))return _y(t)}function RS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _t(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?RS(Object(r),!0).forEach(function(n){by(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function by(t,e,r){return e=t8(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function t8(t){var e=r8(t,"string");return hs(e)==="symbol"?e:String(e)}function r8(t,e){if(hs(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(hs(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function n8(t,e){return o8(t)||a8(t,e)||lC(t,e)||i8()}function i8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lC(t,e){if(t){if(typeof t=="string")return _y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _y(t,e)}}function _y(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a8(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 o8(t){if(Array.isArray(t))return t}var nl=function(e,r,n){return e+(r-e)*n},xy=function(e){var r=e.from,n=e.to;return r!==n},s8=function t(e,r,n){var i=To(function(a,o){if(xy(o)){var s=e(o.from,o.to,o.velocity),u=n8(s,2),l=u[0],c=u[1];return _t(_t({},o),{},{from:l,velocity:c})}return o},r);return n<1?To(function(a,o){return xy(o)?_t(_t({},o),{},{velocity:nl(o.velocity,i[a].velocity,n),from:nl(o.from,i[a].from,n)}):o},r):t(e,i,n-1)};const u8=(function(t,e,r,n,i){var a=NH(t,e),o=a.reduce(function(p,g){return _t(_t({},p),{},by({},g,[t[g],e[g]]))},{}),s=a.reduce(function(p,g){return _t(_t({},p),{},by({},g,{from:t[g],velocity:0,to:e[g]}))},{}),u=-1,l,c,f=function(){return null},h=function(){return To(function(g,_){return _.from},s)},d=function(){return!Object.values(s).filter(xy).length},y=function(g){l||(l=g);var _=g-l,b=_/r.dt;s=s8(r,s,b),i(_t(_t(_t({},t),e),h())),l=g,d()||(u=requestAnimationFrame(f))},m=function(g){c||(c=g);var _=(g-c)/n,b=To(function(v,w){return nl.apply(void 0,IS(w).concat([r(_)]))},o);if(i(_t(_t(_t({},t),e),b)),_<1)u=requestAnimationFrame(f);else{var x=To(function(v,w){return nl.apply(void 0,IS(w).concat([r(1)]))},o);i(_t(_t(_t({},t),e),x))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}});function ma(t){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ma(t)}var l8=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function c8(t,e){if(t==null)return{};var r=f8(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function f8(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function jp(t){return m8(t)||p8(t)||d8(t)||h8()}function h8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
137
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d8(t,e){if(t){if(typeof t=="string")return wy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wy(t,e)}}function p8(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function m8(t){if(Array.isArray(t))return wy(t)}function wy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$S(Object(r),!0).forEach(function(n){po(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$S(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function po(t,e,r){return e=cC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v8(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cC(n.key),n)}}function g8(t,e,r){return e&&v8(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function cC(t){var e=b8(t,"string");return ma(e)==="symbol"?e:String(e)}function b8(t,e){if(ma(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ma(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sy(t,e)}function Sy(t,e){return Sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sy(t,e)}function x8(t){var e=w8();return function(){var n=il(t),i;if(e){var a=il(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Oy(this,i)}}function Oy(t,e){if(e&&(ma(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ay(t)}function Ay(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w8(){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 il(t){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},il(t)}var Tr=(function(t){_8(r,t);var e=x8(r);function r(n,i){var a;y8(this,r),a=e.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,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ay(a)),a.changeStyle=a.changeStyle.bind(Ay(a)),!s||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Oy(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof h=="function")return a.state={style:l},Oy(a);a.state={style:u?po({},u,l):l}}else a.state={style:{}};return a}return g8(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 d={style:u?po({},u,c):c};this.state&&h&&(u&&h[u]!==c||!u&&h!==c)&&this.setState(d);return}if(!(TH(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||l?f:i.to;if(this.state&&h){var p={style:u?po({},u,m):m};(u&&h[u]!==m||!u&&h!==m)&&this.setState(p)}this.runAnimation(xr(xr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,u=i.duration,l=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,d=u8(o,s,ZH(l),u,this.changeStyle),y=function(){a.stopJSAnimation=d()};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,d=function(m,p,g){if(g===0)return m;var _=p.duration,b=p.easing,x=b===void 0?"ease":b,v=p.style,w=p.properties,S=p.onAnimationEnd,A=g>0?o[g-1]:p,P=w||Object.keys(v);if(typeof x=="function"||x==="spring")return[].concat(jp(m),[a.runJSAnimation.bind(a,{from:A.style,to:v,duration:_,easing:x}),_]);var M=MS(P,_,x),T=xr(xr(xr({},A.style),v),{},{transition:M});return[].concat(jp(m),[T,_,S]).filter(LH)};return this.manager.start([u].concat(jp(o.reduce(d,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=RH());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,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof d=="function"||l==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?po({},s,u):u,p=MS(Object.keys(m),o,l);y.start([c,a,xr(xr({},m),{},{transition:p}),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=c8(i,l8),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(d){var y=d.props,m=y.style,p=m===void 0?{}:m,g=y.className,_=O.cloneElement(d,xr(xr({},u),{},{style:xr(xr({},p),c),className:g}));return _};return l===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);Tr.displayName="Animate";Tr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Tr.propTypes={from:je.oneOfType([je.object,je.string]),to:je.oneOfType([je.object,je.string]),attributeName:je.string,duration:je.number,begin:je.number,easing:je.oneOfType([je.string,je.func]),steps:je.arrayOf(je.shape({duration:je.number.isRequired,style:je.object.isRequired,easing:je.oneOfType([je.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),je.func]),properties:je.arrayOf("string"),onAnimationEnd:je.func})),children:je.oneOfType([je.node,je.func]),isActive:je.bool,canBegin:je.bool,onAnimationEnd:je.func,shouldReAnimate:je.bool,onAnimationStart:je.func,onAnimationReStart:je.func};function ds(t){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ds(t)}function al(){return al=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},al.apply(this,arguments)}function S8(t,e){return T8(t)||P8(t,e)||A8(t,e)||O8()}function O8(){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 A8(t,e){if(t){if(typeof t=="string")return DS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DS(t,e)}}function DS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function P8(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 T8(t){if(Array.isArray(t))return t}function NS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function LS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?NS(Object(r),!0).forEach(function(n){E8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function E8(t,e,r){return e=C8(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function C8(t){var e=M8(t,"string");return ds(e)=="symbol"?e:e+""}function M8(t,e){if(ds(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qS=function(e,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,d=4;h<d;h++)f[h]=a[h]>o?o:a[h];c="M".concat(e,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(e+u*f[0],",").concat(r)),c+="L ".concat(e+n-u*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`,
139
- `).concat(e+n,",").concat(r+s*f[1])),c+="L ".concat(e+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`,
140
- `).concat(e+n-u*f[2],",").concat(r+i)),c+="L ".concat(e+u*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`,
141
- `).concat(e,",").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(e,",").concat(r+s*y,`
142
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(e+u*y,",").concat(r,`
143
- L `).concat(e+n-u*y,",").concat(r,`
144
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(e+n,",").concat(r+s*y,`
145
- L `).concat(e+n,",").concat(r+i-s*y,`
146
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(e+n-u*y,",").concat(r+i,`
147
- L `).concat(e+u*y,",").concat(r+i,`
148
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(e,",").concat(r+i-s*y," Z")}else c="M ".concat(e,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},k8=function(e,r){if(!e||!r)return!1;var n=e.x,i=e.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},j8={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Cg=function(e){var r=LS(LS({},j8),e),n=O.useRef(),i=O.useState(-1),a=S8(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,d=r.className,y=r.animationEasing,m=r.animationDuration,p=r.animationBegin,g=r.isAnimationActive,_=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var b=_e("recharts-rectangle",d);return _?O.createElement(Tr,{canBegin:o>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:m,animationEasing:y,isActive:_},function(x){var v=x.width,w=x.height,S=x.x,A=x.y;return O.createElement(Tr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:m,isActive:g,easing:y},O.createElement("path",al({},me(r,!0),{className:b,d:qS(S,A,v,w,h),ref:n})))}):O.createElement("path",al({},me(r,!0),{className:b,d:qS(u,l,c,f,h)}))};function Py(){return Py=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Py.apply(this,arguments)}var Ql=function(e){var r=e.cx,n=e.cy,i=e.r,a=e.className,o=_e("recharts-dot",a);return r===+r&&n===+n&&i===+i?yr.createElement("circle",Py({},me(e,!1),zu(e),{className:o,cx:r,cy:n,r:i})):null};function ps(t){"@babel/helpers - typeof";return ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ps(t)}var I8=["x","y","top","left","width","height","className"];function Ty(){return Ty=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ty.apply(this,arguments)}function BS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function R8(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?BS(Object(r),!0).forEach(function(n){$8(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $8(t,e,r){return e=D8(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D8(t){var e=N8(t,"string");return ps(e)=="symbol"?e:e+""}function N8(t,e){if(ps(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function L8(t,e){if(t==null)return{};var r=q8(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function q8(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var B8=function(e,r,n,i,a,o){return"M".concat(e,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},F8=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.top,s=o===void 0?0:o,u=e.left,l=u===void 0?0:u,c=e.width,f=c===void 0?0:c,h=e.height,d=h===void 0?0:h,y=e.className,m=L8(e,I8),p=R8({x:n,y:a,top:s,left:l,width:f,height:d},m);return!J(n)||!J(a)||!J(f)||!J(d)||!J(s)||!J(l)?null:O.createElement("path",Ty({},me(p,!0),{className:_e("recharts-cross",y),d:B8(n,a,f,d,s,l)}))},Ip,FS;function z8(){if(FS)return Ip;FS=1;var t=VT(),e=t(Object.getPrototypeOf,Object);return Ip=e,Ip}var Rp,zS;function U8(){if(zS)return Rp;zS=1;var t=pn(),e=z8(),r=mn(),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)||t(c)!=n)return!1;var f=e(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 Rp=l,Rp}var W8=U8();const H8=$e(W8);var $p,US;function G8(){if(US)return $p;US=1;var t=pn(),e=mn(),r="[object Boolean]";function n(i){return i===!0||i===!1||e(i)&&t(i)==r}return $p=n,$p}var K8=G8();const X8=$e(K8);function ms(t){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ms(t)}function ol(){return ol=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ol.apply(this,arguments)}function Y8(t,e){return Q8(t)||J8(t,e)||Z8(t,e)||V8()}function V8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
149
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z8(t,e){if(t){if(typeof t=="string")return WS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WS(t,e)}}function WS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function J8(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 Q8(t){if(Array.isArray(t))return t}function HS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function GS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?HS(Object(r),!0).forEach(function(n){eG(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function eG(t,e,r){return e=tG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tG(t){var e=rG(t,"string");return ms(e)=="symbol"?e:e+""}function rG(t,e){if(ms(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var KS=function(e,r,n,i,a){var o=n-i,s;return s="M ".concat(e,",").concat(r),s+="L ".concat(e+n,",").concat(r),s+="L ".concat(e+n-o/2,",").concat(r+a),s+="L ".concat(e+n-o/2-i,",").concat(r+a),s+="L ".concat(e,",").concat(r," Z"),s},nG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iG=function(e){var r=GS(GS({},nG),e),n=O.useRef(),i=O.useState(-1),a=Y8(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,d=r.className,y=r.animationEasing,m=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var _=_e("recharts-trapezoid",d);return g?O.createElement(Tr,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:u,y:l},to:{upperWidth:c,lowerWidth:f,height:h,x:u,y:l},duration:m,animationEasing:y,isActive:g},function(b){var x=b.upperWidth,v=b.lowerWidth,w=b.height,S=b.x,A=b.y;return O.createElement(Tr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:m,easing:y},O.createElement("path",ol({},me(r,!0),{className:_,d:KS(S,A,x,v,w),ref:n})))}):O.createElement("g",null,O.createElement("path",ol({},me(r,!0),{className:_,d:KS(u,l,c,f,h)})))},aG=["option","shapeType","propTransformer","activeClassName","isActive"];function ys(t){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ys(t)}function oG(t,e){if(t==null)return{};var r=sG(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function sG(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function XS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function sl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?XS(Object(r),!0).forEach(function(n){uG(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function uG(t,e,r){return e=lG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lG(t){var e=cG(t,"string");return ys(e)=="symbol"?e:e+""}function cG(t,e){if(ys(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fG(t,e){return sl(sl({},e),t)}function hG(t,e){return t==="symbols"}function YS(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return O.createElement(Cg,r);case"trapezoid":return O.createElement(iG,r);case"sector":return O.createElement(tC,r);case"symbols":if(hG(e))return O.createElement(Xl,r);break;default:return null}}function dG(t){return O.isValidElement(t)?t.props:t}function Ey(t){var e=t.option,r=t.shapeType,n=t.propTransformer,i=n===void 0?fG:n,a=t.activeClassName,o=a===void 0?"recharts-active-shape":a,s=t.isActive,u=oG(t,aG),l;if(O.isValidElement(e))l=O.cloneElement(e,sl(sl({},u),dG(e)));else if(ye(e))l=e(u);else if(H8(e)&&!X8(e)){var c=i(e,u);l=O.createElement(YS,{shapeType:r,elementProps:c})}else{var f=u;l=O.createElement(YS,{shapeType:r,elementProps:f})}return s?O.createElement(Te,{className:o},l):l}function ec(t,e){return e!=null&&"trapezoids"in t.props}function tc(t,e){return e!=null&&"sectors"in t.props}function vs(t,e){return e!=null&&"points"in t.props}function pG(t,e){var r,n,i=t.x===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.x)||t.x===e.x,a=t.y===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.y)||t.y===e.y;return i&&a}function mG(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function yG(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function vG(t,e){var r;return ec(t,e)?r=pG:tc(t,e)?r=mG:vs(t,e)&&(r=yG),r}function gG(t,e){var r;return ec(t,e)?r="trapezoids":tc(t,e)?r="sectors":vs(t,e)&&(r="points"),r}function bG(t,e){if(ec(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(tc(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return vs(t,e)?e.payload:{}}function _G(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=gG(r,e),a=bG(r,e),o=n.filter(function(u,l){var c=mi(a,u),f=r.props[i].filter(function(y){var m=vG(r,e);return m(y,e)}),h=r.props[i].indexOf(f[f.length-1]),d=l===h;return c&&d}),s=n.indexOf(o[o.length-1]);return s}function gs(t){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(t)}function VS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ZS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?VS(Object(r),!0).forEach(function(n){fC(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function fC(t,e,r){return e=xG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xG(t){var e=wG(t,"string");return gs(e)=="symbol"?e:e+""}function wG(t,e){if(gs(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var SG=["Webkit","Moz","O","ms"],OG=function(e,r){var n=e.replace(/(\w)/,function(a){return a.toUpperCase()}),i=SG.reduce(function(a,o){return ZS(ZS({},a),{},fC({},o+n,r))},{});return i[e]=r,i};function ya(t){"@babel/helpers - typeof";return ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ya(t)}function ul(){return ul=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ul.apply(this,arguments)}function JS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Dp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?JS(Object(r),!0).forEach(function(n){Vt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function AG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dC(n.key),n)}}function PG(t,e,r){return e&&QS(t.prototype,e),r&&QS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function TG(t,e,r){return e=ll(e),EG(t,hC()?Reflect.construct(e,r||[],ll(t).constructor):e.apply(t,r))}function EG(t,e){if(e&&(ya(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CG(t)}function CG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hC=function(){return!!t})()}function ll(t){return ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ll(t)}function MG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cy(t,e)}function Cy(t,e){return Cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cy(t,e)}function Vt(t,e,r){return e=dC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dC(t){var e=kG(t,"string");return ya(e)=="symbol"?e:e+""}function kG(t,e){if(ya(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ya(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var jG=function(e){var r=e.data,n=e.startIndex,i=e.endIndex,a=e.x,o=e.width,s=e.travellerWidth;if(!r||!r.length)return{};var u=r.length,l=mo().domain(Go(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}},eO=function(e){return e.changedTouches&&!!e.changedTouches.length},va=(function(t){function e(r){var n;return AG(this,e),n=TG(this,e,[r]),Vt(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Vt(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Vt(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()}),Vt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Vt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Vt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Vt(n,"handleSlideDragStart",function(i){var a=eO(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 MG(e,t),PG(e,[{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),d=e.getIndexInRange(o,f),y=e.getIndexInRange(o,h);return{startIndex:d-d%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=ft(a[n],s,n);return ye(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,d=u.endIndex,y=u.onChange,m=n.pageX-a;m>0?m=Math.min(m,l+c-f-s,l+c-f-o):m<0&&(m=Math.max(m,l-o,l-s));var p=this.getIndex({startX:o+m,endX:s+m});(p.startIndex!==h||p.endIndex!==d)&&y&&y(p),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=eO(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,d=c.travellerWidth,y=c.onChange,m=c.gap,p=c.data,g={startX:this.state.startX,endX:this.state.endX},_=n.pageX-a;_>0?_=Math.min(_,f+h-d-l):_<0&&(_=Math.max(_,f-l)),g[o]=l+_;var b=this.getIndex(g),x=b.startIndex,v=b.endIndex,w=function(){var A=p.length-1;return o==="startX"&&(s>u?x%m===0:v%m===0)||s<u&&v===A||o==="endX"&&(s>u?v%m===0:x%m===0)||s>u&&v===A};this.setState(Vt(Vt({},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 d=s[h];i==="startX"&&d>=l||i==="endX"&&d<=u||this.setState(Vt({},i,d),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,d=u.ariaLabel,y=u.data,m=u.startIndex,p=u.endIndex,g=Math.max(n,this.props.x),_=Dp(Dp({},me(this.props,!1)),{},{x:g,y:l,width:c,height:f}),b=d||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return O.createElement(Te,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(v){["ArrowLeft","ArrowRight"].includes(v.key)&&(v.preventDefault(),v.stopPropagation(),s.handleTravellerMoveKeyboard(v.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.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,d=5,y={pointerEvents:"none",fill:l};return O.createElement(Te,{className:"recharts-brush-texts"},O.createElement(Xu,ul({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-d,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Xu,ul({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+u+d,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,d=h.startX,y=h.endX,m=h.isTextActive,p=h.isSlideMoving,g=h.isTravellerMoving,_=h.isTravellerFocused;if(!i||!i.length||!J(s)||!J(u)||!J(l)||!J(c)||l<=0||c<=0)return null;var b=_e("recharts-brush",a),x=O.Children.count(o)===1,v=OG("userSelect","none");return O.createElement(Te,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(m||p||g||_||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,u=n.stroke,l=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:u,stroke:"none"}),O.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):ye(n)?a=n(i):a=e.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 Dp({prevData:a,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:o},a&&a.length?jG({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(d){return i.scale(d)});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);Vt(va,"displayName","Brush");Vt(va,"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 Np,tO;function IG(){if(tO)return Np;tO=1;var t=bg();function e(r,n){var i;return t(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Np=e,Np}var Lp,rO;function RG(){if(rO)return Lp;rO=1;var t=WT(),e=$n(),r=IG(),n=$t(),i=Is();function a(o,s,u){var l=n(o)?t:r;return u&&i(o,s,u)&&(s=void 0),l(o,e(s,3))}return Lp=a,Lp}var $G=RG();const DG=$e($G);var Ur=function(e,r){var n=e.alwaysShow,i=e.ifOverflow;return n&&(i="extendDomain"),i===r},qp,nO;function NG(){if(nO)return qp;nO=1;var t=nE();function e(r,n,i){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return qp=e,qp}var Bp,iO;function LG(){if(iO)return Bp;iO=1;var t=NG(),e=tE(),r=$n();function n(i,a){var o={};return a=r(a,3),e(i,function(s,u,l){t(o,u,a(s,u,l))}),o}return Bp=n,Bp}var qG=LG();const BG=$e(qG);var Fp,aO;function FG(){if(aO)return Fp;aO=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(!r(e[n],n,e))return!1;return!0}return Fp=t,Fp}var zp,oO;function zG(){if(oO)return zp;oO=1;var t=bg();function e(r,n){var i=!0;return t(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return zp=e,zp}var Up,sO;function UG(){if(sO)return Up;sO=1;var t=FG(),e=zG(),r=$n(),n=$t(),i=Is();function a(o,s,u){var l=n(o)?t:e;return u&&i(o,s,u)&&(s=void 0),l(o,r(s,3))}return Up=a,Up}var WG=UG();const pC=$e(WG);var HG=["x","y"];function ga(t){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ga(t)}function My(){return My=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},My.apply(this,arguments)}function uO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function io(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?uO(Object(r),!0).forEach(function(n){GG(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function GG(t,e,r){return e=KG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KG(t){var e=XG(t,"string");return ga(e)=="symbol"?e:e+""}function XG(t,e){if(ga(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function YG(t,e){if(t==null)return{};var r=VG(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function VG(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function ZG(t,e){var r=t.x,n=t.y,i=YG(t,HG),a="".concat(r),o=parseInt(a,10),s="".concat(n),u=parseInt(s,10),l="".concat(e.height||i.height),c=parseInt(l,10),f="".concat(e.width||i.width),h=parseInt(f,10);return io(io(io(io(io({},e),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:c,width:h,name:e.name,radius:e.radius})}function lO(t){return O.createElement(Ey,My({shapeType:"rectangle",propTransformer:ZG,activeClassName:"recharts-active-bar"},t))}var JG=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof e=="number")return e;var a=J(n)||_F(n);return a?e(n,i):(a||(process.env.NODE_ENV!=="production"?qt(!1,"minPointSize callback function received a value with type of ".concat(ga(n),". Currently only numbers or null/undefined are supported.")):qt()),r)}},QG=["value","background"],mC;function ba(t){"@babel/helpers - typeof";return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ba(t)}function e6(t,e){if(t==null)return{};var r=t6(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function t6(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function cl(){return cl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cl.apply(this,arguments)}function cO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function nt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?cO(Object(r),!0).forEach(function(n){On(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function r6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vC(n.key),n)}}function n6(t,e,r){return e&&fO(t.prototype,e),r&&fO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function i6(t,e,r){return e=fl(e),a6(t,yC()?Reflect.construct(e,r||[],fl(t).constructor):e.apply(t,r))}function a6(t,e){if(e&&(ba(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o6(t)}function o6(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yC=function(){return!!t})()}function fl(t){return fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fl(t)}function s6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ky(t,e)}function ky(t,e){return ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ky(t,e)}function On(t,e,r){return e=vC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vC(t){var e=u6(t,"string");return ba(e)=="symbol"?e:e+""}function u6(t,e){if(ba(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fa=(function(t){function e(){var r;r6(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=i6(this,e,[].concat(i)),On(r,"state",{isAnimationFinished:!1}),On(r,"id",Oi("recharts-bar-")),On(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),On(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return s6(e,t),n6(e,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,u=a.activeIndex,l=a.activeBar,c=me(this.props,!1);return n&&n.map(function(f,h){var d=h===u,y=d?l:o,m=nt(nt(nt({},c),f),{},{isActive:d,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(Te,cl({className:"recharts-bar-rectangle"},Ko(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(lO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,u=i.animationBegin,l=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(Tr,{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(d){var y=d.t,m=a.map(function(p,g){var _=h&&h[g];if(_){var b=tt(_.x,p.x),x=tt(_.y,p.y),v=tt(_.width,p.width),w=tt(_.height,p.height);return nt(nt({},p),{},{x:b(y),y:x(y),width:v(y),height:w(y)})}if(o==="horizontal"){var S=tt(0,p.height),A=S(y);return nt(nt({},p),{},{y:p.y+p.height-A,height:A})}var P=tt(0,p.width),M=P(y);return nt(nt({},p),{},{width:M})});return O.createElement(Te,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!mi(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=me(this.props.background,!1);return a.map(function(l,c){l.value;var f=l.background,h=e6(l,QG);if(!f)return null;var d=nt(nt(nt(nt(nt({},h),{},{fill:"#eee"},f),u),Ko(n.props,l,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(lO,cl({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},d))})}},{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=Ht(c,Ba);if(!f)return null;var h=l==="vertical"?o[0].height/2:o[0].width/2,d=function(p,g){var _=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:_,errorVal:ft(p,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Te,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:u,layout:l,offset:h,dataPointFormatter:d})}))}},{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,d=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=_e("recharts-bar",o),_=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,x=_||b,v=pe(m)?this.id:m;return O.createElement(Te,{className:g},_||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(v)},O.createElement("rect",{x:_?l:l-f/2,y:b?c:c-h/2,width:_?f:f*2,height:b?h:h*2}))):null,O.createElement(Te,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(v,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,v),(!d||p)&&zr.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);mC=Fa;On(Fa,"displayName","Bar");On(Fa,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Dn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});On(Fa,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,a=t.xAxis,o=t.yAxis,s=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,c=t.dataStartIndex,f=t.displayedData,h=t.offset,d=PU(n,r);if(!d)return null;var y=e.layout,m=r.type.defaultProps,p=m!==void 0?nt(nt({},m),r.props):r.props,g=p.dataKey,_=p.children,b=p.minPointSize,x=y==="horizontal"?o:a,v=l?x.scale.domain():null,w=RU({numericAxis:x}),S=Ht(_,Og),A=f.map(function(P,M){var T,E,C,I,k,j;l?T=TU(l[c+M],v):(T=ft(P,g),Array.isArray(T)||(T=[w,T]));var $=JG(b,mC.defaultProps.minPointSize)(T[1],M);if(y==="horizontal"){var N,B=[o.scale(T[0]),o.scale(T[1])],R=B[0],L=B[1];E=Hw({axis:a,ticks:s,bandSize:i,offset:d.offset,entry:P,index:M}),C=(N=L??R)!==null&&N!==void 0?N:void 0,I=d.size;var q=R-L;if(k=Number.isNaN(q)?0:q,j={x:E,y:o.y,width:I,height:o.height},Math.abs($)>0&&Math.abs(k)<Math.abs($)){var U=Pr(k||$)*(Math.abs($)-Math.abs(k));C-=U,k+=U}}else{var X=[a.scale(T[0]),a.scale(T[1])],V=X[0],te=X[1];if(E=V,C=Hw({axis:o,ticks:u,bandSize:i,offset:d.offset,entry:P,index:M}),I=te-V,k=d.size,j={x:a.x,y:C,width:a.width,height:k},Math.abs($)>0&&Math.abs(I)<Math.abs($)){var re=Pr(I||$)*(Math.abs($)-Math.abs(I));I+=re}}return nt(nt(nt({},P),{},{x:E,y:C,width:I,height:k,value:l?T:T[1],payload:P,background:j},S&&S[M]&&S[M].props),{},{tooltipPayload:[JE(r,P)],tooltipPosition:{x:E+I/2,y:C+k/2}})});return nt({data:A,layout:y},h)});function bs(t){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(t)}function l6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gC(n.key),n)}}function c6(t,e,r){return e&&hO(t.prototype,e),r&&hO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function dO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function wr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dO(Object(r),!0).forEach(function(n){rc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rc(t,e,r){return e=gC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gC(t){var e=f6(t,"string");return bs(e)=="symbol"?e:e+""}function f6(t,e){if(bs(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(bs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var h6=function(e,r,n,i,a){var o=e.width,s=e.height,u=e.layout,l=e.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=!!Zt(l,Fa);return c.reduce(function(d,y){var m=r[y],p=m.orientation,g=m.domain,_=m.padding,b=_===void 0?{}:_,x=m.mirror,v=m.reversed,w="".concat(p).concat(x?"Mirror":""),S,A,P,M,T;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=g[1]-g[0],C=1/0,I=m.categoricalDomain.sort(OF);if(I.forEach(function(X,V){V>0&&(C=Math.min((X||0)-(I[V-1]||0),C))}),Number.isFinite(C)){var k=C/E,j=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=k*j/2),m.padding==="no-gap"){var $=pi(e.barCategoryGap,k*j),N=k*j/2;S=N-$-(N-$)/j*$}}}i==="xAxis"?A=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?A=u==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(S||0),n.top+n.height-(b.bottom||0)-(S||0)]:A=m.range,v&&(A=[A[1],A[0]]);var B=OU(m,a,h),R=B.scale,L=B.realScaleType;R.domain(g).range(A),AU(R);var q=IU(R,wr(wr({},m),{},{realScaleType:L}));i==="xAxis"?(T=p==="top"&&!x||p==="bottom"&&x,P=n.left,M=f[w]-T*m.height):i==="yAxis"&&(T=p==="left"&&!x||p==="right"&&x,P=f[w]-T*m.width,M=n.top);var U=wr(wr(wr({},m),q),{},{realScaleType:L,x:P,y:M,scale:R,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return U.bandSize=Ju(U,q),!m.hide&&i==="xAxis"?f[w]+=(T?-1:1)*U.height:m.hide||(f[w]+=(T?-1:1)*U.width),wr(wr({},d),{},rc({},y,U))},{})},bC=function(e,r){var n=e.x,i=e.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)}},d6=function(e){var r=e.x1,n=e.y1,i=e.x2,a=e.y2;return bC({x:r,y:n},{x:i,y:a})},_C=(function(){function t(e){l6(this,t),this.scale=e}return c6(t,[{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 t(r)}}])})();rc(_C,"EPS",1e-4);var Mg=function(e){var r=Object.keys(e).reduce(function(n,i){return wr(wr({},n),{},rc({},i,_C.create(e[i])))},{});return wr(wr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return BG(i,function(u,l){return r[l].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return pC(i,function(a,o){return r[o].isInRange(a)})}})};function p6(t){return(t%180+180)%180}var m6=function(e){var r=e.width,n=e.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=p6(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)},Wp,pO;function y6(){if(pO)return Wp;pO=1;var t=$n(),e=ks(),r=js();function n(i){return function(a,o,s){var u=Object(a);if(!e(a)){var l=t(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 Wp=n,Wp}var Hp,mO;function v6(){if(mO)return Hp;mO=1;var t=vE(),e=$n(),r=og(),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)),t(a,e(o,3),l)}return Hp=i,Hp}var Gp,yO;function g6(){if(yO)return Gp;yO=1;var t=y6(),e=v6(),r=t(e);return Gp=r,Gp}var b6=g6();const _6=$e(b6);var x6=BT();const w6=$e(x6);var S6=w6(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")});function hl(t){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hl(t)}var kg=O.createContext(void 0),jg=O.createContext(void 0),xC=O.createContext(void 0),wC=O.createContext({}),SC=O.createContext(void 0),OC=O.createContext(0),AC=O.createContext(0),vO=function(e){var r=e.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=e.clipPathId,s=e.children,u=e.width,l=e.height,c=S6(a);return O.createElement(kg.Provider,{value:n},O.createElement(jg.Provider,{value:i},O.createElement(wC.Provider,{value:a},O.createElement(xC.Provider,{value:c},O.createElement(SC.Provider,{value:o},O.createElement(OC.Provider,{value:l},O.createElement(AC.Provider,{value:u},s)))))))},O6=function(){return O.useContext(SC)};function PC(t){var e=Object.keys(t);return e.length===0?"There are no available ids.":"Available ids are: ".concat(e,".")}var TC=function(e){var r=O.useContext(kg);r==null&&(process.env.NODE_ENV!=="production"?qt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):qt());var n=r[e];return n==null&&(process.env.NODE_ENV!=="production"?qt(!1,'Could not find xAxis by id "'.concat(e,'" [').concat(hl(e),"]. ").concat(PC(r))):qt()),n},A6=function(){var e=O.useContext(kg);return gn(e)},P6=function(){var e=O.useContext(jg),r=_6(e,function(n){return pC(n.domain,Number.isFinite)});return r||gn(e)},EC=function(e){var r=O.useContext(jg);r==null&&(process.env.NODE_ENV!=="production"?qt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):qt());var n=r[e];return n==null&&(process.env.NODE_ENV!=="production"?qt(!1,'Could not find yAxis by id "'.concat(e,'" [').concat(hl(e),"]. ").concat(PC(r))):qt()),n},T6=function(){var e=O.useContext(xC);return e},E6=function(){return O.useContext(wC)},Ig=function(){return O.useContext(AC)},Rg=function(){return O.useContext(OC)};function _a(t){"@babel/helpers - typeof";return _a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(t)}function C6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MC(n.key),n)}}function k6(t,e,r){return e&&M6(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function j6(t,e,r){return e=dl(e),I6(t,CC()?Reflect.construct(e,r||[],dl(t).constructor):e.apply(t,r))}function I6(t,e){if(e&&(_a(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R6(t)}function R6(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CC=function(){return!!t})()}function dl(t){return dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dl(t)}function $6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jy(t,e)}function jy(t,e){return jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jy(t,e)}function gO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function bO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gO(Object(r),!0).forEach(function(n){$g(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $g(t,e,r){return e=MC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MC(t){var e=D6(t,"string");return _a(e)=="symbol"?e:e+""}function D6(t,e){if(_a(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(_a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function N6(t,e){return F6(t)||B6(t,e)||q6(t,e)||L6()}function L6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
150
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q6(t,e){if(t){if(typeof t=="string")return _O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _O(t,e)}}function _O(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function B6(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 F6(t){if(Array.isArray(t))return t}function Iy(){return Iy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Iy.apply(this,arguments)}var z6=function(e,r){var n;return O.isValidElement(e)?n=O.cloneElement(e,r):ye(e)?n=e(r):n=O.createElement("line",Iy({},r,{className:"recharts-reference-line-line"})),n},U6=function(e,r,n,i,a,o,s,u,l){var c=a.x,f=a.y,h=a.width,d=a.height;if(n){var y=l.y,m=e.y.apply(y,{position:o});if(Ur(l,"discard")&&!e.y.isInRange(m))return null;var p=[{x:c+h,y:m},{x:c,y:m}];return u==="left"?p.reverse():p}if(r){var g=l.x,_=e.x.apply(g,{position:o});if(Ur(l,"discard")&&!e.x.isInRange(_))return null;var b=[{x:_,y:f+d},{x:_,y:f}];return s==="top"?b.reverse():b}if(i){var x=l.segment,v=x.map(function(w){return e.apply(w,{position:o})});return Ur(l,"discard")&&DG(v,function(w){return!e.isInRange(w)})?null:v}return null};function W6(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,a=t.yAxisId,o=t.shape,s=t.className,u=t.alwaysShow,l=O6(),c=TC(i),f=EC(a),h=T6();if(!l||!h)return null;an(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Mg({x:c.scale,y:f.scale}),y=ct(e),m=ct(r),p=n&&n.length===2,g=U6(d,y,m,p,h,t.position,c.orientation,f.orientation,t);if(!g)return null;var _=N6(g,2),b=_[0],x=b.x,v=b.y,w=_[1],S=w.x,A=w.y,P=Ur(t,"hidden")?"url(#".concat(l,")"):void 0,M=bO(bO({clipPath:P},me(t,!0)),{},{x1:x,y1:v,x2:S,y2:A});return O.createElement(Te,{className:_e("recharts-reference-line",s)},z6(o,M),Tt.renderCallByParent(t,d6({x1:x,y1:v,x2:S,y2:A})))}var nc=(function(t){function e(){return C6(this,e),j6(this,e,arguments)}return $6(e,t),k6(e,[{key:"render",value:function(){return O.createElement(W6,this.props)}}])})(O.Component);$g(nc,"displayName","ReferenceLine");$g(nc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Ry(){return Ry=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ry.apply(this,arguments)}function xa(t){"@babel/helpers - typeof";return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(t)}function xO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function wO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xO(Object(r),!0).forEach(function(n){ic(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function H6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G6(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jC(n.key),n)}}function K6(t,e,r){return e&&G6(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function X6(t,e,r){return e=pl(e),Y6(t,kC()?Reflect.construct(e,r||[],pl(t).constructor):e.apply(t,r))}function Y6(t,e){if(e&&(xa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V6(t)}function V6(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kC=function(){return!!t})()}function pl(t){return pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pl(t)}function Z6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$y(t,e)}function $y(t,e){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$y(t,e)}function ic(t,e,r){return e=jC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jC(t){var e=J6(t,"string");return xa(e)=="symbol"?e:e+""}function J6(t,e){if(xa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(xa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Q6=function(e){var r=e.x,n=e.y,i=e.xAxis,a=e.yAxis,o=Mg({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Ur(e,"discard")&&!o.isInRange(s)?null:s},ac=(function(t){function e(){return H6(this,e),X6(this,e,arguments)}return Z6(e,t),K6(e,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,u=n.clipPathId,l=ct(i),c=ct(a);if(an(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var f=Q6(this.props);if(!f)return null;var h=f.x,d=f.y,y=this.props,m=y.shape,p=y.className,g=Ur(this.props,"hidden")?"url(#".concat(u,")"):void 0,_=wO(wO({clipPath:g},me(this.props,!0)),{},{cx:h,cy:d});return O.createElement(Te,{className:_e("recharts-reference-dot",p)},e.renderDot(m,_),Tt.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(O.Component);ic(ac,"displayName","ReferenceDot");ic(ac,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ic(ac,"renderDot",function(t,e){var r;return O.isValidElement(t)?r=O.cloneElement(t,e):ye(t)?r=t(e):r=O.createElement(Ql,Ry({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),r});function Dy(){return Dy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dy.apply(this,arguments)}function wa(t){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wa(t)}function SO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function OO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?SO(Object(r),!0).forEach(function(n){oc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function eK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tK(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,RC(n.key),n)}}function rK(t,e,r){return e&&tK(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function nK(t,e,r){return e=ml(e),iK(t,IC()?Reflect.construct(e,r||[],ml(t).constructor):e.apply(t,r))}function iK(t,e){if(e&&(wa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aK(t)}function aK(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function IC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IC=function(){return!!t})()}function ml(t){return ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ml(t)}function oK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ny(t,e)}function Ny(t,e){return Ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ny(t,e)}function oc(t,e,r){return e=RC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RC(t){var e=sK(t,"string");return wa(e)=="symbol"?e:e+""}function sK(t,e){if(wa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var uK=function(e,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=Mg({x:c.scale,y:f.scale}),d={x:e?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 Ur(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:bC(d,y)},sc=(function(t){function e(){return eK(this,e),nK(this,e,arguments)}return oK(e,t),rK(e,[{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;an(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=ct(i),h=ct(a),d=ct(o),y=ct(s),m=this.props.shape;if(!f&&!h&&!d&&!y&&!m)return null;var p=uK(f,h,d,y,this.props);if(!p&&!m)return null;var g=Ur(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(Te,{className:_e("recharts-reference-area",u)},e.renderRect(m,OO(OO({clipPath:g},me(this.props,!0)),p)),Tt.renderCallByParent(this.props,p))}}])})(O.Component);oc(sc,"displayName","ReferenceArea");oc(sc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});oc(sc,"renderRect",function(t,e){var r;return O.isValidElement(t)?r=O.cloneElement(t,e):ye(t)?r=t(e):r=O.createElement(Cg,Dy({},e,{className:"recharts-reference-area-rect"})),r});function $C(t,e,r){if(e<1)return[];if(e===1&&r===void 0)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function lK(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return m6(n,r)}function cK(t,e,r){var n=r==="width",i=t.x,a=t.y,o=t.width,s=t.height;return e===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function yl(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var a=r();return t*(e-t*a/2-n)>=0&&t*(e+t*a/2-i)<=0}function fK(t,e){return $C(t,e+1)}function hK(t,e,r,n,i){for(var a=(n||[]).slice(),o=e.start,s=e.end,u=0,l=1,c=o,f=function(){var y=n==null?void 0:n[u];if(y===void 0)return{v:$C(n,l)};var m=u,p,g=function(){return p===void 0&&(p=r(y,m)),p},_=y.coordinate,b=u===0||yl(t,_,g,c,s);b||(u=0,c=o,l+=1),b&&(c=_+t*(g()/2+i),u+=l)},h;l<=a.length;)if(h=f(),h)return h.v;return[]}function _s(t){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_s(t)}function AO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?AO(Object(r),!0).forEach(function(n){dK(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function dK(t,e,r){return e=pK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pK(t){var e=mK(t,"string");return _s(e)=="symbol"?e:e+""}function mK(t,e){if(_s(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(_s(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yK(t,e,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=e.start,u=e.end,l=function(h){var d=a[h],y,m=function(){return y===void 0&&(y=r(d,h)),y};if(h===o-1){var p=t*(d.coordinate+t*m()/2-u);a[h]=d=Pt(Pt({},d),{},{tickCoord:p>0?d.coordinate-p*t:d.coordinate})}else a[h]=d=Pt(Pt({},d),{},{tickCoord:d.coordinate});var g=yl(t,d.tickCoord,m,s,u);g&&(u=d.tickCoord-t*(m()/2+i),a[h]=Pt(Pt({},d),{},{isShow:!0}))},c=o-1;c>=0;c--)l(c);return a}function vK(t,e,r,n,i,a){var o=(n||[]).slice(),s=o.length,u=e.start,l=e.end;if(a){var c=n[s-1],f=r(c,s-1),h=t*(c.coordinate+t*f/2-l);o[s-1]=c=Pt(Pt({},c),{},{tickCoord:h>0?c.coordinate-h*t:c.coordinate});var d=yl(t,c.tickCoord,function(){return f},u,l);d&&(l=c.tickCoord-t*(f/2+i),o[s-1]=Pt(Pt({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(_){var b=o[_],x,v=function(){return x===void 0&&(x=r(b,_)),x};if(_===0){var w=t*(b.coordinate-t*v()/2-u);o[_]=b=Pt(Pt({},b),{},{tickCoord:w<0?b.coordinate-w*t:b.coordinate})}else o[_]=b=Pt(Pt({},b),{},{tickCoord:b.coordinate});var S=yl(t,b.tickCoord,v,u,l);S&&(u=b.tickCoord+t*(v()/2+i),o[_]=Pt(Pt({},b),{},{isShow:!0}))},p=0;p<y;p++)m(p);return o}function Dg(t,e,r){var n=t.tick,i=t.ticks,a=t.viewBox,o=t.minTickGap,s=t.orientation,u=t.interval,l=t.tickFormatter,c=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(J(u)||Dn.isSsr)return fK(i,typeof u=="number"&&J(u)?u:0);var h=[],d=s==="top"||s==="bottom"?"width":"height",y=c&&d==="width"?Ao(c,{fontSize:e,letterSpacing:r}):{width:0,height:0},m=function(b,x){var v=ye(l)?l(b.value,x):b.value;return d==="width"?lK(Ao(v,{fontSize:e,letterSpacing:r}),y,f):Ao(v,{fontSize:e,letterSpacing:r})[d]},p=i.length>=2?Pr(i[1].coordinate-i[0].coordinate):1,g=cK(a,p,d);return u==="equidistantPreserveStart"?hK(p,g,m,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=vK(p,g,m,i,o,u==="preserveStartEnd"):h=yK(p,g,m,i,o),h.filter(function(_){return _.isShow}))}var gK=["viewBox"],bK=["viewBox"],_K=["ticks"];function Sa(t){"@babel/helpers - typeof";return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sa(t)}function qi(){return qi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qi.apply(this,arguments)}function PO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ut(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?PO(Object(r),!0).forEach(function(n){Ng(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Kp(t,e){if(t==null)return{};var r=xK(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xK(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function wK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,NC(n.key),n)}}function SK(t,e,r){return e&&TO(t.prototype,e),r&&TO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function OK(t,e,r){return e=vl(e),AK(t,DC()?Reflect.construct(e,r||[],vl(t).constructor):e.apply(t,r))}function AK(t,e){if(e&&(Sa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PK(t)}function PK(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DC=function(){return!!t})()}function vl(t){return vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vl(t)}function TK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ly(t,e)}function Ly(t,e){return Ly=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ly(t,e)}function Ng(t,e,r){return e=NC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function NC(t){var e=EK(t,"string");return Sa(e)=="symbol"?e:e+""}function EK(t,e){if(Sa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var za=(function(t){function e(r){var n;return wK(this,e),n=OK(this,e,[r]),n.state={fontSize:"",letterSpacing:""},n}return TK(e,t),SK(e,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Kp(n,gK),s=this.props,u=s.viewBox,l=Kp(s,bK);return!Xi(a,u)||!Xi(o,l)||!Xi(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,d,y,m,p,g,_,b=f?-1:1,x=n.tickSize||c,v=J(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":d=y=n.coordinate,p=o+ +!f*u,m=p-b*x,_=m-b*h,g=v;break;case"left":m=p=n.coordinate,y=a+ +!f*s,d=y-b*x,g=d-b*h,_=v;break;case"right":m=p=n.coordinate,y=a+ +f*s,d=y+b*x,g=d+b*h,_=v;break;default:d=y=n.coordinate,p=o+ +f*u,m=p+b*x,_=m+b*h,g=v;break}return{line:{x1:d,y1:m,x2:y,y2:p},tick:{x:g,y:_}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.orientation,l=n.mirror,c=n.axisLine,f=ut(ut(ut({},me(this.props,!1)),me(c,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!l||u==="bottom"&&l);f=ut(ut({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var d=+(u==="left"&&!l||u==="right"&&l);f=ut(ut({},f),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+s})}return O.createElement("line",qi({},f,{className:_e("recharts-cartesian-axis-line",vr(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,d=Dg(ut(ut({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),p=me(this.props,!1),g=me(c,!1),_=ut(ut({},p),{},{fill:"none"},me(u,!1)),b=d.map(function(x,v){var w=o.getTickLineCoord(x),S=w.line,A=w.tick,P=ut(ut(ut(ut({textAnchor:y,verticalAnchor:m},p),{},{stroke:"none",fill:l},g),A),{},{index:v,payload:x,visibleTicksCount:d.length,tickFormatter:f});return O.createElement(Te,qi({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},Ko(o.props,x,v)),u&&O.createElement("line",qi({},_,S,{className:_e("recharts-cartesian-axis-tick-line",vr(u,"className"))})),c&&e.renderTickItem(c,P,"".concat(ye(f)?f(x.value,v):x.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,u=i.ticksGenerator,l=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,d=Kp(f,_K),y=h;return ye(u)&&(y=h&&h.length>0?u(this.props):u(d)),o<=0||s<=0||!y||!y.length?null:O.createElement(Te,{className:_e("recharts-cartesian-axis",l),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Tt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=_e(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,ut(ut({},i),{},{className:s})):ye(n)?o=n(ut(ut({},i),{},{className:s})):o=O.createElement(Xu,qi({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);Ng(za,"displayName","CartesianAxis");Ng(za,"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 CK=["x1","y1","x2","y2","key"],MK=["offset"];function vi(t){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vi(t)}function EO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Et(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?EO(Object(r),!0).forEach(function(n){kK(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function kK(t,e,r){return e=jK(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jK(t){var e=IK(t,"string");return vi(e)=="symbol"?e:e+""}function IK(t,e){if(vi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ei(){return ei=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ei.apply(this,arguments)}function CO(t,e){if(t==null)return{};var r=RK(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function RK(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var $K=function(e){var r=e.fill;if(!r||r==="none")return null;var n=e.fillOpacity,i=e.x,a=e.y,o=e.width,s=e.height,u=e.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 LC(t,e){var r;if(O.isValidElement(t))r=O.cloneElement(t,e);else if(ye(t))r=t(e);else{var n=e.x1,i=e.y1,a=e.x2,o=e.y2,s=e.key,u=CO(e,CK),l=me(u,!1);l.offset;var c=CO(l,MK);r=O.createElement("line",ei({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function DK(t){var e=t.x,r=t.width,n=t.horizontal,i=n===void 0?!0:n,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,u){var l=Et(Et({},t),{},{x1:e,y1:s,x2:e+r,y2:s,key:"line-".concat(u),index:u});return LC(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function NK(t){var e=t.y,r=t.height,n=t.vertical,i=n===void 0?!0:n,a=t.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,u){var l=Et(Et({},t),{},{x1:s,y1:e,x2:s,y2:e+r,key:"line-".concat(u),index:u});return LC(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function LK(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,o=t.height,s=t.horizontalPoints,u=t.horizontal,l=u===void 0?!0:u;if(!l||!e||!e.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,d){return h-d});i!==c[0]&&c.unshift(0);var f=c.map(function(h,d){var y=!c[d+1],m=y?i+o-h:c[d+1]-h;if(m<=0)return null;var p=d%e.length;return O.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:m,width:a,stroke:"none",fill:e[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function qK(t){var e=t.vertical,r=e===void 0?!0:e,n=t.verticalFill,i=t.fillOpacity,a=t.x,o=t.y,s=t.width,u=t.height,l=t.verticalPoints;if(!r||!n||!n.length)return null;var c=l.map(function(h){return Math.round(h+a-a)}).sort(function(h,d){return h-d});a!==c[0]&&c.unshift(0);var f=c.map(function(h,d){var y=!c[d+1],m=y?a+s-h:c[d+1]-h;if(m<=0)return null;var p=d%n.length;return O.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:m,height:u,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var BK=function(e,r){var n=e.xAxis,i=e.width,a=e.height,o=e.offset;return VE(Dg(Et(Et(Et({},za.defaultProps),n),{},{ticks:rn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},FK=function(e,r){var n=e.yAxis,i=e.width,a=e.height,o=e.offset;return VE(Dg(Et(Et(Et({},za.defaultProps),n),{},{ticks:rn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ii={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function qC(t){var e,r,n,i,a,o,s=Ig(),u=Rg(),l=E6(),c=Et(Et({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:Ii.stroke,fill:(r=t.fill)!==null&&r!==void 0?r:Ii.fill,horizontal:(n=t.horizontal)!==null&&n!==void 0?n:Ii.horizontal,horizontalFill:(i=t.horizontalFill)!==null&&i!==void 0?i:Ii.horizontalFill,vertical:(a=t.vertical)!==null&&a!==void 0?a:Ii.vertical,verticalFill:(o=t.verticalFill)!==null&&o!==void 0?o:Ii.verticalFill,x:J(t.x)?t.x:l.left,y:J(t.y)?t.y:l.top,width:J(t.width)?t.width:l.width,height:J(t.height)?t.height:l.height}),f=c.x,h=c.y,d=c.width,y=c.height,m=c.syncWithTicks,p=c.horizontalValues,g=c.verticalValues,_=A6(),b=P6();if(!J(d)||d<=0||!J(y)||y<=0||!J(f)||f!==+f||!J(h)||h!==+h)return null;var x=c.verticalCoordinatesGenerator||BK,v=c.horizontalCoordinatesGenerator||FK,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&ye(v)){var A=p&&p.length,P=v({yAxis:b?Et(Et({},b),{},{ticks:A?p:b.ticks}):void 0,width:s,height:u,offset:l},A?!0:m);an(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(vi(P),"]")),Array.isArray(P)&&(w=P)}if((!S||!S.length)&&ye(x)){var M=g&&g.length,T=x({xAxis:_?Et(Et({},_),{},{ticks:M?g:_.ticks}):void 0,width:s,height:u,offset:l},M?!0:m);an(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(vi(T),"]")),Array.isArray(T)&&(S=T)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement($K,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(DK,ei({},c,{offset:l,horizontalPoints:w,xAxis:_,yAxis:b})),O.createElement(NK,ei({},c,{offset:l,verticalPoints:S,xAxis:_,yAxis:b})),O.createElement(LK,ei({},c,{horizontalPoints:w})),O.createElement(qK,ei({},c,{verticalPoints:S})))}qC.displayName="CartesianGrid";var zK=["type","layout","connectNulls","ref"],UK=["key"];function Oa(t){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(t)}function MO(t,e){if(t==null)return{};var r=WK(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function WK(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Eo(){return Eo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Eo.apply(this,arguments)}function kO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Yt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kO(Object(r),!0).forEach(function(n){Sr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ri(t){return XK(t)||KK(t)||GK(t)||HK()}function HK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
151
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GK(t,e){if(t){if(typeof t=="string")return qy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qy(t,e)}}function KK(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function XK(t){if(Array.isArray(t))return qy(t)}function qy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function YK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FC(n.key),n)}}function VK(t,e,r){return e&&jO(t.prototype,e),r&&jO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZK(t,e,r){return e=gl(e),JK(t,BC()?Reflect.construct(e,r||[],gl(t).constructor):e.apply(t,r))}function JK(t,e){if(e&&(Oa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QK(t)}function QK(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BC=function(){return!!t})()}function gl(t){return gl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gl(t)}function eX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&By(t,e)}function By(t,e){return By=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},By(t,e)}function Sr(t,e,r){return e=FC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FC(t){var e=tX(t,"string");return Oa(e)=="symbol"?e:e+""}function tX(t,e){if(Oa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var uc=(function(t){function e(){var r;YK(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZK(this,e,[].concat(i)),Sr(r,"state",{isAnimationFinished:!0,totalLength:0}),Sr(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Sr(r,"getStrokeDasharray",function(o,s,u){var l=u.reduce(function(g,_){return g+_});if(!l)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/l),f=o%l,h=s-o,d=[],y=0,m=0;y<u.length;m+=u[y],++y)if(m+u[y]>f){d=[].concat(Ri(u.slice(0,y)),[f-m]);break}var p=d.length%2===0?[0,h]:[h];return[].concat(Ri(e.repeat(u,c)),Ri(d),p).map(function(g){return"".concat(g,"px")}).join(", ")}),Sr(r,"id",Oi("recharts-line-")),Sr(r,"pathRef",function(o){r.mainCurve=o}),Sr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Sr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return eX(e,t),VK(e,[{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=Ht(c,Ba);if(!f)return null;var h=function(m,p){return{x:m.x,y:m.y,value:m.value,errorVal:ft(m.payload,p)}},d={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Te,d,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=me(this.props,!1),h=me(u,!0),d=l.map(function(m,p){var g=Yt(Yt(Yt({key:"dot-".concat(p),r:3},f),h),{},{index:p,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:l});return e.renderDotItem(u,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Te,Eo({className:"recharts-line-dots",key:"dots"},y),d)}},{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=MO(s,zK),h=Yt(Yt(Yt({},me(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(li,Eo({},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,d=o.animationId,y=o.animateNewValues,m=o.width,p=o.height,g=this.state,_=g.prevPoints,b=g.totalLength;return O.createElement(Tr,{begin:c,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var v=x.t;if(_){var w=_.length/s.length,S=s.map(function(E,C){var I=Math.floor(C*w);if(_[I]){var k=_[I],j=tt(k.x,E.x),$=tt(k.y,E.y);return Yt(Yt({},E),{},{x:j(v),y:$(v)})}if(y){var N=tt(m*2,E.x),B=tt(p/2,E.y);return Yt(Yt({},E),{},{x:N(v),y:B(v)})}return Yt(Yt({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=tt(0,b),P=A(v),M;if(u){var T="".concat(u).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});M=a.getStrokeDasharray(P,b,T)}else M=a.generateSimpleStrokeDasharray(b,P);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||!mi(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,d=i.width,y=i.height,m=i.isAnimationActive,p=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,_=s.length===1,b=_e("recharts-line",u),x=l&&l.allowDataOverflow,v=c&&c.allowDataOverflow,w=x||v,S=pe(p)?this.id:p,A=(n=me(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,M=P===void 0?3:P,T=A.strokeWidth,E=T===void 0?2:T,C=hE(o)?o:{},I=C.clipDot,k=I===void 0?!0:I,j=M*2+E;return O.createElement(Te,{className:b},x||v?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:x?h:h-d/2,y:v?f:f-y/2,width:x?d:d*2,height:v?y:y*2})),!k&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-j/2,y:f-j/2,width:d+j,height:y+j}))):null,!_&&this.renderCurve(w,S),this.renderErrorBar(w,S),(_||o)&&this.renderDots(w,k,S),(!m||g)&&zr.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(Ri(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Ri(o),Ri(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(ye(n))a=n(i);else{var o=i.key,s=MO(i,UK),u=_e("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Ql,Eo({key:o},s,{className:u}))}return a}}])})(O.PureComponent);Sr(uc,"displayName","Line");Sr(uc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Dn.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Sr(uc,"getComposedData",function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,a=t.yAxisTicks,o=t.dataKey,s=t.bandSize,u=t.displayedData,l=t.offset,c=e.layout,f=u.map(function(h,d){var y=ft(h,o);return c==="horizontal"?{x:pa({axis:r,ticks:i,bandSize:s,entry:h,index:d}),y:pe(y)?null:n.scale(y),value:y,payload:h}:{x:pe(y)?null:r.scale(y),y:pa({axis:n,ticks:a,bandSize:s,entry:h,index:d}),value:y,payload:h}});return Yt({points:f,layout:c},l)});var rX=["layout","type","stroke","connectNulls","isRange","ref"],nX=["key"],zC;function Aa(t){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aa(t)}function UC(t,e){if(t==null)return{};var r=iX(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function iX(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function ti(){return ti=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ti.apply(this,arguments)}function IO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?IO(Object(r),!0).forEach(function(n){Br(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function aX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HC(n.key),n)}}function oX(t,e,r){return e&&RO(t.prototype,e),r&&RO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function sX(t,e,r){return e=bl(e),uX(t,WC()?Reflect.construct(e,r||[],bl(t).constructor):e.apply(t,r))}function uX(t,e){if(e&&(Aa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lX(t)}function lX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WC=function(){return!!t})()}function bl(t){return bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bl(t)}function cX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fy(t,e)}function Fy(t,e){return Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fy(t,e)}function Br(t,e,r){return e=HC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HC(t){var e=fX(t,"string");return Aa(e)=="symbol"?e:e+""}function fX(t,e){if(Aa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Aa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ln=(function(t){function e(){var r;aX(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=sX(this,e,[].concat(i)),Br(r,"state",{isAnimationFinished:!0}),Br(r,"id",Oi("recharts-area-")),Br(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ye(o)&&o()}),Br(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ye(o)&&o()}),r}return cX(e,t),oX(e,[{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=me(this.props,!1),d=me(l,!0),y=c.map(function(p,g){var _=yn(yn(yn({key:"dot-".concat(g),r:3},h),d),{},{index:g,cx:p.x,cy:p.y,dataKey:f,value:p.value,payload:p.payload,points:c});return e.renderDotItem(l,_)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Te,ti({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].x,l=o[o.length-1].x,c=n*Math.abs(u-l),f=Sn(o.map(function(h){return h.y||0}));return J(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Sn(a.map(function(h){return h.y||0})),f)),J(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=Sn(o.map(function(h){return h.x||0}));return J(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Sn(a.map(function(h){return h.x||0})),f)),J(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 d=UC(s,rX);return O.createElement(Te,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(li,ti({},me(d,!0),{points:n,connectNulls:f,type:l,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(li,ti({},me(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(li,ti({},me(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,d=o.animationId,y=this.state,m=y.prevPoints,p=y.prevBaseLine;return O.createElement(Tr,{begin:c,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var _=g.t;if(m){var b=m.length/s.length,x=s.map(function(A,P){var M=Math.floor(P*b);if(m[M]){var T=m[M],E=tt(T.x,A.x),C=tt(T.y,A.y);return yn(yn({},A),{},{x:E(_),y:C(_)})}return A}),v;if(J(u)&&typeof u=="number"){var w=tt(p,u);v=w(_)}else if(pe(u)||Na(u)){var S=tt(p,0);v=S(_)}else v=u.map(function(A,P){var M=Math.floor(P*b);if(p[M]){var T=p[M],E=tt(T.x,A.x),C=tt(T.y,A.y);return yn(yn({},A),{},{x:E(_),y:C(_)})}return A});return a.renderAreaStatically(x,v,n,i)}return O.createElement(Te,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(_))),O.createElement(Te,{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||!mi(c,o)||!mi(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,d=i.width,y=i.height,m=i.isAnimationActive,p=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,_=s.length===1,b=_e("recharts-area",u),x=f&&f.allowDataOverflow,v=h&&h.allowDataOverflow,w=x||v,S=pe(p)?this.id:p,A=(n=me(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,M=P===void 0?3:P,T=A.strokeWidth,E=T===void 0?2:T,C=hE(o)?o:{},I=C.clipDot,k=I===void 0?!0:I,j=M*2+E;return O.createElement(Te,{className:b},x||v?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:x?c:c-d/2,y:v?l:l-y/2,width:x?d:d*2,height:v?y:y*2})),!k&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-j/2,y:l-j/2,width:d+j,height:y+j}))):null,_?null:this.renderArea(w,S),(o||_)&&this.renderDots(w,k,S),(!m||g)&&zr.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);zC=Ln;Br(Ln,"displayName","Area");Br(Ln,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Dn.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Br(Ln,"getBaseValue",function(t,e,r,n){var i=t.layout,a=t.baseValue,o=e.props.baseValue,s=o??a;if(J(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]});Br(Ln,"getComposedData",function(t){var e=t.props,r=t.item,n=t.xAxis,i=t.yAxis,a=t.xAxisTicks,o=t.yAxisTicks,s=t.bandSize,u=t.dataKey,l=t.stackedData,c=t.dataStartIndex,f=t.displayedData,h=t.offset,d=e.layout,y=l&&l.length,m=zC.getBaseValue(e,r,n,i),p=d==="horizontal",g=!1,_=f.map(function(x,v){var w;y?w=l[c+v]:(w=ft(x,u),Array.isArray(w)?g=!0:w=[m,w]);var S=w[1]==null||y&&ft(x,u)==null;return p?{x:pa({axis:n,ticks:a,bandSize:s,entry:x,index:v}),y:S?null:i.scale(w[1]),value:w,payload:x}:{x:S?null:n.scale(w[1]),y:pa({axis:i,ticks:o,bandSize:s,entry:x,index:v}),value:w,payload:x}}),b;return y||g?b=_.map(function(x){var v=Array.isArray(x.value)?x.value[0]:null;return p?{x:x.x,y:v!=null&&x.y!=null?i.scale(v):null}:{x:v!=null?n.scale(v):null,y:x.y}}):b=p?i.scale(m):n.scale(m),yn({points:_,baseLine:b,layout:d,isRange:g},h)});Br(Ln,"renderDotItem",function(t,e){var r;if(O.isValidElement(t))r=O.cloneElement(t,e);else if(ye(t))r=t(e);else{var n=_e("recharts-area-dot",typeof t!="boolean"?t.className:""),i=e.key,a=UC(e,nX);r=O.createElement(Ql,ti({},a,{key:i,className:n}))}return r});function Pa(t){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(t)}function hX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,XC(n.key),n)}}function pX(t,e,r){return e&&dX(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function mX(t,e,r){return e=_l(e),yX(t,GC()?Reflect.construct(e,r||[],_l(t).constructor):e.apply(t,r))}function yX(t,e){if(e&&(Pa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vX(t)}function vX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function GC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GC=function(){return!!t})()}function _l(t){return _l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_l(t)}function gX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zy(t,e)}function zy(t,e){return zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zy(t,e)}function KC(t,e,r){return e=XC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XC(t){var e=bX(t,"string");return Pa(e)=="symbol"?e:e+""}function bX(t,e){if(Pa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Pa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var lc=(function(t){function e(){return hX(this,e),mX(this,e,arguments)}return gX(e,t),pX(e,[{key:"render",value:function(){return null}}])})(yr.Component);KC(lc,"displayName","ZAxis");KC(lc,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var _X=["option","isActive"];function Co(){return Co=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Co.apply(this,arguments)}function xX(t,e){if(t==null)return{};var r=wX(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function wX(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function SX(t){var e=t.option,r=t.isActive,n=xX(t,_X);return typeof e=="string"?yr.createElement(Ey,Co({option:yr.createElement(Xl,Co({type:e},n)),isActive:r,shapeType:"symbols"},n)):yr.createElement(Ey,Co({option:e,isActive:r,shapeType:"symbols"},n))}function Ta(t){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ta(t)}function Mo(){return Mo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mo.apply(this,arguments)}function $O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function fr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$O(Object(r),!0).forEach(function(n){An(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function OX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function DO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,VC(n.key),n)}}function AX(t,e,r){return e&&DO(t.prototype,e),r&&DO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function PX(t,e,r){return e=xl(e),TX(t,YC()?Reflect.construct(e,r||[],xl(t).constructor):e.apply(t,r))}function TX(t,e){if(e&&(Ta(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EX(t)}function EX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function YC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YC=function(){return!!t})()}function xl(t){return xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xl(t)}function CX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uy(t,e)}function Uy(t,e){return Uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uy(t,e)}function An(t,e,r){return e=VC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VC(t){var e=MX(t,"string");return Ta(e)=="symbol"?e:e+""}function MX(t,e){if(Ta(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cc=(function(t){function e(){var r;OX(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=PX(this,e,[].concat(i)),An(r,"state",{isAnimationFinished:!1}),An(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),An(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),An(r,"id",Oi("recharts-scatter-")),r}return CX(e,t),AX(e,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,u=a.activeIndex,l=me(this.props,!1);return n.map(function(c,f){var h=u===f,d=h?s:o,y=fr(fr({},l),c);return O.createElement(Te,Mo({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)},Ko(i.props,c,f),{role:"img"}),O.createElement(SX,Mo({option:d,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(Tr,{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 d=h.t,y=a.map(function(m,p){var g=f&&f[p];if(g){var _=tt(g.cx,m.cx),b=tt(g.cy,m.cy),x=tt(g.size,m.size);return fr(fr({},m),{},{cx:_(d),cy:b(d),size:x(d)})}var v=tt(0,m.size);return fr(fr({},m),{},{size:v(d)})});return O.createElement(Te,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||!mi(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=Ht(u,Ba);return l?l.map(function(c,f){var h=c.props,d=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(d,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:d==="x"?"vertical":"horizontal",dataPointFormatter:function(p,g){return{x:p.cx,y:p.cy,value:d==="x"?+p.node.x:+p.node.y,errorVal:ft(p,g)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,u=me(this.props,!1),l=me(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=SF(i),d=h.xmin,y=h.xmax,m=h.a,p=h.b,g=function(x){return m*x+p};c=[{x:d,y:g(d)},{x:y,y:g(y)}]}var _=fr(fr(fr({},u),{},{fill:"none",stroke:u&&u.fill},l),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,_):ye(a)?f=a(_):f=O.createElement(li,Mo({},_,{type:s})),O.createElement(Te,{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,d=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=_e("recharts-scatter",s),_=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,x=_||b,v=pe(y)?this.id:y;return O.createElement(Te,{className:g,clipPath:x?"url(#clipPath-".concat(v,")"):null},_||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(v)},O.createElement("rect",{x:_?c:c-h/2,y:b?f:f-d/2,width:_?h:h*2,height:b?d:d*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(Te,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||p)&&zr.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);An(cc,"displayName","Scatter");An(cc,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Dn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});An(cc,"getComposedData",function(t){var e=t.xAxis,r=t.yAxis,n=t.zAxis,i=t.item,a=t.displayedData,o=t.xAxisTicks,s=t.yAxisTicks,u=t.offset,l=i.props.tooltipType,c=Ht(i.props.children,Og),f=pe(e.dataKey)?i.props.dataKey:e.dataKey,h=pe(r.dataKey)?i.props.dataKey:r.dataKey,d=n&&n.dataKey,y=n?n.range:lc.defaultProps.range,m=y&&y[0],p=e.scale.bandwidth?e.scale.bandwidth():0,g=r.scale.bandwidth?r.scale.bandwidth():0,_=a.map(function(b,x){var v=ft(b,f),w=ft(b,h),S=!pe(d)&&ft(b,d)||"-",A=[{name:pe(e.dataKey)?i.props.name:e.name||e.dataKey,unit:e.unit||"",value:v,payload:b,dataKey:f,type:l},{name:pe(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:d,type:l});var P=pa({axis:e,ticks:o,bandSize:p,entry:b,index:x,dataKey:f}),M=pa({axis:r,ticks:s,bandSize:g,entry:b,index:x,dataKey:h}),T=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(T,0)/Math.PI);return fr(fr({},b),{},{cx:P,cy:M,x:P-E,y:M-E,xAxis:e,yAxis:r,zAxis:n,width:2*E,height:2*E,size:T,node:{x:v,y:w,z:S},tooltipPayload:A,tooltipPosition:{x:P,y:M},payload:b},c&&c[x]&&c[x].props)});return fr({points:_},u)});function Ea(t){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(t)}function kX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,QC(n.key),n)}}function IX(t,e,r){return e&&jX(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function RX(t,e,r){return e=wl(e),$X(t,ZC()?Reflect.construct(e,r||[],wl(t).constructor):e.apply(t,r))}function $X(t,e){if(e&&(Ea(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DX(t)}function DX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZC=function(){return!!t})()}function wl(t){return wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wl(t)}function NX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wy(t,e)}function Wy(t,e){return Wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wy(t,e)}function JC(t,e,r){return e=QC(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QC(t){var e=LX(t,"string");return Ea(e)=="symbol"?e:e+""}function LX(t,e){if(Ea(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Hy(){return Hy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hy.apply(this,arguments)}function qX(t){var e=t.xAxisId,r=Ig(),n=Rg(),i=TC(e);return i==null?null:yr.createElement(za,Hy({},i,{className:_e("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return rn(o,!0)}}))}var fc=(function(t){function e(){return kX(this,e),RX(this,e,arguments)}return NX(e,t),IX(e,[{key:"render",value:function(){return yr.createElement(qX,this.props)}}])})(yr.Component);JC(fc,"displayName","XAxis");JC(fc,"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 Ca(t){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(t)}function BX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rM(n.key),n)}}function zX(t,e,r){return e&&FX(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function UX(t,e,r){return e=Sl(e),WX(t,eM()?Reflect.construct(e,r||[],Sl(t).constructor):e.apply(t,r))}function WX(t,e){if(e&&(Ca(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HX(t)}function HX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eM=function(){return!!t})()}function Sl(t){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sl(t)}function GX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gy(t,e)}function Gy(t,e){return Gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gy(t,e)}function tM(t,e,r){return e=rM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rM(t){var e=KX(t,"string");return Ca(e)=="symbol"?e:e+""}function KX(t,e){if(Ca(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Ky(){return Ky=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ky.apply(this,arguments)}var XX=function(e){var r=e.yAxisId,n=Ig(),i=Rg(),a=EC(r);return a==null?null:yr.createElement(za,Ky({},a,{className:_e("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return rn(s,!0)}}))},hc=(function(t){function e(){return BX(this,e),UX(this,e,arguments)}return GX(e,t),zX(e,[{key:"render",value:function(){return yr.createElement(XX,this.props)}}])})(yr.Component);tM(hc,"displayName","YAxis");tM(hc,"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 NO(t){return JX(t)||ZX(t)||VX(t)||YX()}function YX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
152
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VX(t,e){if(t){if(typeof t=="string")return Xy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xy(t,e)}}function ZX(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function JX(t){if(Array.isArray(t))return Xy(t)}function Xy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Yy=function(e,r,n,i,a){var o=Ht(e,nc),s=Ht(e,ac),u=[].concat(NO(o),NO(s)),l=Ht(e,sc),c="".concat(i,"Id"),f=i[0],h=r;if(u.length&&(h=u.reduce(function(m,p){if(p.props[c]===n&&Ur(p.props,"extendDomain")&&J(p.props[f])){var g=p.props[f];return[Math.min(m[0],g),Math.max(m[1],g)]}return m},h)),l.length){var d="".concat(f,"1"),y="".concat(f,"2");h=l.reduce(function(m,p){if(p.props[c]===n&&Ur(p.props,"extendDomain")&&J(p.props[d])&&J(p.props[y])){var g=p.props[d],_=p.props[y];return[Math.min(m[0],g,_),Math.max(m[1],g,_)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,p){return J(p)?[Math.min(m[0],p),Math.max(m[1],p)]:m},h)),h},Xp={exports:{}},LO;function QX(){return LO||(LO=1,(function(t){var e=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 d=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],d]:u._events[y].push(d):(u._events[y]=d,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)e.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,d=f.length,y=new Array(d);h<d;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,d,y){var m=r?r+l:l;if(!this._events[m])return!1;var p=this._events[m],g=arguments.length,_,b;if(p.fn){switch(p.once&&this.removeListener(l,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,f),!0;case 4:return p.fn.call(p.context,c,f,h),!0;case 5:return p.fn.call(p.context,c,f,h,d),!0;case 6:return p.fn.call(p.context,c,f,h,d,y),!0}for(b=1,_=new Array(g-1);b<g;b++)_[b-1]=arguments[b];p.fn.apply(p.context,_)}else{var x=p.length,v;for(b=0;b<x;b++)switch(p[b].once&&this.removeListener(l,p[b].fn,void 0,!0),g){case 1:p[b].fn.call(p[b].context);break;case 2:p[b].fn.call(p[b].context,c);break;case 3:p[b].fn.call(p[b].context,c,f);break;case 4:p[b].fn.call(p[b].context,c,f,h);break;default:if(!_)for(v=1,_=new Array(g-1);v<g;v++)_[v-1]=arguments[v];p[b].fn.apply(p[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 d=r?r+l:l;if(!this._events[d])return this;if(!c)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,d);else{for(var m=0,p=[],g=y.length;m<g;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&p.push(y[m]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}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,t.exports=s})(Xp)),Xp.exports}var e4=QX();const t4=$e(e4);var Yp=new t4,Vp="recharts.syncMouseEvents";function xs(t){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(t)}function r4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n4(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nM(n.key),n)}}function i4(t,e,r){return e&&n4(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zp(t,e,r){return e=nM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nM(t){var e=a4(t,"string");return xs(e)=="symbol"?e:e+""}function a4(t,e){if(xs(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var o4=(function(){function t(){r4(this,t),Zp(this,"activeIndex",0),Zp(this,"coordinateList",[]),Zp(this,"layout","horizontal")}return i4(t,[{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,d=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=d??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 s4(t,e,r){if(r==="number"&&e===!0&&Array.isArray(t)){var n=t==null?void 0:t[0],i=t==null?void 0:t[1];if(n&&i&&J(n)&&J(i))return!0}return!1}function u4(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-i:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-i,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function iM(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,a=t.endAngle,o=xt(e,r,n,i),s=xt(e,r,n,a);return{points:[o,s],cx:e,cy:r,radius:n,startAngle:i,endAngle:a}}function l4(t,e,r){var n,i,a,o;if(t==="horizontal")n=e.x,a=n,i=r.top,o=r.top+r.height;else if(t==="vertical")i=e.y,o=i,n=r.left,a=r.left+r.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var s=e.cx,u=e.cy,l=e.innerRadius,c=e.outerRadius,f=e.angle,h=xt(s,u,l,f),d=xt(s,u,c,f);n=h.x,i=h.y,a=d.x,o=d.y}else return iM(e);return[{x:n,y:i},{x:a,y:o}]}function ws(t){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(t)}function qO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ou(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qO(Object(r),!0).forEach(function(n){c4(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function c4(t,e,r){return e=f4(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f4(t){var e=h4(t,"string");return ws(e)=="symbol"?e:e+""}function h4(t,e){if(ws(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ws(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function d4(t){var e,r,n=t.element,i=t.tooltipEventType,a=t.isActive,o=t.activeCoordinate,s=t.activePayload,u=t.offset,l=t.activeTooltipIndex,c=t.tooltipAxisBandSize,f=t.layout,h=t.chartName,d=(e=n.props.cursor)!==null&&e!==void 0?e:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=li;if(h==="ScatterChart")y=o,m=F8;else if(h==="BarChart")y=u4(f,o,u,c),m=Cg;else if(f==="radial"){var p=iM(o),g=p.cx,_=p.cy,b=p.radius,x=p.startAngle,v=p.endAngle;y={cx:g,cy:_,startAngle:x,endAngle:v,innerRadius:b,outerRadius:b},m=tC}else y={points:l4(f,o,u)},m=li;var w=ou(ou(ou(ou({stroke:"#ccc",pointerEvents:"none"},u),y),me(d,!1)),{},{payload:s,payloadIndex:l,className:_e("recharts-tooltip-cursor",d.className)});return O.isValidElement(d)?O.cloneElement(d,w):O.createElement(m,w)}var p4=["item"],m4=["children","className","width","height","style","compact","title","desc"];function Ma(t){"@babel/helpers - typeof";return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ma(t)}function Bi(){return Bi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Bi.apply(this,arguments)}function BO(t,e){return g4(t)||v4(t,e)||oM(t,e)||y4()}function y4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
153
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v4(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);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 g4(t){if(Array.isArray(t))return t}function FO(t,e){if(t==null)return{};var r=b4(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function b4(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function _4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x4(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sM(n.key),n)}}function w4(t,e,r){return e&&x4(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function S4(t,e,r){return e=Ol(e),O4(t,aM()?Reflect.construct(e,r||[],Ol(t).constructor):e.apply(t,r))}function O4(t,e){if(e&&(Ma(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A4(t)}function A4(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function aM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aM=function(){return!!t})()}function Ol(t){return Ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ol(t)}function P4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vy(t,e)}function Vy(t,e){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vy(t,e)}function ka(t){return C4(t)||E4(t)||oM(t)||T4()}function T4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
154
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oM(t,e){if(t){if(typeof t=="string")return Zy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zy(t,e)}}function E4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function C4(t){if(Array.isArray(t))return Zy(t)}function Zy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zO(Object(r),!0).forEach(function(n){ce(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ce(t,e,r){return e=sM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sM(t){var e=M4(t,"string");return Ma(e)=="symbol"?e:e+""}function M4(t,e){if(Ma(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var k4={xAxis:["bottom","top"],yAxis:["left","right"]},j4={width:"100%",height:"100%"},uM={x:0,y:0};function su(t){return t}var I4=function(e,r){return r==="horizontal"?e.x:r==="vertical"?e.y:r==="centric"?e.angle:e.radius},R4=function(e,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(e==="horizontal")return{x:a.coordinate,y:i.y};if(e==="vertical")return{x:i.x,y:a.coordinate};if(e==="centric"){var o=a.coordinate,s=i.radius;return z(z(z({},i),xt(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var u=a.coordinate,l=i.angle;return z(z(z({},i),xt(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}return uM},dc=function(e,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(ka(s),ka(l)):s},[]);return o.length>0?o:e&&e.length&&J(i)&&J(a)?e.slice(i,a+1):[]};function lM(t){return t==="number"?[0,"auto"]:void 0}var Jy=function(e,r,n,i){var a=e.graphicalItems,o=e.tooltipAxis,s=dc(r,e);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&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(f=f.slice(e.dataStartIndex,e.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=f===void 0?s:f;h=Fu(d,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(ka(u),[JE(l,h)]):u},[])},UO=function(e,r,n,i){var a=i||{x:e.chartX,y:e.chartY},o=I4(a,n),s=e.orderedTooltipTicks,u=e.tooltipAxis,l=e.tooltipTicks,c=gU(o,s,l,u);if(c>=0&&l){var f=l[c]&&l[c].value,h=Jy(e,r,c,f),d=R4(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:d}}return null},$4=function(e,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=e.layout,f=e.children,h=e.stackOffset,d=YE(c,a);return n.reduce(function(y,m){var p,g=m.type.defaultProps!==void 0?z(z({},m.type.defaultProps),m.props):m.props,_=g.type,b=g.dataKey,x=g.allowDataOverflow,v=g.allowDuplicatedCategory,w=g.scale,S=g.ticks,A=g.includeHidden,P=g[o];if(y[P])return y;var M=dc(e.data,{graphicalItems:i.filter(function(q){var U,X=o in q.props?q.props[o]:(U=q.type.defaultProps)===null||U===void 0?void 0:U[o];return X===P}),dataStartIndex:u,dataEndIndex:l}),T=M.length,E,C,I;s4(g.domain,x,_)&&(E=hy(g.domain,null,x),d&&(_==="number"||w!=="auto")&&(I=Po(M,b,"category")));var k=lM(_);if(!E||E.length===0){var j,$=(j=g.domain)!==null&&j!==void 0?j:k;if(b){if(E=Po(M,b,_),_==="category"&&d){var N=wF(E);v&&N?(C=E,E=Go(0,T)):v||(E=Xw($,E,m).reduce(function(q,U){return q.indexOf(U)>=0?q:[].concat(ka(q),[U])},[]))}else if(_==="category")v?E=E.filter(function(q){return q!==""&&!pe(q)}):E=Xw($,E,m).reduce(function(q,U){return q.indexOf(U)>=0||U===""||pe(U)?q:[].concat(ka(q),[U])},[]);else if(_==="number"){var B=SU(M,i.filter(function(q){var U,X,V=o in q.props?q.props[o]:(U=q.type.defaultProps)===null||U===void 0?void 0:U[o],te="hide"in q.props?q.props.hide:(X=q.type.defaultProps)===null||X===void 0?void 0:X.hide;return V===P&&(A||!te)}),b,a,c);B&&(E=B)}d&&(_==="number"||w!=="auto")&&(I=Po(M,b,"category"))}else d?E=Go(0,T):s&&s[P]&&s[P].hasStack&&_==="number"?E=h==="expand"?[0,1]:ZE(s[P].stackGroups,u,l):E=XE(M,i.filter(function(q){var U=o in q.props?q.props[o]:q.type.defaultProps[o],X="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return U===P&&(A||!X)}),_,c,!0);if(_==="number")E=Yy(f,E,P,a,S),$&&(E=hy($,E,x));else if(_==="category"&&$){var R=$,L=E.every(function(q){return R.indexOf(q)>=0});L&&(E=R)}}return z(z({},y),{},ce({},P,z(z({},g),{},{axisType:a,domain:E,categoricalDomain:I,duplicateDomain:C,originalDomain:(p=g.domain)!==null&&p!==void 0?p:k,isCategorical:d,layout:c})))},{})},D4=function(e,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=e.layout,f=e.children,h=dc(e.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),d=h.length,y=YE(c,a),m=-1;return n.reduce(function(p,g){var _=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,b=_[o],x=lM("number");if(!p[b]){m++;var v;return y?v=Go(0,d):s&&s[b]&&s[b].hasStack?(v=ZE(s[b].stackGroups,u,l),v=Yy(f,v,b,a)):(v=hy(x,XE(h,n.filter(function(w){var S,A,P=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],M="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return P===b&&!M}),"number",c),i.defaultProps.allowDataOverflow),v=Yy(f,v,b,a)),z(z({},p),{},ce({},b,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:vr(k4,"".concat(a,".").concat(m%2),null),domain:v,originalDomain:x,isCategorical:y,layout:c})))}return p},{})},N4=function(e,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=e.children,f="".concat(i,"Id"),h=Ht(c,a),d={};return h&&h.length?d=$4(e,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(d=D4(e,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),d},L4=function(e){var r=gn(e),n=rn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Gl(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ju(r,n)}},WO=function(e){var r=e.children,n=e.defaultShowTooltip,i=Zt(r,va),a=0,o=0;return e.data&&e.data.length!==0&&(o=e.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}},q4=function(e){return!e||!e.length?!1:e.some(function(r){var n=nn(r&&r.type);return n&&n.indexOf("Bar")>=0})},HO=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},B4=function(e,r){var n=e.props,i=e.graphicalItems,a=e.xAxisMap,o=a===void 0?{}:a,s=e.yAxisMap,u=s===void 0?{}:s,l=n.width,c=n.height,f=n.children,h=n.margin||{},d=Zt(f,va),y=Zt(f,si),m=Object.keys(u).reduce(function(v,w){var S=u[w],A=S.orientation;return!S.mirror&&!S.hide?z(z({},v),{},ce({},A,v[A]+S.width)):v},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(v,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?z(z({},v),{},ce({},A,vr(v,"".concat(A))+S.height)):v},{top:h.top||0,bottom:h.bottom||0}),g=z(z({},p),m),_=g.bottom;d&&(g.bottom+=d.props.height||va.defaultProps.height),y&&r&&(g=xU(g,i,n,r));var b=l-g.left-g.right,x=c-g.top-g.bottom;return z(z({brushBottom:_},g),{},{width:Math.max(b,0),height:Math.max(x,0)})},F4=function(e,r){if(r==="xAxis")return e[r].width;if(r==="yAxis")return e[r].height},z4=function(e){var r=e.chartName,n=e.GraphicalChild,i=e.defaultTooltipEventType,a=i===void 0?"axis":i,o=e.validateTooltipEventTypes,s=o===void 0?["axis"]:o,u=e.axisComponents,l=e.legendContent,c=e.formatAxisMap,f=e.defaultProps,h=function(g,_){var b=_.graphicalItems,x=_.stackGroups,v=_.offset,w=_.updateId,S=_.dataStartIndex,A=_.dataEndIndex,P=g.barSize,M=g.layout,T=g.barGap,E=g.barCategoryGap,C=g.maxBarSize,I=HO(M),k=I.numericAxisName,j=I.cateAxisName,$=q4(b),N=[];return b.forEach(function(B,R){var L=dc(g.data,{graphicalItems:[B],dataStartIndex:S,dataEndIndex:A}),q=B.type.defaultProps!==void 0?z(z({},B.type.defaultProps),B.props):B.props,U=q.dataKey,X=q.maxBarSize,V=q["".concat(k,"Id")],te=q["".concat(j,"Id")],re={},H=u.reduce(function(he,Ie){var Fe,Ye,gt=_["".concat(Ie.axisType,"Map")],St=q["".concat(Ie.axisType,"Id")];gt&&gt[St]||Ie.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?qt(!1,"Specifying a(n) ".concat(Ie.axisType,"Id requires a corresponding ").concat(Ie.axisType,"Id on the targeted graphical component ").concat((Fe=B==null||(Ye=B.type)===null||Ye===void 0?void 0:Ye.displayName)!==null&&Fe!==void 0?Fe:"")):qt());var pt=gt[St];return z(z({},he),{},ce(ce({},Ie.axisType,pt),"".concat(Ie.axisType,"Ticks"),rn(pt)))},re),F=H[j],K=H["".concat(j,"Ticks")],Q=x&&x[V]&&x[V].hasStack&&$U(B,x[V].stackGroups),D=nn(B.type).indexOf("Bar")>=0,se=Ju(F,K),W=[],ue=$&&bU({barSize:P,stackGroups:x,totalSize:F4(H,j)});if(D){var de,ie,fe=pe(X)?C:X,we=(de=(ie=Ju(F,K,!0))!==null&&ie!==void 0?ie:fe)!==null&&de!==void 0?de:0;W=_U({barGap:T,barCategoryGap:E,bandSize:we!==se?we:se,sizeList:ue[te],maxBarSize:fe}),we!==se&&(W=W.map(function(he){return z(z({},he),{},{position:z(z({},he.position),{},{offset:he.position.offset-we/2})})}))}var ae=B&&B.type&&B.type.getComposedData;ae&&N.push({props:z(z({},ae(z(z({},H),{},{displayedData:L,props:g,dataKey:U,item:B,bandSize:se,barPosition:W,offset:v,stackedData:Q,layout:M,dataStartIndex:S,dataEndIndex:A}))),{},ce(ce(ce({key:B.key||"item-".concat(R)},k,H[k]),j,H[j]),"animationId",w)),childIndex:$F(B,g.children),item:B})}),N},d=function(g,_){var b=g.props,x=g.dataStartIndex,v=g.dataEndIndex,w=g.updateId;if(!k1({props:b}))return null;var S=b.children,A=b.layout,P=b.stackOffset,M=b.data,T=b.reverseStackOrder,E=HO(A),C=E.numericAxisName,I=E.cateAxisName,k=Ht(S,n),j=jU(M,k,"".concat(C,"Id"),"".concat(I,"Id"),P,T),$=u.reduce(function(q,U){var X="".concat(U.axisType,"Map");return z(z({},q),{},ce({},X,N4(b,z(z({},U),{},{graphicalItems:k,stackGroups:U.axisType===C&&j,dataStartIndex:x,dataEndIndex:v}))))},{}),N=B4(z(z({},$),{},{props:b,graphicalItems:k}),_==null?void 0:_.legendBBox);Object.keys($).forEach(function(q){$[q]=c(b,$[q],N,q.replace("Map",""),r)});var B=$["".concat(I,"Map")],R=L4(B),L=h(b,z(z({},$),{},{dataStartIndex:x,dataEndIndex:v,updateId:w,graphicalItems:k,stackGroups:j,offset:N}));return z(z({formattedGraphicalItems:L,graphicalItems:k,offset:N,stackGroups:j},R),$)},y=(function(p){function g(_){var b,x,v;return _4(this,g),v=S4(this,g,[_]),ce(v,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ce(v,"accessibilityManager",new o4),ce(v,"handleLegendBBoxUpdate",function(w){if(w){var S=v.state,A=S.dataStartIndex,P=S.dataEndIndex,M=S.updateId;v.setState(z({legendBBox:w},d({props:v.props,dataStartIndex:A,dataEndIndex:P,updateId:M},z(z({},v.state),{},{legendBBox:w}))))}}),ce(v,"handleReceiveSyncEvent",function(w,S,A){if(v.props.syncId===w){if(A===v.eventEmitterSymbol&&typeof v.props.syncMethod!="function")return;v.applySyncEvent(S)}}),ce(v,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==v.state.dataStartIndex||A!==v.state.dataEndIndex){var P=v.state.updateId;v.setState(function(){return z({dataStartIndex:S,dataEndIndex:A},d({props:v.props,dataStartIndex:S,dataEndIndex:A,updateId:P},v.state))}),v.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),ce(v,"handleMouseEnter",function(w){var S=v.getMouseInfo(w);if(S){var A=z(z({},S),{},{isTooltipActive:!0});v.setState(A),v.triggerSyncEvent(A);var P=v.props.onMouseEnter;ye(P)&&P(A,w)}}),ce(v,"triggeredAfterMouseMove",function(w){var S=v.getMouseInfo(w),A=S?z(z({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};v.setState(A),v.triggerSyncEvent(A);var P=v.props.onMouseMove;ye(P)&&P(A,w)}),ce(v,"handleItemMouseEnter",function(w){v.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),ce(v,"handleItemMouseLeave",function(){v.setState(function(){return{isTooltipActive:!1}})}),ce(v,"handleMouseMove",function(w){w.persist(),v.throttleTriggeredAfterMouseMove(w)}),ce(v,"handleMouseLeave",function(w){v.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};v.setState(S),v.triggerSyncEvent(S);var A=v.props.onMouseLeave;ye(A)&&A(S,w)}),ce(v,"handleOuterEvent",function(w){var S=RF(w),A=vr(v.props,"".concat(S));if(S&&ye(A)){var P,M;/.*touch.*/i.test(S)?M=v.getMouseInfo(w.changedTouches[0]):M=v.getMouseInfo(w),A((P=M)!==null&&P!==void 0?P:{},w)}}),ce(v,"handleClick",function(w){var S=v.getMouseInfo(w);if(S){var A=z(z({},S),{},{isTooltipActive:!0});v.setState(A),v.triggerSyncEvent(A);var P=v.props.onClick;ye(P)&&P(A,w)}}),ce(v,"handleMouseDown",function(w){var S=v.props.onMouseDown;if(ye(S)){var A=v.getMouseInfo(w);S(A,w)}}),ce(v,"handleMouseUp",function(w){var S=v.props.onMouseUp;if(ye(S)){var A=v.getMouseInfo(w);S(A,w)}}),ce(v,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),ce(v,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseDown(w.changedTouches[0])}),ce(v,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseUp(w.changedTouches[0])}),ce(v,"handleDoubleClick",function(w){var S=v.props.onDoubleClick;if(ye(S)){var A=v.getMouseInfo(w);S(A,w)}}),ce(v,"handleContextMenu",function(w){var S=v.props.onContextMenu;if(ye(S)){var A=v.getMouseInfo(w);S(A,w)}}),ce(v,"triggerSyncEvent",function(w){v.props.syncId!==void 0&&Yp.emit(Vp,v.props.syncId,w,v.eventEmitterSymbol)}),ce(v,"applySyncEvent",function(w){var S=v.props,A=S.layout,P=S.syncMethod,M=v.state.updateId,T=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)v.setState(z({dataStartIndex:T,dataEndIndex:E},d({props:v.props,dataStartIndex:T,dataEndIndex:E,updateId:M},v.state)));else if(w.activeTooltipIndex!==void 0){var C=w.chartX,I=w.chartY,k=w.activeTooltipIndex,j=v.state,$=j.offset,N=j.tooltipTicks;if(!$)return;if(typeof P=="function")k=P(N,w);else if(P==="value"){k=-1;for(var B=0;B<N.length;B++)if(N[B].value===w.activeLabel){k=B;break}}var R=z(z({},$),{},{x:$.left,y:$.top}),L=Math.min(C,R.x+R.width),q=Math.min(I,R.y+R.height),U=N[k]&&N[k].value,X=Jy(v.state,v.props.data,k),V=N[k]?{x:A==="horizontal"?N[k].coordinate:L,y:A==="horizontal"?q:N[k].coordinate}:uM;v.setState(z(z({},w),{},{activeLabel:U,activeCoordinate:V,activePayload:X,activeTooltipIndex:k}))}else v.setState(w)}),ce(v,"renderCursor",function(w){var S,A=v.state,P=A.isTooltipActive,M=A.activeCoordinate,T=A.activePayload,E=A.offset,C=A.activeTooltipIndex,I=A.tooltipAxisBandSize,k=v.getTooltipEventType(),j=(S=w.props.active)!==null&&S!==void 0?S:P,$=v.props.layout,N=w.key||"_recharts-cursor";return O.createElement(d4,{key:N,activeCoordinate:M,activePayload:T,activeTooltipIndex:C,chartName:r,element:w,isActive:j,layout:$,offset:E,tooltipAxisBandSize:I,tooltipEventType:k})}),ce(v,"renderPolarAxis",function(w,S,A){var P=vr(w,"type.axisType"),M=vr(v.state,"".concat(P,"Map")),T=w.type.defaultProps,E=T!==void 0?z(z({},T),w.props):w.props,C=M&&M[E["".concat(P,"Id")]];return O.cloneElement(w,z(z({},C),{},{className:_e(P,C.className),key:w.key||"".concat(S,"-").concat(A),ticks:rn(C,!0)}))}),ce(v,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,P=S.polarAngles,M=S.polarRadius,T=v.state,E=T.radiusAxisMap,C=T.angleAxisMap,I=gn(E),k=gn(C),j=k.cx,$=k.cy,N=k.innerRadius,B=k.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(P)?P:rn(k,!0).map(function(R){return R.coordinate}),polarRadius:Array.isArray(M)?M:rn(I,!0).map(function(R){return R.coordinate}),cx:j,cy:$,innerRadius:N,outerRadius:B,key:w.key||"polar-grid",radialLines:A})}),ce(v,"renderLegend",function(){var w=v.state.formattedGraphicalItems,S=v.props,A=S.children,P=S.width,M=S.height,T=v.props.margin||{},E=P-(T.left||0)-(T.right||0),C=GE({children:A,formattedGraphicalItems:w,legendWidth:E,legendContent:l});if(!C)return null;var I=C.item,k=FO(C,p4);return O.cloneElement(I,z(z({},k),{},{chartWidth:P,chartHeight:M,margin:T,onBBoxUpdate:v.handleLegendBBoxUpdate}))}),ce(v,"renderTooltip",function(){var w,S=v.props,A=S.children,P=S.accessibilityLayer,M=Zt(A,$r);if(!M)return null;var T=v.state,E=T.isTooltipActive,C=T.activeCoordinate,I=T.activePayload,k=T.activeLabel,j=T.offset,$=(w=M.props.active)!==null&&w!==void 0?w:E;return O.cloneElement(M,{viewBox:z(z({},j),{},{x:j.left,y:j.top}),active:$,label:k,payload:$?I:[],coordinate:C,accessibilityLayer:P})}),ce(v,"renderBrush",function(w){var S=v.props,A=S.margin,P=S.data,M=v.state,T=M.offset,E=M.dataStartIndex,C=M.dataEndIndex,I=M.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:eu(v.handleBrushChange,w.props.onChange),data:P,x:J(w.props.x)?w.props.x:T.left,y:J(w.props.y)?w.props.y:T.top+T.height+T.brushBottom-(A.bottom||0),width:J(w.props.width)?w.props.width:T.width,startIndex:E,endIndex:C,updateId:"brush-".concat(I)})}),ce(v,"renderReferenceElement",function(w,S,A){if(!w)return null;var P=v,M=P.clipPathId,T=v.state,E=T.xAxisMap,C=T.yAxisMap,I=T.offset,k=w.type.defaultProps||{},j=w.props,$=j.xAxisId,N=$===void 0?k.xAxisId:$,B=j.yAxisId,R=B===void 0?k.yAxisId:B;return O.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:E[N],yAxis:C[R],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:M})}),ce(v,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,P=w.basePoint,M=w.childIndex,T=w.isRange,E=[],C=S.props.key,I=S.item.type.defaultProps!==void 0?z(z({},S.item.type.defaultProps),S.item.props):S.item.props,k=I.activeDot,j=I.dataKey,$=z(z({index:M,dataKey:j,cx:A.x,cy:A.y,r:4,fill:Tg(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},me(k,!1)),zu(k));return E.push(g.renderActiveDot(k,$,"".concat(C,"-activePoint-").concat(M))),P?E.push(g.renderActiveDot(k,z(z({},$),{},{cx:P.x,cy:P.y}),"".concat(C,"-basePoint-").concat(M))):T&&E.push(null),E}),ce(v,"renderGraphicChild",function(w,S,A){var P=v.filterFormatItem(w,S,A);if(!P)return null;var M=v.getTooltipEventType(),T=v.state,E=T.isTooltipActive,C=T.tooltipAxis,I=T.activeTooltipIndex,k=T.activeLabel,j=v.props.children,$=Zt(j,$r),N=P.props,B=N.points,R=N.isRange,L=N.baseLine,q=P.item.type.defaultProps!==void 0?z(z({},P.item.type.defaultProps),P.item.props):P.item.props,U=q.activeDot,X=q.hide,V=q.activeBar,te=q.activeShape,re=!!(!X&&E&&$&&(U||V||te)),H={};M!=="axis"&&$&&$.props.trigger==="click"?H={onClick:eu(v.handleItemMouseEnter,w.props.onClick)}:M!=="axis"&&(H={onMouseLeave:eu(v.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:eu(v.handleItemMouseEnter,w.props.onMouseEnter)});var F=O.cloneElement(w,z(z({},P.props),H));function K(Ie){return typeof C.dataKey=="function"?C.dataKey(Ie.payload):null}if(re)if(I>=0){var Q,D;if(C.dataKey&&!C.allowDuplicatedCategory){var se=typeof C.dataKey=="function"?K:"payload.".concat(C.dataKey.toString());Q=Fu(B,se,k),D=R&&L&&Fu(L,se,k)}else Q=B==null?void 0:B[I],D=R&&L&&L[I];if(te||V){var W=w.props.activeIndex!==void 0?w.props.activeIndex:I;return[O.cloneElement(w,z(z(z({},P.props),H),{},{activeIndex:W})),null,null]}if(!pe(Q))return[F].concat(ka(v.renderActivePoints({item:P,activePoint:Q,basePoint:D,childIndex:I,isRange:R})))}else{var ue,de=(ue=v.getItemByXY(v.state.activeCoordinate))!==null&&ue!==void 0?ue:{graphicalItem:F},ie=de.graphicalItem,fe=ie.item,we=fe===void 0?w:fe,ae=ie.childIndex,he=z(z(z({},P.props),H),{},{activeIndex:ae});return[O.cloneElement(we,he),null,null]}return R?[F,null,null]:[F,null]}),ce(v,"renderCustomized",function(w,S,A){return O.cloneElement(w,z(z({key:"recharts-customized-".concat(A)},v.props),v.state))}),ce(v,"renderMap",{CartesianGrid:{handler:su,once:!0},ReferenceArea:{handler:v.renderReferenceElement},ReferenceLine:{handler:su},ReferenceDot:{handler:v.renderReferenceElement},XAxis:{handler:su},YAxis:{handler:su},Brush:{handler:v.renderBrush,once:!0},Bar:{handler:v.renderGraphicChild},Line:{handler:v.renderGraphicChild},Area:{handler:v.renderGraphicChild},Radar:{handler:v.renderGraphicChild},RadialBar:{handler:v.renderGraphicChild},Scatter:{handler:v.renderGraphicChild},Pie:{handler:v.renderGraphicChild},Funnel:{handler:v.renderGraphicChild},Tooltip:{handler:v.renderCursor,once:!0},PolarGrid:{handler:v.renderPolarGrid,once:!0},PolarAngleAxis:{handler:v.renderPolarAxis},PolarRadiusAxis:{handler:v.renderPolarAxis},Customized:{handler:v.renderCustomized}}),v.clipPathId="".concat((b=_.id)!==null&&b!==void 0?b:Oi("recharts"),"-clip"),v.throttleTriggeredAfterMouseMove=AE(v.triggeredAfterMouseMove,(x=_.throttleDelay)!==null&&x!==void 0?x:1e3/60),v.state={},v}return P4(g,p),w4(g,[{key:"componentDidMount",value:function(){var b,x;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,x=b.children,v=b.data,w=b.height,S=b.layout,A=Zt(x,$r);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,T=Jy(this.state,v,P,M),E=this.state.tooltipTicks[P].coordinate,C=(this.state.offset.top+w)/2,I=S==="horizontal",k=I?{x:E,y:C}:{y:E,x:C},j=this.state.formattedGraphicalItems.find(function(N){var B=N.item;return B.type.name==="Scatter"});j&&(k=z(z({},k),j.props.points[P].tooltipPosition),T=j.props.points[P].tooltipPayload);var $={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:M,activePayload:T,activeCoordinate:k};this.setState($),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var v,w;this.accessibilityManager.setDetails({offset:{left:(v=this.props.margin.left)!==null&&v!==void 0?v:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){Hm([Zt(b.children,$r)],[Zt(this.props.children,$r)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Zt(this.props.children,$r);if(b&&typeof b.props.shared=="boolean"){var x=b.props.shared?"axis":"item";return s.indexOf(x)>=0?x:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var x=this.container,v=x.getBoundingClientRect(),w=q5(v),S={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},A=v.width/x.offsetWidth||1,P=this.inRange(S.chartX,S.chartY,A);if(!P)return null;var M=this.state,T=M.xAxisMap,E=M.yAxisMap,C=this.getTooltipEventType(),I=UO(this.state,this.props.data,this.props.layout,P);if(C!=="axis"&&T&&E){var k=gn(T).scale,j=gn(E).scale,$=k&&k.invert?k.invert(S.chartX):null,N=j&&j.invert?j.invert(S.chartY):null;return z(z({},S),{},{xValue:$,yValue:N},I)}return I?z(z({},S),I):null}},{key:"inRange",value:function(b,x){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=b/v,A=x/v;if(w==="horizontal"||w==="vertical"){var P=this.state.offset,M=S>=P.left&&S<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return M?{x:S,y:A}:null}var T=this.state,E=T.angleAxisMap,C=T.radiusAxisMap;if(E&&C){var I=gn(E);return Zw({x:S,y:A},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,x=this.getTooltipEventType(),v=Zt(b,$r),w={};v&&x==="axis"&&(v.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=zu(this.props,this.handleOuterEvent);return z(z({},S),w)}},{key:"addListener",value:function(){Yp.on(Vp,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Yp.removeListener(Vp,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,x,v){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var P=w[S];if(P.item===b||P.props.key===b.key||x===nn(P.item.type)&&v===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,x=this.state.offset,v=x.left,w=x.top,S=x.height,A=x.width;return O.createElement("defs",null,O.createElement("clipPath",{id:b},O.createElement("rect",{x:v,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(x,v){var w=BO(v,2),S=w[0],A=w[1];return z(z({},x),{},ce({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(x,v){var w=BO(v,2),S=w[0],A=w[1];return z(z({},x),{},ce({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var x;return(x=this.state.xAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getYScaleByAxisId",value:function(b){var x;return(x=this.state.yAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getItemByXY",value:function(b){var x=this.state,v=x.formattedGraphicalItems,w=x.activeItem;if(v&&v.length)for(var S=0,A=v.length;S<A;S++){var P=v[S],M=P.props,T=P.item,E=T.type.defaultProps!==void 0?z(z({},T.type.defaultProps),T.props):T.props,C=nn(T.type);if(C==="Bar"){var I=(M.data||[]).find(function(N){return k8(b,N)});if(I)return{graphicalItem:P,payload:I}}else if(C==="RadialBar"){var k=(M.data||[]).find(function(N){return Zw(b,N)});if(k)return{graphicalItem:P,payload:k}}else if(ec(P,w)||tc(P,w)||vs(P,w)){var j=_G({graphicalItem:P,activeTooltipItem:w,itemData:E.data}),$=E.activeIndex===void 0?j:E.activeIndex;return{graphicalItem:z(z({},P),{},{childIndex:$}),payload:vs(P,w)?E.data[j]:P.props.data[j]}}}return null}},{key:"render",value:function(){var b=this;if(!k1(this))return null;var x=this.props,v=x.children,w=x.className,S=x.width,A=x.height,P=x.style,M=x.compact,T=x.title,E=x.desc,C=FO(x,m4),I=me(C,!1);if(M)return O.createElement(vO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Km,Bi({},I,{width:S,height:A,title:T,desc:E}),this.renderClipPath(),I1(v,this.renderMap)));if(this.props.accessibilityLayer){var k,j;I.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,I.role=(j=this.props.role)!==null&&j!==void 0?j:"application",I.onKeyDown=function(N){b.accessibilityManager.keyboardEvent(N)},I.onFocus=function(){b.accessibilityManager.focus()}}var $=this.parseEventsOfWrapper();return O.createElement(vO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Bi({className:_e("recharts-wrapper",w),style:z({position:"relative",cursor:"default",width:S,height:A},P)},$,{ref:function(B){b.container=B}}),O.createElement(Km,Bi({},I,{width:S,height:A,title:T,desc:E,style:j4}),this.renderClipPath(),I1(v,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);ce(y,"displayName",r),ce(y,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ce(y,"getDerivedStateFromProps",function(p,g){var _=p.dataKey,b=p.data,x=p.children,v=p.width,w=p.height,S=p.layout,A=p.stackOffset,P=p.margin,M=g.dataStartIndex,T=g.dataEndIndex;if(g.updateId===void 0){var E=WO(p);return z(z(z({},E),{},{updateId:0},d(z(z({props:p},E),{},{updateId:0}),g)),{},{prevDataKey:_,prevData:b,prevWidth:v,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:P,prevChildren:x})}if(_!==g.prevDataKey||b!==g.prevData||v!==g.prevWidth||w!==g.prevHeight||S!==g.prevLayout||A!==g.prevStackOffset||!Xi(P,g.prevMargin)){var C=WO(p),I={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},k=z(z({},UO(g,b,S)),{},{updateId:g.updateId+1}),j=z(z(z({},C),I),k);return z(z(z({},j),d(z({props:p},j),g)),{},{prevDataKey:_,prevData:b,prevWidth:v,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:P,prevChildren:x})}if(!Hm(x,g.prevChildren)){var $,N,B,R,L=Zt(x,va),q=L&&($=(N=L.props)===null||N===void 0?void 0:N.startIndex)!==null&&$!==void 0?$:M,U=L&&(B=(R=L.props)===null||R===void 0?void 0:R.endIndex)!==null&&B!==void 0?B:T,X=q!==M||U!==T,V=!pe(b),te=V&&!X?g.updateId:g.updateId+1;return z(z({updateId:te},d(z(z({props:p},g),{},{updateId:te,dataStartIndex:q,dataEndIndex:U}),g)),{},{prevChildren:x,dataStartIndex:q,dataEndIndex:U})}return null}),ce(y,"renderActiveDot",function(p,g,_){var b;return O.isValidElement(p)?b=O.cloneElement(p,g):ye(p)?b=p(g):b=O.createElement(Ql,g),O.createElement(Te,{className:"recharts-active-dot",key:_},b)});var m=O.forwardRef(function(g,_){return O.createElement(y,Bi({},g,{ref:_}))});return m.displayName=y.displayName,m},U4=z4({chartName:"ComposedChart",GraphicalChild:[uc,Ln,Fa,cc],axisComponents:[{axisType:"xAxis",AxisComp:fc},{axisType:"yAxis",AxisComp:hc},{axisType:"zAxis",AxisComp:lc}],formatAxisMap:h6});const ao=()=>{var t,e;try{return((e=(t=globalThis.process)==null?void 0:t.env)==null?void 0:e.NODE_ENV)==="development"}catch{return!1}},W4=t=>new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),H4=t=>new Intl.NumberFormat("en-US").format(t);function G4(t){const{data:e,categories:r,formatDate:n,formatValue:i}=t,a=O.useMemo(()=>{if(!e||e.length===0)return ao()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...e].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&ao()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[e]),o=O.useMemo(()=>{if(!r||r.length===0)return ao()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(d=>!d.dataKey||!d.label||!d.color?(ao()&&console.warn("StackedAreaChart: Category is missing required fields:",d),!1):!0);if(ao()&&a.length>0){const d=a[0];if(d){const y=new Set(Object.keys(d)),m=h.filter(p=>!y.has(p.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(p=>p.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:u}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],d=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(d==null?void 0:d.timestamp)??0}},[a]),l=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((d,y)=>{const m=h[y.dataKey];return d+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||W4,[n]),f=O.useMemo(()=>i||H4,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:u,maxTotalValue:l,dateFormatter:c,valueFormatter:f}}function K4(t,e){const r=e-1-t,n=bo.length,i=Math.floor(r/Math.max(1,e-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return bo[a]??bo[0]??"#000000"}function X4(t){return Array.from({length:t},(e,r)=>K4(r,t))}const $i=X4(5),Zr={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:Wt.neoDigitalGreen[600],inProgress:"#007bff",farthest:$i[0],far:$i[1],close:$i[2],closest:$i[3],completed:$i[4],primary:"#007bff",secondary:"#6c757d",success:Wt.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:Wt.neoGrey[200],dark:"#343a40"},Oe={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:Wt.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:Wt.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"}},Y4={migration:$i,severity:[Zr.critical,Zr.high,Zr.medium,Zr.low,Zr.info],status:[Zr.danger,Zr.warning,Zr.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},V4={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"},Z4=({data:t,categories:e,markers:r=[],title:n,subtitle:i,showHeader:a=Oe.display.showHeader,height:o=Oe.dimensions.height,width:s=Oe.dimensions.width,showLegend:u=Oe.display.showLegend,showTooltip:l=Oe.display.showTooltip,showXAxis:c=Oe.display.showXAxis,showYAxis:f=Oe.display.showYAxis,showGrid:h=Oe.display.showGrid,enableAnimation:d=Oe.animation.enabled,animationDuration:y=Oe.animation.duration,animationEasing:m=Oe.animation.easing,formatDate:p,formatValue:g,tooltipFormatter:_,slotProps:b,margin:x=Oe.margin,curveType:v=Oe.curve.type,stackOffset:w=Oe.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:P=!1,zoomToSelection:M=!1})=>{const{processedData:T,processedCategories:E,dateFormatter:C,valueFormatter:I}=G4({data:t,categories:e,formatDate:p,formatValue:g}),[k,j]=O.useState(null),[$,N]=O.useState(!1),[B,R]=O.useState(null),[L,q]=O.useState(null),U=O.useRef(null),X=S?[S[0],S[1]]:["dataMin","dataMax"],V=T.length>0?T[0].timestamp:0,te=T.length>0?T[T.length-1].timestamp:0,re=O.useCallback((ae,he)=>{const Ie=ae/he*100,Fe=te-V;return V+Ie/100*Fe},[V,te]),H=O.useCallback(ae=>{const he=te-V;return he===0?0:(ae-V)/he*100},[V,te]),F=O.useCallback(ae=>{if(!P)return;const he=ae.currentTarget.getBoundingClientRect(),Ie=ae.clientX-he.left,Fe=re(Ie,he.width);N(!0),R(Fe),q(Fe)},[P,re]),K=O.useCallback(ae=>{if(!U.current)return;const he=ae.currentTarget.getBoundingClientRect(),Ie=ae.clientX-he.left,Fe=he.width,Ye=re(Ie,Fe);if($)B!==null&&q(Ye);else{const St=r.find(pt=>Math.abs(pt.timestamp-Ye)<2592e5);j((St==null?void 0:St.timestamp)??null)}},[$,B,re,r]),Q=O.useCallback(()=>{if($&&B!==null&&L!==null&&A){const ae=Math.min(B,L),he=Math.max(B,L);ae!==he&&A([ae,he])}N(!1),R(null),q(null)},[$,B,L,A]),D=O.useCallback(()=>{Q(),j(null)},[Q]),W=(M?$:!0)&&$&&B!==null&&L!==null?{left:H(Math.min(B,L)),width:Math.abs(H(L)-H(B))}:null,de=(S?T.filter(ae=>ae.timestamp>=S[0]&&ae.timestamp<=S[1]):T).slice().reverse().map(ae=>{const he=r.find(Ie=>Ie.timestamp===ae.timestamp);return he&&he.label?{...ae,__markerLabel:he.label}:ae}),ie=ae=>C(ae),fe=ae=>I(ae),we=({active:ae,payload:he,label:Ie})=>{if(!ae||!he||he.length===0)return null;const Fe=de.find(gt=>gt.timestamp===Ie);if(Fe&&"__markerLabel"in Fe){const St=String(Fe.__markerLabel).split(" - "),pt=St[0]||"",qn=St[1]||"";return G.jsxs(ee.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[G.jsx(ee.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:qn}),G.jsx(ee.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:pt})]})}return G.jsxs(ee.Box,{sx:{backgroundColor:Oe.tooltip.backgroundColor,border:`${Oe.tooltip.borderWidth}px solid ${Oe.tooltip.borderColor}`,borderRadius:Oe.tooltip.borderRadius,padding:Oe.tooltip.padding},children:[G.jsx(ee.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:C(Ie)}),he.map((gt,St)=>G.jsxs(ee.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[G.jsx(ee.Box,{sx:{width:10,height:10,backgroundColor:gt.color,borderRadius:"2px"}}),G.jsxs(ee.Typography,{sx:{fontSize:"14px"},children:[gt.name,": ",I(gt.value)]})]},`item-${St}`))]})};return G.jsxs(ee.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&G.jsxs(ee.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&G.jsx(ee.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&G.jsx(ee.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),G.jsxs(ee.Box,{ref:U,sx:{width:"100%",height:`${o}px`,minHeight:Oe.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[G.jsx(j5,{width:s,height:"100%",children:G.jsxs(U4,{data:de,margin:x,stackOffset:w,children:[h&&G.jsx(qC,{strokeDasharray:"3 3",stroke:Oe.axis.strokeColor,opacity:.3}),c&&G.jsx(fc,{dataKey:"timestamp",type:"number",domain:X,tickFormatter:ie,stroke:Oe.axis.strokeColor,tick:{fill:Oe.axis.tickColor},scale:"time"}),f&&G.jsx(hc,{tickFormatter:fe,stroke:Oe.axis.strokeColor,tick:{fill:Oe.axis.tickColor}}),l&&G.jsx($r,{content:G.jsx(we,{})}),u&&G.jsx(si,{iconSize:Oe.legend.iconSize,iconType:Oe.legend.iconType,layout:Oe.legend.layout,align:Oe.legend.align,verticalAlign:Oe.legend.verticalAlign}),E.map((ae,he)=>G.jsx(Ln,{type:v,dataKey:ae.dataKey,name:ae.label,stackId:"1",stroke:ae.color,fill:ae.strokeDasharray?"transparent":ae.color,fillOpacity:ae.strokeDasharray?0:ae.fillOpacity??.7,strokeWidth:ae.strokeWidth??2,strokeDasharray:ae.strokeDasharray,isAnimationActive:d,animationDuration:y,animationEasing:m,animationBegin:d?(E.length-1-he)*100:0},ae.dataKey)),r.filter(ae=>k===null||ae.timestamp===k).map((ae,he)=>G.jsx(nc,{x:ae.timestamp,stroke:ae.color??Oe.marker.strokeColor,strokeWidth:ae.strokeWidth??Oe.marker.strokeWidth,strokeDasharray:ae.strokeDasharray??Oe.marker.strokeDasharray,strokeOpacity:k===null?0:1},`marker-${ae.timestamp}-${he}`))]},S?`${S[0]}-${S[1]}`:"default")}),P&&G.jsxs(ee.Box,{sx:{position:"absolute",top:x.top||0,left:x.left||0,right:x.right||0,bottom:x.bottom||0,cursor:$?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:F,onMouseMove:K,onMouseUp:Q,onMouseLeave:D,children:[W&&G.jsx(ee.Box,{sx:{position:"absolute",left:`${W.left}%`,width:`${W.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(ae=>ae.timestamp===k).map(ae=>G.jsx(ee.Box,{sx:{position:"absolute",left:`${H(ae.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:ae.label||C(ae.timestamp)},`tooltip-${ae.timestamp}`))})]})]})]})},J4="#8b5cf6",Q4=t=>new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),eY=({events:t,title:e="Events in Selected Range",maxHeight:r="200px",formatDate:n=Q4,primaryColor:i=J4})=>t.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:[e," (",t.length,")"]}),G.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:t.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=Oo;exports.CAMPAIGN_NOT_APPLICABLE=wo;exports.CAMPAIGN_NO_LST=So;exports.CATEGORY_LABELS=V4;exports.ChronoPerspectiveChart=wN;exports.D3StackedAreaChart=DN;exports.DEFAULT_CHART_COLORS=Wt;exports.DEFAULT_CHART_CONFIG=It;exports.DEFAULT_STACKED_AREA_COLORS=Zr;exports.DEFAULT_STACKED_AREA_CONFIG=Oe;exports.MEASURE_GRADIENT_COLORS=bo;exports.MODERNE_VULNERABILITY_COLORS=Ki;exports.MorphChart=pT;exports.ParliamentChart=iF;exports.STACKED_AREA_PALETTES=Y4;exports.StackedAreaChart=Z4;exports.TimelineChart=yT;exports.TimelineSelectedEvents=eY;exports.calculateDataSeries=lE;exports.calculateOptimalArcAngle=Qv;exports.calculateOptimalSeatSize=eg;
136
+ */var Tm,lA;function R8(){if(lA)return Tm;lA=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 Tm=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},Tm}var Pm,cA;function O0(){if(cA)return Pm;cA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pm=e,Pm}var Em,fA;function eM(){return fA||(fA=1,Em=Function.call.bind(Object.prototype.hasOwnProperty)),Em}var Cm,hA;function D8(){if(hA)return Cm;hA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=O0(),r={},n=eM();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,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={})},Cm=i,Cm}var Mm,pA;function I8(){if(pA)return Mm;pA=1;var e=tM(),t=R8(),r=O0(),n=eM(),i=D8(),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 Mm=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(D){var j=D&&(l&&D[l]||D[c]);if(typeof j=="function")return j}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:O,oneOf:S,oneOfType:T,shape:E,exact:k};function y(D,j){return D===j?D!==0||1/D===1/j:D!==D&&j!==j}function m(D,j){this.message=D,this.data=j&&typeof j=="object"?j:{},this.stack=""}m.prototype=Error.prototype;function d(D){if(process.env.NODE_ENV!=="production")var j={},B=0;function W(X,J,et,K,F,H,Q){if(K=K||h,H=H||et,Q!==r){if(u){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ut=K+":"+et;!j[ut]&&B<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[ut]=!0,B++)}}return J[et]==null?X?J[et]===null?new m("The "+F+" `"+H+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+F+" `"+H+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:D(J,et,K,F,H)}var G=W.bind(null,!1);return G.isRequired=W.bind(null,!0),G}function v(D){function j(B,W,G,X,J,et){var K=B[W],F=C(K);if(F!==D){var H=I(K);return new m("Invalid "+X+" `"+J+"` of type "+("`"+H+"` supplied to `"+G+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return d(j)}function _(){return d(o)}function b(D){function j(B,W,G,X,J){if(typeof D!="function")return new m("Property `"+J+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var et=B[W];if(!Array.isArray(et)){var K=C(et);return new m("Invalid "+X+" `"+J+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var F=0;F<et.length;F++){var H=D(et,F,G,X,J+"["+F+"]",r);if(H instanceof Error)return H}return null}return d(j)}function x(){function D(j,B,W,G,X){var J=j[B];if(!s(J)){var et=C(J);return new m("Invalid "+G+" `"+X+"` of type "+("`"+et+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return d(D)}function g(){function D(j,B,W,G,X){var J=j[B];if(!e.isValidElementType(J)){var et=C(J);return new m("Invalid "+G+" `"+X+"` of type "+("`"+et+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return d(D)}function w(D){function j(B,W,G,X,J){if(!(B[W]instanceof D)){var et=D.name||h,K=q(B[W]);return new m("Invalid "+X+" `"+J+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+et+"`."))}return null}return d(j)}function S(D){if(!Array.isArray(D))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 j(B,W,G,X,J){for(var et=B[W],K=0;K<D.length;K++)if(y(et,D[K]))return null;var F=JSON.stringify(D,function(Q,N){var ut=I(N);return ut==="symbol"?String(N):N});return new m("Invalid "+X+" `"+J+"` of value `"+String(et)+"` "+("supplied to `"+G+"`, expected one of "+F+"."))}return d(j)}function O(D){function j(B,W,G,X,J){if(typeof D!="function")return new m("Property `"+J+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var et=B[W],K=C(et);if(K!=="object")return new m("Invalid "+X+" `"+J+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var F in et)if(n(et,F)){var H=D(et,F,G,X,J+"."+F,r);if(H instanceof Error)return H}return null}return d(j)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var j=0;j<D.length;j++){var B=D[j];if(typeof B!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(B)+" at index "+j+"."),o}function W(G,X,J,et,K){for(var F=[],H=0;H<D.length;H++){var Q=D[H],N=Q(G,X,J,et,K,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&F.push(N.data.expectedType)}var ut=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+et+" `"+K+"` supplied to "+("`"+J+"`"+ut+"."))}return d(W)}function M(){function D(j,B,W,G,X){return R(j[B])?null:new m("Invalid "+G+" `"+X+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return d(D)}function P(D,j,B,W,G){return new m((D||"React class")+": "+j+" type `"+B+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function E(D){function j(B,W,G,X,J){var et=B[W],K=C(et);if(K!=="object")return new m("Invalid "+X+" `"+J+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var F in D){var H=D[F];if(typeof H!="function")return P(G,X,J,F,I(H));var Q=H(et,F,G,X,J+"."+F,r);if(Q)return Q}return null}return d(j)}function k(D){function j(B,W,G,X,J){var et=B[W],K=C(et);if(K!=="object")return new m("Invalid "+X+" `"+J+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var F=t({},B[W],D);for(var H in F){var Q=D[H];if(n(D,H)&&typeof Q!="function")return P(G,X,J,H,I(Q));if(!Q)return new m("Invalid "+X+" `"+J+"` key `"+H+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(B[W],null," ")+`
137
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var N=Q(et,H,G,X,J+"."+H,r);if(N)return N}return null}return d(j)}function R(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(R);if(D===null||s(D))return!0;var j=f(D);if(j){var B=j.call(D),W;if(j!==D.entries){for(;!(W=B.next()).done;)if(!R(W.value))return!1}else for(;!(W=B.next()).done;){var G=W.value;if(G&&!R(G[1]))return!1}}else return!1;return!0;default:return!1}}function $(D,j){return D==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function C(D){var j=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":$(j,D)?"symbol":j}function I(D){if(typeof D>"u"||D===null)return""+D;var j=C(D);if(j==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return j}function L(D){var j=I(D);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function q(D){return!D.constructor||!D.constructor.name?h:D.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Mm}var km,dA;function N8(){if(dA)return km;dA=1;var e=O0();function t(){}function r(){}return r.resetWarningCache=t,km=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},km}var mA;function L8(){if(mA)return Zu.exports;if(mA=1,process.env.NODE_ENV!=="production"){var e=tM(),t=!0;Zu.exports=I8()(e.isElement,t)}else Zu.exports=N8()();return Zu.exports}var B8=L8();const Bt=qt(B8);var q8=Object.getOwnPropertyNames,F8=Object.getOwnPropertySymbols,z8=Object.prototype.hasOwnProperty;function yA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Qu(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 U8(e){return e!=null?e[Symbol.toStringTag]:void 0}function gA(e){return q8(e).concat(F8(e))}var W8=Object.hasOwn||(function(e,t){return z8.call(e,t)});function ma(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var G8="__v",H8="__o",K8="_owner",vA=Object.getOwnPropertyDescriptor,bA=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 X8(e,t){return ma(e.getTime(),t.getTime())}function V8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Z8(e,t){return e===t}function _A(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,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 J8=ma;function Q8(e,t,r){var n=bA(e),i=n.length;if(bA(t).length!==i)return!1;for(;i-- >0;)if(!rM(e,t,r,n[i]))return!1;return!0}function Jo(e,t,r){var n=gA(e),i=n.length;if(gA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!rM(e,t,r,a)||(o=vA(e,a),s=vA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function tG(e,t){return ma(e.valueOf(),t.valueOf())}function eG(e,t){return e.source===t.source&&e.flags===t.flags}function xA(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var 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 rG(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 nG(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===K8||n===H8||n===G8)&&(e.$$typeof||t.$$typeof)?!0:W8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var iG="[object Arguments]",aG="[object Boolean]",oG="[object Date]",sG="[object Error]",uG="[object Map]",lG="[object Number]",cG="[object Object]",fG="[object RegExp]",hG="[object Set]",pG="[object String]",dG="[object URL]",mG=Array.isArray,wA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SA=Object.assign,yG=Object.prototype.toString.call.bind(Object.prototype.toString);function gG(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,v){if(m===d)return!0;if(m==null||d==null)return!1;var _=typeof m;if(_!==typeof d)return!1;if(_!=="object")return _==="number"?o(m,d,v):_==="function"?i(m,d,v):!1;var b=m.constructor;if(b!==d.constructor)return!1;if(b===Object)return s(m,d,v);if(mG(m))return t(m,d,v);if(wA!=null&&wA(m))return f(m,d,v);if(b===Date)return r(m,d,v);if(b===RegExp)return l(m,d,v);if(b===Map)return a(m,d,v);if(b===Set)return c(m,d,v);var x=yG(m);if(x===oG)return r(m,d,v);if(x===fG)return l(m,d,v);if(x===uG)return a(m,d,v);if(x===hG)return c(m,d,v);if(x===cG)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,v);if(x===dG)return h(m,d,v);if(x===sG)return n(m,d,v);if(x===iG)return s(m,d,v);if(x===aG||x===lG||x===pG)return u(m,d,v);if(p){var g=p[x];if(!g){var w=U8(m);w&&(g=p[w])}if(g)return g(m,d,v)}return!1}}function vG(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Jo:Y8,areDatesEqual:X8,areErrorsEqual:V8,areFunctionsEqual:Z8,areMapsEqual:n?yA(_A,Jo):_A,areNumbersEqual:J8,areObjectsEqual:n?Jo:Q8,arePrimitiveWrappersEqual:tG,areRegExpsEqual:eG,areSetsEqual:n?yA(xA,Jo):xA,areTypedArraysEqual:n?Jo:rG,areUrlsEqual:nG,unknownTagComparators:void 0};if(r&&(i=SA({},i,r(i))),t){var a=Qu(i.areArraysEqual),o=Qu(i.areMapsEqual),s=Qu(i.areObjectsEqual),u=Qu(i.areSetsEqual);i=SA({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function bG(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function _G(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 xG=xi();xi({strict:!0});xi({circular:!0});xi({circular:!0,strict:!0});xi({createInternalComparator:function(){return ma}});xi({strict:!0,createInternalComparator:function(){return ma}});xi({circular:!0,createInternalComparator:function(){return ma}});xi({circular:!0,createInternalComparator:function(){return ma},strict:!0});function xi(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=vG(e),u=gG(s),l=n?n(u):bG(u);return _G({circular:r,comparator:u,createState:i,equals:l,strict:o})}function wG(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function AA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):wG(i)};requestAnimationFrame(n)}function yg(e){"@babel/helpers - typeof";return yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yg(e)}function SG(e){return PG(e)||TG(e)||OG(e)||AG()}function AG(){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 OG(e,t){if(e){if(typeof e=="string")return OA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OA(e,t)}}function OA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PG(e){if(Array.isArray(e))return e}function EG(){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=SG(o),u=s[0],l=s.slice(1);if(typeof u=="number"){AA(i.bind(null,l),u);return}i(u),AA(i.bind(null,l));return}yg(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function ou(e){"@babel/helpers - typeof";return ou=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},ou(e)}function TA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(e,t,r){return t=CG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CG(e){var t=MG(e,"string");return ou(t)==="symbol"?t:String(t)}function MG(e,t){if(ou(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ou(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kG=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},$G=function(t){return t},jG=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},xs=function(t,r){return Object.keys(r).reduce(function(n,i){return PA(PA({},n),{},nM({},i,t(i,r[i])))},{})},EA=function(t,r,n){return t.map(function(i){return"".concat(jG(i)," ").concat(r,"ms ").concat(n)}).join(",")},RG=process.env.NODE_ENV!=="production",Zl=function(t,r,n,i,a,o,s,u){if(RG&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,a,o,s,u],c=0;console.warn(r.replace(/%s/g,function(){return l[c++]}))}};function DG(e,t){return LG(e)||NG(e,t)||iM(e,t)||IG()}function IG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NG(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 LG(e){if(Array.isArray(e))return e}function BG(e){return zG(e)||FG(e)||iM(e)||qG()}function qG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iM(e,t){if(e){if(typeof e=="string")return gg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gg(e,t)}}function FG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zG(e){if(Array.isArray(e))return gg(e)}function gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Jl=1e-4,aM=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},oM=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},CA=function(t,r){return function(n){var i=aM(t,r);return oM(i,n)}},UG=function(t,r){return function(n){var i=aM(t,r),a=[].concat(BG(i.map(function(o,s){return o*s}).slice(1)),[0]);return oM(a,n)}},MA=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var l=u[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=DG(l,4);i=c[0],a=c[1],o=c[2],s=c[3]}else Zl(!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)}}Zl([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=CA(i,o),h=CA(a,s),p=UG(i,o),y=function(v){return v>1?1:v<0?0:v},m=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-_)<Jl||w<Jl)return h(b);b=y(b-g/w)}return h(b)};return m.isStepper=!1,m},WG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,u=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<Jl&&Math.abs(m)<Jl?[f,0]:[d,m]};return u.isStepper=!0,u.dt=s,u},GG=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return MA(i);case"spring":return WG();default:if(i.split("(")[0]==="cubic-bezier")return MA(i);Zl(!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:(Zl(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};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)}function kA(e){return YG(e)||KG(e)||sM(e)||HG()}function HG(){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 KG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YG(e){if(Array.isArray(e))return bg(e)}function $A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(r),!0).forEach(function(n){vg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vg(e,t,r){return t=XG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XG(e){var t=VG(e,"string");return su(t)==="symbol"?t:String(t)}function VG(e,t){if(su(e)!=="object"||e===null)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 ZG(e,t){return tH(e)||QG(e,t)||sM(e,t)||JG()}function JG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sM(e,t){if(e){if(typeof e=="string")return bg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bg(e,t)}}function bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QG(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 tH(e){if(Array.isArray(e))return e}var Ql=function(t,r,n){return t+(r-t)*n},_g=function(t){var r=t.from,n=t.to;return r!==n},eH=function e(t,r,n){var i=xs(function(a,o){if(_g(o)){var s=t(o.from,o.to,o.velocity),u=ZG(s,2),l=u[0],c=u[1];return ke(ke({},o),{},{from:l,velocity:c})}return o},r);return n<1?xs(function(a,o){return _g(o)?ke(ke({},o),{},{velocity:Ql(o.velocity,i[a].velocity,n),from:Ql(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const rH=(function(e,t,r,n,i){var a=kG(e,t),o=a.reduce(function(d,v){return ke(ke({},d),{},vg({},v,[e[v],t[v]]))},{}),s=a.reduce(function(d,v){return ke(ke({},d),{},vg({},v,{from:e[v],velocity:0,to:t[v]}))},{}),u=-1,l,c,f=function(){return null},h=function(){return xs(function(v,_){return _.from},s)},p=function(){return!Object.values(s).filter(_g).length},y=function(v){l||(l=v);var _=v-l,b=_/r.dt;s=eH(r,s,b),i(ke(ke(ke({},e),t),h())),l=v,p()||(u=requestAnimationFrame(f))},m=function(v){c||(c=v);var _=(v-c)/n,b=xs(function(g,w){return Ql.apply(void 0,kA(w).concat([r(_)]))},o);if(i(ke(ke(ke({},e),t),b)),_<1)u=requestAnimationFrame(f);else{var x=xs(function(g,w){return Ql.apply(void 0,kA(w).concat([r(1)]))},o);i(ke(ke(ke({},e),t),x))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}});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)}var nH=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function iH(e,t){if(e==null)return{};var r=aH(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 aH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function $m(e){return lH(e)||uH(e)||sH(e)||oH()}function oH(){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 sH(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 uH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lH(e){if(Array.isArray(e))return xg(e)}function xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(n){us(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function us(e,t,r){return t=uM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fH(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 hH(e,t,r){return t&&fH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uM(e){var t=pH(e,"string");return so(t)==="symbol"?t:String(t)}function pH(e,t){if(so(e)!=="object"||e===null)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)}function dH(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 mH(e){var t=yH();return function(){var n=tc(e),i;if(t){var a=tc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Sg(this,i)}}function Sg(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ag(e)}function Ag(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yH(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tc(e)}var rn=(function(e){dH(r,e);var t=mH(r);function r(n,i){var a;cH(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(Ag(a)),a.changeStyle=a.changeStyle.bind(Ag(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Sg(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof h=="function")return a.state={style:l},Sg(a);a.state={style:u?us({},u,l):l}}else a.state={style:{}};return a}return hH(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?us({},u,c):c};this.state&&h&&(u&&h[u]!==c||!u&&h!==c)&&this.setState(p);return}if(!(xG(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||l?f:i.to;if(this.state&&h){var d={style:u?us({},u,m):m};(u&&h[u]!==m||!u&&h!==m)&&this.setState(d)}this.runAnimation(Xr(Xr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,u=i.duration,l=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=rH(o,s,GG(l),u,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,u,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,u=i.onAnimationStart,l=o[0],c=l.style,f=l.duration,h=f===void 0?0:f,p=function(m,d,v){if(v===0)return m;var _=d.duration,b=d.easing,x=b===void 0?"ease":b,g=d.style,w=d.properties,S=d.onAnimationEnd,O=v>0?o[v-1]:d,T=w||Object.keys(g);if(typeof x=="function"||x==="spring")return[].concat($m(m),[a.runJSAnimation.bind(a,{from:O.style,to:g,duration:_,easing:x}),_]);var M=EA(T,_,x),P=Xr(Xr(Xr({},O.style),g),{},{transition:M});return[].concat($m(m),[P,_,S]).filter($G)};return this.manager.start([u].concat($m(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=EG());var a=i.begin,o=i.duration,s=i.attributeName,u=i.to,l=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?us({},s,u):u,d=EA(Object.keys(m),o,l);y.start([c,a,Xr(Xr({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=iH(i,nH),l=A.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||l===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,v=y.className,_=A.cloneElement(p,Xr(Xr({},u),{},{style:Xr(Xr({},d),c),className:v}));return _};return l===1?f(A.Children.only(a)):A.createElement("div",null,A.Children.map(a,function(h){return f(h)}))}}]),r})(A.PureComponent);rn.displayName="Animate";rn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};rn.propTypes={from:Bt.oneOfType([Bt.object,Bt.string]),to:Bt.oneOfType([Bt.object,Bt.string]),attributeName:Bt.string,duration:Bt.number,begin:Bt.number,easing:Bt.oneOfType([Bt.string,Bt.func]),steps:Bt.arrayOf(Bt.shape({duration:Bt.number.isRequired,style:Bt.object.isRequired,easing:Bt.oneOfType([Bt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Bt.func]),properties:Bt.arrayOf("string"),onAnimationEnd:Bt.func})),children:Bt.oneOfType([Bt.node,Bt.func]),isActive:Bt.bool,canBegin:Bt.bool,onAnimationEnd:Bt.func,shouldReAnimate:Bt.bool,onAnimationStart:Bt.func,onAnimationReStart:Bt.func};function 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 ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}function gH(e,t){return xH(e)||_H(e,t)||bH(e,t)||vH()}function vH(){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 bH(e,t){if(e){if(typeof e=="string")return RA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RA(e,t)}}function RA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _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 xH(e){if(Array.isArray(e))return e}function DA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(r),!0).forEach(function(n){wH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wH(e,t,r){return t=SH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SH(e){var t=AH(e,"string");return uu(t)=="symbol"?t:t+""}function AH(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 NA=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,u=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(t+u*f[0],",").concat(r)),c+="L ".concat(t+n-u*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`,
145
+ `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`,
146
+ `).concat(t+n-u*f[2],",").concat(r+i)),c+="L ".concat(t+u*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`,
147
+ `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);c="M ".concat(t,",").concat(r+s*y,`
148
+ A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+u*y,",").concat(r,`
149
+ L `).concat(t+n-u*y,",").concat(r,`
150
+ A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n,",").concat(r+s*y,`
151
+ L `).concat(t+n,",").concat(r+i-s*y,`
152
+ A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n-u*y,",").concat(r+i,`
153
+ L `).concat(t+u*y,",").concat(r+i,`
154
+ A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},OH=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},TH={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},T0=function(t){var r=IA(IA({},TH),t),n=A.useRef(),i=A.useState(-1),a=gH(i,2),o=a[0],s=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var u=r.x,l=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isAnimationActive,_=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var b=Ot("recharts-rectangle",p);return _?A.createElement(rn,{canBegin:o>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:m,animationEasing:y,isActive:_},function(x){var g=x.width,w=x.height,S=x.x,O=x.y;return A.createElement(rn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:v,easing:y},A.createElement("path",ec({},vt(r,!0),{className:b,d:NA(S,O,g,w,h),ref:n})))}):A.createElement("path",ec({},vt(r,!0),{className:b,d:NA(u,l,c,f,h)}))};function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Og.apply(this,arguments)}var Xc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Ot("recharts-dot",a);return r===+r&&n===+n&&i===+i?qr.createElement("circle",Og({},vt(t,!1),Ll(t),{className:o,cx:r,cy:n,r:i})):null};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)}var PH=["x","y","top","left","width","height","className"];function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tg.apply(this,arguments)}function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function EH(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(r),!0).forEach(function(n){CH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CH(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 lu(t)=="symbol"?t:t+""}function kH(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)}function $H(e,t){if(e==null)return{};var r=jH(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 jH(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 RH=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},DH=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,u=t.left,l=u===void 0?0:u,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=$H(t,PH),d=EH({x:n,y:a,top:s,left:l,width:f,height:p},m);return!nt(n)||!nt(a)||!nt(f)||!nt(p)||!nt(s)||!nt(l)?null:A.createElement("path",Tg({},vt(d,!0),{className:Ot("recharts-cross",y),d:RH(n,a,f,p,s,l)}))},jm,BA;function IH(){if(BA)return jm;BA=1;var e=YE(),t=e(Object.getPrototypeOf,Object);return jm=t,jm}var Rm,qA;function NH(){if(qA)return Rm;qA=1;var e=Yn(),t=IH(),r=Xn(),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 Rm=l,Rm}var LH=NH();const BH=qt(LH);var Dm,FA;function qH(){if(FA)return Dm;FA=1;var e=Yn(),t=Xn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Dm=n,Dm}var FH=qH();const zH=qt(FH);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 rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}function UH(e,t){return KH(e)||HH(e,t)||GH(e,t)||WH()}function WH(){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 GH(e,t){if(e){if(typeof e=="string")return zA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zA(e,t)}}function zA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HH(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 KH(e){if(Array.isArray(e))return e}function UA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){YH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YH(e,t,r){return t=XH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XH(e){var t=VH(e,"string");return cu(t)=="symbol"?t:t+""}function VH(e,t){if(cu(e)!="object"||!e)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 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},ZH={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},JH=function(t){var r=WA(WA({},ZH),t),n=A.useRef(),i=A.useState(-1),a=UH(i,2),o=a[0],s=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var u=r.x,l=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var _=Ot("recharts-trapezoid",p);return v?A.createElement(rn,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:u,y:l},to:{upperWidth:c,lowerWidth:f,height:h,x:u,y:l},duration:m,animationEasing:y,isActive:v},function(b){var x=b.upperWidth,g=b.lowerWidth,w=b.height,S=b.x,O=b.y;return A.createElement(rn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},A.createElement("path",rc({},vt(r,!0),{className:_,d:GA(S,O,x,g,w),ref:n})))}):A.createElement("g",null,A.createElement("path",rc({},vt(r,!0),{className:_,d:GA(u,l,c,f,h)})))},QH=["option","shapeType","propTransformer","activeClassName","isActive"];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 t6(e,t){if(e==null)return{};var r=e6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function HA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(r),!0).forEach(function(n){r6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r6(e,t,r){return t=n6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n6(e){var t=i6(e,"string");return fu(t)=="symbol"?t:t+""}function i6(e,t){if(fu(e)!="object"||!e)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 a6(e,t){return nc(nc({},t),e)}function o6(e,t){return e==="symbols"}function KA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(T0,r);case"trapezoid":return A.createElement(JH,r);case"sector":return A.createElement(QC,r);case"symbols":if(o6(t))return A.createElement(Wc,r);break;default:return null}}function s6(e){return A.isValidElement(e)?e.props:e}function Pg(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?a6:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,u=t6(e,QH),l;if(A.isValidElement(t))l=A.cloneElement(t,nc(nc({},u),s6(t)));else if(bt(t))l=t(u);else if(BH(t)&&!zH(t)){var c=i(t,u);l=A.createElement(KA,{shapeType:r,elementProps:c})}else{var f=u;l=A.createElement(KA,{shapeType:r,elementProps:f})}return s?A.createElement(Rt,{className:o},l):l}function Vc(e,t){return t!=null&&"trapezoids"in e.props}function Zc(e,t){return t!=null&&"sectors"in e.props}function hu(e,t){return t!=null&&"points"in e.props}function u6(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 l6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function c6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function f6(e,t){var r;return Vc(e,t)?r=u6:Zc(e,t)?r=l6:hu(e,t)&&(r=c6),r}function h6(e,t){var r;return Vc(e,t)?r="trapezoids":Zc(e,t)?r="sectors":hu(e,t)&&(r="points"),r}function p6(e,t){if(Vc(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Zc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return hu(e,t)?t.payload:{}}function d6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=h6(r,t),a=p6(r,t),o=n.filter(function(u,l){var c=aa(a,u),f=r.props[i].filter(function(y){var m=f6(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=l===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function 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)}function YA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(r),!0).forEach(function(n){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=m6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m6(e){var t=y6(e,"string");return pu(t)=="symbol"?t:t+""}function y6(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)}var g6=["Webkit","Moz","O","ms"],v6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=g6.reduce(function(a,o){return XA(XA({},a),{},lM({},o+n,r))},{});return i[t]=r,i};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 ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(this,arguments)}function VA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(r),!0).forEach(function(n){gr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fM(n.key),n)}}function _6(e,t,r){return t&&ZA(e.prototype,t),r&&ZA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function x6(e,t,r){return t=ac(t),w6(e,cM()?Reflect.construct(t,r||[],ac(e).constructor):t.apply(e,r))}function w6(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 S6(e)}function S6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cM=function(){return!!e})()}function ac(e){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ac(e)}function A6(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 gr(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=O6(e,"string");return uo(t)=="symbol"?t:t+""}function O6(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)}var T6=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=ls().domain(Fs(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}},JA=function(t){return t.changedTouches&&!!t.changedTouches.length},lo=(function(e){function t(r){var n;return b6(this,t),n=x6(this,t,[r]),gr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),gr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),gr(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()}),gr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),gr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),gr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),gr(n,"handleSlideDragStart",function(i){var a=JA(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return A6(t,e),_6(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=_e(a[n],s,n);return bt(o)?o(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,u=this.props,l=u.x,c=u.width,f=u.travellerWidth,h=u.startIndex,p=u.endIndex,y=u.onChange,m=n.pageX-a;m>0?m=Math.min(m,l+c-f-s,l+c-f-o):m<0&&(m=Math.max(m,l-o,l-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=JA(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,u=i.startX,l=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,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 O=d.length-1;return o==="startX"&&(s>u?x%m===0:g%m===0)||s<u&&g===O||o==="endX"&&(s>u?g%m===0:x%m===0)||s>u&&g===O};this.setState(gr(gr({},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(gr({},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 A.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=A.Children.only(l);return f?A.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,u=this.props,l=u.y,c=u.travellerWidth,f=u.height,h=u.traveller,p=u.ariaLabel,y=u.data,m=u.startIndex,d=u.endIndex,v=Math.max(n,this.props.x),_=Im(Im({},vt(this.props,!1)),{},{x:v,y:l,width:c,height:f}),b=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return A.createElement(Rt,{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 A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill: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 A.createElement(Rt,{className:"recharts-brush-texts"},A.createElement(Wl,ic({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),A.createElement(Wl,ic({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+u+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,u=n.y,l=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,v=h.isTravellerMoving,_=h.isTravellerFocused;if(!i||!i.length||!nt(s)||!nt(u)||!nt(l)||!nt(c)||l<=0||c<=0)return null;var b=Ot("recharts-brush",a),x=A.Children.count(o)===1,g=v6("userSelect","none");return A.createElement(Rt,{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"),(m||d||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 A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:s,fill:u,stroke:"none"}),A.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),A.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 A.isValidElement(n)?a=A.cloneElement(n,i):bt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,u=n.travellerWidth,l=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return Im({prevData:a,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:o},a&&a.length?T6({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}}])})(A.PureComponent);gr(lo,"displayName","Brush");gr(lo,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Nm,QA;function P6(){if(QA)return Nm;QA=1;var e=y0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Nm=t,Nm}var Lm,tO;function E6(){if(tO)return Lm;tO=1;var e=zE(),t=bi(),r=P6(),n=Xe(),i=Eu();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 Lm=a,Lm}var C6=E6();const M6=qt(C6);var xn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Bm,eO;function k6(){if(eO)return Bm;eO=1;var e=eC();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Bm=t,Bm}var qm,rO;function $6(){if(rO)return qm;rO=1;var e=k6(),t=QE(),r=bi();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 qm=n,qm}var j6=$6();const R6=qt(j6);var Fm,nO;function D6(){if(nO)return Fm;nO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Fm=e,Fm}var zm,iO;function I6(){if(iO)return zm;iO=1;var e=y0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return zm=t,zm}var Um,aO;function N6(){if(aO)return Um;aO=1;var e=D6(),t=I6(),r=bi(),n=Xe(),i=Eu();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 Um=a,Um}var L6=N6();const hM=qt(L6);var B6=["x","y"];function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cg.apply(this,arguments)}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qo(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){q6(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 q6(e,t,r){return t=F6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F6(e){var t=z6(e,"string");return co(t)=="symbol"?t:t+""}function z6(e,t){if(co(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(co(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(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 G6(e,t){var r=e.x,n=e.y,i=U6(e,B6),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 Qo(Qo(Qo(Qo(Qo({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function sO(e){return A.createElement(Pg,Cg({shapeType:"rectangle",propTransformer:G6,activeClassName:"recharts-active-bar"},e))}var H6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=nt(n)||dz(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?er(!1,"minPointSize callback function received a value with type of ".concat(co(n),". Currently only numbers or null/undefined are supported.")):er()),r)}},K6=["value","background"],pM;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)}function Y6(e,t){if(e==null)return{};var r=X6(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 X6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oc.apply(this,arguments)}function uO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uO(Object(r),!0).forEach(function(n){ui(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lO(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 Z6(e,t,r){return t&&lO(e.prototype,t),r&&lO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function J6(e,t,r){return t=sc(t),Q6(e,dM()?Reflect.construct(t,r||[],sc(e).constructor):t.apply(e,r))}function Q6(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 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 dM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dM=function(){return!!e})()}function sc(e){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sc(e)}function 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&&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 ui(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=rK(e,"string");return fo(t)=="symbol"?t:t+""}function rK(e,t){if(fo(e)!="object"||!e)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)}var Ro=(function(e){function t(){var r;V6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=J6(this,t,[].concat(i)),ui(r,"state",{isAnimationFinished:!1}),ui(r,"id",da("recharts-bar-")),ui(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),ui(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return eK(t,e),Z6(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,u=a.activeIndex,l=a.activeBar,c=vt(this.props,!1);return n&&n.map(function(f,h){var p=h===u,y=p?l:o,m=fe(fe(fe({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(Rt,oc({className:"recharts-bar-rectangle"},zs(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)}),A.createElement(sO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,u=i.animationBegin,l=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return A.createElement(rn,{begin:u,duration:l,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,v){var _=h&&h[v];if(_){var b=ue(_.x,d.x),x=ue(_.y,d.y),g=ue(_.width,d.width),w=ue(_.height,d.height);return fe(fe({},d),{},{x:b(y),y:x(y),width:g(y),height:w(y)})}if(o==="horizontal"){var S=ue(0,d.height),O=S(y);return fe(fe({},d),{},{y:d.y+d.height-O,height:O})}var T=ue(0,d.width),M=T(y);return fe(fe({},d),{},{width:M})});return A.createElement(Rt,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!aa(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,u=vt(this.props.background,!1);return a.map(function(l,c){l.value;var f=l.background,h=Y6(l,K6);if(!f)return null;var p=fe(fe(fe(fe(fe({},h),{},{fill:"#eee"},f),u),zs(n.props,l,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return A.createElement(sO,oc({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,u=a.yAxis,l=a.layout,c=a.children,f=sr(c,jo);if(!f)return null;var h=l==="vertical"?o[0].height/2:o[0].width/2,p=function(d,v){var _=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:_,errorVal:_e(d,v)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(Rt,y,f.map(function(m){return A.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:u,layout:l,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,u=n.yAxis,l=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=Ot("recharts-bar",o),_=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,x=_||b,g=gt(m)?this.id:m;return A.createElement(Rt,{className:v},_||b?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(g)},A.createElement("rect",{x:_?l:l-f/2,y:b?c:c-h/2,width:_?f:f*2,height:b?h:h*2}))):null,A.createElement(Rt,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,g),(!p||d)&&_n.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}}])})(A.PureComponent);pM=Ro;ui(Ro,"displayName","Bar");ui(Ro,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!_i.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ui(Ro,"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=_W(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?fe(fe({},m),r.props):r.props,v=d.dataKey,_=d.children,b=d.minPointSize,x=y==="horizontal"?o:a,g=l?x.scale.domain():null,w=EW({numericAxis:x}),S=sr(_,x0),O=f.map(function(T,M){var P,E,k,R,$,C;l?P=xW(l[c+M],g):(P=_e(T,v),Array.isArray(P)||(P=[w,P]));var I=H6(b,pM.defaultProps.minPointSize)(P[1],M);if(y==="horizontal"){var L,q=[o.scale(P[0]),o.scale(P[1])],D=q[0],j=q[1];E=US({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:M}),k=(L=j??D)!==null&&L!==void 0?L:void 0,R=p.size;var B=D-j;if($=Number.isNaN(B)?0:B,C={x:E,y:o.y,width:R,height:o.height},Math.abs(I)>0&&Math.abs($)<Math.abs(I)){var W=en($||I)*(Math.abs(I)-Math.abs($));k-=W,$+=W}}else{var G=[a.scale(P[0]),a.scale(P[1])],X=G[0],J=G[1];if(E=X,k=US({axis:o,ticks:u,bandSize:i,offset:p.offset,entry:T,index:M}),R=J-X,$=p.size,C={x:a.x,y:k,width:a.width,height:$},Math.abs(I)>0&&Math.abs(R)<Math.abs(I)){var et=en(R||I)*(Math.abs(I)-Math.abs(R));R+=et}}return fe(fe(fe({},T),{},{x:E,y:k,width:R,height:$,value:l?P:P[1],payload:T,background:C},S&&S[M]&&S[M].props),{},{tooltipPayload:[VC(r,T)],tooltipPosition:{x:E+R/2,y:k+$/2}})});return fe({data:O,layout:y},h)});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 nK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yM(n.key),n)}}function iK(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){Jc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jc(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=aK(e,"string");return du(t)=="symbol"?t:t+""}function aK(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 oK=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=!!vr(l,Ro);return c.reduce(function(p,y){var m=r[y],d=m.orientation,v=m.domain,_=m.padding,b=_===void 0?{}:_,x=m.mirror,g=m.reversed,w="".concat(d).concat(x?"Mirror":""),S,O,T,M,P;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=v[1]-v[0],k=1/0,R=m.categoricalDomain.sort(vz);if(R.forEach(function(G,X){X>0&&(k=Math.min((G||0)-(R[X-1]||0),k))}),Number.isFinite(k)){var $=k/E,C=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=$*C/2),m.padding==="no-gap"){var I=ia(t.barCategoryGap,$*C),L=$*C/2;S=L-I-(L-I)/C*I}}}i==="xAxis"?O=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?O=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)]:O=m.range,g&&(O=[O[1],O[0]]);var q=vW(m,a,h),D=q.scale,j=q.realScaleType;D.domain(v).range(O),bW(D);var B=PW(D,Zr(Zr({},m),{},{realScaleType:j}));i==="xAxis"?(P=d==="top"&&!x||d==="bottom"&&x,T=n.left,M=f[w]-P*m.height):i==="yAxis"&&(P=d==="left"&&!x||d==="right"&&x,T=f[w]-P*m.width,M=n.top);var W=Zr(Zr(Zr({},m),B),{},{realScaleType:j,x:T,y:M,scale:D,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return W.bandSize=Yl(W,B),!m.hide&&i==="xAxis"?f[w]+=(P?-1:1)*W.height:m.hide||(f[w]+=(P?-1:1)*W.width),Zr(Zr({},p),{},Jc({},y,W))},{})},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)}},sK=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){nK(this,e),this.scale=t}return iK(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var 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)}}])})();Jc(vM,"EPS",1e-4);var P0=function(t){var r=Object.keys(t).reduce(function(n,i){return Zr(Zr({},n),{},Jc({},i,vM.create(t[i])))},{});return Zr(Zr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return R6(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 uK(e){return(e%180+180)%180}var lK=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=uK(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)},Wm,hO;function cK(){if(hO)return Wm;hO=1;var e=bi(),t=Tu(),r=Pu();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 Wm=n,Wm}var Gm,pO;function fK(){if(pO)return Gm;pO=1;var e=mC(),t=bi(),r=n0(),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 Gm=i,Gm}var Hm,dO;function hK(){if(dO)return Hm;dO=1;var e=cK(),t=fK(),r=e(t);return Hm=r,Hm}var pK=hK();const dK=qt(pK);var mK=LE();const yK=qt(mK);var gK=yK(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 uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}var E0=A.createContext(void 0),C0=A.createContext(void 0),bM=A.createContext(void 0),_M=A.createContext({}),xM=A.createContext(void 0),wM=A.createContext(0),SM=A.createContext(0),mO=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=gK(a);return A.createElement(E0.Provider,{value:n},A.createElement(C0.Provider,{value:i},A.createElement(_M.Provider,{value:a},A.createElement(bM.Provider,{value:c},A.createElement(xM.Provider,{value:o},A.createElement(wM.Provider,{value:l},A.createElement(SM.Provider,{value:u},s)))))))},vK=function(){return A.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=A.useContext(E0);r==null&&(process.env.NODE_ENV!=="production"?er(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):er());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?er(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(uc(t),"]. ").concat(AM(r))):er()),n},bK=function(){var t=A.useContext(E0);return ni(t)},_K=function(){var t=A.useContext(C0),r=dK(t,function(n){return hM(n.domain,Number.isFinite)});return r||ni(t)},TM=function(t){var r=A.useContext(C0);r==null&&(process.env.NODE_ENV!=="production"?er(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):er());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?er(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(uc(t),"]. ").concat(AM(r))):er()),n},xK=function(){var t=A.useContext(bM);return t},wK=function(){return A.useContext(_M)},M0=function(){return A.useContext(SM)},k0=function(){return A.useContext(wM)};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 SK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AK(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 OK(e,t,r){return t&&AK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TK(e,t,r){return t=lc(t),PK(e,PM()?Reflect.construct(t,r||[],lc(e).constructor):t.apply(e,r))}function PK(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 EK(e)}function EK(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 lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lc(e)}function CK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kg(e,t)}function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(r),!0).forEach(function(n){$0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $0(e,t,r){return t=EM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(e){var t=MK(e,"string");return ho(t)=="symbol"?t:t+""}function MK(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)}function kK(e,t){return DK(e)||RK(e,t)||jK(e,t)||$K()}function $K(){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 jK(e,t){if(e){if(typeof e=="string")return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RK(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 DK(e){if(Array.isArray(e))return e}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$g.apply(this,arguments)}var IK=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):bt(t)?n=t(r):n=A.createElement("line",$g({},r,{className:"recharts-reference-line-line"})),n},NK=function(t,r,n,i,a,o,s,u,l){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=l.y,m=t.y.apply(y,{position:o});if(xn(l,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return u==="left"?d.reverse():d}if(r){var v=l.x,_=t.x.apply(v,{position:o});if(xn(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 xn(l,"discard")&&M6(g,function(w){return!t.isInRange(w)})?null:g}return null};function LK(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=vK(),c=OM(i),f=TM(a),h=xK();if(!l||!h)return null;Bn(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=P0({x:c.scale,y:f.scale}),y=be(t),m=be(r),d=n&&n.length===2,v=NK(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!v)return null;var _=kK(v,2),b=_[0],x=b.x,g=b.y,w=_[1],S=w.x,O=w.y,T=xn(e,"hidden")?"url(#".concat(l,")"):void 0,M=gO(gO({clipPath:T},vt(e,!0)),{},{x1:x,y1:g,x2:S,y2:O});return A.createElement(Rt,{className:Ot("recharts-reference-line",s)},IK(o,M),qe.renderCallByParent(e,sK({x1:x,y1:g,x2:S,y2:O})))}var Qc=(function(e){function t(){return SK(this,t),TK(this,t,arguments)}return CK(t,e),OK(t,[{key:"render",value:function(){return A.createElement(LK,this.props)}}])})(A.Component);$0(Qc,"displayName","ReferenceLine");$0(Qc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jg.apply(this,arguments)}function 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 bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MM(n.key),n)}}function FK(e,t,r){return t&&qK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zK(e,t,r){return t=cc(t),UK(e,CM()?Reflect.construct(t,r||[],cc(e).constructor):t.apply(e,r))}function UK(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 WK(e)}function WK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function 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 GK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rg(e,t)}function tf(e,t,r){return t=MM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MM(e){var t=HK(e,"string");return po(t)=="symbol"?t:t+""}function HK(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 String(e)}var KK=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=P0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return xn(t,"discard")&&!o.isInRange(s)?null:s},ef=(function(e){function t(){return BK(this,t),zK(this,t,arguments)}return GK(t,e),FK(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=be(i),c=be(a);if(Bn(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var f=KK(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,v=xn(this.props,"hidden")?"url(#".concat(u,")"):void 0,_=_O(_O({clipPath:v},vt(this.props,!0)),{},{cx:h,cy:p});return A.createElement(Rt,{className:Ot("recharts-reference-dot",d)},t.renderDot(m,_),qe.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(A.Component);tf(ef,"displayName","ReferenceDot");tf(ef,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});tf(ef,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):bt(e)?r=e(t):r=A.createElement(Xc,jg({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dg.apply(this,arguments)}function 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 xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XK(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 VK(e,t,r){return t&&XK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZK(e,t,r){return t=fc(t),JK(e,kM()?Reflect.construct(t,r||[],fc(e).constructor):t.apply(e,r))}function JK(e,t){if(t&&(mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QK(e)}function QK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kM=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fc(e)}function t4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ig(e,t)}function Ig(e,t){return Ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ig(e,t)}function rf(e,t,r){return t=$M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $M(e){var t=e4(e,"string");return mo(t)=="symbol"?t:t+""}function e4(e,t){if(mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var r4=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=P0({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 xn(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:gM(p,y)},nf=(function(e){function t(){return YK(this,t),ZK(this,t,arguments)}return t4(t,e),VK(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;Bn(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=be(i),h=be(a),p=be(o),y=be(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=r4(f,h,p,y,this.props);if(!d&&!m)return null;var v=xn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return A.createElement(Rt,{className:Ot("recharts-reference-area",u)},t.renderRect(m,wO(wO({clipPath:v},vt(this.props,!0)),d)),qe.renderCallByParent(this.props,d))}}])})(A.Component);rf(nf,"displayName","ReferenceArea");rf(nf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});rf(nf,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):bt(e)?r=e(t):r=A.createElement(T0,Dg({},t,{className:"recharts-reference-area-rect"})),r});function jM(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function n4(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return lK(n,r)}function i4(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function hc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function a4(e,t){return jM(e,t+1)}function o4(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 m=u,d,v=function(){return d===void 0&&(d=r(y,m)),d},_=y.coordinate,b=u===0||hc(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 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 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 Le(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){s4(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 s4(e,t,r){return t=u4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u4(e){var t=l4(e,"string");return mu(t)=="symbol"?t:t+""}function l4(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 c4(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,u=t.end,l=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-u);a[h]=p=Le(Le({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Le(Le({},p),{},{tickCoord:p.coordinate});var v=hc(e,p.tickCoord,m,s,u);v&&(u=p.tickCoord-e*(m()/2+i),a[h]=Le(Le({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)l(c);return a}function f4(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=Le(Le({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=hc(e,c.tickCoord,function(){return f},u,l);p&&(l=c.tickCoord-e*(f/2+i),o[s-1]=Le(Le({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=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=Le(Le({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else o[_]=b=Le(Le({},b),{},{tickCoord:b.coordinate});var S=hc(e,b.tickCoord,g,u,l);S&&(u=b.tickCoord+e*(g()/2+i),o[_]=Le(Le({},b),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function j0(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,u=e.interval,l=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(nt(u)||_i.isSsr)return a4(i,typeof u=="number"&&nt(u)?u:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?bs(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(b,x){var g=bt(l)?l(b.value,x):b.value;return p==="width"?n4(bs(g,{fontSize:t,letterSpacing:r}),y,f):bs(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?en(i[1].coordinate-i[0].coordinate):1,v=i4(a,d,p);return u==="equidistantPreserveStart"?o4(d,v,m,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=f4(d,v,m,i,o,u==="preserveStartEnd"):h=c4(d,v,m,i,o),h.filter(function(_){return _.isShow}))}var h4=["viewBox"],p4=["viewBox"],d4=["ticks"];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 $a(){return $a=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},$a.apply(this,arguments)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){R0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Km(e,t){if(e==null)return{};var r=m4(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 m4(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 y4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DM(n.key),n)}}function g4(e,t,r){return t&&OO(e.prototype,t),r&&OO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v4(e,t,r){return t=pc(t),b4(e,RM()?Reflect.construct(t,r||[],pc(e).constructor):t.apply(e,r))}function b4(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 _4(e)}function _4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RM=function(){return!!e})()}function pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pc(e)}function x4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ng(e,t)}function Ng(e,t){return Ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ng(e,t)}function R0(e,t,r){return t=DM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DM(e){var t=w4(e,"string");return yo(t)=="symbol"?t:t+""}function w4(e,t){if(yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Do=(function(e){function t(r){var n;return y4(this,t),n=v4(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return x4(t,e),g4(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Km(n,h4),s=this.props,u=s.viewBox,l=Km(s,p4);return!Fa(a,u)||!Fa(o,l)||!Fa(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,v,_,b=f?-1:1,x=n.tickSize||c,g=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=y=n.coordinate,d=o+ +!f*u,m=d-b*x,_=m-b*h,v=g;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-b*x,v=p-b*h,_=g;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+b*x,v=p+b*h,_=g;break;default:p=y=n.coordinate,d=o+ +f*u,m=d+b*x,_=m+b*h,v=g;break}return{line:{x1:p,y1:m,x2:y,y2:d},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=ge(ge(ge({},vt(this.props,!1)),vt(c,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!l||u==="bottom"&&l);f=ge(ge({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(u==="left"&&!l||u==="right"&&l);f=ge(ge({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return A.createElement("line",$a({},f,{className:Ot("recharts-cartesian-axis-line",Fr(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=j0(ge(ge({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=vt(this.props,!1),v=vt(c,!1),_=ge(ge({},d),{},{fill:"none"},vt(u,!1)),b=p.map(function(x,g){var w=o.getTickLineCoord(x),S=w.line,O=w.tick,T=ge(ge(ge(ge({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:l},v),O),{},{index:g,payload:x,visibleTicksCount:p.length,tickFormatter:f});return A.createElement(Rt,$a({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},zs(o.props,x,g)),u&&A.createElement("line",$a({},_,S,{className:Ot("recharts-cartesian-axis-tick-line",Fr(u,"className"))})),c&&t.renderTickItem(c,T,"".concat(bt(f)?f(x.value,g):x.value).concat(h||"")))});return A.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=Km(f,d4),y=h;return bt(u)&&(y=h&&h.length>0?u(this.props):u(p)),o<=0||s<=0||!y||!y.length?null:A.createElement(Rt,{className:Ot("recharts-cartesian-axis",l),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),qe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Ot(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,ge(ge({},i),{},{className:s})):bt(n)?o=n(ge(ge({},i),{},{className:s})):o=A.createElement(Wl,$a({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(A.Component);R0(Do,"displayName","CartesianAxis");R0(Do,"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 S4=["x1","y1","x2","y2","key"],A4=["offset"];function sa(e){"@babel/helpers - typeof";return sa=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},sa(e)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){O4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O4(e,t,r){return t=T4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T4(e){var t=P4(e,"string");return sa(t)=="symbol"?t:t+""}function P4(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zi.apply(this,arguments)}function PO(e,t){if(e==null)return{};var r=E4(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 E4(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 C4=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 A.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(A.isValidElement(e))r=A.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,u=PO(t,S4),l=vt(u,!1);l.offset;var c=PO(l,A4);r=A.createElement("line",zi({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function M4(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=Fe(Fe({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return IM(i,l)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function k4(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=Fe(Fe({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return IM(i,l)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function $4(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,u=e.horizontal,l=u===void 0?!0:u;if(!l||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return A.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function j4(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,u=e.height,l=e.verticalPoints;if(!r||!n||!n.length)return null;var c=l.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return A.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:u,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var R4=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return YC(j0(Fe(Fe(Fe({},Do.defaultProps),n),{},{ticks:Nn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},D4=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return YC(j0(Fe(Fe(Fe({},Do.defaultProps),n),{},{ticks:Nn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ta={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function NM(e){var t,r,n,i,a,o,s=M0(),u=k0(),l=wK(),c=Fe(Fe({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ta.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ta.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ta.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ta.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ta.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ta.verticalFill,x:nt(e.x)?e.x:l.left,y:nt(e.y)?e.y:l.top,width:nt(e.width)?e.width:l.width,height:nt(e.height)?e.height:l.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,v=c.verticalValues,_=bK(),b=_K();if(!nt(p)||p<=0||!nt(y)||y<=0||!nt(f)||f!==+f||!nt(h)||h!==+h)return null;var x=c.verticalCoordinatesGenerator||R4,g=c.horizontalCoordinatesGenerator||D4,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&bt(g)){var O=d&&d.length,T=g({yAxis:b?Fe(Fe({},b),{},{ticks:O?d:b.ticks}):void 0,width:s,height:u,offset:l},O?!0:m);Bn(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(sa(T),"]")),Array.isArray(T)&&(w=T)}if((!S||!S.length)&&bt(x)){var M=v&&v.length,P=x({xAxis:_?Fe(Fe({},_),{},{ticks:M?v:_.ticks}):void 0,width:s,height:u,offset:l},M?!0:m);Bn(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(sa(P),"]")),Array.isArray(P)&&(S=P)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(C4,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),A.createElement(M4,zi({},c,{offset:l,horizontalPoints:w,xAxis:_,yAxis:b})),A.createElement(k4,zi({},c,{offset:l,verticalPoints:S,xAxis:_,yAxis:b})),A.createElement($4,zi({},c,{horizontalPoints:w})),A.createElement(j4,zi({},c,{verticalPoints:S})))}NM.displayName="CartesianGrid";var I4=["type","layout","connectNulls","ref"],N4=["key"];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 EO(e,t){if(e==null)return{};var r=L4(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 L4(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(){return ws=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},ws.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 yr(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){Jr(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 Pa(e){return z4(e)||F4(e)||q4(e)||B4()}function B4(){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 q4(e,t){if(e){if(typeof e=="string")return Lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lg(e,t)}}function F4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function z4(e){if(Array.isArray(e))return Lg(e)}function Lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U4(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 W4(e,t,r){return t&&MO(e.prototype,t),r&&MO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G4(e,t,r){return t=dc(t),H4(e,LM()?Reflect.construct(t,r||[],dc(e).constructor):t.apply(e,r))}function H4(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 K4(e)}function K4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(e)}function 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&&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 Jr(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=X4(e,"string");return go(t)=="symbol"?t:t+""}function X4(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(t==="string"?String:Number)(e)}var af=(function(e){function t(){var r;U4(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=G4(this,t,[].concat(i)),Jr(r,"state",{isAnimationFinished:!0,totalLength:0}),Jr(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Jr(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,m=0;y<u.length;m+=u[y],++y)if(m+u[y]>f){p=[].concat(Pa(u.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Pa(t.repeat(u,c)),Pa(p),d).map(function(v){return"".concat(v,"px")}).join(", ")}),Jr(r,"id",da("recharts-line-")),Jr(r,"pathRef",function(o){r.mainCurve=o}),Jr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Jr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Y4(t,e),W4(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=sr(c,jo);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:_e(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(Rt,p,f.map(function(y){return A.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:u,layout:l,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,u=s.dot,l=s.points,c=s.dataKey,f=vt(this.props,!1),h=vt(u,!0),p=l.map(function(m,d){var v=yr(yr(yr({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:l});return t.renderDotItem(u,v)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(Rt,ws({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=EO(s,I4),h=yr(yr(yr({},vt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:l,connectNulls:c});return A.createElement(Zi,ws({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.strokeDasharray,l=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,v=this.state,_=v.prevPoints,b=v.totalLength;return A.createElement(rn,{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,k){var R=Math.floor(k*w);if(_[R]){var $=_[R],C=ue($.x,E.x),I=ue($.y,E.y);return yr(yr({},E),{},{x:C(g),y:I(g)})}if(y){var L=ue(m*2,E.x),q=ue(d/2,E.y);return yr(yr({},E),{},{x:L(g),y:q(g)})}return yr(yr({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var O=ue(0,b),T=O(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||!aa(l,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,l=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,_=s.length===1,b=Ot("recharts-line",u),x=l&&l.allowDataOverflow,g=c&&c.allowDataOverflow,w=x||g,S=gt(d)?this.id:d,O=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=O.r,M=T===void 0?3:T,P=O.strokeWidth,E=P===void 0?2:P,k=cC(o)?o:{},R=k.clipDot,$=R===void 0?!0:R,C=M*2+E;return A.createElement(Rt,{className:b},x||g?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(S)},A.createElement("rect",{x:x?h:h-p/2,y:g?f:f-y/2,width:x?p:p*2,height:g?y:y*2})),!$&&A.createElement("clipPath",{id:"clipPath-dots-".concat(S)},A.createElement("rect",{x:h-C/2,y:f-C/2,width:p+C,height:y+C}))):null,!_&&this.renderCurve(w,S),this.renderErrorBar(w,S),(_||o)&&this.renderDots(w,$,S),(!m||v)&&_n.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(Pa(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Pa(o),Pa(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(A.isValidElement(n))a=A.cloneElement(n,i);else if(bt(n))a=n(i);else{var o=i.key,s=EO(i,N4),u=Ot("recharts-line-dot",typeof n!="boolean"?n.className:"");a=A.createElement(Xc,ws({key:o},s,{className:u}))}return a}}])})(A.PureComponent);Jr(af,"displayName","Line");Jr(af,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_i.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Jr(af,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,u=e.displayedData,l=e.offset,c=t.layout,f=u.map(function(h,p){var y=_e(h,o);return c==="horizontal"?{x:oo({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:gt(y)?null:n.scale(y),value:y,payload:h}:{x:gt(y)?null:r.scale(y),y:oo({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return yr({points:f,layout:c},l)});var V4=["layout","type","stroke","connectNulls","isRange","ref"],Z4=["key"],qM;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 FM(e,t){if(e==null)return{};var r=J4(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 J4(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 Ui(){return Ui=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},Ui.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 ei(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){vn(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 Q4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UM(n.key),n)}}function tY(e,t,r){return t&&$O(e.prototype,t),r&&$O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eY(e,t,r){return t=mc(t),rY(e,zM()?Reflect.construct(t,r||[],mc(e).constructor):t.apply(e,r))}function rY(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 nY(e)}function nY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zM=function(){return!!e})()}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mc(e)}function iY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qg(e,t)}function vn(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=aY(e,"string");return vo(t)=="symbol"?t:t+""}function aY(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 wi=(function(e){function t(){var r;Q4(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=eY(this,t,[].concat(i)),vn(r,"state",{isAnimationFinished:!0}),vn(r,"id",da("recharts-area-")),vn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),bt(o)&&o()}),vn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),bt(o)&&o()}),r}return iY(t,e),tY(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var u=this.props,l=u.dot,c=u.points,f=u.dataKey,h=vt(this.props,!1),p=vt(l,!0),y=c.map(function(d,v){var _=ei(ei(ei({key:"dot-".concat(v),r:3},h),p),{},{index:v,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(l,_)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(Rt,Ui({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].x,l=o[o.length-1].x,c=n*Math.abs(u-l),f=si(o.map(function(h){return h.y||0}));return nt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(si(a.map(function(h){return h.y||0})),f)),nt(f)?A.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=si(o.map(function(h){return h.x||0}));return nt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(si(a.map(function(h){return h.x||0})),f)),nt(f)?A.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,V4);return A.createElement(Rt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},A.createElement(Zi,Ui({},vt(p,!0),{points:n,connectNulls:f,type:l,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),c!=="none"&&A.createElement(Zi,Ui({},vt(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&A.createElement(Zi,Ui({},vt(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.baseLine,l=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return A.createElement(rn,{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(m){var b=m.length/s.length,x=s.map(function(O,T){var M=Math.floor(T*b);if(m[M]){var P=m[M],E=ue(P.x,O.x),k=ue(P.y,O.y);return ei(ei({},O),{},{x:E(_),y:k(_)})}return O}),g;if(nt(u)&&typeof u=="number"){var w=ue(d,u);g=w(_)}else if(gt(u)||Mo(u)){var S=ue(d,0);g=S(_)}else g=u.map(function(O,T){var M=Math.floor(T*b);if(d[M]){var P=d[M],E=ue(P.x,O.x),k=ue(P.y,O.y);return ei(ei({},O),{},{x:E(_),y:k(_)})}return O});return a.renderAreaStatically(x,g,n,i)}return A.createElement(Rt,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(_))),A.createElement(Rt,{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||!aa(c,o)||!aa(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,l=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,_=s.length===1,b=Ot("recharts-area",u),x=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,w=x||g,S=gt(d)?this.id:d,O=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=O.r,M=T===void 0?3:T,P=O.strokeWidth,E=P===void 0?2:P,k=cC(o)?o:{},R=k.clipDot,$=R===void 0?!0:R,C=M*2+E;return A.createElement(Rt,{className:b},x||g?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(S)},A.createElement("rect",{x:x?c:c-p/2,y:g?l:l-y/2,width:x?p:p*2,height:g?y:y*2})),!$&&A.createElement("clipPath",{id:"clipPath-dots-".concat(S)},A.createElement("rect",{x:c-C/2,y:l-C/2,width:p+C,height:y+C}))):null,_?null:this.renderArea(w,S),(o||_)&&this.renderDots(w,$,S),(!m||v)&&_n.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}}])})(A.PureComponent);qM=wi;vn(wi,"displayName","Area");vn(wi,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_i.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});vn(wi,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(nt(s)&&typeof s=="number")return s;var u=i==="horizontal"?n:r,l=u.scale.domain();if(u.type==="number"){var c=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(l[0],l[1]),0)}return s==="dataMin"?l[0]:s==="dataMax"?l[1]:l[0]});vn(wi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,u=e.dataKey,l=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=l&&l.length,m=qM.getBaseValue(t,r,n,i),d=p==="horizontal",v=!1,_=f.map(function(x,g){var w;y?w=l[c+g]:(w=_e(x,u),Array.isArray(w)?v=!0:w=[m,w]);var S=w[1]==null||y&&_e(x,u)==null;return d?{x:oo({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:oo({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 d?{x:x.x,y:g!=null&&x.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:x.y}}):b=d?i.scale(m):n.scale(m),ei({points:_,baseLine:b,layout:p,isRange:v},h)});vn(wi,"renderDotItem",function(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=Ot("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=FM(t,Z4);r=A.createElement(Xc,Ui({},a,{key:i,className:n}))}return r});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 oY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sY(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 uY(e,t,r){return t&&sY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lY(e,t,r){return t=yc(t),cY(e,WM()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function cY(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 fY(e)}function fY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WM=function(){return!!e})()}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(e)}function hY(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 GM(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=pY(e,"string");return bo(t)=="symbol"?t:t+""}function pY(e,t){if(bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var of=(function(e){function t(){return oY(this,t),lY(this,t,arguments)}return hY(t,e),uY(t,[{key:"render",value:function(){return null}}])})(qr.Component);GM(of,"displayName","ZAxis");GM(of,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var dY=["option","isActive"];function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ss.apply(this,arguments)}function mY(e,t){if(e==null)return{};var r=yY(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 yY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gY(e){var t=e.option,r=e.isActive,n=mY(e,dY);return typeof t=="string"?qr.createElement(Pg,Ss({option:qr.createElement(Wc,Ss({type:t},n)),isActive:r,shapeType:"symbols"},n)):qr.createElement(Pg,Ss({option:t,isActive:r,shapeType:"symbols"},n))}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 As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YM(n.key),n)}}function bY(e,t,r){return t&&RO(e.prototype,t),r&&RO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Y(e,t,r){return t=gc(t),xY(e,KM()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function xY(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 wY(e)}function wY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KM=function(){return!!e})()}function gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(e)}function SY(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 li(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=AY(e,"string");return _o(t)=="symbol"?t:t+""}function AY(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 sf=(function(e){function t(){var r;vY(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=_Y(this,t,[].concat(i)),li(r,"state",{isAnimationFinished:!1}),li(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),li(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),li(r,"id",da("recharts-scatter-")),r}return SY(t,e),bY(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,u=a.activeIndex,l=vt(this.props,!1);return n.map(function(c,f){var h=u===f,p=h?s:o,y=Dr(Dr({},l),c);return A.createElement(Rt,As({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)},zs(i.props,c,f),{role:"img"}),A.createElement(gY,As({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 A.createElement(rn,{begin:s,duration:u,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var v=f&&f[d];if(v){var _=ue(v.cx,m.cx),b=ue(v.cy,m.cy),x=ue(v.size,m.size);return Dr(Dr({},m),{},{cx:_(p),cy:b(p),size:x(p)})}var g=ue(0,m.size);return Dr(Dr({},m),{},{size:g(p)})});return A.createElement(Rt,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||!aa(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=sr(u,jo);return l?l.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return A.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,v){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:_e(d,v)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,u=vt(this.props,!1),l=vt(a,!1),c,f;if(o==="joint")c=i.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var h=gz(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,v=function(x){return m*x+d};c=[{x:p,y:v(p)},{x:y,y:v(y)}]}var _=Dr(Dr(Dr({},u),{},{fill:"none",stroke:u&&u.fill},l),{},{points:c});return A.isValidElement(a)?f=A.cloneElement(a,_):bt(a)?f=a(_):f=A.createElement(Zi,As({},_,{type:s})),A.createElement(Rt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,u=n.xAxis,l=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=Ot("recharts-scatter",s),_=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,x=_||b,g=gt(y)?this.id:y;return A.createElement(Rt,{className:v,clipPath:x?"url(#clipPath-".concat(g,")"):null},_||b?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(g)},A.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(),A.createElement(Rt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&_n.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}}])})(A.PureComponent);li(sf,"displayName","Scatter");li(sf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!_i.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});li(sf,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,u=e.offset,l=i.props.tooltipType,c=sr(i.props.children,x0),f=gt(t.dataKey)?i.props.dataKey:t.dataKey,h=gt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:of.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,v=r.scale.bandwidth?r.scale.bandwidth():0,_=a.map(function(b,x){var g=_e(b,f),w=_e(b,h),S=!gt(p)&&_e(b,p)||"-",O=[{name:gt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:b,dataKey:f,type:l},{name:gt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:b,dataKey:h,type:l}];S!=="-"&&O.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:b,dataKey:p,type:l});var T=oo({axis:t,ticks:o,bandSize:d,entry:b,index:x,dataKey:f}),M=oo({axis:r,ticks:s,bandSize:v,entry:b,index:x,dataKey:h}),P=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(P,0)/Math.PI);return Dr(Dr({},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:O,tooltipPosition:{x:T,y:M},payload:b},c&&c[x]&&c[x].props)});return Dr({points:_},u)});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 OY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TY(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 PY(e,t,r){return t&&TY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EY(e,t,r){return t=vc(t),CY(e,XM()?Reflect.construct(t,r||[],vc(e).constructor):t.apply(e,r))}function CY(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 MY(e)}function MY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XM=function(){return!!e})()}function vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(e)}function kY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ug(e,t)}function VM(e,t,r){return t=ZM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZM(e){var t=$Y(e,"string");return xo(t)=="symbol"?t:t+""}function $Y(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)}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wg.apply(this,arguments)}function jY(e){var t=e.xAxisId,r=M0(),n=k0(),i=OM(t);return i==null?null:qr.createElement(Do,Wg({},i,{className:Ot("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Nn(o,!0)}}))}var uf=(function(e){function t(){return OY(this,t),EY(this,t,arguments)}return kY(t,e),PY(t,[{key:"render",value:function(){return qr.createElement(jY,this.props)}}])})(qr.Component);VM(uf,"displayName","XAxis");VM(uf,"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 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 RY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DY(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 IY(e,t,r){return t&&DY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NY(e,t,r){return t=bc(t),LY(e,JM()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function LY(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 BY(e)}function BY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JM=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function qY(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&&Gg(e,t)}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gg(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=FY(e,"string");return wo(t)=="symbol"?t:t+""}function FY(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)}function Hg(){return Hg=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},Hg.apply(this,arguments)}var zY=function(t){var r=t.yAxisId,n=M0(),i=k0(),a=TM(r);return a==null?null:qr.createElement(Do,Hg({},a,{className:Ot("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Nn(s,!0)}}))},lf=(function(e){function t(){return RY(this,t),NY(this,t,arguments)}return qY(t,e),IY(t,[{key:"render",value:function(){return qr.createElement(zY,this.props)}}])})(qr.Component);QM(lf,"displayName","YAxis");QM(lf,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function DO(e){return HY(e)||GY(e)||WY(e)||UY()}function UY(){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 WY(e,t){if(e){if(typeof e=="string")return Kg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kg(e,t)}}function GY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HY(e){if(Array.isArray(e))return Kg(e)}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Yg=function(t,r,n,i,a){var o=sr(t,Qc),s=sr(t,ef),u=[].concat(DO(o),DO(s)),l=sr(t,nf),c="".concat(i,"Id"),f=i[0],h=r;if(u.length&&(h=u.reduce(function(m,d){if(d.props[c]===n&&xn(d.props,"extendDomain")&&nt(d.props[f])){var v=d.props[f];return[Math.min(m[0],v),Math.max(m[1],v)]}return m},h)),l.length){var p="".concat(f,"1"),y="".concat(f,"2");h=l.reduce(function(m,d){if(d.props[c]===n&&xn(d.props,"extendDomain")&&nt(d.props[p])&&nt(d.props[y])){var v=d.props[p],_=d.props[y];return[Math.min(m[0],v,_),Math.max(m[1],v,_)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return nt(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},Ym={exports:{}},IO;function KY(){return IO||(IO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function a(u,l,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||u,h),y=r?r+l:l;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],p]:u._events[y].push(p):(u._events[y]=p,u._eventsCount++),u}function o(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,f;if(this._eventsCount===0)return l;for(f in c=this._events)t.call(c,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(l){var c=r?r+l:l,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(l,c,f,h,p,y){var m=r?r+l:l;if(!this._events[m])return!1;var d=this._events[m],v=arguments.length,_,b;if(d.fn){switch(d.once&&this.removeListener(l,d.fn,void 0,!0),v){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(b=1,_=new Array(v-1);b<v;b++)_[b-1]=arguments[b];d.fn.apply(d.context,_)}else{var x=d.length,g;for(b=0;b<x;b++)switch(d[b].once&&this.removeListener(l,d[b].fn,void 0,!0),v){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,c);break;case 3:d[b].fn.call(d[b].context,c,f);break;case 4:d[b].fn.call(d[b].context,c,f,h);break;default:if(!_)for(g=1,_=new Array(v-1);g<v;g++)_[g-1]=arguments[g];d[b].fn.apply(d[b].context,_)}}return!0},s.prototype.on=function(l,c,f){return a(this,l,c,f,!1)},s.prototype.once=function(l,c,f){return a(this,l,c,f,!0)},s.prototype.removeListener=function(l,c,f,h){var p=r?r+l:l;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],v=y.length;m<v;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(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})(Ym)),Ym.exports}var YY=KY();const XY=qt(YY);var Xm=new XY,Vm="recharts.syncMouseEvents";function yu(e){"@babel/helpers - typeof";return yu=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},yu(e)}function VY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZY(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 JY(e,t,r){return t&&ZY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zm(e,t,r){return t=ek(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ek(e){var t=QY(e,"string");return yu(t)=="symbol"?t:t+""}function QY(e,t){if(yu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tX=(function(){function e(){VY(this,e),Zm(this,"activeIndex",0),Zm(this,"coordinateList",[]),Zm(this,"layout","horizontal")}return JY(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 eX(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&nt(n)&&nt(i))return!0}return!1}function rX(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=$e(t,r,n,i),s=$e(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function nX(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=$e(s,u,l,f),p=$e(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 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 NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){iX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iX(e,t,r){return t=aX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aX(e){var t=oX(e,"string");return gu(t)=="symbol"?t:t+""}function oX(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)}function sX(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,u=e.offset,l=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=Zi;if(h==="ScatterChart")y=o,m=DH;else if(h==="BarChart")y=rX(f,o,u,c),m=T0;else if(f==="radial"){var d=rk(o),v=d.cx,_=d.cy,b=d.radius,x=d.startAngle,g=d.endAngle;y={cx:v,cy:_,startAngle:x,endAngle:g,innerRadius:b,outerRadius:b},m=QC}else y={points:nX(f,o,u)},m=Zi;var w=tl(tl(tl(tl({stroke:"#ccc",pointerEvents:"none"},u),y),vt(p,!1)),{},{payload:s,payloadIndex:l,className:Ot("recharts-tooltip-cursor",p.className)});return A.isValidElement(p)?A.cloneElement(p,w):A.createElement(m,w)}var uX=["item"],lX=["children","className","width","height","style","compact","title","desc"];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 ja(){return ja=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},ja.apply(this,arguments)}function LO(e,t){return hX(e)||fX(e,t)||ik(e,t)||cX()}function cX(){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 fX(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 hX(e){if(Array.isArray(e))return e}function BO(e,t){if(e==null)return{};var r=pX(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 pX(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 dX(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,ak(n.key),n)}}function yX(e,t,r){return t&&mX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gX(e,t,r){return t=_c(t),vX(e,nk()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function vX(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 bX(e)}function bX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nk=function(){return!!e})()}function _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function _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&&Xg(e,t)}function Xg(e,t){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xg(e,t)}function Ao(e){return SX(e)||wX(e)||ik(e)||xX()}function xX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){if(e){if(typeof e=="string")return Vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vg(e,t)}}function wX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SX(e){if(Array.isArray(e))return Vg(e)}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pt(e,t,r){return t=ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ak(e){var t=AX(e,"string");return So(t)=="symbol"?t:t+""}function AX(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 OX={xAxis:["bottom","top"],yAxis:["left","right"]},TX={width:"100%",height:"100%"},ok={x:0,y:0};function el(e){return e}var PX=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},EX=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return Y(Y(Y({},i),$e(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var u=a.coordinate,l=i.angle;return Y(Y(Y({},i),$e(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}return ok},cf=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(Ao(s),Ao(l)):s},[]);return o.length>0?o:t&&t.length&&nt(i)&&nt(a)?t.slice(i,a+1):[]};function sk(e){return e==="number"?[0,"auto"]:void 0}var Zg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=cf(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(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=Nl(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Ao(u),[VC(l,h)]):u},[])},FO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=PX(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=hW(o,s,l,u);if(c>=0&&l){var f=l[c]&&l[c].value,h=Zg(t,r,c,f),p=EX(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},CX=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,m){var d,v=m.type.defaultProps!==void 0?Y(Y({},m.type.defaultProps),m.props):m.props,_=v.type,b=v.dataKey,x=v.allowDataOverflow,g=v.allowDuplicatedCategory,w=v.scale,S=v.ticks,O=v.includeHidden,T=v[o];if(y[T])return y;var M=cf(t.data,{graphicalItems:i.filter(function(B){var W,G=o in B.props?B.props[o]:(W=B.type.defaultProps)===null||W===void 0?void 0:W[o];return G===T}),dataStartIndex:u,dataEndIndex:l}),P=M.length,E,k,R;eX(v.domain,x,_)&&(E=fg(v.domain,null,x),p&&(_==="number"||w!=="auto")&&(R=_s(M,b,"category")));var $=sk(_);if(!E||E.length===0){var C,I=(C=v.domain)!==null&&C!==void 0?C:$;if(b){if(E=_s(M,b,_),_==="category"&&p){var L=yz(E);g&&L?(k=E,E=Fs(0,P)):g||(E=HS(I,E,m).reduce(function(B,W){return B.indexOf(W)>=0?B:[].concat(Ao(B),[W])},[]))}else if(_==="category")g?E=E.filter(function(B){return B!==""&&!gt(B)}):E=HS(I,E,m).reduce(function(B,W){return B.indexOf(W)>=0||W===""||gt(W)?B:[].concat(Ao(B),[W])},[]);else if(_==="number"){var q=gW(M,i.filter(function(B){var W,G,X=o in B.props?B.props[o]:(W=B.type.defaultProps)===null||W===void 0?void 0:W[o],J="hide"in B.props?B.props.hide:(G=B.type.defaultProps)===null||G===void 0?void 0:G.hide;return X===T&&(O||!J)}),b,a,c);q&&(E=q)}p&&(_==="number"||w!=="auto")&&(R=_s(M,b,"category"))}else p?E=Fs(0,P):s&&s[T]&&s[T].hasStack&&_==="number"?E=h==="expand"?[0,1]:XC(s[T].stackGroups,u,l):E=HC(M,i.filter(function(B){var W=o in B.props?B.props[o]:B.type.defaultProps[o],G="hide"in B.props?B.props.hide:B.type.defaultProps.hide;return W===T&&(O||!G)}),_,c,!0);if(_==="number")E=Yg(f,E,T,a,S),I&&(E=fg(I,E,x));else if(_==="category"&&I){var D=I,j=E.every(function(B){return D.indexOf(B)>=0});j&&(E=D)}}return Y(Y({},y),{},pt({},T,Y(Y({},v),{},{axisType:a,domain:E,categoricalDomain:R,duplicateDomain:k,originalDomain:(d=v.domain)!==null&&d!==void 0?d:$,isCategorical:p,layout:c})))},{})},MX=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=cf(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),p=h.length,y=KC(c,a),m=-1;return n.reduce(function(d,v){var _=v.type.defaultProps!==void 0?Y(Y({},v.type.defaultProps),v.props):v.props,b=_[o],x=sk("number");if(!d[b]){m++;var g;return y?g=Fs(0,p):s&&s[b]&&s[b].hasStack?(g=XC(s[b].stackGroups,u,l),g=Yg(f,g,b,a)):(g=fg(x,HC(h,n.filter(function(w){var S,O,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:(O=w.type.defaultProps)===null||O===void 0?void 0:O.hide;return T===b&&!M}),"number",c),i.defaultProps.allowDataOverflow),g=Yg(f,g,b,a)),Y(Y({},d),{},pt({},b,Y(Y({axisType:a},i.defaultProps),{},{hide:!0,orientation:Fr(OX,"".concat(a,".").concat(m%2),null),domain:g,originalDomain:x,isCategorical:y,layout:c})))}return d},{})},kX=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=sr(c,a),p={};return h&&h.length?p=CX(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(p=MX(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),p},$X=function(t){var r=ni(t),n=Nn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:zc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Yl(r,n)}},zO=function(t){var r=t.children,n=t.defaultShowTooltip,i=vr(r,lo),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}},jX=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ln(r&&r.type);return n&&n.indexOf("Bar")>=0})},UO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},RX=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,u=s===void 0?{}:s,l=n.width,c=n.height,f=n.children,h=n.margin||{},p=vr(f,lo),y=vr(f,Xi),m=Object.keys(u).reduce(function(g,w){var S=u[w],O=S.orientation;return!S.mirror&&!S.hide?Y(Y({},g),{},pt({},O,g[O]+S.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,w){var S=o[w],O=S.orientation;return!S.mirror&&!S.hide?Y(Y({},g),{},pt({},O,Fr(g,"".concat(O))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),v=Y(Y({},d),m),_=v.bottom;p&&(v.bottom+=p.props.height||lo.defaultProps.height),y&&r&&(v=mW(v,i,n,r));var b=l-v.left-v.right,x=c-v.top-v.bottom;return Y(Y({brushBottom:_},v),{},{width:Math.max(b,0),height:Math.max(x,0)})},DX=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},IX=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,u=t.axisComponents,l=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(v,_){var b=_.graphicalItems,x=_.stackGroups,g=_.offset,w=_.updateId,S=_.dataStartIndex,O=_.dataEndIndex,T=v.barSize,M=v.layout,P=v.barGap,E=v.barCategoryGap,k=v.maxBarSize,R=UO(M),$=R.numericAxisName,C=R.cateAxisName,I=jX(b),L=[];return b.forEach(function(q,D){var j=cf(v.data,{graphicalItems:[q],dataStartIndex:S,dataEndIndex:O}),B=q.type.defaultProps!==void 0?Y(Y({},q.type.defaultProps),q.props):q.props,W=B.dataKey,G=B.maxBarSize,X=B["".concat($,"Id")],J=B["".concat(C,"Id")],et={},K=u.reduce(function(dt,xt){var $t,Kt,St=_["".concat(xt.axisType,"Map")],Ct=B["".concat(xt.axisType,"Id")];St&&St[Ct]||xt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?er(!1,"Specifying a(n) ".concat(xt.axisType,"Id requires a corresponding ").concat(xt.axisType,"Id on the targeted graphical component ").concat(($t=q==null||(Kt=q.type)===null||Kt===void 0?void 0:Kt.displayName)!==null&&$t!==void 0?$t:"")):er());var Se=St[Ct];return Y(Y({},dt),{},pt(pt({},xt.axisType,Se),"".concat(xt.axisType,"Ticks"),Nn(Se)))},et),F=K[C],H=K["".concat(C,"Ticks")],Q=x&&x[X]&&x[X].hasStack&&CW(q,x[X].stackGroups),N=Ln(q.type).indexOf("Bar")>=0,ut=Yl(F,H),z=[],st=I&&pW({barSize:T,stackGroups:x,totalSize:DX(K,C)});if(N){var ft,at,ht=gt(G)?k:G,Tt=(ft=(at=Yl(F,H,!0))!==null&&at!==void 0?at:ht)!==null&&ft!==void 0?ft:0;z=dW({barGap:P,barCategoryGap:E,bandSize:Tt!==ut?Tt:ut,sizeList:st[J],maxBarSize:ht}),Tt!==ut&&(z=z.map(function(dt){return Y(Y({},dt),{},{position:Y(Y({},dt.position),{},{offset:dt.position.offset-Tt/2})})}))}var it=q&&q.type&&q.type.getComposedData;it&&L.push({props:Y(Y({},it(Y(Y({},K),{},{displayedData:j,props:v,dataKey:W,item:q,bandSize:ut,barPosition:z,offset:g,stackedData:Q,layout:M,dataStartIndex:S,dataEndIndex:O}))),{},pt(pt(pt({key:q.key||"item-".concat(D)},$,K[$]),C,K[C]),"animationId",w)),childIndex:Cz(q,v.children),item:q})}),L},p=function(v,_){var b=v.props,x=v.dataStartIndex,g=v.dataEndIndex,w=v.updateId;if(!Cw({props:b}))return null;var S=b.children,O=b.layout,T=b.stackOffset,M=b.data,P=b.reverseStackOrder,E=UO(O),k=E.numericAxisName,R=E.cateAxisName,$=sr(S,n),C=TW(M,$,"".concat(k,"Id"),"".concat(R,"Id"),T,P),I=u.reduce(function(B,W){var G="".concat(W.axisType,"Map");return Y(Y({},B),{},pt({},G,kX(b,Y(Y({},W),{},{graphicalItems:$,stackGroups:W.axisType===k&&C,dataStartIndex:x,dataEndIndex:g}))))},{}),L=RX(Y(Y({},I),{},{props:b,graphicalItems:$}),_==null?void 0:_.legendBBox);Object.keys(I).forEach(function(B){I[B]=c(b,I[B],L,B.replace("Map",""),r)});var q=I["".concat(R,"Map")],D=$X(q),j=h(b,Y(Y({},I),{},{dataStartIndex:x,dataEndIndex:g,updateId:w,graphicalItems:$,stackGroups:C,offset:L}));return Y(Y({formattedGraphicalItems:j,graphicalItems:$,offset:L,stackGroups:C},D),I)},y=(function(d){function v(_){var b,x,g;return dX(this,v),g=gX(this,v,[_]),pt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),pt(g,"accessibilityManager",new tX),pt(g,"handleLegendBBoxUpdate",function(w){if(w){var S=g.state,O=S.dataStartIndex,T=S.dataEndIndex,M=S.updateId;g.setState(Y({legendBBox:w},p({props:g.props,dataStartIndex:O,dataEndIndex:T,updateId:M},Y(Y({},g.state),{},{legendBBox:w}))))}}),pt(g,"handleReceiveSyncEvent",function(w,S,O){if(g.props.syncId===w){if(O===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),pt(g,"handleBrushChange",function(w){var S=w.startIndex,O=w.endIndex;if(S!==g.state.dataStartIndex||O!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return Y({dataStartIndex:S,dataEndIndex:O},p({props:g.props,dataStartIndex:S,dataEndIndex:O,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:O})}}),pt(g,"handleMouseEnter",function(w){var S=g.getMouseInfo(w);if(S){var O=Y(Y({},S),{},{isTooltipActive:!0});g.setState(O),g.triggerSyncEvent(O);var T=g.props.onMouseEnter;bt(T)&&T(O,w)}}),pt(g,"triggeredAfterMouseMove",function(w){var S=g.getMouseInfo(w),O=S?Y(Y({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(O),g.triggerSyncEvent(O);var T=g.props.onMouseMove;bt(T)&&T(O,w)}),pt(g,"handleItemMouseEnter",function(w){g.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),pt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),pt(g,"handleMouseMove",function(w){w.persist(),g.throttleTriggeredAfterMouseMove(w)}),pt(g,"handleMouseLeave",function(w){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var O=g.props.onMouseLeave;bt(O)&&O(S,w)}),pt(g,"handleOuterEvent",function(w){var S=Ez(w),O=Fr(g.props,"".concat(S));if(S&&bt(O)){var T,M;/.*touch.*/i.test(S)?M=g.getMouseInfo(w.changedTouches[0]):M=g.getMouseInfo(w),O((T=M)!==null&&T!==void 0?T:{},w)}}),pt(g,"handleClick",function(w){var S=g.getMouseInfo(w);if(S){var O=Y(Y({},S),{},{isTooltipActive:!0});g.setState(O),g.triggerSyncEvent(O);var T=g.props.onClick;bt(T)&&T(O,w)}}),pt(g,"handleMouseDown",function(w){var S=g.props.onMouseDown;if(bt(S)){var O=g.getMouseInfo(w);S(O,w)}}),pt(g,"handleMouseUp",function(w){var S=g.props.onMouseUp;if(bt(S)){var O=g.getMouseInfo(w);S(O,w)}}),pt(g,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),pt(g,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseDown(w.changedTouches[0])}),pt(g,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseUp(w.changedTouches[0])}),pt(g,"handleDoubleClick",function(w){var S=g.props.onDoubleClick;if(bt(S)){var O=g.getMouseInfo(w);S(O,w)}}),pt(g,"handleContextMenu",function(w){var S=g.props.onContextMenu;if(bt(S)){var O=g.getMouseInfo(w);S(O,w)}}),pt(g,"triggerSyncEvent",function(w){g.props.syncId!==void 0&&Xm.emit(Vm,g.props.syncId,w,g.eventEmitterSymbol)}),pt(g,"applySyncEvent",function(w){var S=g.props,O=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(Y({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:M},g.state)));else if(w.activeTooltipIndex!==void 0){var k=w.chartX,R=w.chartY,$=w.activeTooltipIndex,C=g.state,I=C.offset,L=C.tooltipTicks;if(!I)return;if(typeof T=="function")$=T(L,w);else if(T==="value"){$=-1;for(var q=0;q<L.length;q++)if(L[q].value===w.activeLabel){$=q;break}}var D=Y(Y({},I),{},{x:I.left,y:I.top}),j=Math.min(k,D.x+D.width),B=Math.min(R,D.y+D.height),W=L[$]&&L[$].value,G=Zg(g.state,g.props.data,$),X=L[$]?{x:O==="horizontal"?L[$].coordinate:j,y:O==="horizontal"?B:L[$].coordinate}:ok;g.setState(Y(Y({},w),{},{activeLabel:W,activeCoordinate:X,activePayload:G,activeTooltipIndex:$}))}else g.setState(w)}),pt(g,"renderCursor",function(w){var S,O=g.state,T=O.isTooltipActive,M=O.activeCoordinate,P=O.activePayload,E=O.offset,k=O.activeTooltipIndex,R=O.tooltipAxisBandSize,$=g.getTooltipEventType(),C=(S=w.props.active)!==null&&S!==void 0?S:T,I=g.props.layout,L=w.key||"_recharts-cursor";return A.createElement(sX,{key:L,activeCoordinate:M,activePayload:P,activeTooltipIndex:k,chartName:r,element:w,isActive:C,layout:I,offset:E,tooltipAxisBandSize:R,tooltipEventType:$})}),pt(g,"renderPolarAxis",function(w,S,O){var T=Fr(w,"type.axisType"),M=Fr(g.state,"".concat(T,"Map")),P=w.type.defaultProps,E=P!==void 0?Y(Y({},P),w.props):w.props,k=M&&M[E["".concat(T,"Id")]];return A.cloneElement(w,Y(Y({},k),{},{className:Ot(T,k.className),key:w.key||"".concat(S,"-").concat(O),ticks:Nn(k,!0)}))}),pt(g,"renderPolarGrid",function(w){var S=w.props,O=S.radialLines,T=S.polarAngles,M=S.polarRadius,P=g.state,E=P.radiusAxisMap,k=P.angleAxisMap,R=ni(E),$=ni(k),C=$.cx,I=$.cy,L=$.innerRadius,q=$.outerRadius;return A.cloneElement(w,{polarAngles:Array.isArray(T)?T:Nn($,!0).map(function(D){return D.coordinate}),polarRadius:Array.isArray(M)?M:Nn(R,!0).map(function(D){return D.coordinate}),cx:C,cy:I,innerRadius:L,outerRadius:q,key:w.key||"polar-grid",radialLines:O})}),pt(g,"renderLegend",function(){var w=g.state.formattedGraphicalItems,S=g.props,O=S.children,T=S.width,M=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),k=WC({children:O,formattedGraphicalItems:w,legendWidth:E,legendContent:l});if(!k)return null;var R=k.item,$=BO(k,uX);return A.cloneElement(R,Y(Y({},$),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),pt(g,"renderTooltip",function(){var w,S=g.props,O=S.children,T=S.accessibilityLayer,M=vr(O,dn);if(!M)return null;var P=g.state,E=P.isTooltipActive,k=P.activeCoordinate,R=P.activePayload,$=P.activeLabel,C=P.offset,I=(w=M.props.active)!==null&&w!==void 0?w:E;return A.cloneElement(M,{viewBox:Y(Y({},C),{},{x:C.left,y:C.top}),active:I,label:$,payload:I?R:[],coordinate:k,accessibilityLayer:T})}),pt(g,"renderBrush",function(w){var S=g.props,O=S.margin,T=S.data,M=g.state,P=M.offset,E=M.dataStartIndex,k=M.dataEndIndex,R=M.updateId;return A.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Yu(g.handleBrushChange,w.props.onChange),data:T,x:nt(w.props.x)?w.props.x:P.left,y:nt(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(O.bottom||0),width:nt(w.props.width)?w.props.width:P.width,startIndex:E,endIndex:k,updateId:"brush-".concat(R)})}),pt(g,"renderReferenceElement",function(w,S,O){if(!w)return null;var T=g,M=T.clipPathId,P=g.state,E=P.xAxisMap,k=P.yAxisMap,R=P.offset,$=w.type.defaultProps||{},C=w.props,I=C.xAxisId,L=I===void 0?$.xAxisId:I,q=C.yAxisId,D=q===void 0?$.yAxisId:q;return A.cloneElement(w,{key:w.key||"".concat(S,"-").concat(O),xAxis:E[L],yAxis:k[D],viewBox:{x:R.left,y:R.top,width:R.width,height:R.height},clipPathId:M})}),pt(g,"renderActivePoints",function(w){var S=w.item,O=w.activePoint,T=w.basePoint,M=w.childIndex,P=w.isRange,E=[],k=S.props.key,R=S.item.type.defaultProps!==void 0?Y(Y({},S.item.type.defaultProps),S.item.props):S.item.props,$=R.activeDot,C=R.dataKey,I=Y(Y({index:M,dataKey:C,cx:O.x,cy:O.y,r:4,fill:A0(S.item),strokeWidth:2,stroke:"#fff",payload:O.payload,value:O.value},vt($,!1)),Ll($));return E.push(v.renderActiveDot($,I,"".concat(k,"-activePoint-").concat(M))),T?E.push(v.renderActiveDot($,Y(Y({},I),{},{cx:T.x,cy:T.y}),"".concat(k,"-basePoint-").concat(M))):P&&E.push(null),E}),pt(g,"renderGraphicChild",function(w,S,O){var T=g.filterFormatItem(w,S,O);if(!T)return null;var M=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,k=P.tooltipAxis,R=P.activeTooltipIndex,$=P.activeLabel,C=g.props.children,I=vr(C,dn),L=T.props,q=L.points,D=L.isRange,j=L.baseLine,B=T.item.type.defaultProps!==void 0?Y(Y({},T.item.type.defaultProps),T.item.props):T.item.props,W=B.activeDot,G=B.hide,X=B.activeBar,J=B.activeShape,et=!!(!G&&E&&I&&(W||X||J)),K={};M!=="axis"&&I&&I.props.trigger==="click"?K={onClick:Yu(g.handleItemMouseEnter,w.props.onClick)}:M!=="axis"&&(K={onMouseLeave:Yu(g.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Yu(g.handleItemMouseEnter,w.props.onMouseEnter)});var F=A.cloneElement(w,Y(Y({},T.props),K));function H(xt){return typeof k.dataKey=="function"?k.dataKey(xt.payload):null}if(et)if(R>=0){var Q,N;if(k.dataKey&&!k.allowDuplicatedCategory){var ut=typeof k.dataKey=="function"?H:"payload.".concat(k.dataKey.toString());Q=Nl(q,ut,$),N=D&&j&&Nl(j,ut,$)}else Q=q==null?void 0:q[R],N=D&&j&&j[R];if(J||X){var z=w.props.activeIndex!==void 0?w.props.activeIndex:R;return[A.cloneElement(w,Y(Y(Y({},T.props),K),{},{activeIndex:z})),null,null]}if(!gt(Q))return[F].concat(Ao(g.renderActivePoints({item:T,activePoint:Q,basePoint:N,childIndex:R,isRange:D})))}else{var st,ft=(st=g.getItemByXY(g.state.activeCoordinate))!==null&&st!==void 0?st:{graphicalItem:F},at=ft.graphicalItem,ht=at.item,Tt=ht===void 0?w:ht,it=at.childIndex,dt=Y(Y(Y({},T.props),K),{},{activeIndex:it});return[A.cloneElement(Tt,dt),null,null]}return D?[F,null,null]:[F,null]}),pt(g,"renderCustomized",function(w,S,O){return A.cloneElement(w,Y(Y({key:"recharts-customized-".concat(O)},g.props),g.state))}),pt(g,"renderMap",{CartesianGrid:{handler:el,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:el},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:el},YAxis:{handler:el},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:da("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=SC(g.triggeredAfterMouseMove,(x=_.throttleDelay)!==null&&x!==void 0?x:1e3/60),g.state={},g}return _X(v,d),yX(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,O=vr(x,dn);if(O){var T=O.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=Zg(this.state,g,T,M),E=this.state.tooltipTicks[T].coordinate,k=(this.state.offset.top+w)/2,R=S==="horizontal",$=R?{x:E,y:k}:{y:E,x:k},C=this.state.formattedGraphicalItems.find(function(L){var q=L.item;return q.type.name==="Scatter"});C&&($=Y(Y({},$),C.props.points[T].tooltipPosition),P=C.props.points[T].tooltipPayload);var I={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:$};this.setState(I),this.renderCursor(O),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){Wy([vr(b.children,dn)],[vr(this.props.children,dn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=vr(this.props.children,dn);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=j3(g),S={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},O=g.width/x.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,O);if(!T)return null;var M=this.state,P=M.xAxisMap,E=M.yAxisMap,k=this.getTooltipEventType(),R=FO(this.state,this.props.data,this.props.layout,T);if(k!=="axis"&&P&&E){var $=ni(P).scale,C=ni(E).scale,I=$&&$.invert?$.invert(S.chartX):null,L=C&&C.invert?C.invert(S.chartY):null;return Y(Y({},S),{},{xValue:I,yValue:L},R)}return R?Y(Y({},S),R):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,O=x/g;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,M=S>=T.left&&S<=T.left+T.width&&O>=T.top&&O<=T.top+T.height;return M?{x:S,y:O}:null}var P=this.state,E=P.angleAxisMap,k=P.radiusAxisMap;if(E&&k){var R=ni(E);return XS({x:S,y:O},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,x=this.getTooltipEventType(),g=vr(b,dn),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=Ll(this.props,this.handleOuterEvent);return Y(Y({},S),w)}},{key:"addListener",value:function(){Xm.on(Vm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Xm.removeListener(Vm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,x,g){for(var w=this.state.formattedGraphicalItems,S=0,O=w.length;S<O;S++){var T=w[S];if(T.item===b||T.props.key===b.key||x===Ln(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,O=x.width;return A.createElement("defs",null,A.createElement("clipPath",{id:b},A.createElement("rect",{x:g,y:w,height:S,width:O})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(x,g){var w=LO(g,2),S=w[0],O=w[1];return Y(Y({},x),{},pt({},S,O.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(x,g){var w=LO(g,2),S=w[0],O=w[1];return Y(Y({},x),{},pt({},S,O.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,O=g.length;S<O;S++){var T=g[S],M=T.props,P=T.item,E=P.type.defaultProps!==void 0?Y(Y({},P.type.defaultProps),P.props):P.props,k=Ln(P.type);if(k==="Bar"){var R=(M.data||[]).find(function(L){return OH(b,L)});if(R)return{graphicalItem:T,payload:R}}else if(k==="RadialBar"){var $=(M.data||[]).find(function(L){return XS(b,L)});if($)return{graphicalItem:T,payload:$}}else if(Vc(T,w)||Zc(T,w)||hu(T,w)){var C=d6({graphicalItem:T,activeTooltipItem:w,itemData:E.data}),I=E.activeIndex===void 0?C:E.activeIndex;return{graphicalItem:Y(Y({},T),{},{childIndex:I}),payload:hu(T,w)?E.data[C]:T.props.data[C]}}}return null}},{key:"render",value:function(){var b=this;if(!Cw(this))return null;var x=this.props,g=x.children,w=x.className,S=x.width,O=x.height,T=x.style,M=x.compact,P=x.title,E=x.desc,k=BO(x,lX),R=vt(k,!1);if(M)return A.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Hy,ja({},R,{width:S,height:O,title:P,desc:E}),this.renderClipPath(),kw(g,this.renderMap)));if(this.props.accessibilityLayer){var $,C;R.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,R.role=(C=this.props.role)!==null&&C!==void 0?C:"application",R.onKeyDown=function(L){b.accessibilityManager.keyboardEvent(L)},R.onFocus=function(){b.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return A.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",ja({className:Ot("recharts-wrapper",w),style:Y({position:"relative",cursor:"default",width:S,height:O},T)},I,{ref:function(q){b.container=q}}),A.createElement(Hy,ja({},R,{width:S,height:O,title:P,desc:E,style:TX}),this.renderClipPath(),kw(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(A.Component);pt(y,"displayName",r),pt(y,"defaultProps",Y({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),pt(y,"getDerivedStateFromProps",function(d,v){var _=d.dataKey,b=d.data,x=d.children,g=d.width,w=d.height,S=d.layout,O=d.stackOffset,T=d.margin,M=v.dataStartIndex,P=v.dataEndIndex;if(v.updateId===void 0){var E=zO(d);return Y(Y(Y({},E),{},{updateId:0},p(Y(Y({props:d},E),{},{updateId:0}),v)),{},{prevDataKey:_,prevData:b,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:O,prevMargin:T,prevChildren:x})}if(_!==v.prevDataKey||b!==v.prevData||g!==v.prevWidth||w!==v.prevHeight||S!==v.prevLayout||O!==v.prevStackOffset||!Fa(T,v.prevMargin)){var k=zO(d),R={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},$=Y(Y({},FO(v,b,S)),{},{updateId:v.updateId+1}),C=Y(Y(Y({},k),R),$);return Y(Y(Y({},C),p(Y({props:d},C),v)),{},{prevDataKey:_,prevData:b,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:O,prevMargin:T,prevChildren:x})}if(!Wy(x,v.prevChildren)){var I,L,q,D,j=vr(x,lo),B=j&&(I=(L=j.props)===null||L===void 0?void 0:L.startIndex)!==null&&I!==void 0?I:M,W=j&&(q=(D=j.props)===null||D===void 0?void 0:D.endIndex)!==null&&q!==void 0?q:P,G=B!==M||W!==P,X=!gt(b),J=X&&!G?v.updateId:v.updateId+1;return Y(Y({updateId:J},p(Y(Y({props:d},v),{},{updateId:J,dataStartIndex:B,dataEndIndex:W}),v)),{},{prevChildren:x,dataStartIndex:B,dataEndIndex:W})}return null}),pt(y,"renderActiveDot",function(d,v,_){var b;return A.isValidElement(d)?b=A.cloneElement(d,v):bt(d)?b=d(v):b=A.createElement(Xc,v),A.createElement(Rt,{className:"recharts-active-dot",key:_},b)});var m=A.forwardRef(function(v,_){return A.createElement(y,ja({},v,{ref:_}))});return m.displayName=y.displayName,m},NX=IX({chartName:"ComposedChart",GraphicalChild:[af,wi,Ro,sf],axisComponents:[{axisType:"xAxis",AxisComp:uf},{axisType:"yAxis",AxisComp:lf},{axisType:"zAxis",AxisComp:of}],formatAxisMap:oK});const ts=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},LX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),BX=e=>new Intl.NumberFormat("en-US").format(e);function qX(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=A.useMemo(()=>{if(!t||t.length===0)return ts()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&ts()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=A.useMemo(()=>{if(!r||r.length===0)return ts()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(ts()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(ts()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:u}=A.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=A.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=A.useMemo(()=>n||LX,[n]),f=A.useMemo(()=>i||BX,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:u,maxTotalValue:l,dateFormatter:c,valueFormatter:f}}function FX(e,t){const r=t-1-e,n=ps.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return ps[a]??ps[0]??"#000000"}function zX(e){return Array.from({length:e},(t,r)=>FX(r,e))}const Ea=zX(5),$n={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:or.neoDigitalGreen[600],inProgress:"#007bff",farthest:Ea[0],far:Ea[1],close:Ea[2],closest:Ea[3],completed:Ea[4],primary:"#007bff",secondary:"#6c757d",success:or.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:or.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:or.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:or.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"}},UX={migration:Ea,severity:[$n.critical,$n.high,$n.medium,$n.low,$n.info],status:[$n.danger,$n.warning,$n.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},WX={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},GX=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=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:m=Et.animation.easing,formatDate:d,formatValue:v,tooltipFormatter:_,slotProps:b,margin:x=Et.margin,curveType:g=Et.curve.type,stackOffset:w=Et.stack.offset,timeRange:S,onTimeRangeChange:O,enableBrush:T=!1,zoomToSelection:M=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:k,valueFormatter:R}=qX({data:e,categories:t,formatDate:d,formatValue:v}),[$,C]=A.useState(null),[I,L]=A.useState(!1),[q,D]=A.useState(null),[j,B]=A.useState(null),W=A.useRef(null),G=S?[S[0],S[1]]:["dataMin","dataMax"],X=P.length>0?P[0].timestamp:0,J=P.length>0?P[P.length-1].timestamp:0,et=A.useCallback((it,dt)=>{const xt=it/dt*100,$t=J-X;return X+xt/100*$t},[X,J]),K=A.useCallback(it=>{const dt=J-X;return dt===0?0:(it-X)/dt*100},[X,J]),F=A.useCallback(it=>{if(!T)return;const dt=it.currentTarget.getBoundingClientRect(),xt=it.clientX-dt.left,$t=et(xt,dt.width);L(!0),D($t),B($t)},[T,et]),H=A.useCallback(it=>{if(!W.current)return;const dt=it.currentTarget.getBoundingClientRect(),xt=it.clientX-dt.left,$t=dt.width,Kt=et(xt,$t);if(I)q!==null&&B(Kt);else{const Ct=r.find(Se=>Math.abs(Se.timestamp-Kt)<2592e5);C((Ct==null?void 0:Ct.timestamp)??null)}},[I,q,et,r]),Q=A.useCallback(()=>{if(I&&q!==null&&j!==null&&O){const it=Math.min(q,j),dt=Math.max(q,j);it!==dt&&O([it,dt])}L(!1),D(null),B(null)},[I,q,j,O]),N=A.useCallback(()=>{Q(),C(null)},[Q]),z=(M?I:!0)&&I&&q!==null&&j!==null?{left:K(Math.min(q,j)),width:Math.abs(K(j)-K(q))}:null,ft=(S?P.filter(it=>it.timestamp>=S[0]&&it.timestamp<=S[1]):P).slice().reverse().map(it=>{const dt=r.find(xt=>xt.timestamp===it.timestamp);return dt&&dt.label?{...it,__markerLabel:dt.label}:it}),at=it=>k(it),ht=it=>R(it),Tt=({active:it,payload:dt,label:xt})=>{if(!it||!dt||dt.length===0)return null;const $t=ft.find(St=>St.timestamp===xt);if($t&&"__markerLabel"in $t){const Ct=String($t.__markerLabel).split(" - "),Se=Ct[0]||"",Pr=Ct[1]||"";return U.jsxs(Z.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[U.jsx(Z.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Pr}),U.jsx(Z.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:Se})]})}return U.jsxs(Z.Box,{sx:{backgroundColor:Et.tooltip.backgroundColor,border:`${Et.tooltip.borderWidth}px solid ${Et.tooltip.borderColor}`,borderRadius:Et.tooltip.borderRadius,padding:Et.tooltip.padding},children:[U.jsx(Z.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:k(xt)}),dt.map((St,Ct)=>U.jsxs(Z.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[U.jsx(Z.Box,{sx:{width:10,height:10,backgroundColor:St.color,borderRadius:"2px"}}),U.jsxs(Z.Typography,{sx:{fontSize:"14px"},children:[St.name,": ",R(St.value)]})]},`item-${Ct}`))]})};return U.jsxs(Z.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&U.jsxs(Z.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&U.jsx(Z.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&U.jsx(Z.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),U.jsxs(Z.Box,{ref:W,sx:{width:"100%",height:`${o}px`,minHeight:Et.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[U.jsx(T3,{width:s,height:"100%",children:U.jsxs(NX,{data:ft,margin:x,stackOffset:w,children:[h&&U.jsx(NM,{strokeDasharray:"3 3",stroke:Et.axis.strokeColor,opacity:.3}),c&&U.jsx(uf,{dataKey:"timestamp",type:"number",domain:G,tickFormatter:at,stroke:Et.axis.strokeColor,tick:{fill:Et.axis.tickColor},scale:"time"}),f&&U.jsx(lf,{tickFormatter:ht,stroke:Et.axis.strokeColor,tick:{fill:Et.axis.tickColor}}),l&&U.jsx(dn,{content:U.jsx(Tt,{})}),u&&U.jsx(Xi,{iconSize:Et.legend.iconSize,iconType:Et.legend.iconType,layout:Et.legend.layout,align:Et.legend.align,verticalAlign:Et.legend.verticalAlign}),E.map((it,dt)=>U.jsx(wi,{type:g,dataKey:it.dataKey,name:it.label,stackId:"1",stroke:it.color,fill:it.strokeDasharray?"transparent":it.color,fillOpacity:it.strokeDasharray?0:it.fillOpacity??.7,strokeWidth:it.strokeWidth??2,strokeDasharray:it.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-dt)*100:0},it.dataKey)),r.filter(it=>$===null||it.timestamp===$).map((it,dt)=>U.jsx(Qc,{x:it.timestamp,stroke:it.color??Et.marker.strokeColor,strokeWidth:it.strokeWidth??Et.marker.strokeWidth,strokeDasharray:it.strokeDasharray??Et.marker.strokeDasharray,strokeOpacity:$===null?0:1},`marker-${it.timestamp}-${dt}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&U.jsxs(Z.Box,{sx:{position:"absolute",top:x.top||0,left:x.left||0,right:x.right||0,bottom:x.bottom||0,cursor:I?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:F,onMouseMove:H,onMouseUp:Q,onMouseLeave:N,children:[z&&U.jsx(Z.Box,{sx:{position:"absolute",left:`${z.left}%`,width:`${z.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),$&&U.jsx(U.Fragment,{children:r.filter(it=>it.timestamp===$).map(it=>U.jsx(Z.Box,{sx:{position:"absolute",left:`${K(it.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:it.label||k(it.timestamp)},`tooltip-${it.timestamp}`))})]})]})]})},hn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(229, 231, 235, 0.5)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},Vr={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:hn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${hn.dimensions.height}px`,backgroundColor:hn.colors.background,borderRadius:0,overflow:"hidden",border:`1px solid ${hn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${hn.dimensions.eventWidth}px`,height:"100%",backgroundColor:hn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:hn.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 ${hn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:hn.colors.tooltipText,fontSize:"11px"}}},HX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},KX=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{HX()&&e.length>1&&(e.every((q,D)=>D===0||q.timestamp>=e[D-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,u]=A.useState(!1),[l,c]=A.useState(null),[f,h]=A.useState({start:null,end:null}),[p,y]=A.useState({start:null,end:null}),[m,d]=A.useState(null),v=t??f,_=a??p,b=A.useMemo(()=>{var L;return e.length>0?((L=e[0])==null?void 0:L.timestamp)??0:0},[e]),x=A.useMemo(()=>{var L;return e.length>0?((L=e[e.length-1])==null?void 0:L.timestamp)??0:0},[e]),g=A.useMemo(()=>i&&_.start&&_.end?_.start:b,[i,_,b]),w=A.useMemo(()=>i&&_.start&&_.end?_.end:x,[i,_,x]),S=A.useMemo(()=>w-g,[w,g]),O=A.useCallback(L=>S===0?0:(L-g)/S*100,[g,S]),T=A.useCallback((L,q)=>{const D=L/q*100;return g+D/100*S},[g,S]),M=A.useCallback(L=>{t===void 0&&h(L),r==null||r(L)},[t,r]),P=A.useCallback(L=>{const q=L.currentTarget.getBoundingClientRect(),D=L.clientX-q.left,j=T(D,q.width);u(!0),c(j),M({start:j,end:j})},[T,M]),E=A.useCallback(L=>{if(!s||l===null)return;const q=L.currentTarget.getBoundingClientRect(),D=L.clientX-q.left,j=T(D,q.width);M({start:Math.min(l,j),end:Math.max(l,j)})},[s,l,T,M]),k=A.useCallback(()=>{const L=s;if(u(!1),L&&i&&v.start&&v.end&&v.start!==v.end){const q={start:v.start,end:v.end};a===void 0&&y(q),o==null||o(q)}},[s,i,v,a,o]),R=A.useCallback(L=>{if(L.cancelable&&n&&L.preventDefault(),!n||!v.start||!v.end||S===0)return;const q=(v.start+v.end)/2,D=v.end-v.start,j=L.deltaY>0?1.1:.9,B=Math.max(D*j,S*.01),W=S*1.5,G=Math.min(B,W);let X=q-G/2,J=q+G/2;X<g&&(X=g,J=Math.min(g+G,w)),J>w&&(J=w,X=Math.max(w-G,g)),M({start:X,end:J})},[n,v,S,g,w,M]),$=A.useCallback(()=>!v.start||!v.end?[]:e.filter(L=>L.timestamp>=v.start&&L.timestamp<=v.end),[e,v]),C=A.useCallback(()=>{const L={start:b,end:x};a===void 0&&y({start:null,end:null}),o==null||o(L)},[b,x,a,o]),I=A.useCallback(()=>{i&&C()},[i,C]);return{isDragging:s,dragStart:l,internalSelectedRange:v,internalVisibleRange:_,hoveredEvent:m,minDate:g,maxDate:w,timeSpan:S,getPositionFromTimestamp:O,getTimestampFromPosition:T,handleMouseDown:P,handleMouseMove:E,handleMouseUp:k,handleWheel:R,handleDoubleClick:I,setHoveredEvent:d,getEventsInRange:$,resetZoom:C}},YX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),XX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),VX=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})},ZX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},JX=e=>({header:{...Vr.header,...e==null?void 0:e.header},title:{...Vr.title,...e==null?void 0:e.title},instructions:{...Vr.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...Vr.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...Vr.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...Vr.timeline,...e==null?void 0:e.timeline},event:{...Vr.event,...e==null?void 0:e.event},selection:{...Vr.selection,...e==null?void 0:e.selection},tooltip:{...Vr.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...Vr.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...Vr.tooltipDate,...e==null?void 0:e.tooltipDate}}),QX=({events:e,onSelectionChange:t,selectedRange:r,height:n=hn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=YX,formatMonthYear:o=XX,showMonthLabels:s=!0,monthLabelCount:u=6,enableZoom:l=!0,showHeader:c=!0,title:f="Event Timeline Selector",zoomToSelection:h=!1,visibleRange:p,onVisibleRangeChange:y,timeRange:m,onTimeRangeChange:d,slotProps:v})=>{const _=m?{start:m[0],end:m[1]}:p,b=d?q=>{q.start!==null&&q.end!==null&&d([q.start,q.end])}:y;ZX()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const x=A.useMemo(()=>JX(v),[v]),{isDragging:g,internalSelectedRange:w,hoveredEvent:S,minDate:O,timeSpan:T,getPositionFromTimestamp:M,handleMouseDown:P,handleMouseMove:E,handleMouseUp:k,handleWheel:R,handleDoubleClick:$,setHoveredEvent:C,getEventsInRange:I}=KX({events:e,selectedRange:r,onSelectionChange:t,enableZoom:l,zoomToSelection:h,visibleRange:_,onVisibleRangeChange:b}),L=w.start&&w.end?`Selected: ${a(w.start)} - ${a(w.end)} (${I().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return U.jsxs(Z.Stack,{sx:{width:"100%"},children:[c&&U.jsxs(Z.Stack,{spacing:1,sx:{mb:3},...x.header,children:[U.jsx(Z.Typography,{variant:"h5",...x.title,children:f}),U.jsx(Z.Typography,{variant:"body2",...x.instructions,children:L})]}),s&&U.jsx(Z.Stack,{direction:"row",...x.monthLabelsContainer,sx:{...x.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:u},(q,D)=>{const j=O+T/(u-1)*D,B=VX(T);return U.jsx(Z.Typography,{variant:"caption",...x.monthLabel,children:B(j)},D)})}),U.jsxs(Z.Box,{...x.timeline,sx:{...x.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[U.jsx(Z.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((q,D)=>{const j=M(q.timestamp);return U.jsx(Z.Box,{onMouseEnter:()=>C(q),onMouseLeave:()=>C(null),"aria-label":`Event: ${q.eventName} at ${a(q.timestamp)}`,...x.event,sx:{...x.event.sx,left:`${j}%`,transform:(S==null?void 0:S.timestamp)===q.timestamp?"scaleX(2)":"scaleX(1)"}},`${q.timestamp}-${D}`)})}),w.start&&w.end&&(!h||g)&&U.jsx(Z.Box,{...x.selection,sx:{...x.selection.sx,left:`${M(w.start)}%`,width:`${M(w.end)-M(w.start)}%`}}),U.jsx(Z.Box,{role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":c?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair"},onMouseDown:P,onMouseMove:E,onMouseUp:k,onMouseLeave:k,onWheel:R,onDoubleClick:$}),!c&&U.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:L}),S&&U.jsxs(Z.Box,{role:"tooltip","aria-live":"polite",...x.tooltip,sx:{...x.tooltip.sx,left:`${M(S.timestamp)}%`,transform:"translateX(-50%)"},children:[U.jsx(Z.Typography,{variant:"body2",...x.tooltipEventName,children:S.eventName}),U.jsx(Z.Typography,{variant:"caption",...x.tooltipDate,children:a(S.timestamp)})]})]})]})},tV="#8b5cf6",eV=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),rV=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=eV,primaryColor:i=tV})=>e.length===0?null:U.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[U.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),U.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>U.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[U.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),U.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=vs;exports.CAMPAIGN_NOT_APPLICABLE=ys;exports.CAMPAIGN_NO_LST=gs;exports.CATEGORY_LABELS=WX;exports.ChronoChart=PE;exports.ChronoPerspectiveChart=PE;exports.D3StackedAreaChart=ML;exports.DEFAULT_CHART_COLORS=or;exports.DEFAULT_CHART_CONFIG=Ke;exports.DEFAULT_STACKED_AREA_COLORS=$n;exports.DEFAULT_STACKED_AREA_CONFIG=Et;exports.MEASURE_GRADIENT_COLORS=ps;exports.MODERNE_VULNERABILITY_COLORS=qa;exports.MorphChart=hE;exports.ParliamentChart=JF;exports.STACKED_AREA_PALETTES=UX;exports.StackedAreaChart=GX;exports.TimelineChart=QX;exports.TimelineSelectedEvents=rV;exports.calculateDataSeries=sC;exports.calculateOptimalArcAngle=Vv;exports.calculateOptimalSeatSize=Zv;