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()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){},"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=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(n=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:te?1:t>=e?0:NaN}r(Vt,"ascending");function cr(t,e){return t==null||e==null?NaN:et?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>>1;n(u[p],l)<0?f=p+1:h=p}while(f>>1;n(u[p],l)<=0?f=p+1:h=p}while(ff&&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/fe&&--l,f=-f):(f=Math.pow(10,o)*s,u=Math.round(t/f),l=Math.round(e/f),u*fe&&--l),l0))return[];if(t===e)return[t];let i=e=o))return[];let u=a-o+1,l=new Array(u);if(i)if(s<0)for(let f=0;f+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=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=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;ae?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=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=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>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+(n0&&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,"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=in&&(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 n180?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;++_=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;n0&&(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;++xy||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=$>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=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=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;++uI&&(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),ke&&(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 o2?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(u0;){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(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),!(a0))return l;let f;do l.push(f=new Date(+a)),e(a,u),t(a);while(fH(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=hT).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]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=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[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 a1?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=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;oae)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*cx*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()),met))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(Tet?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),vet)||!(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),Nt?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;l0&&(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;l0?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=0;--e)o[e]=(s[e]-o[e+1])/a[e];for(a[n-1]=(t[n]+o[n-1])/2,e=0;e=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=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(;++a0)for(var n=new Array(o),i=0,o,a;i=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]):+hor&&i.state=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