summaryrefslogtreecommitdiffstats
path: root/nightly/assets/external/unpkg.com/mermaid@10.7.0/dist/mermaid.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'nightly/assets/external/unpkg.com/mermaid@10.7.0/dist/mermaid.min.js')
-rw-r--r--nightly/assets/external/unpkg.com/mermaid@10.7.0/dist/mermaid.min.js1642
1 files changed, 1642 insertions, 0 deletions
diff --git a/nightly/assets/external/unpkg.com/mermaid@10.7.0/dist/mermaid.min.js b/nightly/assets/external/unpkg.com/mermaid@10.7.0/dist/mermaid.min.js
new file mode 100644
index 00000000..a41e9ef9
--- /dev/null
+++ b/nightly/assets/external/unpkg.com/mermaid@10.7.0/dist/mermaid.min.js
@@ -0,0 +1,1642 @@
+(function(SL,X0){typeof exports=="object"&&typeof module<"u"?module.exports=X0():typeof define=="function"&&define.amd?define(X0):(SL=typeof globalThis<"u"?globalThis:SL||self,SL.mermaid=X0())})(this,function(){"use strict";function SL(i){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];var g=Array.from(typeof i=="string"?[i]:i);g[g.length-1]=g[g.length-1].replace(/\r?\n([\t ]*)$/,"");var w=g.reduce(function(E,_){var S=_.match(/\n([\t ]+|(?!\s).)/g);return S?E.concat(S.map(function(I){var B,F;return(F=(B=I.match(/[\t ]/g))===null||B===void 0?void 0:B.length)!==null&&F!==void 0?F:0})):E},[]);if(w.length){var v=new RegExp(`
+[ ]{`+Math.min.apply(Math,w)+"}","g");g=g.map(function(E){return E.replace(v,`
+`)})}g[0]=g[0].replace(/^\r?\n/,"");var b=g[0];return a.forEach(function(E,_){var S=b.match(/(?:^|\n)( *)$/),I=S?S[1]:"",B=E;typeof E=="string"&&E.includes(`
+`)&&(B=String(E).split(`
+`).map(function(F,R){return R===0?F:""+I+F}).join(`
+`)),b+=B+g[_+1]}),b}var X0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JT(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var oOt={exports:{}};(function(i,a){(function(f,g){i.exports=g()})(X0,function(){var f=1e3,g=6e4,w=36e5,v="millisecond",b="second",E="minute",_="hour",S="day",I="week",B="month",F="quarter",R="year",q="date",X="Invalid Date",rt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,at=/\[([^\]]+)]|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,ut={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(V){var Nt=["th","st","nd","rd"],Dt=V%100;return"["+V+(Nt[(Dt-20)%10]||Nt[Dt]||Nt[0])+"]"}},pt=function(V,Nt,Dt){var jt=String(V);return!jt||jt.length>=Nt?V:""+Array(Nt+1-jt.length).join(Dt)+V},yt={s:pt,z:function(V){var Nt=-V.utcOffset(),Dt=Math.abs(Nt),jt=Math.floor(Dt/60),Ct=Dt%60;return(Nt<=0?"+":"-")+pt(jt,2,"0")+":"+pt(Ct,2,"0")},m:function V(Nt,Dt){if(Nt.date()<Dt.date())return-V(Dt,Nt);var jt=12*(Dt.year()-Nt.year())+(Dt.month()-Nt.month()),Ct=Nt.clone().add(jt,B),Ft=Dt-Ct<0,_t=Nt.clone().add(jt+(Ft?-1:1),B);return+(-(jt+(Dt-Ct)/(Ft?Ct-_t:_t-Ct))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:B,y:R,w:I,d:S,D:q,h:_,m:E,s:b,ms:v,Q:F}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},mt="en",gt={};gt[mt]=ut;var ht=function(V){return V instanceof Y},bt=function V(Nt,Dt,jt){var Ct;if(!Nt)return mt;if(typeof Nt=="string"){var Ft=Nt.toLowerCase();gt[Ft]&&(Ct=Ft),Dt&&(gt[Ft]=Dt,Ct=Ft);var _t=Nt.split("-");if(!Ct&&_t.length>1)return V(_t[0])}else{var xt=Nt.name;gt[xt]=Nt,Ct=xt}return!jt&&Ct&&(mt=Ct),Ct||!jt&&mt},Z=function(V,Nt){if(ht(V))return V.clone();var Dt=typeof Nt=="object"?Nt:{};return Dt.date=V,Dt.args=arguments,new Y(Dt)},ft=yt;ft.l=bt,ft.i=ht,ft.w=function(V,Nt){return Z(V,{locale:Nt.$L,utc:Nt.$u,x:Nt.$x,$offset:Nt.$offset})};var Y=function(){function V(Dt){this.$L=bt(Dt.locale,null,!0),this.parse(Dt)}var Nt=V.prototype;return Nt.parse=function(Dt){this.$d=function(jt){var Ct=jt.date,Ft=jt.utc;if(Ct===null)return new Date(NaN);if(ft.u(Ct))return new Date;if(Ct instanceof Date)return new Date(Ct);if(typeof Ct=="string"&&!/Z$/i.test(Ct)){var _t=Ct.match(rt);if(_t){var xt=_t[2]-1||0,Gt=(_t[7]||"0").substring(0,3);return Ft?new Date(Date.UTC(_t[1],xt,_t[3]||1,_t[4]||0,_t[5]||0,_t[6]||0,Gt)):new Date(_t[1],xt,_t[3]||1,_t[4]||0,_t[5]||0,_t[6]||0,Gt)}}return new Date(Ct)}(Dt),this.$x=Dt.x||{},this.init()},Nt.init=function(){var Dt=this.$d;this.$y=Dt.getFullYear(),this.$M=Dt.getMonth(),this.$D=Dt.getDate(),this.$W=Dt.getDay(),this.$H=Dt.getHours(),this.$m=Dt.getMinutes(),this.$s=Dt.getSeconds(),this.$ms=Dt.getMilliseconds()},Nt.$utils=function(){return ft},Nt.isValid=function(){return this.$d.toString()!==X},Nt.isSame=function(Dt,jt){var Ct=Z(Dt);return this.startOf(jt)<=Ct&&Ct<=this.endOf(jt)},Nt.isAfter=function(Dt,jt){return Z(Dt)<this.startOf(jt)},Nt.isBefore=function(Dt,jt){return this.endOf(jt)<Z(Dt)},Nt.$g=function(Dt,jt,Ct){return ft.u(Dt)?this[jt]:this.set(Ct,Dt)},Nt.unix=function(){return Math.floor(this.valueOf()/1e3)},Nt.valueOf=function(){return this.$d.getTime()},Nt.startOf=function(Dt,jt){var Ct=this,Ft=!!ft.u(jt)||jt,_t=ft.p(Dt),xt=function(sn,me){var Fe=ft.w(Ct.$u?Date.UTC(Ct.$y,me,sn):new Date(Ct.$y,me,sn),Ct);return Ft?Fe:Fe.endOf(S)},Gt=function(sn,me){return ft.w(Ct.toDate()[sn].apply(Ct.toDate("s"),(Ft?[0,0,0,0]:[23,59,59,999]).slice(me)),Ct)},Be=this.$W,Ot=this.$M,vn=this.$D,Pe="set"+(this.$u?"UTC":"");switch(_t){case R:return Ft?xt(1,0):xt(31,11);case B:return Ft?xt(1,Ot):xt(0,Ot+1);case I:var Ee=this.$locale().weekStart||0,nn=(Be<Ee?Be+7:Be)-Ee;return xt(Ft?vn-nn:vn+(6-nn),Ot);case S:case q:return Gt(Pe+"Hours",0);case _:return Gt(Pe+"Minutes",1);case E:return Gt(Pe+"Seconds",2);case b:return Gt(Pe+"Milliseconds",3);default:return this.clone()}},Nt.endOf=function(Dt){return this.startOf(Dt,!1)},Nt.$set=function(Dt,jt){var Ct,Ft=ft.p(Dt),_t="set"+(this.$u?"UTC":""),xt=(Ct={},Ct[S]=_t+"Date",Ct[q]=_t+"Date",Ct[B]=_t+"Month",Ct[R]=_t+"FullYear",Ct[_]=_t+"Hours",Ct[E]=_t+"Minutes",Ct[b]=_t+"Seconds",Ct[v]=_t+"Milliseconds",Ct)[Ft],Gt=Ft===S?this.$D+(jt-this.$W):jt;if(Ft===B||Ft===R){var Be=this.clone().set(q,1);Be.$d[xt](Gt),Be.init(),this.$d=Be.set(q,Math.min(this.$D,Be.daysInMonth())).$d}else xt&&this.$d[xt](Gt);return this.init(),this},Nt.set=function(Dt,jt){return this.clone().$set(Dt,jt)},Nt.get=function(Dt){return this[ft.p(Dt)]()},Nt.add=function(Dt,jt){var Ct,Ft=this;Dt=Number(Dt);var _t=ft.p(jt),xt=function(Ot){var vn=Z(Ft);return ft.w(vn.date(vn.date()+Math.round(Ot*Dt)),Ft)};if(_t===B)return this.set(B,this.$M+Dt);if(_t===R)return this.set(R,this.$y+Dt);if(_t===S)return xt(1);if(_t===I)return xt(7);var Gt=(Ct={},Ct[E]=g,Ct[_]=w,Ct[b]=f,Ct)[_t]||1,Be=this.$d.getTime()+Dt*Gt;return ft.w(Be,this)},Nt.subtract=function(Dt,jt){return this.add(-1*Dt,jt)},Nt.format=function(Dt){var jt=this,Ct=this.$locale();if(!this.isValid())return Ct.invalidDate||X;var Ft=Dt||"YYYY-MM-DDTHH:mm:ssZ",_t=ft.z(this),xt=this.$H,Gt=this.$m,Be=this.$M,Ot=Ct.weekdays,vn=Ct.months,Pe=function(me,Fe,Qt,Ae){return me&&(me[Fe]||me(jt,Ft))||Qt[Fe].slice(0,Ae)},Ee=function(me){return ft.s(xt%12||12,me,"0")},nn=Ct.meridiem||function(me,Fe,Qt){var Ae=me<12?"AM":"PM";return Qt?Ae.toLowerCase():Ae},sn={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Be+1,MM:ft.s(Be+1,2,"0"),MMM:Pe(Ct.monthsShort,Be,vn,3),MMMM:Pe(vn,Be),D:this.$D,DD:ft.s(this.$D,2,"0"),d:String(this.$W),dd:Pe(Ct.weekdaysMin,this.$W,Ot,2),ddd:Pe(Ct.weekdaysShort,this.$W,Ot,3),dddd:Ot[this.$W],H:String(xt),HH:ft.s(xt,2,"0"),h:Ee(1),hh:Ee(2),a:nn(xt,Gt,!0),A:nn(xt,Gt,!1),m:String(Gt),mm:ft.s(Gt,2,"0"),s:String(this.$s),ss:ft.s(this.$s,2,"0"),SSS:ft.s(this.$ms,3,"0"),Z:_t};return Ft.replace(at,function(me,Fe){return Fe||sn[me]||_t.replace(":","")})},Nt.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Nt.diff=function(Dt,jt,Ct){var Ft,_t=ft.p(jt),xt=Z(Dt),Gt=(xt.utcOffset()-this.utcOffset())*g,Be=this-xt,Ot=ft.m(this,xt);return Ot=(Ft={},Ft[R]=Ot/12,Ft[B]=Ot,Ft[F]=Ot/3,Ft[I]=(Be-Gt)/6048e5,Ft[S]=(Be-Gt)/864e5,Ft[_]=Be/w,Ft[E]=Be/g,Ft[b]=Be/f,Ft)[_t]||Be,Ct?Ot:ft.a(Ot)},Nt.daysInMonth=function(){return this.endOf(B).$D},Nt.$locale=function(){return gt[this.$L]},Nt.locale=function(Dt,jt){if(!Dt)return this.$L;var Ct=this.clone(),Ft=bt(Dt,jt,!0);return Ft&&(Ct.$L=Ft),Ct},Nt.clone=function(){return ft.w(this.$d,this)},Nt.toDate=function(){return new Date(this.valueOf())},Nt.toJSON=function(){return this.isValid()?this.toISOString():null},Nt.toISOString=function(){return this.$d.toISOString()},Nt.toString=function(){return this.$d.toUTCString()},V}(),Et=Y.prototype;return Z.prototype=Et,[["$ms",v],["$s",b],["$m",E],["$H",_],["$W",S],["$M",B],["$y",R],["$D",q]].forEach(function(V){Et[V[1]]=function(Nt){return this.$g(Nt,V[0],V[1])}}),Z.extend=function(V,Nt){return V.$i||(V(Nt,Y,Z),V.$i=!0),Z},Z.locale=bt,Z.isDayjs=ht,Z.unix=function(V){return Z(1e3*V)},Z.en=gt[mt],Z.Ls=gt,Z.p={},Z})})(oOt);var GTe=oOt.exports;const Q0=JT(GTe),wx={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Wt={trace:(...i)=>{},debug:(...i)=>{},info:(...i)=>{},warn:(...i)=>{},error:(...i)=>{},fatal:(...i)=>{}},s0t=function(i="fatal"){let a=wx.fatal;typeof i=="string"?(i=i.toLowerCase(),i in wx&&(a=wx[i])):typeof i=="number"&&(a=i),Wt.trace=()=>{},Wt.debug=()=>{},Wt.info=()=>{},Wt.warn=()=>{},Wt.error=()=>{},Wt.fatal=()=>{},a<=wx.fatal&&(Wt.fatal=console.error?console.error.bind(console,$w("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$w("FATAL"))),a<=wx.error&&(Wt.error=console.error?console.error.bind(console,$w("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$w("ERROR"))),a<=wx.warn&&(Wt.warn=console.warn?console.warn.bind(console,$w("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$w("WARN"))),a<=wx.info&&(Wt.info=console.info?console.info.bind(console,$w("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$w("INFO"))),a<=wx.debug&&(Wt.debug=console.debug?console.debug.bind(console,$w("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$w("DEBUG"))),a<=wx.trace&&(Wt.trace=console.debug?console.debug.bind(console,$w("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$w("TRACE")))},$w=i=>`%c${Q0().format("ss.SSS")} : ${i} : `;var a0t={};Object.defineProperty(a0t,"__esModule",{value:!0});var c8=a0t.sanitizeUrl=void 0,KTe=/^([^\w]*)(javascript|data|vbscript)/im,WTe=/&#(\w+)(^\w|;)?/g,YTe=/&(newline|tab);/gi,XTe=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,QTe=/^.+(:|&colon;)/gim,JTe=[".","/"];function ZTe(i){return JTe.indexOf(i[0])>-1}function t9e(i){return i.replace(WTe,function(a,f){return String.fromCharCode(f)})}function e9e(i){var a=t9e(i||"").replace(YTe,"").replace(XTe,"").trim();if(!a)return"about:blank";if(ZTe(a))return a;var f=a.match(QTe);if(!f)return a;var g=f[0];return KTe.test(g)?"about:blank":a}c8=a0t.sanitizeUrl=e9e;function QK(i,a){return i==null||a==null?NaN:i<a?-1:i>a?1:i>=a?0:NaN}function n9e(i,a){return i==null||a==null?NaN:a<i?-1:a>i?1:a>=i?0:NaN}function o0t(i){let a,f,g;i.length!==2?(a=QK,f=(E,_)=>QK(i(E),_),g=(E,_)=>i(E)-_):(a=i===QK||i===n9e?i:r9e,f=i,g=i);function w(E,_,S=0,I=E.length){if(S<I){if(a(_,_)!==0)return I;do{const B=S+I>>>1;f(E[B],_)<0?S=B+1:I=B}while(S<I)}return S}function v(E,_,S=0,I=E.length){if(S<I){if(a(_,_)!==0)return I;do{const B=S+I>>>1;f(E[B],_)<=0?S=B+1:I=B}while(S<I)}return S}function b(E,_,S=0,I=E.length){const B=w(E,_,S,I-1);return B>S&&g(E[B-1],_)>-g(E[B],_)?B-1:B}return{left:w,center:b,right:v}}function r9e(){return 0}function i9e(i){return i===null?NaN:+i}const s9e=o0t(QK).right;o0t(i9e).center;const a9e=s9e;class cOt extends Map{constructor(a,f=u9e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),a!=null)for(const[g,w]of a)this.set(g,w)}get(a){return super.get(uOt(this,a))}has(a){return super.has(uOt(this,a))}set(a,f){return super.set(o9e(this,a),f)}delete(a){return super.delete(c9e(this,a))}}function uOt({_intern:i,_key:a},f){const g=a(f);return i.has(g)?i.get(g):f}function o9e({_intern:i,_key:a},f){const g=a(f);return i.has(g)?i.get(g):(i.set(g,f),f)}function c9e({_intern:i,_key:a},f){const g=a(f);return i.has(g)&&(f=i.get(g),i.delete(g)),f}function u9e(i){return i!==null&&typeof i=="object"?i.valueOf():i}const l9e=Math.sqrt(50),h9e=Math.sqrt(10),f9e=Math.sqrt(2);function JK(i,a,f){const g=(a-i)/Math.max(0,f),w=Math.floor(Math.log10(g)),v=g/Math.pow(10,w),b=v>=l9e?10:v>=h9e?5:v>=f9e?2:1;let E,_,S;return w<0?(S=Math.pow(10,-w)/b,E=Math.round(i*S),_=Math.round(a*S),E/S<i&&++E,_/S>a&&--_,S=-S):(S=Math.pow(10,w)*b,E=Math.round(i/S),_=Math.round(a/S),E*S<i&&++E,_*S>a&&--_),_<E&&.5<=f&&f<2?JK(i,a,f*2):[E,_,S]}function d9e(i,a,f){if(a=+a,i=+i,f=+f,!(f>0))return[];if(i===a)return[i];const g=a<i,[w,v,b]=g?JK(a,i,f):JK(i,a,f);if(!(v>=w))return[];const E=v-w+1,_=new Array(E);if(g)if(b<0)for(let S=0;S<E;++S)_[S]=(v-S)/-b;else for(let S=0;S<E;++S)_[S]=(v-S)*b;else if(b<0)for(let S=0;S<E;++S)_[S]=(w+S)/-b;else for(let S=0;S<E;++S)_[S]=(w+S)*b;return _}function c0t(i,a,f){return a=+a,i=+i,f=+f,JK(i,a,f)[2]}function u0t(i,a,f){a=+a,i=+i,f=+f;const g=a<i,w=g?c0t(a,i,f):c0t(i,a,f);return(g?-1:1)*(w<0?1/-w:w)}function g9e(i,a){let f;if(a===void 0)for(const g of i)g!=null&&(f<g||f===void 0&&g>=g)&&(f=g);else{let g=-1;for(let w of i)(w=a(w,++g,i))!=null&&(f<w||f===void 0&&w>=w)&&(f=w)}return f}function p9e(i,a){let f;if(a===void 0)for(const g of i)g!=null&&(f>g||f===void 0&&g>=g)&&(f=g);else{let g=-1;for(let w of i)(w=a(w,++g,i))!=null&&(f>w||f===void 0&&w>=w)&&(f=w)}return f}function b9e(i,a,f){i=+i,a=+a,f=(w=arguments.length)<2?(a=i,i=0,1):w<3?1:+f;for(var g=-1,w=Math.max(0,Math.ceil((a-i)/f))|0,v=new Array(w);++g<w;)v[g]=i+g*f;return v}function w9e(i){return i}var ZK=1,l0t=2,h0t=3,tW=4,lOt=1e-6;function m9e(i){return"translate("+i+",0)"}function v9e(i){return"translate(0,"+i+")"}function y9e(i){return a=>+i(a)}function x9e(i,a){return a=Math.max(0,i.bandwidth()-a*2)/2,i.round()&&(a=Math.round(a)),f=>+i(f)+a}function k9e(){return!this.__axis}function hOt(i,a){var f=[],g=null,w=null,v=6,b=6,E=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=i===ZK||i===tW?-1:1,I=i===tW||i===l0t?"x":"y",B=i===ZK||i===h0t?m9e:v9e;function F(R){var q=g??(a.ticks?a.ticks.apply(a,f):a.domain()),X=w??(a.tickFormat?a.tickFormat.apply(a,f):w9e),rt=Math.max(v,0)+E,at=a.range(),ut=+at[0]+_,pt=+at[at.length-1]+_,yt=(a.bandwidth?x9e:y9e)(a.copy(),_),mt=R.selection?R.selection():R,gt=mt.selectAll(".domain").data([null]),ht=mt.selectAll(".tick").data(q,a).order(),bt=ht.exit(),Z=ht.enter().append("g").attr("class","tick"),ft=ht.select("line"),Y=ht.select("text");gt=gt.merge(gt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ht=ht.merge(Z),ft=ft.merge(Z.append("line").attr("stroke","currentColor").attr(I+"2",S*v)),Y=Y.merge(Z.append("text").attr("fill","currentColor").attr(I,S*rt).attr("dy",i===ZK?"0em":i===h0t?"0.71em":"0.32em")),R!==mt&&(gt=gt.transition(R),ht=ht.transition(R),ft=ft.transition(R),Y=Y.transition(R),bt=bt.transition(R).attr("opacity",lOt).attr("transform",function(Et){return isFinite(Et=yt(Et))?B(Et+_):this.getAttribute("transform")}),Z.attr("opacity",lOt).attr("transform",function(Et){var V=this.parentNode.__axis;return B((V&&isFinite(V=V(Et))?V:yt(Et))+_)})),bt.remove(),gt.attr("d",i===tW||i===l0t?b?"M"+S*b+","+ut+"H"+_+"V"+pt+"H"+S*b:"M"+_+","+ut+"V"+pt:b?"M"+ut+","+S*b+"V"+_+"H"+pt+"V"+S*b:"M"+ut+","+_+"H"+pt),ht.attr("opacity",1).attr("transform",function(Et){return B(yt(Et)+_)}),ft.attr(I+"2",S*v),Y.attr(I,S*rt).text(X),mt.filter(k9e).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===l0t?"start":i===tW?"end":"middle"),mt.each(function(){this.__axis=yt})}return F.scale=function(R){return arguments.length?(a=R,F):a},F.ticks=function(){return f=Array.from(arguments),F},F.tickArguments=function(R){return arguments.length?(f=R==null?[]:Array.from(R),F):f.slice()},F.tickValues=function(R){return arguments.length?(g=R==null?null:Array.from(R),F):g&&g.slice()},F.tickFormat=function(R){return arguments.length?(w=R,F):w},F.tickSize=function(R){return arguments.length?(v=b=+R,F):v},F.tickSizeInner=function(R){return arguments.length?(v=+R,F):v},F.tickSizeOuter=function(R){return arguments.length?(b=+R,F):b},F.tickPadding=function(R){return arguments.length?(E=+R,F):E},F.offset=function(R){return arguments.length?(_=+R,F):_},F}function E9e(i){return hOt(ZK,i)}function T9e(i){return hOt(h0t,i)}var C9e={value:()=>{}};function fOt(){for(var i=0,a=arguments.length,f={},g;i<a;++i){if(!(g=arguments[i]+"")||g in f||/[\s.]/.test(g))throw new Error("illegal type: "+g);f[g]=[]}return new eW(f)}function eW(i){this._=i}function _9e(i,a){return i.trim().split(/^|\s+/).map(function(f){var g="",w=f.indexOf(".");if(w>=0&&(g=f.slice(w+1),f=f.slice(0,w)),f&&!a.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:g}})}eW.prototype=fOt.prototype={constructor:eW,on:function(i,a){var f=this._,g=_9e(i+"",f),w,v=-1,b=g.length;if(arguments.length<2){for(;++v<b;)if((w=(i=g[v]).type)&&(w=S9e(f[w],i.name)))return w;return}if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++v<b;)if(w=(i=g[v]).type)f[w]=dOt(f[w],i.name,a);else if(a==null)for(w in f)f[w]=dOt(f[w],i.name,null);return this},copy:function(){var i={},a=this._;for(var f in a)i[f]=a[f].slice();return new eW(i)},call:function(i,a){if((w=arguments.length-2)>0)for(var f=new Array(w),g=0,w,v;g<w;++g)f[g]=arguments[g+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(v=this._[i],g=0,w=v.length;g<w;++g)v[g].value.apply(a,f)},apply:function(i,a,f){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var g=this._[i],w=0,v=g.length;w<v;++w)g[w].value.apply(a,f)}};function S9e(i,a){for(var f=0,g=i.length,w;f<g;++f)if((w=i[f]).name===a)return w.value}function dOt(i,a,f){for(var g=0,w=i.length;g<w;++g)if(i[g].name===a){i[g]=C9e,i=i.slice(0,g).concat(i.slice(g+1));break}return f!=null&&i.push({name:a,value:f}),i}var f0t="http://www.w3.org/1999/xhtml";const gOt={svg:"http://www.w3.org/2000/svg",xhtml:f0t,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nW(i){var a=i+="",f=a.indexOf(":");return f>=0&&(a=i.slice(0,f))!=="xmlns"&&(i=i.slice(f+1)),gOt.hasOwnProperty(a)?{space:gOt[a],local:i}:i}function A9e(i){return function(){var a=this.ownerDocument,f=this.namespaceURI;return f===f0t&&a.documentElement.namespaceURI===f0t?a.createElement(i):a.createElementNS(f,i)}}function L9e(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function pOt(i){var a=nW(i);return(a.local?L9e:A9e)(a)}function M9e(){}function d0t(i){return i==null?M9e:function(){return this.querySelector(i)}}function D9e(i){typeof i!="function"&&(i=d0t(i));for(var a=this._groups,f=a.length,g=new Array(f),w=0;w<f;++w)for(var v=a[w],b=v.length,E=g[w]=new Array(b),_,S,I=0;I<b;++I)(_=v[I])&&(S=i.call(_,_.__data__,I,v))&&("__data__"in _&&(S.__data__=_.__data__),E[I]=S);return new Hg(g,this._parents)}function bOt(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function I9e(){return[]}function wOt(i){return i==null?I9e:function(){return this.querySelectorAll(i)}}function O9e(i){return function(){return bOt(i.apply(this,arguments))}}function P9e(i){typeof i=="function"?i=O9e(i):i=wOt(i);for(var a=this._groups,f=a.length,g=[],w=[],v=0;v<f;++v)for(var b=a[v],E=b.length,_,S=0;S<E;++S)(_=b[S])&&(g.push(i.call(_,_.__data__,S,b)),w.push(_));return new Hg(g,w)}function mOt(i){return function(){return this.matches(i)}}function vOt(i){return function(a){return a.matches(i)}}var N9e=Array.prototype.find;function F9e(i){return function(){return N9e.call(this.children,i)}}function B9e(){return this.firstElementChild}function R9e(i){return this.select(i==null?B9e:F9e(typeof i=="function"?i:vOt(i)))}var j9e=Array.prototype.filter;function $9e(){return Array.from(this.children)}function z9e(i){return function(){return j9e.call(this.children,i)}}function q9e(i){return this.selectAll(i==null?$9e:z9e(typeof i=="function"?i:vOt(i)))}function H9e(i){typeof i!="function"&&(i=mOt(i));for(var a=this._groups,f=a.length,g=new Array(f),w=0;w<f;++w)for(var v=a[w],b=v.length,E=g[w]=[],_,S=0;S<b;++S)(_=v[S])&&i.call(_,_.__data__,S,v)&&E.push(_);return new Hg(g,this._parents)}function yOt(i){return new Array(i.length)}function V9e(){return new Hg(this._enter||this._groups.map(yOt),this._parents)}function rW(i,a){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=a}rW.prototype={constructor:rW,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,a){return this._parent.insertBefore(i,a)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};function U9e(i){return function(){return i}}function G9e(i,a,f,g,w,v){for(var b=0,E,_=a.length,S=v.length;b<S;++b)(E=a[b])?(E.__data__=v[b],g[b]=E):f[b]=new rW(i,v[b]);for(;b<_;++b)(E=a[b])&&(w[b]=E)}function K9e(i,a,f,g,w,v,b){var E,_,S=new Map,I=a.length,B=v.length,F=new Array(I),R;for(E=0;E<I;++E)(_=a[E])&&(F[E]=R=b.call(_,_.__data__,E,a)+"",S.has(R)?w[E]=_:S.set(R,_));for(E=0;E<B;++E)R=b.call(i,v[E],E,v)+"",(_=S.get(R))?(g[E]=_,_.__data__=v[E],S.delete(R)):f[E]=new rW(i,v[E]);for(E=0;E<I;++E)(_=a[E])&&S.get(F[E])===_&&(w[E]=_)}function W9e(i){return i.__data__}function Y9e(i,a){if(!arguments.length)return Array.from(this,W9e);var f=a?K9e:G9e,g=this._parents,w=this._groups;typeof i!="function"&&(i=U9e(i));for(var v=w.length,b=new Array(v),E=new Array(v),_=new Array(v),S=0;S<v;++S){var I=g[S],B=w[S],F=B.length,R=X9e(i.call(I,I&&I.__data__,S,g)),q=R.length,X=E[S]=new Array(q),rt=b[S]=new Array(q),at=_[S]=new Array(F);f(I,B,X,rt,at,R,a);for(var ut=0,pt=0,yt,mt;ut<q;++ut)if(yt=X[ut]){for(ut>=pt&&(pt=ut+1);!(mt=rt[pt])&&++pt<q;);yt._next=mt||null}}return b=new Hg(b,g),b._enter=E,b._exit=_,b}function X9e(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function Q9e(){return new Hg(this._exit||this._groups.map(yOt),this._parents)}function J9e(i,a,f){var g=this.enter(),w=this,v=this.exit();return typeof i=="function"?(g=i(g),g&&(g=g.selection())):g=g.append(i+""),a!=null&&(w=a(w),w&&(w=w.selection())),f==null?v.remove():f(v),g&&w?g.merge(w).order():w}function Z9e(i){for(var a=i.selection?i.selection():i,f=this._groups,g=a._groups,w=f.length,v=g.length,b=Math.min(w,v),E=new Array(w),_=0;_<b;++_)for(var S=f[_],I=g[_],B=S.length,F=E[_]=new Array(B),R,q=0;q<B;++q)(R=S[q]||I[q])&&(F[q]=R);for(;_<w;++_)E[_]=f[_];return new Hg(E,this._parents)}function tCe(){for(var i=this._groups,a=-1,f=i.length;++a<f;)for(var g=i[a],w=g.length-1,v=g[w],b;--w>=0;)(b=g[w])&&(v&&b.compareDocumentPosition(v)^4&&v.parentNode.insertBefore(b,v),v=b);return this}function eCe(i){i||(i=nCe);function a(B,F){return B&&F?i(B.__data__,F.__data__):!B-!F}for(var f=this._groups,g=f.length,w=new Array(g),v=0;v<g;++v){for(var b=f[v],E=b.length,_=w[v]=new Array(E),S,I=0;I<E;++I)(S=b[I])&&(_[I]=S);_.sort(a)}return new Hg(w,this._parents).order()}function nCe(i,a){return i<a?-1:i>a?1:i>=a?0:NaN}function rCe(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this}function iCe(){return Array.from(this)}function sCe(){for(var i=this._groups,a=0,f=i.length;a<f;++a)for(var g=i[a],w=0,v=g.length;w<v;++w){var b=g[w];if(b)return b}return null}function aCe(){let i=0;for(const a of this)++i;return i}function oCe(){return!this.node()}function cCe(i){for(var a=this._groups,f=0,g=a.length;f<g;++f)for(var w=a[f],v=0,b=w.length,E;v<b;++v)(E=w[v])&&i.call(E,E.__data__,v,w);return this}function uCe(i){return function(){this.removeAttribute(i)}}function lCe(i){return function(){this.removeAttributeNS(i.space,i.local)}}function hCe(i,a){return function(){this.setAttribute(i,a)}}function fCe(i,a){return function(){this.setAttributeNS(i.space,i.local,a)}}function dCe(i,a){return function(){var f=a.apply(this,arguments);f==null?this.removeAttribute(i):this.setAttribute(i,f)}}function gCe(i,a){return function(){var f=a.apply(this,arguments);f==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,f)}}function pCe(i,a){var f=nW(i);if(arguments.length<2){var g=this.node();return f.local?g.getAttributeNS(f.space,f.local):g.getAttribute(f)}return this.each((a==null?f.local?lCe:uCe:typeof a=="function"?f.local?gCe:dCe:f.local?fCe:hCe)(f,a))}function xOt(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function bCe(i){return function(){this.style.removeProperty(i)}}function wCe(i,a,f){return function(){this.style.setProperty(i,a,f)}}function mCe(i,a,f){return function(){var g=a.apply(this,arguments);g==null?this.style.removeProperty(i):this.style.setProperty(i,g,f)}}function vCe(i,a,f){return arguments.length>1?this.each((a==null?bCe:typeof a=="function"?mCe:wCe)(i,a,f??"")):AL(this.node(),i)}function AL(i,a){return i.style.getPropertyValue(a)||xOt(i).getComputedStyle(i,null).getPropertyValue(a)}function yCe(i){return function(){delete this[i]}}function xCe(i,a){return function(){this[i]=a}}function kCe(i,a){return function(){var f=a.apply(this,arguments);f==null?delete this[i]:this[i]=f}}function ECe(i,a){return arguments.length>1?this.each((a==null?yCe:typeof a=="function"?kCe:xCe)(i,a)):this.node()[i]}function kOt(i){return i.trim().split(/^|\s+/)}function g0t(i){return i.classList||new EOt(i)}function EOt(i){this._node=i,this._names=kOt(i.getAttribute("class")||"")}EOt.prototype={add:function(i){var a=this._names.indexOf(i);a<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var a=this._names.indexOf(i);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};function TOt(i,a){for(var f=g0t(i),g=-1,w=a.length;++g<w;)f.add(a[g])}function COt(i,a){for(var f=g0t(i),g=-1,w=a.length;++g<w;)f.remove(a[g])}function TCe(i){return function(){TOt(this,i)}}function CCe(i){return function(){COt(this,i)}}function _Ce(i,a){return function(){(a.apply(this,arguments)?TOt:COt)(this,i)}}function SCe(i,a){var f=kOt(i+"");if(arguments.length<2){for(var g=g0t(this.node()),w=-1,v=f.length;++w<v;)if(!g.contains(f[w]))return!1;return!0}return this.each((typeof a=="function"?_Ce:a?TCe:CCe)(f,a))}function ACe(){this.textContent=""}function LCe(i){return function(){this.textContent=i}}function MCe(i){return function(){var a=i.apply(this,arguments);this.textContent=a??""}}function DCe(i){return arguments.length?this.each(i==null?ACe:(typeof i=="function"?MCe:LCe)(i)):this.node().textContent}function ICe(){this.innerHTML=""}function OCe(i){return function(){this.innerHTML=i}}function PCe(i){return function(){var a=i.apply(this,arguments);this.innerHTML=a??""}}function NCe(i){return arguments.length?this.each(i==null?ICe:(typeof i=="function"?PCe:OCe)(i)):this.node().innerHTML}function FCe(){this.nextSibling&&this.parentNode.appendChild(this)}function BCe(){return this.each(FCe)}function RCe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jCe(){return this.each(RCe)}function $Ce(i){var a=typeof i=="function"?i:pOt(i);return this.select(function(){return this.appendChild(a.apply(this,arguments))})}function zCe(){return null}function qCe(i,a){var f=typeof i=="function"?i:pOt(i),g=a==null?zCe:typeof a=="function"?a:d0t(a);return this.select(function(){return this.insertBefore(f.apply(this,arguments),g.apply(this,arguments)||null)})}function HCe(){var i=this.parentNode;i&&i.removeChild(this)}function VCe(){return this.each(HCe)}function UCe(){var i=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function GCe(){var i=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function KCe(i){return this.select(i?GCe:UCe)}function WCe(i){return arguments.length?this.property("__data__",i):this.node().__data__}function YCe(i){return function(a){i.call(this,a,this.__data__)}}function XCe(i){return i.trim().split(/^|\s+/).map(function(a){var f="",g=a.indexOf(".");return g>=0&&(f=a.slice(g+1),a=a.slice(0,g)),{type:a,name:f}})}function QCe(i){return function(){var a=this.__on;if(a){for(var f=0,g=-1,w=a.length,v;f<w;++f)v=a[f],(!i.type||v.type===i.type)&&v.name===i.name?this.removeEventListener(v.type,v.listener,v.options):a[++g]=v;++g?a.length=g:delete this.__on}}}function JCe(i,a,f){return function(){var g=this.__on,w,v=YCe(a);if(g){for(var b=0,E=g.length;b<E;++b)if((w=g[b]).type===i.type&&w.name===i.name){this.removeEventListener(w.type,w.listener,w.options),this.addEventListener(w.type,w.listener=v,w.options=f),w.value=a;return}}this.addEventListener(i.type,v,f),w={type:i.type,name:i.name,value:a,listener:v,options:f},g?g.push(w):this.__on=[w]}}function ZCe(i,a,f){var g=XCe(i+""),w,v=g.length,b;if(arguments.length<2){var E=this.node().__on;if(E){for(var _=0,S=E.length,I;_<S;++_)for(w=0,I=E[_];w<v;++w)if((b=g[w]).type===I.type&&b.name===I.name)return I.value}return}for(E=a?JCe:QCe,w=0;w<v;++w)this.each(E(g[w],a,f));return this}function _Ot(i,a,f){var g=xOt(i),w=g.CustomEvent;typeof w=="function"?w=new w(a,f):(w=g.document.createEvent("Event"),f?(w.initEvent(a,f.bubbles,f.cancelable),w.detail=f.detail):w.initEvent(a,!1,!1)),i.dispatchEvent(w)}function t_e(i,a){return function(){return _Ot(this,i,a)}}function e_e(i,a){return function(){return _Ot(this,i,a.apply(this,arguments))}}function n_e(i,a){return this.each((typeof a=="function"?e_e:t_e)(i,a))}function*r_e(){for(var i=this._groups,a=0,f=i.length;a<f;++a)for(var g=i[a],w=0,v=g.length,b;w<v;++w)(b=g[w])&&(yield b)}var p0t=[null];function Hg(i,a){this._groups=i,this._parents=a}function GN(){return new Hg([[document.documentElement]],p0t)}function i_e(){return this}Hg.prototype=GN.prototype={constructor:Hg,select:D9e,selectAll:P9e,selectChild:R9e,selectChildren:q9e,filter:H9e,data:Y9e,enter:V9e,exit:Q9e,join:J9e,merge:Z9e,selection:i_e,order:tCe,sort:eCe,call:rCe,nodes:iCe,node:sCe,size:aCe,empty:oCe,each:cCe,attr:pCe,style:vCe,property:ECe,classed:SCe,text:DCe,html:NCe,raise:BCe,lower:jCe,append:$Ce,insert:qCe,remove:VCe,clone:KCe,datum:WCe,on:ZCe,dispatch:n_e,[Symbol.iterator]:r_e};function xr(i){return typeof i=="string"?new Hg([[document.querySelector(i)]],[document.documentElement]):new Hg([[i]],p0t)}function SOt(i){return typeof i=="string"?new Hg([document.querySelectorAll(i)],[document.documentElement]):new Hg([bOt(i)],p0t)}function KN(i,a,f){i.prototype=a.prototype=f,f.constructor=i}function iW(i,a){var f=Object.create(i.prototype);for(var g in a)f[g]=a[g];return f}function ZT(){}var WN=.7,sW=1/WN,LL="\\s*([+-]?\\d+)\\s*",YN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Q3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s_e=/^#([0-9a-f]{3,8})$/,a_e=new RegExp(`^rgb\\(${LL},${LL},${LL}\\)$`),o_e=new RegExp(`^rgb\\(${Q3},${Q3},${Q3}\\)$`),c_e=new RegExp(`^rgba\\(${LL},${LL},${LL},${YN}\\)$`),u_e=new RegExp(`^rgba\\(${Q3},${Q3},${Q3},${YN}\\)$`),l_e=new RegExp(`^hsl\\(${YN},${Q3},${Q3}\\)$`),h_e=new RegExp(`^hsla\\(${YN},${Q3},${Q3},${YN}\\)$`),AOt={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};KN(ZT,t9,{copy(i){return Object.assign(new this.constructor,this,i)},displayable(){return this.rgb().displayable()},hex:LOt,formatHex:LOt,formatHex8:f_e,formatHsl:d_e,formatRgb:MOt,toString:MOt});function LOt(){return this.rgb().formatHex()}function f_e(){return this.rgb().formatHex8()}function d_e(){return FOt(this).formatHsl()}function MOt(){return this.rgb().formatRgb()}function t9(i){var a,f;return i=(i+"").trim().toLowerCase(),(a=s_e.exec(i))?(f=a[1].length,a=parseInt(a[1],16),f===6?DOt(a):f===3?new J0(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):f===8?aW(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):f===4?aW(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=a_e.exec(i))?new J0(a[1],a[2],a[3],1):(a=o_e.exec(i))?new J0(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=c_e.exec(i))?aW(a[1],a[2],a[3],a[4]):(a=u_e.exec(i))?aW(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=l_e.exec(i))?NOt(a[1],a[2]/100,a[3]/100,1):(a=h_e.exec(i))?NOt(a[1],a[2]/100,a[3]/100,a[4]):AOt.hasOwnProperty(i)?DOt(AOt[i]):i==="transparent"?new J0(NaN,NaN,NaN,0):null}function DOt(i){return new J0(i>>16&255,i>>8&255,i&255,1)}function aW(i,a,f,g){return g<=0&&(i=a=f=NaN),new J0(i,a,f,g)}function IOt(i){return i instanceof ZT||(i=t9(i)),i?(i=i.rgb(),new J0(i.r,i.g,i.b,i.opacity)):new J0}function b0t(i,a,f,g){return arguments.length===1?IOt(i):new J0(i,a,f,g??1)}function J0(i,a,f,g){this.r=+i,this.g=+a,this.b=+f,this.opacity=+g}KN(J0,b0t,iW(ZT,{brighter(i){return i=i==null?sW:Math.pow(sW,i),new J0(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=i==null?WN:Math.pow(WN,i),new J0(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new J0(e9(this.r),e9(this.g),e9(this.b),oW(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:OOt,formatHex:OOt,formatHex8:g_e,formatRgb:POt,toString:POt}));function OOt(){return`#${n9(this.r)}${n9(this.g)}${n9(this.b)}`}function g_e(){return`#${n9(this.r)}${n9(this.g)}${n9(this.b)}${n9((isNaN(this.opacity)?1:this.opacity)*255)}`}function POt(){const i=oW(this.opacity);return`${i===1?"rgb(":"rgba("}${e9(this.r)}, ${e9(this.g)}, ${e9(this.b)}${i===1?")":`, ${i})`}`}function oW(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function e9(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function n9(i){return i=e9(i),(i<16?"0":"")+i.toString(16)}function NOt(i,a,f,g){return g<=0?i=a=f=NaN:f<=0||f>=1?i=a=NaN:a<=0&&(i=NaN),new Rv(i,a,f,g)}function FOt(i){if(i instanceof Rv)return new Rv(i.h,i.s,i.l,i.opacity);if(i instanceof ZT||(i=t9(i)),!i)return new Rv;if(i instanceof Rv)return i;i=i.rgb();var a=i.r/255,f=i.g/255,g=i.b/255,w=Math.min(a,f,g),v=Math.max(a,f,g),b=NaN,E=v-w,_=(v+w)/2;return E?(a===v?b=(f-g)/E+(f<g)*6:f===v?b=(g-a)/E+2:b=(a-f)/E+4,E/=_<.5?v+w:2-v-w,b*=60):E=_>0&&_<1?0:b,new Rv(b,E,_,i.opacity)}function p_e(i,a,f,g){return arguments.length===1?FOt(i):new Rv(i,a,f,g??1)}function Rv(i,a,f,g){this.h=+i,this.s=+a,this.l=+f,this.opacity=+g}KN(Rv,p_e,iW(ZT,{brighter(i){return i=i==null?sW:Math.pow(sW,i),new Rv(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=i==null?WN:Math.pow(WN,i),new Rv(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+(this.h<0)*360,a=isNaN(i)||isNaN(this.s)?0:this.s,f=this.l,g=f+(f<.5?f:1-f)*a,w=2*f-g;return new J0(w0t(i>=240?i-240:i+120,w,g),w0t(i,w,g),w0t(i<120?i+240:i-120,w,g),this.opacity)},clamp(){return new Rv(BOt(this.h),cW(this.s),cW(this.l),oW(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const i=oW(this.opacity);return`${i===1?"hsl(":"hsla("}${BOt(this.h)}, ${cW(this.s)*100}%, ${cW(this.l)*100}%${i===1?")":`, ${i})`}`}}));function BOt(i){return i=(i||0)%360,i<0?i+360:i}function cW(i){return Math.max(0,Math.min(1,i||0))}function w0t(i,a,f){return(i<60?a+(f-a)*i/60:i<180?f:i<240?a+(f-a)*(240-i)/60:a)*255}const b_e=Math.PI/180,w_e=180/Math.PI,uW=18,ROt=.96422,jOt=1,$Ot=.82521,zOt=4/29,ML=6/29,qOt=3*ML*ML,m_e=ML*ML*ML;function HOt(i){if(i instanceof J3)return new J3(i.l,i.a,i.b,i.opacity);if(i instanceof mx)return VOt(i);i instanceof J0||(i=IOt(i));var a=x0t(i.r),f=x0t(i.g),g=x0t(i.b),w=m0t((.2225045*a+.7168786*f+.0606169*g)/jOt),v,b;return a===f&&f===g?v=b=w:(v=m0t((.4360747*a+.3850649*f+.1430804*g)/ROt),b=m0t((.0139322*a+.0971045*f+.7141733*g)/$Ot)),new J3(116*w-16,500*(v-w),200*(w-b),i.opacity)}function v_e(i,a,f,g){return arguments.length===1?HOt(i):new J3(i,a,f,g??1)}function J3(i,a,f,g){this.l=+i,this.a=+a,this.b=+f,this.opacity=+g}KN(J3,v_e,iW(ZT,{brighter(i){return new J3(this.l+uW*(i??1),this.a,this.b,this.opacity)},darker(i){return new J3(this.l-uW*(i??1),this.a,this.b,this.opacity)},rgb(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,f=isNaN(this.b)?i:i-this.b/200;return a=ROt*v0t(a),i=jOt*v0t(i),f=$Ot*v0t(f),new J0(y0t(3.1338561*a-1.6168667*i-.4906146*f),y0t(-.9787684*a+1.9161415*i+.033454*f),y0t(.0719453*a-.2289914*i+1.4052427*f),this.opacity)}}));function m0t(i){return i>m_e?Math.pow(i,1/3):i/qOt+zOt}function v0t(i){return i>ML?i*i*i:qOt*(i-zOt)}function y0t(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function x0t(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function y_e(i){if(i instanceof mx)return new mx(i.h,i.c,i.l,i.opacity);if(i instanceof J3||(i=HOt(i)),i.a===0&&i.b===0)return new mx(NaN,0<i.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*w_e;return new mx(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function k0t(i,a,f,g){return arguments.length===1?y_e(i):new mx(i,a,f,g??1)}function mx(i,a,f,g){this.h=+i,this.c=+a,this.l=+f,this.opacity=+g}function VOt(i){if(isNaN(i.h))return new J3(i.l,0,0,i.opacity);var a=i.h*b_e;return new J3(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}KN(mx,k0t,iW(ZT,{brighter(i){return new mx(this.h,this.c,this.l+uW*(i??1),this.opacity)},darker(i){return new mx(this.h,this.c,this.l-uW*(i??1),this.opacity)},rgb(){return VOt(this).rgb()}}));const lW=i=>()=>i;function UOt(i,a){return function(f){return i+f*a}}function x_e(i,a,f){return i=Math.pow(i,f),a=Math.pow(a,f)-i,f=1/f,function(g){return Math.pow(i+g*a,f)}}function k_e(i,a){var f=a-i;return f?UOt(i,f>180||f<-180?f-360*Math.round(f/360):f):lW(isNaN(i)?a:i)}function E_e(i){return(i=+i)==1?XN:function(a,f){return f-a?x_e(a,f,i):lW(isNaN(a)?f:a)}}function XN(i,a){var f=a-i;return f?UOt(i,f):lW(isNaN(i)?a:i)}const hW=function i(a){var f=E_e(a);function g(w,v){var b=f((w=b0t(w)).r,(v=b0t(v)).r),E=f(w.g,v.g),_=f(w.b,v.b),S=XN(w.opacity,v.opacity);return function(I){return w.r=b(I),w.g=E(I),w.b=_(I),w.opacity=S(I),w+""}}return g.gamma=i,g}(1);function T_e(i,a){a||(a=[]);var f=i?Math.min(a.length,i.length):0,g=a.slice(),w;return function(v){for(w=0;w<f;++w)g[w]=i[w]*(1-v)+a[w]*v;return g}}function C_e(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function __e(i,a){var f=a?a.length:0,g=i?Math.min(f,i.length):0,w=new Array(g),v=new Array(f),b;for(b=0;b<g;++b)w[b]=C0t(i[b],a[b]);for(;b<f;++b)v[b]=a[b];return function(E){for(b=0;b<g;++b)v[b]=w[b](E);return v}}function S_e(i,a){var f=new Date;return i=+i,a=+a,function(g){return f.setTime(i*(1-g)+a*g),f}}function jv(i,a){return i=+i,a=+a,function(f){return i*(1-f)+a*f}}function A_e(i,a){var f={},g={},w;(i===null||typeof i!="object")&&(i={}),(a===null||typeof a!="object")&&(a={});for(w in a)w in i?f[w]=C0t(i[w],a[w]):g[w]=a[w];return function(v){for(w in f)g[w]=f[w](v);return g}}var E0t=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,T0t=new RegExp(E0t.source,"g");function L_e(i){return function(){return i}}function M_e(i){return function(a){return i(a)+""}}function GOt(i,a){var f=E0t.lastIndex=T0t.lastIndex=0,g,w,v,b=-1,E=[],_=[];for(i=i+"",a=a+"";(g=E0t.exec(i))&&(w=T0t.exec(a));)(v=w.index)>f&&(v=a.slice(f,v),E[b]?E[b]+=v:E[++b]=v),(g=g[0])===(w=w[0])?E[b]?E[b]+=w:E[++b]=w:(E[++b]=null,_.push({i:b,x:jv(g,w)})),f=T0t.lastIndex;return f<a.length&&(v=a.slice(f),E[b]?E[b]+=v:E[++b]=v),E.length<2?_[0]?M_e(_[0].x):L_e(a):(a=_.length,function(S){for(var I=0,B;I<a;++I)E[(B=_[I]).i]=B.x(S);return E.join("")})}function C0t(i,a){var f=typeof a,g;return a==null||f==="boolean"?lW(a):(f==="number"?jv:f==="string"?(g=t9(a))?(a=g,hW):GOt:a instanceof t9?hW:a instanceof Date?S_e:C_e(a)?T_e:Array.isArray(a)?__e:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?A_e:jv)(i,a)}function D_e(i,a){return i=+i,a=+a,function(f){return Math.round(i*(1-f)+a*f)}}var KOt=180/Math.PI,_0t={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function WOt(i,a,f,g,w,v){var b,E,_;return(b=Math.sqrt(i*i+a*a))&&(i/=b,a/=b),(_=i*f+a*g)&&(f-=i*_,g-=a*_),(E=Math.sqrt(f*f+g*g))&&(f/=E,g/=E,_/=E),i*g<a*f&&(i=-i,a=-a,_=-_,b=-b),{translateX:w,translateY:v,rotate:Math.atan2(a,i)*KOt,skewX:Math.atan(_)*KOt,scaleX:b,scaleY:E}}var fW;function I_e(i){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return a.isIdentity?_0t:WOt(a.a,a.b,a.c,a.d,a.e,a.f)}function O_e(i){return i==null||(fW||(fW=document.createElementNS("http://www.w3.org/2000/svg","g")),fW.setAttribute("transform",i),!(i=fW.transform.baseVal.consolidate()))?_0t:(i=i.matrix,WOt(i.a,i.b,i.c,i.d,i.e,i.f))}function YOt(i,a,f,g){function w(S){return S.length?S.pop()+" ":""}function v(S,I,B,F,R,q){if(S!==B||I!==F){var X=R.push("translate(",null,a,null,f);q.push({i:X-4,x:jv(S,B)},{i:X-2,x:jv(I,F)})}else(B||F)&&R.push("translate("+B+a+F+f)}function b(S,I,B,F){S!==I?(S-I>180?I+=360:I-S>180&&(S+=360),F.push({i:B.push(w(B)+"rotate(",null,g)-2,x:jv(S,I)})):I&&B.push(w(B)+"rotate("+I+g)}function E(S,I,B,F){S!==I?F.push({i:B.push(w(B)+"skewX(",null,g)-2,x:jv(S,I)}):I&&B.push(w(B)+"skewX("+I+g)}function _(S,I,B,F,R,q){if(S!==B||I!==F){var X=R.push(w(R)+"scale(",null,",",null,")");q.push({i:X-4,x:jv(S,B)},{i:X-2,x:jv(I,F)})}else(B!==1||F!==1)&&R.push(w(R)+"scale("+B+","+F+")")}return function(S,I){var B=[],F=[];return S=i(S),I=i(I),v(S.translateX,S.translateY,I.translateX,I.translateY,B,F),b(S.rotate,I.rotate,B,F),E(S.skewX,I.skewX,B,F),_(S.scaleX,S.scaleY,I.scaleX,I.scaleY,B,F),S=I=null,function(R){for(var q=-1,X=F.length,rt;++q<X;)B[(rt=F[q]).i]=rt.x(R);return B.join("")}}}var P_e=YOt(I_e,"px, ","px)","deg)"),N_e=YOt(O_e,", ",")",")");function F_e(i){return function(a,f){var g=i((a=k0t(a)).h,(f=k0t(f)).h),w=XN(a.c,f.c),v=XN(a.l,f.l),b=XN(a.opacity,f.opacity);return function(E){return a.h=g(E),a.c=w(E),a.l=v(E),a.opacity=b(E),a+""}}}const B_e=F_e(k_e);var DL=0,QN=0,JN=0,XOt=1e3,dW,ZN,gW=0,r9=0,pW=0,tF=typeof performance=="object"&&performance.now?performance:Date,QOt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function S0t(){return r9||(QOt(R_e),r9=tF.now()+pW)}function R_e(){r9=0}function bW(){this._call=this._time=this._next=null}bW.prototype=JOt.prototype={constructor:bW,restart:function(i,a,f){if(typeof i!="function")throw new TypeError("callback is not a function");f=(f==null?S0t():+f)+(a==null?0:+a),!this._next&&ZN!==this&&(ZN?ZN._next=this:dW=this,ZN=this),this._call=i,this._time=f,A0t()},stop:function(){this._call&&(this._call=null,this._time=1/0,A0t())}};function JOt(i,a,f){var g=new bW;return g.restart(i,a,f),g}function j_e(){S0t(),++DL;for(var i=dW,a;i;)(a=r9-i._time)>=0&&i._call.call(void 0,a),i=i._next;--DL}function ZOt(){r9=(gW=tF.now())+pW,DL=QN=0;try{j_e()}finally{DL=0,z_e(),r9=0}}function $_e(){var i=tF.now(),a=i-gW;a>XOt&&(pW-=a,gW=i)}function z_e(){for(var i,a=dW,f,g=1/0;a;)a._call?(g>a._time&&(g=a._time),i=a,a=a._next):(f=a._next,a._next=null,a=i?i._next=f:dW=f);ZN=i,A0t(g)}function A0t(i){if(!DL){QN&&(QN=clearTimeout(QN));var a=i-r9;a>24?(i<1/0&&(QN=setTimeout(ZOt,i-tF.now()-pW)),JN&&(JN=clearInterval(JN))):(JN||(gW=tF.now(),JN=setInterval($_e,XOt)),DL=1,QOt(ZOt))}}function tPt(i,a,f){var g=new bW;return a=a==null?0:+a,g.restart(w=>{g.stop(),i(w+a)},a,f),g}var q_e=fOt("start","end","cancel","interrupt"),H_e=[],ePt=0,nPt=1,L0t=2,wW=3,rPt=4,M0t=5,mW=6;function vW(i,a,f,g,w,v){var b=i.__transition;if(!b)i.__transition={};else if(f in b)return;V_e(i,f,{name:a,index:g,group:w,on:q_e,tween:H_e,time:v.time,delay:v.delay,duration:v.duration,ease:v.ease,timer:null,state:ePt})}function D0t(i,a){var f=$v(i,a);if(f.state>ePt)throw new Error("too late; already scheduled");return f}function Z3(i,a){var f=$v(i,a);if(f.state>wW)throw new Error("too late; already running");return f}function $v(i,a){var f=i.__transition;if(!f||!(f=f[a]))throw new Error("transition not found");return f}function V_e(i,a,f){var g=i.__transition,w;g[a]=f,f.timer=JOt(v,0,f.time);function v(S){f.state=nPt,f.timer.restart(b,f.delay,f.time),f.delay<=S&&b(S-f.delay)}function b(S){var I,B,F,R;if(f.state!==nPt)return _();for(I in g)if(R=g[I],R.name===f.name){if(R.state===wW)return tPt(b);R.state===rPt?(R.state=mW,R.timer.stop(),R.on.call("interrupt",i,i.__data__,R.index,R.group),delete g[I]):+I<a&&(R.state=mW,R.timer.stop(),R.on.call("cancel",i,i.__data__,R.index,R.group),delete g[I])}if(tPt(function(){f.state===wW&&(f.state=rPt,f.timer.restart(E,f.delay,f.time),E(S))}),f.state=L0t,f.on.call("start",i,i.__data__,f.index,f.group),f.state===L0t){for(f.state=wW,w=new Array(F=f.tween.length),I=0,B=-1;I<F;++I)(R=f.tween[I].value.call(i,i.__data__,f.index,f.group))&&(w[++B]=R);w.length=B+1}}function E(S){for(var I=S<f.duration?f.ease.call(null,S/f.duration):(f.timer.restart(_),f.state=M0t,1),B=-1,F=w.length;++B<F;)w[B].call(i,I);f.state===M0t&&(f.on.call("end",i,i.__data__,f.index,f.group),_())}function _(){f.state=mW,f.timer.stop(),delete g[a];for(var S in g)return;delete i.__transition}}function U_e(i,a){var f=i.__transition,g,w,v=!0,b;if(f){a=a==null?null:a+"";for(b in f){if((g=f[b]).name!==a){v=!1;continue}w=g.state>L0t&&g.state<M0t,g.state=mW,g.timer.stop(),g.on.call(w?"interrupt":"cancel",i,i.__data__,g.index,g.group),delete f[b]}v&&delete i.__transition}}function G_e(i){return this.each(function(){U_e(this,i)})}function K_e(i,a){var f,g;return function(){var w=Z3(this,i),v=w.tween;if(v!==f){g=f=v;for(var b=0,E=g.length;b<E;++b)if(g[b].name===a){g=g.slice(),g.splice(b,1);break}}w.tween=g}}function W_e(i,a,f){var g,w;if(typeof f!="function")throw new Error;return function(){var v=Z3(this,i),b=v.tween;if(b!==g){w=(g=b).slice();for(var E={name:a,value:f},_=0,S=w.length;_<S;++_)if(w[_].name===a){w[_]=E;break}_===S&&w.push(E)}v.tween=w}}function Y_e(i,a){var f=this._id;if(i+="",arguments.length<2){for(var g=$v(this.node(),f).tween,w=0,v=g.length,b;w<v;++w)if((b=g[w]).name===i)return b.value;return null}return this.each((a==null?K_e:W_e)(f,i,a))}function I0t(i,a,f){var g=i._id;return i.each(function(){var w=Z3(this,g);(w.value||(w.value={}))[a]=f.apply(this,arguments)}),function(w){return $v(w,g).value[a]}}function iPt(i,a){var f;return(typeof a=="number"?jv:a instanceof t9?hW:(f=t9(a))?(a=f,hW):GOt)(i,a)}function X_e(i){return function(){this.removeAttribute(i)}}function Q_e(i){return function(){this.removeAttributeNS(i.space,i.local)}}function J_e(i,a,f){var g,w=f+"",v;return function(){var b=this.getAttribute(i);return b===w?null:b===g?v:v=a(g=b,f)}}function Z_e(i,a,f){var g,w=f+"",v;return function(){var b=this.getAttributeNS(i.space,i.local);return b===w?null:b===g?v:v=a(g=b,f)}}function tSe(i,a,f){var g,w,v;return function(){var b,E=f(this),_;return E==null?void this.removeAttribute(i):(b=this.getAttribute(i),_=E+"",b===_?null:b===g&&_===w?v:(w=_,v=a(g=b,E)))}}function eSe(i,a,f){var g,w,v;return function(){var b,E=f(this),_;return E==null?void this.removeAttributeNS(i.space,i.local):(b=this.getAttributeNS(i.space,i.local),_=E+"",b===_?null:b===g&&_===w?v:(w=_,v=a(g=b,E)))}}function nSe(i,a){var f=nW(i),g=f==="transform"?N_e:iPt;return this.attrTween(i,typeof a=="function"?(f.local?eSe:tSe)(f,g,I0t(this,"attr."+i,a)):a==null?(f.local?Q_e:X_e)(f):(f.local?Z_e:J_e)(f,g,a))}function rSe(i,a){return function(f){this.setAttribute(i,a.call(this,f))}}function iSe(i,a){return function(f){this.setAttributeNS(i.space,i.local,a.call(this,f))}}function sSe(i,a){var f,g;function w(){var v=a.apply(this,arguments);return v!==g&&(f=(g=v)&&iSe(i,v)),f}return w._value=a,w}function aSe(i,a){var f,g;function w(){var v=a.apply(this,arguments);return v!==g&&(f=(g=v)&&rSe(i,v)),f}return w._value=a,w}function oSe(i,a){var f="attr."+i;if(arguments.length<2)return(f=this.tween(f))&&f._value;if(a==null)return this.tween(f,null);if(typeof a!="function")throw new Error;var g=nW(i);return this.tween(f,(g.local?sSe:aSe)(g,a))}function cSe(i,a){return function(){D0t(this,i).delay=+a.apply(this,arguments)}}function uSe(i,a){return a=+a,function(){D0t(this,i).delay=a}}function lSe(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?cSe:uSe)(a,i)):$v(this.node(),a).delay}function hSe(i,a){return function(){Z3(this,i).duration=+a.apply(this,arguments)}}function fSe(i,a){return a=+a,function(){Z3(this,i).duration=a}}function dSe(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?hSe:fSe)(a,i)):$v(this.node(),a).duration}function gSe(i,a){if(typeof a!="function")throw new Error;return function(){Z3(this,i).ease=a}}function pSe(i){var a=this._id;return arguments.length?this.each(gSe(a,i)):$v(this.node(),a).ease}function bSe(i,a){return function(){var f=a.apply(this,arguments);if(typeof f!="function")throw new Error;Z3(this,i).ease=f}}function wSe(i){if(typeof i!="function")throw new Error;return this.each(bSe(this._id,i))}function mSe(i){typeof i!="function"&&(i=mOt(i));for(var a=this._groups,f=a.length,g=new Array(f),w=0;w<f;++w)for(var v=a[w],b=v.length,E=g[w]=[],_,S=0;S<b;++S)(_=v[S])&&i.call(_,_.__data__,S,v)&&E.push(_);return new vx(g,this._parents,this._name,this._id)}function vSe(i){if(i._id!==this._id)throw new Error;for(var a=this._groups,f=i._groups,g=a.length,w=f.length,v=Math.min(g,w),b=new Array(g),E=0;E<v;++E)for(var _=a[E],S=f[E],I=_.length,B=b[E]=new Array(I),F,R=0;R<I;++R)(F=_[R]||S[R])&&(B[R]=F);for(;E<g;++E)b[E]=a[E];return new vx(b,this._parents,this._name,this._id)}function ySe(i){return(i+"").trim().split(/^|\s+/).every(function(a){var f=a.indexOf(".");return f>=0&&(a=a.slice(0,f)),!a||a==="start"})}function xSe(i,a,f){var g,w,v=ySe(a)?D0t:Z3;return function(){var b=v(this,i),E=b.on;E!==g&&(w=(g=E).copy()).on(a,f),b.on=w}}function kSe(i,a){var f=this._id;return arguments.length<2?$v(this.node(),f).on.on(i):this.each(xSe(f,i,a))}function ESe(i){return function(){var a=this.parentNode;for(var f in this.__transition)if(+f!==i)return;a&&a.removeChild(this)}}function TSe(){return this.on("end.remove",ESe(this._id))}function CSe(i){var a=this._name,f=this._id;typeof i!="function"&&(i=d0t(i));for(var g=this._groups,w=g.length,v=new Array(w),b=0;b<w;++b)for(var E=g[b],_=E.length,S=v[b]=new Array(_),I,B,F=0;F<_;++F)(I=E[F])&&(B=i.call(I,I.__data__,F,E))&&("__data__"in I&&(B.__data__=I.__data__),S[F]=B,vW(S[F],a,f,F,S,$v(I,f)));return new vx(v,this._parents,a,f)}function _Se(i){var a=this._name,f=this._id;typeof i!="function"&&(i=wOt(i));for(var g=this._groups,w=g.length,v=[],b=[],E=0;E<w;++E)for(var _=g[E],S=_.length,I,B=0;B<S;++B)if(I=_[B]){for(var F=i.call(I,I.__data__,B,_),R,q=$v(I,f),X=0,rt=F.length;X<rt;++X)(R=F[X])&&vW(R,a,f,X,F,q);v.push(F),b.push(I)}return new vx(v,b,a,f)}var SSe=GN.prototype.constructor;function ASe(){return new SSe(this._groups,this._parents)}function LSe(i,a){var f,g,w;return function(){var v=AL(this,i),b=(this.style.removeProperty(i),AL(this,i));return v===b?null:v===f&&b===g?w:w=a(f=v,g=b)}}function sPt(i){return function(){this.style.removeProperty(i)}}function MSe(i,a,f){var g,w=f+"",v;return function(){var b=AL(this,i);return b===w?null:b===g?v:v=a(g=b,f)}}function DSe(i,a,f){var g,w,v;return function(){var b=AL(this,i),E=f(this),_=E+"";return E==null&&(_=E=(this.style.removeProperty(i),AL(this,i))),b===_?null:b===g&&_===w?v:(w=_,v=a(g=b,E))}}function ISe(i,a){var f,g,w,v="style."+a,b="end."+v,E;return function(){var _=Z3(this,i),S=_.on,I=_.value[v]==null?E||(E=sPt(a)):void 0;(S!==f||w!==I)&&(g=(f=S).copy()).on(b,w=I),_.on=g}}function OSe(i,a,f){var g=(i+="")=="transform"?P_e:iPt;return a==null?this.styleTween(i,LSe(i,g)).on("end.style."+i,sPt(i)):typeof a=="function"?this.styleTween(i,DSe(i,g,I0t(this,"style."+i,a))).each(ISe(this._id,i)):this.styleTween(i,MSe(i,g,a),f).on("end.style."+i,null)}function PSe(i,a,f){return function(g){this.style.setProperty(i,a.call(this,g),f)}}function NSe(i,a,f){var g,w;function v(){var b=a.apply(this,arguments);return b!==w&&(g=(w=b)&&PSe(i,b,f)),g}return v._value=a,v}function FSe(i,a,f){var g="style."+(i+="");if(arguments.length<2)return(g=this.tween(g))&&g._value;if(a==null)return this.tween(g,null);if(typeof a!="function")throw new Error;return this.tween(g,NSe(i,a,f??""))}function BSe(i){return function(){this.textContent=i}}function RSe(i){return function(){var a=i(this);this.textContent=a??""}}function jSe(i){return this.tween("text",typeof i=="function"?RSe(I0t(this,"text",i)):BSe(i==null?"":i+""))}function $Se(i){return function(a){this.textContent=i.call(this,a)}}function zSe(i){var a,f;function g(){var w=i.apply(this,arguments);return w!==f&&(a=(f=w)&&$Se(w)),a}return g._value=i,g}function qSe(i){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(i==null)return this.tween(a,null);if(typeof i!="function")throw new Error;return this.tween(a,zSe(i))}function HSe(){for(var i=this._name,a=this._id,f=aPt(),g=this._groups,w=g.length,v=0;v<w;++v)for(var b=g[v],E=b.length,_,S=0;S<E;++S)if(_=b[S]){var I=$v(_,a);vW(_,i,f,S,b,{time:I.time+I.delay+I.duration,delay:0,duration:I.duration,ease:I.ease})}return new vx(g,this._parents,i,f)}function VSe(){var i,a,f=this,g=f._id,w=f.size();return new Promise(function(v,b){var E={value:b},_={value:function(){