Files
Awperative/docs/_site/public/chunk-6TVUEPFY.min.js
2026-02-09 17:03:28 -05:00

3 lines
106 KiB
JavaScript
Executable File

import{a as js,d as tu}from"./chunk-OSRY5VT3.min.js";var ui=js((er,nr)=>{(function(t,e){typeof er=="object"&&typeof nr<"u"?nr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(er,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",f="week",u="month",c="quarter",h="year",l="date",p="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,M={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:function(y){var m=["th","st","nd","rd"],d=y%100;return"["+y+(m[(d-20)%10]||m[d]||m[0])+"]"}},T=function(y,m,d){var k=String(y);return!k||k.length>=m?y:""+Array(m+1-k.length).join(d)+y},I={s:T,z:function(y){var m=-y.utcOffset(),d=Math.abs(m),k=Math.floor(d/60),g=d%60;return(m<=0?"+":"-")+T(k,2,"0")+":"+T(g,2,"0")},m:function y(m,d){if(m.date()<d.date())return-y(d,m);var k=12*(d.year()-m.year())+(d.month()-m.month()),g=m.clone().add(k,u),A=d-g<0,D=m.clone().add(k+(A?-1:1),u);return+(-(k+(d-g)/(A?g-D:D-g))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:u,y:h,w:f,d:s,D:l,h:a,m:o,s:i,ms:r,Q:c}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},S="en",N={};N[S]=M;var $="$isDayjsObject",v=function(y){return y instanceof H||!(!y||!y[$])},P=function y(m,d,k){var g;if(!m)return S;if(typeof m=="string"){var A=m.toLowerCase();N[A]&&(g=A),d&&(N[A]=d,g=A);var D=m.split("-");if(!g&&D.length>1)return y(D[0])}else{var R=m.name;N[R]=m,g=R}return!k&&g&&(S=g),g||!k&&S},F=function(y,m){if(v(y))return y.clone();var d=typeof m=="object"?m:{};return d.date=y,d.args=arguments,new H(d)},O=I;O.l=P,O.i=v,O.w=function(y,m){return F(y,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var H=(function(){function y(d){this.$L=P(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[$]=!0}var m=y.prototype;return m.parse=function(d){this.$d=(function(k){var g=k.date,A=k.utc;if(g===null)return new Date(NaN);if(O.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var D=g.match(x);if(D){var R=D[2]-1||0,z=(D[7]||"0").substring(0,3);return A?new Date(Date.UTC(D[1],R,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)):new Date(D[1],R,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)}}return new Date(g)})(d),this.init()},m.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return this.$d.toString()!==p},m.isSame=function(d,k){var g=F(d);return this.startOf(k)<=g&&g<=this.endOf(k)},m.isAfter=function(d,k){return F(d)<this.startOf(k)},m.isBefore=function(d,k){return this.endOf(k)<F(d)},m.$g=function(d,k,g){return O.u(d)?this[k]:this.set(g,d)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(d,k){var g=this,A=!!O.u(k)||k,D=O.p(d),R=function(at,G){var w=O.w(g.$u?Date.UTC(g.$y,G,at):new Date(g.$y,G,at),g);return A?w:w.endOf(s)},z=function(at,G){return O.w(g.toDate()[at].apply(g.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(G)),g)},q=this.$W,V=this.$M,K=this.$D,lt="set"+(this.$u?"UTC":"");switch(D){case h:return A?R(1,0):R(31,11);case u:return A?R(1,V):R(0,V+1);case f:var Z=this.$locale().weekStart||0,mt=(q<Z?q+7:q)-Z;return R(A?K-mt:K+(6-mt),V);case s:case l:return z(lt+"Hours",0);case a:return z(lt+"Minutes",1);case o:return z(lt+"Seconds",2);case i:return z(lt+"Milliseconds",3);default:return this.clone()}},m.endOf=function(d){return this.startOf(d,!1)},m.$set=function(d,k){var g,A=O.p(d),D="set"+(this.$u?"UTC":""),R=(g={},g[s]=D+"Date",g[l]=D+"Date",g[u]=D+"Month",g[h]=D+"FullYear",g[a]=D+"Hours",g[o]=D+"Minutes",g[i]=D+"Seconds",g[r]=D+"Milliseconds",g)[A],z=A===s?this.$D+(k-this.$W):k;if(A===u||A===h){var q=this.clone().set(l,1);q.$d[R](z),q.init(),this.$d=q.set(l,Math.min(this.$D,q.daysInMonth())).$d}else R&&this.$d[R](z);return this.init(),this},m.set=function(d,k){return this.clone().$set(d,k)},m.get=function(d){return this[O.p(d)]()},m.add=function(d,k){var g,A=this;d=Number(d);var D=O.p(k),R=function(V){var K=F(A);return O.w(K.date(K.date()+Math.round(V*d)),A)};if(D===u)return this.set(u,this.$M+d);if(D===h)return this.set(h,this.$y+d);if(D===s)return R(1);if(D===f)return R(7);var z=(g={},g[o]=e,g[a]=n,g[i]=t,g)[D]||1,q=this.$d.getTime()+d*z;return O.w(q,this)},m.subtract=function(d,k){return this.add(-1*d,k)},m.format=function(d){var k=this,g=this.$locale();if(!this.isValid())return g.invalidDate||p;var A=d||"YYYY-MM-DDTHH:mm:ssZ",D=O.z(this),R=this.$H,z=this.$m,q=this.$M,V=g.weekdays,K=g.months,lt=g.meridiem,Z=function(G,w,E,Y){return G&&(G[w]||G(k,A))||E[w].slice(0,Y)},mt=function(G){return O.s(R%12||12,G,"0")},at=lt||function(G,w,E){var Y=G<12?"AM":"PM";return E?Y.toLowerCase():Y};return A.replace(b,(function(G,w){return w||(function(E){switch(E){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return q+1;case"MM":return O.s(q+1,2,"0");case"MMM":return Z(g.monthsShort,q,K,3);case"MMMM":return Z(K,q);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Z(g.weekdaysMin,k.$W,V,2);case"ddd":return Z(g.weekdaysShort,k.$W,V,3);case"dddd":return V[k.$W];case"H":return String(R);case"HH":return O.s(R,2,"0");case"h":return mt(1);case"hh":return mt(2);case"a":return at(R,z,!0);case"A":return at(R,z,!1);case"m":return String(z);case"mm":return O.s(z,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return D}return null})(G)||D.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(d,k,g){var A,D=this,R=O.p(k),z=F(d),q=(z.utcOffset()-this.utcOffset())*e,V=this-z,K=function(){return O.m(D,z)};switch(R){case h:A=K()/12;break;case u:A=K();break;case c:A=K()/3;break;case f:A=(V-q)/6048e5;break;case s:A=(V-q)/864e5;break;case a:A=V/n;break;case o:A=V/e;break;case i:A=V/t;break;default:A=V}return g?A:O.a(A)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return N[this.$L]},m.locale=function(d,k){if(!d)return this.$L;var g=this.clone(),A=P(d,k,!0);return A&&(g.$L=A),g},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y})(),C=H.prototype;return F.prototype=C,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",u],["$y",h],["$D",l]].forEach((function(y){C[y[1]]=function(m){return this.$g(m,y[0],y[1])}})),F.extend=function(y,m){return y.$i||(y(m,H,F),y.$i=!0),F},F.locale=P,F.isDayjs=v,F.unix=function(y){return F(1e3*y)},F.en=N[S],F.Ls=N,F.p={},F}))});var li=tu(ui(),1),fi=Object.defineProperty,Ot=(t,e)=>fi(t,"name",{value:e,configurable:!0}),Wh=(t,e)=>{for(var n in e)fi(t,n,{get:e[n],enumerable:!0})},Tt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ct={trace:Ot((...t)=>{},"trace"),debug:Ot((...t)=>{},"debug"),info:Ot((...t)=>{},"info"),warn:Ot((...t)=>{},"warn"),error:Ot((...t)=>{},"error"),fatal:Ot((...t)=>{},"fatal")},Vh=Ot(function(t="fatal"){let e=Tt.fatal;typeof t=="string"?t.toLowerCase()in Tt&&(e=Tt[t]):typeof t=="number"&&(e=t),ct.trace=()=>{},ct.debug=()=>{},ct.info=()=>{},ct.warn=()=>{},ct.error=()=>{},ct.fatal=()=>{},e<=Tt.fatal&&(ct.fatal=console.error?console.error.bind(console,ht("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ht("FATAL"))),e<=Tt.error&&(ct.error=console.error?console.error.bind(console,ht("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ht("ERROR"))),e<=Tt.warn&&(ct.warn=console.warn?console.warn.bind(console,ht("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ht("WARN"))),e<=Tt.info&&(ct.info=console.info?console.info.bind(console,ht("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ht("INFO"))),e<=Tt.debug&&(ct.debug=console.debug?console.debug.bind(console,ht("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ht("DEBUG"))),e<=Tt.trace&&(ct.trace=console.debug?console.debug.bind(console,ht("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ht("TRACE")))},"setLogLevel"),ht=Ot(t=>`%c${(0,li.default)().format("ss.SSS")} : ${t} : `,"format");function ci(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function hi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Bt(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rr(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qt(t){let e,n,r;t.length!==2?(e=Bt,n=(s,f)=>Bt(t(s),f),r=(s,f)=>t(s)-f):(e=t===Bt||t===rr?t:eu,n=t,r=t);function i(s,f,u=0,c=s.length){if(u<c){if(e(f,f)!==0)return c;do{let h=u+c>>>1;n(s[h],f)<0?u=h+1:c=h}while(u<c)}return u}function o(s,f,u=0,c=s.length){if(u<c){if(e(f,f)!==0)return c;do{let h=u+c>>>1;n(s[h],f)<=0?u=h+1:c=h}while(u<c)}return u}function a(s,f,u=0,c=s.length){let h=i(s,f,u,c-1);return h>u&&r(s[h-1],f)>-r(s[h],f)?h-1:h}return{left:i,center:a,right:o}}function eu(){return 0}function ir(t){return t===null?NaN:+t}var pi=qt(Bt),mi=pi.right,nu=pi.left,ru=qt(ir).center,or=mi;var ue=class extends Map{constructor(e,n=au){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,i]of e)this.set(r,i)}get(e){return super.get(di(this,e))}has(e){return super.has(di(this,e))}set(e,n){return super.set(iu(this,e),n)}delete(e){return super.delete(ou(this,e))}};function di({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function iu({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function ou({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function au(t){return t!==null&&typeof t=="object"?t.valueOf():t}var su=Math.sqrt(50),uu=Math.sqrt(10),fu=Math.sqrt(2);function rn(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=su?10:o>=uu?5:o>=fu?2:1,s,f,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),f=Math.round(e*u),s/u<t&&++s,f/u>e&&--f,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),f=Math.round(e/u),s*u<t&&++s,f*u>e&&--f),f<s&&.5<=n&&n<2?rn(t,e,n*2):[s,f,u]}function on(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];let r=e<t,[i,o,a]=r?rn(e,t,n):rn(t,e,n);if(!(o>=i))return[];let s=o-i+1,f=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)f[u]=(o-u)/-a;else for(let u=0;u<s;++u)f[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)f[u]=(i+u)/-a;else for(let u=0;u<s;++u)f[u]=(i+u)*a;return f}function De(t,e,n){return e=+e,t=+t,n=+n,rn(t,e,n)[2]}function fe(t,e,n){e=+e,t=+t,n=+n;let r=e<t,i=r?De(e,t,n):De(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function an(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function xi(t){return t}var un=1,ar=2,sr=3,sn=4,_i=1e-6;function lu(t){return"translate("+t+",0)"}function cu(t){return"translate(0,"+t+")"}function hu(t){return e=>+t(e)}function pu(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function mu(){return!this.__axis}function gi(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,f=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===un||t===sn?-1:1,c=t===sn||t===ar?"x":"y",h=t===un||t===sr?lu:cu;function l(p){var x=r??(e.ticks?e.ticks.apply(e,n):e.domain()),b=i??(e.tickFormat?e.tickFormat.apply(e,n):xi),M=Math.max(o,0)+s,T=e.range(),I=+T[0]+f,S=+T[T.length-1]+f,N=(e.bandwidth?pu:hu)(e.copy(),f),$=p.selection?p.selection():p,v=$.selectAll(".domain").data([null]),P=$.selectAll(".tick").data(x,e).order(),F=P.exit(),O=P.enter().append("g").attr("class","tick"),H=P.select("line"),C=P.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(O),H=H.merge(O.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),C=C.merge(O.append("text").attr("fill","currentColor").attr(c,u*M).attr("dy",t===un?"0em":t===sr?"0.71em":"0.32em")),p!==$&&(v=v.transition(p),P=P.transition(p),H=H.transition(p),C=C.transition(p),F=F.transition(p).attr("opacity",_i).attr("transform",function(y){return isFinite(y=N(y))?h(y+f):this.getAttribute("transform")}),O.attr("opacity",_i).attr("transform",function(y){var m=this.parentNode.__axis;return h((m&&isFinite(m=m(y))?m:N(y))+f)})),F.remove(),v.attr("d",t===sn||t===ar?a?"M"+u*a+","+I+"H"+f+"V"+S+"H"+u*a:"M"+f+","+I+"V"+S:a?"M"+I+","+u*a+"V"+f+"H"+S+"V"+u*a:"M"+I+","+f+"H"+S),P.attr("opacity",1).attr("transform",function(y){return h(N(y)+f)}),H.attr(c+"2",u*o),C.attr(c,u*M).text(b),$.filter(mu).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ar?"start":t===sn?"end":"middle"),$.each(function(){this.__axis=N})}return l.scale=function(p){return arguments.length?(e=p,l):e},l.ticks=function(){return n=Array.from(arguments),l},l.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),l):n.slice()},l.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),l):r&&r.slice()},l.tickFormat=function(p){return arguments.length?(i=p,l):i},l.tickSize=function(p){return arguments.length?(o=a=+p,l):o},l.tickSizeInner=function(p){return arguments.length?(o=+p,l):o},l.tickSizeOuter=function(p){return arguments.length?(a=+p,l):a},l.tickPadding=function(p){return arguments.length?(s=+p,l):s},l.offset=function(p){return arguments.length?(f=+p,l):f},l}function du(t){return gi(un,t)}function xu(t){return gi(sr,t)}function _u(){}function Wt(t){return t==null?_u:function(){return this.querySelector(t)}}function yi(t){typeof t!="function"&&(t=Wt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),f,u,c=0;c<a;++c)(f=o[c])&&(u=t.call(f,f.__data__,c,o))&&("__data__"in f&&(u.__data__=f.__data__),s[c]=u);return new X(r,this._parents)}function ur(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function gu(){return[]}function $e(t){return t==null?gu:function(){return this.querySelectorAll(t)}}function yu(t){return function(){return ur(t.apply(this,arguments))}}function vi(t){typeof t=="function"?t=yu(t):t=$e(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,f,u=0;u<s;++u)(f=a[u])&&(r.push(t.call(f,f.__data__,u,a)),i.push(f));return new X(r,i)}function Oe(t){return function(){return this.matches(t)}}function fn(t){return function(e){return e.matches(t)}}var vu=Array.prototype.find;function wu(t){return function(){return vu.call(this.children,t)}}function bu(){return this.firstElementChild}function wi(t){return this.select(t==null?bu:wu(typeof t=="function"?t:fn(t)))}var Mu=Array.prototype.filter;function Tu(){return Array.from(this.children)}function ku(t){return function(){return Mu.call(this.children,t)}}function bi(t){return this.selectAll(t==null?Tu:ku(typeof t=="function"?t:fn(t)))}function Mi(t){typeof t!="function"&&(t=Oe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],f,u=0;u<a;++u)(f=o[u])&&t.call(f,f.__data__,u,o)&&s.push(f);return new X(r,this._parents)}function ln(t){return new Array(t.length)}function Ti(){return new X(this._enter||this._groups.map(ln),this._parents)}function Ie(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ie.prototype={constructor:Ie,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function ki(t){return function(){return t}}function Su(t,e,n,r,i,o){for(var a=0,s,f=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new Ie(t,o[a]);for(;a<f;++a)(s=e[a])&&(i[a]=s)}function Cu(t,e,n,r,i,o,a){var s,f,u=new Map,c=e.length,h=o.length,l=new Array(c),p;for(s=0;s<c;++s)(f=e[s])&&(l[s]=p=a.call(f,f.__data__,s,e)+"",u.has(p)?i[s]=f:u.set(p,f));for(s=0;s<h;++s)p=a.call(t,o[s],s,o)+"",(f=u.get(p))?(r[s]=f,f.__data__=o[s],u.delete(p)):n[s]=new Ie(t,o[s]);for(s=0;s<c;++s)(f=e[s])&&u.get(l[s])===f&&(i[s]=f)}function Nu(t){return t.__data__}function Si(t,e){if(!arguments.length)return Array.from(this,Nu);var n=e?Cu:Su,r=this._parents,i=this._groups;typeof t!="function"&&(t=ki(t));for(var o=i.length,a=new Array(o),s=new Array(o),f=new Array(o),u=0;u<o;++u){var c=r[u],h=i[u],l=h.length,p=Au(t.call(c,c&&c.__data__,u,r)),x=p.length,b=s[u]=new Array(x),M=a[u]=new Array(x),T=f[u]=new Array(l);n(c,h,b,M,T,p,e);for(var I=0,S=0,N,$;I<x;++I)if(N=b[I]){for(I>=S&&(S=I+1);!($=M[S])&&++S<x;);N._next=$||null}}return a=new X(a,r),a._enter=s,a._exit=f,a}function Au(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ci(){return new X(this._exit||this._groups.map(ln),this._parents)}function Ni(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function Ai(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),f=0;f<a;++f)for(var u=n[f],c=r[f],h=u.length,l=s[f]=new Array(h),p,x=0;x<h;++x)(p=u[x]||c[x])&&(l[x]=p);for(;f<i;++f)s[f]=n[f];return new X(s,this._parents)}function Di(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function $i(t){t||(t=Du);function e(h,l){return h&&l?t(h.__data__,l.__data__):!h-!l}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,f=i[o]=new Array(s),u,c=0;c<s;++c)(u=a[c])&&(f[c]=u);f.sort(e)}return new X(i,this._parents).order()}function Du(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Oi(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Ii(){return Array.from(this)}function Ei(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function Ri(){let t=0;for(let e of this)++t;return t}function Pi(){return!this.node()}function Yi(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}var cn="http://www.w3.org/1999/xhtml",fr={svg:"http://www.w3.org/2000/svg",xhtml:cn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),fr.hasOwnProperty(e)?{space:fr[e],local:t}:t}function $u(t){return function(){this.removeAttribute(t)}}function Ou(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Iu(t,e){return function(){this.setAttribute(t,e)}}function Eu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ru(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Pu(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)}}function Fi(t,e){var n=kt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Ou:$u:typeof e=="function"?n.local?Pu:Ru:n.local?Eu:Iu)(n,e))}function hn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Yu(t){return function(){this.style.removeProperty(t)}}function Fu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Uu(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ui(t,e,n){return arguments.length>1?this.each((e==null?Yu:typeof e=="function"?Uu:Fu)(t,e,n??"")):It(this.node(),t)}function It(t,e){return t.style.getPropertyValue(e)||hn(t).getComputedStyle(t,null).getPropertyValue(e)}function zu(t){return function(){delete this[t]}}function Lu(t,e){return function(){this[t]=e}}function Hu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function zi(t,e){return arguments.length>1?this.each((e==null?zu:typeof e=="function"?Hu:Lu)(t,e)):this.node()[t]}function Li(t){return t.trim().split(/^|\s+/)}function lr(t){return t.classList||new Hi(t)}function Hi(t){this._node=t,this._names=Li(t.getAttribute("class")||"")}Hi.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Bi(t,e){for(var n=lr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function qi(t,e){for(var n=lr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Bu(t){return function(){Bi(this,t)}}function qu(t){return function(){qi(this,t)}}function Wu(t,e){return function(){(e.apply(this,arguments)?Bi:qi)(this,t)}}function Wi(t,e){var n=Li(t+"");if(arguments.length<2){for(var r=lr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Wu:e?Bu:qu)(n,e))}function Vu(){this.textContent=""}function Xu(t){return function(){this.textContent=t}}function Gu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Vi(t){return arguments.length?this.each(t==null?Vu:(typeof t=="function"?Gu:Xu)(t)):this.node().textContent}function Zu(){this.innerHTML=""}function Qu(t){return function(){this.innerHTML=t}}function Ku(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Xi(t){return arguments.length?this.each(t==null?Zu:(typeof t=="function"?Ku:Qu)(t)):this.node().innerHTML}function Ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Gi(){return this.each(Ju)}function ju(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zi(){return this.each(ju)}function tf(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===cn&&e.documentElement.namespaceURI===cn?e.createElement(t):e.createElementNS(n,t)}}function ef(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function pn(t){var e=kt(t);return(e.local?ef:tf)(e)}function Qi(t){var e=typeof t=="function"?t:pn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function nf(){return null}function Ki(t,e){var n=typeof t=="function"?t:pn(t),r=e==null?nf:typeof e=="function"?e:Wt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function rf(){var t=this.parentNode;t&&t.removeChild(this)}function Ji(){return this.each(rf)}function of(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function af(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ji(t){return this.select(t?af:of)}function to(t){return arguments.length?this.property("__data__",t):this.node().__data__}function sf(t){return function(e){t.call(this,e,this.__data__)}}function uf(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ff(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function lf(t,e,n){return function(){var r=this.__on,i,o=sf(e);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function eo(t,e,n){var r=uf(t+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var f=0,u=s.length,c;f<u;++f)for(i=0,c=s[f];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=e?lf:ff,i=0;i<o;++i)this.each(s(r[i],e,n));return this}function no(t,e,n){var r=hn(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function cf(t,e){return function(){return no(this,t,e)}}function hf(t,e){return function(){return no(this,t,e.apply(this,arguments))}}function ro(t,e){return this.each((typeof e=="function"?hf:cf)(t,e))}function*io(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var cr=[null];function X(t,e){this._groups=t,this._parents=e}function oo(){return new X([[document.documentElement]],cr)}function pf(){return this}X.prototype=oo.prototype={constructor:X,select:yi,selectAll:vi,selectChild:wi,selectChildren:bi,filter:Mi,data:Si,enter:Ti,exit:Ci,join:Ni,merge:Ai,selection:pf,order:Di,sort:$i,call:Oi,nodes:Ii,node:Ei,size:Ri,empty:Pi,each:Yi,attr:Fi,style:Ui,property:zi,classed:Wi,text:Vi,html:Xi,raise:Gi,lower:Zi,append:Qi,insert:Ki,remove:Ji,clone:ji,datum:to,on:eo,dispatch:ro,[Symbol.iterator]:io};var St=oo;function mf(t){return typeof t=="string"?new X([[document.querySelector(t)]],[document.documentElement]):new X([[t]],cr)}function Vt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function le(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Et(){}var Ee=.7,xn=1/Ee,ce="\\s*([+-]?\\d+)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",df=/^#([0-9a-f]{3,8})$/,xf=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),_f=new RegExp(`^rgb\\(${yt},${yt},${yt}\\)$`),gf=new RegExp(`^rgba\\(${ce},${ce},${ce},${Re}\\)$`),yf=new RegExp(`^rgba\\(${yt},${yt},${yt},${Re}\\)$`),vf=new RegExp(`^hsl\\(${Re},${yt},${yt}\\)$`),wf=new RegExp(`^hsla\\(${Re},${yt},${yt},${Re}\\)$`),ao={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};Vt(Et,xt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:so,formatHex:so,formatHex8:bf,formatHsl:Mf,formatRgb:uo,toString:uo});function so(){return this.rgb().formatHex()}function bf(){return this.rgb().formatHex8()}function Mf(){return mo(this).formatHsl()}function uo(){return this.rgb().formatRgb()}function xt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=df.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?fo(e):n===3?new tt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?mn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?mn(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=xf.exec(t))?new tt(e[1],e[2],e[3],1):(e=_f.exec(t))?new tt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=gf.exec(t))?mn(e[1],e[2],e[3],e[4]):(e=yf.exec(t))?mn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=vf.exec(t))?ho(e[1],e[2]/100,e[3]/100,1):(e=wf.exec(t))?ho(e[1],e[2]/100,e[3]/100,e[4]):ao.hasOwnProperty(t)?fo(ao[t]):t==="transparent"?new tt(NaN,NaN,NaN,0):null}function fo(t){return new tt(t>>16&255,t>>8&255,t&255,1)}function mn(t,e,n,r){return r<=0&&(t=e=n=NaN),new tt(t,e,n,r)}function pr(t){return t instanceof Et||(t=xt(t)),t?(t=t.rgb(),new tt(t.r,t.g,t.b,t.opacity)):new tt}function he(t,e,n,r){return arguments.length===1?pr(t):new tt(t,e,n,r??1)}function tt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Vt(tt,he,le(Et,{brighter(t){return t=t==null?xn:Math.pow(xn,t),new tt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ee:Math.pow(Ee,t),new tt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new tt(Gt(this.r),Gt(this.g),Gt(this.b),_n(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:lo,formatHex:lo,formatHex8:Tf,formatRgb:co,toString:co}));function lo(){return`#${Xt(this.r)}${Xt(this.g)}${Xt(this.b)}`}function Tf(){return`#${Xt(this.r)}${Xt(this.g)}${Xt(this.b)}${Xt((isNaN(this.opacity)?1:this.opacity)*255)}`}function co(){let t=_n(this.opacity);return`${t===1?"rgb(":"rgba("}${Gt(this.r)}, ${Gt(this.g)}, ${Gt(this.b)}${t===1?")":`, ${t})`}`}function _n(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Gt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Xt(t){return t=Gt(t),(t<16?"0":"")+t.toString(16)}function ho(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new dt(t,e,n,r)}function mo(t){if(t instanceof dt)return new dt(t.h,t.s,t.l,t.opacity);if(t instanceof Et||(t=xt(t)),!t)return new dt;if(t instanceof dt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,f=(o+i)/2;return s?(e===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-e)/s+2:a=(e-n)/s+4,s/=f<.5?o+i:2-o-i,a*=60):s=f>0&&f<1?0:a,new dt(a,s,f,t.opacity)}function xo(t,e,n,r){return arguments.length===1?mo(t):new dt(t,e,n,r??1)}function dt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Vt(dt,xo,le(Et,{brighter(t){return t=t==null?xn:Math.pow(xn,t),new dt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ee:Math.pow(Ee,t),new dt(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,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new tt(hr(t>=240?t-240:t+120,i,r),hr(t,i,r),hr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new dt(po(this.h),dn(this.s),dn(this.l),_n(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=_n(this.opacity);return`${t===1?"hsl(":"hsla("}${po(this.h)}, ${dn(this.s)*100}%, ${dn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function po(t){return t=(t||0)%360,t<0?t+360:t}function dn(t){return Math.max(0,Math.min(1,t||0))}function hr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var _o=Math.PI/180,go=180/Math.PI;var gn=18,yo=.96422,vo=1,wo=.82521,bo=4/29,pe=6/29,Mo=3*pe*pe,kf=pe*pe*pe;function To(t){if(t instanceof vt)return new vt(t.l,t.a,t.b,t.opacity);if(t instanceof Ct)return ko(t);t instanceof tt||(t=pr(t));var e=_r(t.r),n=_r(t.g),r=_r(t.b),i=mr((.2225045*e+.7168786*n+.0606169*r)/vo),o,a;return e===n&&n===r?o=a=i:(o=mr((.4360747*e+.3850649*n+.1430804*r)/yo),a=mr((.0139322*e+.0971045*n+.7141733*r)/wo)),new vt(116*i-16,500*(o-i),200*(i-a),t.opacity)}function gr(t,e,n,r){return arguments.length===1?To(t):new vt(t,e,n,r??1)}function vt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Vt(vt,gr,le(Et,{brighter(t){return new vt(this.l+gn*(t??1),this.a,this.b,this.opacity)},darker(t){return new vt(this.l-gn*(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=yo*dr(e),t=vo*dr(t),n=wo*dr(n),new tt(xr(3.1338561*e-1.6168667*t-.4906146*n),xr(-.9787684*e+1.9161415*t+.033454*n),xr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function mr(t){return t>kf?Math.pow(t,1/3):t/Mo+bo}function dr(t){return t>pe?t*t*t:Mo*(t-bo)}function xr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function _r(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Sf(t){if(t instanceof Ct)return new Ct(t.h,t.c,t.l,t.opacity);if(t instanceof vt||(t=To(t)),t.a===0&&t.b===0)return new Ct(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*go;return new Ct(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Pe(t,e,n,r){return arguments.length===1?Sf(t):new Ct(t,e,n,r??1)}function Ct(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function ko(t){if(isNaN(t.h))return new vt(t.l,0,0,t.opacity);var e=t.h*_o;return new vt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Vt(Ct,Pe,le(Et,{brighter(t){return new Ct(this.h,this.c,this.l+gn*(t??1),this.opacity)},darker(t){return new Ct(this.h,this.c,this.l-gn*(t??1),this.opacity)},rgb(){return ko(this).rgb()}}));var me=t=>()=>t;function So(t,e){return function(n){return t+n*e}}function Cf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Co(t,e){var n=e-t;return n?So(t,n>180||n<-180?n-360*Math.round(n/360):n):me(isNaN(t)?e:t)}function No(t){return(t=+t)==1?Nt:function(e,n){return n-e?Cf(e,n,t):me(isNaN(e)?n:e)}}function Nt(t,e){var n=e-t;return n?So(t,n):me(isNaN(t)?e:t)}function Ao(t){return function(e,n){var r=t((e=Pe(e)).h,(n=Pe(n)).h),i=Nt(e.c,n.c),o=Nt(e.l,n.l),a=Nt(e.opacity,n.opacity);return function(s){return e.h=r(s),e.c=i(s),e.l=o(s),e.opacity=a(s),e+""}}}var Nf=Ao(Co),Af=Ao(Nt);function yr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Do(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return yr((n-r/e)*e,a,i,o,s)}}function $o(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return yr((n-r/e)*e,i,o,a,s)}}var Zt=(function t(e){var n=No(e);function r(i,o){var a=n((i=he(i)).r,(o=he(o)).r),s=n(i.g,o.g),f=n(i.b,o.b),u=Nt(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=f(c),i.opacity=u(c),i+""}}return r.gamma=t,r})(1);function Oo(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=he(e[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=t(r),i=t(i),o=t(o),s.opacity=1,function(f){return s.r=r(f),s.g=i(f),s.b=o(f),s+""}}}var Df=Oo(Do),$f=Oo($o);function Io(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Eo(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ro(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Qt(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Po(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function et(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Yo(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Qt(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var wr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vr=new RegExp(wr.source,"g");function Of(t){return function(){return t}}function If(t){return function(e){return t(e)+""}}function Ye(t,e){var n=wr.lastIndex=vr.lastIndex=0,r,i,o,a=-1,s=[],f=[];for(t=t+"",e=e+"";(r=wr.exec(t))&&(i=vr.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,f.push({i:a,x:et(r,i)})),n=vr.lastIndex;return n<e.length&&(o=e.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?f[0]?If(f[0].x):Of(e):(e=f.length,function(u){for(var c=0,h;c<e;++c)s[(h=f[c]).i]=h.x(u);return s.join("")})}function Qt(t,e){var n=typeof e,r;return e==null||n==="boolean"?me(e):(n==="number"?et:n==="string"?(r=xt(e))?(e=r,Zt):Ye:e instanceof xt?Zt:e instanceof Date?Po:Eo(e)?Io:Array.isArray(e)?Ro:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Yo:et)(t,e)}function br(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Fo=180/Math.PI,yn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Mr(t,e,n,r,i,o){var a,s,f;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(f=t*n+e*r)&&(n-=t*f,r-=e*f),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,f/=s),t*r<e*n&&(t=-t,e=-e,f=-f,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Fo,skewX:Math.atan(f)*Fo,scaleX:a,scaleY:s}}var vn;function Uo(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?yn:Mr(e.a,e.b,e.c,e.d,e.e,e.f)}function zo(t){return t==null?yn:(vn||(vn=document.createElementNS("http://www.w3.org/2000/svg","g")),vn.setAttribute("transform",t),(t=vn.transform.baseVal.consolidate())?(t=t.matrix,Mr(t.a,t.b,t.c,t.d,t.e,t.f)):yn)}function Lo(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,h,l,p,x){if(u!==h||c!==l){var b=p.push("translate(",null,e,null,n);x.push({i:b-4,x:et(u,h)},{i:b-2,x:et(c,l)})}else(h||l)&&p.push("translate("+h+e+l+n)}function a(u,c,h,l){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),l.push({i:h.push(i(h)+"rotate(",null,r)-2,x:et(u,c)})):c&&h.push(i(h)+"rotate("+c+r)}function s(u,c,h,l){u!==c?l.push({i:h.push(i(h)+"skewX(",null,r)-2,x:et(u,c)}):c&&h.push(i(h)+"skewX("+c+r)}function f(u,c,h,l,p,x){if(u!==h||c!==l){var b=p.push(i(p)+"scale(",null,",",null,")");x.push({i:b-4,x:et(u,h)},{i:b-2,x:et(c,l)})}else(h!==1||l!==1)&&p.push(i(p)+"scale("+h+","+l+")")}return function(u,c){var h=[],l=[];return u=t(u),c=t(c),o(u.translateX,u.translateY,c.translateX,c.translateY,h,l),a(u.rotate,c.rotate,h,l),s(u.skewX,c.skewX,h,l),f(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,l),u=c=null,function(p){for(var x=-1,b=l.length,M;++x<b;)h[(M=l[x]).i]=M.x(p);return h.join("")}}}var Tr=Lo(Uo,"px, ","px)","deg)"),kr=Lo(zo,", ",")",")");function Ho(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Kt(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function wt(t){return t=Kt(Math.abs(t)),t?t[1]:NaN}function Bo(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],f=0;i>0&&s>0&&(f+s+1>r&&(s=Math.max(1,r-f)),o.push(n.substring(i-=s,i+s)),!((f+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function qo(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Ef=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rt(t){if(!(e=Ef.exec(t)))throw new Error("invalid format: "+t);var e;return new wn({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]})}Rt.prototype=wn.prototype;function wn(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+""}wn.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 Wo(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Sr;function Vo(t,e){var n=Kt(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Sr=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Kt(t,Math.max(0,e+o-1))[0]}function Cr(t,e){var n=Kt(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Nr={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Ho,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Cr(t*100,e),r:Cr,s:Vo,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ar(t){return t}var Xo=Array.prototype.map,Go=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Zo(t){var e=t.grouping===void 0||t.thousands===void 0?Ar:Bo(Xo.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Ar:qo(Xo.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",f=t.nan===void 0?"NaN":t.nan+"";function u(h){h=Rt(h);var l=h.fill,p=h.align,x=h.sign,b=h.symbol,M=h.zero,T=h.width,I=h.comma,S=h.precision,N=h.trim,$=h.type;$==="n"?(I=!0,$="g"):Nr[$]||(S===void 0&&(S=12),N=!0,$="g"),(M||l==="0"&&p==="=")&&(M=!0,l="0",p="=");var v=b==="$"?n:b==="#"&&/[boxX]/.test($)?"0"+$.toLowerCase():"",P=b==="$"?r:/[%p]/.test($)?a:"",F=Nr[$],O=/[defgprs%]/.test($);S=S===void 0?6:/[gprs]/.test($)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function H(C){var y=v,m=P,d,k,g;if($==="c")m=F(C)+m,C="";else{C=+C;var A=C<0||1/C<0;if(C=isNaN(C)?f:F(Math.abs(C),S),N&&(C=Wo(C)),A&&+C==0&&x!=="+"&&(A=!1),y=(A?x==="("?x:s:x==="-"||x==="("?"":x)+y,m=($==="s"?Go[8+Sr/3]:"")+m+(A&&x==="("?")":""),O){for(d=-1,k=C.length;++d<k;)if(g=C.charCodeAt(d),48>g||g>57){m=(g===46?i+C.slice(d+1):C.slice(d))+m,C=C.slice(0,d);break}}}I&&!M&&(C=e(C,1/0));var D=y.length+C.length+m.length,R=D<T?new Array(T-D+1).join(l):"";switch(I&&M&&(C=e(R+C,R.length?T-m.length:1/0),R=""),p){case"<":C=y+C+m+R;break;case"=":C=y+R+C+m;break;case"^":C=R.slice(0,D=R.length>>1)+y+C+m+R.slice(D);break;default:C=R+y+C+m;break}return o(C)}return H.toString=function(){return h+""},H}function c(h,l){var p=u((h=Rt(h),h.type="f",h)),x=Math.max(-8,Math.min(8,Math.floor(wt(l)/3)))*3,b=Math.pow(10,-x),M=Go[8+x/3];return function(T){return p(b*T)+M}}return{format:u,formatPrefix:c}}var bn,Mn,Tn;Dr({thousands:",",grouping:[3],currency:["$",""]});function Dr(t){return bn=Zo(t),Mn=bn.format,Tn=bn.formatPrefix,bn}function $r(t){return Math.max(0,-wt(Math.abs(t)))}function Or(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wt(e)/3)))*3-wt(Math.abs(t)))}function Ir(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,wt(e)-wt(t))+1}function Rf(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Qo(){return this.eachAfter(Rf)}function Ko(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}function Jo(t,e){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(t.call(e,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function jo(t,e){for(var n=this,r=[n],i=[],o,a,s,f=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a<s;++a)r.push(o[a]);for(;n=i.pop();)t.call(e,n,++f,this);return this}function ta(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r}function ea(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function na(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function ra(t){for(var e=this,n=Pf(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Pf(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function ia(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function oa(){return Array.from(this)}function aa(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function sa(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*ua(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function kn(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=Uf)):e===void 0&&(e=Ff);for(var n=new Fe(t),r,i=[n],o,a,s,f;r=i.pop();)if((a=e(r.data))&&(f=(a=Array.from(a)).length))for(r.children=a,s=f-1;s>=0;--s)i.push(o=a[s]=new Fe(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Lf)}function Yf(){return kn(this).eachBefore(zf)}function Ff(t){return t.children}function Uf(t){return Array.isArray(t)?t[1]:null}function zf(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Lf(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Fe(t){this.data=t,this.depth=this.height=0,this.parent=null}Fe.prototype=kn.prototype={constructor:Fe,count:Qo,each:Ko,eachAfter:jo,eachBefore:Jo,find:ta,sum:ea,sort:na,path:ra,ancestors:ia,descendants:oa,leaves:aa,links:sa,copy:Yf,[Symbol.iterator]:ua};function fa(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)}function la(t,e,n,r,i){for(var o=t.children,a,s=-1,f=o.length,u=t.value&&(r-e)/t.value;++s<f;)a=o[s],a.y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*u}function ca(t,e,n,r,i){for(var o=t.children,a,s=-1,f=o.length,u=t.value&&(i-n)/t.value;++s<f;)a=o[s],a.x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*u}var Hf=(1+Math.sqrt(5))/2;function Bf(t,e,n,r,i,o){for(var a=[],s=e.children,f,u,c=0,h=0,l=s.length,p,x,b=e.value,M,T,I,S,N,$,v;c<l;){p=i-n,x=o-r;do M=s[h++].value;while(!M&&h<l);for(T=I=M,$=Math.max(x/p,p/x)/(b*t),v=M*M*$,N=Math.max(I/v,v/T);h<l;++h){if(M+=u=s[h].value,u<T&&(T=u),u>I&&(I=u),v=M*M*$,S=Math.max(I/v,v/T),S>N){M-=u;break}N=S}a.push(f={value:M,dice:p<x,children:s.slice(c,h)}),f.dice?la(f,n,r,i,b?r+=x*M/b:o):ca(f,n,r,b?n+=p*M/b:i,o),b-=M,c=h}return a}var ha=(function t(e){function n(r,i,o,a,s){Bf(e,r,i,o,a,s)}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(Hf);function pa(t){if(typeof t!="function")throw new Error;return t}function de(){return 0}function xe(t){return function(){return t}}function qf(){var t=ha,e=!1,n=1,r=1,i=[0],o=de,a=de,s=de,f=de,u=de;function c(l){return l.x0=l.y0=0,l.x1=n,l.y1=r,l.eachBefore(h),i=[0],e&&l.eachBefore(fa),l}function h(l){var p=i[l.depth],x=l.x0+p,b=l.y0+p,M=l.x1-p,T=l.y1-p;M<x&&(x=M=(x+M)/2),T<b&&(b=T=(b+T)/2),l.x0=x,l.y0=b,l.x1=M,l.y1=T,l.children&&(p=i[l.depth+1]=o(l)/2,x+=u(l)-p,b+=a(l)-p,M-=s(l)-p,T-=f(l)-p,M<x&&(x=M=(x+M)/2),T<b&&(b=T=(b+T)/2),t(l,x,b,M,T))}return c.round=function(l){return arguments.length?(e=!!l,c):e},c.size=function(l){return arguments.length?(n=+l[0],r=+l[1],c):[n,r]},c.tile=function(l){return arguments.length?(t=pa(l),c):t},c.padding=function(l){return arguments.length?c.paddingInner(l).paddingOuter(l):c.paddingInner()},c.paddingInner=function(l){return arguments.length?(o=typeof l=="function"?l:xe(+l),c):o},c.paddingOuter=function(l){return arguments.length?c.paddingTop(l).paddingRight(l).paddingBottom(l).paddingLeft(l):c.paddingTop()},c.paddingTop=function(l){return arguments.length?(a=typeof l=="function"?l:xe(+l),c):a},c.paddingRight=function(l){return arguments.length?(s=typeof l=="function"?l:xe(+l),c):s},c.paddingBottom=function(l){return arguments.length?(f=typeof l=="function"?l:xe(+l),c):f},c.paddingLeft=function(l){return arguments.length?(u=typeof l=="function"?l:xe(+l),c):u},c}function Pt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Er=Symbol("implicit");function Ue(){var t=new ue,e=[],n=[],r=Er;function i(o){let a=t.get(o);if(a===void 0){if(r!==Er)return r;t.set(o,a=e.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new ue;for(let a of o)t.has(a)||t.set(a,e.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Ue(e,n).unknown(r)},Pt.apply(i,arguments),i}function Rr(){var t=Ue().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,a,s=!1,f=0,u=0,c=.5;delete t.unknown;function h(){var l=e().length,p=i<r,x=p?i:r,b=p?r:i;o=(b-x)/Math.max(1,l-f+u*2),s&&(o=Math.floor(o)),x+=(b-x-o*(l-f))*c,a=o*(1-f),s&&(x=Math.round(x),a=Math.round(a));var M=an(l).map(function(T){return x+o*T});return n(p?M.reverse():M)}return t.domain=function(l){return arguments.length?(e(l),h()):e()},t.range=function(l){return arguments.length?([r,i]=l,r=+r,i=+i,h()):[r,i]},t.rangeRound=function(l){return[r,i]=l,r=+r,i=+i,s=!0,h()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(l){return arguments.length?(s=!!l,h()):s},t.padding=function(l){return arguments.length?(f=Math.min(1,u=+l),h()):f},t.paddingInner=function(l){return arguments.length?(f=Math.min(1,l),h()):f},t.paddingOuter=function(l){return arguments.length?(u=+l,h()):u},t.align=function(l){return arguments.length?(c=Math.max(0,Math.min(1,l)),h()):c},t.copy=function(){return Rr(e(),[r,i]).round(s).paddingInner(f).paddingOuter(u).align(c)},Pt.apply(h(),arguments)}function Pr(t){return function(){return t}}function Yr(t){return+t}var ma=[0,1];function _e(t){return t}function Fr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Pr(isNaN(e)?NaN:.5)}function Wf(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Vf(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Fr(i,r),o=n(a,o)):(r=Fr(r,i),o=n(o,a)),function(s){return o(r(s))}}function Xf(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Fr(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(s){var f=or(t,s,1,r)-1;return o[f](i[f](s))}}function Sn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Gf(){var t=ma,e=ma,n=Qt,r,i,o,a=_e,s,f,u;function c(){var l=Math.min(t.length,e.length);return a!==_e&&(a=Wf(t[0],t[l-1])),s=l>2?Xf:Vf,f=u=null,h}function h(l){return l==null||isNaN(l=+l)?o:(f||(f=s(t.map(r),e,n)))(r(a(l)))}return h.invert=function(l){return a(i((u||(u=s(e,t.map(r),et)))(l)))},h.domain=function(l){return arguments.length?(t=Array.from(l,Yr),c()):t.slice()},h.range=function(l){return arguments.length?(e=Array.from(l),c()):e.slice()},h.rangeRound=function(l){return e=Array.from(l),n=br,c()},h.clamp=function(l){return arguments.length?(a=l?!0:_e,c()):a!==_e},h.interpolate=function(l){return arguments.length?(n=l,c()):n},h.unknown=function(l){return arguments.length?(o=l,h):o},function(l,p){return r=l,i=p,c()}}function ze(){return Gf()(_e,_e)}function Ur(t,e,n,r){var i=fe(t,e,n),o;switch(r=Rt(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=Or(i,a))&&(r.precision=o),Tn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Ir(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=$r(i))&&(r.precision=o-(r.type==="%")*2);break}}return Mn(r)}function Zf(t){var e=t.domain;return t.ticks=function(n){var r=e();return on(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return Ur(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],f,u,c=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);c-- >0;){if(u=De(a,s,n),u===f)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;f=u}return t},t}function zr(){var t=ze();return t.copy=function(){return Sn(t,zr())},Pt.apply(t,arguments),Zf(t)}var Lr=new Date,Hr=new Date;function L(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{let a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{let f=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return f;let u;do f.push(u=new Date(+o)),e(o,s),t(o);while(u<o&&o<a);return f},i.filter=o=>L(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(Lr.setTime(+o),Hr.setTime(+a),t(Lr),t(Hr),Math.floor(n(Lr,Hr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}var Jt=L(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Jt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?L(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Jt);var da=Jt.range;var bt=L(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),xa=bt.range;var ge=L(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Qf=ge.range,Cn=L(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Kf=Cn.range;var ye=L(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()),Jf=ye.range,Nn=L(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),jf=Nn.range;var At=L(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),tl=At.range,He=L(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),el=He.range,An=L(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),nl=An.range;function ee(t){return L(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)}var Dt=ee(0),ve=ee(1),ga=ee(2),ya=ee(3),Yt=ee(4),va=ee(5),wa=ee(6),ba=Dt.range,rl=ve.range,il=ga.range,ol=ya.range,al=Yt.range,sl=va.range,ul=wa.range;function ne(t){return L(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)}var re=ne(0),we=ne(1),Ma=ne(2),Ta=ne(3),Ft=ne(4),ka=ne(5),Sa=ne(6),Ca=re.range,fl=we.range,ll=Ma.range,cl=Ta.range,hl=Ft.range,pl=ka.range,ml=Sa.range;var be=L(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()),dl=be.range,Dn=L(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()),xl=Dn.range;var ft=L(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());ft.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:L(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 _l=ft.range,_t=L(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());_t.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:L(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 gl=_t.range;function Aa(t,e,n,r,i,o){let a=[[bt,1,1e3],[bt,5,5*1e3],[bt,15,15*1e3],[bt,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(u,c,h){let l=c<u;l&&([u,c]=[c,u]);let p=h&&typeof h.range=="function"?h:f(u,c,h),x=p?p.range(u,+c+1):[];return l?x.reverse():x}function f(u,c,h){let l=Math.abs(c-u)/h,p=qt(([,,M])=>M).right(a,l);if(p===a.length)return t.every(fe(u/31536e6,c/31536e6,h));if(p===0)return Jt.every(Math.max(fe(u,c,h),1));let[x,b]=a[l/a[p-1][2]<a[p][2]/l?p-1:p];return x.every(b)}return[s,f]}var[vl,wl]=Aa(_t,Dn,re,An,Nn,Cn),[Br,qr]=Aa(ft,be,Dt,At,ye,ge);function Wr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Vr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Be(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Xr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,f=t.shortMonths,u=qe(i),c=We(i),h=qe(o),l=We(o),p=qe(a),x=We(a),b=qe(s),M=We(s),T=qe(f),I=We(f),S={a:A,A:D,b:R,B:z,c:null,d:Ra,e:Ra,f:ql,g:tc,G:nc,H:Ll,I:Hl,j:Bl,L:za,m:Wl,M:Vl,p:q,q:V,Q:Fa,s:Ua,S:Xl,u:Gl,U:Zl,V:Ql,w:Kl,W:Jl,x:null,X:null,y:jl,Y:ec,Z:rc,"%":Ya},N={a:K,A:lt,b:Z,B:mt,c:null,d:Pa,e:Pa,f:sc,g:_c,G:yc,H:ic,I:oc,j:ac,L:Ha,m:uc,M:fc,p:at,q:G,Q:Fa,s:Ua,S:lc,u:cc,U:hc,V:pc,w:mc,W:dc,x:null,X:null,y:xc,Y:gc,Z:vc,"%":Ya},$={a:H,A:C,b:y,B:m,c:d,d:Ia,e:Ia,f:Yl,g:Oa,G:$a,H:Ea,I:Ea,j:Il,L:Pl,m:Ol,M:El,p:O,q:$l,Q:Ul,s:zl,S:Rl,u:Sl,U:Cl,V:Nl,w:kl,W:Al,x:k,X:g,y:Oa,Y:$a,Z:Dl,"%":Fl};S.x=v(n,S),S.X=v(r,S),S.c=v(e,S),N.x=v(n,N),N.X=v(r,N),N.c=v(e,N);function v(w,E){return function(Y){var _=[],ot=-1,B=0,st=w.length,ut,Ht,si;for(Y instanceof Date||(Y=new Date(+Y));++ot<st;)w.charCodeAt(ot)===37&&(_.push(w.slice(B,ot)),(Ht=Da[ut=w.charAt(++ot)])!=null?ut=w.charAt(++ot):Ht=ut==="e"?" ":"0",(si=E[ut])&&(ut=si(Y,Ht)),_.push(ut),B=ot+1);return _.push(w.slice(B,ot)),_.join("")}}function P(w,E){return function(Y){var _=Be(1900,void 0,1),ot=F(_,w,Y+="",0),B,st;if(ot!=Y.length)return null;if("Q"in _)return new Date(_.Q);if("s"in _)return new Date(_.s*1e3+("L"in _?_.L:0));if(E&&!("Z"in _)&&(_.Z=0),"p"in _&&(_.H=_.H%12+_.p*12),_.m===void 0&&(_.m="q"in _?_.q:0),"V"in _){if(_.V<1||_.V>53)return null;"w"in _||(_.w=1),"Z"in _?(B=Vr(Be(_.y,0,1)),st=B.getUTCDay(),B=st>4||st===0?we.ceil(B):we(B),B=He.offset(B,(_.V-1)*7),_.y=B.getUTCFullYear(),_.m=B.getUTCMonth(),_.d=B.getUTCDate()+(_.w+6)%7):(B=Wr(Be(_.y,0,1)),st=B.getDay(),B=st>4||st===0?ve.ceil(B):ve(B),B=At.offset(B,(_.V-1)*7),_.y=B.getFullYear(),_.m=B.getMonth(),_.d=B.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),st="Z"in _?Vr(Be(_.y,0,1)).getUTCDay():Wr(Be(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(st+5)%7:_.w+_.U*7-(st+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,Vr(_)):Wr(_)}}function F(w,E,Y,_){for(var ot=0,B=E.length,st=Y.length,ut,Ht;ot<B;){if(_>=st)return-1;if(ut=E.charCodeAt(ot++),ut===37){if(ut=E.charAt(ot++),Ht=$[ut in Da?E.charAt(ot++):ut],!Ht||(_=Ht(w,Y,_))<0)return-1}else if(ut!=Y.charCodeAt(_++))return-1}return _}function O(w,E,Y){var _=u.exec(E.slice(Y));return _?(w.p=c.get(_[0].toLowerCase()),Y+_[0].length):-1}function H(w,E,Y){var _=p.exec(E.slice(Y));return _?(w.w=x.get(_[0].toLowerCase()),Y+_[0].length):-1}function C(w,E,Y){var _=h.exec(E.slice(Y));return _?(w.w=l.get(_[0].toLowerCase()),Y+_[0].length):-1}function y(w,E,Y){var _=T.exec(E.slice(Y));return _?(w.m=I.get(_[0].toLowerCase()),Y+_[0].length):-1}function m(w,E,Y){var _=b.exec(E.slice(Y));return _?(w.m=M.get(_[0].toLowerCase()),Y+_[0].length):-1}function d(w,E,Y){return F(w,e,E,Y)}function k(w,E,Y){return F(w,n,E,Y)}function g(w,E,Y){return F(w,r,E,Y)}function A(w){return a[w.getDay()]}function D(w){return o[w.getDay()]}function R(w){return f[w.getMonth()]}function z(w){return s[w.getMonth()]}function q(w){return i[+(w.getHours()>=12)]}function V(w){return 1+~~(w.getMonth()/3)}function K(w){return a[w.getUTCDay()]}function lt(w){return o[w.getUTCDay()]}function Z(w){return f[w.getUTCMonth()]}function mt(w){return s[w.getUTCMonth()]}function at(w){return i[+(w.getUTCHours()>=12)]}function G(w){return 1+~~(w.getUTCMonth()/3)}return{format:function(w){var E=v(w+="",S);return E.toString=function(){return w},E},parse:function(w){var E=P(w+="",!1);return E.toString=function(){return w},E},utcFormat:function(w){var E=v(w+="",N);return E.toString=function(){return w},E},utcParse:function(w){var E=P(w+="",!0);return E.toString=function(){return w},E}}}var Da={"-":"",_:" ",0:"0"},J=/^\s*\d+/,bl=/^%/,Ml=/[\\^$*+?|[\]().{}]/g;function U(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Tl(t){return t.replace(Ml,"\\$&")}function qe(t){return new RegExp("^(?:"+t.map(Tl).join("|")+")","i")}function We(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function kl(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Sl(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Nl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Al(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function $a(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Oa(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dl(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function $l(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ol(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ia(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Il(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ea(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function El(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Rl(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pl(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Yl(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fl(t,e,n){var r=bl.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ul(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function zl(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ra(t,e){return U(t.getDate(),e,2)}function Ll(t,e){return U(t.getHours(),e,2)}function Hl(t,e){return U(t.getHours()%12||12,e,2)}function Bl(t,e){return U(1+At.count(ft(t),t),e,3)}function za(t,e){return U(t.getMilliseconds(),e,3)}function ql(t,e){return za(t,e)+"000"}function Wl(t,e){return U(t.getMonth()+1,e,2)}function Vl(t,e){return U(t.getMinutes(),e,2)}function Xl(t,e){return U(t.getSeconds(),e,2)}function Gl(t){var e=t.getDay();return e===0?7:e}function Zl(t,e){return U(Dt.count(ft(t)-1,t),e,2)}function La(t){var e=t.getDay();return e>=4||e===0?Yt(t):Yt.ceil(t)}function Ql(t,e){return t=La(t),U(Yt.count(ft(t),t)+(ft(t).getDay()===4),e,2)}function Kl(t){return t.getDay()}function Jl(t,e){return U(ve.count(ft(t)-1,t),e,2)}function jl(t,e){return U(t.getFullYear()%100,e,2)}function tc(t,e){return t=La(t),U(t.getFullYear()%100,e,2)}function ec(t,e){return U(t.getFullYear()%1e4,e,4)}function nc(t,e){var n=t.getDay();return t=n>=4||n===0?Yt(t):Yt.ceil(t),U(t.getFullYear()%1e4,e,4)}function rc(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+U(e/60|0,"0",2)+U(e%60,"0",2)}function Pa(t,e){return U(t.getUTCDate(),e,2)}function ic(t,e){return U(t.getUTCHours(),e,2)}function oc(t,e){return U(t.getUTCHours()%12||12,e,2)}function ac(t,e){return U(1+He.count(_t(t),t),e,3)}function Ha(t,e){return U(t.getUTCMilliseconds(),e,3)}function sc(t,e){return Ha(t,e)+"000"}function uc(t,e){return U(t.getUTCMonth()+1,e,2)}function fc(t,e){return U(t.getUTCMinutes(),e,2)}function lc(t,e){return U(t.getUTCSeconds(),e,2)}function cc(t){var e=t.getUTCDay();return e===0?7:e}function hc(t,e){return U(re.count(_t(t)-1,t),e,2)}function Ba(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function pc(t,e){return t=Ba(t),U(Ft.count(_t(t),t)+(_t(t).getUTCDay()===4),e,2)}function mc(t){return t.getUTCDay()}function dc(t,e){return U(we.count(_t(t)-1,t),e,2)}function xc(t,e){return U(t.getUTCFullYear()%100,e,2)}function _c(t,e){return t=Ba(t),U(t.getUTCFullYear()%100,e,2)}function gc(t,e){return U(t.getUTCFullYear()%1e4,e,4)}function yc(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),U(t.getUTCFullYear()%1e4,e,4)}function vc(){return"+0000"}function Ya(){return"%"}function Fa(t){return+t}function Ua(t){return Math.floor(+t/1e3)}var Me,$n,qa,Wa,Va;Gr({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 Gr(t){return Me=Xr(t),$n=Me.format,qa=Me.parse,Wa=Me.utcFormat,Va=Me.utcParse,Me}function Zr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),t[n]=e.floor(i),t[r]=e.ceil(o),t}function wc(t){return new Date(t)}function bc(t){return t instanceof Date?+t:+new Date(+t)}function Xa(t,e,n,r,i,o,a,s,f,u){var c=ze(),h=c.invert,l=c.domain,p=u(".%L"),x=u(":%S"),b=u("%I:%M"),M=u("%I %p"),T=u("%a %d"),I=u("%b %d"),S=u("%B"),N=u("%Y");function $(v){return(f(v)<v?p:s(v)<v?x:a(v)<v?b:o(v)<v?M:r(v)<v?i(v)<v?T:I:n(v)<v?S:N)(v)}return c.invert=function(v){return new Date(h(v))},c.domain=function(v){return arguments.length?l(Array.from(v,bc)):l().map(wc)},c.ticks=function(v){var P=l();return t(P[0],P[P.length-1],v??10)},c.tickFormat=function(v,P){return P==null?$:u(P)},c.nice=function(v){var P=l();return(!v||typeof v.range!="function")&&(v=e(P[0],P[P.length-1],v??10)),v?l(Zr(P,v)):c},c.copy=function(){return Sn(c,Xa(t,e,n,r,i,o,a,s,f,u))},c}function Ga(){return Pt.apply(Xa(Br,qr,ft,be,Dt,At,ye,ge,bt,$n).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Za(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}var Mc=Za("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function W(t){return function(){return t}}var Qr=Math.abs,nt=Math.atan2,Ut=Math.cos,Qa=Math.max,On=Math.min,gt=Math.sin,ie=Math.sqrt,j=1e-12,Te=Math.PI,Ve=Te/2,ke=2*Te;function Ka(t){return t>1?0:t<-1?Te:Math.acos(t)}function Kr(t){return t>=1?Ve:t<=-1?-Ve:Math.asin(t)}var Jr=Math.PI,jr=2*Jr,oe=1e-6,Tc=jr-oe;function Ja(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function kc(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ja;let n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}var ae=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Ja:kc(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,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,a){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,f=r-e,u=i-n,c=a-e,h=s-n,l=c*c+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(l>oe)if(!(Math.abs(h*f-u*c)>oe)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-a,x=i-s,b=f*f+u*u,M=p*p+x*x,T=Math.sqrt(b),I=Math.sqrt(l),S=o*Math.tan((Jr-Math.acos((b+l-M)/(2*T*I)))/2),N=S/I,$=S/T;Math.abs(N-1)>oe&&this._append`L${e+N*c},${n+N*h}`,this._append`A${o},${o},0,0,${+(h*p>c*x)},${this._x1=e+$*f},${this._y1=n+$*u}`}}arc(e,n,r,i,o,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),f=r*Math.sin(i),u=e+s,c=n+f,h=1^a,l=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>oe||Math.abs(this._y1-c)>oe)&&this._append`L${u},${c}`,r&&(l<0&&(l=l%jr+jr),l>Tc?this._append`A${r},${r},0,1,${h},${e-s},${n-f}A${r},${r},0,1,${h},${this._x1=u},${this._y1=c}`:l>oe&&this._append`A${r},${r},0,${+(l>=Jr)},${h},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function ja(){return new ae}ja.prototype=ae.prototype;function In(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new ae(e)}function Sc(t){return t.innerRadius}function Cc(t){return t.outerRadius}function Nc(t){return t.startAngle}function Ac(t){return t.endAngle}function Dc(t){return t&&t.padAngle}function $c(t,e,n,r,i,o,a,s){var f=n-t,u=r-e,c=a-i,h=s-o,l=h*f-c*u;if(!(l*l<j))return l=(c*(e-o)-h*(t-i))/l,[t+l*f,e+l*u]}function En(t,e,n,r,i,o,a){var s=t-n,f=e-r,u=(a?o:-o)/ie(s*s+f*f),c=u*f,h=-u*s,l=t+c,p=e+h,x=n+c,b=r+h,M=(l+x)/2,T=(p+b)/2,I=x-l,S=b-p,N=I*I+S*S,$=i-o,v=l*b-x*p,P=(S<0?-1:1)*ie(Qa(0,$*$*N-v*v)),F=(v*S-I*P)/N,O=(-v*I-S*P)/N,H=(v*S+I*P)/N,C=(-v*I+S*P)/N,y=F-M,m=O-T,d=H-M,k=C-T;return y*y+m*m>d*d+k*k&&(F=H,O=C),{cx:F,cy:O,x01:-c,y01:-h,x11:F*(i/$-1),y11:O*(i/$-1)}}function Oc(){var t=Sc,e=Cc,n=W(0),r=null,i=Nc,o=Ac,a=Dc,s=null,f=In(u);function u(){var c,h,l=+t.apply(this,arguments),p=+e.apply(this,arguments),x=i.apply(this,arguments)-Ve,b=o.apply(this,arguments)-Ve,M=Qr(b-x),T=b>x;if(s||(s=c=f()),p<l&&(h=p,p=l,l=h),!(p>j))s.moveTo(0,0);else if(M>ke-j)s.moveTo(p*Ut(x),p*gt(x)),s.arc(0,0,p,x,b,!T),l>j&&(s.moveTo(l*Ut(b),l*gt(b)),s.arc(0,0,l,b,x,T));else{var I=x,S=b,N=x,$=b,v=M,P=M,F=a.apply(this,arguments)/2,O=F>j&&(r?+r.apply(this,arguments):ie(l*l+p*p)),H=On(Qr(p-l)/2,+n.apply(this,arguments)),C=H,y=H,m,d;if(O>j){var k=Kr(O/l*gt(F)),g=Kr(O/p*gt(F));(v-=k*2)>j?(k*=T?1:-1,N+=k,$-=k):(v=0,N=$=(x+b)/2),(P-=g*2)>j?(g*=T?1:-1,I+=g,S-=g):(P=0,I=S=(x+b)/2)}var A=p*Ut(I),D=p*gt(I),R=l*Ut($),z=l*gt($);if(H>j){var q=p*Ut(S),V=p*gt(S),K=l*Ut(N),lt=l*gt(N),Z;if(M<Te)if(Z=$c(A,D,K,lt,q,V,R,z)){var mt=A-Z[0],at=D-Z[1],G=q-Z[0],w=V-Z[1],E=1/gt(Ka((mt*G+at*w)/(ie(mt*mt+at*at)*ie(G*G+w*w)))/2),Y=ie(Z[0]*Z[0]+Z[1]*Z[1]);C=On(H,(l-Y)/(E-1)),y=On(H,(p-Y)/(E+1))}else C=y=0}P>j?y>j?(m=En(K,lt,A,D,p,y,T),d=En(q,V,R,z,p,y,T),s.moveTo(m.cx+m.x01,m.cy+m.y01),y<H?s.arc(m.cx,m.cy,y,nt(m.y01,m.x01),nt(d.y01,d.x01),!T):(s.arc(m.cx,m.cy,y,nt(m.y01,m.x01),nt(m.y11,m.x11),!T),s.arc(0,0,p,nt(m.cy+m.y11,m.cx+m.x11),nt(d.cy+d.y11,d.cx+d.x11),!T),s.arc(d.cx,d.cy,y,nt(d.y11,d.x11),nt(d.y01,d.x01),!T))):(s.moveTo(A,D),s.arc(0,0,p,I,S,!T)):s.moveTo(A,D),!(l>j)||!(v>j)?s.lineTo(R,z):C>j?(m=En(R,z,q,V,l,-C,T),d=En(A,D,K,lt,l,-C,T),s.lineTo(m.cx+m.x01,m.cy+m.y01),C<H?s.arc(m.cx,m.cy,C,nt(m.y01,m.x01),nt(d.y01,d.x01),!T):(s.arc(m.cx,m.cy,C,nt(m.y01,m.x01),nt(m.y11,m.x11),!T),s.arc(0,0,l,nt(m.cy+m.y11,m.cx+m.x11),nt(d.cy+d.y11,d.cx+d.x11),T),s.arc(d.cx,d.cy,C,nt(d.y11,d.x11),nt(d.y01,d.x01),!T))):s.arc(0,0,l,$,N,T)}if(s.closePath(),c)return s=null,c+""||null}return u.centroid=function(){var c=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,h=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Te/2;return[Ut(h)*c,gt(h)*c]},u.innerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:W(+c),u):t},u.outerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:W(+c),u):e},u.cornerRadius=function(c){return arguments.length?(n=typeof c=="function"?c:W(+c),u):n},u.padRadius=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:W(+c),u):r},u.startAngle=function(c){return arguments.length?(i=typeof c=="function"?c:W(+c),u):i},u.endAngle=function(c){return arguments.length?(o=typeof c=="function"?c:W(+c),u):o},u.padAngle=function(c){return arguments.length?(a=typeof c=="function"?c:W(+c),u):a},u.context=function(c){return arguments.length?(s=c??null,u):s},u}var ny=Array.prototype.slice;function Rn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ts(t){this._context=t}ts.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ti(t){return new ts(t)}function es(t){return t[0]}function ns(t){return t[1]}function Ic(t,e){var n=W(!0),r=null,i=ti,o=null,a=In(s);t=typeof t=="function"?t:t===void 0?es:W(t),e=typeof e=="function"?e:e===void 0?ns:W(e);function s(f){var u,c=(f=Rn(f)).length,h,l=!1,p;for(r==null&&(o=i(p=a())),u=0;u<=c;++u)!(u<c&&n(h=f[u],u,f))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(h,u,f),+e(h,u,f));if(p)return o=null,p+""||null}return s.x=function(f){return arguments.length?(t=typeof f=="function"?f:W(+f),s):t},s.y=function(f){return arguments.length?(e=typeof f=="function"?f:W(+f),s):e},s.defined=function(f){return arguments.length?(n=typeof f=="function"?f:W(!!f),s):n},s.curve=function(f){return arguments.length?(i=f,r!=null&&(o=i(r)),s):i},s.context=function(f){return arguments.length?(f==null?r=o=null:o=i(r=f),s):r},s}function rs(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function is(t){return t}function Ec(){var t=is,e=rs,n=null,r=W(0),i=W(ke),o=W(0);function a(s){var f,u=(s=Rn(s)).length,c,h,l=0,p=new Array(u),x=new Array(u),b=+r.apply(this,arguments),M=Math.min(ke,Math.max(-ke,i.apply(this,arguments)-b)),T,I=Math.min(Math.abs(M)/u,o.apply(this,arguments)),S=I*(M<0?-1:1),N;for(f=0;f<u;++f)(N=x[p[f]=f]=+t(s[f],f,s))>0&&(l+=N);for(e!=null?p.sort(function($,v){return e(x[$],x[v])}):n!=null&&p.sort(function($,v){return n(s[$],s[v])}),f=0,h=l?(M-u*S)/l:0;f<u;++f,b=T)c=p[f],N=x[c],T=b+(N>0?N*h:0)+S,x[c]={data:s[c],index:f,value:N,startAngle:b,endAngle:T,padAngle:I};return x}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:W(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,n=null,a):e},a.sort=function(s){return arguments.length?(n=s,e=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:W(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:W(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:W(+s),a):o},a}function Se(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)}function Xe(t){this._context=t}Xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Se(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Rc(t){return new Xe(t)}var Pn=class{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 Pc(t){return new Pn(t,!0)}function Yc(t){return new Pn(t,!1)}function pt(){}function os(t){this._context=t}os.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Fc(t){return new os(t)}function as(t){this._context=t}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Se(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Uc(t){return new as(t)}function ss(t,e){this._basis=new Xe(t),this._beta=e}ss.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,a=e[n]-i,s=-1,f;++s<=n;)f=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+f*o),this._beta*e[s]+(1-this._beta)*(i+f*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var zc=(function t(e){function n(r){return e===1?new Xe(r):new ss(r,e)}return n.beta=function(r){return t(+r)},n})(.85);function Ce(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)}function Yn(t,e){this._context=t,this._k=(1-e)/6}Yn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ce(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ce(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}};var Lc=(function t(e){function n(r){return new Yn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Fn(t,e){this._context=t,this._k=(1-e)/6}Fn.prototype={areaStart:pt,areaEnd:pt,lineStart: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},lineEnd: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}}},point: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:Ce(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}};var Hc=(function t(e){function n(r){return new Fn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Un(t,e){this._context=t,this._k=(1-e)/6}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ce(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}};var Bc=(function t(e){function n(r){return new Un(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ge(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>j){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>j){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function us(t,e){this._context=t,this._alpha=e}us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Ge(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}};var qc=(function t(e){function n(r){return e?new us(r,e):new Yn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function fs(t,e){this._context=t,this._alpha=e}fs.prototype={areaStart:pt,areaEnd:pt,lineStart: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},lineEnd: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}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Ge(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}};var Wc=(function t(e){function n(r){return e?new fs(r,e):new Fn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function ls(t,e){this._context=t,this._alpha=e}ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Ge(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}};var Vc=(function t(e){function n(r){return e?new ls(r,e):new Un(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function cs(t){this._context=t}cs.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Xc(t){return new cs(t)}function hs(t){return t<0?-1:1}function ps(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(hs(o)+hs(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ms(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ei(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function zn(t){this._context=t}zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ei(this,this._t0,ms(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var 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,ei(this,ms(this,n=ps(this,t,e)),n);break;default:ei(this,this._t0,n=ps(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function ds(t){this._context=new xs(t)}(ds.prototype=Object.create(zn.prototype)).point=function(t,e){zn.prototype.point.call(this,e,t)};function xs(t){this._context=t}xs.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function Gc(t){return new zn(t)}function Zc(t){return new ds(t)}function gs(t){this._context=t}gs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,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 r=_s(t),i=_s(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function _s(t){var e,n=t.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Qc(t){return new gs(t)}function Ln(t,e){this._context=t,this._t=e}Ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var 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}};function Kc(t){return new Ln(t,.5)}function Jc(t){return new Ln(t,0)}function jc(t){return new Ln(t,1)}var th={value:()=>{}};function vs(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Hn(n)}function Hn(t){this._=t}function eh(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Hn.prototype=vs.prototype={constructor:Hn,on:function(t,e){var n=this._,r=eh(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=nh(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=ys(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ys(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Hn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function nh(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ys(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=th,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ni=vs;var Ne=0,Qe=0,Ze=0,bs=1e3,Bn,Ke,qn=0,se=0,Wn=0,Je=typeof performance=="object"&&performance.now?performance:Date,Ms=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tn(){return se||(Ms(rh),se=Je.now()+Wn)}function rh(){se=0}function je(){this._call=this._time=this._next=null}je.prototype=Vn.prototype={constructor:je,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?tn():+n)+(e==null?0:+e),!this._next&&Ke!==this&&(Ke?Ke._next=this:Bn=this,Ke=this),this._call=t,this._time=n,ri()},stop:function(){this._call&&(this._call=null,this._time=1/0,ri())}};function Vn(t,e,n){var r=new je;return r.restart(t,e,n),r}function Ts(){tn(),++Ne;for(var t=Bn,e;t;)(e=se-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Ne}function ws(){se=(qn=Je.now())+Wn,Ne=Qe=0;try{Ts()}finally{Ne=0,oh(),se=0}}function ih(){var t=Je.now(),e=t-qn;e>bs&&(Wn-=e,qn=t)}function oh(){for(var t,e=Bn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Bn=n);Ke=t,ri(r)}function ri(t){if(!Ne){Qe&&(Qe=clearTimeout(Qe));var e=t-se;e>24?(t<1/0&&(Qe=setTimeout(ws,t-Je.now()-Wn)),Ze&&(Ze=clearInterval(Ze))):(Ze||(qn=Je.now(),Ze=setInterval(ih,bs)),Ne=1,Ms(ws))}}function Xn(t,e,n){var r=new je;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var ah=ni("start","end","cancel","interrupt"),sh=[],Cs=0,ks=1,Zn=2,Gn=3,Ss=4,Qn=5,en=6;function zt(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;uh(t,n,{name:e,index:r,group:i,on:ah,tween:sh,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Cs})}function nn(t,e){var n=Q(t,e);if(n.state>Cs)throw new Error("too late; already scheduled");return n}function rt(t,e){var n=Q(t,e);if(n.state>Gn)throw new Error("too late; already running");return n}function Q(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function uh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Vn(o,0,n.time);function o(u){n.state=ks,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,h,l,p;if(n.state!==ks)return f();for(c in r)if(p=r[c],p.name===n.name){if(p.state===Gn)return Xn(a);p.state===Ss?(p.state=en,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[c]):+c<e&&(p.state=en,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[c])}if(Xn(function(){n.state===Gn&&(n.state=Ss,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=Zn,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Zn){for(n.state=Gn,i=new Array(l=n.tween.length),c=0,h=-1;c<l;++c)(p=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=p);i.length=h+1}}function s(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(f),n.state=Qn,1),h=-1,l=i.length;++h<l;)i[h].call(t,c);n.state===Qn&&(n.on.call("end",t,t.__data__,n.index,n.group),f())}function f(){n.state=en,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function Kn(t,e){var n=t.__transition,r,i,o=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){o=!1;continue}i=r.state>Zn&&r.state<Qn,r.state=en,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}o&&delete t.__transition}}function Ns(t){return this.each(function(){Kn(this,t)})}function fh(t,e){var n,r;return function(){var i=rt(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function lh(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=rt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},f=0,u=i.length;f<u;++f)if(i[f].name===e){i[f]=s;break}f===u&&i.push(s)}o.tween=i}}function As(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=Q(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((e==null?fh:lh)(n,t,e))}function Ae(t,e,n){var r=t._id;return t.each(function(){var i=rt(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return Q(i,r).value[e]}}function Jn(t,e){var n;return(typeof e=="number"?et:e instanceof xt?Zt:(n=xt(e))?(e=n,Zt):Ye)(t,e)}function ch(t){return function(){this.removeAttribute(t)}}function hh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ph(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}}function mh(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}function dh(t,e,n){var r,i,o;return function(){var a,s=n(this),f;return s==null?void this.removeAttribute(t):(a=this.getAttribute(t),f=s+"",a===f?null:a===r&&f===i?o:(i=f,o=e(r=a,s)))}}function xh(t,e,n){var r,i,o;return function(){var a,s=n(this),f;return s==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),f=s+"",a===f?null:a===r&&f===i?o:(i=f,o=e(r=a,s)))}}function Ds(t,e){var n=kt(t),r=n==="transform"?kr:Jn;return this.attrTween(t,typeof e=="function"?(n.local?xh:dh)(n,r,Ae(this,"attr."+t,e)):e==null?(n.local?hh:ch)(n):(n.local?mh:ph)(n,r,e))}function _h(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function gh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function yh(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&gh(t,o)),n}return i._value=e,i}function vh(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&_h(t,o)),n}return i._value=e,i}function $s(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 r=kt(t);return this.tween(n,(r.local?yh:vh)(r,e))}function wh(t,e){return function(){nn(this,t).delay=+e.apply(this,arguments)}}function bh(t,e){return e=+e,function(){nn(this,t).delay=e}}function Os(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?wh:bh)(e,t)):Q(this.node(),e).delay}function Mh(t,e){return function(){rt(this,t).duration=+e.apply(this,arguments)}}function Th(t,e){return e=+e,function(){rt(this,t).duration=e}}function Is(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Mh:Th)(e,t)):Q(this.node(),e).duration}function kh(t,e){if(typeof e!="function")throw new Error;return function(){rt(this,t).ease=e}}function Es(t){var e=this._id;return arguments.length?this.each(kh(e,t)):Q(this.node(),e).ease}function Sh(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;rt(this,t).ease=n}}function Rs(t){if(typeof t!="function")throw new Error;return this.each(Sh(this._id,t))}function Ps(t){typeof t!="function"&&(t=Oe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],f,u=0;u<a;++u)(f=o[u])&&t.call(f,f.__data__,u,o)&&s.push(f);return new it(r,this._parents,this._name,this._id)}function Ys(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var f=e[s],u=n[s],c=f.length,h=a[s]=new Array(c),l,p=0;p<c;++p)(l=f[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=e[s];return new it(a,this._parents,this._name,this._id)}function Ch(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Nh(t,e,n){var r,i,o=Ch(e)?nn:rt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function Fs(t,e){var n=this._id;return arguments.length<2?Q(this.node(),n).on.on(t):this.each(Nh(n,t,e))}function Ah(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Us(){return this.on("end.remove",Ah(this._id))}function zs(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Wt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],f=s.length,u=o[a]=new Array(f),c,h,l=0;l<f;++l)(c=s[l])&&(h=t.call(c,c.__data__,l,s))&&("__data__"in c&&(h.__data__=c.__data__),u[l]=h,zt(u[l],e,n,l,u,Q(c,n)));return new it(o,this._parents,e,n)}function Ls(t){var e=this._name,n=this._id;typeof t!="function"&&(t=$e(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var f=r[s],u=f.length,c,h=0;h<u;++h)if(c=f[h]){for(var l=t.call(c,c.__data__,h,f),p,x=Q(c,n),b=0,M=l.length;b<M;++b)(p=l[b])&&zt(p,e,n,b,l,x);o.push(l),a.push(c)}return new it(o,a,e,n)}var Dh=St.prototype.constructor;function Hs(){return new Dh(this._groups,this._parents)}function $h(t,e){var n,r,i;return function(){var o=It(this,t),a=(this.style.removeProperty(t),It(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Bs(t){return function(){this.style.removeProperty(t)}}function Oh(t,e,n){var r,i=n+"",o;return function(){var a=It(this,t);return a===i?null:a===r?o:o=e(r=a,n)}}function Ih(t,e,n){var r,i,o;return function(){var a=It(this,t),s=n(this),f=s+"";return s==null&&(f=s=(this.style.removeProperty(t),It(this,t))),a===f?null:a===r&&f===i?o:(i=f,o=e(r=a,s))}}function Eh(t,e){var n,r,i,o="style."+e,a="end."+o,s;return function(){var f=rt(this,t),u=f.on,c=f.value[o]==null?s||(s=Bs(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(a,i=c),f.on=r}}function qs(t,e,n){var r=(t+="")=="transform"?Tr:Jn;return e==null?this.styleTween(t,$h(t,r)).on("end.style."+t,Bs(t)):typeof e=="function"?this.styleTween(t,Ih(t,r,Ae(this,"style."+t,e))).each(Eh(this._id,t)):this.styleTween(t,Oh(t,r,e),n).on("end.style."+t,null)}function Rh(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ph(t,e,n){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Rh(t,a,n)),r}return o._value=e,o}function Ws(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Ph(t,e,n??""))}function Yh(t){return function(){this.textContent=t}}function Fh(t){return function(){var e=t(this);this.textContent=e??""}}function Vs(t){return this.tween("text",typeof t=="function"?Fh(Ae(this,"text",t)):Yh(t==null?"":t+""))}function Uh(t){return function(e){this.textContent=t.call(this,e)}}function zh(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Uh(i)),e}return r._value=t,r}function Xs(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,zh(t))}function Gs(){for(var t=this._name,e=this._id,n=jn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,f,u=0;u<s;++u)if(f=a[u]){var c=Q(f,e);zt(f,t,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new it(r,this._parents,t,n)}function Zs(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},f={value:function(){--i===0&&o()}};n.each(function(){var u=rt(this,r),c=u.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(f)),u.on=e}),i===0&&o()})}var Lh=0;function it(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Qs(t){return St().transition(t)}function jn(){return++Lh}var $t=St.prototype;it.prototype=Qs.prototype={constructor:it,select:zs,selectAll:Ls,selectChild:$t.selectChild,selectChildren:$t.selectChildren,filter:Ps,merge:Ys,selection:Hs,transition:Gs,call:$t.call,nodes:$t.nodes,node:$t.node,size:$t.size,empty:$t.empty,each:$t.each,on:Fs,attr:Ds,attrTween:$s,style:qs,styleTween:Ws,text:Vs,textTween:Xs,remove:Us,tween:As,delay:Os,duration:Is,ease:Es,easeVarying:Rs,end:Zs,[Symbol.iterator]:$t[Symbol.iterator]};function tr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Hh={time:null,delay:0,duration:250,ease:tr};function Bh(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ks(t){var e,n;t instanceof it?(e=t._id,t=t._name):(e=jn(),(n=Hh).time=tn(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,f,u=0;u<s;++u)(f=a[u])&&zt(f,t,e,u,a,n||Bh(f,e));return new it(r,this._parents,t,e)}St.prototype.interrupt=Ns;St.prototype.transition=Ks;var{abs:Sw,max:Cw,min:Nw}=Math;function Js(t){return[+t[0],+t[1]]}function qh(t){return[Js(t[0]),Js(t[1])]}var Aw={name:"x",handles:["w","e"].map(ii),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Dw={name:"y",handles:["n","s"].map(ii),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},$w={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ii),input:function(t){return t==null?null:qh(t)},output:function(t){return t}};function ii(t){return{type:t}}function Lt(t,e,n){this.k=t,this.x=e,this.y=n}Lt.prototype={constructor:Lt,scale:function(t){return t===1?this:new Lt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Lt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var oi=new Lt(1,0,0);ai.prototype=Lt.prototype;function ai(t){for(;!t.__zoom;)if(!(t=t.parentNode))return oi;return t.__zoom}export{ui as a,Ot as b,Wh as c,ct as d,Vh as e,ci as f,hi as g,du as h,xu as i,mf as j,Nf as k,Mn as l,kn as m,qf as n,Ue as o,Rr as p,zr as q,Jt as r,bt as s,ge as t,ye as u,At as v,Dt as w,ve as x,ga as y,ya as z,Yt as A,va as B,wa as C,be as D,$n as E,Ga as F,Mc as G,Oc as H,ti as I,Ic as J,Ec as K,Pc as L,Yc as M,Rc as N,Fc as O,Uc as P,zc as Q,Lc as R,Hc as S,Bc as T,qc as U,Wc as V,Vc as W,Xc as X,Gc as Y,Zc as Z,Qc as _,Kc as $,Jc as aa,jc as ba};
//# sourceMappingURL=chunk-6TVUEPFY.min.js.map