2 lines
118 KiB
JavaScript
2 lines
118 KiB
JavaScript
import{a as r,b as fu,e as lu}from"./chunk-GTKDMUJJ.mjs";var Bo=fu((fr,lr)=>{"use strict";(function(t,e){typeof fr=="object"&&typeof lr<"u"?lr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(fr,(function(){"use strict";var t=1e3,e=6e4,n=36e5,i="millisecond",o="second",a="minute",s="hour",u="day",l="week",f="month",h="quarter",p="year",c="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:r(function(v){var d=["th","st","nd","rd"],x=v%100;return"["+v+(d[(x-20)%10]||d[x]||d[0])+"]"},"ordinal")},k=r(function(v,d,x){var S=String(v);return!S||S.length>=d?v:""+Array(d+1-S.length).join(x)+v},"m"),I={s:k,z:r(function(v){var d=-v.utcOffset(),x=Math.abs(d),S=Math.floor(x/60),y=x%60;return(d<=0?"+":"-")+k(S,2,"0")+":"+k(y,2,"0")},"z"),m:r(function v(d,x){if(d.date()<x.date())return-v(x,d);var S=12*(x.year()-d.year())+(x.month()-d.month()),y=d.clone().add(S,f),D=x-y<0,$=d.clone().add(S+(D?-1:1),f);return+(-(S+(x-y)/(D?y-$:$-y))||0)},"t"),a:r(function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},"a"),p:r(function(v){return{M:f,y:p,w:l,d:u,D:c,h:s,m:a,s:o,ms:i,Q:h}[v]||String(v||"").toLowerCase().replace(/s$/,"")},"p"),u:r(function(v){return v===void 0},"u")},C="en",A={};A[C]=T;var O="$isDayjsObject",w=r(function(v){return v instanceof B||!(!v||!v[O])},"S"),Y=r(function v(d,x,S){var y;if(!d)return C;if(typeof d=="string"){var D=d.toLowerCase();A[D]&&(y=D),x&&(A[D]=x,y=D);var $=d.split("-");if(!y&&$.length>1)return v($[0])}else{var P=d.name;A[P]=d,y=P}return!S&&y&&(C=y),y||!S&&C},"t"),U=r(function(v,d){if(w(v))return v.clone();var x=typeof d=="object"?d:{};return x.date=v,x.args=arguments,new B(x)},"O"),E=I;E.l=Y,E.i=w,E.w=function(v,d){return U(v,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var B=(function(){function v(x){this.$L=Y(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[O]=!0}r(v,"M");var d=v.prototype;return d.parse=function(x){this.$d=(function(S){var y=S.date,D=S.utc;if(y===null)return new Date(NaN);if(E.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var $=y.match(_);if($){var P=$[2]-1||0,z=($[7]||"0").substring(0,3);return D?new Date(Date.UTC($[1],P,$[3]||1,$[4]||0,$[5]||0,$[6]||0,z)):new Date($[1],P,$[3]||1,$[4]||0,$[5]||0,$[6]||0,z)}}return new Date(y)})(x),this.init()},d.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},d.$utils=function(){return E},d.isValid=function(){return this.$d.toString()!==m},d.isSame=function(x,S){var y=U(x);return this.startOf(S)<=y&&y<=this.endOf(S)},d.isAfter=function(x,S){return U(x)<this.startOf(S)},d.isBefore=function(x,S){return this.endOf(S)<U(x)},d.$g=function(x,S,y){return E.u(x)?this[S]:this.set(y,x)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(x,S){var y=this,D=!!E.u(S)||S,$=E.p(x),P=r(function(st,Z){var b=E.w(y.$u?Date.UTC(y.$y,Z,st):new Date(y.$y,Z,st),y);return D?b:b.endOf(u)},"l"),z=r(function(st,Z){return E.w(y.toDate()[st].apply(y.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(Z)),y)},"$"),W=this.$W,X=this.$M,J=this.$D,ht="set"+(this.$u?"UTC":"");switch($){case p:return D?P(1,0):P(31,11);case f:return D?P(1,X):P(0,X+1);case l:var Q=this.$locale().weekStart||0,dt=(W<Q?W+7:W)-Q;return P(D?J-dt:J+(6-dt),X);case u:case c:return z(ht+"Hours",0);case s:return z(ht+"Minutes",1);case a:return z(ht+"Seconds",2);case o:return z(ht+"Milliseconds",3);default:return this.clone()}},d.endOf=function(x){return this.startOf(x,!1)},d.$set=function(x,S){var y,D=E.p(x),$="set"+(this.$u?"UTC":""),P=(y={},y[u]=$+"Date",y[c]=$+"Date",y[f]=$+"Month",y[p]=$+"FullYear",y[s]=$+"Hours",y[a]=$+"Minutes",y[o]=$+"Seconds",y[i]=$+"Milliseconds",y)[D],z=D===u?this.$D+(S-this.$W):S;if(D===f||D===p){var W=this.clone().set(c,1);W.$d[P](z),W.init(),this.$d=W.set(c,Math.min(this.$D,W.daysInMonth())).$d}else P&&this.$d[P](z);return this.init(),this},d.set=function(x,S){return this.clone().$set(x,S)},d.get=function(x){return this[E.p(x)]()},d.add=function(x,S){var y,D=this;x=Number(x);var $=E.p(S),P=r(function(X){var J=U(D);return E.w(J.date(J.date()+Math.round(X*x)),D)},"y");if($===f)return this.set(f,this.$M+x);if($===p)return this.set(p,this.$y+x);if($===u)return P(1);if($===l)return P(7);var z=(y={},y[a]=e,y[s]=n,y[o]=t,y)[$]||1,W=this.$d.getTime()+x*z;return E.w(W,this)},d.subtract=function(x,S){return this.add(-1*x,S)},d.format=function(x){var S=this,y=this.$locale();if(!this.isValid())return y.invalidDate||m;var D=x||"YYYY-MM-DDTHH:mm:ssZ",$=E.z(this),P=this.$H,z=this.$m,W=this.$M,X=y.weekdays,J=y.months,ht=y.meridiem,Q=r(function(Z,b,R,F){return Z&&(Z[b]||Z(S,D))||R[b].slice(0,F)},"h"),dt=r(function(Z){return E.s(P%12||12,Z,"0")},"d"),st=ht||function(Z,b,R){var F=Z<12?"AM":"PM";return R?F.toLowerCase():F};return D.replace(M,(function(Z,b){return b||(function(R){switch(R){case"YY":return String(S.$y).slice(-2);case"YYYY":return E.s(S.$y,4,"0");case"M":return W+1;case"MM":return E.s(W+1,2,"0");case"MMM":return Q(y.monthsShort,W,J,3);case"MMMM":return Q(J,W);case"D":return S.$D;case"DD":return E.s(S.$D,2,"0");case"d":return String(S.$W);case"dd":return Q(y.weekdaysMin,S.$W,X,2);case"ddd":return Q(y.weekdaysShort,S.$W,X,3);case"dddd":return X[S.$W];case"H":return String(P);case"HH":return E.s(P,2,"0");case"h":return dt(1);case"hh":return dt(2);case"a":return st(P,z,!0);case"A":return st(P,z,!1);case"m":return String(z);case"mm":return E.s(z,2,"0");case"s":return String(S.$s);case"ss":return E.s(S.$s,2,"0");case"SSS":return E.s(S.$ms,3,"0");case"Z":return $}return null})(Z)||$.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(x,S,y){var D,$=this,P=E.p(S),z=U(x),W=(z.utcOffset()-this.utcOffset())*e,X=this-z,J=r(function(){return E.m($,z)},"D");switch(P){case p:D=J()/12;break;case f:D=J();break;case h:D=J()/3;break;case l:D=(X-W)/6048e5;break;case u:D=(X-W)/864e5;break;case s:D=X/n;break;case a:D=X/e;break;case o:D=X/t;break;default:D=X}return y?D:E.a(D)},d.daysInMonth=function(){return this.endOf(f).$D},d.$locale=function(){return A[this.$L]},d.locale=function(x,S){if(!x)return this.$L;var y=this.clone(),D=Y(x,S,!0);return D&&(y.$L=D),y},d.clone=function(){return E.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},v})(),N=B.prototype;return U.prototype=N,[["$ms",i],["$s",o],["$m",a],["$H",s],["$W",u],["$M",f],["$y",p],["$D",c]].forEach((function(v){N[v[1]]=function(d){return this.$g(d,v[0],v[1])}})),U.extend=function(v,d){return v.$i||(v(d,B,U),v.$i=!0),U},U.locale=Y,U.isDayjs=w,U.unix=function(v){return U(1e3*v)},U.en=A[C],U.Ls=A,U.p={},U}))});var qo=lu(Bo(),1);var St={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},pt={trace:r((...t)=>{},"trace"),debug:r((...t)=>{},"debug"),info:r((...t)=>{},"info"),warn:r((...t)=>{},"warn"),error:r((...t)=>{},"error"),fatal:r((...t)=>{},"fatal")},Wh=r(function(t="fatal"){let e=St.fatal;typeof t=="string"?t.toLowerCase()in St&&(e=St[t]):typeof t=="number"&&(e=t),pt.trace=()=>{},pt.debug=()=>{},pt.info=()=>{},pt.warn=()=>{},pt.error=()=>{},pt.fatal=()=>{},e<=St.fatal&&(pt.fatal=console.error?console.error.bind(console,mt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",mt("FATAL"))),e<=St.error&&(pt.error=console.error?console.error.bind(console,mt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",mt("ERROR"))),e<=St.warn&&(pt.warn=console.warn?console.warn.bind(console,mt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",mt("WARN"))),e<=St.info&&(pt.info=console.info?console.info.bind(console,mt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",mt("INFO"))),e<=St.debug&&(pt.debug=console.debug?console.debug.bind(console,mt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",mt("DEBUG"))),e<=St.trace&&(pt.trace=console.debug?console.debug.bind(console,mt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",mt("TRACE")))},"setLogLevel"),mt=r(t=>`%c${(0,qo.default)().format("ss.SSS")} : ${t} : `,"format");function Wo(t,e){let n;if(e===void 0)for(let i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}r(Wo,"max");function Vo(t,e){let n;if(e===void 0)for(let i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}r(Vo,"min");function Vt(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}r(Vt,"ascending");function cr(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}r(cr,"descending");function Xt(t){let e,n,i;t.length!==2?(e=Vt,n=r((u,l)=>Vt(t(u),l),"compare2"),i=r((u,l)=>t(u)-l,"delta")):(e=t===Vt||t===cr?t:cu,n=t,i=t);function o(u,l,f=0,h=u.length){if(f<h){if(e(l,l)!==0)return h;do{let p=f+h>>>1;n(u[p],l)<0?f=p+1:h=p}while(f<h)}return f}r(o,"left");function a(u,l,f=0,h=u.length){if(f<h){if(e(l,l)!==0)return h;do{let p=f+h>>>1;n(u[p],l)<=0?f=p+1:h=p}while(f<h)}return f}r(a,"right");function s(u,l,f=0,h=u.length){let p=o(u,l,f,h-1);return p>f&&i(u[p-1],l)>-i(u[p],l)?p-1:p}return r(s,"center"),{left:o,center:s,right:a}}r(Xt,"bisector");function cu(){return 0}r(cu,"zero");function hr(t){return t===null?NaN:+t}r(hr,"number");var Xo=Xt(Vt),Go=Xo.right,hu=Xo.left,pu=Xt(hr).center,pr=Go;var fe=class extends Map{static{r(this,"InternMap")}constructor(e,n=xu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[i,o]of e)this.set(i,o)}get(e){return super.get(Zo(this,e))}has(e){return super.has(Zo(this,e))}set(e,n){return super.set(mu(this,e),n)}delete(e){return super.delete(du(this,e))}};function Zo({_intern:t,_key:e},n){let i=e(n);return t.has(i)?t.get(i):n}r(Zo,"intern_get");function mu({_intern:t,_key:e},n){let i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}r(mu,"intern_set");function du({_intern:t,_key:e},n){let i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}r(du,"intern_delete");function xu(t){return t!==null&&typeof t=="object"?t.valueOf():t}r(xu,"keyof");var _u=Math.sqrt(50),gu=Math.sqrt(10),yu=Math.sqrt(2);function cn(t,e,n){let i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),a=i/Math.pow(10,o),s=a>=_u?10:a>=gu?5:a>=yu?2:1,u,l,f;return o<0?(f=Math.pow(10,-o)/s,u=Math.round(t*f),l=Math.round(e*f),u/f<t&&++u,l/f>e&&--l,f=-f):(f=Math.pow(10,o)*s,u=Math.round(t/f),l=Math.round(e/f),u*f<t&&++u,l*f>e&&--l),l<u&&.5<=n&&n<2?cn(t,e,n*2):[u,l,f]}r(cn,"tickSpec");function hn(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];let i=e<t,[o,a,s]=i?cn(e,t,n):cn(t,e,n);if(!(a>=o))return[];let u=a-o+1,l=new Array(u);if(i)if(s<0)for(let f=0;f<u;++f)l[f]=(a-f)/-s;else for(let f=0;f<u;++f)l[f]=(a-f)*s;else if(s<0)for(let f=0;f<u;++f)l[f]=(o+f)/-s;else for(let f=0;f<u;++f)l[f]=(o+f)*s;return l}r(hn,"ticks");function Ee(t,e,n){return e=+e,t=+t,n=+n,cn(t,e,n)[2]}r(Ee,"tickIncrement");function le(t,e,n){e=+e,t=+t,n=+n;let i=e<t,o=i?Ee(e,t,n):Ee(t,e,n);return(i?-1:1)*(o<0?1/-o:o)}r(le,"tickStep");function pn(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var i=-1,o=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(o);++i<o;)a[i]=t+i*n;return a}r(pn,"range");function mr(t){return t}r(mr,"default");var dn=1,dr=2,xr=3,mn=4,Qo=1e-6;function vu(t){return"translate("+t+",0)"}r(vu,"translateX");function wu(t){return"translate(0,"+t+")"}r(wu,"translateY");function bu(t){return e=>+t(e)}r(bu,"number");function Mu(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}r(Mu,"center");function Tu(){return!this.__axis}r(Tu,"entering");function Ko(t,e){var n=[],i=null,o=null,a=6,s=6,u=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,f=t===dn||t===mn?-1:1,h=t===mn||t===dr?"x":"y",p=t===dn||t===xr?vu:wu;function c(m){var _=i??(e.ticks?e.ticks.apply(e,n):e.domain()),M=o??(e.tickFormat?e.tickFormat.apply(e,n):mr),T=Math.max(a,0)+u,k=e.range(),I=+k[0]+l,C=+k[k.length-1]+l,A=(e.bandwidth?Mu:bu)(e.copy(),l),O=m.selection?m.selection():m,w=O.selectAll(".domain").data([null]),Y=O.selectAll(".tick").data(_,e).order(),U=Y.exit(),E=Y.enter().append("g").attr("class","tick"),B=Y.select("line"),N=Y.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(E),B=B.merge(E.append("line").attr("stroke","currentColor").attr(h+"2",f*a)),N=N.merge(E.append("text").attr("fill","currentColor").attr(h,f*T).attr("dy",t===dn?"0em":t===xr?"0.71em":"0.32em")),m!==O&&(w=w.transition(m),Y=Y.transition(m),B=B.transition(m),N=N.transition(m),U=U.transition(m).attr("opacity",Qo).attr("transform",function(v){return isFinite(v=A(v))?p(v+l):this.getAttribute("transform")}),E.attr("opacity",Qo).attr("transform",function(v){var d=this.parentNode.__axis;return p((d&&isFinite(d=d(v))?d:A(v))+l)})),U.remove(),w.attr("d",t===mn||t===dr?s?"M"+f*s+","+I+"H"+l+"V"+C+"H"+f*s:"M"+l+","+I+"V"+C:s?"M"+I+","+f*s+"V"+l+"H"+C+"V"+f*s:"M"+I+","+l+"H"+C),Y.attr("opacity",1).attr("transform",function(v){return p(A(v)+l)}),B.attr(h+"2",f*a),N.attr(h,f*T).text(M),O.filter(Tu).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===dr?"start":t===mn?"end":"middle"),O.each(function(){this.__axis=A})}return r(c,"axis"),c.scale=function(m){return arguments.length?(e=m,c):e},c.ticks=function(){return n=Array.from(arguments),c},c.tickArguments=function(m){return arguments.length?(n=m==null?[]:Array.from(m),c):n.slice()},c.tickValues=function(m){return arguments.length?(i=m==null?null:Array.from(m),c):i&&i.slice()},c.tickFormat=function(m){return arguments.length?(o=m,c):o},c.tickSize=function(m){return arguments.length?(a=s=+m,c):a},c.tickSizeInner=function(m){return arguments.length?(a=+m,c):a},c.tickSizeOuter=function(m){return arguments.length?(s=+m,c):s},c.tickPadding=function(m){return arguments.length?(u=+m,c):u},c.offset=function(m){return arguments.length?(l=+m,c):l},c}r(Ko,"axis");function ku(t){return Ko(dn,t)}r(ku,"axisTop");function Su(t){return Ko(xr,t)}r(Su,"axisBottom");function Cu(){}r(Cu,"none");function It(t){return t==null?Cu:function(){return this.querySelector(t)}}r(It,"default");function _r(t){typeof t!="function"&&(t=It(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],s=a.length,u=i[o]=new Array(s),l,f,h=0;h<s;++h)(l=a[h])&&(f=t.call(l,l.__data__,h,a))&&("__data__"in l&&(f.__data__=l.__data__),u[h]=f);return new G(i,this._parents)}r(_r,"default");function gr(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}r(gr,"array");function Nu(){return[]}r(Nu,"empty");function ce(t){return t==null?Nu:function(){return this.querySelectorAll(t)}}r(ce,"default");function Au(t){return function(){return gr(t.apply(this,arguments))}}r(Au,"arrayAll");function yr(t){typeof t=="function"?t=Au(t):t=ce(t);for(var e=this._groups,n=e.length,i=[],o=[],a=0;a<n;++a)for(var s=e[a],u=s.length,l,f=0;f<u;++f)(l=s[f])&&(i.push(t.call(l,l.__data__,f,s)),o.push(l));return new G(i,o)}r(yr,"default");function he(t){return function(){return this.matches(t)}}r(he,"default");function xn(t){return function(e){return e.matches(t)}}r(xn,"childMatcher");var Du=Array.prototype.find;function $u(t){return function(){return Du.call(this.children,t)}}r($u,"childFind");function Ou(){return this.firstElementChild}r(Ou,"childFirst");function vr(t){return this.select(t==null?Ou:$u(typeof t=="function"?t:xn(t)))}r(vr,"default");var Eu=Array.prototype.filter;function Iu(){return Array.from(this.children)}r(Iu,"children");function Ru(t){return function(){return Eu.call(this.children,t)}}r(Ru,"childrenFilter");function wr(t){return this.selectAll(t==null?Iu:Ru(typeof t=="function"?t:xn(t)))}r(wr,"default");function br(t){typeof t!="function"&&(t=he(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],s=a.length,u=i[o]=[],l,f=0;f<s;++f)(l=a[f])&&t.call(l,l.__data__,f,a)&&u.push(l);return new G(i,this._parents)}r(br,"default");function Ie(t){return new Array(t.length)}r(Ie,"default");function Mr(){return new G(this._enter||this._groups.map(Ie),this._parents)}r(Mr,"default");function Re(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}r(Re,"EnterNode");Re.prototype={constructor:Re,appendChild:r(function(t){return this._parent.insertBefore(t,this._next)},"appendChild"),insertBefore:r(function(t,e){return this._parent.insertBefore(t,e)},"insertBefore"),querySelector:r(function(t){return this._parent.querySelector(t)},"querySelector"),querySelectorAll:r(function(t){return this._parent.querySelectorAll(t)},"querySelectorAll")};function Tr(t){return function(){return t}}r(Tr,"default");function Pu(t,e,n,i,o,a){for(var s=0,u,l=e.length,f=a.length;s<f;++s)(u=e[s])?(u.__data__=a[s],i[s]=u):n[s]=new Re(t,a[s]);for(;s<l;++s)(u=e[s])&&(o[s]=u)}r(Pu,"bindIndex");function Yu(t,e,n,i,o,a,s){var u,l,f=new Map,h=e.length,p=a.length,c=new Array(h),m;for(u=0;u<h;++u)(l=e[u])&&(c[u]=m=s.call(l,l.__data__,u,e)+"",f.has(m)?o[u]=l:f.set(m,l));for(u=0;u<p;++u)m=s.call(t,a[u],u,a)+"",(l=f.get(m))?(i[u]=l,l.__data__=a[u],f.delete(m)):n[u]=new Re(t,a[u]);for(u=0;u<h;++u)(l=e[u])&&f.get(c[u])===l&&(o[u]=l)}r(Yu,"bindKey");function Fu(t){return t.__data__}r(Fu,"datum");function kr(t,e){if(!arguments.length)return Array.from(this,Fu);var n=e?Yu:Pu,i=this._parents,o=this._groups;typeof t!="function"&&(t=Tr(t));for(var a=o.length,s=new Array(a),u=new Array(a),l=new Array(a),f=0;f<a;++f){var h=i[f],p=o[f],c=p.length,m=Uu(t.call(h,h&&h.__data__,f,i)),_=m.length,M=u[f]=new Array(_),T=s[f]=new Array(_),k=l[f]=new Array(c);n(h,p,M,T,k,m,e);for(var I=0,C=0,A,O;I<_;++I)if(A=M[I]){for(I>=C&&(C=I+1);!(O=T[C])&&++C<_;);A._next=O||null}}return s=new G(s,i),s._enter=u,s._exit=l,s}r(kr,"default");function Uu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}r(Uu,"arraylike");function Sr(){return new G(this._exit||this._groups.map(Ie),this._parents)}r(Sr,"default");function Cr(t,e,n){var i=this.enter(),o=this,a=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),n==null?a.remove():n(a),i&&o?i.merge(o).order():o}r(Cr,"default");function Nr(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,o=n.length,a=i.length,s=Math.min(o,a),u=new Array(o),l=0;l<s;++l)for(var f=n[l],h=i[l],p=f.length,c=u[l]=new Array(p),m,_=0;_<p;++_)(m=f[_]||h[_])&&(c[_]=m);for(;l<o;++l)u[l]=n[l];return new G(u,this._parents)}r(Nr,"default");function Ar(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],o=i.length-1,a=i[o],s;--o>=0;)(s=i[o])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}r(Ar,"default");function Dr(t){t||(t=Lu);function e(p,c){return p&&c?t(p.__data__,c.__data__):!p-!c}r(e,"compareNode");for(var n=this._groups,i=n.length,o=new Array(i),a=0;a<i;++a){for(var s=n[a],u=s.length,l=o[a]=new Array(u),f,h=0;h<u;++h)(f=s[h])&&(l[h]=f);l.sort(e)}return new G(o,this._parents).order()}r(Dr,"default");function Lu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}r(Lu,"ascending");function $r(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}r($r,"default");function Or(){return Array.from(this)}r(Or,"default");function Er(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null}r(Er,"default");function Ir(){let t=0;for(let e of this)++t;return t}r(Ir,"default");function Rr(){return!this.node()}r(Rr,"default");function Pr(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o=e[n],a=0,s=o.length,u;a<s;++a)(u=o[a])&&t.call(u,u.__data__,a,o);return this}r(Pr,"default");var _n="http://www.w3.org/1999/xhtml",Yr={svg:"http://www.w3.org/2000/svg",xhtml:_n,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function wt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Yr.hasOwnProperty(e)?{space:Yr[e],local:t}:t}r(wt,"default");function zu(t){return function(){this.removeAttribute(t)}}r(zu,"attrRemove");function Hu(t){return function(){this.removeAttributeNS(t.space,t.local)}}r(Hu,"attrRemoveNS");function Bu(t,e){return function(){this.setAttribute(t,e)}}r(Bu,"attrConstant");function qu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}r(qu,"attrConstantNS");function Wu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}r(Wu,"attrFunction");function Vu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}r(Vu,"attrFunctionNS");function Fr(t,e){var n=wt(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?Hu:zu:typeof e=="function"?n.local?Vu:Wu:n.local?qu:Bu)(n,e))}r(Fr,"default");function Pe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}r(Pe,"default");function Xu(t){return function(){this.style.removeProperty(t)}}r(Xu,"styleRemove");function Gu(t,e,n){return function(){this.style.setProperty(t,e,n)}}r(Gu,"styleConstant");function Zu(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}r(Zu,"styleFunction");function Ur(t,e,n){return arguments.length>1?this.each((e==null?Xu:typeof e=="function"?Zu:Gu)(t,e,n??"")):Rt(this.node(),t)}r(Ur,"default");function Rt(t,e){return t.style.getPropertyValue(e)||Pe(t).getComputedStyle(t,null).getPropertyValue(e)}r(Rt,"styleValue");function Qu(t){return function(){delete this[t]}}r(Qu,"propertyRemove");function Ku(t,e){return function(){this[t]=e}}r(Ku,"propertyConstant");function Ju(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}r(Ju,"propertyFunction");function Lr(t,e){return arguments.length>1?this.each((e==null?Qu:typeof e=="function"?Ju:Ku)(t,e)):this.node()[t]}r(Lr,"default");function Jo(t){return t.trim().split(/^|\s+/)}r(Jo,"classArray");function zr(t){return t.classList||new jo(t)}r(zr,"classList");function jo(t){this._node=t,this._names=Jo(t.getAttribute("class")||"")}r(jo,"ClassList");jo.prototype={add:r(function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:r(function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:r(function(t){return this._names.indexOf(t)>=0},"contains")};function ta(t,e){for(var n=zr(t),i=-1,o=e.length;++i<o;)n.add(e[i])}r(ta,"classedAdd");function ea(t,e){for(var n=zr(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}r(ea,"classedRemove");function ju(t){return function(){ta(this,t)}}r(ju,"classedTrue");function tf(t){return function(){ea(this,t)}}r(tf,"classedFalse");function ef(t,e){return function(){(e.apply(this,arguments)?ta:ea)(this,t)}}r(ef,"classedFunction");function Hr(t,e){var n=Jo(t+"");if(arguments.length<2){for(var i=zr(this.node()),o=-1,a=n.length;++o<a;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof e=="function"?ef:e?ju:tf)(n,e))}r(Hr,"default");function nf(){this.textContent=""}r(nf,"textRemove");function rf(t){return function(){this.textContent=t}}r(rf,"textConstant");function of(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}r(of,"textFunction");function Br(t){return arguments.length?this.each(t==null?nf:(typeof t=="function"?of:rf)(t)):this.node().textContent}r(Br,"default");function af(){this.innerHTML=""}r(af,"htmlRemove");function sf(t){return function(){this.innerHTML=t}}r(sf,"htmlConstant");function uf(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}r(uf,"htmlFunction");function qr(t){return arguments.length?this.each(t==null?af:(typeof t=="function"?uf:sf)(t)):this.node().innerHTML}r(qr,"default");function ff(){this.nextSibling&&this.parentNode.appendChild(this)}r(ff,"raise");function Wr(){return this.each(ff)}r(Wr,"default");function lf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}r(lf,"lower");function Vr(){return this.each(lf)}r(Vr,"default");function cf(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_n&&e.documentElement.namespaceURI===_n?e.createElement(t):e.createElementNS(n,t)}}r(cf,"creatorInherit");function hf(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}r(hf,"creatorFixed");function Ye(t){var e=wt(t);return(e.local?hf:cf)(e)}r(Ye,"default");function Xr(t){var e=typeof t=="function"?t:Ye(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}r(Xr,"default");function pf(){return null}r(pf,"constantNull");function Gr(t,e){var n=typeof t=="function"?t:Ye(t),i=e==null?pf:typeof e=="function"?e:It(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}r(Gr,"default");function mf(){var t=this.parentNode;t&&t.removeChild(this)}r(mf,"remove");function Zr(){return this.each(mf)}r(Zr,"default");function df(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}r(df,"selection_cloneShallow");function xf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}r(xf,"selection_cloneDeep");function Qr(t){return this.select(t?xf:df)}r(Qr,"default");function Kr(t){return arguments.length?this.property("__data__",t):this.node().__data__}r(Kr,"default");function _f(t){return function(e){t.call(this,e,this.__data__)}}r(_f,"contextListener");function gf(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}r(gf,"parseTypenames");function yf(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,o=e.length,a;n<o;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++i]=a;++i?e.length=i:delete this.__on}}}r(yf,"onRemove");function vf(t,e,n){return function(){var i=this.__on,o,a=_f(e);if(i){for(var s=0,u=i.length;s<u;++s)if((o=i[s]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=n),o.value=e;return}}this.addEventListener(t.type,a,n),o={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(o):this.__on=[o]}}r(vf,"onAdd");function Jr(t,e,n){var i=gf(t+""),o,a=i.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,f=u.length,h;l<f;++l)for(o=0,h=u[l];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value}return}for(u=e?vf:yf,o=0;o<a;++o)this.each(u(i[o],e,n));return this}r(Jr,"default");function na(t,e,n){var i=Pe(t),o=i.CustomEvent;typeof o=="function"?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}r(na,"dispatchEvent");function wf(t,e){return function(){return na(this,t,e)}}r(wf,"dispatchConstant");function bf(t,e){return function(){return na(this,t,e.apply(this,arguments))}}r(bf,"dispatchFunction");function jr(t,e){return this.each((typeof e=="function"?bf:wf)(t,e))}r(jr,"default");function*ti(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,a=i.length,s;o<a;++o)(s=i[o])&&(yield s)}r(ti,"default");var ei=[null];function G(t,e){this._groups=t,this._parents=e}r(G,"Selection");function ra(){return new G([[document.documentElement]],ei)}r(ra,"selection");function Mf(){return this}r(Mf,"selection_selection");G.prototype=ra.prototype={constructor:G,select:_r,selectAll:yr,selectChild:vr,selectChildren:wr,filter:br,data:kr,enter:Mr,exit:Sr,join:Cr,merge:Nr,selection:Mf,order:Ar,sort:Dr,call:$r,nodes:Or,node:Er,size:Ir,empty:Rr,each:Pr,attr:Fr,style:Ur,property:Lr,classed:Hr,text:Br,html:qr,raise:Wr,lower:Vr,append:Xr,insert:Gr,remove:Zr,clone:Qr,datum:Kr,on:Jr,dispatch:jr,[Symbol.iterator]:ti};var Ct=ra;function ia(t){return typeof t=="string"?new G([[document.querySelector(t)]],[document.documentElement]):new G([[t]],ei)}r(ia,"default");function Pt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}r(Pt,"default");function pe(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}r(pe,"extend");function Yt(){}r(Yt,"Color");var Fe=.7,vn=1/Fe,me="\\s*([+-]?\\d+)\\s*",Ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tf=/^#([0-9a-f]{3,8})$/,kf=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),Sf=new RegExp(`^rgb\\(${bt},${bt},${bt}\\)$`),Cf=new RegExp(`^rgba\\(${me},${me},${me},${Ue}\\)$`),Nf=new RegExp(`^rgba\\(${bt},${bt},${bt},${Ue}\\)$`),Af=new RegExp(`^hsl\\(${Ue},${bt},${bt}\\)$`),Df=new RegExp(`^hsla\\(${Ue},${bt},${bt},${Ue}\\)$`),oa={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Pt(Yt,_t,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:aa,formatHex:aa,formatHex8:$f,formatHsl:Of,formatRgb:sa,toString:sa});function aa(){return this.rgb().formatHex()}r(aa,"color_formatHex");function $f(){return this.rgb().formatHex8()}r($f,"color_formatHex8");function Of(){return pa(this).formatHsl()}r(Of,"color_formatHsl");function sa(){return this.rgb().formatRgb()}r(sa,"color_formatRgb");function _t(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Tf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?ua(e):n===3?new nt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?gn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?gn(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=kf.exec(t))?new nt(e[1],e[2],e[3],1):(e=Sf.exec(t))?new nt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Cf.exec(t))?gn(e[1],e[2],e[3],e[4]):(e=Nf.exec(t))?gn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Af.exec(t))?ca(e[1],e[2]/100,e[3]/100,1):(e=Df.exec(t))?ca(e[1],e[2]/100,e[3]/100,e[4]):oa.hasOwnProperty(t)?ua(oa[t]):t==="transparent"?new nt(NaN,NaN,NaN,0):null}r(_t,"color");function ua(t){return new nt(t>>16&255,t>>8&255,t&255,1)}r(ua,"rgbn");function gn(t,e,n,i){return i<=0&&(t=e=n=NaN),new nt(t,e,n,i)}r(gn,"rgba");function ri(t){return t instanceof Yt||(t=_t(t)),t?(t=t.rgb(),new nt(t.r,t.g,t.b,t.opacity)):new nt}r(ri,"rgbConvert");function de(t,e,n,i){return arguments.length===1?ri(t):new nt(t,e,n,i??1)}r(de,"rgb");function nt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}r(nt,"Rgb");Pt(nt,de,pe(Yt,{brighter(t){return t=t==null?vn:Math.pow(vn,t),new nt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Fe:Math.pow(Fe,t),new nt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new nt(Zt(this.r),Zt(this.g),Zt(this.b),wn(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:fa,formatHex:fa,formatHex8:Ef,formatRgb:la,toString:la}));function fa(){return`#${Gt(this.r)}${Gt(this.g)}${Gt(this.b)}`}r(fa,"rgb_formatHex");function Ef(){return`#${Gt(this.r)}${Gt(this.g)}${Gt(this.b)}${Gt((isNaN(this.opacity)?1:this.opacity)*255)}`}r(Ef,"rgb_formatHex8");function la(){let t=wn(this.opacity);return`${t===1?"rgb(":"rgba("}${Zt(this.r)}, ${Zt(this.g)}, ${Zt(this.b)}${t===1?")":`, ${t})`}`}r(la,"rgb_formatRgb");function wn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}r(wn,"clampa");function Zt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}r(Zt,"clampi");function Gt(t){return t=Zt(t),(t<16?"0":"")+t.toString(16)}r(Gt,"hex");function ca(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new xt(t,e,n,i)}r(ca,"hsla");function pa(t){if(t instanceof xt)return new xt(t.h,t.s,t.l,t.opacity);if(t instanceof Yt||(t=_t(t)),!t)return new xt;if(t instanceof xt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),a=Math.max(e,n,i),s=NaN,u=a-o,l=(a+o)/2;return u?(e===a?s=(n-i)/u+(n<i)*6:n===a?s=(i-e)/u+2:s=(e-n)/u+4,u/=l<.5?a+o:2-a-o,s*=60):u=l>0&&l<1?0:s,new xt(s,u,l,t.opacity)}r(pa,"hslConvert");function ma(t,e,n,i){return arguments.length===1?pa(t):new xt(t,e,n,i??1)}r(ma,"hsl");function xt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}r(xt,"Hsl");Pt(xt,ma,pe(Yt,{brighter(t){return t=t==null?vn:Math.pow(vn,t),new xt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Fe:Math.pow(Fe,t),new xt(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,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i;return new nt(ni(t>=240?t-240:t+120,o,i),ni(t,o,i),ni(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new xt(ha(this.h),yn(this.s),yn(this.l),wn(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(){let t=wn(this.opacity);return`${t===1?"hsl(":"hsla("}${ha(this.h)}, ${yn(this.s)*100}%, ${yn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ha(t){return t=(t||0)%360,t<0?t+360:t}r(ha,"clamph");function yn(t){return Math.max(0,Math.min(1,t||0))}r(yn,"clampt");function ni(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}r(ni,"hsl2rgb");var da=Math.PI/180,xa=180/Math.PI;var bn=18,_a=.96422,ga=1,ya=.82521,va=4/29,xe=6/29,wa=3*xe*xe,If=xe*xe*xe;function ba(t){if(t instanceof Mt)return new Mt(t.l,t.a,t.b,t.opacity);if(t instanceof Nt)return Ma(t);t instanceof nt||(t=ri(t));var e=si(t.r),n=si(t.g),i=si(t.b),o=ii((.2225045*e+.7168786*n+.0606169*i)/ga),a,s;return e===n&&n===i?a=s=o:(a=ii((.4360747*e+.3850649*n+.1430804*i)/_a),s=ii((.0139322*e+.0971045*n+.7141733*i)/ya)),new Mt(116*o-16,500*(a-o),200*(o-s),t.opacity)}r(ba,"labConvert");function ui(t,e,n,i){return arguments.length===1?ba(t):new Mt(t,e,n,i??1)}r(ui,"lab");function Mt(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}r(Mt,"Lab");Pt(Mt,ui,pe(Yt,{brighter(t){return new Mt(this.l+bn*(t??1),this.a,this.b,this.opacity)},darker(t){return new Mt(this.l-bn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=_a*oi(e),t=ga*oi(t),n=ya*oi(n),new nt(ai(3.1338561*e-1.6168667*t-.4906146*n),ai(-.9787684*e+1.9161415*t+.033454*n),ai(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ii(t){return t>If?Math.pow(t,1/3):t/wa+va}r(ii,"xyz2lab");function oi(t){return t>xe?t*t*t:wa*(t-va)}r(oi,"lab2xyz");function ai(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}r(ai,"lrgb2rgb");function si(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}r(si,"rgb2lrgb");function Rf(t){if(t instanceof Nt)return new Nt(t.h,t.c,t.l,t.opacity);if(t instanceof Mt||(t=ba(t)),t.a===0&&t.b===0)return new Nt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*xa;return new Nt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}r(Rf,"hclConvert");function Le(t,e,n,i){return arguments.length===1?Rf(t):new Nt(t,e,n,i??1)}r(Le,"hcl");function Nt(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}r(Nt,"Hcl");function Ma(t){if(isNaN(t.h))return new Mt(t.l,0,0,t.opacity);var e=t.h*da;return new Mt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}r(Ma,"hcl2lab");Pt(Nt,Le,pe(Yt,{brighter(t){return new Nt(this.h,this.c,this.l+bn*(t??1),this.opacity)},darker(t){return new Nt(this.h,this.c,this.l-bn*(t??1),this.opacity)},rgb(){return Ma(this).rgb()}}));var _e=r(t=>()=>t,"default");function Ta(t,e){return function(n){return t+n*e}}r(Ta,"linear");function Pf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}r(Pf,"exponential");function ka(t,e){var n=e-t;return n?Ta(t,n>180||n<-180?n-360*Math.round(n/360):n):_e(isNaN(t)?e:t)}r(ka,"hue");function Sa(t){return(t=+t)==1?At:function(e,n){return n-e?Pf(e,n,t):_e(isNaN(e)?n:e)}}r(Sa,"gamma");function At(t,e){var n=e-t;return n?Ta(t,n):_e(isNaN(t)?e:t)}r(At,"nogamma");function Ca(t){return function(e,n){var i=t((e=Le(e)).h,(n=Le(n)).h),o=At(e.c,n.c),a=At(e.l,n.l),s=At(e.opacity,n.opacity);return function(u){return e.h=i(u),e.c=o(u),e.l=a(u),e.opacity=s(u),e+""}}}r(Ca,"hcl");var Yf=Ca(ka),Ff=Ca(At);function fi(t,e,n,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*e+(4-6*a+3*s)*n+(1+3*t+3*a-3*s)*i+s*o)/6}r(fi,"basis");function li(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i<e-1?t[i+2]:2*a-o;return fi((n-i/e)*e,s,o,a,u)}}r(li,"default");function ci(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return fi((n-i/e)*e,o,a,s,u)}}r(ci,"default");var Qt=r((function t(e){var n=Sa(e);function i(o,a){var s=n((o=de(o)).r,(a=de(a)).r),u=n(o.g,a.g),l=n(o.b,a.b),f=At(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=u(h),o.b=l(h),o.opacity=f(h),o+""}}return r(i,"rgb"),i.gamma=t,i}),"rgbGamma")(1);function Na(t){return function(e){var n=e.length,i=new Array(n),o=new Array(n),a=new Array(n),s,u;for(s=0;s<n;++s)u=de(e[s]),i[s]=u.r||0,o[s]=u.g||0,a[s]=u.b||0;return i=t(i),o=t(o),a=t(a),u.opacity=1,function(l){return u.r=i(l),u.g=o(l),u.b=a(l),u+""}}}r(Na,"rgbSpline");var Uf=Na(li),Lf=Na(ci);function hi(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),o;return function(a){for(o=0;o<n;++o)i[o]=t[o]*(1-a)+e[o]*a;return i}}r(hi,"default");function Aa(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r(Aa,"isNumberArray");function Da(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,o=new Array(i),a=new Array(n),s;for(s=0;s<i;++s)o[s]=Ft(t[s],e[s]);for(;s<n;++s)a[s]=e[s];return function(u){for(s=0;s<i;++s)a[s]=o[s](u);return a}}r(Da,"genericArray");function pi(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}r(pi,"default");function j(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}r(j,"default");function mi(t,e){var n={},i={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?n[o]=Ft(t[o],e[o]):i[o]=e[o];return function(a){for(o in n)i[o]=n[o](a);return i}}r(mi,"default");var xi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,di=new RegExp(xi.source,"g");function zf(t){return function(){return t}}r(zf,"zero");function Hf(t){return function(e){return t(e)+""}}r(Hf,"one");function ge(t,e){var n=xi.lastIndex=di.lastIndex=0,i,o,a,s=-1,u=[],l=[];for(t=t+"",e=e+"";(i=xi.exec(t))&&(o=di.exec(e));)(a=o.index)>n&&(a=e.slice(n,a),u[s]?u[s]+=a:u[++s]=a),(i=i[0])===(o=o[0])?u[s]?u[s]+=o:u[++s]=o:(u[++s]=null,l.push({i:s,x:j(i,o)})),n=di.lastIndex;return n<e.length&&(a=e.slice(n),u[s]?u[s]+=a:u[++s]=a),u.length<2?l[0]?Hf(l[0].x):zf(e):(e=l.length,function(f){for(var h=0,p;h<e;++h)u[(p=l[h]).i]=p.x(f);return u.join("")})}r(ge,"default");function Ft(t,e){var n=typeof e,i;return e==null||n==="boolean"?_e(e):(n==="number"?j:n==="string"?(i=_t(e))?(e=i,Qt):ge:e instanceof _t?Qt:e instanceof Date?pi:Aa(e)?hi:Array.isArray(e)?Da:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?mi:j)(t,e)}r(Ft,"default");function Mn(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}r(Mn,"default");var $a=180/Math.PI,Tn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kn(t,e,n,i,o,a){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,l/=u),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*$a,skewX:Math.atan(l)*$a,scaleX:s,scaleY:u}}r(kn,"default");var Sn;function Oa(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Tn:kn(e.a,e.b,e.c,e.d,e.e,e.f)}r(Oa,"parseCss");function Ea(t){return t==null?Tn:(Sn||(Sn=document.createElementNS("http://www.w3.org/2000/svg","g")),Sn.setAttribute("transform",t),(t=Sn.transform.baseVal.consolidate())?(t=t.matrix,kn(t.a,t.b,t.c,t.d,t.e,t.f)):Tn)}r(Ea,"parseSvg");function Ia(t,e,n,i){function o(f){return f.length?f.pop()+" ":""}r(o,"pop");function a(f,h,p,c,m,_){if(f!==p||h!==c){var M=m.push("translate(",null,e,null,n);_.push({i:M-4,x:j(f,p)},{i:M-2,x:j(h,c)})}else(p||c)&&m.push("translate("+p+e+c+n)}r(a,"translate");function s(f,h,p,c){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),c.push({i:p.push(o(p)+"rotate(",null,i)-2,x:j(f,h)})):h&&p.push(o(p)+"rotate("+h+i)}r(s,"rotate");function u(f,h,p,c){f!==h?c.push({i:p.push(o(p)+"skewX(",null,i)-2,x:j(f,h)}):h&&p.push(o(p)+"skewX("+h+i)}r(u,"skewX");function l(f,h,p,c,m,_){if(f!==p||h!==c){var M=m.push(o(m)+"scale(",null,",",null,")");_.push({i:M-4,x:j(f,p)},{i:M-2,x:j(h,c)})}else(p!==1||c!==1)&&m.push(o(m)+"scale("+p+","+c+")")}return r(l,"scale"),function(f,h){var p=[],c=[];return f=t(f),h=t(h),a(f.translateX,f.translateY,h.translateX,h.translateY,p,c),s(f.rotate,h.rotate,p,c),u(f.skewX,h.skewX,p,c),l(f.scaleX,f.scaleY,h.scaleX,h.scaleY,p,c),f=h=null,function(m){for(var _=-1,M=c.length,T;++_<M;)p[(T=c[_]).i]=T.x(m);return p.join("")}}}r(Ia,"interpolateTransform");var _i=Ia(Oa,"px, ","px)","deg)"),gi=Ia(Ea,", ",")",")");function yi(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}r(yi,"default");function Kt(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}r(Kt,"formatDecimalParts");function gt(t){return t=Kt(Math.abs(t)),t?t[1]:NaN}r(gt,"default");function vi(t,e){return function(n,i){for(var o=n.length,a=[],s=0,u=t[0],l=0;o>0&&u>0&&(l+u+1>i&&(u=Math.max(1,i-l)),a.push(n.substring(o-=u,o+u)),!((l+=u+1)>i));)u=t[s=(s+1)%t.length];return a.reverse().join(e)}}r(vi,"default");function wi(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}r(wi,"default");var Bf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ut(t){if(!(e=Bf.exec(t)))throw new Error("invalid format: "+t);var e;return new Cn({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]})}r(Ut,"formatSpecifier");Ut.prototype=Cn.prototype;function Cn(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+""}r(Cn,"FormatSpecifier");Cn.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 bi(t){t:for(var e=t.length,n=1,i=-1,o;n<e;++n)switch(t[n]){case".":i=o=n;break;case"0":i===0&&(i=n),o=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(o+1):t}r(bi,"default");var Mi;function Ti(t,e){var n=Kt(t,e);if(!n)return t+"";var i=n[0],o=n[1],a=o-(Mi=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Kt(t,Math.max(0,e+a-1))[0]}r(Ti,"default");function Nn(t,e){var n=Kt(t,e);if(!n)return t+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}r(Nn,"default");var ki={"%":r((t,e)=>(t*100).toFixed(e),"%"),b:r(t=>Math.round(t).toString(2),"b"),c:r(t=>t+"","c"),d:yi,e:r((t,e)=>t.toExponential(e),"e"),f:r((t,e)=>t.toFixed(e),"f"),g:r((t,e)=>t.toPrecision(e),"g"),o:r(t=>Math.round(t).toString(8),"o"),p:r((t,e)=>Nn(t*100,e),"p"),r:Nn,s:Ti,X:r(t=>Math.round(t).toString(16).toUpperCase(),"X"),x:r(t=>Math.round(t).toString(16),"x")};function An(t){return t}r(An,"default");var Ra=Array.prototype.map,Pa=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Si(t){var e=t.grouping===void 0||t.thousands===void 0?An:vi(Ra.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?An:wi(Ra.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"\u2212":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function f(p){p=Ut(p);var c=p.fill,m=p.align,_=p.sign,M=p.symbol,T=p.zero,k=p.width,I=p.comma,C=p.precision,A=p.trim,O=p.type;O==="n"?(I=!0,O="g"):ki[O]||(C===void 0&&(C=12),A=!0,O="g"),(T||c==="0"&&m==="=")&&(T=!0,c="0",m="=");var w=M==="$"?n:M==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",Y=M==="$"?i:/[%p]/.test(O)?s:"",U=ki[O],E=/[defgprs%]/.test(O);C=C===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function B(N){var v=w,d=Y,x,S,y;if(O==="c")d=U(N)+d,N="";else{N=+N;var D=N<0||1/N<0;if(N=isNaN(N)?l:U(Math.abs(N),C),A&&(N=bi(N)),D&&+N==0&&_!=="+"&&(D=!1),v=(D?_==="("?_:u:_==="-"||_==="("?"":_)+v,d=(O==="s"?Pa[8+Mi/3]:"")+d+(D&&_==="("?")":""),E){for(x=-1,S=N.length;++x<S;)if(y=N.charCodeAt(x),48>y||y>57){d=(y===46?o+N.slice(x+1):N.slice(x))+d,N=N.slice(0,x);break}}}I&&!T&&(N=e(N,1/0));var $=v.length+N.length+d.length,P=$<k?new Array(k-$+1).join(c):"";switch(I&&T&&(N=e(P+N,P.length?k-d.length:1/0),P=""),m){case"<":N=v+N+d+P;break;case"=":N=v+P+N+d;break;case"^":N=P.slice(0,$=P.length>>1)+v+N+d+P.slice($);break;default:N=P+v+N+d;break}return a(N)}return r(B,"format"),B.toString=function(){return p+""},B}r(f,"newFormat");function h(p,c){var m=f((p=Ut(p),p.type="f",p)),_=Math.max(-8,Math.min(8,Math.floor(gt(c)/3)))*3,M=Math.pow(10,-_),T=Pa[8+_/3];return function(k){return m(M*k)+T}}return r(h,"formatPrefix"),{format:f,formatPrefix:h}}r(Si,"default");var Dn,$n,On;Ci({thousands:",",grouping:[3],currency:["$",""]});function Ci(t){return Dn=Si(t),$n=Dn.format,On=Dn.formatPrefix,Dn}r(Ci,"defaultLocale");function En(t){return Math.max(0,-gt(Math.abs(t)))}r(En,"default");function In(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(gt(e)/3)))*3-gt(Math.abs(t)))}r(In,"default");function Rn(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,gt(e)-gt(t))+1}r(Rn,"default");function qf(t){var e=0,n=t.children,i=n&&n.length;if(!i)e=1;else for(;--i>=0;)e+=n[i].value;t.value=e}r(qf,"count");function Ni(){return this.eachAfter(qf)}r(Ni,"default");function Ai(t,e){let n=-1;for(let i of this)t.call(e,i,++n,this);return this}r(Ai,"default");function Di(t,e){for(var n=this,i=[n],o,a,s=-1;n=i.pop();)if(t.call(e,n,++s,this),o=n.children)for(a=o.length-1;a>=0;--a)i.push(o[a]);return this}r(Di,"default");function $i(t,e){for(var n=this,i=[n],o=[],a,s,u,l=-1;n=i.pop();)if(o.push(n),a=n.children)for(s=0,u=a.length;s<u;++s)i.push(a[s]);for(;n=o.pop();)t.call(e,n,++l,this);return this}r($i,"default");function Oi(t,e){let n=-1;for(let i of this)if(t.call(e,i,++n,this))return i}r(Oi,"default");function Ei(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,i=e.children,o=i&&i.length;--o>=0;)n+=i[o].value;e.value=n})}r(Ei,"default");function Ii(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}r(Ii,"default");function Ri(t){for(var e=this,n=Wf(e,t),i=[e];e!==n;)e=e.parent,i.push(e);for(var o=i.length;t!==n;)i.splice(o,0,t),t=t.parent;return i}r(Ri,"default");function Wf(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),o=null;for(t=n.pop(),e=i.pop();t===e;)o=t,t=n.pop(),e=i.pop();return o}r(Wf,"leastCommonAncestor");function Pi(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}r(Pi,"default");function Yi(){return Array.from(this)}r(Yi,"default");function Fi(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}r(Fi,"default");function Ui(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}r(Ui,"default");function*Li(){var t=this,e,n=[t],i,o,a;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,i=t.children)for(o=0,a=i.length;o<a;++o)n.push(i[o]);while(n.length)}r(Li,"default");function Pn(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=Gf)):e===void 0&&(e=Xf);for(var n=new ze(t),i,o=[n],a,s,u,l;i=o.pop();)if((s=e(i.data))&&(l=(s=Array.from(s)).length))for(i.children=s,u=l-1;u>=0;--u)o.push(a=s[u]=new ze(s[u])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(Qf)}r(Pn,"hierarchy");function Vf(){return Pn(this).eachBefore(Zf)}r(Vf,"node_copy");function Xf(t){return t.children}r(Xf,"objectChildren");function Gf(t){return Array.isArray(t)?t[1]:null}r(Gf,"mapChildren");function Zf(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}r(Zf,"copyData");function Qf(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}r(Qf,"computeHeight");function ze(t){this.data=t,this.depth=this.height=0,this.parent=null}r(ze,"Node");ze.prototype=Pn.prototype={constructor:ze,count:Ni,each:Ai,eachAfter:$i,eachBefore:Di,find:Oi,sum:Ei,sort:Ii,path:Ri,ancestors:Pi,descendants:Yi,leaves:Fi,links:Ui,copy:Vf,[Symbol.iterator]:Li};function zi(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}r(zi,"default");function Hi(t,e,n,i,o){for(var a=t.children,s,u=-1,l=a.length,f=t.value&&(i-e)/t.value;++u<l;)s=a[u],s.y0=n,s.y1=o,s.x0=e,s.x1=e+=s.value*f}r(Hi,"default");function Bi(t,e,n,i,o){for(var a=t.children,s,u=-1,l=a.length,f=t.value&&(o-n)/t.value;++u<l;)s=a[u],s.x0=e,s.x1=i,s.y0=n,s.y1=n+=s.value*f}r(Bi,"default");var Kf=(1+Math.sqrt(5))/2;function Jf(t,e,n,i,o,a){for(var s=[],u=e.children,l,f,h=0,p=0,c=u.length,m,_,M=e.value,T,k,I,C,A,O,w;h<c;){m=o-n,_=a-i;do T=u[p++].value;while(!T&&p<c);for(k=I=T,O=Math.max(_/m,m/_)/(M*t),w=T*T*O,A=Math.max(I/w,w/k);p<c;++p){if(T+=f=u[p].value,f<k&&(k=f),f>I&&(I=f),w=T*T*O,C=Math.max(I/w,w/k),C>A){T-=f;break}A=C}s.push(l={value:T,dice:m<_,children:u.slice(h,p)}),l.dice?Hi(l,n,i,o,M?i+=_*T/M:a):Bi(l,n,i,M?n+=m*T/M:o,a),M-=T,h=p}return s}r(Jf,"squarifyRatio");var Ya=r((function t(e){function n(i,o,a,s,u){Jf(e,i,o,a,s,u)}return r(n,"squarify"),n.ratio=function(i){return t((i=+i)>1?i:1)},n}),"custom")(Kf);function Fa(t){if(typeof t!="function")throw new Error;return t}r(Fa,"required");function ye(){return 0}r(ye,"constantZero");function Jt(t){return function(){return t}}r(Jt,"default");function Ua(){var t=Ya,e=!1,n=1,i=1,o=[0],a=ye,s=ye,u=ye,l=ye,f=ye;function h(c){return c.x0=c.y0=0,c.x1=n,c.y1=i,c.eachBefore(p),o=[0],e&&c.eachBefore(zi),c}r(h,"treemap");function p(c){var m=o[c.depth],_=c.x0+m,M=c.y0+m,T=c.x1-m,k=c.y1-m;T<_&&(_=T=(_+T)/2),k<M&&(M=k=(M+k)/2),c.x0=_,c.y0=M,c.x1=T,c.y1=k,c.children&&(m=o[c.depth+1]=a(c)/2,_+=f(c)-m,M+=s(c)-m,T-=u(c)-m,k-=l(c)-m,T<_&&(_=T=(_+T)/2),k<M&&(M=k=(M+k)/2),t(c,_,M,T,k))}return r(p,"positionNode"),h.round=function(c){return arguments.length?(e=!!c,h):e},h.size=function(c){return arguments.length?(n=+c[0],i=+c[1],h):[n,i]},h.tile=function(c){return arguments.length?(t=Fa(c),h):t},h.padding=function(c){return arguments.length?h.paddingInner(c).paddingOuter(c):h.paddingInner()},h.paddingInner=function(c){return arguments.length?(a=typeof c=="function"?c:Jt(+c),h):a},h.paddingOuter=function(c){return arguments.length?h.paddingTop(c).paddingRight(c).paddingBottom(c).paddingLeft(c):h.paddingTop()},h.paddingTop=function(c){return arguments.length?(s=typeof c=="function"?c:Jt(+c),h):s},h.paddingRight=function(c){return arguments.length?(u=typeof c=="function"?c:Jt(+c),h):u},h.paddingBottom=function(c){return arguments.length?(l=typeof c=="function"?c:Jt(+c),h):l},h.paddingLeft=function(c){return arguments.length?(f=typeof c=="function"?c:Jt(+c),h):f},h}r(Ua,"default");function Lt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}r(Lt,"initRange");var qi=Symbol("implicit");function He(){var t=new fe,e=[],n=[],i=qi;function o(a){let s=t.get(a);if(s===void 0){if(i!==qi)return i;t.set(a,s=e.push(a)-1)}return n[s%n.length]}return r(o,"scale"),o.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new fe;for(let s of a)t.has(s)||t.set(s,e.push(s)-1);return o},o.range=function(a){return arguments.length?(n=Array.from(a),o):n.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return He(e,n).unknown(i)},Lt.apply(o,arguments),o}r(He,"ordinal");function Wi(t){return function(){return t}}r(Wi,"constants");function Vi(t){return+t}r(Vi,"number");var La=[0,1];function ve(t){return t}r(ve,"identity");function Xi(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Wi(isNaN(e)?NaN:.5)}r(Xi,"normalize");function jf(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}r(jf,"clamper");function tl(t,e,n){var i=t[0],o=t[1],a=e[0],s=e[1];return o<i?(i=Xi(o,i),a=n(s,a)):(i=Xi(i,o),a=n(a,s)),function(u){return a(i(u))}}r(tl,"bimap");function el(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),a=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=Xi(t[s],t[s+1]),a[s]=n(e[s],e[s+1]);return function(u){var l=pr(t,u,1,i)-1;return a[l](o[l](u))}}r(el,"polymap");function Yn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}r(Yn,"copy");function nl(){var t=La,e=La,n=Ft,i,o,a,s=ve,u,l,f;function h(){var c=Math.min(t.length,e.length);return s!==ve&&(s=jf(t[0],t[c-1])),u=c>2?el:tl,l=f=null,p}r(h,"rescale");function p(c){return c==null||isNaN(c=+c)?a:(l||(l=u(t.map(i),e,n)))(i(s(c)))}return r(p,"scale"),p.invert=function(c){return s(o((f||(f=u(e,t.map(i),j)))(c)))},p.domain=function(c){return arguments.length?(t=Array.from(c,Vi),h()):t.slice()},p.range=function(c){return arguments.length?(e=Array.from(c),h()):e.slice()},p.rangeRound=function(c){return e=Array.from(c),n=Mn,h()},p.clamp=function(c){return arguments.length?(s=c?!0:ve,h()):s!==ve},p.interpolate=function(c){return arguments.length?(n=c,h()):n},p.unknown=function(c){return arguments.length?(a=c,p):a},function(c,m){return i=c,o=m,h()}}r(nl,"transformer");function Be(){return nl()(ve,ve)}r(Be,"continuous");function Gi(t,e,n,i){var o=le(t,e,n),a;switch(i=Ut(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(a=In(o,s))&&(i.precision=a),On(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=Rn(o,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=En(o))&&(i.precision=a-(i.type==="%")*2);break}}return $n(i)}r(Gi,"tickFormat");function rl(t){var e=t.domain;return t.ticks=function(n){var i=e();return hn(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var o=e();return Gi(o[0],o[o.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),o=0,a=i.length-1,s=i[o],u=i[a],l,f,h=10;for(u<s&&(f=s,s=u,u=f,f=o,o=a,a=f);h-- >0;){if(f=Ee(s,u,n),f===l)return i[o]=s,i[a]=u,e(i);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;l=f}return t},t}r(rl,"linearish");function Zi(){var t=Be();return t.copy=function(){return Yn(t,Zi())},Lt.apply(t,arguments),rl(t)}r(Zi,"linear");var Qi=new Date,Ki=new Date;function H(t,e,n,i){function o(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return r(o,"interval"),o.floor=a=>(t(a=new Date(+a)),a),o.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),o.round=a=>{let s=o(a),u=o.ceil(a);return a-s<u-a?s:u},o.offset=(a,s)=>(e(a=new Date(+a),s==null?1:Math.floor(s)),a),o.range=(a,s,u)=>{let l=[];if(a=o.ceil(a),u=u==null?1:Math.floor(u),!(a<s)||!(u>0))return l;let f;do l.push(f=new Date(+a)),e(a,u),t(a);while(f<a&&a<s);return l},o.filter=a=>H(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;e(s,-1),!a(s););else for(;--u>=0;)for(;e(s,1),!a(s););}),n&&(o.count=(a,s)=>(Qi.setTime(+a),Ki.setTime(+s),t(Qi),t(Ki),Math.floor(n(Qi,Ki))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(i?s=>i(s)%a===0:s=>o.count(0,s)%a===0):o)),o}r(H,"timeInterval");var jt=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);jt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):jt);var za=jt.range;var Tt=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Ha=Tt.range;var we=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),il=we.range,Fn=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),ol=Fn.range;var be=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),al=be.range,Un=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),sl=Un.range;var Dt=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),ul=Dt.range,We=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),fl=We.range,Ln=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),ll=Ln.range;function ne(t){return H(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}r(ne,"timeWeekday");var $t=ne(0),Me=ne(1),qa=ne(2),Wa=ne(3),zt=ne(4),Va=ne(5),Xa=ne(6),Ga=$t.range,cl=Me.range,hl=qa.range,pl=Wa.range,ml=zt.range,dl=Va.range,xl=Xa.range;function re(t){return H(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}r(re,"utcWeekday");var ie=re(0),Te=re(1),Za=re(2),Qa=re(3),Ht=re(4),Ka=re(5),Ja=re(6),ja=ie.range,_l=Te.range,gl=Za.range,yl=Qa.range,vl=Ht.range,wl=Ka.range,bl=Ja.range;var ke=H(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()),Ml=ke.range,zn=H(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()),Tl=zn.range;var lt=H(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());lt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var kl=lt.range,yt=H(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());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var Sl=yt.range;function es(t,e,n,i,o,a){let s=[[Tt,1,1e3],[Tt,5,5*1e3],[Tt,15,15*1e3],[Tt,30,30*1e3],[a,1,6e4],[a,5,5*6e4],[a,15,15*6e4],[a,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[i,1,864e5],[i,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function u(f,h,p){let c=h<f;c&&([f,h]=[h,f]);let m=p&&typeof p.range=="function"?p:l(f,h,p),_=m?m.range(f,+h+1):[];return c?_.reverse():_}r(u,"ticks");function l(f,h,p){let c=Math.abs(h-f)/p,m=Xt(([,,T])=>T).right(s,c);if(m===s.length)return t.every(le(f/31536e6,h/31536e6,p));if(m===0)return jt.every(Math.max(le(f,h,p),1));let[_,M]=s[c/s[m-1][2]<s[m][2]/c?m-1:m];return _.every(M)}return r(l,"tickInterval"),[u,l]}r(es,"ticker");var[Nl,Al]=es(yt,zn,ie,Ln,Un,Fn),[Ji,ji]=es(lt,ke,$t,Dt,be,we);function to(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)}r(to,"localDate");function eo(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))}r(eo,"utcDate");function Ve(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}r(Ve,"newDate");function no(t){var e=t.dateTime,n=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,u=t.months,l=t.shortMonths,f=Xe(o),h=Ge(o),p=Xe(a),c=Ge(a),m=Xe(s),_=Ge(s),M=Xe(u),T=Ge(u),k=Xe(l),I=Ge(l),C={a:D,A:$,b:P,B:z,c:null,d:ss,e:ss,f:Jl,g:uc,G:lc,H:Zl,I:Ql,j:Kl,L:hs,m:jl,M:tc,p:W,q:X,Q:ls,s:cs,S:ec,u:nc,U:rc,V:ic,w:oc,W:ac,x:null,X:null,y:sc,Y:fc,Z:cc,"%":fs},A={a:J,A:ht,b:Q,B:dt,c:null,d:us,e:us,f:dc,g:kc,G:Cc,H:hc,I:pc,j:mc,L:ms,m:xc,M:_c,p:st,q:Z,Q:ls,s:cs,S:gc,u:yc,U:vc,V:wc,w:bc,W:Mc,x:null,X:null,y:Tc,Y:Sc,Z:Nc,"%":fs},O={a:B,A:N,b:v,B:d,c:x,d:os,e:os,f:Wl,g:is,G:rs,H:as,I:as,j:zl,L:ql,m:Ll,M:Hl,p:E,q:Ul,Q:Xl,s:Gl,S:Bl,u:Il,U:Rl,V:Pl,w:El,W:Yl,x:S,X:y,y:is,Y:rs,Z:Fl,"%":Vl};C.x=w(n,C),C.X=w(i,C),C.c=w(e,C),A.x=w(n,A),A.X=w(i,A),A.c=w(e,A);function w(b,R){return function(F){var g=[],at=-1,q=0,ut=b.length,ft,Wt,Ho;for(F instanceof Date||(F=new Date(+F));++at<ut;)b.charCodeAt(at)===37&&(g.push(b.slice(q,at)),(Wt=ns[ft=b.charAt(++at)])!=null?ft=b.charAt(++at):Wt=ft==="e"?" ":"0",(Ho=R[ft])&&(ft=Ho(F,Wt)),g.push(ft),q=at+1);return g.push(b.slice(q,at)),g.join("")}}r(w,"newFormat");function Y(b,R){return function(F){var g=Ve(1900,void 0,1),at=U(g,b,F+="",0),q,ut;if(at!=F.length)return null;if("Q"in g)return new Date(g.Q);if("s"in g)return new Date(g.s*1e3+("L"in g?g.L:0));if(R&&!("Z"in g)&&(g.Z=0),"p"in g&&(g.H=g.H%12+g.p*12),g.m===void 0&&(g.m="q"in g?g.q:0),"V"in g){if(g.V<1||g.V>53)return null;"w"in g||(g.w=1),"Z"in g?(q=eo(Ve(g.y,0,1)),ut=q.getUTCDay(),q=ut>4||ut===0?Te.ceil(q):Te(q),q=We.offset(q,(g.V-1)*7),g.y=q.getUTCFullYear(),g.m=q.getUTCMonth(),g.d=q.getUTCDate()+(g.w+6)%7):(q=to(Ve(g.y,0,1)),ut=q.getDay(),q=ut>4||ut===0?Me.ceil(q):Me(q),q=Dt.offset(q,(g.V-1)*7),g.y=q.getFullYear(),g.m=q.getMonth(),g.d=q.getDate()+(g.w+6)%7)}else("W"in g||"U"in g)&&("w"in g||(g.w="u"in g?g.u%7:"W"in g?1:0),ut="Z"in g?eo(Ve(g.y,0,1)).getUTCDay():to(Ve(g.y,0,1)).getDay(),g.m=0,g.d="W"in g?(g.w+6)%7+g.W*7-(ut+5)%7:g.w+g.U*7-(ut+6)%7);return"Z"in g?(g.H+=g.Z/100|0,g.M+=g.Z%100,eo(g)):to(g)}}r(Y,"newParse");function U(b,R,F,g){for(var at=0,q=R.length,ut=F.length,ft,Wt;at<q;){if(g>=ut)return-1;if(ft=R.charCodeAt(at++),ft===37){if(ft=R.charAt(at++),Wt=O[ft in ns?R.charAt(at++):ft],!Wt||(g=Wt(b,F,g))<0)return-1}else if(ft!=F.charCodeAt(g++))return-1}return g}r(U,"parseSpecifier");function E(b,R,F){var g=f.exec(R.slice(F));return g?(b.p=h.get(g[0].toLowerCase()),F+g[0].length):-1}r(E,"parsePeriod");function B(b,R,F){var g=m.exec(R.slice(F));return g?(b.w=_.get(g[0].toLowerCase()),F+g[0].length):-1}r(B,"parseShortWeekday");function N(b,R,F){var g=p.exec(R.slice(F));return g?(b.w=c.get(g[0].toLowerCase()),F+g[0].length):-1}r(N,"parseWeekday");function v(b,R,F){var g=k.exec(R.slice(F));return g?(b.m=I.get(g[0].toLowerCase()),F+g[0].length):-1}r(v,"parseShortMonth");function d(b,R,F){var g=M.exec(R.slice(F));return g?(b.m=T.get(g[0].toLowerCase()),F+g[0].length):-1}r(d,"parseMonth");function x(b,R,F){return U(b,e,R,F)}r(x,"parseLocaleDateTime");function S(b,R,F){return U(b,n,R,F)}r(S,"parseLocaleDate");function y(b,R,F){return U(b,i,R,F)}r(y,"parseLocaleTime");function D(b){return s[b.getDay()]}r(D,"formatShortWeekday");function $(b){return a[b.getDay()]}r($,"formatWeekday");function P(b){return l[b.getMonth()]}r(P,"formatShortMonth");function z(b){return u[b.getMonth()]}r(z,"formatMonth");function W(b){return o[+(b.getHours()>=12)]}r(W,"formatPeriod");function X(b){return 1+~~(b.getMonth()/3)}r(X,"formatQuarter");function J(b){return s[b.getUTCDay()]}r(J,"formatUTCShortWeekday");function ht(b){return a[b.getUTCDay()]}r(ht,"formatUTCWeekday");function Q(b){return l[b.getUTCMonth()]}r(Q,"formatUTCShortMonth");function dt(b){return u[b.getUTCMonth()]}r(dt,"formatUTCMonth");function st(b){return o[+(b.getUTCHours()>=12)]}r(st,"formatUTCPeriod");function Z(b){return 1+~~(b.getUTCMonth()/3)}return r(Z,"formatUTCQuarter"),{format:r(function(b){var R=w(b+="",C);return R.toString=function(){return b},R},"format"),parse:r(function(b){var R=Y(b+="",!1);return R.toString=function(){return b},R},"parse"),utcFormat:r(function(b){var R=w(b+="",A);return R.toString=function(){return b},R},"utcFormat"),utcParse:r(function(b){var R=Y(b+="",!0);return R.toString=function(){return b},R},"utcParse")}}r(no,"formatLocale");var ns={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Dl=/^%/,$l=/[\\^$*+?|[\]().{}]/g;function L(t,e,n){var i=t<0?"-":"",o=(i?-t:t)+"",a=o.length;return i+(a<n?new Array(n-a+1).join(e)+o:o)}r(L,"pad");function Ol(t){return t.replace($l,"\\$&")}r(Ol,"requote");function Xe(t){return new RegExp("^(?:"+t.map(Ol).join("|")+")","i")}r(Xe,"formatRe");function Ge(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}r(Ge,"formatLookup");function El(t,e,n){var i=tt.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}r(El,"parseWeekdayNumberSunday");function Il(t,e,n){var i=tt.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}r(Il,"parseWeekdayNumberMonday");function Rl(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}r(Rl,"parseWeekNumberSunday");function Pl(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}r(Pl,"parseWeekNumberISO");function Yl(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}r(Yl,"parseWeekNumberMonday");function rs(t,e,n){var i=tt.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}r(rs,"parseFullYear");function is(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}r(is,"parseYear");function Fl(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}r(Fl,"parseZone");function Ul(t,e,n){var i=tt.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}r(Ul,"parseQuarter");function Ll(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}r(Ll,"parseMonthNumber");function os(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}r(os,"parseDayOfMonth");function zl(t,e,n){var i=tt.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}r(zl,"parseDayOfYear");function as(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}r(as,"parseHour24");function Hl(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}r(Hl,"parseMinutes");function Bl(t,e,n){var i=tt.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}r(Bl,"parseSeconds");function ql(t,e,n){var i=tt.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}r(ql,"parseMilliseconds");function Wl(t,e,n){var i=tt.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}r(Wl,"parseMicroseconds");function Vl(t,e,n){var i=Dl.exec(e.slice(n,n+1));return i?n+i[0].length:-1}r(Vl,"parseLiteralPercent");function Xl(t,e,n){var i=tt.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}r(Xl,"parseUnixTimestamp");function Gl(t,e,n){var i=tt.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}r(Gl,"parseUnixTimestampSeconds");function ss(t,e){return L(t.getDate(),e,2)}r(ss,"formatDayOfMonth");function Zl(t,e){return L(t.getHours(),e,2)}r(Zl,"formatHour24");function Ql(t,e){return L(t.getHours()%12||12,e,2)}r(Ql,"formatHour12");function Kl(t,e){return L(1+Dt.count(lt(t),t),e,3)}r(Kl,"formatDayOfYear");function hs(t,e){return L(t.getMilliseconds(),e,3)}r(hs,"formatMilliseconds");function Jl(t,e){return hs(t,e)+"000"}r(Jl,"formatMicroseconds");function jl(t,e){return L(t.getMonth()+1,e,2)}r(jl,"formatMonthNumber");function tc(t,e){return L(t.getMinutes(),e,2)}r(tc,"formatMinutes");function ec(t,e){return L(t.getSeconds(),e,2)}r(ec,"formatSeconds");function nc(t){var e=t.getDay();return e===0?7:e}r(nc,"formatWeekdayNumberMonday");function rc(t,e){return L($t.count(lt(t)-1,t),e,2)}r(rc,"formatWeekNumberSunday");function ps(t){var e=t.getDay();return e>=4||e===0?zt(t):zt.ceil(t)}r(ps,"dISO");function ic(t,e){return t=ps(t),L(zt.count(lt(t),t)+(lt(t).getDay()===4),e,2)}r(ic,"formatWeekNumberISO");function oc(t){return t.getDay()}r(oc,"formatWeekdayNumberSunday");function ac(t,e){return L(Me.count(lt(t)-1,t),e,2)}r(ac,"formatWeekNumberMonday");function sc(t,e){return L(t.getFullYear()%100,e,2)}r(sc,"formatYear");function uc(t,e){return t=ps(t),L(t.getFullYear()%100,e,2)}r(uc,"formatYearISO");function fc(t,e){return L(t.getFullYear()%1e4,e,4)}r(fc,"formatFullYear");function lc(t,e){var n=t.getDay();return t=n>=4||n===0?zt(t):zt.ceil(t),L(t.getFullYear()%1e4,e,4)}r(lc,"formatFullYearISO");function cc(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+L(e/60|0,"0",2)+L(e%60,"0",2)}r(cc,"formatZone");function us(t,e){return L(t.getUTCDate(),e,2)}r(us,"formatUTCDayOfMonth");function hc(t,e){return L(t.getUTCHours(),e,2)}r(hc,"formatUTCHour24");function pc(t,e){return L(t.getUTCHours()%12||12,e,2)}r(pc,"formatUTCHour12");function mc(t,e){return L(1+We.count(yt(t),t),e,3)}r(mc,"formatUTCDayOfYear");function ms(t,e){return L(t.getUTCMilliseconds(),e,3)}r(ms,"formatUTCMilliseconds");function dc(t,e){return ms(t,e)+"000"}r(dc,"formatUTCMicroseconds");function xc(t,e){return L(t.getUTCMonth()+1,e,2)}r(xc,"formatUTCMonthNumber");function _c(t,e){return L(t.getUTCMinutes(),e,2)}r(_c,"formatUTCMinutes");function gc(t,e){return L(t.getUTCSeconds(),e,2)}r(gc,"formatUTCSeconds");function yc(t){var e=t.getUTCDay();return e===0?7:e}r(yc,"formatUTCWeekdayNumberMonday");function vc(t,e){return L(ie.count(yt(t)-1,t),e,2)}r(vc,"formatUTCWeekNumberSunday");function ds(t){var e=t.getUTCDay();return e>=4||e===0?Ht(t):Ht.ceil(t)}r(ds,"UTCdISO");function wc(t,e){return t=ds(t),L(Ht.count(yt(t),t)+(yt(t).getUTCDay()===4),e,2)}r(wc,"formatUTCWeekNumberISO");function bc(t){return t.getUTCDay()}r(bc,"formatUTCWeekdayNumberSunday");function Mc(t,e){return L(Te.count(yt(t)-1,t),e,2)}r(Mc,"formatUTCWeekNumberMonday");function Tc(t,e){return L(t.getUTCFullYear()%100,e,2)}r(Tc,"formatUTCYear");function kc(t,e){return t=ds(t),L(t.getUTCFullYear()%100,e,2)}r(kc,"formatUTCYearISO");function Sc(t,e){return L(t.getUTCFullYear()%1e4,e,4)}r(Sc,"formatUTCFullYear");function Cc(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ht(t):Ht.ceil(t),L(t.getUTCFullYear()%1e4,e,4)}r(Cc,"formatUTCFullYearISO");function Nc(){return"+0000"}r(Nc,"formatUTCZone");function fs(){return"%"}r(fs,"formatLiteralPercent");function ls(t){return+t}r(ls,"formatUnixTimestamp");function cs(t){return Math.floor(+t/1e3)}r(cs,"formatUnixTimestampSeconds");var Se,Hn,xs,_s,gs;ro({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 ro(t){return Se=no(t),Hn=Se.format,xs=Se.parse,_s=Se.utcFormat,gs=Se.utcParse,Se}r(ro,"defaultLocale");function io(t,e){t=t.slice();var n=0,i=t.length-1,o=t[n],a=t[i],s;return a<o&&(s=n,n=i,i=s,s=o,o=a,a=s),t[n]=e.floor(o),t[i]=e.ceil(a),t}r(io,"nice");function Ac(t){return new Date(t)}r(Ac,"date");function Dc(t){return t instanceof Date?+t:+new Date(+t)}r(Dc,"number");function ys(t,e,n,i,o,a,s,u,l,f){var h=Be(),p=h.invert,c=h.domain,m=f(".%L"),_=f(":%S"),M=f("%I:%M"),T=f("%I %p"),k=f("%a %d"),I=f("%b %d"),C=f("%B"),A=f("%Y");function O(w){return(l(w)<w?m:u(w)<w?_:s(w)<w?M:a(w)<w?T:i(w)<w?o(w)<w?k:I:n(w)<w?C:A)(w)}return r(O,"tickFormat"),h.invert=function(w){return new Date(p(w))},h.domain=function(w){return arguments.length?c(Array.from(w,Dc)):c().map(Ac)},h.ticks=function(w){var Y=c();return t(Y[0],Y[Y.length-1],w??10)},h.tickFormat=function(w,Y){return Y==null?O:f(Y)},h.nice=function(w){var Y=c();return(!w||typeof w.range!="function")&&(w=e(Y[0],Y[Y.length-1],w??10)),w?c(io(Y,w)):h},h.copy=function(){return Yn(h,ys(t,e,n,i,o,a,s,u,l,f))},h}r(ys,"calendar");function vs(){return Lt.apply(ys(Ji,ji,lt,ke,$t,Dt,be,we,Tt,Hn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}r(vs,"time");function oo(){var t=He().unknown(void 0),e=t.domain,n=t.range,i=0,o=1,a,s,u=!1,l=0,f=0,h=.5;delete t.unknown;function p(){var c=e().length,m=o<i,_=m?o:i,M=m?i:o;a=(M-_)/Math.max(1,c-l+f*2),u&&(a=Math.floor(a)),_+=(M-_-a*(c-l))*h,s=a*(1-l),u&&(_=Math.round(_),s=Math.round(s));var T=pn(c).map(function(k){return _+a*k});return n(m?T.reverse():T)}return r(p,"rescale"),t.domain=function(c){return arguments.length?(e(c),p()):e()},t.range=function(c){return arguments.length?([i,o]=c,i=+i,o=+o,p()):[i,o]},t.rangeRound=function(c){return[i,o]=c,i=+i,o=+o,u=!0,p()},t.bandwidth=function(){return s},t.step=function(){return a},t.round=function(c){return arguments.length?(u=!!c,p()):u},t.padding=function(c){return arguments.length?(l=Math.min(1,f=+c),p()):l},t.paddingInner=function(c){return arguments.length?(l=Math.min(1,c),p()):l},t.paddingOuter=function(c){return arguments.length?(f=+c,p()):f},t.align=function(c){return arguments.length?(h=Math.max(0,Math.min(1,c)),p()):h},t.copy=function(){return oo(e(),[i,o]).round(u).paddingInner(l).paddingOuter(f).align(h)},Lt.apply(p(),arguments)}r(oo,"band");function ao(t){for(var e=t.length/6|0,n=new Array(e),i=0;i<e;)n[i]="#"+t.slice(i*6,++i*6);return n}r(ao,"default");var $c=ao("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function V(t){return r(function(){return t},"constant")}r(V,"default");var so=Math.abs,rt=Math.atan2,Bt=Math.cos,ws=Math.max,Bn=Math.min,vt=Math.sin,oe=Math.sqrt,et=1e-12,Ce=Math.PI,Ze=Ce/2,Ne=2*Ce;function bs(t){return t>1?0:t<-1?Ce:Math.acos(t)}r(bs,"acos");function uo(t){return t>=1?Ze:t<=-1?-Ze:Math.asin(t)}r(uo,"asin");var fo=Math.PI,lo=2*fo,ae=1e-6,Oc=lo-ae;function Ms(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}r(Ms,"append");function Ec(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ms;let n=10**e;return function(i){this._+=i[0];for(let o=1,a=i.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+i[o]}}r(Ec,"appendRound");var se=class{static{r(this,"Path")}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Ms:Ec(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,o){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(e,n,i,o,a,s){this._append`C${+e},${+n},${+i},${+o},${this._x1=+a},${this._y1=+s}`}arcTo(e,n,i,o,a){if(e=+e,n=+n,i=+i,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,u=this._y1,l=i-e,f=o-n,h=s-e,p=u-n,c=h*h+p*p;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(c>ae)if(!(Math.abs(p*l-f*h)>ae)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let m=i-s,_=o-u,M=l*l+f*f,T=m*m+_*_,k=Math.sqrt(M),I=Math.sqrt(c),C=a*Math.tan((fo-Math.acos((M+c-T)/(2*k*I)))/2),A=C/I,O=C/k;Math.abs(A-1)>ae&&this._append`L${e+A*h},${n+A*p}`,this._append`A${a},${a},0,0,${+(p*m>h*_)},${this._x1=e+O*l},${this._y1=n+O*f}`}}arc(e,n,i,o,a,s){if(e=+e,n=+n,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let u=i*Math.cos(o),l=i*Math.sin(o),f=e+u,h=n+l,p=1^s,c=s?o-a:a-o;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>ae||Math.abs(this._y1-h)>ae)&&this._append`L${f},${h}`,i&&(c<0&&(c=c%lo+lo),c>Oc?this._append`A${i},${i},0,1,${p},${e-u},${n-l}A${i},${i},0,1,${p},${this._x1=f},${this._y1=h}`:c>ae&&this._append`A${i},${i},0,${+(c>=fo)},${p},${this._x1=e+i*Math.cos(a)},${this._y1=n+i*Math.sin(a)}`)}rect(e,n,i,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}};function Ts(){return new se}r(Ts,"path");Ts.prototype=se.prototype;function qn(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new se(e)}r(qn,"withPath");function Ic(t){return t.innerRadius}r(Ic,"arcInnerRadius");function Rc(t){return t.outerRadius}r(Rc,"arcOuterRadius");function Pc(t){return t.startAngle}r(Pc,"arcStartAngle");function Yc(t){return t.endAngle}r(Yc,"arcEndAngle");function Fc(t){return t&&t.padAngle}r(Fc,"arcPadAngle");function Uc(t,e,n,i,o,a,s,u){var l=n-t,f=i-e,h=s-o,p=u-a,c=p*l-h*f;if(!(c*c<et))return c=(h*(e-a)-p*(t-o))/c,[t+c*l,e+c*f]}r(Uc,"intersect");function Wn(t,e,n,i,o,a,s){var u=t-n,l=e-i,f=(s?a:-a)/oe(u*u+l*l),h=f*l,p=-f*u,c=t+h,m=e+p,_=n+h,M=i+p,T=(c+_)/2,k=(m+M)/2,I=_-c,C=M-m,A=I*I+C*C,O=o-a,w=c*M-_*m,Y=(C<0?-1:1)*oe(ws(0,O*O*A-w*w)),U=(w*C-I*Y)/A,E=(-w*I-C*Y)/A,B=(w*C+I*Y)/A,N=(-w*I+C*Y)/A,v=U-T,d=E-k,x=B-T,S=N-k;return v*v+d*d>x*x+S*S&&(U=B,E=N),{cx:U,cy:E,x01:-h,y01:-p,x11:U*(o/O-1),y11:E*(o/O-1)}}r(Wn,"cornerTangents");function ks(){var t=Ic,e=Rc,n=V(0),i=null,o=Pc,a=Yc,s=Fc,u=null,l=qn(f);function f(){var h,p,c=+t.apply(this,arguments),m=+e.apply(this,arguments),_=o.apply(this,arguments)-Ze,M=a.apply(this,arguments)-Ze,T=so(M-_),k=M>_;if(u||(u=h=l()),m<c&&(p=m,m=c,c=p),!(m>et))u.moveTo(0,0);else if(T>Ne-et)u.moveTo(m*Bt(_),m*vt(_)),u.arc(0,0,m,_,M,!k),c>et&&(u.moveTo(c*Bt(M),c*vt(M)),u.arc(0,0,c,M,_,k));else{var I=_,C=M,A=_,O=M,w=T,Y=T,U=s.apply(this,arguments)/2,E=U>et&&(i?+i.apply(this,arguments):oe(c*c+m*m)),B=Bn(so(m-c)/2,+n.apply(this,arguments)),N=B,v=B,d,x;if(E>et){var S=uo(E/c*vt(U)),y=uo(E/m*vt(U));(w-=S*2)>et?(S*=k?1:-1,A+=S,O-=S):(w=0,A=O=(_+M)/2),(Y-=y*2)>et?(y*=k?1:-1,I+=y,C-=y):(Y=0,I=C=(_+M)/2)}var D=m*Bt(I),$=m*vt(I),P=c*Bt(O),z=c*vt(O);if(B>et){var W=m*Bt(C),X=m*vt(C),J=c*Bt(A),ht=c*vt(A),Q;if(T<Ce)if(Q=Uc(D,$,J,ht,W,X,P,z)){var dt=D-Q[0],st=$-Q[1],Z=W-Q[0],b=X-Q[1],R=1/vt(bs((dt*Z+st*b)/(oe(dt*dt+st*st)*oe(Z*Z+b*b)))/2),F=oe(Q[0]*Q[0]+Q[1]*Q[1]);N=Bn(B,(c-F)/(R-1)),v=Bn(B,(m-F)/(R+1))}else N=v=0}Y>et?v>et?(d=Wn(J,ht,D,$,m,v,k),x=Wn(W,X,P,z,m,v,k),u.moveTo(d.cx+d.x01,d.cy+d.y01),v<B?u.arc(d.cx,d.cy,v,rt(d.y01,d.x01),rt(x.y01,x.x01),!k):(u.arc(d.cx,d.cy,v,rt(d.y01,d.x01),rt(d.y11,d.x11),!k),u.arc(0,0,m,rt(d.cy+d.y11,d.cx+d.x11),rt(x.cy+x.y11,x.cx+x.x11),!k),u.arc(x.cx,x.cy,v,rt(x.y11,x.x11),rt(x.y01,x.x01),!k))):(u.moveTo(D,$),u.arc(0,0,m,I,C,!k)):u.moveTo(D,$),!(c>et)||!(w>et)?u.lineTo(P,z):N>et?(d=Wn(P,z,W,X,c,-N,k),x=Wn(D,$,J,ht,c,-N,k),u.lineTo(d.cx+d.x01,d.cy+d.y01),N<B?u.arc(d.cx,d.cy,N,rt(d.y01,d.x01),rt(x.y01,x.x01),!k):(u.arc(d.cx,d.cy,N,rt(d.y01,d.x01),rt(d.y11,d.x11),!k),u.arc(0,0,c,rt(d.cy+d.y11,d.cx+d.x11),rt(x.cy+x.y11,x.cx+x.x11),k),u.arc(x.cx,x.cy,N,rt(x.y11,x.x11),rt(x.y01,x.x01),!k))):u.arc(0,0,c,O,A,k)}if(u.closePath(),h)return u=null,h+""||null}return r(f,"arc"),f.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,p=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Ce/2;return[Bt(p)*h,vt(p)*h]},f.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:V(+h),f):t},f.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:V(+h),f):e},f.cornerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:V(+h),f):n},f.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:V(+h),f):i},f.startAngle=function(h){return arguments.length?(o=typeof h=="function"?h:V(+h),f):o},f.endAngle=function(h){return arguments.length?(a=typeof h=="function"?h:V(+h),f):a},f.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:V(+h),f):s},f.context=function(h){return arguments.length?(u=h??null,f):u},f}r(ks,"default");function Ss(t){this._context=t}r(Ss,"Linear");Ss.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(function(){this._point=0},"lineStart"),lineEnd:r(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:r(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}},"point")};function Vn(t){return new Ss(t)}r(Vn,"default");var Av=Array.prototype.slice;function Qe(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}r(Qe,"default");function Cs(t){return t[0]}r(Cs,"x");function Ns(t){return t[1]}r(Ns,"y");function As(t,e){var n=V(!0),i=null,o=Vn,a=null,s=qn(u);t=typeof t=="function"?t:t===void 0?Cs:V(t),e=typeof e=="function"?e:e===void 0?Ns:V(e);function u(l){var f,h=(l=Qe(l)).length,p,c=!1,m;for(i==null&&(a=o(m=s())),f=0;f<=h;++f)!(f<h&&n(p=l[f],f,l))===c&&((c=!c)?a.lineStart():a.lineEnd()),c&&a.point(+t(p,f,l),+e(p,f,l));if(m)return a=null,m+""||null}return r(u,"line"),u.x=function(l){return arguments.length?(t=typeof l=="function"?l:V(+l),u):t},u.y=function(l){return arguments.length?(e=typeof l=="function"?l:V(+l),u):e},u.defined=function(l){return arguments.length?(n=typeof l=="function"?l:V(!!l),u):n},u.curve=function(l){return arguments.length?(o=l,i!=null&&(a=o(i)),u):o},u.context=function(l){return arguments.length?(l==null?i=a=null:a=o(i=l),u):i},u}r(As,"default");function co(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}r(co,"default");function ho(t){return t}r(ho,"default");function Ds(){var t=ho,e=co,n=null,i=V(0),o=V(Ne),a=V(0);function s(u){var l,f=(u=Qe(u)).length,h,p,c=0,m=new Array(f),_=new Array(f),M=+i.apply(this,arguments),T=Math.min(Ne,Math.max(-Ne,o.apply(this,arguments)-M)),k,I=Math.min(Math.abs(T)/f,a.apply(this,arguments)),C=I*(T<0?-1:1),A;for(l=0;l<f;++l)(A=_[m[l]=l]=+t(u[l],l,u))>0&&(c+=A);for(e!=null?m.sort(function(O,w){return e(_[O],_[w])}):n!=null&&m.sort(function(O,w){return n(u[O],u[w])}),l=0,p=c?(T-f*C)/c:0;l<f;++l,M=k)h=m[l],A=_[h],k=M+(A>0?A*p:0)+C,_[h]={data:u[h],index:l,value:A,startAngle:M,endAngle:k,padAngle:I};return _}return r(s,"pie"),s.value=function(u){return arguments.length?(t=typeof u=="function"?u:V(+u),s):t},s.sortValues=function(u){return arguments.length?(e=u,n=null,s):e},s.sort=function(u){return arguments.length?(n=u,e=null,s):n},s.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:V(+u),s):i},s.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:V(+u),s):o},s.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:V(+u),s):a},s}r(Ds,"default");var Xn=class{static{r(this,"Bump")}constructor(e,n){this._context=e,this._x=n}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,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}};function Lc(t){return new Xn(t,!0)}r(Lc,"bumpX");function zc(t){return new Xn(t,!1)}r(zc,"bumpY");function Ae(t,e,n){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+n)/6)}r(Ae,"point");function Ke(t){this._context=t}r(Ke,"Basis");Ke.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:r(function(){switch(this._point){case 3:Ae(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},"lineEnd"),point:r(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:Ae(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function $s(t){return new Ke(t)}r($s,"default");function ct(){}r(ct,"default");function Os(t){this._context=t}r(Os,"BasisClosed");Os.prototype={areaStart:ct,areaEnd:ct,lineStart:r(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},"lineStart"),lineEnd:r(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}}},"lineEnd"),point:r(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:Ae(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Es(t){return new Os(t)}r(Es,"default");function Is(t){this._context=t}r(Is,"BasisOpen");Is.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:r(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:r(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 n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Rs(t){return new Is(t)}r(Rs,"default");function Ps(t,e){this._basis=new Ke(t),this._beta=e}r(Ps,"Bundle");Ps.prototype={lineStart:r(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:r(function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1,l;++u<=n;)l=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+l*a),this._beta*e[u]+(1-this._beta)*(o+l*s));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:r(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};var Hc=r((function t(e){function n(i){return e===1?new Ke(i):new Ps(i,e)}return r(n,"bundle"),n.beta=function(i){return t(+i)},n}),"custom")(.85);function De(t,e,n){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-n),t._x2,t._y2)}r(De,"point");function Gn(t,e){this._context=t,this._k=(1-e)/6}r(Gn,"Cardinal");Gn.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:r(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:De(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:r(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:De(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},"point")};var Bc=r((function t(e){function n(i){return new Gn(i,e)}return r(n,"cardinal"),n.tension=function(i){return t(+i)},n}),"custom")(0);function Zn(t,e){this._context=t,this._k=(1-e)/6}r(Zn,"CardinalClosed");Zn.prototype={areaStart:ct,areaEnd:ct,lineStart:r(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:r(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:r(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:De(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},"point")};var qc=r((function t(e){function n(i){return new Zn(i,e)}return r(n,"cardinal"),n.tension=function(i){return t(+i)},n}),"custom")(0);function Qn(t,e){this._context=t,this._k=(1-e)/6}r(Qn,"CardinalOpen");Qn.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:r(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:r(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:De(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},"point")};var Wc=r((function t(e){function n(i){return new Qn(i,e)}return r(n,"cardinal"),n.tension=function(i){return t(+i)},n}),"custom")(0);function Je(t,e,n){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>et){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>et){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*f+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*f+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}r(Je,"point");function Ys(t,e){this._context=t,this._alpha=e}r(Ys,"CatmullRom");Ys.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(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},"lineStart"),lineEnd:r(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},"lineEnd"),point:r(function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,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:Je(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},"point")};var Vc=r((function t(e){function n(i){return e?new Ys(i,e):new Gn(i,0)}return r(n,"catmullRom"),n.alpha=function(i){return t(+i)},n}),"custom")(.5);function Fs(t,e){this._context=t,this._alpha=e}r(Fs,"CatmullRomClosed");Fs.prototype={areaStart:ct,areaEnd:ct,lineStart:r(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:r(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:r(function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Je(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},"point")};var Xc=r((function t(e){function n(i){return e?new Fs(i,e):new Zn(i,0)}return r(n,"catmullRom"),n.alpha=function(i){return t(+i)},n}),"custom")(.5);function Us(t,e){this._context=t,this._alpha=e}r(Us,"CatmullRomOpen");Us.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(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},"lineStart"),lineEnd:r(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:r(function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Je(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},"point")};var Gc=r((function t(e){function n(i){return e?new Us(i,e):new Qn(i,0)}return r(n,"catmullRom"),n.alpha=function(i){return t(+i)},n}),"custom")(.5);function Ls(t){this._context=t}r(Ls,"LinearClosed");Ls.prototype={areaStart:ct,areaEnd:ct,lineStart:r(function(){this._point=0},"lineStart"),lineEnd:r(function(){this._point&&this._context.closePath()},"lineEnd"),point:r(function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))},"point")};function zs(t){return new Ls(t)}r(zs,"default");function Hs(t){return t<0?-1:1}r(Hs,"sign");function Bs(t,e,n){var i=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(n-t._y1)/(o||i<0&&-0),u=(a*o+s*i)/(i+o);return(Hs(a)+Hs(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}r(Bs,"slope3");function qs(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}r(qs,"slope2");function po(t,e,n){var i=t._x0,o=t._y0,a=t._x1,s=t._y1,u=(a-i)/3;t._context.bezierCurveTo(i+u,o+u*e,a-u,s-u*n,a,s)}r(po,"point");function Kn(t){this._context=t}r(Kn,"MonotoneX");Kn.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:r(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:po(this,this._t0,qs(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:r(function(t,e){var n=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,po(this,qs(this,n=Bs(this,t,e)),n);break;default:po(this,this._t0,n=Bs(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}},"point")};function Ws(t){this._context=new Vs(t)}r(Ws,"MonotoneY");(Ws.prototype=Object.create(Kn.prototype)).point=function(t,e){Kn.prototype.point.call(this,e,t)};function Vs(t){this._context=t}r(Vs,"ReflectContext");Vs.prototype={moveTo:r(function(t,e){this._context.moveTo(e,t)},"moveTo"),closePath:r(function(){this._context.closePath()},"closePath"),lineTo:r(function(t,e){this._context.lineTo(e,t)},"lineTo"),bezierCurveTo:r(function(t,e,n,i,o,a){this._context.bezierCurveTo(e,t,i,n,a,o)},"bezierCurveTo")};function Zc(t){return new Kn(t)}r(Zc,"monotoneX");function Qc(t){return new Ws(t)}r(Qc,"monotoneY");function Gs(t){this._context=t}r(Gs,"Natural");Gs.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:r(function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=Xs(t),o=Xs(e),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(i[0][a],o[0][a],i[1][a],o[1][a],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},"lineEnd"),point:r(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};function Xs(t){var e,n=t.length-1,i,o=new Array(n),a=new Array(n),s=new Array(n);for(o[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,a[e]=4,s[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,a[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=o[e]/a[e-1],a[e]-=i,s[e]-=i*s[e-1];for(o[n-1]=s[n-1]/a[n-1],e=n-2;e>=0;--e)o[e]=(s[e]-o[e+1])/a[e];for(a[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)a[e]=2*t[e+1]-o[e+1];return[o,a]}r(Xs,"controlPoints");function Zs(t){return new Gs(t)}r(Zs,"default");function Jn(t,e){this._context=t,this._t=e}r(Jn,"Step");Jn.prototype={areaStart:r(function(){this._line=0},"areaStart"),areaEnd:r(function(){this._line=NaN},"areaEnd"),lineStart:r(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:r(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)},"lineEnd"),point:r(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 n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e},"point")};function Qs(t){return new Jn(t,.5)}r(Qs,"default");function Kc(t){return new Jn(t,0)}r(Kc,"stepBefore");function Jc(t){return new Jn(t,1)}r(Jc,"stepAfter");var jc={value:r(()=>{},"value")};function Js(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new jn(n)}r(Js,"dispatch");function jn(t){this._=t}r(jn,"Dispatch");function th(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}r(th,"parseTypenames");jn.prototype=Js.prototype={constructor:jn,on:r(function(t,e){var n=this._,i=th(t+"",n),o,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((o=(t=i[a]).type)&&(o=eh(n[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<s;)if(o=(t=i[a]).type)n[o]=Ks(n[o],t.name,e);else if(e==null)for(o in n)n[o]=Ks(n[o],t.name,null);return this},"on"),copy:r(function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new jn(t)},"copy"),call:r(function(t,e){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,a;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],i=0,o=a.length;i<o;++i)a[i].value.apply(e,n)},"call"),apply:r(function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],o=0,a=i.length;o<a;++o)i[o].value.apply(e,n)},"apply")};function eh(t,e){for(var n=0,i=t.length,o;n<i;++n)if((o=t[n]).name===e)return o.value}r(eh,"get");function Ks(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=jc,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}r(Ks,"set");var mo=Js;var $e=0,tn=0,je=0,tu=1e3,tr,en,er=0,ue=0,nr=0,nn=typeof performance=="object"&&performance.now?performance:Date,eu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function on(){return ue||(eu(nh),ue=nn.now()+nr)}r(on,"now");function nh(){ue=0}r(nh,"clearNow");function rn(){this._call=this._time=this._next=null}r(rn,"Timer");rn.prototype=rr.prototype={constructor:rn,restart:r(function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?on():+n)+(e==null?0:+e),!this._next&&en!==this&&(en?en._next=this:tr=this,en=this),this._call=t,this._time=n,xo()},"restart"),stop:r(function(){this._call&&(this._call=null,this._time=1/0,xo())},"stop")};function rr(t,e,n){var i=new rn;return i.restart(t,e,n),i}r(rr,"timer");function nu(){on(),++$e;for(var t=tr,e;t;)(e=ue-t._time)>=0&&t._call.call(void 0,e),t=t._next;--$e}r(nu,"timerFlush");function js(){ue=(er=nn.now())+nr,$e=tn=0;try{nu()}finally{$e=0,ih(),ue=0}}r(js,"wake");function rh(){var t=nn.now(),e=t-er;e>tu&&(nr-=e,er=t)}r(rh,"poke");function ih(){for(var t,e=tr,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:tr=n);en=t,xo(i)}r(ih,"nap");function xo(t){if(!$e){tn&&(tn=clearTimeout(tn));var e=t-ue;e>24?(t<1/0&&(tn=setTimeout(js,t-nn.now()-nr)),je&&(je=clearInterval(je))):(je||(er=nn.now(),je=setInterval(rh,tu)),$e=1,eu(js))}}r(xo,"sleep");function an(t,e,n){var i=new rn;return e=e==null?0:+e,i.restart(o=>{i.stop(),t(o+e)},e,n),i}r(an,"default");var oh=mo("start","end","cancel","interrupt"),ah=[],ou=0,ru=1,or=2,ir=3,iu=4,ar=5,sn=6;function Ot(t,e,n,i,o,a){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;sh(t,n,{name:e,index:i,group:o,on:oh,tween:ah,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ou})}r(Ot,"default");function un(t,e){var n=K(t,e);if(n.state>ou)throw new Error("too late; already scheduled");return n}r(un,"init");function it(t,e){var n=K(t,e);if(n.state>ir)throw new Error("too late; already running");return n}r(it,"set");function K(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}r(K,"get");function sh(t,e,n){var i=t.__transition,o;i[e]=n,n.timer=rr(a,0,n.time);function a(f){n.state=ru,n.timer.restart(s,n.delay,n.time),n.delay<=f&&s(f-n.delay)}r(a,"schedule");function s(f){var h,p,c,m;if(n.state!==ru)return l();for(h in i)if(m=i[h],m.name===n.name){if(m.state===ir)return an(s);m.state===iu?(m.state=sn,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete i[h]):+h<e&&(m.state=sn,m.timer.stop(),m.on.call("cancel",t,t.__data__,m.index,m.group),delete i[h])}if(an(function(){n.state===ir&&(n.state=iu,n.timer.restart(u,n.delay,n.time),u(f))}),n.state=or,n.on.call("start",t,t.__data__,n.index,n.group),n.state===or){for(n.state=ir,o=new Array(c=n.tween.length),h=0,p=-1;h<c;++h)(m=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(o[++p]=m);o.length=p+1}}r(s,"start");function u(f){for(var h=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(l),n.state=ar,1),p=-1,c=o.length;++p<c;)o[p].call(t,h);n.state===ar&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}r(u,"tick");function l(){n.state=sn,n.timer.stop(),delete i[e];for(var f in i)return;delete t.__transition}r(l,"stop")}r(sh,"create");function fn(t,e){var n=t.__transition,i,o,a=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((i=n[s]).name!==e){a=!1;continue}o=i.state>or&&i.state<ar,i.state=sn,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}a&&delete t.__transition}}r(fn,"default");function _o(t){return this.each(function(){fn(this,t)})}r(_o,"default");function uh(t,e){var n,i;return function(){var o=it(this,t),a=o.tween;if(a!==n){i=n=a;for(var s=0,u=i.length;s<u;++s)if(i[s].name===e){i=i.slice(),i.splice(s,1);break}}o.tween=i}}r(uh,"tweenRemove");function fh(t,e,n){var i,o;if(typeof n!="function")throw new Error;return function(){var a=it(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var u={name:e,value:n},l=0,f=o.length;l<f;++l)if(o[l].name===e){o[l]=u;break}l===f&&o.push(u)}a.tween=o}}r(fh,"tweenFunction");function go(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=K(this.node(),n).tween,o=0,a=i.length,s;o<a;++o)if((s=i[o]).name===t)return s.value;return null}return this.each((e==null?uh:fh)(n,t,e))}r(go,"default");function Oe(t,e,n){var i=t._id;return t.each(function(){var o=it(this,i);(o.value||(o.value={}))[e]=n.apply(this,arguments)}),function(o){return K(o,i).value[e]}}r(Oe,"tweenValue");function ln(t,e){var n;return(typeof e=="number"?j:e instanceof _t?Qt:(n=_t(e))?(e=n,Qt):ge)(t,e)}r(ln,"default");function lh(t){return function(){this.removeAttribute(t)}}r(lh,"attrRemove");function ch(t){return function(){this.removeAttributeNS(t.space,t.local)}}r(ch,"attrRemoveNS");function hh(t,e,n){var i,o=n+"",a;return function(){var s=this.getAttribute(t);return s===o?null:s===i?a:a=e(i=s,n)}}r(hh,"attrConstant");function ph(t,e,n){var i,o=n+"",a;return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===i?a:a=e(i=s,n)}}r(ph,"attrConstantNS");function mh(t,e,n){var i,o,a;return function(){var s,u=n(this),l;return u==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=u+"",s===l?null:s===i&&l===o?a:(o=l,a=e(i=s,u)))}}r(mh,"attrFunction");function dh(t,e,n){var i,o,a;return function(){var s,u=n(this),l;return u==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=u+"",s===l?null:s===i&&l===o?a:(o=l,a=e(i=s,u)))}}r(dh,"attrFunctionNS");function yo(t,e){var n=wt(t),i=n==="transform"?gi:ln;return this.attrTween(t,typeof e=="function"?(n.local?dh:mh)(n,i,Oe(this,"attr."+t,e)):e==null?(n.local?ch:lh)(n):(n.local?ph:hh)(n,i,e))}r(yo,"default");function xh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}r(xh,"attrInterpolate");function _h(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}r(_h,"attrInterpolateNS");function gh(t,e){var n,i;function o(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&_h(t,a)),n}return r(o,"tween"),o._value=e,o}r(gh,"attrTweenNS");function yh(t,e){var n,i;function o(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&xh(t,a)),n}return r(o,"tween"),o._value=e,o}r(yh,"attrTween");function vo(t,e){var n="attr."+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;var i=wt(t);return this.tween(n,(i.local?gh:yh)(i,e))}r(vo,"default");function vh(t,e){return function(){un(this,t).delay=+e.apply(this,arguments)}}r(vh,"delayFunction");function wh(t,e){return e=+e,function(){un(this,t).delay=e}}r(wh,"delayConstant");function wo(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?vh:wh)(e,t)):K(this.node(),e).delay}r(wo,"default");function bh(t,e){return function(){it(this,t).duration=+e.apply(this,arguments)}}r(bh,"durationFunction");function Mh(t,e){return e=+e,function(){it(this,t).duration=e}}r(Mh,"durationConstant");function bo(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bh:Mh)(e,t)):K(this.node(),e).duration}r(bo,"default");function Th(t,e){if(typeof e!="function")throw new Error;return function(){it(this,t).ease=e}}r(Th,"easeConstant");function Mo(t){var e=this._id;return arguments.length?this.each(Th(e,t)):K(this.node(),e).ease}r(Mo,"default");function kh(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;it(this,t).ease=n}}r(kh,"easeVarying");function To(t){if(typeof t!="function")throw new Error;return this.each(kh(this._id,t))}r(To,"default");function ko(t){typeof t!="function"&&(t=he(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],s=a.length,u=i[o]=[],l,f=0;f<s;++f)(l=a[f])&&t.call(l,l.__data__,f,a)&&u.push(l);return new ot(i,this._parents,this._name,this._id)}r(ko,"default");function So(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,o=n.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l=e[u],f=n[u],h=l.length,p=s[u]=new Array(h),c,m=0;m<h;++m)(c=l[m]||f[m])&&(p[m]=c);for(;u<i;++u)s[u]=e[u];return new ot(s,this._parents,this._name,this._id)}r(So,"default");function Sh(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}r(Sh,"start");function Ch(t,e,n){var i,o,a=Sh(e)?un:it;return function(){var s=a(this,t),u=s.on;u!==i&&(o=(i=u).copy()).on(e,n),s.on=o}}r(Ch,"onFunction");function Co(t,e){var n=this._id;return arguments.length<2?K(this.node(),n).on.on(t):this.each(Ch(n,t,e))}r(Co,"default");function Nh(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}r(Nh,"removeFunction");function No(){return this.on("end.remove",Nh(this._id))}r(No,"default");function Ao(t){var e=this._name,n=this._id;typeof t!="function"&&(t=It(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var u=i[s],l=u.length,f=a[s]=new Array(l),h,p,c=0;c<l;++c)(h=u[c])&&(p=t.call(h,h.__data__,c,u))&&("__data__"in h&&(p.__data__=h.__data__),f[c]=p,Ot(f[c],e,n,c,f,K(h,n)));return new ot(a,this._parents,e,n)}r(Ao,"default");function Do(t){var e=this._name,n=this._id;typeof t!="function"&&(t=ce(t));for(var i=this._groups,o=i.length,a=[],s=[],u=0;u<o;++u)for(var l=i[u],f=l.length,h,p=0;p<f;++p)if(h=l[p]){for(var c=t.call(h,h.__data__,p,l),m,_=K(h,n),M=0,T=c.length;M<T;++M)(m=c[M])&&Ot(m,e,n,M,c,_);a.push(c),s.push(h)}return new ot(a,s,e,n)}r(Do,"default");var Ah=Ct.prototype.constructor;function $o(){return new Ah(this._groups,this._parents)}r($o,"default");function Dh(t,e){var n,i,o;return function(){var a=Rt(this,t),s=(this.style.removeProperty(t),Rt(this,t));return a===s?null:a===n&&s===i?o:o=e(n=a,i=s)}}r(Dh,"styleNull");function au(t){return function(){this.style.removeProperty(t)}}r(au,"styleRemove");function $h(t,e,n){var i,o=n+"",a;return function(){var s=Rt(this,t);return s===o?null:s===i?a:a=e(i=s,n)}}r($h,"styleConstant");function Oh(t,e,n){var i,o,a;return function(){var s=Rt(this,t),u=n(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(t),Rt(this,t))),s===l?null:s===i&&l===o?a:(o=l,a=e(i=s,u))}}r(Oh,"styleFunction");function Eh(t,e){var n,i,o,a="style."+e,s="end."+a,u;return function(){var l=it(this,t),f=l.on,h=l.value[a]==null?u||(u=au(e)):void 0;(f!==n||o!==h)&&(i=(n=f).copy()).on(s,o=h),l.on=i}}r(Eh,"styleMaybeRemove");function Oo(t,e,n){var i=(t+="")=="transform"?_i:ln;return e==null?this.styleTween(t,Dh(t,i)).on("end.style."+t,au(t)):typeof e=="function"?this.styleTween(t,Oh(t,i,Oe(this,"style."+t,e))).each(Eh(this._id,t)):this.styleTween(t,$h(t,i,e),n).on("end.style."+t,null)}r(Oo,"default");function Ih(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}r(Ih,"styleInterpolate");function Rh(t,e,n){var i,o;function a(){var s=e.apply(this,arguments);return s!==o&&(i=(o=s)&&Ih(t,s,n)),i}return r(a,"tween"),a._value=e,a}r(Rh,"styleTween");function Eo(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Rh(t,e,n??""))}r(Eo,"default");function Ph(t){return function(){this.textContent=t}}r(Ph,"textConstant");function Yh(t){return function(){var e=t(this);this.textContent=e??""}}r(Yh,"textFunction");function Io(t){return this.tween("text",typeof t=="function"?Yh(Oe(this,"text",t)):Ph(t==null?"":t+""))}r(Io,"default");function Fh(t){return function(e){this.textContent=t.call(this,e)}}r(Fh,"textInterpolate");function Uh(t){var e,n;function i(){var o=t.apply(this,arguments);return o!==n&&(e=(n=o)&&Fh(o)),e}return r(i,"tween"),i._value=t,i}r(Uh,"textTween");function Ro(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,Uh(t))}r(Ro,"default");function Po(){for(var t=this._name,e=this._id,n=sr(),i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],u=s.length,l,f=0;f<u;++f)if(l=s[f]){var h=K(l,e);Ot(l,t,n,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ot(i,this._parents,t,n)}r(Po,"default");function Yo(){var t,e,n=this,i=n._id,o=n.size();return new Promise(function(a,s){var u={value:s},l={value:r(function(){--o===0&&a()},"value")};n.each(function(){var f=it(this,i),h=f.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(u),e._.interrupt.push(u),e._.end.push(l)),f.on=e}),o===0&&a()})}r(Yo,"default");var Lh=0;function ot(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}r(ot,"Transition");function su(t){return Ct().transition(t)}r(su,"transition");function sr(){return++Lh}r(sr,"newId");var Et=Ct.prototype;ot.prototype=su.prototype={constructor:ot,select:Ao,selectAll:Do,selectChild:Et.selectChild,selectChildren:Et.selectChildren,filter:ko,merge:So,selection:$o,transition:Po,call:Et.call,nodes:Et.nodes,node:Et.node,size:Et.size,empty:Et.empty,each:Et.each,on:Co,attr:yo,attrTween:vo,style:Oo,styleTween:Eo,text:Io,textTween:Ro,remove:No,tween:go,delay:wo,duration:bo,ease:Mo,easeVarying:To,end:Yo,[Symbol.iterator]:Et[Symbol.iterator]};function ur(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}r(ur,"cubicInOut");var zh={time:null,delay:0,duration:250,ease:ur};function Hh(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}r(Hh,"inherit");function Fo(t){var e,n;t instanceof ot?(e=t._id,t=t._name):(e=sr(),(n=zh).time=on(),t=t==null?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],u=s.length,l,f=0;f<u;++f)(l=s[f])&&Ot(l,t,e,f,s,n||Hh(l,e));return new ot(i,this._parents,t,e)}r(Fo,"default");Ct.prototype.interrupt=_o;Ct.prototype.transition=Fo;var{abs:jM,max:tT,min:eT}=Math;function uu(t){return[+t[0],+t[1]]}r(uu,"number1");function Bh(t){return[uu(t[0]),uu(t[1])]}r(Bh,"number2");var nT={name:"x",handles:["w","e"].map(Uo),input:r(function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},"input"),output:r(function(t){return t&&[t[0][0],t[1][0]]},"output")},rT={name:"y",handles:["n","s"].map(Uo),input:r(function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},"input"),output:r(function(t){return t&&[t[0][1],t[1][1]]},"output")},iT={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Uo),input:r(function(t){return t==null?null:Bh(t)},"input"),output:r(function(t){return t},"output")};function Uo(t){return{type:t}}r(Uo,"type");function qt(t,e,n){this.k=t,this.x=e,this.y=n}r(qt,"Transform");qt.prototype={constructor:qt,scale:r(function(t){return t===1?this:new qt(this.k*t,this.x,this.y)},"scale"),translate:r(function(t,e){return t===0&e===0?this:new qt(this.k,this.x+this.k*t,this.y+this.k*e)},"translate"),apply:r(function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},"apply"),applyX:r(function(t){return t*this.k+this.x},"applyX"),applyY:r(function(t){return t*this.k+this.y},"applyY"),invert:r(function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},"invert"),invertX:r(function(t){return(t-this.x)/this.k},"invertX"),invertY:r(function(t){return(t-this.y)/this.k},"invertY"),rescaleX:r(function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},"rescaleX"),rescaleY:r(function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},"rescaleY"),toString:r(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};var Lo=new qt(1,0,0);zo.prototype=qt.prototype;function zo(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Lo;return t.__zoom}r(zo,"transform");export{Bo as a,pt as b,Wh as c,Wo as d,Vo as e,ku as f,Su as g,ia as h,Yf as i,$n as j,Pn as k,Ua as l,He as m,oo as n,Zi as o,jt as p,Tt as q,we as r,be as s,Dt as t,$t as u,Me as v,qa as w,Wa as x,zt as y,Va as z,Xa as A,ke as B,Hn as C,vs as D,$c as E,ks as F,Vn as G,As as H,Ds as I,Lc as J,zc as K,$s as L,Es as M,Rs as N,Hc as O,Bc as P,qc as Q,Wc as R,Vc as S,Xc as T,Gc as U,zs as V,Zc as W,Qc as X,Zs as Y,Qs as Z,Kc as _,Jc as $};
|